diff --git a/client/next.config.js b/client/next.config.js index 549120f..5b50717 100644 --- a/client/next.config.js +++ b/client/next.config.js @@ -25,6 +25,10 @@ const nextConfig = withStoreConfig({ protocol: "https", hostname: "medusa-server-testing.s3.us-east-1.amazonaws.com", }, + { + protocol: "https", + hostname: "res.cloudinary.com", + }, ], }, }) diff --git a/client/src/modules/layout/templates/footer/NewsLetter.tsx b/client/src/modules/layout/templates/footer/NewsLetter.tsx new file mode 100644 index 0000000..f9f7085 --- /dev/null +++ b/client/src/modules/layout/templates/footer/NewsLetter.tsx @@ -0,0 +1,46 @@ +"use client" +import { Button, Input } from "@medusajs/ui" +import axios from "axios" +import { useState } from "react" + +export default function NewsletterForm() { + const [email, setEmail] = useState("") + + function subscribe(e: React.FormEvent) { + e.preventDefault() + if (!email) { + return + } + + axios + .post( + `${process.env.NEXT_PUBLIC_MEDUSA_BACKEND_URL}/mailchimp/subscribe`, + { + email, + } + ) + .then((e) => { + alert("Subscribed successfully!") + setEmail("") + }) + .catch((e) => { + console.error(e) + alert("An error occurred") + }) + } + + return ( +
+

Sign Up for our newsletter

+ setEmail(e.target.value)} + /> + +
+ ) +} diff --git a/client/src/modules/layout/templates/footer/index.tsx b/client/src/modules/layout/templates/footer/index.tsx index 9f88177..08cc4db 100644 --- a/client/src/modules/layout/templates/footer/index.tsx +++ b/client/src/modules/layout/templates/footer/index.tsx @@ -4,6 +4,7 @@ import { getCategoriesList, getCollectionsList } from "@lib/data" import LocalizedClientLink from "@modules/common/components/localized-client-link" import MedusaCTA from "@modules/layout/components/medusa-cta" +import NewsletterForm from "./NewsLetter" export default async function Footer() { const { collections } = await getCollectionsList(0, 6) @@ -21,6 +22,10 @@ export default async function Footer() { Medusa Store + {/* Newsletter */} +
+ +
{product_categories && product_categories?.length > 0 && (
diff --git a/node_modules/.yarn-integrity b/node_modules/.yarn-integrity new file mode 100644 index 0000000..0fd7f6e --- /dev/null +++ b/node_modules/.yarn-integrity @@ -0,0 +1,47 @@ +{ + "systemParams": "linux-x64-115", + "modulesFolders": [ + "node_modules" + ], + "flags": [], + "linkedModules": [], + "topLevelPatterns": [ + "medusa-file-cloudinary@^1.0.2" + ], + "lockfileEntries": { + "@nodelib/fs.scandir@2.1.5": "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5", + "@nodelib/fs.stat@2.0.5": "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b", + "@nodelib/fs.stat@^2.0.2": "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b", + "@nodelib/fs.walk@^1.2.3": "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a", + "awilix@^8.0.0": "https://registry.yarnpkg.com/awilix/-/awilix-8.0.1.tgz#4f4704038cc5df3f8f2b9254031af79d4d3708bb", + "braces@^3.0.3": "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789", + "camel-case@^4.1.2": "https://registry.yarnpkg.com/camel-case/-/camel-case-4.1.2.tgz#9728072a954f805228225a6deea6b38461e1bd5a", + "cloudinary-core@^2.13.0": "https://registry.yarnpkg.com/cloudinary-core/-/cloudinary-core-2.13.1.tgz#7abb62bf1db41773acfe1eebb7fd40571c34495b", + "cloudinary@^1.27.1": "https://registry.yarnpkg.com/cloudinary/-/cloudinary-1.41.3.tgz#dc96725122099349adba6ab4eccda84fa13e8c2e", + "core-js@^3.30.1": "https://registry.yarnpkg.com/core-js/-/core-js-3.38.1.tgz#aa375b79a286a670388a1a363363d53677c0383e", + "fast-glob@^3.2.12": "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129", + "fastq@^1.6.0": "https://registry.yarnpkg.com/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47", + "fill-range@^7.1.1": "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292", + "glob-parent@^5.1.2": "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4", + "is-extglob@^2.1.1": "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2", + "is-glob@^4.0.1": "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084", + "is-number@^7.0.0": "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b", + "lodash@^4.17.21": "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c", + "lower-case@^2.0.2": "https://registry.yarnpkg.com/lower-case/-/lower-case-2.0.2.tgz#6fa237c63dbdc4a82ca0fd882e4722dc5e634e28", + "medusa-core-utils@^1.1.30": "https://registry.yarnpkg.com/medusa-core-utils/-/medusa-core-utils-1.2.3.tgz#d6f327c771868122721c470d2f5be3551bdf6f6e", + "medusa-file-cloudinary@^1.0.2": "https://registry.yarnpkg.com/medusa-file-cloudinary/-/medusa-file-cloudinary-1.0.2.tgz#b790d8e94b335352d6c0d1ae8b1a2259766c0de1", + "merge2@^1.3.0": "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae", + "micromatch@^4.0.4": "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202", + "no-case@^3.0.4": "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d", + "pascal-case@^3.1.2": "https://registry.yarnpkg.com/pascal-case/-/pascal-case-3.1.2.tgz#b48e0ef2b98e205e7c1dae747d0b1508237660eb", + "picomatch@^2.3.1": "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42", + "q@^1.5.1": "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7", + "queue-microtask@^1.2.2": "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243", + "reusify@^1.0.4": "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76", + "run-parallel@^1.1.9": "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee", + "to-regex-range@^5.0.1": "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4", + "tslib@^2.0.3": "https://registry.yarnpkg.com/tslib/-/tslib-2.7.0.tgz#d9b40c5c40ab59e8738f297df3087bf1a2690c01" + }, + "files": [], + "artifacts": {} +} \ No newline at end of file diff --git a/node_modules/@nodelib/fs.scandir/LICENSE b/node_modules/@nodelib/fs.scandir/LICENSE new file mode 100644 index 0000000..65a9994 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Denis Malinochkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/@nodelib/fs.scandir/README.md b/node_modules/@nodelib/fs.scandir/README.md new file mode 100644 index 0000000..e0b218b --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/README.md @@ -0,0 +1,171 @@ +# @nodelib/fs.scandir + +> List files and directories inside the specified directory. + +## :bulb: Highlights + +The package is aimed at obtaining information about entries in the directory. + +* :moneybag: Returns useful information: `name`, `path`, `dirent` and `stats` (optional). +* :gear: On Node.js 10.10+ uses the mechanism without additional calls to determine the entry type. See [`old` and `modern` mode](#old-and-modern-mode). +* :link: Can safely work with broken symbolic links. + +## Install + +```console +npm install @nodelib/fs.scandir +``` + +## Usage + +```ts +import * as fsScandir from '@nodelib/fs.scandir'; + +fsScandir.scandir('path', (error, stats) => { /* … */ }); +``` + +## API + +### .scandir(path, [optionsOrSettings], callback) + +Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path with standard callback-style. + +```ts +fsScandir.scandir('path', (error, entries) => { /* … */ }); +fsScandir.scandir('path', {}, (error, entries) => { /* … */ }); +fsScandir.scandir('path', new fsScandir.Settings(), (error, entries) => { /* … */ }); +``` + +### .scandirSync(path, [optionsOrSettings]) + +Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path. + +```ts +const entries = fsScandir.scandirSync('path'); +const entries = fsScandir.scandirSync('path', {}); +const entries = fsScandir.scandirSync(('path', new fsScandir.Settings()); +``` + +#### path + +* Required: `true` +* Type: `string | Buffer | URL` + +A path to a file. If a URL is provided, it must use the `file:` protocol. + +#### optionsOrSettings + +* Required: `false` +* Type: `Options | Settings` +* Default: An instance of `Settings` class + +An [`Options`](#options) object or an instance of [`Settings`](#settingsoptions) class. + +> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class. + +### Settings([options]) + +A class of full settings of the package. + +```ts +const settings = new fsScandir.Settings({ followSymbolicLinks: false }); + +const entries = fsScandir.scandirSync('path', settings); +``` + +## Entry + +* `name` — The name of the entry (`unknown.txt`). +* `path` — The path of the entry relative to call directory (`root/unknown.txt`). +* `dirent` — An instance of [`fs.Dirent`](./src/types/index.ts) class. On Node.js below 10.10 will be emulated by [`DirentFromStats`](./src/utils/fs.ts) class. +* `stats` (optional) — An instance of `fs.Stats` class. + +For example, the `scandir` call for `tools` directory with one directory inside: + +```ts +{ + dirent: Dirent { name: 'typedoc', /* … */ }, + name: 'typedoc', + path: 'tools/typedoc' +} +``` + +## Options + +### stats + +* Type: `boolean` +* Default: `false` + +Adds an instance of `fs.Stats` class to the [`Entry`](#entry). + +> :book: Always use `fs.readdir` without the `withFileTypes` option. ??TODO?? + +### followSymbolicLinks + +* Type: `boolean` +* Default: `false` + +Follow symbolic links or not. Call `fs.stat` on symbolic link if `true`. + +### `throwErrorOnBrokenSymbolicLink` + +* Type: `boolean` +* Default: `true` + +Throw an error when symbolic link is broken if `true` or safely use `lstat` call if `false`. + +### `pathSegmentSeparator` + +* Type: `string` +* Default: `path.sep` + +By default, this package uses the correct path separator for your OS (`\` on Windows, `/` on Unix-like systems). But you can set this option to any separator character(s) that you want to use instead. + +### `fs` + +* Type: [`FileSystemAdapter`](./src/adapters/fs.ts) +* Default: A default FS methods + +By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own. + +```ts +interface FileSystemAdapter { + lstat?: typeof fs.lstat; + stat?: typeof fs.stat; + lstatSync?: typeof fs.lstatSync; + statSync?: typeof fs.statSync; + readdir?: typeof fs.readdir; + readdirSync?: typeof fs.readdirSync; +} + +const settings = new fsScandir.Settings({ + fs: { lstat: fakeLstat } +}); +``` + +## `old` and `modern` mode + +This package has two modes that are used depending on the environment and parameters of use. + +### old + +* Node.js below `10.10` or when the `stats` option is enabled + +When working in the old mode, the directory is read first (`fs.readdir`), then the type of entries is determined (`fs.lstat` and/or `fs.stat` for symbolic links). + +### modern + +* Node.js 10.10+ and the `stats` option is disabled + +In the modern mode, reading the directory (`fs.readdir` with the `withFileTypes` option) is combined with obtaining information about its entries. An additional call for symbolic links (`fs.stat`) is still present. + +This mode makes fewer calls to the file system. It's faster. + +## Changelog + +See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version. + +## License + +This software is released under the terms of the MIT license. diff --git a/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts b/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts new file mode 100644 index 0000000..827f1db --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts @@ -0,0 +1,20 @@ +import type * as fsStat from '@nodelib/fs.stat'; +import type { Dirent, ErrnoException } from '../types'; +export interface ReaddirAsynchronousMethod { + (filepath: string, options: { + withFileTypes: true; + }, callback: (error: ErrnoException | null, files: Dirent[]) => void): void; + (filepath: string, callback: (error: ErrnoException | null, files: string[]) => void): void; +} +export interface ReaddirSynchronousMethod { + (filepath: string, options: { + withFileTypes: true; + }): Dirent[]; + (filepath: string): string[]; +} +export declare type FileSystemAdapter = fsStat.FileSystemAdapter & { + readdir: ReaddirAsynchronousMethod; + readdirSync: ReaddirSynchronousMethod; +}; +export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter; +export declare function createFileSystemAdapter(fsMethods?: Partial): FileSystemAdapter; diff --git a/node_modules/@nodelib/fs.scandir/out/adapters/fs.js b/node_modules/@nodelib/fs.scandir/out/adapters/fs.js new file mode 100644 index 0000000..f0fe022 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/adapters/fs.js @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; +const fs = require("fs"); +exports.FILE_SYSTEM_ADAPTER = { + lstat: fs.lstat, + stat: fs.stat, + lstatSync: fs.lstatSync, + statSync: fs.statSync, + readdir: fs.readdir, + readdirSync: fs.readdirSync +}; +function createFileSystemAdapter(fsMethods) { + if (fsMethods === undefined) { + return exports.FILE_SYSTEM_ADAPTER; + } + return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); +} +exports.createFileSystemAdapter = createFileSystemAdapter; diff --git a/node_modules/@nodelib/fs.scandir/out/constants.d.ts b/node_modules/@nodelib/fs.scandir/out/constants.d.ts new file mode 100644 index 0000000..33f1749 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/constants.d.ts @@ -0,0 +1,4 @@ +/** + * IS `true` for Node.js 10.10 and greater. + */ +export declare const IS_SUPPORT_READDIR_WITH_FILE_TYPES: boolean; diff --git a/node_modules/@nodelib/fs.scandir/out/constants.js b/node_modules/@nodelib/fs.scandir/out/constants.js new file mode 100644 index 0000000..7e3d441 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/constants.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0; +const NODE_PROCESS_VERSION_PARTS = process.versions.node.split('.'); +if (NODE_PROCESS_VERSION_PARTS[0] === undefined || NODE_PROCESS_VERSION_PARTS[1] === undefined) { + throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`); +} +const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10); +const MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10); +const SUPPORTED_MAJOR_VERSION = 10; +const SUPPORTED_MINOR_VERSION = 10; +const IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION; +const IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION; +/** + * IS `true` for Node.js 10.10 and greater. + */ +exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR; diff --git a/node_modules/@nodelib/fs.scandir/out/index.d.ts b/node_modules/@nodelib/fs.scandir/out/index.d.ts new file mode 100644 index 0000000..b9da83e --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/index.d.ts @@ -0,0 +1,12 @@ +import type { FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod } from './adapters/fs'; +import * as async from './providers/async'; +import Settings, { Options } from './settings'; +import type { Dirent, Entry } from './types'; +declare type AsyncCallback = async.AsyncCallback; +declare function scandir(path: string, callback: AsyncCallback): void; +declare function scandir(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void; +declare namespace scandir { + function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise; +} +declare function scandirSync(path: string, optionsOrSettings?: Options | Settings): Entry[]; +export { scandir, scandirSync, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod, Options }; diff --git a/node_modules/@nodelib/fs.scandir/out/index.js b/node_modules/@nodelib/fs.scandir/out/index.js new file mode 100644 index 0000000..99c70d3 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/index.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Settings = exports.scandirSync = exports.scandir = void 0; +const async = require("./providers/async"); +const sync = require("./providers/sync"); +const settings_1 = require("./settings"); +exports.Settings = settings_1.default; +function scandir(path, optionsOrSettingsOrCallback, callback) { + if (typeof optionsOrSettingsOrCallback === 'function') { + async.read(path, getSettings(), optionsOrSettingsOrCallback); + return; + } + async.read(path, getSettings(optionsOrSettingsOrCallback), callback); +} +exports.scandir = scandir; +function scandirSync(path, optionsOrSettings) { + const settings = getSettings(optionsOrSettings); + return sync.read(path, settings); +} +exports.scandirSync = scandirSync; +function getSettings(settingsOrOptions = {}) { + if (settingsOrOptions instanceof settings_1.default) { + return settingsOrOptions; + } + return new settings_1.default(settingsOrOptions); +} diff --git a/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts b/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts new file mode 100644 index 0000000..5829676 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts @@ -0,0 +1,7 @@ +/// +import type Settings from '../settings'; +import type { Entry } from '../types'; +export declare type AsyncCallback = (error: NodeJS.ErrnoException, entries: Entry[]) => void; +export declare function read(directory: string, settings: Settings, callback: AsyncCallback): void; +export declare function readdirWithFileTypes(directory: string, settings: Settings, callback: AsyncCallback): void; +export declare function readdir(directory: string, settings: Settings, callback: AsyncCallback): void; diff --git a/node_modules/@nodelib/fs.scandir/out/providers/async.js b/node_modules/@nodelib/fs.scandir/out/providers/async.js new file mode 100644 index 0000000..e8e2f0a --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/providers/async.js @@ -0,0 +1,104 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; +const fsStat = require("@nodelib/fs.stat"); +const rpl = require("run-parallel"); +const constants_1 = require("../constants"); +const utils = require("../utils"); +const common = require("./common"); +function read(directory, settings, callback) { + if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { + readdirWithFileTypes(directory, settings, callback); + return; + } + readdir(directory, settings, callback); +} +exports.read = read; +function readdirWithFileTypes(directory, settings, callback) { + settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => { + if (readdirError !== null) { + callFailureCallback(callback, readdirError); + return; + } + const entries = dirents.map((dirent) => ({ + dirent, + name: dirent.name, + path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) + })); + if (!settings.followSymbolicLinks) { + callSuccessCallback(callback, entries); + return; + } + const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings)); + rpl(tasks, (rplError, rplEntries) => { + if (rplError !== null) { + callFailureCallback(callback, rplError); + return; + } + callSuccessCallback(callback, rplEntries); + }); + }); +} +exports.readdirWithFileTypes = readdirWithFileTypes; +function makeRplTaskEntry(entry, settings) { + return (done) => { + if (!entry.dirent.isSymbolicLink()) { + done(null, entry); + return; + } + settings.fs.stat(entry.path, (statError, stats) => { + if (statError !== null) { + if (settings.throwErrorOnBrokenSymbolicLink) { + done(statError); + return; + } + done(null, entry); + return; + } + entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); + done(null, entry); + }); + }; +} +function readdir(directory, settings, callback) { + settings.fs.readdir(directory, (readdirError, names) => { + if (readdirError !== null) { + callFailureCallback(callback, readdirError); + return; + } + const tasks = names.map((name) => { + const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); + return (done) => { + fsStat.stat(path, settings.fsStatSettings, (error, stats) => { + if (error !== null) { + done(error); + return; + } + const entry = { + name, + path, + dirent: utils.fs.createDirentFromStats(name, stats) + }; + if (settings.stats) { + entry.stats = stats; + } + done(null, entry); + }); + }; + }); + rpl(tasks, (rplError, entries) => { + if (rplError !== null) { + callFailureCallback(callback, rplError); + return; + } + callSuccessCallback(callback, entries); + }); + }); +} +exports.readdir = readdir; +function callFailureCallback(callback, error) { + callback(error); +} +function callSuccessCallback(callback, result) { + callback(null, result); +} diff --git a/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts b/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts new file mode 100644 index 0000000..2b4d08b --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts @@ -0,0 +1 @@ +export declare function joinPathSegments(a: string, b: string, separator: string): string; diff --git a/node_modules/@nodelib/fs.scandir/out/providers/common.js b/node_modules/@nodelib/fs.scandir/out/providers/common.js new file mode 100644 index 0000000..8724cb5 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/providers/common.js @@ -0,0 +1,13 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.joinPathSegments = void 0; +function joinPathSegments(a, b, separator) { + /** + * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`). + */ + if (a.endsWith(separator)) { + return a + b; + } + return a + separator + b; +} +exports.joinPathSegments = joinPathSegments; diff --git a/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts b/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts new file mode 100644 index 0000000..e05c8f0 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts @@ -0,0 +1,5 @@ +import type Settings from '../settings'; +import type { Entry } from '../types'; +export declare function read(directory: string, settings: Settings): Entry[]; +export declare function readdirWithFileTypes(directory: string, settings: Settings): Entry[]; +export declare function readdir(directory: string, settings: Settings): Entry[]; diff --git a/node_modules/@nodelib/fs.scandir/out/providers/sync.js b/node_modules/@nodelib/fs.scandir/out/providers/sync.js new file mode 100644 index 0000000..146db34 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/providers/sync.js @@ -0,0 +1,54 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; +const fsStat = require("@nodelib/fs.stat"); +const constants_1 = require("../constants"); +const utils = require("../utils"); +const common = require("./common"); +function read(directory, settings) { + if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { + return readdirWithFileTypes(directory, settings); + } + return readdir(directory, settings); +} +exports.read = read; +function readdirWithFileTypes(directory, settings) { + const dirents = settings.fs.readdirSync(directory, { withFileTypes: true }); + return dirents.map((dirent) => { + const entry = { + dirent, + name: dirent.name, + path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) + }; + if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) { + try { + const stats = settings.fs.statSync(entry.path); + entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); + } + catch (error) { + if (settings.throwErrorOnBrokenSymbolicLink) { + throw error; + } + } + } + return entry; + }); +} +exports.readdirWithFileTypes = readdirWithFileTypes; +function readdir(directory, settings) { + const names = settings.fs.readdirSync(directory); + return names.map((name) => { + const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); + const stats = fsStat.statSync(entryPath, settings.fsStatSettings); + const entry = { + name, + path: entryPath, + dirent: utils.fs.createDirentFromStats(name, stats) + }; + if (settings.stats) { + entry.stats = stats; + } + return entry; + }); +} +exports.readdir = readdir; diff --git a/node_modules/@nodelib/fs.scandir/out/settings.d.ts b/node_modules/@nodelib/fs.scandir/out/settings.d.ts new file mode 100644 index 0000000..a0db115 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/settings.d.ts @@ -0,0 +1,20 @@ +import * as fsStat from '@nodelib/fs.stat'; +import * as fs from './adapters/fs'; +export interface Options { + followSymbolicLinks?: boolean; + fs?: Partial; + pathSegmentSeparator?: string; + stats?: boolean; + throwErrorOnBrokenSymbolicLink?: boolean; +} +export default class Settings { + private readonly _options; + readonly followSymbolicLinks: boolean; + readonly fs: fs.FileSystemAdapter; + readonly pathSegmentSeparator: string; + readonly stats: boolean; + readonly throwErrorOnBrokenSymbolicLink: boolean; + readonly fsStatSettings: fsStat.Settings; + constructor(_options?: Options); + private _getValue; +} diff --git a/node_modules/@nodelib/fs.scandir/out/settings.js b/node_modules/@nodelib/fs.scandir/out/settings.js new file mode 100644 index 0000000..15a3e8c --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/settings.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const path = require("path"); +const fsStat = require("@nodelib/fs.stat"); +const fs = require("./adapters/fs"); +class Settings { + constructor(_options = {}) { + this._options = _options; + this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false); + this.fs = fs.createFileSystemAdapter(this._options.fs); + this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep); + this.stats = this._getValue(this._options.stats, false); + this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); + this.fsStatSettings = new fsStat.Settings({ + followSymbolicLink: this.followSymbolicLinks, + fs: this.fs, + throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink + }); + } + _getValue(option, value) { + return option !== null && option !== void 0 ? option : value; + } +} +exports.default = Settings; diff --git a/node_modules/@nodelib/fs.scandir/out/types/index.d.ts b/node_modules/@nodelib/fs.scandir/out/types/index.d.ts new file mode 100644 index 0000000..f326c5e --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/types/index.d.ts @@ -0,0 +1,20 @@ +/// +import type * as fs from 'fs'; +export interface Entry { + dirent: Dirent; + name: string; + path: string; + stats?: Stats; +} +export declare type Stats = fs.Stats; +export declare type ErrnoException = NodeJS.ErrnoException; +export interface Dirent { + isBlockDevice: () => boolean; + isCharacterDevice: () => boolean; + isDirectory: () => boolean; + isFIFO: () => boolean; + isFile: () => boolean; + isSocket: () => boolean; + isSymbolicLink: () => boolean; + name: string; +} diff --git a/node_modules/@nodelib/fs.scandir/out/types/index.js b/node_modules/@nodelib/fs.scandir/out/types/index.js new file mode 100644 index 0000000..c8ad2e5 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/types/index.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts b/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts new file mode 100644 index 0000000..bb863f1 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts @@ -0,0 +1,2 @@ +import type { Dirent, Stats } from '../types'; +export declare function createDirentFromStats(name: string, stats: Stats): Dirent; diff --git a/node_modules/@nodelib/fs.scandir/out/utils/fs.js b/node_modules/@nodelib/fs.scandir/out/utils/fs.js new file mode 100644 index 0000000..ace7c74 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/utils/fs.js @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDirentFromStats = void 0; +class DirentFromStats { + constructor(name, stats) { + this.name = name; + this.isBlockDevice = stats.isBlockDevice.bind(stats); + this.isCharacterDevice = stats.isCharacterDevice.bind(stats); + this.isDirectory = stats.isDirectory.bind(stats); + this.isFIFO = stats.isFIFO.bind(stats); + this.isFile = stats.isFile.bind(stats); + this.isSocket = stats.isSocket.bind(stats); + this.isSymbolicLink = stats.isSymbolicLink.bind(stats); + } +} +function createDirentFromStats(name, stats) { + return new DirentFromStats(name, stats); +} +exports.createDirentFromStats = createDirentFromStats; diff --git a/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts b/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts new file mode 100644 index 0000000..1b41954 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts @@ -0,0 +1,2 @@ +import * as fs from './fs'; +export { fs }; diff --git a/node_modules/@nodelib/fs.scandir/out/utils/index.js b/node_modules/@nodelib/fs.scandir/out/utils/index.js new file mode 100644 index 0000000..f5de129 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/out/utils/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.fs = void 0; +const fs = require("./fs"); +exports.fs = fs; diff --git a/node_modules/@nodelib/fs.scandir/package.json b/node_modules/@nodelib/fs.scandir/package.json new file mode 100644 index 0000000..d3a8924 --- /dev/null +++ b/node_modules/@nodelib/fs.scandir/package.json @@ -0,0 +1,44 @@ +{ + "name": "@nodelib/fs.scandir", + "version": "2.1.5", + "description": "List files and directories inside the specified directory", + "license": "MIT", + "repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.scandir", + "keywords": [ + "NodeLib", + "fs", + "FileSystem", + "file system", + "scandir", + "readdir", + "dirent" + ], + "engines": { + "node": ">= 8" + }, + "files": [ + "out/**", + "!out/**/*.map", + "!out/**/*.spec.*" + ], + "main": "out/index.js", + "typings": "out/index.d.ts", + "scripts": { + "clean": "rimraf {tsconfig.tsbuildinfo,out}", + "lint": "eslint \"src/**/*.ts\" --cache", + "compile": "tsc -b .", + "compile:watch": "tsc -p . --watch --sourceMap", + "test": "mocha \"out/**/*.spec.js\" -s 0", + "build": "npm run clean && npm run compile && npm run lint && npm test", + "watch": "npm run clean && npm run compile:watch" + }, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "devDependencies": { + "@nodelib/fs.macchiato": "1.0.4", + "@types/run-parallel": "^1.1.0" + }, + "gitHead": "d6a7960d5281d3dd5f8e2efba49bb552d090f562" +} diff --git a/node_modules/@nodelib/fs.stat/LICENSE b/node_modules/@nodelib/fs.stat/LICENSE new file mode 100644 index 0000000..65a9994 --- /dev/null +++ b/node_modules/@nodelib/fs.stat/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Denis Malinochkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/@nodelib/fs.stat/README.md b/node_modules/@nodelib/fs.stat/README.md new file mode 100644 index 0000000..686f047 --- /dev/null +++ b/node_modules/@nodelib/fs.stat/README.md @@ -0,0 +1,126 @@ +# @nodelib/fs.stat + +> Get the status of a file with some features. + +## :bulb: Highlights + +Wrapper around standard method `fs.lstat` and `fs.stat` with some features. + +* :beginner: Normally follows symbolic link. +* :gear: Can safely work with broken symbolic link. + +## Install + +```console +npm install @nodelib/fs.stat +``` + +## Usage + +```ts +import * as fsStat from '@nodelib/fs.stat'; + +fsStat.stat('path', (error, stats) => { /* … */ }); +``` + +## API + +### .stat(path, [optionsOrSettings], callback) + +Returns an instance of `fs.Stats` class for provided path with standard callback-style. + +```ts +fsStat.stat('path', (error, stats) => { /* … */ }); +fsStat.stat('path', {}, (error, stats) => { /* … */ }); +fsStat.stat('path', new fsStat.Settings(), (error, stats) => { /* … */ }); +``` + +### .statSync(path, [optionsOrSettings]) + +Returns an instance of `fs.Stats` class for provided path. + +```ts +const stats = fsStat.stat('path'); +const stats = fsStat.stat('path', {}); +const stats = fsStat.stat('path', new fsStat.Settings()); +``` + +#### path + +* Required: `true` +* Type: `string | Buffer | URL` + +A path to a file. If a URL is provided, it must use the `file:` protocol. + +#### optionsOrSettings + +* Required: `false` +* Type: `Options | Settings` +* Default: An instance of `Settings` class + +An [`Options`](#options) object or an instance of [`Settings`](#settings) class. + +> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class. + +### Settings([options]) + +A class of full settings of the package. + +```ts +const settings = new fsStat.Settings({ followSymbolicLink: false }); + +const stats = fsStat.stat('path', settings); +``` + +## Options + +### `followSymbolicLink` + +* Type: `boolean` +* Default: `true` + +Follow symbolic link or not. Call `fs.stat` on symbolic link if `true`. + +### `markSymbolicLink` + +* Type: `boolean` +* Default: `false` + +Mark symbolic link by setting the return value of `isSymbolicLink` function to always `true` (even after `fs.stat`). + +> :book: Can be used if you want to know what is hidden behind a symbolic link, but still continue to know that it is a symbolic link. + +### `throwErrorOnBrokenSymbolicLink` + +* Type: `boolean` +* Default: `true` + +Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`. + +### `fs` + +* Type: [`FileSystemAdapter`](./src/adapters/fs.ts) +* Default: A default FS methods + +By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own. + +```ts +interface FileSystemAdapter { + lstat?: typeof fs.lstat; + stat?: typeof fs.stat; + lstatSync?: typeof fs.lstatSync; + statSync?: typeof fs.statSync; +} + +const settings = new fsStat.Settings({ + fs: { lstat: fakeLstat } +}); +``` + +## Changelog + +See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version. + +## License + +This software is released under the terms of the MIT license. diff --git a/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts b/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts new file mode 100644 index 0000000..3af759c --- /dev/null +++ b/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts @@ -0,0 +1,13 @@ +/// +import * as fs from 'fs'; +import type { ErrnoException } from '../types'; +export declare type StatAsynchronousMethod = (path: string, callback: (error: ErrnoException | null, stats: fs.Stats) => void) => void; +export declare type StatSynchronousMethod = (path: string) => fs.Stats; +export interface FileSystemAdapter { + lstat: StatAsynchronousMethod; + stat: StatAsynchronousMethod; + lstatSync: StatSynchronousMethod; + statSync: StatSynchronousMethod; +} +export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter; +export declare function createFileSystemAdapter(fsMethods?: Partial): FileSystemAdapter; diff --git a/node_modules/@nodelib/fs.stat/out/adapters/fs.js b/node_modules/@nodelib/fs.stat/out/adapters/fs.js new file mode 100644 index 0000000..8dc08c8 --- /dev/null +++ b/node_modules/@nodelib/fs.stat/out/adapters/fs.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; +const fs = require("fs"); +exports.FILE_SYSTEM_ADAPTER = { + lstat: fs.lstat, + stat: fs.stat, + lstatSync: fs.lstatSync, + statSync: fs.statSync +}; +function createFileSystemAdapter(fsMethods) { + if (fsMethods === undefined) { + return exports.FILE_SYSTEM_ADAPTER; + } + return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); +} +exports.createFileSystemAdapter = createFileSystemAdapter; diff --git a/node_modules/@nodelib/fs.stat/out/index.d.ts b/node_modules/@nodelib/fs.stat/out/index.d.ts new file mode 100644 index 0000000..f95db99 --- /dev/null +++ b/node_modules/@nodelib/fs.stat/out/index.d.ts @@ -0,0 +1,12 @@ +import type { FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod } from './adapters/fs'; +import * as async from './providers/async'; +import Settings, { Options } from './settings'; +import type { Stats } from './types'; +declare type AsyncCallback = async.AsyncCallback; +declare function stat(path: string, callback: AsyncCallback): void; +declare function stat(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void; +declare namespace stat { + function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise; +} +declare function statSync(path: string, optionsOrSettings?: Options | Settings): Stats; +export { Settings, stat, statSync, AsyncCallback, FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod, Options, Stats }; diff --git a/node_modules/@nodelib/fs.stat/out/index.js b/node_modules/@nodelib/fs.stat/out/index.js new file mode 100644 index 0000000..b23f751 --- /dev/null +++ b/node_modules/@nodelib/fs.stat/out/index.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.statSync = exports.stat = exports.Settings = void 0; +const async = require("./providers/async"); +const sync = require("./providers/sync"); +const settings_1 = require("./settings"); +exports.Settings = settings_1.default; +function stat(path, optionsOrSettingsOrCallback, callback) { + if (typeof optionsOrSettingsOrCallback === 'function') { + async.read(path, getSettings(), optionsOrSettingsOrCallback); + return; + } + async.read(path, getSettings(optionsOrSettingsOrCallback), callback); +} +exports.stat = stat; +function statSync(path, optionsOrSettings) { + const settings = getSettings(optionsOrSettings); + return sync.read(path, settings); +} +exports.statSync = statSync; +function getSettings(settingsOrOptions = {}) { + if (settingsOrOptions instanceof settings_1.default) { + return settingsOrOptions; + } + return new settings_1.default(settingsOrOptions); +} diff --git a/node_modules/@nodelib/fs.stat/out/providers/async.d.ts b/node_modules/@nodelib/fs.stat/out/providers/async.d.ts new file mode 100644 index 0000000..85423ce --- /dev/null +++ b/node_modules/@nodelib/fs.stat/out/providers/async.d.ts @@ -0,0 +1,4 @@ +import type Settings from '../settings'; +import type { ErrnoException, Stats } from '../types'; +export declare type AsyncCallback = (error: ErrnoException, stats: Stats) => void; +export declare function read(path: string, settings: Settings, callback: AsyncCallback): void; diff --git a/node_modules/@nodelib/fs.stat/out/providers/async.js b/node_modules/@nodelib/fs.stat/out/providers/async.js new file mode 100644 index 0000000..983ff0e --- /dev/null +++ b/node_modules/@nodelib/fs.stat/out/providers/async.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.read = void 0; +function read(path, settings, callback) { + settings.fs.lstat(path, (lstatError, lstat) => { + if (lstatError !== null) { + callFailureCallback(callback, lstatError); + return; + } + if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { + callSuccessCallback(callback, lstat); + return; + } + settings.fs.stat(path, (statError, stat) => { + if (statError !== null) { + if (settings.throwErrorOnBrokenSymbolicLink) { + callFailureCallback(callback, statError); + return; + } + callSuccessCallback(callback, lstat); + return; + } + if (settings.markSymbolicLink) { + stat.isSymbolicLink = () => true; + } + callSuccessCallback(callback, stat); + }); + }); +} +exports.read = read; +function callFailureCallback(callback, error) { + callback(error); +} +function callSuccessCallback(callback, result) { + callback(null, result); +} diff --git a/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts b/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts new file mode 100644 index 0000000..428c3d7 --- /dev/null +++ b/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts @@ -0,0 +1,3 @@ +import type Settings from '../settings'; +import type { Stats } from '../types'; +export declare function read(path: string, settings: Settings): Stats; diff --git a/node_modules/@nodelib/fs.stat/out/providers/sync.js b/node_modules/@nodelib/fs.stat/out/providers/sync.js new file mode 100644 index 0000000..1521c36 --- /dev/null +++ b/node_modules/@nodelib/fs.stat/out/providers/sync.js @@ -0,0 +1,23 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.read = void 0; +function read(path, settings) { + const lstat = settings.fs.lstatSync(path); + if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { + return lstat; + } + try { + const stat = settings.fs.statSync(path); + if (settings.markSymbolicLink) { + stat.isSymbolicLink = () => true; + } + return stat; + } + catch (error) { + if (!settings.throwErrorOnBrokenSymbolicLink) { + return lstat; + } + throw error; + } +} +exports.read = read; diff --git a/node_modules/@nodelib/fs.stat/out/settings.d.ts b/node_modules/@nodelib/fs.stat/out/settings.d.ts new file mode 100644 index 0000000..f4b3d44 --- /dev/null +++ b/node_modules/@nodelib/fs.stat/out/settings.d.ts @@ -0,0 +1,16 @@ +import * as fs from './adapters/fs'; +export interface Options { + followSymbolicLink?: boolean; + fs?: Partial; + markSymbolicLink?: boolean; + throwErrorOnBrokenSymbolicLink?: boolean; +} +export default class Settings { + private readonly _options; + readonly followSymbolicLink: boolean; + readonly fs: fs.FileSystemAdapter; + readonly markSymbolicLink: boolean; + readonly throwErrorOnBrokenSymbolicLink: boolean; + constructor(_options?: Options); + private _getValue; +} diff --git a/node_modules/@nodelib/fs.stat/out/settings.js b/node_modules/@nodelib/fs.stat/out/settings.js new file mode 100644 index 0000000..111ec09 --- /dev/null +++ b/node_modules/@nodelib/fs.stat/out/settings.js @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fs = require("./adapters/fs"); +class Settings { + constructor(_options = {}) { + this._options = _options; + this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true); + this.fs = fs.createFileSystemAdapter(this._options.fs); + this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false); + this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); + } + _getValue(option, value) { + return option !== null && option !== void 0 ? option : value; + } +} +exports.default = Settings; diff --git a/node_modules/@nodelib/fs.stat/out/types/index.d.ts b/node_modules/@nodelib/fs.stat/out/types/index.d.ts new file mode 100644 index 0000000..74c08ed --- /dev/null +++ b/node_modules/@nodelib/fs.stat/out/types/index.d.ts @@ -0,0 +1,4 @@ +/// +import type * as fs from 'fs'; +export declare type Stats = fs.Stats; +export declare type ErrnoException = NodeJS.ErrnoException; diff --git a/node_modules/@nodelib/fs.stat/out/types/index.js b/node_modules/@nodelib/fs.stat/out/types/index.js new file mode 100644 index 0000000..c8ad2e5 --- /dev/null +++ b/node_modules/@nodelib/fs.stat/out/types/index.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@nodelib/fs.stat/package.json b/node_modules/@nodelib/fs.stat/package.json new file mode 100644 index 0000000..f2540c2 --- /dev/null +++ b/node_modules/@nodelib/fs.stat/package.json @@ -0,0 +1,37 @@ +{ + "name": "@nodelib/fs.stat", + "version": "2.0.5", + "description": "Get the status of a file with some features", + "license": "MIT", + "repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.stat", + "keywords": [ + "NodeLib", + "fs", + "FileSystem", + "file system", + "stat" + ], + "engines": { + "node": ">= 8" + }, + "files": [ + "out/**", + "!out/**/*.map", + "!out/**/*.spec.*" + ], + "main": "out/index.js", + "typings": "out/index.d.ts", + "scripts": { + "clean": "rimraf {tsconfig.tsbuildinfo,out}", + "lint": "eslint \"src/**/*.ts\" --cache", + "compile": "tsc -b .", + "compile:watch": "tsc -p . --watch --sourceMap", + "test": "mocha \"out/**/*.spec.js\" -s 0", + "build": "npm run clean && npm run compile && npm run lint && npm test", + "watch": "npm run clean && npm run compile:watch" + }, + "devDependencies": { + "@nodelib/fs.macchiato": "1.0.4" + }, + "gitHead": "d6a7960d5281d3dd5f8e2efba49bb552d090f562" +} diff --git a/node_modules/@nodelib/fs.walk/LICENSE b/node_modules/@nodelib/fs.walk/LICENSE new file mode 100644 index 0000000..65a9994 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Denis Malinochkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/@nodelib/fs.walk/README.md b/node_modules/@nodelib/fs.walk/README.md new file mode 100644 index 0000000..6ccc08d --- /dev/null +++ b/node_modules/@nodelib/fs.walk/README.md @@ -0,0 +1,215 @@ +# @nodelib/fs.walk + +> A library for efficiently walking a directory recursively. + +## :bulb: Highlights + +* :moneybag: Returns useful information: `name`, `path`, `dirent` and `stats` (optional). +* :rocket: On Node.js 10.10+ uses the mechanism without additional calls to determine the entry type for performance reasons. See [`old` and `modern` mode](https://github.com/nodelib/nodelib/blob/master/packages/fs/fs.scandir/README.md#old-and-modern-mode). +* :gear: Built-in directories/files and error filtering system. +* :link: Can safely work with broken symbolic links. + +## Install + +```console +npm install @nodelib/fs.walk +``` + +## Usage + +```ts +import * as fsWalk from '@nodelib/fs.walk'; + +fsWalk.walk('path', (error, entries) => { /* … */ }); +``` + +## API + +### .walk(path, [optionsOrSettings], callback) + +Reads the directory recursively and asynchronously. Requires a callback function. + +> :book: If you want to use the Promise API, use `util.promisify`. + +```ts +fsWalk.walk('path', (error, entries) => { /* … */ }); +fsWalk.walk('path', {}, (error, entries) => { /* … */ }); +fsWalk.walk('path', new fsWalk.Settings(), (error, entries) => { /* … */ }); +``` + +### .walkStream(path, [optionsOrSettings]) + +Reads the directory recursively and asynchronously. [Readable Stream](https://nodejs.org/dist/latest-v12.x/docs/api/stream.html#stream_readable_streams) is used as a provider. + +```ts +const stream = fsWalk.walkStream('path'); +const stream = fsWalk.walkStream('path', {}); +const stream = fsWalk.walkStream('path', new fsWalk.Settings()); +``` + +### .walkSync(path, [optionsOrSettings]) + +Reads the directory recursively and synchronously. Returns an array of entries. + +```ts +const entries = fsWalk.walkSync('path'); +const entries = fsWalk.walkSync('path', {}); +const entries = fsWalk.walkSync('path', new fsWalk.Settings()); +``` + +#### path + +* Required: `true` +* Type: `string | Buffer | URL` + +A path to a file. If a URL is provided, it must use the `file:` protocol. + +#### optionsOrSettings + +* Required: `false` +* Type: `Options | Settings` +* Default: An instance of `Settings` class + +An [`Options`](#options) object or an instance of [`Settings`](#settings) class. + +> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class. + +### Settings([options]) + +A class of full settings of the package. + +```ts +const settings = new fsWalk.Settings({ followSymbolicLinks: true }); + +const entries = fsWalk.walkSync('path', settings); +``` + +## Entry + +* `name` — The name of the entry (`unknown.txt`). +* `path` — The path of the entry relative to call directory (`root/unknown.txt`). +* `dirent` — An instance of [`fs.Dirent`](./src/types/index.ts) class. +* [`stats`] — An instance of `fs.Stats` class. + +## Options + +### basePath + +* Type: `string` +* Default: `undefined` + +By default, all paths are built relative to the root path. You can use this option to set custom root path. + +In the example below we read the files from the `root` directory, but in the results the root path will be `custom`. + +```ts +fsWalk.walkSync('root'); // → ['root/file.txt'] +fsWalk.walkSync('root', { basePath: 'custom' }); // → ['custom/file.txt'] +``` + +### concurrency + +* Type: `number` +* Default: `Infinity` + +The maximum number of concurrent calls to `fs.readdir`. + +> :book: The higher the number, the higher performance and the load on the File System. If you want to read in quiet mode, set the value to `4 * os.cpus().length` (4 is default size of [thread pool work scheduling](http://docs.libuv.org/en/v1.x/threadpool.html#thread-pool-work-scheduling)). + +### deepFilter + +* Type: [`DeepFilterFunction`](./src/settings.ts) +* Default: `undefined` + +A function that indicates whether the directory will be read deep or not. + +```ts +// Skip all directories that starts with `node_modules` +const filter: DeepFilterFunction = (entry) => !entry.path.startsWith('node_modules'); +``` + +### entryFilter + +* Type: [`EntryFilterFunction`](./src/settings.ts) +* Default: `undefined` + +A function that indicates whether the entry will be included to results or not. + +```ts +// Exclude all `.js` files from results +const filter: EntryFilterFunction = (entry) => !entry.name.endsWith('.js'); +``` + +### errorFilter + +* Type: [`ErrorFilterFunction`](./src/settings.ts) +* Default: `undefined` + +A function that allows you to skip errors that occur when reading directories. + +For example, you can skip `ENOENT` errors if required: + +```ts +// Skip all ENOENT errors +const filter: ErrorFilterFunction = (error) => error.code == 'ENOENT'; +``` + +### stats + +* Type: `boolean` +* Default: `false` + +Adds an instance of `fs.Stats` class to the [`Entry`](#entry). + +> :book: Always use `fs.readdir` with additional `fs.lstat/fs.stat` calls to determine the entry type. + +### followSymbolicLinks + +* Type: `boolean` +* Default: `false` + +Follow symbolic links or not. Call `fs.stat` on symbolic link if `true`. + +### `throwErrorOnBrokenSymbolicLink` + +* Type: `boolean` +* Default: `true` + +Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`. + +### `pathSegmentSeparator` + +* Type: `string` +* Default: `path.sep` + +By default, this package uses the correct path separator for your OS (`\` on Windows, `/` on Unix-like systems). But you can set this option to any separator character(s) that you want to use instead. + +### `fs` + +* Type: `FileSystemAdapter` +* Default: A default FS methods + +By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own. + +```ts +interface FileSystemAdapter { + lstat: typeof fs.lstat; + stat: typeof fs.stat; + lstatSync: typeof fs.lstatSync; + statSync: typeof fs.statSync; + readdir: typeof fs.readdir; + readdirSync: typeof fs.readdirSync; +} + +const settings = new fsWalk.Settings({ + fs: { lstat: fakeLstat } +}); +``` + +## Changelog + +See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version. + +## License + +This software is released under the terms of the MIT license. diff --git a/node_modules/@nodelib/fs.walk/out/index.d.ts b/node_modules/@nodelib/fs.walk/out/index.d.ts new file mode 100644 index 0000000..8864c7b --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/index.d.ts @@ -0,0 +1,14 @@ +/// +import type { Readable } from 'stream'; +import type { Dirent, FileSystemAdapter } from '@nodelib/fs.scandir'; +import { AsyncCallback } from './providers/async'; +import Settings, { DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction, Options } from './settings'; +import type { Entry } from './types'; +declare function walk(directory: string, callback: AsyncCallback): void; +declare function walk(directory: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void; +declare namespace walk { + function __promisify__(directory: string, optionsOrSettings?: Options | Settings): Promise; +} +declare function walkSync(directory: string, optionsOrSettings?: Options | Settings): Entry[]; +declare function walkStream(directory: string, optionsOrSettings?: Options | Settings): Readable; +export { walk, walkSync, walkStream, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, Options, DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction }; diff --git a/node_modules/@nodelib/fs.walk/out/index.js b/node_modules/@nodelib/fs.walk/out/index.js new file mode 100644 index 0000000..1520787 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/index.js @@ -0,0 +1,34 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0; +const async_1 = require("./providers/async"); +const stream_1 = require("./providers/stream"); +const sync_1 = require("./providers/sync"); +const settings_1 = require("./settings"); +exports.Settings = settings_1.default; +function walk(directory, optionsOrSettingsOrCallback, callback) { + if (typeof optionsOrSettingsOrCallback === 'function') { + new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback); + return; + } + new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback); +} +exports.walk = walk; +function walkSync(directory, optionsOrSettings) { + const settings = getSettings(optionsOrSettings); + const provider = new sync_1.default(directory, settings); + return provider.read(); +} +exports.walkSync = walkSync; +function walkStream(directory, optionsOrSettings) { + const settings = getSettings(optionsOrSettings); + const provider = new stream_1.default(directory, settings); + return provider.read(); +} +exports.walkStream = walkStream; +function getSettings(settingsOrOptions = {}) { + if (settingsOrOptions instanceof settings_1.default) { + return settingsOrOptions; + } + return new settings_1.default(settingsOrOptions); +} diff --git a/node_modules/@nodelib/fs.walk/out/providers/async.d.ts b/node_modules/@nodelib/fs.walk/out/providers/async.d.ts new file mode 100644 index 0000000..0f6717d --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/providers/async.d.ts @@ -0,0 +1,12 @@ +import AsyncReader from '../readers/async'; +import type Settings from '../settings'; +import type { Entry, Errno } from '../types'; +export declare type AsyncCallback = (error: Errno, entries: Entry[]) => void; +export default class AsyncProvider { + private readonly _root; + private readonly _settings; + protected readonly _reader: AsyncReader; + private readonly _storage; + constructor(_root: string, _settings: Settings); + read(callback: AsyncCallback): void; +} diff --git a/node_modules/@nodelib/fs.walk/out/providers/async.js b/node_modules/@nodelib/fs.walk/out/providers/async.js new file mode 100644 index 0000000..51d3be5 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/providers/async.js @@ -0,0 +1,30 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const async_1 = require("../readers/async"); +class AsyncProvider { + constructor(_root, _settings) { + this._root = _root; + this._settings = _settings; + this._reader = new async_1.default(this._root, this._settings); + this._storage = []; + } + read(callback) { + this._reader.onError((error) => { + callFailureCallback(callback, error); + }); + this._reader.onEntry((entry) => { + this._storage.push(entry); + }); + this._reader.onEnd(() => { + callSuccessCallback(callback, this._storage); + }); + this._reader.read(); + } +} +exports.default = AsyncProvider; +function callFailureCallback(callback, error) { + callback(error); +} +function callSuccessCallback(callback, entries) { + callback(null, entries); +} diff --git a/node_modules/@nodelib/fs.walk/out/providers/index.d.ts b/node_modules/@nodelib/fs.walk/out/providers/index.d.ts new file mode 100644 index 0000000..874f60c --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/providers/index.d.ts @@ -0,0 +1,4 @@ +import AsyncProvider from './async'; +import StreamProvider from './stream'; +import SyncProvider from './sync'; +export { AsyncProvider, StreamProvider, SyncProvider }; diff --git a/node_modules/@nodelib/fs.walk/out/providers/index.js b/node_modules/@nodelib/fs.walk/out/providers/index.js new file mode 100644 index 0000000..4c2529c --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/providers/index.js @@ -0,0 +1,9 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SyncProvider = exports.StreamProvider = exports.AsyncProvider = void 0; +const async_1 = require("./async"); +exports.AsyncProvider = async_1.default; +const stream_1 = require("./stream"); +exports.StreamProvider = stream_1.default; +const sync_1 = require("./sync"); +exports.SyncProvider = sync_1.default; diff --git a/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts b/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts new file mode 100644 index 0000000..294185f --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts @@ -0,0 +1,12 @@ +/// +import { Readable } from 'stream'; +import AsyncReader from '../readers/async'; +import type Settings from '../settings'; +export default class StreamProvider { + private readonly _root; + private readonly _settings; + protected readonly _reader: AsyncReader; + protected readonly _stream: Readable; + constructor(_root: string, _settings: Settings); + read(): Readable; +} diff --git a/node_modules/@nodelib/fs.walk/out/providers/stream.js b/node_modules/@nodelib/fs.walk/out/providers/stream.js new file mode 100644 index 0000000..51298b0 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/providers/stream.js @@ -0,0 +1,34 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const stream_1 = require("stream"); +const async_1 = require("../readers/async"); +class StreamProvider { + constructor(_root, _settings) { + this._root = _root; + this._settings = _settings; + this._reader = new async_1.default(this._root, this._settings); + this._stream = new stream_1.Readable({ + objectMode: true, + read: () => { }, + destroy: () => { + if (!this._reader.isDestroyed) { + this._reader.destroy(); + } + } + }); + } + read() { + this._reader.onError((error) => { + this._stream.emit('error', error); + }); + this._reader.onEntry((entry) => { + this._stream.push(entry); + }); + this._reader.onEnd(() => { + this._stream.push(null); + }); + this._reader.read(); + return this._stream; + } +} +exports.default = StreamProvider; diff --git a/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts b/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts new file mode 100644 index 0000000..551c42e --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts @@ -0,0 +1,10 @@ +import SyncReader from '../readers/sync'; +import type Settings from '../settings'; +import type { Entry } from '../types'; +export default class SyncProvider { + private readonly _root; + private readonly _settings; + protected readonly _reader: SyncReader; + constructor(_root: string, _settings: Settings); + read(): Entry[]; +} diff --git a/node_modules/@nodelib/fs.walk/out/providers/sync.js b/node_modules/@nodelib/fs.walk/out/providers/sync.js new file mode 100644 index 0000000..faab6ca --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/providers/sync.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const sync_1 = require("../readers/sync"); +class SyncProvider { + constructor(_root, _settings) { + this._root = _root; + this._settings = _settings; + this._reader = new sync_1.default(this._root, this._settings); + } + read() { + return this._reader.read(); + } +} +exports.default = SyncProvider; diff --git a/node_modules/@nodelib/fs.walk/out/readers/async.d.ts b/node_modules/@nodelib/fs.walk/out/readers/async.d.ts new file mode 100644 index 0000000..9acf4e6 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/readers/async.d.ts @@ -0,0 +1,30 @@ +/// +import { EventEmitter } from 'events'; +import * as fsScandir from '@nodelib/fs.scandir'; +import type Settings from '../settings'; +import type { Entry, Errno } from '../types'; +import Reader from './reader'; +declare type EntryEventCallback = (entry: Entry) => void; +declare type ErrorEventCallback = (error: Errno) => void; +declare type EndEventCallback = () => void; +export default class AsyncReader extends Reader { + protected readonly _settings: Settings; + protected readonly _scandir: typeof fsScandir.scandir; + protected readonly _emitter: EventEmitter; + private readonly _queue; + private _isFatalError; + private _isDestroyed; + constructor(_root: string, _settings: Settings); + read(): EventEmitter; + get isDestroyed(): boolean; + destroy(): void; + onEntry(callback: EntryEventCallback): void; + onError(callback: ErrorEventCallback): void; + onEnd(callback: EndEventCallback): void; + private _pushToQueue; + private _worker; + private _handleError; + private _handleEntry; + private _emitEntry; +} +export {}; diff --git a/node_modules/@nodelib/fs.walk/out/readers/async.js b/node_modules/@nodelib/fs.walk/out/readers/async.js new file mode 100644 index 0000000..ebe8dd5 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/readers/async.js @@ -0,0 +1,97 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const events_1 = require("events"); +const fsScandir = require("@nodelib/fs.scandir"); +const fastq = require("fastq"); +const common = require("./common"); +const reader_1 = require("./reader"); +class AsyncReader extends reader_1.default { + constructor(_root, _settings) { + super(_root, _settings); + this._settings = _settings; + this._scandir = fsScandir.scandir; + this._emitter = new events_1.EventEmitter(); + this._queue = fastq(this._worker.bind(this), this._settings.concurrency); + this._isFatalError = false; + this._isDestroyed = false; + this._queue.drain = () => { + if (!this._isFatalError) { + this._emitter.emit('end'); + } + }; + } + read() { + this._isFatalError = false; + this._isDestroyed = false; + setImmediate(() => { + this._pushToQueue(this._root, this._settings.basePath); + }); + return this._emitter; + } + get isDestroyed() { + return this._isDestroyed; + } + destroy() { + if (this._isDestroyed) { + throw new Error('The reader is already destroyed'); + } + this._isDestroyed = true; + this._queue.killAndDrain(); + } + onEntry(callback) { + this._emitter.on('entry', callback); + } + onError(callback) { + this._emitter.once('error', callback); + } + onEnd(callback) { + this._emitter.once('end', callback); + } + _pushToQueue(directory, base) { + const queueItem = { directory, base }; + this._queue.push(queueItem, (error) => { + if (error !== null) { + this._handleError(error); + } + }); + } + _worker(item, done) { + this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => { + if (error !== null) { + done(error, undefined); + return; + } + for (const entry of entries) { + this._handleEntry(entry, item.base); + } + done(null, undefined); + }); + } + _handleError(error) { + if (this._isDestroyed || !common.isFatalError(this._settings, error)) { + return; + } + this._isFatalError = true; + this._isDestroyed = true; + this._emitter.emit('error', error); + } + _handleEntry(entry, base) { + if (this._isDestroyed || this._isFatalError) { + return; + } + const fullpath = entry.path; + if (base !== undefined) { + entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); + } + if (common.isAppliedFilter(this._settings.entryFilter, entry)) { + this._emitEntry(entry); + } + if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { + this._pushToQueue(fullpath, base === undefined ? undefined : entry.path); + } + } + _emitEntry(entry) { + this._emitter.emit('entry', entry); + } +} +exports.default = AsyncReader; diff --git a/node_modules/@nodelib/fs.walk/out/readers/common.d.ts b/node_modules/@nodelib/fs.walk/out/readers/common.d.ts new file mode 100644 index 0000000..5985f97 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/readers/common.d.ts @@ -0,0 +1,7 @@ +import type { FilterFunction } from '../settings'; +import type Settings from '../settings'; +import type { Errno } from '../types'; +export declare function isFatalError(settings: Settings, error: Errno): boolean; +export declare function isAppliedFilter(filter: FilterFunction | null, value: T): boolean; +export declare function replacePathSegmentSeparator(filepath: string, separator: string): string; +export declare function joinPathSegments(a: string, b: string, separator: string): string; diff --git a/node_modules/@nodelib/fs.walk/out/readers/common.js b/node_modules/@nodelib/fs.walk/out/readers/common.js new file mode 100644 index 0000000..a93572f --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/readers/common.js @@ -0,0 +1,31 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0; +function isFatalError(settings, error) { + if (settings.errorFilter === null) { + return true; + } + return !settings.errorFilter(error); +} +exports.isFatalError = isFatalError; +function isAppliedFilter(filter, value) { + return filter === null || filter(value); +} +exports.isAppliedFilter = isAppliedFilter; +function replacePathSegmentSeparator(filepath, separator) { + return filepath.split(/[/\\]/).join(separator); +} +exports.replacePathSegmentSeparator = replacePathSegmentSeparator; +function joinPathSegments(a, b, separator) { + if (a === '') { + return b; + } + /** + * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`). + */ + if (a.endsWith(separator)) { + return a + b; + } + return a + separator + b; +} +exports.joinPathSegments = joinPathSegments; diff --git a/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts b/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts new file mode 100644 index 0000000..e1f383b --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts @@ -0,0 +1,6 @@ +import type Settings from '../settings'; +export default class Reader { + protected readonly _root: string; + protected readonly _settings: Settings; + constructor(_root: string, _settings: Settings); +} diff --git a/node_modules/@nodelib/fs.walk/out/readers/reader.js b/node_modules/@nodelib/fs.walk/out/readers/reader.js new file mode 100644 index 0000000..782f07c --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/readers/reader.js @@ -0,0 +1,11 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const common = require("./common"); +class Reader { + constructor(_root, _settings) { + this._root = _root; + this._settings = _settings; + this._root = common.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator); + } +} +exports.default = Reader; diff --git a/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts b/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts new file mode 100644 index 0000000..af41033 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts @@ -0,0 +1,15 @@ +import * as fsScandir from '@nodelib/fs.scandir'; +import type { Entry } from '../types'; +import Reader from './reader'; +export default class SyncReader extends Reader { + protected readonly _scandir: typeof fsScandir.scandirSync; + private readonly _storage; + private readonly _queue; + read(): Entry[]; + private _pushToQueue; + private _handleQueue; + private _handleDirectory; + private _handleError; + private _handleEntry; + private _pushToStorage; +} diff --git a/node_modules/@nodelib/fs.walk/out/readers/sync.js b/node_modules/@nodelib/fs.walk/out/readers/sync.js new file mode 100644 index 0000000..9a8d5a6 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/readers/sync.js @@ -0,0 +1,59 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fsScandir = require("@nodelib/fs.scandir"); +const common = require("./common"); +const reader_1 = require("./reader"); +class SyncReader extends reader_1.default { + constructor() { + super(...arguments); + this._scandir = fsScandir.scandirSync; + this._storage = []; + this._queue = new Set(); + } + read() { + this._pushToQueue(this._root, this._settings.basePath); + this._handleQueue(); + return this._storage; + } + _pushToQueue(directory, base) { + this._queue.add({ directory, base }); + } + _handleQueue() { + for (const item of this._queue.values()) { + this._handleDirectory(item.directory, item.base); + } + } + _handleDirectory(directory, base) { + try { + const entries = this._scandir(directory, this._settings.fsScandirSettings); + for (const entry of entries) { + this._handleEntry(entry, base); + } + } + catch (error) { + this._handleError(error); + } + } + _handleError(error) { + if (!common.isFatalError(this._settings, error)) { + return; + } + throw error; + } + _handleEntry(entry, base) { + const fullpath = entry.path; + if (base !== undefined) { + entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); + } + if (common.isAppliedFilter(this._settings.entryFilter, entry)) { + this._pushToStorage(entry); + } + if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { + this._pushToQueue(fullpath, base === undefined ? undefined : entry.path); + } + } + _pushToStorage(entry) { + this._storage.push(entry); + } +} +exports.default = SyncReader; diff --git a/node_modules/@nodelib/fs.walk/out/settings.d.ts b/node_modules/@nodelib/fs.walk/out/settings.d.ts new file mode 100644 index 0000000..d1c4b45 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/settings.d.ts @@ -0,0 +1,30 @@ +import * as fsScandir from '@nodelib/fs.scandir'; +import type { Entry, Errno } from './types'; +export declare type FilterFunction = (value: T) => boolean; +export declare type DeepFilterFunction = FilterFunction; +export declare type EntryFilterFunction = FilterFunction; +export declare type ErrorFilterFunction = FilterFunction; +export interface Options { + basePath?: string; + concurrency?: number; + deepFilter?: DeepFilterFunction; + entryFilter?: EntryFilterFunction; + errorFilter?: ErrorFilterFunction; + followSymbolicLinks?: boolean; + fs?: Partial; + pathSegmentSeparator?: string; + stats?: boolean; + throwErrorOnBrokenSymbolicLink?: boolean; +} +export default class Settings { + private readonly _options; + readonly basePath?: string; + readonly concurrency: number; + readonly deepFilter: DeepFilterFunction | null; + readonly entryFilter: EntryFilterFunction | null; + readonly errorFilter: ErrorFilterFunction | null; + readonly pathSegmentSeparator: string; + readonly fsScandirSettings: fsScandir.Settings; + constructor(_options?: Options); + private _getValue; +} diff --git a/node_modules/@nodelib/fs.walk/out/settings.js b/node_modules/@nodelib/fs.walk/out/settings.js new file mode 100644 index 0000000..d7a85c8 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/settings.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const path = require("path"); +const fsScandir = require("@nodelib/fs.scandir"); +class Settings { + constructor(_options = {}) { + this._options = _options; + this.basePath = this._getValue(this._options.basePath, undefined); + this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY); + this.deepFilter = this._getValue(this._options.deepFilter, null); + this.entryFilter = this._getValue(this._options.entryFilter, null); + this.errorFilter = this._getValue(this._options.errorFilter, null); + this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep); + this.fsScandirSettings = new fsScandir.Settings({ + followSymbolicLinks: this._options.followSymbolicLinks, + fs: this._options.fs, + pathSegmentSeparator: this._options.pathSegmentSeparator, + stats: this._options.stats, + throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink + }); + } + _getValue(option, value) { + return option !== null && option !== void 0 ? option : value; + } +} +exports.default = Settings; diff --git a/node_modules/@nodelib/fs.walk/out/types/index.d.ts b/node_modules/@nodelib/fs.walk/out/types/index.d.ts new file mode 100644 index 0000000..6ee9bd3 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/types/index.d.ts @@ -0,0 +1,8 @@ +/// +import type * as scandir from '@nodelib/fs.scandir'; +export declare type Entry = scandir.Entry; +export declare type Errno = NodeJS.ErrnoException; +export interface QueueItem { + directory: string; + base?: string; +} diff --git a/node_modules/@nodelib/fs.walk/out/types/index.js b/node_modules/@nodelib/fs.walk/out/types/index.js new file mode 100644 index 0000000..c8ad2e5 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/out/types/index.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@nodelib/fs.walk/package.json b/node_modules/@nodelib/fs.walk/package.json new file mode 100644 index 0000000..86bfce4 --- /dev/null +++ b/node_modules/@nodelib/fs.walk/package.json @@ -0,0 +1,44 @@ +{ + "name": "@nodelib/fs.walk", + "version": "1.2.8", + "description": "A library for efficiently walking a directory recursively", + "license": "MIT", + "repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.walk", + "keywords": [ + "NodeLib", + "fs", + "FileSystem", + "file system", + "walk", + "scanner", + "crawler" + ], + "engines": { + "node": ">= 8" + }, + "files": [ + "out/**", + "!out/**/*.map", + "!out/**/*.spec.*", + "!out/**/tests/**" + ], + "main": "out/index.js", + "typings": "out/index.d.ts", + "scripts": { + "clean": "rimraf {tsconfig.tsbuildinfo,out}", + "lint": "eslint \"src/**/*.ts\" --cache", + "compile": "tsc -b .", + "compile:watch": "tsc -p . --watch --sourceMap", + "test": "mocha \"out/**/*.spec.js\" -s 0", + "build": "npm run clean && npm run compile && npm run lint && npm test", + "watch": "npm run clean && npm run compile:watch" + }, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "devDependencies": { + "@nodelib/fs.macchiato": "1.0.4" + }, + "gitHead": "1e5bad48565da2b06b8600e744324ea240bf49d8" +} diff --git a/node_modules/awilix/LICENSE.md b/node_modules/awilix/LICENSE.md new file mode 100644 index 0000000..f7009a3 --- /dev/null +++ b/node_modules/awilix/LICENSE.md @@ -0,0 +1,21 @@ +# The MIT License (MIT) + +Copyright (c) Jeff Hansen 2016 to present. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/node_modules/awilix/README.md b/node_modules/awilix/README.md new file mode 100644 index 0000000..3f76423 --- /dev/null +++ b/node_modules/awilix/README.md @@ -0,0 +1,1357 @@ +# Awilix + +[![npm](https://img.shields.io/npm/v/awilix.svg?maxAge=1000)](https://www.npmjs.com/package/awilix) +[![CI](https://github.com/jeffijoe/awilix/actions/workflows/ci.yml/badge.svg)](https://github.com/jeffijoe/awilix/actions/workflows/ci.yml) +[![Coveralls](https://img.shields.io/coveralls/jeffijoe/awilix.svg?maxAge=1000)](https://coveralls.io/github/jeffijoe/awilix) +[![npm](https://img.shields.io/npm/dt/awilix.svg?maxAge=1000)](https://www.npmjs.com/package/awilix) +[![npm](https://img.shields.io/npm/l/awilix.svg?maxAge=1000)](https://github.com/jeffijoe/awilix/blob/master/LICENSE.md) +[![node](https://img.shields.io/node/v/awilix.svg?maxAge=1000)](https://www.npmjs.com/package/awilix) +[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) + +Extremely powerful **Dependency Injection** (DI) container for JavaScript/Node, +written in [TypeScript](http://typescriptlang.org). **Make IoC great again!** + +> Check out this +> [intro to Dependency Injection with Awilix](https://medium.com/@Jeffijoe/dependency-injection-in-node-js-2016-edition-f2a88efdd427) + +# Table of Contents + +- [Awilix](#awilix) +- [Table of Contents](#table-of-contents) +- [Installation](#installation) +- [Usage](#usage) +- [Lifetime management](#lifetime-management) + - [Scoped lifetime](#scoped-lifetime) +- [Injection modes](#injection-modes) +- [Auto-loading modules](#auto-loading-modules) +- [Per-module local injections](#per-module-local-injections) +- [Inlining resolver options](#inlining-resolver-options) +- [Disposing](#disposing) +- [API](#api) + - [The `awilix` object](#the-awilix-object) + - [Resolver options](#resolver-options) + - [`createContainer()`](#createcontainer) + - [`asFunction()`](#asfunction) + - [`asClass()`](#asclass) + - [`asValue()`](#asvalue) + - [`aliasTo()`](#aliasto) + - [`listModules()`](#listmodules) + - [`AwilixResolutionError`](#awilixresolutionerror) + - [The `AwilixContainer` object](#the-awilixcontainer-object) + - [`container.cradle`](#containercradle) + - [`container.registrations`](#containerregistrations) + - [`container.cache`](#containercache) + - [`container.options`](#containeroptions) + - [`container.resolve()`](#containerresolve) + - [`container.register()`](#containerregister) + - [`container.hasRegistration()`](#containerhasregistration) + - [`container.loadModules()`](#containerloadmodules) + - [`container.createScope()`](#containercreatescope) + - [`container.build()`](#containerbuild) + - [`container.dispose()`](#containerdispose) +- [Universal Module (Browser Support)](#universal-module-browser-support) + - [Contributing](#contributing) +- [What's in a name?](#whats-in-a-name) +- [Author](#author) + +# Installation + +Install with `npm` + +``` +npm install awilix +``` + +Or `yarn` + +``` +yarn add awilix +``` + +You can also use the [UMD](https://github.com/umdjs/umd) build from `unpkg` + +```html + +``` + +# Usage + +Awilix has a pretty simple API (but with many possible ways to invoke it). At +minimum, you need to do 3 things: + +- Create a container +- Register some modules in it +- Resolve and use! + +`index.js` + +```javascript +const awilix = require('awilix') + +// Create the container and set the injectionMode to PROXY (which is also the default). +const container = awilix.createContainer({ + injectionMode: awilix.InjectionMode.PROXY +}) + +// This is our app code... We can use +// factory functions, constructor functions +// and classes freely. +class UserController { + // We are using constructor injection. + constructor(opts) { + // Save a reference to our dependency. + this.userService = opts.userService + } + + // imagine ctx is our HTTP request context... + getUser(ctx) { + return this.userService.getUser(ctx.params.id) + } +} + +container.register({ + // Here we are telling Awilix how to resolve a + // userController: by instantiating a class. + userController: awilix.asClass(UserController) +}) + +// Let's try with a factory function. +const makeUserService = ({ db }) => { + // Notice how we can use destructuring + // to access dependencies + return { + getUser: id => { + return db.query(`select * from users where id=${id}`) + } + } +} + +container.register({ + // the `userService` is resolved by + // invoking the function. + userService: awilix.asFunction(makeUserService) +}) + +// Alright, now we need a database. +// Let's make that a constructor function. +// Notice how the dependency is referenced by name +// directly instead of destructuring an object. +// This is because we register it in "CLASSIC" +// injection mode below. +function Database(connectionString, timeout) { + // We can inject plain values as well! + this.conn = connectToYourDatabaseSomehow(connectionString, timeout) +} + +Database.prototype.query = function(sql) { + // blah.... + return this.conn.rawSql(sql) +} + +// We use register coupled with asClass to tell Awilix to +// use `new Database(...)` instead of just `Database(...)`. +// We also want to use `CLASSIC` injection mode for this +// registration. Read more about injection modes below. +container.register({ + db: awilix.asClass(Database).classic() +}) + +// Lastly we register the connection string and timeout values +// as we need them in the Database constructor. +container.register({ + // We can register things as-is - this is not just + // limited to strings and numbers, it can be anything, + // really - they will be passed through directly. + connectionString: awilix.asValue(process.env.CONN_STR), + timeout: awilix.asValue(1000) +}) + +// We have now wired everything up! +// Let's use it! (use your imagination with the router thing..) +router.get('/api/users/:id', container.resolve('userController').getUser) + +// Alternatively, using the `cradle` proxy.. +router.get('/api/users/:id', container.cradle.userController.getUser) + +// Using `container.cradle.userController` is actually the same as calling +// `container.resolve('userController')` - the cradle is our proxy! +``` + +That example is rather lengthy, but if you extract things to their proper files +it becomes more manageable. + +[Check out a working Koa example!](/examples/koa) + +# Lifetime management + +Awilix supports managing the lifetime of instances. This means that you can +control whether objects are resolved and used once, cached within a certain +scope, or cached for the lifetime of the process. + +There are 3 lifetime types available. + +- `Lifetime.TRANSIENT`: This is the default. The registration is resolved every + time it is needed. This means if you resolve a class more than once, you will + get back a new instance every time. +- `Lifetime.SCOPED`: The registration is scoped to the container - that means + that the resolved value will be reused when resolved from the same scope (or a + child scope). +- `Lifetime.SINGLETON`: The registration is always reused no matter what - that + means that the resolved value is cached in the root container. + +They are exposed on the `awilix.Lifetime` object. + +```js +const Lifetime = awilix.Lifetime +``` + +To register a module with a specific lifetime: + +```js +const { asClass, asFunction, asValue } = awilix + +class MailService {} + +container.register({ + mailService: asClass(MailService, { lifetime: Lifetime.SINGLETON }) +}) + +// or using the chaining configuration API.. +container.register({ + mailService: asClass(MailService).setLifetime(Lifetime.SINGLETON) +}) + +// or.. +container.register({ + mailService: asClass(MailService).singleton() +}) + +// or....... +container.register('mailService', asClass(MailService, { lifetime: SINGLETON })) +``` + +## Scoped lifetime + +In web applications, managing state without depending too much on the web +framework can get difficult. Having to pass tons of information into every +function just to make the right choices based on the authenticated user. + +Scoped lifetime in Awilix makes this simple - and fun! + +```js +const { createContainer, asClass, asValue } = awilix +const container = createContainer() + +class MessageService { + constructor({ currentUser }) { + this.user = currentUser + } + + getMessages() { + const id = this.user.id + // wee! + } +} + +container.register({ + messageService: asClass(MessageService).scoped() +}) + +// imagine middleware in some web framework.. +app.use((req, res, next) => { + // create a scoped container + req.scope = container.createScope() + + // register some request-specific data.. + req.scope.register({ + currentUser: asValue(req.user) + }) + + next() +}) + +app.get('/messages', (req, res) => { + // for each request we get a new message service! + const messageService = req.scope.resolve('messageService') + messageService.getMessages().then(messages => { + res.send(200, messages) + }) +}) + +// The message service can now be tested +// without depending on any request data! +``` + +**IMPORTANT!** If a singleton is resolved, and it depends on a scoped or +transient registration, those will remain in the singleton for it's lifetime! + +```js +const makePrintTime = ({ time }) => () => { + console.log('Time:', time) +} + +const getTime = () => new Date().toString() + +container.register({ + printTime: asFunction(makePrintTime).singleton(), + time: asFunction(getTime).transient() +}) + +// Resolving `time` 2 times will +// invoke `getTime` 2 times. +container.resolve('time') +container.resolve('time') + +// These will print the same timestamp at all times, +// because `printTime` is singleton and +// `getTime` was invoked when making the singleton. +container.resolve('printTime')() +container.resolve('printTime')() +``` + +Read the documentation for [`container.createScope()`](#containercreatescope) +for more examples. + +# Injection modes + +The injection mode determines how a function/constructor receives its +dependencies. Pre-2.3.0, only one mode was supported - `PROXY` - which remains +the default mode. + +Awilix v2.3.0 introduced an alternative injection mode: `CLASSIC`. The injection +modes are available on `awilix.InjectionMode` + +- `InjectionMode.PROXY` (default): Injects a proxy to functions/constructors + which looks like a regular object. + + ```js + class UserService { + constructor(opts) { + this.emailService = opts.emailService + this.logger = opts.logger + } + } + ``` + + or with destructuring: + + ```js + class UserService { + constructor({ emailService, logger }) { + this.emailService = emailService + this.logger = logger + } + } + ``` + +- `InjectionMode.CLASSIC`: Parses the function/constructor parameters, and + matches them with registrations in the container. `CLASSIC` mode has a + slightly higher initialization cost as it has to parse the function/class + to figure out the dependencies at the time of registration, however resolving + them will be **much faster** than when using `PROXY`. _Don't use `CLASSIC` if + you minify your code!_ We recommend using `CLASSIC` in Node and `PROXY` in + environments where minification is needed. + + ```js + class UserService { + constructor(emailService, logger) { + this.emailService = emailService + this.logger = logger + } + } + ``` + + Additionally, if the class has a base class but does not declare a constructor of its own, Awilix + simply invokes the base constructor with whatever dependencies it requires. + + ```js + class Car { + constructor(engine) { + this.engine = engine + } + } + + class Porsche extends Car { + vroom() { + console.log(this.engine) // whatever "engine" is + } + } + ``` + +Injection modes can be set per-container and per-resolver. The most specific one +wins. + +> Note: I personally don't see why you would want to have different injection +> modes in a project, but if the need arises, Awilix supports it. + +**Container-wide**: + +```js +const { createContainer, InjectionMode } = require('awilix') + +const container = createContainer({ injectionMode: InjectionMode.CLASSIC }) +``` + +**Per resolver**: + +```js +const container = createContainer() + +container.register({ + logger: asClass(Logger).classic(), + // or.. + emailService: asFunction(makeEmailService).proxy() + // or.. + notificationService: asClass(NotificationService).setInjectionMode(InjectionMode.CLASSIC) +}) + +// or.. +container.register({ + logger: asClass(Logger, { injectionMode: InjectionMode.CLASSIC }) +}) +``` + +**For auto-loading modules**: + +```js +const container = createContainer() +container.loadModules(['services/**/*.js', 'repositories/**/*.js'], { + resolverOptions: { + injectionMode: InjectionMode.CLASSIC + } +}) +``` + +Choose whichever fits your style. + +- `PROXY` _technically_ allows you to defer pulling dependencies (for circular + dependency support), but **this isn't recommended**. +- `CLASSIC` feels more like the DI you're used to in other languages. +- `PROXY` is more descriptive, and makes for more readable tests; when unit + testing your classes/functions without using Awilix, you don't have to worry + about parameter ordering like you would with `CLASSIC`. +- Performance-wise, `CLASSIC` is _slightly_ faster because it only reads the + dependencies from the constructor/function _once_ (when `asClass`/`asFunction` + is called), whereas accessing dependencies on the Proxy _may_ incur slight + overhead for each resolve. +- **`CLASSIC` will not work when your code is minified!** It reads the function + signature to determine what dependencies to inject. Minifiers will usually + mangle these names. + +Here's an example outlining the testability points raised. + +```js +// CLASSIC +function database(connectionString, timeout, logger) { + // ... +} + +// Shorter, but less readable, order-sensitive +const db = database('localhost:1337;user=123...', 4000, new LoggerMock()) + +// PROXY +function database({ connectionString, timeout, logger }) { + // ... +} + +// Longer, more readable, order does not matter +const db = database({ + logger: new LoggerMock(), + timeout: 4000, + connectionString: 'localhost:1337;user=123...' +}) +``` + +# Auto-loading modules + +When you have created your container, registering 100's of classes can get +boring. You can automate this by using `loadModules`. + +> **Important**: auto-loading looks at a file's **default export**, which can be: +> +> - `module.exports = ...` +> - `module.exports.default = ...` +> - `export default ...` +> +> To load a non-default export, set the `[RESOLVER]` property on it: +> +> ```js +> const { RESOLVER } = require('awilix') +> export class ServiceClass {} +> ServiceClass[RESOLVER] = {} +> ``` +> +> Or even more concise using TypeScript: +> +> ```typescript +> // TypeScript +> import { RESOLVER } from 'awilix' +> export class ServiceClass { +> static [RESOLVER] = {} +> } +> ``` + +Note that **multiple** services can be registered per file, i.e. it is +possible to have a file with a default export and named exports and for +all of them to be loaded. The named exports do require the `RESOLVER` +token to be recognized. + +Imagine this app structure: + +- `app` + - `services` + - `UserService.js` - exports an ES6 `class UserService {}` + - `emailService.js` - exports a factory function + `function makeEmailService() {}` + - `repositories` + - `UserRepository.js` - exports an ES6 `class UserRepository {}` + - `index.js` - our main script + +In our main script we would do the following: + +```js +const awilix = require('awilix') + +const container = awilix.createContainer() + +// Load our modules! +container.loadModules([ + // Globs! + [ + // To have different resolverOptions for specific modules. + 'models/**/*.js', + { + register: awilix.asValue, + lifetime: Lifetime.SINGLETON + } + ], + 'services/**/*.js', + 'repositories/**/*.js' +], { + // We want to register `UserService` as `userService` - + // by default loaded modules are registered with the + // name of the file (minus the extension) + formatName: 'camelCase', + // Apply resolver options to all modules. + resolverOptions: { + // We can give these auto-loaded modules + // the deal of a lifetime! (see what I did there?) + // By default it's `TRANSIENT`. + lifetime: Lifetime.SINGLETON, + // We can tell Awilix what to register everything as, + // instead of guessing. If omitted, will inspect the + // module to determine what to register as. + register: awilix.asClass + } +) + +// We are now ready! We now have a userService, userRepository and emailService! +container.resolve('userService').getUser(1) +``` + +**Important**: Auto-loading relies on `glob` and therefore does not work with +bundlers like Webpack, Rollup and Browserify. + +# Per-module local injections + +Some modules might need some additional configuration values than just +dependencies. + +For example, our `userRepository` wants a `db` module which is registered with +the container, but it also wants a `timeout` value. `timeout` is a very generic +name and we don't want to register that as a value that can be accessed by all +modules in the container (maybe other modules have a different timeout?) + +```js +export default function userRepository({ db, timeout }) { + return { + find() { + return Promise.race([ + db.query('select * from users'), + Promise.delay(timeout).then(() => + Promise.reject(new Error('Timed out')) + ) + ]) + } + } +} +``` + +Awilix 2.5 added per-module local injections. The following snippet contains +_all_ the possible ways to set this up. + +```js +import { createContainer, Lifetime, asFunction } from 'awilix' +import createUserRepository from './repositories/userRepository' + +const container = createContainer() + // Using the fluid variant: + .register({ + userRepository: asFunction(createUserRepository) + // Provide an injection function that returns an object with locals. + // The function is called once per resolve of the registration + // it is attached to. + .inject(() => ({ timeout: 2000 })) + }) + + // Shorthand variants + .register({ + userRepository: asFunction(createUserRepository, { + injector: () => ({ timeout: 2000 }) + }) + }) + + // Stringly-typed shorthand + .register( + 'userRepository', + asFunction(createUserRepository, { + injector: () => ({ timeout: 2000 }) + }) + ) + + // with `loadModules` + .loadModules([['repositories/*.js', { injector: () => ({ timeout: 2000 }) }]]) +``` + +Now `timeout` is only available to the modules it was configured for. + +**IMPORTANT**: the way this works is by wrapping the `cradle` in another proxy +that provides the returned values from the `inject` function. This means if you +pass along the injected cradle object, anything with access to it can access the +local injections. + +# Inlining resolver options + +Awilix 2.8 added support for inline resolver options. This is best explained +with an example. + +**services/awesome-service.js**: + +```js +import { RESOLVER, Lifetime, InjectionMode } from 'awilix' + +export default class AwesomeService { + constructor(awesomeRepository) { + this.awesomeRepository = awesomeRepository + } +} + +// `RESOLVER` is a Symbol. +AwesomeService[RESOLVER] = { + lifetime: Lifetime.SCOPED, + injectionMode: InjectionMode.CLASSIC +} +``` + +**index.js**: + +```js +import { createContainer, asClass } from 'awilix' +import AwesomeService from './services/awesome-service.js' + +const container = createContainer().register({ + awesomeService: asClass(AwesomeService) +}) + +console.log(container.registrations.awesomeService.lifetime) // 'SCOPED' +console.log(container.registrations.awesomeService.injectionMode) // 'CLASSIC' +``` + +Additionally, if we add a `name` field and use `loadModules`, the `name` is used +for registration (ignoring `formatName` if provided). + +```diff +// `RESOLVER` is a Symbol. +AwesomeService[RESOLVER] = { ++ name: 'superService', + lifetime: Lifetime.SCOPED, + injectionMode: InjectionMode.CLASSIC +} +``` + +```js +const container = createContainer().loadModules(['services/*.js']) +console.log(container.registrations.superService.lifetime) // 'SCOPED' +console.log(container.registrations.superService.injectionMode) // 'CLASSIC' +``` + +**Important**: the `name` field is only used by `loadModules`. + +# Disposing + +As of Awilix v3.0, you can call `container.dispose()` to clear the resolver +cache and call any registered disposers. This is very useful to properly dispose +resources like connection pools, and especially when using watch-mode in your +integration tests. + +For example, database connection libraries usually have some sort of `destroy` +or `end` function to close the connection. You can tell Awilix to call these for +you when calling `container.dispose()`. + +**Important:** the container being disposed **will not dispose its' scopes**. It +only disposes values **in it's own cache**. + +```js +import { createContainer, asClass } from 'awilix' +import pg from 'pg' + +class TodoStore { + constructor({ pool }) { + this.pool = pool + } + + async getTodos() { + const result = await this.pool.query('SELECT * FROM todos') + return result.rows + } +} + +function configureContainer() { + return container.register({ + todoStore: asClass(TodoStore), + pool: asFunction(() => new pg.Pool()) + // Disposables must be either `scoped` or `singleton`. + .singleton() + // This is called when the pool is going to be disposed. + // If it returns a Promise, it will be awaited by `dispose`. + .disposer(pool => pool.end()) + }) +} + +const container = configureContainer() +const todoStore = container.resolve('todoStore') + +// Later... +container.dispose().then(() => { + console.log('Container has been disposed!') +}) +``` + +A perfect use case for this would be when using Awilix with an HTTP server. + +```js +import express from 'express' +import http from 'http' + +function createServer() { + const app = express() + const container = configureContainer() + app.get('/todos', async (req, res) => { + const store = container.resolve('todoStore') + const todos = await store.getTodos() + res.status(200).json(todos) + }) + + const server = http.createServer(app) + // Dispose container when the server closes. + server.on('close', () => container.dispose()) + return server +} + +test('server does server things', async () => { + const server = createServer() + server.listen(3000) + + /// .. run your tests.. + + // Disposes everything, and your process no + // longer hangs on to zombie connections! + server.close() +}) +``` + +# API + +## The `awilix` object + +When importing `awilix`, you get the following top-level API: + +- `createContainer` +- `listModules` +- `AwilixResolutionError` +- `asValue` +- `asFunction` +- `asClass` +- `aliasTo` +- `Lifetime` - documented above. +- `InjectionMode` - documented above. + +These are documented below. + +## Resolver options + +Whenever you see a place where you can pass in **resolver options**, you can +pass in an object with the following props: + +- `lifetime`: An `awilix.Lifetime.*` string, such as `awilix.Lifetime.SCOPED` +- `injectionMode`: An `awilix.InjectionMode.*` string, such as + `awilix.InjectionMode.CLASSIC` +- `injector`: An injector function - see + [Per-module local injections](#per-module-local-injections) +- `register`: Only used in `loadModules`, determines how to register a loaded + module explicitly + +**Examples of usage:** + +```js +container.register({ + stuff: asClass(MyClass, { injectionMode: InjectionMode.CLASSIC }) +}) + +container.loadModules([['some/path/to/*.js', { register: asClass }]], { + resolverOptions: { + lifetime: Lifetime.SCOPED + } +}) +``` + +## `createContainer()` + +Creates a new Awilix container. The container stuff is documented further down. + +Args: + +- `options`: Options object. Optional. + - `options.require`: The function to use when requiring modules. Defaults to + `require`. Useful when using something like + [`require-stack`](https://npmjs.org/package/require-stack). Optional. + - `options.injectionMode`: Determines the method for resolving dependencies. + Valid modes are: + - `PROXY`: Uses the `awilix` default dependency resolution mechanism (I.E. + injects the cradle into the function or class). This is the default + injection mode. + - `CLASSIC`: Uses the named dependency resolution mechanism. Dependencies + **_must_** be named exactly like they are in the registration. For + example, a dependency registered as `repository` cannot be referenced in a + class constructor as `repo`. + +## `asFunction()` + +Used with `container.register({ userService: asFunction(makeUserService) })`. +Tells Awilix to invoke the function without any context. + +The returned resolver has the following chainable (fluid) API: + +- `asFunction(fn).setLifetime(lifetime: string)`: sets the lifetime of the + registration to the given value. +- `asFunction(fn).transient()`: same as + `asFunction(fn).setLifetime(Lifetime.TRANSIENT)`. +- `asFunction(fn).scoped()`: same as + `asFunction(fn).setLifetime(Lifetime.SCOPED)`. +- `asFunction(fn).singleton()`: same as + `asFunction(fn).setLifetime(Lifetime.SINGLETON)`. +- `asFunction(fn).inject(injector: Function)`: Let's you provide local + dependencies only available to this module. The `injector` gets the container + passed as the first and only argument and should return an object. + +## `asClass()` + +Used with `container.register({ userService: asClass(UserService) })`. Tells +Awilix to instantiate the given function as a class using `new`. + +The returned resolver has the same chainable API as [`asFunction`](#asfunction). + +## `asValue()` + +Used with `container.register({ dbHost: asValue('localhost') })`. Tells Awilix +to provide the given value as-is. + +## `aliasTo()` + +Resolves the dependency specified. + +```js +container.register({ + val: asValue(123), + aliasVal: aliasTo('val') +}) + +container.resolve('aliasVal') === container.resolve('val') +``` + +## `listModules()` + +Returns an array of `{name, path}` pairs, where the name is the module name, and +path is the actual full path to the module. + +This is used internally, but is useful for other things as well, e.g. +dynamically loading an `api` folder. + +Args: + +- `globPatterns`: a glob pattern string, or an array of them. +- `opts.cwd`: The current working directory passed to `glob`. Defaults to + `process.cwd()`. +- **returns**: an array of objects with: + - `name`: The module name - e.g. `db` + - `path`: The path to the module relative to `options.cwd` - e.g. `lib/db.js` + +Example: + +```js +const listModules = require('awilix').listModules + +const result = listModules(['services/*.js']) + +console.log(result) +// << [{ name: 'someService', path: 'path/to/services/someService.js' }] +``` + +**Important**: `listModules` relies on `glob` and therefore is not supported +with bundlers like Webpack, Rollup and Browserify. + +## `AwilixResolutionError` + +This is a special error thrown when Awilix is unable to resolve all dependencies +(due to missing or cyclic dependencies). You can catch this error and use +`err instanceof AwilixResolutionError` if you wish. It will tell you what +dependencies it could not find or which ones caused a cycle. + +## The `AwilixContainer` object + +The container returned from `createContainer` has some methods and properties. + +### `container.cradle` + +**Behold! This is where the magic happens!** The `cradle` is a proxy, and all +getters will trigger a `container.resolve`. The `cradle` is actually being +passed to the constructor/factory function, which is how everything gets wired +up. + +### `container.registrations` + +A read-only getter that returns the internal registrations. When invoked on a +_scope_, will show registrations for it's parent, and it's parent's parent, and +so on. + +Not really useful for public use. + +### `container.cache` + +A `Map` used internally for caching resolutions. Not meant +for public use but if you find it useful, go ahead but tread carefully. + +Each scope has it's own cache, and checks the cache of it's ancestors. + +```js +let counter = 1 +container.register({ + count: asFunction(() => counter++).singleton() +}) + +container.cradle.count === 1 +container.cradle.count === 1 + +container.cache.delete('count') +container.cradle.count === 2 +``` + +### `container.options` + +Options passed to `createContainer` are stored here. + +```js +const container = createContainer({ + injectionMode: InjectionMode.CLASSIC +}) + +console.log(container.options.injectionMode) // 'CLASSIC' +``` + +### `container.resolve()` + +Resolves the registration with the given name. Used by the cradle. + +**Signature** + +- `resolve(name: string, [resolveOpts: ResolveOptions]): T` + +```js +container.register({ + leet: asFunction(() => 1337) +}) + +container.resolve('leet') === 1337 +container.cradle.leet === 1337 +``` + +The optional `resolveOpts` has the following fields: + +- `allowUnregistered`: if `true`, returns `undefined` when the dependency does + not exist, instead of throwing an error. + +### `container.register()` + +**Signatures** + +- `register(name: string, resolver: Resolver): AwilixContainer` +- `register(nameAndResolverPair: NameAndResolverPair): AwilixContainer` + +Awilix needs to know how to resolve the modules, so let's pull out the resolver +functions: + +```js +const awilix = require('awilix') +const { asValue, asFunction, asClass } = awilix +``` + +- `asValue`: Resolves the given value as-is. +- `asFunction`: Resolve by invoking the function with the container cradle as + the first and only argument. +- `asClass`: Like `asFunction` but uses `new`. + +Now we need to use them. There are multiple syntaxes for the `register` +function, pick the one you like the most - or use all of them, I don't really +care! :sunglasses: + +**Both styles supports chaining! `register` returns the container!** + +```js +// name-resolver +container.register('connectionString', asValue('localhost:1433;user=...')) +container.register('mailService', asFunction(makeMailService)) +container.register('context', asClass(SessionContext)) + +// object +container.register({ + connectionString: asValue('localhost:1433;user=...'), + mailService: asFunction(makeMailService, { lifetime: Lifetime.SINGLETON }), + context: asClass(SessionContext, { lifetime: Lifetime.SCOPED }) +}) + +// `asClass` and `asFunction` also supports a fluid syntax. +// This... +container.register( + 'mailService', + asFunction(makeMailService).setLifetime(Lifetime.SINGLETON) +) +// .. is the same as this: +container.register('context', asClass(SessionContext).singleton()) + +// .. and here are the other `Lifetime` variants as fluid functions. +container.register('context', asClass(SessionContext).transient()) +container.register('context', asClass(SessionContext).scoped()) +``` + +**The object syntax, key-value syntax and chaining are valid for all `register` +calls!** + +### `container.hasRegistration()` + +- `container.hasRegistration(name: string | symbol): boolean` + +Determines if the container has a registration with the given name. Also checks ancestor containers. + +### `container.loadModules()` + +Given an array of globs, registers the modules and returns the container. + +> 💡 When using `opts.esModules`, a `Promise` is returned due to using the asynchronous `import()`. + +Awilix will use `require` on the loaded modules, and register the +default-exported function or class as the name of the file. + +**This uses a heuristic to determine if it's a constructor function +(`function Database() {...}`); if the function name starts with a capital +letter, it will be `new`ed!** + +Args: + +- `globPatterns`: Array of glob patterns that match JS files to load. +- `opts.cwd`: The `cwd` being passed to `glob`. Defaults to `process.cwd()`. +- `opts.formatName`: Can be either `'camelCase'`, or a function that takes the + current name as the first parameter and returns the new name. Default is to + pass the name through as-is. The 2nd parameter is a full module descriptor. +- `opts.resolverOptions`: An `object` passed to the resolvers. Used to configure + the lifetime, injection mode and more of the loaded modules. +- `opts.esModules`: Loads modules using Node's native ES modules. + **This makes `container.loadModules` asynchronous, and will therefore return a `Promise`!** + This is only supported on Node 14.0+ and should only be used if you're using + the [Native Node ES modules](https://nodejs.org/api/esm.html) + +Example: + +```js +// index.js +container.loadModules(['services/*.js', 'repositories/*.js', 'db/db.js']) + +container.cradle.userService.getUser(123) + +// to configure lifetime for all modules loaded.. +container.loadModules([ + 'services/*.js', + 'repositories/*.js', + 'db/db.js' +], { + resolverOptions: { + lifetime: Lifetime.SINGLETON + } +}) + +container.cradle.userService.getUser(123) + +// to configure lifetime for specific globs.. +container.loadModules([ + ['services/*.js', Lifetime.SCOPED], // all services will have scoped lifetime + 'repositories/*.js', + 'db/db.js' +], { + resolverOptions: { + lifetime: Lifetime.SINGLETON // db and repositories will be singleton + } +) + +container.cradle.userService.getUser(123) + +// to use camelCase for modules where filenames are not camelCase +container.loadModules(['repositories/account-repository.js', 'db/db.js'], { + formatName: 'camelCase' +}) + +container.cradle.accountRepository.getUser(123) + +// to customize how modules are named in the container (and for injection) +container.loadModules(['repository/account.js', 'service/email.js'], { + // This formats the module name so `repository/account.js` becomes `accountRepository` + formatName: (name, descriptor) => { + const splat = descriptor.path.split('/') + const namespace = splat[splat.length - 2] // `repository` or `service` + const upperNamespace = + namespace.charAt(0).toUpperCase() + namespace.substring(1) + return name + upperNamespace + } +}) + +container.cradle.accountRepository.getUser(123) +container.cradle.emailService.sendEmail('test@test.com', 'waddup') +``` + +The `['glob', Lifetime.SCOPED]` syntax is a shorthand for passing in resolver +options like so: `['glob', { lifetime: Lifetime.SCOPED }]` + +**Important**: `loadModules` depends on `fast-glob` and is therefore not supported in +module bundlers like Webpack, Rollup, esbuild and Browserify. + +### `container.createScope()` + +Creates a new scope. All registrations with a `Lifetime.SCOPED` will be cached +inside a scope. A scope is basically a "child" container. + +- returns `AwilixContainer` + +```js +// Increments the counter every time it is resolved. +let counter = 1 +container.register({ + counterValue: asFunction(() => counter++).scoped() +}) +const scope1 = container.createScope() +const scope2 = container.createScope() + +const scope1Child = scope1.createScope() + +scope1.cradle.counterValue === 1 +scope1.cradle.counterValue === 1 +scope2.cradle.counterValue === 2 +scope2.cradle.counterValue === 2 + +scope1Child.cradle.counterValue === 3 +``` + +A _Scope_ maintains it's own cache of `Lifetime.SCOPED` registrations, meaning it **does not use the parent's cache** for scoped registrations. + +```js +let counter = 1 +container.register({ + counterValue: asFunction(() => counter++).scoped() +}) +const scope1 = container.createScope() +const scope2 = container.createScope() + +// The root container is also a scope. +container.cradle.counterValue === 1 +container.cradle.counterValue === 1 + +// This scope resolves and caches it's own. +scope1.cradle.counterValue === 2 +scope1.cradle.counterValue === 2 + +// This scope resolves and caches it's own. +scope2.cradle.counterValue === 3 +scope2.cradle.counterValue === 3 +``` + +A scope may also register additional stuff - they will only be available within +that scope and it's children. + +```js +// Register a transient function +// that returns the value of the scope-provided dependency. +// For this example we could also use scoped lifetime. +container.register({ + scopedValue: asFunction(cradle => 'Hello ' + cradle.someValue) +}) + +// Create a scope and register a value. +const scope = container.createScope() +scope.register({ + someValue: asValue('scope') +}) + +scope.cradle.scopedValue === 'Hello scope' +container.cradle.someValue +// throws AwilixResolutionException +// because the root container does not know +// of the resolver. +``` + +Things registered in the scope take precedence over it's parent. + +```js +// It does not matter when the scope is created, +// it will still have anything that is registered +// in it's parent. +const scope = container.createScope() + +container.register({ + value: asValue('root'), + usedValue: asFunction(cradle => cradle.value) +}) + +scope.register({ + value: asValue('scope') +}) + +container.cradle.usedValue === 'root' +scope.cradle.usedValue === 'scope' +``` + +### `container.build()` + +Builds an instance of a class (or a function) by injecting dependencies, but +without registering it in the container. + +It's basically a shortcut for `asClass(MyClass).resolve(container)`. + +Args: + +- `targetOrResolver`: A class, function or resolver (example: `asClass(..)`, + `asFunction(..)`) +- `opts`: Resolver options. + +Returns an instance of whatever is passed in, or the result of calling the +resolver. + +**Important**: if you are doing this often for the same class/function, consider +using the explicit approach and save the resolver, **especially** if you are +using classic resolution because it scans the class constructor/function when +calling `asClass(Class)` / `asFunction(func)`. + +```js +// The following are equivelant.. +class MyClass { + constructor({ ping }) { + this.ping = ping + } + + pong() { + return this.ping + } +} + +const createMyFunc = ({ ping }) => ({ + pong: () => ping +}) + +container.register({ + ping: asValue('pong') +}) + +// Shorthand +// This uses `utils.isClass()` to determine whether to +// use `asClass` or `asFunction`. This is fine for +// one-time resolutions. +const myClass = container.build(MyClass) +const myFunc = container.build(createMyFunc) + +// Explicit +// Save the resolver if you are planning on invoking often. +// **Especially** if you're using classic resolution. +const myClassResolver = asClass(MyClass) +const myFuncResolver = asFunction(MyFunc) + +const myClass = container.build(myClassResolver) +const myFunc = container.build(myFuncResolver) +``` + +### `container.dispose()` + +Returns a `Promise` that resolves when all disposers of cached resolutions have +resolved. **Only cached values will be disposed, meaning they must have a +`Lifetime` of `SCOPED` or `SINGLETON`**, or else they are not cached by the +container and therefore can't be disposed by it. + +This also clears the container's cache. + +```js +const pg = require('pg') + +container.register({ + pool: asFunction(() => new pg.Pool()) + .disposer(pool => pool.end()) + // IMPORTANT! Must be either singleton or scoped! + .singleton() +}) + +const pool = container.resolve('pool') +pool.query('...') + +// Later.. +container.dispose().then(() => { + console.log('All dependencies disposed, you can exit now. :)') +}) +``` + +# Universal Module (Browser Support) + +**As of v3**, Awilix ships with official support for browser environments! + +The package includes 4 flavors. + +- CommonJS, the good ol' Node format - `lib/awilix.js` +- ES Modules, for use with module bundlers **in Node** - `lib/awilix.module.mjs` +- ES Modules, for use with module bundlers **in the browser** - + `lib/awilix.browser.js` +- UMD, for dropping it into a script tag - `lib/awilix.umd.js` + +The `package.json` includes the proper fields for bundlers like Webpack, Rollup +and Browserify to pick the correct version, so you should not have to configure +anything. 😎 + +**Important**: the browser builds do not support `loadModules` or `listModules`, +because they depend on Node-specific packages. + +**Also important**: due to using `Proxy` + various `Reflect` methods, Awilix is only _supposed_ to work in: + +- Chrome >= 49 +- Firefox >= 18 +- Edge >= 12 +- Opera >= 36 +- Safari >= 10 +- Internet Explorer is not supported + +## Contributing + +Please see our [contributing.md](./CONTRIBUTING.md) + +# What's in a name? + +Awilix is the mayan goddess of the moon, and also my favorite character in the +game [SMITE](http://www.smitegame.com/play-for-free?ref=Jeffijoe). + +# Author + +Jeff Hansen - [@Jeffijoe](https://twitter.com/Jeffijoe) diff --git a/node_modules/awilix/lib/awilix.browser.js b/node_modules/awilix/lib/awilix.browser.js new file mode 100644 index 0000000..6f287dc --- /dev/null +++ b/node_modules/awilix/lib/awilix.browser.js @@ -0,0 +1,1444 @@ +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global Reflect, Promise */ + +var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); +}; + +function __extends(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} + +var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; + +function __generator(thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +} + +function __spreadArray(to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +} + +/** + * Newline. + */ +var EOL = '\n'; +/** + * An extendable error class. + * @author https://github.com/bjyoungblood/es6-error/ + */ +var ExtendableError = /** @class */ (function (_super) { + __extends(ExtendableError, _super); + /** + * Constructor for the error. + * + * @param {String} message + * The error message. + */ + function ExtendableError(message) { + var _this = _super.call(this, message) || this; + // extending Error is weird and does not propagate `message` + Object.defineProperty(_this, 'message', { + enumerable: false, + value: message, + }); + Object.defineProperty(_this, 'name', { + enumerable: false, + value: _this.constructor.name, + }); + // Not all browsers have this function. + /* istanbul ignore else */ + if ('captureStackTrace' in Error) { + Error.captureStackTrace(_this, _this.constructor); + } + else { + Object.defineProperty(_this, 'stack', { + enumerable: false, + value: Error(message).stack, + writable: true, + configurable: true, + }); + } + return _this; + } + return ExtendableError; +}(Error)); +/** + * Base error for all Awilix-specific errors. + */ +var AwilixError = /** @class */ (function (_super) { + __extends(AwilixError, _super); + function AwilixError() { + return _super !== null && _super.apply(this, arguments) || this; + } + return AwilixError; +}(ExtendableError)); +/** + * Error thrown to indicate a type mismatch. + */ +var AwilixTypeError = /** @class */ (function (_super) { + __extends(AwilixTypeError, _super); + /** + * Constructor, takes the function name, expected and given + * type to produce an error. + * + * @param {string} funcDescription + * Name of the function being guarded. + * + * @param {string} paramName + * The parameter there was an issue with. + * + * @param {string} expectedType + * Name of the expected type. + * + * @param {string} givenType + * Name of the given type. + */ + function AwilixTypeError(funcDescription, paramName, expectedType, givenType) { + return _super.call(this, "".concat(funcDescription, ": expected ").concat(paramName, " to be ").concat(expectedType, ", but got ").concat(givenType, ".")) || this; + } + /** + * Asserts the given condition, throws an error otherwise. + * + * @param {*} condition + * The condition to check + * + * @param {string} funcDescription + * Name of the function being guarded. + * + * @param {string} paramName + * The parameter there was an issue with. + * + * @param {string} expectedType + * Name of the expected type. + * + * @param {string} givenType + * Name of the given type. + */ + AwilixTypeError.assert = function (condition, funcDescription, paramName, expectedType, givenType) { + if (!condition) { + throw new AwilixTypeError(funcDescription, paramName, expectedType, givenType); + } + return condition; + }; + return AwilixTypeError; +}(AwilixError)); +/** + * A nice error class so we can do an instanceOf check. + */ +var AwilixResolutionError = /** @class */ (function (_super) { + __extends(AwilixResolutionError, _super); + /** + * Constructor, takes the registered modules and unresolved tokens + * to create a message. + * + * @param {string|symbol} name + * The name of the module that could not be resolved. + * + * @param {string[]} resolutionStack + * The current resolution stack + */ + function AwilixResolutionError(name, resolutionStack, message) { + if (typeof name === 'symbol') { + name = name.toString(); + } + resolutionStack = resolutionStack.map(function (val) { + return typeof val === 'symbol' ? val.toString() : val; + }); + resolutionStack.push(name); + var resolutionPathString = resolutionStack.join(' -> '); + var msg = "Could not resolve '".concat(name, "'."); + if (message) { + msg += " ".concat(message); + } + msg += EOL + EOL; + msg += "Resolution path: ".concat(resolutionPathString); + return _super.call(this, msg) || this; + } + return AwilixResolutionError; +}(AwilixError)); + +/** + * Creates a tokenizer for the specified source. + * + * @param source + */ +function createTokenizer(source) { + var end = source.length; + var pos = 0; + var type = 'EOF'; + var value = ''; + var flags = 0 /* TokenizerFlags.None */; + // These are used to greedily skip as much as possible. + // Whenever we reach a paren, we increment these. + var parenLeft = 0; + var parenRight = 0; + return { + next: next, + done: done, + }; + /** + * Advances the tokenizer and returns the next token. + */ + function next(nextFlags) { + if (nextFlags === void 0) { nextFlags = 0 /* TokenizerFlags.None */; } + flags = nextFlags; + advance(); + return createToken(); + } + /** + * Advances the tokenizer state. + */ + function advance() { + value = ''; + type = 'EOF'; + while (true) { + if (pos >= end) { + return (type = 'EOF'); + } + var ch = source.charAt(pos); + // Whitespace is irrelevant + if (isWhiteSpace(ch)) { + pos++; + continue; + } + switch (ch) { + case '(': + pos++; + parenLeft++; + return (type = ch); + case ')': + pos++; + parenRight++; + return (type = ch); + case '*': + pos++; + return (type = ch); + case ',': + pos++; + return (type = ch); + case '=': + pos++; + if ((flags & 1 /* TokenizerFlags.Dumb */) === 0) { + // Not in dumb-mode, so attempt to skip. + skipExpression(); + } + // We need to know that there's a default value so we can + // skip it if it does not exist when resolving. + return (type = ch); + case '/': + pos++; + var nextCh = source.charAt(pos); + if (nextCh === '/') { + skipUntil(function (c) { return c === '\n'; }, true); + pos++; + } + if (nextCh === '*') { + skipUntil(function (c) { + var closing = source.charAt(pos + 1); + return c === '*' && closing === '/'; + }, true); + pos++; + } + continue; + default: + // Scans an identifier. + if (isIdentifierStart(ch)) { + scanIdentifier(); + return type; + } + // Elegantly skip over tokens we don't care about. + pos++; + } + } + } + /** + * Scans an identifier, given it's already been proven + * we are ready to do so. + */ + function scanIdentifier() { + var identStart = source.charAt(pos); + var start = ++pos; + while (isIdentifierPart(source.charAt(pos))) { + pos++; + } + value = '' + identStart + source.substring(start, pos); + type = value === 'function' || value === 'class' ? value : 'ident'; + if (type !== 'ident') { + value = ''; + } + return value; + } + /** + * Skips everything until the next comma or the end of the parameter list. + * Checks the parenthesis balance so we correctly skip function calls. + */ + function skipExpression() { + skipUntil(function (ch) { + var isAtRoot = parenLeft === parenRight + 1; + if (ch === ',' && isAtRoot) { + return true; + } + if (ch === '(') { + parenLeft++; + return false; + } + if (ch === ')') { + parenRight++; + if (isAtRoot) { + return true; + } + } + return false; + }); + } + /** + * Skips strings and whilespace until the predicate is true. + * + * @param callback stops skipping when this returns `true`. + * @param dumb if `true`, does not skip whitespace and strings; + * it only stops once the callback returns `true`. + */ + function skipUntil(callback, dumb) { + if (dumb === void 0) { dumb = false; } + while (pos < source.length) { + var ch = source.charAt(pos); + if (callback(ch)) { + return; + } + if (!dumb) { + if (isWhiteSpace(ch)) { + pos++; + continue; + } + if (isStringQuote(ch)) { + skipString(); + continue; + } + } + pos++; + } + } + /** + * Given the current position is at a string quote, skips the entire string. + */ + function skipString() { + var quote = source.charAt(pos); + pos++; + while (pos < source.length) { + var ch = source.charAt(pos); + var prev = source.charAt(pos - 1); + // Checks if the quote was escaped. + if (ch === quote && prev !== '\\') { + pos++; + return; + } + // Template strings are a bit tougher, we want to skip the interpolated values. + if (quote === '`') { + var next_1 = source.charAt(pos + 1); + if (next_1 === '$') { + var afterDollar = source.charAt(pos + 2); + if (afterDollar === '{') { + // This is the start of an interpolation; skip the ${ + pos = pos + 2; + // Skip strings and whitespace until we reach the ending }. + // This includes skipping nested interpolated strings. :D + skipUntil(function (ch) { return ch === '}'; }); + } + } + } + pos++; + } + } + /** + * Creates a token from the current state. + */ + function createToken() { + if (value) { + return { value: value, type: type }; + } + return { type: type }; + } + /** + * Determines if we are done parsing. + */ + function done() { + return type === 'EOF'; + } +} +/** + * Determines if the given character is a whitespace character. + * + * @param {string} ch + * @return {boolean} + */ +function isWhiteSpace(ch) { + switch (ch) { + case '\r': + case '\n': + case ' ': + return true; + } + return false; +} +/** + * Determines if the specified character is a string quote. + * @param {string} ch + * @return {boolean} + */ +function isStringQuote(ch) { + switch (ch) { + case "'": + case '"': + case '`': + return true; + } + return false; +} +// NOTE: I've added the `.` character so that member expression paths +// are seen as identifiers. This is so we don't get a constructor token for +// stuff like `MyClass.prototype.constructor()` +var IDENT_START_EXPR = /^[_$a-zA-Z\xA0-\uFFFF]$/; +var IDENT_PART_EXPR = /^[._$a-zA-Z0-9\xA0-\uFFFF]$/; +/** + * Determines if the character is a valid JS identifier start character. + */ +function isIdentifierStart(ch) { + return IDENT_START_EXPR.test(ch); +} +/** + * Determines if the character is a valid JS identifier start character. + */ +function isIdentifierPart(ch) { + return IDENT_PART_EXPR.test(ch); +} + +/** + * Creates a { name: value } object if the input isn't already in that format. + * + * @param {string|object} name + * Either a string or an object. + * + * @param {*} value + * The value, only used if name is not an object. + * + * @return {object} + */ +function nameValueToObject(name, value) { + var _a; + var obj = name; + if (typeof obj === 'string' || typeof obj === 'symbol') { + return _a = {}, _a[name] = value, _a; + } + return obj; +} +/** + * Returns the last item in the array. + * + * @param {*[]} arr + * The array. + * + * @return {*} + * The last element. + */ +function last(arr) { + return arr[arr.length - 1]; +} +/** + * Determines if the given function is a class. + * + * @param {Function} fn + * @return {boolean} + */ +function isClass(fn) { + /*tslint:disable-next-line*/ + if (typeof fn !== 'function') { + return false; + } + // Should only need 2 tokens. + var tokenizer = createTokenizer(fn.toString()); + var first = tokenizer.next(); + if (first.type === 'class') { + return true; + } + var second = tokenizer.next(); + if (first.type === 'function' && second.value) { + if (second.value[0] === second.value[0].toUpperCase()) { + return true; + } + } + return false; +} +/** + * Determines if the given value is a function. + * + * @param {Any} val + * Any value to check if it's a function. + * + * @return {boolean} + * true if the value is a function, false otherwise. + */ +function isFunction(val) { + return typeof val === 'function'; +} +/** + * Returns the unique items in the array. + * + * @param {Array} + * The array to remove dupes from. + * + * @return {Array} + * The deduped array. + */ +function uniq(arr) { + return Array.from(new Set(arr)); +} + +/** + * Lifetime types. + */ +var Lifetime = { + /** + * The registration will be resolved once and only once. + * @type {String} + */ + SINGLETON: 'SINGLETON', + /** + * The registration will be resolved every time (never cached). + * @type {String} + */ + TRANSIENT: 'TRANSIENT', + /** + * The registration will be resolved once per scope. + * @type {String} + */ + SCOPED: 'SCOPED', +}; + +/** + * Resolution modes. + */ +var InjectionMode = { + /** + * The dependencies will be resolved by injecting the cradle proxy. + * + * @type {String} + */ + PROXY: 'PROXY', + /** + * The dependencies will be resolved by inspecting parameter names of the function/constructor. + * + * @type {String} + */ + CLASSIC: 'CLASSIC', +}; + +/* + * Parses the parameter list of a function string, including ES6 class constructors. + * + * @param {string} source + * The source of a function to extract the parameter list from + * + * @return {Array | null} + * Returns an array of parameters, or `null` if no + * constructor was found for a class. + */ +function parseParameterList(source) { + var _a = createTokenizer(source), _next = _a.next, done = _a.done; + var params = []; + var t = null; + nextToken(); + while (!done()) { + switch (t.type) { + case 'class': + skipUntilConstructor(); + // If we didn't find a constructor token, then we know that there + // are no dependencies in the defined class. + if (!isConstructorToken()) { + return null; + } + // Next token is the constructor identifier. + nextToken(); + break; + case 'function': + var next = nextToken(); + if (next.type === 'ident' || next.type === '*') { + // This is the function name or a generator star. Skip it. + nextToken(); + } + break; + case '(': + // Start parsing parameter names. + parseParams(); + break; + case ')': + // We're now out of the parameter list. + return params; + case 'ident': + // Likely a paren-less arrow function + // which can have no default args. + var param = { name: t.value, optional: false }; + if (t.value === 'async') { + // Given it's the very first token, we can assume it's an async function, + // so skip the async keyword if the next token is not an equals sign, in which + // case it is a single-arg arrow func. + var next_1 = nextToken(); + if (next_1 && next_1.type !== '=') { + break; + } + } + params.push(param); + return params; + /* istanbul ignore next */ + default: + throw unexpected(); + } + } + return params; + /** + * After having been placed within the parameter list of + * a function, parses the parameters. + */ + function parseParams() { + // Current token is a left-paren + var param = { name: '', optional: false }; + while (!done()) { + nextToken(); + switch (t.type) { + case 'ident': + param.name = t.value; + break; + case '=': + param.optional = true; + break; + case ',': + params.push(param); + param = { name: '', optional: false }; + break; + case ')': + if (param.name) { + params.push(param); + } + return; + /* istanbul ignore next */ + default: + throw unexpected(); + } + } + } + /** + * Skips until we reach the constructor identifier. + */ + function skipUntilConstructor() { + while (!isConstructorToken() && !done()) { + nextToken(1 /* TokenizerFlags.Dumb */); + } + } + /** + * Determines if the current token represents a constructor, and the next token after it is a paren + * @return {boolean} + */ + function isConstructorToken() { + return t.type === 'ident' && t.value === 'constructor'; + } + /** + * Advances the tokenizer and stores the previous token in history + */ + function nextToken(flags) { + if (flags === void 0) { flags = 0 /* TokenizerFlags.None */; } + t = _next(flags); + return t; + } + /** + * Returns an error describing an unexpected token. + */ + /* istanbul ignore next */ + function unexpected() { + return new SyntaxError("Parsing parameter list, did not expect ".concat(t.type, " token").concat(t.value ? " (".concat(t.value, ")") : '')); + } +} + +/** + * RESOLVER symbol can be used by modules loaded by + * `loadModules` to configure their lifetime, injection mode, etc. + */ +var RESOLVER = Symbol('Awilix Resolver Config'); +/** + * Creates a simple value resolver where the given value will always be resolved. + * + * @param {string} name + * The name to register the value as. + * + * @param {*} value + * The value to resolve. + * + * @return {object} + * The resolver. + */ +function asValue(value) { + return { + resolve: function () { return value; }, + }; +} +/** + * Creates a factory resolver, where the given factory function + * will be invoked with `new` when requested. + * + * @param {string} name + * The name to register the value as. + * + * @param {Function} fn + * The function to register. + * + * @param {object} opts + * Additional options for the resolver. + * + * @return {object} + * The resolver. + */ +function asFunction(fn, opts) { + if (!isFunction(fn)) { + throw new AwilixTypeError('asFunction', 'fn', 'function', fn); + } + var defaults = { + lifetime: Lifetime.TRANSIENT, + }; + opts = makeOptions(defaults, opts, fn[RESOLVER]); + var resolve = generateResolve(fn); + var result = __assign({ resolve: resolve }, opts); + return createDisposableResolver(createBuildResolver(result)); +} +/** + * Like a factory resolver, but for classes that require `new`. + * + * @param {string} name + * The name to register the value as. + * + * @param {Class} Type + * The function to register. + * + * @param {object} opts + * Additional options for the resolver. + * + * @return {object} + * The resolver. + */ +function asClass(Type, opts) { + if (!isFunction(Type)) { + throw new AwilixTypeError('asClass', 'Type', 'class', Type); + } + var defaults = { + lifetime: Lifetime.TRANSIENT, + }; + opts = makeOptions(defaults, opts, Type[RESOLVER]); + // A function to handle object construction for us, as to make the generateResolve more reusable + var newClass = function newClass() { + return Reflect.construct(Type, arguments); + }; + var resolve = generateResolve(newClass, Type); + return createDisposableResolver(createBuildResolver(__assign(__assign({}, opts), { resolve: resolve }))); +} +/** + * Resolves to the specified registration. + */ +function aliasTo(name) { + return { + resolve: function (container) { + return container.resolve(name); + }, + }; +} +/** + * Given an options object, creates a fluid interface + * to manage it. + * + * @param {*} obj + * The object to return. + * + * @return {object} + * The interface. + */ +function createBuildResolver(obj) { + function setLifetime(value) { + return createBuildResolver(__assign(__assign({}, this), { lifetime: value })); + } + function setInjectionMode(value) { + return createBuildResolver(__assign(__assign({}, this), { injectionMode: value })); + } + function inject(injector) { + return createBuildResolver(__assign(__assign({}, this), { injector: injector })); + } + return updateResolver(obj, { + setLifetime: setLifetime, + inject: inject, + transient: partial(setLifetime, Lifetime.TRANSIENT), + scoped: partial(setLifetime, Lifetime.SCOPED), + singleton: partial(setLifetime, Lifetime.SINGLETON), + setInjectionMode: setInjectionMode, + proxy: partial(setInjectionMode, InjectionMode.PROXY), + classic: partial(setInjectionMode, InjectionMode.CLASSIC), + }); +} +/** + * Given a resolver, returns an object with methods to manage the disposer + * function. + * @param obj + */ +function createDisposableResolver(obj) { + function disposer(dispose) { + return createDisposableResolver(__assign(__assign({}, this), { dispose: dispose })); + } + return updateResolver(obj, { + disposer: disposer, + }); +} +/** + * Partially apply arguments to the given function. + */ +function partial(fn, arg1) { + return function partiallyApplied() { + return fn.call(this, arg1); + }; +} +/** + * Makes an options object based on defaults. + * + * @param {object} defaults + * Default options. + * + * @param {...} rest + * The input to check and possibly assign to the resulting object + * + * @return {object} + */ +function makeOptions(defaults) { + var rest = []; + for (var _i = 1; _i < arguments.length; _i++) { + rest[_i - 1] = arguments[_i]; + } + return Object.assign.apply(Object, __spreadArray([{}, defaults], rest, false)); +} +/** + * Creates a new resolver with props merged from both. + * + * @param source + * @param target + */ +function updateResolver(source, target) { + var result = __assign(__assign({}, source), target); + return result; +} +/** + * Returns a wrapped `resolve` function that provides values + * from the injector and defers to `container.resolve`. + * + * @param {AwilixContainer} container + * @param {Object} locals + * @return {Function} + */ +function wrapWithLocals(container, locals) { + return function wrappedResolve(name, resolveOpts) { + if (name in locals) { + return locals[name]; + } + return container.resolve(name, resolveOpts); + }; +} +/** + * Returns a new Proxy that checks the result from `injector` + * for values before delegating to the actual container. + * + * @param {Object} cradle + * @param {Function} injector + * @return {Proxy} + */ +function createInjectorProxy(container, injector) { + var locals = injector(container); + var allKeys = uniq(__spreadArray(__spreadArray([], Reflect.ownKeys(container.cradle), true), Reflect.ownKeys(locals), true)); + // TODO: Lots of duplication here from the container proxy. + // Need to refactor. + var proxy = new Proxy({}, { + /** + * Resolves the value by first checking the locals, then the container. + */ + get: function (target, name) { + if (name === Symbol.iterator) { + return function iterateRegistrationsAndLocals() { + var _a, _b, _c, _i, prop, _d, _e, _f, _g, prop; + return __generator(this, function (_h) { + switch (_h.label) { + case 0: + _a = container.cradle; + _b = []; + for (_c in _a) + _b.push(_c); + _i = 0; + _h.label = 1; + case 1: + if (!(_i < _b.length)) return [3 /*break*/, 4]; + _c = _b[_i]; + if (!(_c in _a)) return [3 /*break*/, 3]; + prop = _c; + return [4 /*yield*/, prop]; + case 2: + _h.sent(); + _h.label = 3; + case 3: + _i++; + return [3 /*break*/, 1]; + case 4: + _d = locals; + _e = []; + for (_f in _d) + _e.push(_f); + _g = 0; + _h.label = 5; + case 5: + if (!(_g < _e.length)) return [3 /*break*/, 8]; + _f = _e[_g]; + if (!(_f in _d)) return [3 /*break*/, 7]; + prop = _f; + return [4 /*yield*/, prop]; + case 6: + _h.sent(); + _h.label = 7; + case 7: + _g++; + return [3 /*break*/, 5]; + case 8: return [2 /*return*/]; + } + }); + }; + } + if (name in locals) { + return locals[name]; + } + return container.resolve(name); + }, + /** + * Used for `Object.keys`. + */ + ownKeys: function () { + return allKeys; + }, + /** + * Used for `Object.keys`. + */ + getOwnPropertyDescriptor: function (target, key) { + if (allKeys.indexOf(key) > -1) { + return { + enumerable: true, + configurable: true, + }; + } + return undefined; + }, + }); + return proxy; +} +/** + * Returns a resolve function used to construct the dependency graph + * + * @this {Registration} + * The `this` context is a resolver. + * + * @param {Function} fn + * The function to construct + * + * @param {Function} dependencyParseTarget + * The function to parse for the dependencies of the construction target + * + * @param {boolean} isFunction + * Is the resolution target an actual function or a mask for a constructor? + * + * @return {Function} + * The function used for dependency resolution + */ +function generateResolve(fn, dependencyParseTarget) { + // If the function used for dependency parsing is falsy, use the supplied function + if (!dependencyParseTarget) { + dependencyParseTarget = fn; + } + // Parse out the dependencies + // NOTE: we do this regardless of whether PROXY is used or not, + // because if this fails, we want it to fail early (at startup) rather + // than at resolution time. + var dependencies = parseDependencies(dependencyParseTarget); + // Use a regular function instead of an arrow function to facilitate binding to the resolver. + return function resolve(container) { + // Because the container holds a global reolutionMode we need to determine it in the proper order of precedence: + // resolver -> container -> default value + var injectionMode = this.injectionMode || + container.options.injectionMode || + InjectionMode.PROXY; + if (injectionMode !== InjectionMode.CLASSIC) { + // If we have a custom injector, we need to wrap the cradle. + var cradle = this.injector + ? createInjectorProxy(container, this.injector) + : container.cradle; + // Return the target injected with the cradle + return fn(cradle); + } + // We have dependencies so we need to resolve them manually + if (dependencies.length > 0) { + var resolve_1 = this.injector + ? wrapWithLocals(container, this.injector(container)) + : container.resolve; + var children = dependencies.map(function (p) { + return resolve_1(p.name, { allowUnregistered: p.optional }); + }); + return fn.apply(void 0, children); + } + return fn(); + }; +} +/** + * Parses the dependencies from the given function. + * If it's a class that extends another class, and it does + * not have a defined constructor, attempt to parse it's super constructor. + */ +function parseDependencies(fn) { + var result = parseParameterList(fn.toString()); + if (!result) { + // No defined constructor for a class, check if there is a parent + // we can parse. + var parent = Object.getPrototypeOf(fn); + if (typeof parent === 'function' && parent !== Function.prototype) { + // Try to parse the parent + return parseDependencies(parent); + } + return []; + } + return result; +} + +/** + * Family tree symbol. + */ +var FAMILY_TREE = Symbol('familyTree'); +/** + * Roll Up Registrations symbol. + */ +var ROLL_UP_REGISTRATIONS = Symbol('rollUpRegistrations'); +/** + * The string representation when calling toString. + */ +var CRADLE_STRING_TAG = 'AwilixContainerCradle'; +/** + * Creates an Awilix container instance. + * + * @param {Function} options.require + * The require function to use. Defaults to require. + * + * @param {string} options.injectionMode + * The mode used by the container to resolve dependencies. Defaults to 'Proxy'. + * + * @return {AwilixContainer} + * The container. + */ +function createContainer(options, parentContainer) { + var _a; + options = __assign({ injectionMode: InjectionMode.PROXY }, options); + // The resolution stack is used to keep track + // of what modules are being resolved, so when + // an error occurs, we have something to present + // to the poor developer who fucked up. + var resolutionStack = []; + // Internal registration store for this container. + var registrations = {}; + /** + * The `Proxy` that is passed to functions so they can resolve their dependencies without + * knowing where they come from. I call it the "cradle" because + * it is where registered things come to life at resolution-time. + */ + var cradle = new Proxy({ + /* removed in browser build */ + }, { + /** + * The `get` handler is invoked whenever a get-call for `container.cradle.*` is made. + * + * @param {object} _target + * The proxy target. Irrelevant. + * + * @param {string} name + * The property name. + * + * @return {*} + * Whatever the resolve call returns. + */ + get: function (_target, name) { return resolve(name); }, + /** + * Setting things on the cradle throws an error. + * + * @param {object} target + * @param {string} name + */ + set: function (_target, name) { + throw new Error("Attempted setting property \"".concat(name, "\" on container cradle - this is not allowed.")); + }, + /** + * Used for `Object.keys`. + */ + ownKeys: function () { + return Array.from(cradle); + }, + /** + * Used for `Object.keys`. + */ + getOwnPropertyDescriptor: function (target, key) { + var regs = rollUpRegistrations(); + if (Object.getOwnPropertyDescriptor(regs, key)) { + return { + enumerable: true, + configurable: true, + }; + } + return undefined; + }, + }); + // The container being exposed. + var container = (_a = { + options: options, + cradle: cradle, + inspect: inspect, + cache: new Map(), + loadModules: function () { throw new Error("loadModules is not supported in the browser."); }, + createScope: createScope, + register: register, + build: build, + resolve: resolve, + hasRegistration: hasRegistration, + dispose: dispose, + getRegistration: getRegistration + }, + /* removed in browser build */ + // tslint:disable-next-line + _a[ROLL_UP_REGISTRATIONS] = rollUpRegistrations, + Object.defineProperty(_a, "registrations", { + get: function () { + return rollUpRegistrations(); + }, + enumerable: false, + configurable: true + }), + _a); + // Track the family tree. + var familyTree = parentContainer + ? [container].concat(parentContainer[FAMILY_TREE]) + : [container]; + container[FAMILY_TREE] = familyTree; + // We need a reference to the root container, + // so we can retrieve and store singletons. + var rootContainer = last(familyTree); + return container; + /** + * Used by util.inspect (which is used by console.log). + */ + function inspect() { + return "[AwilixContainer (".concat(parentContainer ? 'scoped, ' : '', "registrations: ").concat(Object.keys(container.registrations).length, ")]"); + } + /** + * Rolls up registrations from the family tree. + * + * This can get pretty expensive. Only used when + * iterating the cradle proxy, which is not something + * that should be done in day-to-day use, mostly for debugging. + * + * @param {boolean} bustCache + * Forces a recomputation. + * + * @return {object} + * The merged registrations object. + */ + function rollUpRegistrations() { + return __assign(__assign({}, (parentContainer && parentContainer[ROLL_UP_REGISTRATIONS]())), registrations); + } + /** + * Used for providing an iterator to the cradle. + */ + function cradleIterator() { + var registrations, _a, _b, _c, _i, registrationName; + return __generator(this, function (_d) { + switch (_d.label) { + case 0: + registrations = rollUpRegistrations(); + _a = registrations; + _b = []; + for (_c in _a) + _b.push(_c); + _i = 0; + _d.label = 1; + case 1: + if (!(_i < _b.length)) return [3 /*break*/, 4]; + _c = _b[_i]; + if (!(_c in _a)) return [3 /*break*/, 3]; + registrationName = _c; + return [4 /*yield*/, registrationName]; + case 2: + _d.sent(); + _d.label = 3; + case 3: + _i++; + return [3 /*break*/, 1]; + case 4: return [2 /*return*/]; + } + }); + } + /** + * Creates a scoped container. + * + * @return {object} + * The scoped container. + */ + function createScope() { + return createContainer(options, container); + } + /** + * Adds a registration for a resolver. + */ + function register(arg1, arg2) { + var obj = nameValueToObject(arg1, arg2); + var keys = __spreadArray(__spreadArray([], Object.keys(obj), true), Object.getOwnPropertySymbols(obj), true); + for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) { + var key = keys_1[_i]; + var value = obj[key]; + registrations[key] = value; + } + return container; + } + /** + * Returned to `util.inspect` and Symbol.toStringTag when attempting to resolve + * a custom inspector function on the cradle. + */ + function toStringRepresentationFn() { + return Object.prototype.toString.call(cradle); + } + /** + * Recursively gets a registration by name if it exists in the + * current container or any of its' parents. + * + * @param name {string | symbol} The registration name. + */ + function getRegistration(name) { + var resolver = registrations[name]; + if (resolver) { + return resolver; + } + if (parentContainer) { + return parentContainer.getRegistration(name); + } + return null; + } + /** + * Resolves the registration with the given name. + * + * @param {string | symbol} name + * The name of the registration to resolve. + * + * @param {ResolveOptions} resolveOpts + * The resolve options. + * + * @return {any} + * Whatever was resolved. + */ + function resolve(name, resolveOpts) { + resolveOpts = resolveOpts || {}; + try { + // Grab the registration by name. + var resolver = getRegistration(name); + if (resolutionStack.indexOf(name) > -1) { + throw new AwilixResolutionError(name, resolutionStack, 'Cyclic dependencies detected.'); + } + // Used in JSON.stringify. + if (name === 'toJSON') { + return toStringRepresentationFn; + } + // Used in console.log. + if (name === 'constructor') { + return createContainer; + } + if (!resolver) { + // Checks for some edge cases. + switch (name) { + // The following checks ensure that console.log on the cradle does not + // throw an error (issue #7). + case 'inspect': + case 'toString': + return toStringRepresentationFn; + case Symbol.toStringTag: + return CRADLE_STRING_TAG; + // Edge case: Promise unwrapping will look for a "then" property and attempt to call it. + // Return undefined so that we won't cause a resolution error. (issue #109) + case 'then': + return undefined; + // When using `Array.from` or spreading the cradle, this will + // return the registration names. + case Symbol.iterator: + return cradleIterator; + } + if (resolveOpts.allowUnregistered) { + return undefined; + } + throw new AwilixResolutionError(name, resolutionStack); + } + // Pushes the currently-resolving module name onto the stack + resolutionStack.push(name); + // Do the thing + var cached = void 0; + var resolved = void 0; + switch (resolver.lifetime || Lifetime.TRANSIENT) { + case Lifetime.TRANSIENT: + // Transient lifetime means resolve every time. + resolved = resolver.resolve(container); + break; + case Lifetime.SINGLETON: + // Singleton lifetime means cache at all times, regardless of scope. + cached = rootContainer.cache.get(name); + if (!cached) { + resolved = resolver.resolve(container); + rootContainer.cache.set(name, { resolver: resolver, value: resolved }); + } + else { + resolved = cached.value; + } + break; + case Lifetime.SCOPED: + // Scoped lifetime means that the container + // that resolves the registration also caches it. + // When a registration is not found, we travel up + // the family tree until we find one that is cached. + cached = container.cache.get(name); + if (cached !== undefined) { + // We found one! + resolved = cached.value; + break; + } + // If we still have not found one, we need to resolve and cache it. + resolved = resolver.resolve(container); + container.cache.set(name, { resolver: resolver, value: resolved }); + break; + default: + throw new AwilixResolutionError(name, resolutionStack, "Unknown lifetime \"".concat(resolver.lifetime, "\"")); + } + // Pop it from the stack again, ready for the next resolution + resolutionStack.pop(); + return resolved; + } + catch (err) { + // When we get an error we need to reset the stack. + resolutionStack = []; + throw err; + } + } + /** + * Checks if the registration with the given name exists. + * + * @param {string | symbol} name + * The name of the registration to resolve. + * + * @return {boolean} + * Whether or not the registration exists. + */ + function hasRegistration(name) { + return !!getRegistration(name); + } + /** + * Given a registration, class or function, builds it up and returns it. + * Does not cache it, this means that any lifetime configured in case of passing + * a registration will not be used. + * + * @param {Resolver|Class|Function} targetOrResolver + * @param {ResolverOptions} opts + */ + function build(targetOrResolver, opts) { + if (targetOrResolver && targetOrResolver.resolve) { + return targetOrResolver.resolve(container); + } + var funcName = 'build'; + var paramName = 'targetOrResolver'; + AwilixTypeError.assert(targetOrResolver, funcName, paramName, 'a registration, function or class', targetOrResolver); + AwilixTypeError.assert(typeof targetOrResolver === 'function', funcName, paramName, 'a function or class', targetOrResolver); + var resolver = isClass(targetOrResolver) + ? asClass(targetOrResolver, opts) + : asFunction(targetOrResolver, opts); + return resolver.resolve(container); + } + /** + * Disposes this container and it's children, calling the disposer + * on all disposable registrations and clearing the cache. + */ + function dispose() { + var entries = Array.from(container.cache.entries()); + container.cache.clear(); + return Promise.all(entries.map(function (_a) { + _a[0]; var entry = _a[1]; + var resolver = entry.resolver, value = entry.value; + var disposable = resolver; + if (disposable.dispose) { + return Promise.resolve().then(function () { return disposable.dispose(value); }); + } + return Promise.resolve(); + })).then(function () { return undefined; }); + } +} + +export { AwilixError, AwilixResolutionError, AwilixTypeError, ExtendableError, InjectionMode, Lifetime, RESOLVER, aliasTo, asClass, asFunction, asValue, createBuildResolver, createContainer, createDisposableResolver }; diff --git a/node_modules/awilix/lib/awilix.d.ts b/node_modules/awilix/lib/awilix.d.ts new file mode 100644 index 0000000..ada3229 --- /dev/null +++ b/node_modules/awilix/lib/awilix.d.ts @@ -0,0 +1,6 @@ +export * from './errors'; +export * from './list-modules'; +export * from './container'; +export * from './resolvers'; +export * from './injection-mode'; +export * from './lifetime'; diff --git a/node_modules/awilix/lib/awilix.js b/node_modules/awilix/lib/awilix.js new file mode 100644 index 0000000..16055b4 --- /dev/null +++ b/node_modules/awilix/lib/awilix.js @@ -0,0 +1,23 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./errors"), exports); +__exportStar(require("./list-modules"), exports); +__exportStar(require("./container"), exports); +__exportStar(require("./resolvers"), exports); +__exportStar(require("./injection-mode"), exports); +__exportStar(require("./lifetime"), exports); +//# sourceMappingURL=awilix.js.map \ No newline at end of file diff --git a/node_modules/awilix/lib/awilix.js.map b/node_modules/awilix/lib/awilix.js.map new file mode 100644 index 0000000..0f5d7eb --- /dev/null +++ b/node_modules/awilix/lib/awilix.js.map @@ -0,0 +1 @@ +{"version":3,"file":"awilix.js","sourceRoot":"","sources":["../src/awilix.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,iDAA8B;AAC9B,8CAA2B;AAC3B,8CAA2B;AAC3B,mDAAgC;AAChC,6CAA0B"} \ No newline at end of file diff --git a/node_modules/awilix/lib/awilix.module.mjs b/node_modules/awilix/lib/awilix.module.mjs new file mode 100644 index 0000000..6061ca6 --- /dev/null +++ b/node_modules/awilix/lib/awilix.module.mjs @@ -0,0 +1,1587 @@ +import * as glob from 'fast-glob'; +import * as path from 'path'; +import * as util from 'util'; +import { pathToFileURL } from 'url'; +import { camelCase } from 'camel-case'; +import { importModule } from './load-module-native.js'; + +/** + * Newline. + */ +const EOL = '\n'; +/** + * An extendable error class. + * @author https://github.com/bjyoungblood/es6-error/ + */ +class ExtendableError extends Error { + /** + * Constructor for the error. + * + * @param {String} message + * The error message. + */ + constructor(message) { + super(message); + // extending Error is weird and does not propagate `message` + Object.defineProperty(this, 'message', { + enumerable: false, + value: message, + }); + Object.defineProperty(this, 'name', { + enumerable: false, + value: this.constructor.name, + }); + // Not all browsers have this function. + /* istanbul ignore else */ + if ('captureStackTrace' in Error) { + Error.captureStackTrace(this, this.constructor); + } + else { + Object.defineProperty(this, 'stack', { + enumerable: false, + value: Error(message).stack, + writable: true, + configurable: true, + }); + } + } +} +/** + * Base error for all Awilix-specific errors. + */ +class AwilixError extends ExtendableError { +} +/** + * Error thrown to indicate a type mismatch. + */ +class AwilixTypeError extends AwilixError { + /** + * Constructor, takes the function name, expected and given + * type to produce an error. + * + * @param {string} funcDescription + * Name of the function being guarded. + * + * @param {string} paramName + * The parameter there was an issue with. + * + * @param {string} expectedType + * Name of the expected type. + * + * @param {string} givenType + * Name of the given type. + */ + constructor(funcDescription, paramName, expectedType, givenType) { + super(`${funcDescription}: expected ${paramName} to be ${expectedType}, but got ${givenType}.`); + } + /** + * Asserts the given condition, throws an error otherwise. + * + * @param {*} condition + * The condition to check + * + * @param {string} funcDescription + * Name of the function being guarded. + * + * @param {string} paramName + * The parameter there was an issue with. + * + * @param {string} expectedType + * Name of the expected type. + * + * @param {string} givenType + * Name of the given type. + */ + static assert(condition, funcDescription, paramName, expectedType, givenType) { + if (!condition) { + throw new AwilixTypeError(funcDescription, paramName, expectedType, givenType); + } + return condition; + } +} +/** + * A nice error class so we can do an instanceOf check. + */ +class AwilixResolutionError extends AwilixError { + /** + * Constructor, takes the registered modules and unresolved tokens + * to create a message. + * + * @param {string|symbol} name + * The name of the module that could not be resolved. + * + * @param {string[]} resolutionStack + * The current resolution stack + */ + constructor(name, resolutionStack, message) { + if (typeof name === 'symbol') { + name = name.toString(); + } + resolutionStack = resolutionStack.map((val) => typeof val === 'symbol' ? val.toString() : val); + resolutionStack.push(name); + const resolutionPathString = resolutionStack.join(' -> '); + let msg = `Could not resolve '${name}'.`; + if (message) { + msg += ` ${message}`; + } + msg += EOL + EOL; + msg += `Resolution path: ${resolutionPathString}`; + super(msg); + } +} + +/** + * Creates a tokenizer for the specified source. + * + * @param source + */ +function createTokenizer(source) { + const end = source.length; + let pos = 0; + let type = 'EOF'; + let value = ''; + let flags = 0 /* TokenizerFlags.None */; + // These are used to greedily skip as much as possible. + // Whenever we reach a paren, we increment these. + let parenLeft = 0; + let parenRight = 0; + return { + next, + done, + }; + /** + * Advances the tokenizer and returns the next token. + */ + function next(nextFlags = 0 /* TokenizerFlags.None */) { + flags = nextFlags; + advance(); + return createToken(); + } + /** + * Advances the tokenizer state. + */ + function advance() { + value = ''; + type = 'EOF'; + while (true) { + if (pos >= end) { + return (type = 'EOF'); + } + let ch = source.charAt(pos); + // Whitespace is irrelevant + if (isWhiteSpace(ch)) { + pos++; + continue; + } + switch (ch) { + case '(': + pos++; + parenLeft++; + return (type = ch); + case ')': + pos++; + parenRight++; + return (type = ch); + case '*': + pos++; + return (type = ch); + case ',': + pos++; + return (type = ch); + case '=': + pos++; + if ((flags & 1 /* TokenizerFlags.Dumb */) === 0) { + // Not in dumb-mode, so attempt to skip. + skipExpression(); + } + // We need to know that there's a default value so we can + // skip it if it does not exist when resolving. + return (type = ch); + case '/': + pos++; + const nextCh = source.charAt(pos); + if (nextCh === '/') { + skipUntil((c) => c === '\n', true); + pos++; + } + if (nextCh === '*') { + skipUntil((c) => { + const closing = source.charAt(pos + 1); + return c === '*' && closing === '/'; + }, true); + pos++; + } + continue; + default: + // Scans an identifier. + if (isIdentifierStart(ch)) { + scanIdentifier(); + return type; + } + // Elegantly skip over tokens we don't care about. + pos++; + } + } + } + /** + * Scans an identifier, given it's already been proven + * we are ready to do so. + */ + function scanIdentifier() { + const identStart = source.charAt(pos); + const start = ++pos; + while (isIdentifierPart(source.charAt(pos))) { + pos++; + } + value = '' + identStart + source.substring(start, pos); + type = value === 'function' || value === 'class' ? value : 'ident'; + if (type !== 'ident') { + value = ''; + } + return value; + } + /** + * Skips everything until the next comma or the end of the parameter list. + * Checks the parenthesis balance so we correctly skip function calls. + */ + function skipExpression() { + skipUntil((ch) => { + const isAtRoot = parenLeft === parenRight + 1; + if (ch === ',' && isAtRoot) { + return true; + } + if (ch === '(') { + parenLeft++; + return false; + } + if (ch === ')') { + parenRight++; + if (isAtRoot) { + return true; + } + } + return false; + }); + } + /** + * Skips strings and whilespace until the predicate is true. + * + * @param callback stops skipping when this returns `true`. + * @param dumb if `true`, does not skip whitespace and strings; + * it only stops once the callback returns `true`. + */ + function skipUntil(callback, dumb = false) { + while (pos < source.length) { + let ch = source.charAt(pos); + if (callback(ch)) { + return; + } + if (!dumb) { + if (isWhiteSpace(ch)) { + pos++; + continue; + } + if (isStringQuote(ch)) { + skipString(); + continue; + } + } + pos++; + } + } + /** + * Given the current position is at a string quote, skips the entire string. + */ + function skipString() { + const quote = source.charAt(pos); + pos++; + while (pos < source.length) { + const ch = source.charAt(pos); + const prev = source.charAt(pos - 1); + // Checks if the quote was escaped. + if (ch === quote && prev !== '\\') { + pos++; + return; + } + // Template strings are a bit tougher, we want to skip the interpolated values. + if (quote === '`') { + const next = source.charAt(pos + 1); + if (next === '$') { + const afterDollar = source.charAt(pos + 2); + if (afterDollar === '{') { + // This is the start of an interpolation; skip the ${ + pos = pos + 2; + // Skip strings and whitespace until we reach the ending }. + // This includes skipping nested interpolated strings. :D + skipUntil((ch) => ch === '}'); + } + } + } + pos++; + } + } + /** + * Creates a token from the current state. + */ + function createToken() { + if (value) { + return { value, type }; + } + return { type }; + } + /** + * Determines if we are done parsing. + */ + function done() { + return type === 'EOF'; + } +} +/** + * Determines if the given character is a whitespace character. + * + * @param {string} ch + * @return {boolean} + */ +function isWhiteSpace(ch) { + switch (ch) { + case '\r': + case '\n': + case ' ': + return true; + } + return false; +} +/** + * Determines if the specified character is a string quote. + * @param {string} ch + * @return {boolean} + */ +function isStringQuote(ch) { + switch (ch) { + case "'": + case '"': + case '`': + return true; + } + return false; +} +// NOTE: I've added the `.` character so that member expression paths +// are seen as identifiers. This is so we don't get a constructor token for +// stuff like `MyClass.prototype.constructor()` +const IDENT_START_EXPR = /^[_$a-zA-Z\xA0-\uFFFF]$/; +const IDENT_PART_EXPR = /^[._$a-zA-Z0-9\xA0-\uFFFF]$/; +/** + * Determines if the character is a valid JS identifier start character. + */ +function isIdentifierStart(ch) { + return IDENT_START_EXPR.test(ch); +} +/** + * Determines if the character is a valid JS identifier start character. + */ +function isIdentifierPart(ch) { + return IDENT_PART_EXPR.test(ch); +} + +/** + * Quick flatten utility to flatten a 2-dimensional array. + * + * @param {Array>} array + * The array to flatten. + * + * @return {Array} + * The flattened array. + */ +function flatten(array) { + const result = []; + array.forEach((arr) => { + arr.forEach((item) => { + result.push(item); + }); + }); + return result; +} +/** + * Creates a { name: value } object if the input isn't already in that format. + * + * @param {string|object} name + * Either a string or an object. + * + * @param {*} value + * The value, only used if name is not an object. + * + * @return {object} + */ +function nameValueToObject(name, value) { + let obj = name; + if (typeof obj === 'string' || typeof obj === 'symbol') { + return { [name]: value }; + } + return obj; +} +/** + * Returns the last item in the array. + * + * @param {*[]} arr + * The array. + * + * @return {*} + * The last element. + */ +function last(arr) { + return arr[arr.length - 1]; +} +/** + * Determines if the given function is a class. + * + * @param {Function} fn + * @return {boolean} + */ +function isClass(fn) { + /*tslint:disable-next-line*/ + if (typeof fn !== 'function') { + return false; + } + // Should only need 2 tokens. + const tokenizer = createTokenizer(fn.toString()); + const first = tokenizer.next(); + if (first.type === 'class') { + return true; + } + const second = tokenizer.next(); + if (first.type === 'function' && second.value) { + if (second.value[0] === second.value[0].toUpperCase()) { + return true; + } + } + return false; +} +/** + * Determines if the given value is a function. + * + * @param {Any} val + * Any value to check if it's a function. + * + * @return {boolean} + * true if the value is a function, false otherwise. + */ +function isFunction(val) { + return typeof val === 'function'; +} +/** + * Returns the unique items in the array. + * + * @param {Array} + * The array to remove dupes from. + * + * @return {Array} + * The deduped array. + */ +function uniq(arr) { + return Array.from(new Set(arr)); +} + +// Regex to extract the module name. +const nameExpr = /(.*)\..*/i; +/** + * Internal method for globbing a single pattern. + * + * @param {String} globPattern + * The glob pattern. + * + * @param {String} opts.cwd + * Current working directory, used for resolving filepaths. + * Defaults to `process.cwd()`. + * + * @return {[{name, path, opts}]} + * The module names and paths. + * + * @api private + */ +function _listModules(globPattern, opts) { + opts = Object.assign({ cwd: process.cwd(), glob: glob.sync }, opts); + let patternOpts = null; + if (Array.isArray(globPattern)) { + patternOpts = globPattern[1]; + globPattern = globPattern[0]; + } + // Replace Windows path separators with Posix path + globPattern = globPattern.replace(/\\/g, '/'); + const result = opts.glob(globPattern, { cwd: opts.cwd }); + const mapped = result.map((p) => ({ + name: nameExpr.exec(path.basename(p))[1], + path: path.resolve(opts.cwd, p), + opts: patternOpts, + })); + return mapped; +} +/** + * Returns a list of {name, path} pairs, + * where the name is the module name, and path is the actual + * full path to the module. + * + * @param {String|Array} globPatterns + * The glob pattern as a string or an array of strings. + * + * @param {String} opts.cwd + * Current working directory, used for resolving filepaths. + * Defaults to `process.cwd()`. + * + * @return {[{name, path}]} + * An array of objects with the module names and paths. + */ +function listModules(globPatterns, opts) { + if (Array.isArray(globPatterns)) { + return flatten(globPatterns.map((p) => _listModules(p, opts))); + } + return _listModules(globPatterns, opts); +} + +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ + +function __awaiter(thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +} + +/** + * Lifetime types. + */ +const Lifetime = { + /** + * The registration will be resolved once and only once. + * @type {String} + */ + SINGLETON: 'SINGLETON', + /** + * The registration will be resolved every time (never cached). + * @type {String} + */ + TRANSIENT: 'TRANSIENT', + /** + * The registration will be resolved once per scope. + * @type {String} + */ + SCOPED: 'SCOPED', +}; + +/** + * Resolution modes. + */ +const InjectionMode = { + /** + * The dependencies will be resolved by injecting the cradle proxy. + * + * @type {String} + */ + PROXY: 'PROXY', + /** + * The dependencies will be resolved by inspecting parameter names of the function/constructor. + * + * @type {String} + */ + CLASSIC: 'CLASSIC', +}; + +/* + * Parses the parameter list of a function string, including ES6 class constructors. + * + * @param {string} source + * The source of a function to extract the parameter list from + * + * @return {Array | null} + * Returns an array of parameters, or `null` if no + * constructor was found for a class. + */ +function parseParameterList(source) { + const { next: _next, done } = createTokenizer(source); + const params = []; + let t = null; + nextToken(); + while (!done()) { + switch (t.type) { + case 'class': + skipUntilConstructor(); + // If we didn't find a constructor token, then we know that there + // are no dependencies in the defined class. + if (!isConstructorToken()) { + return null; + } + // Next token is the constructor identifier. + nextToken(); + break; + case 'function': + const next = nextToken(); + if (next.type === 'ident' || next.type === '*') { + // This is the function name or a generator star. Skip it. + nextToken(); + } + break; + case '(': + // Start parsing parameter names. + parseParams(); + break; + case ')': + // We're now out of the parameter list. + return params; + case 'ident': + // Likely a paren-less arrow function + // which can have no default args. + const param = { name: t.value, optional: false }; + if (t.value === 'async') { + // Given it's the very first token, we can assume it's an async function, + // so skip the async keyword if the next token is not an equals sign, in which + // case it is a single-arg arrow func. + const next = nextToken(); + if (next && next.type !== '=') { + break; + } + } + params.push(param); + return params; + /* istanbul ignore next */ + default: + throw unexpected(); + } + } + return params; + /** + * After having been placed within the parameter list of + * a function, parses the parameters. + */ + function parseParams() { + // Current token is a left-paren + let param = { name: '', optional: false }; + while (!done()) { + nextToken(); + switch (t.type) { + case 'ident': + param.name = t.value; + break; + case '=': + param.optional = true; + break; + case ',': + params.push(param); + param = { name: '', optional: false }; + break; + case ')': + if (param.name) { + params.push(param); + } + return; + /* istanbul ignore next */ + default: + throw unexpected(); + } + } + } + /** + * Skips until we reach the constructor identifier. + */ + function skipUntilConstructor() { + while (!isConstructorToken() && !done()) { + nextToken(1 /* TokenizerFlags.Dumb */); + } + } + /** + * Determines if the current token represents a constructor, and the next token after it is a paren + * @return {boolean} + */ + function isConstructorToken() { + return t.type === 'ident' && t.value === 'constructor'; + } + /** + * Advances the tokenizer and stores the previous token in history + */ + function nextToken(flags = 0 /* TokenizerFlags.None */) { + t = _next(flags); + return t; + } + /** + * Returns an error describing an unexpected token. + */ + /* istanbul ignore next */ + function unexpected() { + return new SyntaxError(`Parsing parameter list, did not expect ${t.type} token${t.value ? ` (${t.value})` : ''}`); + } +} + +/** + * RESOLVER symbol can be used by modules loaded by + * `loadModules` to configure their lifetime, injection mode, etc. + */ +const RESOLVER = Symbol('Awilix Resolver Config'); +/** + * Creates a simple value resolver where the given value will always be resolved. + * + * @param {string} name + * The name to register the value as. + * + * @param {*} value + * The value to resolve. + * + * @return {object} + * The resolver. + */ +function asValue(value) { + return { + resolve: () => value, + }; +} +/** + * Creates a factory resolver, where the given factory function + * will be invoked with `new` when requested. + * + * @param {string} name + * The name to register the value as. + * + * @param {Function} fn + * The function to register. + * + * @param {object} opts + * Additional options for the resolver. + * + * @return {object} + * The resolver. + */ +function asFunction(fn, opts) { + if (!isFunction(fn)) { + throw new AwilixTypeError('asFunction', 'fn', 'function', fn); + } + const defaults = { + lifetime: Lifetime.TRANSIENT, + }; + opts = makeOptions(defaults, opts, fn[RESOLVER]); + const resolve = generateResolve(fn); + let result = Object.assign({ resolve }, opts); + return createDisposableResolver(createBuildResolver(result)); +} +/** + * Like a factory resolver, but for classes that require `new`. + * + * @param {string} name + * The name to register the value as. + * + * @param {Class} Type + * The function to register. + * + * @param {object} opts + * Additional options for the resolver. + * + * @return {object} + * The resolver. + */ +function asClass(Type, opts) { + if (!isFunction(Type)) { + throw new AwilixTypeError('asClass', 'Type', 'class', Type); + } + const defaults = { + lifetime: Lifetime.TRANSIENT, + }; + opts = makeOptions(defaults, opts, Type[RESOLVER]); + // A function to handle object construction for us, as to make the generateResolve more reusable + const newClass = function newClass() { + return Reflect.construct(Type, arguments); + }; + const resolve = generateResolve(newClass, Type); + return createDisposableResolver(createBuildResolver(Object.assign(Object.assign({}, opts), { resolve }))); +} +/** + * Resolves to the specified registration. + */ +function aliasTo(name) { + return { + resolve(container) { + return container.resolve(name); + }, + }; +} +/** + * Given an options object, creates a fluid interface + * to manage it. + * + * @param {*} obj + * The object to return. + * + * @return {object} + * The interface. + */ +function createBuildResolver(obj) { + function setLifetime(value) { + return createBuildResolver(Object.assign(Object.assign({}, this), { lifetime: value })); + } + function setInjectionMode(value) { + return createBuildResolver(Object.assign(Object.assign({}, this), { injectionMode: value })); + } + function inject(injector) { + return createBuildResolver(Object.assign(Object.assign({}, this), { injector })); + } + return updateResolver(obj, { + setLifetime, + inject, + transient: partial(setLifetime, Lifetime.TRANSIENT), + scoped: partial(setLifetime, Lifetime.SCOPED), + singleton: partial(setLifetime, Lifetime.SINGLETON), + setInjectionMode, + proxy: partial(setInjectionMode, InjectionMode.PROXY), + classic: partial(setInjectionMode, InjectionMode.CLASSIC), + }); +} +/** + * Given a resolver, returns an object with methods to manage the disposer + * function. + * @param obj + */ +function createDisposableResolver(obj) { + function disposer(dispose) { + return createDisposableResolver(Object.assign(Object.assign({}, this), { dispose })); + } + return updateResolver(obj, { + disposer, + }); +} +/** + * Partially apply arguments to the given function. + */ +function partial(fn, arg1) { + return function partiallyApplied() { + return fn.call(this, arg1); + }; +} +/** + * Makes an options object based on defaults. + * + * @param {object} defaults + * Default options. + * + * @param {...} rest + * The input to check and possibly assign to the resulting object + * + * @return {object} + */ +function makeOptions(defaults, ...rest) { + return Object.assign({}, defaults, ...rest); +} +/** + * Creates a new resolver with props merged from both. + * + * @param source + * @param target + */ +function updateResolver(source, target) { + const result = Object.assign(Object.assign({}, source), target); + return result; +} +/** + * Returns a wrapped `resolve` function that provides values + * from the injector and defers to `container.resolve`. + * + * @param {AwilixContainer} container + * @param {Object} locals + * @return {Function} + */ +function wrapWithLocals(container, locals) { + return function wrappedResolve(name, resolveOpts) { + if (name in locals) { + return locals[name]; + } + return container.resolve(name, resolveOpts); + }; +} +/** + * Returns a new Proxy that checks the result from `injector` + * for values before delegating to the actual container. + * + * @param {Object} cradle + * @param {Function} injector + * @return {Proxy} + */ +function createInjectorProxy(container, injector) { + const locals = injector(container); + const allKeys = uniq([ + ...Reflect.ownKeys(container.cradle), + ...Reflect.ownKeys(locals), + ]); + // TODO: Lots of duplication here from the container proxy. + // Need to refactor. + const proxy = new Proxy({}, { + /** + * Resolves the value by first checking the locals, then the container. + */ + get(target, name) { + if (name === Symbol.iterator) { + return function* iterateRegistrationsAndLocals() { + for (const prop in container.cradle) { + yield prop; + } + for (const prop in locals) { + yield prop; + } + }; + } + if (name in locals) { + return locals[name]; + } + return container.resolve(name); + }, + /** + * Used for `Object.keys`. + */ + ownKeys() { + return allKeys; + }, + /** + * Used for `Object.keys`. + */ + getOwnPropertyDescriptor(target, key) { + if (allKeys.indexOf(key) > -1) { + return { + enumerable: true, + configurable: true, + }; + } + return undefined; + }, + }); + return proxy; +} +/** + * Returns a resolve function used to construct the dependency graph + * + * @this {Registration} + * The `this` context is a resolver. + * + * @param {Function} fn + * The function to construct + * + * @param {Function} dependencyParseTarget + * The function to parse for the dependencies of the construction target + * + * @param {boolean} isFunction + * Is the resolution target an actual function or a mask for a constructor? + * + * @return {Function} + * The function used for dependency resolution + */ +function generateResolve(fn, dependencyParseTarget) { + // If the function used for dependency parsing is falsy, use the supplied function + if (!dependencyParseTarget) { + dependencyParseTarget = fn; + } + // Parse out the dependencies + // NOTE: we do this regardless of whether PROXY is used or not, + // because if this fails, we want it to fail early (at startup) rather + // than at resolution time. + const dependencies = parseDependencies(dependencyParseTarget); + // Use a regular function instead of an arrow function to facilitate binding to the resolver. + return function resolve(container) { + // Because the container holds a global reolutionMode we need to determine it in the proper order of precedence: + // resolver -> container -> default value + const injectionMode = this.injectionMode || + container.options.injectionMode || + InjectionMode.PROXY; + if (injectionMode !== InjectionMode.CLASSIC) { + // If we have a custom injector, we need to wrap the cradle. + const cradle = this.injector + ? createInjectorProxy(container, this.injector) + : container.cradle; + // Return the target injected with the cradle + return fn(cradle); + } + // We have dependencies so we need to resolve them manually + if (dependencies.length > 0) { + const resolve = this.injector + ? wrapWithLocals(container, this.injector(container)) + : container.resolve; + const children = dependencies.map((p) => resolve(p.name, { allowUnregistered: p.optional })); + return fn(...children); + } + return fn(); + }; +} +/** + * Parses the dependencies from the given function. + * If it's a class that extends another class, and it does + * not have a defined constructor, attempt to parse it's super constructor. + */ +function parseDependencies(fn) { + const result = parseParameterList(fn.toString()); + if (!result) { + // No defined constructor for a class, check if there is a parent + // we can parse. + const parent = Object.getPrototypeOf(fn); + if (typeof parent === 'function' && parent !== Function.prototype) { + // Try to parse the parent + return parseDependencies(parent); + } + return []; + } + return result; +} + +const nameFormatters = { + camelCase: (s) => camelCase(s), +}; +/** + * Given an array of glob strings, will call `require` + * on them, and call their default exported function with the + * container as the first parameter. + * + * @param {AwilixContainer} dependencies.container + * The container to install loaded modules in. + * + * @param {Function} dependencies.listModules + * The listModules function to use for listing modules. + * + * @param {Function} dependencies.require + * The require function - it's a dependency because it makes testing easier. + * + * @param {String[]} globPatterns + * The array of globs to use when loading modules. + * + * @param {Object} opts + * Passed to `listModules`, e.g. `{ cwd: '...' }`. + * + * @param {(string, ModuleDescriptor) => string} opts.formatName + * Used to format the name the module is registered with in the container. + * + * @param {boolean} opts.esModules + * Set to `true` to use Node's native ECMAScriptModules modules + * + * @return {Object} + * Returns an object describing the result. + */ +function loadModules(dependencies, globPatterns, opts) { + opts !== null && opts !== void 0 ? opts : (opts = {}); + const container = dependencies.container; + opts = optsWithDefaults(opts); + const modules = dependencies.listModules(globPatterns, opts); + if (opts.esModules) { + return loadEsModules(dependencies, container, modules, opts); + } + else { + const result = modules.map((m) => { + const loaded = dependencies.require(m.path); + return parseLoadedModule(loaded, m); + }); + return registerModules(result, container, modules, opts); + } +} +/** + * Loads the modules using native ES6 modules and the async import() + * @param {AwilixContainer} container + * @param {ModuleDescriptor[]} modules + * @param {LoadModulesOptions} opts + */ +function loadEsModules(dependencies, container, modules, opts) { + return __awaiter(this, void 0, void 0, function* () { + const importPromises = []; + for (const m of modules) { + const fileUrl = pathToFileURL(m.path).toString(); + importPromises.push(dependencies.require(fileUrl)); + } + const imports = yield Promise.all(importPromises); + const result = []; + for (let i = 0; i < modules.length; i++) { + result.push(parseLoadedModule(imports[i], modules[i])); + } + return registerModules(result, container, modules, opts); + }); +} +/** + * Parses the module which has been required + * + * @param {any} loaded + * @param {ModuleDescriptor} m + */ +function parseLoadedModule(loaded, m) { + const items = []; + // Meh, it happens. + if (!loaded) { + return items; + } + if (isFunction(loaded)) { + // for module.exports = ... + items.push({ + name: m.name, + path: m.path, + value: loaded, + opts: m.opts, + }); + return items; + } + if (loaded.default && isFunction(loaded.default)) { + // ES6 default export + items.push({ + name: m.name, + path: m.path, + value: loaded.default, + opts: m.opts, + }); + } + // loop through non-default exports, but require the RESOLVER property set for + // it to be a valid service module export. + for (const key of Object.keys(loaded)) { + if (key === 'default') { + // default case handled separately due to its different name (file name) + continue; + } + if (isFunction(loaded[key]) && RESOLVER in loaded[key]) { + items.push({ + name: key, + path: m.path, + value: loaded[key], + opts: m.opts, + }); + } + } + return items; +} +/** + * Registers the modules + * + * @param {ModuleDescriptorVal[][]} modulesToRegister + * @param {AwilixContainer} container + * @param {ModuleDescriptor[]} modules + * @param {LoadModulesOptions} opts + */ +function registerModules(modulesToRegister, container, modules, opts) { + modulesToRegister + .reduce((acc, cur) => acc.concat(cur), []) + .filter((x) => x) + .forEach(registerDescriptor.bind(null, container, opts)); + return { + loadedModules: modules, + }; +} +/** + * Returns a new options object with defaults applied. + */ +function optsWithDefaults(opts, container) { + return Object.assign({ + // Does a somewhat-deep merge on the registration options. + resolverOptions: Object.assign({ lifetime: Lifetime.TRANSIENT }, (opts && opts.resolverOptions)) }, opts); +} +/** + * Given a module descriptor, reads it and registers it's value with the container. + * + * @param {AwilixContainer} container + * @param {LoadModulesOptions} opts + * @param {ModuleDescriptor} moduleDescriptor + */ +function registerDescriptor(container, opts, moduleDescriptor) { + const inlineConfig = moduleDescriptor.value[RESOLVER]; + let name = inlineConfig && inlineConfig.name; + if (!name) { + name = moduleDescriptor.name; + let formatter = opts.formatName; + if (formatter) { + if (typeof formatter === 'string') { + formatter = nameFormatters[formatter]; + } + if (formatter) { + name = formatter(name, moduleDescriptor); + } + } + } + let moduleDescriptorOpts = moduleDescriptor.opts; + if (typeof moduleDescriptorOpts === 'string') { + moduleDescriptorOpts = { lifetime: moduleDescriptorOpts }; + } + const regOpts = Object.assign(Object.assign(Object.assign({}, opts.resolverOptions), moduleDescriptorOpts), inlineConfig); + const reg = regOpts.register + ? regOpts.register + : isClass(moduleDescriptor.value) + ? asClass + : asFunction; + container.register(name, reg(moduleDescriptor.value, regOpts)); +} + +/** + * Family tree symbol. + */ +const FAMILY_TREE = Symbol('familyTree'); +/** + * Roll Up Registrations symbol. + */ +const ROLL_UP_REGISTRATIONS = Symbol('rollUpRegistrations'); +/** + * The string representation when calling toString. + */ +const CRADLE_STRING_TAG = 'AwilixContainerCradle'; +/** + * Creates an Awilix container instance. + * + * @param {Function} options.require + * The require function to use. Defaults to require. + * + * @param {string} options.injectionMode + * The mode used by the container to resolve dependencies. Defaults to 'Proxy'. + * + * @return {AwilixContainer} + * The container. + */ +function createContainer(options, parentContainer) { + options = Object.assign({ injectionMode: InjectionMode.PROXY }, options); + // The resolution stack is used to keep track + // of what modules are being resolved, so when + // an error occurs, we have something to present + // to the poor developer who fucked up. + let resolutionStack = []; + // Internal registration store for this container. + const registrations = {}; + /** + * The `Proxy` that is passed to functions so they can resolve their dependencies without + * knowing where they come from. I call it the "cradle" because + * it is where registered things come to life at resolution-time. + */ + const cradle = new Proxy({ + [util.inspect.custom]: toStringRepresentationFn, + }, { + /** + * The `get` handler is invoked whenever a get-call for `container.cradle.*` is made. + * + * @param {object} _target + * The proxy target. Irrelevant. + * + * @param {string} name + * The property name. + * + * @return {*} + * Whatever the resolve call returns. + */ + get: (_target, name) => resolve(name), + /** + * Setting things on the cradle throws an error. + * + * @param {object} target + * @param {string} name + */ + set: (_target, name) => { + throw new Error(`Attempted setting property "${name}" on container cradle - this is not allowed.`); + }, + /** + * Used for `Object.keys`. + */ + ownKeys() { + return Array.from(cradle); + }, + /** + * Used for `Object.keys`. + */ + getOwnPropertyDescriptor(target, key) { + const regs = rollUpRegistrations(); + if (Object.getOwnPropertyDescriptor(regs, key)) { + return { + enumerable: true, + configurable: true, + }; + } + return undefined; + }, + }); + // The container being exposed. + const container = { + options, + cradle, + inspect, + cache: new Map(), + loadModules: loadModules$1, + createScope, + register: register, + build, + resolve, + hasRegistration, + dispose, + getRegistration, + [util.inspect.custom]: inspect, + // tslint:disable-next-line + [ROLL_UP_REGISTRATIONS]: rollUpRegistrations, + get registrations() { + return rollUpRegistrations(); + }, + }; + // Track the family tree. + const familyTree = parentContainer + ? [container].concat(parentContainer[FAMILY_TREE]) + : [container]; + container[FAMILY_TREE] = familyTree; + // We need a reference to the root container, + // so we can retrieve and store singletons. + const rootContainer = last(familyTree); + return container; + /** + * Used by util.inspect (which is used by console.log). + */ + function inspect() { + return `[AwilixContainer (${parentContainer ? 'scoped, ' : ''}registrations: ${Object.keys(container.registrations).length})]`; + } + /** + * Rolls up registrations from the family tree. + * + * This can get pretty expensive. Only used when + * iterating the cradle proxy, which is not something + * that should be done in day-to-day use, mostly for debugging. + * + * @param {boolean} bustCache + * Forces a recomputation. + * + * @return {object} + * The merged registrations object. + */ + function rollUpRegistrations() { + return Object.assign(Object.assign({}, (parentContainer && parentContainer[ROLL_UP_REGISTRATIONS]())), registrations); + } + /** + * Used for providing an iterator to the cradle. + */ + function* cradleIterator() { + const registrations = rollUpRegistrations(); + for (const registrationName in registrations) { + yield registrationName; + } + } + /** + * Creates a scoped container. + * + * @return {object} + * The scoped container. + */ + function createScope() { + return createContainer(options, container); + } + /** + * Adds a registration for a resolver. + */ + function register(arg1, arg2) { + const obj = nameValueToObject(arg1, arg2); + const keys = [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj)]; + for (const key of keys) { + const value = obj[key]; + registrations[key] = value; + } + return container; + } + /** + * Returned to `util.inspect` and Symbol.toStringTag when attempting to resolve + * a custom inspector function on the cradle. + */ + function toStringRepresentationFn() { + return Object.prototype.toString.call(cradle); + } + /** + * Recursively gets a registration by name if it exists in the + * current container or any of its' parents. + * + * @param name {string | symbol} The registration name. + */ + function getRegistration(name) { + const resolver = registrations[name]; + if (resolver) { + return resolver; + } + if (parentContainer) { + return parentContainer.getRegistration(name); + } + return null; + } + /** + * Resolves the registration with the given name. + * + * @param {string | symbol} name + * The name of the registration to resolve. + * + * @param {ResolveOptions} resolveOpts + * The resolve options. + * + * @return {any} + * Whatever was resolved. + */ + function resolve(name, resolveOpts) { + resolveOpts = resolveOpts || {}; + try { + // Grab the registration by name. + const resolver = getRegistration(name); + if (resolutionStack.indexOf(name) > -1) { + throw new AwilixResolutionError(name, resolutionStack, 'Cyclic dependencies detected.'); + } + // Used in JSON.stringify. + if (name === 'toJSON') { + return toStringRepresentationFn; + } + // Used in console.log. + if (name === 'constructor') { + return createContainer; + } + if (!resolver) { + // Checks for some edge cases. + switch (name) { + // The following checks ensure that console.log on the cradle does not + // throw an error (issue #7). + case util.inspect.custom: + case 'inspect': + case 'toString': + return toStringRepresentationFn; + case Symbol.toStringTag: + return CRADLE_STRING_TAG; + // Edge case: Promise unwrapping will look for a "then" property and attempt to call it. + // Return undefined so that we won't cause a resolution error. (issue #109) + case 'then': + return undefined; + // When using `Array.from` or spreading the cradle, this will + // return the registration names. + case Symbol.iterator: + return cradleIterator; + } + if (resolveOpts.allowUnregistered) { + return undefined; + } + throw new AwilixResolutionError(name, resolutionStack); + } + // Pushes the currently-resolving module name onto the stack + resolutionStack.push(name); + // Do the thing + let cached; + let resolved; + switch (resolver.lifetime || Lifetime.TRANSIENT) { + case Lifetime.TRANSIENT: + // Transient lifetime means resolve every time. + resolved = resolver.resolve(container); + break; + case Lifetime.SINGLETON: + // Singleton lifetime means cache at all times, regardless of scope. + cached = rootContainer.cache.get(name); + if (!cached) { + resolved = resolver.resolve(container); + rootContainer.cache.set(name, { resolver, value: resolved }); + } + else { + resolved = cached.value; + } + break; + case Lifetime.SCOPED: + // Scoped lifetime means that the container + // that resolves the registration also caches it. + // When a registration is not found, we travel up + // the family tree until we find one that is cached. + cached = container.cache.get(name); + if (cached !== undefined) { + // We found one! + resolved = cached.value; + break; + } + // If we still have not found one, we need to resolve and cache it. + resolved = resolver.resolve(container); + container.cache.set(name, { resolver, value: resolved }); + break; + default: + throw new AwilixResolutionError(name, resolutionStack, `Unknown lifetime "${resolver.lifetime}"`); + } + // Pop it from the stack again, ready for the next resolution + resolutionStack.pop(); + return resolved; + } + catch (err) { + // When we get an error we need to reset the stack. + resolutionStack = []; + throw err; + } + } + /** + * Checks if the registration with the given name exists. + * + * @param {string | symbol} name + * The name of the registration to resolve. + * + * @return {boolean} + * Whether or not the registration exists. + */ + function hasRegistration(name) { + return !!getRegistration(name); + } + /** + * Given a registration, class or function, builds it up and returns it. + * Does not cache it, this means that any lifetime configured in case of passing + * a registration will not be used. + * + * @param {Resolver|Class|Function} targetOrResolver + * @param {ResolverOptions} opts + */ + function build(targetOrResolver, opts) { + if (targetOrResolver && targetOrResolver.resolve) { + return targetOrResolver.resolve(container); + } + const funcName = 'build'; + const paramName = 'targetOrResolver'; + AwilixTypeError.assert(targetOrResolver, funcName, paramName, 'a registration, function or class', targetOrResolver); + AwilixTypeError.assert(typeof targetOrResolver === 'function', funcName, paramName, 'a function or class', targetOrResolver); + const resolver = isClass(targetOrResolver) + ? asClass(targetOrResolver, opts) + : asFunction(targetOrResolver, opts); + return resolver.resolve(container); + } + /** + * Binds `lib/loadModules` to this container, and provides + * real implementations of it's dependencies. + * + * Additionally, any modules using the `dependsOn` API + * will be resolved. + * + * @see lib/loadModules.js documentation. + */ + function loadModules$1(globPatterns, opts) { + const _loadModulesDeps = { + require: options.require || + function (uri) { + return require(uri); + }, + listModules, + container, + }; + if (opts === null || opts === void 0 ? void 0 : opts.esModules) { + _loadModulesDeps.require = importModule; + return loadModules(_loadModulesDeps, globPatterns, opts).then(() => container); + } + else { + loadModules(_loadModulesDeps, globPatterns, opts); + return container; + } + } + /** + * Disposes this container and it's children, calling the disposer + * on all disposable registrations and clearing the cache. + */ + function dispose() { + const entries = Array.from(container.cache.entries()); + container.cache.clear(); + return Promise.all(entries.map(([name, entry]) => { + const { resolver, value } = entry; + const disposable = resolver; + if (disposable.dispose) { + return Promise.resolve().then(() => disposable.dispose(value)); + } + return Promise.resolve(); + })).then(() => undefined); + } +} + +export { AwilixError, AwilixResolutionError, AwilixTypeError, ExtendableError, InjectionMode, Lifetime, RESOLVER, aliasTo, asClass, asFunction, asValue, createBuildResolver, createContainer, createDisposableResolver, listModules }; diff --git a/node_modules/awilix/lib/awilix.umd.js b/node_modules/awilix/lib/awilix.umd.js new file mode 100644 index 0000000..3a8fffa --- /dev/null +++ b/node_modules/awilix/lib/awilix.umd.js @@ -0,0 +1,1465 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : + typeof define === 'function' && define.amd ? define(['exports'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Awilix = {})); +})(this, (function (exports) { 'use strict'; + + /****************************************************************************** + Copyright (c) Microsoft Corporation. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + ***************************************************************************** */ + /* global Reflect, Promise */ + + var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + + function __extends(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + } + + var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); + }; + + function __generator(thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + } + + function __spreadArray(to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + } + + /** + * Newline. + */ + var EOL = '\n'; + /** + * An extendable error class. + * @author https://github.com/bjyoungblood/es6-error/ + */ + var ExtendableError = /** @class */ (function (_super) { + __extends(ExtendableError, _super); + /** + * Constructor for the error. + * + * @param {String} message + * The error message. + */ + function ExtendableError(message) { + var _this = _super.call(this, message) || this; + // extending Error is weird and does not propagate `message` + Object.defineProperty(_this, 'message', { + enumerable: false, + value: message, + }); + Object.defineProperty(_this, 'name', { + enumerable: false, + value: _this.constructor.name, + }); + // Not all browsers have this function. + /* istanbul ignore else */ + if ('captureStackTrace' in Error) { + Error.captureStackTrace(_this, _this.constructor); + } + else { + Object.defineProperty(_this, 'stack', { + enumerable: false, + value: Error(message).stack, + writable: true, + configurable: true, + }); + } + return _this; + } + return ExtendableError; + }(Error)); + /** + * Base error for all Awilix-specific errors. + */ + var AwilixError = /** @class */ (function (_super) { + __extends(AwilixError, _super); + function AwilixError() { + return _super !== null && _super.apply(this, arguments) || this; + } + return AwilixError; + }(ExtendableError)); + /** + * Error thrown to indicate a type mismatch. + */ + var AwilixTypeError = /** @class */ (function (_super) { + __extends(AwilixTypeError, _super); + /** + * Constructor, takes the function name, expected and given + * type to produce an error. + * + * @param {string} funcDescription + * Name of the function being guarded. + * + * @param {string} paramName + * The parameter there was an issue with. + * + * @param {string} expectedType + * Name of the expected type. + * + * @param {string} givenType + * Name of the given type. + */ + function AwilixTypeError(funcDescription, paramName, expectedType, givenType) { + return _super.call(this, "".concat(funcDescription, ": expected ").concat(paramName, " to be ").concat(expectedType, ", but got ").concat(givenType, ".")) || this; + } + /** + * Asserts the given condition, throws an error otherwise. + * + * @param {*} condition + * The condition to check + * + * @param {string} funcDescription + * Name of the function being guarded. + * + * @param {string} paramName + * The parameter there was an issue with. + * + * @param {string} expectedType + * Name of the expected type. + * + * @param {string} givenType + * Name of the given type. + */ + AwilixTypeError.assert = function (condition, funcDescription, paramName, expectedType, givenType) { + if (!condition) { + throw new AwilixTypeError(funcDescription, paramName, expectedType, givenType); + } + return condition; + }; + return AwilixTypeError; + }(AwilixError)); + /** + * A nice error class so we can do an instanceOf check. + */ + var AwilixResolutionError = /** @class */ (function (_super) { + __extends(AwilixResolutionError, _super); + /** + * Constructor, takes the registered modules and unresolved tokens + * to create a message. + * + * @param {string|symbol} name + * The name of the module that could not be resolved. + * + * @param {string[]} resolutionStack + * The current resolution stack + */ + function AwilixResolutionError(name, resolutionStack, message) { + if (typeof name === 'symbol') { + name = name.toString(); + } + resolutionStack = resolutionStack.map(function (val) { + return typeof val === 'symbol' ? val.toString() : val; + }); + resolutionStack.push(name); + var resolutionPathString = resolutionStack.join(' -> '); + var msg = "Could not resolve '".concat(name, "'."); + if (message) { + msg += " ".concat(message); + } + msg += EOL + EOL; + msg += "Resolution path: ".concat(resolutionPathString); + return _super.call(this, msg) || this; + } + return AwilixResolutionError; + }(AwilixError)); + + /** + * Creates a tokenizer for the specified source. + * + * @param source + */ + function createTokenizer(source) { + var end = source.length; + var pos = 0; + var type = 'EOF'; + var value = ''; + var flags = 0 /* TokenizerFlags.None */; + // These are used to greedily skip as much as possible. + // Whenever we reach a paren, we increment these. + var parenLeft = 0; + var parenRight = 0; + return { + next: next, + done: done, + }; + /** + * Advances the tokenizer and returns the next token. + */ + function next(nextFlags) { + if (nextFlags === void 0) { nextFlags = 0 /* TokenizerFlags.None */; } + flags = nextFlags; + advance(); + return createToken(); + } + /** + * Advances the tokenizer state. + */ + function advance() { + value = ''; + type = 'EOF'; + while (true) { + if (pos >= end) { + return (type = 'EOF'); + } + var ch = source.charAt(pos); + // Whitespace is irrelevant + if (isWhiteSpace(ch)) { + pos++; + continue; + } + switch (ch) { + case '(': + pos++; + parenLeft++; + return (type = ch); + case ')': + pos++; + parenRight++; + return (type = ch); + case '*': + pos++; + return (type = ch); + case ',': + pos++; + return (type = ch); + case '=': + pos++; + if ((flags & 1 /* TokenizerFlags.Dumb */) === 0) { + // Not in dumb-mode, so attempt to skip. + skipExpression(); + } + // We need to know that there's a default value so we can + // skip it if it does not exist when resolving. + return (type = ch); + case '/': + pos++; + var nextCh = source.charAt(pos); + if (nextCh === '/') { + skipUntil(function (c) { return c === '\n'; }, true); + pos++; + } + if (nextCh === '*') { + skipUntil(function (c) { + var closing = source.charAt(pos + 1); + return c === '*' && closing === '/'; + }, true); + pos++; + } + continue; + default: + // Scans an identifier. + if (isIdentifierStart(ch)) { + scanIdentifier(); + return type; + } + // Elegantly skip over tokens we don't care about. + pos++; + } + } + } + /** + * Scans an identifier, given it's already been proven + * we are ready to do so. + */ + function scanIdentifier() { + var identStart = source.charAt(pos); + var start = ++pos; + while (isIdentifierPart(source.charAt(pos))) { + pos++; + } + value = '' + identStart + source.substring(start, pos); + type = value === 'function' || value === 'class' ? value : 'ident'; + if (type !== 'ident') { + value = ''; + } + return value; + } + /** + * Skips everything until the next comma or the end of the parameter list. + * Checks the parenthesis balance so we correctly skip function calls. + */ + function skipExpression() { + skipUntil(function (ch) { + var isAtRoot = parenLeft === parenRight + 1; + if (ch === ',' && isAtRoot) { + return true; + } + if (ch === '(') { + parenLeft++; + return false; + } + if (ch === ')') { + parenRight++; + if (isAtRoot) { + return true; + } + } + return false; + }); + } + /** + * Skips strings and whilespace until the predicate is true. + * + * @param callback stops skipping when this returns `true`. + * @param dumb if `true`, does not skip whitespace and strings; + * it only stops once the callback returns `true`. + */ + function skipUntil(callback, dumb) { + if (dumb === void 0) { dumb = false; } + while (pos < source.length) { + var ch = source.charAt(pos); + if (callback(ch)) { + return; + } + if (!dumb) { + if (isWhiteSpace(ch)) { + pos++; + continue; + } + if (isStringQuote(ch)) { + skipString(); + continue; + } + } + pos++; + } + } + /** + * Given the current position is at a string quote, skips the entire string. + */ + function skipString() { + var quote = source.charAt(pos); + pos++; + while (pos < source.length) { + var ch = source.charAt(pos); + var prev = source.charAt(pos - 1); + // Checks if the quote was escaped. + if (ch === quote && prev !== '\\') { + pos++; + return; + } + // Template strings are a bit tougher, we want to skip the interpolated values. + if (quote === '`') { + var next_1 = source.charAt(pos + 1); + if (next_1 === '$') { + var afterDollar = source.charAt(pos + 2); + if (afterDollar === '{') { + // This is the start of an interpolation; skip the ${ + pos = pos + 2; + // Skip strings and whitespace until we reach the ending }. + // This includes skipping nested interpolated strings. :D + skipUntil(function (ch) { return ch === '}'; }); + } + } + } + pos++; + } + } + /** + * Creates a token from the current state. + */ + function createToken() { + if (value) { + return { value: value, type: type }; + } + return { type: type }; + } + /** + * Determines if we are done parsing. + */ + function done() { + return type === 'EOF'; + } + } + /** + * Determines if the given character is a whitespace character. + * + * @param {string} ch + * @return {boolean} + */ + function isWhiteSpace(ch) { + switch (ch) { + case '\r': + case '\n': + case ' ': + return true; + } + return false; + } + /** + * Determines if the specified character is a string quote. + * @param {string} ch + * @return {boolean} + */ + function isStringQuote(ch) { + switch (ch) { + case "'": + case '"': + case '`': + return true; + } + return false; + } + // NOTE: I've added the `.` character so that member expression paths + // are seen as identifiers. This is so we don't get a constructor token for + // stuff like `MyClass.prototype.constructor()` + var IDENT_START_EXPR = /^[_$a-zA-Z\xA0-\uFFFF]$/; + var IDENT_PART_EXPR = /^[._$a-zA-Z0-9\xA0-\uFFFF]$/; + /** + * Determines if the character is a valid JS identifier start character. + */ + function isIdentifierStart(ch) { + return IDENT_START_EXPR.test(ch); + } + /** + * Determines if the character is a valid JS identifier start character. + */ + function isIdentifierPart(ch) { + return IDENT_PART_EXPR.test(ch); + } + + /** + * Creates a { name: value } object if the input isn't already in that format. + * + * @param {string|object} name + * Either a string or an object. + * + * @param {*} value + * The value, only used if name is not an object. + * + * @return {object} + */ + function nameValueToObject(name, value) { + var _a; + var obj = name; + if (typeof obj === 'string' || typeof obj === 'symbol') { + return _a = {}, _a[name] = value, _a; + } + return obj; + } + /** + * Returns the last item in the array. + * + * @param {*[]} arr + * The array. + * + * @return {*} + * The last element. + */ + function last(arr) { + return arr[arr.length - 1]; + } + /** + * Determines if the given function is a class. + * + * @param {Function} fn + * @return {boolean} + */ + function isClass(fn) { + /*tslint:disable-next-line*/ + if (typeof fn !== 'function') { + return false; + } + // Should only need 2 tokens. + var tokenizer = createTokenizer(fn.toString()); + var first = tokenizer.next(); + if (first.type === 'class') { + return true; + } + var second = tokenizer.next(); + if (first.type === 'function' && second.value) { + if (second.value[0] === second.value[0].toUpperCase()) { + return true; + } + } + return false; + } + /** + * Determines if the given value is a function. + * + * @param {Any} val + * Any value to check if it's a function. + * + * @return {boolean} + * true if the value is a function, false otherwise. + */ + function isFunction(val) { + return typeof val === 'function'; + } + /** + * Returns the unique items in the array. + * + * @param {Array} + * The array to remove dupes from. + * + * @return {Array} + * The deduped array. + */ + function uniq(arr) { + return Array.from(new Set(arr)); + } + + /** + * Lifetime types. + */ + var Lifetime = { + /** + * The registration will be resolved once and only once. + * @type {String} + */ + SINGLETON: 'SINGLETON', + /** + * The registration will be resolved every time (never cached). + * @type {String} + */ + TRANSIENT: 'TRANSIENT', + /** + * The registration will be resolved once per scope. + * @type {String} + */ + SCOPED: 'SCOPED', + }; + + /** + * Resolution modes. + */ + var InjectionMode = { + /** + * The dependencies will be resolved by injecting the cradle proxy. + * + * @type {String} + */ + PROXY: 'PROXY', + /** + * The dependencies will be resolved by inspecting parameter names of the function/constructor. + * + * @type {String} + */ + CLASSIC: 'CLASSIC', + }; + + /* + * Parses the parameter list of a function string, including ES6 class constructors. + * + * @param {string} source + * The source of a function to extract the parameter list from + * + * @return {Array | null} + * Returns an array of parameters, or `null` if no + * constructor was found for a class. + */ + function parseParameterList(source) { + var _a = createTokenizer(source), _next = _a.next, done = _a.done; + var params = []; + var t = null; + nextToken(); + while (!done()) { + switch (t.type) { + case 'class': + skipUntilConstructor(); + // If we didn't find a constructor token, then we know that there + // are no dependencies in the defined class. + if (!isConstructorToken()) { + return null; + } + // Next token is the constructor identifier. + nextToken(); + break; + case 'function': + var next = nextToken(); + if (next.type === 'ident' || next.type === '*') { + // This is the function name or a generator star. Skip it. + nextToken(); + } + break; + case '(': + // Start parsing parameter names. + parseParams(); + break; + case ')': + // We're now out of the parameter list. + return params; + case 'ident': + // Likely a paren-less arrow function + // which can have no default args. + var param = { name: t.value, optional: false }; + if (t.value === 'async') { + // Given it's the very first token, we can assume it's an async function, + // so skip the async keyword if the next token is not an equals sign, in which + // case it is a single-arg arrow func. + var next_1 = nextToken(); + if (next_1 && next_1.type !== '=') { + break; + } + } + params.push(param); + return params; + /* istanbul ignore next */ + default: + throw unexpected(); + } + } + return params; + /** + * After having been placed within the parameter list of + * a function, parses the parameters. + */ + function parseParams() { + // Current token is a left-paren + var param = { name: '', optional: false }; + while (!done()) { + nextToken(); + switch (t.type) { + case 'ident': + param.name = t.value; + break; + case '=': + param.optional = true; + break; + case ',': + params.push(param); + param = { name: '', optional: false }; + break; + case ')': + if (param.name) { + params.push(param); + } + return; + /* istanbul ignore next */ + default: + throw unexpected(); + } + } + } + /** + * Skips until we reach the constructor identifier. + */ + function skipUntilConstructor() { + while (!isConstructorToken() && !done()) { + nextToken(1 /* TokenizerFlags.Dumb */); + } + } + /** + * Determines if the current token represents a constructor, and the next token after it is a paren + * @return {boolean} + */ + function isConstructorToken() { + return t.type === 'ident' && t.value === 'constructor'; + } + /** + * Advances the tokenizer and stores the previous token in history + */ + function nextToken(flags) { + if (flags === void 0) { flags = 0 /* TokenizerFlags.None */; } + t = _next(flags); + return t; + } + /** + * Returns an error describing an unexpected token. + */ + /* istanbul ignore next */ + function unexpected() { + return new SyntaxError("Parsing parameter list, did not expect ".concat(t.type, " token").concat(t.value ? " (".concat(t.value, ")") : '')); + } + } + + /** + * RESOLVER symbol can be used by modules loaded by + * `loadModules` to configure their lifetime, injection mode, etc. + */ + var RESOLVER = Symbol('Awilix Resolver Config'); + /** + * Creates a simple value resolver where the given value will always be resolved. + * + * @param {string} name + * The name to register the value as. + * + * @param {*} value + * The value to resolve. + * + * @return {object} + * The resolver. + */ + function asValue(value) { + return { + resolve: function () { return value; }, + }; + } + /** + * Creates a factory resolver, where the given factory function + * will be invoked with `new` when requested. + * + * @param {string} name + * The name to register the value as. + * + * @param {Function} fn + * The function to register. + * + * @param {object} opts + * Additional options for the resolver. + * + * @return {object} + * The resolver. + */ + function asFunction(fn, opts) { + if (!isFunction(fn)) { + throw new AwilixTypeError('asFunction', 'fn', 'function', fn); + } + var defaults = { + lifetime: Lifetime.TRANSIENT, + }; + opts = makeOptions(defaults, opts, fn[RESOLVER]); + var resolve = generateResolve(fn); + var result = __assign({ resolve: resolve }, opts); + return createDisposableResolver(createBuildResolver(result)); + } + /** + * Like a factory resolver, but for classes that require `new`. + * + * @param {string} name + * The name to register the value as. + * + * @param {Class} Type + * The function to register. + * + * @param {object} opts + * Additional options for the resolver. + * + * @return {object} + * The resolver. + */ + function asClass(Type, opts) { + if (!isFunction(Type)) { + throw new AwilixTypeError('asClass', 'Type', 'class', Type); + } + var defaults = { + lifetime: Lifetime.TRANSIENT, + }; + opts = makeOptions(defaults, opts, Type[RESOLVER]); + // A function to handle object construction for us, as to make the generateResolve more reusable + var newClass = function newClass() { + return Reflect.construct(Type, arguments); + }; + var resolve = generateResolve(newClass, Type); + return createDisposableResolver(createBuildResolver(__assign(__assign({}, opts), { resolve: resolve }))); + } + /** + * Resolves to the specified registration. + */ + function aliasTo(name) { + return { + resolve: function (container) { + return container.resolve(name); + }, + }; + } + /** + * Given an options object, creates a fluid interface + * to manage it. + * + * @param {*} obj + * The object to return. + * + * @return {object} + * The interface. + */ + function createBuildResolver(obj) { + function setLifetime(value) { + return createBuildResolver(__assign(__assign({}, this), { lifetime: value })); + } + function setInjectionMode(value) { + return createBuildResolver(__assign(__assign({}, this), { injectionMode: value })); + } + function inject(injector) { + return createBuildResolver(__assign(__assign({}, this), { injector: injector })); + } + return updateResolver(obj, { + setLifetime: setLifetime, + inject: inject, + transient: partial(setLifetime, Lifetime.TRANSIENT), + scoped: partial(setLifetime, Lifetime.SCOPED), + singleton: partial(setLifetime, Lifetime.SINGLETON), + setInjectionMode: setInjectionMode, + proxy: partial(setInjectionMode, InjectionMode.PROXY), + classic: partial(setInjectionMode, InjectionMode.CLASSIC), + }); + } + /** + * Given a resolver, returns an object with methods to manage the disposer + * function. + * @param obj + */ + function createDisposableResolver(obj) { + function disposer(dispose) { + return createDisposableResolver(__assign(__assign({}, this), { dispose: dispose })); + } + return updateResolver(obj, { + disposer: disposer, + }); + } + /** + * Partially apply arguments to the given function. + */ + function partial(fn, arg1) { + return function partiallyApplied() { + return fn.call(this, arg1); + }; + } + /** + * Makes an options object based on defaults. + * + * @param {object} defaults + * Default options. + * + * @param {...} rest + * The input to check and possibly assign to the resulting object + * + * @return {object} + */ + function makeOptions(defaults) { + var rest = []; + for (var _i = 1; _i < arguments.length; _i++) { + rest[_i - 1] = arguments[_i]; + } + return Object.assign.apply(Object, __spreadArray([{}, defaults], rest, false)); + } + /** + * Creates a new resolver with props merged from both. + * + * @param source + * @param target + */ + function updateResolver(source, target) { + var result = __assign(__assign({}, source), target); + return result; + } + /** + * Returns a wrapped `resolve` function that provides values + * from the injector and defers to `container.resolve`. + * + * @param {AwilixContainer} container + * @param {Object} locals + * @return {Function} + */ + function wrapWithLocals(container, locals) { + return function wrappedResolve(name, resolveOpts) { + if (name in locals) { + return locals[name]; + } + return container.resolve(name, resolveOpts); + }; + } + /** + * Returns a new Proxy that checks the result from `injector` + * for values before delegating to the actual container. + * + * @param {Object} cradle + * @param {Function} injector + * @return {Proxy} + */ + function createInjectorProxy(container, injector) { + var locals = injector(container); + var allKeys = uniq(__spreadArray(__spreadArray([], Reflect.ownKeys(container.cradle), true), Reflect.ownKeys(locals), true)); + // TODO: Lots of duplication here from the container proxy. + // Need to refactor. + var proxy = new Proxy({}, { + /** + * Resolves the value by first checking the locals, then the container. + */ + get: function (target, name) { + if (name === Symbol.iterator) { + return function iterateRegistrationsAndLocals() { + var _a, _b, _c, _i, prop, _d, _e, _f, _g, prop; + return __generator(this, function (_h) { + switch (_h.label) { + case 0: + _a = container.cradle; + _b = []; + for (_c in _a) + _b.push(_c); + _i = 0; + _h.label = 1; + case 1: + if (!(_i < _b.length)) return [3 /*break*/, 4]; + _c = _b[_i]; + if (!(_c in _a)) return [3 /*break*/, 3]; + prop = _c; + return [4 /*yield*/, prop]; + case 2: + _h.sent(); + _h.label = 3; + case 3: + _i++; + return [3 /*break*/, 1]; + case 4: + _d = locals; + _e = []; + for (_f in _d) + _e.push(_f); + _g = 0; + _h.label = 5; + case 5: + if (!(_g < _e.length)) return [3 /*break*/, 8]; + _f = _e[_g]; + if (!(_f in _d)) return [3 /*break*/, 7]; + prop = _f; + return [4 /*yield*/, prop]; + case 6: + _h.sent(); + _h.label = 7; + case 7: + _g++; + return [3 /*break*/, 5]; + case 8: return [2 /*return*/]; + } + }); + }; + } + if (name in locals) { + return locals[name]; + } + return container.resolve(name); + }, + /** + * Used for `Object.keys`. + */ + ownKeys: function () { + return allKeys; + }, + /** + * Used for `Object.keys`. + */ + getOwnPropertyDescriptor: function (target, key) { + if (allKeys.indexOf(key) > -1) { + return { + enumerable: true, + configurable: true, + }; + } + return undefined; + }, + }); + return proxy; + } + /** + * Returns a resolve function used to construct the dependency graph + * + * @this {Registration} + * The `this` context is a resolver. + * + * @param {Function} fn + * The function to construct + * + * @param {Function} dependencyParseTarget + * The function to parse for the dependencies of the construction target + * + * @param {boolean} isFunction + * Is the resolution target an actual function or a mask for a constructor? + * + * @return {Function} + * The function used for dependency resolution + */ + function generateResolve(fn, dependencyParseTarget) { + // If the function used for dependency parsing is falsy, use the supplied function + if (!dependencyParseTarget) { + dependencyParseTarget = fn; + } + // Parse out the dependencies + // NOTE: we do this regardless of whether PROXY is used or not, + // because if this fails, we want it to fail early (at startup) rather + // than at resolution time. + var dependencies = parseDependencies(dependencyParseTarget); + // Use a regular function instead of an arrow function to facilitate binding to the resolver. + return function resolve(container) { + // Because the container holds a global reolutionMode we need to determine it in the proper order of precedence: + // resolver -> container -> default value + var injectionMode = this.injectionMode || + container.options.injectionMode || + InjectionMode.PROXY; + if (injectionMode !== InjectionMode.CLASSIC) { + // If we have a custom injector, we need to wrap the cradle. + var cradle = this.injector + ? createInjectorProxy(container, this.injector) + : container.cradle; + // Return the target injected with the cradle + return fn(cradle); + } + // We have dependencies so we need to resolve them manually + if (dependencies.length > 0) { + var resolve_1 = this.injector + ? wrapWithLocals(container, this.injector(container)) + : container.resolve; + var children = dependencies.map(function (p) { + return resolve_1(p.name, { allowUnregistered: p.optional }); + }); + return fn.apply(void 0, children); + } + return fn(); + }; + } + /** + * Parses the dependencies from the given function. + * If it's a class that extends another class, and it does + * not have a defined constructor, attempt to parse it's super constructor. + */ + function parseDependencies(fn) { + var result = parseParameterList(fn.toString()); + if (!result) { + // No defined constructor for a class, check if there is a parent + // we can parse. + var parent = Object.getPrototypeOf(fn); + if (typeof parent === 'function' && parent !== Function.prototype) { + // Try to parse the parent + return parseDependencies(parent); + } + return []; + } + return result; + } + + /** + * Family tree symbol. + */ + var FAMILY_TREE = Symbol('familyTree'); + /** + * Roll Up Registrations symbol. + */ + var ROLL_UP_REGISTRATIONS = Symbol('rollUpRegistrations'); + /** + * The string representation when calling toString. + */ + var CRADLE_STRING_TAG = 'AwilixContainerCradle'; + /** + * Creates an Awilix container instance. + * + * @param {Function} options.require + * The require function to use. Defaults to require. + * + * @param {string} options.injectionMode + * The mode used by the container to resolve dependencies. Defaults to 'Proxy'. + * + * @return {AwilixContainer} + * The container. + */ + function createContainer(options, parentContainer) { + var _a; + options = __assign({ injectionMode: InjectionMode.PROXY }, options); + // The resolution stack is used to keep track + // of what modules are being resolved, so when + // an error occurs, we have something to present + // to the poor developer who fucked up. + var resolutionStack = []; + // Internal registration store for this container. + var registrations = {}; + /** + * The `Proxy` that is passed to functions so they can resolve their dependencies without + * knowing where they come from. I call it the "cradle" because + * it is where registered things come to life at resolution-time. + */ + var cradle = new Proxy({ + /* removed in browser build */ + }, { + /** + * The `get` handler is invoked whenever a get-call for `container.cradle.*` is made. + * + * @param {object} _target + * The proxy target. Irrelevant. + * + * @param {string} name + * The property name. + * + * @return {*} + * Whatever the resolve call returns. + */ + get: function (_target, name) { return resolve(name); }, + /** + * Setting things on the cradle throws an error. + * + * @param {object} target + * @param {string} name + */ + set: function (_target, name) { + throw new Error("Attempted setting property \"".concat(name, "\" on container cradle - this is not allowed.")); + }, + /** + * Used for `Object.keys`. + */ + ownKeys: function () { + return Array.from(cradle); + }, + /** + * Used for `Object.keys`. + */ + getOwnPropertyDescriptor: function (target, key) { + var regs = rollUpRegistrations(); + if (Object.getOwnPropertyDescriptor(regs, key)) { + return { + enumerable: true, + configurable: true, + }; + } + return undefined; + }, + }); + // The container being exposed. + var container = (_a = { + options: options, + cradle: cradle, + inspect: inspect, + cache: new Map(), + loadModules: function () { throw new Error("loadModules is not supported in the browser."); }, + createScope: createScope, + register: register, + build: build, + resolve: resolve, + hasRegistration: hasRegistration, + dispose: dispose, + getRegistration: getRegistration + }, + /* removed in browser build */ + // tslint:disable-next-line + _a[ROLL_UP_REGISTRATIONS] = rollUpRegistrations, + Object.defineProperty(_a, "registrations", { + get: function () { + return rollUpRegistrations(); + }, + enumerable: false, + configurable: true + }), + _a); + // Track the family tree. + var familyTree = parentContainer + ? [container].concat(parentContainer[FAMILY_TREE]) + : [container]; + container[FAMILY_TREE] = familyTree; + // We need a reference to the root container, + // so we can retrieve and store singletons. + var rootContainer = last(familyTree); + return container; + /** + * Used by util.inspect (which is used by console.log). + */ + function inspect() { + return "[AwilixContainer (".concat(parentContainer ? 'scoped, ' : '', "registrations: ").concat(Object.keys(container.registrations).length, ")]"); + } + /** + * Rolls up registrations from the family tree. + * + * This can get pretty expensive. Only used when + * iterating the cradle proxy, which is not something + * that should be done in day-to-day use, mostly for debugging. + * + * @param {boolean} bustCache + * Forces a recomputation. + * + * @return {object} + * The merged registrations object. + */ + function rollUpRegistrations() { + return __assign(__assign({}, (parentContainer && parentContainer[ROLL_UP_REGISTRATIONS]())), registrations); + } + /** + * Used for providing an iterator to the cradle. + */ + function cradleIterator() { + var registrations, _a, _b, _c, _i, registrationName; + return __generator(this, function (_d) { + switch (_d.label) { + case 0: + registrations = rollUpRegistrations(); + _a = registrations; + _b = []; + for (_c in _a) + _b.push(_c); + _i = 0; + _d.label = 1; + case 1: + if (!(_i < _b.length)) return [3 /*break*/, 4]; + _c = _b[_i]; + if (!(_c in _a)) return [3 /*break*/, 3]; + registrationName = _c; + return [4 /*yield*/, registrationName]; + case 2: + _d.sent(); + _d.label = 3; + case 3: + _i++; + return [3 /*break*/, 1]; + case 4: return [2 /*return*/]; + } + }); + } + /** + * Creates a scoped container. + * + * @return {object} + * The scoped container. + */ + function createScope() { + return createContainer(options, container); + } + /** + * Adds a registration for a resolver. + */ + function register(arg1, arg2) { + var obj = nameValueToObject(arg1, arg2); + var keys = __spreadArray(__spreadArray([], Object.keys(obj), true), Object.getOwnPropertySymbols(obj), true); + for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) { + var key = keys_1[_i]; + var value = obj[key]; + registrations[key] = value; + } + return container; + } + /** + * Returned to `util.inspect` and Symbol.toStringTag when attempting to resolve + * a custom inspector function on the cradle. + */ + function toStringRepresentationFn() { + return Object.prototype.toString.call(cradle); + } + /** + * Recursively gets a registration by name if it exists in the + * current container or any of its' parents. + * + * @param name {string | symbol} The registration name. + */ + function getRegistration(name) { + var resolver = registrations[name]; + if (resolver) { + return resolver; + } + if (parentContainer) { + return parentContainer.getRegistration(name); + } + return null; + } + /** + * Resolves the registration with the given name. + * + * @param {string | symbol} name + * The name of the registration to resolve. + * + * @param {ResolveOptions} resolveOpts + * The resolve options. + * + * @return {any} + * Whatever was resolved. + */ + function resolve(name, resolveOpts) { + resolveOpts = resolveOpts || {}; + try { + // Grab the registration by name. + var resolver = getRegistration(name); + if (resolutionStack.indexOf(name) > -1) { + throw new AwilixResolutionError(name, resolutionStack, 'Cyclic dependencies detected.'); + } + // Used in JSON.stringify. + if (name === 'toJSON') { + return toStringRepresentationFn; + } + // Used in console.log. + if (name === 'constructor') { + return createContainer; + } + if (!resolver) { + // Checks for some edge cases. + switch (name) { + // The following checks ensure that console.log on the cradle does not + // throw an error (issue #7). + case 'inspect': + case 'toString': + return toStringRepresentationFn; + case Symbol.toStringTag: + return CRADLE_STRING_TAG; + // Edge case: Promise unwrapping will look for a "then" property and attempt to call it. + // Return undefined so that we won't cause a resolution error. (issue #109) + case 'then': + return undefined; + // When using `Array.from` or spreading the cradle, this will + // return the registration names. + case Symbol.iterator: + return cradleIterator; + } + if (resolveOpts.allowUnregistered) { + return undefined; + } + throw new AwilixResolutionError(name, resolutionStack); + } + // Pushes the currently-resolving module name onto the stack + resolutionStack.push(name); + // Do the thing + var cached = void 0; + var resolved = void 0; + switch (resolver.lifetime || Lifetime.TRANSIENT) { + case Lifetime.TRANSIENT: + // Transient lifetime means resolve every time. + resolved = resolver.resolve(container); + break; + case Lifetime.SINGLETON: + // Singleton lifetime means cache at all times, regardless of scope. + cached = rootContainer.cache.get(name); + if (!cached) { + resolved = resolver.resolve(container); + rootContainer.cache.set(name, { resolver: resolver, value: resolved }); + } + else { + resolved = cached.value; + } + break; + case Lifetime.SCOPED: + // Scoped lifetime means that the container + // that resolves the registration also caches it. + // When a registration is not found, we travel up + // the family tree until we find one that is cached. + cached = container.cache.get(name); + if (cached !== undefined) { + // We found one! + resolved = cached.value; + break; + } + // If we still have not found one, we need to resolve and cache it. + resolved = resolver.resolve(container); + container.cache.set(name, { resolver: resolver, value: resolved }); + break; + default: + throw new AwilixResolutionError(name, resolutionStack, "Unknown lifetime \"".concat(resolver.lifetime, "\"")); + } + // Pop it from the stack again, ready for the next resolution + resolutionStack.pop(); + return resolved; + } + catch (err) { + // When we get an error we need to reset the stack. + resolutionStack = []; + throw err; + } + } + /** + * Checks if the registration with the given name exists. + * + * @param {string | symbol} name + * The name of the registration to resolve. + * + * @return {boolean} + * Whether or not the registration exists. + */ + function hasRegistration(name) { + return !!getRegistration(name); + } + /** + * Given a registration, class or function, builds it up and returns it. + * Does not cache it, this means that any lifetime configured in case of passing + * a registration will not be used. + * + * @param {Resolver|Class|Function} targetOrResolver + * @param {ResolverOptions} opts + */ + function build(targetOrResolver, opts) { + if (targetOrResolver && targetOrResolver.resolve) { + return targetOrResolver.resolve(container); + } + var funcName = 'build'; + var paramName = 'targetOrResolver'; + AwilixTypeError.assert(targetOrResolver, funcName, paramName, 'a registration, function or class', targetOrResolver); + AwilixTypeError.assert(typeof targetOrResolver === 'function', funcName, paramName, 'a function or class', targetOrResolver); + var resolver = isClass(targetOrResolver) + ? asClass(targetOrResolver, opts) + : asFunction(targetOrResolver, opts); + return resolver.resolve(container); + } + /** + * Disposes this container and it's children, calling the disposer + * on all disposable registrations and clearing the cache. + */ + function dispose() { + var entries = Array.from(container.cache.entries()); + container.cache.clear(); + return Promise.all(entries.map(function (_a) { + _a[0]; var entry = _a[1]; + var resolver = entry.resolver, value = entry.value; + var disposable = resolver; + if (disposable.dispose) { + return Promise.resolve().then(function () { return disposable.dispose(value); }); + } + return Promise.resolve(); + })).then(function () { return undefined; }); + } + } + + exports.AwilixError = AwilixError; + exports.AwilixResolutionError = AwilixResolutionError; + exports.AwilixTypeError = AwilixTypeError; + exports.ExtendableError = ExtendableError; + exports.InjectionMode = InjectionMode; + exports.Lifetime = Lifetime; + exports.RESOLVER = RESOLVER; + exports.aliasTo = aliasTo; + exports.asClass = asClass; + exports.asFunction = asFunction; + exports.asValue = asValue; + exports.createBuildResolver = createBuildResolver; + exports.createContainer = createContainer; + exports.createDisposableResolver = createDisposableResolver; + +})); diff --git a/node_modules/awilix/lib/container.d.ts b/node_modules/awilix/lib/container.d.ts new file mode 100644 index 0000000..4478622 --- /dev/null +++ b/node_modules/awilix/lib/container.d.ts @@ -0,0 +1,179 @@ +import { GlobWithOptions } from './list-modules'; +import { LoadModulesOptions } from './load-modules'; +import { Resolver, Constructor, BuildResolverOptions } from './resolvers'; +import { InjectionModeType } from './injection-mode'; +/** + * The container returned from createContainer has some methods and properties. + * @interface AwilixContainer + */ +export interface AwilixContainer { + /** + * Options the container was configured with. + */ + options: ContainerOptions; + /** + * The proxy injected when using `PROXY` injection mode. + * Can be used as-is. + */ + readonly cradle: Cradle; + /** + * Getter for the rolled up registrations that merges the container family tree. + */ + readonly registrations: RegistrationHash; + /** + * Resolved modules cache. + */ + readonly cache: Map; + /** + * Creates a scoped container with this one as the parent. + */ + createScope(): AwilixContainer; + /** + * Used by `util.inspect`. + */ + inspect(depth: number, opts?: any): string; + /** + * Binds `lib/loadModules` to this container, and provides + * real implementations of it's dependencies. + * + * Additionally, any modules using the `dependsOn` API + * will be resolved. + * + * @see src/load-modules.ts documentation. + */ + loadModules(globPatterns: Array, options?: LoadModulesOptions): ESM extends false ? this : Promise; + /** + * Adds a single registration that using a pre-constructed resolver. + */ + register(name: string | symbol, registration: Resolver): this; + /** + * Pairs resolvers to registration names and registers them. + */ + register(nameAndRegistrationPair: NameAndRegistrationPair): this; + /** + * Resolves the registration with the given name. + * + * @param {string} name + * The name of the registration to resolve. + * + * @return {*} + * Whatever was resolved. + */ + resolve(name: K, resolveOptions?: ResolveOptions): Cradle[K]; + /** + * Resolves the registration with the given name. + * + * @param {string} name + * The name of the registration to resolve. + * + * @return {*} + * Whatever was resolved. + */ + resolve(name: string | symbol, resolveOptions?: ResolveOptions): T; + /** + * Checks if the registration with the given name exists. + * + * @param {string | symbol} name + * The name of the registration to resolve. + * + * @return {boolean} + * Whether or not the registration exists. + */ + hasRegistration(name: string | symbol): boolean; + /** + * Recursively gets a registration by name if it exists in the + * current container or any of its' parents. + * + * @param name {string | symbol} The registration name. + */ + getRegistration(name: K): Resolver | null; + /** + * Recursively gets a registration by name if it exists in the + * current container or any of its' parents. + * + * @param name {string | symbol} The registration name. + */ + getRegistration(name: string | symbol): Resolver | null; + /** + * Given a resolver, class or function, builds it up and returns it. + * Does not cache it, this means that any lifetime configured in case of passing + * a resolver will not be used. + * + * @param {Resolver|Class|Function} targetOrResolver + * @param {ResolverOptions} opts + */ + build(targetOrResolver: ClassOrFunctionReturning | Resolver, opts?: BuildResolverOptions): T; + /** + * Disposes this container and it's children, calling the disposer + * on all disposable registrations and clearing the cache. + * Only applies to registrations with `SCOPED` or `SINGLETON` lifetime. + */ + dispose(): Promise; +} +/** + * Optional resolve options. + */ +export interface ResolveOptions { + /** + * If `true` and `resolve` cannot find the requested dependency, + * returns `undefined` rather than throwing an error. + */ + allowUnregistered?: boolean; +} +/** + * Cache entry. + */ +export interface CacheEntry { + /** + * The resolver that resolved the value. + */ + resolver: Resolver; + /** + * The resolved value. + */ + value: T; +} +/** + * Register a Registration + * @interface NameAndRegistrationPair + */ +export type NameAndRegistrationPair = { + [U in keyof T]?: Resolver; +}; +/** + * Function that returns T. + */ +export type FunctionReturning = (...args: Array) => T; +/** + * A class or function returning T. + */ +export type ClassOrFunctionReturning = FunctionReturning | Constructor; +/** + * The options for the createContainer function. + */ +export interface ContainerOptions { + require?: (id: string) => any; + injectionMode?: InjectionModeType; +} +/** + * Contains a hash of registrations where the name is the key. + */ +export type RegistrationHash = Record>; +/** + * Resolution stack. + */ +export interface ResolutionStack extends Array { +} +/** + * Creates an Awilix container instance. + * + * @param {Function} options.require + * The require function to use. Defaults to require. + * + * @param {string} options.injectionMode + * The mode used by the container to resolve dependencies. Defaults to 'Proxy'. + * + * @return {AwilixContainer} + * The container. + */ +export declare function createContainer(options?: ContainerOptions, parentContainer?: AwilixContainer): AwilixContainer; diff --git a/node_modules/awilix/lib/container.js b/node_modules/awilix/lib/container.js new file mode 100644 index 0000000..97eb3f9 --- /dev/null +++ b/node_modules/awilix/lib/container.js @@ -0,0 +1,381 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createContainer = void 0; +const util = require("util"); +const list_modules_1 = require("./list-modules"); +const load_modules_1 = require("./load-modules"); +const resolvers_1 = require("./resolvers"); +const utils_1 = require("./utils"); +const injection_mode_1 = require("./injection-mode"); +const lifetime_1 = require("./lifetime"); +const errors_1 = require("./errors"); +const load_module_native_js_1 = require("./load-module-native.js"); +/** + * Family tree symbol. + */ +const FAMILY_TREE = Symbol('familyTree'); +/** + * Roll Up Registrations symbol. + */ +const ROLL_UP_REGISTRATIONS = Symbol('rollUpRegistrations'); +/** + * The string representation when calling toString. + */ +const CRADLE_STRING_TAG = 'AwilixContainerCradle'; +/** + * Creates an Awilix container instance. + * + * @param {Function} options.require + * The require function to use. Defaults to require. + * + * @param {string} options.injectionMode + * The mode used by the container to resolve dependencies. Defaults to 'Proxy'. + * + * @return {AwilixContainer} + * The container. + */ +function createContainer(options, parentContainer) { + options = Object.assign({ injectionMode: injection_mode_1.InjectionMode.PROXY }, options); + // The resolution stack is used to keep track + // of what modules are being resolved, so when + // an error occurs, we have something to present + // to the poor developer who fucked up. + let resolutionStack = []; + // Internal registration store for this container. + const registrations = {}; + /** + * The `Proxy` that is passed to functions so they can resolve their dependencies without + * knowing where they come from. I call it the "cradle" because + * it is where registered things come to life at resolution-time. + */ + const cradle = new Proxy({ + [util.inspect.custom]: toStringRepresentationFn, + }, { + /** + * The `get` handler is invoked whenever a get-call for `container.cradle.*` is made. + * + * @param {object} _target + * The proxy target. Irrelevant. + * + * @param {string} name + * The property name. + * + * @return {*} + * Whatever the resolve call returns. + */ + get: (_target, name) => resolve(name), + /** + * Setting things on the cradle throws an error. + * + * @param {object} target + * @param {string} name + */ + set: (_target, name) => { + throw new Error(`Attempted setting property "${name}" on container cradle - this is not allowed.`); + }, + /** + * Used for `Object.keys`. + */ + ownKeys() { + return Array.from(cradle); + }, + /** + * Used for `Object.keys`. + */ + getOwnPropertyDescriptor(target, key) { + const regs = rollUpRegistrations(); + if (Object.getOwnPropertyDescriptor(regs, key)) { + return { + enumerable: true, + configurable: true, + }; + } + return undefined; + }, + }); + // The container being exposed. + const container = { + options, + cradle, + inspect, + cache: new Map(), + loadModules, + createScope, + register: register, + build, + resolve, + hasRegistration, + dispose, + getRegistration, + [util.inspect.custom]: inspect, + // tslint:disable-next-line + [ROLL_UP_REGISTRATIONS]: rollUpRegistrations, + get registrations() { + return rollUpRegistrations(); + }, + }; + // Track the family tree. + const familyTree = parentContainer + ? [container].concat(parentContainer[FAMILY_TREE]) + : [container]; + container[FAMILY_TREE] = familyTree; + // We need a reference to the root container, + // so we can retrieve and store singletons. + const rootContainer = (0, utils_1.last)(familyTree); + return container; + /** + * Used by util.inspect (which is used by console.log). + */ + function inspect() { + return `[AwilixContainer (${parentContainer ? 'scoped, ' : ''}registrations: ${Object.keys(container.registrations).length})]`; + } + /** + * Rolls up registrations from the family tree. + * + * This can get pretty expensive. Only used when + * iterating the cradle proxy, which is not something + * that should be done in day-to-day use, mostly for debugging. + * + * @param {boolean} bustCache + * Forces a recomputation. + * + * @return {object} + * The merged registrations object. + */ + function rollUpRegistrations() { + return Object.assign(Object.assign({}, (parentContainer && parentContainer[ROLL_UP_REGISTRATIONS]())), registrations); + } + /** + * Used for providing an iterator to the cradle. + */ + function* cradleIterator() { + const registrations = rollUpRegistrations(); + for (const registrationName in registrations) { + yield registrationName; + } + } + /** + * Creates a scoped container. + * + * @return {object} + * The scoped container. + */ + function createScope() { + return createContainer(options, container); + } + /** + * Adds a registration for a resolver. + */ + function register(arg1, arg2) { + const obj = (0, utils_1.nameValueToObject)(arg1, arg2); + const keys = [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj)]; + for (const key of keys) { + const value = obj[key]; + registrations[key] = value; + } + return container; + } + /** + * Returned to `util.inspect` and Symbol.toStringTag when attempting to resolve + * a custom inspector function on the cradle. + */ + function toStringRepresentationFn() { + return Object.prototype.toString.call(cradle); + } + /** + * Recursively gets a registration by name if it exists in the + * current container or any of its' parents. + * + * @param name {string | symbol} The registration name. + */ + function getRegistration(name) { + const resolver = registrations[name]; + if (resolver) { + return resolver; + } + if (parentContainer) { + return parentContainer.getRegistration(name); + } + return null; + } + /** + * Resolves the registration with the given name. + * + * @param {string | symbol} name + * The name of the registration to resolve. + * + * @param {ResolveOptions} resolveOpts + * The resolve options. + * + * @return {any} + * Whatever was resolved. + */ + function resolve(name, resolveOpts) { + resolveOpts = resolveOpts || {}; + try { + // Grab the registration by name. + const resolver = getRegistration(name); + if (resolutionStack.indexOf(name) > -1) { + throw new errors_1.AwilixResolutionError(name, resolutionStack, 'Cyclic dependencies detected.'); + } + // Used in JSON.stringify. + if (name === 'toJSON') { + return toStringRepresentationFn; + } + // Used in console.log. + if (name === 'constructor') { + return createContainer; + } + if (!resolver) { + // Checks for some edge cases. + switch (name) { + // The following checks ensure that console.log on the cradle does not + // throw an error (issue #7). + case util.inspect.custom: + case 'inspect': + case 'toString': + return toStringRepresentationFn; + case Symbol.toStringTag: + return CRADLE_STRING_TAG; + // Edge case: Promise unwrapping will look for a "then" property and attempt to call it. + // Return undefined so that we won't cause a resolution error. (issue #109) + case 'then': + return undefined; + // When using `Array.from` or spreading the cradle, this will + // return the registration names. + case Symbol.iterator: + return cradleIterator; + } + if (resolveOpts.allowUnregistered) { + return undefined; + } + throw new errors_1.AwilixResolutionError(name, resolutionStack); + } + // Pushes the currently-resolving module name onto the stack + resolutionStack.push(name); + // Do the thing + let cached; + let resolved; + switch (resolver.lifetime || lifetime_1.Lifetime.TRANSIENT) { + case lifetime_1.Lifetime.TRANSIENT: + // Transient lifetime means resolve every time. + resolved = resolver.resolve(container); + break; + case lifetime_1.Lifetime.SINGLETON: + // Singleton lifetime means cache at all times, regardless of scope. + cached = rootContainer.cache.get(name); + if (!cached) { + resolved = resolver.resolve(container); + rootContainer.cache.set(name, { resolver, value: resolved }); + } + else { + resolved = cached.value; + } + break; + case lifetime_1.Lifetime.SCOPED: + // Scoped lifetime means that the container + // that resolves the registration also caches it. + // When a registration is not found, we travel up + // the family tree until we find one that is cached. + cached = container.cache.get(name); + if (cached !== undefined) { + // We found one! + resolved = cached.value; + break; + } + // If we still have not found one, we need to resolve and cache it. + resolved = resolver.resolve(container); + container.cache.set(name, { resolver, value: resolved }); + break; + default: + throw new errors_1.AwilixResolutionError(name, resolutionStack, `Unknown lifetime "${resolver.lifetime}"`); + } + // Pop it from the stack again, ready for the next resolution + resolutionStack.pop(); + return resolved; + } + catch (err) { + // When we get an error we need to reset the stack. + resolutionStack = []; + throw err; + } + } + /** + * Checks if the registration with the given name exists. + * + * @param {string | symbol} name + * The name of the registration to resolve. + * + * @return {boolean} + * Whether or not the registration exists. + */ + function hasRegistration(name) { + return !!getRegistration(name); + } + /** + * Given a registration, class or function, builds it up and returns it. + * Does not cache it, this means that any lifetime configured in case of passing + * a registration will not be used. + * + * @param {Resolver|Class|Function} targetOrResolver + * @param {ResolverOptions} opts + */ + function build(targetOrResolver, opts) { + if (targetOrResolver && targetOrResolver.resolve) { + return targetOrResolver.resolve(container); + } + const funcName = 'build'; + const paramName = 'targetOrResolver'; + errors_1.AwilixTypeError.assert(targetOrResolver, funcName, paramName, 'a registration, function or class', targetOrResolver); + errors_1.AwilixTypeError.assert(typeof targetOrResolver === 'function', funcName, paramName, 'a function or class', targetOrResolver); + const resolver = (0, utils_1.isClass)(targetOrResolver) + ? (0, resolvers_1.asClass)(targetOrResolver, opts) + : (0, resolvers_1.asFunction)(targetOrResolver, opts); + return resolver.resolve(container); + } + /** + * Binds `lib/loadModules` to this container, and provides + * real implementations of it's dependencies. + * + * Additionally, any modules using the `dependsOn` API + * will be resolved. + * + * @see lib/loadModules.js documentation. + */ + function loadModules(globPatterns, opts) { + const _loadModulesDeps = { + require: options.require || + function (uri) { + return require(uri); + }, + listModules: list_modules_1.listModules, + container, + }; + if (opts === null || opts === void 0 ? void 0 : opts.esModules) { + _loadModulesDeps.require = load_module_native_js_1.importModule; + return (0, load_modules_1.loadModules)(_loadModulesDeps, globPatterns, opts).then(() => container); + } + else { + (0, load_modules_1.loadModules)(_loadModulesDeps, globPatterns, opts); + return container; + } + } + /** + * Disposes this container and it's children, calling the disposer + * on all disposable registrations and clearing the cache. + */ + function dispose() { + const entries = Array.from(container.cache.entries()); + container.cache.clear(); + return Promise.all(entries.map(([name, entry]) => { + const { resolver, value } = entry; + const disposable = resolver; + if (disposable.dispose) { + return Promise.resolve().then(() => disposable.dispose(value)); + } + return Promise.resolve(); + })).then(() => undefined); + } +} +exports.createContainer = createContainer; +//# sourceMappingURL=container.js.map \ No newline at end of file diff --git a/node_modules/awilix/lib/container.js.map b/node_modules/awilix/lib/container.js.map new file mode 100644 index 0000000..8a1bbd9 --- /dev/null +++ b/node_modules/awilix/lib/container.js.map @@ -0,0 +1 @@ +{"version":3,"file":"container.js","sourceRoot":"","sources":["../src/container.ts"],"names":[],"mappings":";;;AAAA,6BAA4B;AAC5B,iDAA6D;AAC7D,iDAIuB;AACvB,2CAOoB;AACpB,mCAA0D;AAC1D,qDAAmE;AACnE,yCAAqC;AACrC,qCAAiE;AACjE,mEAAsD;AAsLtD;;GAEG;AACH,MAAM,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC,CAAA;AAExC;;GAEG;AACH,MAAM,qBAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAA;AAE3D;;GAEG;AACH,MAAM,iBAAiB,GAAG,uBAAuB,CAAA;AAEjD;;;;;;;;;;;GAWG;AACH,SAAgB,eAAe,CAC7B,OAA0B,EAC1B,eAAoC;IAEpC,OAAO,mBACL,aAAa,EAAE,8BAAa,CAAC,KAAK,IAC/B,OAAO,CACX,CAAA;IAED,6CAA6C;IAC7C,8CAA8C;IAC9C,gDAAgD;IAChD,uCAAuC;IACvC,IAAI,eAAe,GAAoB,EAAE,CAAA;IAEzC,kDAAkD;IAClD,MAAM,aAAa,GAAqB,EAAE,CAAA;IAE1C;;;;OAIG;IACH,MAAM,MAAM,GAAG,IAAI,KAAK,CACtB;QACE,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,wBAAwB;KAChD,EACD;QACE;;;;;;;;;;;WAWG;QACH,GAAG,EAAE,CAAC,OAAe,EAAE,IAAY,EAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;QAE1D;;;;;WAKG;QACH,GAAG,EAAE,CAAC,OAAO,EAAE,IAAY,EAAE,EAAE;YAC7B,MAAM,IAAI,KAAK,CACb,+BACE,IACF,8CAA8C,CAC/C,CAAA;QACH,CAAC;QAED;;WAEG;QACH,OAAO;YACL,OAAO,KAAK,CAAC,IAAI,CAAC,MAAa,CAAC,CAAA;QAClC,CAAC;QAED;;WAEG;QACH,wBAAwB,CAAC,MAAM,EAAE,GAAG;YAClC,MAAM,IAAI,GAAG,mBAAmB,EAAE,CAAA;YAClC,IAAI,MAAM,CAAC,wBAAwB,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE;gBAC9C,OAAO;oBACL,UAAU,EAAE,IAAI;oBAChB,YAAY,EAAE,IAAI;iBACnB,CAAA;aACF;YAED,OAAO,SAAS,CAAA;QAClB,CAAC;KACF,CACG,CAAA;IAEN,+BAA+B;IAC/B,MAAM,SAAS,GAAG;QAChB,OAAO;QACP,MAAM;QACN,OAAO;QACP,KAAK,EAAE,IAAI,GAAG,EAA+B;QAC7C,WAAW;QACX,WAAW;QACX,QAAQ,EAAE,QAAe;QACzB,KAAK;QACL,OAAO;QACP,eAAe;QACf,OAAO;QACP,eAAe;QACf,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO;QAC9B,2BAA2B;QAC3B,CAAC,qBAAsB,CAAC,EAAE,mBAAmB;QAC7C,IAAI,aAAa;YACf,OAAO,mBAAmB,EAAE,CAAA;QAC9B,CAAC;KACF,CAAA;IAED,yBAAyB;IACzB,MAAM,UAAU,GAA2B,eAAe;QACxD,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAE,eAAuB,CAAC,WAAW,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC,SAAS,CAAC,CAGd;IAAC,SAAiB,CAAC,WAAW,CAAC,GAAG,UAAU,CAAA;IAE7C,6CAA6C;IAC7C,2CAA2C;IAC3C,MAAM,aAAa,GAAG,IAAA,YAAI,EAAC,UAAU,CAAC,CAAA;IAEtC,OAAO,SAAS,CAAA;IAEhB;;OAEG;IACH,SAAS,OAAO;QACd,OAAO,qBACL,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EACjC,kBAAkB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,MAAM,IAAI,CAAA;IACnE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,SAAS,mBAAmB;QAC1B,uCACK,CAAC,eAAe,IAAK,eAAuB,CAAC,qBAAqB,CAAC,EAAE,CAAC,GACtE,aAAa,EACjB;IACH,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,CAAC,cAAc;QACtB,MAAM,aAAa,GAAG,mBAAmB,EAAE,CAAA;QAC3C,KAAK,MAAM,gBAAgB,IAAI,aAAa,EAAE;YAC5C,MAAM,gBAAgB,CAAA;SACvB;IACH,CAAC;IAED;;;;;OAKG;IACH,SAAS,WAAW;QAClB,OAAO,eAAe,CAAC,OAAO,EAAE,SAA+B,CAAC,CAAA;IAClE,CAAC;IAED;;OAEG;IACH,SAAS,QAAQ,CAAC,IAAS,EAAE,IAAS;QACpC,MAAM,GAAG,GAAG,IAAA,yBAAiB,EAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QACzC,MAAM,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAA;QAExE,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;YACtB,MAAM,KAAK,GAAG,GAAG,CAAC,GAAU,CAAkB,CAAA;YAC9C,aAAa,CAAC,GAAU,CAAC,GAAG,KAAK,CAAA;SAClC;QAED,OAAO,SAAS,CAAA;IAClB,CAAC;IAED;;;OAGG;IACH,SAAS,wBAAwB;QAC/B,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAC/C,CAAC;IAED;;;;;OAKG;IACH,SAAS,eAAe,CAAC,IAAqB;QAC5C,MAAM,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,CAAA;QACpC,IAAI,QAAQ,EAAE;YACZ,OAAO,QAAQ,CAAA;SAChB;QAED,IAAI,eAAe,EAAE;YACnB,OAAO,eAAe,CAAC,eAAe,CAAC,IAAI,CAAC,CAAA;SAC7C;QAED,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;;;;;;;;;OAWG;IACH,SAAS,OAAO,CAAC,IAAqB,EAAE,WAA4B;QAClE,WAAW,GAAG,WAAW,IAAI,EAAE,CAAA;QAE/B,IAAI;YACF,iCAAiC;YACjC,MAAM,QAAQ,GAAG,eAAe,CAAC,IAAI,CAAC,CAAA;YACtC,IAAI,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE;gBACtC,MAAM,IAAI,8BAAqB,CAC7B,IAAI,EACJ,eAAe,EACf,+BAA+B,CAChC,CAAA;aACF;YAED,0BAA0B;YAC1B,IAAI,IAAI,KAAK,QAAQ,EAAE;gBACrB,OAAO,wBAAwB,CAAA;aAChC;YAED,uBAAuB;YACvB,IAAI,IAAI,KAAK,aAAa,EAAE;gBAC1B,OAAO,eAAe,CAAA;aACvB;YAED,IAAI,CAAC,QAAQ,EAAE;gBACb,8BAA8B;gBAC9B,QAAQ,IAAI,EAAE;oBACZ,sEAAsE;oBACtE,6BAA6B;oBAC7B,KAAK,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;oBACzB,KAAK,SAAS,CAAC;oBACf,KAAK,UAAU;wBACb,OAAO,wBAAwB,CAAA;oBACjC,KAAK,MAAM,CAAC,WAAW;wBACrB,OAAO,iBAAiB,CAAA;oBAC1B,wFAAwF;oBACxF,2EAA2E;oBAC3E,KAAK,MAAM;wBACT,OAAO,SAAS,CAAA;oBAClB,6DAA6D;oBAC7D,iCAAiC;oBACjC,KAAK,MAAM,CAAC,QAAQ;wBAClB,OAAO,cAAc,CAAA;iBACxB;gBAED,IAAI,WAAW,CAAC,iBAAiB,EAAE;oBACjC,OAAO,SAAS,CAAA;iBACjB;gBAED,MAAM,IAAI,8BAAqB,CAAC,IAAI,EAAE,eAAe,CAAC,CAAA;aACvD;YAED,4DAA4D;YAC5D,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAE1B,eAAe;YACf,IAAI,MAA8B,CAAA;YAClC,IAAI,QAAQ,CAAA;YACZ,QAAQ,QAAQ,CAAC,QAAQ,IAAI,mBAAQ,CAAC,SAAS,EAAE;gBAC/C,KAAK,mBAAQ,CAAC,SAAS;oBACrB,+CAA+C;oBAC/C,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;oBACtC,MAAK;gBACP,KAAK,mBAAQ,CAAC,SAAS;oBACrB,oEAAoE;oBACpE,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;oBACtC,IAAI,CAAC,MAAM,EAAE;wBACX,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;wBACtC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAA;qBAC7D;yBAAM;wBACL,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAA;qBACxB;oBACD,MAAK;gBACP,KAAK,mBAAQ,CAAC,MAAM;oBAClB,2CAA2C;oBAC3C,iDAAiD;oBACjD,iDAAiD;oBACjD,oDAAoD;oBACpD,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;oBAClC,IAAI,MAAM,KAAK,SAAS,EAAE;wBACxB,gBAAgB;wBAChB,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAA;wBACvB,MAAK;qBACN;oBAED,mEAAmE;oBACnE,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;oBACtC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAA;oBACxD,MAAK;gBACP;oBACE,MAAM,IAAI,8BAAqB,CAC7B,IAAI,EACJ,eAAe,EACf,qBAAqB,QAAQ,CAAC,QAAQ,GAAG,CAC1C,CAAA;aACJ;YACD,6DAA6D;YAC7D,eAAe,CAAC,GAAG,EAAE,CAAA;YACrB,OAAO,QAAQ,CAAA;SAChB;QAAC,OAAO,GAAG,EAAE;YACZ,mDAAmD;YACnD,eAAe,GAAG,EAAE,CAAA;YACpB,MAAM,GAAG,CAAA;SACV;IACH,CAAC;IAED;;;;;;;;OAQG;IACH,SAAS,eAAe,CAAC,IAAqB;QAC5C,OAAO,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;;OAOG;IACH,SAAS,KAAK,CACZ,gBAA2D,EAC3D,IAA8B;QAE9B,IAAI,gBAAgB,IAAK,gBAAgC,CAAC,OAAO,EAAE;YACjE,OAAQ,gBAAgC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;SAC5D;QAED,MAAM,QAAQ,GAAG,OAAO,CAAA;QACxB,MAAM,SAAS,GAAG,kBAAkB,CAAA;QACpC,wBAAe,CAAC,MAAM,CACpB,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,mCAAmC,EACnC,gBAAgB,CACjB,CAAA;QACD,wBAAe,CAAC,MAAM,CACpB,OAAO,gBAAgB,KAAK,UAAU,EACtC,QAAQ,EACR,SAAS,EACT,qBAAqB,EACrB,gBAAgB,CACjB,CAAA;QAED,MAAM,QAAQ,GAAG,IAAA,eAAO,EAAC,gBAAuB,CAAC;YAC/C,CAAC,CAAC,IAAA,mBAAO,EAAC,gBAAkC,EAAE,IAAI,CAAC;YACnD,CAAC,CAAC,IAAA,sBAAU,EAAC,gBAAwC,EAAE,IAAI,CAAC,CAAA;QAC9D,OAAO,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IACpC,CAAC;IAMD;;;;;;;;OAQG;IACH,SAAS,WAAW,CAClB,YAA6C,EAC7C,IAA6B;QAE7B,MAAM,gBAAgB,GAAG;YACvB,OAAO,EACL,OAAQ,CAAC,OAAO;gBAChB,UAAU,GAAG;oBACX,OAAO,OAAO,CAAC,GAAG,CAAC,CAAA;gBACrB,CAAC;YACH,WAAW,EAAX,0BAAW;YACX,SAAS;SACV,CAAA;QACD,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,EAAE;YACnB,gBAAgB,CAAC,OAAO,GAAG,oCAAY,CAAA;YACvC,OACE,IAAA,0BAAe,EACb,gBAAgB,EAChB,YAAY,EACZ,IAAI,CAEP,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;SACxB;aAAM;YACL,IAAA,0BAAe,EAAC,gBAAgB,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;YACrD,OAAO,SAAS,CAAA;SACjB;IACH,CAAC;IAED;;;OAGG;IACH,SAAS,OAAO;QACd,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;QACrD,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,CAAA;QACvB,OAAO,OAAO,CAAC,GAAG,CAChB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE;YAC5B,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,CAAA;YACjC,MAAM,UAAU,GAAG,QAAmC,CAAA;YACtD,IAAI,UAAU,CAAC,OAAO,EAAE;gBACtB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,OAAQ,CAAC,KAAK,CAAC,CAAC,CAAA;aAChE;YACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;QAC1B,CAAC,CAAC,CACH,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;IACzB,CAAC;AACH,CAAC;AApbD,0CAobC"} \ No newline at end of file diff --git a/node_modules/awilix/lib/errors.d.ts b/node_modules/awilix/lib/errors.d.ts new file mode 100644 index 0000000..39c2dc8 --- /dev/null +++ b/node_modules/awilix/lib/errors.d.ts @@ -0,0 +1,76 @@ +import { ResolutionStack } from './container'; +/** + * An extendable error class. + * @author https://github.com/bjyoungblood/es6-error/ + */ +export declare class ExtendableError extends Error { + /** + * Constructor for the error. + * + * @param {String} message + * The error message. + */ + constructor(message: string); +} +/** + * Base error for all Awilix-specific errors. + */ +export declare class AwilixError extends ExtendableError { +} +/** + * Error thrown to indicate a type mismatch. + */ +export declare class AwilixTypeError extends AwilixError { + /** + * Constructor, takes the function name, expected and given + * type to produce an error. + * + * @param {string} funcDescription + * Name of the function being guarded. + * + * @param {string} paramName + * The parameter there was an issue with. + * + * @param {string} expectedType + * Name of the expected type. + * + * @param {string} givenType + * Name of the given type. + */ + constructor(funcDescription: string, paramName: string, expectedType: string, givenType: any); + /** + * Asserts the given condition, throws an error otherwise. + * + * @param {*} condition + * The condition to check + * + * @param {string} funcDescription + * Name of the function being guarded. + * + * @param {string} paramName + * The parameter there was an issue with. + * + * @param {string} expectedType + * Name of the expected type. + * + * @param {string} givenType + * Name of the given type. + */ + static assert(condition: T, funcDescription: string, paramName: string, expectedType: string, givenType: any): NonNullable; +} +/** + * A nice error class so we can do an instanceOf check. + */ +export declare class AwilixResolutionError extends AwilixError { + /** + * Constructor, takes the registered modules and unresolved tokens + * to create a message. + * + * @param {string|symbol} name + * The name of the module that could not be resolved. + * + * @param {string[]} resolutionStack + * The current resolution stack + */ + constructor(name: string | symbol, resolutionStack: ResolutionStack, message?: string); +} diff --git a/node_modules/awilix/lib/errors.js b/node_modules/awilix/lib/errors.js new file mode 100644 index 0000000..1ee2aea --- /dev/null +++ b/node_modules/awilix/lib/errors.js @@ -0,0 +1,132 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AwilixResolutionError = exports.AwilixTypeError = exports.AwilixError = exports.ExtendableError = void 0; +/** + * Newline. + */ +const EOL = '\n'; +/** + * An extendable error class. + * @author https://github.com/bjyoungblood/es6-error/ + */ +class ExtendableError extends Error { + /** + * Constructor for the error. + * + * @param {String} message + * The error message. + */ + constructor(message) { + super(message); + // extending Error is weird and does not propagate `message` + Object.defineProperty(this, 'message', { + enumerable: false, + value: message, + }); + Object.defineProperty(this, 'name', { + enumerable: false, + value: this.constructor.name, + }); + // Not all browsers have this function. + /* istanbul ignore else */ + if ('captureStackTrace' in Error) { + Error.captureStackTrace(this, this.constructor); + } + else { + Object.defineProperty(this, 'stack', { + enumerable: false, + value: Error(message).stack, + writable: true, + configurable: true, + }); + } + } +} +exports.ExtendableError = ExtendableError; +/** + * Base error for all Awilix-specific errors. + */ +class AwilixError extends ExtendableError { +} +exports.AwilixError = AwilixError; +/** + * Error thrown to indicate a type mismatch. + */ +class AwilixTypeError extends AwilixError { + /** + * Constructor, takes the function name, expected and given + * type to produce an error. + * + * @param {string} funcDescription + * Name of the function being guarded. + * + * @param {string} paramName + * The parameter there was an issue with. + * + * @param {string} expectedType + * Name of the expected type. + * + * @param {string} givenType + * Name of the given type. + */ + constructor(funcDescription, paramName, expectedType, givenType) { + super(`${funcDescription}: expected ${paramName} to be ${expectedType}, but got ${givenType}.`); + } + /** + * Asserts the given condition, throws an error otherwise. + * + * @param {*} condition + * The condition to check + * + * @param {string} funcDescription + * Name of the function being guarded. + * + * @param {string} paramName + * The parameter there was an issue with. + * + * @param {string} expectedType + * Name of the expected type. + * + * @param {string} givenType + * Name of the given type. + */ + static assert(condition, funcDescription, paramName, expectedType, givenType) { + if (!condition) { + throw new AwilixTypeError(funcDescription, paramName, expectedType, givenType); + } + return condition; + } +} +exports.AwilixTypeError = AwilixTypeError; +/** + * A nice error class so we can do an instanceOf check. + */ +class AwilixResolutionError extends AwilixError { + /** + * Constructor, takes the registered modules and unresolved tokens + * to create a message. + * + * @param {string|symbol} name + * The name of the module that could not be resolved. + * + * @param {string[]} resolutionStack + * The current resolution stack + */ + constructor(name, resolutionStack, message) { + if (typeof name === 'symbol') { + name = name.toString(); + } + resolutionStack = resolutionStack.map((val) => typeof val === 'symbol' ? val.toString() : val); + resolutionStack.push(name); + const resolutionPathString = resolutionStack.join(' -> '); + let msg = `Could not resolve '${name}'.`; + if (message) { + msg += ` ${message}`; + } + msg += EOL + EOL; + msg += `Resolution path: ${resolutionPathString}`; + super(msg); + } +} +exports.AwilixResolutionError = AwilixResolutionError; +//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/node_modules/awilix/lib/errors.js.map b/node_modules/awilix/lib/errors.js.map new file mode 100644 index 0000000..db5148d --- /dev/null +++ b/node_modules/awilix/lib/errors.js.map @@ -0,0 +1 @@ +{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAM,GAAG,GAAG,IAAI,CAAA;AAEhB;;;GAGG;AACH,MAAa,eAAgB,SAAQ,KAAK;IACxC;;;;;OAKG;IACH,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;QAEd,4DAA4D;QAC5D,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE;YACrC,UAAU,EAAE,KAAK;YACjB,KAAK,EAAE,OAAO;SACf,CAAC,CAAA;QAEF,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE;YAClC,UAAU,EAAE,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI;SAC7B,CAAC,CAAA;QAEF,uCAAuC;QACvC,0BAA0B;QAC1B,IAAI,mBAAmB,IAAI,KAAK,EAAE;YAChC,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAA;SAChD;aAAM;YACL,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE;gBACnC,UAAU,EAAE,KAAK;gBACjB,KAAK,EAAG,KAA0B,CAAC,OAAO,CAAC,CAAC,KAAK;gBACjD,QAAQ,EAAE,IAAI;gBACd,YAAY,EAAE,IAAI;aACnB,CAAC,CAAA;SACH;IACH,CAAC;CACF;AAlCD,0CAkCC;AAED;;GAEG;AACH,MAAa,WAAY,SAAQ,eAAe;CAAG;AAAnD,kCAAmD;AAEnD;;GAEG;AACH,MAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,YACE,eAAuB,EACvB,SAAiB,EACjB,YAAoB,EACpB,SAAc;QAEd,KAAK,CACH,GAAG,eAAe,cAAc,SAAS,UAAU,YAAY,aAAa,SAAS,GAAG,CACzF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAM,CACX,SAAY,EACZ,eAAuB,EACvB,SAAiB,EACjB,YAAoB,EACpB,SAAc;QAEd,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,eAAe,CACvB,eAAe,EACf,SAAS,EACT,YAAY,EACZ,SAAS,CACV,CAAA;SACF;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;CACF;AA/DD,0CA+DC;AAED;;GAEG;AACH,MAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;OASG;IACH,YACE,IAAqB,EACrB,eAAgC,EAChC,OAAgB;QAEhB,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,IAAI,GAAI,IAAY,CAAC,QAAQ,EAAE,CAAA;SAChC;QACD,eAAe,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAC5C,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAE,GAAW,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,CACxD,CAAA;QACD,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC1B,MAAM,oBAAoB,GAAG,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACzD,IAAI,GAAG,GAAG,sBAAsB,IAAW,IAAI,CAAA;QAC/C,IAAI,OAAO,EAAE;YACX,GAAG,IAAI,IAAI,OAAO,EAAE,CAAA;SACrB;QAED,GAAG,IAAI,GAAG,GAAG,GAAG,CAAA;QAChB,GAAG,IAAI,oBAAoB,oBAAoB,EAAE,CAAA;QACjD,KAAK,CAAC,GAAG,CAAC,CAAA;IACZ,CAAC;CACF;AAjCD,sDAiCC"} \ No newline at end of file diff --git a/node_modules/awilix/lib/function-tokenizer.d.ts b/node_modules/awilix/lib/function-tokenizer.d.ts new file mode 100644 index 0000000..15ef76c --- /dev/null +++ b/node_modules/awilix/lib/function-tokenizer.d.ts @@ -0,0 +1,30 @@ +/** + * Token type. + */ +export type TokenType = 'ident' | '(' | ')' | ',' | '=' | '*' | 'function' | 'class' | 'EOF'; +/** + * Lexer Token. + */ +export interface Token { + type: TokenType; + value?: string; +} +/** + * Flags that can be passed to the tokenizer to toggle certain things. + */ +export declare const enum TokenizerFlags { + None = 0, + /** + * If this is set, the tokenizer will not attempt to be smart about skipping expressions. + */ + Dumb = 1 +} +/** + * Creates a tokenizer for the specified source. + * + * @param source + */ +export declare function createTokenizer(source: string): { + next: (nextFlags?: TokenizerFlags) => Token; + done: () => boolean; +}; diff --git a/node_modules/awilix/lib/function-tokenizer.js b/node_modules/awilix/lib/function-tokenizer.js new file mode 100644 index 0000000..f798131 --- /dev/null +++ b/node_modules/awilix/lib/function-tokenizer.js @@ -0,0 +1,257 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createTokenizer = void 0; +/** + * Creates a tokenizer for the specified source. + * + * @param source + */ +function createTokenizer(source) { + const end = source.length; + let pos = 0; + let type = 'EOF'; + let value = ''; + let flags = 0 /* TokenizerFlags.None */; + // These are used to greedily skip as much as possible. + // Whenever we reach a paren, we increment these. + let parenLeft = 0; + let parenRight = 0; + return { + next, + done, + }; + /** + * Advances the tokenizer and returns the next token. + */ + function next(nextFlags = 0 /* TokenizerFlags.None */) { + flags = nextFlags; + advance(); + return createToken(); + } + /** + * Advances the tokenizer state. + */ + function advance() { + value = ''; + type = 'EOF'; + while (true) { + if (pos >= end) { + return (type = 'EOF'); + } + let ch = source.charAt(pos); + // Whitespace is irrelevant + if (isWhiteSpace(ch)) { + pos++; + continue; + } + switch (ch) { + case '(': + pos++; + parenLeft++; + return (type = ch); + case ')': + pos++; + parenRight++; + return (type = ch); + case '*': + pos++; + return (type = ch); + case ',': + pos++; + return (type = ch); + case '=': + pos++; + if ((flags & 1 /* TokenizerFlags.Dumb */) === 0) { + // Not in dumb-mode, so attempt to skip. + skipExpression(); + } + // We need to know that there's a default value so we can + // skip it if it does not exist when resolving. + return (type = ch); + case '/': + pos++; + const nextCh = source.charAt(pos); + if (nextCh === '/') { + skipUntil((c) => c === '\n', true); + pos++; + } + if (nextCh === '*') { + skipUntil((c) => { + const closing = source.charAt(pos + 1); + return c === '*' && closing === '/'; + }, true); + pos++; + } + continue; + default: + // Scans an identifier. + if (isIdentifierStart(ch)) { + scanIdentifier(); + return type; + } + // Elegantly skip over tokens we don't care about. + pos++; + } + } + } + /** + * Scans an identifier, given it's already been proven + * we are ready to do so. + */ + function scanIdentifier() { + const identStart = source.charAt(pos); + const start = ++pos; + while (isIdentifierPart(source.charAt(pos))) { + pos++; + } + value = '' + identStart + source.substring(start, pos); + type = value === 'function' || value === 'class' ? value : 'ident'; + if (type !== 'ident') { + value = ''; + } + return value; + } + /** + * Skips everything until the next comma or the end of the parameter list. + * Checks the parenthesis balance so we correctly skip function calls. + */ + function skipExpression() { + skipUntil((ch) => { + const isAtRoot = parenLeft === parenRight + 1; + if (ch === ',' && isAtRoot) { + return true; + } + if (ch === '(') { + parenLeft++; + return false; + } + if (ch === ')') { + parenRight++; + if (isAtRoot) { + return true; + } + } + return false; + }); + } + /** + * Skips strings and whilespace until the predicate is true. + * + * @param callback stops skipping when this returns `true`. + * @param dumb if `true`, does not skip whitespace and strings; + * it only stops once the callback returns `true`. + */ + function skipUntil(callback, dumb = false) { + while (pos < source.length) { + let ch = source.charAt(pos); + if (callback(ch)) { + return; + } + if (!dumb) { + if (isWhiteSpace(ch)) { + pos++; + continue; + } + if (isStringQuote(ch)) { + skipString(); + continue; + } + } + pos++; + } + } + /** + * Given the current position is at a string quote, skips the entire string. + */ + function skipString() { + const quote = source.charAt(pos); + pos++; + while (pos < source.length) { + const ch = source.charAt(pos); + const prev = source.charAt(pos - 1); + // Checks if the quote was escaped. + if (ch === quote && prev !== '\\') { + pos++; + return; + } + // Template strings are a bit tougher, we want to skip the interpolated values. + if (quote === '`') { + const next = source.charAt(pos + 1); + if (next === '$') { + const afterDollar = source.charAt(pos + 2); + if (afterDollar === '{') { + // This is the start of an interpolation; skip the ${ + pos = pos + 2; + // Skip strings and whitespace until we reach the ending }. + // This includes skipping nested interpolated strings. :D + skipUntil((ch) => ch === '}'); + } + } + } + pos++; + } + } + /** + * Creates a token from the current state. + */ + function createToken() { + if (value) { + return { value, type }; + } + return { type }; + } + /** + * Determines if we are done parsing. + */ + function done() { + return type === 'EOF'; + } +} +exports.createTokenizer = createTokenizer; +/** + * Determines if the given character is a whitespace character. + * + * @param {string} ch + * @return {boolean} + */ +function isWhiteSpace(ch) { + switch (ch) { + case '\r': + case '\n': + case ' ': + return true; + } + return false; +} +/** + * Determines if the specified character is a string quote. + * @param {string} ch + * @return {boolean} + */ +function isStringQuote(ch) { + switch (ch) { + case "'": + case '"': + case '`': + return true; + } + return false; +} +// NOTE: I've added the `.` character so that member expression paths +// are seen as identifiers. This is so we don't get a constructor token for +// stuff like `MyClass.prototype.constructor()` +const IDENT_START_EXPR = /^[_$a-zA-Z\xA0-\uFFFF]$/; +const IDENT_PART_EXPR = /^[._$a-zA-Z0-9\xA0-\uFFFF]$/; +/** + * Determines if the character is a valid JS identifier start character. + */ +function isIdentifierStart(ch) { + return IDENT_START_EXPR.test(ch); +} +/** + * Determines if the character is a valid JS identifier start character. + */ +function isIdentifierPart(ch) { + return IDENT_PART_EXPR.test(ch); +} +//# sourceMappingURL=function-tokenizer.js.map \ No newline at end of file diff --git a/node_modules/awilix/lib/function-tokenizer.js.map b/node_modules/awilix/lib/function-tokenizer.js.map new file mode 100644 index 0000000..e1e5e76 --- /dev/null +++ b/node_modules/awilix/lib/function-tokenizer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"function-tokenizer.js","sourceRoot":"","sources":["../src/function-tokenizer.ts"],"names":[],"mappings":";;;AAiCA;;;;GAIG;AACH,SAAgB,eAAe,CAAC,MAAc;IAC5C,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAA;IACzB,IAAI,GAAG,GAAW,CAAC,CAAA;IACnB,IAAI,IAAI,GAAc,KAAK,CAAA;IAC3B,IAAI,KAAK,GAAW,EAAE,CAAA;IACtB,IAAI,KAAK,8BAAsB,CAAA;IAC/B,uDAAuD;IACvD,iDAAiD;IACjD,IAAI,SAAS,GAAG,CAAC,CAAA;IACjB,IAAI,UAAU,GAAG,CAAC,CAAA;IAElB,OAAO;QACL,IAAI;QACJ,IAAI;KACL,CAAA;IAED;;OAEG;IACH,SAAS,IAAI,CAAC,SAAS,8BAAsB;QAC3C,KAAK,GAAG,SAAS,CAAA;QACjB,OAAO,EAAE,CAAA;QACT,OAAO,WAAW,EAAE,CAAA;IACtB,CAAC;IAED;;OAEG;IACH,SAAS,OAAO;QACd,KAAK,GAAG,EAAE,CAAA;QACV,IAAI,GAAG,KAAK,CAAA;QACZ,OAAO,IAAI,EAAE;YACX,IAAI,GAAG,IAAI,GAAG,EAAE;gBACd,OAAO,CAAC,IAAI,GAAG,KAAK,CAAC,CAAA;aACtB;YAED,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;YAC3B,2BAA2B;YAC3B,IAAI,YAAY,CAAC,EAAE,CAAC,EAAE;gBACpB,GAAG,EAAE,CAAA;gBACL,SAAQ;aACT;YAED,QAAQ,EAAE,EAAE;gBACV,KAAK,GAAG;oBACN,GAAG,EAAE,CAAA;oBACL,SAAS,EAAE,CAAA;oBACX,OAAO,CAAC,IAAI,GAAG,EAAE,CAAC,CAAA;gBACpB,KAAK,GAAG;oBACN,GAAG,EAAE,CAAA;oBACL,UAAU,EAAE,CAAA;oBACZ,OAAO,CAAC,IAAI,GAAG,EAAE,CAAC,CAAA;gBACpB,KAAK,GAAG;oBACN,GAAG,EAAE,CAAA;oBACL,OAAO,CAAC,IAAI,GAAG,EAAE,CAAC,CAAA;gBACpB,KAAK,GAAG;oBACN,GAAG,EAAE,CAAA;oBACL,OAAO,CAAC,IAAI,GAAG,EAAE,CAAC,CAAA;gBACpB,KAAK,GAAG;oBACN,GAAG,EAAE,CAAA;oBACL,IAAI,CAAC,KAAK,8BAAsB,CAAC,KAAK,CAAC,EAAE;wBACvC,wCAAwC;wBACxC,cAAc,EAAE,CAAA;qBACjB;oBACD,yDAAyD;oBACzD,+CAA+C;oBAC/C,OAAO,CAAC,IAAI,GAAG,EAAE,CAAC,CAAA;gBACpB,KAAK,GAAG;oBACN,GAAG,EAAE,CAAA;oBACL,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;oBACjC,IAAI,MAAM,KAAK,GAAG,EAAE;wBAClB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE,IAAI,CAAC,CAAA;wBAClC,GAAG,EAAE,CAAA;qBACN;oBACD,IAAI,MAAM,KAAK,GAAG,EAAE;wBAClB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;4BACd,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAA;4BACtC,OAAO,CAAC,KAAK,GAAG,IAAI,OAAO,KAAK,GAAG,CAAA;wBACrC,CAAC,EAAE,IAAI,CAAC,CAAA;wBACR,GAAG,EAAE,CAAA;qBACN;oBACD,SAAQ;gBACV;oBACE,uBAAuB;oBACvB,IAAI,iBAAiB,CAAC,EAAE,CAAC,EAAE;wBACzB,cAAc,EAAE,CAAA;wBAChB,OAAO,IAAI,CAAA;qBACZ;oBAED,kDAAkD;oBAClD,GAAG,EAAE,CAAA;aACR;SACF;IACH,CAAC;IAED;;;OAGG;IACH,SAAS,cAAc;QACrB,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QACrC,MAAM,KAAK,GAAG,EAAE,GAAG,CAAA;QACnB,OAAO,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;YAC3C,GAAG,EAAE,CAAA;SACN;QACD,KAAK,GAAG,EAAE,GAAG,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;QACtD,IAAI,GAAG,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAA;QAClE,IAAI,IAAI,KAAK,OAAO,EAAE;YACpB,KAAK,GAAG,EAAE,CAAA;SACX;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAED;;;OAGG;IACH,SAAS,cAAc;QACrB,SAAS,CAAC,CAAC,EAAE,EAAE,EAAE;YACf,MAAM,QAAQ,GAAG,SAAS,KAAK,UAAU,GAAG,CAAC,CAAA;YAC7C,IAAI,EAAE,KAAK,GAAG,IAAI,QAAQ,EAAE;gBAC1B,OAAO,IAAI,CAAA;aACZ;YAED,IAAI,EAAE,KAAK,GAAG,EAAE;gBACd,SAAS,EAAE,CAAA;gBACX,OAAO,KAAK,CAAA;aACb;YAED,IAAI,EAAE,KAAK,GAAG,EAAE;gBACd,UAAU,EAAE,CAAA;gBACZ,IAAI,QAAQ,EAAE;oBACZ,OAAO,IAAI,CAAA;iBACZ;aACF;YAED,OAAO,KAAK,CAAA;QACd,CAAC,CAAC,CAAA;IACJ,CAAC;IAED;;;;;;OAMG;IACH,SAAS,SAAS,CAAC,QAAiC,EAAE,IAAI,GAAG,KAAK;QAChE,OAAO,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE;YAC1B,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;YAC3B,IAAI,QAAQ,CAAC,EAAE,CAAC,EAAE;gBAChB,OAAM;aACP;YAED,IAAI,CAAC,IAAI,EAAE;gBACT,IAAI,YAAY,CAAC,EAAE,CAAC,EAAE;oBACpB,GAAG,EAAE,CAAA;oBACL,SAAQ;iBACT;gBAED,IAAI,aAAa,CAAC,EAAE,CAAC,EAAE;oBACrB,UAAU,EAAE,CAAA;oBACZ,SAAQ;iBACT;aACF;YACD,GAAG,EAAE,CAAA;SACN;IACH,CAAC;IAED;;OAEG;IACH,SAAS,UAAU;QACjB,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QAChC,GAAG,EAAE,CAAA;QACL,OAAO,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE;YAC1B,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;YAC7B,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAA;YACnC,mCAAmC;YACnC,IAAI,EAAE,KAAK,KAAK,IAAI,IAAI,KAAK,IAAI,EAAE;gBACjC,GAAG,EAAE,CAAA;gBACL,OAAM;aACP;YAED,+EAA+E;YAC/E,IAAI,KAAK,KAAK,GAAG,EAAE;gBACjB,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAA;gBACnC,IAAI,IAAI,KAAK,GAAG,EAAE;oBAChB,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAA;oBAC1C,IAAI,WAAW,KAAK,GAAG,EAAE;wBACvB,qDAAqD;wBACrD,GAAG,GAAG,GAAG,GAAG,CAAC,CAAA;wBACb,2DAA2D;wBAC3D,yDAAyD;wBACzD,SAAS,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,GAAG,CAAC,CAAA;qBAC9B;iBACF;aACF;YAED,GAAG,EAAE,CAAA;SACN;IACH,CAAC;IAED;;OAEG;IACH,SAAS,WAAW;QAClB,IAAI,KAAK,EAAE;YACT,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;SACvB;QACD,OAAO,EAAE,IAAI,EAAE,CAAA;IACjB,CAAC;IAED;;OAEG;IACH,SAAS,IAAI;QACX,OAAO,IAAI,KAAK,KAAK,CAAA;IACvB,CAAC;AACH,CAAC;AA3ND,0CA2NC;AAED;;;;;GAKG;AACH,SAAS,YAAY,CAAC,EAAU;IAC9B,QAAQ,EAAE,EAAE;QACV,KAAK,IAAI,CAAC;QACV,KAAK,IAAI,CAAC;QACV,KAAK,GAAG;YACN,OAAO,IAAI,CAAA;KACd;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAED;;;;GAIG;AACH,SAAS,aAAa,CAAC,EAAU;IAC/B,QAAQ,EAAE,EAAE;QACV,KAAK,GAAG,CAAC;QACT,KAAK,GAAG,CAAC;QACT,KAAK,GAAG;YACN,OAAO,IAAI,CAAA;KACd;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAED,qEAAqE;AACrE,2EAA2E;AAC3E,+CAA+C;AAC/C,MAAM,gBAAgB,GAAG,yBAAyB,CAAA;AAClD,MAAM,eAAe,GAAG,6BAA6B,CAAA;AAErD;;GAEG;AACH,SAAS,iBAAiB,CAAC,EAAU;IACnC,OAAO,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAClC,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,EAAU;IAClC,OAAO,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACjC,CAAC"} \ No newline at end of file diff --git a/node_modules/awilix/lib/injection-mode.d.ts b/node_modules/awilix/lib/injection-mode.d.ts new file mode 100644 index 0000000..9dc0b6b --- /dev/null +++ b/node_modules/awilix/lib/injection-mode.d.ts @@ -0,0 +1,8 @@ +/** + * Injection mode type. + */ +export type InjectionModeType = 'PROXY' | 'CLASSIC'; +/** + * Resolution modes. + */ +export declare const InjectionMode: Record; diff --git a/node_modules/awilix/lib/injection-mode.js b/node_modules/awilix/lib/injection-mode.js new file mode 100644 index 0000000..9896706 --- /dev/null +++ b/node_modules/awilix/lib/injection-mode.js @@ -0,0 +1,21 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InjectionMode = void 0; +/** + * Resolution modes. + */ +exports.InjectionMode = { + /** + * The dependencies will be resolved by injecting the cradle proxy. + * + * @type {String} + */ + PROXY: 'PROXY', + /** + * The dependencies will be resolved by inspecting parameter names of the function/constructor. + * + * @type {String} + */ + CLASSIC: 'CLASSIC', +}; +//# sourceMappingURL=injection-mode.js.map \ No newline at end of file diff --git a/node_modules/awilix/lib/injection-mode.js.map b/node_modules/awilix/lib/injection-mode.js.map new file mode 100644 index 0000000..ac768a8 --- /dev/null +++ b/node_modules/awilix/lib/injection-mode.js.map @@ -0,0 +1 @@ +{"version":3,"file":"injection-mode.js","sourceRoot":"","sources":["../src/injection-mode.ts"],"names":[],"mappings":";;;AAKA;;GAEG;AACU,QAAA,aAAa,GAAiD;IACzE;;;;OAIG;IACH,KAAK,EAAE,OAAO;IAEd;;;;OAIG;IACH,OAAO,EAAE,SAAS;CACnB,CAAA"} \ No newline at end of file diff --git a/node_modules/awilix/lib/lifetime.d.ts b/node_modules/awilix/lib/lifetime.d.ts new file mode 100644 index 0000000..9c7fad9 --- /dev/null +++ b/node_modules/awilix/lib/lifetime.d.ts @@ -0,0 +1,8 @@ +/** + * Lifetime type. + */ +export type LifetimeType = 'SINGLETON' | 'TRANSIENT' | 'SCOPED'; +/** + * Lifetime types. + */ +export declare const Lifetime: Record; diff --git a/node_modules/awilix/lib/lifetime.js b/node_modules/awilix/lib/lifetime.js new file mode 100644 index 0000000..7b930dc --- /dev/null +++ b/node_modules/awilix/lib/lifetime.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Lifetime = void 0; +/** + * Lifetime types. + */ +exports.Lifetime = { + /** + * The registration will be resolved once and only once. + * @type {String} + */ + SINGLETON: 'SINGLETON', + /** + * The registration will be resolved every time (never cached). + * @type {String} + */ + TRANSIENT: 'TRANSIENT', + /** + * The registration will be resolved once per scope. + * @type {String} + */ + SCOPED: 'SCOPED', +}; +//# sourceMappingURL=lifetime.js.map \ No newline at end of file diff --git a/node_modules/awilix/lib/lifetime.js.map b/node_modules/awilix/lib/lifetime.js.map new file mode 100644 index 0000000..cb20ddb --- /dev/null +++ b/node_modules/awilix/lib/lifetime.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lifetime.js","sourceRoot":"","sources":["../src/lifetime.ts"],"names":[],"mappings":";;;AAKA;;GAEG;AACU,QAAA,QAAQ,GAAuC;IAC1D;;;OAGG;IACH,SAAS,EAAE,WAAW;IAEtB;;;OAGG;IACH,SAAS,EAAE,WAAW;IAEtB;;;OAGG;IACH,MAAM,EAAE,QAAQ;CACjB,CAAA"} \ No newline at end of file diff --git a/node_modules/awilix/lib/list-modules.d.ts b/node_modules/awilix/lib/list-modules.d.ts new file mode 100644 index 0000000..54d5b04 --- /dev/null +++ b/node_modules/awilix/lib/list-modules.d.ts @@ -0,0 +1,41 @@ +import * as glob from 'fast-glob'; +import { BuildResolverOptions } from './resolvers'; +import { LifetimeType } from './awilix'; +/** + * The options when invoking listModules(). + * @interface ListModulesOptions + */ +export interface ListModulesOptions { + cwd?: string; + glob?: typeof glob.sync; +} +/** + * An object containing the module name and path (full path to module). + * + * @interface ModuleDescriptor + */ +export interface ModuleDescriptor { + name: string; + path: string; + opts: any; +} +/** + * A glob pattern with associated registration options. + */ +export type GlobWithOptions = [string] | [string, BuildResolverOptions | LifetimeType]; +/** + * Returns a list of {name, path} pairs, + * where the name is the module name, and path is the actual + * full path to the module. + * + * @param {String|Array} globPatterns + * The glob pattern as a string or an array of strings. + * + * @param {String} opts.cwd + * Current working directory, used for resolving filepaths. + * Defaults to `process.cwd()`. + * + * @return {[{name, path}]} + * An array of objects with the module names and paths. + */ +export declare function listModules(globPatterns: string | Array, opts?: ListModulesOptions): ModuleDescriptor[]; diff --git a/node_modules/awilix/lib/list-modules.js b/node_modules/awilix/lib/list-modules.js new file mode 100644 index 0000000..60bc609 --- /dev/null +++ b/node_modules/awilix/lib/list-modules.js @@ -0,0 +1,63 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.listModules = void 0; +const glob = require("fast-glob"); +const path = require("path"); +const utils_1 = require("./utils"); +// Regex to extract the module name. +const nameExpr = /(.*)\..*/i; +/** + * Internal method for globbing a single pattern. + * + * @param {String} globPattern + * The glob pattern. + * + * @param {String} opts.cwd + * Current working directory, used for resolving filepaths. + * Defaults to `process.cwd()`. + * + * @return {[{name, path, opts}]} + * The module names and paths. + * + * @api private + */ +function _listModules(globPattern, opts) { + opts = Object.assign({ cwd: process.cwd(), glob: glob.sync }, opts); + let patternOpts = null; + if (Array.isArray(globPattern)) { + patternOpts = globPattern[1]; + globPattern = globPattern[0]; + } + // Replace Windows path separators with Posix path + globPattern = globPattern.replace(/\\/g, '/'); + const result = opts.glob(globPattern, { cwd: opts.cwd }); + const mapped = result.map((p) => ({ + name: nameExpr.exec(path.basename(p))[1], + path: path.resolve(opts.cwd, p), + opts: patternOpts, + })); + return mapped; +} +/** + * Returns a list of {name, path} pairs, + * where the name is the module name, and path is the actual + * full path to the module. + * + * @param {String|Array} globPatterns + * The glob pattern as a string or an array of strings. + * + * @param {String} opts.cwd + * Current working directory, used for resolving filepaths. + * Defaults to `process.cwd()`. + * + * @return {[{name, path}]} + * An array of objects with the module names and paths. + */ +function listModules(globPatterns, opts) { + if (Array.isArray(globPatterns)) { + return (0, utils_1.flatten)(globPatterns.map((p) => _listModules(p, opts))); + } + return _listModules(globPatterns, opts); +} +exports.listModules = listModules; +//# sourceMappingURL=list-modules.js.map \ No newline at end of file diff --git a/node_modules/awilix/lib/list-modules.js.map b/node_modules/awilix/lib/list-modules.js.map new file mode 100644 index 0000000..1260b84 --- /dev/null +++ b/node_modules/awilix/lib/list-modules.js.map @@ -0,0 +1 @@ +{"version":3,"file":"list-modules.js","sourceRoot":"","sources":["../src/list-modules.ts"],"names":[],"mappings":";;;AAAA,kCAAiC;AACjC,6BAA4B;AAC5B,mCAAiC;AA+BjC,oCAAoC;AACpC,MAAM,QAAQ,GAAG,WAAW,CAAA;AAE5B;;;;;;;;;;;;;;GAcG;AACH,SAAS,YAAY,CACnB,WAAqC,EACrC,IAAyB;IAEzB,IAAI,mBAAK,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAAK,IAAI,CAAE,CAAA;IACvD,IAAI,WAAW,GAAgC,IAAI,CAAA;IACnD,IAAI,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;QAC9B,WAAW,GAAG,WAAW,CAAC,CAAC,CAAyB,CAAA;QACpD,WAAW,GAAG,WAAW,CAAC,CAAC,CAAC,CAAA;KAC7B;IAED,kDAAkD;IAClD,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;IAE7C,MAAM,MAAM,GAAG,IAAI,CAAC,IAAK,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAA;IACzD,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAChC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC;QACzC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAK,CAAC,GAAI,EAAE,CAAC,CAAC;QACjC,IAAI,EAAE,WAAW;KAClB,CAAC,CAAC,CAAA;IACH,OAAO,MAAM,CAAA;AACf,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,WAAW,CACzB,YAAsD,EACtD,IAAyB;IAEzB,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QAC/B,OAAO,IAAA,eAAO,EAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;KAC/D;IAED,OAAO,YAAY,CAAC,YAAY,EAAE,IAAI,CAAC,CAAA;AACzC,CAAC;AATD,kCASC"} \ No newline at end of file diff --git a/node_modules/awilix/lib/load-module-native.js b/node_modules/awilix/lib/load-module-native.js new file mode 100644 index 0000000..b0a512b --- /dev/null +++ b/node_modules/awilix/lib/load-module-native.js @@ -0,0 +1,5 @@ +// This is kept in a separate .js file to prevent TypeScript re-writing the import() statement to a require() statement +function importModule(path) { + return import(path) +} +module.exports = { importModule } diff --git a/node_modules/awilix/lib/load-modules.d.ts b/node_modules/awilix/lib/load-modules.d.ts new file mode 100644 index 0000000..18afe00 --- /dev/null +++ b/node_modules/awilix/lib/load-modules.d.ts @@ -0,0 +1,49 @@ +import { ModuleDescriptor, GlobWithOptions, listModules } from './list-modules'; +import { BuildResolverOptions } from './resolvers'; +import { AwilixContainer } from './container'; +/** + * Metadata of the module as well as the loaded module itself. + * @interface LoadedModuleDescriptor + */ +export interface LoadedModuleDescriptor extends ModuleDescriptor { + value: unknown; +} +/** + * The options when invoking loadModules(). + * @interface LoadModulesOptions + */ +export interface LoadModulesOptions { + cwd?: string; + formatName?: NameFormatter | BuiltInNameFormatters; + resolverOptions?: BuildResolverOptions; + esModules?: ESM; +} +/** + * Name formatting options when using loadModules(). + * @type BuiltInNameFormatters + */ +export type BuiltInNameFormatters = 'camelCase'; +/** + * Takes in the filename of the module being loaded as well as the module descriptor, + * and returns a string which is used to register the module in the container. + * + * `descriptor.name` is the same as `name`. + * + * @type {NameFormatter} + */ +export type NameFormatter = (name: string, descriptor: LoadedModuleDescriptor) => string; +/** + * Dependencies for `loadModules` + */ +export interface LoadModulesDeps { + listModules: typeof listModules; + container: AwilixContainer; + require(path: string): any | Promise; +} +/** + * The list of loaded modules + */ +export interface LoadModulesResult { + loadedModules: Array; +} +export declare function loadModules(dependencies: LoadModulesDeps, globPatterns: string | Array, opts?: LoadModulesOptions): ESM extends true ? Promise : LoadModulesResult; diff --git a/node_modules/awilix/lib/load-modules.js b/node_modules/awilix/lib/load-modules.js new file mode 100644 index 0000000..c7e5e2b --- /dev/null +++ b/node_modules/awilix/lib/load-modules.js @@ -0,0 +1,196 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.loadModules = void 0; +const url_1 = require("url"); +const lifetime_1 = require("./lifetime"); +const resolvers_1 = require("./resolvers"); +const utils_1 = require("./utils"); +const camel_case_1 = require("camel-case"); +const nameFormatters = { + camelCase: (s) => (0, camel_case_1.camelCase)(s), +}; +/** + * Given an array of glob strings, will call `require` + * on them, and call their default exported function with the + * container as the first parameter. + * + * @param {AwilixContainer} dependencies.container + * The container to install loaded modules in. + * + * @param {Function} dependencies.listModules + * The listModules function to use for listing modules. + * + * @param {Function} dependencies.require + * The require function - it's a dependency because it makes testing easier. + * + * @param {String[]} globPatterns + * The array of globs to use when loading modules. + * + * @param {Object} opts + * Passed to `listModules`, e.g. `{ cwd: '...' }`. + * + * @param {(string, ModuleDescriptor) => string} opts.formatName + * Used to format the name the module is registered with in the container. + * + * @param {boolean} opts.esModules + * Set to `true` to use Node's native ECMAScriptModules modules + * + * @return {Object} + * Returns an object describing the result. + */ +function loadModules(dependencies, globPatterns, opts) { + opts !== null && opts !== void 0 ? opts : (opts = {}); + const container = dependencies.container; + opts = optsWithDefaults(opts, container); + const modules = dependencies.listModules(globPatterns, opts); + if (opts.esModules) { + return loadEsModules(dependencies, container, modules, opts); + } + else { + const result = modules.map((m) => { + const loaded = dependencies.require(m.path); + return parseLoadedModule(loaded, m); + }); + return registerModules(result, container, modules, opts); + } +} +exports.loadModules = loadModules; +/** + * Loads the modules using native ES6 modules and the async import() + * @param {AwilixContainer} container + * @param {ModuleDescriptor[]} modules + * @param {LoadModulesOptions} opts + */ +function loadEsModules(dependencies, container, modules, opts) { + return __awaiter(this, void 0, void 0, function* () { + const importPromises = []; + for (const m of modules) { + const fileUrl = (0, url_1.pathToFileURL)(m.path).toString(); + importPromises.push(dependencies.require(fileUrl)); + } + const imports = yield Promise.all(importPromises); + const result = []; + for (let i = 0; i < modules.length; i++) { + result.push(parseLoadedModule(imports[i], modules[i])); + } + return registerModules(result, container, modules, opts); + }); +} +/** + * Parses the module which has been required + * + * @param {any} loaded + * @param {ModuleDescriptor} m + */ +function parseLoadedModule(loaded, m) { + const items = []; + // Meh, it happens. + if (!loaded) { + return items; + } + if ((0, utils_1.isFunction)(loaded)) { + // for module.exports = ... + items.push({ + name: m.name, + path: m.path, + value: loaded, + opts: m.opts, + }); + return items; + } + if (loaded.default && (0, utils_1.isFunction)(loaded.default)) { + // ES6 default export + items.push({ + name: m.name, + path: m.path, + value: loaded.default, + opts: m.opts, + }); + } + // loop through non-default exports, but require the RESOLVER property set for + // it to be a valid service module export. + for (const key of Object.keys(loaded)) { + if (key === 'default') { + // default case handled separately due to its different name (file name) + continue; + } + if ((0, utils_1.isFunction)(loaded[key]) && resolvers_1.RESOLVER in loaded[key]) { + items.push({ + name: key, + path: m.path, + value: loaded[key], + opts: m.opts, + }); + } + } + return items; +} +/** + * Registers the modules + * + * @param {ModuleDescriptorVal[][]} modulesToRegister + * @param {AwilixContainer} container + * @param {ModuleDescriptor[]} modules + * @param {LoadModulesOptions} opts + */ +function registerModules(modulesToRegister, container, modules, opts) { + modulesToRegister + .reduce((acc, cur) => acc.concat(cur), []) + .filter((x) => x) + .forEach(registerDescriptor.bind(null, container, opts)); + return { + loadedModules: modules, + }; +} +/** + * Returns a new options object with defaults applied. + */ +function optsWithDefaults(opts, container) { + return Object.assign({ + // Does a somewhat-deep merge on the registration options. + resolverOptions: Object.assign({ lifetime: lifetime_1.Lifetime.TRANSIENT }, (opts && opts.resolverOptions)) }, opts); +} +/** + * Given a module descriptor, reads it and registers it's value with the container. + * + * @param {AwilixContainer} container + * @param {LoadModulesOptions} opts + * @param {ModuleDescriptor} moduleDescriptor + */ +function registerDescriptor(container, opts, moduleDescriptor) { + const inlineConfig = moduleDescriptor.value[resolvers_1.RESOLVER]; + let name = inlineConfig && inlineConfig.name; + if (!name) { + name = moduleDescriptor.name; + let formatter = opts.formatName; + if (formatter) { + if (typeof formatter === 'string') { + formatter = nameFormatters[formatter]; + } + if (formatter) { + name = formatter(name, moduleDescriptor); + } + } + } + let moduleDescriptorOpts = moduleDescriptor.opts; + if (typeof moduleDescriptorOpts === 'string') { + moduleDescriptorOpts = { lifetime: moduleDescriptorOpts }; + } + const regOpts = Object.assign(Object.assign(Object.assign({}, opts.resolverOptions), moduleDescriptorOpts), inlineConfig); + const reg = regOpts.register + ? regOpts.register + : (0, utils_1.isClass)(moduleDescriptor.value) + ? resolvers_1.asClass + : resolvers_1.asFunction; + container.register(name, reg(moduleDescriptor.value, regOpts)); +} +//# sourceMappingURL=load-modules.js.map \ No newline at end of file diff --git a/node_modules/awilix/lib/load-modules.js.map b/node_modules/awilix/lib/load-modules.js.map new file mode 100644 index 0000000..523736a --- /dev/null +++ b/node_modules/awilix/lib/load-modules.js.map @@ -0,0 +1 @@ +{"version":3,"file":"load-modules.js","sourceRoot":"","sources":["../src/load-modules.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAmC;AAEnC,yCAAqC;AACrC,2CAKoB;AAEpB,mCAA6C;AAE7C,2CAAsC;AAiDtC,MAAM,cAAc,GAAkC;IACpD,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,sBAAS,EAAC,CAAC,CAAC;CAC/B,CAAA;AAcD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,SAAgB,WAAW,CACzB,YAA6B,EAC7B,YAAsD,EACtD,IAA8B;IAE9B,IAAI,aAAJ,IAAI,cAAJ,IAAI,IAAJ,IAAI,GAAK,EAAE,EAAA;IACX,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAA;IACxC,IAAI,GAAG,gBAAgB,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;IACxC,MAAM,OAAO,GAAG,YAAY,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,CAAC,CAAA;IAE5D,IAAI,IAAI,CAAC,SAAS,EAAE;QAClB,OAAO,aAAa,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;KAC7D;SAAM;QACL,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YAC/B,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;YAC3C,OAAO,iBAAiB,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;QACrC,CAAC,CAAC,CAAA;QACF,OAAO,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;KACzD;AACH,CAAC;AAnBD,kCAmBC;AAED;;;;;GAKG;AACH,SAAe,aAAa,CAC1B,YAA6B,EAC7B,SAA0B,EAC1B,OAA2B,EAC3B,IAA6B;;QAE7B,MAAM,cAAc,GAAG,EAAE,CAAA;QACzB,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE;YACvB,MAAM,OAAO,GAAG,IAAA,mBAAa,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAA;YAChD,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAA;SACnD;QACD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;QACjD,MAAM,MAAM,GAAG,EAAE,CAAA;QACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACvC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;SACvD;QACD,OAAO,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;IAC1D,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAS,iBAAiB,CACxB,MAAW,EACX,CAAmB;IAEnB,MAAM,KAAK,GAAkC,EAAE,CAAA;IAC/C,mBAAmB;IACnB,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,KAAK,CAAA;KACb;IAED,IAAI,IAAA,kBAAU,EAAC,MAAM,CAAC,EAAE;QACtB,2BAA2B;QAC3B,KAAK,CAAC,IAAI,CAAC;YACT,IAAI,EAAE,CAAC,CAAC,IAAI;YACZ,IAAI,EAAE,CAAC,CAAC,IAAI;YACZ,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,CAAC,CAAC,IAAI;SACb,CAAC,CAAA;QAEF,OAAO,KAAK,CAAA;KACb;IAED,IAAI,MAAM,CAAC,OAAO,IAAI,IAAA,kBAAU,EAAC,MAAM,CAAC,OAAO,CAAC,EAAE;QAChD,qBAAqB;QACrB,KAAK,CAAC,IAAI,CAAC;YACT,IAAI,EAAE,CAAC,CAAC,IAAI;YACZ,IAAI,EAAE,CAAC,CAAC,IAAI;YACZ,KAAK,EAAE,MAAM,CAAC,OAAO;YACrB,IAAI,EAAE,CAAC,CAAC,IAAI;SACb,CAAC,CAAA;KACH;IAED,8EAA8E;IAC9E,0CAA0C;IAC1C,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;QACrC,IAAI,GAAG,KAAK,SAAS,EAAE;YACrB,wEAAwE;YACxE,SAAQ;SACT;QAED,IAAI,IAAA,kBAAU,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,oBAAQ,IAAI,MAAM,CAAC,GAAG,CAAC,EAAE;YACtD,KAAK,CAAC,IAAI,CAAC;gBACT,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,CAAC,CAAC,IAAI;gBACZ,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC;gBAClB,IAAI,EAAE,CAAC,CAAC,IAAI;aACb,CAAC,CAAA;SACH;KACF;IAED,OAAO,KAAK,CAAA;AACd,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,eAAe,CACtB,iBAA6C,EAC7C,SAA0B,EAC1B,OAA2B,EAC3B,IAA6B;IAE7B,iBAAiB;SACd,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;SACzC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;SAChB,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAA;IAC1D,OAAO;QACL,aAAa,EAAE,OAAO;KACvB,CAAA;AACH,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CACvB,IAAkD,EAClD,SAA0B;IAE1B;QACE,0DAA0D;QAC1D,eAAe,kBACb,QAAQ,EAAE,mBAAQ,CAAC,SAAS,IACzB,CAAC,IAAI,IAAI,IAAI,CAAC,eAAe,CAAC,KAEhC,IAAI,EACR;AACH,CAAC;AAED;;;;;;GAMG;AACH,SAAS,kBAAkB,CACzB,SAA0B,EAC1B,IAA6B,EAC7B,gBAAyD;IAEzD,MAAM,YAAY,GAAG,gBAAgB,CAAC,KAAK,CAAC,oBAAQ,CAAC,CAAA;IACrD,IAAI,IAAI,GAAG,YAAY,IAAI,YAAY,CAAC,IAAI,CAAA;IAC5C,IAAI,CAAC,IAAI,EAAE;QACT,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAA;QAC5B,IAAI,SAAS,GAAG,IAAI,CAAC,UAAU,CAAA;QAC/B,IAAI,SAAS,EAAE;YACb,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;gBACjC,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC,CAAA;aACtC;YAED,IAAI,SAAS,EAAE;gBACb,IAAI,GAAG,SAAS,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAA;aACzC;SACF;KACF;IAED,IAAI,oBAAoB,GAAG,gBAAgB,CAAC,IAAI,CAAA;IAEhD,IAAI,OAAO,oBAAoB,KAAK,QAAQ,EAAE;QAC5C,oBAAoB,GAAG,EAAE,QAAQ,EAAE,oBAAoB,EAAE,CAAA;KAC1D;IAED,MAAM,OAAO,iDACR,IAAI,CAAC,eAAe,GACpB,oBAAoB,GACpB,YAAY,CAChB,CAAA;IAED,MAAM,GAAG,GAAa,OAAO,CAAC,QAAQ;QACpC,CAAC,CAAC,OAAO,CAAC,QAAQ;QAClB,CAAC,CAAC,IAAA,eAAO,EAAC,gBAAgB,CAAC,KAAK,CAAC;YACjC,CAAC,CAAC,mBAAO;YACT,CAAC,CAAC,sBAAU,CAAA;IAEd,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;AAChE,CAAC"} \ No newline at end of file diff --git a/node_modules/awilix/lib/param-parser.d.ts b/node_modules/awilix/lib/param-parser.d.ts new file mode 100644 index 0000000..ad4373c --- /dev/null +++ b/node_modules/awilix/lib/param-parser.d.ts @@ -0,0 +1,14 @@ +/** + * A parameter for a function. + */ +export interface Parameter { + /** + * Parameter name. + */ + name: string; + /** + * True if the parameter is optional. + */ + optional: boolean; +} +export declare function parseParameterList(source: string): Array | null; diff --git a/node_modules/awilix/lib/param-parser.js b/node_modules/awilix/lib/param-parser.js new file mode 100644 index 0000000..6357ebf --- /dev/null +++ b/node_modules/awilix/lib/param-parser.js @@ -0,0 +1,129 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parseParameterList = void 0; +const function_tokenizer_1 = require("./function-tokenizer"); +/* + * Parses the parameter list of a function string, including ES6 class constructors. + * + * @param {string} source + * The source of a function to extract the parameter list from + * + * @return {Array | null} + * Returns an array of parameters, or `null` if no + * constructor was found for a class. + */ +function parseParameterList(source) { + const { next: _next, done } = (0, function_tokenizer_1.createTokenizer)(source); + const params = []; + let t = null; + nextToken(); + while (!done()) { + switch (t.type) { + case 'class': + skipUntilConstructor(); + // If we didn't find a constructor token, then we know that there + // are no dependencies in the defined class. + if (!isConstructorToken()) { + return null; + } + // Next token is the constructor identifier. + nextToken(); + break; + case 'function': + const next = nextToken(); + if (next.type === 'ident' || next.type === '*') { + // This is the function name or a generator star. Skip it. + nextToken(); + } + break; + case '(': + // Start parsing parameter names. + parseParams(); + break; + case ')': + // We're now out of the parameter list. + return params; + case 'ident': + // Likely a paren-less arrow function + // which can have no default args. + const param = { name: t.value, optional: false }; + if (t.value === 'async') { + // Given it's the very first token, we can assume it's an async function, + // so skip the async keyword if the next token is not an equals sign, in which + // case it is a single-arg arrow func. + const next = nextToken(); + if (next && next.type !== '=') { + break; + } + } + params.push(param); + return params; + /* istanbul ignore next */ + default: + throw unexpected(); + } + } + return params; + /** + * After having been placed within the parameter list of + * a function, parses the parameters. + */ + function parseParams() { + // Current token is a left-paren + let param = { name: '', optional: false }; + while (!done()) { + nextToken(); + switch (t.type) { + case 'ident': + param.name = t.value; + break; + case '=': + param.optional = true; + break; + case ',': + params.push(param); + param = { name: '', optional: false }; + break; + case ')': + if (param.name) { + params.push(param); + } + return; + /* istanbul ignore next */ + default: + throw unexpected(); + } + } + } + /** + * Skips until we reach the constructor identifier. + */ + function skipUntilConstructor() { + while (!isConstructorToken() && !done()) { + nextToken(1 /* TokenizerFlags.Dumb */); + } + } + /** + * Determines if the current token represents a constructor, and the next token after it is a paren + * @return {boolean} + */ + function isConstructorToken() { + return t.type === 'ident' && t.value === 'constructor'; + } + /** + * Advances the tokenizer and stores the previous token in history + */ + function nextToken(flags = 0 /* TokenizerFlags.None */) { + t = _next(flags); + return t; + } + /** + * Returns an error describing an unexpected token. + */ + /* istanbul ignore next */ + function unexpected() { + return new SyntaxError(`Parsing parameter list, did not expect ${t.type} token${t.value ? ` (${t.value})` : ''}`); + } +} +exports.parseParameterList = parseParameterList; +//# sourceMappingURL=param-parser.js.map \ No newline at end of file diff --git a/node_modules/awilix/lib/param-parser.js.map b/node_modules/awilix/lib/param-parser.js.map new file mode 100644 index 0000000..6a6e877 --- /dev/null +++ b/node_modules/awilix/lib/param-parser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"param-parser.js","sourceRoot":"","sources":["../src/param-parser.ts"],"names":[],"mappings":";;;AAAA,6DAA6E;AAgB7E;;;;;;;;;GASG;AACH,SAAgB,kBAAkB,CAAC,MAAc;IAC/C,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAA,oCAAe,EAAC,MAAM,CAAC,CAAA;IACrD,MAAM,MAAM,GAAqB,EAAE,CAAA;IAEnC,IAAI,CAAC,GAAU,IAAK,CAAA;IACpB,SAAS,EAAE,CAAA;IACX,OAAO,CAAC,IAAI,EAAE,EAAE;QACd,QAAQ,CAAC,CAAC,IAAI,EAAE;YACd,KAAK,OAAO;gBACV,oBAAoB,EAAE,CAAA;gBACtB,iEAAiE;gBACjE,4CAA4C;gBAC5C,IAAI,CAAC,kBAAkB,EAAE,EAAE;oBACzB,OAAO,IAAI,CAAA;iBACZ;gBACD,4CAA4C;gBAC5C,SAAS,EAAE,CAAA;gBACX,MAAK;YACP,KAAK,UAAU;gBACb,MAAM,IAAI,GAAG,SAAS,EAAE,CAAA;gBACxB,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,IAAI,KAAK,GAAG,EAAE;oBAC9C,0DAA0D;oBAC1D,SAAS,EAAE,CAAA;iBACZ;gBACD,MAAK;YACP,KAAK,GAAG;gBACN,iCAAiC;gBACjC,WAAW,EAAE,CAAA;gBACb,MAAK;YACP,KAAK,GAAG;gBACN,uCAAuC;gBACvC,OAAO,MAAM,CAAA;YACf,KAAK,OAAO;gBACV,qCAAqC;gBACrC,kCAAkC;gBAClC,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,KAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAA;gBACjD,IAAI,CAAC,CAAC,KAAK,KAAK,OAAO,EAAE;oBACvB,yEAAyE;oBACzE,8EAA8E;oBAC9E,sCAAsC;oBACtC,MAAM,IAAI,GAAG,SAAS,EAAE,CAAA;oBACxB,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,GAAG,EAAE;wBAC7B,MAAK;qBACN;iBACF;gBACD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;gBAClB,OAAO,MAAM,CAAA;YACf,0BAA0B;YAC1B;gBACE,MAAM,UAAU,EAAE,CAAA;SACrB;KACF;IAED,OAAO,MAAM,CAAA;IAEb;;;OAGG;IACH,SAAS,WAAW;QAClB,gCAAgC;QAChC,IAAI,KAAK,GAAc,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAA;QACpD,OAAO,CAAC,IAAI,EAAE,EAAE;YACd,SAAS,EAAE,CAAA;YACX,QAAQ,CAAC,CAAC,IAAI,EAAE;gBACd,KAAK,OAAO;oBACV,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,KAAM,CAAA;oBACrB,MAAK;gBACP,KAAK,GAAG;oBACN,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAA;oBACrB,MAAK;gBACP,KAAK,GAAG;oBACN,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;oBAClB,KAAK,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAA;oBACrC,MAAK;gBACP,KAAK,GAAG;oBACN,IAAI,KAAK,CAAC,IAAI,EAAE;wBACd,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;qBACnB;oBACD,OAAM;gBACR,0BAA0B;gBAC1B;oBACE,MAAM,UAAU,EAAE,CAAA;aACrB;SACF;IACH,CAAC;IAED;;OAEG;IACH,SAAS,oBAAoB;QAC3B,OAAO,CAAC,kBAAkB,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE;YACvC,SAAS,6BAAqB,CAAA;SAC/B;IACH,CAAC;IAED;;;OAGG;IACH,SAAS,kBAAkB;QACzB,OAAO,CAAC,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,CAAC,KAAK,KAAK,aAAa,CAAA;IACxD,CAAC;IAED;;OAEG;IACH,SAAS,SAAS,CAAC,KAAK,8BAAsB;QAC5C,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAA;QAChB,OAAO,CAAC,CAAA;IACV,CAAC;IAED;;OAEG;IACH,0BAA0B;IAC1B,SAAS,UAAU;QACjB,OAAO,IAAI,WAAW,CACpB,0CAA0C,CAAC,CAAC,IAAI,SAC9C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,EAC9B,EAAE,CACH,CAAA;IACH,CAAC;AACH,CAAC;AA3HD,gDA2HC"} \ No newline at end of file diff --git a/node_modules/awilix/lib/resolvers.d.ts b/node_modules/awilix/lib/resolvers.d.ts new file mode 100644 index 0000000..feb48a8 --- /dev/null +++ b/node_modules/awilix/lib/resolvers.d.ts @@ -0,0 +1,162 @@ +import { LifetimeType } from './lifetime'; +import { InjectionModeType } from './injection-mode'; +import { AwilixContainer, FunctionReturning } from './container'; +/** + * RESOLVER symbol can be used by modules loaded by + * `loadModules` to configure their lifetime, injection mode, etc. + */ +export declare const RESOLVER: unique symbol; +/** + * Gets passed the container and is expected to return an object + * whose properties are accessible at construction time for the + * configured resolver. + * + * @type {Function} + */ +export type InjectorFunction = (container: AwilixContainer) => object; +/** + * A resolver object returned by asClass(), asFunction() or asValue(). + */ +export interface Resolver extends ResolverOptions { + resolve(container: AwilixContainer): T; +} +/** + * A resolver object created by asClass() or asFunction(). + */ +export interface BuildResolver extends Resolver, BuildResolverOptions { + injectionMode?: InjectionModeType; + injector?: InjectorFunction; + setLifetime(lifetime: LifetimeType): this; + setInjectionMode(mode: InjectionModeType): this; + singleton(): this; + scoped(): this; + transient(): this; + proxy(): this; + classic(): this; + inject(injector: InjectorFunction): this; +} +/** + * Options for disposable resolvers. + */ +export interface DisposableResolverOptions extends ResolverOptions { + dispose?: Disposer; +} +/** + * Disposable resolver. + */ +export interface DisposableResolver extends Resolver, DisposableResolverOptions { + disposer(dispose: Disposer): this; +} +/** + * Disposer function type. + */ +export type Disposer = (value: T) => any | Promise; +/** + * The options when registering a class, function or value. + * @type RegistrationOptions + */ +export interface ResolverOptions { + /** + * Only used for inline configuration with `loadModules`. + */ + name?: string; + /** + * Lifetime setting. + */ + lifetime?: LifetimeType; + /** + * Registration function to use. Only used for inline configuration with `loadModules`. + */ + register?: (...args: any[]) => Resolver; +} +/** + * Builder resolver options. + */ +export interface BuildResolverOptions extends ResolverOptions, DisposableResolverOptions { + /** + * Resolution mode. + */ + injectionMode?: InjectionModeType; + /** + * Injector function to provide additional parameters. + */ + injector?: InjectorFunction; +} +/** + * A class constructor. For example: + * + * class MyClass {} + * + * container.registerClass('myClass', MyClass) + * ^^^^^^^ + */ +export type Constructor = { + new (...args: any[]): T; +}; +/** + * Creates a simple value resolver where the given value will always be resolved. + * + * @param {string} name + * The name to register the value as. + * + * @param {*} value + * The value to resolve. + * + * @return {object} + * The resolver. + */ +export declare function asValue(value: T): Resolver; +/** + * Creates a factory resolver, where the given factory function + * will be invoked with `new` when requested. + * + * @param {string} name + * The name to register the value as. + * + * @param {Function} fn + * The function to register. + * + * @param {object} opts + * Additional options for the resolver. + * + * @return {object} + * The resolver. + */ +export declare function asFunction(fn: FunctionReturning, opts?: BuildResolverOptions): BuildResolver & DisposableResolver; +/** + * Like a factory resolver, but for classes that require `new`. + * + * @param {string} name + * The name to register the value as. + * + * @param {Class} Type + * The function to register. + * + * @param {object} opts + * Additional options for the resolver. + * + * @return {object} + * The resolver. + */ +export declare function asClass(Type: Constructor, opts?: BuildResolverOptions): BuildResolver & DisposableResolver; +/** + * Resolves to the specified registration. + */ +export declare function aliasTo(name: string): Resolver; +/** + * Given an options object, creates a fluid interface + * to manage it. + * + * @param {*} obj + * The object to return. + * + * @return {object} + * The interface. + */ +export declare function createBuildResolver>(obj: B): BuildResolver & B; +/** + * Given a resolver, returns an object with methods to manage the disposer + * function. + * @param obj + */ +export declare function createDisposableResolver>(obj: B): DisposableResolver & B; diff --git a/node_modules/awilix/lib/resolvers.js b/node_modules/awilix/lib/resolvers.js new file mode 100644 index 0000000..c0d93e3 --- /dev/null +++ b/node_modules/awilix/lib/resolvers.js @@ -0,0 +1,327 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDisposableResolver = exports.createBuildResolver = exports.aliasTo = exports.asClass = exports.asFunction = exports.asValue = exports.RESOLVER = void 0; +const lifetime_1 = require("./lifetime"); +const injection_mode_1 = require("./injection-mode"); +const utils_1 = require("./utils"); +const param_parser_1 = require("./param-parser"); +const errors_1 = require("./errors"); +/** + * RESOLVER symbol can be used by modules loaded by + * `loadModules` to configure their lifetime, injection mode, etc. + */ +exports.RESOLVER = Symbol('Awilix Resolver Config'); +/** + * Creates a simple value resolver where the given value will always be resolved. + * + * @param {string} name + * The name to register the value as. + * + * @param {*} value + * The value to resolve. + * + * @return {object} + * The resolver. + */ +function asValue(value) { + return { + resolve: () => value, + }; +} +exports.asValue = asValue; +/** + * Creates a factory resolver, where the given factory function + * will be invoked with `new` when requested. + * + * @param {string} name + * The name to register the value as. + * + * @param {Function} fn + * The function to register. + * + * @param {object} opts + * Additional options for the resolver. + * + * @return {object} + * The resolver. + */ +function asFunction(fn, opts) { + if (!(0, utils_1.isFunction)(fn)) { + throw new errors_1.AwilixTypeError('asFunction', 'fn', 'function', fn); + } + const defaults = { + lifetime: lifetime_1.Lifetime.TRANSIENT, + }; + opts = makeOptions(defaults, opts, fn[exports.RESOLVER]); + const resolve = generateResolve(fn); + let result = Object.assign({ resolve }, opts); + return createDisposableResolver(createBuildResolver(result)); +} +exports.asFunction = asFunction; +/** + * Like a factory resolver, but for classes that require `new`. + * + * @param {string} name + * The name to register the value as. + * + * @param {Class} Type + * The function to register. + * + * @param {object} opts + * Additional options for the resolver. + * + * @return {object} + * The resolver. + */ +function asClass(Type, opts) { + if (!(0, utils_1.isFunction)(Type)) { + throw new errors_1.AwilixTypeError('asClass', 'Type', 'class', Type); + } + const defaults = { + lifetime: lifetime_1.Lifetime.TRANSIENT, + }; + opts = makeOptions(defaults, opts, Type[exports.RESOLVER]); + // A function to handle object construction for us, as to make the generateResolve more reusable + const newClass = function newClass() { + return Reflect.construct(Type, arguments); + }; + const resolve = generateResolve(newClass, Type); + return createDisposableResolver(createBuildResolver(Object.assign(Object.assign({}, opts), { resolve }))); +} +exports.asClass = asClass; +/** + * Resolves to the specified registration. + */ +function aliasTo(name) { + return { + resolve(container) { + return container.resolve(name); + }, + }; +} +exports.aliasTo = aliasTo; +/** + * Given an options object, creates a fluid interface + * to manage it. + * + * @param {*} obj + * The object to return. + * + * @return {object} + * The interface. + */ +function createBuildResolver(obj) { + function setLifetime(value) { + return createBuildResolver(Object.assign(Object.assign({}, this), { lifetime: value })); + } + function setInjectionMode(value) { + return createBuildResolver(Object.assign(Object.assign({}, this), { injectionMode: value })); + } + function inject(injector) { + return createBuildResolver(Object.assign(Object.assign({}, this), { injector })); + } + return updateResolver(obj, { + setLifetime, + inject, + transient: partial(setLifetime, lifetime_1.Lifetime.TRANSIENT), + scoped: partial(setLifetime, lifetime_1.Lifetime.SCOPED), + singleton: partial(setLifetime, lifetime_1.Lifetime.SINGLETON), + setInjectionMode, + proxy: partial(setInjectionMode, injection_mode_1.InjectionMode.PROXY), + classic: partial(setInjectionMode, injection_mode_1.InjectionMode.CLASSIC), + }); +} +exports.createBuildResolver = createBuildResolver; +/** + * Given a resolver, returns an object with methods to manage the disposer + * function. + * @param obj + */ +function createDisposableResolver(obj) { + function disposer(dispose) { + return createDisposableResolver(Object.assign(Object.assign({}, this), { dispose })); + } + return updateResolver(obj, { + disposer, + }); +} +exports.createDisposableResolver = createDisposableResolver; +/** + * Partially apply arguments to the given function. + */ +function partial(fn, arg1) { + return function partiallyApplied() { + return fn.call(this, arg1); + }; +} +/** + * Makes an options object based on defaults. + * + * @param {object} defaults + * Default options. + * + * @param {...} rest + * The input to check and possibly assign to the resulting object + * + * @return {object} + */ +function makeOptions(defaults, ...rest) { + return Object.assign({}, defaults, ...rest); +} +/** + * Creates a new resolver with props merged from both. + * + * @param source + * @param target + */ +function updateResolver(source, target) { + const result = Object.assign(Object.assign({}, source), target); + return result; +} +/** + * Returns a wrapped `resolve` function that provides values + * from the injector and defers to `container.resolve`. + * + * @param {AwilixContainer} container + * @param {Object} locals + * @return {Function} + */ +function wrapWithLocals(container, locals) { + return function wrappedResolve(name, resolveOpts) { + if (name in locals) { + return locals[name]; + } + return container.resolve(name, resolveOpts); + }; +} +/** + * Returns a new Proxy that checks the result from `injector` + * for values before delegating to the actual container. + * + * @param {Object} cradle + * @param {Function} injector + * @return {Proxy} + */ +function createInjectorProxy(container, injector) { + const locals = injector(container); + const allKeys = (0, utils_1.uniq)([ + ...Reflect.ownKeys(container.cradle), + ...Reflect.ownKeys(locals), + ]); + // TODO: Lots of duplication here from the container proxy. + // Need to refactor. + const proxy = new Proxy({}, { + /** + * Resolves the value by first checking the locals, then the container. + */ + get(target, name) { + if (name === Symbol.iterator) { + return function* iterateRegistrationsAndLocals() { + for (const prop in container.cradle) { + yield prop; + } + for (const prop in locals) { + yield prop; + } + }; + } + if (name in locals) { + return locals[name]; + } + return container.resolve(name); + }, + /** + * Used for `Object.keys`. + */ + ownKeys() { + return allKeys; + }, + /** + * Used for `Object.keys`. + */ + getOwnPropertyDescriptor(target, key) { + if (allKeys.indexOf(key) > -1) { + return { + enumerable: true, + configurable: true, + }; + } + return undefined; + }, + }); + return proxy; +} +/** + * Returns a resolve function used to construct the dependency graph + * + * @this {Registration} + * The `this` context is a resolver. + * + * @param {Function} fn + * The function to construct + * + * @param {Function} dependencyParseTarget + * The function to parse for the dependencies of the construction target + * + * @param {boolean} isFunction + * Is the resolution target an actual function or a mask for a constructor? + * + * @return {Function} + * The function used for dependency resolution + */ +function generateResolve(fn, dependencyParseTarget) { + // If the function used for dependency parsing is falsy, use the supplied function + if (!dependencyParseTarget) { + dependencyParseTarget = fn; + } + // Parse out the dependencies + // NOTE: we do this regardless of whether PROXY is used or not, + // because if this fails, we want it to fail early (at startup) rather + // than at resolution time. + const dependencies = parseDependencies(dependencyParseTarget); + // Use a regular function instead of an arrow function to facilitate binding to the resolver. + return function resolve(container) { + // Because the container holds a global reolutionMode we need to determine it in the proper order of precedence: + // resolver -> container -> default value + const injectionMode = this.injectionMode || + container.options.injectionMode || + injection_mode_1.InjectionMode.PROXY; + if (injectionMode !== injection_mode_1.InjectionMode.CLASSIC) { + // If we have a custom injector, we need to wrap the cradle. + const cradle = this.injector + ? createInjectorProxy(container, this.injector) + : container.cradle; + // Return the target injected with the cradle + return fn(cradle); + } + // We have dependencies so we need to resolve them manually + if (dependencies.length > 0) { + const resolve = this.injector + ? wrapWithLocals(container, this.injector(container)) + : container.resolve; + const children = dependencies.map((p) => resolve(p.name, { allowUnregistered: p.optional })); + return fn(...children); + } + return fn(); + }; +} +/** + * Parses the dependencies from the given function. + * If it's a class that extends another class, and it does + * not have a defined constructor, attempt to parse it's super constructor. + */ +function parseDependencies(fn) { + const result = (0, param_parser_1.parseParameterList)(fn.toString()); + if (!result) { + // No defined constructor for a class, check if there is a parent + // we can parse. + const parent = Object.getPrototypeOf(fn); + if (typeof parent === 'function' && parent !== Function.prototype) { + // Try to parse the parent + return parseDependencies(parent); + } + return []; + } + return result; +} +//# sourceMappingURL=resolvers.js.map \ No newline at end of file diff --git a/node_modules/awilix/lib/resolvers.js.map b/node_modules/awilix/lib/resolvers.js.map new file mode 100644 index 0000000..db8501f --- /dev/null +++ b/node_modules/awilix/lib/resolvers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"resolvers.js","sourceRoot":"","sources":["../src/resolvers.ts"],"names":[],"mappings":";;;AAAA,yCAAmD;AACnD,qDAAmE;AACnE,mCAA0C;AAC1C,iDAA8D;AAC9D,qCAA0C;AAG1C;;;GAGG;AACU,QAAA,QAAQ,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAA;AAsGxD;;;;;;;;;;;GAWG;AACH,SAAgB,OAAO,CAAI,KAAQ;IACjC,OAAO;QACL,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACrB,CAAA;AACH,CAAC;AAJD,0BAIC;AAED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,UAAU,CACxB,EAAwB,EACxB,IAA8B;IAE9B,IAAI,CAAC,IAAA,kBAAU,EAAC,EAAE,CAAC,EAAE;QACnB,MAAM,IAAI,wBAAe,CAAC,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,CAAC,CAAA;KAC9D;IAED,MAAM,QAAQ,GAAG;QACf,QAAQ,EAAE,mBAAQ,CAAC,SAAS;KAC7B,CAAA;IAED,IAAI,GAAG,WAAW,CAAC,QAAQ,EAAE,IAAI,EAAG,EAAU,CAAC,gBAAQ,CAAC,CAAC,CAAA;IAEzD,MAAM,OAAO,GAAG,eAAe,CAAC,EAAE,CAAC,CAAA;IACnC,IAAI,MAAM,mBACR,OAAO,IACJ,IAAI,CACR,CAAA;IAED,OAAO,wBAAwB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAA;AAC9D,CAAC;AArBD,gCAqBC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,OAAO,CACrB,IAAoB,EACpB,IAA8B;IAE9B,IAAI,CAAC,IAAA,kBAAU,EAAC,IAAI,CAAC,EAAE;QACrB,MAAM,IAAI,wBAAe,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;KAC5D;IAED,MAAM,QAAQ,GAAG;QACf,QAAQ,EAAE,mBAAQ,CAAC,SAAS;KAC7B,CAAA;IAED,IAAI,GAAG,WAAW,CAAC,QAAQ,EAAE,IAAI,EAAG,IAAY,CAAC,gBAAQ,CAAC,CAAC,CAAA;IAE3D,gGAAgG;IAChG,MAAM,QAAQ,GAAG,SAAS,QAAQ;QAChC,OAAO,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;IAC3C,CAAC,CAAA;IAED,MAAM,OAAO,GAAG,eAAe,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;IAC/C,OAAO,wBAAwB,CAC7B,mBAAmB,iCACd,IAAI,KACP,OAAO,IACP,CACH,CAAA;AACH,CAAC;AA1BD,0BA0BC;AAED;;GAEG;AACH,SAAgB,OAAO,CAAI,IAAY;IACrC,OAAO;QACL,OAAO,CAAC,SAAS;YACf,OAAO,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QAChC,CAAC;KACF,CAAA;AACH,CAAC;AAND,0BAMC;AAED;;;;;;;;;GASG;AACH,SAAgB,mBAAmB,CACjC,GAAM;IAEN,SAAS,WAAW,CAAY,KAAmB;QACjD,OAAO,mBAAmB,iCACrB,IAAI,KACP,QAAQ,EAAE,KAAK,IACf,CAAA;IACJ,CAAC;IAED,SAAS,gBAAgB,CAAY,KAAwB;QAC3D,OAAO,mBAAmB,iCACrB,IAAI,KACP,aAAa,EAAE,KAAK,IACpB,CAAA;IACJ,CAAC;IAED,SAAS,MAAM,CAAY,QAA0B;QACnD,OAAO,mBAAmB,iCACrB,IAAI,KACP,QAAQ,IACR,CAAA;IACJ,CAAC;IAED,OAAO,cAAc,CAAC,GAAG,EAAE;QACzB,WAAW;QACX,MAAM;QACN,SAAS,EAAE,OAAO,CAAC,WAAW,EAAE,mBAAQ,CAAC,SAAS,CAAC;QACnD,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,mBAAQ,CAAC,MAAM,CAAC;QAC7C,SAAS,EAAE,OAAO,CAAC,WAAW,EAAE,mBAAQ,CAAC,SAAS,CAAC;QACnD,gBAAgB;QAChB,KAAK,EAAE,OAAO,CAAC,gBAAgB,EAAE,8BAAa,CAAC,KAAK,CAAC;QACrD,OAAO,EAAE,OAAO,CAAC,gBAAgB,EAAE,8BAAa,CAAC,OAAO,CAAC;KAC1D,CAAC,CAAA;AACJ,CAAC;AAlCD,kDAkCC;AAED;;;;GAIG;AACH,SAAgB,wBAAwB,CACtC,GAAM;IAEN,SAAS,QAAQ,CAAY,OAAoB;QAC/C,OAAO,wBAAwB,iCAC1B,IAAI,KACP,OAAO,IACP,CAAA;IACJ,CAAC;IAED,OAAO,cAAc,CAAC,GAAG,EAAE;QACzB,QAAQ;KACT,CAAC,CAAA;AACJ,CAAC;AAbD,4DAaC;AAED;;GAEG;AACH,SAAS,OAAO,CAAQ,EAAmB,EAAE,IAAQ;IACnD,OAAO,SAAS,gBAAgB;QAC9B,OAAO,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAC5B,CAAC,CAAA;AACH,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAS,WAAW,CAAO,QAAW,EAAE,GAAG,IAA0B;IACnE,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAU,CAAA;AACtD,CAAC;AAED;;;;;GAKG;AACH,SAAS,cAAc,CACrB,MAAS,EACT,MAAS;IAET,MAAM,MAAM,mCACN,MAAc,GACd,MAAc,CACnB,CAAA;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,cAAc,CACrB,SAA6B,EAC7B,MAAW;IAEX,OAAO,SAAS,cAAc,CAAC,IAAY,EAAE,WAA2B;QACtE,IAAI,IAAI,IAAI,MAAM,EAAE;YAClB,OAAO,MAAM,CAAC,IAAI,CAAC,CAAA;SACpB;QAED,OAAO,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;IAC7C,CAAC,CAAA;AACH,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,mBAAmB,CAC1B,SAA6B,EAC7B,QAA0B;IAE1B,MAAM,MAAM,GAAG,QAAQ,CAAC,SAAS,CAAQ,CAAA;IACzC,MAAM,OAAO,GAAG,IAAA,YAAI,EAAC;QACnB,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;QACpC,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;KAC3B,CAAC,CAAA;IACF,2DAA2D;IAC3D,oBAAoB;IACpB,MAAM,KAAK,GAAG,IAAI,KAAK,CACrB,EAAE,EACF;QACE;;WAEG;QACH,GAAG,CAAC,MAAW,EAAE,IAAqB;YACpC,IAAI,IAAI,KAAK,MAAM,CAAC,QAAQ,EAAE;gBAC5B,OAAO,QAAQ,CAAC,CAAC,6BAA6B;oBAC5C,KAAK,MAAM,IAAI,IAAI,SAAS,CAAC,MAAM,EAAE;wBACnC,MAAM,IAAI,CAAA;qBACX;oBACD,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE;wBACzB,MAAM,IAAI,CAAA;qBACX;gBACH,CAAC,CAAA;aACF;YACD,IAAI,IAAI,IAAI,MAAM,EAAE;gBAClB,OAAO,MAAM,CAAC,IAAI,CAAC,CAAA;aACpB;YACD,OAAO,SAAS,CAAC,OAAO,CAAC,IAAc,CAAC,CAAA;QAC1C,CAAC;QAED;;WAEG;QACH,OAAO;YACL,OAAO,OAAO,CAAA;QAChB,CAAC;QAED;;WAEG;QACH,wBAAwB,CAAC,MAAW,EAAE,GAAW;YAC/C,IAAI,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE;gBAC7B,OAAO;oBACL,UAAU,EAAE,IAAI;oBAChB,YAAY,EAAE,IAAI;iBACnB,CAAA;aACF;YAED,OAAO,SAAS,CAAA;QAClB,CAAC;KACF,CACF,CAAA;IAED,OAAO,KAAK,CAAA;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAS,eAAe,CAAC,EAAY,EAAE,qBAAgC;IACrE,kFAAkF;IAClF,IAAI,CAAC,qBAAqB,EAAE;QAC1B,qBAAqB,GAAG,EAAE,CAAA;KAC3B;IAED,6BAA6B;IAC7B,+DAA+D;IAC/D,sEAAsE;IACtE,2BAA2B;IAC3B,MAAM,YAAY,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,CAAA;IAE7D,6FAA6F;IAC7F,OAAO,SAAS,OAAO,CAErB,SAA6B;QAE7B,gHAAgH;QAChH,yCAAyC;QACzC,MAAM,aAAa,GACjB,IAAI,CAAC,aAAa;YAClB,SAAS,CAAC,OAAO,CAAC,aAAa;YAC/B,8BAAa,CAAC,KAAK,CAAA;QAErB,IAAI,aAAa,KAAK,8BAAa,CAAC,OAAO,EAAE;YAC3C,4DAA4D;YAC5D,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ;gBAC1B,CAAC,CAAC,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC;gBAC/C,CAAC,CAAC,SAAS,CAAC,MAAM,CAAA;YAEpB,6CAA6C;YAC7C,OAAO,EAAE,CAAC,MAAM,CAAC,CAAA;SAClB;QAED,2DAA2D;QAC3D,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;YAC3B,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ;gBAC3B,CAAC,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;gBACrD,CAAC,CAAC,SAAS,CAAC,OAAO,CAAA;YAErB,MAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACtC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,iBAAiB,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CACnD,CAAA;YACD,OAAO,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAA;SACvB;QAED,OAAO,EAAE,EAAE,CAAA;IACb,CAAC,CAAA;AACH,CAAC;AAED;;;;GAIG;AACH,SAAS,iBAAiB,CAAC,EAAY;IACrC,MAAM,MAAM,GAAG,IAAA,iCAAkB,EAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;IAChD,IAAI,CAAC,MAAM,EAAE;QACX,iEAAiE;QACjE,gBAAgB;QAChB,MAAM,MAAM,GAAG,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC,CAAA;QACxC,IAAI,OAAO,MAAM,KAAK,UAAU,IAAI,MAAM,KAAK,QAAQ,CAAC,SAAS,EAAE;YACjE,0BAA0B;YAC1B,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAA;SACjC;QACD,OAAO,EAAE,CAAA;KACV;IAED,OAAO,MAAM,CAAA;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/awilix/lib/utils.d.ts b/node_modules/awilix/lib/utils.d.ts new file mode 100644 index 0000000..132f101 --- /dev/null +++ b/node_modules/awilix/lib/utils.d.ts @@ -0,0 +1,60 @@ +import { Constructor } from './resolvers'; +/** + * Quick flatten utility to flatten a 2-dimensional array. + * + * @param {Array>} array + * The array to flatten. + * + * @return {Array} + * The flattened array. + */ +export declare function flatten(array: Array>): Array; +/** + * Creates a { name: value } object if the input isn't already in that format. + * + * @param {string|object} name + * Either a string or an object. + * + * @param {*} value + * The value, only used if name is not an object. + * + * @return {object} + */ +export declare function nameValueToObject(name: string | symbol | object, value?: any): Record; +/** + * Returns the last item in the array. + * + * @param {*[]} arr + * The array. + * + * @return {*} + * The last element. + */ +export declare function last(arr: Array): T; +/** + * Determines if the given function is a class. + * + * @param {Function} fn + * @return {boolean} + */ +export declare function isClass(fn: Function | Constructor): boolean; +/** + * Determines if the given value is a function. + * + * @param {Any} val + * Any value to check if it's a function. + * + * @return {boolean} + * true if the value is a function, false otherwise. + */ +export declare function isFunction(val: any): boolean; +/** + * Returns the unique items in the array. + * + * @param {Array} + * The array to remove dupes from. + * + * @return {Array} + * The deduped array. + */ +export declare function uniq(arr: Array): Array; diff --git a/node_modules/awilix/lib/utils.js b/node_modules/awilix/lib/utils.js new file mode 100644 index 0000000..6280f78 --- /dev/null +++ b/node_modules/awilix/lib/utils.js @@ -0,0 +1,108 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.uniq = exports.isFunction = exports.isClass = exports.last = exports.nameValueToObject = exports.flatten = void 0; +const function_tokenizer_1 = require("./function-tokenizer"); +/** + * Quick flatten utility to flatten a 2-dimensional array. + * + * @param {Array>} array + * The array to flatten. + * + * @return {Array} + * The flattened array. + */ +function flatten(array) { + const result = []; + array.forEach((arr) => { + arr.forEach((item) => { + result.push(item); + }); + }); + return result; +} +exports.flatten = flatten; +/** + * Creates a { name: value } object if the input isn't already in that format. + * + * @param {string|object} name + * Either a string or an object. + * + * @param {*} value + * The value, only used if name is not an object. + * + * @return {object} + */ +function nameValueToObject(name, value) { + let obj = name; + if (typeof obj === 'string' || typeof obj === 'symbol') { + return { [name]: value }; + } + return obj; +} +exports.nameValueToObject = nameValueToObject; +/** + * Returns the last item in the array. + * + * @param {*[]} arr + * The array. + * + * @return {*} + * The last element. + */ +function last(arr) { + return arr[arr.length - 1]; +} +exports.last = last; +/** + * Determines if the given function is a class. + * + * @param {Function} fn + * @return {boolean} + */ +function isClass(fn) { + /*tslint:disable-next-line*/ + if (typeof fn !== 'function') { + return false; + } + // Should only need 2 tokens. + const tokenizer = (0, function_tokenizer_1.createTokenizer)(fn.toString()); + const first = tokenizer.next(); + if (first.type === 'class') { + return true; + } + const second = tokenizer.next(); + if (first.type === 'function' && second.value) { + if (second.value[0] === second.value[0].toUpperCase()) { + return true; + } + } + return false; +} +exports.isClass = isClass; +/** + * Determines if the given value is a function. + * + * @param {Any} val + * Any value to check if it's a function. + * + * @return {boolean} + * true if the value is a function, false otherwise. + */ +function isFunction(val) { + return typeof val === 'function'; +} +exports.isFunction = isFunction; +/** + * Returns the unique items in the array. + * + * @param {Array} + * The array to remove dupes from. + * + * @return {Array} + * The deduped array. + */ +function uniq(arr) { + return Array.from(new Set(arr)); +} +exports.uniq = uniq; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/awilix/lib/utils.js.map b/node_modules/awilix/lib/utils.js.map new file mode 100644 index 0000000..3b5dac6 --- /dev/null +++ b/node_modules/awilix/lib/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAA,6DAAsD;AAGtD;;;;;;;;GAQG;AACH,SAAgB,OAAO,CAAI,KAAsB;IAC/C,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACpB,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACnB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACnB,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC;AATD,0BASC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,iBAAiB,CAC/B,IAA8B,EAC9B,KAAW;IAEX,IAAI,GAAG,GAAG,IAAI,CAAA;IACd,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACtD,OAAO,EAAE,CAAC,IAAW,CAAC,EAAE,KAAK,EAAE,CAAA;KAChC;IAED,OAAO,GAAG,CAAA;AACZ,CAAC;AAVD,8CAUC;AAED;;;;;;;;GAQG;AACH,SAAgB,IAAI,CAAI,GAAa;IACnC,OAAO,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;AAC5B,CAAC;AAFD,oBAEC;AAED;;;;;GAKG;AACH,SAAgB,OAAO,CAAC,EAA+B;IACrD,4BAA4B;IAC5B,IAAI,OAAO,EAAE,KAAK,UAAU,EAAE;QAC5B,OAAO,KAAK,CAAA;KACb;IAED,6BAA6B;IAC7B,MAAM,SAAS,GAAG,IAAA,oCAAe,EAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;IAChD,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,EAAE,CAAA;IAC9B,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,EAAE;QAC1B,OAAO,IAAI,CAAA;KACZ;IAED,MAAM,MAAM,GAAG,SAAS,CAAC,IAAI,EAAE,CAAA;IAC/B,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,IAAI,MAAM,CAAC,KAAK,EAAE;QAC7C,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE;YACrD,OAAO,IAAI,CAAA;SACZ;KACF;IAED,OAAO,KAAK,CAAA;AACd,CAAC;AArBD,0BAqBC;AAED;;;;;;;;GAQG;AACH,SAAgB,UAAU,CAAC,GAAQ;IACjC,OAAO,OAAO,GAAG,KAAK,UAAU,CAAA;AAClC,CAAC;AAFD,gCAEC;AAED;;;;;;;;GAQG;AACH,SAAgB,IAAI,CAAI,GAAa;IACnC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;AACjC,CAAC;AAFD,oBAEC"} \ No newline at end of file diff --git a/node_modules/awilix/package.json b/node_modules/awilix/package.json new file mode 100644 index 0000000..5774cd0 --- /dev/null +++ b/node_modules/awilix/package.json @@ -0,0 +1,142 @@ +{ + "name": "awilix", + "version": "8.0.1", + "description": "Extremely powerful dependency injection container.", + "main": "lib/awilix.js", + "module": "lib/awilix.module.mjs", + "jsnext:main": "lib/awilix.module.mjs", + "browser": "lib/awilix.browser.js", + "umd:main": "lib/awilix.umd.js", + "react-native": "lib/awilix.browser.js", + "typings": "lib/awilix.d.ts", + "engines": { + "node": ">=12.0.0" + }, + "scripts": { + "build": "rimraf lib && tsc -p tsconfig.build.json && rollup -c", + "check": "tsc -p tsconfig.json --noEmit --pretty", + "test": "npm run check && jest", + "lint": "npm run check && tslint --project tsconfig.json --fix \"{src,examples}/**/*.ts\" && prettier --write \"{src,examples}/**/*.{ts,js}\"", + "cover": "npm run test -- --coverage", + "publish:pre": "npm run lint && npm run build && npm run cover", + "publish:post": "npm publish && git push --follow-tags", + "release:prerelease": "npm run publish:pre && npm version prerelease && npm run publish:post", + "release:patch": "npm run publish:pre && npm version patch && npm run publish:post", + "release:minor": "npm run publish:pre && npm version minor && npm run publish:post", + "release:major": "npm run publish:pre && npm version major && npm run publish:post", + "prepare": "husky install" + }, + "files": [ + "lib", + "LICENSE.md", + "README.md" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/jeffijoe/awilix.git" + }, + "keywords": [ + "dependency-injection", + "di", + "container", + "soc", + "service-locator" + ], + "author": "Jeff Hansen ", + "license": "MIT", + "bugs": { + "url": "https://github.com/jeffijoe/awilix/issues" + }, + "homepage": "https://github.com/jeffijoe/awilix#readme", + "devDependencies": { + "@babel/core": "^7.21.4", + "@babel/plugin-transform-runtime": "^7.21.4", + "@babel/preset-env": "^7.21.4", + "@babel/runtime": "^7.21.0", + "@types/jest": "^29.5.0", + "@types/node": "^18.15.11", + "babel-jest": "^29.5.0", + "husky": "^8.0.3", + "istanbul": "^0.4.5", + "jest": "^29.5.0", + "lint-staged": "^13.2.0", + "prettier": "^2.8.7", + "rimraf": "^4.4.1", + "rollup": "^3.20.2", + "rollup-plugin-commonjs": "^10.1.0", + "rollup-plugin-copy": "^3.4.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-replace": "^2.2.0", + "rollup-plugin-typescript2": "^0.34.1", + "smid": "^0.1.1", + "ts-jest": "^29.1.0", + "tslib": "^2.5.0", + "tslint": "^6.1.3", + "tslint-config-prettier": "^1.18.0", + "tslint-config-standard": "^9.0.0", + "typescript": "^5.0.3" + }, + "dependencies": { + "camel-case": "^4.1.2", + "fast-glob": "^3.2.12" + }, + "lint-staged": { + "*.ts": [ + "tslint --project tsconfig.json --fix", + "prettier --write" + ] + }, + "prettier": { + "semi": false, + "singleQuote": true + }, + "babel": { + "presets": [ + [ + "@babel/preset-env", + { + "targets": { + "node": "14.0.0" + } + } + ] + ], + "plugins": [ + "@babel/plugin-transform-runtime" + ] + }, + "typesync": { + "ignorePackages": [ + "@babel/preset-env", + "@babel/core", + "@babel/plugin-transform-runtime", + "prettier", + "rimraf", + "istanbul" + ] + }, + "jest": { + "testRegex": "(/__tests__/.*\\.(test|spec))\\.(ts|tsx|js)$", + "testEnvironment": "node", + "coveragePathIgnorePatterns": [ + "/node_modules/", + "__tests__", + "lib", + "src/load-module-native.js" + ], + "moduleFileExtensions": [ + "ts", + "tsx", + "js" + ], + "transform": { + "^.+\\.tsx?$": [ + "ts-jest", + { + "useESM": true + } + ], + "^.+\\.m?jsx?$": "babel-jest" + } + } +} diff --git a/node_modules/braces/LICENSE b/node_modules/braces/LICENSE new file mode 100644 index 0000000..9af4a67 --- /dev/null +++ b/node_modules/braces/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-present, Jon Schlinkert. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/braces/README.md b/node_modules/braces/README.md new file mode 100644 index 0000000..f59dd60 --- /dev/null +++ b/node_modules/braces/README.md @@ -0,0 +1,586 @@ +# braces [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/braces.svg?style=flat)](https://www.npmjs.com/package/braces) [![NPM monthly downloads](https://img.shields.io/npm/dm/braces.svg?style=flat)](https://npmjs.org/package/braces) [![NPM total downloads](https://img.shields.io/npm/dt/braces.svg?style=flat)](https://npmjs.org/package/braces) [![Linux Build Status](https://img.shields.io/travis/micromatch/braces.svg?style=flat&label=Travis)](https://travis-ci.org/micromatch/braces) + +> Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed. + +Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. + +## Install + +Install with [npm](https://www.npmjs.com/): + +```sh +$ npm install --save braces +``` + +## v3.0.0 Released!! + +See the [changelog](CHANGELOG.md) for details. + +## Why use braces? + +Brace patterns make globs more powerful by adding the ability to match specific ranges and sequences of characters. + +- **Accurate** - complete support for the [Bash 4.3 Brace Expansion](www.gnu.org/software/bash/) specification (passes all of the Bash braces tests) +- **[fast and performant](#benchmarks)** - Starts fast, runs fast and [scales well](#performance) as patterns increase in complexity. +- **Organized code base** - The parser and compiler are easy to maintain and update when edge cases crop up. +- **Well-tested** - Thousands of test assertions, and passes all of the Bash, minimatch, and [brace-expansion](https://github.com/juliangruber/brace-expansion) unit tests (as of the date this was written). +- **Safer** - You shouldn't have to worry about users defining aggressive or malicious brace patterns that can break your application. Braces takes measures to prevent malicious regex that can be used for DDoS attacks (see [catastrophic backtracking](https://www.regular-expressions.info/catastrophic.html)). +- [Supports lists](#lists) - (aka "sets") `a/{b,c}/d` => `['a/b/d', 'a/c/d']` +- [Supports sequences](#sequences) - (aka "ranges") `{01..03}` => `['01', '02', '03']` +- [Supports steps](#steps) - (aka "increments") `{2..10..2}` => `['2', '4', '6', '8', '10']` +- [Supports escaping](#escaping) - To prevent evaluation of special characters. + +## Usage + +The main export is a function that takes one or more brace `patterns` and `options`. + +```js +const braces = require('braces'); +// braces(patterns[, options]); + +console.log(braces(['{01..05}', '{a..e}'])); +//=> ['(0[1-5])', '([a-e])'] + +console.log(braces(['{01..05}', '{a..e}'], { expand: true })); +//=> ['01', '02', '03', '04', '05', 'a', 'b', 'c', 'd', 'e'] +``` + +### Brace Expansion vs. Compilation + +By default, brace patterns are compiled into strings that are optimized for creating regular expressions and matching. + +**Compiled** + +```js +console.log(braces('a/{x,y,z}/b')); +//=> ['a/(x|y|z)/b'] +console.log(braces(['a/{01..20}/b', 'a/{1..5}/b'])); +//=> [ 'a/(0[1-9]|1[0-9]|20)/b', 'a/([1-5])/b' ] +``` + +**Expanded** + +Enable brace expansion by setting the `expand` option to true, or by using [braces.expand()](#expand) (returns an array similar to what you'd expect from Bash, or `echo {1..5}`, or [minimatch](https://github.com/isaacs/minimatch)): + +```js +console.log(braces('a/{x,y,z}/b', { expand: true })); +//=> ['a/x/b', 'a/y/b', 'a/z/b'] + +console.log(braces.expand('{01..10}')); +//=> ['01','02','03','04','05','06','07','08','09','10'] +``` + +### Lists + +Expand lists (like Bash "sets"): + +```js +console.log(braces('a/{foo,bar,baz}/*.js')); +//=> ['a/(foo|bar|baz)/*.js'] + +console.log(braces.expand('a/{foo,bar,baz}/*.js')); +//=> ['a/foo/*.js', 'a/bar/*.js', 'a/baz/*.js'] +``` + +### Sequences + +Expand ranges of characters (like Bash "sequences"): + +```js +console.log(braces.expand('{1..3}')); // ['1', '2', '3'] +console.log(braces.expand('a/{1..3}/b')); // ['a/1/b', 'a/2/b', 'a/3/b'] +console.log(braces('{a..c}', { expand: true })); // ['a', 'b', 'c'] +console.log(braces('foo/{a..c}', { expand: true })); // ['foo/a', 'foo/b', 'foo/c'] + +// supports zero-padded ranges +console.log(braces('a/{01..03}/b')); //=> ['a/(0[1-3])/b'] +console.log(braces('a/{001..300}/b')); //=> ['a/(0{2}[1-9]|0[1-9][0-9]|[12][0-9]{2}|300)/b'] +``` + +See [fill-range](https://github.com/jonschlinkert/fill-range) for all available range-expansion options. + +### Steppped ranges + +Steps, or increments, may be used with ranges: + +```js +console.log(braces.expand('{2..10..2}')); +//=> ['2', '4', '6', '8', '10'] + +console.log(braces('{2..10..2}')); +//=> ['(2|4|6|8|10)'] +``` + +When the [.optimize](#optimize) method is used, or [options.optimize](#optionsoptimize) is set to true, sequences are passed to [to-regex-range](https://github.com/jonschlinkert/to-regex-range) for expansion. + +### Nesting + +Brace patterns may be nested. The results of each expanded string are not sorted, and left to right order is preserved. + +**"Expanded" braces** + +```js +console.log(braces.expand('a{b,c,/{x,y}}/e')); +//=> ['ab/e', 'ac/e', 'a/x/e', 'a/y/e'] + +console.log(braces.expand('a/{x,{1..5},y}/c')); +//=> ['a/x/c', 'a/1/c', 'a/2/c', 'a/3/c', 'a/4/c', 'a/5/c', 'a/y/c'] +``` + +**"Optimized" braces** + +```js +console.log(braces('a{b,c,/{x,y}}/e')); +//=> ['a(b|c|/(x|y))/e'] + +console.log(braces('a/{x,{1..5},y}/c')); +//=> ['a/(x|([1-5])|y)/c'] +``` + +### Escaping + +**Escaping braces** + +A brace pattern will not be expanded or evaluted if _either the opening or closing brace is escaped_: + +```js +console.log(braces.expand('a\\{d,c,b}e')); +//=> ['a{d,c,b}e'] + +console.log(braces.expand('a{d,c,b\\}e')); +//=> ['a{d,c,b}e'] +``` + +**Escaping commas** + +Commas inside braces may also be escaped: + +```js +console.log(braces.expand('a{b\\,c}d')); +//=> ['a{b,c}d'] + +console.log(braces.expand('a{d\\,c,b}e')); +//=> ['ad,ce', 'abe'] +``` + +**Single items** + +Following bash conventions, a brace pattern is also not expanded when it contains a single character: + +```js +console.log(braces.expand('a{b}c')); +//=> ['a{b}c'] +``` + +## Options + +### options.maxLength + +**Type**: `Number` + +**Default**: `10,000` + +**Description**: Limit the length of the input string. Useful when the input string is generated or your application allows users to pass a string, et cetera. + +```js +console.log(braces('a/{b,c}/d', { maxLength: 3 })); //=> throws an error +``` + +### options.expand + +**Type**: `Boolean` + +**Default**: `undefined` + +**Description**: Generate an "expanded" brace pattern (alternatively you can use the `braces.expand()` method, which does the same thing). + +```js +console.log(braces('a/{b,c}/d', { expand: true })); +//=> [ 'a/b/d', 'a/c/d' ] +``` + +### options.nodupes + +**Type**: `Boolean` + +**Default**: `undefined` + +**Description**: Remove duplicates from the returned array. + +### options.rangeLimit + +**Type**: `Number` + +**Default**: `1000` + +**Description**: To prevent malicious patterns from being passed by users, an error is thrown when `braces.expand()` is used or `options.expand` is true and the generated range will exceed the `rangeLimit`. + +You can customize `options.rangeLimit` or set it to `Inifinity` to disable this altogether. + +**Examples** + +```js +// pattern exceeds the "rangeLimit", so it's optimized automatically +console.log(braces.expand('{1..1000}')); +//=> ['([1-9]|[1-9][0-9]{1,2}|1000)'] + +// pattern does not exceed "rangeLimit", so it's NOT optimized +console.log(braces.expand('{1..100}')); +//=> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', '100'] +``` + +### options.transform + +**Type**: `Function` + +**Default**: `undefined` + +**Description**: Customize range expansion. + +**Example: Transforming non-numeric values** + +```js +const alpha = braces.expand('x/{a..e}/y', { + transform(value, index) { + // When non-numeric values are passed, "value" is a character code. + return 'foo/' + String.fromCharCode(value) + '-' + index; + }, +}); +console.log(alpha); +//=> [ 'x/foo/a-0/y', 'x/foo/b-1/y', 'x/foo/c-2/y', 'x/foo/d-3/y', 'x/foo/e-4/y' ] +``` + +**Example: Transforming numeric values** + +```js +const numeric = braces.expand('{1..5}', { + transform(value) { + // when numeric values are passed, "value" is a number + return 'foo/' + value * 2; + }, +}); +console.log(numeric); +//=> [ 'foo/2', 'foo/4', 'foo/6', 'foo/8', 'foo/10' ] +``` + +### options.quantifiers + +**Type**: `Boolean` + +**Default**: `undefined` + +**Description**: In regular expressions, quanitifiers can be used to specify how many times a token can be repeated. For example, `a{1,3}` will match the letter `a` one to three times. + +Unfortunately, regex quantifiers happen to share the same syntax as [Bash lists](#lists) + +The `quantifiers` option tells braces to detect when [regex quantifiers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#quantifiers) are defined in the given pattern, and not to try to expand them as lists. + +**Examples** + +```js +const braces = require('braces'); +console.log(braces('a/b{1,3}/{x,y,z}')); +//=> [ 'a/b(1|3)/(x|y|z)' ] +console.log(braces('a/b{1,3}/{x,y,z}', { quantifiers: true })); +//=> [ 'a/b{1,3}/(x|y|z)' ] +console.log(braces('a/b{1,3}/{x,y,z}', { quantifiers: true, expand: true })); +//=> [ 'a/b{1,3}/x', 'a/b{1,3}/y', 'a/b{1,3}/z' ] +``` + +### options.keepEscaping + +**Type**: `Boolean` + +**Default**: `undefined` + +**Description**: Do not strip backslashes that were used for escaping from the result. + +## What is "brace expansion"? + +Brace expansion is a type of parameter expansion that was made popular by unix shells for generating lists of strings, as well as regex-like matching when used alongside wildcards (globs). + +In addition to "expansion", braces are also used for matching. In other words: + +- [brace expansion](#brace-expansion) is for generating new lists +- [brace matching](#brace-matching) is for filtering existing lists + +
+More about brace expansion (click to expand) + +There are two main types of brace expansion: + +1. **lists**: which are defined using comma-separated values inside curly braces: `{a,b,c}` +2. **sequences**: which are defined using a starting value and an ending value, separated by two dots: `a{1..3}b`. Optionally, a third argument may be passed to define a "step" or increment to use: `a{1..100..10}b`. These are also sometimes referred to as "ranges". + +Here are some example brace patterns to illustrate how they work: + +**Sets** + +``` +{a,b,c} => a b c +{a,b,c}{1,2} => a1 a2 b1 b2 c1 c2 +``` + +**Sequences** + +``` +{1..9} => 1 2 3 4 5 6 7 8 9 +{4..-4} => 4 3 2 1 0 -1 -2 -3 -4 +{1..20..3} => 1 4 7 10 13 16 19 +{a..j} => a b c d e f g h i j +{j..a} => j i h g f e d c b a +{a..z..3} => a d g j m p s v y +``` + +**Combination** + +Sets and sequences can be mixed together or used along with any other strings. + +``` +{a,b,c}{1..3} => a1 a2 a3 b1 b2 b3 c1 c2 c3 +foo/{a,b,c}/bar => foo/a/bar foo/b/bar foo/c/bar +``` + +The fact that braces can be "expanded" from relatively simple patterns makes them ideal for quickly generating test fixtures, file paths, and similar use cases. + +## Brace matching + +In addition to _expansion_, brace patterns are also useful for performing regular-expression-like matching. + +For example, the pattern `foo/{1..3}/bar` would match any of following strings: + +``` +foo/1/bar +foo/2/bar +foo/3/bar +``` + +But not: + +``` +baz/1/qux +baz/2/qux +baz/3/qux +``` + +Braces can also be combined with [glob patterns](https://github.com/jonschlinkert/micromatch) to perform more advanced wildcard matching. For example, the pattern `*/{1..3}/*` would match any of following strings: + +``` +foo/1/bar +foo/2/bar +foo/3/bar +baz/1/qux +baz/2/qux +baz/3/qux +``` + +## Brace matching pitfalls + +Although brace patterns offer a user-friendly way of matching ranges or sets of strings, there are also some major disadvantages and potential risks you should be aware of. + +### tldr + +**"brace bombs"** + +- brace expansion can eat up a huge amount of processing resources +- as brace patterns increase _linearly in size_, the system resources required to expand the pattern increase exponentially +- users can accidentally (or intentially) exhaust your system's resources resulting in the equivalent of a DoS attack (bonus: no programming knowledge is required!) + +For a more detailed explanation with examples, see the [geometric complexity](#geometric-complexity) section. + +### The solution + +Jump to the [performance section](#performance) to see how Braces solves this problem in comparison to other libraries. + +### Geometric complexity + +At minimum, brace patterns with sets limited to two elements have quadradic or `O(n^2)` complexity. But the complexity of the algorithm increases exponentially as the number of sets, _and elements per set_, increases, which is `O(n^c)`. + +For example, the following sets demonstrate quadratic (`O(n^2)`) complexity: + +``` +{1,2}{3,4} => (2X2) => 13 14 23 24 +{1,2}{3,4}{5,6} => (2X2X2) => 135 136 145 146 235 236 245 246 +``` + +But add an element to a set, and we get a n-fold Cartesian product with `O(n^c)` complexity: + +``` +{1,2,3}{4,5,6}{7,8,9} => (3X3X3) => 147 148 149 157 158 159 167 168 169 247 248 + 249 257 258 259 267 268 269 347 348 349 357 + 358 359 367 368 369 +``` + +Now, imagine how this complexity grows given that each element is a n-tuple: + +``` +{1..100}{1..100} => (100X100) => 10,000 elements (38.4 kB) +{1..100}{1..100}{1..100} => (100X100X100) => 1,000,000 elements (5.76 MB) +``` + +Although these examples are clearly contrived, they demonstrate how brace patterns can quickly grow out of control. + +**More information** + +Interested in learning more about brace expansion? + +- [linuxjournal/bash-brace-expansion](http://www.linuxjournal.com/content/bash-brace-expansion) +- [rosettacode/Brace_expansion](https://rosettacode.org/wiki/Brace_expansion) +- [cartesian product](https://en.wikipedia.org/wiki/Cartesian_product) + +
+ +## Performance + +Braces is not only screaming fast, it's also more accurate the other brace expansion libraries. + +### Better algorithms + +Fortunately there is a solution to the ["brace bomb" problem](#brace-matching-pitfalls): _don't expand brace patterns into an array when they're used for matching_. + +Instead, convert the pattern into an optimized regular expression. This is easier said than done, and braces is the only library that does this currently. + +**The proof is in the numbers** + +Minimatch gets exponentially slower as patterns increase in complexity, braces does not. The following results were generated using `braces()` and `minimatch.braceExpand()`, respectively. + +| **Pattern** | **braces** | **[minimatch][]** | +| --------------------------- | ------------------- | ---------------------------- | +| `{1..9007199254740991}`[^1] | `298 B` (5ms 459μs) | N/A (freezes) | +| `{1..1000000000000000}` | `41 B` (1ms 15μs) | N/A (freezes) | +| `{1..100000000000000}` | `40 B` (890μs) | N/A (freezes) | +| `{1..10000000000000}` | `39 B` (2ms 49μs) | N/A (freezes) | +| `{1..1000000000000}` | `38 B` (608μs) | N/A (freezes) | +| `{1..100000000000}` | `37 B` (397μs) | N/A (freezes) | +| `{1..10000000000}` | `35 B` (983μs) | N/A (freezes) | +| `{1..1000000000}` | `34 B` (798μs) | N/A (freezes) | +| `{1..100000000}` | `33 B` (733μs) | N/A (freezes) | +| `{1..10000000}` | `32 B` (5ms 632μs) | `78.89 MB` (16s 388ms 569μs) | +| `{1..1000000}` | `31 B` (1ms 381μs) | `6.89 MB` (1s 496ms 887μs) | +| `{1..100000}` | `30 B` (950μs) | `588.89 kB` (146ms 921μs) | +| `{1..10000}` | `29 B` (1ms 114μs) | `48.89 kB` (14ms 187μs) | +| `{1..1000}` | `28 B` (760μs) | `3.89 kB` (1ms 453μs) | +| `{1..100}` | `22 B` (345μs) | `291 B` (196μs) | +| `{1..10}` | `10 B` (533μs) | `20 B` (37μs) | +| `{1..3}` | `7 B` (190μs) | `5 B` (27μs) | + +### Faster algorithms + +When you need expansion, braces is still much faster. + +_(the following results were generated using `braces.expand()` and `minimatch.braceExpand()`, respectively)_ + +| **Pattern** | **braces** | **[minimatch][]** | +| --------------- | --------------------------- | ---------------------------- | +| `{1..10000000}` | `78.89 MB` (2s 698ms 642μs) | `78.89 MB` (18s 601ms 974μs) | +| `{1..1000000}` | `6.89 MB` (458ms 576μs) | `6.89 MB` (1s 491ms 621μs) | +| `{1..100000}` | `588.89 kB` (20ms 728μs) | `588.89 kB` (156ms 919μs) | +| `{1..10000}` | `48.89 kB` (2ms 202μs) | `48.89 kB` (13ms 641μs) | +| `{1..1000}` | `3.89 kB` (1ms 796μs) | `3.89 kB` (1ms 958μs) | +| `{1..100}` | `291 B` (424μs) | `291 B` (211μs) | +| `{1..10}` | `20 B` (487μs) | `20 B` (72μs) | +| `{1..3}` | `5 B` (166μs) | `5 B` (27μs) | + +If you'd like to run these comparisons yourself, see [test/support/generate.js](test/support/generate.js). + +## Benchmarks + +### Running benchmarks + +Install dev dependencies: + +```bash +npm i -d && npm benchmark +``` + +### Latest results + +Braces is more accurate, without sacrificing performance. + +```bash +● expand - range (expanded) + braces x 53,167 ops/sec ±0.12% (102 runs sampled) + minimatch x 11,378 ops/sec ±0.10% (102 runs sampled) +● expand - range (optimized for regex) + braces x 373,442 ops/sec ±0.04% (100 runs sampled) + minimatch x 3,262 ops/sec ±0.18% (100 runs sampled) +● expand - nested ranges (expanded) + braces x 33,921 ops/sec ±0.09% (99 runs sampled) + minimatch x 10,855 ops/sec ±0.28% (100 runs sampled) +● expand - nested ranges (optimized for regex) + braces x 287,479 ops/sec ±0.52% (98 runs sampled) + minimatch x 3,219 ops/sec ±0.28% (101 runs sampled) +● expand - set (expanded) + braces x 238,243 ops/sec ±0.19% (97 runs sampled) + minimatch x 538,268 ops/sec ±0.31% (96 runs sampled) +● expand - set (optimized for regex) + braces x 321,844 ops/sec ±0.10% (97 runs sampled) + minimatch x 140,600 ops/sec ±0.15% (100 runs sampled) +● expand - nested sets (expanded) + braces x 165,371 ops/sec ±0.42% (96 runs sampled) + minimatch x 337,720 ops/sec ±0.28% (100 runs sampled) +● expand - nested sets (optimized for regex) + braces x 242,948 ops/sec ±0.12% (99 runs sampled) + minimatch x 87,403 ops/sec ±0.79% (96 runs sampled) +``` + +## About + +
+Contributing + +Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). + +
+ +
+Running Tests + +Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: + +```sh +$ npm install && npm test +``` + +
+ +
+Building docs + +_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ + +To generate the readme, run the following command: + +```sh +$ npm install -g verbose/verb#dev verb-generate-readme && verb +``` + +
+ +### Contributors + +| **Commits** | **Contributor** | +| ----------- | ------------------------------------------------------------- | +| 197 | [jonschlinkert](https://github.com/jonschlinkert) | +| 4 | [doowb](https://github.com/doowb) | +| 1 | [es128](https://github.com/es128) | +| 1 | [eush77](https://github.com/eush77) | +| 1 | [hemanth](https://github.com/hemanth) | +| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | + +### Author + +**Jon Schlinkert** + +- [GitHub Profile](https://github.com/jonschlinkert) +- [Twitter Profile](https://twitter.com/jonschlinkert) +- [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) + +### License + +Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). +Released under the [MIT License](LICENSE). + +--- + +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 08, 2019._ diff --git a/node_modules/braces/index.js b/node_modules/braces/index.js new file mode 100644 index 0000000..d222c13 --- /dev/null +++ b/node_modules/braces/index.js @@ -0,0 +1,170 @@ +'use strict'; + +const stringify = require('./lib/stringify'); +const compile = require('./lib/compile'); +const expand = require('./lib/expand'); +const parse = require('./lib/parse'); + +/** + * Expand the given pattern or create a regex-compatible string. + * + * ```js + * const braces = require('braces'); + * console.log(braces('{a,b,c}', { compile: true })); //=> ['(a|b|c)'] + * console.log(braces('{a,b,c}')); //=> ['a', 'b', 'c'] + * ``` + * @param {String} `str` + * @param {Object} `options` + * @return {String} + * @api public + */ + +const braces = (input, options = {}) => { + let output = []; + + if (Array.isArray(input)) { + for (const pattern of input) { + const result = braces.create(pattern, options); + if (Array.isArray(result)) { + output.push(...result); + } else { + output.push(result); + } + } + } else { + output = [].concat(braces.create(input, options)); + } + + if (options && options.expand === true && options.nodupes === true) { + output = [...new Set(output)]; + } + return output; +}; + +/** + * Parse the given `str` with the given `options`. + * + * ```js + * // braces.parse(pattern, [, options]); + * const ast = braces.parse('a/{b,c}/d'); + * console.log(ast); + * ``` + * @param {String} pattern Brace pattern to parse + * @param {Object} options + * @return {Object} Returns an AST + * @api public + */ + +braces.parse = (input, options = {}) => parse(input, options); + +/** + * Creates a braces string from an AST, or an AST node. + * + * ```js + * const braces = require('braces'); + * let ast = braces.parse('foo/{a,b}/bar'); + * console.log(stringify(ast.nodes[2])); //=> '{a,b}' + * ``` + * @param {String} `input` Brace pattern or AST. + * @param {Object} `options` + * @return {Array} Returns an array of expanded values. + * @api public + */ + +braces.stringify = (input, options = {}) => { + if (typeof input === 'string') { + return stringify(braces.parse(input, options), options); + } + return stringify(input, options); +}; + +/** + * Compiles a brace pattern into a regex-compatible, optimized string. + * This method is called by the main [braces](#braces) function by default. + * + * ```js + * const braces = require('braces'); + * console.log(braces.compile('a/{b,c}/d')); + * //=> ['a/(b|c)/d'] + * ``` + * @param {String} `input` Brace pattern or AST. + * @param {Object} `options` + * @return {Array} Returns an array of expanded values. + * @api public + */ + +braces.compile = (input, options = {}) => { + if (typeof input === 'string') { + input = braces.parse(input, options); + } + return compile(input, options); +}; + +/** + * Expands a brace pattern into an array. This method is called by the + * main [braces](#braces) function when `options.expand` is true. Before + * using this method it's recommended that you read the [performance notes](#performance)) + * and advantages of using [.compile](#compile) instead. + * + * ```js + * const braces = require('braces'); + * console.log(braces.expand('a/{b,c}/d')); + * //=> ['a/b/d', 'a/c/d']; + * ``` + * @param {String} `pattern` Brace pattern + * @param {Object} `options` + * @return {Array} Returns an array of expanded values. + * @api public + */ + +braces.expand = (input, options = {}) => { + if (typeof input === 'string') { + input = braces.parse(input, options); + } + + let result = expand(input, options); + + // filter out empty strings if specified + if (options.noempty === true) { + result = result.filter(Boolean); + } + + // filter out duplicates if specified + if (options.nodupes === true) { + result = [...new Set(result)]; + } + + return result; +}; + +/** + * Processes a brace pattern and returns either an expanded array + * (if `options.expand` is true), a highly optimized regex-compatible string. + * This method is called by the main [braces](#braces) function. + * + * ```js + * const braces = require('braces'); + * console.log(braces.create('user-{200..300}/project-{a,b,c}-{1..10}')) + * //=> 'user-(20[0-9]|2[1-9][0-9]|300)/project-(a|b|c)-([1-9]|10)' + * ``` + * @param {String} `pattern` Brace pattern + * @param {Object} `options` + * @return {Array} Returns an array of expanded values. + * @api public + */ + +braces.create = (input, options = {}) => { + if (input === '' || input.length < 3) { + return [input]; + } + + return options.expand !== true + ? braces.compile(input, options) + : braces.expand(input, options); +}; + +/** + * Expose "braces" + */ + +module.exports = braces; diff --git a/node_modules/braces/lib/compile.js b/node_modules/braces/lib/compile.js new file mode 100644 index 0000000..dce69be --- /dev/null +++ b/node_modules/braces/lib/compile.js @@ -0,0 +1,60 @@ +'use strict'; + +const fill = require('fill-range'); +const utils = require('./utils'); + +const compile = (ast, options = {}) => { + const walk = (node, parent = {}) => { + const invalidBlock = utils.isInvalidBrace(parent); + const invalidNode = node.invalid === true && options.escapeInvalid === true; + const invalid = invalidBlock === true || invalidNode === true; + const prefix = options.escapeInvalid === true ? '\\' : ''; + let output = ''; + + if (node.isOpen === true) { + return prefix + node.value; + } + + if (node.isClose === true) { + console.log('node.isClose', prefix, node.value); + return prefix + node.value; + } + + if (node.type === 'open') { + return invalid ? prefix + node.value : '('; + } + + if (node.type === 'close') { + return invalid ? prefix + node.value : ')'; + } + + if (node.type === 'comma') { + return node.prev.type === 'comma' ? '' : invalid ? node.value : '|'; + } + + if (node.value) { + return node.value; + } + + if (node.nodes && node.ranges > 0) { + const args = utils.reduce(node.nodes); + const range = fill(...args, { ...options, wrap: false, toRegex: true, strictZeros: true }); + + if (range.length !== 0) { + return args.length > 1 && range.length > 1 ? `(${range})` : range; + } + } + + if (node.nodes) { + for (const child of node.nodes) { + output += walk(child, node); + } + } + + return output; + }; + + return walk(ast); +}; + +module.exports = compile; diff --git a/node_modules/braces/lib/constants.js b/node_modules/braces/lib/constants.js new file mode 100644 index 0000000..2bb3b88 --- /dev/null +++ b/node_modules/braces/lib/constants.js @@ -0,0 +1,57 @@ +'use strict'; + +module.exports = { + MAX_LENGTH: 10000, + + // Digits + CHAR_0: '0', /* 0 */ + CHAR_9: '9', /* 9 */ + + // Alphabet chars. + CHAR_UPPERCASE_A: 'A', /* A */ + CHAR_LOWERCASE_A: 'a', /* a */ + CHAR_UPPERCASE_Z: 'Z', /* Z */ + CHAR_LOWERCASE_Z: 'z', /* z */ + + CHAR_LEFT_PARENTHESES: '(', /* ( */ + CHAR_RIGHT_PARENTHESES: ')', /* ) */ + + CHAR_ASTERISK: '*', /* * */ + + // Non-alphabetic chars. + CHAR_AMPERSAND: '&', /* & */ + CHAR_AT: '@', /* @ */ + CHAR_BACKSLASH: '\\', /* \ */ + CHAR_BACKTICK: '`', /* ` */ + CHAR_CARRIAGE_RETURN: '\r', /* \r */ + CHAR_CIRCUMFLEX_ACCENT: '^', /* ^ */ + CHAR_COLON: ':', /* : */ + CHAR_COMMA: ',', /* , */ + CHAR_DOLLAR: '$', /* . */ + CHAR_DOT: '.', /* . */ + CHAR_DOUBLE_QUOTE: '"', /* " */ + CHAR_EQUAL: '=', /* = */ + CHAR_EXCLAMATION_MARK: '!', /* ! */ + CHAR_FORM_FEED: '\f', /* \f */ + CHAR_FORWARD_SLASH: '/', /* / */ + CHAR_HASH: '#', /* # */ + CHAR_HYPHEN_MINUS: '-', /* - */ + CHAR_LEFT_ANGLE_BRACKET: '<', /* < */ + CHAR_LEFT_CURLY_BRACE: '{', /* { */ + CHAR_LEFT_SQUARE_BRACKET: '[', /* [ */ + CHAR_LINE_FEED: '\n', /* \n */ + CHAR_NO_BREAK_SPACE: '\u00A0', /* \u00A0 */ + CHAR_PERCENT: '%', /* % */ + CHAR_PLUS: '+', /* + */ + CHAR_QUESTION_MARK: '?', /* ? */ + CHAR_RIGHT_ANGLE_BRACKET: '>', /* > */ + CHAR_RIGHT_CURLY_BRACE: '}', /* } */ + CHAR_RIGHT_SQUARE_BRACKET: ']', /* ] */ + CHAR_SEMICOLON: ';', /* ; */ + CHAR_SINGLE_QUOTE: '\'', /* ' */ + CHAR_SPACE: ' ', /* */ + CHAR_TAB: '\t', /* \t */ + CHAR_UNDERSCORE: '_', /* _ */ + CHAR_VERTICAL_LINE: '|', /* | */ + CHAR_ZERO_WIDTH_NOBREAK_SPACE: '\uFEFF' /* \uFEFF */ +}; diff --git a/node_modules/braces/lib/expand.js b/node_modules/braces/lib/expand.js new file mode 100644 index 0000000..35b2c41 --- /dev/null +++ b/node_modules/braces/lib/expand.js @@ -0,0 +1,113 @@ +'use strict'; + +const fill = require('fill-range'); +const stringify = require('./stringify'); +const utils = require('./utils'); + +const append = (queue = '', stash = '', enclose = false) => { + const result = []; + + queue = [].concat(queue); + stash = [].concat(stash); + + if (!stash.length) return queue; + if (!queue.length) { + return enclose ? utils.flatten(stash).map(ele => `{${ele}}`) : stash; + } + + for (const item of queue) { + if (Array.isArray(item)) { + for (const value of item) { + result.push(append(value, stash, enclose)); + } + } else { + for (let ele of stash) { + if (enclose === true && typeof ele === 'string') ele = `{${ele}}`; + result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele); + } + } + } + return utils.flatten(result); +}; + +const expand = (ast, options = {}) => { + const rangeLimit = options.rangeLimit === undefined ? 1000 : options.rangeLimit; + + const walk = (node, parent = {}) => { + node.queue = []; + + let p = parent; + let q = parent.queue; + + while (p.type !== 'brace' && p.type !== 'root' && p.parent) { + p = p.parent; + q = p.queue; + } + + if (node.invalid || node.dollar) { + q.push(append(q.pop(), stringify(node, options))); + return; + } + + if (node.type === 'brace' && node.invalid !== true && node.nodes.length === 2) { + q.push(append(q.pop(), ['{}'])); + return; + } + + if (node.nodes && node.ranges > 0) { + const args = utils.reduce(node.nodes); + + if (utils.exceedsLimit(...args, options.step, rangeLimit)) { + throw new RangeError('expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.'); + } + + let range = fill(...args, options); + if (range.length === 0) { + range = stringify(node, options); + } + + q.push(append(q.pop(), range)); + node.nodes = []; + return; + } + + const enclose = utils.encloseBrace(node); + let queue = node.queue; + let block = node; + + while (block.type !== 'brace' && block.type !== 'root' && block.parent) { + block = block.parent; + queue = block.queue; + } + + for (let i = 0; i < node.nodes.length; i++) { + const child = node.nodes[i]; + + if (child.type === 'comma' && node.type === 'brace') { + if (i === 1) queue.push(''); + queue.push(''); + continue; + } + + if (child.type === 'close') { + q.push(append(q.pop(), queue, enclose)); + continue; + } + + if (child.value && child.type !== 'open') { + queue.push(append(queue.pop(), child.value)); + continue; + } + + if (child.nodes) { + walk(child, node); + } + } + + return queue; + }; + + return utils.flatten(walk(ast)); +}; + +module.exports = expand; diff --git a/node_modules/braces/lib/parse.js b/node_modules/braces/lib/parse.js new file mode 100644 index 0000000..3a6988e --- /dev/null +++ b/node_modules/braces/lib/parse.js @@ -0,0 +1,331 @@ +'use strict'; + +const stringify = require('./stringify'); + +/** + * Constants + */ + +const { + MAX_LENGTH, + CHAR_BACKSLASH, /* \ */ + CHAR_BACKTICK, /* ` */ + CHAR_COMMA, /* , */ + CHAR_DOT, /* . */ + CHAR_LEFT_PARENTHESES, /* ( */ + CHAR_RIGHT_PARENTHESES, /* ) */ + CHAR_LEFT_CURLY_BRACE, /* { */ + CHAR_RIGHT_CURLY_BRACE, /* } */ + CHAR_LEFT_SQUARE_BRACKET, /* [ */ + CHAR_RIGHT_SQUARE_BRACKET, /* ] */ + CHAR_DOUBLE_QUOTE, /* " */ + CHAR_SINGLE_QUOTE, /* ' */ + CHAR_NO_BREAK_SPACE, + CHAR_ZERO_WIDTH_NOBREAK_SPACE +} = require('./constants'); + +/** + * parse + */ + +const parse = (input, options = {}) => { + if (typeof input !== 'string') { + throw new TypeError('Expected a string'); + } + + const opts = options || {}; + const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; + if (input.length > max) { + throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`); + } + + const ast = { type: 'root', input, nodes: [] }; + const stack = [ast]; + let block = ast; + let prev = ast; + let brackets = 0; + const length = input.length; + let index = 0; + let depth = 0; + let value; + + /** + * Helpers + */ + + const advance = () => input[index++]; + const push = node => { + if (node.type === 'text' && prev.type === 'dot') { + prev.type = 'text'; + } + + if (prev && prev.type === 'text' && node.type === 'text') { + prev.value += node.value; + return; + } + + block.nodes.push(node); + node.parent = block; + node.prev = prev; + prev = node; + return node; + }; + + push({ type: 'bos' }); + + while (index < length) { + block = stack[stack.length - 1]; + value = advance(); + + /** + * Invalid chars + */ + + if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) { + continue; + } + + /** + * Escaped chars + */ + + if (value === CHAR_BACKSLASH) { + push({ type: 'text', value: (options.keepEscaping ? value : '') + advance() }); + continue; + } + + /** + * Right square bracket (literal): ']' + */ + + if (value === CHAR_RIGHT_SQUARE_BRACKET) { + push({ type: 'text', value: '\\' + value }); + continue; + } + + /** + * Left square bracket: '[' + */ + + if (value === CHAR_LEFT_SQUARE_BRACKET) { + brackets++; + + let next; + + while (index < length && (next = advance())) { + value += next; + + if (next === CHAR_LEFT_SQUARE_BRACKET) { + brackets++; + continue; + } + + if (next === CHAR_BACKSLASH) { + value += advance(); + continue; + } + + if (next === CHAR_RIGHT_SQUARE_BRACKET) { + brackets--; + + if (brackets === 0) { + break; + } + } + } + + push({ type: 'text', value }); + continue; + } + + /** + * Parentheses + */ + + if (value === CHAR_LEFT_PARENTHESES) { + block = push({ type: 'paren', nodes: [] }); + stack.push(block); + push({ type: 'text', value }); + continue; + } + + if (value === CHAR_RIGHT_PARENTHESES) { + if (block.type !== 'paren') { + push({ type: 'text', value }); + continue; + } + block = stack.pop(); + push({ type: 'text', value }); + block = stack[stack.length - 1]; + continue; + } + + /** + * Quotes: '|"|` + */ + + if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) { + const open = value; + let next; + + if (options.keepQuotes !== true) { + value = ''; + } + + while (index < length && (next = advance())) { + if (next === CHAR_BACKSLASH) { + value += next + advance(); + continue; + } + + if (next === open) { + if (options.keepQuotes === true) value += next; + break; + } + + value += next; + } + + push({ type: 'text', value }); + continue; + } + + /** + * Left curly brace: '{' + */ + + if (value === CHAR_LEFT_CURLY_BRACE) { + depth++; + + const dollar = prev.value && prev.value.slice(-1) === '$' || block.dollar === true; + const brace = { + type: 'brace', + open: true, + close: false, + dollar, + depth, + commas: 0, + ranges: 0, + nodes: [] + }; + + block = push(brace); + stack.push(block); + push({ type: 'open', value }); + continue; + } + + /** + * Right curly brace: '}' + */ + + if (value === CHAR_RIGHT_CURLY_BRACE) { + if (block.type !== 'brace') { + push({ type: 'text', value }); + continue; + } + + const type = 'close'; + block = stack.pop(); + block.close = true; + + push({ type, value }); + depth--; + + block = stack[stack.length - 1]; + continue; + } + + /** + * Comma: ',' + */ + + if (value === CHAR_COMMA && depth > 0) { + if (block.ranges > 0) { + block.ranges = 0; + const open = block.nodes.shift(); + block.nodes = [open, { type: 'text', value: stringify(block) }]; + } + + push({ type: 'comma', value }); + block.commas++; + continue; + } + + /** + * Dot: '.' + */ + + if (value === CHAR_DOT && depth > 0 && block.commas === 0) { + const siblings = block.nodes; + + if (depth === 0 || siblings.length === 0) { + push({ type: 'text', value }); + continue; + } + + if (prev.type === 'dot') { + block.range = []; + prev.value += value; + prev.type = 'range'; + + if (block.nodes.length !== 3 && block.nodes.length !== 5) { + block.invalid = true; + block.ranges = 0; + prev.type = 'text'; + continue; + } + + block.ranges++; + block.args = []; + continue; + } + + if (prev.type === 'range') { + siblings.pop(); + + const before = siblings[siblings.length - 1]; + before.value += prev.value + value; + prev = before; + block.ranges--; + continue; + } + + push({ type: 'dot', value }); + continue; + } + + /** + * Text + */ + + push({ type: 'text', value }); + } + + // Mark imbalanced braces and brackets as invalid + do { + block = stack.pop(); + + if (block.type !== 'root') { + block.nodes.forEach(node => { + if (!node.nodes) { + if (node.type === 'open') node.isOpen = true; + if (node.type === 'close') node.isClose = true; + if (!node.nodes) node.type = 'text'; + node.invalid = true; + } + }); + + // get the location of the block on parent.nodes (block's siblings) + const parent = stack[stack.length - 1]; + const index = parent.nodes.indexOf(block); + // replace the (invalid) block with it's nodes + parent.nodes.splice(index, 1, ...block.nodes); + } + } while (stack.length > 0); + + push({ type: 'eos' }); + return ast; +}; + +module.exports = parse; diff --git a/node_modules/braces/lib/stringify.js b/node_modules/braces/lib/stringify.js new file mode 100644 index 0000000..8bcf872 --- /dev/null +++ b/node_modules/braces/lib/stringify.js @@ -0,0 +1,32 @@ +'use strict'; + +const utils = require('./utils'); + +module.exports = (ast, options = {}) => { + const stringify = (node, parent = {}) => { + const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); + const invalidNode = node.invalid === true && options.escapeInvalid === true; + let output = ''; + + if (node.value) { + if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) { + return '\\' + node.value; + } + return node.value; + } + + if (node.value) { + return node.value; + } + + if (node.nodes) { + for (const child of node.nodes) { + output += stringify(child); + } + } + return output; + }; + + return stringify(ast); +}; + diff --git a/node_modules/braces/lib/utils.js b/node_modules/braces/lib/utils.js new file mode 100644 index 0000000..d19311f --- /dev/null +++ b/node_modules/braces/lib/utils.js @@ -0,0 +1,122 @@ +'use strict'; + +exports.isInteger = num => { + if (typeof num === 'number') { + return Number.isInteger(num); + } + if (typeof num === 'string' && num.trim() !== '') { + return Number.isInteger(Number(num)); + } + return false; +}; + +/** + * Find a node of the given type + */ + +exports.find = (node, type) => node.nodes.find(node => node.type === type); + +/** + * Find a node of the given type + */ + +exports.exceedsLimit = (min, max, step = 1, limit) => { + if (limit === false) return false; + if (!exports.isInteger(min) || !exports.isInteger(max)) return false; + return ((Number(max) - Number(min)) / Number(step)) >= limit; +}; + +/** + * Escape the given node with '\\' before node.value + */ + +exports.escapeNode = (block, n = 0, type) => { + const node = block.nodes[n]; + if (!node) return; + + if ((type && node.type === type) || node.type === 'open' || node.type === 'close') { + if (node.escaped !== true) { + node.value = '\\' + node.value; + node.escaped = true; + } + } +}; + +/** + * Returns true if the given brace node should be enclosed in literal braces + */ + +exports.encloseBrace = node => { + if (node.type !== 'brace') return false; + if ((node.commas >> 0 + node.ranges >> 0) === 0) { + node.invalid = true; + return true; + } + return false; +}; + +/** + * Returns true if a brace node is invalid. + */ + +exports.isInvalidBrace = block => { + if (block.type !== 'brace') return false; + if (block.invalid === true || block.dollar) return true; + if ((block.commas >> 0 + block.ranges >> 0) === 0) { + block.invalid = true; + return true; + } + if (block.open !== true || block.close !== true) { + block.invalid = true; + return true; + } + return false; +}; + +/** + * Returns true if a node is an open or close node + */ + +exports.isOpenOrClose = node => { + if (node.type === 'open' || node.type === 'close') { + return true; + } + return node.open === true || node.close === true; +}; + +/** + * Reduce an array of text nodes. + */ + +exports.reduce = nodes => nodes.reduce((acc, node) => { + if (node.type === 'text') acc.push(node.value); + if (node.type === 'range') node.type = 'text'; + return acc; +}, []); + +/** + * Flatten an array + */ + +exports.flatten = (...args) => { + const result = []; + + const flat = arr => { + for (let i = 0; i < arr.length; i++) { + const ele = arr[i]; + + if (Array.isArray(ele)) { + flat(ele); + continue; + } + + if (ele !== undefined) { + result.push(ele); + } + } + return result; + }; + + flat(args); + return result; +}; diff --git a/node_modules/braces/package.json b/node_modules/braces/package.json new file mode 100644 index 0000000..c3c056e --- /dev/null +++ b/node_modules/braces/package.json @@ -0,0 +1,77 @@ +{ + "name": "braces", + "description": "Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.", + "version": "3.0.3", + "homepage": "https://github.com/micromatch/braces", + "author": "Jon Schlinkert (https://github.com/jonschlinkert)", + "contributors": [ + "Brian Woodward (https://twitter.com/doowb)", + "Elan Shanker (https://github.com/es128)", + "Eugene Sharygin (https://github.com/eush77)", + "hemanth.hm (http://h3manth.com)", + "Jon Schlinkert (http://twitter.com/jonschlinkert)" + ], + "repository": "micromatch/braces", + "bugs": { + "url": "https://github.com/micromatch/braces/issues" + }, + "license": "MIT", + "files": [ + "index.js", + "lib" + ], + "main": "index.js", + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "mocha", + "benchmark": "node benchmark" + }, + "dependencies": { + "fill-range": "^7.1.1" + }, + "devDependencies": { + "ansi-colors": "^3.2.4", + "bash-path": "^2.0.1", + "gulp-format-md": "^2.0.0", + "mocha": "^6.1.1" + }, + "keywords": [ + "alpha", + "alphabetical", + "bash", + "brace", + "braces", + "expand", + "expansion", + "filepath", + "fill", + "fs", + "glob", + "globbing", + "letter", + "match", + "matches", + "matching", + "number", + "numerical", + "path", + "range", + "ranges", + "sh" + ], + "verb": { + "toc": false, + "layout": "default", + "tasks": [ + "readme" + ], + "lint": { + "reflinks": true + }, + "plugins": [ + "gulp-format-md" + ] + } +} diff --git a/node_modules/camel-case/LICENSE b/node_modules/camel-case/LICENSE new file mode 100644 index 0000000..983fbe8 --- /dev/null +++ b/node_modules/camel-case/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/camel-case/README.md b/node_modules/camel-case/README.md new file mode 100644 index 0000000..33ecb1b --- /dev/null +++ b/node_modules/camel-case/README.md @@ -0,0 +1,47 @@ +# Camel Case + +[![NPM version][npm-image]][npm-url] +[![NPM downloads][downloads-image]][downloads-url] +[![Bundle size][bundlephobia-image]][bundlephobia-url] + +> Transform into a string with the separator denoted by the next word capitalized. + +## Installation + +``` +npm install camel-case --save +``` + +## Usage + +```js +import { camelCase } from "camel-case"; + +camelCase("string"); //=> "string" +camelCase("dot.case"); //=> "dotCase" +camelCase("PascalCase"); //=> "pascalCase" +camelCase("version 1.2.10"); //=> "version_1_2_10" +``` + +The function also accepts [`options`](https://github.com/blakeembrey/change-case#options). + +### Merge Numbers + +If you'd like to remove the behavior prefixing `_` before numbers, you can use `camelCaseTransformMerge`: + +```js +import { camelCaseTransformMerge } from "camel-case"; + +camelCase("version 12", { transform: camelCaseTransformMerge }); //=> "version12" +``` + +## License + +MIT + +[npm-image]: https://img.shields.io/npm/v/camel-case.svg?style=flat +[npm-url]: https://npmjs.org/package/camel-case +[downloads-image]: https://img.shields.io/npm/dm/camel-case.svg?style=flat +[downloads-url]: https://npmjs.org/package/camel-case +[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/camel-case.svg +[bundlephobia-url]: https://bundlephobia.com/result?p=camel-case diff --git a/node_modules/camel-case/dist.es2015/index.d.ts b/node_modules/camel-case/dist.es2015/index.d.ts new file mode 100644 index 0000000..23c665c --- /dev/null +++ b/node_modules/camel-case/dist.es2015/index.d.ts @@ -0,0 +1,5 @@ +import { Options } from "pascal-case"; +export { Options }; +export declare function camelCaseTransform(input: string, index: number): string; +export declare function camelCaseTransformMerge(input: string, index: number): string; +export declare function camelCase(input: string, options?: Options): string; diff --git a/node_modules/camel-case/dist.es2015/index.js b/node_modules/camel-case/dist.es2015/index.js new file mode 100644 index 0000000..c5fd0a4 --- /dev/null +++ b/node_modules/camel-case/dist.es2015/index.js @@ -0,0 +1,17 @@ +import { __assign } from "tslib"; +import { pascalCase, pascalCaseTransform, pascalCaseTransformMerge, } from "pascal-case"; +export function camelCaseTransform(input, index) { + if (index === 0) + return input.toLowerCase(); + return pascalCaseTransform(input, index); +} +export function camelCaseTransformMerge(input, index) { + if (index === 0) + return input.toLowerCase(); + return pascalCaseTransformMerge(input); +} +export function camelCase(input, options) { + if (options === void 0) { options = {}; } + return pascalCase(input, __assign({ transform: camelCaseTransform }, options)); +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/camel-case/dist.es2015/index.js.map b/node_modules/camel-case/dist.es2015/index.js.map new file mode 100644 index 0000000..b9ef1de --- /dev/null +++ b/node_modules/camel-case/dist.es2015/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,wBAAwB,GAEzB,MAAM,aAAa,CAAC;AAIrB,MAAM,UAAU,kBAAkB,CAAC,KAAa,EAAE,KAAa;IAC7D,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;IAC5C,OAAO,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,KAAa,EAAE,KAAa;IAClE,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;IAC5C,OAAO,wBAAwB,CAAC,KAAK,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,KAAa,EAAE,OAAqB;IAArB,wBAAA,EAAA,YAAqB;IAC5D,OAAO,UAAU,CAAC,KAAK,aACrB,SAAS,EAAE,kBAAkB,IAC1B,OAAO,EACV,CAAC;AACL,CAAC","sourcesContent":["import {\n pascalCase,\n pascalCaseTransform,\n pascalCaseTransformMerge,\n Options,\n} from \"pascal-case\";\n\nexport { Options };\n\nexport function camelCaseTransform(input: string, index: number) {\n if (index === 0) return input.toLowerCase();\n return pascalCaseTransform(input, index);\n}\n\nexport function camelCaseTransformMerge(input: string, index: number) {\n if (index === 0) return input.toLowerCase();\n return pascalCaseTransformMerge(input);\n}\n\nexport function camelCase(input: string, options: Options = {}) {\n return pascalCase(input, {\n transform: camelCaseTransform,\n ...options,\n });\n}\n"]} \ No newline at end of file diff --git a/node_modules/camel-case/dist.es2015/index.spec.d.ts b/node_modules/camel-case/dist.es2015/index.spec.d.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/node_modules/camel-case/dist.es2015/index.spec.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/camel-case/dist.es2015/index.spec.js b/node_modules/camel-case/dist.es2015/index.spec.js new file mode 100644 index 0000000..0396a8a --- /dev/null +++ b/node_modules/camel-case/dist.es2015/index.spec.js @@ -0,0 +1,24 @@ +import { camelCase, camelCaseTransformMerge } from "."; +var TEST_CASES = [ + ["", ""], + ["test", "test"], + ["test string", "testString"], + ["Test String", "testString"], + ["TestV2", "testV2"], + ["_foo_bar_", "fooBar"], + ["version 1.2.10", "version_1_2_10"], + ["version 1.21.0", "version_1_21_0"], + ["version 1.2.10", "version1210", { transform: camelCaseTransformMerge }], +]; +describe("camel case", function () { + var _loop_1 = function (input, result, options) { + it(input + " -> " + result, function () { + expect(camelCase(input, options)).toEqual(result); + }); + }; + for (var _i = 0, TEST_CASES_1 = TEST_CASES; _i < TEST_CASES_1.length; _i++) { + var _a = TEST_CASES_1[_i], input = _a[0], result = _a[1], options = _a[2]; + _loop_1(input, result, options); + } +}); +//# sourceMappingURL=index.spec.js.map \ No newline at end of file diff --git a/node_modules/camel-case/dist.es2015/index.spec.js.map b/node_modules/camel-case/dist.es2015/index.spec.js.map new file mode 100644 index 0000000..13472d7 --- /dev/null +++ b/node_modules/camel-case/dist.es2015/index.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAW,MAAM,GAAG,CAAC;AAEhE,IAAM,UAAU,GAAiC;IAC/C,CAAC,EAAE,EAAE,EAAE,CAAC;IACR,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,aAAa,EAAE,YAAY,CAAC;IAC7B,CAAC,aAAa,EAAE,YAAY,CAAC;IAC7B,CAAC,QAAQ,EAAE,QAAQ,CAAC;IACpB,CAAC,WAAW,EAAE,QAAQ,CAAC;IACvB,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,gBAAgB,EAAE,aAAa,EAAE,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC;CAC1E,CAAC;AAEF,QAAQ,CAAC,YAAY,EAAE;4BACT,KAAK,EAAE,MAAM,EAAE,OAAO;QAChC,EAAE,CAAI,KAAK,YAAO,MAAQ,EAAE;YAC1B,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;;IAHL,KAAuC,UAAU,EAAV,yBAAU,EAAV,wBAAU,EAAV,IAAU;QAAtC,IAAA,qBAAwB,EAAvB,KAAK,QAAA,EAAE,MAAM,QAAA,EAAE,OAAO,QAAA;gBAAtB,KAAK,EAAE,MAAM,EAAE,OAAO;KAIjC;AACH,CAAC,CAAC,CAAC","sourcesContent":["import { camelCase, camelCaseTransformMerge, Options } from \".\";\n\nconst TEST_CASES: [string, string, Options?][] = [\n [\"\", \"\"],\n [\"test\", \"test\"],\n [\"test string\", \"testString\"],\n [\"Test String\", \"testString\"],\n [\"TestV2\", \"testV2\"],\n [\"_foo_bar_\", \"fooBar\"],\n [\"version 1.2.10\", \"version_1_2_10\"],\n [\"version 1.21.0\", \"version_1_21_0\"],\n [\"version 1.2.10\", \"version1210\", { transform: camelCaseTransformMerge }],\n];\n\ndescribe(\"camel case\", () => {\n for (const [input, result, options] of TEST_CASES) {\n it(`${input} -> ${result}`, () => {\n expect(camelCase(input, options)).toEqual(result);\n });\n }\n});\n"]} \ No newline at end of file diff --git a/node_modules/camel-case/dist/index.d.ts b/node_modules/camel-case/dist/index.d.ts new file mode 100644 index 0000000..23c665c --- /dev/null +++ b/node_modules/camel-case/dist/index.d.ts @@ -0,0 +1,5 @@ +import { Options } from "pascal-case"; +export { Options }; +export declare function camelCaseTransform(input: string, index: number): string; +export declare function camelCaseTransformMerge(input: string, index: number): string; +export declare function camelCase(input: string, options?: Options): string; diff --git a/node_modules/camel-case/dist/index.js b/node_modules/camel-case/dist/index.js new file mode 100644 index 0000000..856a8d3 --- /dev/null +++ b/node_modules/camel-case/dist/index.js @@ -0,0 +1,23 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.camelCase = exports.camelCaseTransformMerge = exports.camelCaseTransform = void 0; +var tslib_1 = require("tslib"); +var pascal_case_1 = require("pascal-case"); +function camelCaseTransform(input, index) { + if (index === 0) + return input.toLowerCase(); + return pascal_case_1.pascalCaseTransform(input, index); +} +exports.camelCaseTransform = camelCaseTransform; +function camelCaseTransformMerge(input, index) { + if (index === 0) + return input.toLowerCase(); + return pascal_case_1.pascalCaseTransformMerge(input); +} +exports.camelCaseTransformMerge = camelCaseTransformMerge; +function camelCase(input, options) { + if (options === void 0) { options = {}; } + return pascal_case_1.pascalCase(input, tslib_1.__assign({ transform: camelCaseTransform }, options)); +} +exports.camelCase = camelCase; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/camel-case/dist/index.js.map b/node_modules/camel-case/dist/index.js.map new file mode 100644 index 0000000..2636e66 --- /dev/null +++ b/node_modules/camel-case/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,2CAKqB;AAIrB,SAAgB,kBAAkB,CAAC,KAAa,EAAE,KAAa;IAC7D,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;IAC5C,OAAO,iCAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAHD,gDAGC;AAED,SAAgB,uBAAuB,CAAC,KAAa,EAAE,KAAa;IAClE,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;IAC5C,OAAO,sCAAwB,CAAC,KAAK,CAAC,CAAC;AACzC,CAAC;AAHD,0DAGC;AAED,SAAgB,SAAS,CAAC,KAAa,EAAE,OAAqB;IAArB,wBAAA,EAAA,YAAqB;IAC5D,OAAO,wBAAU,CAAC,KAAK,qBACrB,SAAS,EAAE,kBAAkB,IAC1B,OAAO,EACV,CAAC;AACL,CAAC;AALD,8BAKC","sourcesContent":["import {\n pascalCase,\n pascalCaseTransform,\n pascalCaseTransformMerge,\n Options,\n} from \"pascal-case\";\n\nexport { Options };\n\nexport function camelCaseTransform(input: string, index: number) {\n if (index === 0) return input.toLowerCase();\n return pascalCaseTransform(input, index);\n}\n\nexport function camelCaseTransformMerge(input: string, index: number) {\n if (index === 0) return input.toLowerCase();\n return pascalCaseTransformMerge(input);\n}\n\nexport function camelCase(input: string, options: Options = {}) {\n return pascalCase(input, {\n transform: camelCaseTransform,\n ...options,\n });\n}\n"]} \ No newline at end of file diff --git a/node_modules/camel-case/dist/index.spec.d.ts b/node_modules/camel-case/dist/index.spec.d.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/node_modules/camel-case/dist/index.spec.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/camel-case/dist/index.spec.js b/node_modules/camel-case/dist/index.spec.js new file mode 100644 index 0000000..7826a52 --- /dev/null +++ b/node_modules/camel-case/dist/index.spec.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var _1 = require("."); +var TEST_CASES = [ + ["", ""], + ["test", "test"], + ["test string", "testString"], + ["Test String", "testString"], + ["TestV2", "testV2"], + ["_foo_bar_", "fooBar"], + ["version 1.2.10", "version_1_2_10"], + ["version 1.21.0", "version_1_21_0"], + ["version 1.2.10", "version1210", { transform: _1.camelCaseTransformMerge }], +]; +describe("camel case", function () { + var _loop_1 = function (input, result, options) { + it(input + " -> " + result, function () { + expect(_1.camelCase(input, options)).toEqual(result); + }); + }; + for (var _i = 0, TEST_CASES_1 = TEST_CASES; _i < TEST_CASES_1.length; _i++) { + var _a = TEST_CASES_1[_i], input = _a[0], result = _a[1], options = _a[2]; + _loop_1(input, result, options); + } +}); +//# sourceMappingURL=index.spec.js.map \ No newline at end of file diff --git a/node_modules/camel-case/dist/index.spec.js.map b/node_modules/camel-case/dist/index.spec.js.map new file mode 100644 index 0000000..44f7e92 --- /dev/null +++ b/node_modules/camel-case/dist/index.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":";;AAAA,sBAAgE;AAEhE,IAAM,UAAU,GAAiC;IAC/C,CAAC,EAAE,EAAE,EAAE,CAAC;IACR,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,aAAa,EAAE,YAAY,CAAC;IAC7B,CAAC,aAAa,EAAE,YAAY,CAAC;IAC7B,CAAC,QAAQ,EAAE,QAAQ,CAAC;IACpB,CAAC,WAAW,EAAE,QAAQ,CAAC;IACvB,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,gBAAgB,EAAE,aAAa,EAAE,EAAE,SAAS,EAAE,0BAAuB,EAAE,CAAC;CAC1E,CAAC;AAEF,QAAQ,CAAC,YAAY,EAAE;4BACT,KAAK,EAAE,MAAM,EAAE,OAAO;QAChC,EAAE,CAAI,KAAK,YAAO,MAAQ,EAAE;YAC1B,MAAM,CAAC,YAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;;IAHL,KAAuC,UAAU,EAAV,yBAAU,EAAV,wBAAU,EAAV,IAAU;QAAtC,IAAA,qBAAwB,EAAvB,KAAK,QAAA,EAAE,MAAM,QAAA,EAAE,OAAO,QAAA;gBAAtB,KAAK,EAAE,MAAM,EAAE,OAAO;KAIjC;AACH,CAAC,CAAC,CAAC","sourcesContent":["import { camelCase, camelCaseTransformMerge, Options } from \".\";\n\nconst TEST_CASES: [string, string, Options?][] = [\n [\"\", \"\"],\n [\"test\", \"test\"],\n [\"test string\", \"testString\"],\n [\"Test String\", \"testString\"],\n [\"TestV2\", \"testV2\"],\n [\"_foo_bar_\", \"fooBar\"],\n [\"version 1.2.10\", \"version_1_2_10\"],\n [\"version 1.21.0\", \"version_1_21_0\"],\n [\"version 1.2.10\", \"version1210\", { transform: camelCaseTransformMerge }],\n];\n\ndescribe(\"camel case\", () => {\n for (const [input, result, options] of TEST_CASES) {\n it(`${input} -> ${result}`, () => {\n expect(camelCase(input, options)).toEqual(result);\n });\n }\n});\n"]} \ No newline at end of file diff --git a/node_modules/camel-case/package.json b/node_modules/camel-case/package.json new file mode 100644 index 0000000..2864430 --- /dev/null +++ b/node_modules/camel-case/package.json @@ -0,0 +1,89 @@ +{ + "name": "camel-case", + "version": "4.1.2", + "description": "Transform into a string with the separator denoted by the next word capitalized", + "main": "dist/index.js", + "typings": "dist/index.d.ts", + "module": "dist.es2015/index.js", + "sideEffects": false, + "jsnext:main": "dist.es2015/index.js", + "files": [ + "dist/", + "dist.es2015/", + "LICENSE" + ], + "scripts": { + "lint": "tslint \"src/**/*\" --project tsconfig.json", + "build": "rimraf dist/ dist.es2015/ && tsc && tsc -P tsconfig.es2015.json", + "specs": "jest --coverage", + "test": "npm run build && npm run lint && npm run specs", + "size": "size-limit", + "prepare": "npm run build" + }, + "repository": { + "type": "git", + "url": "git://github.com/blakeembrey/change-case.git" + }, + "keywords": [ + "camel", + "case", + "camelcase", + "camel-case", + "convert", + "transform", + "identifier" + ], + "author": { + "name": "Blake Embrey", + "email": "hello@blakeembrey.com", + "url": "http://blakeembrey.me" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/blakeembrey/change-case/issues" + }, + "homepage": "https://github.com/blakeembrey/change-case/tree/master/packages/camel-case#readme", + "size-limit": [ + { + "path": "dist/index.js", + "limit": "450 B" + } + ], + "jest": { + "roots": [ + "/src/" + ], + "transform": { + "\\.tsx?$": "ts-jest" + }, + "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$", + "moduleFileExtensions": [ + "ts", + "tsx", + "js", + "jsx", + "json", + "node" + ] + }, + "publishConfig": { + "access": "public" + }, + "dependencies": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + }, + "devDependencies": { + "@size-limit/preset-small-lib": "^2.2.1", + "@types/jest": "^24.0.23", + "@types/node": "^12.12.14", + "jest": "^24.9.0", + "rimraf": "^3.0.0", + "ts-jest": "^24.2.0", + "tslint": "^5.20.1", + "tslint-config-prettier": "^1.18.0", + "tslint-config-standard": "^9.0.0", + "typescript": "^4.1.2" + }, + "gitHead": "76a21a7f6f2a226521ef6abd345ff309cbd01fb0" +} diff --git a/node_modules/cloudinary-core/README.md b/node_modules/cloudinary-core/README.md new file mode 100644 index 0000000..e0ad775 --- /dev/null +++ b/node_modules/cloudinary-core/README.md @@ -0,0 +1,147 @@ +Cloudinary Javascript Core SDK (Legacy) +======================================= + +## About +The Javascript SDK allows you to quickly and easily integrate your application with Cloudinary. +Effortlessly optimize and transform your cloud's assets. + +#### Note +This Readme provides basic installation and usage information. +For the complete documentation, see the [Javascript SDK Guide](https://cloudinary.com/documentation/javascript1_integration). + + +## Table of Contents +- [Key Features](#key-features) +- [Browser Support](#Browser-Support) +- [Installation](#installation) +- [Usage](#usage) + - [Setup](#Setup) + - [Transform and Optimize Assets](#Transform-and-Optimize-Assets) + - [Generate Image and HTML Tags](#Generate-Image-and-Video-HTML-Tags) + - [File upload](#File-upload) +- [Contributions](#Contributions) +- [About Cloudinary](#About-Cloudinary) +- [Additional Resources](#Additional-Resources) +- [Licence](#Licence) + +## Key Features +- [Transform](https://cloudinary.com/documentation/javascript1_video_manipulation#video_transformation_examples) and [optimize](https://cloudinary.com/documentation/javascript1_image_manipulation#image_optimizations) assets. +- Generate [image](https://cloudinary.com/documentation/javascript1_image_manipulation#deliver_and_transform_images) and [video](https://cloudinary.com/documentation/javascript1_video_manipulation#video_element) tags. + +## Browser Support +Chrome, Safari, Firefox, IE 11 + +## Installation +### Install using your favorite package manager (yarn, npm) +```bash +npm install cloudinary-core +``` +Or +```bash +yarn add cloudinary-core +``` + +## Usage +### Setup +There are several ways to configure cloudinary-core: + +##### Explicitly +```javascript +var cl = cloudinary.Cloudinary.new( { cloud_name: "demo"}); +``` + +##### Using the config function +```javascript + +// Using the config function +var cl = cloudinary.Cloudinary.new(); +cl.config( "cloud_name", "demo"); +``` + +##### From meta tags in the current HTML document +When using the library in a browser environment, you can use meta tags to define the configuration options. + +The `init()` function is a convenience function that invokes both `fromDocument()` and `fromEnvironment()`. + + +For example, add the following to the header tag: +```html + +``` + +In your JavaScript source, invoke `fromDocument()`: +```javascript +var cl = cloudinary.Cloudinary.new(); +cl.fromDocument(); +// or +cl.init(); +``` + +##### From environment variables + +When using the library in a backend environment such as NodeJS, you can use an environment variable to define the configuration options. + +Set the environment variable, for example: +```shell +export CLOUDINARY_URL=cloudinary://demo +``` +In your JavaScript source, invoke `fromEnvironment()`: +```javascript +var cl = cloudinary.Cloudinary.new(); +cl.fromEnvironment(); +// or +cl.init(); +``` + +### Transform and Optimize Assets +- [See full documentation](https://cloudinary.com/documentation/javascript1_image_manipulation) + +```javascript +// Apply a single transformation +cl.url( "sample", { crop: "scale", width: "200", angle: "10" }) + +// Chain (compose) multiple transformations +cl.url( "sample", { + transformation: [ + { angle: -45 }, + { effect: "trim", angle: "45", crop: "scale", width: "600" }, + { overlay: "text:Arial_100:Hello" } + ] +}); +``` + +### Generate Image and Video HTML Tags +- Use the ```image()``` function to generate an HTMLImageElement +- Use the ```imageTag()``` function to generate an ImageTag instance +- Use the ```video()``` function to generate an HTMLVideoElement +- Use the ```videoTag()``` function to generate a VideoTag instance + +### File upload +See [cloudinary-jquery-file-upload](https://github.com/cloudinary/cloudinary_js/pkg/cloudinary-jquery-file-upload). + +## Contributions +- Ensure tests run locally (```npm run test```) +- Open a PR and ensure Travis tests pass + +## Get Help +If you run into an issue or have a question, you can either: +- [Open a Github issue](https://github.com/Cloudinary/cloudinary_js/issues) (for issues related to the SDK) +- [Open a support ticket](https://cloudinary.com/contact) (for issues related to your account) + +## About Cloudinary +Cloudinary is a powerful media API for websites and mobile apps alike, Cloudinary enables developers to efficiently manage, transform, optimize, and deliver images and videos through multiple CDNs. Ultimately, viewers enjoy responsive and personalized visual-media experiences—irrespective of the viewing device. + +## Additional Resources +- [Cloudinary Transformation and REST API References](https://cloudinary.com/documentation/cloudinary_references): Comprehensive references, including syntax and examples for all SDKs. +- [MediaJams.dev](https://mediajams.dev/): Bite-size use-case tutorials written by and for Cloudinary Developers +- [DevJams](https://www.youtube.com/playlist?list=PL8dVGjLA2oMr09amgERARsZyrOz_sPvqw): Cloudinary developer podcasts on YouTube. +- [Cloudinary Academy](https://training.cloudinary.com/): Free self-paced courses, instructor-led virtual courses, and on-site courses. +- [Code Explorers and Feature Demos](https://cloudinary.com/documentation/code_explorers_demos_index): A one-stop shop for all code explorers, Postman collections, and feature demos found in the docs. +- [Cloudinary Roadmap](https://cloudinary.com/roadmap): Your chance to follow, vote, or suggest what Cloudinary should develop next. +- [Cloudinary Facebook Community](https://www.facebook.com/groups/CloudinaryCommunity): Learn from and offer help to other Cloudinary developers. +- [Cloudinary Account Registration](https://cloudinary.com/users/register/free): Free Cloudinary account registration. +- [Cloudinary Website](https://cloudinary.com): Learn about Cloudinary's products, partners, customers, pricing, and more. + + +## Licence +Released under the MIT license. diff --git a/node_modules/cloudinary-core/cloudinary-core-shrinkwrap.js b/node_modules/cloudinary-core/cloudinary-core-shrinkwrap.js new file mode 100644 index 0000000..f0a4ace --- /dev/null +++ b/node_modules/cloudinary-core/cloudinary-core-shrinkwrap.js @@ -0,0 +1,12442 @@ +/** + * cloudinary-core-shrinkwrap.js + * Cloudinary's JavaScript library - Version 2.13.1 + * Copyright Cloudinary + * see https://github.com/cloudinary/cloudinary_js + * + */ +(function webpackUniversalModuleDefinition(root, factory) { + if(typeof exports === 'object' && typeof module === 'object') + module.exports = factory(); + else if(typeof define === 'function' && define.amd) + define([], factory); + else if(typeof exports === 'object') + exports["cloudinary"] = factory(); + else + root["cloudinary"] = factory(); +})(this, function() { +return /******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/namespace/cloudinary-core-shrinkwrap.js"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./node_modules/lodash/_DataView.js": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("./node_modules/lodash/_getNative.js"), + root = __webpack_require__("./node_modules/lodash/_root.js"); + +/* Built-in method references that are verified to be native. */ +var DataView = getNative(root, 'DataView'); + +module.exports = DataView; + + +/***/ }), + +/***/ "./node_modules/lodash/_Hash.js": +/***/ (function(module, exports, __webpack_require__) { + +var hashClear = __webpack_require__("./node_modules/lodash/_hashClear.js"), + hashDelete = __webpack_require__("./node_modules/lodash/_hashDelete.js"), + hashGet = __webpack_require__("./node_modules/lodash/_hashGet.js"), + hashHas = __webpack_require__("./node_modules/lodash/_hashHas.js"), + hashSet = __webpack_require__("./node_modules/lodash/_hashSet.js"); + +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +// Add methods to `Hash`. +Hash.prototype.clear = hashClear; +Hash.prototype['delete'] = hashDelete; +Hash.prototype.get = hashGet; +Hash.prototype.has = hashHas; +Hash.prototype.set = hashSet; + +module.exports = Hash; + + +/***/ }), + +/***/ "./node_modules/lodash/_ListCache.js": +/***/ (function(module, exports, __webpack_require__) { + +var listCacheClear = __webpack_require__("./node_modules/lodash/_listCacheClear.js"), + listCacheDelete = __webpack_require__("./node_modules/lodash/_listCacheDelete.js"), + listCacheGet = __webpack_require__("./node_modules/lodash/_listCacheGet.js"), + listCacheHas = __webpack_require__("./node_modules/lodash/_listCacheHas.js"), + listCacheSet = __webpack_require__("./node_modules/lodash/_listCacheSet.js"); + +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +// Add methods to `ListCache`. +ListCache.prototype.clear = listCacheClear; +ListCache.prototype['delete'] = listCacheDelete; +ListCache.prototype.get = listCacheGet; +ListCache.prototype.has = listCacheHas; +ListCache.prototype.set = listCacheSet; + +module.exports = ListCache; + + +/***/ }), + +/***/ "./node_modules/lodash/_Map.js": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("./node_modules/lodash/_getNative.js"), + root = __webpack_require__("./node_modules/lodash/_root.js"); + +/* Built-in method references that are verified to be native. */ +var Map = getNative(root, 'Map'); + +module.exports = Map; + + +/***/ }), + +/***/ "./node_modules/lodash/_MapCache.js": +/***/ (function(module, exports, __webpack_require__) { + +var mapCacheClear = __webpack_require__("./node_modules/lodash/_mapCacheClear.js"), + mapCacheDelete = __webpack_require__("./node_modules/lodash/_mapCacheDelete.js"), + mapCacheGet = __webpack_require__("./node_modules/lodash/_mapCacheGet.js"), + mapCacheHas = __webpack_require__("./node_modules/lodash/_mapCacheHas.js"), + mapCacheSet = __webpack_require__("./node_modules/lodash/_mapCacheSet.js"); + +/** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function MapCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +// Add methods to `MapCache`. +MapCache.prototype.clear = mapCacheClear; +MapCache.prototype['delete'] = mapCacheDelete; +MapCache.prototype.get = mapCacheGet; +MapCache.prototype.has = mapCacheHas; +MapCache.prototype.set = mapCacheSet; + +module.exports = MapCache; + + +/***/ }), + +/***/ "./node_modules/lodash/_Promise.js": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("./node_modules/lodash/_getNative.js"), + root = __webpack_require__("./node_modules/lodash/_root.js"); + +/* Built-in method references that are verified to be native. */ +var Promise = getNative(root, 'Promise'); + +module.exports = Promise; + + +/***/ }), + +/***/ "./node_modules/lodash/_Set.js": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("./node_modules/lodash/_getNative.js"), + root = __webpack_require__("./node_modules/lodash/_root.js"); + +/* Built-in method references that are verified to be native. */ +var Set = getNative(root, 'Set'); + +module.exports = Set; + + +/***/ }), + +/***/ "./node_modules/lodash/_SetCache.js": +/***/ (function(module, exports, __webpack_require__) { + +var MapCache = __webpack_require__("./node_modules/lodash/_MapCache.js"), + setCacheAdd = __webpack_require__("./node_modules/lodash/_setCacheAdd.js"), + setCacheHas = __webpack_require__("./node_modules/lodash/_setCacheHas.js"); + +/** + * + * Creates an array cache object to store unique values. + * + * @private + * @constructor + * @param {Array} [values] The values to cache. + */ +function SetCache(values) { + var index = -1, + length = values == null ? 0 : values.length; + + this.__data__ = new MapCache; + while (++index < length) { + this.add(values[index]); + } +} + +// Add methods to `SetCache`. +SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; +SetCache.prototype.has = setCacheHas; + +module.exports = SetCache; + + +/***/ }), + +/***/ "./node_modules/lodash/_Stack.js": +/***/ (function(module, exports, __webpack_require__) { + +var ListCache = __webpack_require__("./node_modules/lodash/_ListCache.js"), + stackClear = __webpack_require__("./node_modules/lodash/_stackClear.js"), + stackDelete = __webpack_require__("./node_modules/lodash/_stackDelete.js"), + stackGet = __webpack_require__("./node_modules/lodash/_stackGet.js"), + stackHas = __webpack_require__("./node_modules/lodash/_stackHas.js"), + stackSet = __webpack_require__("./node_modules/lodash/_stackSet.js"); + +/** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; +} + +// Add methods to `Stack`. +Stack.prototype.clear = stackClear; +Stack.prototype['delete'] = stackDelete; +Stack.prototype.get = stackGet; +Stack.prototype.has = stackHas; +Stack.prototype.set = stackSet; + +module.exports = Stack; + + +/***/ }), + +/***/ "./node_modules/lodash/_Symbol.js": +/***/ (function(module, exports, __webpack_require__) { + +var root = __webpack_require__("./node_modules/lodash/_root.js"); + +/** Built-in value references. */ +var Symbol = root.Symbol; + +module.exports = Symbol; + + +/***/ }), + +/***/ "./node_modules/lodash/_Uint8Array.js": +/***/ (function(module, exports, __webpack_require__) { + +var root = __webpack_require__("./node_modules/lodash/_root.js"); + +/** Built-in value references. */ +var Uint8Array = root.Uint8Array; + +module.exports = Uint8Array; + + +/***/ }), + +/***/ "./node_modules/lodash/_WeakMap.js": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("./node_modules/lodash/_getNative.js"), + root = __webpack_require__("./node_modules/lodash/_root.js"); + +/* Built-in method references that are verified to be native. */ +var WeakMap = getNative(root, 'WeakMap'); + +module.exports = WeakMap; + + +/***/ }), + +/***/ "./node_modules/lodash/_apply.js": +/***/ (function(module, exports) { + +/** + * A faster alternative to `Function#apply`, this function invokes `func` + * with the `this` binding of `thisArg` and the arguments of `args`. + * + * @private + * @param {Function} func The function to invoke. + * @param {*} thisArg The `this` binding of `func`. + * @param {Array} args The arguments to invoke `func` with. + * @returns {*} Returns the result of `func`. + */ +function apply(func, thisArg, args) { + switch (args.length) { + case 0: return func.call(thisArg); + case 1: return func.call(thisArg, args[0]); + case 2: return func.call(thisArg, args[0], args[1]); + case 3: return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); +} + +module.exports = apply; + + +/***/ }), + +/***/ "./node_modules/lodash/_arrayEach.js": +/***/ (function(module, exports) { + +/** + * A specialized version of `_.forEach` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns `array`. + */ +function arrayEach(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (iteratee(array[index], index, array) === false) { + break; + } + } + return array; +} + +module.exports = arrayEach; + + +/***/ }), + +/***/ "./node_modules/lodash/_arrayFilter.js": +/***/ (function(module, exports) { + +/** + * A specialized version of `_.filter` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ +function arrayFilter(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + if (predicate(value, index, array)) { + result[resIndex++] = value; + } + } + return result; +} + +module.exports = arrayFilter; + + +/***/ }), + +/***/ "./node_modules/lodash/_arrayIncludes.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseIndexOf = __webpack_require__("./node_modules/lodash/_baseIndexOf.js"); + +/** + * A specialized version of `_.includes` for arrays without support for + * specifying an index to search from. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludes(array, value) { + var length = array == null ? 0 : array.length; + return !!length && baseIndexOf(array, value, 0) > -1; +} + +module.exports = arrayIncludes; + + +/***/ }), + +/***/ "./node_modules/lodash/_arrayIncludesWith.js": +/***/ (function(module, exports) { + +/** + * This function is like `arrayIncludes` except that it accepts a comparator. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @param {Function} comparator The comparator invoked per element. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludesWith(array, value, comparator) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (comparator(value, array[index])) { + return true; + } + } + return false; +} + +module.exports = arrayIncludesWith; + + +/***/ }), + +/***/ "./node_modules/lodash/_arrayLikeKeys.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseTimes = __webpack_require__("./node_modules/lodash/_baseTimes.js"), + isArguments = __webpack_require__("./node_modules/lodash/isArguments.js"), + isArray = __webpack_require__("./node_modules/lodash/isArray.js"), + isBuffer = __webpack_require__("./node_modules/lodash/isBuffer.js"), + isIndex = __webpack_require__("./node_modules/lodash/_isIndex.js"), + isTypedArray = __webpack_require__("./node_modules/lodash/isTypedArray.js"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ +function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), + isArg = !isArr && isArguments(value), + isBuff = !isArr && !isArg && isBuffer(value), + isType = !isArr && !isArg && !isBuff && isTypedArray(value), + skipIndexes = isArr || isArg || isBuff || isType, + result = skipIndexes ? baseTimes(value.length, String) : [], + length = result.length; + + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && + !(skipIndexes && ( + // Safari 9 has enumerable `arguments.length` in strict mode. + key == 'length' || + // Node.js 0.10 has enumerable non-index properties on buffers. + (isBuff && (key == 'offset' || key == 'parent')) || + // PhantomJS 2 has enumerable non-index properties on typed arrays. + (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || + // Skip index properties. + isIndex(key, length) + ))) { + result.push(key); + } + } + return result; +} + +module.exports = arrayLikeKeys; + + +/***/ }), + +/***/ "./node_modules/lodash/_arrayMap.js": +/***/ (function(module, exports) { + +/** + * A specialized version of `_.map` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ +function arrayMap(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length, + result = Array(length); + + while (++index < length) { + result[index] = iteratee(array[index], index, array); + } + return result; +} + +module.exports = arrayMap; + + +/***/ }), + +/***/ "./node_modules/lodash/_arrayPush.js": +/***/ (function(module, exports) { + +/** + * Appends the elements of `values` to `array`. + * + * @private + * @param {Array} array The array to modify. + * @param {Array} values The values to append. + * @returns {Array} Returns `array`. + */ +function arrayPush(array, values) { + var index = -1, + length = values.length, + offset = array.length; + + while (++index < length) { + array[offset + index] = values[index]; + } + return array; +} + +module.exports = arrayPush; + + +/***/ }), + +/***/ "./node_modules/lodash/_asciiToArray.js": +/***/ (function(module, exports) { + +/** + * Converts an ASCII `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function asciiToArray(string) { + return string.split(''); +} + +module.exports = asciiToArray; + + +/***/ }), + +/***/ "./node_modules/lodash/_assignMergeValue.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseAssignValue = __webpack_require__("./node_modules/lodash/_baseAssignValue.js"), + eq = __webpack_require__("./node_modules/lodash/eq.js"); + +/** + * This function is like `assignValue` except that it doesn't assign + * `undefined` values. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ +function assignMergeValue(object, key, value) { + if ((value !== undefined && !eq(object[key], value)) || + (value === undefined && !(key in object))) { + baseAssignValue(object, key, value); + } +} + +module.exports = assignMergeValue; + + +/***/ }), + +/***/ "./node_modules/lodash/_assignValue.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseAssignValue = __webpack_require__("./node_modules/lodash/_baseAssignValue.js"), + eq = __webpack_require__("./node_modules/lodash/eq.js"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Assigns `value` to `key` of `object` if the existing value is not equivalent + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ +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); + } +} + +module.exports = assignValue; + + +/***/ }), + +/***/ "./node_modules/lodash/_assocIndexOf.js": +/***/ (function(module, exports, __webpack_require__) { + +var eq = __webpack_require__("./node_modules/lodash/eq.js"); + +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; +} + +module.exports = assocIndexOf; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseAssign.js": +/***/ (function(module, exports, __webpack_require__) { + +var copyObject = __webpack_require__("./node_modules/lodash/_copyObject.js"), + keys = __webpack_require__("./node_modules/lodash/keys.js"); + +/** + * The base implementation of `_.assign` without support for multiple sources + * or `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. + */ +function baseAssign(object, source) { + return object && copyObject(source, keys(source), object); +} + +module.exports = baseAssign; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseAssignIn.js": +/***/ (function(module, exports, __webpack_require__) { + +var copyObject = __webpack_require__("./node_modules/lodash/_copyObject.js"), + keysIn = __webpack_require__("./node_modules/lodash/keysIn.js"); + +/** + * The base implementation of `_.assignIn` without support for multiple sources + * or `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. + */ +function baseAssignIn(object, source) { + return object && copyObject(source, keysIn(source), object); +} + +module.exports = baseAssignIn; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseAssignValue.js": +/***/ (function(module, exports, __webpack_require__) { + +var defineProperty = __webpack_require__("./node_modules/lodash/_defineProperty.js"); + +/** + * The base implementation of `assignValue` and `assignMergeValue` without + * value checks. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ +function baseAssignValue(object, key, value) { + if (key == '__proto__' && defineProperty) { + defineProperty(object, key, { + 'configurable': true, + 'enumerable': true, + 'value': value, + 'writable': true + }); + } else { + object[key] = value; + } +} + +module.exports = baseAssignValue; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseClone.js": +/***/ (function(module, exports, __webpack_require__) { + +var Stack = __webpack_require__("./node_modules/lodash/_Stack.js"), + arrayEach = __webpack_require__("./node_modules/lodash/_arrayEach.js"), + assignValue = __webpack_require__("./node_modules/lodash/_assignValue.js"), + baseAssign = __webpack_require__("./node_modules/lodash/_baseAssign.js"), + baseAssignIn = __webpack_require__("./node_modules/lodash/_baseAssignIn.js"), + cloneBuffer = __webpack_require__("./node_modules/lodash/_cloneBuffer.js"), + copyArray = __webpack_require__("./node_modules/lodash/_copyArray.js"), + copySymbols = __webpack_require__("./node_modules/lodash/_copySymbols.js"), + copySymbolsIn = __webpack_require__("./node_modules/lodash/_copySymbolsIn.js"), + getAllKeys = __webpack_require__("./node_modules/lodash/_getAllKeys.js"), + getAllKeysIn = __webpack_require__("./node_modules/lodash/_getAllKeysIn.js"), + getTag = __webpack_require__("./node_modules/lodash/_getTag.js"), + initCloneArray = __webpack_require__("./node_modules/lodash/_initCloneArray.js"), + initCloneByTag = __webpack_require__("./node_modules/lodash/_initCloneByTag.js"), + initCloneObject = __webpack_require__("./node_modules/lodash/_initCloneObject.js"), + isArray = __webpack_require__("./node_modules/lodash/isArray.js"), + isBuffer = __webpack_require__("./node_modules/lodash/isBuffer.js"), + isMap = __webpack_require__("./node_modules/lodash/isMap.js"), + isObject = __webpack_require__("./node_modules/lodash/isObject.js"), + isSet = __webpack_require__("./node_modules/lodash/isSet.js"), + keys = __webpack_require__("./node_modules/lodash/keys.js"), + keysIn = __webpack_require__("./node_modules/lodash/keysIn.js"); + +/** Used to compose bitmasks for cloning. */ +var CLONE_DEEP_FLAG = 1, + CLONE_FLAT_FLAG = 2, + CLONE_SYMBOLS_FLAG = 4; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + mapTag = '[object Map]', + numberTag = '[object Number]', + objectTag = '[object Object]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]', + weakMapTag = '[object WeakMap]'; + +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 identify `toStringTag` values supported by `_.clone`. */ +var cloneableTags = {}; +cloneableTags[argsTag] = cloneableTags[arrayTag] = +cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = +cloneableTags[boolTag] = cloneableTags[dateTag] = +cloneableTags[float32Tag] = cloneableTags[float64Tag] = +cloneableTags[int8Tag] = cloneableTags[int16Tag] = +cloneableTags[int32Tag] = cloneableTags[mapTag] = +cloneableTags[numberTag] = cloneableTags[objectTag] = +cloneableTags[regexpTag] = cloneableTags[setTag] = +cloneableTags[stringTag] = cloneableTags[symbolTag] = +cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = +cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; +cloneableTags[errorTag] = cloneableTags[funcTag] = +cloneableTags[weakMapTag] = false; + +/** + * The base implementation of `_.clone` and `_.cloneDeep` which tracks + * traversed objects. + * + * @private + * @param {*} value The value to clone. + * @param {boolean} bitmask The bitmask flags. + * 1 - Deep clone + * 2 - Flatten inherited properties + * 4 - Clone symbols + * @param {Function} [customizer] The function to customize cloning. + * @param {string} [key] The key of `value`. + * @param {Object} [object] The parent object of `value`. + * @param {Object} [stack] Tracks traversed objects and their clone counterparts. + * @returns {*} Returns the cloned value. + */ +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. + 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). + assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); + }); + return result; +} + +module.exports = baseClone; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseCreate.js": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("./node_modules/lodash/isObject.js"); + +/** Built-in value references. */ +var objectCreate = Object.create; + +/** + * The base implementation of `_.create` without support for assigning + * properties to the created object. + * + * @private + * @param {Object} proto The object to inherit from. + * @returns {Object} Returns the new object. + */ +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; + }; +}()); + +module.exports = baseCreate; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseDifference.js": +/***/ (function(module, exports, __webpack_require__) { + +var SetCache = __webpack_require__("./node_modules/lodash/_SetCache.js"), + arrayIncludes = __webpack_require__("./node_modules/lodash/_arrayIncludes.js"), + arrayIncludesWith = __webpack_require__("./node_modules/lodash/_arrayIncludesWith.js"), + arrayMap = __webpack_require__("./node_modules/lodash/_arrayMap.js"), + baseUnary = __webpack_require__("./node_modules/lodash/_baseUnary.js"), + cacheHas = __webpack_require__("./node_modules/lodash/_cacheHas.js"); + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** + * The base implementation of methods like `_.difference` without support + * for excluding multiple arrays or iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Array} values The values to exclude. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of filtered values. + */ +function baseDifference(array, values, iteratee, comparator) { + var index = -1, + includes = arrayIncludes, + isCommon = true, + length = array.length, + result = [], + valuesLength = values.length; + + if (!length) { + return result; + } + if (iteratee) { + values = arrayMap(values, baseUnary(iteratee)); + } + if (comparator) { + includes = arrayIncludesWith; + isCommon = false; + } + else if (values.length >= LARGE_ARRAY_SIZE) { + includes = cacheHas; + isCommon = false; + values = new SetCache(values); + } + outer: + while (++index < length) { + var value = array[index], + computed = iteratee == null ? value : iteratee(value); + + value = (comparator || value !== 0) ? value : 0; + if (isCommon && computed === computed) { + var valuesIndex = valuesLength; + while (valuesIndex--) { + if (values[valuesIndex] === computed) { + continue outer; + } + } + result.push(value); + } + else if (!includes(values, computed, comparator)) { + result.push(value); + } + } + return result; +} + +module.exports = baseDifference; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseFindIndex.js": +/***/ (function(module, exports) { + +/** + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} predicate The function invoked per iteration. + * @param {number} fromIndex The index to search from. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseFindIndex(array, predicate, fromIndex, fromRight) { + var length = array.length, + index = fromIndex + (fromRight ? 1 : -1); + + while ((fromRight ? index-- : ++index < length)) { + if (predicate(array[index], index, array)) { + return index; + } + } + return -1; +} + +module.exports = baseFindIndex; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseFlatten.js": +/***/ (function(module, exports, __webpack_require__) { + +var arrayPush = __webpack_require__("./node_modules/lodash/_arrayPush.js"), + isFlattenable = __webpack_require__("./node_modules/lodash/_isFlattenable.js"); + +/** + * The base implementation of `_.flatten` with support for restricting flattening. + * + * @private + * @param {Array} array The array to flatten. + * @param {number} depth The maximum recursion depth. + * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. + * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. + * @param {Array} [result=[]] The initial result value. + * @returns {Array} Returns the new flattened array. + */ +function baseFlatten(array, depth, predicate, isStrict, result) { + var index = -1, + length = array.length; + + predicate || (predicate = isFlattenable); + result || (result = []); + + while (++index < length) { + var value = array[index]; + if (depth > 0 && predicate(value)) { + if (depth > 1) { + // Recursively flatten arrays (susceptible to call stack limits). + baseFlatten(value, depth - 1, predicate, isStrict, result); + } else { + arrayPush(result, value); + } + } else if (!isStrict) { + result[result.length] = value; + } + } + return result; +} + +module.exports = baseFlatten; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseFor.js": +/***/ (function(module, exports, __webpack_require__) { + +var createBaseFor = __webpack_require__("./node_modules/lodash/_createBaseFor.js"); + +/** + * The base implementation of `baseForOwn` which iterates over `object` + * properties returned by `keysFunc` and invokes `iteratee` for each property. + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ +var baseFor = createBaseFor(); + +module.exports = baseFor; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseFunctions.js": +/***/ (function(module, exports, __webpack_require__) { + +var arrayFilter = __webpack_require__("./node_modules/lodash/_arrayFilter.js"), + isFunction = __webpack_require__("./node_modules/lodash/isFunction.js"); + +/** + * The base implementation of `_.functions` which creates an array of + * `object` function property names filtered from `props`. + * + * @private + * @param {Object} object The object to inspect. + * @param {Array} props The property names to filter. + * @returns {Array} Returns the function names. + */ +function baseFunctions(object, props) { + return arrayFilter(props, function(key) { + return isFunction(object[key]); + }); +} + +module.exports = baseFunctions; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseGetAllKeys.js": +/***/ (function(module, exports, __webpack_require__) { + +var arrayPush = __webpack_require__("./node_modules/lodash/_arrayPush.js"), + isArray = __webpack_require__("./node_modules/lodash/isArray.js"); + +/** + * The base implementation of `getAllKeys` and `getAllKeysIn` which uses + * `keysFunc` and `symbolsFunc` to get the enumerable property names and + * symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Function} keysFunc The function to get the keys of `object`. + * @param {Function} symbolsFunc The function to get the symbols of `object`. + * @returns {Array} Returns the array of property names and symbols. + */ +function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); +} + +module.exports = baseGetAllKeys; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseGetTag.js": +/***/ (function(module, exports, __webpack_require__) { + +var Symbol = __webpack_require__("./node_modules/lodash/_Symbol.js"), + getRawTag = __webpack_require__("./node_modules/lodash/_getRawTag.js"), + objectToString = __webpack_require__("./node_modules/lodash/_objectToString.js"); + +/** `Object#toString` result references. */ +var nullTag = '[object Null]', + undefinedTag = '[object Undefined]'; + +/** Built-in value references. */ +var symToStringTag = Symbol ? Symbol.toStringTag : undefined; + +/** + * The base implementation of `getTag` without fallbacks for buggy environments. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ +function baseGetTag(value) { + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + return (symToStringTag && symToStringTag in Object(value)) + ? getRawTag(value) + : objectToString(value); +} + +module.exports = baseGetTag; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseIndexOf.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseFindIndex = __webpack_require__("./node_modules/lodash/_baseFindIndex.js"), + baseIsNaN = __webpack_require__("./node_modules/lodash/_baseIsNaN.js"), + strictIndexOf = __webpack_require__("./node_modules/lodash/_strictIndexOf.js"); + +/** + * The base implementation of `_.indexOf` without `fromIndex` bounds checks. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseIndexOf(array, value, fromIndex) { + return value === value + ? strictIndexOf(array, value, fromIndex) + : baseFindIndex(array, baseIsNaN, fromIndex); +} + +module.exports = baseIndexOf; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseIsArguments.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("./node_modules/lodash/_baseGetTag.js"), + isObjectLike = __webpack_require__("./node_modules/lodash/isObjectLike.js"); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]'; + +/** + * The base implementation of `_.isArguments`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + */ +function baseIsArguments(value) { + return isObjectLike(value) && baseGetTag(value) == argsTag; +} + +module.exports = baseIsArguments; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseIsMap.js": +/***/ (function(module, exports, __webpack_require__) { + +var getTag = __webpack_require__("./node_modules/lodash/_getTag.js"), + isObjectLike = __webpack_require__("./node_modules/lodash/isObjectLike.js"); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]'; + +/** + * The base implementation of `_.isMap` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. + */ +function baseIsMap(value) { + return isObjectLike(value) && getTag(value) == mapTag; +} + +module.exports = baseIsMap; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseIsNaN.js": +/***/ (function(module, exports) { + +/** + * The base implementation of `_.isNaN` without support for number objects. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + */ +function baseIsNaN(value) { + return value !== value; +} + +module.exports = baseIsNaN; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseIsNative.js": +/***/ (function(module, exports, __webpack_require__) { + +var isFunction = __webpack_require__("./node_modules/lodash/isFunction.js"), + isMasked = __webpack_require__("./node_modules/lodash/_isMasked.js"), + isObject = __webpack_require__("./node_modules/lodash/isObject.js"), + toSource = __webpack_require__("./node_modules/lodash/_toSource.js"); + +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; + +/** Used for built-in method references. */ +var funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Used to detect if a method is native. */ +var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' +); + +/** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ +function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); +} + +module.exports = baseIsNative; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseIsSet.js": +/***/ (function(module, exports, __webpack_require__) { + +var getTag = __webpack_require__("./node_modules/lodash/_getTag.js"), + isObjectLike = __webpack_require__("./node_modules/lodash/isObjectLike.js"); + +/** `Object#toString` result references. */ +var setTag = '[object Set]'; + +/** + * The base implementation of `_.isSet` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. + */ +function baseIsSet(value) { + return isObjectLike(value) && getTag(value) == setTag; +} + +module.exports = baseIsSet; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseIsTypedArray.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("./node_modules/lodash/_baseGetTag.js"), + isLength = __webpack_require__("./node_modules/lodash/isLength.js"), + isObjectLike = __webpack_require__("./node_modules/lodash/isObjectLike.js"); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + mapTag = '[object Map]', + numberTag = '[object Number]', + objectTag = '[object Object]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + weakMapTag = '[object WeakMap]'; + +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 identify `toStringTag` values of typed arrays. */ +var typedArrayTags = {}; +typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = +typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = +typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = +typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = +typedArrayTags[uint32Tag] = true; +typedArrayTags[argsTag] = typedArrayTags[arrayTag] = +typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = +typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = +typedArrayTags[errorTag] = typedArrayTags[funcTag] = +typedArrayTags[mapTag] = typedArrayTags[numberTag] = +typedArrayTags[objectTag] = typedArrayTags[regexpTag] = +typedArrayTags[setTag] = typedArrayTags[stringTag] = +typedArrayTags[weakMapTag] = false; + +/** + * The base implementation of `_.isTypedArray` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + */ +function baseIsTypedArray(value) { + return isObjectLike(value) && + isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; +} + +module.exports = baseIsTypedArray; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseKeys.js": +/***/ (function(module, exports, __webpack_require__) { + +var isPrototype = __webpack_require__("./node_modules/lodash/_isPrototype.js"), + nativeKeys = __webpack_require__("./node_modules/lodash/_nativeKeys.js"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != 'constructor') { + result.push(key); + } + } + return result; +} + +module.exports = baseKeys; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseKeysIn.js": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("./node_modules/lodash/isObject.js"), + isPrototype = __webpack_require__("./node_modules/lodash/_isPrototype.js"), + nativeKeysIn = __webpack_require__("./node_modules/lodash/_nativeKeysIn.js"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function baseKeysIn(object) { + if (!isObject(object)) { + return nativeKeysIn(object); + } + var isProto = isPrototype(object), + result = []; + + for (var key in object) { + if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } + } + return result; +} + +module.exports = baseKeysIn; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseMerge.js": +/***/ (function(module, exports, __webpack_require__) { + +var Stack = __webpack_require__("./node_modules/lodash/_Stack.js"), + assignMergeValue = __webpack_require__("./node_modules/lodash/_assignMergeValue.js"), + baseFor = __webpack_require__("./node_modules/lodash/_baseFor.js"), + baseMergeDeep = __webpack_require__("./node_modules/lodash/_baseMergeDeep.js"), + isObject = __webpack_require__("./node_modules/lodash/isObject.js"), + keysIn = __webpack_require__("./node_modules/lodash/keysIn.js"), + safeGet = __webpack_require__("./node_modules/lodash/_safeGet.js"); + +/** + * The base implementation of `_.merge` without support for multiple sources. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @param {number} srcIndex The index of `source`. + * @param {Function} [customizer] The function to customize merged values. + * @param {Object} [stack] Tracks traversed source values and their merged + * counterparts. + */ +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); +} + +module.exports = baseMerge; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseMergeDeep.js": +/***/ (function(module, exports, __webpack_require__) { + +var assignMergeValue = __webpack_require__("./node_modules/lodash/_assignMergeValue.js"), + cloneBuffer = __webpack_require__("./node_modules/lodash/_cloneBuffer.js"), + cloneTypedArray = __webpack_require__("./node_modules/lodash/_cloneTypedArray.js"), + copyArray = __webpack_require__("./node_modules/lodash/_copyArray.js"), + initCloneObject = __webpack_require__("./node_modules/lodash/_initCloneObject.js"), + isArguments = __webpack_require__("./node_modules/lodash/isArguments.js"), + isArray = __webpack_require__("./node_modules/lodash/isArray.js"), + isArrayLikeObject = __webpack_require__("./node_modules/lodash/isArrayLikeObject.js"), + isBuffer = __webpack_require__("./node_modules/lodash/isBuffer.js"), + isFunction = __webpack_require__("./node_modules/lodash/isFunction.js"), + isObject = __webpack_require__("./node_modules/lodash/isObject.js"), + isPlainObject = __webpack_require__("./node_modules/lodash/isPlainObject.js"), + isTypedArray = __webpack_require__("./node_modules/lodash/isTypedArray.js"), + safeGet = __webpack_require__("./node_modules/lodash/_safeGet.js"), + toPlainObject = __webpack_require__("./node_modules/lodash/toPlainObject.js"); + +/** + * A specialized version of `baseMerge` for arrays and objects which performs + * deep merges and tracks traversed objects enabling objects with circular + * references to be merged. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @param {string} key The key of the value to merge. + * @param {number} srcIndex The index of `source`. + * @param {Function} mergeFunc The function to merge values. + * @param {Function} [customizer] The function to customize assigned values. + * @param {Object} [stack] Tracks traversed source values and their merged + * counterparts. + */ +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). + stack.set(srcValue, newValue); + mergeFunc(newValue, srcValue, srcIndex, customizer, stack); + stack['delete'](srcValue); + } + assignMergeValue(object, key, newValue); +} + +module.exports = baseMergeDeep; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseRest.js": +/***/ (function(module, exports, __webpack_require__) { + +var identity = __webpack_require__("./node_modules/lodash/identity.js"), + overRest = __webpack_require__("./node_modules/lodash/_overRest.js"), + setToString = __webpack_require__("./node_modules/lodash/_setToString.js"); + +/** + * The base implementation of `_.rest` which doesn't validate or coerce arguments. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + */ +function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + ''); +} + +module.exports = baseRest; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseSetToString.js": +/***/ (function(module, exports, __webpack_require__) { + +var constant = __webpack_require__("./node_modules/lodash/constant.js"), + defineProperty = __webpack_require__("./node_modules/lodash/_defineProperty.js"), + identity = __webpack_require__("./node_modules/lodash/identity.js"); + +/** + * The base implementation of `setToString` without support for hot loop shorting. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ +var baseSetToString = !defineProperty ? identity : function(func, string) { + return defineProperty(func, 'toString', { + 'configurable': true, + 'enumerable': false, + 'value': constant(string), + 'writable': true + }); +}; + +module.exports = baseSetToString; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseSlice.js": +/***/ (function(module, exports) { + +/** + * The base implementation of `_.slice` without an iteratee call guard. + * + * @private + * @param {Array} array The array to slice. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the slice of `array`. + */ +function baseSlice(array, start, end) { + var index = -1, + length = array.length; + + if (start < 0) { + start = -start > length ? 0 : (length + start); + } + end = end > length ? length : end; + if (end < 0) { + end += length; + } + length = start > end ? 0 : ((end - start) >>> 0); + start >>>= 0; + + var result = Array(length); + while (++index < length) { + result[index] = array[index + start]; + } + return result; +} + +module.exports = baseSlice; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseTimes.js": +/***/ (function(module, exports) { + +/** + * The base implementation of `_.times` without support for iteratee shorthands + * or max array length checks. + * + * @private + * @param {number} n The number of times to invoke `iteratee`. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the array of results. + */ +function baseTimes(n, iteratee) { + var index = -1, + result = Array(n); + + while (++index < n) { + result[index] = iteratee(index); + } + return result; +} + +module.exports = baseTimes; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseToString.js": +/***/ (function(module, exports, __webpack_require__) { + +var Symbol = __webpack_require__("./node_modules/lodash/_Symbol.js"), + arrayMap = __webpack_require__("./node_modules/lodash/_arrayMap.js"), + isArray = __webpack_require__("./node_modules/lodash/isArray.js"), + isSymbol = __webpack_require__("./node_modules/lodash/isSymbol.js"); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolToString = symbolProto ? symbolProto.toString : undefined; + +/** + * The base implementation of `_.toString` which doesn't convert nullish + * values to empty strings. + * + * @private + * @param {*} value The value to process. + * @returns {string} Returns the string. + */ +function baseToString(value) { + // Exit early for strings to avoid a performance hit in some environments. + if (typeof value == 'string') { + return value; + } + if (isArray(value)) { + // Recursively convert values (susceptible to call stack limits). + return arrayMap(value, baseToString) + ''; + } + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ''; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; +} + +module.exports = baseToString; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseTrim.js": +/***/ (function(module, exports, __webpack_require__) { + +var trimmedEndIndex = __webpack_require__("./node_modules/lodash/_trimmedEndIndex.js"); + +/** Used to match leading whitespace. */ +var reTrimStart = /^\s+/; + +/** + * The base implementation of `_.trim`. + * + * @private + * @param {string} string The string to trim. + * @returns {string} Returns the trimmed string. + */ +function baseTrim(string) { + return string + ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '') + : string; +} + +module.exports = baseTrim; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseUnary.js": +/***/ (function(module, exports) { + +/** + * The base implementation of `_.unary` without support for storing metadata. + * + * @private + * @param {Function} func The function to cap arguments for. + * @returns {Function} Returns the new capped function. + */ +function baseUnary(func) { + return function(value) { + return func(value); + }; +} + +module.exports = baseUnary; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseValues.js": +/***/ (function(module, exports, __webpack_require__) { + +var arrayMap = __webpack_require__("./node_modules/lodash/_arrayMap.js"); + +/** + * The base implementation of `_.values` and `_.valuesIn` which creates an + * array of `object` property values corresponding to the property names + * of `props`. + * + * @private + * @param {Object} object The object to query. + * @param {Array} props The property names to get values for. + * @returns {Object} Returns the array of property values. + */ +function baseValues(object, props) { + return arrayMap(props, function(key) { + return object[key]; + }); +} + +module.exports = baseValues; + + +/***/ }), + +/***/ "./node_modules/lodash/_cacheHas.js": +/***/ (function(module, exports) { + +/** + * Checks if a `cache` value for `key` exists. + * + * @private + * @param {Object} cache The cache to query. + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function cacheHas(cache, key) { + return cache.has(key); +} + +module.exports = cacheHas; + + +/***/ }), + +/***/ "./node_modules/lodash/_castSlice.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseSlice = __webpack_require__("./node_modules/lodash/_baseSlice.js"); + +/** + * Casts `array` to a slice if it's needed. + * + * @private + * @param {Array} array The array to inspect. + * @param {number} start The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the cast slice. + */ +function castSlice(array, start, end) { + var length = array.length; + end = end === undefined ? length : end; + return (!start && end >= length) ? array : baseSlice(array, start, end); +} + +module.exports = castSlice; + + +/***/ }), + +/***/ "./node_modules/lodash/_charsEndIndex.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseIndexOf = __webpack_require__("./node_modules/lodash/_baseIndexOf.js"); + +/** + * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol + * that is not found in the character symbols. + * + * @private + * @param {Array} strSymbols The string symbols to inspect. + * @param {Array} chrSymbols The character symbols to find. + * @returns {number} Returns the index of the last unmatched string symbol. + */ +function charsEndIndex(strSymbols, chrSymbols) { + var index = strSymbols.length; + + while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {} + return index; +} + +module.exports = charsEndIndex; + + +/***/ }), + +/***/ "./node_modules/lodash/_charsStartIndex.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseIndexOf = __webpack_require__("./node_modules/lodash/_baseIndexOf.js"); + +/** + * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol + * that is not found in the character symbols. + * + * @private + * @param {Array} strSymbols The string symbols to inspect. + * @param {Array} chrSymbols The character symbols to find. + * @returns {number} Returns the index of the first unmatched string symbol. + */ +function charsStartIndex(strSymbols, chrSymbols) { + var index = -1, + length = strSymbols.length; + + while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {} + return index; +} + +module.exports = charsStartIndex; + + +/***/ }), + +/***/ "./node_modules/lodash/_cloneArrayBuffer.js": +/***/ (function(module, exports, __webpack_require__) { + +var Uint8Array = __webpack_require__("./node_modules/lodash/_Uint8Array.js"); + +/** + * Creates a clone of `arrayBuffer`. + * + * @private + * @param {ArrayBuffer} arrayBuffer The array buffer to clone. + * @returns {ArrayBuffer} Returns the cloned array buffer. + */ +function cloneArrayBuffer(arrayBuffer) { + var result = new arrayBuffer.constructor(arrayBuffer.byteLength); + new Uint8Array(result).set(new Uint8Array(arrayBuffer)); + return result; +} + +module.exports = cloneArrayBuffer; + + +/***/ }), + +/***/ "./node_modules/lodash/_cloneBuffer.js": +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("./node_modules/lodash/_root.js"); + +/** Detect free variable `exports`. */ +var freeExports = true && exports && !exports.nodeType && exports; + +/** Detect free variable `module`. */ +var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports = freeModule && freeModule.exports === freeExports; + +/** Built-in value references. */ +var Buffer = moduleExports ? root.Buffer : undefined, + allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined; + +/** + * Creates a clone of `buffer`. + * + * @private + * @param {Buffer} buffer The buffer to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Buffer} Returns the cloned buffer. + */ +function cloneBuffer(buffer, isDeep) { + if (isDeep) { + return buffer.slice(); + } + var length = buffer.length, + result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); + + buffer.copy(result); + return result; +} + +module.exports = cloneBuffer; + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("./node_modules/webpack/buildin/module.js")(module))) + +/***/ }), + +/***/ "./node_modules/lodash/_cloneDataView.js": +/***/ (function(module, exports, __webpack_require__) { + +var cloneArrayBuffer = __webpack_require__("./node_modules/lodash/_cloneArrayBuffer.js"); + +/** + * Creates a clone of `dataView`. + * + * @private + * @param {Object} dataView The data view to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned data view. + */ +function cloneDataView(dataView, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; + return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); +} + +module.exports = cloneDataView; + + +/***/ }), + +/***/ "./node_modules/lodash/_cloneRegExp.js": +/***/ (function(module, exports) { + +/** Used to match `RegExp` flags from their coerced string values. */ +var reFlags = /\w*$/; + +/** + * Creates a clone of `regexp`. + * + * @private + * @param {Object} regexp The regexp to clone. + * @returns {Object} Returns the cloned regexp. + */ +function cloneRegExp(regexp) { + var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); + result.lastIndex = regexp.lastIndex; + return result; +} + +module.exports = cloneRegExp; + + +/***/ }), + +/***/ "./node_modules/lodash/_cloneSymbol.js": +/***/ (function(module, exports, __webpack_require__) { + +var Symbol = __webpack_require__("./node_modules/lodash/_Symbol.js"); + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; + +/** + * Creates a clone of the `symbol` object. + * + * @private + * @param {Object} symbol The symbol object to clone. + * @returns {Object} Returns the cloned symbol object. + */ +function cloneSymbol(symbol) { + return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; +} + +module.exports = cloneSymbol; + + +/***/ }), + +/***/ "./node_modules/lodash/_cloneTypedArray.js": +/***/ (function(module, exports, __webpack_require__) { + +var cloneArrayBuffer = __webpack_require__("./node_modules/lodash/_cloneArrayBuffer.js"); + +/** + * Creates a clone of `typedArray`. + * + * @private + * @param {Object} typedArray The typed array to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned typed array. + */ +function cloneTypedArray(typedArray, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; + return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); +} + +module.exports = cloneTypedArray; + + +/***/ }), + +/***/ "./node_modules/lodash/_copyArray.js": +/***/ (function(module, exports) { + +/** + * Copies the values of `source` to `array`. + * + * @private + * @param {Array} source The array to copy values from. + * @param {Array} [array=[]] The array to copy values to. + * @returns {Array} Returns `array`. + */ +function copyArray(source, array) { + var index = -1, + length = source.length; + + array || (array = Array(length)); + while (++index < length) { + array[index] = source[index]; + } + return array; +} + +module.exports = copyArray; + + +/***/ }), + +/***/ "./node_modules/lodash/_copyObject.js": +/***/ (function(module, exports, __webpack_require__) { + +var assignValue = __webpack_require__("./node_modules/lodash/_assignValue.js"), + baseAssignValue = __webpack_require__("./node_modules/lodash/_baseAssignValue.js"); + +/** + * Copies properties of `source` to `object`. + * + * @private + * @param {Object} source The object to copy properties from. + * @param {Array} props The property identifiers to copy. + * @param {Object} [object={}] The object to copy properties to. + * @param {Function} [customizer] The function to customize copied values. + * @returns {Object} Returns `object`. + */ +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; +} + +module.exports = copyObject; + + +/***/ }), + +/***/ "./node_modules/lodash/_copySymbols.js": +/***/ (function(module, exports, __webpack_require__) { + +var copyObject = __webpack_require__("./node_modules/lodash/_copyObject.js"), + getSymbols = __webpack_require__("./node_modules/lodash/_getSymbols.js"); + +/** + * Copies own symbols of `source` to `object`. + * + * @private + * @param {Object} source The object to copy symbols from. + * @param {Object} [object={}] The object to copy symbols to. + * @returns {Object} Returns `object`. + */ +function copySymbols(source, object) { + return copyObject(source, getSymbols(source), object); +} + +module.exports = copySymbols; + + +/***/ }), + +/***/ "./node_modules/lodash/_copySymbolsIn.js": +/***/ (function(module, exports, __webpack_require__) { + +var copyObject = __webpack_require__("./node_modules/lodash/_copyObject.js"), + getSymbolsIn = __webpack_require__("./node_modules/lodash/_getSymbolsIn.js"); + +/** + * Copies own and inherited symbols of `source` to `object`. + * + * @private + * @param {Object} source The object to copy symbols from. + * @param {Object} [object={}] The object to copy symbols to. + * @returns {Object} Returns `object`. + */ +function copySymbolsIn(source, object) { + return copyObject(source, getSymbolsIn(source), object); +} + +module.exports = copySymbolsIn; + + +/***/ }), + +/***/ "./node_modules/lodash/_coreJsData.js": +/***/ (function(module, exports, __webpack_require__) { + +var root = __webpack_require__("./node_modules/lodash/_root.js"); + +/** Used to detect overreaching core-js shims. */ +var coreJsData = root['__core-js_shared__']; + +module.exports = coreJsData; + + +/***/ }), + +/***/ "./node_modules/lodash/_createAssigner.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseRest = __webpack_require__("./node_modules/lodash/_baseRest.js"), + isIterateeCall = __webpack_require__("./node_modules/lodash/_isIterateeCall.js"); + +/** + * Creates a function like `_.assign`. + * + * @private + * @param {Function} assigner The function to assign values. + * @returns {Function} Returns the new assigner function. + */ +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; + }); +} + +module.exports = createAssigner; + + +/***/ }), + +/***/ "./node_modules/lodash/_createBaseFor.js": +/***/ (function(module, exports) { + +/** + * Creates a base function for methods like `_.forIn` and `_.forOwn`. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, + iterable = Object(object), + props = keysFunc(object), + length = props.length; + + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; +} + +module.exports = createBaseFor; + + +/***/ }), + +/***/ "./node_modules/lodash/_defineProperty.js": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("./node_modules/lodash/_getNative.js"); + +var defineProperty = (function() { + try { + var func = getNative(Object, 'defineProperty'); + func({}, '', {}); + return func; + } catch (e) {} +}()); + +module.exports = defineProperty; + + +/***/ }), + +/***/ "./node_modules/lodash/_freeGlobal.js": +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ +var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + +module.exports = freeGlobal; + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("./node_modules/webpack/buildin/global.js"))) + +/***/ }), + +/***/ "./node_modules/lodash/_getAllKeys.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetAllKeys = __webpack_require__("./node_modules/lodash/_baseGetAllKeys.js"), + getSymbols = __webpack_require__("./node_modules/lodash/_getSymbols.js"), + keys = __webpack_require__("./node_modules/lodash/keys.js"); + +/** + * Creates an array of own enumerable property names and symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names and symbols. + */ +function getAllKeys(object) { + return baseGetAllKeys(object, keys, getSymbols); +} + +module.exports = getAllKeys; + + +/***/ }), + +/***/ "./node_modules/lodash/_getAllKeysIn.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetAllKeys = __webpack_require__("./node_modules/lodash/_baseGetAllKeys.js"), + getSymbolsIn = __webpack_require__("./node_modules/lodash/_getSymbolsIn.js"), + keysIn = __webpack_require__("./node_modules/lodash/keysIn.js"); + +/** + * Creates an array of own and inherited enumerable property names and + * symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names and symbols. + */ +function getAllKeysIn(object) { + return baseGetAllKeys(object, keysIn, getSymbolsIn); +} + +module.exports = getAllKeysIn; + + +/***/ }), + +/***/ "./node_modules/lodash/_getMapData.js": +/***/ (function(module, exports, __webpack_require__) { + +var isKeyable = __webpack_require__("./node_modules/lodash/_isKeyable.js"); + +/** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ +function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; +} + +module.exports = getMapData; + + +/***/ }), + +/***/ "./node_modules/lodash/_getNative.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsNative = __webpack_require__("./node_modules/lodash/_baseIsNative.js"), + getValue = __webpack_require__("./node_modules/lodash/_getValue.js"); + +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; +} + +module.exports = getNative; + + +/***/ }), + +/***/ "./node_modules/lodash/_getPrototype.js": +/***/ (function(module, exports, __webpack_require__) { + +var overArg = __webpack_require__("./node_modules/lodash/_overArg.js"); + +/** Built-in value references. */ +var getPrototype = overArg(Object.getPrototypeOf, Object); + +module.exports = getPrototype; + + +/***/ }), + +/***/ "./node_modules/lodash/_getRawTag.js": +/***/ (function(module, exports, __webpack_require__) { + +var Symbol = __webpack_require__("./node_modules/lodash/_Symbol.js"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** Built-in value references. */ +var symToStringTag = Symbol ? Symbol.toStringTag : undefined; + +/** + * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the raw `toStringTag`. + */ +function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), + tag = value[symToStringTag]; + + try { + value[symToStringTag] = undefined; + var unmasked = true; + } catch (e) {} + + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } + } + return result; +} + +module.exports = getRawTag; + + +/***/ }), + +/***/ "./node_modules/lodash/_getSymbols.js": +/***/ (function(module, exports, __webpack_require__) { + +var arrayFilter = __webpack_require__("./node_modules/lodash/_arrayFilter.js"), + stubArray = __webpack_require__("./node_modules/lodash/stubArray.js"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeGetSymbols = Object.getOwnPropertySymbols; + +/** + * Creates an array of the own enumerable symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. + */ +var getSymbols = !nativeGetSymbols ? stubArray : function(object) { + if (object == null) { + return []; + } + object = Object(object); + return arrayFilter(nativeGetSymbols(object), function(symbol) { + return propertyIsEnumerable.call(object, symbol); + }); +}; + +module.exports = getSymbols; + + +/***/ }), + +/***/ "./node_modules/lodash/_getSymbolsIn.js": +/***/ (function(module, exports, __webpack_require__) { + +var arrayPush = __webpack_require__("./node_modules/lodash/_arrayPush.js"), + getPrototype = __webpack_require__("./node_modules/lodash/_getPrototype.js"), + getSymbols = __webpack_require__("./node_modules/lodash/_getSymbols.js"), + stubArray = __webpack_require__("./node_modules/lodash/stubArray.js"); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeGetSymbols = Object.getOwnPropertySymbols; + +/** + * Creates an array of the own and inherited enumerable symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. + */ +var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { + var result = []; + while (object) { + arrayPush(result, getSymbols(object)); + object = getPrototype(object); + } + return result; +}; + +module.exports = getSymbolsIn; + + +/***/ }), + +/***/ "./node_modules/lodash/_getTag.js": +/***/ (function(module, exports, __webpack_require__) { + +var DataView = __webpack_require__("./node_modules/lodash/_DataView.js"), + Map = __webpack_require__("./node_modules/lodash/_Map.js"), + Promise = __webpack_require__("./node_modules/lodash/_Promise.js"), + Set = __webpack_require__("./node_modules/lodash/_Set.js"), + WeakMap = __webpack_require__("./node_modules/lodash/_WeakMap.js"), + baseGetTag = __webpack_require__("./node_modules/lodash/_baseGetTag.js"), + toSource = __webpack_require__("./node_modules/lodash/_toSource.js"); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]', + objectTag = '[object Object]', + promiseTag = '[object Promise]', + setTag = '[object Set]', + weakMapTag = '[object WeakMap]'; + +var dataViewTag = '[object DataView]'; + +/** Used to detect maps, sets, and weakmaps. */ +var dataViewCtorString = toSource(DataView), + mapCtorString = toSource(Map), + promiseCtorString = toSource(Promise), + setCtorString = toSource(Set), + weakMapCtorString = toSource(WeakMap); + +/** + * Gets the `toStringTag` of `value`. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ +var getTag = baseGetTag; + +// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. +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; + }; +} + +module.exports = getTag; + + +/***/ }), + +/***/ "./node_modules/lodash/_getValue.js": +/***/ (function(module, exports) { + +/** + * Gets the value at `key` of `object`. + * + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ +function getValue(object, key) { + return object == null ? undefined : object[key]; +} + +module.exports = getValue; + + +/***/ }), + +/***/ "./node_modules/lodash/_hasUnicode.js": +/***/ (function(module, exports) { + +/** Used to compose unicode character classes. */ +var rsAstralRange = '\\ud800-\\udfff', + rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, + rsVarRange = '\\ufe0e\\ufe0f'; + +/** Used to compose unicode capture groups. */ +var rsZWJ = '\\u200d'; + +/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ +var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']'); + +/** + * Checks if `string` contains Unicode symbols. + * + * @private + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a symbol is found, else `false`. + */ +function hasUnicode(string) { + return reHasUnicode.test(string); +} + +module.exports = hasUnicode; + + +/***/ }), + +/***/ "./node_modules/lodash/_hashClear.js": +/***/ (function(module, exports, __webpack_require__) { + +var nativeCreate = __webpack_require__("./node_modules/lodash/_nativeCreate.js"); + +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; +} + +module.exports = hashClear; + + +/***/ }), + +/***/ "./node_modules/lodash/_hashDelete.js": +/***/ (function(module, exports) { + +/** + * Removes `key` and its value from the hash. + * + * @private + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; +} + +module.exports = hashDelete; + + +/***/ }), + +/***/ "./node_modules/lodash/_hashGet.js": +/***/ (function(module, exports, __webpack_require__) { + +var nativeCreate = __webpack_require__("./node_modules/lodash/_nativeCreate.js"); + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +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; +} + +module.exports = hashGet; + + +/***/ }), + +/***/ "./node_modules/lodash/_hashHas.js": +/***/ (function(module, exports, __webpack_require__) { + +var nativeCreate = __webpack_require__("./node_modules/lodash/_nativeCreate.js"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas(key) { + var data = this.__data__; + return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); +} + +module.exports = hashHas; + + +/***/ }), + +/***/ "./node_modules/lodash/_hashSet.js": +/***/ (function(module, exports, __webpack_require__) { + +var nativeCreate = __webpack_require__("./node_modules/lodash/_nativeCreate.js"); + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +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; +} + +module.exports = hashSet; + + +/***/ }), + +/***/ "./node_modules/lodash/_initCloneArray.js": +/***/ (function(module, exports) { + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Initializes an array clone. + * + * @private + * @param {Array} array The array to clone. + * @returns {Array} Returns the initialized clone. + */ +function initCloneArray(array) { + var length = array.length, + result = new array.constructor(length); + + // Add properties assigned by `RegExp#exec`. + if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { + result.index = array.index; + result.input = array.input; + } + return result; +} + +module.exports = initCloneArray; + + +/***/ }), + +/***/ "./node_modules/lodash/_initCloneByTag.js": +/***/ (function(module, exports, __webpack_require__) { + +var cloneArrayBuffer = __webpack_require__("./node_modules/lodash/_cloneArrayBuffer.js"), + cloneDataView = __webpack_require__("./node_modules/lodash/_cloneDataView.js"), + cloneRegExp = __webpack_require__("./node_modules/lodash/_cloneRegExp.js"), + cloneSymbol = __webpack_require__("./node_modules/lodash/_cloneSymbol.js"), + cloneTypedArray = __webpack_require__("./node_modules/lodash/_cloneTypedArray.js"); + +/** `Object#toString` result references. */ +var boolTag = '[object Boolean]', + dateTag = '[object Date]', + mapTag = '[object Map]', + numberTag = '[object Number]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]'; + +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]'; + +/** + * Initializes an object clone based on its `toStringTag`. + * + * **Note:** This function only supports cloning values with tags of + * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. + * + * @private + * @param {Object} object The object to clone. + * @param {string} tag The `toStringTag` of the object to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the initialized clone. + */ +function initCloneByTag(object, tag, isDeep) { + var Ctor = object.constructor; + switch (tag) { + case arrayBufferTag: + return cloneArrayBuffer(object); + + case boolTag: + case dateTag: + return new Ctor(+object); + + case dataViewTag: + return cloneDataView(object, isDeep); + + case float32Tag: case float64Tag: + case int8Tag: case int16Tag: case int32Tag: + case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: + return cloneTypedArray(object, isDeep); + + case mapTag: + return new Ctor; + + case numberTag: + case stringTag: + return new Ctor(object); + + case regexpTag: + return cloneRegExp(object); + + case setTag: + return new Ctor; + + case symbolTag: + return cloneSymbol(object); + } +} + +module.exports = initCloneByTag; + + +/***/ }), + +/***/ "./node_modules/lodash/_initCloneObject.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseCreate = __webpack_require__("./node_modules/lodash/_baseCreate.js"), + getPrototype = __webpack_require__("./node_modules/lodash/_getPrototype.js"), + isPrototype = __webpack_require__("./node_modules/lodash/_isPrototype.js"); + +/** + * Initializes an object clone. + * + * @private + * @param {Object} object The object to clone. + * @returns {Object} Returns the initialized clone. + */ +function initCloneObject(object) { + return (typeof object.constructor == 'function' && !isPrototype(object)) + ? baseCreate(getPrototype(object)) + : {}; +} + +module.exports = initCloneObject; + + +/***/ }), + +/***/ "./node_modules/lodash/_isFlattenable.js": +/***/ (function(module, exports, __webpack_require__) { + +var Symbol = __webpack_require__("./node_modules/lodash/_Symbol.js"), + isArguments = __webpack_require__("./node_modules/lodash/isArguments.js"), + isArray = __webpack_require__("./node_modules/lodash/isArray.js"); + +/** Built-in value references. */ +var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; + +/** + * Checks if `value` is a flattenable `arguments` object or array. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. + */ +function isFlattenable(value) { + return isArray(value) || isArguments(value) || + !!(spreadableSymbol && value && value[spreadableSymbol]); +} + +module.exports = isFlattenable; + + +/***/ }), + +/***/ "./node_modules/lodash/_isIndex.js": +/***/ (function(module, exports) { + +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** Used to detect unsigned integer values. */ +var reIsUint = /^(?:0|[1-9]\d*)$/; + +/** + * Checks if `value` is a valid array-like index. + * + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. + */ +function isIndex(value, length) { + var type = typeof value; + length = length == null ? MAX_SAFE_INTEGER : length; + + return !!length && + (type == 'number' || + (type != 'symbol' && reIsUint.test(value))) && + (value > -1 && value % 1 == 0 && value < length); +} + +module.exports = isIndex; + + +/***/ }), + +/***/ "./node_modules/lodash/_isIterateeCall.js": +/***/ (function(module, exports, __webpack_require__) { + +var eq = __webpack_require__("./node_modules/lodash/eq.js"), + isArrayLike = __webpack_require__("./node_modules/lodash/isArrayLike.js"), + isIndex = __webpack_require__("./node_modules/lodash/_isIndex.js"), + isObject = __webpack_require__("./node_modules/lodash/isObject.js"); + +/** + * Checks if the given arguments are from an iteratee call. + * + * @private + * @param {*} value The potential iteratee value argument. + * @param {*} index The potential iteratee index or key argument. + * @param {*} object The potential iteratee object argument. + * @returns {boolean} Returns `true` if the arguments are from an iteratee call, + * else `false`. + */ +function isIterateeCall(value, index, object) { + if (!isObject(object)) { + return false; + } + var type = typeof index; + if (type == 'number' + ? (isArrayLike(object) && isIndex(index, object.length)) + : (type == 'string' && index in object) + ) { + return eq(object[index], value); + } + return false; +} + +module.exports = isIterateeCall; + + +/***/ }), + +/***/ "./node_modules/lodash/_isKeyable.js": +/***/ (function(module, exports) { + +/** + * Checks if `value` is suitable for use as unique object key. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. + */ +function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); +} + +module.exports = isKeyable; + + +/***/ }), + +/***/ "./node_modules/lodash/_isMasked.js": +/***/ (function(module, exports, __webpack_require__) { + +var coreJsData = __webpack_require__("./node_modules/lodash/_coreJsData.js"); + +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; +}()); + +/** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ +function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); +} + +module.exports = isMasked; + + +/***/ }), + +/***/ "./node_modules/lodash/_isPrototype.js": +/***/ (function(module, exports) { + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Checks if `value` is likely a prototype object. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. + */ +function isPrototype(value) { + var Ctor = value && value.constructor, + proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; + + return value === proto; +} + +module.exports = isPrototype; + + +/***/ }), + +/***/ "./node_modules/lodash/_listCacheClear.js": +/***/ (function(module, exports) { + +/** + * Removes all key-value entries from the list cache. + * + * @private + * @name clear + * @memberOf ListCache + */ +function listCacheClear() { + this.__data__ = []; + this.size = 0; +} + +module.exports = listCacheClear; + + +/***/ }), + +/***/ "./node_modules/lodash/_listCacheDelete.js": +/***/ (function(module, exports, __webpack_require__) { + +var assocIndexOf = __webpack_require__("./node_modules/lodash/_assocIndexOf.js"); + +/** Used for built-in method references. */ +var arrayProto = Array.prototype; + +/** Built-in value references. */ +var splice = arrayProto.splice; + +/** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; +} + +module.exports = listCacheDelete; + + +/***/ }), + +/***/ "./node_modules/lodash/_listCacheGet.js": +/***/ (function(module, exports, __webpack_require__) { + +var assocIndexOf = __webpack_require__("./node_modules/lodash/_assocIndexOf.js"); + +/** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; +} + +module.exports = listCacheGet; + + +/***/ }), + +/***/ "./node_modules/lodash/_listCacheHas.js": +/***/ (function(module, exports, __webpack_require__) { + +var assocIndexOf = __webpack_require__("./node_modules/lodash/_assocIndexOf.js"); + +/** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; +} + +module.exports = listCacheHas; + + +/***/ }), + +/***/ "./node_modules/lodash/_listCacheSet.js": +/***/ (function(module, exports, __webpack_require__) { + +var assocIndexOf = __webpack_require__("./node_modules/lodash/_assocIndexOf.js"); + +/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ +function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; +} + +module.exports = listCacheSet; + + +/***/ }), + +/***/ "./node_modules/lodash/_mapCacheClear.js": +/***/ (function(module, exports, __webpack_require__) { + +var Hash = __webpack_require__("./node_modules/lodash/_Hash.js"), + ListCache = __webpack_require__("./node_modules/lodash/_ListCache.js"), + Map = __webpack_require__("./node_modules/lodash/_Map.js"); + +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; +} + +module.exports = mapCacheClear; + + +/***/ }), + +/***/ "./node_modules/lodash/_mapCacheDelete.js": +/***/ (function(module, exports, __webpack_require__) { + +var getMapData = __webpack_require__("./node_modules/lodash/_getMapData.js"); + +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete(key) { + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; +} + +module.exports = mapCacheDelete; + + +/***/ }), + +/***/ "./node_modules/lodash/_mapCacheGet.js": +/***/ (function(module, exports, __webpack_require__) { + +var getMapData = __webpack_require__("./node_modules/lodash/_getMapData.js"); + +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet(key) { + return getMapData(this, key).get(key); +} + +module.exports = mapCacheGet; + + +/***/ }), + +/***/ "./node_modules/lodash/_mapCacheHas.js": +/***/ (function(module, exports, __webpack_require__) { + +var getMapData = __webpack_require__("./node_modules/lodash/_getMapData.js"); + +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas(key) { + return getMapData(this, key).has(key); +} + +module.exports = mapCacheHas; + + +/***/ }), + +/***/ "./node_modules/lodash/_mapCacheSet.js": +/***/ (function(module, exports, __webpack_require__) { + +var getMapData = __webpack_require__("./node_modules/lodash/_getMapData.js"); + +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; + + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; +} + +module.exports = mapCacheSet; + + +/***/ }), + +/***/ "./node_modules/lodash/_nativeCreate.js": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("./node_modules/lodash/_getNative.js"); + +/* Built-in method references that are verified to be native. */ +var nativeCreate = getNative(Object, 'create'); + +module.exports = nativeCreate; + + +/***/ }), + +/***/ "./node_modules/lodash/_nativeKeys.js": +/***/ (function(module, exports, __webpack_require__) { + +var overArg = __webpack_require__("./node_modules/lodash/_overArg.js"); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeKeys = overArg(Object.keys, Object); + +module.exports = nativeKeys; + + +/***/ }), + +/***/ "./node_modules/lodash/_nativeKeysIn.js": +/***/ (function(module, exports) { + +/** + * This function is like + * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * except that it includes inherited enumerable properties. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; +} + +module.exports = nativeKeysIn; + + +/***/ }), + +/***/ "./node_modules/lodash/_nodeUtil.js": +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__("./node_modules/lodash/_freeGlobal.js"); + +/** Detect free variable `exports`. */ +var freeExports = true && exports && !exports.nodeType && exports; + +/** Detect free variable `module`. */ +var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports = freeModule && freeModule.exports === freeExports; + +/** Detect free variable `process` from Node.js. */ +var freeProcess = moduleExports && freeGlobal.process; + +/** Used to access faster Node.js helpers. */ +var nodeUtil = (function() { + try { + // Use `util.types` for Node.js 10+. + var types = freeModule && freeModule.require && freeModule.require('util').types; + + if (types) { + return types; + } + + // Legacy `process.binding('util')` for Node.js < 10. + return freeProcess && freeProcess.binding && freeProcess.binding('util'); + } catch (e) {} +}()); + +module.exports = nodeUtil; + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("./node_modules/webpack/buildin/module.js")(module))) + +/***/ }), + +/***/ "./node_modules/lodash/_objectToString.js": +/***/ (function(module, exports) { + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** + * Converts `value` to a string using `Object.prototype.toString`. + * + * @private + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + */ +function objectToString(value) { + return nativeObjectToString.call(value); +} + +module.exports = objectToString; + + +/***/ }), + +/***/ "./node_modules/lodash/_overArg.js": +/***/ (function(module, exports) { + +/** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ +function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; +} + +module.exports = overArg; + + +/***/ }), + +/***/ "./node_modules/lodash/_overRest.js": +/***/ (function(module, exports, __webpack_require__) { + +var apply = __webpack_require__("./node_modules/lodash/_apply.js"); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * A specialized version of `baseRest` which transforms the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @param {Function} transform The rest array transform. + * @returns {Function} Returns the new function. + */ +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); + }; +} + +module.exports = overRest; + + +/***/ }), + +/***/ "./node_modules/lodash/_root.js": +/***/ (function(module, exports, __webpack_require__) { + +var freeGlobal = __webpack_require__("./node_modules/lodash/_freeGlobal.js"); + +/** Detect free variable `self`. */ +var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + +/** Used as a reference to the global object. */ +var root = freeGlobal || freeSelf || Function('return this')(); + +module.exports = root; + + +/***/ }), + +/***/ "./node_modules/lodash/_safeGet.js": +/***/ (function(module, exports) { + +/** + * Gets the value at `key`, unless `key` is "__proto__" or "constructor". + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ +function safeGet(object, key) { + if (key === 'constructor' && typeof object[key] === 'function') { + return; + } + + if (key == '__proto__') { + return; + } + + return object[key]; +} + +module.exports = safeGet; + + +/***/ }), + +/***/ "./node_modules/lodash/_setCacheAdd.js": +/***/ (function(module, exports) { + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** + * Adds `value` to the array cache. + * + * @private + * @name add + * @memberOf SetCache + * @alias push + * @param {*} value The value to cache. + * @returns {Object} Returns the cache instance. + */ +function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + return this; +} + +module.exports = setCacheAdd; + + +/***/ }), + +/***/ "./node_modules/lodash/_setCacheHas.js": +/***/ (function(module, exports) { + +/** + * Checks if `value` is in the array cache. + * + * @private + * @name has + * @memberOf SetCache + * @param {*} value The value to search for. + * @returns {number} Returns `true` if `value` is found, else `false`. + */ +function setCacheHas(value) { + return this.__data__.has(value); +} + +module.exports = setCacheHas; + + +/***/ }), + +/***/ "./node_modules/lodash/_setToString.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseSetToString = __webpack_require__("./node_modules/lodash/_baseSetToString.js"), + shortOut = __webpack_require__("./node_modules/lodash/_shortOut.js"); + +/** + * Sets the `toString` method of `func` to return `string`. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ +var setToString = shortOut(baseSetToString); + +module.exports = setToString; + + +/***/ }), + +/***/ "./node_modules/lodash/_shortOut.js": +/***/ (function(module, exports) { + +/** Used to detect hot functions by number of calls within a span of milliseconds. */ +var HOT_COUNT = 800, + HOT_SPAN = 16; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeNow = Date.now; + +/** + * Creates a function that'll short out and invoke `identity` instead + * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` + * milliseconds. + * + * @private + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new shortable function. + */ +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); + }; +} + +module.exports = shortOut; + + +/***/ }), + +/***/ "./node_modules/lodash/_stackClear.js": +/***/ (function(module, exports, __webpack_require__) { + +var ListCache = __webpack_require__("./node_modules/lodash/_ListCache.js"); + +/** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ +function stackClear() { + this.__data__ = new ListCache; + this.size = 0; +} + +module.exports = stackClear; + + +/***/ }), + +/***/ "./node_modules/lodash/_stackDelete.js": +/***/ (function(module, exports) { + +/** + * Removes `key` and its value from the stack. + * + * @private + * @name delete + * @memberOf Stack + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function stackDelete(key) { + var data = this.__data__, + result = data['delete'](key); + + this.size = data.size; + return result; +} + +module.exports = stackDelete; + + +/***/ }), + +/***/ "./node_modules/lodash/_stackGet.js": +/***/ (function(module, exports) { + +/** + * Gets the stack value for `key`. + * + * @private + * @name get + * @memberOf Stack + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function stackGet(key) { + return this.__data__.get(key); +} + +module.exports = stackGet; + + +/***/ }), + +/***/ "./node_modules/lodash/_stackHas.js": +/***/ (function(module, exports) { + +/** + * Checks if a stack value for `key` exists. + * + * @private + * @name has + * @memberOf Stack + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function stackHas(key) { + return this.__data__.has(key); +} + +module.exports = stackHas; + + +/***/ }), + +/***/ "./node_modules/lodash/_stackSet.js": +/***/ (function(module, exports, __webpack_require__) { + +var ListCache = __webpack_require__("./node_modules/lodash/_ListCache.js"), + Map = __webpack_require__("./node_modules/lodash/_Map.js"), + MapCache = __webpack_require__("./node_modules/lodash/_MapCache.js"); + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ +function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; +} + +module.exports = stackSet; + + +/***/ }), + +/***/ "./node_modules/lodash/_strictIndexOf.js": +/***/ (function(module, exports) { + +/** + * A specialized version of `_.indexOf` which performs strict equality + * comparisons of values, i.e. `===`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function strictIndexOf(array, value, fromIndex) { + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; +} + +module.exports = strictIndexOf; + + +/***/ }), + +/***/ "./node_modules/lodash/_stringToArray.js": +/***/ (function(module, exports, __webpack_require__) { + +var asciiToArray = __webpack_require__("./node_modules/lodash/_asciiToArray.js"), + hasUnicode = __webpack_require__("./node_modules/lodash/_hasUnicode.js"), + unicodeToArray = __webpack_require__("./node_modules/lodash/_unicodeToArray.js"); + +/** + * Converts `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function stringToArray(string) { + return hasUnicode(string) + ? unicodeToArray(string) + : asciiToArray(string); +} + +module.exports = stringToArray; + + +/***/ }), + +/***/ "./node_modules/lodash/_toSource.js": +/***/ (function(module, exports) { + +/** Used for built-in method references. */ +var funcProto = Function.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** + * Converts `func` to its source code. + * + * @private + * @param {Function} func The function to convert. + * @returns {string} Returns the source code. + */ +function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return (func + ''); + } catch (e) {} + } + return ''; +} + +module.exports = toSource; + + +/***/ }), + +/***/ "./node_modules/lodash/_trimmedEndIndex.js": +/***/ (function(module, exports) { + +/** Used to match a single whitespace character. */ +var reWhitespace = /\s/; + +/** + * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace + * character of `string`. + * + * @private + * @param {string} string The string to inspect. + * @returns {number} Returns the index of the last non-whitespace character. + */ +function trimmedEndIndex(string) { + var index = string.length; + + while (index-- && reWhitespace.test(string.charAt(index))) {} + return index; +} + +module.exports = trimmedEndIndex; + + +/***/ }), + +/***/ "./node_modules/lodash/_unicodeToArray.js": +/***/ (function(module, exports) { + +/** Used to compose unicode character classes. */ +var rsAstralRange = '\\ud800-\\udfff', + rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, + rsVarRange = '\\ufe0e\\ufe0f'; + +/** Used to compose unicode capture groups. */ +var rsAstral = '[' + rsAstralRange + ']', + rsCombo = '[' + rsComboRange + ']', + rsFitz = '\\ud83c[\\udffb-\\udfff]', + rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')', + rsNonAstral = '[^' + rsAstralRange + ']', + rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', + rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', + rsZWJ = '\\u200d'; + +/** Used to compose unicode regexes. */ +var reOptMod = rsModifier + '?', + rsOptVar = '[' + rsVarRange + ']?', + rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*', + rsSeq = rsOptVar + reOptMod + rsOptJoin, + rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; + +/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ +var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); + +/** + * Converts a Unicode `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function unicodeToArray(string) { + return string.match(reUnicode) || []; +} + +module.exports = unicodeToArray; + + +/***/ }), + +/***/ "./node_modules/lodash/assign.js": +/***/ (function(module, exports, __webpack_require__) { + +var assignValue = __webpack_require__("./node_modules/lodash/_assignValue.js"), + copyObject = __webpack_require__("./node_modules/lodash/_copyObject.js"), + createAssigner = __webpack_require__("./node_modules/lodash/_createAssigner.js"), + isArrayLike = __webpack_require__("./node_modules/lodash/isArrayLike.js"), + isPrototype = __webpack_require__("./node_modules/lodash/_isPrototype.js"), + keys = __webpack_require__("./node_modules/lodash/keys.js"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Assigns own enumerable string keyed properties of source objects to the + * destination object. Source objects are applied from left to right. + * Subsequent sources overwrite property assignments of previous sources. + * + * **Note:** This method mutates `object` and is loosely based on + * [`Object.assign`](https://mdn.io/Object/assign). + * + * @static + * @memberOf _ + * @since 0.10.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.assignIn + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * function Bar() { + * this.c = 3; + * } + * + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; + * + * _.assign({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'c': 3 } + */ +var assign = createAssigner(function(object, source) { + if (isPrototype(source) || isArrayLike(source)) { + copyObject(source, keys(source), object); + return; + } + for (var key in source) { + if (hasOwnProperty.call(source, key)) { + assignValue(object, key, source[key]); + } + } +}); + +module.exports = assign; + + +/***/ }), + +/***/ "./node_modules/lodash/cloneDeep.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseClone = __webpack_require__("./node_modules/lodash/_baseClone.js"); + +/** Used to compose bitmasks for cloning. */ +var CLONE_DEEP_FLAG = 1, + CLONE_SYMBOLS_FLAG = 4; + +/** + * This method is like `_.clone` except that it recursively clones `value`. + * + * @static + * @memberOf _ + * @since 1.0.0 + * @category Lang + * @param {*} value The value to recursively clone. + * @returns {*} Returns the deep cloned value. + * @see _.clone + * @example + * + * var objects = [{ 'a': 1 }, { 'b': 2 }]; + * + * var deep = _.cloneDeep(objects); + * console.log(deep[0] === objects[0]); + * // => false + */ +function cloneDeep(value) { + return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); +} + +module.exports = cloneDeep; + + +/***/ }), + +/***/ "./node_modules/lodash/compact.js": +/***/ (function(module, exports) { + +/** + * Creates an array with all falsey values removed. The values `false`, `null`, + * `0`, `""`, `undefined`, and `NaN` are falsey. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to compact. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * _.compact([0, 1, false, 2, '', 3]); + * // => [1, 2, 3] + */ +function compact(array) { + var index = -1, + length = array == null ? 0 : array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + if (value) { + result[resIndex++] = value; + } + } + return result; +} + +module.exports = compact; + + +/***/ }), + +/***/ "./node_modules/lodash/constant.js": +/***/ (function(module, exports) { + +/** + * Creates a function that returns `value`. + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Util + * @param {*} value The value to return from the new function. + * @returns {Function} Returns the new constant function. + * @example + * + * var objects = _.times(2, _.constant({ 'a': 1 })); + * + * console.log(objects); + * // => [{ 'a': 1 }, { 'a': 1 }] + * + * console.log(objects[0] === objects[1]); + * // => true + */ +function constant(value) { + return function() { + return value; + }; +} + +module.exports = constant; + + +/***/ }), + +/***/ "./node_modules/lodash/difference.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseDifference = __webpack_require__("./node_modules/lodash/_baseDifference.js"), + baseFlatten = __webpack_require__("./node_modules/lodash/_baseFlatten.js"), + baseRest = __webpack_require__("./node_modules/lodash/_baseRest.js"), + isArrayLikeObject = __webpack_require__("./node_modules/lodash/isArrayLikeObject.js"); + +/** + * Creates an array of `array` values not included in the other given arrays + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. The order and references of result values are + * determined by the first array. + * + * **Note:** Unlike `_.pullAll`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...Array} [values] The values to exclude. + * @returns {Array} Returns the new array of filtered values. + * @see _.without, _.xor + * @example + * + * _.difference([2, 1], [2, 3]); + * // => [1] + */ +var difference = baseRest(function(array, values) { + return isArrayLikeObject(array) + ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) + : []; +}); + +module.exports = difference; + + +/***/ }), + +/***/ "./node_modules/lodash/eq.js": +/***/ (function(module, exports) { + +/** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ +function eq(value, other) { + return value === other || (value !== value && other !== other); +} + +module.exports = eq; + + +/***/ }), + +/***/ "./node_modules/lodash/functions.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseFunctions = __webpack_require__("./node_modules/lodash/_baseFunctions.js"), + keys = __webpack_require__("./node_modules/lodash/keys.js"); + +/** + * Creates an array of function property names from own enumerable properties + * of `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to inspect. + * @returns {Array} Returns the function names. + * @see _.functionsIn + * @example + * + * function Foo() { + * this.a = _.constant('a'); + * this.b = _.constant('b'); + * } + * + * Foo.prototype.c = _.constant('c'); + * + * _.functions(new Foo); + * // => ['a', 'b'] + */ +function functions(object) { + return object == null ? [] : baseFunctions(object, keys(object)); +} + +module.exports = functions; + + +/***/ }), + +/***/ "./node_modules/lodash/identity.js": +/***/ (function(module, exports) { + +/** + * This method returns the first argument it receives. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @param {*} value Any value. + * @returns {*} Returns `value`. + * @example + * + * var object = { 'a': 1 }; + * + * console.log(_.identity(object) === object); + * // => true + */ +function identity(value) { + return value; +} + +module.exports = identity; + + +/***/ }), + +/***/ "./node_modules/lodash/includes.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseIndexOf = __webpack_require__("./node_modules/lodash/_baseIndexOf.js"), + isArrayLike = __webpack_require__("./node_modules/lodash/isArrayLike.js"), + isString = __webpack_require__("./node_modules/lodash/isString.js"), + toInteger = __webpack_require__("./node_modules/lodash/toInteger.js"), + values = __webpack_require__("./node_modules/lodash/values.js"); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * Checks if `value` is in `collection`. If `collection` is a string, it's + * checked for a substring of `value`, otherwise + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * is used for equality comparisons. If `fromIndex` is negative, it's used as + * the offset from the end of `collection`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object|string} collection The collection to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=0] The index to search from. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. + * @returns {boolean} Returns `true` if `value` is found, else `false`. + * @example + * + * _.includes([1, 2, 3], 1); + * // => true + * + * _.includes([1, 2, 3], 1, 2); + * // => false + * + * _.includes({ 'a': 1, 'b': 2 }, 1); + * // => true + * + * _.includes('abcd', 'bc'); + * // => true + */ +function includes(collection, value, fromIndex, guard) { + collection = isArrayLike(collection) ? collection : values(collection); + fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0; + + var length = collection.length; + if (fromIndex < 0) { + fromIndex = nativeMax(length + fromIndex, 0); + } + return isString(collection) + ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1) + : (!!length && baseIndexOf(collection, value, fromIndex) > -1); +} + +module.exports = includes; + + +/***/ }), + +/***/ "./node_modules/lodash/isArguments.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsArguments = __webpack_require__("./node_modules/lodash/_baseIsArguments.js"), + isObjectLike = __webpack_require__("./node_modules/lodash/isObjectLike.js"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + +/** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ +var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && + !propertyIsEnumerable.call(value, 'callee'); +}; + +module.exports = isArguments; + + +/***/ }), + +/***/ "./node_modules/lodash/isArray.js": +/***/ (function(module, exports) { + +/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ +var isArray = Array.isArray; + +module.exports = isArray; + + +/***/ }), + +/***/ "./node_modules/lodash/isArrayLike.js": +/***/ (function(module, exports, __webpack_require__) { + +var isFunction = __webpack_require__("./node_modules/lodash/isFunction.js"), + isLength = __webpack_require__("./node_modules/lodash/isLength.js"); + +/** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */ +function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); +} + +module.exports = isArrayLike; + + +/***/ }), + +/***/ "./node_modules/lodash/isArrayLikeObject.js": +/***/ (function(module, exports, __webpack_require__) { + +var isArrayLike = __webpack_require__("./node_modules/lodash/isArrayLike.js"), + isObjectLike = __webpack_require__("./node_modules/lodash/isObjectLike.js"); + +/** + * This method is like `_.isArrayLike` except that it also checks if `value` + * is an object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array-like object, + * else `false`. + * @example + * + * _.isArrayLikeObject([1, 2, 3]); + * // => true + * + * _.isArrayLikeObject(document.body.children); + * // => true + * + * _.isArrayLikeObject('abc'); + * // => false + * + * _.isArrayLikeObject(_.noop); + * // => false + */ +function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); +} + +module.exports = isArrayLikeObject; + + +/***/ }), + +/***/ "./node_modules/lodash/isBuffer.js": +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("./node_modules/lodash/_root.js"), + stubFalse = __webpack_require__("./node_modules/lodash/stubFalse.js"); + +/** Detect free variable `exports`. */ +var freeExports = true && exports && !exports.nodeType && exports; + +/** Detect free variable `module`. */ +var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports = freeModule && freeModule.exports === freeExports; + +/** Built-in value references. */ +var Buffer = moduleExports ? root.Buffer : undefined; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; + +/** + * Checks if `value` is a buffer. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. + * @example + * + * _.isBuffer(new Buffer(2)); + * // => true + * + * _.isBuffer(new Uint8Array(2)); + * // => false + */ +var isBuffer = nativeIsBuffer || stubFalse; + +module.exports = isBuffer; + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("./node_modules/webpack/buildin/module.js")(module))) + +/***/ }), + +/***/ "./node_modules/lodash/isElement.js": +/***/ (function(module, exports, __webpack_require__) { + +var isObjectLike = __webpack_require__("./node_modules/lodash/isObjectLike.js"), + isPlainObject = __webpack_require__("./node_modules/lodash/isPlainObject.js"); + +/** + * Checks if `value` is likely a DOM element. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`. + * @example + * + * _.isElement(document.body); + * // => true + * + * _.isElement(''); + * // => false + */ +function isElement(value) { + return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value); +} + +module.exports = isElement; + + +/***/ }), + +/***/ "./node_modules/lodash/isFunction.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("./node_modules/lodash/_baseGetTag.js"), + isObject = __webpack_require__("./node_modules/lodash/isObject.js"); + +/** `Object#toString` result references. */ +var asyncTag = '[object AsyncFunction]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + proxyTag = '[object Proxy]'; + +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + if (!isObject(value)) { + return false; + } + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 9 which returns 'object' for typed arrays and other constructors. + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; +} + +module.exports = isFunction; + + +/***/ }), + +/***/ "./node_modules/lodash/isLength.js": +/***/ (function(module, exports) { + +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */ +function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; +} + +module.exports = isLength; + + +/***/ }), + +/***/ "./node_modules/lodash/isMap.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsMap = __webpack_require__("./node_modules/lodash/_baseIsMap.js"), + baseUnary = __webpack_require__("./node_modules/lodash/_baseUnary.js"), + nodeUtil = __webpack_require__("./node_modules/lodash/_nodeUtil.js"); + +/* Node.js helper references. */ +var nodeIsMap = nodeUtil && nodeUtil.isMap; + +/** + * Checks if `value` is classified as a `Map` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. + * @example + * + * _.isMap(new Map); + * // => true + * + * _.isMap(new WeakMap); + * // => false + */ +var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; + +module.exports = isMap; + + +/***/ }), + +/***/ "./node_modules/lodash/isObject.js": +/***/ (function(module, exports) { + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return value != null && (type == 'object' || type == 'function'); +} + +module.exports = isObject; + + +/***/ }), + +/***/ "./node_modules/lodash/isObjectLike.js": +/***/ (function(module, exports) { + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return value != null && typeof value == 'object'; +} + +module.exports = isObjectLike; + + +/***/ }), + +/***/ "./node_modules/lodash/isPlainObject.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("./node_modules/lodash/_baseGetTag.js"), + getPrototype = __webpack_require__("./node_modules/lodash/_getPrototype.js"), + isObjectLike = __webpack_require__("./node_modules/lodash/isObjectLike.js"); + +/** `Object#toString` result references. */ +var objectTag = '[object Object]'; + +/** Used for built-in method references. */ +var funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Used to infer the `Object` constructor. */ +var objectCtorString = funcToString.call(Object); + +/** + * Checks if `value` is a plain object, that is, an object created by the + * `Object` constructor or one with a `[[Prototype]]` of `null`. + * + * @static + * @memberOf _ + * @since 0.8.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * _.isPlainObject(new Foo); + * // => false + * + * _.isPlainObject([1, 2, 3]); + * // => false + * + * _.isPlainObject({ 'x': 0, 'y': 0 }); + * // => true + * + * _.isPlainObject(Object.create(null)); + * // => true + */ +function isPlainObject(value) { + if (!isObjectLike(value) || baseGetTag(value) != objectTag) { + return false; + } + var proto = getPrototype(value); + if (proto === null) { + return true; + } + var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; + return typeof Ctor == 'function' && Ctor instanceof Ctor && + funcToString.call(Ctor) == objectCtorString; +} + +module.exports = isPlainObject; + + +/***/ }), + +/***/ "./node_modules/lodash/isSet.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsSet = __webpack_require__("./node_modules/lodash/_baseIsSet.js"), + baseUnary = __webpack_require__("./node_modules/lodash/_baseUnary.js"), + nodeUtil = __webpack_require__("./node_modules/lodash/_nodeUtil.js"); + +/* Node.js helper references. */ +var nodeIsSet = nodeUtil && nodeUtil.isSet; + +/** + * Checks if `value` is classified as a `Set` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. + * @example + * + * _.isSet(new Set); + * // => true + * + * _.isSet(new WeakSet); + * // => false + */ +var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; + +module.exports = isSet; + + +/***/ }), + +/***/ "./node_modules/lodash/isString.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("./node_modules/lodash/_baseGetTag.js"), + isArray = __webpack_require__("./node_modules/lodash/isArray.js"), + isObjectLike = __webpack_require__("./node_modules/lodash/isObjectLike.js"); + +/** `Object#toString` result references. */ +var stringTag = '[object String]'; + +/** + * Checks if `value` is classified as a `String` primitive or object. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a string, else `false`. + * @example + * + * _.isString('abc'); + * // => true + * + * _.isString(1); + * // => false + */ +function isString(value) { + return typeof value == 'string' || + (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag); +} + +module.exports = isString; + + +/***/ }), + +/***/ "./node_modules/lodash/isSymbol.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("./node_modules/lodash/_baseGetTag.js"), + isObjectLike = __webpack_require__("./node_modules/lodash/isObjectLike.js"); + +/** `Object#toString` result references. */ +var symbolTag = '[object Symbol]'; + +/** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ +function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && baseGetTag(value) == symbolTag); +} + +module.exports = isSymbol; + + +/***/ }), + +/***/ "./node_modules/lodash/isTypedArray.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsTypedArray = __webpack_require__("./node_modules/lodash/_baseIsTypedArray.js"), + baseUnary = __webpack_require__("./node_modules/lodash/_baseUnary.js"), + nodeUtil = __webpack_require__("./node_modules/lodash/_nodeUtil.js"); + +/* Node.js helper references. */ +var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; + +/** + * Checks if `value` is classified as a typed array. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + * @example + * + * _.isTypedArray(new Uint8Array); + * // => true + * + * _.isTypedArray([]); + * // => false + */ +var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + +module.exports = isTypedArray; + + +/***/ }), + +/***/ "./node_modules/lodash/keys.js": +/***/ (function(module, exports, __webpack_require__) { + +var arrayLikeKeys = __webpack_require__("./node_modules/lodash/_arrayLikeKeys.js"), + baseKeys = __webpack_require__("./node_modules/lodash/_baseKeys.js"), + isArrayLike = __webpack_require__("./node_modules/lodash/isArrayLike.js"); + +/** + * Creates an array of the own enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. See the + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * for more details. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keys(new Foo); + * // => ['a', 'b'] (iteration order is not guaranteed) + * + * _.keys('hi'); + * // => ['0', '1'] + */ +function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); +} + +module.exports = keys; + + +/***/ }), + +/***/ "./node_modules/lodash/keysIn.js": +/***/ (function(module, exports, __webpack_require__) { + +var arrayLikeKeys = __webpack_require__("./node_modules/lodash/_arrayLikeKeys.js"), + baseKeysIn = __webpack_require__("./node_modules/lodash/_baseKeysIn.js"), + isArrayLike = __webpack_require__("./node_modules/lodash/isArrayLike.js"); + +/** + * Creates an array of the own and inherited enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keysIn(new Foo); + * // => ['a', 'b', 'c'] (iteration order is not guaranteed) + */ +function keysIn(object) { + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); +} + +module.exports = keysIn; + + +/***/ }), + +/***/ "./node_modules/lodash/merge.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseMerge = __webpack_require__("./node_modules/lodash/_baseMerge.js"), + createAssigner = __webpack_require__("./node_modules/lodash/_createAssigner.js"); + +/** + * This method is like `_.assign` except that it recursively merges own and + * inherited enumerable string keyed properties of source objects into the + * destination object. Source properties that resolve to `undefined` are + * skipped if a destination value exists. Array and plain object properties + * are merged recursively. Other objects and value types are overridden by + * assignment. Source objects are applied from left to right. Subsequent + * sources overwrite property assignments of previous sources. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 0.5.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @example + * + * var object = { + * 'a': [{ 'b': 2 }, { 'd': 4 }] + * }; + * + * var other = { + * 'a': [{ 'c': 3 }, { 'e': 5 }] + * }; + * + * _.merge(object, other); + * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] } + */ +var merge = createAssigner(function(object, source, srcIndex) { + baseMerge(object, source, srcIndex); +}); + +module.exports = merge; + + +/***/ }), + +/***/ "./node_modules/lodash/stubArray.js": +/***/ (function(module, exports) { + +/** + * This method returns a new empty array. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {Array} Returns the new empty array. + * @example + * + * var arrays = _.times(2, _.stubArray); + * + * console.log(arrays); + * // => [[], []] + * + * console.log(arrays[0] === arrays[1]); + * // => false + */ +function stubArray() { + return []; +} + +module.exports = stubArray; + + +/***/ }), + +/***/ "./node_modules/lodash/stubFalse.js": +/***/ (function(module, exports) { + +/** + * This method returns `false`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] + */ +function stubFalse() { + return false; +} + +module.exports = stubFalse; + + +/***/ }), + +/***/ "./node_modules/lodash/toFinite.js": +/***/ (function(module, exports, __webpack_require__) { + +var toNumber = __webpack_require__("./node_modules/lodash/toNumber.js"); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0, + MAX_INTEGER = 1.7976931348623157e+308; + +/** + * Converts `value` to a finite number. + * + * @static + * @memberOf _ + * @since 4.12.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted number. + * @example + * + * _.toFinite(3.2); + * // => 3.2 + * + * _.toFinite(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toFinite(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toFinite('3.2'); + * // => 3.2 + */ +function toFinite(value) { + if (!value) { + return value === 0 ? value : 0; + } + value = toNumber(value); + if (value === INFINITY || value === -INFINITY) { + var sign = (value < 0 ? -1 : 1); + return sign * MAX_INTEGER; + } + return value === value ? value : 0; +} + +module.exports = toFinite; + + +/***/ }), + +/***/ "./node_modules/lodash/toInteger.js": +/***/ (function(module, exports, __webpack_require__) { + +var toFinite = __webpack_require__("./node_modules/lodash/toFinite.js"); + +/** + * Converts `value` to an integer. + * + * **Note:** This method is loosely based on + * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toInteger(3.2); + * // => 3 + * + * _.toInteger(Number.MIN_VALUE); + * // => 0 + * + * _.toInteger(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toInteger('3.2'); + * // => 3 + */ +function toInteger(value) { + var result = toFinite(value), + remainder = result % 1; + + return result === result ? (remainder ? result - remainder : result) : 0; +} + +module.exports = toInteger; + + +/***/ }), + +/***/ "./node_modules/lodash/toNumber.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseTrim = __webpack_require__("./node_modules/lodash/_baseTrim.js"), + isObject = __webpack_require__("./node_modules/lodash/isObject.js"), + isSymbol = __webpack_require__("./node_modules/lodash/isSymbol.js"); + +/** Used as references for various `Number` constants. */ +var NAN = 0 / 0; + +/** Used to detect bad signed hexadecimal string values. */ +var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + +/** Used to detect binary string values. */ +var reIsBinary = /^0b[01]+$/i; + +/** Used to detect octal string values. */ +var reIsOctal = /^0o[0-7]+$/i; + +/** Built-in method references without a dependency on `root`. */ +var freeParseInt = parseInt; + +/** + * Converts `value` to a number. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {number} Returns the number. + * @example + * + * _.toNumber(3.2); + * // => 3.2 + * + * _.toNumber(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toNumber(Infinity); + * // => Infinity + * + * _.toNumber('3.2'); + * // => 3.2 + */ +function toNumber(value) { + if (typeof value == 'number') { + return value; + } + if (isSymbol(value)) { + return NAN; + } + if (isObject(value)) { + var other = typeof value.valueOf == 'function' ? value.valueOf() : value; + value = isObject(other) ? (other + '') : other; + } + if (typeof value != 'string') { + return value === 0 ? value : +value; + } + value = baseTrim(value); + var isBinary = reIsBinary.test(value); + return (isBinary || reIsOctal.test(value)) + ? freeParseInt(value.slice(2), isBinary ? 2 : 8) + : (reIsBadHex.test(value) ? NAN : +value); +} + +module.exports = toNumber; + + +/***/ }), + +/***/ "./node_modules/lodash/toPlainObject.js": +/***/ (function(module, exports, __webpack_require__) { + +var copyObject = __webpack_require__("./node_modules/lodash/_copyObject.js"), + keysIn = __webpack_require__("./node_modules/lodash/keysIn.js"); + +/** + * Converts `value` to a plain object flattening inherited enumerable string + * keyed properties of `value` to own properties of the plain object. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {Object} Returns the converted plain object. + * @example + * + * function Foo() { + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.assign({ 'a': 1 }, new Foo); + * // => { 'a': 1, 'b': 2 } + * + * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); + * // => { 'a': 1, 'b': 2, 'c': 3 } + */ +function toPlainObject(value) { + return copyObject(value, keysIn(value)); +} + +module.exports = toPlainObject; + + +/***/ }), + +/***/ "./node_modules/lodash/toString.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseToString = __webpack_require__("./node_modules/lodash/_baseToString.js"); + +/** + * Converts `value` to a string. An empty string is returned for `null` + * and `undefined` values. The sign of `-0` is preserved. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.toString(null); + * // => '' + * + * _.toString(-0); + * // => '-0' + * + * _.toString([1, 2, 3]); + * // => '1,2,3' + */ +function toString(value) { + return value == null ? '' : baseToString(value); +} + +module.exports = toString; + + +/***/ }), + +/***/ "./node_modules/lodash/trim.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseToString = __webpack_require__("./node_modules/lodash/_baseToString.js"), + baseTrim = __webpack_require__("./node_modules/lodash/_baseTrim.js"), + castSlice = __webpack_require__("./node_modules/lodash/_castSlice.js"), + charsEndIndex = __webpack_require__("./node_modules/lodash/_charsEndIndex.js"), + charsStartIndex = __webpack_require__("./node_modules/lodash/_charsStartIndex.js"), + stringToArray = __webpack_require__("./node_modules/lodash/_stringToArray.js"), + toString = __webpack_require__("./node_modules/lodash/toString.js"); + +/** + * Removes leading and trailing whitespace or specified characters from `string`. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to trim. + * @param {string} [chars=whitespace] The characters to trim. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {string} Returns the trimmed string. + * @example + * + * _.trim(' abc '); + * // => 'abc' + * + * _.trim('-_-abc-_-', '_-'); + * // => 'abc' + * + * _.map([' foo ', ' bar '], _.trim); + * // => ['foo', 'bar'] + */ +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(''); +} + +module.exports = trim; + + +/***/ }), + +/***/ "./node_modules/lodash/values.js": +/***/ (function(module, exports, __webpack_require__) { + +var baseValues = __webpack_require__("./node_modules/lodash/_baseValues.js"), + keys = __webpack_require__("./node_modules/lodash/keys.js"); + +/** + * Creates an array of the own enumerable string keyed property values of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property values. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.values(new Foo); + * // => [1, 2] (iteration order is not guaranteed) + * + * _.values('hi'); + * // => ['h', 'i'] + */ +function values(object) { + return object == null ? [] : baseValues(object, keys(object)); +} + +module.exports = values; + + +/***/ }), + +/***/ "./node_modules/webpack/buildin/global.js": +/***/ (function(module, exports) { + +var g; + +// This works in non-strict mode +g = (function() { + return this; +})(); + +try { + // This works if eval is allowed (see CSP) + g = g || new Function("return this")(); +} catch (e) { + // This works if the window reference is available + if (typeof window === "object") g = window; +} + +// g can still be undefined, but nothing to do about it... +// We return undefined, instead of nothing here, so it's +// easier to handle this case. if(!global) { ...} + +module.exports = g; + + +/***/ }), + +/***/ "./node_modules/webpack/buildin/module.js": +/***/ (function(module, exports) { + +module.exports = function(module) { + if (!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + if (!module.children) module.children = []; + Object.defineProperty(module, "loaded", { + enumerable: true, + get: function() { + return module.l; + } + }); + Object.defineProperty(module, "id", { + enumerable: true, + get: function() { + return module.i; + } + }); + module.webpackPolyfill = 1; + } + return module; +}; + + +/***/ }), + +/***/ "./src/namespace/cloudinary-core-shrinkwrap.js": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, "ClientHintsMetaTag", function() { return /* reexport */ clienthintsmetatag; }); +__webpack_require__.d(__webpack_exports__, "Cloudinary", function() { return /* reexport */ cloudinary; }); +__webpack_require__.d(__webpack_exports__, "Condition", function() { return /* reexport */ condition; }); +__webpack_require__.d(__webpack_exports__, "Configuration", function() { return /* reexport */ src_configuration; }); +__webpack_require__.d(__webpack_exports__, "Expression", function() { return /* reexport */ expression; }); +__webpack_require__.d(__webpack_exports__, "crc32", function() { return /* reexport */ src_crc32; }); +__webpack_require__.d(__webpack_exports__, "FetchLayer", function() { return /* reexport */ fetchlayer; }); +__webpack_require__.d(__webpack_exports__, "HtmlTag", function() { return /* reexport */ htmltag; }); +__webpack_require__.d(__webpack_exports__, "ImageTag", function() { return /* reexport */ imagetag; }); +__webpack_require__.d(__webpack_exports__, "Layer", function() { return /* reexport */ layer_layer; }); +__webpack_require__.d(__webpack_exports__, "PictureTag", function() { return /* reexport */ picturetag; }); +__webpack_require__.d(__webpack_exports__, "SubtitlesLayer", function() { return /* reexport */ subtitleslayer; }); +__webpack_require__.d(__webpack_exports__, "TextLayer", function() { return /* reexport */ textlayer; }); +__webpack_require__.d(__webpack_exports__, "Transformation", function() { return /* reexport */ src_transformation; }); +__webpack_require__.d(__webpack_exports__, "utf8_encode", function() { return /* reexport */ src_utf8_encode; }); +__webpack_require__.d(__webpack_exports__, "Util", function() { return /* reexport */ lodash_namespaceObject; }); +__webpack_require__.d(__webpack_exports__, "VideoTag", function() { return /* reexport */ videotag; }); + +// NAMESPACE OBJECT: ./src/constants.js +var constants_namespaceObject = {}; +__webpack_require__.r(constants_namespaceObject); +__webpack_require__.d(constants_namespaceObject, "VERSION", function() { return VERSION; }); +__webpack_require__.d(constants_namespaceObject, "CF_SHARED_CDN", function() { return CF_SHARED_CDN; }); +__webpack_require__.d(constants_namespaceObject, "OLD_AKAMAI_SHARED_CDN", function() { return OLD_AKAMAI_SHARED_CDN; }); +__webpack_require__.d(constants_namespaceObject, "AKAMAI_SHARED_CDN", function() { return AKAMAI_SHARED_CDN; }); +__webpack_require__.d(constants_namespaceObject, "SHARED_CDN", function() { return SHARED_CDN; }); +__webpack_require__.d(constants_namespaceObject, "DEFAULT_TIMEOUT_MS", function() { return DEFAULT_TIMEOUT_MS; }); +__webpack_require__.d(constants_namespaceObject, "DEFAULT_POSTER_OPTIONS", function() { return DEFAULT_POSTER_OPTIONS; }); +__webpack_require__.d(constants_namespaceObject, "DEFAULT_VIDEO_SOURCE_TYPES", function() { return DEFAULT_VIDEO_SOURCE_TYPES; }); +__webpack_require__.d(constants_namespaceObject, "SEO_TYPES", function() { return SEO_TYPES; }); +__webpack_require__.d(constants_namespaceObject, "DEFAULT_IMAGE_PARAMS", function() { return DEFAULT_IMAGE_PARAMS; }); +__webpack_require__.d(constants_namespaceObject, "DEFAULT_VIDEO_PARAMS", function() { return DEFAULT_VIDEO_PARAMS; }); +__webpack_require__.d(constants_namespaceObject, "DEFAULT_VIDEO_SOURCES", function() { return DEFAULT_VIDEO_SOURCES; }); +__webpack_require__.d(constants_namespaceObject, "DEFAULT_EXTERNAL_LIBRARIES", function() { return DEFAULT_EXTERNAL_LIBRARIES; }); +__webpack_require__.d(constants_namespaceObject, "PLACEHOLDER_IMAGE_MODES", function() { return PLACEHOLDER_IMAGE_MODES; }); +__webpack_require__.d(constants_namespaceObject, "ACCESSIBILITY_MODES", function() { return ACCESSIBILITY_MODES; }); +__webpack_require__.d(constants_namespaceObject, "URL_KEYS", function() { return URL_KEYS; }); + +// NAMESPACE OBJECT: ./src/util/lodash.js +var lodash_namespaceObject = {}; +__webpack_require__.r(lodash_namespaceObject); +__webpack_require__.d(lodash_namespaceObject, "getSDKAnalyticsSignature", function() { return getSDKAnalyticsSignature; }); +__webpack_require__.d(lodash_namespaceObject, "getAnalyticsOptions", function() { return getAnalyticsOptions; }); +__webpack_require__.d(lodash_namespaceObject, "assign", function() { return assign_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "cloneDeep", function() { return cloneDeep_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "compact", function() { return compact_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "difference", function() { return difference_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "functions", function() { return functions_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "identity", function() { return identity_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "includes", function() { return includes_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "isArray", function() { return isArray_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "isPlainObject", function() { return isPlainObject_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "isString", function() { return isString_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "merge", function() { return merge_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "contains", function() { return includes_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "isIntersectionObserverSupported", function() { return isIntersectionObserverSupported; }); +__webpack_require__.d(lodash_namespaceObject, "isNativeLazyLoadSupported", function() { return isNativeLazyLoadSupported; }); +__webpack_require__.d(lodash_namespaceObject, "detectIntersection", function() { return detectIntersection; }); +__webpack_require__.d(lodash_namespaceObject, "omit", function() { return omit; }); +__webpack_require__.d(lodash_namespaceObject, "allStrings", function() { return baseutil_allStrings; }); +__webpack_require__.d(lodash_namespaceObject, "without", function() { return without; }); +__webpack_require__.d(lodash_namespaceObject, "isNumberLike", function() { return isNumberLike; }); +__webpack_require__.d(lodash_namespaceObject, "smartEscape", function() { return smartEscape; }); +__webpack_require__.d(lodash_namespaceObject, "defaults", function() { return defaults; }); +__webpack_require__.d(lodash_namespaceObject, "objectProto", function() { return objectProto; }); +__webpack_require__.d(lodash_namespaceObject, "objToString", function() { return objToString; }); +__webpack_require__.d(lodash_namespaceObject, "isObject", function() { return isObject; }); +__webpack_require__.d(lodash_namespaceObject, "funcTag", function() { return funcTag; }); +__webpack_require__.d(lodash_namespaceObject, "reWords", function() { return reWords; }); +__webpack_require__.d(lodash_namespaceObject, "camelCase", function() { return camelCase; }); +__webpack_require__.d(lodash_namespaceObject, "snakeCase", function() { return snakeCase; }); +__webpack_require__.d(lodash_namespaceObject, "convertKeys", function() { return convertKeys; }); +__webpack_require__.d(lodash_namespaceObject, "withCamelCaseKeys", function() { return withCamelCaseKeys; }); +__webpack_require__.d(lodash_namespaceObject, "withSnakeCaseKeys", function() { return withSnakeCaseKeys; }); +__webpack_require__.d(lodash_namespaceObject, "base64Encode", function() { return base64Encode; }); +__webpack_require__.d(lodash_namespaceObject, "base64EncodeURL", function() { return base64EncodeURL; }); +__webpack_require__.d(lodash_namespaceObject, "extractUrlParams", function() { return extractUrlParams; }); +__webpack_require__.d(lodash_namespaceObject, "patchFetchFormat", function() { return patchFetchFormat; }); +__webpack_require__.d(lodash_namespaceObject, "optionConsume", function() { return optionConsume; }); +__webpack_require__.d(lodash_namespaceObject, "isEmpty", function() { return isEmpty; }); +__webpack_require__.d(lodash_namespaceObject, "isAndroid", function() { return isAndroid; }); +__webpack_require__.d(lodash_namespaceObject, "isEdge", function() { return isEdge; }); +__webpack_require__.d(lodash_namespaceObject, "isChrome", function() { return isChrome; }); +__webpack_require__.d(lodash_namespaceObject, "isSafari", function() { return isSafari; }); +__webpack_require__.d(lodash_namespaceObject, "isElement", function() { return isElement_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "isFunction", function() { return isFunction_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "trim", function() { return trim_default.a; }); +__webpack_require__.d(lodash_namespaceObject, "getData", function() { return lodash_getData; }); +__webpack_require__.d(lodash_namespaceObject, "setData", function() { return lodash_setData; }); +__webpack_require__.d(lodash_namespaceObject, "getAttribute", function() { return lodash_getAttribute; }); +__webpack_require__.d(lodash_namespaceObject, "setAttribute", function() { return lodash_setAttribute; }); +__webpack_require__.d(lodash_namespaceObject, "removeAttribute", function() { return lodash_removeAttribute; }); +__webpack_require__.d(lodash_namespaceObject, "setAttributes", function() { return setAttributes; }); +__webpack_require__.d(lodash_namespaceObject, "hasClass", function() { return lodash_hasClass; }); +__webpack_require__.d(lodash_namespaceObject, "addClass", function() { return lodash_addClass; }); +__webpack_require__.d(lodash_namespaceObject, "getStyles", function() { return getStyles; }); +__webpack_require__.d(lodash_namespaceObject, "cssExpand", function() { return cssExpand; }); +__webpack_require__.d(lodash_namespaceObject, "domStyle", function() { return domStyle; }); +__webpack_require__.d(lodash_namespaceObject, "curCSS", function() { return curCSS; }); +__webpack_require__.d(lodash_namespaceObject, "cssValue", function() { return cssValue; }); +__webpack_require__.d(lodash_namespaceObject, "augmentWidthOrHeight", function() { return augmentWidthOrHeight; }); +__webpack_require__.d(lodash_namespaceObject, "getWidthOrHeight", function() { return getWidthOrHeight; }); +__webpack_require__.d(lodash_namespaceObject, "width", function() { return lodash_width; }); + +// CONCATENATED MODULE: ./src/utf8_encode.js +/** + * UTF8 encoder + * @private + */ +var utf8_encode; +/* harmony default export */ var src_utf8_encode = (utf8_encode = function utf8_encode(argString) { + var c1, enc, end, n, start, string, stringl, utftext; + // http://kevin.vanzonneveld.net + // + original by: Webtoolkit.info (http://www.webtoolkit.info/) + // + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) + // + improved by: sowberry + // + tweaked by: Jack + // + bugfixed by: Onno Marsman + // + improved by: Yves Sucaet + // + bugfixed by: Onno Marsman + // + bugfixed by: Ulrich + // + bugfixed by: Rafal Kukawski + // + improved by: kirilloid + // * example 1: utf8_encode('Kevin van Zonneveld'); + // * returns 1: 'Kevin van Zonneveld' + if (argString === null || typeof argString === 'undefined') { + return ''; + } + string = argString + ''; + // .replace(/\r\n/g, "\n").replace(/\r/g, "\n"); + utftext = ''; + start = void 0; + end = void 0; + stringl = 0; + start = end = 0; + stringl = string.length; + n = 0; + while (n < stringl) { + c1 = string.charCodeAt(n); + enc = null; + if (c1 < 128) { + end++; + } else if (c1 > 127 && c1 < 2048) { + enc = String.fromCharCode(c1 >> 6 | 192, c1 & 63 | 128); + } else { + enc = String.fromCharCode(c1 >> 12 | 224, c1 >> 6 & 63 | 128, c1 & 63 | 128); + } + if (enc !== null) { + if (end > start) { + utftext += string.slice(start, end); + } + utftext += enc; + start = end = n + 1; + } + n++; + } + if (end > start) { + utftext += string.slice(start, stringl); + } + return utftext; +}); +// CONCATENATED MODULE: ./src/crc32.js + + +/** + * CRC32 calculator + * Depends on 'utf8_encode' + * @private + * @param {string} str - The string to calculate the CRC32 for. + * @return {number} + */ +function crc32(str) { + var crc, i, iTop, table, x, y; + // http://kevin.vanzonneveld.net + // + original by: Webtoolkit.info (http://www.webtoolkit.info/) + // + improved by: T0bsn + // + improved by: http://stackoverflow.com/questions/2647935/javascript-crc32-function-and-php-crc32-not-matching + // - depends on: utf8_encode + // * example 1: crc32('Kevin van Zonneveld'); + // * returns 1: 1249991249 + str = src_utf8_encode(str); + table = '00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D'; + crc = 0; + x = 0; + y = 0; + crc = crc ^ -1; + i = 0; + iTop = str.length; + while (i < iTop) { + y = (crc ^ str.charCodeAt(i)) & 0xFF; + x = '0x' + table.substr(y * 9, 8); + crc = crc >>> 8 ^ x; + i++; + } + crc = crc ^ -1; + //convert to unsigned 32-bit int if needed + if (crc < 0) { + crc += 4294967296; + } + return crc; +} +/* harmony default export */ var src_crc32 = (crc32); +// CONCATENATED MODULE: ./src/sdkAnalytics/stringPad.js +function stringPad(value, targetLength, padString) { + targetLength = targetLength >> 0; //truncate if number or convert non-number to 0; + padString = String(typeof padString !== 'undefined' ? padString : ' '); + if (value.length > targetLength) { + return String(value); + } else { + targetLength = targetLength - value.length; + if (targetLength > padString.length) { + padString += repeatStringNumTimes(padString, targetLength / padString.length); + } + return padString.slice(0, targetLength) + String(value); + } +} +function repeatStringNumTimes(string, times) { + var repeatedString = ""; + while (times > 0) { + repeatedString += string; + times--; + } + return repeatedString; +} +// CONCATENATED MODULE: ./src/sdkAnalytics/base64Map.js +function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } + +var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; +var base64Map_num = 0; +var map = {}; +_toConsumableArray(chars).forEach(function (_char) { + var key = base64Map_num.toString(2); + key = stringPad(key, 6, '0'); + map[key] = _char; + base64Map_num++; +}); + +/** + * Map of six-bit binary codes to Base64 characters + */ +/* harmony default export */ var base64Map = (map); +// CONCATENATED MODULE: ./src/sdkAnalytics/reverseVersion.js + + +/** + * @description A semVer like string, x.y.z or x.y is allowed + * Reverses the version positions, x.y.z turns to z.y.x + * Pads each segment with '0' so they have length of 2 + * Example: 1.2.3 -> 03.02.01 + * @param {string} semVer Input can be either x.y.z or x.y + * @return {string} in the form of zz.yy.xx ( + */ +function reverseVersion(semVer) { + if (semVer.split('.').length < 2) { + throw new Error('invalid semVer, must have at least two segments'); + } + + // Split by '.', reverse, create new array with padded values and concat it together + return semVer.split('.').reverse().map(function (segment) { + return stringPad(segment, 2, '0'); + }).join('.'); +} +// CONCATENATED MODULE: ./src/sdkAnalytics/encodeVersion.js + + + + +/** + * @description Encodes a semVer-like version string + * @param {string} semVer Input can be either x.y.z or x.y + * @return {string} A string built from 3 characters of the base64 table that encode the semVer + */ +function encodeVersion(semVer) { + var strResult = ''; + + // support x.y or x.y.z by using 'parts' as a variable + var parts = semVer.split('.').length; + var paddedStringLength = parts * 6; // we pad to either 12 or 18 characters + + // reverse (but don't mirror) the version. 1.5.15 -> 15.5.1 + // Pad to two spaces, 15.5.1 -> 15.05.01 + var paddedReversedSemver = reverseVersion(semVer); + + // turn 15.05.01 to a string '150501' then to a number 150501 + var num = parseInt(paddedReversedSemver.split('.').join('')); + + // Represent as binary, add left padding to 12 or 18 characters. + // 150,501 -> 100100101111100101 + + var paddedBinary = num.toString(2); + paddedBinary = stringPad(paddedBinary, paddedStringLength, '0'); + + // Stop in case an invalid version number was provided + // paddedBinary must be built from sections of 6 bits + if (paddedBinary.length % 6 !== 0) { + throw 'Version must be smaller than 43.21.26)'; + } + + // turn every 6 bits into a character using the base64Map + paddedBinary.match(/.{1,6}/g).forEach(function (bitString) { + // console.log(bitString); + strResult += base64Map[bitString]; + }); + return strResult; +} +// CONCATENATED MODULE: ./src/sdkAnalytics/getSDKAnalyticsSignature.js + + +/** + * @description Gets the SDK signature by encoding the SDK version and tech version + * @param {{ + * [techVersion]:string, + * [sdkSemver]: string, + * [sdkCode]: string, + * [feature]: string + * }} analyticsOptions + * @return {string} sdkAnalyticsSignature + */ +function getSDKAnalyticsSignature() { + var analyticsOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + try { + var twoPartVersion = removePatchFromSemver(analyticsOptions.techVersion); + var encodedSDKVersion = encodeVersion(analyticsOptions.sdkSemver); + var encodedTechVersion = encodeVersion(twoPartVersion); + var featureCode = analyticsOptions.feature; + var SDKCode = analyticsOptions.sdkCode; + var algoVersion = 'A'; // The algo version is determined here, it should not be an argument + + return "".concat(algoVersion).concat(SDKCode).concat(encodedSDKVersion).concat(encodedTechVersion).concat(featureCode); + } catch (e) { + // Either SDK or Node versions were unparsable + return 'E'; + } +} + +/** + * @description Removes patch version from the semver if it exists + * Turns x.y.z OR x.y into x.y + * @param {'x.y.z' || 'x.y' || string} semVerStr + */ +function removePatchFromSemver(semVerStr) { + var parts = semVerStr.split('.'); + return "".concat(parts[0], ".").concat(parts[1]); +} +// CONCATENATED MODULE: ./src/sdkAnalytics/getAnalyticsOptions.js +/** + * @description Gets the analyticsOptions from options- should include sdkSemver, techVersion, sdkCode, and feature + * @param options + * @returns {{sdkSemver: (string), sdkCode, feature: string, techVersion: (string)} || {}} + */ +function getAnalyticsOptions(options) { + var analyticsOptions = { + sdkSemver: options.sdkSemver, + techVersion: options.techVersion, + sdkCode: options.sdkCode, + feature: '0' + }; + if (options.urlAnalytics) { + if (options.accessibility) { + analyticsOptions.feature = 'D'; + } + if (options.loading === 'lazy') { + analyticsOptions.feature = 'C'; + } + if (options.responsive) { + analyticsOptions.feature = 'A'; + } + if (options.placeholder) { + analyticsOptions.feature = 'B'; + } + return analyticsOptions; + } else { + return {}; + } +} +// EXTERNAL MODULE: ./node_modules/lodash/assign.js +var lodash_assign = __webpack_require__("./node_modules/lodash/assign.js"); +var assign_default = /*#__PURE__*/__webpack_require__.n(lodash_assign); + +// EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js +var cloneDeep = __webpack_require__("./node_modules/lodash/cloneDeep.js"); +var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep); + +// EXTERNAL MODULE: ./node_modules/lodash/compact.js +var compact = __webpack_require__("./node_modules/lodash/compact.js"); +var compact_default = /*#__PURE__*/__webpack_require__.n(compact); + +// EXTERNAL MODULE: ./node_modules/lodash/difference.js +var difference = __webpack_require__("./node_modules/lodash/difference.js"); +var difference_default = /*#__PURE__*/__webpack_require__.n(difference); + +// EXTERNAL MODULE: ./node_modules/lodash/functions.js +var functions = __webpack_require__("./node_modules/lodash/functions.js"); +var functions_default = /*#__PURE__*/__webpack_require__.n(functions); + +// EXTERNAL MODULE: ./node_modules/lodash/identity.js +var identity = __webpack_require__("./node_modules/lodash/identity.js"); +var identity_default = /*#__PURE__*/__webpack_require__.n(identity); + +// EXTERNAL MODULE: ./node_modules/lodash/includes.js +var includes = __webpack_require__("./node_modules/lodash/includes.js"); +var includes_default = /*#__PURE__*/__webpack_require__.n(includes); + +// EXTERNAL MODULE: ./node_modules/lodash/isArray.js +var isArray = __webpack_require__("./node_modules/lodash/isArray.js"); +var isArray_default = /*#__PURE__*/__webpack_require__.n(isArray); + +// EXTERNAL MODULE: ./node_modules/lodash/isPlainObject.js +var isPlainObject = __webpack_require__("./node_modules/lodash/isPlainObject.js"); +var isPlainObject_default = /*#__PURE__*/__webpack_require__.n(isPlainObject); + +// EXTERNAL MODULE: ./node_modules/lodash/isString.js +var isString = __webpack_require__("./node_modules/lodash/isString.js"); +var isString_default = /*#__PURE__*/__webpack_require__.n(isString); + +// EXTERNAL MODULE: ./node_modules/lodash/merge.js +var lodash_merge = __webpack_require__("./node_modules/lodash/merge.js"); +var merge_default = /*#__PURE__*/__webpack_require__.n(lodash_merge); + +// EXTERNAL MODULE: ./node_modules/lodash/isElement.js +var isElement = __webpack_require__("./node_modules/lodash/isElement.js"); +var isElement_default = /*#__PURE__*/__webpack_require__.n(isElement); + +// EXTERNAL MODULE: ./node_modules/lodash/isFunction.js +var isFunction = __webpack_require__("./node_modules/lodash/isFunction.js"); +var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction); + +// EXTERNAL MODULE: ./node_modules/lodash/trim.js +var trim = __webpack_require__("./node_modules/lodash/trim.js"); +var trim_default = /*#__PURE__*/__webpack_require__.n(trim); + +// CONCATENATED MODULE: ./src/util/lazyLoad.js +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +/* + * Includes utility methods for lazy loading media + */ + +/** + * Check if IntersectionObserver is supported + * @return {boolean} true if window.IntersectionObserver is defined + */ +function isIntersectionObserverSupported() { + // Check that 'IntersectionObserver' property is defined on window + return (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && window.IntersectionObserver; +} + +/** + * Check if native lazy loading is supported + * @return {boolean} true if 'loading' property is defined for HTMLImageElement + */ +function isNativeLazyLoadSupported() { + return (typeof HTMLImageElement === "undefined" ? "undefined" : _typeof(HTMLImageElement)) === "object" && HTMLImageElement.prototype.loading; +} + +/** + * Calls onIntersect() when intersection is detected, or when + * no native lazy loading or when IntersectionObserver isn't supported. + * @param {Element} el - the element to observe + * @param {function} onIntersect - called when the given element is in view + */ +function detectIntersection(el, onIntersect) { + try { + if (isNativeLazyLoadSupported() || !isIntersectionObserverSupported()) { + // Return if there's no need or possibility to detect intersection + onIntersect(); + return; + } + + // Detect intersection with given element using IntersectionObserver + var observer = new IntersectionObserver(function (entries) { + entries.forEach(function (entry) { + if (entry.isIntersecting) { + onIntersect(); + observer.unobserve(entry.target); + } + }); + }, { + threshold: [0, 0.01] + }); + observer.observe(el); + } catch (e) { + onIntersect(); + } +} +// CONCATENATED MODULE: ./src/constants.js +var VERSION = "2.5.0"; +var CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net"; +var OLD_AKAMAI_SHARED_CDN = "cloudinary-a.akamaihd.net"; +var AKAMAI_SHARED_CDN = "res.cloudinary.com"; +var SHARED_CDN = AKAMAI_SHARED_CDN; +var DEFAULT_TIMEOUT_MS = 10000; +var DEFAULT_POSTER_OPTIONS = { + format: 'jpg', + resource_type: 'video' +}; +var DEFAULT_VIDEO_SOURCE_TYPES = ['webm', 'mp4', 'ogv']; +var SEO_TYPES = { + "image/upload": "images", + "image/private": "private_images", + "image/authenticated": "authenticated_images", + "raw/upload": "files", + "video/upload": "videos" +}; + +/** +* @const {Object} Cloudinary.DEFAULT_IMAGE_PARAMS +* Defaults values for image parameters. +* +* (Previously defined using option_consume() ) + */ +var DEFAULT_IMAGE_PARAMS = { + resource_type: "image", + transformation: [], + type: 'upload' +}; + +/** +* Defaults values for video parameters. +* @const {Object} Cloudinary.DEFAULT_VIDEO_PARAMS +* (Previously defined using option_consume() ) + */ +var DEFAULT_VIDEO_PARAMS = { + fallback_content: '', + resource_type: "video", + source_transformation: {}, + source_types: DEFAULT_VIDEO_SOURCE_TYPES, + transformation: [], + type: 'upload' +}; + +/** + * Recommended sources for video tag + * @const {Object} Cloudinary.DEFAULT_VIDEO_SOURCES + */ +var DEFAULT_VIDEO_SOURCES = [{ + type: "mp4", + codecs: "hev1", + transformations: { + video_codec: "h265" + } +}, { + type: "webm", + codecs: "vp9", + transformations: { + video_codec: "vp9" + } +}, { + type: "mp4", + transformations: { + video_codec: "auto" + } +}, { + type: "webm", + transformations: { + video_codec: "auto" + } +}]; +var DEFAULT_EXTERNAL_LIBRARIES = { + seeThru: 'https://unpkg.com/seethru@4/dist/seeThru.min.js' +}; + +/** + * Predefined placeholder transformations + * @const {Object} Cloudinary.PLACEHOLDER_IMAGE_MODES + */ +var PLACEHOLDER_IMAGE_MODES = { + 'blur': [{ + effect: 'blur:2000', + quality: 1, + fetch_format: 'auto' + }], + // Default + 'pixelate': [{ + effect: 'pixelate', + quality: 1, + fetch_format: 'auto' + }], + // Generates a pixel size image which color is the predominant color of the original image. + 'predominant-color-pixel': [{ + width: 'iw_div_2', + aspect_ratio: 1, + crop: 'pad', + background: 'auto' + }, { + crop: 'crop', + width: 1, + height: 1, + gravity: 'north_east' + }, { + fetch_format: 'auto', + quality: 'auto' + }], + // Generates an image which color is the predominant color of the original image. + 'predominant-color': [{ + variables: [['$currWidth', 'w'], ['$currHeight', 'h']] + }, { + width: 'iw_div_2', + aspect_ratio: 1, + crop: 'pad', + background: 'auto' + }, { + crop: 'crop', + width: 10, + height: 10, + gravity: 'north_east' + }, { + width: '$currWidth', + height: '$currHeight', + crop: 'fill' + }, { + fetch_format: 'auto', + quality: 'auto' + }], + 'vectorize': [{ + effect: 'vectorize:3:0.1', + fetch_format: 'svg' + }] +}; + +/** + * Predefined accessibility transformations + * @const {Object} Cloudinary.ACCESSIBILITY_MODES + */ +var ACCESSIBILITY_MODES = { + darkmode: 'tint:75:black', + brightmode: 'tint:50:white', + monochrome: 'grayscale', + colorblind: 'assist_colorblind' +}; + +/** + * A list of keys used by the url() function. + * @private + */ +var URL_KEYS = ['accessibility', 'api_secret', 'auth_token', 'cdn_subdomain', 'cloud_name', 'cname', 'format', 'placeholder', 'private_cdn', 'resource_type', 'secure', 'secure_cdn_subdomain', 'secure_distribution', 'shorten', 'sign_url', 'signature', 'ssl_detected', 'type', 'url_suffix', 'use_root_path', 'version']; + +/** + * The resource storage type + * @typedef type + * @enum {string} + * @property {string} 'upload' A resource uploaded directly to Cloudinary + * @property {string} 'fetch' A resource fetched by Cloudinary from a 3rd party storage + * @property {string} 'private' + * @property {string} 'authenticated' + * @property {string} 'sprite' + * @property {string} 'facebook' + * @property {string} 'twitter' + * @property {string} 'youtube' + * @property {string} 'vimeo' + * + */ + +/** + * The resource type + * @typedef resourceType + * @enum {string} + * @property {string} 'image' An image file + * @property {string} 'video' A video file + * @property {string} 'raw' A raw file + */ +// CONCATENATED MODULE: ./src/util/baseutil.js +function baseutil_typeof(o) { "@babel/helpers - typeof"; return baseutil_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, baseutil_typeof(o); } +/* + * Includes common utility methods and shims + */ + + +function omit(obj, keys) { + obj = obj || {}; + var srcKeys = Object.keys(obj).filter(function (key) { + return !includes_default()(keys, key); + }); + var filtered = {}; + srcKeys.forEach(function (key) { + return filtered[key] = obj[key]; + }); + return filtered; +} + +/** + * Return true if all items in list are strings + * @function Util.allString + * @param {Array} list - an array of items + */ +var baseutil_allStrings = function allStrings(list) { + return list.length && list.every(isString_default.a); +}; + +/** +* Creates a new array without the given item. +* @function Util.without +* @param {Array} array - original array +* @param {*} item - the item to exclude from the new array +* @return {Array} a new array made of the original array's items except for `item` + */ +var without = function without(array, item) { + return array.filter(function (v) { + return v !== item; + }); +}; + +/** +* Return true is value is a number or a string representation of a number. +* @function Util.isNumberLike +* @param {*} value +* @returns {boolean} true if value is a number +* @example +* Util.isNumber(0) // true +* Util.isNumber("1.3") // true +* Util.isNumber("") // false +* Util.isNumber(undefined) // false + */ +var isNumberLike = function isNumberLike(value) { + return value != null && !isNaN(parseFloat(value)); +}; + +/** + * Escape all characters matching unsafe in the given string + * @function Util.smartEscape + * @param {string} string - source string to escape + * @param {RegExp} unsafe - characters that must be escaped + * @return {string} escaped string + */ +var smartEscape = function smartEscape(string) { + var unsafe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : /([^a-zA-Z0-9_.\-\/:]+)/g; + return string.replace(unsafe, function (match) { + return match.split("").map(function (c) { + return "%" + c.charCodeAt(0).toString(16).toUpperCase(); + }).join(""); + }); +}; + +/** + * Assign values from sources if they are not defined in the destination. + * Once a value is set it does not change + * @function Util.defaults + * @param {Object} destination - the object to assign defaults to + * @param {...Object} source - the source object(s) to assign defaults from + * @return {Object} destination after it was modified + */ +var defaults = function defaults(destination) { + for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + sources[_key - 1] = arguments[_key]; + } + return sources.reduce(function (dest, source) { + var key, value; + for (key in source) { + value = source[key]; + if (dest[key] === void 0) { + dest[key] = value; + } + } + return dest; + }, destination); +}; + +/*********** lodash functions */ +var objectProto = Object.prototype; + +/** + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. + */ +var objToString = objectProto.toString; + +/** + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. + * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * +#isObject({}); + * // => true + * +#isObject([1, 2, 3]); + * // => true + * +#isObject(1); + * // => false + */ +var isObject = function isObject(value) { + var type; + // Avoid a V8 JIT bug in Chrome 19-20. + // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. + type = baseutil_typeof(value); + return !!value && (type === 'object' || type === 'function'); +}; +var funcTag = '[object Function]'; + +/** +* Checks if `value` is classified as a `Function` object. +* @function Util.isFunction +* @param {*} value The value to check. +* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. +* @example +* +* function Foo(){}; +* isFunction(Foo); +* // => true +* +* isFunction(/abc/); +* // => false + */ +var baseutil_isFunction = function isFunction(value) { + // The use of `Object#toString` avoids issues with the `typeof` operator + // in older versions of Chrome and Safari which return 'function' for regexes + // and Safari 8 which returns 'object' for typed array constructors. + return isObject(value) && objToString.call(value) === funcTag; +}; + +/*********** lodash functions */ +/** Used to match words to create compound words. */ +var reWords = function () { + var lower, upper; + upper = '[A-Z]'; + lower = '[a-z]+'; + return RegExp(upper + '+(?=' + upper + lower + ')|' + upper + '?' + lower + '|' + upper + '+|[0-9]+', 'g'); +}(); + +/** +* Convert string to camelCase +* @function Util.camelCase +* @param {string} source - the string to convert +* @return {string} in camelCase format + */ +var camelCase = function camelCase(source) { + var words = source.match(reWords); + words = words.map(function (word) { + return word.charAt(0).toLocaleUpperCase() + word.slice(1).toLocaleLowerCase(); + }); + words[0] = words[0].toLocaleLowerCase(); + return words.join(''); +}; + +/** + * Convert string to snake_case + * @function Util.snakeCase + * @param {string} source - the string to convert + * @return {string} in snake_case format + */ +var snakeCase = function snakeCase(source) { + var words = source.match(reWords); + words = words.map(function (word) { + return word.toLocaleLowerCase(); + }); + return words.join('_'); +}; + +/** + * Creates a new object from source, with the keys transformed using the converter. + * @param {object} source + * @param {function|null} converter + * @returns {object} + */ +var convertKeys = function convertKeys(source, converter) { + var result, value; + result = {}; + for (var key in source) { + value = source[key]; + if (converter) { + key = converter(key); + } + if (!isEmpty(key)) { + result[key] = value; + } + } + return result; +}; + +/** + * Create a copy of the source object with all keys in camelCase + * @function Util.withCamelCaseKeys + * @param {Object} value - the object to copy + * @return {Object} a new object + */ +var withCamelCaseKeys = function withCamelCaseKeys(source) { + return convertKeys(source, camelCase); +}; + +/** + * Create a copy of the source object with all keys in snake_case + * @function Util.withSnakeCaseKeys + * @param {Object} value - the object to copy + * @return {Object} a new object + */ +var withSnakeCaseKeys = function withSnakeCaseKeys(source) { + return convertKeys(source, snakeCase); +}; + +// Browser +// Node.js +var base64Encode = typeof btoa !== 'undefined' && baseutil_isFunction(btoa) ? btoa : typeof Buffer !== 'undefined' && baseutil_isFunction(Buffer) ? function (input) { + if (!(input instanceof Buffer)) { + input = new Buffer.from(String(input), 'binary'); + } + return input.toString('base64'); +} : function (input) { + throw new Error("No base64 encoding function found"); +}; + +/** +* Returns the Base64-decoded version of url.
+* This method delegates to `btoa` if present. Otherwise it tries `Buffer`. +* @function Util.base64EncodeURL +* @param {string} url - the url to encode. the value is URIdecoded and then re-encoded before converting to base64 representation +* @return {string} the base64 representation of the URL + */ +var base64EncodeURL = function base64EncodeURL(url) { + try { + url = decodeURI(url); + } finally { + url = encodeURI(url); + } + return base64Encode(url); +}; + +/** + * Create a new object with only URL parameters + * @param {object} options The source object + * @return {Object} An object containing only URL parameters + */ +function extractUrlParams(options) { + return URL_KEYS.reduce(function (obj, key) { + if (options[key] != null) { + obj[key] = options[key]; + } + return obj; + }, {}); +} + +/** + * Handle the format parameter for fetch urls + * @private + * @param options url and transformation options. This argument may be changed by the function! + */ +function patchFetchFormat(options) { + if (options == null) { + options = {}; + } + if (options.type === "fetch") { + if (options.fetch_format == null) { + options.fetch_format = optionConsume(options, "format"); + } + } +} + +/** + * Deletes `option_name` from `options` and return the value if present. + * If `options` doesn't contain `option_name` the default value is returned. + * @param {Object} options a collection + * @param {String} option_name the name (key) of the desired value + * @param {*} [default_value] the value to return is option_name is missing + */ +function optionConsume(options, option_name, default_value) { + var result = options[option_name]; + delete options[option_name]; + if (result != null) { + return result; + } else { + return default_value; + } +} + +/** + * Returns true if value is empty: + *
    + *
  • value is null or undefined
  • + *
  • value is an array or string of length 0
  • + *
  • value is an object with no keys
  • + *
+ * @function Util.isEmpty + * @param value + * @returns {boolean} true if value is empty + */ +function isEmpty(value) { + if (value == null) { + return true; + } + if (typeof value.length == "number") { + return value.length === 0; + } + if (typeof value.size == "number") { + return value.size === 0; + } + if (baseutil_typeof(value) == "object") { + for (var key in value) { + if (value.hasOwnProperty(key)) { + return false; + } + } + return true; + } + return true; +} +// CONCATENATED MODULE: ./src/util/browser.js +/** + * Based on video.js implementation: + * https://github.com/videojs/video.js/blob/4238f5c1d88890547153e7e1de7bd0d1d8e0b236/src/js/utils/browser.js + */ + +/** +* Retrieve from the navigator the user agent property. +* @returns user agent property. +*/ +function getUserAgent() { + return navigator && navigator.userAgent || ''; +} + +/** + * Detect if current browser is any Android + * @returns true if current browser is Android, false otherwise. + */ +function isAndroid() { + var userAgent = getUserAgent(); + return /Android/i.test(userAgent); +} + +/** + * Detect if current browser is any Edge + * @returns true if current browser is Edge, false otherwise. + */ +function isEdge() { + var userAgent = getUserAgent(); + return /Edg/i.test(userAgent); +} + +/** + * Detect if current browser is chrome. + * @returns true if current browser is Chrome, false otherwise. + */ +function isChrome() { + var userAgent = getUserAgent(); + return !isEdge() && (/Chrome/i.test(userAgent) || /CriOS/i.test(userAgent)); +} + +/** + * Detect if current browser is Safari. + * @returns true if current browser is Safari, false otherwise. + */ +function isSafari() { + // User agents for other browsers might include "Safari" so we must exclude them. + // For example - this is the chrome user agent on windows 10: + // Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 + var userAgent = getUserAgent(); + return /Safari/i.test(userAgent) && !isChrome() && !isAndroid() && !isEdge(); +} +// CONCATENATED MODULE: ./src/util/lodash.js +var nodeContains; + + + + + + + + + + + + + + + + + + + + + + + +/* + * Includes utility methods and lodash / jQuery shims + */ +/** + * Get data from the DOM element. + * + * This method will use jQuery's `data()` method if it is available, otherwise it will get the `data-` attribute + * @param {Element} element - the element to get the data from + * @param {string} name - the name of the data item + * @returns the value associated with the `name` + * @function Util.getData + */ +var lodash_getData = function getData(element, name) { + switch (false) { + case !(element == null): + return void 0; + case !isFunction_default()(element.getAttribute): + return element.getAttribute("data-".concat(name)); + case !isFunction_default()(element.getAttr): + return element.getAttr("data-".concat(name)); + case !isFunction_default()(element.data): + return element.data(name); + case !(isFunction_default()(typeof jQuery !== "undefined" && jQuery.fn && jQuery.fn.data) && isElement_default()(element)): + return jQuery(element).data(name); + } +}; + +/** + * Set data in the DOM element. + * + * This method will use jQuery's `data()` method if it is available, otherwise it will set the `data-` attribute + * @function Util.setData + * @param {Element} element - the element to set the data in + * @param {string} name - the name of the data item + * @param {*} value - the value to be set + * + */ +var lodash_setData = function setData(element, name, value) { + switch (false) { + case !(element == null): + return void 0; + case !isFunction_default()(element.setAttribute): + return element.setAttribute("data-".concat(name), value); + case !isFunction_default()(element.setAttr): + return element.setAttr("data-".concat(name), value); + case !isFunction_default()(element.data): + return element.data(name, value); + case !(isFunction_default()(typeof jQuery !== "undefined" && jQuery.fn && jQuery.fn.data) && isElement_default()(element)): + return jQuery(element).data(name, value); + } +}; + +/** + * Get attribute from the DOM element. + * + * @function Util.getAttribute + * @param {Element} element - the element to set the attribute for + * @param {string} name - the name of the attribute + * @returns {*} the value of the attribute + * + */ +var lodash_getAttribute = function getAttribute(element, name) { + switch (false) { + case !(element == null): + return void 0; + case !isFunction_default()(element.getAttribute): + return element.getAttribute(name); + case !isFunction_default()(element.attr): + return element.attr(name); + case !isFunction_default()(element.getAttr): + return element.getAttr(name); + } +}; + +/** + * Set attribute in the DOM element. + * + * @function Util.setAttribute + * @param {Element} element - the element to set the attribute for + * @param {string} name - the name of the attribute + * @param {*} value - the value to be set + */ +var lodash_setAttribute = function setAttribute(element, name, value) { + switch (false) { + case !(element == null): + return void 0; + case !isFunction_default()(element.setAttribute): + return element.setAttribute(name, value); + case !isFunction_default()(element.attr): + return element.attr(name, value); + case !isFunction_default()(element.setAttr): + return element.setAttr(name, value); + } +}; + +/** + * Remove an attribute in the DOM element. + * + * @function Util.removeAttribute + * @param {Element} element - the element to set the attribute for + * @param {string} name - the name of the attribute + */ +var lodash_removeAttribute = function removeAttribute(element, name) { + switch (false) { + case !(element == null): + return void 0; + case !isFunction_default()(element.removeAttribute): + return element.removeAttribute(name); + default: + return lodash_setAttribute(element, void 0); + } +}; + +/** + * Set a group of attributes to the element + * @function Util.setAttributes + * @param {Element} element - the element to set the attributes for + * @param {Object} attributes - a hash of attribute names and values + */ +var setAttributes = function setAttributes(element, attributes) { + var name, results, value; + results = []; + for (name in attributes) { + value = attributes[name]; + if (value != null) { + results.push(lodash_setAttribute(element, name, value)); + } else { + results.push(lodash_removeAttribute(element, name)); + } + } + return results; +}; + +/** + * Checks if element has a css class + * @function Util.hasClass + * @param {Element} element - the element to check + * @param {string} name - the class name + @returns {boolean} true if the element has the class + */ +var lodash_hasClass = function hasClass(element, name) { + if (isElement_default()(element)) { + return element.className.match(new RegExp("\\b".concat(name, "\\b"))); + } +}; + +/** + * Add class to the element + * @function Util.addClass + * @param {Element} element - the element + * @param {string} name - the class name to add + */ +var lodash_addClass = function addClass(element, name) { + if (!element.className.match(new RegExp("\\b".concat(name, "\\b")))) { + return element.className = trim_default()("".concat(element.className, " ").concat(name)); + } +}; + +// The following code is taken from jQuery +var getStyles = function getStyles(elem) { + // Support: IE<=11+, Firefox<=30+ (#15098, #14150) + // IE throws on elements created in popups + // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" + if (elem.ownerDocument.defaultView.opener) { + return elem.ownerDocument.defaultView.getComputedStyle(elem, null); + } + return window.getComputedStyle(elem, null); +}; +var cssExpand = ["Top", "Right", "Bottom", "Left"]; +nodeContains = function nodeContains(a, b) { + var adown, bup; + adown = a.nodeType === 9 ? a.documentElement : a; + bup = b && b.parentNode; + return a === bup || !!(bup && bup.nodeType === 1 && adown.contains(bup)); +}; + +// Truncated version of jQuery.style(elem, name) +var domStyle = function domStyle(elem, name) { + if (!(!elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style)) { + return elem.style[name]; + } +}; +var curCSS = function curCSS(elem, name, computed) { + var maxWidth, minWidth, ret, rmargin, style, width; + rmargin = /^margin/; + width = void 0; + minWidth = void 0; + maxWidth = void 0; + ret = void 0; + style = elem.style; + computed = computed || getStyles(elem); + if (computed) { + // Support: IE9 + // getPropertyValue is only needed for .css('filter') (#12537) + ret = computed.getPropertyValue(name) || computed[name]; + } + if (computed) { + if (ret === "" && !nodeContains(elem.ownerDocument, elem)) { + ret = domStyle(elem, name); + } + // Support: iOS < 6 + // A tribute to the "awesome hack by Dean Edwards" + // iOS < 6 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels + // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values + if (rnumnonpx.test(ret) && rmargin.test(name)) { + // Remember the original values + width = style.width; + minWidth = style.minWidth; + maxWidth = style.maxWidth; + // Put in the new values to get a computed value out + style.minWidth = style.maxWidth = style.width = ret; + ret = computed.width; + // Revert the changed values + style.width = width; + style.minWidth = minWidth; + style.maxWidth = maxWidth; + } + } + // Support: IE + // IE returns zIndex value as an integer. + if (ret !== undefined) { + return ret + ""; + } else { + return ret; + } +}; +var cssValue = function cssValue(elem, name, convert, styles) { + var val; + val = curCSS(elem, name, styles); + if (convert) { + return parseFloat(val); + } else { + return val; + } +}; +var augmentWidthOrHeight = function augmentWidthOrHeight(elem, name, extra, isBorderBox, styles) { + var i, len, side, sides, val; + // If we already have the right measurement, avoid augmentation + // Otherwise initialize for horizontal or vertical properties + if (extra === (isBorderBox ? "border" : "content")) { + return 0; + } else { + sides = name === "width" ? ["Right", "Left"] : ["Top", "Bottom"]; + val = 0; + for (i = 0, len = sides.length; i < len; i++) { + side = sides[i]; + if (extra === "margin") { + // Both box models exclude margin, so add it if we want it + val += cssValue(elem, extra + side, true, styles); + } + if (isBorderBox) { + if (extra === "content") { + // border-box includes padding, so remove it if we want content + val -= cssValue(elem, "padding".concat(side), true, styles); + } + if (extra !== "margin") { + // At this point, extra isn't border nor margin, so remove border + val -= cssValue(elem, "border".concat(side, "Width"), true, styles); + } + } else { + // At this point, extra isn't content, so add padding + val += cssValue(elem, "padding".concat(side), true, styles); + if (extra !== "padding") { + // At this point, extra isn't content nor padding, so add border + val += cssValue(elem, "border".concat(side, "Width"), true, styles); + } + } + } + return val; + } +}; +var pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source; +var rnumnonpx = new RegExp("^(" + pnum + ")(?!px)[a-z%]+$", "i"); +var getWidthOrHeight = function getWidthOrHeight(elem, name, extra) { + var isBorderBox, styles, val, valueIsBorderBox; + // Start with offset property, which is equivalent to the border-box value + valueIsBorderBox = true; + val = name === "width" ? elem.offsetWidth : elem.offsetHeight; + styles = getStyles(elem); + isBorderBox = cssValue(elem, "boxSizing", false, styles) === "border-box"; + // Some non-html elements return undefined for offsetWidth, so check for null/undefined + // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 + // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 + if (val <= 0 || val == null) { + // Fall back to computed then uncomputed css if necessary + val = curCSS(elem, name, styles); + if (val < 0 || val == null) { + val = elem.style[name]; + } + if (rnumnonpx.test(val)) { + // Computed unit is not pixels. Stop here and return. + return val; + } + // Check for style in case a browser which returns unreliable values + // for getComputedStyle silently falls back to the reliable elem.style + // valueIsBorderBox = isBorderBox and (support.boxSizingReliable() or val is elem.style[name]) + valueIsBorderBox = isBorderBox && val === elem.style[name]; + // Normalize "", auto, and prepare for extra + val = parseFloat(val) || 0; + } + // Use the active box-sizing model to add/subtract irrelevant styles + return val + augmentWidthOrHeight(elem, name, extra || (isBorderBox ? "border" : "content"), valueIsBorderBox, styles); +}; +var lodash_width = function width(element) { + return getWidthOrHeight(element, "width", "content"); +}; + +/** + * @class Util + */ +/** + * Returns true if item is a string + * @function Util.isString + * @param item + * @returns {boolean} true if item is a string + */ +/** + * Returns true if item is empty: + *
    + *
  • item is null or undefined
  • + *
  • item is an array or string of length 0
  • + *
  • item is an object with no keys
  • + *
+ * @function Util.isEmpty + * @param item + * @returns {boolean} true if item is empty + */ +/** + * Assign source properties to destination. + * If the property is an object it is assigned as a whole, overriding the destination object. + * @function Util.assign + * @param {Object} destination - the object to assign to + */ +/** + * Recursively assign source properties to destination + * @function Util.merge + * @param {Object} destination - the object to assign to + * @param {...Object} [sources] The source objects. + */ +/** + * Create a new copy of the given object, including all internal objects. + * @function Util.cloneDeep + * @param {Object} value - the object to clone + * @return {Object} a new deep copy of the object + */ +/** + * Creates a new array from the parameter with "falsey" values removed + * @function Util.compact + * @param {Array} array - the array to remove values from + * @return {Array} a new array without falsey values + */ +/** + * Check if a given item is included in the given array + * @function Util.contains + * @param {Array} array - the array to search in + * @param {*} item - the item to search for + * @return {boolean} true if the item is included in the array + */ +/** + * Returns values in the given array that are not included in the other array + * @function Util.difference + * @param {Array} arr - the array to select from + * @param {Array} values - values to filter from arr + * @return {Array} the filtered values + */ +/** + * Returns a list of all the function names in obj + * @function Util.functions + * @param {Object} object - the object to inspect + * @return {Array} a list of functions of object + */ +/** + * Returns the provided value. This functions is used as a default predicate function. + * @function Util.identity + * @param {*} value + * @return {*} the provided value + */ +/** + * Remove leading or trailing spaces from text + * @function Util.trim + * @param {string} text + * @return {string} the `text` without leading or trailing spaces + */ +// CONCATENATED MODULE: ./src/expression.js +function expression_typeof(o) { "@babel/helpers - typeof"; return expression_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, expression_typeof(o); } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == expression_typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != expression_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != expression_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +/** + * Represents a transformation expression. + * @param {string} expressionStr - An expression in string format. + * @class Expression + * Normally this class is not instantiated directly + */ +var Expression = /*#__PURE__*/function () { + function Expression(expressionStr) { + _classCallCheck(this, Expression); + /** + * @protected + * @inner Expression-expressions + */ + this.expressions = []; + if (expressionStr != null) { + this.expressions.push(Expression.normalize(expressionStr)); + } + } + + /** + * Convenience constructor method + * @function Expression.new + */ + return _createClass(Expression, [{ + key: "serialize", + value: + /** + * Serialize the expression + * @return {string} the expression as a string + */ + function serialize() { + return Expression.normalize(this.expressions.join("_")); + } + }, { + key: "toString", + value: function toString() { + return this.serialize(); + } + + /** + * Get the parent transformation of this expression + * @return Transformation + */ + }, { + key: "getParent", + value: function getParent() { + return this.parent; + } + + /** + * Set the parent transformation of this expression + * @param {Transformation} the parent transformation + * @return {Expression} this expression + */ + }, { + key: "setParent", + value: function setParent(parent) { + this.parent = parent; + return this; + } + + /** + * Add a expression + * @function Expression#predicate + * @internal + */ + }, { + key: "predicate", + value: function predicate(name, operator, value) { + if (Expression.OPERATORS[operator] != null) { + operator = Expression.OPERATORS[operator]; + } + this.expressions.push("".concat(name, "_").concat(operator, "_").concat(value)); + return this; + } + + /** + * @function Expression#and + */ + }, { + key: "and", + value: function and() { + this.expressions.push("and"); + return this; + } + + /** + * @function Expression#or + */ + }, { + key: "or", + value: function or() { + this.expressions.push("or"); + return this; + } + + /** + * Conclude expression + * @function Expression#then + * @return {Transformation} the transformation this expression is defined for + */ + }, { + key: "then", + value: function then() { + return this.getParent()["if"](this.toString()); + } + + /** + * @function Expression#height + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Expression} this expression + */ + }, { + key: "height", + value: function height(operator, value) { + return this.predicate("h", operator, value); + } + + /** + * @function Expression#width + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Expression} this expression + */ + }, { + key: "width", + value: function width(operator, value) { + return this.predicate("w", operator, value); + } + + /** + * @function Expression#aspectRatio + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Expression} this expression + */ + }, { + key: "aspectRatio", + value: function aspectRatio(operator, value) { + return this.predicate("ar", operator, value); + } + + /** + * @function Expression#pages + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Expression} this expression + */ + }, { + key: "pageCount", + value: function pageCount(operator, value) { + return this.predicate("pc", operator, value); + } + + /** + * @function Expression#faces + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Expression} this expression + */ + }, { + key: "faceCount", + value: function faceCount(operator, value) { + return this.predicate("fc", operator, value); + } + }, { + key: "value", + value: function value(_value) { + this.expressions.push(_value); + return this; + } + + /** + */ + }], [{ + key: "new", + value: function _new(expressionStr) { + return new this(expressionStr); + } + + /** + * Normalize a string expression + * @function Cloudinary#normalize + * @param {string} expression a expression, e.g. "w gt 100", "width_gt_100", "width > 100" + * @return {string} the normalized form of the value expression, e.g. "w_gt_100" + */ + }, { + key: "normalize", + value: function normalize(expression) { + if (expression == null) { + return expression; + } + expression = String(expression); + var operators = "\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^"; + + // operators + var operatorsPattern = "((" + operators + ")(?=[ _]))"; + var operatorsReplaceRE = new RegExp(operatorsPattern, "g"); + expression = expression.replace(operatorsReplaceRE, function (match) { + return Expression.OPERATORS[match]; + }); + + // predefined variables + // The :${v} part is to prevent normalization of vars with a preceding colon (such as :duration), + // It won't be found in PREDEFINED_VARS and so won't be normalized. + // It is done like this because ie11 does not support regex lookbehind + var predefinedVarsPattern = "(" + Object.keys(Expression.PREDEFINED_VARS).map(function (v) { + return ":".concat(v, "|").concat(v); + }).join("|") + ")"; + var userVariablePattern = '(\\$_*[^_ ]+)'; + var variablesReplaceRE = new RegExp("".concat(userVariablePattern, "|").concat(predefinedVarsPattern), "g"); + expression = expression.replace(variablesReplaceRE, function (match) { + return Expression.PREDEFINED_VARS[match] || match; + }); + return expression.replace(/[ _]+/g, '_'); + } + }, { + key: "variable", + value: function variable(name, value) { + return new this(name).value(value); + } + + /** + * @returns Expression a new expression with the predefined variable "width" + * @function Expression.width + */ + }, { + key: "width", + value: function width() { + return new this("width"); + } + + /** + * @returns Expression a new expression with the predefined variable "height" + * @function Expression.height + */ + }, { + key: "height", + value: function height() { + return new this("height"); + } + + /** + * @returns Expression a new expression with the predefined variable "initialWidth" + * @function Expression.initialWidth + */ + }, { + key: "initialWidth", + value: function initialWidth() { + return new this("initialWidth"); + } + + /** + * @returns Expression a new expression with the predefined variable "initialHeight" + * @function Expression.initialHeight + */ + }, { + key: "initialHeight", + value: function initialHeight() { + return new this("initialHeight"); + } + + /** + * @returns Expression a new expression with the predefined variable "aspectRatio" + * @function Expression.aspectRatio + */ + }, { + key: "aspectRatio", + value: function aspectRatio() { + return new this("aspectRatio"); + } + + /** + * @returns Expression a new expression with the predefined variable "initialAspectRatio" + * @function Expression.initialAspectRatio + */ + }, { + key: "initialAspectRatio", + value: function initialAspectRatio() { + return new this("initialAspectRatio"); + } + + /** + * @returns Expression a new expression with the predefined variable "pageCount" + * @function Expression.pageCount + */ + }, { + key: "pageCount", + value: function pageCount() { + return new this("pageCount"); + } + + /** + * @returns Expression new expression with the predefined variable "faceCount" + * @function Expression.faceCount + */ + }, { + key: "faceCount", + value: function faceCount() { + return new this("faceCount"); + } + + /** + * @returns Expression a new expression with the predefined variable "currentPage" + * @function Expression.currentPage + */ + }, { + key: "currentPage", + value: function currentPage() { + return new this("currentPage"); + } + + /** + * @returns Expression a new expression with the predefined variable "tags" + * @function Expression.tags + */ + }, { + key: "tags", + value: function tags() { + return new this("tags"); + } + + /** + * @returns Expression a new expression with the predefined variable "pageX" + * @function Expression.pageX + */ + }, { + key: "pageX", + value: function pageX() { + return new this("pageX"); + } + + /** + * @returns Expression a new expression with the predefined variable "pageY" + * @function Expression.pageY + */ + }, { + key: "pageY", + value: function pageY() { + return new this("pageY"); + } + }]); +}(); +/** + * @internal + */ +Expression.OPERATORS = { + "=": 'eq', + "!=": 'ne', + "<": 'lt', + ">": 'gt', + "<=": 'lte', + ">=": 'gte', + "&&": 'and', + "||": 'or', + "*": "mul", + "/": "div", + "+": "add", + "-": "sub", + "^": "pow" +}; + +/** + * @internal + */ +Expression.PREDEFINED_VARS = { + "aspect_ratio": "ar", + "aspectRatio": "ar", + "current_page": "cp", + "currentPage": "cp", + "duration": "du", + "face_count": "fc", + "faceCount": "fc", + "height": "h", + "initial_aspect_ratio": "iar", + "initial_duration": "idu", + "initial_height": "ih", + "initial_width": "iw", + "initialAspectRatio": "iar", + "initialDuration": "idu", + "initialHeight": "ih", + "initialWidth": "iw", + "page_count": "pc", + "page_x": "px", + "page_y": "py", + "pageCount": "pc", + "pageX": "px", + "pageY": "py", + "tags": "tags", + "width": "w" +}; + +/** + * @internal + */ +Expression.BOUNDRY = "[ _]+"; +/* harmony default export */ var expression = (Expression); +// CONCATENATED MODULE: ./src/condition.js +function condition_typeof(o) { "@babel/helpers - typeof"; return condition_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, condition_typeof(o); } +function condition_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function condition_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, condition_toPropertyKey(descriptor.key), descriptor); } } +function condition_createClass(Constructor, protoProps, staticProps) { if (protoProps) condition_defineProperties(Constructor.prototype, protoProps); if (staticProps) condition_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function condition_toPropertyKey(t) { var i = condition_toPrimitive(t, "string"); return "symbol" == condition_typeof(i) ? i : i + ""; } +function condition_toPrimitive(t, r) { if ("object" != condition_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != condition_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(self, call) { if (call && (condition_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + +/** + * Represents a transformation condition. + * @param {string} conditionStr - a condition in string format + * @class Condition + * @example + * // normally this class is not instantiated directly + * var tr = cloudinary.Transformation.new() + * .if().width( ">", 1000).and().aspectRatio("<", "3:4").then() + * .width(1000) + * .crop("scale") + * .else() + * .width(500) + * .crop("scale") + * + * var tr = cloudinary.Transformation.new() + * .if("w > 1000 and aspectRatio < 3:4") + * .width(1000) + * .crop("scale") + * .else() + * .width(500) + * .crop("scale") + * + */ +var Condition = /*#__PURE__*/function (_Expression) { + function Condition(conditionStr) { + condition_classCallCheck(this, Condition); + return _callSuper(this, Condition, [conditionStr]); + } + + /** + * @function Condition#height + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Condition} this condition + */ + _inherits(Condition, _Expression); + return condition_createClass(Condition, [{ + key: "height", + value: function height(operator, value) { + return this.predicate("h", operator, value); + } + + /** + * @function Condition#width + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Condition} this condition + */ + }, { + key: "width", + value: function width(operator, value) { + return this.predicate("w", operator, value); + } + + /** + * @function Condition#aspectRatio + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Condition} this condition + */ + }, { + key: "aspectRatio", + value: function aspectRatio(operator, value) { + return this.predicate("ar", operator, value); + } + + /** + * @function Condition#pages + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Condition} this condition + */ + }, { + key: "pageCount", + value: function pageCount(operator, value) { + return this.predicate("pc", operator, value); + } + + /** + * @function Condition#faces + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Condition} this condition + */ + }, { + key: "faceCount", + value: function faceCount(operator, value) { + return this.predicate("fc", operator, value); + } + + /** + * @function Condition#duration + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Condition} this condition + */ + }, { + key: "duration", + value: function duration(operator, value) { + return this.predicate("du", operator, value); + } + + /** + * @function Condition#initialDuration + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Condition} this condition + */ + }, { + key: "initialDuration", + value: function initialDuration(operator, value) { + return this.predicate("idu", operator, value); + } + }]); +}(expression); +/* harmony default export */ var condition = (Condition); +// CONCATENATED MODULE: ./src/configuration.js +function configuration_typeof(o) { "@babel/helpers - typeof"; return configuration_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, configuration_typeof(o); } +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || configuration_unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function configuration_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return configuration_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return configuration_arrayLikeToArray(o, minLen); } +function configuration_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function configuration_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function configuration_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, configuration_toPropertyKey(descriptor.key), descriptor); } } +function configuration_createClass(Constructor, protoProps, staticProps) { if (protoProps) configuration_defineProperties(Constructor.prototype, protoProps); if (staticProps) configuration_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function configuration_toPropertyKey(t) { var i = configuration_toPrimitive(t, "string"); return "symbol" == configuration_typeof(i) ? i : i + ""; } +function configuration_toPrimitive(t, r) { if ("object" != configuration_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != configuration_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +/** + * Class for defining account configuration options. + * Depends on 'utils' + */ + + + +/** + * Class for defining account configuration options. + * @constructor Configuration + * @param {Object} options - The account configuration parameters to set. + * @see Available configuration options + */ +var configuration_Configuration = /*#__PURE__*/function () { + function Configuration(options) { + configuration_classCallCheck(this, Configuration); + this.configuration = options == null ? {} : cloneDeep_default()(options); + defaults(this.configuration, DEFAULT_CONFIGURATION_PARAMS); + } + + /** + * Initializes the configuration. This method is a convenience method that invokes both + * {@link Configuration#fromEnvironment|fromEnvironment()} (Node.js environment only) + * and {@link Configuration#fromDocument|fromDocument()}. + * It first tries to retrieve the configuration from the environment variable. + * If not available, it tries from the document meta tags. + * @function Configuration#init + * @return {Configuration} returns `this` for chaining + * @see fromDocument + * @see fromEnvironment + */ + return configuration_createClass(Configuration, [{ + key: "init", + value: function init() { + this.fromEnvironment(); + this.fromDocument(); + return this; + } + + /** + * Set a new configuration item + * @function Configuration#set + * @param {string} name - the name of the item to set + * @param {*} value - the value to be set + * @return {Configuration} + * + */ + }, { + key: "set", + value: function set(name, value) { + this.configuration[name] = value; + return this; + } + + /** + * Get the value of a configuration item + * @function Configuration#get + * @param {string} name - the name of the item to set + * @return {*} the configuration item + */ + }, { + key: "get", + value: function get(name) { + return this.configuration[name]; + } + }, { + key: "merge", + value: function merge(config) { + assign_default()(this.configuration, cloneDeep_default()(config)); + return this; + } + + /** + * Initialize Cloudinary from HTML meta tags. + * @function Configuration#fromDocument + * @return {Configuration} + * @example + * + */ + }, { + key: "fromDocument", + value: function fromDocument() { + var el, i, len, meta_elements; + meta_elements = typeof document !== "undefined" && document !== null ? document.querySelectorAll('meta[name^="cloudinary_"]') : void 0; + if (meta_elements) { + for (i = 0, len = meta_elements.length; i < len; i++) { + el = meta_elements[i]; + this.configuration[el.getAttribute('name').replace('cloudinary_', '')] = el.getAttribute('content'); + } + } + return this; + } + + /** + * Initialize Cloudinary from the `CLOUDINARY_URL` environment variable. + * + * This function will only run under Node.js environment. + * @function Configuration#fromEnvironment + * @requires Node.js + */ + }, { + key: "fromEnvironment", + value: function fromEnvironment() { + var _this = this; + var cloudinary_url, query, uri, uriRegex; + if (typeof process !== "undefined" && process !== null && process.env && process.env.CLOUDINARY_URL) { + cloudinary_url = process.env.CLOUDINARY_URL; + uriRegex = /cloudinary:\/\/(?:(\w+)(?:\:([\w-]+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/; + uri = uriRegex.exec(cloudinary_url); + if (uri) { + if (uri[3] != null) { + this.configuration['cloud_name'] = uri[3]; + } + if (uri[1] != null) { + this.configuration['api_key'] = uri[1]; + } + if (uri[2] != null) { + this.configuration['api_secret'] = uri[2]; + } + if (uri[4] != null) { + this.configuration['private_cdn'] = uri[4] != null; + } + if (uri[4] != null) { + this.configuration['secure_distribution'] = uri[4]; + } + query = uri[5]; + if (query != null) { + query.split('&').forEach(function (value) { + var _value$split = value.split('='), + _value$split2 = _slicedToArray(_value$split, 2), + k = _value$split2[0], + v = _value$split2[1]; + if (v == null) { + v = true; + } + _this.configuration[k] = v; + }); + } + } + } + return this; + } + + /** + * Create or modify the Cloudinary client configuration + * + * Warning: `config()` returns the actual internal configuration object. modifying it will change the configuration. + * + * This is a backward compatibility method. For new code, use get(), merge() etc. + * @function Configuration#config + * @param {hash|string|boolean} new_config + * @param {string} new_value + * @returns {*} configuration, or value + * + * @see {@link fromEnvironment} for initialization using environment variables + * @see {@link fromDocument} for initialization using HTML meta tags + */ + }, { + key: "config", + value: function config(new_config, new_value) { + switch (false) { + case new_value === void 0: + this.set(new_config, new_value); + return this.configuration; + case !isString_default()(new_config): + return this.get(new_config); + case !isPlainObject_default()(new_config): + this.merge(new_config); + return this.configuration; + default: + // Backward compatibility - return the internal object + return this.configuration; + } + } + + /** + * Returns a copy of the configuration parameters + * @function Configuration#toOptions + * @returns {Object} a key:value collection of the configuration parameters + */ + }, { + key: "toOptions", + value: function toOptions() { + return cloneDeep_default()(this.configuration); + } + }]); +}(); +var DEFAULT_CONFIGURATION_PARAMS = { + responsive_class: 'cld-responsive', + responsive_use_breakpoints: true, + round_dpr: true, + secure: (typeof window !== "undefined" && window !== null ? window.location ? window.location.protocol : void 0 : void 0) === 'https:' +}; +configuration_Configuration.CONFIG_PARAMS = ["api_key", "api_secret", "callback", "cdn_subdomain", "cloud_name", "cname", "private_cdn", "protocol", "resource_type", "responsive", "responsive_class", "responsive_use_breakpoints", "responsive_width", "round_dpr", "secure", "secure_cdn_subdomain", "secure_distribution", "shorten", "type", "upload_preset", "url_suffix", "use_root_path", "version", "externalLibraries", "max_timeout_ms"]; +/* harmony default export */ var src_configuration = (configuration_Configuration); +// CONCATENATED MODULE: ./src/layer/layer.js +function layer_typeof(o) { "@babel/helpers - typeof"; return layer_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, layer_typeof(o); } +function layer_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function layer_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, layer_toPropertyKey(descriptor.key), descriptor); } } +function layer_createClass(Constructor, protoProps, staticProps) { if (protoProps) layer_defineProperties(Constructor.prototype, protoProps); if (staticProps) layer_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function layer_toPropertyKey(t) { var i = layer_toPrimitive(t, "string"); return "symbol" == layer_typeof(i) ? i : i + ""; } +function layer_toPrimitive(t, r) { if ("object" != layer_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != layer_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } + +var layer_Layer = /*#__PURE__*/function () { + /** + * Layer + * @constructor Layer + * @param {Object} options - layer parameters + */ + function Layer(options) { + var _this = this; + layer_classCallCheck(this, Layer); + this.options = {}; + if (options != null) { + ["resourceType", "type", "publicId", "format"].forEach(function (key) { + var ref; + return _this.options[key] = (ref = options[key]) != null ? ref : options[snakeCase(key)]; + }); + } + } + return layer_createClass(Layer, [{ + key: "resourceType", + value: function resourceType(value) { + this.options.resourceType = value; + return this; + } + }, { + key: "type", + value: function type(value) { + this.options.type = value; + return this; + } + }, { + key: "publicId", + value: function publicId(value) { + this.options.publicId = value; + return this; + } + + /** + * Get the public ID, formatted for layer parameter + * @function Layer#getPublicId + * @return {String} public ID + */ + }, { + key: "getPublicId", + value: function getPublicId() { + var ref; + return (ref = this.options.publicId) != null ? ref.replace(/\//g, ":") : void 0; + } + + /** + * Get the public ID, with format if present + * @function Layer#getFullPublicId + * @return {String} public ID + */ + }, { + key: "getFullPublicId", + value: function getFullPublicId() { + if (this.options.format != null) { + return this.getPublicId() + "." + this.options.format; + } else { + return this.getPublicId(); + } + } + }, { + key: "format", + value: function format(value) { + this.options.format = value; + return this; + } + + /** + * generate the string representation of the layer + * @function Layer#toString + */ + }, { + key: "toString", + value: function toString() { + var components; + components = []; + if (this.options.publicId == null) { + throw "Must supply publicId"; + } + if (!(this.options.resourceType === "image")) { + components.push(this.options.resourceType); + } + if (!(this.options.type === "upload")) { + components.push(this.options.type); + } + components.push(this.getFullPublicId()); + return compact_default()(components).join(":"); + } + }, { + key: "clone", + value: function clone() { + return new this.constructor(this.options); + } + }]); +}(); +/* harmony default export */ var layer_layer = (layer_Layer); +// CONCATENATED MODULE: ./src/layer/textlayer.js +function textlayer_typeof(o) { "@babel/helpers - typeof"; return textlayer_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, textlayer_typeof(o); } +function textlayer_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function textlayer_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, textlayer_toPropertyKey(descriptor.key), descriptor); } } +function textlayer_createClass(Constructor, protoProps, staticProps) { if (protoProps) textlayer_defineProperties(Constructor.prototype, protoProps); if (staticProps) textlayer_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function textlayer_toPropertyKey(t) { var i = textlayer_toPrimitive(t, "string"); return "symbol" == textlayer_typeof(i) ? i : i + ""; } +function textlayer_toPrimitive(t, r) { if ("object" != textlayer_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != textlayer_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function textlayer_callSuper(t, o, e) { return o = textlayer_getPrototypeOf(o), textlayer_possibleConstructorReturn(t, textlayer_isNativeReflectConstruct() ? Reflect.construct(o, e || [], textlayer_getPrototypeOf(t).constructor) : o.apply(t, e)); } +function textlayer_possibleConstructorReturn(self, call) { if (call && (textlayer_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return textlayer_assertThisInitialized(self); } +function textlayer_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } +function textlayer_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (textlayer_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function textlayer_getPrototypeOf(o) { textlayer_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return textlayer_getPrototypeOf(o); } +function textlayer_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) textlayer_setPrototypeOf(subClass, superClass); } +function textlayer_setPrototypeOf(o, p) { textlayer_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return textlayer_setPrototypeOf(o, p); } + + +var textlayer_TextLayer = /*#__PURE__*/function (_Layer) { + /** + * @constructor TextLayer + * @param {Object} options - layer parameters + */ + function TextLayer(options) { + var _this; + textlayer_classCallCheck(this, TextLayer); + var keys; + _this = textlayer_callSuper(this, TextLayer, [options]); + keys = ["resourceType", "resourceType", "fontFamily", "fontSize", "fontWeight", "fontStyle", "textDecoration", "textAlign", "stroke", "letterSpacing", "lineSpacing", "fontHinting", "fontAntialiasing", "text", "textStyle"]; + if (options != null) { + keys.forEach(function (key) { + var ref; + return _this.options[key] = (ref = options[key]) != null ? ref : options[snakeCase(key)]; + }); + } + _this.options.resourceType = "text"; + return _this; + } + textlayer_inherits(TextLayer, _Layer); + return textlayer_createClass(TextLayer, [{ + key: "resourceType", + value: function resourceType(_resourceType) { + throw "Cannot modify resourceType for text layers"; + } + }, { + key: "type", + value: function type(_type) { + throw "Cannot modify type for text layers"; + } + }, { + key: "format", + value: function format(_format) { + throw "Cannot modify format for text layers"; + } + }, { + key: "fontFamily", + value: function fontFamily(_fontFamily) { + this.options.fontFamily = _fontFamily; + return this; + } + }, { + key: "fontSize", + value: function fontSize(_fontSize) { + this.options.fontSize = _fontSize; + return this; + } + }, { + key: "fontWeight", + value: function fontWeight(_fontWeight) { + this.options.fontWeight = _fontWeight; + return this; + } + }, { + key: "fontStyle", + value: function fontStyle(_fontStyle) { + this.options.fontStyle = _fontStyle; + return this; + } + }, { + key: "textDecoration", + value: function textDecoration(_textDecoration) { + this.options.textDecoration = _textDecoration; + return this; + } + }, { + key: "textAlign", + value: function textAlign(_textAlign) { + this.options.textAlign = _textAlign; + return this; + } + }, { + key: "stroke", + value: function stroke(_stroke) { + this.options.stroke = _stroke; + return this; + } + }, { + key: "letterSpacing", + value: function letterSpacing(_letterSpacing) { + this.options.letterSpacing = _letterSpacing; + return this; + } + }, { + key: "lineSpacing", + value: function lineSpacing(_lineSpacing) { + this.options.lineSpacing = _lineSpacing; + return this; + } + }, { + key: "fontHinting", + value: function fontHinting(_fontHinting) { + this.options.fontHinting = _fontHinting; + return this; + } + }, { + key: "fontAntialiasing", + value: function fontAntialiasing(_fontAntialiasing) { + this.options.fontAntialiasing = _fontAntialiasing; + return this; + } + }, { + key: "text", + value: function text(_text) { + this.options.text = _text; + return this; + } + }, { + key: "textStyle", + value: function textStyle(_textStyle) { + this.options.textStyle = _textStyle; + return this; + } + + /** + * generate the string representation of the layer + * @function TextLayer#toString + * @return {String} + */ + }, { + key: "toString", + value: function toString() { + var components, hasPublicId, hasStyle, publicId, re, res, start, style, text, textSource; + style = this.textStyleIdentifier(); + if (this.options.publicId != null) { + publicId = this.getFullPublicId(); + } + if (this.options.text != null) { + hasPublicId = !isEmpty(publicId); + hasStyle = !isEmpty(style); + if (hasPublicId && hasStyle || !hasPublicId && !hasStyle) { + throw "Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!"; + } + re = /\$\([a-zA-Z]\w*\)/g; + start = 0; + // textSource = text.replace(new RegExp("[,/]", 'g'), (c)-> "%#{c.charCodeAt(0).toString(16).toUpperCase()}") + textSource = smartEscape(this.options.text, /[,\/]/g); + text = ""; + while (res = re.exec(textSource)) { + text += smartEscape(textSource.slice(start, res.index)); + text += res[0]; + start = res.index + res[0].length; + } + text += smartEscape(textSource.slice(start)); + } + components = [this.options.resourceType, style, publicId, text]; + return compact_default()(components).join(":"); + } + }, { + key: "textStyleIdentifier", + value: function textStyleIdentifier() { + // Note: if a text-style argument is provided as a whole, it overrides everything else, no mix and match. + if (!isEmpty(this.options.textStyle)) { + return this.options.textStyle; + } + var components; + components = []; + if (this.options.fontWeight !== "normal") { + components.push(this.options.fontWeight); + } + if (this.options.fontStyle !== "normal") { + components.push(this.options.fontStyle); + } + if (this.options.textDecoration !== "none") { + components.push(this.options.textDecoration); + } + components.push(this.options.textAlign); + if (this.options.stroke !== "none") { + components.push(this.options.stroke); + } + if (!(isEmpty(this.options.letterSpacing) && !isNumberLike(this.options.letterSpacing))) { + components.push("letter_spacing_" + this.options.letterSpacing); + } + if (!(isEmpty(this.options.lineSpacing) && !isNumberLike(this.options.lineSpacing))) { + components.push("line_spacing_" + this.options.lineSpacing); + } + if (!isEmpty(this.options.fontAntialiasing)) { + components.push("antialias_" + this.options.fontAntialiasing); + } + if (!isEmpty(this.options.fontHinting)) { + components.push("hinting_" + this.options.fontHinting); + } + if (!isEmpty(compact_default()(components))) { + if (isEmpty(this.options.fontFamily)) { + throw "Must supply fontFamily. ".concat(components); + } + if (isEmpty(this.options.fontSize) && !isNumberLike(this.options.fontSize)) { + throw "Must supply fontSize."; + } + } + components.unshift(this.options.fontFamily, this.options.fontSize); + components = compact_default()(components).join("_"); + return components; + } + }]); +}(layer_layer); +; +/* harmony default export */ var textlayer = (textlayer_TextLayer); +// CONCATENATED MODULE: ./src/layer/subtitleslayer.js +function subtitleslayer_typeof(o) { "@babel/helpers - typeof"; return subtitleslayer_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, subtitleslayer_typeof(o); } +function subtitleslayer_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, subtitleslayer_toPropertyKey(descriptor.key), descriptor); } } +function subtitleslayer_createClass(Constructor, protoProps, staticProps) { if (protoProps) subtitleslayer_defineProperties(Constructor.prototype, protoProps); if (staticProps) subtitleslayer_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function subtitleslayer_toPropertyKey(t) { var i = subtitleslayer_toPrimitive(t, "string"); return "symbol" == subtitleslayer_typeof(i) ? i : i + ""; } +function subtitleslayer_toPrimitive(t, r) { if ("object" != subtitleslayer_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != subtitleslayer_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function subtitleslayer_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function subtitleslayer_callSuper(t, o, e) { return o = subtitleslayer_getPrototypeOf(o), subtitleslayer_possibleConstructorReturn(t, subtitleslayer_isNativeReflectConstruct() ? Reflect.construct(o, e || [], subtitleslayer_getPrototypeOf(t).constructor) : o.apply(t, e)); } +function subtitleslayer_possibleConstructorReturn(self, call) { if (call && (subtitleslayer_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return subtitleslayer_assertThisInitialized(self); } +function subtitleslayer_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } +function subtitleslayer_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (subtitleslayer_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function subtitleslayer_getPrototypeOf(o) { subtitleslayer_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return subtitleslayer_getPrototypeOf(o); } +function subtitleslayer_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) subtitleslayer_setPrototypeOf(subClass, superClass); } +function subtitleslayer_setPrototypeOf(o, p) { subtitleslayer_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return subtitleslayer_setPrototypeOf(o, p); } + +var SubtitlesLayer = /*#__PURE__*/function (_TextLayer) { + /** + * Represent a subtitles layer + * @constructor SubtitlesLayer + * @param {Object} options - layer parameters + */ + function SubtitlesLayer(options) { + var _this; + subtitleslayer_classCallCheck(this, SubtitlesLayer); + _this = subtitleslayer_callSuper(this, SubtitlesLayer, [options]); + _this.options.resourceType = "subtitles"; + return _this; + } + subtitleslayer_inherits(SubtitlesLayer, _TextLayer); + return subtitleslayer_createClass(SubtitlesLayer); +}(textlayer); +/* harmony default export */ var subtitleslayer = (SubtitlesLayer); +// CONCATENATED MODULE: ./src/layer/fetchlayer.js +function fetchlayer_typeof(o) { "@babel/helpers - typeof"; return fetchlayer_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, fetchlayer_typeof(o); } +function fetchlayer_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function fetchlayer_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, fetchlayer_toPropertyKey(descriptor.key), descriptor); } } +function fetchlayer_createClass(Constructor, protoProps, staticProps) { if (protoProps) fetchlayer_defineProperties(Constructor.prototype, protoProps); if (staticProps) fetchlayer_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function fetchlayer_toPropertyKey(t) { var i = fetchlayer_toPrimitive(t, "string"); return "symbol" == fetchlayer_typeof(i) ? i : i + ""; } +function fetchlayer_toPrimitive(t, r) { if ("object" != fetchlayer_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != fetchlayer_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function fetchlayer_callSuper(t, o, e) { return o = fetchlayer_getPrototypeOf(o), fetchlayer_possibleConstructorReturn(t, fetchlayer_isNativeReflectConstruct() ? Reflect.construct(o, e || [], fetchlayer_getPrototypeOf(t).constructor) : o.apply(t, e)); } +function fetchlayer_possibleConstructorReturn(self, call) { if (call && (fetchlayer_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return fetchlayer_assertThisInitialized(self); } +function fetchlayer_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } +function fetchlayer_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (fetchlayer_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function fetchlayer_getPrototypeOf(o) { fetchlayer_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return fetchlayer_getPrototypeOf(o); } +function fetchlayer_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) fetchlayer_setPrototypeOf(subClass, superClass); } +function fetchlayer_setPrototypeOf(o, p) { fetchlayer_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return fetchlayer_setPrototypeOf(o, p); } + + +var fetchlayer_FetchLayer = /*#__PURE__*/function (_Layer) { + /** + * @class FetchLayer + * @classdesc Creates an image layer using a remote URL. + * @param {Object|string} options - layer parameters or a url + * @param {string} options.url the url of the image to fetch + */ + function FetchLayer(options) { + var _this; + fetchlayer_classCallCheck(this, FetchLayer); + _this = fetchlayer_callSuper(this, FetchLayer, [options]); + if (isString_default()(options)) { + _this.options.url = options; + } else if (options != null ? options.url : void 0) { + _this.options.url = options.url; + } + return _this; + } + fetchlayer_inherits(FetchLayer, _Layer); + return fetchlayer_createClass(FetchLayer, [{ + key: "url", + value: function url(_url) { + this.options.url = _url; + return this; + } + + /** + * generate the string representation of the layer + * @function FetchLayer#toString + * @return {String} + */ + }, { + key: "toString", + value: function toString() { + return "fetch:".concat(base64EncodeURL(this.options.url)); + } + }]); +}(layer_layer); +/* harmony default export */ var fetchlayer = (fetchlayer_FetchLayer); +// CONCATENATED MODULE: ./src/parameters.js +function parameters_callSuper(t, o, e) { return o = parameters_getPrototypeOf(o), parameters_possibleConstructorReturn(t, parameters_isNativeReflectConstruct() ? Reflect.construct(o, e || [], parameters_getPrototypeOf(t).constructor) : o.apply(t, e)); } +function parameters_possibleConstructorReturn(self, call) { if (call && (parameters_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return parameters_assertThisInitialized(self); } +function parameters_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } +function parameters_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (parameters_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } +function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = parameters_getPrototypeOf(object); if (object === null) break; } return object; } +function parameters_getPrototypeOf(o) { parameters_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return parameters_getPrototypeOf(o); } +function parameters_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) parameters_setPrototypeOf(subClass, superClass); } +function parameters_setPrototypeOf(o, p) { parameters_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return parameters_setPrototypeOf(o, p); } +function parameters_typeof(o) { "@babel/helpers - typeof"; return parameters_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, parameters_typeof(o); } +function parameters_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function parameters_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, parameters_toPropertyKey(descriptor.key), descriptor); } } +function parameters_createClass(Constructor, protoProps, staticProps) { if (protoProps) parameters_defineProperties(Constructor.prototype, protoProps); if (staticProps) parameters_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function parameters_toPropertyKey(t) { var i = parameters_toPrimitive(t, "string"); return "symbol" == parameters_typeof(i) ? i : i + ""; } +function parameters_toPrimitive(t, r) { if ("object" != parameters_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != parameters_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } + + + + + + + + +/** + * Transformation parameters + * Depends on 'util', 'transformation' + */ +var parameters_Param = /*#__PURE__*/function () { + /** + * Represents a single parameter. + * @class Param + * @param {string} name - The name of the parameter in snake_case + * @param {string} shortName - The name of the serialized form of the parameter. + * If a value is not provided, the parameter will not be serialized. + * @param {function} [process=Util.identity ] - Manipulate origValue when value is called + * @ignore + */ + function Param(name, shortName) { + var process = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : identity_default.a; + parameters_classCallCheck(this, Param); + /** + * The name of the parameter in snake_case + * @member {string} Param#name + */ + this.name = name; + /** + * The name of the serialized form of the parameter + * @member {string} Param#shortName + */ + this.shortName = shortName; + /** + * Manipulate origValue when value is called + * @member {function} Param#process + */ + this.process = process; + } + + /** + * Set a (unprocessed) value for this parameter + * @function Param#set + * @param {*} origValue - the value of the parameter + * @return {Param} self for chaining + */ + return parameters_createClass(Param, [{ + key: "set", + value: function set(origValue) { + this.origValue = origValue; + return this; + } + + /** + * Generate the serialized form of the parameter + * @function Param#serialize + * @return {string} the serialized form of the parameter + */ + }, { + key: "serialize", + value: function serialize() { + var val, valid; + val = this.value(); + valid = isArray_default()(val) || isPlainObject_default()(val) || isString_default()(val) ? !isEmpty(val) : val != null; + if (this.shortName != null && valid) { + return "".concat(this.shortName, "_").concat(val); + } else { + return ''; + } + } + + /** + * Return the processed value of the parameter + * @function Param#value + */ + }, { + key: "value", + value: function value() { + return this.process(this.origValue); + } + }], [{ + key: "norm_color", + value: function norm_color(value) { + return value != null ? value.replace(/^#/, 'rgb:') : void 0; + } + }, { + key: "build_array", + value: function build_array(arg) { + if (arg == null) { + return []; + } else if (isArray_default()(arg)) { + return arg; + } else { + return [arg]; + } + } + + /** + * Covert value to video codec string. + * + * If the parameter is an object, + * @param {(string|Object)} param - the video codec as either a String or a Hash + * @return {string} the video codec string in the format codec:profile:level:b_frames + * @example + * vc_[ :profile : [level : [b_frames]]] + * or + { codec: 'h264', profile: 'basic', level: '3.1', b_frames: false } + * @ignore + */ + }, { + key: "process_video_params", + value: function process_video_params(param) { + var video; + switch (param.constructor) { + case Object: + video = ""; + if ('codec' in param) { + video = param.codec; + if ('profile' in param) { + video += ":" + param.profile; + if ('level' in param) { + video += ":" + param.level; + if ('b_frames' in param && param.b_frames === false) { + video += ":bframes_no"; + } + } + } + } + return video; + case String: + return param; + default: + return null; + } + } + }]); +}(); +var parameters_ArrayParam = /*#__PURE__*/function (_Param) { + /** + * A parameter that represents an array. + * @param {string} name - The name of the parameter in snake_case. + * @param {string} shortName - The name of the serialized form of the parameter + * If a value is not provided, the parameter will not be serialized. + * @param {string} [sep='.'] - The separator to use when joining the array elements together + * @param {function} [process=Util.identity ] - Manipulate origValue when value is called + * @class ArrayParam + * @extends Param + * @ignore + */ + function ArrayParam(name, shortName) { + var _this; + var sep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.'; + var process = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined; + parameters_classCallCheck(this, ArrayParam); + _this = parameters_callSuper(this, ArrayParam, [name, shortName, process]); + _this.sep = sep; + return _this; + } + parameters_inherits(ArrayParam, _Param); + return parameters_createClass(ArrayParam, [{ + key: "serialize", + value: function serialize() { + if (this.shortName != null) { + var arrayValue = this.value(); + if (isEmpty(arrayValue)) { + return ''; + } else if (isString_default()(arrayValue)) { + return "".concat(this.shortName, "_").concat(arrayValue); + } else { + var flat = arrayValue.map(function (t) { + return isFunction_default()(t.serialize) ? t.serialize() : t; + }).join(this.sep); + return "".concat(this.shortName, "_").concat(flat); + } + } else { + return ''; + } + } + }, { + key: "value", + value: function value() { + var _this2 = this; + if (isArray_default()(this.origValue)) { + return this.origValue.map(function (v) { + return _this2.process(v); + }); + } else { + return this.process(this.origValue); + } + } + }, { + key: "set", + value: function set(origValue) { + if (origValue == null || isArray_default()(origValue)) { + return _get(parameters_getPrototypeOf(ArrayParam.prototype), "set", this).call(this, origValue); + } else { + return _get(parameters_getPrototypeOf(ArrayParam.prototype), "set", this).call(this, [origValue]); + } + } + }]); +}(parameters_Param); +var parameters_TransformationParam = /*#__PURE__*/function (_Param2) { + /** + * A parameter that represents a transformation + * @param {string} name - The name of the parameter in snake_case + * @param {string} [shortName='t'] - The name of the serialized form of the parameter + * @param {string} [sep='.'] - The separator to use when joining the array elements together + * @param {function} [process=Util.identity ] - Manipulate origValue when value is called + * @class TransformationParam + * @extends Param + * @ignore + */ + function TransformationParam(name) { + var _this3; + var shortName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "t"; + var sep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.'; + var process = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined; + parameters_classCallCheck(this, TransformationParam); + _this3 = parameters_callSuper(this, TransformationParam, [name, shortName, process]); + _this3.sep = sep; + return _this3; + } + + /** + * Generate string representations of the transformation. + * @returns {*} Returns either the transformation as a string, or an array of string representations. + */ + parameters_inherits(TransformationParam, _Param2); + return parameters_createClass(TransformationParam, [{ + key: "serialize", + value: function serialize() { + var _this4 = this; + var result = ''; + var val = this.value(); + if (isEmpty(val)) { + return result; + } + + // val is an array of strings so join them + if (baseutil_allStrings(val)) { + var joined = val.join(this.sep); // creates t1.t2.t3 in case multiple named transformations were configured + if (!isEmpty(joined)) { + // in case options.transformation was not set with an empty string (val != ['']); + result = "".concat(this.shortName, "_").concat(joined); + } + } else { + // Convert val to an array of strings + result = val.map(function (t) { + if (isString_default()(t) && !isEmpty(t)) { + return "".concat(_this4.shortName, "_").concat(t); + } + if (isFunction_default()(t.serialize)) { + return t.serialize(); + } + if (isPlainObject_default()(t) && !isEmpty(t)) { + return new src_transformation(t).serialize(); + } + return undefined; + }).filter(function (t) { + return t; + }); + } + return result; + } + }, { + key: "set", + value: function set(origValue1) { + this.origValue = origValue1; + if (isArray_default()(this.origValue)) { + return _get(parameters_getPrototypeOf(TransformationParam.prototype), "set", this).call(this, this.origValue); + } else { + return _get(parameters_getPrototypeOf(TransformationParam.prototype), "set", this).call(this, [this.origValue]); + } + } + }]); +}(parameters_Param); +var number_pattern = "([0-9]*)\\.([0-9]+)|([0-9]+)"; +var offset_any_pattern = "(" + number_pattern + ")([%pP])?"; +var parameters_RangeParam = /*#__PURE__*/function (_Param3) { + /** + * A parameter that represents a range + * @param {string} name - The name of the parameter in snake_case + * @param {string} shortName - The name of the serialized form of the parameter + * If a value is not provided, the parameter will not be serialized. + * @param {function} [process=norm_range_value ] - Manipulate origValue when value is called + * @class RangeParam + * @extends Param + * @ignore + */ + function RangeParam(name, shortName) { + var process = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : RangeParam.norm_range_value; + parameters_classCallCheck(this, RangeParam); + return parameters_callSuper(this, RangeParam, [name, shortName, process]); + } + parameters_inherits(RangeParam, _Param3); + return parameters_createClass(RangeParam, null, [{ + key: "norm_range_value", + value: function norm_range_value(value) { + var offset = String(value).match(new RegExp('^' + offset_any_pattern + '$')); + if (offset) { + var modifier = offset[5] != null ? 'p' : ''; + value = (offset[1] || offset[4]) + modifier; + } + return expression.normalize(value); + } + }]); +}(parameters_Param); +var parameters_RawParam = /*#__PURE__*/function (_Param4) { + function RawParam(name, shortName) { + var process = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : identity_default.a; + parameters_classCallCheck(this, RawParam); + return parameters_callSuper(this, RawParam, [name, shortName, process]); + } + parameters_inherits(RawParam, _Param4); + return parameters_createClass(RawParam, [{ + key: "serialize", + value: function serialize() { + return this.value(); + } + }]); +}(parameters_Param); +var parameters_LayerParam = /*#__PURE__*/function (_Param5) { + function LayerParam() { + parameters_classCallCheck(this, LayerParam); + return parameters_callSuper(this, LayerParam, arguments); + } + parameters_inherits(LayerParam, _Param5); + return parameters_createClass(LayerParam, [{ + key: "value", + value: + // Parse layer options + // @return [string] layer transformation string + // @private + function value() { + if (this.origValue == null) { + return ''; + } + var result; + if (this.origValue instanceof layer_layer) { + result = this.origValue; + } else if (isPlainObject_default()(this.origValue)) { + var layerOptions = withCamelCaseKeys(this.origValue); + if (layerOptions.resourceType === "text" || layerOptions.text != null) { + result = new textlayer(layerOptions); + } else if (layerOptions.resourceType === "subtitles") { + result = new subtitleslayer(layerOptions); + } else if (layerOptions.resourceType === "fetch" || layerOptions.url != null) { + result = new fetchlayer(layerOptions); + } else { + result = new layer_layer(layerOptions); + } + } else if (isString_default()(this.origValue)) { + if (/^fetch:.+/.test(this.origValue)) { + result = new fetchlayer(this.origValue.substr(6)); + } else { + result = this.origValue; + } + } else { + result = ''; + } + return result.toString(); + } + }], [{ + key: "textStyle", + value: function textStyle(layer) { + return new textlayer(layer).textStyleIdentifier(); + } + }]); +}(parameters_Param); +var parameters_ExpressionParam = /*#__PURE__*/function (_Param6) { + function ExpressionParam() { + parameters_classCallCheck(this, ExpressionParam); + return parameters_callSuper(this, ExpressionParam, arguments); + } + parameters_inherits(ExpressionParam, _Param6); + return parameters_createClass(ExpressionParam, [{ + key: "serialize", + value: function serialize() { + return expression.normalize(_get(parameters_getPrototypeOf(ExpressionParam.prototype), "serialize", this).call(this)); + } + }]); +}(parameters_Param); + +// CONCATENATED MODULE: ./src/transformation.js +function transformation_callSuper(t, o, e) { return o = transformation_getPrototypeOf(o), transformation_possibleConstructorReturn(t, transformation_isNativeReflectConstruct() ? Reflect.construct(o, e || [], transformation_getPrototypeOf(t).constructor) : o.apply(t, e)); } +function transformation_possibleConstructorReturn(self, call) { if (call && (transformation_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return transformation_assertThisInitialized(self); } +function transformation_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } +function transformation_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (transformation_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function transformation_getPrototypeOf(o) { transformation_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return transformation_getPrototypeOf(o); } +function transformation_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) transformation_setPrototypeOf(subClass, superClass); } +function transformation_setPrototypeOf(o, p) { transformation_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return transformation_setPrototypeOf(o, p); } +function transformation_slicedToArray(arr, i) { return transformation_arrayWithHoles(arr) || transformation_iterableToArrayLimit(arr, i) || transformation_unsupportedIterableToArray(arr, i) || transformation_nonIterableRest(); } +function transformation_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function transformation_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return transformation_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return transformation_arrayLikeToArray(o, minLen); } +function transformation_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function transformation_iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } +function transformation_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function transformation_typeof(o) { "@babel/helpers - typeof"; return transformation_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, transformation_typeof(o); } +function transformation_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function transformation_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, transformation_toPropertyKey(descriptor.key), descriptor); } } +function transformation_createClass(Constructor, protoProps, staticProps) { if (protoProps) transformation_defineProperties(Constructor.prototype, protoProps); if (staticProps) transformation_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function transformation_toPropertyKey(t) { var i = transformation_toPrimitive(t, "string"); return "symbol" == transformation_typeof(i) ? i : i + ""; } +function transformation_toPrimitive(t, r) { if ("object" != transformation_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != transformation_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } + + + + + + + +/** + * Assign key, value to target, when value is not null.
+ * This function mutates the target! + * @param {object} target the object to assign the values to + * @param {object} sources one or more objects to get values from + * @returns {object} the target after the assignment + */ +function assignNotNull(target) { + for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + sources[_key - 1] = arguments[_key]; + } + sources.forEach(function (source) { + Object.keys(source).forEach(function (key) { + if (source[key] != null) { + target[key] = source[key]; + } + }); + }); + return target; +} + +/** + * TransformationBase + * Depends on 'configuration', 'parameters','util' + * @internal + */ +var transformation_TransformationBase = /*#__PURE__*/function () { + /** + * The base class for transformations. + * Members of this class are documented as belonging to the {@link Transformation} class for convenience. + * @class TransformationBase + */ + function TransformationBase(options) { + transformation_classCallCheck(this, TransformationBase); + /** @private */ + /** @private */ + var parent, trans; + parent = void 0; + trans = {}; + /** + * Return an options object that can be used to create an identical Transformation + * @function Transformation#toOptions + * @return {Object} Returns a plain object representing this transformation + */ + this.toOptions = function (withChain) { + var opt = {}; + if (withChain == null) { + withChain = true; + } + Object.keys(trans).forEach(function (key) { + return opt[key] = trans[key].origValue; + }); + assignNotNull(opt, this.otherOptions); + if (withChain && !isEmpty(this.chained)) { + var list = this.chained.map(function (tr) { + return tr.toOptions(); + }); + list.push(opt); + opt = {}; + assignNotNull(opt, this.otherOptions); + opt.transformation = list; + } + return opt; + }; + /** + * Set a parent for this object for chaining purposes. + * + * @function Transformation#setParent + * @param {Object} object - the parent to be assigned to + * @returns {Transformation} Returns this instance for chaining purposes. + */ + this.setParent = function (object) { + parent = object; + if (object != null) { + this.fromOptions(typeof object.toOptions === "function" ? object.toOptions() : void 0); + } + return this; + }; + /** + * Returns the parent of this object in the chain + * @function Transformation#getParent + * @protected + * @return {Object} Returns the parent of this object if there is any + */ + this.getParent = function () { + return parent; + }; + + // Helper methods to create parameter methods + // These methods are defined here because they access `trans` which is + // a private member of `TransformationBase` + + /** @protected */ + this.param = function (value, name, abbr, defaultValue, process) { + if (process == null) { + if (isFunction_default()(defaultValue)) { + process = defaultValue; + } else { + process = identity_default.a; + } + } + trans[name] = new parameters_Param(name, abbr, process).set(value); + return this; + }; + /** @protected */ + this.rawParam = function (value, name, abbr, defaultValue, process) { + process = lastArgCallback(arguments); + trans[name] = new parameters_RawParam(name, abbr, process).set(value); + return this; + }; + /** @protected */ + this.rangeParam = function (value, name, abbr, defaultValue, process) { + process = lastArgCallback(arguments); + trans[name] = new parameters_RangeParam(name, abbr, process).set(value); + return this; + }; + /** @protected */ + this.arrayParam = function (value, name, abbr) { + var sep = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ":"; + var defaultValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : []; + var process = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : undefined; + process = lastArgCallback(arguments); + trans[name] = new parameters_ArrayParam(name, abbr, sep, process).set(value); + return this; + }; + /** @protected */ + this.transformationParam = function (value, name, abbr) { + var sep = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "."; + var defaultValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined; + var process = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : undefined; + process = lastArgCallback(arguments); + trans[name] = new parameters_TransformationParam(name, abbr, sep, process).set(value); + return this; + }; + this.layerParam = function (value, name, abbr) { + trans[name] = new parameters_LayerParam(name, abbr).set(value); + return this; + }; + + // End Helper methods + + /** + * Get the value associated with the given name. + * @function Transformation#getValue + * @param {string} name - the name of the parameter + * @return {*} the processed value associated with the given name + * @description Use {@link get}.origValue for the value originally provided for the parameter + */ + this.getValue = function (name) { + var value = trans[name] && trans[name].value(); + return value != null ? value : this.otherOptions[name]; + }; + /** + * Get the parameter object for the given parameter name + * @function Transformation#get + * @param {string} name the name of the transformation parameter + * @returns {Param} the param object for the given name, or undefined + */ + this.get = function (name) { + return trans[name]; + }; + /** + * Remove a transformation option from the transformation. + * @function Transformation#remove + * @param {string} name - the name of the option to remove + * @return {*} Returns the option that was removed or null if no option by that name was found. The type of the + * returned value depends on the value. + */ + this.remove = function (name) { + var temp; + switch (false) { + case trans[name] == null: + temp = trans[name]; + delete trans[name]; + return temp.origValue; + case this.otherOptions[name] == null: + temp = this.otherOptions[name]; + delete this.otherOptions[name]; + return temp; + default: + return null; + } + }; + /** + * Return an array of all the keys (option names) in the transformation. + * @return {Array} the keys in snakeCase format + */ + this.keys = function () { + var key; + return function () { + var results; + results = []; + for (key in trans) { + if (key != null) { + results.push(key.match(VAR_NAME_RE) ? key : snakeCase(key)); + } + } + return results; + }().sort(); + }; + /** + * Returns a plain object representation of the transformation. Values are processed. + * @function Transformation#toPlainObject + * @return {Object} the transformation options as plain object + */ + this.toPlainObject = function () { + var hash, key, list; + hash = {}; + for (key in trans) { + hash[key] = trans[key].value(); + if (isPlainObject_default()(hash[key])) { + hash[key] = cloneDeep_default()(hash[key]); + } + } + if (!isEmpty(this.chained)) { + list = this.chained.map(function (tr) { + return tr.toPlainObject(); + }); + list.push(hash); + hash = { + transformation: list + }; + } + return hash; + }; + /** + * Complete the current transformation and chain to a new one. + * In the URL, transformations are chained together by slashes. + * @function Transformation#chain + * @return {Transformation} Returns this transformation for chaining + * @example + * var tr = cloudinary.Transformation.new(); + * tr.width(10).crop('fit').chain().angle(15).serialize() + * // produces "c_fit,w_10/a_15" + */ + this.chain = function () { + var names, tr; + names = Object.getOwnPropertyNames(trans); + if (names.length !== 0) { + tr = new this.constructor(this.toOptions(false)); + this.resetTransformations(); + this.chained.push(tr); + } + return this; + }; + this.resetTransformations = function () { + trans = {}; + return this; + }; + this.otherOptions = {}; + this.chained = []; + this.fromOptions(options); + } + + /** + * Merge the provided options with own's options + * @param {Object} [options={}] key-value list of options + * @returns {Transformation} Returns this instance for chaining + */ + return transformation_createClass(TransformationBase, [{ + key: "fromOptions", + value: function fromOptions() { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + if (options instanceof TransformationBase) { + this.fromTransformation(options); + } else { + if (isString_default()(options) || isArray_default()(options)) { + options = { + transformation: options + }; + } + options = cloneDeep_default()(options, function (value) { + if (value instanceof TransformationBase || value instanceof Layer) { + return new value.clone(); + } + }); + // Handling of "if" statements precedes other options as it creates a chained transformation + if (options["if"]) { + this.set("if", options["if"]); + delete options["if"]; + } + for (var key in options) { + var opt = options[key]; + if (opt != null) { + if (key.match(VAR_NAME_RE)) { + if (key !== '$attr') { + this.set('variable', key, opt); + } + } else { + this.set(key, opt); + } + } + } + } + return this; + } + }, { + key: "fromTransformation", + value: function fromTransformation(other) { + var _this = this; + if (other instanceof TransformationBase) { + other.keys().forEach(function (key) { + return _this.set(key, other.get(key).origValue); + }); + } + return this; + } + + /** + * Set a parameter. + * The parameter name `key` is converted to + * @param {string} key - the name of the parameter + * @param {*} values - the value of the parameter + * @returns {Transformation} Returns this instance for chaining + */ + }, { + key: "set", + value: function set(key) { + var camelKey; + camelKey = camelCase(key); + for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + values[_key2 - 1] = arguments[_key2]; + } + if (includes_default()(transformation_Transformation.methods, camelKey)) { + this[camelKey].apply(this, values); + } else { + this.otherOptions[key] = values[0]; + } + return this; + } + }, { + key: "hasLayer", + value: function hasLayer() { + return this.getValue("overlay") || this.getValue("underlay"); + } + + /** + * Generate a string representation of the transformation. + * @function Transformation#serialize + * @return {string} Returns the transformation as a string + */ + }, { + key: "serialize", + value: function serialize() { + var ifParam, j, len, paramList, ref, ref1, ref2, ref3, ref4, resultArray, t, transformationList, transformationString, transformations, value, variables, vars; + resultArray = this.chained.map(function (tr) { + return tr.serialize(); + }); + paramList = this.keys(); + transformations = (ref = this.get("transformation")) != null ? ref.serialize() : void 0; + ifParam = (ref1 = this.get("if")) != null ? ref1.serialize() : void 0; + variables = processVar((ref2 = this.get("variables")) != null ? ref2.value() : void 0); + paramList = difference_default()(paramList, ["transformation", "if", "variables"]); + vars = []; + transformationList = []; + for (j = 0, len = paramList.length; j < len; j++) { + t = paramList[j]; + if (t.match(VAR_NAME_RE)) { + vars.push(t + "_" + expression.normalize((ref3 = this.get(t)) != null ? ref3.value() : void 0)); + } else { + transformationList.push((ref4 = this.get(t)) != null ? ref4.serialize() : void 0); + } + } + switch (false) { + case !isString_default()(transformations): + transformationList.push(transformations); + break; + case !isArray_default()(transformations): + resultArray = resultArray.concat(transformations); + } + transformationList = function () { + var k, len1, results; + results = []; + for (k = 0, len1 = transformationList.length; k < len1; k++) { + value = transformationList[k]; + if (isArray_default()(value) && !isEmpty(value) || !isArray_default()(value) && value) { + results.push(value); + } + } + return results; + }(); + transformationList = vars.sort().concat(variables).concat(transformationList.sort()); + if (ifParam === "if_end") { + transformationList.push(ifParam); + } else if (!isEmpty(ifParam)) { + transformationList.unshift(ifParam); + } + transformationString = compact_default()(transformationList).join(this.param_separator); + if (!isEmpty(transformationString)) { + resultArray.push(transformationString); + } + return compact_default()(resultArray).join(this.trans_separator); + } + + /** + * Provide a list of all the valid transformation option names + * @function Transformation#listNames + * @private + * @return {Array} a array of all the valid option names + */ + }, { + key: "toHtmlAttributes", + value: + /** + * Returns the attributes for an HTML tag. + * @function Cloudinary.toHtmlAttributes + * @return PlainObject + */ + function toHtmlAttributes() { + var _this2 = this; + var attrName, height, options, ref2, ref3, value, width; + options = {}; + var snakeCaseKey; + Object.keys(this.otherOptions).forEach(function (key) { + value = _this2.otherOptions[key]; + snakeCaseKey = snakeCase(key); + if (!includes_default()(transformation_Transformation.PARAM_NAMES, snakeCaseKey) && !includes_default()(URL_KEYS, snakeCaseKey)) { + attrName = /^html_/.test(key) ? key.slice(5) : key; + options[attrName] = value; + } + }); + // convert all "html_key" to "key" with the same value + this.keys().forEach(function (key) { + if (/^html_/.test(key)) { + options[camelCase(key.slice(5))] = _this2.getValue(key); + } + }); + if (!(this.hasLayer() || this.getValue("angle") || includes_default()(["fit", "limit", "lfill"], this.getValue("crop")))) { + width = (ref2 = this.get("width")) != null ? ref2.origValue : void 0; + height = (ref3 = this.get("height")) != null ? ref3.origValue : void 0; + if (parseFloat(width) >= 1.0) { + if (options.width == null) { + options.width = width; + } + } + if (parseFloat(height) >= 1.0) { + if (options.height == null) { + options.height = height; + } + } + } + return options; + } + }, { + key: "toHtml", + value: + /** + * Delegate to the parent (up the call chain) to produce HTML + * @function Transformation#toHtml + * @return {string} HTML representation of the parent if possible. + * @example + * tag = cloudinary.ImageTag.new("sample", {cloud_name: "demo"}) + * // ImageTag {name: "img", publicId: "sample"} + * tag.toHtml() + * // + * tag.transformation().crop("fit").width(300).toHtml() + * // + */ + function toHtml() { + var ref; + return (ref = this.getParent()) != null ? typeof ref.toHtml === "function" ? ref.toHtml() : void 0 : void 0; + } + }, { + key: "toString", + value: function toString() { + return this.serialize(); + } + }, { + key: "clone", + value: function clone() { + return new this.constructor(this.toOptions(true)); + } + }], [{ + key: "listNames", + value: function listNames() { + return transformation_Transformation.methods; + } + }, { + key: "isValidParamName", + value: function isValidParamName(name) { + return transformation_Transformation.methods.indexOf(camelCase(name)) >= 0; + } + }]); +}(); +var VAR_NAME_RE = /^\$[a-zA-Z0-9]+$/; +transformation_TransformationBase.prototype.trans_separator = '/'; +transformation_TransformationBase.prototype.param_separator = ','; +function lastArgCallback(args) { + var callback; + callback = args != null ? args[args.length - 1] : void 0; + if (isFunction_default()(callback)) { + return callback; + } else { + return void 0; + } +} +function processVar(varArray) { + var j, len, name, results, v; + if (isArray_default()(varArray)) { + results = []; + for (j = 0, len = varArray.length; j < len; j++) { + var _varArray$j = transformation_slicedToArray(varArray[j], 2); + name = _varArray$j[0]; + v = _varArray$j[1]; + results.push("".concat(name, "_").concat(expression.normalize(v))); + } + return results; + } else { + return varArray; + } +} +function processCustomFunction(_ref) { + var function_type = _ref.function_type, + source = _ref.source; + if (function_type === 'remote') { + return [function_type, btoa(source)].join(":"); + } else if (function_type === 'wasm') { + return [function_type, source].join(":"); + } +} + +/** + * Transformation Class methods. + * This is a list of the parameters defined in Transformation. + * Values are camelCased. + * @const Transformation.methods + * @private + * @ignore + * @type {Array} + */ +/** + * Parameters that are filtered out before passing the options to an HTML tag. + * + * The list of parameters is a combination of `Transformation::methods` and `Configuration::CONFIG_PARAMS` + * @const {Array} Transformation.PARAM_NAMES + * @private + * @ignore + * @see toHtmlAttributes + */ +var transformation_Transformation = /*#__PURE__*/function (_TransformationBase) { + /** + * Represents a single transformation. + * @class Transformation + * @example + * t = new cloudinary.Transformation(); + * t.angle(20).crop("scale").width("auto"); + * + * // or + * + * t = new cloudinary.Transformation( {angle: 20, crop: "scale", width: "auto"}); + * @see Available image transformations + * @see Available video transformations + */ + function Transformation(options) { + transformation_classCallCheck(this, Transformation); + return transformation_callSuper(this, Transformation, [options]); + } + + /** + * Convenience constructor + * @param {Object} options + * @return {Transformation} + * @example cl = cloudinary.Transformation.new( {angle: 20, crop: "scale", width: "auto"}) + */ + transformation_inherits(Transformation, _TransformationBase); + return transformation_createClass(Transformation, [{ + key: "angle", + value: + /* + Transformation Parameters + */ + function angle(value) { + return this.arrayParam(value, "angle", "a", ".", expression.normalize); + } + }, { + key: "audioCodec", + value: function audioCodec(value) { + return this.param(value, "audio_codec", "ac"); + } + }, { + key: "audioFrequency", + value: function audioFrequency(value) { + return this.param(value, "audio_frequency", "af"); + } + }, { + key: "aspectRatio", + value: function aspectRatio(value) { + return this.param(value, "aspect_ratio", "ar", expression.normalize); + } + }, { + key: "background", + value: function background(value) { + return this.param(value, "background", "b", parameters_Param.norm_color); + } + }, { + key: "bitRate", + value: function bitRate(value) { + return this.param(value, "bit_rate", "br"); + } + }, { + key: "border", + value: function border(value) { + return this.param(value, "border", "bo", function (border) { + if (isPlainObject_default()(border)) { + border = assign_default()({}, { + color: "black", + width: 2 + }, border); + return "".concat(border.width, "px_solid_").concat(parameters_Param.norm_color(border.color)); + } else { + return border; + } + }); + } + }, { + key: "color", + value: function color(value) { + return this.param(value, "color", "co", parameters_Param.norm_color); + } + }, { + key: "colorSpace", + value: function colorSpace(value) { + return this.param(value, "color_space", "cs"); + } + }, { + key: "crop", + value: function crop(value) { + return this.param(value, "crop", "c"); + } + }, { + key: "customFunction", + value: function customFunction(value) { + return this.param(value, "custom_function", "fn", function () { + return processCustomFunction(value); + }); + } + }, { + key: "customPreFunction", + value: function customPreFunction(value) { + if (this.get('custom_function')) { + return; + } + return this.rawParam(value, "custom_function", "", function () { + value = processCustomFunction(value); + return value ? "fn_pre:".concat(value) : value; + }); + } + }, { + key: "defaultImage", + value: function defaultImage(value) { + return this.param(value, "default_image", "d"); + } + }, { + key: "delay", + value: function delay(value) { + return this.param(value, "delay", "dl"); + } + }, { + key: "density", + value: function density(value) { + return this.param(value, "density", "dn"); + } + }, { + key: "duration", + value: function duration(value) { + return this.rangeParam(value, "duration", "du"); + } + }, { + key: "dpr", + value: function dpr(value) { + return this.param(value, "dpr", "dpr", function (dpr) { + dpr = dpr.toString(); + if (dpr != null ? dpr.match(/^\d+$/) : void 0) { + return dpr + ".0"; + } else { + return expression.normalize(dpr); + } + }); + } + }, { + key: "effect", + value: function effect(value) { + return this.arrayParam(value, "effect", "e", ":", expression.normalize); + } + }, { + key: "else", + value: function _else() { + return this["if"]('else'); + } + }, { + key: "endIf", + value: function endIf() { + return this["if"]('end'); + } + }, { + key: "endOffset", + value: function endOffset(value) { + return this.rangeParam(value, "end_offset", "eo"); + } + }, { + key: "fallbackContent", + value: function fallbackContent(value) { + return this.param(value, "fallback_content"); + } + }, { + key: "fetchFormat", + value: function fetchFormat(value) { + return this.param(value, "fetch_format", "f"); + } + }, { + key: "format", + value: function format(value) { + return this.param(value, "format"); + } + }, { + key: "flags", + value: function flags(value) { + return this.arrayParam(value, "flags", "fl", "."); + } + }, { + key: "gravity", + value: function gravity(value) { + return this.param(value, "gravity", "g"); + } + }, { + key: "fps", + value: function fps(value) { + return this.param(value, "fps", "fps", function (fps) { + if (isString_default()(fps)) { + return fps; + } else if (isArray_default()(fps)) { + return fps.join("-"); + } else { + return fps; + } + }); + } + }, { + key: "height", + value: function height(value) { + var _this3 = this; + return this.param(value, "height", "h", function () { + if (_this3.getValue("crop") || _this3.getValue("overlay") || _this3.getValue("underlay")) { + return expression.normalize(value); + } else { + return null; + } + }); + } + }, { + key: "htmlHeight", + value: function htmlHeight(value) { + return this.param(value, "html_height"); + } + }, { + key: "htmlWidth", + value: function htmlWidth(value) { + return this.param(value, "html_width"); + } + }, { + key: "if", + value: function _if() { + var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; + var i, ifVal, j, ref, trIf, trRest; + switch (value) { + case "else": + this.chain(); + return this.param(value, "if", "if"); + case "end": + this.chain(); + for (i = j = ref = this.chained.length - 1; j >= 0; i = j += -1) { + ifVal = this.chained[i].getValue("if"); + if (ifVal === "end") { + break; + } else if (ifVal != null) { + trIf = Transformation["new"]()["if"](ifVal); + this.chained[i].remove("if"); + trRest = this.chained[i]; + this.chained[i] = Transformation["new"]().transformation([trIf, trRest]); + if (ifVal !== "else") { + break; + } + } + } + return this.param(value, "if", "if"); + case "": + return condition["new"]().setParent(this); + default: + return this.param(value, "if", "if", function (value) { + return condition["new"](value).toString(); + }); + } + } + }, { + key: "keyframeInterval", + value: function keyframeInterval(value) { + return this.param(value, "keyframe_interval", "ki"); + } + }, { + key: "ocr", + value: function ocr(value) { + return this.param(value, "ocr", "ocr"); + } + }, { + key: "offset", + value: function offset(value) { + var end_o, start_o; + var _ref2 = isFunction_default()(value != null ? value.split : void 0) ? value.split('..') : isArray_default()(value) ? value : [null, null]; + var _ref3 = transformation_slicedToArray(_ref2, 2); + start_o = _ref3[0]; + end_o = _ref3[1]; + if (start_o != null) { + this.startOffset(start_o); + } + if (end_o != null) { + return this.endOffset(end_o); + } + } + }, { + key: "opacity", + value: function opacity(value) { + return this.param(value, "opacity", "o", expression.normalize); + } + }, { + key: "overlay", + value: function overlay(value) { + return this.layerParam(value, "overlay", "l"); + } + }, { + key: "page", + value: function page(value) { + return this.param(value, "page", "pg"); + } + }, { + key: "poster", + value: function poster(value) { + return this.param(value, "poster"); + } + }, { + key: "prefix", + value: function prefix(value) { + return this.param(value, "prefix", "p"); + } + }, { + key: "quality", + value: function quality(value) { + return this.param(value, "quality", "q", expression.normalize); + } + }, { + key: "radius", + value: function radius(value) { + return this.arrayParam(value, "radius", "r", ":", expression.normalize); + } + }, { + key: "rawTransformation", + value: function rawTransformation(value) { + return this.rawParam(value, "raw_transformation"); + } + }, { + key: "size", + value: function size(value) { + var height, width; + if (isFunction_default()(value != null ? value.split : void 0)) { + var _value$split = value.split('x'); + var _value$split2 = transformation_slicedToArray(_value$split, 2); + width = _value$split2[0]; + height = _value$split2[1]; + this.width(width); + return this.height(height); + } + } + }, { + key: "sourceTypes", + value: function sourceTypes(value) { + return this.param(value, "source_types"); + } + }, { + key: "sourceTransformation", + value: function sourceTransformation(value) { + return this.param(value, "source_transformation"); + } + }, { + key: "startOffset", + value: function startOffset(value) { + return this.rangeParam(value, "start_offset", "so"); + } + }, { + key: "streamingProfile", + value: function streamingProfile(value) { + return this.param(value, "streaming_profile", "sp"); + } + }, { + key: "transformation", + value: function transformation(value) { + return this.transformationParam(value, "transformation", "t"); + } + }, { + key: "underlay", + value: function underlay(value) { + return this.layerParam(value, "underlay", "u"); + } + }, { + key: "variable", + value: function variable(name, value) { + return this.param(value, name, name); + } + }, { + key: "variables", + value: function variables(values) { + return this.arrayParam(values, "variables"); + } + }, { + key: "videoCodec", + value: function videoCodec(value) { + return this.param(value, "video_codec", "vc", parameters_Param.process_video_params); + } + }, { + key: "videoSampling", + value: function videoSampling(value) { + return this.param(value, "video_sampling", "vs"); + } + }, { + key: "width", + value: function width(value) { + var _this4 = this; + return this.param(value, "width", "w", function () { + if (_this4.getValue("crop") || _this4.getValue("overlay") || _this4.getValue("underlay")) { + return expression.normalize(value); + } else { + return null; + } + }); + } + }, { + key: "x", + value: function x(value) { + return this.param(value, "x", "x", expression.normalize); + } + }, { + key: "y", + value: function y(value) { + return this.param(value, "y", "y", expression.normalize); + } + }, { + key: "zoom", + value: function zoom(value) { + return this.param(value, "zoom", "z", expression.normalize); + } + }], [{ + key: "new", + value: function _new(options) { + return new Transformation(options); + } + }]); +}(transformation_TransformationBase); +/** + * Transformation Class methods. + * This is a list of the parameters defined in Transformation. + * Values are camelCased. + */ +transformation_Transformation.methods = ["angle", "audioCodec", "audioFrequency", "aspectRatio", "background", "bitRate", "border", "color", "colorSpace", "crop", "customFunction", "customPreFunction", "defaultImage", "delay", "density", "duration", "dpr", "effect", "else", "endIf", "endOffset", "fallbackContent", "fetchFormat", "format", "flags", "gravity", "fps", "height", "htmlHeight", "htmlWidth", "if", "keyframeInterval", "ocr", "offset", "opacity", "overlay", "page", "poster", "prefix", "quality", "radius", "rawTransformation", "size", "sourceTypes", "sourceTransformation", "startOffset", "streamingProfile", "transformation", "underlay", "variable", "variables", "videoCodec", "videoSampling", "width", "x", "y", "zoom"]; + +/** + * Parameters that are filtered out before passing the options to an HTML tag. + * + * The list of parameters is a combination of `Transformation::methods` and `Configuration::CONFIG_PARAMS` + */ +transformation_Transformation.PARAM_NAMES = transformation_Transformation.methods.map(snakeCase).concat(src_configuration.CONFIG_PARAMS); +/* harmony default export */ var src_transformation = (transformation_Transformation); +// CONCATENATED MODULE: ./src/tags/htmltag.js +function htmltag_typeof(o) { "@babel/helpers - typeof"; return htmltag_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, htmltag_typeof(o); } +function htmltag_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function htmltag_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, htmltag_toPropertyKey(descriptor.key), descriptor); } } +function htmltag_createClass(Constructor, protoProps, staticProps) { if (protoProps) htmltag_defineProperties(Constructor.prototype, protoProps); if (staticProps) htmltag_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function htmltag_toPropertyKey(t) { var i = htmltag_toPrimitive(t, "string"); return "symbol" == htmltag_typeof(i) ? i : i + ""; } +function htmltag_toPrimitive(t, r) { if ("object" != htmltag_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != htmltag_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +/** + * Generic HTML tag + * Depends on 'transformation', 'util' + */ + + + + +/** + * Represents an HTML (DOM) tag + * @constructor HtmlTag + * @param {string} name - the name of the tag + * @param {string} [publicId] + * @param {Object} options + * @example tag = new HtmlTag( 'div', { 'width': 10}) + */ +var htmltag_HtmlTag = /*#__PURE__*/function () { + function HtmlTag(name, publicId, options) { + htmltag_classCallCheck(this, HtmlTag); + var transformation; + this.name = name; + this.publicId = publicId; + if (options == null) { + if (isPlainObject_default()(publicId)) { + options = publicId; + this.publicId = void 0; + } else { + options = {}; + } + } + transformation = new src_transformation(options); + transformation.setParent(this); + this.transformation = function () { + return transformation; + }; + } + + /** + * Convenience constructor + * Creates a new instance of an HTML (DOM) tag + * @function HtmlTag.new + * @param {string} name - the name of the tag + * @param {string} [publicId] + * @param {Object} options + * @return {HtmlTag} + * @example tag = HtmlTag.new( 'div', { 'width': 10}) + */ + return htmltag_createClass(HtmlTag, [{ + key: "htmlAttrs", + value: + /** + * combine key and value from the `attr` to generate an HTML tag attributes string. + * `Transformation::toHtmlTagOptions` is used to filter out transformation and configuration keys. + * @protected + * @param {Object} attrs + * @return {string} the attributes in the format `'key1="value1" key2="value2"'` + * @ignore + */ + function htmlAttrs(attrs) { + var key, pairs, value; + return pairs = function () { + var results; + results = []; + for (key in attrs) { + value = escapeQuotes(attrs[key]); + if (value) { + results.push(htmltag_toAttribute(key, value)); + } + } + return results; + }().sort().join(' '); + } + + /** + * Get all options related to this tag. + * @function HtmlTag#getOptions + * @returns {Object} the options + * + */ + }, { + key: "getOptions", + value: function getOptions() { + return this.transformation().toOptions(); + } + + /** + * Get the value of option `name` + * @function HtmlTag#getOption + * @param {string} name - the name of the option + * @returns {*} Returns the value of the option + * + */ + }, { + key: "getOption", + value: function getOption(name) { + return this.transformation().getValue(name); + } + + /** + * Get the attributes of the tag. + * @function HtmlTag#attributes + * @returns {Object} attributes + */ + }, { + key: "attributes", + value: function attributes() { + // The attributes are be computed from the options every time this method is invoked. + var htmlAttributes = this.transformation().toHtmlAttributes(); + Object.keys(htmlAttributes).forEach(function (key) { + if (isPlainObject_default()(htmlAttributes[key])) { + delete htmlAttributes[key]; + } + }); + if (htmlAttributes.attributes) { + // Currently HTML attributes are defined both at the top level and under 'attributes' + merge_default()(htmlAttributes, htmlAttributes.attributes); + delete htmlAttributes.attributes; + } + return htmlAttributes; + } + + /** + * Set a tag attribute named `name` to `value` + * @function HtmlTag#setAttr + * @param {string} name - the name of the attribute + * @param {string} value - the value of the attribute + */ + }, { + key: "setAttr", + value: function setAttr(name, value) { + this.transformation().set("html_".concat(name), value); + return this; + } + + /** + * Get the value of the tag attribute `name` + * @function HtmlTag#getAttr + * @param {string} name - the name of the attribute + * @returns {*} + */ + }, { + key: "getAttr", + value: function getAttr(name) { + return this.attributes()["html_".concat(name)] || this.attributes()[name]; + } + + /** + * Remove the tag attributed named `name` + * @function HtmlTag#removeAttr + * @param {string} name - the name of the attribute + * @returns {*} + */ + }, { + key: "removeAttr", + value: function removeAttr(name) { + var ref; + return (ref = this.transformation().remove("html_".concat(name))) != null ? ref : this.transformation().remove(name); + } + + /** + * @function HtmlTag#content + * @protected + * @ignore + */ + }, { + key: "content", + value: function content() { + return ""; + } + + /** + * @function HtmlTag#openTag + * @protected + * @ignore + */ + }, { + key: "openTag", + value: function openTag() { + var tag = "<" + this.name; + var htmlAttrs = this.htmlAttrs(this.attributes()); + if (htmlAttrs && htmlAttrs.length > 0) { + tag += " " + htmlAttrs; + } + return tag + ">"; + } + + /** + * @function HtmlTag#closeTag + * @protected + * @ignore + */ + }, { + key: "closeTag", + value: function closeTag() { + return ""); + } + + /** + * Generates an HTML representation of the tag. + * @function HtmlTag#toHtml + * @returns {string} Returns HTML in string format + */ + }, { + key: "toHtml", + value: function toHtml() { + return this.openTag() + this.content() + this.closeTag(); + } + + /** + * Creates a DOM object representing the tag. + * @function HtmlTag#toDOM + * @returns {Element} + */ + }, { + key: "toDOM", + value: function toDOM() { + var element, name, ref, value; + if (!isFunction_default()(typeof document !== "undefined" && document !== null ? document.createElement : void 0)) { + throw "Can't create DOM if document is not present!"; + } + element = document.createElement(this.name); + ref = this.attributes(); + for (name in ref) { + value = ref[name]; + element.setAttribute(name, value); + } + return element; + } + }], [{ + key: "new", + value: function _new(name, publicId, options) { + return new this(name, publicId, options); + } + }, { + key: "isResponsive", + value: function isResponsive(tag, responsiveClass) { + var dataSrc; + dataSrc = lodash_getData(tag, 'src-cache') || lodash_getData(tag, 'src'); + return lodash_hasClass(tag, responsiveClass) && /\bw_auto\b/.exec(dataSrc); + } + }]); +}(); +; + +/** + * Represent the given key and value as an HTML attribute. + * @function toAttribute + * @protected + * @param {string} key - attribute name + * @param {*|boolean} value - the value of the attribute. If the value is boolean `true`, return the key only. + * @returns {string} the attribute + * + */ +function htmltag_toAttribute(key, value) { + if (!value) { + return void 0; + } else if (value === true) { + return key; + } else { + return "".concat(key, "=\"").concat(value, "\""); + } +} + +/** + * If given value is a string, replaces quotes with character entities (", ') + * @param value - value to change + * @returns {*} changed value + */ +function escapeQuotes(value) { + return isString_default()(value) ? value.replace('"', '"').replace("'", ''') : value; +} +/* harmony default export */ var htmltag = (htmltag_HtmlTag); +// CONCATENATED MODULE: ./src/url.js +var _excluded = ["placeholder", "accessibility"]; +function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } +function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } + + + + + + + +/** + * Adds protocol, host, pathname prefixes to given string + * @param str + * @returns {string} + */ +function makeUrl(str) { + var prefix = document.location.protocol + '//' + document.location.host; + if (str[0] === '?') { + prefix += document.location.pathname; + } else if (str[0] !== '/') { + prefix += document.location.pathname.replace(/\/[^\/]*$/, '/'); + } + return prefix + str; +} + +/** + * Check is given string is a url + * @param str + * @returns {boolean} + */ +function isUrl(str) { + return str ? !!str.match(/^https?:\//) : false; +} + +// Produce a number between 1 and 5 to be used for cdn sub domains designation +function cdnSubdomainNumber(publicId) { + return src_crc32(publicId) % 5 + 1; +} + +/** + * Removes signature from options and returns the signature + * Makes sure signature is empty or of this format: s--signature-- + * @param {object} options + * @returns {string} the formatted signature + */ +function handleSignature(options) { + var signature = options.signature; + var isFormatted = !signature || signature.indexOf('s--') === 0 && signature.substr(-2) === '--'; + delete options.signature; + return isFormatted ? signature : "s--".concat(signature, "--"); +} + +/** + * Create the URL prefix for Cloudinary resources. + * @param {string} publicId the resource public ID + * @param {object} options additional options + * @param {string} options.cloud_name - the cloud name. + * @param {boolean} [options.cdn_subdomain=false] - Whether to automatically build URLs with + * multiple CDN sub-domains. + * @param {string} [options.private_cdn] - Boolean (default: false). Should be set to true for Advanced plan's users + * that have a private CDN distribution. + * @param {string} [options.protocol="http://"] - the URI protocol to use. If options.secure is true, + * the value is overridden to "https://" + * @param {string} [options.secure_distribution] - The domain name of the CDN distribution to use for building HTTPS URLs. + * Relevant only for Advanced plan's users that have a private CDN distribution. + * @param {string} [options.cname] - Custom domain name to use for building HTTP URLs. + * Relevant only for Advanced plan's users that have a private CDN distribution and a custom CNAME. + * @param {boolean} [options.secure_cdn_subdomain=true] - When options.secure is true and this parameter is false, + * the subdomain is set to "res". + * @param {boolean} [options.secure=false] - Force HTTPS URLs of images even if embedded in non-secure HTTP pages. + * When this value is true, options.secure_distribution will be used as host if provided, and options.protocol is set + * to "https://". + * @returns {string} the URL prefix for the resource. + * @private + */ +function handlePrefix(publicId, options) { + if (options.cloud_name && options.cloud_name[0] === '/') { + return '/res' + options.cloud_name; + } + // defaults + var protocol = "http://"; + var cdnPart = ""; + var subdomain = "res"; + var host = ".cloudinary.com"; + var path = "/" + options.cloud_name; + // modifications + if (options.protocol) { + protocol = options.protocol + '//'; + } + if (options.private_cdn) { + cdnPart = options.cloud_name + "-"; + path = ""; + } + if (options.cdn_subdomain) { + subdomain = "res-" + cdnSubdomainNumber(publicId); + } + if (options.secure) { + protocol = "https://"; + if (options.secure_cdn_subdomain === false) { + subdomain = "res"; + } + if (options.secure_distribution != null && options.secure_distribution !== OLD_AKAMAI_SHARED_CDN && options.secure_distribution !== SHARED_CDN) { + cdnPart = ""; + subdomain = ""; + host = options.secure_distribution; + } + } else if (options.cname) { + protocol = "http://"; + cdnPart = ""; + subdomain = options.cdn_subdomain ? 'a' + (src_crc32(publicId) % 5 + 1) + '.' : ''; + host = options.cname; + } + return [protocol, cdnPart, subdomain, host, path].join(""); +} + +/** + * Return the resource type and action type based on the given configuration + * @function Cloudinary#handleResourceType + * @param {Object|string} resource_type + * @param {string} [type='upload'] + * @param {string} [url_suffix] + * @param {boolean} [use_root_path] + * @param {boolean} [shorten] + * @returns {string} resource_type/type + * @ignore + */ +function handleResourceType(_ref) { + var _ref$resource_type = _ref.resource_type, + resource_type = _ref$resource_type === void 0 ? "image" : _ref$resource_type, + _ref$type = _ref.type, + type = _ref$type === void 0 ? "upload" : _ref$type, + url_suffix = _ref.url_suffix, + use_root_path = _ref.use_root_path, + shorten = _ref.shorten; + var options, + resourceType = resource_type; + if (isPlainObject_default()(resourceType)) { + options = resourceType; + resourceType = options.resource_type; + type = options.type; + shorten = options.shorten; + } + if (type == null) { + type = 'upload'; + } + if (url_suffix != null) { + resourceType = SEO_TYPES["".concat(resourceType, "/").concat(type)]; + type = null; + if (resourceType == null) { + throw new Error("URL Suffix only supported for ".concat(Object.keys(SEO_TYPES).join(', '))); + } + } + if (use_root_path) { + if (resourceType === 'image' && type === 'upload' || resourceType === "images") { + resourceType = null; + type = null; + } else { + throw new Error("Root path only supported for image/upload"); + } + } + if (shorten && resourceType === 'image' && type === 'upload') { + resourceType = 'iu'; + type = null; + } + return [resourceType, type].join("/"); +} + +/** + * Encode publicId + * @param publicId + * @returns {string} encoded publicId + */ +function encodePublicId(publicId) { + return encodeURIComponent(publicId).replace(/%3A/g, ':').replace(/%2F/g, '/'); +} + +/** + * Encode and format publicId + * @param publicId + * @param options + * @returns {string} publicId + */ +function formatPublicId(publicId, options) { + if (isUrl(publicId)) { + publicId = encodePublicId(publicId); + } else { + try { + // Make sure publicId is URI encoded. + publicId = decodeURIComponent(publicId); + } catch (error) {} + publicId = encodePublicId(publicId); + if (options.url_suffix) { + publicId = publicId + '/' + options.url_suffix; + } + if (options.format) { + if (!options.trust_public_id) { + publicId = publicId.replace(/\.(jpg|png|gif|webp)$/, ''); + } + publicId = publicId + '.' + options.format; + } + } + return publicId; +} + +/** + * Get any error with url options + * @param options + * @returns {string} if error, otherwise return undefined + */ +function validate(options) { + var cloud_name = options.cloud_name, + url_suffix = options.url_suffix; + if (!cloud_name) { + return 'Unknown cloud_name'; + } + if (url_suffix && url_suffix.match(/[\.\/]/)) { + return 'url_suffix should not include . or /'; + } +} + +/** + * Get version part of the url + * @param publicId + * @param options + * @returns {string} + */ +function handleVersion(publicId, options) { + // force_version param means to make sure there is a version in the url (Default is true) + var isForceVersion = options.force_version || typeof options.force_version === 'undefined'; + + // Is version included in publicId or in options, or publicId is a url (doesn't need version) + var isVersionExist = publicId.indexOf('/') < 0 || publicId.match(/^v[0-9]+/) || isUrl(publicId) || options.version; + if (isForceVersion && !isVersionExist) { + options.version = 1; + } + return options.version ? "v".concat(options.version) : ''; +} + +/** + * Get final transformation component for url string + * @param options + * @returns {string} + */ +function handleTransformation(options) { + var _ref2 = options || {}, + placeholder = _ref2.placeholder, + accessibility = _ref2.accessibility, + otherOptions = _objectWithoutProperties(_ref2, _excluded); + var result = new src_transformation(otherOptions); + + // Append accessibility transformations + if (accessibility && ACCESSIBILITY_MODES[accessibility]) { + result.chain().effect(ACCESSIBILITY_MODES[accessibility]); + } + + // Append placeholder transformations + if (placeholder) { + if (placeholder === "predominant-color" && result.getValue('width') && result.getValue('height')) { + placeholder += '-pixel'; + } + var placeholderTransformations = PLACEHOLDER_IMAGE_MODES[placeholder] || PLACEHOLDER_IMAGE_MODES.blur; + placeholderTransformations.forEach(function (t) { + return result.chain().transformation(t); + }); + } + return result.serialize(); +} + +/** + * If type is 'fetch', update publicId to be a url + * @param publicId + * @param type + * @returns {string} + */ +function preparePublicId(publicId, _ref3) { + var type = _ref3.type; + return !isUrl(publicId) && type === 'fetch' ? makeUrl(publicId) : publicId; +} + +/** + * Generate url string + * @param publicId + * @param options + * @returns {string} final url + */ +function urlString(publicId, options) { + if (isUrl(publicId) && (options.type === 'upload' || options.type === 'asset')) { + return publicId; + } + var version = handleVersion(publicId, options); + var transformationString = handleTransformation(options); + var prefix = handlePrefix(publicId, options); + var signature = handleSignature(options); + var resourceType = handleResourceType(options); + publicId = formatPublicId(publicId, options); + return compact_default()([prefix, resourceType, signature, transformationString, version, publicId]).join('/').replace(/([^:])\/+/g, '$1/') // replace '///' with '//' + .replace(' ', '%20'); +} + +/** + * Merge options and config with defaults + * update options fetch_format according to 'type' param + * @param options + * @param config + * @returns {*} updated options + */ +function prepareOptions(options, config) { + if (options instanceof src_transformation) { + options = options.toOptions(); + } + options = defaults({}, options, config, DEFAULT_IMAGE_PARAMS); + if (options.type === 'fetch') { + options.fetch_format = options.fetch_format || options.format; + } + return options; +} + +/** + * Generates a URL for any asset in your Media library. + * @function url + * @ignore + * @param {string} publicId - The public ID of the media asset. + * @param {Object} [options={}] - The {@link Transformation} parameters to include in the URL. + * @param {object} [config={}] - URL configuration parameters + * @param {type} [options.type='upload'] - The asset's storage type. + * For details on all fetch types, see + * Fetch types. + * @param {Object} [options.resource_type='image'] - The type of asset.

Possible values:
+ * - `image`
+ * - `video`
+ * - `raw` + * @param {signature} [options.signature='s--12345678--'] - The signature component of a + * signed delivery URL of the format: /s--SIGNATURE--/. + * For details on signatures, see + * Signatures. + * @return {string} The media asset URL. + * @see + * Available image transformations + * @see + * Available video transformations + */ +function url_url(publicId) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + if (!publicId) { + return publicId; + } + options = prepareOptions(options, config); + publicId = preparePublicId(publicId, options); + var error = validate(options); + if (error) { + throw error; + } + var resultUrl = urlString(publicId, options); + if (options.urlAnalytics) { + var analyticsOptions = getAnalyticsOptions(options); + var sdkAnalyticsSignature = getSDKAnalyticsSignature(analyticsOptions); + // url might already have a '?' query param + var appender = '?'; + if (resultUrl.indexOf('?') >= 0) { + appender = '&'; + } + resultUrl = "".concat(resultUrl).concat(appender, "_a=").concat(sdkAnalyticsSignature); + } + if (options.auth_token) { + var _appender = resultUrl.indexOf('?') >= 0 ? '&' : '?'; + resultUrl = "".concat(resultUrl).concat(_appender, "__cld_token__=").concat(options.auth_token); + } + return resultUrl; +} +; +// CONCATENATED MODULE: ./src/util/generateBreakpoints.js +function generateBreakpoints_slicedToArray(arr, i) { return generateBreakpoints_arrayWithHoles(arr) || generateBreakpoints_iterableToArrayLimit(arr, i) || generateBreakpoints_unsupportedIterableToArray(arr, i) || generateBreakpoints_nonIterableRest(); } +function generateBreakpoints_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function generateBreakpoints_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return generateBreakpoints_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return generateBreakpoints_arrayLikeToArray(o, minLen); } +function generateBreakpoints_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function generateBreakpoints_iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } +function generateBreakpoints_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +/** + * Helper function. Gets or populates srcset breakpoints using provided parameters + * Either the breakpoints or min_width, max_width, max_images must be provided. + * + * @private + * @param {srcset} srcset Options with either `breakpoints` or `min_width`, `max_width`, and `max_images` + * + * @return {number[]} Array of breakpoints + * + */ +function generateBreakpoints(srcset) { + var breakpoints = srcset.breakpoints || []; + if (breakpoints.length) { + return breakpoints; + } + var _map = [srcset.min_width, srcset.max_width, srcset.max_images].map(Number), + _map2 = generateBreakpoints_slicedToArray(_map, 3), + min_width = _map2[0], + max_width = _map2[1], + max_images = _map2[2]; + if ([min_width, max_width, max_images].some(isNaN)) { + throw 'Either (min_width, max_width, max_images) ' + 'or breakpoints must be provided to the image srcset attribute'; + } + if (min_width > max_width) { + throw 'min_width must be less than max_width'; + } + if (max_images <= 0) { + throw 'max_images must be a positive integer'; + } else if (max_images === 1) { + min_width = max_width; + } + var stepSize = Math.ceil((max_width - min_width) / Math.max(max_images - 1, 1)); + for (var current = min_width; current < max_width; current += stepSize) { + breakpoints.push(current); + } + breakpoints.push(max_width); + return breakpoints; +} +// CONCATENATED MODULE: ./src/util/srcsetUtils.js + +var srcsetUtils_isEmpty = isEmpty; + + + + +/** + * Options used to generate the srcset attribute. + * @typedef {object} srcset + * @property {(number[]|string[])} [breakpoints] An array of breakpoints. + * @property {number} [min_width] Minimal width of the srcset images. + * @property {number} [max_width] Maximal width of the srcset images. + * @property {number} [max_images] Number of srcset images to generate. + * @property {object|string} [transformation] The transformation to use in the srcset urls. + * @property {boolean} [sizes] Whether to calculate and add the sizes attribute. + */ + +/** + * Helper function. Generates a single srcset item url + * + * @private + * @param {string} public_id Public ID of the resource. + * @param {number} width Width in pixels of the srcset item. + * @param {object|string} transformation + * @param {object} options Additional options. + * + * @return {string} Resulting URL of the item + */ +function scaledUrl(public_id, width, transformation) { + var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + var configParams = extractUrlParams(options); + transformation = transformation || options; + configParams.raw_transformation = new src_transformation([merge_default.a({}, transformation), { + crop: 'scale', + width: width + }]).toString(); + return url_url(public_id, configParams); +} + +/** + * If cache is enabled, get the breakpoints from the cache. If the values were not found in the cache, + * or cache is not enabled, generate the values. + * @param {srcset} srcset The srcset configuration parameters + * @param {string} public_id + * @param {object} options + * @return {*|Array} + */ +function getOrGenerateBreakpoints(public_id) { + var srcset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + return generateBreakpoints(srcset); +} + +/** + * Helper function. Generates srcset attribute value of the HTML img tag + * @private + * + * @param {string} public_id Public ID of the resource + * @param {number[]} breakpoints An array of breakpoints (in pixels) + * @param {object} transformation The transformation + * @param {object} options Includes html tag options, transformation options + * @return {string} Resulting srcset attribute value + */ +function generateSrcsetAttribute(public_id, breakpoints, transformation, options) { + options = cloneDeep_default.a(options); + patchFetchFormat(options); + return breakpoints.map(function (width) { + return "".concat(scaledUrl(public_id, width, transformation, options), " ").concat(width, "w"); + }).join(', '); +} + +/** + * Helper function. Generates sizes attribute value of the HTML img tag + * @private + * @param {number[]} breakpoints An array of breakpoints. + * @return {string} Resulting sizes attribute value + */ +function generateSizesAttribute(breakpoints) { + if (breakpoints == null) { + return ''; + } + return breakpoints.map(function (width) { + return "(max-width: ".concat(width, "px) ").concat(width, "px"); + }).join(', '); +} + +/** + * Helper function. Generates srcset and sizes attributes of the image tag + * + * Generated attributes are added to attributes argument + * + * @private + * @param {string} publicId The public ID of the resource + * @param {object} attributes Existing HTML attributes. + * @param {srcset} srcsetData + * @param {object} options Additional options. + * + * @return array The responsive attributes + */ +function generateImageResponsiveAttributes(publicId) { + var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var srcsetData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + // Create both srcset and sizes here to avoid fetching breakpoints twice + + var responsiveAttributes = {}; + if (srcsetUtils_isEmpty(srcsetData)) { + return responsiveAttributes; + } + var generateSizes = !attributes.sizes && srcsetData.sizes === true; + var generateSrcset = !attributes.srcset; + if (generateSrcset || generateSizes) { + var breakpoints = getOrGenerateBreakpoints(publicId, srcsetData, options); + if (generateSrcset) { + var transformation = srcsetData.transformation; + var srcsetAttr = generateSrcsetAttribute(publicId, breakpoints, transformation, options); + if (!srcsetUtils_isEmpty(srcsetAttr)) { + responsiveAttributes.srcset = srcsetAttr; + } + } + if (generateSizes) { + var sizesAttr = generateSizesAttribute(breakpoints); + if (!srcsetUtils_isEmpty(sizesAttr)) { + responsiveAttributes.sizes = sizesAttr; + } + } + } + return responsiveAttributes; +} + +/** + * Generate a media query + * + * @private + * @param {object} options configuration options + * @param {number|string} options.min_width + * @param {number|string} options.max_width + * @return {string} a media query string + */ +function generateMediaAttr(options) { + var mediaQuery = []; + if (options != null) { + if (options.min_width != null) { + mediaQuery.push("(min-width: ".concat(options.min_width, "px)")); + } + if (options.max_width != null) { + mediaQuery.push("(max-width: ".concat(options.max_width, "px)")); + } + } + return mediaQuery.join(' and '); +} +var srcsetUrl = scaledUrl; +// CONCATENATED MODULE: ./src/tags/imagetag.js +function imagetag_typeof(o) { "@babel/helpers - typeof"; return imagetag_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, imagetag_typeof(o); } +function imagetag_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function imagetag_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, imagetag_toPropertyKey(descriptor.key), descriptor); } } +function imagetag_createClass(Constructor, protoProps, staticProps) { if (protoProps) imagetag_defineProperties(Constructor.prototype, protoProps); if (staticProps) imagetag_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function imagetag_toPropertyKey(t) { var i = imagetag_toPrimitive(t, "string"); return "symbol" == imagetag_typeof(i) ? i : i + ""; } +function imagetag_toPrimitive(t, r) { if ("object" != imagetag_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != imagetag_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function imagetag_callSuper(t, o, e) { return o = imagetag_getPrototypeOf(o), imagetag_possibleConstructorReturn(t, imagetag_isNativeReflectConstruct() ? Reflect.construct(o, e || [], imagetag_getPrototypeOf(t).constructor) : o.apply(t, e)); } +function imagetag_possibleConstructorReturn(self, call) { if (call && (imagetag_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return imagetag_assertThisInitialized(self); } +function imagetag_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } +function imagetag_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (imagetag_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function imagetag_get() { if (typeof Reflect !== "undefined" && Reflect.get) { imagetag_get = Reflect.get.bind(); } else { imagetag_get = function _get(target, property, receiver) { var base = imagetag_superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return imagetag_get.apply(this, arguments); } +function imagetag_superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = imagetag_getPrototypeOf(object); if (object === null) break; } return object; } +function imagetag_getPrototypeOf(o) { imagetag_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return imagetag_getPrototypeOf(o); } +function imagetag_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) imagetag_setPrototypeOf(subClass, superClass); } +function imagetag_setPrototypeOf(o, p) { imagetag_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return imagetag_setPrototypeOf(o, p); } +/** + * Image Tag + * Depends on 'tags/htmltag', 'cloudinary' + */ + + + + + + +/** + * Creates an HTML (DOM) Image tag using Cloudinary as the source. + * @constructor ImageTag + * @extends HtmlTag + * @param {string} [publicId] + * @param {Object} [options] + */ +var imagetag_ImageTag = /*#__PURE__*/function (_HtmlTag) { + function ImageTag(publicId) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + imagetag_classCallCheck(this, ImageTag); + return imagetag_callSuper(this, ImageTag, ["img", publicId, options]); + } + + /** @override */ + imagetag_inherits(ImageTag, _HtmlTag); + return imagetag_createClass(ImageTag, [{ + key: "closeTag", + value: function closeTag() { + return ""; + } + + /** @override */ + }, { + key: "attributes", + value: function attributes() { + var attr, options, srcAttribute; + attr = imagetag_get(imagetag_getPrototypeOf(ImageTag.prototype), "attributes", this).call(this) || {}; + options = this.getOptions(); + var attributes = this.getOption('attributes') || {}; + var srcsetParam = this.getOption('srcset') || attributes.srcset; + var responsiveAttributes = {}; + if (isString_default()(srcsetParam)) { + responsiveAttributes.srcset = srcsetParam; + } else { + responsiveAttributes = generateImageResponsiveAttributes(this.publicId, attributes, srcsetParam, options); + } + if (!isEmpty(responsiveAttributes)) { + delete attr.width; + delete attr.height; + } + merge_default()(attr, responsiveAttributes); + srcAttribute = options.responsive && !options.client_hints ? 'data-src' : 'src'; + if (attr[srcAttribute] == null) { + attr[srcAttribute] = url_url(this.publicId, this.getOptions()); + } + return attr; + } + }]); +}(htmltag); +; +/* harmony default export */ var imagetag = (imagetag_ImageTag); +// CONCATENATED MODULE: ./src/tags/sourcetag.js +function sourcetag_typeof(o) { "@babel/helpers - typeof"; return sourcetag_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, sourcetag_typeof(o); } +function sourcetag_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function sourcetag_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, sourcetag_toPropertyKey(descriptor.key), descriptor); } } +function sourcetag_createClass(Constructor, protoProps, staticProps) { if (protoProps) sourcetag_defineProperties(Constructor.prototype, protoProps); if (staticProps) sourcetag_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function sourcetag_toPropertyKey(t) { var i = sourcetag_toPrimitive(t, "string"); return "symbol" == sourcetag_typeof(i) ? i : i + ""; } +function sourcetag_toPrimitive(t, r) { if ("object" != sourcetag_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != sourcetag_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function sourcetag_callSuper(t, o, e) { return o = sourcetag_getPrototypeOf(o), sourcetag_possibleConstructorReturn(t, sourcetag_isNativeReflectConstruct() ? Reflect.construct(o, e || [], sourcetag_getPrototypeOf(t).constructor) : o.apply(t, e)); } +function sourcetag_possibleConstructorReturn(self, call) { if (call && (sourcetag_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return sourcetag_assertThisInitialized(self); } +function sourcetag_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } +function sourcetag_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (sourcetag_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function sourcetag_get() { if (typeof Reflect !== "undefined" && Reflect.get) { sourcetag_get = Reflect.get.bind(); } else { sourcetag_get = function _get(target, property, receiver) { var base = sourcetag_superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return sourcetag_get.apply(this, arguments); } +function sourcetag_superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = sourcetag_getPrototypeOf(object); if (object === null) break; } return object; } +function sourcetag_getPrototypeOf(o) { sourcetag_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return sourcetag_getPrototypeOf(o); } +function sourcetag_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) sourcetag_setPrototypeOf(subClass, superClass); } +function sourcetag_setPrototypeOf(o, p) { sourcetag_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return sourcetag_setPrototypeOf(o, p); } +/** + * Image Tag + * Depends on 'tags/htmltag', 'cloudinary' + */ + + + + + +/** + * Creates an HTML (DOM) Image tag using Cloudinary as the source. + * @constructor SourceTag + * @extends HtmlTag + * @param {string} [publicId] + * @param {Object} [options] + */ +var sourcetag_SourceTag = /*#__PURE__*/function (_HtmlTag) { + function SourceTag(publicId) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + sourcetag_classCallCheck(this, SourceTag); + return sourcetag_callSuper(this, SourceTag, ["source", publicId, options]); + } + + /** @override */ + sourcetag_inherits(SourceTag, _HtmlTag); + return sourcetag_createClass(SourceTag, [{ + key: "closeTag", + value: function closeTag() { + return ""; + } + + /** @override */ + }, { + key: "attributes", + value: function attributes() { + var srcsetParam = this.getOption('srcset'); + var attr = sourcetag_get(sourcetag_getPrototypeOf(SourceTag.prototype), "attributes", this).call(this) || {}; + var options = this.getOptions(); + merge_default()(attr, generateImageResponsiveAttributes(this.publicId, attr, srcsetParam, options)); + if (!attr.srcset) { + attr.srcset = url_url(this.publicId, options); + } + if (!attr.media && options.media) { + attr.media = generateMediaAttr(options.media); + } + return attr; + } + }]); +}(htmltag); +; +/* harmony default export */ var sourcetag = (sourcetag_SourceTag); +// CONCATENATED MODULE: ./src/tags/picturetag.js +function picturetag_typeof(o) { "@babel/helpers - typeof"; return picturetag_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, picturetag_typeof(o); } +function picturetag_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function picturetag_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, picturetag_toPropertyKey(descriptor.key), descriptor); } } +function picturetag_createClass(Constructor, protoProps, staticProps) { if (protoProps) picturetag_defineProperties(Constructor.prototype, protoProps); if (staticProps) picturetag_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function picturetag_toPropertyKey(t) { var i = picturetag_toPrimitive(t, "string"); return "symbol" == picturetag_typeof(i) ? i : i + ""; } +function picturetag_toPrimitive(t, r) { if ("object" != picturetag_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != picturetag_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function picturetag_callSuper(t, o, e) { return o = picturetag_getPrototypeOf(o), picturetag_possibleConstructorReturn(t, picturetag_isNativeReflectConstruct() ? Reflect.construct(o, e || [], picturetag_getPrototypeOf(t).constructor) : o.apply(t, e)); } +function picturetag_possibleConstructorReturn(self, call) { if (call && (picturetag_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return picturetag_assertThisInitialized(self); } +function picturetag_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } +function picturetag_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (picturetag_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function picturetag_get() { if (typeof Reflect !== "undefined" && Reflect.get) { picturetag_get = Reflect.get.bind(); } else { picturetag_get = function _get(target, property, receiver) { var base = picturetag_superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return picturetag_get.apply(this, arguments); } +function picturetag_superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = picturetag_getPrototypeOf(object); if (object === null) break; } return object; } +function picturetag_getPrototypeOf(o) { picturetag_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return picturetag_getPrototypeOf(o); } +function picturetag_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) picturetag_setPrototypeOf(subClass, superClass); } +function picturetag_setPrototypeOf(o, p) { picturetag_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return picturetag_setPrototypeOf(o, p); } + + + + + +var picturetag_PictureTag = /*#__PURE__*/function (_HtmlTag) { + function PictureTag(publicId) { + var _this; + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var sources = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + picturetag_classCallCheck(this, PictureTag); + _this = picturetag_callSuper(this, PictureTag, ['picture', publicId, options]); + _this.widthList = sources; + return _this; + } + + /** @override */ + picturetag_inherits(PictureTag, _HtmlTag); + return picturetag_createClass(PictureTag, [{ + key: "content", + value: function content() { + var _this2 = this; + return this.widthList.map(function (_ref) { + var min_width = _ref.min_width, + max_width = _ref.max_width, + transformation = _ref.transformation; + var options = _this2.getOptions(); + var sourceTransformation = new src_transformation(options); + sourceTransformation.chain().fromOptions(typeof transformation === 'string' ? { + raw_transformation: transformation + } : transformation); + options = extractUrlParams(options); + options.media = { + min_width: min_width, + max_width: max_width + }; + options.transformation = sourceTransformation; + return new sourcetag(_this2.publicId, options).toHtml(); + }).join('') + new imagetag(this.publicId, this.getOptions()).toHtml(); + } + + /** @override */ + }, { + key: "attributes", + value: function attributes() { + var attr = picturetag_get(picturetag_getPrototypeOf(PictureTag.prototype), "attributes", this).call(this); + delete attr.width; + delete attr.height; + return attr; + } + + /** @override */ + }, { + key: "closeTag", + value: function closeTag() { + return ""; + } + }]); +}(htmltag); +; +/* harmony default export */ var picturetag = (picturetag_PictureTag); +// CONCATENATED MODULE: ./src/tags/videotag.js +function videotag_typeof(o) { "@babel/helpers - typeof"; return videotag_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, videotag_typeof(o); } +function videotag_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function videotag_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, videotag_toPropertyKey(descriptor.key), descriptor); } } +function videotag_createClass(Constructor, protoProps, staticProps) { if (protoProps) videotag_defineProperties(Constructor.prototype, protoProps); if (staticProps) videotag_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function videotag_toPropertyKey(t) { var i = videotag_toPrimitive(t, "string"); return "symbol" == videotag_typeof(i) ? i : i + ""; } +function videotag_toPrimitive(t, r) { if ("object" != videotag_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != videotag_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function videotag_callSuper(t, o, e) { return o = videotag_getPrototypeOf(o), videotag_possibleConstructorReturn(t, videotag_isNativeReflectConstruct() ? Reflect.construct(o, e || [], videotag_getPrototypeOf(t).constructor) : o.apply(t, e)); } +function videotag_possibleConstructorReturn(self, call) { if (call && (videotag_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return videotag_assertThisInitialized(self); } +function videotag_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } +function videotag_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (videotag_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function videotag_get() { if (typeof Reflect !== "undefined" && Reflect.get) { videotag_get = Reflect.get.bind(); } else { videotag_get = function _get(target, property, receiver) { var base = videotag_superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return videotag_get.apply(this, arguments); } +function videotag_superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = videotag_getPrototypeOf(object); if (object === null) break; } return object; } +function videotag_getPrototypeOf(o) { videotag_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return videotag_getPrototypeOf(o); } +function videotag_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) videotag_setPrototypeOf(subClass, superClass); } +function videotag_setPrototypeOf(o, p) { videotag_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return videotag_setPrototypeOf(o, p); } +/** + * Video Tag + * Depends on 'tags/htmltag', 'util', 'cloudinary' + */ + + + + + +var VIDEO_TAG_PARAMS = ['source_types', 'source_transformation', 'fallback_content', 'poster', 'sources']; +var videotag_DEFAULT_VIDEO_SOURCE_TYPES = ['webm', 'mp4', 'ogv']; +var videotag_DEFAULT_POSTER_OPTIONS = { + format: 'jpg', + resource_type: 'video' +}; + +/** + * Creates an HTML (DOM) Video tag using Cloudinary as the source. + * @constructor VideoTag + * @extends HtmlTag + * @param {string} [publicId] + * @param {Object} [options] + */ +var videotag_VideoTag = /*#__PURE__*/function (_HtmlTag) { + function VideoTag(publicId) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + videotag_classCallCheck(this, VideoTag); + options = defaults({}, options, DEFAULT_VIDEO_PARAMS); + return videotag_callSuper(this, VideoTag, ["video", publicId.replace(/\.(mp4|ogv|webm)$/, ''), options]); + } + + /** + * Set the transformation to apply on each source + * @function VideoTag#setSourceTransformation + * @param {Object} an object with pairs of source type and source transformation + * @returns {VideoTag} Returns this instance for chaining purposes. + */ + videotag_inherits(VideoTag, _HtmlTag); + return videotag_createClass(VideoTag, [{ + key: "setSourceTransformation", + value: function setSourceTransformation(value) { + this.transformation().sourceTransformation(value); + return this; + } + + /** + * Set the source types to include in the video tag + * @function VideoTag#setSourceTypes + * @param {Array} an array of source types + * @returns {VideoTag} Returns this instance for chaining purposes. + */ + }, { + key: "setSourceTypes", + value: function setSourceTypes(value) { + this.transformation().sourceTypes(value); + return this; + } + + /** + * Set the poster to be used in the video tag + * @function VideoTag#setPoster + * @param {string|Object} value + * - string: a URL to use for the poster + * - Object: transformation parameters to apply to the poster. May optionally include a public_id to use instead of the video public_id. + * @returns {VideoTag} Returns this instance for chaining purposes. + */ + }, { + key: "setPoster", + value: function setPoster(value) { + this.transformation().poster(value); + return this; + } + + /** + * Set the content to use as fallback in the video tag + * @function VideoTag#setFallbackContent + * @param {string} value - the content to use, in HTML format + * @returns {VideoTag} Returns this instance for chaining purposes. + */ + }, { + key: "setFallbackContent", + value: function setFallbackContent(value) { + this.transformation().fallbackContent(value); + return this; + } + }, { + key: "content", + value: function content() { + var _this = this; + var sourceTypes = this.transformation().getValue('source_types'); + var sourceTransformation = this.transformation().getValue('source_transformation'); + var fallback = this.transformation().getValue('fallback_content'); + var sources = this.getOption('sources'); + var innerTags = []; + if (isArray_default()(sources) && !isEmpty(sources)) { + innerTags = sources.map(function (source) { + var src = url_url(_this.publicId, defaults({}, source.transformations || {}, { + resource_type: 'video', + format: source.type + }), _this.getOptions()); + return _this.createSourceTag(src, source.type, source.codecs); + }); + } else { + if (isEmpty(sourceTypes)) { + sourceTypes = videotag_DEFAULT_VIDEO_SOURCE_TYPES; + } + if (isArray_default()(sourceTypes)) { + innerTags = sourceTypes.map(function (srcType) { + var src = url_url(_this.publicId, defaults({}, sourceTransformation[srcType] || {}, { + resource_type: 'video', + format: srcType + }), _this.getOptions()); + return _this.createSourceTag(src, srcType); + }); + } + } + return innerTags.join('') + fallback; + } + }, { + key: "attributes", + value: function attributes() { + var sourceTypes = this.getOption('source_types'); + var poster = this.getOption('poster'); + if (poster === undefined) { + poster = {}; + } + if (isPlainObject_default()(poster)) { + var defaultOptions = poster.public_id != null ? DEFAULT_IMAGE_PARAMS : videotag_DEFAULT_POSTER_OPTIONS; + poster = url_url(poster.public_id || this.publicId, defaults({}, poster, defaultOptions, this.getOptions())); + } + var attr = videotag_get(videotag_getPrototypeOf(VideoTag.prototype), "attributes", this).call(this) || {}; + attr = omit(attr, VIDEO_TAG_PARAMS); + var sources = this.getOption('sources'); + // In case of empty sourceTypes - fallback to default source types is used. + var hasSourceTags = !isEmpty(sources) || isEmpty(sourceTypes) || isArray_default()(sourceTypes); + if (!hasSourceTags) { + attr["src"] = url_url(this.publicId, this.getOptions(), { + resource_type: 'video', + format: sourceTypes + }); + } + if (poster != null) { + attr["poster"] = poster; + } + return attr; + } + }, { + key: "createSourceTag", + value: function createSourceTag(src, sourceType) { + var codecs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var mimeType = null; + if (!isEmpty(sourceType)) { + var videoType = sourceType === 'ogv' ? 'ogg' : sourceType; + mimeType = 'video/' + videoType; + if (!isEmpty(codecs)) { + var codecsStr = isArray_default()(codecs) ? codecs.join(', ') : codecs; + mimeType += '; codecs=' + codecsStr; + } + } + return ""; + } + }]); +}(htmltag); +/* harmony default export */ var videotag = (videotag_VideoTag); +// CONCATENATED MODULE: ./src/tags/clienthintsmetatag.js +function clienthintsmetatag_typeof(o) { "@babel/helpers - typeof"; return clienthintsmetatag_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, clienthintsmetatag_typeof(o); } +function clienthintsmetatag_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function clienthintsmetatag_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, clienthintsmetatag_toPropertyKey(descriptor.key), descriptor); } } +function clienthintsmetatag_createClass(Constructor, protoProps, staticProps) { if (protoProps) clienthintsmetatag_defineProperties(Constructor.prototype, protoProps); if (staticProps) clienthintsmetatag_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function clienthintsmetatag_toPropertyKey(t) { var i = clienthintsmetatag_toPrimitive(t, "string"); return "symbol" == clienthintsmetatag_typeof(i) ? i : i + ""; } +function clienthintsmetatag_toPrimitive(t, r) { if ("object" != clienthintsmetatag_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != clienthintsmetatag_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function clienthintsmetatag_callSuper(t, o, e) { return o = clienthintsmetatag_getPrototypeOf(o), clienthintsmetatag_possibleConstructorReturn(t, clienthintsmetatag_isNativeReflectConstruct() ? Reflect.construct(o, e || [], clienthintsmetatag_getPrototypeOf(t).constructor) : o.apply(t, e)); } +function clienthintsmetatag_possibleConstructorReturn(self, call) { if (call && (clienthintsmetatag_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return clienthintsmetatag_assertThisInitialized(self); } +function clienthintsmetatag_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } +function clienthintsmetatag_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (clienthintsmetatag_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function clienthintsmetatag_getPrototypeOf(o) { clienthintsmetatag_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return clienthintsmetatag_getPrototypeOf(o); } +function clienthintsmetatag_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) clienthintsmetatag_setPrototypeOf(subClass, superClass); } +function clienthintsmetatag_setPrototypeOf(o, p) { clienthintsmetatag_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return clienthintsmetatag_setPrototypeOf(o, p); } +/** + * Image Tag + * Depends on 'tags/htmltag', 'cloudinary' + */ + + + + +/** + * Creates an HTML (DOM) Meta tag that enables Client-Hints for the HTML page.
+ * See + * Automating responsive images with Client Hints for more details. + * @constructor ClientHintsMetaTag + * @extends HtmlTag + * @param {object} options + * @example + * tag = new ClientHintsMetaTag() + * //returns: + */ +var clienthintsmetatag_ClientHintsMetaTag = /*#__PURE__*/function (_HtmlTag) { + function ClientHintsMetaTag(options) { + clienthintsmetatag_classCallCheck(this, ClientHintsMetaTag); + return clienthintsmetatag_callSuper(this, ClientHintsMetaTag, ['meta', void 0, assign_default()({ + "http-equiv": "Accept-CH", + content: "DPR, Viewport-Width, Width" + }, options)]); + } + + /** @override */ + clienthintsmetatag_inherits(ClientHintsMetaTag, _HtmlTag); + return clienthintsmetatag_createClass(ClientHintsMetaTag, [{ + key: "closeTag", + value: function closeTag() { + return ""; + } + }]); +}(htmltag); +; +/* harmony default export */ var clienthintsmetatag = (clienthintsmetatag_ClientHintsMetaTag); +// CONCATENATED MODULE: ./src/util/parse/normalizeToArray.js +function normalizeToArray_toConsumableArray(arr) { return normalizeToArray_arrayWithoutHoles(arr) || normalizeToArray_iterableToArray(arr) || normalizeToArray_unsupportedIterableToArray(arr) || normalizeToArray_nonIterableSpread(); } +function normalizeToArray_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function normalizeToArray_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return normalizeToArray_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return normalizeToArray_arrayLikeToArray(o, minLen); } +function normalizeToArray_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function normalizeToArray_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return normalizeToArray_arrayLikeToArray(arr); } +function normalizeToArray_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } + + +/** + * @desc normalize elements, support a single element, array or nodelist, always outputs array + * @param elements + * @returns {[]} + */ +function normalizeToArray(elements) { + if (isArray_default()(elements)) { + return elements; + } else if (elements.constructor.name === "NodeList") { + return normalizeToArray_toConsumableArray(elements); // ensure an array is always returned, even if nodelist + } else if (isString_default()(elements)) { + return Array.prototype.slice.call(document.querySelectorAll(elements), 0); + } else { + return [elements]; + } +} +// CONCATENATED MODULE: ./src/util/features/transparentVideo/mountCloudinaryVideoTag.js +/** + * @param {HTMLElement} htmlElContainer + * @param {object} clInstance cloudinary instance + * @param {string} publicId + * @param {object} options - TransformationOptions + * @returns Promise + */ +function mountCloudinaryVideoTag(htmlElContainer, clInstance, publicId, options) { + return new Promise(function (resolve, reject) { + htmlElContainer.innerHTML = clInstance.videoTag(publicId, options).toHtml(); + + // All videos under the html container must have a width of 100%, or they might overflow from the container + var cloudinaryVideoElement = htmlElContainer.querySelector('.cld-transparent-video'); + cloudinaryVideoElement.style.width = '100%'; + resolve(htmlElContainer); + }); +} +/* harmony default export */ var transparentVideo_mountCloudinaryVideoTag = (mountCloudinaryVideoTag); +// CONCATENATED MODULE: ./src/util/transformations/addFlag.js +/** + * @description - Function will push a flag to incoming options + * @param {{transformation} | {...transformation}} options - These options are the same options provided to all our SDK methods + * We expect options to either be the transformation itself, or an object containing + * an array of transformations + * + * @param {string} flag + * @returns the mutated options object + */ + +function addFlagToOptions(options, flag) { + // Do we have transformation + if (options.transformation) { + options.transformation.push({ + flags: [flag] + }); + } else { + // no transformation + // ensure the flags are extended + if (!options.flags) { + options.flags = []; + } + if (typeof options.flags === 'string') { + options.flags = [options.flags]; + } + options.flags.push(flag); + } +} +/* harmony default export */ var addFlag = (addFlagToOptions); +// CONCATENATED MODULE: ./src/util/features/transparentVideo/enforceOptionsForTransparentVideo.js + + + +/** + * @description - Enforce option structure, sets defaults and ensures alpha flag exists + * @param options {TransformationOptions} + */ +function enforceOptionsForTransparentVideo(options) { + options.autoplay = true; + options.muted = true; + options.controls = false; + options.max_timeout_ms = options.max_timeout_ms || DEFAULT_TIMEOUT_MS; + options["class"] = options["class"] || ''; + options["class"] += ' cld-transparent-video'; + options.externalLibraries = options.externalLibraries || {}; + if (!options.externalLibraries.seeThru) { + options.externalLibraries.seeThru = DEFAULT_EXTERNAL_LIBRARIES.seeThru; + } + + // ensure there's an alpha transformation present + // this is a non documented internal flag + addFlag(options, 'alpha'); +} +/* harmony default export */ var transparentVideo_enforceOptionsForTransparentVideo = (enforceOptionsForTransparentVideo); +// CONCATENATED MODULE: ./src/util/xhr/loadScript.js +/** + * @description - Given a string URL, this function will load the script and resolve the promise. + * The function doesn't resolve any value, + * this is not a UMD loader where you can get your library name back. + * @param scriptURL {string} + * @param {number} max_timeout_ms - Time to elapse before promise is rejected + * @param isAlreadyLoaded {boolean} if true, the loadScript resolves immediately + * this is used for multiple invocations - prevents the script from being loaded multiple times + * @return {Promise} + */ +function loadScript(scriptURL, max_timeout_ms, isAlreadyLoaded) { + return new Promise(function (resolve, reject) { + if (isAlreadyLoaded) { + resolve(); + } else { + var scriptTag = document.createElement('script'); + scriptTag.src = scriptURL; + var timerID = setTimeout(function () { + reject({ + status: 'error', + message: "Timeout loading script ".concat(scriptURL) + }); + }, max_timeout_ms); // 10 seconds for timeout + + scriptTag.onerror = function () { + clearTimeout(timerID); // clear timeout reject error + reject({ + status: 'error', + message: "Error loading ".concat(scriptURL) + }); + }; + scriptTag.onload = function () { + clearTimeout(timerID); // clear timeout reject error + resolve(); + }; + document.head.appendChild(scriptTag); + } + }); +} +/* harmony default export */ var xhr_loadScript = (loadScript); +// CONCATENATED MODULE: ./src/util/xhr/getBlobFromURL.js +/** + * Reject on timeout + * @param maxTimeoutMS + * @param reject + * @returns {number} timerID + */ +function rejectOnTimeout(maxTimeoutMS, reject) { + return setTimeout(function () { + reject({ + status: 'error', + message: 'Timeout loading Blob URL' + }); + }, maxTimeoutMS); +} + +/** + * @description Converts a URL to a BLOB URL + * @param {string} urlToLoad + * @param {number} max_timeout_ms - Time to elapse before promise is rejected + * @return {Promise<{ + * status: 'success' | 'error' + * message?: string, + * payload: { + * url: string + * } + * }>} + */ +function getBlobFromURL(urlToLoad, maxTimeoutMS) { + return new Promise(function (resolve, reject) { + var timerID = rejectOnTimeout(maxTimeoutMS, reject); + + // If fetch exists, use it to fetch blob, otherwise use XHR. + // XHR causes issues on safari 14.1 so we prefer fetch + var fetchBlob = typeof fetch !== 'undefined' && fetch ? loadUrlUsingFetch : loadUrlUsingXhr; + fetchBlob(urlToLoad).then(function (blob) { + resolve({ + status: 'success', + payload: { + blobURL: URL.createObjectURL(blob) + } + }); + })["catch"](function () { + reject({ + status: 'error', + message: 'Error loading Blob URL' + }); + })["finally"](function () { + // Clear the timeout timer on fail or success. + clearTimeout(timerID); + }); + }); +} + +/** + * Use fetch function to fetch file + * @param urlToLoad + * @returns {Promise} + */ +function loadUrlUsingFetch(urlToLoad) { + return new Promise(function (resolve, reject) { + fetch(urlToLoad).then(function (response) { + response.blob().then(function (blob) { + resolve(blob); + }); + })["catch"](function () { + reject('error'); + }); + }); +} + +/** + * Use XHR to fetch file + * @param urlToLoad + * @returns {Promise} + */ +function loadUrlUsingXhr(urlToLoad) { + return new Promise(function (resolve, reject) { + var xhr = new XMLHttpRequest(); + xhr.responseType = 'blob'; + xhr.onload = function (response) { + resolve(xhr.response); + }; + xhr.onerror = function () { + reject('error'); + }; + xhr.open('GET', urlToLoad, true); + xhr.send(); + }); +} +/* harmony default export */ var xhr_getBlobFromURL = (getBlobFromURL); +// CONCATENATED MODULE: ./src/util/features/transparentVideo/createHiddenVideoTag.js +/** + * @description Creates a hidden HTMLVideoElement with the specified videoOptions + * @param {{autoplay, playsinline, loop, muted, poster, blobURL, videoURL }} videoOptions + * @param {boolean} videoOptions.autoplay - autoplays the video if true + * @param {string} videoOptions.blobURL - the blobURL to set as video.src + * @param {string} videoOptions.videoURL - the original videoURL the user created (with transformations) + * @return {HTMLVideoElement} + */ +function createHiddenVideoTag(videoOptions) { + var autoplay = videoOptions.autoplay, + playsinline = videoOptions.playsinline, + loop = videoOptions.loop, + muted = videoOptions.muted, + poster = videoOptions.poster, + blobURL = videoOptions.blobURL, + videoURL = videoOptions.videoURL; + var el = document.createElement('video'); + el.style.visibility = 'hidden'; + el.position = 'absolute'; + el.x = 0; + el.y = 0; + el.src = blobURL; + el.setAttribute('data-video-url', videoURL); // for debugging/testing + + autoplay && el.setAttribute('autoplay', autoplay); + playsinline && el.setAttribute('playsinline', playsinline); + loop && el.setAttribute('loop', loop); + muted && el.setAttribute('muted', muted); + muted && (el.muted = muted); // this is also needed for autoplay, on top of setAttribute + poster && el.setAttribute('poster', poster); + + // Free memory at the end of the file loading. + el.onload = function () { + URL.revokeObjectURL(blobURL); + }; + return el; +} +/* harmony default export */ var transparentVideo_createHiddenVideoTag = (createHiddenVideoTag); +// CONCATENATED MODULE: ./src/util/features/transparentVideo/instantiateSeeThru.js +/** + * @description This function creates a new instanc eof seeThru (seeThru.create()) and returns a promise of the seeThru instance + * @param {HTMLVideoElement} videoElement + * @param {number} max_timeout_ms - Time to elapse before promise is rejected + * @param {string} customClass - A classname to be added to the canvas element created by seeThru + * @param {boolean} autoPlay + * @return {Promise} SeeThru instance or rejection error + */ +function instantiateSeeThru(videoElement, max_timeout_ms, customClass, autoPlay) { + var _window = window, + seeThru = _window.seeThru, + setTimeout = _window.setTimeout, + clearTimeout = _window.clearTimeout; + return new Promise(function (resolve, reject) { + var timerID = setTimeout(function () { + reject({ + status: 'error', + message: 'Timeout instantiating seeThru instance' + }); + }, max_timeout_ms); + if (seeThru) { + var seeThruInstance = seeThru.create(videoElement).ready(function () { + // clear timeout reject error + clearTimeout(timerID); + + // force container width, else the canvas can overflow out + var canvasElement = seeThruInstance.getCanvas(); + canvasElement.style.width = '100%'; + canvasElement.className += ' ' + customClass; + + // start the video if autoplay is set + if (autoPlay) { + seeThruInstance.play(); + } + resolve(seeThruInstance); + }); + } else { + reject({ + status: 'error', + message: 'Error instantiating seeThru instance' + }); + } + }); +} +/* harmony default export */ var transparentVideo_instantiateSeeThru = (instantiateSeeThru); +// CONCATENATED MODULE: ./src/util/features/transparentVideo/mountSeeThruCanvasTag.js + + + + + +/** + * + * @param {HTMLElement} htmlElContainer + * @param {string} videoURL + * @param {TransformationOptions} options + * @return {Promise} + */ +function mountSeeThruCanvasTag(htmlElContainer, videoURL, options) { + var poster = options.poster, + autoplay = options.autoplay, + playsinline = options.playsinline, + loop = options.loop, + muted = options.muted; + videoURL = videoURL + '.mp4'; // seeThru always uses mp4 + return new Promise(function (resolve, reject) { + xhr_loadScript(options.externalLibraries.seeThru, options.max_timeout_ms, window.seeThru).then(function () { + xhr_getBlobFromURL(videoURL, options.max_timeout_ms).then(function (_ref) { + var payload = _ref.payload; + var videoElement = transparentVideo_createHiddenVideoTag({ + blobURL: payload.blobURL, + videoURL: videoURL, + // for debugging/testing + poster: poster, + autoplay: autoplay, + playsinline: playsinline, + loop: loop, + muted: muted + }); + htmlElContainer.appendChild(videoElement); + transparentVideo_instantiateSeeThru(videoElement, options.max_timeout_ms, options["class"], options.autoplay).then(function () { + resolve(htmlElContainer); + })["catch"](function (err) { + reject(err); + }); + + // catch for getBlobFromURL() + })["catch"](function (_ref2) { + var status = _ref2.status, + message = _ref2.message; + reject({ + status: status, + message: message + }); + }); + // catch for loadScript() + })["catch"](function (_ref3) { + var status = _ref3.status, + message = _ref3.message; + reject({ + status: status, + message: message + }); + }); + }); +} +/* harmony default export */ var transparentVideo_mountSeeThruCanvasTag = (mountSeeThruCanvasTag); +// CONCATENATED MODULE: ./src/util/features/transparentVideo/checkSupportForTransparency.js +/** + * @return {Promise} - Whether the browser supports transparent videos or not + */ + +function checkSupportForTransparency() { + return new Promise(function (resolve, reject) { + // Resolve early for safari. + // Currently (29 December 2021) Safari can play webm/vp9, + // but it does not support transparent video in the format we're outputting + if (isSafari()) { + resolve(false); + } + var video = document.createElement('video'); + var canPlay = video.canPlayType && video.canPlayType('video/webm; codecs="vp9"'); + resolve(canPlay === 'maybe' || canPlay === 'probably'); + }); +} +/* harmony default export */ var transparentVideo_checkSupportForTransparency = (checkSupportForTransparency); +// CONCATENATED MODULE: ./src/cloudinary.js +function cloudinary_typeof(o) { "@babel/helpers - typeof"; return cloudinary_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, cloudinary_typeof(o); } +function cloudinary_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function cloudinary_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, cloudinary_toPropertyKey(descriptor.key), descriptor); } } +function cloudinary_createClass(Constructor, protoProps, staticProps) { if (protoProps) cloudinary_defineProperties(Constructor.prototype, protoProps); if (staticProps) cloudinary_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function cloudinary_toPropertyKey(t) { var i = cloudinary_toPrimitive(t, "string"); return "symbol" == cloudinary_typeof(i) ? i : i + ""; } +function cloudinary_toPrimitive(t, r) { if ("object" != cloudinary_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != cloudinary_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } + +var applyBreakpoints, closestAbove, defaultBreakpoints, cloudinary_findContainerWidth, cloudinary_maxWidth, updateDpr; + + + + + + + + + + +// + + + + + +defaultBreakpoints = function defaultBreakpoints(width) { + var steps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100; + return steps * Math.ceil(width / steps); +}; +closestAbove = function closestAbove(list, value) { + var i; + i = list.length - 2; + while (i >= 0 && list[i] >= value) { + i--; + } + return list[i + 1]; +}; +applyBreakpoints = function applyBreakpoints(tag, width, steps, options) { + var ref, ref1, ref2, responsive_use_breakpoints; + responsive_use_breakpoints = (ref = (ref1 = (ref2 = options['responsive_use_breakpoints']) != null ? ref2 : options['responsive_use_stoppoints']) != null ? ref1 : this.config('responsive_use_breakpoints')) != null ? ref : this.config('responsive_use_stoppoints'); + if (!responsive_use_breakpoints || responsive_use_breakpoints === 'resize' && !options.resizing) { + return width; + } else { + return this.calc_breakpoint(tag, width, steps); + } +}; +cloudinary_findContainerWidth = function findContainerWidth(element) { + var containerWidth, style; + containerWidth = 0; + while ((element = element != null ? element.parentNode : void 0) instanceof Element && !containerWidth) { + style = window.getComputedStyle(element); + if (!/^inline/.test(style.display)) { + containerWidth = lodash_width(element); + } + } + return containerWidth; +}; +updateDpr = function updateDpr(dataSrc, roundDpr) { + return dataSrc.replace(/\bdpr_(1\.0|auto)\b/g, 'dpr_' + this.device_pixel_ratio(roundDpr)); +}; +cloudinary_maxWidth = function maxWidth(requiredWidth, tag) { + var imageWidth; + imageWidth = lodash_getData(tag, 'width') || 0; + if (requiredWidth > imageWidth) { + imageWidth = requiredWidth; + lodash_setData(tag, 'width', requiredWidth); + } + return imageWidth; +}; +var cloudinary_Cloudinary = /*#__PURE__*/function () { + /** + * Creates a new Cloudinary instance. + * @class Cloudinary + * @classdesc Main class for accessing Cloudinary functionality. + * @param {Object} options - A {@link Configuration} object for globally configuring Cloudinary account settings. + * @example
+ * var cl = new cloudinary.Cloudinary( { cloud_name: "mycloud"});
+ * var imgTag = cl.image("myPicID"); + * @see + * Available configuration options + */ + function Cloudinary(options) { + cloudinary_classCallCheck(this, Cloudinary); + var configuration; + this.devicePixelRatioCache = {}; + this.responsiveConfig = {}; + this.responsiveResizeInitialized = false; + configuration = new src_configuration(options); + // Provided for backward compatibility + this.config = function (newConfig, newValue) { + return configuration.config(newConfig, newValue); + }; + /** + * Use \ tags in the document to configure this `cloudinary` instance. + * @return This {Cloudinary} instance for chaining. + */ + this.fromDocument = function () { + configuration.fromDocument(); + return this; + }; + /** + * Use environment variables to configure this `cloudinary` instance. + * @return This {Cloudinary} instance for chaining. + */ + this.fromEnvironment = function () { + configuration.fromEnvironment(); + return this; + }; + /** + * Initializes the configuration of this `cloudinary` instance. + * This is a convenience method that invokes both {@link Configuration#fromEnvironment|fromEnvironment()} + * (Node.js environment only) and {@link Configuration#fromDocument|fromDocument()}. + * It first tries to retrieve the configuration from the environment variable. + * If not available, it tries from the document meta tags. + * @function Cloudinary#init + * @see Configuration#init + * @return This {Cloudinary} instance for chaining. + */ + this.init = function () { + configuration.init(); + return this; + }; + } + + /** + * Convenience constructor + * @param {Object} options + * @return {Cloudinary} + * @example cl = cloudinary.Cloudinary.new( { cloud_name: "mycloud"}) + */ + return cloudinary_createClass(Cloudinary, [{ + key: "url", + value: + /** + * Generates a URL for any asset in your Media library. + * @function Cloudinary#url + * @param {string} publicId - The public ID of the media asset. + * @param {Object} [options] - The {@link Transformation} parameters to include in the URL. + * @param {type} [options.type='upload'] - The asset's storage type. + * For details on all fetch types, see + * Fetch types. + * @param {resourceType} [options.resource_type='image'] - The type of asset. Possible values:
+ * - `image`
+ * - `video`
+ * - `raw` + * @return {string} The media asset URL. + * @see + * Available image transformations + * @see + * Available video transformations + */ + function url(publicId) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + return url_url(publicId, options, this.config()); + } + + /** + * Generates a video asset URL. + * @function Cloudinary#video_url + * @param {string} publicId - The public ID of the video. + * @param {Object} [options] - The {@link Transformation} parameters to include in the URL. + * @param {type} [options.type='upload'] - The asset's storage type. + * For details on all fetch types, see + * Fetch types. + * @return {string} The video URL. + * @see Available video transformations + */ + }, { + key: "video_url", + value: function video_url(publicId, options) { + options = assign_default()({ + resource_type: 'video' + }, options); + return this.url(publicId, options); + } + + /** + * Generates a URL for an image intended to be used as a thumbnail for the specified video. + * Identical to {@link Cloudinary#url|url}, except that the `resource_type` is `video` + * and the default `format` is `jpg`. + * @function Cloudinary#video_thumbnail_url + * @param {string} publicId - The unique identifier of the video from which you want to generate a thumbnail image. + * @param {Object} [options] - The image {@link Transformation} parameters to apply to the thumbnail. + * In addition to standard image transformations, you can also use the `start_offset` transformation parameter + * to instruct Cloudinary to generate the thumbnail from a frame other than the middle frame of the video. + * For details, see + * Generating video thumbnails in the Cloudinary documentation. + * @param {type} [options.type='upload'] - The asset's storage type. + * @return {string} The URL of the video thumbnail image. + * @see + * Available image transformations + */ + }, { + key: "video_thumbnail_url", + value: function video_thumbnail_url(publicId, options) { + options = assign_default()({}, DEFAULT_POSTER_OPTIONS, options); + return this.url(publicId, options); + } + + /** + * Generates a string representation of the specified transformation options. + * @function Cloudinary#transformation_string + * @param {Object} options - The {@link Transformation} options. + * @returns {string} The transformation string. + * @see + * Available image transformations + * @see + * Available video transformations + */ + }, { + key: "transformation_string", + value: function transformation_string(options) { + return new src_transformation(options).serialize(); + } + + /** + * Generates an image tag. + * @function Cloudinary#image + * @param {string} publicId - The public ID of the image. + * @param {Object} options - The {@link Transformation} parameters, {@link Configuration} parameters, + * and standard HTML <img> tag attributes to apply to the image tag. + * @return {HTMLImageElement} An image tag DOM element. + * @see + * Available image transformations + * @see Available configuration options + */ + }, { + key: "image", + value: function image(publicId) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var client_hints, img, ref; + img = this.imageTag(publicId, options); + client_hints = (ref = options.client_hints != null ? options.client_hints : this.config('client_hints')) != null ? ref : false; + if (options.src == null && !client_hints) { + // src must be removed before creating the DOM element to avoid loading the image + img.setAttr("src", ''); + } + img = img.toDOM(); + if (!client_hints) { + // cache the image src + lodash_setData(img, 'src-cache', this.url(publicId, options)); + // set image src taking responsiveness in account + this.cloudinary_update(img, options); + } + return img; + } + + /** + * Creates a new ImageTag instance using the configuration defined for this `cloudinary` instance. + * @function Cloudinary#imageTag + * @param {string} publicId - The public ID of the image. + * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters, + * and standard HTML <img> tag attributes to apply to the image tag. + * @return {ImageTag} An ImageTag instance that is attached (chained) to this Cloudinary instance. + * @see + * Available image transformations + * @see Available configuration options + */ + }, { + key: "imageTag", + value: function imageTag(publicId, options) { + var tag; + tag = new imagetag(publicId, this.config()); + tag.transformation().fromOptions(options); + return tag; + } + + /** + * Creates a new PictureTag instance, configured using this `cloudinary` instance. + * @function Cloudinary#PictureTag + * @param {string} publicId - the public ID of the resource + * @param {Object} options - additional options to pass to the new ImageTag instance + * @param {Array} sources - the sources definitions + * @return {PictureTag} A PictureTag that is attached (chained) to this Cloudinary instance + */ + }, { + key: "pictureTag", + value: function pictureTag(publicId, options, sources) { + var tag; + tag = new picturetag(publicId, this.config(), sources); + tag.transformation().fromOptions(options); + return tag; + } + + /** + * Creates a new SourceTag instance, configured using this `cloudinary` instance. + * @function Cloudinary#SourceTag + * @param {string} publicId - the public ID of the resource. + * @param {Object} options - additional options to pass to the new instance. + * @return {SourceTag} A SourceTag that is attached (chained) to this Cloudinary instance + */ + }, { + key: "sourceTag", + value: function sourceTag(publicId, options) { + var tag; + tag = new sourcetag(publicId, this.config()); + tag.transformation().fromOptions(options); + return tag; + } + + /** + * Generates a video thumbnail URL from the specified remote video and includes it in an image tag. + * @function Cloudinary#video_thumbnail + * @param {string} publicId - The unique identifier of the video from the relevant video site. + * Additionally, either append the image extension type to the identifier value or set + * the image delivery format in the 'options' parameter using the 'format' transformation option. + * For example, a YouTube video might have the identifier: 'o-urnlaJpOA.jpg'. + * @param {Object} [options] - The {@link Transformation} parameters to apply. + * @return {HTMLImageElement} An HTML image tag element + * @see + * Available video transformations + * @see Available configuration options + */ + }, { + key: "video_thumbnail", + value: function video_thumbnail(publicId, options) { + return this.image(publicId, merge_default()({}, DEFAULT_POSTER_OPTIONS, options)); + } + + /** + * Fetches a facebook profile image and delivers it in an image tag element. + * @function Cloudinary#facebook_profile_image + * @param {string} publicId - The Facebook numeric ID. Additionally, either append the image extension type + * to the ID or set the image delivery format in the 'options' parameter using the 'format' transformation option. + * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters, + * and standard HTML <img> tag attributes to apply to the image tag. + * @return {HTMLImageElement} An image tag element. + * @see + * Available image transformations + * @see Available configuration options + */ + }, { + key: "facebook_profile_image", + value: function facebook_profile_image(publicId, options) { + return this.image(publicId, assign_default()({ + type: 'facebook' + }, options)); + } + + /** + * Fetches a Twitter profile image by ID and delivers it in an image tag element. + * @function Cloudinary#twitter_profile_image + * @param {string} publicId - The Twitter numeric ID. Additionally, either append the image extension type + * to the ID or set the image delivery format in the 'options' parameter using the 'format' transformation option. + * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters, + * and standard HTML <img> tag attributes to apply to the image tag. + * @return {HTMLImageElement} An image tag element. + * @see + * Available image transformations + * @see Available configuration options + */ + }, { + key: "twitter_profile_image", + value: function twitter_profile_image(publicId, options) { + return this.image(publicId, assign_default()({ + type: 'twitter' + }, options)); + } + + /** + * Fetches a Twitter profile image by name and delivers it in an image tag element. + * @function Cloudinary#twitter_name_profile_image + * @param {string} publicId - The Twitter screen name. Additionally, either append the image extension type + * to the screen name or set the image delivery format in the 'options' parameter using the 'format' transformation option. + * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters, + * and standard HTML <img> tag attributes to apply to the image tag. + * @return {HTMLImageElement} An image tag element. + * @see + * Available image transformations + * @see Available configuration options + */ + }, { + key: "twitter_name_profile_image", + value: function twitter_name_profile_image(publicId, options) { + return this.image(publicId, assign_default()({ + type: 'twitter_name' + }, options)); + } + + /** + * Fetches a Gravatar profile image and delivers it in an image tag element. + * @function Cloudinary#gravatar_image + * @param {string} publicId - The calculated hash for the Gravatar email address. + * Additionally, either append the image extension type to the screen name or set the image delivery format + * in the 'options' parameter using the 'format' transformation option. + * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters, + * and standard HTML <img> tag attributes to apply to the image tag. + * @return {HTMLImageElement} An image tag element. + * @see + * Available image transformations + * @see Available configuration options + */ + }, { + key: "gravatar_image", + value: function gravatar_image(publicId, options) { + return this.image(publicId, assign_default()({ + type: 'gravatar' + }, options)); + } + + /** + * Fetches an image from a remote URL and delivers it in an image tag element. + * @function Cloudinary#fetch_image + * @param {string} publicId - The full URL of the image to fetch, including the extension. + * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters, + * and standard HTML <img> tag attributes to apply to the image tag. + * @return {HTMLImageElement} An image tag element. + * @see + * Available image transformations + * @see Available configuration options + */ + }, { + key: "fetch_image", + value: function fetch_image(publicId, options) { + return this.image(publicId, assign_default()({ + type: 'fetch' + }, options)); + } + + /** + * Generates a video tag. + * @function Cloudinary#video + * @param {string} publicId - The public ID of the video. + * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters, + * and standard HTML <img> tag attributes to apply to the image tag. + * @return {HTMLVideoElement} A video tag DOM element. + * @see + * Available video transformations + * @see Available configuration options + */ + }, { + key: "video", + value: function video(publicId) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + return this.videoTag(publicId, options).toHtml(); + } + + /** + * Creates a new VideoTag instance using the configuration defined for this `cloudinary` instance. + * @function Cloudinary#videoTag + * @param {string} publicId - The public ID of the video. + * @param {Object} options - The {@link Transformation} parameters, {@link Configuration} parameters, + * and standard HTML <img> tag attributes to apply to the image tag. + * @return {VideoTag} A VideoTag that is attached (chained) to this `cloudinary` instance. + * @see + * Available video transformations + * @see Available configuration options + */ + }, { + key: "videoTag", + value: function videoTag(publicId, options) { + options = defaults({}, options, this.config()); + return new videotag(publicId, options); + } + + /** + * Generates a sprite PNG image that contains all images with the specified tag and the corresponding css file. + * @function Cloudinary#sprite_css + * @param {string} publicId - The tag on which to base the sprite image. + * @param {Object} [options] - The {@link Transformation} parameters to include in the URL. + * @return {string} The URL of the generated CSS file. The sprite image has the same URL, but with a PNG extension. + * @see + * Sprite generation + * @see + * Available image transformations + */ + }, { + key: "sprite_css", + value: function sprite_css(publicId, options) { + options = assign_default()({ + type: 'sprite' + }, options); + if (!publicId.match(/.css$/)) { + options.format = 'css'; + } + return this.url(publicId, options); + } + + /** + * Initializes responsive image behavior for all image tags with the 'cld-responsive' + * (or other defined {@link Cloudinary#responsive|responsive} class).
+ * This method should be invoked after the page has loaded.
+ * Note: Calls {@link Cloudinary#cloudinary_update|cloudinary_update} to modify image tags. + * @function Cloudinary#responsive + * @param {Object} options + * @param {String} [options.responsive_class='cld-responsive'] - An alternative class + * to locate the relevant <img> tags. + * @param {number} [options.responsive_debounce=100] - The debounce interval in milliseconds. + * @param {boolean} [bootstrap=true] If true, processes the <img> tags by calling + * {@link Cloudinary#cloudinary_update|cloudinary_update}. When false, the tags are processed + * only after a resize event. + * @see {@link Cloudinary#cloudinary_update|cloudinary_update} for additional configuration parameters + * @see Automating responsive images with JavaScript + * @return {function} that when called, removes the resize EventListener added by this function + */ + }, { + key: "responsive", + value: function responsive(options) { + var _this = this; + var bootstrap = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var ref, ref1, ref2, responsiveClass, responsiveResize, timeout; + this.responsiveConfig = merge_default()(this.responsiveConfig || {}, options); + responsiveClass = (ref = this.responsiveConfig.responsive_class) != null ? ref : this.config('responsive_class'); + if (bootstrap) { + this.cloudinary_update("img.".concat(responsiveClass, ", img.cld-hidpi"), this.responsiveConfig); + } + responsiveResize = (ref1 = (ref2 = this.responsiveConfig.responsive_resize) != null ? ref2 : this.config('responsive_resize')) != null ? ref1 : true; + if (responsiveResize && !this.responsiveResizeInitialized) { + this.responsiveConfig.resizing = this.responsiveResizeInitialized = true; + timeout = null; + var makeResponsive = function makeResponsive() { + var debounce, ref3, ref4, reset, run, wait, waitFunc; + debounce = (ref3 = (ref4 = _this.responsiveConfig.responsive_debounce) != null ? ref4 : _this.config('responsive_debounce')) != null ? ref3 : 100; + reset = function reset() { + if (timeout) { + clearTimeout(timeout); + timeout = null; + } + }; + run = function run() { + return _this.cloudinary_update("img.".concat(responsiveClass), _this.responsiveConfig); + }; + waitFunc = function waitFunc() { + reset(); + return run(); + }; + wait = function wait() { + reset(); + timeout = setTimeout(waitFunc, debounce); + }; + if (debounce) { + return wait(); + } else { + return run(); + } + }; + window.addEventListener('resize', makeResponsive); + return function () { + return window.removeEventListener('resize', makeResponsive); + }; + } + } + + /** + * @function Cloudinary#calc_breakpoint + * @private + * @ignore + */ + }, { + key: "calc_breakpoint", + value: function calc_breakpoint(element, width, steps) { + var breakpoints = lodash_getData(element, 'breakpoints') || lodash_getData(element, 'stoppoints') || this.config('breakpoints') || this.config('stoppoints') || defaultBreakpoints; + if (isFunction_default()(breakpoints)) { + return breakpoints(width, steps); + } else { + if (isString_default()(breakpoints)) { + breakpoints = breakpoints.split(',').map(function (point) { + return parseInt(point); + }).sort(function (a, b) { + return a - b; + }); + } + return closestAbove(breakpoints, width); + } + } + + /** + * @function Cloudinary#calc_stoppoint + * @deprecated Use {@link calc_breakpoint} instead. + * @private + * @ignore + */ + }, { + key: "calc_stoppoint", + value: function calc_stoppoint(element, width, steps) { + return this.calc_breakpoint(element, width, steps); + } + + /** + * @function Cloudinary#device_pixel_ratio + * @private + */ + }, { + key: "device_pixel_ratio", + value: function device_pixel_ratio(roundDpr) { + roundDpr = roundDpr == null ? true : roundDpr; + var dpr = (typeof window !== "undefined" && window !== null ? window.devicePixelRatio : void 0) || 1; + if (roundDpr) { + dpr = Math.ceil(dpr); + } + if (dpr <= 0 || dpr === 0 / 0) { + dpr = 1; + } + var dprString = dpr.toString(); + if (dprString.match(/^\d+$/)) { + dprString += '.0'; + } + return dprString; + } + + /** + * Applies responsiveness to all <img> tags under each relevant node + * (regardless of whether the tag contains the {@link Cloudinary#responsive|responsive} class). + * @param {Element[]} nodes The parent nodes where you want to search for <img> tags. + * @param {Object} [options] The {@link Cloudinary#cloudinary_update|cloudinary_update} options to apply. + * @see Available image transformations + * @function Cloudinary#processImageTags + */ + }, { + key: "processImageTags", + value: function processImageTags(nodes, options) { + if (isEmpty(nodes)) { + // similar to `$.fn.cloudinary` + return this; + } + options = defaults({}, options || {}, this.config()); + var images = nodes.filter(function (node) { + return /^img$/i.test(node.tagName); + }).map(function (node) { + var imgOptions = assign_default()({ + width: node.getAttribute('width'), + height: node.getAttribute('height'), + src: node.getAttribute('src') + }, options); + var publicId = imgOptions['source'] || imgOptions['src']; + delete imgOptions['source']; + delete imgOptions['src']; + var attr = new src_transformation(imgOptions).toHtmlAttributes(); + lodash_setData(node, 'src-cache', url_url(publicId, imgOptions)); + node.setAttribute('width', attr.width); + node.setAttribute('height', attr.height); + return node; + }); + this.cloudinary_update(images, options); + return this; + } + + /** + * Updates the dpr (for `dpr_auto`) and responsive (for `w_auto`) fields according to + * the current container size and the device pixel ratio.
+ * Note:`w_auto` is updated only for images marked with the `cld-responsive` + * (or other defined {@link Cloudinary#responsive|responsive}) class. + * @function Cloudinary#cloudinary_update + * @param {(Array|string|NodeList)} elements - The HTML image elements to modify. + * @param {Object} options + * @param {boolean|string} [options.responsive_use_breakpoints=true] + * Possible values:
+ * - `true`: Always use breakpoints for width.
+ * - `resize`: Use exact width on first render and breakpoints on resize.
+ * - `false`: Always use exact width. + * @param {boolean} [options.responsive] - If `true`, enable responsive on all specified elements. + * Alternatively, you can define specific HTML elements to modify by adding the `cld-responsive` + * (or other custom-defined {@link Cloudinary#responsive|responsive_class}) class to those elements. + * @param {boolean} [options.responsive_preserve_height] - If `true`, original css height is preserved. + * Should be used only if the transformation supports different aspect ratios. + */ + }, { + key: "cloudinary_update", + value: function cloudinary_update(elements, options) { + var _this2 = this; + var containerWidth, dataSrc, match, ref4, requiredWidth; + if (elements === null) { + return this; + } + if (options == null) { + options = {}; + } + var responsive = options.responsive != null ? options.responsive : this.config('responsive'); + elements = normalizeToArray(elements); + var responsiveClass; + if (this.responsiveConfig && this.responsiveConfig.responsive_class != null) { + responsiveClass = this.responsiveConfig.responsive_class; + } else if (options.responsive_class != null) { + responsiveClass = options.responsive_class; + } else { + responsiveClass = this.config('responsive_class'); + } + var roundDpr = options.round_dpr != null ? options.round_dpr : this.config('round_dpr'); + elements.forEach(function (tag) { + if (/img/i.test(tag.tagName)) { + var setUrl = true; + if (responsive) { + lodash_addClass(tag, responsiveClass); + } + dataSrc = lodash_getData(tag, 'src-cache') || lodash_getData(tag, 'src'); + if (!isEmpty(dataSrc)) { + // Update dpr according to the device's devicePixelRatio + dataSrc = updateDpr.call(_this2, dataSrc, roundDpr); + if (htmltag.isResponsive(tag, responsiveClass)) { + containerWidth = cloudinary_findContainerWidth(tag); + if (containerWidth !== 0) { + if (/w_auto:breakpoints/.test(dataSrc)) { + requiredWidth = cloudinary_maxWidth(containerWidth, tag); + if (requiredWidth) { + dataSrc = dataSrc.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/, "w_auto:breakpoints$1:".concat(requiredWidth)); + } else { + setUrl = false; + } + } else { + match = /w_auto(:(\d+))?/.exec(dataSrc); + if (match) { + requiredWidth = applyBreakpoints.call(_this2, tag, containerWidth, match[2], options); + requiredWidth = cloudinary_maxWidth(requiredWidth, tag); + if (requiredWidth) { + dataSrc = dataSrc.replace(/w_auto[^,\/]*/g, "w_".concat(requiredWidth)); + } else { + setUrl = false; + } + } + } + lodash_removeAttribute(tag, 'width'); + if (!options.responsive_preserve_height) { + lodash_removeAttribute(tag, 'height'); + } + } else { + // Container doesn't know the size yet - usually because the image is hidden or outside the DOM. + setUrl = false; + } + } + var isLazyLoading = options.loading === 'lazy' && !_this2.isNativeLazyLoadSupported() && _this2.isLazyLoadSupported() && !elements[0].getAttribute('src'); + if (setUrl || isLazyLoading) { + // If data-width exists, set width to be data-width + _this2.setAttributeIfExists(elements[0], 'width', 'data-width'); + } + if (setUrl && !isLazyLoading) { + lodash_setAttribute(tag, 'src', dataSrc); + } + } + } + }); + return this; + } + + /** + * Sets element[toAttribute] = element[fromAttribute] if element[fromAttribute] is set + * @param element + * @param toAttribute + * @param fromAttribute + */ + }, { + key: "setAttributeIfExists", + value: function setAttributeIfExists(element, toAttribute, fromAttribute) { + var attributeValue = element.getAttribute(fromAttribute); + if (attributeValue != null) { + lodash_setAttribute(element, toAttribute, attributeValue); + } + } + + /** + * Returns true if Intersection Observer API is supported + * @returns {boolean} + */ + }, { + key: "isLazyLoadSupported", + value: function isLazyLoadSupported() { + return window && 'IntersectionObserver' in window; + } + + /** + * Returns true if using Chrome + * @returns {boolean} + */ + }, { + key: "isNativeLazyLoadSupported", + value: function isNativeLazyLoadSupported() { + return 'loading' in HTMLImageElement.prototype; + } + + /** + * Returns a {@link Transformation} object, initialized with the specified options, for chaining purposes. + * @function Cloudinary#transformation + * @param {Object} options The {@link Transformation} options to apply. + * @return {Transformation} + * @see Transformation + * @see + * Available image transformations + * @see + * Available video transformations + */ + }, { + key: "transformation", + value: function transformation(options) { + return src_transformation["new"](this.config()).fromOptions(options).setParent(this); + } + + /** + * @description This function will append a TransparentVideo element to the htmlElContainer passed to it. + * TransparentVideo can either be an HTML Video tag, or an HTML Canvas Tag. + * @param {HTMLElement} htmlElContainer + * @param {string} publicId + * @param {object} options The {@link TransparentVideoOptions} options to apply - Extends TransformationOptions + * options.playsinline - HTML Video Tag's native playsinline - passed to video element. + * options.poster - HTML Video Tag's native poster - passed to video element. + * options.loop - HTML Video Tag's native loop - passed to video element. + * options?.externalLibraries = { [key: string]: string} - map of external libraries to be loaded + * @return {Promise} + */ + }, { + key: "injectTransparentVideoElement", + value: function injectTransparentVideoElement(htmlElContainer, publicId) { + var _this3 = this; + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + return new Promise(function (resolve, reject) { + if (!htmlElContainer) { + reject({ + status: 'error', + message: 'Expecting htmlElContainer to be HTMLElement' + }); + } + transparentVideo_enforceOptionsForTransparentVideo(options); + var videoURL = _this3.video_url(publicId, options); + transparentVideo_checkSupportForTransparency().then(function (isNativelyTransparent) { + var mountPromise; + if (isNativelyTransparent) { + mountPromise = transparentVideo_mountCloudinaryVideoTag(htmlElContainer, _this3, publicId, options); + resolve(htmlElContainer); + } else { + mountPromise = transparentVideo_mountSeeThruCanvasTag(htmlElContainer, videoURL, options); + } + mountPromise.then(function () { + resolve(htmlElContainer); + })["catch"](function (_ref) { + var status = _ref.status, + message = _ref.message; + reject({ + status: status, + message: message + }); + }); + + // catch for checkSupportForTransparency() + })["catch"](function (_ref2) { + var status = _ref2.status, + message = _ref2.message; + reject({ + status: status, + message: message + }); + }); + }); + } + }], [{ + key: "new", + value: function _new(options) { + return new this(options); + } + }]); +}(); +assign_default()(cloudinary_Cloudinary, constants_namespaceObject); +/* harmony default export */ var cloudinary = (cloudinary_Cloudinary); +// CONCATENATED MODULE: ./src/namespace/cloudinary-core-shrinkwrap.js +/** + * Creates the namespace for Cloudinary + */ + + + + + + + + + + + + + + + + + +/* harmony default export */ var cloudinary_core_shrinkwrap = __webpack_exports__["default"] = ({ + ClientHintsMetaTag: clienthintsmetatag, + Cloudinary: cloudinary, + Condition: condition, + Configuration: src_configuration, + Expression: expression, + crc32: src_crc32, + FetchLayer: fetchlayer, + HtmlTag: htmltag, + ImageTag: imagetag, + Layer: layer_layer, + PictureTag: picturetag, + SubtitlesLayer: subtitleslayer, + TextLayer: textlayer, + Transformation: src_transformation, + utf8_encode: src_utf8_encode, + Util: lodash_namespaceObject, + VideoTag: videotag +}); + + +/***/ }) + +/******/ }); +}); +//# sourceMappingURL=cloudinary-core-shrinkwrap.js.map \ No newline at end of file diff --git a/node_modules/cloudinary-core/cloudinary-core-shrinkwrap.js.map b/node_modules/cloudinary-core/cloudinary-core-shrinkwrap.js.map new file mode 100644 index 0000000..5554698 --- /dev/null +++ b/node_modules/cloudinary-core/cloudinary-core-shrinkwrap.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://cloudinary/webpack/universalModuleDefinition","webpack://cloudinary/webpack/bootstrap","webpack://cloudinary/./node_modules/lodash/_DataView.js","webpack://cloudinary/./node_modules/lodash/_Hash.js","webpack://cloudinary/./node_modules/lodash/_ListCache.js","webpack://cloudinary/./node_modules/lodash/_Map.js","webpack://cloudinary/./node_modules/lodash/_MapCache.js","webpack://cloudinary/./node_modules/lodash/_Promise.js","webpack://cloudinary/./node_modules/lodash/_Set.js","webpack://cloudinary/./node_modules/lodash/_SetCache.js","webpack://cloudinary/./node_modules/lodash/_Stack.js","webpack://cloudinary/./node_modules/lodash/_Symbol.js","webpack://cloudinary/./node_modules/lodash/_Uint8Array.js","webpack://cloudinary/./node_modules/lodash/_WeakMap.js","webpack://cloudinary/./node_modules/lodash/_apply.js","webpack://cloudinary/./node_modules/lodash/_arrayEach.js","webpack://cloudinary/./node_modules/lodash/_arrayFilter.js","webpack://cloudinary/./node_modules/lodash/_arrayIncludes.js","webpack://cloudinary/./node_modules/lodash/_arrayIncludesWith.js","webpack://cloudinary/./node_modules/lodash/_arrayLikeKeys.js","webpack://cloudinary/./node_modules/lodash/_arrayMap.js","webpack://cloudinary/./node_modules/lodash/_arrayPush.js","webpack://cloudinary/./node_modules/lodash/_asciiToArray.js","webpack://cloudinary/./node_modules/lodash/_assignMergeValue.js","webpack://cloudinary/./node_modules/lodash/_assignValue.js","webpack://cloudinary/./node_modules/lodash/_assocIndexOf.js","webpack://cloudinary/./node_modules/lodash/_baseAssign.js","webpack://cloudinary/./node_modules/lodash/_baseAssignIn.js","webpack://cloudinary/./node_modules/lodash/_baseAssignValue.js","webpack://cloudinary/./node_modules/lodash/_baseClone.js","webpack://cloudinary/./node_modules/lodash/_baseCreate.js","webpack://cloudinary/./node_modules/lodash/_baseDifference.js","webpack://cloudinary/./node_modules/lodash/_baseFindIndex.js","webpack://cloudinary/./node_modules/lodash/_baseFlatten.js","webpack://cloudinary/./node_modules/lodash/_baseFor.js","webpack://cloudinary/./node_modules/lodash/_baseFunctions.js","webpack://cloudinary/./node_modules/lodash/_baseGetAllKeys.js","webpack://cloudinary/./node_modules/lodash/_baseGetTag.js","webpack://cloudinary/./node_modules/lodash/_baseIndexOf.js","webpack://cloudinary/./node_modules/lodash/_baseIsArguments.js","webpack://cloudinary/./node_modules/lodash/_baseIsMap.js","webpack://cloudinary/./node_modules/lodash/_baseIsNaN.js","webpack://cloudinary/./node_modules/lodash/_baseIsNative.js","webpack://cloudinary/./node_modules/lodash/_baseIsSet.js","webpack://cloudinary/./node_modules/lodash/_baseIsTypedArray.js","webpack://cloudinary/./node_modules/lodash/_baseKeys.js","webpack://cloudinary/./node_modules/lodash/_baseKeysIn.js","webpack://cloudinary/./node_modules/lodash/_baseMerge.js","webpack://cloudinary/./node_modules/lodash/_baseMergeDeep.js","webpack://cloudinary/./node_modules/lodash/_baseRest.js","webpack://cloudinary/./node_modules/lodash/_baseSetToString.js","webpack://cloudinary/./node_modules/lodash/_baseSlice.js","webpack://cloudinary/./node_modules/lodash/_baseTimes.js","webpack://cloudinary/./node_modules/lodash/_baseToString.js","webpack://cloudinary/./node_modules/lodash/_baseTrim.js","webpack://cloudinary/./node_modules/lodash/_baseUnary.js","webpack://cloudinary/./node_modules/lodash/_baseValues.js","webpack://cloudinary/./node_modules/lodash/_cacheHas.js","webpack://cloudinary/./node_modules/lodash/_castSlice.js","webpack://cloudinary/./node_modules/lodash/_charsEndIndex.js","webpack://cloudinary/./node_modules/lodash/_charsStartIndex.js","webpack://cloudinary/./node_modules/lodash/_cloneArrayBuffer.js","webpack://cloudinary/./node_modules/lodash/_cloneBuffer.js","webpack://cloudinary/./node_modules/lodash/_cloneDataView.js","webpack://cloudinary/./node_modules/lodash/_cloneRegExp.js","webpack://cloudinary/./node_modules/lodash/_cloneSymbol.js","webpack://cloudinary/./node_modules/lodash/_cloneTypedArray.js","webpack://cloudinary/./node_modules/lodash/_copyArray.js","webpack://cloudinary/./node_modules/lodash/_copyObject.js","webpack://cloudinary/./node_modules/lodash/_copySymbols.js","webpack://cloudinary/./node_modules/lodash/_copySymbolsIn.js","webpack://cloudinary/./node_modules/lodash/_coreJsData.js","webpack://cloudinary/./node_modules/lodash/_createAssigner.js","webpack://cloudinary/./node_modules/lodash/_createBaseFor.js","webpack://cloudinary/./node_modules/lodash/_defineProperty.js","webpack://cloudinary/./node_modules/lodash/_freeGlobal.js","webpack://cloudinary/./node_modules/lodash/_getAllKeys.js","webpack://cloudinary/./node_modules/lodash/_getAllKeysIn.js","webpack://cloudinary/./node_modules/lodash/_getMapData.js","webpack://cloudinary/./node_modules/lodash/_getNative.js","webpack://cloudinary/./node_modules/lodash/_getPrototype.js","webpack://cloudinary/./node_modules/lodash/_getRawTag.js","webpack://cloudinary/./node_modules/lodash/_getSymbols.js","webpack://cloudinary/./node_modules/lodash/_getSymbolsIn.js","webpack://cloudinary/./node_modules/lodash/_getTag.js","webpack://cloudinary/./node_modules/lodash/_getValue.js","webpack://cloudinary/./node_modules/lodash/_hasUnicode.js","webpack://cloudinary/./node_modules/lodash/_hashClear.js","webpack://cloudinary/./node_modules/lodash/_hashDelete.js","webpack://cloudinary/./node_modules/lodash/_hashGet.js","webpack://cloudinary/./node_modules/lodash/_hashHas.js","webpack://cloudinary/./node_modules/lodash/_hashSet.js","webpack://cloudinary/./node_modules/lodash/_initCloneArray.js","webpack://cloudinary/./node_modules/lodash/_initCloneByTag.js","webpack://cloudinary/./node_modules/lodash/_initCloneObject.js","webpack://cloudinary/./node_modules/lodash/_isFlattenable.js","webpack://cloudinary/./node_modules/lodash/_isIndex.js","webpack://cloudinary/./node_modules/lodash/_isIterateeCall.js","webpack://cloudinary/./node_modules/lodash/_isKeyable.js","webpack://cloudinary/./node_modules/lodash/_isMasked.js","webpack://cloudinary/./node_modules/lodash/_isPrototype.js","webpack://cloudinary/./node_modules/lodash/_listCacheClear.js","webpack://cloudinary/./node_modules/lodash/_listCacheDelete.js","webpack://cloudinary/./node_modules/lodash/_listCacheGet.js","webpack://cloudinary/./node_modules/lodash/_listCacheHas.js","webpack://cloudinary/./node_modules/lodash/_listCacheSet.js","webpack://cloudinary/./node_modules/lodash/_mapCacheClear.js","webpack://cloudinary/./node_modules/lodash/_mapCacheDelete.js","webpack://cloudinary/./node_modules/lodash/_mapCacheGet.js","webpack://cloudinary/./node_modules/lodash/_mapCacheHas.js","webpack://cloudinary/./node_modules/lodash/_mapCacheSet.js","webpack://cloudinary/./node_modules/lodash/_nativeCreate.js","webpack://cloudinary/./node_modules/lodash/_nativeKeys.js","webpack://cloudinary/./node_modules/lodash/_nativeKeysIn.js","webpack://cloudinary/./node_modules/lodash/_nodeUtil.js","webpack://cloudinary/./node_modules/lodash/_objectToString.js","webpack://cloudinary/./node_modules/lodash/_overArg.js","webpack://cloudinary/./node_modules/lodash/_overRest.js","webpack://cloudinary/./node_modules/lodash/_root.js","webpack://cloudinary/./node_modules/lodash/_safeGet.js","webpack://cloudinary/./node_modules/lodash/_setCacheAdd.js","webpack://cloudinary/./node_modules/lodash/_setCacheHas.js","webpack://cloudinary/./node_modules/lodash/_setToString.js","webpack://cloudinary/./node_modules/lodash/_shortOut.js","webpack://cloudinary/./node_modules/lodash/_stackClear.js","webpack://cloudinary/./node_modules/lodash/_stackDelete.js","webpack://cloudinary/./node_modules/lodash/_stackGet.js","webpack://cloudinary/./node_modules/lodash/_stackHas.js","webpack://cloudinary/./node_modules/lodash/_stackSet.js","webpack://cloudinary/./node_modules/lodash/_strictIndexOf.js","webpack://cloudinary/./node_modules/lodash/_stringToArray.js","webpack://cloudinary/./node_modules/lodash/_toSource.js","webpack://cloudinary/./node_modules/lodash/_trimmedEndIndex.js","webpack://cloudinary/./node_modules/lodash/_unicodeToArray.js","webpack://cloudinary/./node_modules/lodash/assign.js","webpack://cloudinary/./node_modules/lodash/cloneDeep.js","webpack://cloudinary/./node_modules/lodash/compact.js","webpack://cloudinary/./node_modules/lodash/constant.js","webpack://cloudinary/./node_modules/lodash/difference.js","webpack://cloudinary/./node_modules/lodash/eq.js","webpack://cloudinary/./node_modules/lodash/functions.js","webpack://cloudinary/./node_modules/lodash/identity.js","webpack://cloudinary/./node_modules/lodash/includes.js","webpack://cloudinary/./node_modules/lodash/isArguments.js","webpack://cloudinary/./node_modules/lodash/isArray.js","webpack://cloudinary/./node_modules/lodash/isArrayLike.js","webpack://cloudinary/./node_modules/lodash/isArrayLikeObject.js","webpack://cloudinary/./node_modules/lodash/isBuffer.js","webpack://cloudinary/./node_modules/lodash/isElement.js","webpack://cloudinary/./node_modules/lodash/isFunction.js","webpack://cloudinary/./node_modules/lodash/isLength.js","webpack://cloudinary/./node_modules/lodash/isMap.js","webpack://cloudinary/./node_modules/lodash/isObject.js","webpack://cloudinary/./node_modules/lodash/isObjectLike.js","webpack://cloudinary/./node_modules/lodash/isPlainObject.js","webpack://cloudinary/./node_modules/lodash/isSet.js","webpack://cloudinary/./node_modules/lodash/isString.js","webpack://cloudinary/./node_modules/lodash/isSymbol.js","webpack://cloudinary/./node_modules/lodash/isTypedArray.js","webpack://cloudinary/./node_modules/lodash/keys.js","webpack://cloudinary/./node_modules/lodash/keysIn.js","webpack://cloudinary/./node_modules/lodash/merge.js","webpack://cloudinary/./node_modules/lodash/stubArray.js","webpack://cloudinary/./node_modules/lodash/stubFalse.js","webpack://cloudinary/./node_modules/lodash/toFinite.js","webpack://cloudinary/./node_modules/lodash/toInteger.js","webpack://cloudinary/./node_modules/lodash/toNumber.js","webpack://cloudinary/./node_modules/lodash/toPlainObject.js","webpack://cloudinary/./node_modules/lodash/toString.js","webpack://cloudinary/./node_modules/lodash/trim.js","webpack://cloudinary/./node_modules/lodash/values.js","webpack://cloudinary/(webpack)/buildin/global.js","webpack://cloudinary/(webpack)/buildin/module.js","webpack://cloudinary/./src/utf8_encode.js","webpack://cloudinary/./src/crc32.js","webpack://cloudinary/./src/sdkAnalytics/stringPad.js","webpack://cloudinary/./src/sdkAnalytics/base64Map.js","webpack://cloudinary/./src/sdkAnalytics/reverseVersion.js","webpack://cloudinary/./src/sdkAnalytics/encodeVersion.js","webpack://cloudinary/./src/sdkAnalytics/getSDKAnalyticsSignature.js","webpack://cloudinary/./src/sdkAnalytics/getAnalyticsOptions.js","webpack://cloudinary/./src/util/lazyLoad.js","webpack://cloudinary/./src/constants.js","webpack://cloudinary/./src/util/baseutil.js","webpack://cloudinary/./src/util/browser.js","webpack://cloudinary/./src/util/lodash.js","webpack://cloudinary/./src/expression.js","webpack://cloudinary/./src/condition.js","webpack://cloudinary/./src/configuration.js","webpack://cloudinary/./src/layer/layer.js","webpack://cloudinary/./src/layer/textlayer.js","webpack://cloudinary/./src/layer/subtitleslayer.js","webpack://cloudinary/./src/layer/fetchlayer.js","webpack://cloudinary/./src/parameters.js","webpack://cloudinary/./src/transformation.js","webpack://cloudinary/./src/tags/htmltag.js","webpack://cloudinary/./src/url.js","webpack://cloudinary/./src/util/generateBreakpoints.js","webpack://cloudinary/./src/util/srcsetUtils.js","webpack://cloudinary/./src/tags/imagetag.js","webpack://cloudinary/./src/tags/sourcetag.js","webpack://cloudinary/./src/tags/picturetag.js","webpack://cloudinary/./src/tags/videotag.js","webpack://cloudinary/./src/tags/clienthintsmetatag.js","webpack://cloudinary/./src/util/parse/normalizeToArray.js","webpack://cloudinary/./src/util/features/transparentVideo/mountCloudinaryVideoTag.js","webpack://cloudinary/./src/util/transformations/addFlag.js","webpack://cloudinary/./src/util/features/transparentVideo/enforceOptionsForTransparentVideo.js","webpack://cloudinary/./src/util/xhr/loadScript.js","webpack://cloudinary/./src/util/xhr/getBlobFromURL.js","webpack://cloudinary/./src/util/features/transparentVideo/createHiddenVideoTag.js","webpack://cloudinary/./src/util/features/transparentVideo/instantiateSeeThru.js","webpack://cloudinary/./src/util/features/transparentVideo/mountSeeThruCanvasTag.js","webpack://cloudinary/./src/util/features/transparentVideo/checkSupportForTransparency.js","webpack://cloudinary/./src/cloudinary.js","webpack://cloudinary/./src/namespace/cloudinary-core-shrinkwrap.js"],"names":["utf8_encode","argString","c1","enc","end","n","start","string","stringl","utftext","length","charCodeAt","String","fromCharCode","slice","crc32","str","crc","i","iTop","table","x","y","substr","stringPad","value","targetLength","padString","repeatStringNumTimes","times","repeatedString","chars","num","map","_toConsumableArray","forEach","char","key","toString","reverseVersion","semVer","split","Error","reverse","segment","join","encodeVersion","strResult","parts","paddedStringLength","paddedReversedSemver","parseInt","paddedBinary","match","bitString","base64Map","getSDKAnalyticsSignature","analyticsOptions","arguments","undefined","twoPartVersion","removePatchFromSemver","techVersion","encodedSDKVersion","sdkSemver","encodedTechVersion","featureCode","feature","SDKCode","sdkCode","algoVersion","concat","e","semVerStr","getAnalyticsOptions","options","urlAnalytics","accessibility","loading","responsive","placeholder","isIntersectionObserverSupported","window","_typeof","IntersectionObserver","isNativeLazyLoadSupported","HTMLImageElement","prototype","detectIntersection","el","onIntersect","observer","entries","entry","isIntersecting","unobserve","target","threshold","observe","VERSION","CF_SHARED_CDN","OLD_AKAMAI_SHARED_CDN","AKAMAI_SHARED_CDN","SHARED_CDN","DEFAULT_TIMEOUT_MS","DEFAULT_POSTER_OPTIONS","format","resource_type","DEFAULT_VIDEO_SOURCE_TYPES","SEO_TYPES","DEFAULT_IMAGE_PARAMS","transformation","type","DEFAULT_VIDEO_PARAMS","fallback_content","source_transformation","source_types","DEFAULT_VIDEO_SOURCES","codecs","transformations","video_codec","DEFAULT_EXTERNAL_LIBRARIES","seeThru","PLACEHOLDER_IMAGE_MODES","effect","quality","fetch_format","width","aspect_ratio","crop","background","height","gravity","variables","ACCESSIBILITY_MODES","darkmode","brightmode","monochrome","colorblind","URL_KEYS","omit","obj","keys","srcKeys","Object","filter","contains","filtered","allStrings","list","every","isString","without","array","item","v","isNumberLike","isNaN","parseFloat","smartEscape","unsafe","replace","c","toUpperCase","defaults","destination","_len","sources","Array","_key","reduce","dest","source","objectProto","objToString","isObject","funcTag","isFunction","call","reWords","lower","upper","RegExp","camelCase","words","word","charAt","toLocaleUpperCase","toLocaleLowerCase","snakeCase","convertKeys","converter","result","isEmpty","withCamelCaseKeys","withSnakeCaseKeys","base64Encode","btoa","Buffer","input","from","base64EncodeURL","url","decodeURI","encodeURI","extractUrlParams","patchFetchFormat","optionConsume","option_name","default_value","size","hasOwnProperty","getUserAgent","navigator","userAgent","isAndroid","test","isEdge","isChrome","isSafari","nodeContains","getData","element","name","getAttribute","getAttr","data","jQuery","fn","isElement","setData","setAttribute","setAttr","attr","removeAttribute","setAttributes","attributes","results","push","hasClass","className","addClass","trim","getStyles","elem","ownerDocument","defaultView","opener","getComputedStyle","cssExpand","a","b","adown","bup","nodeType","documentElement","parentNode","domStyle","style","curCSS","computed","maxWidth","minWidth","ret","rmargin","getPropertyValue","rnumnonpx","cssValue","convert","styles","val","augmentWidthOrHeight","extra","isBorderBox","len","side","sides","pnum","getWidthOrHeight","valueIsBorderBox","offsetWidth","offsetHeight","Expression","expressionStr","_classCallCheck","expressions","normalize","_createClass","serialize","getParent","parent","setParent","predicate","operator","OPERATORS","and","or","then","aspectRatio","pageCount","faceCount","_new","expression","operators","operatorsPattern","operatorsReplaceRE","predefinedVarsPattern","PREDEFINED_VARS","userVariablePattern","variablesReplaceRE","variable","initialWidth","initialHeight","initialAspectRatio","currentPage","tags","pageX","pageY","BOUNDRY","Condition","_Expression","conditionStr","_callSuper","_inherits","duration","initialDuration","Configuration","configuration","cloneDeep","DEFAULT_CONFIGURATION_PARAMS","init","fromEnvironment","fromDocument","set","get","merge","config","assign","meta_elements","document","querySelectorAll","_this","cloudinary_url","query","uri","uriRegex","process","env","CLOUDINARY_URL","exec","_value$split","_value$split2","_slicedToArray","k","new_config","new_value","isPlainObject","toOptions","responsive_class","responsive_use_breakpoints","round_dpr","secure","location","protocol","CONFIG_PARAMS","Layer","ref","resourceType","publicId","getPublicId","getFullPublicId","components","compact","clone","constructor","TextLayer","_Layer","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","fontHinting","fontAntialiasing","text","textStyle","hasPublicId","hasStyle","re","res","textSource","textStyleIdentifier","index","unshift","SubtitlesLayer","_TextLayer","FetchLayer","Param","shortName","identity","origValue","valid","isArray","norm_color","build_array","arg","process_video_params","param","video","codec","profile","level","b_frames","ArrayParam","_Param","sep","arrayValue","flat","t","_this2","_get","_getPrototypeOf","TransformationParam","_Param2","_this3","_this4","joined","Transformation","origValue1","number_pattern","offset_any_pattern","RangeParam","_Param3","norm_range_value","offset","modifier","RawParam","_Param4","LayerParam","_Param5","layerOptions","layer","ExpressionParam","_Param6","assignNotNull","TransformationBase","trans","withChain","opt","otherOptions","chained","tr","object","fromOptions","abbr","defaultValue","rawParam","lastArgCallback","rangeParam","arrayParam","transformationParam","layerParam","getValue","remove","temp","VAR_NAME_RE","sort","toPlainObject","hash","chain","names","getOwnPropertyNames","resetTransformations","fromTransformation","other","camelKey","_len2","values","_key2","methods","apply","hasLayer","ifParam","j","paramList","ref1","ref2","ref3","ref4","resultArray","transformationList","transformationString","vars","processVar","difference","len1","param_separator","trans_separator","toHtmlAttributes","attrName","snakeCaseKey","PARAM_NAMES","toHtml","listNames","isValidParamName","indexOf","args","callback","varArray","_varArray$j","processCustomFunction","_ref","function_type","_TransformationBase","angle","audioCodec","audioFrequency","bitRate","border","color","colorSpace","customFunction","customPreFunction","defaultImage","delay","density","dpr","_else","endIf","endOffset","fallbackContent","fetchFormat","flags","fps","htmlHeight","htmlWidth","_if","ifVal","trIf","trRest","keyframeInterval","ocr","end_o","start_o","_ref2","_ref3","startOffset","opacity","overlay","page","poster","prefix","radius","rawTransformation","sourceTypes","sourceTransformation","streamingProfile","underlay","videoCodec","videoSampling","zoom","HtmlTag","htmlAttrs","attrs","pairs","escapeQuotes","toAttribute","getOptions","getOption","htmlAttributes","removeAttr","content","openTag","tag","closeTag","toDOM","createElement","isResponsive","responsiveClass","dataSrc","makeUrl","host","pathname","isUrl","cdnSubdomainNumber","handleSignature","signature","isFormatted","handlePrefix","cloud_name","cdnPart","subdomain","path","private_cdn","cdn_subdomain","secure_cdn_subdomain","secure_distribution","cname","handleResourceType","_ref$resource_type","_ref$type","url_suffix","use_root_path","shorten","encodePublicId","encodeURIComponent","formatPublicId","decodeURIComponent","error","trust_public_id","validate","handleVersion","isForceVersion","force_version","isVersionExist","version","handleTransformation","_objectWithoutProperties","_excluded","placeholderTransformations","blur","preparePublicId","urlString","prepareOptions","resultUrl","sdkAnalyticsSignature","appender","auth_token","generateBreakpoints","srcset","breakpoints","_map","min_width","max_width","max_images","Number","_map2","some","stepSize","Math","ceil","max","current","utils","scaledUrl","public_id","configParams","raw_transformation","getOrGenerateBreakpoints","generateSrcsetAttribute","generateSizesAttribute","generateImageResponsiveAttributes","srcsetData","responsiveAttributes","generateSizes","sizes","generateSrcset","srcsetAttr","sizesAttr","generateMediaAttr","mediaQuery","srcsetUrl","ImageTag","_HtmlTag","srcAttribute","srcsetParam","client_hints","SourceTag","media","PictureTag","widthList","VIDEO_TAG_PARAMS","VideoTag","setSourceTransformation","setSourceTypes","setPoster","setFallbackContent","fallback","innerTags","src","createSourceTag","srcType","defaultOptions","hasSourceTags","sourceType","mimeType","videoType","codecsStr","ClientHintsMetaTag","normalizeToArray","elements","mountCloudinaryVideoTag","htmlElContainer","clInstance","Promise","resolve","reject","innerHTML","videoTag","cloudinaryVideoElement","querySelector","addFlagToOptions","flag","enforceOptionsForTransparentVideo","autoplay","muted","controls","max_timeout_ms","externalLibraries","loadScript","scriptURL","isAlreadyLoaded","scriptTag","timerID","setTimeout","status","message","onerror","clearTimeout","onload","head","appendChild","rejectOnTimeout","maxTimeoutMS","getBlobFromURL","urlToLoad","fetchBlob","fetch","loadUrlUsingFetch","loadUrlUsingXhr","blob","payload","blobURL","URL","createObjectURL","response","xhr","XMLHttpRequest","responseType","open","send","createHiddenVideoTag","videoOptions","playsinline","loop","videoURL","visibility","position","revokeObjectURL","instantiateSeeThru","videoElement","customClass","autoPlay","_window","seeThruInstance","create","ready","canvasElement","getCanvas","play","mountSeeThruCanvasTag","err","checkSupportForTransparency","canPlay","canPlayType","applyBreakpoints","closestAbove","defaultBreakpoints","findContainerWidth","updateDpr","steps","resizing","calc_breakpoint","containerWidth","Element","display","roundDpr","device_pixel_ratio","requiredWidth","imageWidth","Cloudinary","devicePixelRatioCache","responsiveConfig","responsiveResizeInitialized","newConfig","newValue","video_url","video_thumbnail_url","constants","transformation_string","image","img","imageTag","cloudinary_update","pictureTag","sourceTag","video_thumbnail","facebook_profile_image","twitter_profile_image","twitter_name_profile_image","gravatar_image","fetch_image","sprite_css","bootstrap","responsiveResize","timeout","responsive_resize","makeResponsive","debounce","reset","run","wait","waitFunc","responsive_debounce","addEventListener","removeEventListener","point","calc_stoppoint","devicePixelRatio","dprString","processImageTags","nodes","images","node","tagName","imgOptions","setUrl","responsive_preserve_height","isLazyLoading","isLazyLoadSupported","setAttributeIfExists","fromAttribute","attributeValue","injectTransparentVideoElement","isNativelyTransparent","mountPromise","Util"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA;;AAEA;;;;;;;;ACNA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,cAAc,mBAAO,CAAC,mCAAY;AAClC,cAAc,mBAAO,CAAC,mCAAY;AAClC,cAAc,mBAAO,CAAC,mCAAY;;AAElC;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC/BA,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC/BA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA;;AAEA;;;;;;;;ACNA,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC/BA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA;;AAEA;;;;;;;;ACNA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA;;AAEA;;;;;;;;ACNA,eAAe,mBAAO,CAAC,oCAAa;AACpC,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;AC1BA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,eAAe,mBAAO,CAAC,oCAAa;AACpC,eAAe,mBAAO,CAAC,oCAAa;AACpC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC1BA,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA;;AAEA;;;;;;;;ACLA,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA;;AAEA;;;;;;;;ACLA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA;;AAEA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,EAAE;AACb,WAAW,MAAM;AACjB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxBA,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACrBA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,cAAc,mBAAO,CAAC,kCAAW;AACjC,eAAe,mBAAO,CAAC,mCAAY;AACnC,cAAc,mBAAO,CAAC,mCAAY;AAClC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;;;;;;;;ACXA,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,SAAS,mBAAO,CAAC,6BAAM;;AAEvB;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,SAAS,mBAAO,CAAC,6BAAM;;AAEvB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC3BA,SAAS,mBAAO,CAAC,6BAAM;;AAEvB;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpBA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,WAAW,mBAAO,CAAC,+BAAQ;;AAE3B;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,aAAa,mBAAO,CAAC,iCAAU;;AAE/B;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA,qBAAqB,mBAAO,CAAC,0CAAmB;;AAEhD;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;;AAEA;;;;;;;;ACxBA,YAAY,mBAAO,CAAC,iCAAU;AAC9B,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,aAAa,mBAAO,CAAC,kCAAW;AAChC,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,cAAc,mBAAO,CAAC,kCAAW;AACjC,eAAe,mBAAO,CAAC,mCAAY;AACnC,YAAY,mBAAO,CAAC,gCAAS;AAC7B,eAAe,mBAAO,CAAC,mCAAY;AACnC,YAAY,mBAAO,CAAC,gCAAS;AAC7B,WAAW,mBAAO,CAAC,+BAAQ;AAC3B,aAAa,mBAAO,CAAC,iCAAU;;AAE/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,QAAQ;AACnB;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;ACrKA,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;AC7BA,eAAe,mBAAO,CAAC,oCAAa;AACpC,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,wBAAwB,mBAAO,CAAC,6CAAsB;AACtD,eAAe,mBAAO,CAAC,oCAAa;AACpC,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACvBA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,oBAAoB,mBAAO,CAAC,yCAAkB;;AAE9C;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACrCA,oBAAoB,mBAAO,CAAC,yCAAkB;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;;AAEA;;;;;;;;ACfA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,iBAAiB,mBAAO,CAAC,qCAAc;;AAEvC;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;AClBA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,cAAc,mBAAO,CAAC,kCAAW;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA,aAAa,mBAAO,CAAC,kCAAW;AAChC,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,qBAAqB,mBAAO,CAAC,0CAAmB;;AAEhD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC3BA,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,oBAAoB,mBAAO,CAAC,yCAAkB;;AAE9C;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,aAAa,mBAAO,CAAC,kCAAW;AAChC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACXA,iBAAiB,mBAAO,CAAC,qCAAc;AACvC,eAAe,mBAAO,CAAC,oCAAa;AACpC,eAAe,mBAAO,CAAC,mCAAY;AACnC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;AACA;AACA;AACA,oCAAoC;;AAEpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9CA,aAAa,mBAAO,CAAC,kCAAW;AAChC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,eAAe,mBAAO,CAAC,mCAAY;AACnC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC3DA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7BA,eAAe,mBAAO,CAAC,mCAAY;AACnC,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChCA,YAAY,mBAAO,CAAC,iCAAU;AAC9B,uBAAuB,mBAAO,CAAC,4CAAqB;AACpD,cAAc,mBAAO,CAAC,mCAAY;AAClC,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,eAAe,mBAAO,CAAC,mCAAY;AACnC,aAAa,mBAAO,CAAC,iCAAU;AAC/B,cAAc,mBAAO,CAAC,mCAAY;;AAElC;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;ACzCA,uBAAuB,mBAAO,CAAC,4CAAqB;AACpD,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,cAAc,mBAAO,CAAC,kCAAW;AACjC,wBAAwB,mBAAO,CAAC,4CAAqB;AACrD,eAAe,mBAAO,CAAC,mCAAY;AACnC,iBAAiB,mBAAO,CAAC,qCAAc;AACvC,eAAe,mBAAO,CAAC,mCAAY;AACnC,oBAAoB,mBAAO,CAAC,wCAAiB;AAC7C,mBAAmB,mBAAO,CAAC,uCAAgB;AAC3C,cAAc,mBAAO,CAAC,mCAAY;AAClC,oBAAoB,mBAAO,CAAC,wCAAiB;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7FA,eAAe,mBAAO,CAAC,mCAAY;AACnC,eAAe,mBAAO,CAAC,oCAAa;AACpC,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA,eAAe,mBAAO,CAAC,mCAAY;AACnC,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA,aAAa,mBAAO,CAAC,kCAAW;AAChC,eAAe,mBAAO,CAAC,oCAAa;AACpC,cAAc,mBAAO,CAAC,kCAAW;AACjC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA,sBAAsB,mBAAO,CAAC,2CAAoB;;AAElD;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClBA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;AClBA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACZA,gBAAgB,mBAAO,CAAC,qCAAc;;AAEtC;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;AClBA,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;ACnBA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA,yDAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA,kBAAkB,KAA0B;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;AClCA,uBAAuB,mBAAO,CAAC,4CAAqB;;AAEpD;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA,aAAa,mBAAO,CAAC,kCAAW;;AAEhC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,uBAAuB,mBAAO,CAAC,4CAAqB;;AAEpD;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,sBAAsB,mBAAO,CAAC,2CAAoB;;AAElD;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,OAAO,WAAW;AAC7B,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,wBAAwB;;AAExB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACvCA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO,WAAW;AAC7B,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO,WAAW;AAC7B,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA;;AAEA;;;;;;;;ACLA,eAAe,mBAAO,CAAC,oCAAa;AACpC,qBAAqB,mBAAO,CAAC,0CAAmB;;AAEhD;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;ACpCA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxBA,gBAAgB,mBAAO,CAAC,qCAAc;;AAEtC;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,GAAG;AACH,CAAC;;AAED;;;;;;;;ACVA;AACA;;AAEA;;;;;;;;;ACHA,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,WAAW,mBAAO,CAAC,+BAAQ;;AAE3B;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,aAAa,mBAAO,CAAC,iCAAU;;AAE/B;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA,gBAAgB,mBAAO,CAAC,qCAAc;;AAEtC;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA,cAAc,mBAAO,CAAC,mCAAY;;AAElC;AACA;;AAEA;;;;;;;;ACLA,aAAa,mBAAO,CAAC,kCAAW;;AAEhC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7CA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,gBAAgB,mBAAO,CAAC,oCAAa;;AAErC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;AC7BA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,gBAAgB,mBAAO,CAAC,oCAAa;;AAErC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxBA,eAAe,mBAAO,CAAC,oCAAa;AACpC,UAAU,mBAAO,CAAC,+BAAQ;AAC1B,cAAc,mBAAO,CAAC,mCAAY;AAClC,UAAU,mBAAO,CAAC,+BAAQ;AAC1B,cAAc,mBAAO,CAAC,mCAAY;AAClC,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACzDA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACzBA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7BA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACtBA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACtBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACzBA,uBAAuB,mBAAO,CAAC,4CAAqB;AACpD,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,sBAAsB,mBAAO,CAAC,2CAAoB;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5EA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,aAAa,mBAAO,CAAC,kCAAW;AAChC,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,cAAc,mBAAO,CAAC,kCAAW;;AAEjC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxBA,SAAS,mBAAO,CAAC,6BAAM;AACvB,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,cAAc,mBAAO,CAAC,mCAAY;AAClC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,EAAE;AACb,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7BA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACdA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACZA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClCA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;AClBA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;;;;;;;ACzBA,WAAW,mBAAO,CAAC,gCAAS;AAC5B,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,UAAU,mBAAO,CAAC,+BAAQ;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpBA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;ACrBA,gBAAgB,mBAAO,CAAC,qCAAc;;AAEtC;AACA;;AAEA;;;;;;;;ACLA,cAAc,mBAAO,CAAC,mCAAY;;AAElC;AACA;;AAEA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA,+DAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA,kBAAkB,KAA0B;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH,CAAC;;AAED;;;;;;;;;AC7BA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACdA,YAAY,mBAAO,CAAC,iCAAU;;AAE9B;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnCA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;;;;;;;;ACRA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;ACpBA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;;AAEA;;;;;;;;ACbA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA,gBAAgB,mBAAO,CAAC,qCAAc;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,UAAU,mBAAO,CAAC,+BAAQ;AAC1B,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACtBA,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,qBAAqB,mBAAO,CAAC,0CAAmB;;AAEhD;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;;;;;;;ACzBA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,EAAE;AACjD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;;;;;;;;ACvCA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,WAAW,mBAAO,CAAC,+BAAQ;;AAE3B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;ACzDA,gBAAgB,mBAAO,CAAC,qCAAc;;AAEtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA;AACA,mBAAmB,SAAS,GAAG,SAAS;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA,WAAW,SAAS,GAAG,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACzBA,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,eAAe,mBAAO,CAAC,oCAAa;AACpC,wBAAwB,mBAAO,CAAC,4CAAqB;;AAErD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,iBAAiB;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,WAAW,mBAAO,CAAC,+BAAQ;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpBA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,eAAe,mBAAO,CAAC,mCAAY;AACnC,gBAAgB,mBAAO,CAAC,oCAAa;AACrC,aAAa,mBAAO,CAAC,iCAAU;;AAE/B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,oBAAoB;AAC/B,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpDA,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA,6BAA6B,kBAAkB,EAAE;AACjD;AACA;AACA;AACA;AACA;AACA,8CAA8C,kBAAkB,EAAE;AAClE;AACA;AACA;;AAEA;;;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACzBA,iBAAiB,mBAAO,CAAC,qCAAc;AACvC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChCA,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChCA,yDAAW,mBAAO,CAAC,gCAAS;AAC5B,gBAAgB,mBAAO,CAAC,oCAAa;;AAErC;AACA,kBAAkB,KAA0B;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;ACrCA,mBAAmB,mBAAO,CAAC,uCAAgB;AAC3C,oBAAoB,mBAAO,CAAC,wCAAiB;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxBA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClCA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5BA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7DA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC1BA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,cAAc,mBAAO,CAAC,kCAAW;AACjC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7BA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5BA,uBAAuB,mBAAO,CAAC,4CAAqB;AACpD,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC1BA,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,eAAe,mBAAO,CAAC,oCAAa;AACpC,kBAAkB,mBAAO,CAAC,sCAAe;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,kBAAkB,mBAAO,CAAC,sCAAe;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC/BA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,qBAAqB,mBAAO,CAAC,0CAAmB;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB,aAAa,OAAO;AACpB;AACA;AACA;AACA,YAAY,SAAS,GAAG,SAAS;AACjC;AACA;AACA;AACA,YAAY,SAAS,GAAG,SAAS;AACjC;AACA;AACA;AACA,UAAU,QAAQ,iBAAiB,GAAG,iBAAiB;AACvD;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACzCA,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;ACnCA,eAAe,mBAAO,CAAC,oCAAa;AACpC,eAAe,mBAAO,CAAC,mCAAY;AACnC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC/DA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,aAAa,mBAAO,CAAC,iCAAU;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,UAAU;AACV;AACA,aAAa,SAAS;AACtB,UAAU;AACV;AACA;AACA;AACA;;AAEA;;;;;;;;AC/BA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC3BA,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,eAAe,mBAAO,CAAC,oCAAa;AACpC,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;AC9CA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,WAAW,mBAAO,CAAC,+BAAQ;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjCA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA,IAAIA,WAAW;AAEAA,+DAAW,GAAG,SAAAA,YAASC,SAAS,EAAE;EAC/C,IAAIC,EAAE,EAAEC,GAAG,EAAEC,GAAG,EAAEC,CAAC,EAAEC,KAAK,EAAEC,MAAM,EAAEC,OAAO,EAAEC,OAAO;EACpD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,IAAIR,SAAS,KAAK,IAAI,IAAI,OAAOA,SAAS,KAAK,WAAW,EAAE;IAC1D,OAAO,EAAE;EACX;EACAM,MAAM,GAAGN,SAAS,GAAG,EAAE;EACvB;EACAQ,OAAO,GAAG,EAAE;EACZH,KAAK,GAAG,KAAK,CAAC;EACdF,GAAG,GAAG,KAAK,CAAC;EACZI,OAAO,GAAG,CAAC;EACXF,KAAK,GAAGF,GAAG,GAAG,CAAC;EACfI,OAAO,GAAGD,MAAM,CAACG,MAAM;EACvBL,CAAC,GAAG,CAAC;EACL,OAAOA,CAAC,GAAGG,OAAO,EAAE;IAClBN,EAAE,GAAGK,MAAM,CAACI,UAAU,CAACN,CAAC,CAAC;IACzBF,GAAG,GAAG,IAAI;IACV,IAAID,EAAE,GAAG,GAAG,EAAE;MACZE,GAAG,EAAE;IACP,CAAC,MAAM,IAAIF,EAAE,GAAG,GAAG,IAAIA,EAAE,GAAG,IAAI,EAAE;MAChCC,GAAG,GAAGS,MAAM,CAACC,YAAY,CAACX,EAAE,IAAI,CAAC,GAAG,GAAG,EAAEA,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;IACzD,CAAC,MAAM;MACLC,GAAG,GAAGS,MAAM,CAACC,YAAY,CAACX,EAAE,IAAI,EAAE,GAAG,GAAG,EAAEA,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,EAAEA,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;IAC9E;IACA,IAAIC,GAAG,KAAK,IAAI,EAAE;MAChB,IAAIC,GAAG,GAAGE,KAAK,EAAE;QACfG,OAAO,IAAIF,MAAM,CAACO,KAAK,CAACR,KAAK,EAAEF,GAAG,CAAC;MACrC;MACAK,OAAO,IAAIN,GAAG;MACdG,KAAK,GAAGF,GAAG,GAAGC,CAAC,GAAG,CAAC;IACrB;IACAA,CAAC,EAAE;EACL;EACA,IAAID,GAAG,GAAGE,KAAK,EAAE;IACfG,OAAO,IAAIF,MAAM,CAACO,KAAK,CAACR,KAAK,EAAEE,OAAO,CAAC;EACzC;EACA,OAAOC,OAAO;AAChB,CAAC,E;;ACtDuC;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASM,KAAKA,CAACC,GAAG,EAAE;EAClB,IAAIC,GAAG,EAAEC,CAAC,EAAEC,IAAI,EAAEC,KAAK,EAAEC,CAAC,EAAEC,CAAC;EAC7B;EACA;EACA;EACA;EACA;EACA;EACA;EACAN,GAAG,GAAGhB,eAAW,CAACgB,GAAG,CAAC;EACtBI,KAAK,GAAG,iwEAAiwE;EACzwEH,GAAG,GAAG,CAAC;EACPI,CAAC,GAAG,CAAC;EACLC,CAAC,GAAG,CAAC;EACLL,GAAG,GAAGA,GAAG,GAAG,CAAC,CAAC;EACdC,CAAC,GAAG,CAAC;EACLC,IAAI,GAAGH,GAAG,CAACN,MAAM;EACjB,OAAOQ,CAAC,GAAGC,IAAI,EAAE;IACfG,CAAC,GAAG,CAACL,GAAG,GAAGD,GAAG,CAACL,UAAU,CAACO,CAAC,CAAC,IAAI,IAAI;IACpCG,CAAC,GAAG,IAAI,GAAGD,KAAK,CAACG,MAAM,CAACD,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACjCL,GAAG,GAAGA,GAAG,KAAK,CAAC,GAAGI,CAAC;IACnBH,CAAC,EAAE;EACL;EACAD,GAAG,GAAGA,GAAG,GAAG,CAAC,CAAC;EACd;EACA,IAAIA,GAAG,GAAG,CAAC,EAAE;IACXA,GAAG,IAAI,UAAU;EACnB;EACA,OAAOA,GAAG;AACZ;AAEeF,mDAAK,E;;AC1CL,SAASS,SAASA,CAACC,KAAK,EAAEC,YAAY,EAACC,SAAS,EAAE;EAC/DD,YAAY,GAAGA,YAAY,IAAE,CAAC,CAAC,CAAC;EAChCC,SAAS,GAAGf,MAAM,CAAE,OAAOe,SAAS,KAAK,WAAW,GAAGA,SAAS,GAAG,GAAI,CAAC;EACxE,IAAIF,KAAK,CAACf,MAAM,GAAGgB,YAAY,EAAE;IAC/B,OAAOd,MAAM,CAACa,KAAK,CAAC;EACtB,CAAC,MACI;IACHC,YAAY,GAAGA,YAAY,GAACD,KAAK,CAACf,MAAM;IACxC,IAAIgB,YAAY,GAAGC,SAAS,CAACjB,MAAM,EAAE;MACnCiB,SAAS,IAAIC,oBAAoB,CAACD,SAAS,EAAED,YAAY,GAACC,SAAS,CAACjB,MAAM,CAAC;IAC7E;IACA,OAAOiB,SAAS,CAACb,KAAK,CAAC,CAAC,EAACY,YAAY,CAAC,GAAGd,MAAM,CAACa,KAAK,CAAC;EACxD;AACF;AAEA,SAASG,oBAAoBA,CAACrB,MAAM,EAAEsB,KAAK,EAAE;EAC3C,IAAIC,cAAc,GAAG,EAAE;EACvB,OAAOD,KAAK,GAAG,CAAC,EAAE;IAChBC,cAAc,IAAIvB,MAAM;IACxBsB,KAAK,EAAE;EACT;EACA,OAAOC,cAAc;AACvB,C;;;;;;;;ACtBoC;AACpC,IAAIC,KAAK,GAAG,kEAAkE;AAC9E,IAAIC,aAAG,GAAG,CAAC;AACX,IAAIC,GAAG,GAAG,CAAC,CAAC;AAEZC,kBAAA,CAAIH,KAAK,EAAEI,OAAO,CAAC,UAACC,KAAI,EAAK;EAC3B,IAAIC,GAAG,GAAGL,aAAG,CAACM,QAAQ,CAAC,CAAC,CAAC;EACzBD,GAAG,GAAGb,SAAS,CAACa,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC;EAC5BJ,GAAG,CAACI,GAAG,CAAC,GAAGD,KAAI;EACfJ,aAAG,EAAE;AACP,CAAC,CAAC;;AAGF;AACA;AACA;AACeC,iDAAG,E;;AChBkB;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASM,cAAcA,CAACC,MAAM,EAAE;EAC7C,IAAIA,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC,CAAC/B,MAAM,GAAG,CAAC,EAAE;IAChC,MAAM,IAAIgC,KAAK,CAAC,iDAAiD,CAAC;EACpE;;EAEA;EACA,OAAOF,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC,CAACE,OAAO,CAAC,CAAC,CAACV,GAAG,CAAC,UAACW,OAAO,EAAK;IAClD,OAAOpB,SAAS,CAACoB,OAAO,EAAC,CAAC,EAAE,GAAG,CAAC;EAClC,CAAC,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;AACd,C;;ACnBoC;AACU;AACV;;AAEpC;AACA;AACA;AACA;AACA;AACe,SAASC,aAAaA,CAACN,MAAM,EAAE;EAC5C,IAAIO,SAAS,GAAG,EAAE;;EAElB;EACA,IAAIC,KAAK,GAAGR,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC,CAAC/B,MAAM;EACpC,IAAIuC,kBAAkB,GAAGD,KAAK,GAAG,CAAC,CAAC,CAAC;;EAEpC;EACA;EACA,IAAIE,oBAAoB,GAAGX,cAAc,CAACC,MAAM,CAAC;;EAEjD;EACA,IAAIR,GAAG,GAAGmB,QAAQ,CAACD,oBAAoB,CAACT,KAAK,CAAC,GAAG,CAAC,CAACI,IAAI,CAAC,EAAE,CAAC,CAAC;;EAE5D;EACA;;EAEA,IAAIO,YAAY,GAAGpB,GAAG,CAACM,QAAQ,CAAC,CAAC,CAAC;EAClCc,YAAY,GAAG5B,SAAS,CAAC4B,YAAY,EAAEH,kBAAkB,EAAE,GAAG,CAAC;;EAE/D;EACA;EACA,IAAIG,YAAY,CAAC1C,MAAM,GAAG,CAAC,KAAK,CAAC,EAAE;IACjC,MAAM,wCAAwC;EAChD;;EAEA;EACA0C,YAAY,CAACC,KAAK,CAAC,SAAS,CAAC,CAAClB,OAAO,CAAC,UAACmB,SAAS,EAAK;IACnD;IACAP,SAAS,IAAIQ,SAAS,CAACD,SAAS,CAAC;EACnC,CAAC,CAAC;EAEF,OAAOP,SAAS;AAClB,C;;AC1C+C;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASS,wBAAwBA,CAAA,EAAsB;EAAA,IAArBC,gBAAgB,GAAAC,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAC,CAAC,CAAC;EAClE,IAAI;IACF,IAAIE,cAAc,GAAGC,qBAAqB,CAACJ,gBAAgB,CAACK,WAAW,CAAC;IACxE,IAAIC,iBAAiB,GAAGjB,aAAa,CAACW,gBAAgB,CAACO,SAAS,CAAC;IACjE,IAAIC,kBAAkB,GAAGnB,aAAa,CAACc,cAAc,CAAC;IACtD,IAAIM,WAAW,GAAGT,gBAAgB,CAACU,OAAO;IAC1C,IAAIC,OAAO,GAAGX,gBAAgB,CAACY,OAAO;IACtC,IAAIC,WAAW,GAAG,GAAG,CAAC,CAAC;;IAEvB,UAAAC,MAAA,CAAUD,WAAW,EAAAC,MAAA,CAAGH,OAAO,EAAAG,MAAA,CAAGR,iBAAiB,EAAAQ,MAAA,CAAGN,kBAAkB,EAAAM,MAAA,CAAGL,WAAW;EACxF,CAAC,CAAC,OAAOM,CAAC,EAAE;IACV;IACA,OAAO,GAAG;EACZ;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASX,qBAAqBA,CAACY,SAAS,EAAE;EACxC,IAAIzB,KAAK,GAAGyB,SAAS,CAAChC,KAAK,CAAC,GAAG,CAAC;EAEhC,UAAA8B,MAAA,CAAUvB,KAAK,CAAC,CAAC,CAAC,OAAAuB,MAAA,CAAIvB,KAAK,CAAC,CAAC,CAAC;AAChC,C;;ACrCA;AACA;AACA;AACA;AACA;AACe,SAAS0B,mBAAmBA,CAACC,OAAO,EAAE;EACnD,IAAIlB,gBAAgB,GAAG;IACrBO,SAAS,EAAEW,OAAO,CAACX,SAAS;IAC5BF,WAAW,EAAEa,OAAO,CAACb,WAAW;IAChCO,OAAO,EAAEM,OAAO,CAACN,OAAO;IACxBF,OAAO,EAAE;EACX,CAAC;EACD,IAAIQ,OAAO,CAACC,YAAY,EAAE;IACxB,IAAID,OAAO,CAACE,aAAa,EAAE;MACzBpB,gBAAgB,CAACU,OAAO,GAAG,GAAG;IAChC;IACA,IAAIQ,OAAO,CAACG,OAAO,KAAK,MAAM,EAAE;MAC9BrB,gBAAgB,CAACU,OAAO,GAAG,GAAG;IAChC;IACA,IAAIQ,OAAO,CAACI,UAAU,EAAE;MACtBtB,gBAAgB,CAACU,OAAO,GAAG,GAAG;IAChC;IACA,IAAIQ,OAAO,CAACK,WAAW,EAAE;MACvBvB,gBAAgB,CAACU,OAAO,GAAG,GAAG;IAChC;IACA,OAAOV,gBAAgB;EACzB,CAAC,MAAM;IACL,OAAO,CAAC,CAAC;EACX;AACF,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC7BA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACO,SAASwB,+BAA+BA,CAAA,EAAG;EAChD;EACA,OAAO,QAAOC,MAAM,iCAAAC,OAAA,CAAND,MAAM,OAAK,QAAQ,IAAIA,MAAM,CAACE,oBAAoB;AAClE;;AAEA;AACA;AACA;AACA;AACO,SAASC,yBAAyBA,CAAA,EAAG;EAC1C,OAAO,QAAOC,gBAAgB,iCAAAH,OAAA,CAAhBG,gBAAgB,OAAK,QAAQ,IAAIA,gBAAgB,CAACC,SAAS,CAACT,OAAO;AACnF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAASU,kBAAkBA,CAACC,EAAE,EAAEC,WAAW,EAAE;EAClD,IAAI;IACF,IAAIL,yBAAyB,CAAC,CAAC,IAAI,CAACJ,+BAA+B,CAAC,CAAC,EAAE;MACrE;MACAS,WAAW,CAAC,CAAC;MACb;IACF;;IAEA;IACA,IAAMC,QAAQ,GAAG,IAAIP,oBAAoB,CACvC,UAACQ,OAAO,EAAK;MACXA,OAAO,CAACzD,OAAO,CAAC,UAAA0D,KAAK,EAAI;QACvB,IAAIA,KAAK,CAACC,cAAc,EAAE;UACxBJ,WAAW,CAAC,CAAC;UACbC,QAAQ,CAACI,SAAS,CAACF,KAAK,CAACG,MAAM,CAAC;QAClC;MACF,CAAC,CAAC;IACJ,CAAC,EAAE;MAACC,SAAS,EAAE,CAAC,CAAC,EAAE,IAAI;IAAC,CAAC,CAAC;IAC5BN,QAAQ,CAACO,OAAO,CAACT,EAAE,CAAC;EACtB,CAAC,CAAC,OAAOjB,CAAC,EAAE;IACVkB,WAAW,CAAC,CAAC;EACf;AACF,C;;ACjDO,IAAIS,OAAO,GAAG,OAAO;AAErB,IAAIC,aAAa,GAAG,+BAA+B;AAEnD,IAAIC,qBAAqB,GAAG,2BAA2B;AAEvD,IAAIC,iBAAiB,GAAG,oBAAoB;AAE5C,IAAIC,UAAU,GAAGD,iBAAiB;AAElC,IAAIE,kBAAkB,GAAG,KAAK;AAE9B,IAAIC,sBAAsB,GAAG;EAClCC,MAAM,EAAE,KAAK;EACbC,aAAa,EAAE;AACjB,CAAC;AAEM,IAAIC,0BAA0B,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC;AAEvD,IAAIC,SAAS,GAAG;EACrB,cAAc,EAAE,QAAQ;EACxB,eAAe,EAAE,gBAAgB;EACjC,qBAAqB,EAAE,sBAAsB;EAC7C,YAAY,EAAE,OAAO;EACrB,cAAc,EAAE;AAClB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,IAAIC,oBAAoB,GAAG;EAChCH,aAAa,EAAE,OAAO;EACtBI,cAAc,EAAE,EAAE;EAClBC,IAAI,EAAE;AACR,CAAC;;AAED;AACA;AACA;AACA;AACA;AACO,IAAIC,oBAAoB,GAAG;EAChCC,gBAAgB,EAAE,EAAE;EACpBP,aAAa,EAAE,OAAO;EACtBQ,qBAAqB,EAAE,CAAC,CAAC;EACzBC,YAAY,EAAER,0BAA0B;EACxCG,cAAc,EAAE,EAAE;EAClBC,IAAI,EAAE;AACR,CAAC;;AAED;AACA;AACA;AACA;AACO,IAAMK,qBAAqB,GAAG,CACnC;EACEL,IAAI,EAAE,KAAK;EACXM,MAAM,EAAE,MAAM;EACdC,eAAe,EAAE;IAACC,WAAW,EAAE;EAAM;AACvC,CAAC,EACD;EACER,IAAI,EAAE,MAAM;EACZM,MAAM,EAAE,KAAK;EACbC,eAAe,EAAE;IAACC,WAAW,EAAE;EAAK;AACtC,CAAC,EACD;EACER,IAAI,EAAE,KAAK;EACXO,eAAe,EAAE;IAACC,WAAW,EAAE;EAAM;AACvC,CAAC,EACD;EACER,IAAI,EAAE,MAAM;EACZO,eAAe,EAAE;IAACC,WAAW,EAAE;EAAM;AACvC,CAAC,CACF;AAEM,IAAMC,0BAA0B,GAAG;EACxCC,OAAO,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA;AACO,IAAMC,uBAAuB,GAAG;EACrC,MAAM,EAAE,CAAC;IAACC,MAAM,EAAE,WAAW;IAAEC,OAAO,EAAE,CAAC;IAAEC,YAAY,EAAE;EAAM,CAAC,CAAC;EAAE;EACnE,UAAU,EAAE,CAAC;IAACF,MAAM,EAAE,UAAU;IAAEC,OAAO,EAAE,CAAC;IAAEC,YAAY,EAAE;EAAM,CAAC,CAAC;EACpE;EACA,yBAAyB,EAAE,CACzB;IAACC,KAAK,EAAE,UAAU;IAAEC,YAAY,EAAE,CAAC;IAAEC,IAAI,EAAE,KAAK;IAAEC,UAAU,EAAE;EAAM,CAAC,EACrE;IAACD,IAAI,EAAE,MAAM;IAAEF,KAAK,EAAE,CAAC;IAAEI,MAAM,EAAE,CAAC;IAAEC,OAAO,EAAE;EAAY,CAAC,EAC1D;IAACN,YAAY,EAAE,MAAM;IAAED,OAAO,EAAE;EAAM,CAAC,CACxC;EACD;EACA,mBAAmB,EAAE,CACnB;IAACQ,SAAS,EAAE,CAAC,CAAC,YAAY,EAAE,GAAG,CAAC,EAAE,CAAC,aAAa,EAAE,GAAG,CAAC;EAAC,CAAC,EACxD;IAACN,KAAK,EAAE,UAAU;IAAEC,YAAY,EAAE,CAAC;IAAEC,IAAI,EAAE,KAAK;IAAEC,UAAU,EAAE;EAAM,CAAC,EACrE;IAACD,IAAI,EAAE,MAAM;IAAEF,KAAK,EAAE,EAAE;IAAEI,MAAM,EAAE,EAAE;IAAEC,OAAO,EAAE;EAAY,CAAC,EAC5D;IAACL,KAAK,EAAE,YAAY;IAAEI,MAAM,EAAE,aAAa;IAAEF,IAAI,EAAE;EAAM,CAAC,EAC1D;IAACH,YAAY,EAAE,MAAM;IAAED,OAAO,EAAE;EAAM,CAAC,CACxC;EACD,WAAW,EAAE,CAAC;IAACD,MAAM,EAAE,iBAAiB;IAAEE,YAAY,EAAE;EAAK,CAAC;AAChE,CAAC;;AAED;AACA;AACA;AACA;AACO,IAAMQ,mBAAmB,GAAG;EACjCC,QAAQ,EAAE,eAAe;EACzBC,UAAU,EAAE,eAAe;EAC3BC,UAAU,EAAE,WAAW;EACvBC,UAAU,EAAE;AACd,CAAC;;AAED;AACA;AACA;AACA;AACO,IAAMC,QAAQ,GAAG,CACtB,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,aAAa,EACb,aAAa,EACb,eAAe,EACf,QAAQ,EACR,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,UAAU,EACV,WAAW,EACX,cAAc,EACd,MAAM,EACN,YAAY,EACZ,eAAe,EACf,SAAS,CACV;;AAGD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;ACzKA;AACA;AACA;AAC2C;AACL;AAE/B,SAASC,IAAIA,CAACC,GAAG,EAAEC,IAAI,EAAE;EAC9BD,GAAG,GAAGA,GAAG,IAAI,CAAC,CAAC;EACf,IAAIE,OAAO,GAAGC,MAAM,CAACF,IAAI,CAACD,GAAG,CAAC,CAACI,MAAM,CAAC,UAAA5G,GAAG;IAAA,OAAI,CAAC6G,kBAAQ,CAACJ,IAAI,EAAEzG,GAAG,CAAC;EAAA,EAAC;EAClE,IAAI8G,QAAQ,GAAG,CAAC,CAAC;EACjBJ,OAAO,CAAC5G,OAAO,CAAC,UAAAE,GAAG;IAAA,OAAI8G,QAAQ,CAAC9G,GAAG,CAAC,GAAGwG,GAAG,CAACxG,GAAG,CAAC;EAAA,EAAC;EAChD,OAAO8G,QAAQ;AACjB;;AAEA;AACA;AACA;AACA;AACA;AACO,IAAIC,mBAAU,GAAG,SAAbA,UAAUA,CAAYC,IAAI,EAAE;EACrC,OAAOA,IAAI,CAAC3I,MAAM,IAAI2I,IAAI,CAACC,KAAK,CAACC,kBAAQ,CAAC;AAC5C,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAIC,OAAO,GAAG,SAAVA,OAAOA,CAAYC,KAAK,EAAEC,IAAI,EAAE;EACzC,OAAOD,KAAK,CAACR,MAAM,CAAC,UAAAU,CAAC;IAAA,OAAEA,CAAC,KAAGD,IAAI;EAAA,EAAC;AAClC,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAIE,YAAY,GAAG,SAAfA,YAAYA,CAAYnI,KAAK,EAAE;EACxC,OAAQA,KAAK,IAAI,IAAI,IAAK,CAACoI,KAAK,CAACC,UAAU,CAACrI,KAAK,CAAC,CAAC;AACrD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAIsI,WAAW,GAAG,SAAdA,WAAWA,CAAYxJ,MAAM,EAAsC;EAAA,IAApCyJ,MAAM,GAAAtG,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,yBAAyB;EAC1E,OAAOnD,MAAM,CAAC0J,OAAO,CAACD,MAAM,EAAE,UAAS3G,KAAK,EAAE;IAC5C,OAAOA,KAAK,CAACZ,KAAK,CAAC,EAAE,CAAC,CAACR,GAAG,CAAC,UAASiI,CAAC,EAAE;MACrC,OAAO,GAAG,GAAGA,CAAC,CAACvJ,UAAU,CAAC,CAAC,CAAC,CAAC2B,QAAQ,CAAC,EAAE,CAAC,CAAC6H,WAAW,CAAC,CAAC;IACzD,CAAC,CAAC,CAACtH,IAAI,CAAC,EAAE,CAAC;EACb,CAAC,CAAC;AACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAIuH,QAAQ,GAAG,SAAXA,QAAQA,CAAYC,WAAW,EAAc;EAAA,SAAAC,IAAA,GAAA5G,SAAA,CAAAhD,MAAA,EAAT6J,OAAO,OAAAC,KAAA,CAAAF,IAAA,OAAAA,IAAA,WAAAG,IAAA,MAAAA,IAAA,GAAAH,IAAA,EAAAG,IAAA;IAAPF,OAAO,CAAAE,IAAA,QAAA/G,SAAA,CAAA+G,IAAA;EAAA;EACpD,OAAOF,OAAO,CAACG,MAAM,CAAC,UAASC,IAAI,EAAEC,MAAM,EAAE;IAC3C,IAAIvI,GAAG,EAAEZ,KAAK;IACd,KAAKY,GAAG,IAAIuI,MAAM,EAAE;MAClBnJ,KAAK,GAAGmJ,MAAM,CAACvI,GAAG,CAAC;MACnB,IAAIsI,IAAI,CAACtI,GAAG,CAAC,KAAK,KAAK,CAAC,EAAE;QACxBsI,IAAI,CAACtI,GAAG,CAAC,GAAGZ,KAAK;MACnB;IACF;IACA,OAAOkJ,IAAI;EACb,CAAC,EAAEN,WAAW,CAAC;AACjB,CAAC;;AAED;AACO,IAAIQ,WAAW,GAAG7B,MAAM,CAACzD,SAAS;;AAEzC;AACA;AACA;AACA;AACO,IAAIuF,WAAW,GAAGD,WAAW,CAACvI,QAAQ;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAIyI,QAAQ,GAAG,SAAXA,QAAQA,CAAYtJ,KAAK,EAAE;EACpC,IAAIuF,IAAI;EACR;EACA;EACAA,IAAI,GAAA7B,eAAA,CAAU1D,KAAK;EACnB,OAAO,CAAC,CAACA,KAAK,KAAKuF,IAAI,KAAK,QAAQ,IAAIA,IAAI,KAAK,UAAU,CAAC;AAC9D,CAAC;AAEM,IAAIgE,OAAO,GAAG,mBAAmB;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAIC,mBAAU,GAAG,SAAbA,UAAUA,CAAYxJ,KAAK,EAAE;EACtC;EACA;EACA;EACA,OAAOsJ,QAAQ,CAACtJ,KAAK,CAAC,IAAIqJ,WAAW,CAACI,IAAI,CAACzJ,KAAK,CAAC,KAAKuJ,OAAO;AAC/D,CAAC;;AAED;AACA;AACO,IAAIG,OAAO,GAAI,YAAW;EAC/B,IAAIC,KAAK,EAAEC,KAAK;EAChBA,KAAK,GAAG,OAAO;EACfD,KAAK,GAAG,QAAQ;EAChB,OAAOE,MAAM,CAACD,KAAK,GAAG,MAAM,GAAGA,KAAK,GAAGD,KAAK,GAAG,IAAI,GAAGC,KAAK,GAAG,GAAG,GAAGD,KAAK,GAAG,GAAG,GAAGC,KAAK,GAAG,UAAU,EAAE,GAAG,CAAC;AAC5G,CAAC,CAAE,CAAC;;AAEJ;AACA;AACA;AACA;AACA;AACA;AACO,IAAIE,SAAS,GAAG,SAAZA,SAASA,CAAYX,MAAM,EAAE;EACtC,IAAIY,KAAK,GAAGZ,MAAM,CAACvH,KAAK,CAAC8H,OAAO,CAAC;EACjCK,KAAK,GAAGA,KAAK,CAACvJ,GAAG,CAAC,UAAAwJ,IAAI;IAAA,OAAGA,IAAI,CAACC,MAAM,CAAC,CAAC,CAAC,CAACC,iBAAiB,CAAC,CAAC,GAAGF,IAAI,CAAC3K,KAAK,CAAC,CAAC,CAAC,CAAC8K,iBAAiB,CAAC,CAAC;EAAA,EAAC;EAChGJ,KAAK,CAAC,CAAC,CAAC,GAAGA,KAAK,CAAC,CAAC,CAAC,CAACI,iBAAiB,CAAC,CAAC;EAEvC,OAAOJ,KAAK,CAAC3I,IAAI,CAAC,EAAE,CAAC;AACvB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,IAAIgJ,SAAS,GAAG,SAAZA,SAASA,CAAYjB,MAAM,EAAE;EACtC,IAAIY,KAAK,GAAGZ,MAAM,CAACvH,KAAK,CAAC8H,OAAO,CAAC;EACjCK,KAAK,GAAGA,KAAK,CAACvJ,GAAG,CAAC,UAAAwJ,IAAI;IAAA,OAAGA,IAAI,CAACG,iBAAiB,CAAC,CAAC;EAAA,EAAC;EAClD,OAAOJ,KAAK,CAAC3I,IAAI,CAAC,GAAG,CAAC;AACxB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,IAAIiJ,WAAW,GAAG,SAAdA,WAAWA,CAAYlB,MAAM,EAAEmB,SAAS,EAAE;EACnD,IAAIC,MAAM,EAAEvK,KAAK;EACjBuK,MAAM,GAAG,CAAC,CAAC;EACX,KAAK,IAAI3J,GAAG,IAAIuI,MAAM,EAAE;IACtBnJ,KAAK,GAAGmJ,MAAM,CAACvI,GAAG,CAAC;IACnB,IAAG0J,SAAS,EAAE;MACZ1J,GAAG,GAAG0J,SAAS,CAAC1J,GAAG,CAAC;IACtB;IACA,IAAI,CAAC4J,OAAO,CAAC5J,GAAG,CAAC,EAAE;MACjB2J,MAAM,CAAC3J,GAAG,CAAC,GAAGZ,KAAK;IACrB;EACF;EACA,OAAOuK,MAAM;AACf,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,IAAIE,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAYtB,MAAM,EAAE;EAC9C,OAAOkB,WAAW,CAAClB,MAAM,EAAEW,SAAS,CAAC;AACvC,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,IAAIY,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAYvB,MAAM,EAAE;EAC9C,OAAOkB,WAAW,CAAClB,MAAM,EAAEiB,SAAS,CAAC;AACvC,CAAC;;AAED;AACA;AACO,IAAIO,YAAY,GAAG,OAAOC,IAAI,KAAK,WAAW,IAAIpB,mBAAU,CAACoB,IAAI,CAAC,GAAGA,IAAI,GAAG,OAAOC,MAAM,KAAK,WAAW,IAAIrB,mBAAU,CAACqB,MAAM,CAAC,GAAG,UAASC,KAAK,EAAE;EACvJ,IAAI,EAAEA,KAAK,YAAYD,MAAM,CAAC,EAAE;IAC9BC,KAAK,GAAG,IAAID,MAAM,CAACE,IAAI,CAAC5L,MAAM,CAAC2L,KAAK,CAAC,EAAE,QAAQ,CAAC;EAClD;EACA,OAAOA,KAAK,CAACjK,QAAQ,CAAC,QAAQ,CAAC;AACjC,CAAC,GAAG,UAASiK,KAAK,EAAE;EAClB,MAAM,IAAI7J,KAAK,CAAC,mCAAmC,CAAC;AACtD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAI+J,eAAe,GAAG,SAAlBA,eAAeA,CAAYC,GAAG,EAAE;EACzC,IAAI;IACFA,GAAG,GAAGC,SAAS,CAACD,GAAG,CAAC;EACtB,CAAC,SAAS;IACRA,GAAG,GAAGE,SAAS,CAACF,GAAG,CAAC;EACtB;EACA,OAAON,YAAY,CAACM,GAAG,CAAC;AAC1B,CAAC;;AAED;AACA;AACA;AACA;AACA;AACO,SAASG,gBAAgBA,CAAClI,OAAO,EAAE;EACxC,OAAOgE,QAAQ,CAAC+B,MAAM,CAAC,UAAC7B,GAAG,EAAExG,GAAG,EAAK;IACnC,IAAIsC,OAAO,CAACtC,GAAG,CAAC,IAAI,IAAI,EAAE;MACxBwG,GAAG,CAACxG,GAAG,CAAC,GAAGsC,OAAO,CAACtC,GAAG,CAAC;IACzB;IACA,OAAOwG,GAAG;EACZ,CAAC,EAAE,CAAC,CAAC,CAAC;AACR;;AAGA;AACA;AACA;AACA;AACA;AACO,SAASiE,gBAAgBA,CAACnI,OAAO,EAAE;EACxC,IAAGA,OAAO,IAAI,IAAI,EAAE;IAClBA,OAAO,GAAG,CAAC,CAAC;EACd;EACA,IAAIA,OAAO,CAACqC,IAAI,KAAK,OAAO,EAAE;IAC5B,IAAIrC,OAAO,CAACmD,YAAY,IAAI,IAAI,EAAE;MAChCnD,OAAO,CAACmD,YAAY,GAAGiF,aAAa,CAACpI,OAAO,EAAE,QAAQ,CAAC;IACzD;EACF;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASoI,aAAaA,CAACpI,OAAO,EAAEqI,WAAW,EAAEC,aAAa,EAAE;EACjE,IAAIjB,MAAM,GAAGrH,OAAO,CAACqI,WAAW,CAAC;EACjC,OAAOrI,OAAO,CAACqI,WAAW,CAAC;EAC3B,IAAIhB,MAAM,IAAI,IAAI,EAAE;IAClB,OAAOA,MAAM;EACf,CAAC,MAAM;IACL,OAAOiB,aAAa;EACtB;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAShB,OAAOA,CAACxK,KAAK,EAAE;EAC7B,IAAGA,KAAK,IAAI,IAAI,EAAE;IAChB,OAAO,IAAI;EACb;EACA,IAAI,OAAOA,KAAK,CAACf,MAAM,IAAI,QAAQ,EAAE;IACnC,OAAOe,KAAK,CAACf,MAAM,KAAK,CAAC;EAC3B;EACA,IAAI,OAAOe,KAAK,CAACyL,IAAI,IAAI,QAAQ,EAAE;IACjC,OAAOzL,KAAK,CAACyL,IAAI,KAAK,CAAC;EACzB;EACA,IAAG/H,eAAA,CAAO1D,KAAK,KAAI,QAAQ,EAAE;IAC3B,KAAI,IAAIY,GAAG,IAAIZ,KAAK,EAAE;MACpB,IAAGA,KAAK,CAAC0L,cAAc,CAAC9K,GAAG,CAAC,EAAE;QAC5B,OAAO,KAAK;MACd;IACF;IACA,OAAO,IAAI;EACb;EACA,OAAO,IAAI;AACb,C;;ACnUA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS+K,YAAYA,CAAA,EAAE;EACrB,OAAOC,SAAS,IAAIA,SAAS,CAACC,SAAS,IAAI,EAAE;AAC/C;;AAEA;AACA;AACA;AACA;AACO,SAASC,SAASA,CAAA,EAAE;EACzB,IAAMD,SAAS,GAAGF,YAAY,CAAC,CAAC;EAChC,OAAQ,UAAU,CAAEI,IAAI,CAACF,SAAS,CAAC;AACrC;;AAEA;AACA;AACA;AACA;AACO,SAASG,MAAMA,CAAA,EAAE;EACtB,IAAMH,SAAS,GAAGF,YAAY,CAAC,CAAC;EAChC,OAAQ,MAAM,CAAEI,IAAI,CAACF,SAAS,CAAC;AACjC;;AAEA;AACA;AACA;AACA;AACO,SAASI,QAAQA,CAAA,EAAE;EACxB,IAAMJ,SAAS,GAAGF,YAAY,CAAC,CAAC;EAChC,OAAO,CAACK,MAAM,CAAC,CAAC,KAAM,SAAS,CAAED,IAAI,CAACF,SAAS,CAAC,IAAK,QAAQ,CAAEE,IAAI,CAACF,SAAS,CAAC,CAAC;AACjF;;AAEA;AACA;AACA;AACA;AACO,SAASK,QAAQA,CAAA,EAAE;EACxB;EACA;EACA;EACA,IAAML,SAAS,GAAGF,YAAY,CAAC,CAAC;EAChC,OAAQ,SAAS,CAAEI,IAAI,CAACF,SAAS,CAAC,IAAI,CAACI,QAAQ,CAAC,CAAC,IAAI,CAACH,SAAS,CAAC,CAAC,IAAI,CAACE,MAAM,CAAC,CAAC;AAChF,C;;AClDA,IAAIG,YAAY;AAEgE;AACV;AAChB;AAI/B;AAIG;AAIF;AAIG;AAID;AAID;AAIA;AAID;AAIM;AAIL;AAIH;AAIG;AAEgB;AACE;AACZ;AAEJ;AACA;AACD;AAIpB;;AAGN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAIC,cAAO,GAAG,SAAVA,OAAOA,CAAaC,OAAO,EAAEC,IAAI,EAAE;EAC5C,QAAQ,KAAK;IACX,KAAK,EAAED,OAAO,IAAI,IAAI,CAAC;MACrB,OAAO,KAAK,CAAC;IACf,KAAK,CAAC7C,oBAAU,CAAC6C,OAAO,CAACE,YAAY,CAAC;MACpC,OAAOF,OAAO,CAACE,YAAY,SAAAzJ,MAAA,CAASwJ,IAAI,CAAE,CAAC;IAC7C,KAAK,CAAC9C,oBAAU,CAAC6C,OAAO,CAACG,OAAO,CAAC;MAC/B,OAAOH,OAAO,CAACG,OAAO,SAAA1J,MAAA,CAASwJ,IAAI,CAAE,CAAC;IACxC,KAAK,CAAC9C,oBAAU,CAAC6C,OAAO,CAACI,IAAI,CAAC;MAC5B,OAAOJ,OAAO,CAACI,IAAI,CAACH,IAAI,CAAC;IAC3B,KAAK,EAAE9C,oBAAU,CAAC,OAAOkD,MAAM,KAAK,WAAW,IAAIA,MAAM,CAACC,EAAE,IAAID,MAAM,CAACC,EAAE,CAACF,IAAI,CAAC,IAAIG,mBAAS,CAACP,OAAO,CAAC,CAAC;MACpG,OAAOK,MAAM,CAACL,OAAO,CAAC,CAACI,IAAI,CAACH,IAAI,CAAC;EACrC;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAIO,cAAO,GAAG,SAAVA,OAAOA,CAAaR,OAAO,EAAEC,IAAI,EAAEtM,KAAK,EAAE;EACnD,QAAQ,KAAK;IACX,KAAK,EAAEqM,OAAO,IAAI,IAAI,CAAC;MACrB,OAAO,KAAK,CAAC;IACf,KAAK,CAAC7C,oBAAU,CAAC6C,OAAO,CAACS,YAAY,CAAC;MACpC,OAAOT,OAAO,CAACS,YAAY,SAAAhK,MAAA,CAASwJ,IAAI,GAAItM,KAAK,CAAC;IACpD,KAAK,CAACwJ,oBAAU,CAAC6C,OAAO,CAACU,OAAO,CAAC;MAC/B,OAAOV,OAAO,CAACU,OAAO,SAAAjK,MAAA,CAASwJ,IAAI,GAAItM,KAAK,CAAC;IAC/C,KAAK,CAACwJ,oBAAU,CAAC6C,OAAO,CAACI,IAAI,CAAC;MAC5B,OAAOJ,OAAO,CAACI,IAAI,CAACH,IAAI,EAAEtM,KAAK,CAAC;IAClC,KAAK,EAAEwJ,oBAAU,CAAC,OAAOkD,MAAM,KAAK,WAAW,IAAIA,MAAM,CAACC,EAAE,IAAID,MAAM,CAACC,EAAE,CAACF,IAAI,CAAC,IAAIG,mBAAS,CAACP,OAAO,CAAC,CAAC;MACpG,OAAOK,MAAM,CAACL,OAAO,CAAC,CAACI,IAAI,CAACH,IAAI,EAAEtM,KAAK,CAAC;EAC5C;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAIuM,mBAAY,GAAG,SAAfA,YAAYA,CAAaF,OAAO,EAAEC,IAAI,EAAE;EACjD,QAAQ,KAAK;IACX,KAAK,EAAED,OAAO,IAAI,IAAI,CAAC;MACrB,OAAO,KAAK,CAAC;IACf,KAAK,CAAC7C,oBAAU,CAAC6C,OAAO,CAACE,YAAY,CAAC;MACpC,OAAOF,OAAO,CAACE,YAAY,CAACD,IAAI,CAAC;IACnC,KAAK,CAAC9C,oBAAU,CAAC6C,OAAO,CAACW,IAAI,CAAC;MAC5B,OAAOX,OAAO,CAACW,IAAI,CAACV,IAAI,CAAC;IAC3B,KAAK,CAAC9C,oBAAU,CAAC6C,OAAO,CAACG,OAAO,CAAC;MAC/B,OAAOH,OAAO,CAACG,OAAO,CAACF,IAAI,CAAC;EAChC;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAIQ,mBAAY,GAAG,SAAfA,YAAYA,CAAaT,OAAO,EAAEC,IAAI,EAAEtM,KAAK,EAAE;EACxD,QAAQ,KAAK;IACX,KAAK,EAAEqM,OAAO,IAAI,IAAI,CAAC;MACrB,OAAO,KAAK,CAAC;IACf,KAAK,CAAC7C,oBAAU,CAAC6C,OAAO,CAACS,YAAY,CAAC;MACpC,OAAOT,OAAO,CAACS,YAAY,CAACR,IAAI,EAAEtM,KAAK,CAAC;IAC1C,KAAK,CAACwJ,oBAAU,CAAC6C,OAAO,CAACW,IAAI,CAAC;MAC5B,OAAOX,OAAO,CAACW,IAAI,CAACV,IAAI,EAAEtM,KAAK,CAAC;IAClC,KAAK,CAACwJ,oBAAU,CAAC6C,OAAO,CAACU,OAAO,CAAC;MAC/B,OAAOV,OAAO,CAACU,OAAO,CAACT,IAAI,EAAEtM,KAAK,CAAC;EACvC;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAIiN,sBAAe,GAAG,SAAlBA,eAAeA,CAAaZ,OAAO,EAAEC,IAAI,EAAE;EACpD,QAAQ,KAAK;IACX,KAAK,EAAED,OAAO,IAAI,IAAI,CAAC;MACrB,OAAO,KAAK,CAAC;IACf,KAAK,CAAC7C,oBAAU,CAAC6C,OAAO,CAACY,eAAe,CAAC;MACvC,OAAOZ,OAAO,CAACY,eAAe,CAACX,IAAI,CAAC;IACtC;MACE,OAAOQ,mBAAY,CAACT,OAAO,EAAE,KAAK,CAAC,CAAC;EACxC;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,IAAIa,aAAa,GAAG,SAAhBA,aAAaA,CAAab,OAAO,EAAEc,UAAU,EAAE;EACxD,IAAIb,IAAI,EAAEc,OAAO,EAAEpN,KAAK;EACxBoN,OAAO,GAAG,EAAE;EACZ,KAAKd,IAAI,IAAIa,UAAU,EAAE;IACvBnN,KAAK,GAAGmN,UAAU,CAACb,IAAI,CAAC;IACxB,IAAItM,KAAK,IAAI,IAAI,EAAE;MACjBoN,OAAO,CAACC,IAAI,CAACP,mBAAY,CAACT,OAAO,EAAEC,IAAI,EAAEtM,KAAK,CAAC,CAAC;IAClD,CAAC,MAAM;MACLoN,OAAO,CAACC,IAAI,CAACJ,sBAAe,CAACZ,OAAO,EAAEC,IAAI,CAAC,CAAC;IAC9C;EACF;EACA,OAAOc,OAAO;AAChB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAIE,eAAQ,GAAG,SAAXA,QAAQA,CAAajB,OAAO,EAAEC,IAAI,EAAE;EAC7C,IAAIM,mBAAS,CAACP,OAAO,CAAC,EAAE;IACtB,OAAOA,OAAO,CAACkB,SAAS,CAAC3L,KAAK,CAAC,IAAIiI,MAAM,OAAA/G,MAAA,CAAOwJ,IAAI,QAAK,CAAC,CAAC;EAC7D;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,IAAIkB,eAAQ,GAAG,SAAXA,QAAQA,CAAanB,OAAO,EAAEC,IAAI,EAAE;EAC7C,IAAI,CAACD,OAAO,CAACkB,SAAS,CAAC3L,KAAK,CAAC,IAAIiI,MAAM,OAAA/G,MAAA,CAAOwJ,IAAI,QAAK,CAAC,CAAC,EAAE;IACzD,OAAOD,OAAO,CAACkB,SAAS,GAAGE,cAAI,IAAA3K,MAAA,CAAIuJ,OAAO,CAACkB,SAAS,OAAAzK,MAAA,CAAIwJ,IAAI,CAAE,CAAC;EACjE;AACF,CAAC;;AAED;AACO,IAAIoB,SAAS,GAAG,SAAZA,SAASA,CAAaC,IAAI,EAAE;EACrC;EACA;EACA;EACA,IAAIA,IAAI,CAACC,aAAa,CAACC,WAAW,CAACC,MAAM,EAAE;IACzC,OAAOH,IAAI,CAACC,aAAa,CAACC,WAAW,CAACE,gBAAgB,CAACJ,IAAI,EAAE,IAAI,CAAC;EACpE;EACA,OAAOlK,MAAM,CAACsK,gBAAgB,CAACJ,IAAI,EAAE,IAAI,CAAC;AAC5C,CAAC;AAEM,IAAIK,SAAS,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC;AAEzD7B,YAAY,GAAG,SAAAA,aAAU8B,CAAC,EAAEC,CAAC,EAAE;EAC7B,IAAIC,KAAK,EAAEC,GAAG;EACdD,KAAK,GAAIF,CAAC,CAACI,QAAQ,KAAK,CAAC,GAAGJ,CAAC,CAACK,eAAe,GAAGL,CAAE;EAClDG,GAAG,GAAGF,CAAC,IAAIA,CAAC,CAACK,UAAU;EACvB,OAAON,CAAC,KAAKG,GAAG,IAAI,CAAC,EAAEA,GAAG,IAAIA,GAAG,CAACC,QAAQ,KAAK,CAAC,IAAIF,KAAK,CAAC1G,QAAQ,CAAC2G,GAAG,CAAC,CAAC;AAC1E,CAAC;;AAED;AACO,IAAII,QAAQ,GAAG,SAAXA,QAAQA,CAAab,IAAI,EAAErB,IAAI,EAAE;EAC1C,IAAI,EAAE,CAACqB,IAAI,IAAIA,IAAI,CAACU,QAAQ,KAAK,CAAC,IAAIV,IAAI,CAACU,QAAQ,KAAK,CAAC,IAAI,CAACV,IAAI,CAACc,KAAK,CAAC,EAAE;IACzE,OAAOd,IAAI,CAACc,KAAK,CAACnC,IAAI,CAAC;EACzB;AACF,CAAC;AAEM,IAAIoC,MAAM,GAAG,SAATA,MAAMA,CAAaf,IAAI,EAAErB,IAAI,EAAEqC,QAAQ,EAAE;EAClD,IAAIC,QAAQ,EAAEC,QAAQ,EAAEC,GAAG,EAAEC,OAAO,EAAEN,KAAK,EAAEnI,KAAK;EAClDyI,OAAO,GAAG,SAAS;EACnBzI,KAAK,GAAG,KAAK,CAAC;EACduI,QAAQ,GAAG,KAAK,CAAC;EACjBD,QAAQ,GAAG,KAAK,CAAC;EACjBE,GAAG,GAAG,KAAK,CAAC;EACZL,KAAK,GAAGd,IAAI,CAACc,KAAK;EAClBE,QAAQ,GAAGA,QAAQ,IAAIjB,SAAS,CAACC,IAAI,CAAC;EACtC,IAAIgB,QAAQ,EAAE;IACZ;IACA;IACAG,GAAG,GAAGH,QAAQ,CAACK,gBAAgB,CAAC1C,IAAI,CAAC,IAAIqC,QAAQ,CAACrC,IAAI,CAAC;EACzD;EACA,IAAIqC,QAAQ,EAAE;IACZ,IAAIG,GAAG,KAAK,EAAE,IAAI,CAAC3C,YAAY,CAACwB,IAAI,CAACC,aAAa,EAAED,IAAI,CAAC,EAAE;MACzDmB,GAAG,GAAGN,QAAQ,CAACb,IAAI,EAAErB,IAAI,CAAC;IAC5B;IACA;IACA;IACA;IACA;IACA,IAAI2C,SAAS,CAAClD,IAAI,CAAC+C,GAAG,CAAC,IAAIC,OAAO,CAAChD,IAAI,CAACO,IAAI,CAAC,EAAE;MAC7C;MACAhG,KAAK,GAAGmI,KAAK,CAACnI,KAAK;MACnBuI,QAAQ,GAAGJ,KAAK,CAACI,QAAQ;MACzBD,QAAQ,GAAGH,KAAK,CAACG,QAAQ;MACzB;MACAH,KAAK,CAACI,QAAQ,GAAGJ,KAAK,CAACG,QAAQ,GAAGH,KAAK,CAACnI,KAAK,GAAGwI,GAAG;MACnDA,GAAG,GAAGH,QAAQ,CAACrI,KAAK;MACpB;MACAmI,KAAK,CAACnI,KAAK,GAAGA,KAAK;MACnBmI,KAAK,CAACI,QAAQ,GAAGA,QAAQ;MACzBJ,KAAK,CAACG,QAAQ,GAAGA,QAAQ;IAC3B;EACF;EACA;EACA;EACA,IAAIE,GAAG,KAAK5M,SAAS,EAAE;IACrB,OAAO4M,GAAG,GAAG,EAAE;EACjB,CAAC,MAAM;IACL,OAAOA,GAAG;EACZ;AACF,CAAC;AAEM,IAAII,QAAQ,GAAG,SAAXA,QAAQA,CAAavB,IAAI,EAAErB,IAAI,EAAE6C,OAAO,EAAEC,MAAM,EAAE;EAC3D,IAAIC,GAAG;EACPA,GAAG,GAAGX,MAAM,CAACf,IAAI,EAAErB,IAAI,EAAE8C,MAAM,CAAC;EAChC,IAAID,OAAO,EAAE;IACX,OAAO9G,UAAU,CAACgH,GAAG,CAAC;EACxB,CAAC,MAAM;IACL,OAAOA,GAAG;EACZ;AACF,CAAC;AAEM,IAAIC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAa3B,IAAI,EAAErB,IAAI,EAAEiD,KAAK,EAAEC,WAAW,EAAEJ,MAAM,EAAE;EAClF,IAAI3P,CAAC,EAAEgQ,GAAG,EAAEC,IAAI,EAAEC,KAAK,EAAEN,GAAG;EAC5B;EACA;EACA,IAAIE,KAAK,MAAMC,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC,EAAE;IAClD,OAAO,CAAC;EACV,CAAC,MAAM;IACLG,KAAK,GAAGrD,IAAI,KAAK,OAAO,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC;IAChE+C,GAAG,GAAG,CAAC;IACP,KAAK5P,CAAC,GAAG,CAAC,EAAEgQ,GAAG,GAAGE,KAAK,CAAC1Q,MAAM,EAAEQ,CAAC,GAAGgQ,GAAG,EAAEhQ,CAAC,EAAE,EAAE;MAC5CiQ,IAAI,GAAGC,KAAK,CAAClQ,CAAC,CAAC;MACf,IAAI8P,KAAK,KAAK,QAAQ,EAAE;QACtB;QACAF,GAAG,IAAIH,QAAQ,CAACvB,IAAI,EAAE4B,KAAK,GAAGG,IAAI,EAAE,IAAI,EAAEN,MAAM,CAAC;MACnD;MACA,IAAII,WAAW,EAAE;QACf,IAAID,KAAK,KAAK,SAAS,EAAE;UACvB;UACAF,GAAG,IAAIH,QAAQ,CAACvB,IAAI,YAAA7K,MAAA,CAAY4M,IAAI,GAAI,IAAI,EAAEN,MAAM,CAAC;QACvD;QACA,IAAIG,KAAK,KAAK,QAAQ,EAAE;UACtB;UACAF,GAAG,IAAIH,QAAQ,CAACvB,IAAI,WAAA7K,MAAA,CAAW4M,IAAI,YAAS,IAAI,EAAEN,MAAM,CAAC;QAC3D;MACF,CAAC,MAAM;QACL;QACAC,GAAG,IAAIH,QAAQ,CAACvB,IAAI,YAAA7K,MAAA,CAAY4M,IAAI,GAAI,IAAI,EAAEN,MAAM,CAAC;QACrD,IAAIG,KAAK,KAAK,SAAS,EAAE;UACvB;UACAF,GAAG,IAAIH,QAAQ,CAACvB,IAAI,WAAA7K,MAAA,CAAW4M,IAAI,YAAS,IAAI,EAAEN,MAAM,CAAC;QAC3D;MACF;IACF;IACA,OAAOC,GAAG;EACZ;AACF,CAAC;AAED,IAAIO,IAAI,GAAG,qCAAqC,CAACzG,MAAM;AAEvD,IAAI8F,SAAS,GAAG,IAAIpF,MAAM,CAAC,IAAI,GAAG+F,IAAI,GAAG,iBAAiB,EAAE,GAAG,CAAC;AAEzD,IAAIC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAalC,IAAI,EAAErB,IAAI,EAAEiD,KAAK,EAAE;EACzD,IAAIC,WAAW,EAAEJ,MAAM,EAAEC,GAAG,EAAES,gBAAgB;EAC9C;EACAA,gBAAgB,GAAG,IAAI;EACvBT,GAAG,GAAI/C,IAAI,KAAK,OAAO,GAAGqB,IAAI,CAACoC,WAAW,GAAGpC,IAAI,CAACqC,YAAa;EAC/DZ,MAAM,GAAG1B,SAAS,CAACC,IAAI,CAAC;EACxB6B,WAAW,GAAGN,QAAQ,CAACvB,IAAI,EAAE,WAAW,EAAE,KAAK,EAAEyB,MAAM,CAAC,KAAK,YAAY;EACzE;EACA;EACA;EACA,IAAIC,GAAG,IAAI,CAAC,IAAKA,GAAG,IAAI,IAAK,EAAE;IAC7B;IACAA,GAAG,GAAGX,MAAM,CAACf,IAAI,EAAErB,IAAI,EAAE8C,MAAM,CAAC;IAChC,IAAIC,GAAG,GAAG,CAAC,IAAKA,GAAG,IAAI,IAAK,EAAE;MAC5BA,GAAG,GAAG1B,IAAI,CAACc,KAAK,CAACnC,IAAI,CAAC;IACxB;IACA,IAAI2C,SAAS,CAAClD,IAAI,CAACsD,GAAG,CAAC,EAAE;MACvB;MACA,OAAOA,GAAG;IACZ;IACA;IACA;IACA;IACAS,gBAAgB,GAAGN,WAAW,IAAKH,GAAG,KAAK1B,IAAI,CAACc,KAAK,CAACnC,IAAI,CAAE;IAC5D;IACA+C,GAAG,GAAGhH,UAAU,CAACgH,GAAG,CAAC,IAAI,CAAC;EAC5B;EACA;EACA,OAAOA,GAAG,GAAGC,oBAAoB,CAAC3B,IAAI,EAAErB,IAAI,EAAEiD,KAAK,KAAKC,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC,EAAEM,gBAAgB,EAAEV,MAAM,CAAC;AACxH,CAAC;AAEM,IAAI9I,YAAK,GAAG,SAARA,KAAKA,CAAa+F,OAAO,EAAE;EACpC,OAAOwD,gBAAgB,CAACxD,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC;AACtD,CAAC;;AAGD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;;;AC3cA;AACA;AACA;AACA;AACA;AACA;AALA,IAMM4D,UAAU;EACd,SAAAA,WAAYC,aAAa,EAAE;IAAAC,eAAA,OAAAF,UAAA;IACzB;AACJ;AACA;AACA;IACI,IAAI,CAACG,WAAW,GAAG,EAAE;IACrB,IAAIF,aAAa,IAAI,IAAI,EAAE;MACzB,IAAI,CAACE,WAAW,CAAC/C,IAAI,CAAC4C,UAAU,CAACI,SAAS,CAACH,aAAa,CAAC,CAAC;IAC5D;EACF;;EAEA;AACF;AACA;AACA;EAHE,OAAAI,YAAA,CAAAL,UAAA;IAAArP,GAAA;IAAAZ,KAAA;IAuCA;AACF;AACA;AACA;IACE,SAAAuQ,UAAA,EAAY;MACV,OAAON,UAAU,CAACI,SAAS,CAAC,IAAI,CAACD,WAAW,CAAChP,IAAI,CAAC,GAAG,CAAC,CAAC;IACzD;EAAC;IAAAR,GAAA;IAAAZ,KAAA,EAED,SAAAa,SAAA,EAAW;MACT,OAAO,IAAI,CAAC0P,SAAS,CAAC,CAAC;IACzB;;IAEA;AACF;AACA;AACA;EAHE;IAAA3P,GAAA;IAAAZ,KAAA,EAIA,SAAAwQ,UAAA,EAAY;MACV,OAAO,IAAI,CAACC,MAAM;IACpB;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAA7P,GAAA;IAAAZ,KAAA,EAKA,SAAA0Q,UAAUD,MAAM,EAAE;MAChB,IAAI,CAACA,MAAM,GAAGA,MAAM;MACpB,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAA7P,GAAA;IAAAZ,KAAA,EAKA,SAAA2Q,UAAUrE,IAAI,EAAEsE,QAAQ,EAAE5Q,KAAK,EAAE;MAC/B,IAAIiQ,UAAU,CAACY,SAAS,CAACD,QAAQ,CAAC,IAAI,IAAI,EAAE;QAC1CA,QAAQ,GAAGX,UAAU,CAACY,SAAS,CAACD,QAAQ,CAAC;MAC3C;MACA,IAAI,CAACR,WAAW,CAAC/C,IAAI,IAAAvK,MAAA,CAAIwJ,IAAI,OAAAxJ,MAAA,CAAI8N,QAAQ,OAAA9N,MAAA,CAAI9C,KAAK,CAAE,CAAC;MACrD,OAAO,IAAI;IACb;;IAEA;AACF;AACA;EAFE;IAAAY,GAAA;IAAAZ,KAAA,EAGA,SAAA8Q,IAAA,EAAM;MACJ,IAAI,CAACV,WAAW,CAAC/C,IAAI,CAAC,KAAK,CAAC;MAC5B,OAAO,IAAI;IACb;;IAEA;AACF;AACA;EAFE;IAAAzM,GAAA;IAAAZ,KAAA,EAGA,SAAA+Q,GAAA,EAAK;MACH,IAAI,CAACX,WAAW,CAAC/C,IAAI,CAAC,IAAI,CAAC;MAC3B,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAAzM,GAAA;IAAAZ,KAAA,EAKA,SAAAgR,KAAA,EAAO;MACL,OAAO,IAAI,CAACR,SAAS,CAAC,CAAC,MAAG,CAAC,IAAI,CAAC3P,QAAQ,CAAC,CAAC,CAAC;IAC7C;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAD,GAAA;IAAAZ,KAAA,EAMA,SAAA0G,OAAOkK,QAAQ,EAAE5Q,KAAK,EAAE;MACtB,OAAO,IAAI,CAAC2Q,SAAS,CAAC,GAAG,EAAEC,QAAQ,EAAE5Q,KAAK,CAAC;IAC7C;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAAsG,MAAMsK,QAAQ,EAAE5Q,KAAK,EAAE;MACrB,OAAO,IAAI,CAAC2Q,SAAS,CAAC,GAAG,EAAEC,QAAQ,EAAE5Q,KAAK,CAAC;IAC7C;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAAiR,YAAYL,QAAQ,EAAE5Q,KAAK,EAAE;MAC3B,OAAO,IAAI,CAAC2Q,SAAS,CAAC,IAAI,EAAEC,QAAQ,EAAE5Q,KAAK,CAAC;IAC9C;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAAkR,UAAUN,QAAQ,EAAE5Q,KAAK,EAAE;MACzB,OAAO,IAAI,CAAC2Q,SAAS,CAAC,IAAI,EAAEC,QAAQ,EAAE5Q,KAAK,CAAC;IAC9C;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAAmR,UAAUP,QAAQ,EAAE5Q,KAAK,EAAE;MACzB,OAAO,IAAI,CAAC2Q,SAAS,CAAC,IAAI,EAAEC,QAAQ,EAAE5Q,KAAK,CAAC;IAC9C;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAA,MAAMA,MAAK,EAAE;MACX,IAAI,CAACoQ,WAAW,CAAC/C,IAAI,CAACrN,MAAK,CAAC;MAC5B,OAAO,IAAI;IACb;;IAEA;AACF;EADE;IAAAY,GAAA;IAAAZ,KAAA,EA9JA,SAAAoR,KAAWlB,aAAa,EAAE;MACxB,OAAO,IAAI,IAAI,CAACA,aAAa,CAAC;IAChC;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAtP,GAAA;IAAAZ,KAAA,EAMA,SAAAqQ,UAAiBgB,UAAU,EAAE;MAC3B,IAAIA,UAAU,IAAI,IAAI,EAAE;QACtB,OAAOA,UAAU;MACnB;MACAA,UAAU,GAAGlS,MAAM,CAACkS,UAAU,CAAC;MAC/B,IAAMC,SAAS,GAAG,0CAA0C;;MAE5D;MACA,IAAMC,gBAAgB,GAAG,IAAI,GAAGD,SAAS,GAAG,YAAY;MACxD,IAAME,kBAAkB,GAAG,IAAI3H,MAAM,CAAC0H,gBAAgB,EAAE,GAAG,CAAC;MAC5DF,UAAU,GAAGA,UAAU,CAAC7I,OAAO,CAACgJ,kBAAkB,EAAE,UAAA5P,KAAK;QAAA,OAAIqO,UAAU,CAACY,SAAS,CAACjP,KAAK,CAAC;MAAA,EAAC;;MAEzF;MACA;MACA;MACA;MACA,IAAM6P,qBAAqB,GAAG,GAAG,GAAGlK,MAAM,CAACF,IAAI,CAAC4I,UAAU,CAACyB,eAAe,CAAC,CAAClR,GAAG,CAAC,UAAA0H,CAAC;QAAA,WAAApF,MAAA,CAAMoF,CAAC,OAAApF,MAAA,CAAIoF,CAAC;MAAA,CAAE,CAAC,CAAC9G,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG;MAChH,IAAMuQ,mBAAmB,GAAG,eAAe;MAE3C,IAAMC,kBAAkB,GAAG,IAAI/H,MAAM,IAAA/G,MAAA,CAAI6O,mBAAmB,OAAA7O,MAAA,CAAI2O,qBAAqB,GAAI,GAAG,CAAC;MAC7FJ,UAAU,GAAGA,UAAU,CAAC7I,OAAO,CAACoJ,kBAAkB,EAAE,UAAChQ,KAAK;QAAA,OAAMqO,UAAU,CAACyB,eAAe,CAAC9P,KAAK,CAAC,IAAIA,KAAK;MAAA,CAAC,CAAC;MAE5G,OAAOyP,UAAU,CAAC7I,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;IAC1C;EAAC;IAAA5H,GAAA;IAAAZ,KAAA,EA+HD,SAAA6R,SAAgBvF,IAAI,EAAEtM,KAAK,EAAE;MAC3B,OAAO,IAAI,IAAI,CAACsM,IAAI,CAAC,CAACtM,KAAK,CAACA,KAAK,CAAC;IACpC;;IAEA;AACF;AACA;AACA;EAHE;IAAAY,GAAA;IAAAZ,KAAA,EAIA,SAAAsG,MAAA,EAAe;MACb,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC;IAC1B;;IAEA;AACF;AACA;AACA;EAHE;IAAA1F,GAAA;IAAAZ,KAAA,EAIA,SAAA0G,OAAA,EAAgB;MACd,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC;IAC3B;;IAEA;AACF;AACA;AACA;EAHE;IAAA9F,GAAA;IAAAZ,KAAA,EAIA,SAAA8R,aAAA,EAAsB;MACpB,OAAO,IAAI,IAAI,CAAC,cAAc,CAAC;IACjC;;IAEA;AACF;AACA;AACA;EAHE;IAAAlR,GAAA;IAAAZ,KAAA,EAIA,SAAA+R,cAAA,EAAuB;MACrB,OAAO,IAAI,IAAI,CAAC,eAAe,CAAC;IAClC;;IAEA;AACF;AACA;AACA;EAHE;IAAAnR,GAAA;IAAAZ,KAAA,EAIA,SAAAiR,YAAA,EAAqB;MACnB,OAAO,IAAI,IAAI,CAAC,aAAa,CAAC;IAChC;;IAEA;AACF;AACA;AACA;EAHE;IAAArQ,GAAA;IAAAZ,KAAA,EAIA,SAAAgS,mBAAA,EAA4B;MAC1B,OAAO,IAAI,IAAI,CAAC,oBAAoB,CAAC;IACvC;;IAEA;AACF;AACA;AACA;EAHE;IAAApR,GAAA;IAAAZ,KAAA,EAIA,SAAAkR,UAAA,EAAmB;MACjB,OAAO,IAAI,IAAI,CAAC,WAAW,CAAC;IAC9B;;IAEA;AACF;AACA;AACA;EAHE;IAAAtQ,GAAA;IAAAZ,KAAA,EAIA,SAAAmR,UAAA,EAAmB;MACjB,OAAO,IAAI,IAAI,CAAC,WAAW,CAAC;IAC9B;;IAEA;AACF;AACA;AACA;EAHE;IAAAvQ,GAAA;IAAAZ,KAAA,EAIA,SAAAiS,YAAA,EAAqB;MACnB,OAAO,IAAI,IAAI,CAAC,aAAa,CAAC;IAChC;;IAEA;AACF;AACA;AACA;EAHE;IAAArR,GAAA;IAAAZ,KAAA,EAIA,SAAAkS,KAAA,EAAc;MACZ,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC;IACzB;;IAEA;AACF;AACA;AACA;EAHE;IAAAtR,GAAA;IAAAZ,KAAA,EAIA,SAAAmS,MAAA,EAAe;MACb,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC;IAC1B;;IAEA;AACF;AACA;AACA;EAHE;IAAAvR,GAAA;IAAAZ,KAAA,EAIA,SAAAoS,MAAA,EAAe;MACb,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC;IAC1B;EAAC;AAAA;AAIH;AACA;AACA;AACAnC,UAAU,CAACY,SAAS,GAAG;EACrB,GAAG,EAAE,IAAI;EACT,IAAI,EAAE,IAAI;EACV,GAAG,EAAE,IAAI;EACT,GAAG,EAAE,IAAI;EACT,IAAI,EAAE,KAAK;EACX,IAAI,EAAE,KAAK;EACX,IAAI,EAAE,KAAK;EACX,IAAI,EAAE,IAAI;EACV,GAAG,EAAE,KAAK;EACV,GAAG,EAAE,KAAK;EACV,GAAG,EAAE,KAAK;EACV,GAAG,EAAE,KAAK;EACV,GAAG,EAAE;AACP,CAAC;;AAED;AACA;AACA;AACAZ,UAAU,CAACyB,eAAe,GAAG;EAC3B,cAAc,EAAE,IAAI;EACpB,aAAa,EAAE,IAAI;EACnB,cAAc,EAAE,IAAI;EACpB,aAAa,EAAE,IAAI;EACnB,UAAU,EAAE,IAAI;EAChB,YAAY,EAAE,IAAI;EAClB,WAAW,EAAE,IAAI;EACjB,QAAQ,EAAE,GAAG;EACb,sBAAsB,EAAE,KAAK;EAC7B,kBAAkB,EAAE,KAAK;EACzB,gBAAgB,EAAE,IAAI;EACtB,eAAe,EAAE,IAAI;EACrB,oBAAoB,EAAE,KAAK;EAC3B,iBAAiB,EAAE,KAAK;EACxB,eAAe,EAAE,IAAI;EACrB,cAAc,EAAE,IAAI;EACpB,YAAY,EAAE,IAAI;EAClB,QAAQ,EAAE,IAAI;EACd,QAAQ,EAAE,IAAI;EACd,WAAW,EAAE,IAAI;EACjB,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,IAAI;EACb,MAAM,EAAE,MAAM;EACd,OAAO,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACAzB,UAAU,CAACoC,OAAO,GAAG,OAAO;AAEbpC,yDAAU,E;;;;;;;;;;;;;;;AClVa;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAtBA,IAuBMqC,SAAS,0BAAAC,WAAA;EACb,SAAAD,UAAYE,YAAY,EAAE;IAAArC,wBAAA,OAAAmC,SAAA;IAAA,OAAAG,UAAA,OAAAH,SAAA,GAClBE,YAAY;EACpB;;EAEA;AACF;AACA;AACA;AACA;AACA;EALEE,SAAA,CAAAJ,SAAA,EAAAC,WAAA;EAAA,OAAAjC,qBAAA,CAAAgC,SAAA;IAAA1R,GAAA;IAAAZ,KAAA,EAMA,SAAA0G,OAAOkK,QAAQ,EAAE5Q,KAAK,EAAE;MACtB,OAAO,IAAI,CAAC2Q,SAAS,CAAC,GAAG,EAAEC,QAAQ,EAAE5Q,KAAK,CAAC;IAC7C;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAAsG,MAAMsK,QAAQ,EAAE5Q,KAAK,EAAE;MACrB,OAAO,IAAI,CAAC2Q,SAAS,CAAC,GAAG,EAAEC,QAAQ,EAAE5Q,KAAK,CAAC;IAC7C;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAAiR,YAAYL,QAAQ,EAAE5Q,KAAK,EAAE;MAC3B,OAAO,IAAI,CAAC2Q,SAAS,CAAC,IAAI,EAAEC,QAAQ,EAAE5Q,KAAK,CAAC;IAC9C;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAAkR,UAAUN,QAAQ,EAAE5Q,KAAK,EAAE;MACzB,OAAO,IAAI,CAAC2Q,SAAS,CAAC,IAAI,EAAEC,QAAQ,EAAE5Q,KAAK,CAAC;IAC9C;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAAmR,UAAUP,QAAQ,EAAE5Q,KAAK,EAAE;MACzB,OAAO,IAAI,CAAC2Q,SAAS,CAAC,IAAI,EAAEC,QAAQ,EAAE5Q,KAAK,CAAC;IAC9C;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAA2S,SAAS/B,QAAQ,EAAE5Q,KAAK,EAAE;MACxB,OAAO,IAAI,CAAC2Q,SAAS,CAAC,IAAI,EAAEC,QAAQ,EAAE5Q,KAAK,CAAC;IAC9C;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAA4S,gBAAgBhC,QAAQ,EAAE5Q,KAAK,EAAE;MAC/B,OAAO,IAAI,CAAC2Q,SAAS,CAAC,KAAK,EAAEC,QAAQ,EAAE5Q,KAAK,CAAC;IAC/C;EAAC;AAAA,EAzEqBiQ,UAAU;AA4EnBqC,uDAAS,E;;;;;;;;;;;;;;ACrGxB;AACA;AACA;AACA;;AAQgB;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOMO,2BAAa;EACjB,SAAAA,cAAY3P,OAAO,EAAE;IAAAiN,4BAAA,OAAA0C,aAAA;IACnB,IAAI,CAACC,aAAa,GAAG5P,OAAO,IAAI,IAAI,GAAG,CAAC,CAAC,GAAG6P,mBAAS,CAAC7P,OAAO,CAAC;IAC9DyF,QAAQ,CAAC,IAAI,CAACmK,aAAa,EAAEE,4BAA4B,CAAC;EAC5D;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAVE,OAAA1C,yBAAA,CAAAuC,aAAA;IAAAjS,GAAA;IAAAZ,KAAA,EAWA,SAAAiT,KAAA,EAAO;MACL,IAAI,CAACC,eAAe,CAAC,CAAC;MACtB,IAAI,CAACC,YAAY,CAAC,CAAC;MACnB,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EAPE;IAAAvS,GAAA;IAAAZ,KAAA,EAQA,SAAAoT,IAAI9G,IAAI,EAAEtM,KAAK,EAAE;MACf,IAAI,CAAC8S,aAAa,CAACxG,IAAI,CAAC,GAAGtM,KAAK;MAChC,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAAqT,IAAI/G,IAAI,EAAE;MACR,OAAO,IAAI,CAACwG,aAAa,CAACxG,IAAI,CAAC;IACjC;EAAC;IAAA1L,GAAA;IAAAZ,KAAA,EAED,SAAAsT,MAAMC,MAAM,EAAE;MACZC,gBAAM,CAAC,IAAI,CAACV,aAAa,EAAEC,mBAAS,CAACQ,MAAM,CAAC,CAAC;MAC7C,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;EANE;IAAA3S,GAAA;IAAAZ,KAAA,EAOA,SAAAmT,aAAA,EAAe;MACb,IAAInP,EAAE,EAAEvE,CAAC,EAAEgQ,GAAG,EAAEgE,aAAa;MAC7BA,aAAa,GAAG,OAAOC,QAAQ,KAAK,WAAW,IAAIA,QAAQ,KAAK,IAAI,GAAGA,QAAQ,CAACC,gBAAgB,CAAC,2BAA2B,CAAC,GAAG,KAAK,CAAC;MACtI,IAAIF,aAAa,EAAE;QACjB,KAAKhU,CAAC,GAAG,CAAC,EAAEgQ,GAAG,GAAGgE,aAAa,CAACxU,MAAM,EAAEQ,CAAC,GAAGgQ,GAAG,EAAEhQ,CAAC,EAAE,EAAE;UACpDuE,EAAE,GAAGyP,aAAa,CAAChU,CAAC,CAAC;UACrB,IAAI,CAACqT,aAAa,CAAC9O,EAAE,CAACuI,YAAY,CAAC,MAAM,CAAC,CAAC/D,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,GAAGxE,EAAE,CAACuI,YAAY,CAAC,SAAS,CAAC;QACrG;MACF;MACA,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;EANE;IAAA3L,GAAA;IAAAZ,KAAA,EAOA,SAAAkT,gBAAA,EAAkB;MAAA,IAAAU,KAAA;MAChB,IAAIC,cAAc,EAAEC,KAAK,EAAEC,GAAG,EAAEC,QAAQ;MACxC,IAAG,OAAOC,OAAO,KAAK,WAAW,IAAIA,OAAO,KAAK,IAAI,IAAIA,OAAO,CAACC,GAAG,IAAID,OAAO,CAACC,GAAG,CAACC,cAAc,EAAE;QAClGN,cAAc,GAAGI,OAAO,CAACC,GAAG,CAACC,cAAc;QAC3CH,QAAQ,GAAG,8EAA8E;QACzFD,GAAG,GAAGC,QAAQ,CAACI,IAAI,CAACP,cAAc,CAAC;QACnC,IAAIE,GAAG,EAAE;UACP,IAAIA,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE;YAClB,IAAI,CAACjB,aAAa,CAAC,YAAY,CAAC,GAAGiB,GAAG,CAAC,CAAC,CAAC;UAC3C;UACA,IAAIA,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE;YAClB,IAAI,CAACjB,aAAa,CAAC,SAAS,CAAC,GAAGiB,GAAG,CAAC,CAAC,CAAC;UACxC;UACA,IAAIA,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE;YAClB,IAAI,CAACjB,aAAa,CAAC,YAAY,CAAC,GAAGiB,GAAG,CAAC,CAAC,CAAC;UAC3C;UACA,IAAIA,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE;YAClB,IAAI,CAACjB,aAAa,CAAC,aAAa,CAAC,GAAGiB,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI;UACpD;UACA,IAAIA,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE;YAClB,IAAI,CAACjB,aAAa,CAAC,qBAAqB,CAAC,GAAGiB,GAAG,CAAC,CAAC,CAAC;UACpD;UACAD,KAAK,GAAGC,GAAG,CAAC,CAAC,CAAC;UACd,IAAID,KAAK,IAAI,IAAI,EAAE;YACjBA,KAAK,CAAC9S,KAAK,CAAC,GAAG,CAAC,CAACN,OAAO,CAAC,UAAAV,KAAK,EAAE;cAC9B,IAAAqU,YAAA,GAAarU,KAAK,CAACgB,KAAK,CAAC,GAAG,CAAC;gBAAAsT,aAAA,GAAAC,cAAA,CAAAF,YAAA;gBAAxBG,CAAC,GAAAF,aAAA;gBAAEpM,CAAC,GAAAoM,aAAA;cACT,IAAIpM,CAAC,IAAI,IAAI,EAAE;gBACbA,CAAC,GAAG,IAAI;cACV;cACA0L,KAAI,CAACd,aAAa,CAAC0B,CAAC,CAAC,GAAGtM,CAAC;YAC3B,CAAC,CAAC;UACJ;QACF;MACF;MACA,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAbE;IAAAtH,GAAA;IAAAZ,KAAA,EAcA,SAAAuT,OAAOkB,UAAU,EAAEC,SAAS,EAAE;MAC5B,QAAQ,KAAK;QACX,KAAKA,SAAS,KAAK,KAAK,CAAC;UACvB,IAAI,CAACtB,GAAG,CAACqB,UAAU,EAAEC,SAAS,CAAC;UAC/B,OAAO,IAAI,CAAC5B,aAAa;QAC3B,KAAK,CAAChL,kBAAQ,CAAC2M,UAAU,CAAC;UACxB,OAAO,IAAI,CAACpB,GAAG,CAACoB,UAAU,CAAC;QAC7B,KAAK,CAACE,uBAAa,CAACF,UAAU,CAAC;UAC7B,IAAI,CAACnB,KAAK,CAACmB,UAAU,CAAC;UACtB,OAAO,IAAI,CAAC3B,aAAa;QAC3B;UACE;UACA,OAAO,IAAI,CAACA,aAAa;MAC7B;IACF;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAAlS,GAAA;IAAAZ,KAAA,EAKA,SAAA4U,UAAA,EAAY;MACV,OAAO7B,mBAAS,CAAC,IAAI,CAACD,aAAa,CAAC;IACtC;EAAC;AAAA;AAIH,IAAME,4BAA4B,GAAG;EACnC6B,gBAAgB,EAAE,gBAAgB;EAClCC,0BAA0B,EAAE,IAAI;EAChCC,SAAS,EAAE,IAAI;EACfC,MAAM,EAAE,CAAC,OAAOvR,MAAM,KAAK,WAAW,IAAIA,MAAM,KAAK,IAAI,GAAGA,MAAM,CAACwR,QAAQ,GAAGxR,MAAM,CAACwR,QAAQ,CAACC,QAAQ,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM;AAChI,CAAC;AAEDrC,2BAAa,CAACsC,aAAa,GAAG,CAC5B,SAAS,EACT,YAAY,EACZ,UAAU,EACV,eAAe,EACf,YAAY,EACZ,OAAO,EACP,aAAa,EACb,UAAU,EACV,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,4BAA4B,EAC5B,kBAAkB,EAClB,WAAW,EACX,QAAQ,EACR,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,MAAM,EACN,eAAe,EACf,YAAY,EACZ,eAAe,EACf,SAAS,EACT,mBAAmB,EACnB,gBAAgB,CACjB;AAEctC,iFAAa,E;;;;;;;;AC/MX;AAAA,IAEXuC,WAAK;EACT;AACF;AACA;AACA;AACA;EACE,SAAAA,MAAYlS,OAAO,EAAE;IAAA,IAAA0Q,KAAA;IAAAzD,oBAAA,OAAAiF,KAAA;IACnB,IAAI,CAAClS,OAAO,GAAG,CAAC,CAAC;IACjB,IAAIA,OAAO,IAAI,IAAI,EAAE;MACnB,CAAC,cAAc,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,CAACxC,OAAO,CAAC,UAACE,GAAG,EAAK;QAC9D,IAAIyU,GAAG;QACP,OAAOzB,KAAI,CAAC1Q,OAAO,CAACtC,GAAG,CAAC,GAAG,CAACyU,GAAG,GAAGnS,OAAO,CAACtC,GAAG,CAAC,KAAK,IAAI,GAAGyU,GAAG,GAAGnS,OAAO,CAACkH,SAAS,CAACxJ,GAAG,CAAC,CAAC;MACzF,CAAC,CAAC;IACJ;EACF;EAAC,OAAA0P,iBAAA,CAAA8E,KAAA;IAAAxU,GAAA;IAAAZ,KAAA,EAED,SAAAsV,aAAatV,KAAK,EAAE;MAClB,IAAI,CAACkD,OAAO,CAACoS,YAAY,GAAGtV,KAAK;MACjC,OAAO,IAAI;IACb;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAuF,KAAKvF,KAAK,EAAE;MACV,IAAI,CAACkD,OAAO,CAACqC,IAAI,GAAGvF,KAAK;MACzB,OAAO,IAAI;IACb;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAuV,SAASvV,KAAK,EAAE;MACd,IAAI,CAACkD,OAAO,CAACqS,QAAQ,GAAGvV,KAAK;MAC7B,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAAY,GAAA;IAAAZ,KAAA,EAKA,SAAAwV,YAAA,EAAc;MACZ,IAAIH,GAAG;MACP,OAAO,CAACA,GAAG,GAAG,IAAI,CAACnS,OAAO,CAACqS,QAAQ,KAAK,IAAI,GAAGF,GAAG,CAAC7M,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC;IACjF;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAA5H,GAAA;IAAAZ,KAAA,EAKA,SAAAyV,gBAAA,EAAkB;MAChB,IAAI,IAAI,CAACvS,OAAO,CAAC+B,MAAM,IAAI,IAAI,EAAE;QAC/B,OAAO,IAAI,CAACuQ,WAAW,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAACtS,OAAO,CAAC+B,MAAM;MACvD,CAAC,MAAM;QACL,OAAO,IAAI,CAACuQ,WAAW,CAAC,CAAC;MAC3B;IACF;EAAC;IAAA5U,GAAA;IAAAZ,KAAA,EAED,SAAAiF,OAAOjF,KAAK,EAAE;MACZ,IAAI,CAACkD,OAAO,CAAC+B,MAAM,GAAGjF,KAAK;MAC3B,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;EAHE;IAAAY,GAAA;IAAAZ,KAAA,EAIA,SAAAa,SAAA,EAAW;MACT,IAAI6U,UAAU;MACdA,UAAU,GAAG,EAAE;MACf,IAAI,IAAI,CAACxS,OAAO,CAACqS,QAAQ,IAAI,IAAI,EAAE;QACjC,MAAM,sBAAsB;MAC9B;MACA,IAAI,EAAE,IAAI,CAACrS,OAAO,CAACoS,YAAY,KAAK,OAAO,CAAC,EAAE;QAC5CI,UAAU,CAACrI,IAAI,CAAC,IAAI,CAACnK,OAAO,CAACoS,YAAY,CAAC;MAC5C;MACA,IAAI,EAAE,IAAI,CAACpS,OAAO,CAACqC,IAAI,KAAK,QAAQ,CAAC,EAAE;QACrCmQ,UAAU,CAACrI,IAAI,CAAC,IAAI,CAACnK,OAAO,CAACqC,IAAI,CAAC;MACpC;MACAmQ,UAAU,CAACrI,IAAI,CAAC,IAAI,CAACoI,eAAe,CAAC,CAAC,CAAC;MACvC,OAAOE,iBAAO,CAACD,UAAU,CAAC,CAACtU,IAAI,CAAC,GAAG,CAAC;IACtC;EAAC;IAAAR,GAAA;IAAAZ,KAAA,EAED,SAAA4V,MAAA,EAAQ;MACN,OAAO,IAAI,IAAI,CAACC,WAAW,CAAC,IAAI,CAAC3S,OAAO,CAAC;IAC3C;EAAC;AAAA;AAIYkS,2DAAK,E;;;;;;;;;;;;;;;AC1FQ;AAQX;AAAA,IAEXU,mBAAS,0BAAAC,MAAA;EACb;AACF;AACA;AACA;EACE,SAAAD,UAAY5S,OAAO,EAAE;IAAA,IAAA0Q,KAAA;IAAAzD,wBAAA,OAAA2F,SAAA;IACnB,IAAIzO,IAAI;IACRuM,KAAA,GAAAnB,mBAAA,OAAAqD,SAAA,GAAM5S,OAAO;IACbmE,IAAI,GAAG,CAAC,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,EAAE,WAAW,CAAC;IAC7N,IAAInE,OAAO,IAAI,IAAI,EAAE;MACnBmE,IAAI,CAAC3G,OAAO,CAAC,UAACE,GAAG,EAAK;QACpB,IAAIyU,GAAG;QACP,OAAOzB,KAAA,CAAK1Q,OAAO,CAACtC,GAAG,CAAC,GAAG,CAACyU,GAAG,GAAGnS,OAAO,CAACtC,GAAG,CAAC,KAAK,IAAI,GAAGyU,GAAG,GAAGnS,OAAO,CAACkH,SAAS,CAACxJ,GAAG,CAAC,CAAC;MACzF,CAAC,CAAC;IACJ;IACAgT,KAAA,CAAK1Q,OAAO,CAACoS,YAAY,GAAG,MAAM;IAAC,OAAA1B,KAAA;EACrC;EAAClB,kBAAA,CAAAoD,SAAA,EAAAC,MAAA;EAAA,OAAAzF,qBAAA,CAAAwF,SAAA;IAAAlV,GAAA;IAAAZ,KAAA,EAED,SAAAsV,aAAaA,aAAY,EAAE;MACzB,MAAM,4CAA4C;IACpD;EAAC;IAAA1U,GAAA;IAAAZ,KAAA,EAED,SAAAuF,KAAKA,KAAI,EAAE;MACT,MAAM,oCAAoC;IAC5C;EAAC;IAAA3E,GAAA;IAAAZ,KAAA,EAED,SAAAiF,OAAOA,OAAM,EAAE;MACb,MAAM,sCAAsC;IAC9C;EAAC;IAAArE,GAAA;IAAAZ,KAAA,EAED,SAAAgW,WAAWA,WAAU,EAAE;MACrB,IAAI,CAAC9S,OAAO,CAAC8S,UAAU,GAAGA,WAAU;MACpC,OAAO,IAAI;IACb;EAAC;IAAApV,GAAA;IAAAZ,KAAA,EAED,SAAAiW,SAASA,SAAQ,EAAE;MACjB,IAAI,CAAC/S,OAAO,CAAC+S,QAAQ,GAAGA,SAAQ;MAChC,OAAO,IAAI;IACb;EAAC;IAAArV,GAAA;IAAAZ,KAAA,EAED,SAAAkW,WAAWA,WAAU,EAAE;MACrB,IAAI,CAAChT,OAAO,CAACgT,UAAU,GAAGA,WAAU;MACpC,OAAO,IAAI;IACb;EAAC;IAAAtV,GAAA;IAAAZ,KAAA,EAED,SAAAmW,UAAUA,UAAS,EAAE;MACnB,IAAI,CAACjT,OAAO,CAACiT,SAAS,GAAGA,UAAS;MAClC,OAAO,IAAI;IACb;EAAC;IAAAvV,GAAA;IAAAZ,KAAA,EAED,SAAAoW,eAAeA,eAAc,EAAE;MAC7B,IAAI,CAAClT,OAAO,CAACkT,cAAc,GAAGA,eAAc;MAC5C,OAAO,IAAI;IACb;EAAC;IAAAxV,GAAA;IAAAZ,KAAA,EAED,SAAAqW,UAAUA,UAAS,EAAE;MACnB,IAAI,CAACnT,OAAO,CAACmT,SAAS,GAAGA,UAAS;MAClC,OAAO,IAAI;IACb;EAAC;IAAAzV,GAAA;IAAAZ,KAAA,EAED,SAAAsW,OAAOA,OAAM,EAAE;MACb,IAAI,CAACpT,OAAO,CAACoT,MAAM,GAAGA,OAAM;MAC5B,OAAO,IAAI;IACb;EAAC;IAAA1V,GAAA;IAAAZ,KAAA,EAED,SAAAuW,cAAcA,cAAa,EAAE;MAC3B,IAAI,CAACrT,OAAO,CAACqT,aAAa,GAAGA,cAAa;MAC1C,OAAO,IAAI;IACb;EAAC;IAAA3V,GAAA;IAAAZ,KAAA,EAED,SAAAwW,YAAYA,YAAW,EAAE;MACvB,IAAI,CAACtT,OAAO,CAACsT,WAAW,GAAGA,YAAW;MACtC,OAAO,IAAI;IACb;EAAC;IAAA5V,GAAA;IAAAZ,KAAA,EAED,SAAAyW,YAAaA,YAAW,EAAC;MACvB,IAAI,CAACvT,OAAO,CAACuT,WAAW,GAAGA,YAAW;MACtC,OAAO,IAAI;IACb;EAAC;IAAA7V,GAAA;IAAAZ,KAAA,EAED,SAAA0W,iBAAkBA,iBAAgB,EAAC;MACjC,IAAI,CAACxT,OAAO,CAACwT,gBAAgB,GAAGA,iBAAgB;MAChD,OAAO,IAAI;IACb;EAAC;IAAA9V,GAAA;IAAAZ,KAAA,EAED,SAAA2W,KAAKA,KAAI,EAAE;MACT,IAAI,CAACzT,OAAO,CAACyT,IAAI,GAAGA,KAAI;MACxB,OAAO,IAAI;IACb;EAAC;IAAA/V,GAAA;IAAAZ,KAAA,EAED,SAAA4W,UAAUA,UAAS,EAAE;MACnB,IAAI,CAAC1T,OAAO,CAAC0T,SAAS,GAAGA,UAAS;MAClC,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAAhW,GAAA;IAAAZ,KAAA,EAKA,SAAAa,SAAA,EAAW;MACT,IAAI6U,UAAU,EAAEmB,WAAW,EAAEC,QAAQ,EAAEvB,QAAQ,EAAEwB,EAAE,EAAEC,GAAG,EAAEnY,KAAK,EAAE4P,KAAK,EAAEkI,IAAI,EAAEM,UAAU;MACxFxI,KAAK,GAAG,IAAI,CAACyI,mBAAmB,CAAC,CAAC;MAClC,IAAI,IAAI,CAAChU,OAAO,CAACqS,QAAQ,IAAI,IAAI,EAAE;QACjCA,QAAQ,GAAG,IAAI,CAACE,eAAe,CAAC,CAAC;MACnC;MACA,IAAI,IAAI,CAACvS,OAAO,CAACyT,IAAI,IAAI,IAAI,EAAE;QAC7BE,WAAW,GAAG,CAACrM,OAAO,CAAC+K,QAAQ,CAAC;QAChCuB,QAAQ,GAAG,CAACtM,OAAO,CAACiE,KAAK,CAAC;QAC1B,IAAIoI,WAAW,IAAIC,QAAQ,IAAI,CAACD,WAAW,IAAI,CAACC,QAAQ,EAAE;UACxD,MAAM,4HAA4H;QACpI;QACAC,EAAE,GAAG,oBAAoB;QACzBlY,KAAK,GAAG,CAAC;QACT;QACAoY,UAAU,GAAG3O,WAAW,CAAC,IAAI,CAACpF,OAAO,CAACyT,IAAI,EAAE,QAAQ,CAAC;QACrDA,IAAI,GAAG,EAAE;QACT,OAAOK,GAAG,GAAGD,EAAE,CAAC3C,IAAI,CAAC6C,UAAU,CAAC,EAAE;UAChCN,IAAI,IAAIrO,WAAW,CAAC2O,UAAU,CAAC5X,KAAK,CAACR,KAAK,EAAEmY,GAAG,CAACG,KAAK,CAAC,CAAC;UACvDR,IAAI,IAAIK,GAAG,CAAC,CAAC,CAAC;UACdnY,KAAK,GAAGmY,GAAG,CAACG,KAAK,GAAGH,GAAG,CAAC,CAAC,CAAC,CAAC/X,MAAM;QACnC;QACA0X,IAAI,IAAIrO,WAAW,CAAC2O,UAAU,CAAC5X,KAAK,CAACR,KAAK,CAAC,CAAC;MAC9C;MACA6W,UAAU,GAAG,CAAC,IAAI,CAACxS,OAAO,CAACoS,YAAY,EAAE7G,KAAK,EAAE8G,QAAQ,EAAEoB,IAAI,CAAC;MAC/D,OAAOhB,iBAAO,CAACD,UAAU,CAAC,CAACtU,IAAI,CAAC,GAAG,CAAC;IACtC;EAAC;IAAAR,GAAA;IAAAZ,KAAA,EAED,SAAAkX,oBAAA,EAAsB;MACpB;MACA,IAAI,CAAC1M,OAAO,CAAC,IAAI,CAACtH,OAAO,CAAC0T,SAAS,CAAC,EAAE;QACpC,OAAO,IAAI,CAAC1T,OAAO,CAAC0T,SAAS;MAC/B;MACA,IAAIlB,UAAU;MACdA,UAAU,GAAG,EAAE;MACf,IAAI,IAAI,CAACxS,OAAO,CAACgT,UAAU,KAAK,QAAQ,EAAE;QACxCR,UAAU,CAACrI,IAAI,CAAC,IAAI,CAACnK,OAAO,CAACgT,UAAU,CAAC;MAC1C;MACA,IAAI,IAAI,CAAChT,OAAO,CAACiT,SAAS,KAAK,QAAQ,EAAE;QACvCT,UAAU,CAACrI,IAAI,CAAC,IAAI,CAACnK,OAAO,CAACiT,SAAS,CAAC;MACzC;MACA,IAAI,IAAI,CAACjT,OAAO,CAACkT,cAAc,KAAK,MAAM,EAAE;QAC1CV,UAAU,CAACrI,IAAI,CAAC,IAAI,CAACnK,OAAO,CAACkT,cAAc,CAAC;MAC9C;MACAV,UAAU,CAACrI,IAAI,CAAC,IAAI,CAACnK,OAAO,CAACmT,SAAS,CAAC;MACvC,IAAI,IAAI,CAACnT,OAAO,CAACoT,MAAM,KAAK,MAAM,EAAE;QAClCZ,UAAU,CAACrI,IAAI,CAAC,IAAI,CAACnK,OAAO,CAACoT,MAAM,CAAC;MACtC;MACA,IAAI,EAAE9L,OAAO,CAAC,IAAI,CAACtH,OAAO,CAACqT,aAAa,CAAC,IAAI,CAACpO,YAAY,CAAC,IAAI,CAACjF,OAAO,CAACqT,aAAa,CAAC,CAAC,EAAE;QACvFb,UAAU,CAACrI,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAACnK,OAAO,CAACqT,aAAa,CAAC;MACjE;MACA,IAAI,EAAE/L,OAAO,CAAC,IAAI,CAACtH,OAAO,CAACsT,WAAW,CAAC,IAAI,CAACrO,YAAY,CAAC,IAAI,CAACjF,OAAO,CAACsT,WAAW,CAAC,CAAC,EAAE;QACnFd,UAAU,CAACrI,IAAI,CAAC,eAAe,GAAG,IAAI,CAACnK,OAAO,CAACsT,WAAW,CAAC;MAC7D;MACA,IAAI,CAAEhM,OAAO,CAAC,IAAI,CAACtH,OAAO,CAACwT,gBAAgB,CAAE,EAAE;QAC7ChB,UAAU,CAACrI,IAAI,CAAC,YAAY,GAAC,IAAI,CAACnK,OAAO,CAACwT,gBAAgB,CAAC;MAC7D;MACA,IAAI,CAAElM,OAAO,CAAC,IAAI,CAACtH,OAAO,CAACuT,WAAW,CAAE,EAAE;QACxCf,UAAU,CAACrI,IAAI,CAAC,UAAU,GAAC,IAAI,CAACnK,OAAO,CAACuT,WAAY,CAAC;MACvD;MACA,IAAI,CAACjM,OAAO,CAACmL,iBAAO,CAACD,UAAU,CAAC,CAAC,EAAE;QACjC,IAAIlL,OAAO,CAAC,IAAI,CAACtH,OAAO,CAAC8S,UAAU,CAAC,EAAE;UACpC,iCAAAlT,MAAA,CAAiC4S,UAAU;QAC7C;QACA,IAAIlL,OAAO,CAAC,IAAI,CAACtH,OAAO,CAAC+S,QAAQ,CAAC,IAAI,CAAC9N,YAAY,CAAC,IAAI,CAACjF,OAAO,CAAC+S,QAAQ,CAAC,EAAE;UAC1E,MAAM,uBAAuB;QAC/B;MACF;MACAP,UAAU,CAAC0B,OAAO,CAAC,IAAI,CAAClU,OAAO,CAAC8S,UAAU,EAAE,IAAI,CAAC9S,OAAO,CAAC+S,QAAQ,CAAC;MAClEP,UAAU,GAAGC,iBAAO,CAACD,UAAU,CAAC,CAACtU,IAAI,CAAC,GAAG,CAAC;MAC1C,OAAOsU,UAAU;IACnB;EAAC;AAAA,EA3KqBN,WAAK;AA6K5B;AAEcU,iEAAS,E;;;;;;;;;;;;;;;ACzLY;AAAA,IAE9BuB,cAAc,0BAAAC,UAAA;EAClB;AACF;AACA;AACA;AACA;EACE,SAAAD,eAAYnU,OAAO,EAAE;IAAA,IAAA0Q,KAAA;IAAAzD,6BAAA,OAAAkH,cAAA;IACnBzD,KAAA,GAAAnB,wBAAA,OAAA4E,cAAA,GAAMnU,OAAO;IACb0Q,KAAA,CAAK1Q,OAAO,CAACoS,YAAY,GAAG,WAAW;IAAC,OAAA1B,KAAA;EAC1C;EAAClB,uBAAA,CAAA2E,cAAA,EAAAC,UAAA;EAAA,OAAAhH,0BAAA,CAAA+G,cAAA;AAAA,EAT0BvB,SAAS;AAYvBuB,iEAAc,E;;;;;;;;;;;;;;;ACdD;AAKX;AAAA,IAEXE,qBAAU,0BAAAxB,MAAA;EACd;AACF;AACA;AACA;AACA;AACA;EACE,SAAAwB,WAAYrU,OAAO,EAAE;IAAA,IAAA0Q,KAAA;IAAAzD,yBAAA,OAAAoH,UAAA;IACnB3D,KAAA,GAAAnB,oBAAA,OAAA8E,UAAA,GAAMrU,OAAO;IACb,IAAI4E,kBAAQ,CAAC5E,OAAO,CAAC,EAAE;MACrB0Q,KAAA,CAAK1Q,OAAO,CAAC+H,GAAG,GAAG/H,OAAO;IAC5B,CAAC,MAAM,IAAIA,OAAO,IAAI,IAAI,GAAGA,OAAO,CAAC+H,GAAG,GAAG,KAAK,CAAC,EAAE;MACjD2I,KAAA,CAAK1Q,OAAO,CAAC+H,GAAG,GAAG/H,OAAO,CAAC+H,GAAG;IAChC;IAAC,OAAA2I,KAAA;EACH;EAAClB,mBAAA,CAAA6E,UAAA,EAAAxB,MAAA;EAAA,OAAAzF,sBAAA,CAAAiH,UAAA;IAAA3W,GAAA;IAAAZ,KAAA,EAED,SAAAiL,IAAIA,IAAG,EAAE;MACP,IAAI,CAAC/H,OAAO,CAAC+H,GAAG,GAAGA,IAAG;MACtB,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAArK,GAAA;IAAAZ,KAAA,EAKA,SAAAa,SAAA,EAAW;MACT,gBAAAiC,MAAA,CAAgBkI,eAAe,CAAC,IAAI,CAAC9H,OAAO,CAAC+H,GAAG,CAAC;IACnD;EAAC;AAAA,EA5BsBmK,WAAK;AAgCfmC,oEAAU,E;;;;;;;;;;;;;;;;;ACvCa;AACQ;AAW9B;AAEkB;AACQ;AACU;AACR;;AAE5C;AACA;AACA;AACA;AAHA,IAIMC,gBAAK;EACT;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,SAAAA,MAAYlL,IAAI,EAAEmL,SAAS,EAAsB;IAAA,IAApBxD,OAAO,GAAAhS,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAGyV,kBAAQ;IAAAvH,yBAAA,OAAAqH,KAAA;IAC7C;AACJ;AACA;AACA;IACI,IAAI,CAAClL,IAAI,GAAGA,IAAI;IAChB;AACJ;AACA;AACA;IACI,IAAI,CAACmL,SAAS,GAAGA,SAAS;IAC1B;AACJ;AACA;AACA;IACI,IAAI,CAACxD,OAAO,GAAGA,OAAO;EACxB;;EAEA;AACF;AACA;AACA;AACA;AACA;EALE,OAAA3D,sBAAA,CAAAkH,KAAA;IAAA5W,GAAA;IAAAZ,KAAA,EAMA,SAAAoT,IAAIuE,SAAS,EAAE;MACb,IAAI,CAACA,SAAS,GAAGA,SAAS;MAC1B,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAA/W,GAAA;IAAAZ,KAAA,EAKA,SAAAuQ,UAAA,EAAY;MACV,IAAIlB,GAAG,EAAEuI,KAAK;MACdvI,GAAG,GAAG,IAAI,CAACrP,KAAK,CAAC,CAAC;MAClB4X,KAAK,GAAGC,iBAAO,CAACxI,GAAG,CAAC,IAAIsF,uBAAa,CAACtF,GAAG,CAAC,IAAIvH,kBAAQ,CAACuH,GAAG,CAAC,GAAG,CAAC7E,OAAO,CAAC6E,GAAG,CAAC,GAAGA,GAAG,IAAI,IAAI;MACzF,IAAK,IAAI,CAACoI,SAAS,IAAI,IAAI,IAAKG,KAAK,EAAE;QACrC,UAAA9U,MAAA,CAAU,IAAI,CAAC2U,SAAS,OAAA3U,MAAA,CAAIuM,GAAG;MACjC,CAAC,MAAM;QACL,OAAO,EAAE;MACX;IACF;;IAEA;AACF;AACA;AACA;EAHE;IAAAzO,GAAA;IAAAZ,KAAA,EAIA,SAAAA,MAAA,EAAQ;MACN,OAAO,IAAI,CAACiU,OAAO,CAAC,IAAI,CAAC0D,SAAS,CAAC;IACrC;EAAC;IAAA/W,GAAA;IAAAZ,KAAA,EAED,SAAA8X,WAAkB9X,KAAK,EAAE;MACvB,OAAOA,KAAK,IAAI,IAAI,GAAGA,KAAK,CAACwI,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;IAC7D;EAAC;IAAA5H,GAAA;IAAAZ,KAAA,EAED,SAAA+X,YAAmBC,GAAG,EAAE;MACtB,IAAGA,GAAG,IAAI,IAAI,EAAE;QACd,OAAO,EAAE;MACX,CAAC,MAAM,IAAIH,iBAAO,CAACG,GAAG,CAAC,EAAE;QACvB,OAAOA,GAAG;MACZ,CAAC,MAAM;QACL,OAAO,CAACA,GAAG,CAAC;MACd;IACF;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAXE;IAAApX,GAAA;IAAAZ,KAAA,EAYA,SAAAiY,qBAA4BC,KAAK,EAAE;MACjC,IAAIC,KAAK;MACT,QAAQD,KAAK,CAACrC,WAAW;QACvB,KAAKtO,MAAM;UACT4Q,KAAK,GAAG,EAAE;UACV,IAAI,OAAO,IAAID,KAAK,EAAE;YACpBC,KAAK,GAAGD,KAAK,CAACE,KAAK;YACnB,IAAI,SAAS,IAAIF,KAAK,EAAE;cACtBC,KAAK,IAAI,GAAG,GAAGD,KAAK,CAACG,OAAO;cAC5B,IAAI,OAAO,IAAIH,KAAK,EAAE;gBACpBC,KAAK,IAAI,GAAG,GAAGD,KAAK,CAACI,KAAK;gBAC1B,IAAI,UAAU,IAAIJ,KAAK,IAAIA,KAAK,CAACK,QAAQ,KAAK,KAAK,EAAE;kBACnDJ,KAAK,IAAI,aAAa;gBACxB;cACF;YACF;UACF;UACA,OAAOA,KAAK;QACd,KAAKhZ,MAAM;UACT,OAAO+Y,KAAK;QACd;UACE,OAAO,IAAI;MACf;IACF;EAAC;AAAA;AAAA,IAGGM,qBAAU,0BAAAC,MAAA;EACd;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,SAAAD,WAAYlM,IAAI,EAAEmL,SAAS,EAAkC;IAAA,IAAA7D,KAAA;IAAA,IAAhC8E,GAAG,GAAAzW,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,GAAG;IAAA,IAAEgS,OAAO,GAAAhS,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAGC,SAAS;IAAAiO,yBAAA,OAAAqI,UAAA;IACzD5E,KAAA,GAAAnB,oBAAA,OAAA+F,UAAA,GAAMlM,IAAI,EAAEmL,SAAS,EAAExD,OAAO;IAC9BL,KAAA,CAAK8E,GAAG,GAAGA,GAAG;IAAC,OAAA9E,KAAA;EACjB;EAAClB,mBAAA,CAAA8F,UAAA,EAAAC,MAAA;EAAA,OAAAnI,sBAAA,CAAAkI,UAAA;IAAA5X,GAAA;IAAAZ,KAAA,EAED,SAAAuQ,UAAA,EAAY;MACV,IAAI,IAAI,CAACkH,SAAS,IAAI,IAAI,EAAE;QAC1B,IAAIkB,UAAU,GAAG,IAAI,CAAC3Y,KAAK,CAAC,CAAC;QAC7B,IAAIwK,OAAO,CAACmO,UAAU,CAAC,EAAE;UACvB,OAAO,EAAE;QACX,CAAC,MAAM,IAAI7Q,kBAAQ,CAAC6Q,UAAU,CAAC,EAAE;UAC/B,UAAA7V,MAAA,CAAU,IAAI,CAAC2U,SAAS,OAAA3U,MAAA,CAAI6V,UAAU;QACxC,CAAC,MAAM;UACL,IAAIC,IAAI,GAAGD,UAAU,CAACnY,GAAG,CAAC,UAAAqY,CAAC;YAAA,OAAErP,oBAAU,CAACqP,CAAC,CAACtI,SAAS,CAAC,GAAGsI,CAAC,CAACtI,SAAS,CAAC,CAAC,GAAGsI,CAAC;UAAA,EAAC,CAACzX,IAAI,CAAC,IAAI,CAACsX,GAAG,CAAC;UACxF,UAAA5V,MAAA,CAAU,IAAI,CAAC2U,SAAS,OAAA3U,MAAA,CAAI8V,IAAI;QAClC;MACF,CAAC,MAAM;QACL,OAAO,EAAE;MACX;IACF;EAAC;IAAAhY,GAAA;IAAAZ,KAAA,EAED,SAAAA,MAAA,EAAQ;MAAA,IAAA8Y,MAAA;MACN,IAAIjB,iBAAO,CAAC,IAAI,CAACF,SAAS,CAAC,EAAE;QAC3B,OAAO,IAAI,CAACA,SAAS,CAACnX,GAAG,CAAC,UAAA0H,CAAC;UAAA,OAAE4Q,MAAI,CAAC7E,OAAO,CAAC/L,CAAC,CAAC;QAAA,EAAC;MAC/C,CAAC,MAAM;QACL,OAAO,IAAI,CAAC+L,OAAO,CAAC,IAAI,CAAC0D,SAAS,CAAC;MACrC;IACF;EAAC;IAAA/W,GAAA;IAAAZ,KAAA,EAED,SAAAoT,IAAIuE,SAAS,EAAE;MACb,IAAKA,SAAS,IAAI,IAAI,IAAKE,iBAAO,CAACF,SAAS,CAAC,EAAE;QAC7C,OAAAoB,IAAA,CAAAC,yBAAA,CAAAR,UAAA,CAAA1U,SAAA,gBAAA2F,IAAA,OAAiBkO,SAAS;MAC5B,CAAC,MAAM;QACL,OAAAoB,IAAA,CAAAC,yBAAA,CAAAR,UAAA,CAAA1U,SAAA,gBAAA2F,IAAA,OAAiB,CAACkO,SAAS,CAAC;MAC9B;IACF;EAAC;AAAA,EA/CsBH,gBAAK;AAAA,IAkDxByB,8BAAmB,0BAAAC,OAAA;EACvB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,SAAAD,oBAAY3M,IAAI,EAAmD;IAAA,IAAA6M,MAAA;IAAA,IAAjD1B,SAAS,GAAAxV,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,GAAG;IAAA,IAAEyW,GAAG,GAAAzW,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,GAAG;IAAA,IAAEgS,OAAO,GAAAhS,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAGC,SAAS;IAAAiO,yBAAA,OAAA8I,mBAAA;IAC/DE,MAAA,GAAA1G,oBAAA,OAAAwG,mBAAA,GAAM3M,IAAI,EAAEmL,SAAS,EAAExD,OAAO;IAC9BkF,MAAA,CAAKT,GAAG,GAAGA,GAAG;IAAC,OAAAS,MAAA;EACjB;;EAEA;AACF;AACA;AACA;EAHEzG,mBAAA,CAAAuG,mBAAA,EAAAC,OAAA;EAAA,OAAA5I,sBAAA,CAAA2I,mBAAA;IAAArY,GAAA;IAAAZ,KAAA,EAIA,SAAAuQ,UAAA,EAAY;MAAA,IAAA6I,MAAA;MACV,IAAI7O,MAAM,GAAG,EAAE;MACf,IAAM8E,GAAG,GAAG,IAAI,CAACrP,KAAK,CAAC,CAAC;MAExB,IAAIwK,OAAO,CAAC6E,GAAG,CAAC,EAAE;QAChB,OAAO9E,MAAM;MACf;;MAEA;MACA,IAAI5C,mBAAU,CAAC0H,GAAG,CAAC,EAAE;QACnB,IAAMgK,MAAM,GAAGhK,GAAG,CAACjO,IAAI,CAAC,IAAI,CAACsX,GAAG,CAAC,CAAC,CAAE;QACpC,IAAI,CAAClO,OAAO,CAAC6O,MAAM,CAAC,EAAE;UACpB;UACA9O,MAAM,MAAAzH,MAAA,CAAM,IAAI,CAAC2U,SAAS,OAAA3U,MAAA,CAAIuW,MAAM,CAAE;QACxC;MACF,CAAC,MAAM;QAAE;QACP9O,MAAM,GAAG8E,GAAG,CAAC7O,GAAG,CAAC,UAAAqY,CAAC,EAAI;UACpB,IAAI/Q,kBAAQ,CAAC+Q,CAAC,CAAC,IAAI,CAACrO,OAAO,CAACqO,CAAC,CAAC,EAAE;YAC9B,UAAA/V,MAAA,CAAUsW,MAAI,CAAC3B,SAAS,OAAA3U,MAAA,CAAI+V,CAAC;UAC/B;UACA,IAAIrP,oBAAU,CAACqP,CAAC,CAACtI,SAAS,CAAC,EAAE;YAC3B,OAAOsI,CAAC,CAACtI,SAAS,CAAC,CAAC;UACtB;UACA,IAAIoE,uBAAa,CAACkE,CAAC,CAAC,IAAI,CAACrO,OAAO,CAACqO,CAAC,CAAC,EAAE;YACnC,OAAO,IAAIS,kBAAc,CAACT,CAAC,CAAC,CAACtI,SAAS,CAAC,CAAC;UAC1C;UACA,OAAOrO,SAAS;QAClB,CAAC,CAAC,CAACsF,MAAM,CAAC,UAAAqR,CAAC;UAAA,OAAEA,CAAC;QAAA,EAAC;MACjB;MACA,OAAOtO,MAAM;IACf;EAAC;IAAA3J,GAAA;IAAAZ,KAAA,EAED,SAAAoT,IAAImG,UAAU,EAAE;MACd,IAAI,CAAC5B,SAAS,GAAG4B,UAAU;MAC3B,IAAI1B,iBAAO,CAAC,IAAI,CAACF,SAAS,CAAC,EAAE;QAC3B,OAAAoB,IAAA,CAAAC,yBAAA,CAAAC,mBAAA,CAAAnV,SAAA,gBAAA2F,IAAA,OAAiB,IAAI,CAACkO,SAAS;MACjC,CAAC,MAAM;QACL,OAAAoB,IAAA,CAAAC,yBAAA,CAAAC,mBAAA,CAAAnV,SAAA,gBAAA2F,IAAA,OAAiB,CAAC,IAAI,CAACkO,SAAS,CAAC;MACnC;IACF;EAAC;AAAA,EA3D+BH,gBAAK;AA8DvC,IAAMgC,cAAc,GAAG,8BAA8B;AACrD,IAAMC,kBAAkB,GAAG,GAAG,GAAGD,cAAc,GAAG,WAAW;AAAC,IAExDE,qBAAU,0BAAAC,OAAA;EAEd;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,SAAAD,WAAYpN,IAAI,EAAEmL,SAAS,EAAyC;IAAA,IAAvCxD,OAAO,GAAAhS,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAGyX,UAAU,CAACE,gBAAgB;IAAAzJ,yBAAA,OAAAuJ,UAAA;IAAA,OAAAjH,oBAAA,OAAAiH,UAAA,GAC1DpN,IAAI,EAAEmL,SAAS,EAAExD,OAAO;EAChC;EAACvB,mBAAA,CAAAgH,UAAA,EAAAC,OAAA;EAAA,OAAArJ,sBAAA,CAAAoJ,UAAA;IAAA9Y,GAAA;IAAAZ,KAAA,EACD,SAAA4Z,iBAAwB5Z,KAAK,EAAE;MAE7B,IAAI6Z,MAAM,GAAG1a,MAAM,CAACa,KAAK,CAAC,CAAC4B,KAAK,CAAC,IAAIiI,MAAM,CAAC,GAAG,GAAG4P,kBAAkB,GAAG,GAAG,CAAC,CAAC;MAC5E,IAAII,MAAM,EAAE;QACV,IAAIC,QAAQ,GAAGD,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,GAAG,GAAG,EAAE;QAC3C7Z,KAAK,GAAG,CAAC6Z,MAAM,CAAC,CAAC,CAAC,IAAIA,MAAM,CAAC,CAAC,CAAC,IAAIC,QAAQ;MAC7C;MACA,OAAO7J,UAAU,CAACI,SAAS,CAACrQ,KAAK,CAAC;IACpC;EAAC;AAAA,EAvBsBwX,gBAAK;AAAA,IA0BxBuC,mBAAQ,0BAAAC,OAAA;EACZ,SAAAD,SAAYzN,IAAI,EAAEmL,SAAS,EAAsB;IAAA,IAApBxD,OAAO,GAAAhS,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAGyV,kBAAQ;IAAAvH,yBAAA,OAAA4J,QAAA;IAAA,OAAAtH,oBAAA,OAAAsH,QAAA,GACvCzN,IAAI,EAAEmL,SAAS,EAAExD,OAAO;EAChC;EAACvB,mBAAA,CAAAqH,QAAA,EAAAC,OAAA;EAAA,OAAA1J,sBAAA,CAAAyJ,QAAA;IAAAnZ,GAAA;IAAAZ,KAAA,EAED,SAAAuQ,UAAA,EAAY;MACV,OAAO,IAAI,CAACvQ,KAAK,CAAC,CAAC;IACrB;EAAC;AAAA,EAPoBwX,gBAAK;AAAA,IAWtByC,qBAAU,0BAAAC,OAAA;EAAA,SAAAD,WAAA;IAAA9J,yBAAA,OAAA8J,UAAA;IAAA,OAAAxH,oBAAA,OAAAwH,UAAA,EAAAhY,SAAA;EAAA;EAAAyQ,mBAAA,CAAAuH,UAAA,EAAAC,OAAA;EAAA,OAAA5J,sBAAA,CAAA2J,UAAA;IAAArZ,GAAA;IAAAZ,KAAA;IACd;IACA;IACA;IACA,SAAAA,MAAA,EAAQ;MACN,IAAI,IAAI,CAAC2X,SAAS,IAAI,IAAI,EAAE;QAC1B,OAAO,EAAE;MACX;MACA,IAAIpN,MAAM;MACV,IAAI,IAAI,CAACoN,SAAS,YAAYvC,WAAK,EAAE;QACnC7K,MAAM,GAAG,IAAI,CAACoN,SAAS;MACzB,CAAC,MAAM,IAAIhD,uBAAa,CAAC,IAAI,CAACgD,SAAS,CAAC,EAAE;QACxC,IAAIwC,YAAY,GAAG1P,iBAAiB,CAAC,IAAI,CAACkN,SAAS,CAAC;QACpD,IAAIwC,YAAY,CAAC7E,YAAY,KAAK,MAAM,IAAK6E,YAAY,CAACxD,IAAI,IAAI,IAAK,EAAE;UACvEpM,MAAM,GAAG,IAAIuL,SAAS,CAACqE,YAAY,CAAC;QACtC,CAAC,MAAM,IAAIA,YAAY,CAAC7E,YAAY,KAAK,WAAW,EAAE;UACpD/K,MAAM,GAAG,IAAI8M,cAAc,CAAC8C,YAAY,CAAC;QAC3C,CAAC,MAAM,IAAIA,YAAY,CAAC7E,YAAY,KAAK,OAAO,IAAK6E,YAAY,CAAClP,GAAG,IAAI,IAAK,EAAE;UAC9EV,MAAM,GAAG,IAAIgN,UAAU,CAAC4C,YAAY,CAAC;QACvC,CAAC,MAAM;UACL5P,MAAM,GAAG,IAAI6K,WAAK,CAAC+E,YAAY,CAAC;QAClC;MACF,CAAC,MAAM,IAAIrS,kBAAQ,CAAC,IAAI,CAAC6P,SAAS,CAAC,EAAE;QACnC,IAAI,WAAW,CAAC5L,IAAI,CAAC,IAAI,CAAC4L,SAAS,CAAC,EAAE;UACpCpN,MAAM,GAAG,IAAIgN,UAAU,CAAC,IAAI,CAACI,SAAS,CAAC7X,MAAM,CAAC,CAAC,CAAC,CAAC;QACnD,CAAC,MAAM;UACLyK,MAAM,GAAG,IAAI,CAACoN,SAAS;QACzB;MACF,CAAC,MAAM;QACLpN,MAAM,GAAG,EAAE;MACb;MACA,OAAOA,MAAM,CAAC1J,QAAQ,CAAC,CAAC;IAC1B;EAAC;IAAAD,GAAA;IAAAZ,KAAA,EAED,SAAA4W,UAAiBwD,KAAK,EAAE;MACtB,OAAQ,IAAItE,SAAS,CAACsE,KAAK,CAAC,CAAElD,mBAAmB,CAAC,CAAC;IACrD;EAAC;AAAA,EApCsBM,gBAAK;AAAA,IAuCxB6C,0BAAe,0BAAAC,OAAA;EAAA,SAAAD,gBAAA;IAAAlK,yBAAA,OAAAkK,eAAA;IAAA,OAAA5H,oBAAA,OAAA4H,eAAA,EAAApY,SAAA;EAAA;EAAAyQ,mBAAA,CAAA2H,eAAA,EAAAC,OAAA;EAAA,OAAAhK,sBAAA,CAAA+J,eAAA;IAAAzZ,GAAA;IAAAZ,KAAA,EACnB,SAAAuQ,UAAA,EAAY;MACV,OAAON,UAAU,CAACI,SAAS,CAAA0I,IAAA,CAAAC,yBAAA,CAAAqB,eAAA,CAAAvW,SAAA,sBAAA2F,IAAA,MAAkB,CAAC;IAChD;EAAC;AAAA,EAH2B+N,gBAAK;;;;;;;;;;;;;;;;;;;;;;ACzUG;AACF;AACQ;AACP;AAgBrB;AASM;;AAEtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS+C,aAAaA,CAAChW,MAAM,EAAc;EAAA,SAAAsE,IAAA,GAAA5G,SAAA,CAAAhD,MAAA,EAAT6J,OAAO,OAAAC,KAAA,CAAAF,IAAA,OAAAA,IAAA,WAAAG,IAAA,MAAAA,IAAA,GAAAH,IAAA,EAAAG,IAAA;IAAPF,OAAO,CAAAE,IAAA,QAAA/G,SAAA,CAAA+G,IAAA;EAAA;EACvCF,OAAO,CAACpI,OAAO,CAAC,UAAAyI,MAAM,EAAI;IACxB5B,MAAM,CAACF,IAAI,CAAC8B,MAAM,CAAC,CAACzI,OAAO,CAAC,UAAAE,GAAG,EAAI;MACjC,IAAIuI,MAAM,CAACvI,GAAG,CAAC,IAAI,IAAI,EAAE;QACvB2D,MAAM,CAAC3D,GAAG,CAAC,GAAGuI,MAAM,CAACvI,GAAG,CAAC;MAC3B;IACF,CAAC,CAAC;EACJ,CAAC,CAAC;EACF,OAAO2D,MAAM;AACf;;AAEA;AACA;AACA;AACA;AACA;AAJA,IAMMiW,iCAAkB;EACtB;AACF;AACA;AACA;AACA;EACE,SAAAA,mBAAYtX,OAAO,EAAE;IAAAiN,6BAAA,OAAAqK,kBAAA;IACnB;IACA;IACA,IAAI/J,MAAM,EAAEgK,KAAK;IACjBhK,MAAM,GAAG,KAAK,CAAC;IACfgK,KAAK,GAAG,CAAC,CAAC;IACV;AACJ;AACA;AACA;AACA;IACI,IAAI,CAAC7F,SAAS,GAAG,UAAU8F,SAAS,EAAE;MACpC,IAAIC,GAAG,GAAG,CAAC,CAAC;MACZ,IAAGD,SAAS,IAAI,IAAI,EAAE;QACpBA,SAAS,GAAG,IAAI;MAClB;MACAnT,MAAM,CAACF,IAAI,CAACoT,KAAK,CAAC,CAAC/Z,OAAO,CAAC,UAAAE,GAAG;QAAA,OAAI+Z,GAAG,CAAC/Z,GAAG,CAAC,GAAG6Z,KAAK,CAAC7Z,GAAG,CAAC,CAAC+W,SAAS;MAAA,EAAC;MAClE4C,aAAa,CAACI,GAAG,EAAE,IAAI,CAACC,YAAY,CAAC;MACrC,IAAIF,SAAS,IAAI,CAAClQ,OAAO,CAAC,IAAI,CAACqQ,OAAO,CAAC,EAAE;QACvC,IAAIjT,IAAI,GAAG,IAAI,CAACiT,OAAO,CAACra,GAAG,CAAC,UAAAsa,EAAE;UAAA,OAAIA,EAAE,CAAClG,SAAS,CAAC,CAAC;QAAA,EAAC;QACjDhN,IAAI,CAACyF,IAAI,CAACsN,GAAG,CAAC;QACdA,GAAG,GAAG,CAAC,CAAC;QACRJ,aAAa,CAACI,GAAG,EAAE,IAAI,CAACC,YAAY,CAAC;QACrCD,GAAG,CAACrV,cAAc,GAAGsC,IAAI;MAC3B;MACA,OAAO+S,GAAG;IACZ,CAAC;IACD;AACJ;AACA;AACA;AACA;AACA;AACA;IACI,IAAI,CAACjK,SAAS,GAAG,UAAUqK,MAAM,EAAE;MACjCtK,MAAM,GAAGsK,MAAM;MACf,IAAIA,MAAM,IAAI,IAAI,EAAE;QAClB,IAAI,CAACC,WAAW,CAAC,OAAOD,MAAM,CAACnG,SAAS,KAAK,UAAU,GAAGmG,MAAM,CAACnG,SAAS,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;MACxF;MACA,OAAO,IAAI;IACb,CAAC;IACD;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACpE,SAAS,GAAG,YAAY;MAC3B,OAAOC,MAAM;IACf,CAAC;;IAED;IACA;IACA;;IAEA;IACA,IAAI,CAACyH,KAAK,GAAG,UAAUlY,KAAK,EAAEsM,IAAI,EAAE2O,IAAI,EAAEC,YAAY,EAAEjH,OAAO,EAAE;MAC/D,IAAIA,OAAO,IAAI,IAAI,EAAE;QACnB,IAAIzK,oBAAU,CAAC0R,YAAY,CAAC,EAAE;UAC5BjH,OAAO,GAAGiH,YAAY;QACxB,CAAC,MAAM;UACLjH,OAAO,GAAGyD,kBAAQ;QACpB;MACF;MACA+C,KAAK,CAACnO,IAAI,CAAC,GAAG,IAAIkL,gBAAK,CAAClL,IAAI,EAAE2O,IAAI,EAAEhH,OAAO,CAAC,CAACb,GAAG,CAACpT,KAAK,CAAC;MACvD,OAAO,IAAI;IACb,CAAC;IACD;IACA,IAAI,CAACmb,QAAQ,GAAG,UAAUnb,KAAK,EAAEsM,IAAI,EAAE2O,IAAI,EAAEC,YAAY,EAAEjH,OAAO,EAAE;MAClEA,OAAO,GAAGmH,eAAe,CAACnZ,SAAS,CAAC;MACpCwY,KAAK,CAACnO,IAAI,CAAC,GAAG,IAAIyN,mBAAQ,CAACzN,IAAI,EAAE2O,IAAI,EAAEhH,OAAO,CAAC,CAACb,GAAG,CAACpT,KAAK,CAAC;MAC1D,OAAO,IAAI;IACb,CAAC;IACD;IACA,IAAI,CAACqb,UAAU,GAAG,UAAUrb,KAAK,EAAEsM,IAAI,EAAE2O,IAAI,EAAEC,YAAY,EAAEjH,OAAO,EAAE;MACpEA,OAAO,GAAGmH,eAAe,CAACnZ,SAAS,CAAC;MACpCwY,KAAK,CAACnO,IAAI,CAAC,GAAG,IAAIoN,qBAAU,CAACpN,IAAI,EAAE2O,IAAI,EAAEhH,OAAO,CAAC,CAACb,GAAG,CAACpT,KAAK,CAAC;MAC5D,OAAO,IAAI;IACb,CAAC;IACD;IACA,IAAI,CAACsb,UAAU,GAAG,UAAUtb,KAAK,EAAEsM,IAAI,EAAE2O,IAAI,EAAqD;MAAA,IAAnDvC,GAAG,GAAAzW,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,GAAG;MAAA,IAAEiZ,YAAY,GAAAjZ,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,EAAE;MAAA,IAAEgS,OAAO,GAAAhS,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAGC,SAAS;MAC9F+R,OAAO,GAAGmH,eAAe,CAACnZ,SAAS,CAAC;MACpCwY,KAAK,CAACnO,IAAI,CAAC,GAAG,IAAIkM,qBAAU,CAAClM,IAAI,EAAE2O,IAAI,EAAEvC,GAAG,EAAEzE,OAAO,CAAC,CAACb,GAAG,CAACpT,KAAK,CAAC;MACjE,OAAO,IAAI;IACb,CAAC;IACD;IACA,IAAI,CAACub,mBAAmB,GAAG,UAAUvb,KAAK,EAAEsM,IAAI,EAAE2O,IAAI,EAA4D;MAAA,IAA1DvC,GAAG,GAAAzW,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,GAAG;MAAA,IAAEiZ,YAAY,GAAAjZ,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAGC,SAAS;MAAA,IAAE+R,OAAO,GAAAhS,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAGC,SAAS;MAC9G+R,OAAO,GAAGmH,eAAe,CAACnZ,SAAS,CAAC;MACpCwY,KAAK,CAACnO,IAAI,CAAC,GAAG,IAAI2M,8BAAmB,CAAC3M,IAAI,EAAE2O,IAAI,EAAEvC,GAAG,EAAEzE,OAAO,CAAC,CAACb,GAAG,CAACpT,KAAK,CAAC;MAC1E,OAAO,IAAI;IACb,CAAC;IACD,IAAI,CAACwb,UAAU,GAAG,UAAUxb,KAAK,EAAEsM,IAAI,EAAE2O,IAAI,EAAE;MAC7CR,KAAK,CAACnO,IAAI,CAAC,GAAG,IAAI2N,qBAAU,CAAC3N,IAAI,EAAE2O,IAAI,CAAC,CAAC7H,GAAG,CAACpT,KAAK,CAAC;MACnD,OAAO,IAAI;IACb,CAAC;;IAED;;IAEA;AACJ;AACA;AACA;AACA;AACA;AACA;IACI,IAAI,CAACyb,QAAQ,GAAG,UAAUnP,IAAI,EAAE;MAC9B,IAAItM,KAAK,GAAGya,KAAK,CAACnO,IAAI,CAAC,IAAImO,KAAK,CAACnO,IAAI,CAAC,CAACtM,KAAK,CAAC,CAAC;MAC9C,OAAOA,KAAK,IAAI,IAAI,GAAGA,KAAK,GAAG,IAAI,CAAC4a,YAAY,CAACtO,IAAI,CAAC;IACxD,CAAC;IACD;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAAC+G,GAAG,GAAG,UAAU/G,IAAI,EAAE;MACzB,OAAOmO,KAAK,CAACnO,IAAI,CAAC;IACpB,CAAC;IACD;AACJ;AACA;AACA;AACA;AACA;AACA;IACI,IAAI,CAACoP,MAAM,GAAG,UAAUpP,IAAI,EAAE;MAC5B,IAAIqP,IAAI;MACR,QAAQ,KAAK;QACX,KAAKlB,KAAK,CAACnO,IAAI,CAAC,IAAI,IAAI;UACtBqP,IAAI,GAAGlB,KAAK,CAACnO,IAAI,CAAC;UAClB,OAAOmO,KAAK,CAACnO,IAAI,CAAC;UAClB,OAAOqP,IAAI,CAAChE,SAAS;QACvB,KAAK,IAAI,CAACiD,YAAY,CAACtO,IAAI,CAAC,IAAI,IAAI;UAClCqP,IAAI,GAAG,IAAI,CAACf,YAAY,CAACtO,IAAI,CAAC;UAC9B,OAAO,IAAI,CAACsO,YAAY,CAACtO,IAAI,CAAC;UAC9B,OAAOqP,IAAI;QACb;UACE,OAAO,IAAI;MACf;IACF,CAAC;IACD;AACJ;AACA;AACA;IACI,IAAI,CAACtU,IAAI,GAAG,YAAY;MACtB,IAAIzG,GAAG;MACP,OAAS,YAAY;QACnB,IAAIwM,OAAO;QACXA,OAAO,GAAG,EAAE;QACZ,KAAKxM,GAAG,IAAI6Z,KAAK,EAAE;UACjB,IAAI7Z,GAAG,IAAI,IAAI,EAAE;YACfwM,OAAO,CAACC,IAAI,CAACzM,GAAG,CAACgB,KAAK,CAACga,WAAW,CAAC,GAAGhb,GAAG,GAAGwJ,SAAS,CAACxJ,GAAG,CAAC,CAAC;UAC7D;QACF;QACA,OAAOwM,OAAO;MAChB,CAAC,CAAE,CAAC,CAAEyO,IAAI,CAAC,CAAC;IACd,CAAC;IACD;AACJ;AACA;AACA;AACA;IACI,IAAI,CAACC,aAAa,GAAG,YAAY;MAC/B,IAAIC,IAAI,EAAEnb,GAAG,EAAEgH,IAAI;MACnBmU,IAAI,GAAG,CAAC,CAAC;MACT,KAAKnb,GAAG,IAAI6Z,KAAK,EAAE;QACjBsB,IAAI,CAACnb,GAAG,CAAC,GAAG6Z,KAAK,CAAC7Z,GAAG,CAAC,CAACZ,KAAK,CAAC,CAAC;QAC9B,IAAI2U,uBAAa,CAACoH,IAAI,CAACnb,GAAG,CAAC,CAAC,EAAE;UAC5Bmb,IAAI,CAACnb,GAAG,CAAC,GAAGmS,mBAAS,CAACgJ,IAAI,CAACnb,GAAG,CAAC,CAAC;QAClC;MACF;MACA,IAAI,CAAC4J,OAAO,CAAC,IAAI,CAACqQ,OAAO,CAAC,EAAE;QAC1BjT,IAAI,GAAG,IAAI,CAACiT,OAAO,CAACra,GAAG,CAAC,UAAAsa,EAAE;UAAA,OAAIA,EAAE,CAACgB,aAAa,CAAC,CAAC;QAAA,EAAC;QACjDlU,IAAI,CAACyF,IAAI,CAAC0O,IAAI,CAAC;QACfA,IAAI,GAAG;UACLzW,cAAc,EAAEsC;QAClB,CAAC;MACH;MACA,OAAOmU,IAAI;IACb,CAAC;IACD;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,KAAK,GAAG,YAAY;MACvB,IAAIC,KAAK,EAAEnB,EAAE;MACbmB,KAAK,GAAG1U,MAAM,CAAC2U,mBAAmB,CAACzB,KAAK,CAAC;MACzC,IAAIwB,KAAK,CAAChd,MAAM,KAAK,CAAC,EAAE;QACtB6b,EAAE,GAAG,IAAI,IAAI,CAACjF,WAAW,CAAC,IAAI,CAACjB,SAAS,CAAC,KAAK,CAAC,CAAC;QAChD,IAAI,CAACuH,oBAAoB,CAAC,CAAC;QAC3B,IAAI,CAACtB,OAAO,CAACxN,IAAI,CAACyN,EAAE,CAAC;MACvB;MACA,OAAO,IAAI;IACb,CAAC;IACD,IAAI,CAACqB,oBAAoB,GAAG,YAAY;MACtC1B,KAAK,GAAG,CAAC,CAAC;MACV,OAAO,IAAI;IACb,CAAC;IACD,IAAI,CAACG,YAAY,GAAG,CAAC,CAAC;IACtB,IAAI,CAACC,OAAO,GAAG,EAAE;IACjB,IAAI,CAACG,WAAW,CAAC9X,OAAO,CAAC;EAC3B;;EAEA;AACF;AACA;AACA;AACA;EAJE,OAAAoN,0BAAA,CAAAkK,kBAAA;IAAA5Z,GAAA;IAAAZ,KAAA,EAKA,SAAAgb,YAAA,EAA0B;MAAA,IAAd9X,OAAO,GAAAjB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;MACtB,IAAIiB,OAAO,YAAYsX,kBAAkB,EAAE;QACzC,IAAI,CAAC4B,kBAAkB,CAAClZ,OAAO,CAAC;MAClC,CAAC,MAAM;QACL,IAAI4E,kBAAQ,CAAC5E,OAAO,CAAC,IAAI2U,iBAAO,CAAC3U,OAAO,CAAC,EAAE;UACzCA,OAAO,GAAG;YACRoC,cAAc,EAAEpC;UAClB,CAAC;QACH;QACAA,OAAO,GAAG6P,mBAAS,CAAC7P,OAAO,EAAE,UAAUlD,KAAK,EAAE;UAC5C,IAAIA,KAAK,YAAYwa,kBAAkB,IAAIxa,KAAK,YAAYoV,KAAK,EAAE;YACjE,OAAO,IAAIpV,KAAK,CAAC4V,KAAK,CAAC,CAAC;UAC1B;QACF,CAAC,CAAC;QACF;QACA,IAAI1S,OAAO,CAAC,IAAI,CAAC,EAAE;UACjB,IAAI,CAACkQ,GAAG,CAAC,IAAI,EAAElQ,OAAO,CAAC,IAAI,CAAC,CAAC;UAC7B,OAAOA,OAAO,CAAC,IAAI,CAAC;QACtB;QACA,KAAK,IAAItC,GAAG,IAAIsC,OAAO,EAAE;UACvB,IAAIyX,GAAG,GAAGzX,OAAO,CAACtC,GAAG,CAAC;UACtB,IAAG+Z,GAAG,IAAI,IAAI,EAAE;YACd,IAAI/Z,GAAG,CAACgB,KAAK,CAACga,WAAW,CAAC,EAAE;cAC1B,IAAIhb,GAAG,KAAK,OAAO,EAAE;gBACnB,IAAI,CAACwS,GAAG,CAAC,UAAU,EAAExS,GAAG,EAAE+Z,GAAG,CAAC;cAChC;YACF,CAAC,MAAM;cACL,IAAI,CAACvH,GAAG,CAACxS,GAAG,EAAE+Z,GAAG,CAAC;YACpB;UACF;QACF;MACF;MACA,OAAO,IAAI;IACb;EAAC;IAAA/Z,GAAA;IAAAZ,KAAA,EAED,SAAAoc,mBAAmBC,KAAK,EAAE;MAAA,IAAAzI,KAAA;MACxB,IAAIyI,KAAK,YAAY7B,kBAAkB,EAAE;QACvC6B,KAAK,CAAChV,IAAI,CAAC,CAAC,CAAC3G,OAAO,CAAC,UAAAE,GAAG;UAAA,OACtBgT,KAAI,CAACR,GAAG,CAACxS,GAAG,EAAEyb,KAAK,CAAChJ,GAAG,CAACzS,GAAG,CAAC,CAAC+W,SAAS,CAAC;QAAA,CACzC,CAAC;MACH;MACA,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;EANE;IAAA/W,GAAA;IAAAZ,KAAA,EAOA,SAAAoT,IAAIxS,GAAG,EAAa;MAClB,IAAI0b,QAAQ;MACZA,QAAQ,GAAGxS,SAAS,CAAClJ,GAAG,CAAC;MAAC,SAAA2b,KAAA,GAAAta,SAAA,CAAAhD,MAAA,EAFhBud,MAAM,OAAAzT,KAAA,CAAAwT,KAAA,OAAAA,KAAA,WAAAE,KAAA,MAAAA,KAAA,GAAAF,KAAA,EAAAE,KAAA;QAAND,MAAM,CAAAC,KAAA,QAAAxa,SAAA,CAAAwa,KAAA;MAAA;MAGhB,IAAIhV,kBAAQ,CAAC6R,6BAAc,CAACoD,OAAO,EAAEJ,QAAQ,CAAC,EAAE;QAC9C,IAAI,CAACA,QAAQ,CAAC,CAACK,KAAK,CAAC,IAAI,EAAEH,MAAM,CAAC;MACpC,CAAC,MAAM;QACL,IAAI,CAAC5B,YAAY,CAACha,GAAG,CAAC,GAAG4b,MAAM,CAAC,CAAC,CAAC;MACpC;MACA,OAAO,IAAI;IACb;EAAC;IAAA5b,GAAA;IAAAZ,KAAA,EAED,SAAA4c,SAAA,EAAW;MACT,OAAO,IAAI,CAACnB,QAAQ,CAAC,SAAS,CAAC,IAAI,IAAI,CAACA,QAAQ,CAAC,UAAU,CAAC;IAC9D;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAA7a,GAAA;IAAAZ,KAAA,EAKA,SAAAuQ,UAAA,EAAY;MACV,IAAIsM,OAAO,EAAEC,CAAC,EAAErN,GAAG,EAAEsN,SAAS,EAAE1H,GAAG,EAAE2H,IAAI,EAAEC,IAAI,EAAEC,IAAI,EAAEC,IAAI,EAAEC,WAAW,EAAEvE,CAAC,EAAEwE,kBAAkB,EAC7FC,oBAAoB,EAAExX,eAAe,EAAE9F,KAAK,EAAE4G,SAAS,EAAE2W,IAAI;MAC/DH,WAAW,GAAG,IAAI,CAACvC,OAAO,CAACra,GAAG,CAAC,UAAAsa,EAAE;QAAA,OAAIA,EAAE,CAACvK,SAAS,CAAC,CAAC;MAAA,EAAC;MACpDwM,SAAS,GAAG,IAAI,CAAC1V,IAAI,CAAC,CAAC;MACvBvB,eAAe,GAAG,CAACuP,GAAG,GAAG,IAAI,CAAChC,GAAG,CAAC,gBAAgB,CAAC,KAAK,IAAI,GAAGgC,GAAG,CAAC9E,SAAS,CAAC,CAAC,GAAG,KAAK,CAAC;MACvFsM,OAAO,GAAG,CAACG,IAAI,GAAG,IAAI,CAAC3J,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,GAAG2J,IAAI,CAACzM,SAAS,CAAC,CAAC,GAAG,KAAK,CAAC;MACrE3J,SAAS,GAAG4W,UAAU,CAAC,CAACP,IAAI,GAAG,IAAI,CAAC5J,GAAG,CAAC,WAAW,CAAC,KAAK,IAAI,GAAG4J,IAAI,CAACjd,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;MACtF+c,SAAS,GAAGU,oBAAU,CAACV,SAAS,EAAE,CAAC,gBAAgB,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;MACxEQ,IAAI,GAAG,EAAE;MACTF,kBAAkB,GAAG,EAAE;MACvB,KAAKP,CAAC,GAAG,CAAC,EAAErN,GAAG,GAAGsN,SAAS,CAAC9d,MAAM,EAAE6d,CAAC,GAAGrN,GAAG,EAAEqN,CAAC,EAAE,EAAE;QAChDjE,CAAC,GAAGkE,SAAS,CAACD,CAAC,CAAC;QAChB,IAAIjE,CAAC,CAACjX,KAAK,CAACga,WAAW,CAAC,EAAE;UACxB2B,IAAI,CAAClQ,IAAI,CAACwL,CAAC,GAAG,GAAG,GAAG5I,UAAU,CAACI,SAAS,CAAC,CAAC6M,IAAI,GAAG,IAAI,CAAC7J,GAAG,CAACwF,CAAC,CAAC,KAAK,IAAI,GAAGqE,IAAI,CAACld,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;QACjG,CAAC,MAAM;UACLqd,kBAAkB,CAAChQ,IAAI,CAAC,CAAC8P,IAAI,GAAG,IAAI,CAAC9J,GAAG,CAACwF,CAAC,CAAC,KAAK,IAAI,GAAGsE,IAAI,CAAC5M,SAAS,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;QACnF;MACF;MACA,QAAQ,KAAK;QACX,KAAK,CAACzI,kBAAQ,CAAChC,eAAe,CAAC;UAC7BuX,kBAAkB,CAAChQ,IAAI,CAACvH,eAAe,CAAC;UACxC;QACF,KAAK,CAAC+R,iBAAO,CAAC/R,eAAe,CAAC;UAC5BsX,WAAW,GAAGA,WAAW,CAACta,MAAM,CAACgD,eAAe,CAAC;MACrD;MACAuX,kBAAkB,GAAI,YAAY;QAChC,IAAI7I,CAAC,EAAEkJ,IAAI,EAAEtQ,OAAO;QACpBA,OAAO,GAAG,EAAE;QACZ,KAAKoH,CAAC,GAAG,CAAC,EAAEkJ,IAAI,GAAGL,kBAAkB,CAACpe,MAAM,EAAEuV,CAAC,GAAGkJ,IAAI,EAAElJ,CAAC,EAAE,EAAE;UAC3DxU,KAAK,GAAGqd,kBAAkB,CAAC7I,CAAC,CAAC;UAC7B,IAAIqD,iBAAO,CAAC7X,KAAK,CAAC,IAAI,CAACwK,OAAO,CAACxK,KAAK,CAAC,IAAI,CAAC6X,iBAAO,CAAC7X,KAAK,CAAC,IAAIA,KAAK,EAAE;YACjEoN,OAAO,CAACC,IAAI,CAACrN,KAAK,CAAC;UACrB;QACF;QACA,OAAOoN,OAAO;MAChB,CAAC,CAAE,CAAC;MACJiQ,kBAAkB,GAAGE,IAAI,CAAC1B,IAAI,CAAC,CAAC,CAAC/Y,MAAM,CAAC8D,SAAS,CAAC,CAAC9D,MAAM,CAACua,kBAAkB,CAACxB,IAAI,CAAC,CAAC,CAAC;MACpF,IAAIgB,OAAO,KAAK,QAAQ,EAAE;QACxBQ,kBAAkB,CAAChQ,IAAI,CAACwP,OAAO,CAAC;MAClC,CAAC,MAAM,IAAI,CAACrS,OAAO,CAACqS,OAAO,CAAC,EAAE;QAC5BQ,kBAAkB,CAACjG,OAAO,CAACyF,OAAO,CAAC;MACrC;MACAS,oBAAoB,GAAG3H,iBAAO,CAAC0H,kBAAkB,CAAC,CAACjc,IAAI,CAAC,IAAI,CAACuc,eAAe,CAAC;MAC7E,IAAI,CAACnT,OAAO,CAAC8S,oBAAoB,CAAC,EAAE;QAClCF,WAAW,CAAC/P,IAAI,CAACiQ,oBAAoB,CAAC;MACxC;MACA,OAAO3H,iBAAO,CAACyH,WAAW,CAAC,CAAChc,IAAI,CAAC,IAAI,CAACwc,eAAe,CAAC;IACxD;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAhd,GAAA;IAAAZ,KAAA;IAUA;AACF;AACA;AACA;AACA;IACE,SAAA6d,iBAAA,EAAmB;MAAA,IAAA/E,MAAA;MACjB,IAAIgF,QAAQ,EAAEpX,MAAM,EAAExD,OAAO,EAAE+Z,IAAI,EAAEC,IAAI,EAAEld,KAAK,EAAEsG,KAAK;MACvDpD,OAAO,GAAG,CAAC,CAAC;MACZ,IAAI6a,YAAY;MAChBxW,MAAM,CAACF,IAAI,CAAC,IAAI,CAACuT,YAAY,CAAC,CAACla,OAAO,CAAC,UAAAE,GAAG,EAAE;QAC1CZ,KAAK,GAAG8Y,MAAI,CAAC8B,YAAY,CAACha,GAAG,CAAC;QAC9Bmd,YAAY,GAAG3T,SAAS,CAACxJ,GAAG,CAAC;QAC7B,IAAI,CAAC6G,kBAAQ,CAAC6R,6BAAc,CAAC0E,WAAW,EAAED,YAAY,CAAC,IAAI,CAACtW,kBAAQ,CAACP,QAAQ,EAAE6W,YAAY,CAAC,EAAE;UAC5FD,QAAQ,GAAG,QAAQ,CAAC/R,IAAI,CAACnL,GAAG,CAAC,GAAGA,GAAG,CAACvB,KAAK,CAAC,CAAC,CAAC,GAAGuB,GAAG;UAClDsC,OAAO,CAAC4a,QAAQ,CAAC,GAAG9d,KAAK;QAC3B;MACF,CAAC,CAAC;MACF;MACA,IAAI,CAACqH,IAAI,CAAC,CAAC,CAAC3G,OAAO,CAAC,UAAAE,GAAG,EAAI;QACzB,IAAI,QAAQ,CAACmL,IAAI,CAACnL,GAAG,CAAC,EAAE;UACtBsC,OAAO,CAAC4G,SAAS,CAAClJ,GAAG,CAACvB,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAGyZ,MAAI,CAAC2C,QAAQ,CAAC7a,GAAG,CAAC;QACvD;MACF,CAAC,CAAC;MACF,IAAI,EAAE,IAAI,CAACgc,QAAQ,CAAC,CAAC,IAAI,IAAI,CAACnB,QAAQ,CAAC,OAAO,CAAC,IAAIhU,kBAAQ,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,IAAI,CAACgU,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;QAC9GnV,KAAK,GAAG,CAAC2W,IAAI,GAAG,IAAI,CAAC5J,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI,GAAG4J,IAAI,CAACtF,SAAS,GAAG,KAAK,CAAC;QACpEjR,MAAM,GAAG,CAACwW,IAAI,GAAG,IAAI,CAAC7J,GAAG,CAAC,QAAQ,CAAC,KAAK,IAAI,GAAG6J,IAAI,CAACvF,SAAS,GAAG,KAAK,CAAC;QACtE,IAAItP,UAAU,CAAC/B,KAAK,CAAC,IAAI,GAAG,EAAE;UAC5B,IAAIpD,OAAO,CAACoD,KAAK,IAAI,IAAI,EAAE;YACzBpD,OAAO,CAACoD,KAAK,GAAGA,KAAK;UACvB;QACF;QACA,IAAI+B,UAAU,CAAC3B,MAAM,CAAC,IAAI,GAAG,EAAE;UAC7B,IAAIxD,OAAO,CAACwD,MAAM,IAAI,IAAI,EAAE;YAC1BxD,OAAO,CAACwD,MAAM,GAAGA,MAAM;UACzB;QACF;MACF;MACA,OAAOxD,OAAO;IAChB;EAAC;IAAAtC,GAAA;IAAAZ,KAAA;IAMD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACE,SAAAie,OAAA,EAAS;MACP,IAAI5I,GAAG;MACP,OAAO,CAACA,GAAG,GAAG,IAAI,CAAC7E,SAAS,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO6E,GAAG,CAAC4I,MAAM,KAAK,UAAU,GAAG5I,GAAG,CAAC4I,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC;IAC7G;EAAC;IAAArd,GAAA;IAAAZ,KAAA,EAED,SAAAa,SAAA,EAAW;MACT,OAAO,IAAI,CAAC0P,SAAS,CAAC,CAAC;IACzB;EAAC;IAAA3P,GAAA;IAAAZ,KAAA,EAED,SAAA4V,MAAA,EAAQ;MACN,OAAO,IAAI,IAAI,CAACC,WAAW,CAAC,IAAI,CAACjB,SAAS,CAAC,IAAI,CAAC,CAAC;IACnD;EAAC;IAAAhU,GAAA;IAAAZ,KAAA,EAvED,SAAAke,UAAA,EAAmB;MACjB,OAAO5E,6BAAc,CAACoD,OAAO;IAC/B;EAAC;IAAA9b,GAAA;IAAAZ,KAAA,EA0CD,SAAAme,iBAAwB7R,IAAI,EAAE;MAC5B,OAAOgN,6BAAc,CAACoD,OAAO,CAAC0B,OAAO,CAACtU,SAAS,CAACwC,IAAI,CAAC,CAAC,IAAI,CAAC;IAC7D;EAAC;AAAA;AA4BH,IAAMsP,WAAW,GAAG,kBAAkB;AAEtCpB,iCAAkB,CAAC1W,SAAS,CAAC8Z,eAAe,GAAG,GAAG;AAElDpD,iCAAkB,CAAC1W,SAAS,CAAC6Z,eAAe,GAAG,GAAG;AAGlD,SAASvC,eAAeA,CAACiD,IAAI,EAAE;EAC7B,IAAIC,QAAQ;EACZA,QAAQ,GAAGD,IAAI,IAAI,IAAI,GAAGA,IAAI,CAACA,IAAI,CAACpf,MAAM,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;EACxD,IAAIuK,oBAAU,CAAC8U,QAAQ,CAAC,EAAE;IACxB,OAAOA,QAAQ;EACjB,CAAC,MAAM;IACL,OAAO,KAAK,CAAC;EACf;AACF;AAEA,SAASd,UAAUA,CAACe,QAAQ,EAAE;EAC5B,IAAIzB,CAAC,EAAErN,GAAG,EAAEnD,IAAI,EAAEc,OAAO,EAAElF,CAAC;EAC5B,IAAI2P,iBAAO,CAAC0G,QAAQ,CAAC,EAAE;IACrBnR,OAAO,GAAG,EAAE;IACZ,KAAK0P,CAAC,GAAG,CAAC,EAAErN,GAAG,GAAG8O,QAAQ,CAACtf,MAAM,EAAE6d,CAAC,GAAGrN,GAAG,EAAEqN,CAAC,EAAE,EAAE;MAAA,IAAA0B,WAAA,GAAAjK,4BAAA,CACnCgK,QAAQ,CAACzB,CAAC,CAAC;MAAtBxQ,IAAI,GAAAkS,WAAA;MAAEtW,CAAC,GAAAsW,WAAA;MACRpR,OAAO,CAACC,IAAI,IAAAvK,MAAA,CAAIwJ,IAAI,OAAAxJ,MAAA,CAAImN,UAAU,CAACI,SAAS,CAACnI,CAAC,CAAC,CAAE,CAAC;IACpD;IACA,OAAOkF,OAAO;EAChB,CAAC,MAAM;IACL,OAAOmR,QAAQ;EACjB;AACF;AAEA,SAASE,qBAAqBA,CAAAC,IAAA,EAA0B;EAAA,IAAxBC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IAAExV,MAAM,GAAAuV,IAAA,CAANvV,MAAM;EACnD,IAAIwV,aAAa,KAAK,QAAQ,EAAE;IAC9B,OAAO,CAACA,aAAa,EAAE/T,IAAI,CAACzB,MAAM,CAAC,CAAC,CAAC/H,IAAI,CAAC,GAAG,CAAC;EAChD,CAAC,MAAM,IAAIud,aAAa,KAAK,MAAM,EAAE;IACnC,OAAO,CAACA,aAAa,EAAExV,MAAM,CAAC,CAAC/H,IAAI,CAAC,GAAG,CAAC;EAC1C;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA,IASMkY,6BAAc,0BAAAsF,mBAAA;EAClB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,SAAAtF,eAAYpW,OAAO,EAAE;IAAAiN,6BAAA,OAAAmJ,cAAA;IAAA,OAAA7G,wBAAA,OAAA6G,cAAA,GACbpW,OAAO;EACf;;EAEA;AACF;AACA;AACA;AACA;AACA;EALEwP,uBAAA,CAAA4G,cAAA,EAAAsF,mBAAA;EAAA,OAAAtO,0BAAA,CAAAgJ,cAAA;IAAA1Y,GAAA;IAAAZ,KAAA;IAUA;AACF;AACA;IACE,SAAA6e,MAAM7e,KAAK,EAAE;MACX,OAAO,IAAI,CAACsb,UAAU,CAACtb,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAEiQ,UAAU,CAACI,SAAS,CAAC;IACxE;EAAC;IAAAzP,GAAA;IAAAZ,KAAA,EAED,SAAA8e,WAAW9e,KAAK,EAAE;MAChB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,aAAa,EAAE,IAAI,CAAC;IAC/C;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAA+e,eAAe/e,KAAK,EAAE;MACpB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,iBAAiB,EAAE,IAAI,CAAC;IACnD;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAiR,YAAYjR,KAAK,EAAE;MACjB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,cAAc,EAAE,IAAI,EAAEiQ,UAAU,CAACI,SAAS,CAAC;IACtE;EAAC;IAAAzP,GAAA;IAAAZ,KAAA,EAED,SAAAyG,WAAWzG,KAAK,EAAE;MAChB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,YAAY,EAAE,GAAG,EAAEwX,gBAAK,CAACM,UAAU,CAAC;IAC/D;EAAC;IAAAlX,GAAA;IAAAZ,KAAA,EAED,SAAAgf,QAAQhf,KAAK,EAAE;MACb,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,UAAU,EAAE,IAAI,CAAC;IAC5C;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAif,OAAOjf,KAAK,EAAE;MACZ,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAUif,MAAM,EAAE;QACzD,IAAItK,uBAAa,CAACsK,MAAM,CAAC,EAAE;UACzBA,MAAM,GAAGzL,gBAAM,CAAC,CAAC,CAAC,EAAE;YAClB0L,KAAK,EAAE,OAAO;YACd5Y,KAAK,EAAE;UACT,CAAC,EAAE2Y,MAAM,CAAC;UACV,UAAAnc,MAAA,CAAUmc,MAAM,CAAC3Y,KAAK,eAAAxD,MAAA,CAAY0U,gBAAK,CAACM,UAAU,CAACmH,MAAM,CAACC,KAAK,CAAC;QAClE,CAAC,MAAM;UACL,OAAOD,MAAM;QACf;MACF,CAAC,CAAC;IACJ;EAAC;IAAAre,GAAA;IAAAZ,KAAA,EAED,SAAAkf,MAAMlf,KAAK,EAAE;MACX,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,OAAO,EAAE,IAAI,EAAEwX,gBAAK,CAACM,UAAU,CAAC;IAC3D;EAAC;IAAAlX,GAAA;IAAAZ,KAAA,EAED,SAAAmf,WAAWnf,KAAK,EAAE;MAChB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,aAAa,EAAE,IAAI,CAAC;IAC/C;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAwG,KAAKxG,KAAK,EAAE;MACV,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC;IACvC;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAof,eAAepf,KAAK,EAAE;MACpB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAM;QACtD,OAAOye,qBAAqB,CAACze,KAAK,CAAC;MACrC,CAAC,CAAC;IACJ;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAqf,kBAAkBrf,KAAK,EAAE;MACvB,IAAI,IAAI,CAACqT,GAAG,CAAC,iBAAiB,CAAC,EAAE;QAC/B;MACF;MACA,OAAO,IAAI,CAAC8H,QAAQ,CAACnb,KAAK,EAAE,iBAAiB,EAAE,EAAE,EAAE,YAAM;QACvDA,KAAK,GAAGye,qBAAqB,CAACze,KAAK,CAAC;QACpC,OAAOA,KAAK,aAAA8C,MAAA,CAAa9C,KAAK,IAAKA,KAAK;MAC1C,CAAC,CAAC;IACJ;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAsf,aAAatf,KAAK,EAAE;MAClB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,eAAe,EAAE,GAAG,CAAC;IAChD;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAuf,MAAMvf,KAAK,EAAE;MACX,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC;IACzC;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAwf,QAAQxf,KAAK,EAAE;MACb,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC;IAC3C;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAA2S,SAAS3S,KAAK,EAAE;MACd,OAAO,IAAI,CAACqb,UAAU,CAACrb,KAAK,EAAE,UAAU,EAAE,IAAI,CAAC;IACjD;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAyf,IAAIzf,KAAK,EAAE;MACT,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAACyf,GAAG,EAAK;QAC9CA,GAAG,GAAGA,GAAG,CAAC5e,QAAQ,CAAC,CAAC;QACpB,IAAI4e,GAAG,IAAI,IAAI,GAAGA,GAAG,CAAC7d,KAAK,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,EAAE;UAC7C,OAAO6d,GAAG,GAAG,IAAI;QACnB,CAAC,MAAM;UACL,OAAOxP,UAAU,CAACI,SAAS,CAACoP,GAAG,CAAC;QAClC;MACF,CAAC,CAAC;IACJ;EAAC;IAAA7e,GAAA;IAAAZ,KAAA,EAED,SAAAmG,OAAOnG,KAAK,EAAE;MACZ,OAAO,IAAI,CAACsb,UAAU,CAACtb,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAEiQ,UAAU,CAACI,SAAS,CAAC;IACzE;EAAC;IAAAzP,GAAA;IAAAZ,KAAA,EAED,SAAA0f,MAAA,EAAO;MACL,OAAO,IAAI,MAAG,CAAC,MAAM,CAAC;IACxB;EAAC;IAAA9e,GAAA;IAAAZ,KAAA,EAED,SAAA2f,MAAA,EAAQ;MACN,OAAO,IAAI,MAAG,CAAC,KAAK,CAAC;IACvB;EAAC;IAAA/e,GAAA;IAAAZ,KAAA,EAED,SAAA4f,UAAU5f,KAAK,EAAE;MACf,OAAO,IAAI,CAACqb,UAAU,CAACrb,KAAK,EAAE,YAAY,EAAE,IAAI,CAAC;IACnD;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAA6f,gBAAgB7f,KAAK,EAAE;MACrB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,kBAAkB,CAAC;IAC9C;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAA8f,YAAY9f,KAAK,EAAE;MACjB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,cAAc,EAAE,GAAG,CAAC;IAC/C;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAiF,OAAOjF,KAAK,EAAE;MACZ,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,QAAQ,CAAC;IACpC;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAA+f,MAAM/f,KAAK,EAAE;MACX,OAAO,IAAI,CAACsb,UAAU,CAACtb,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC;IACnD;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAA2G,QAAQ3G,KAAK,EAAE;MACb,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,SAAS,EAAE,GAAG,CAAC;IAC1C;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAggB,IAAIhgB,KAAK,EAAE;MACT,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAACggB,GAAG,EAAK;QAC9C,IAAIlY,kBAAQ,CAACkY,GAAG,CAAC,EAAE;UACjB,OAAOA,GAAG;QACZ,CAAC,MAAM,IAAInI,iBAAO,CAACmI,GAAG,CAAC,EAAE;UACvB,OAAOA,GAAG,CAAC5e,IAAI,CAAC,GAAG,CAAC;QACtB,CAAC,MAAM;UACL,OAAO4e,GAAG;QACZ;MACF,CAAC,CAAC;IACJ;EAAC;IAAApf,GAAA;IAAAZ,KAAA,EAED,SAAA0G,OAAO1G,KAAK,EAAE;MAAA,IAAAmZ,MAAA;MACZ,OAAO,IAAI,CAACjB,KAAK,CAAClY,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,YAAM;QAC5C,IAAImZ,MAAI,CAACsC,QAAQ,CAAC,MAAM,CAAC,IAAItC,MAAI,CAACsC,QAAQ,CAAC,SAAS,CAAC,IAAItC,MAAI,CAACsC,QAAQ,CAAC,UAAU,CAAC,EAAE;UAClF,OAAOxL,UAAU,CAACI,SAAS,CAACrQ,KAAK,CAAC;QACpC,CAAC,MAAM;UACL,OAAO,IAAI;QACb;MACF,CAAC,CAAC;IACJ;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAigB,WAAWjgB,KAAK,EAAE;MAChB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,aAAa,CAAC;IACzC;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAkgB,UAAUlgB,KAAK,EAAE;MACf,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,YAAY,CAAC;IACxC;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAmgB,IAAA,EAAe;MAAA,IAAZngB,KAAK,GAAAiC,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,EAAE;MACX,IAAIxC,CAAC,EAAE2gB,KAAK,EAAEtD,CAAC,EAAEzH,GAAG,EAAEgL,IAAI,EAAEC,MAAM;MAClC,QAAQtgB,KAAK;QACX,KAAK,MAAM;UACT,IAAI,CAACgc,KAAK,CAAC,CAAC;UACZ,OAAO,IAAI,CAAC9D,KAAK,CAAClY,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC;QACtC,KAAK,KAAK;UACR,IAAI,CAACgc,KAAK,CAAC,CAAC;UACZ,KAAKvc,CAAC,GAAGqd,CAAC,GAAGzH,GAAG,GAAG,IAAI,CAACwF,OAAO,CAAC5b,MAAM,GAAG,CAAC,EAAE6d,CAAC,IAAI,CAAC,EAAErd,CAAC,GAAGqd,CAAC,IAAI,CAAC,CAAC,EAAE;YAC/DsD,KAAK,GAAG,IAAI,CAACvF,OAAO,CAACpb,CAAC,CAAC,CAACgc,QAAQ,CAAC,IAAI,CAAC;YACtC,IAAI2E,KAAK,KAAK,KAAK,EAAE;cACnB;YACF,CAAC,MAAM,IAAIA,KAAK,IAAI,IAAI,EAAE;cACxBC,IAAI,GAAG/G,cAAc,OAAI,CAAC,CAAC,MAAG,CAAC8G,KAAK,CAAC;cACrC,IAAI,CAACvF,OAAO,CAACpb,CAAC,CAAC,CAACic,MAAM,CAAC,IAAI,CAAC;cAC5B4E,MAAM,GAAG,IAAI,CAACzF,OAAO,CAACpb,CAAC,CAAC;cACxB,IAAI,CAACob,OAAO,CAACpb,CAAC,CAAC,GAAG6Z,cAAc,OAAI,CAAC,CAAC,CAAChU,cAAc,CAAC,CAAC+a,IAAI,EAAEC,MAAM,CAAC,CAAC;cACrE,IAAIF,KAAK,KAAK,MAAM,EAAE;gBACpB;cACF;YACF;UACF;UACA,OAAO,IAAI,CAAClI,KAAK,CAAClY,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC;QACtC,KAAK,EAAE;UACL,OAAOsS,SAAS,OAAI,CAAC,CAAC,CAAC5B,SAAS,CAAC,IAAI,CAAC;QACxC;UACE,OAAO,IAAI,CAACwH,KAAK,CAAClY,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,UAAUA,KAAK,EAAE;YACpD,OAAOsS,SAAS,OAAI,CAACtS,KAAK,CAAC,CAACa,QAAQ,CAAC,CAAC;UACxC,CAAC,CAAC;MACN;IACF;EAAC;IAAAD,GAAA;IAAAZ,KAAA,EAED,SAAAugB,iBAAiBvgB,KAAK,EAAE;MACtB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,mBAAmB,EAAE,IAAI,CAAC;IACrD;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAwgB,IAAIxgB,KAAK,EAAE;MACT,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;IACxC;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAA6Z,OAAO7Z,KAAK,EAAE;MACZ,IAAIygB,KAAK,EAAEC,OAAO;MAAC,IAAAC,KAAA,GACCnX,oBAAU,CAACxJ,KAAK,IAAI,IAAI,GAAGA,KAAK,CAACgB,KAAK,GAAG,KAAK,CAAC,CAAC,GAAIhB,KAAK,CAACgB,KAAK,CAAC,IAAI,CAAC,GAAG6W,iBAAO,CAAC7X,KAAK,CAAC,GAAGA,KAAK,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC;MAAA,IAAA4gB,KAAA,GAAArM,4BAAA,CAAAoM,KAAA;MAAhID,OAAO,GAAAE,KAAA;MAAEH,KAAK,GAAAG,KAAA;MACf,IAAIF,OAAO,IAAI,IAAI,EAAE;QACnB,IAAI,CAACG,WAAW,CAACH,OAAO,CAAC;MAC3B;MACA,IAAID,KAAK,IAAI,IAAI,EAAE;QACjB,OAAO,IAAI,CAACb,SAAS,CAACa,KAAK,CAAC;MAC9B;IACF;EAAC;IAAA7f,GAAA;IAAAZ,KAAA,EAED,SAAA8gB,QAAQ9gB,KAAK,EAAE;MACb,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,SAAS,EAAE,GAAG,EAAEiQ,UAAU,CAACI,SAAS,CAAC;IAChE;EAAC;IAAAzP,GAAA;IAAAZ,KAAA,EAED,SAAA+gB,QAAQ/gB,KAAK,EAAE;MACb,OAAO,IAAI,CAACwb,UAAU,CAACxb,KAAK,EAAE,SAAS,EAAE,GAAG,CAAC;IAC/C;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAghB,KAAKhhB,KAAK,EAAE;MACV,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC;IACxC;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAihB,OAAOjhB,KAAK,EAAE;MACZ,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,QAAQ,CAAC;IACpC;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAkhB,OAAOlhB,KAAK,EAAE;MACZ,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,QAAQ,EAAE,GAAG,CAAC;IACzC;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAoG,QAAQpG,KAAK,EAAE;MACb,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,SAAS,EAAE,GAAG,EAAEiQ,UAAU,CAACI,SAAS,CAAC;IAChE;EAAC;IAAAzP,GAAA;IAAAZ,KAAA,EAED,SAAAmhB,OAAOnhB,KAAK,EAAE;MACZ,OAAO,IAAI,CAACsb,UAAU,CAACtb,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAEiQ,UAAU,CAACI,SAAS,CAAC;IACzE;EAAC;IAAAzP,GAAA;IAAAZ,KAAA,EAED,SAAAohB,kBAAkBphB,KAAK,EAAE;MACvB,OAAO,IAAI,CAACmb,QAAQ,CAACnb,KAAK,EAAE,oBAAoB,CAAC;IACnD;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAyL,KAAKzL,KAAK,EAAE;MACV,IAAI0G,MAAM,EAAEJ,KAAK;MACjB,IAAIkD,oBAAU,CAACxJ,KAAK,IAAI,IAAI,GAAGA,KAAK,CAACgB,KAAK,GAAG,KAAK,CAAC,CAAC,EAAE;QAAA,IAAAqT,YAAA,GAClCrU,KAAK,CAACgB,KAAK,CAAC,GAAG,CAAC;QAAA,IAAAsT,aAAA,GAAAC,4BAAA,CAAAF,YAAA;QAAjC/N,KAAK,GAAAgO,aAAA;QAAE5N,MAAM,GAAA4N,aAAA;QACd,IAAI,CAAChO,KAAK,CAACA,KAAK,CAAC;QACjB,OAAO,IAAI,CAACI,MAAM,CAACA,MAAM,CAAC;MAC5B;IACF;EAAC;IAAA9F,GAAA;IAAAZ,KAAA,EAED,SAAAqhB,YAAYrhB,KAAK,EAAE;MACjB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,cAAc,CAAC;IAC1C;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAshB,qBAAqBthB,KAAK,EAAE;MAC1B,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,uBAAuB,CAAC;IACnD;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAA6gB,YAAY7gB,KAAK,EAAE;MACjB,OAAO,IAAI,CAACqb,UAAU,CAACrb,KAAK,EAAE,cAAc,EAAE,IAAI,CAAC;IACrD;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAuhB,iBAAiBvhB,KAAK,EAAE;MACtB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,mBAAmB,EAAE,IAAI,CAAC;IACrD;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAsF,eAAetF,KAAK,EAAE;MACpB,OAAO,IAAI,CAACub,mBAAmB,CAACvb,KAAK,EAAE,gBAAgB,EAAE,GAAG,CAAC;IAC/D;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAwhB,SAASxhB,KAAK,EAAE;MACd,OAAO,IAAI,CAACwb,UAAU,CAACxb,KAAK,EAAE,UAAU,EAAE,GAAG,CAAC;IAChD;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAA6R,SAASvF,IAAI,EAAEtM,KAAK,EAAE;MACpB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAEsM,IAAI,EAAEA,IAAI,CAAC;IACtC;EAAC;IAAA1L,GAAA;IAAAZ,KAAA,EAED,SAAA4G,UAAU4V,MAAM,EAAE;MAChB,OAAO,IAAI,CAAClB,UAAU,CAACkB,MAAM,EAAE,WAAW,CAAC;IAC7C;EAAC;IAAA5b,GAAA;IAAAZ,KAAA,EAED,SAAAyhB,WAAWzhB,KAAK,EAAE;MAChB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,aAAa,EAAE,IAAI,EAAEwX,gBAAK,CAACS,oBAAoB,CAAC;IAC3E;EAAC;IAAArX,GAAA;IAAAZ,KAAA,EAED,SAAA0hB,cAAc1hB,KAAK,EAAE;MACnB,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,gBAAgB,EAAE,IAAI,CAAC;IAClD;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAsG,MAAMtG,KAAK,EAAE;MAAA,IAAAoZ,MAAA;MACX,OAAO,IAAI,CAAClB,KAAK,CAAClY,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,YAAM;QAC3C,IAAIoZ,MAAI,CAACqC,QAAQ,CAAC,MAAM,CAAC,IAAIrC,MAAI,CAACqC,QAAQ,CAAC,SAAS,CAAC,IAAIrC,MAAI,CAACqC,QAAQ,CAAC,UAAU,CAAC,EAAE;UAClF,OAAOxL,UAAU,CAACI,SAAS,CAACrQ,KAAK,CAAC;QACpC,CAAC,MAAM;UACL,OAAO,IAAI;QACb;MACF,CAAC,CAAC;IACJ;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAJ,EAAEI,KAAK,EAAE;MACP,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,GAAG,EAAE,GAAG,EAAEiQ,UAAU,CAACI,SAAS,CAAC;IAC1D;EAAC;IAAAzP,GAAA;IAAAZ,KAAA,EAED,SAAAH,EAAEG,KAAK,EAAE;MACP,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,GAAG,EAAE,GAAG,EAAEiQ,UAAU,CAACI,SAAS,CAAC;IAC1D;EAAC;IAAAzP,GAAA;IAAAZ,KAAA,EAED,SAAA2hB,KAAK3hB,KAAK,EAAE;MACV,OAAO,IAAI,CAACkY,KAAK,CAAClY,KAAK,EAAE,MAAM,EAAE,GAAG,EAAEiQ,UAAU,CAACI,SAAS,CAAC;IAC7D;EAAC;IAAAzP,GAAA;IAAAZ,KAAA,EA9TD,SAAAoR,KAAWlO,OAAO,EAAE;MAClB,OAAO,IAAIoW,cAAc,CAACpW,OAAO,CAAC;IACpC;EAAC;AAAA,EA5B0BsX,iCAAkB;AA4V/C;AACA;AACA;AACA;AACA;AACAlB,6BAAc,CAACoD,OAAO,GAAG,CACvB,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,MAAM,EACN,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,OAAO,EACP,SAAS,EACT,UAAU,EACV,KAAK,EACL,QAAQ,EACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,QAAQ,EACR,OAAO,EACP,SAAS,EACT,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,IAAI,EACJ,kBAAkB,EAClB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,SAAS,EACT,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,mBAAmB,EACnB,MAAM,EACN,aAAa,EACb,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,EACZ,eAAe,EACf,OAAO,EACP,GAAG,EACH,GAAG,EACH,MAAM,CACP;;AAED;AACA;AACA;AACA;AACA;AACApD,6BAAc,CAAC0E,WAAW,GAAG1E,6BAAc,CAACoD,OAAO,CAAClc,GAAG,CAAC4J,SAAS,CAAC,CAACtH,MAAM,CAAC+P,iBAAa,CAACsC,aAAa,CAAC;AAEvFmE,oFAAc,E;;;;;;;;ACx7B7B;AACA;AACA;AACA;;AASiB;AAE8B;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA,IAQMsI,eAAO;EACX,SAAAA,QAAYtV,IAAI,EAAEiJ,QAAQ,EAAErS,OAAO,EAAE;IAAAiN,sBAAA,OAAAyR,OAAA;IACnC,IAAItc,cAAc;IAClB,IAAI,CAACgH,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACiJ,QAAQ,GAAGA,QAAQ;IACxB,IAAIrS,OAAO,IAAI,IAAI,EAAE;MACnB,IAAIyR,uBAAa,CAACY,QAAQ,CAAC,EAAE;QAC3BrS,OAAO,GAAGqS,QAAQ;QAClB,IAAI,CAACA,QAAQ,GAAG,KAAK,CAAC;MACxB,CAAC,MAAM;QACLrS,OAAO,GAAG,CAAC,CAAC;MACd;IACF;IACAoC,cAAc,GAAG,IAAIgU,kBAAc,CAACpW,OAAO,CAAC;IAC5CoC,cAAc,CAACoL,SAAS,CAAC,IAAI,CAAC;IAC9B,IAAI,CAACpL,cAAc,GAAG,YAAY;MAChC,OAAOA,cAAc;IACvB,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EATE,OAAAgL,mBAAA,CAAAsR,OAAA;IAAAhhB,GAAA;IAAAZ,KAAA;IAcA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACE,SAAA6hB,UAAUC,KAAK,EAAE;MACf,IAAIlhB,GAAG,EAAEmhB,KAAK,EAAE/hB,KAAK;MACrB,OAAO+hB,KAAK,GAAK,YAAY;QAC3B,IAAI3U,OAAO;QACXA,OAAO,GAAG,EAAE;QACZ,KAAKxM,GAAG,IAAIkhB,KAAK,EAAE;UACjB9hB,KAAK,GAAGgiB,YAAY,CAACF,KAAK,CAAClhB,GAAG,CAAC,CAAC;UAChC,IAAIZ,KAAK,EAAE;YACToN,OAAO,CAACC,IAAI,CAAC4U,mBAAW,CAACrhB,GAAG,EAAEZ,KAAK,CAAC,CAAC;UACvC;QACF;QACA,OAAOoN,OAAO;MAChB,CAAC,CAAE,CAAC,CAAEyO,IAAI,CAAC,CAAC,CAACza,IAAI,CAAC,GAAG,CAAC;IACxB;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAR,GAAA;IAAAZ,KAAA,EAMA,SAAAkiB,WAAA,EAAa;MACX,OAAO,IAAI,CAAC5c,cAAc,CAAC,CAAC,CAACsP,SAAS,CAAC,CAAC;IAC1C;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;EANE;IAAAhU,GAAA;IAAAZ,KAAA,EAOA,SAAAmiB,UAAU7V,IAAI,EAAE;MACd,OAAO,IAAI,CAAChH,cAAc,CAAC,CAAC,CAACmW,QAAQ,CAACnP,IAAI,CAAC;IAC7C;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAA1L,GAAA;IAAAZ,KAAA,EAKA,SAAAmN,WAAA,EAAa;MACX;MACA,IAAIiV,cAAc,GAAG,IAAI,CAAC9c,cAAc,CAAC,CAAC,CAACuY,gBAAgB,CAAC,CAAC;MAC7DtW,MAAM,CAACF,IAAI,CAAC+a,cAAe,CAAC,CAAC1hB,OAAO,CAAC,UAAAE,GAAG,EAAI;QAC1C,IAAG+T,uBAAa,CAACyN,cAAc,CAACxhB,GAAG,CAAC,CAAC,EAAC;UACpC,OAAOwhB,cAAc,CAACxhB,GAAG,CAAC;QAC5B;MACF,CAAC,CAAC;MACF,IAAIwhB,cAAc,CAACjV,UAAU,EAAE;QAC7B;QACAmG,eAAK,CAAC8O,cAAc,EAAEA,cAAc,CAACjV,UAAU,CAAC;QAChD,OAAOiV,cAAc,CAACjV,UAAU;MAClC;MAEA,OAAOiV,cAAc;IACvB;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAxhB,GAAA;IAAAZ,KAAA,EAMA,SAAA+M,QAAQT,IAAI,EAAEtM,KAAK,EAAE;MACnB,IAAI,CAACsF,cAAc,CAAC,CAAC,CAAC8N,GAAG,SAAAtQ,MAAA,CAASwJ,IAAI,GAAItM,KAAK,CAAC;MAChD,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAAwM,QAAQF,IAAI,EAAE;MACZ,OAAO,IAAI,CAACa,UAAU,CAAC,CAAC,SAAArK,MAAA,CAASwJ,IAAI,EAAG,IAAI,IAAI,CAACa,UAAU,CAAC,CAAC,CAACb,IAAI,CAAC;IACrE;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAA1L,GAAA;IAAAZ,KAAA,EAMA,SAAAqiB,WAAW/V,IAAI,EAAE;MACf,IAAI+I,GAAG;MACP,OAAO,CAACA,GAAG,GAAG,IAAI,CAAC/P,cAAc,CAAC,CAAC,CAACoW,MAAM,SAAA5Y,MAAA,CAASwJ,IAAI,CAAE,CAAC,KAAK,IAAI,GAAG+I,GAAG,GAAG,IAAI,CAAC/P,cAAc,CAAC,CAAC,CAACoW,MAAM,CAACpP,IAAI,CAAC;IAChH;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAA1L,GAAA;IAAAZ,KAAA,EAKA,SAAAsiB,QAAA,EAAU;MACR,OAAO,EAAE;IACX;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAA1hB,GAAA;IAAAZ,KAAA,EAKA,SAAAuiB,QAAA,EAAU;MACR,IAAIC,GAAG,GAAG,GAAG,GAAG,IAAI,CAAClW,IAAI;MACzB,IAAIuV,SAAS,GAAG,IAAI,CAACA,SAAS,CAAC,IAAI,CAAC1U,UAAU,CAAC,CAAC,CAAC;MACjD,IAAG0U,SAAS,IAAIA,SAAS,CAAC5iB,MAAM,GAAG,CAAC,EAAE;QACpCujB,GAAG,IAAI,GAAG,GAAGX,SAAS;MACxB;MACA,OAAOW,GAAG,GAAG,GAAG;IAClB;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAA5hB,GAAA;IAAAZ,KAAA,EAKA,SAAAyiB,SAAA,EAAW;MACT,YAAA3f,MAAA,CAAY,IAAI,CAACwJ,IAAI;IACvB;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAA1L,GAAA;IAAAZ,KAAA,EAKA,SAAAie,OAAA,EAAS;MACP,OAAO,IAAI,CAACsE,OAAO,CAAC,CAAC,GAAG,IAAI,CAACD,OAAO,CAAC,CAAC,GAAG,IAAI,CAACG,QAAQ,CAAC,CAAC;IAC1D;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAA7hB,GAAA;IAAAZ,KAAA,EAKA,SAAA0iB,MAAA,EAAQ;MACN,IAAIrW,OAAO,EAAEC,IAAI,EAAE+I,GAAG,EAAErV,KAAK;MAC7B,IAAI,CAACwJ,oBAAU,CAAC,OAAOkK,QAAQ,KAAK,WAAW,IAAIA,QAAQ,KAAK,IAAI,GAAGA,QAAQ,CAACiP,aAAa,GAAG,KAAK,CAAC,CAAC,EAAE;QACvG,MAAM,8CAA8C;MACtD;MACAtW,OAAO,GAAGqH,QAAQ,CAACiP,aAAa,CAAC,IAAI,CAACrW,IAAI,CAAC;MAC3C+I,GAAG,GAAG,IAAI,CAAClI,UAAU,CAAC,CAAC;MACvB,KAAKb,IAAI,IAAI+I,GAAG,EAAE;QAChBrV,KAAK,GAAGqV,GAAG,CAAC/I,IAAI,CAAC;QACjBD,OAAO,CAACS,YAAY,CAACR,IAAI,EAAEtM,KAAK,CAAC;MACnC;MACA,OAAOqM,OAAO;IAChB;EAAC;IAAAzL,GAAA;IAAAZ,KAAA,EAhKD,SAAAoR,KAAW9E,IAAI,EAAEiJ,QAAQ,EAAErS,OAAO,EAAE;MAClC,OAAO,IAAI,IAAI,CAACoJ,IAAI,EAAEiJ,QAAQ,EAAErS,OAAO,CAAC;IAC1C;EAAC;IAAAtC,GAAA;IAAAZ,KAAA,EAgKD,SAAA4iB,aAAoBJ,GAAG,EAAEK,eAAe,EAAE;MACxC,IAAIC,OAAO;MACXA,OAAO,GAAG1W,cAAO,CAACoW,GAAG,EAAE,WAAW,CAAC,IAAIpW,cAAO,CAACoW,GAAG,EAAE,KAAK,CAAC;MAC1D,OAAOlV,eAAQ,CAACkV,GAAG,EAAEK,eAAe,CAAC,IAAI,YAAY,CAACzO,IAAI,CAAC0O,OAAO,CAAC;IACrE;EAAC;AAAA;AAEF;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASb,mBAAWA,CAACrhB,GAAG,EAAEZ,KAAK,EAAE;EAC/B,IAAI,CAACA,KAAK,EAAE;IACV,OAAO,KAAK,CAAC;EACf,CAAC,MAAM,IAAIA,KAAK,KAAK,IAAI,EAAE;IACzB,OAAOY,GAAG;EACZ,CAAC,MAAM;IACL,UAAAkC,MAAA,CAAUlC,GAAG,SAAAkC,MAAA,CAAK9C,KAAK;EACzB;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASgiB,YAAYA,CAAChiB,KAAK,EAAE;EAC3B,OAAO8H,kBAAQ,CAAC9H,KAAK,CAAC,GAAGA,KAAK,CAACwI,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAACA,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,GAAGxI,KAAK;AACpF;AAEe4hB,2DAAO,E;;;;;AC5PwB;AASzB;AAML;AAEY;AACmD;AACV;;AAGrE;AACA;AACA;AACA;AACA;AACA,SAASmB,OAAOA,CAACxjB,GAAG,EAAE;EAClB,IAAI2hB,MAAM,GAAGxN,QAAQ,CAACuB,QAAQ,CAACC,QAAQ,GAAG,IAAI,GAAGxB,QAAQ,CAACuB,QAAQ,CAAC+N,IAAI;EACvE,IAAIzjB,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;IAClB2hB,MAAM,IAAIxN,QAAQ,CAACuB,QAAQ,CAACgO,QAAQ;EACtC,CAAC,MAAM,IAAI1jB,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;IACzB2hB,MAAM,IAAIxN,QAAQ,CAACuB,QAAQ,CAACgO,QAAQ,CAACza,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC;EAChE;EACA,OAAO0Y,MAAM,GAAG3hB,GAAG;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS2jB,KAAKA,CAAC3jB,GAAG,EAAC;EACjB,OAAOA,GAAG,GAAG,CAAC,CAACA,GAAG,CAACqC,KAAK,CAAC,YAAY,CAAC,GAAG,KAAK;AAChD;;AAEA;AACA,SAASuhB,kBAAkBA,CAAC5N,QAAQ,EAAE;EACpC,OAAOjW,SAAK,CAACiW,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC;AAChC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS6N,eAAeA,CAAClgB,OAAO,EAAE;EAChC,IAAOmgB,SAAS,GAAIngB,OAAO,CAApBmgB,SAAS;EAChB,IAAMC,WAAW,GAAG,CAACD,SAAS,IAAKA,SAAS,CAACjF,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAIiF,SAAS,CAACvjB,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,IAAK;EACnG,OAAOoD,OAAO,CAACmgB,SAAS;EAExB,OAAOC,WAAW,GAAGD,SAAS,SAAAvgB,MAAA,CAASugB,SAAS,OAAI;AACtD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASE,YAAYA,CAAChO,QAAQ,EAAErS,OAAO,EAAE;EACvC,IAAIA,OAAO,CAACsgB,UAAU,IAAItgB,OAAO,CAACsgB,UAAU,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;IACvD,OAAO,MAAM,GAAGtgB,OAAO,CAACsgB,UAAU;EACpC;EACA;EACA,IAAItO,QAAQ,GAAG,SAAS;EACxB,IAAIuO,OAAO,GAAG,EAAE;EAChB,IAAIC,SAAS,GAAG,KAAK;EACrB,IAAIV,IAAI,GAAG,iBAAiB;EAC5B,IAAIW,IAAI,GAAG,GAAG,GAAGzgB,OAAO,CAACsgB,UAAU;EACnC;EACA,IAAItgB,OAAO,CAACgS,QAAQ,EAAE;IACpBA,QAAQ,GAAGhS,OAAO,CAACgS,QAAQ,GAAG,IAAI;EACpC;EACA,IAAIhS,OAAO,CAAC0gB,WAAW,EAAE;IACvBH,OAAO,GAAGvgB,OAAO,CAACsgB,UAAU,GAAG,GAAG;IAClCG,IAAI,GAAG,EAAE;EACX;EACA,IAAIzgB,OAAO,CAAC2gB,aAAa,EAAE;IACzBH,SAAS,GAAG,MAAM,GAAGP,kBAAkB,CAAC5N,QAAQ,CAAC;EACnD;EACA,IAAIrS,OAAO,CAAC8R,MAAM,EAAE;IAClBE,QAAQ,GAAG,UAAU;IACrB,IAAIhS,OAAO,CAAC4gB,oBAAoB,KAAK,KAAK,EAAE;MAC1CJ,SAAS,GAAG,KAAK;IACnB;IACA,IAAKxgB,OAAO,CAAC6gB,mBAAmB,IAAI,IAAI,IAAK7gB,OAAO,CAAC6gB,mBAAmB,KAAKnf,qBAAqB,IAAI1B,OAAO,CAAC6gB,mBAAmB,KAAKjf,UAAU,EAAE;MAChJ2e,OAAO,GAAG,EAAE;MACZC,SAAS,GAAG,EAAE;MACdV,IAAI,GAAG9f,OAAO,CAAC6gB,mBAAmB;IACpC;EACF,CAAC,MAAM,IAAI7gB,OAAO,CAAC8gB,KAAK,EAAE;IACxB9O,QAAQ,GAAG,SAAS;IACpBuO,OAAO,GAAG,EAAE;IACZC,SAAS,GAAGxgB,OAAO,CAAC2gB,aAAa,GAAG,GAAG,IAAKvkB,SAAK,CAACiW,QAAQ,CAAC,GAAG,CAAC,GAAI,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE;IAChFyN,IAAI,GAAG9f,OAAO,CAAC8gB,KAAK;EACtB;EACA,OAAO,CAAC9O,QAAQ,EAAEuO,OAAO,EAAEC,SAAS,EAAEV,IAAI,EAAEW,IAAI,CAAC,CAACviB,IAAI,CAAC,EAAE,CAAC;AAC5D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS6iB,kBAAkBA,CAAAvF,IAAA,EAAiF;EAAA,IAAAwF,kBAAA,GAAAxF,IAAA,CAA/ExZ,aAAa;IAAbA,aAAa,GAAAgf,kBAAA,cAAG,OAAO,GAAAA,kBAAA;IAAAC,SAAA,GAAAzF,IAAA,CAAEnZ,IAAI;IAAJA,IAAI,GAAA4e,SAAA,cAAG,QAAQ,GAAAA,SAAA;IAAEC,UAAU,GAAA1F,IAAA,CAAV0F,UAAU;IAAEC,aAAa,GAAA3F,IAAA,CAAb2F,aAAa;IAAEC,OAAO,GAAA5F,IAAA,CAAP4F,OAAO;EACvG,IAAIphB,OAAO;IAAEoS,YAAY,GAAGpQ,aAAa;EAEzC,IAAIyP,uBAAa,CAACW,YAAY,CAAC,EAAE;IAC/BpS,OAAO,GAAGoS,YAAY;IACtBA,YAAY,GAAGpS,OAAO,CAACgC,aAAa;IACpCK,IAAI,GAAGrC,OAAO,CAACqC,IAAI;IACnB+e,OAAO,GAAGphB,OAAO,CAACohB,OAAO;EAC3B;EACA,IAAI/e,IAAI,IAAI,IAAI,EAAE;IAChBA,IAAI,GAAG,QAAQ;EACjB;EACA,IAAI6e,UAAU,IAAI,IAAI,EAAE;IACtB9O,YAAY,GAAGlQ,SAAS,IAAAtC,MAAA,CAAIwS,YAAY,OAAAxS,MAAA,CAAIyC,IAAI,EAAG;IACnDA,IAAI,GAAG,IAAI;IACX,IAAI+P,YAAY,IAAI,IAAI,EAAE;MACxB,MAAM,IAAIrU,KAAK,kCAAA6B,MAAA,CAAkCyE,MAAM,CAACF,IAAI,CAACjC,SAAS,CAAC,CAAChE,IAAI,CAAC,IAAI,CAAC,CAAE,CAAC;IACvF;EACF;EACA,IAAIijB,aAAa,EAAE;IACjB,IAAI/O,YAAY,KAAK,OAAO,IAAI/P,IAAI,KAAK,QAAQ,IAAI+P,YAAY,KAAK,QAAQ,EAAE;MAC9EA,YAAY,GAAG,IAAI;MACnB/P,IAAI,GAAG,IAAI;IACb,CAAC,MAAM;MACL,MAAM,IAAItE,KAAK,CAAC,2CAA2C,CAAC;IAC9D;EACF;EACA,IAAIqjB,OAAO,IAAIhP,YAAY,KAAK,OAAO,IAAI/P,IAAI,KAAK,QAAQ,EAAE;IAC5D+P,YAAY,GAAG,IAAI;IACnB/P,IAAI,GAAG,IAAI;EACb;EACA,OAAO,CAAC+P,YAAY,EAAE/P,IAAI,CAAC,CAACnE,IAAI,CAAC,GAAG,CAAC;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASmjB,cAAcA,CAAChP,QAAQ,EAAE;EAChC,OAAOiP,kBAAkB,CAACjP,QAAQ,CAAC,CAAC/M,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAACA,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;AAC/E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASic,cAAcA,CAAClP,QAAQ,EAAErS,OAAO,EAAE;EACzC,IAAIggB,KAAK,CAAC3N,QAAQ,CAAC,EAAC;IAClBA,QAAQ,GAAGgP,cAAc,CAAChP,QAAQ,CAAC;EACrC,CAAC,MAAM;IACL,IAAI;MACF;MACAA,QAAQ,GAAGmP,kBAAkB,CAACnP,QAAQ,CAAC;IACzC,CAAC,CAAC,OAAOoP,KAAK,EAAE,CAAC;IAEjBpP,QAAQ,GAAGgP,cAAc,CAAChP,QAAQ,CAAC;IAEnC,IAAIrS,OAAO,CAACkhB,UAAU,EAAE;MACtB7O,QAAQ,GAAGA,QAAQ,GAAG,GAAG,GAAGrS,OAAO,CAACkhB,UAAU;IAChD;IACA,IAAIlhB,OAAO,CAAC+B,MAAM,EAAE;MAClB,IAAI,CAAC/B,OAAO,CAAC0hB,eAAe,EAAE;QAC5BrP,QAAQ,GAAGA,QAAQ,CAAC/M,OAAO,CAAC,uBAAuB,EAAE,EAAE,CAAC;MAC1D;MACA+M,QAAQ,GAAGA,QAAQ,GAAG,GAAG,GAAGrS,OAAO,CAAC+B,MAAM;IAC5C;EACF;EACA,OAAOsQ,QAAQ;AACjB;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASsP,QAAQA,CAAC3hB,OAAO,EAAE;EACzB,IAAOsgB,UAAU,GAAgBtgB,OAAO,CAAjCsgB,UAAU;IAAEY,UAAU,GAAIlhB,OAAO,CAArBkhB,UAAU;EAE7B,IAAI,CAACZ,UAAU,EAAE;IACf,OAAO,oBAAoB;EAC7B;EAEA,IAAIY,UAAU,IAAIA,UAAU,CAACxiB,KAAK,CAAC,QAAQ,CAAC,EAAE;IAC5C,OAAO,sCAAsC;EAC/C;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASkjB,aAAaA,CAACvP,QAAQ,EAAErS,OAAO,EAAE;EACxC;EACA,IAAM6hB,cAAc,GAAI7hB,OAAO,CAAC8hB,aAAa,IAAI,OAAO9hB,OAAO,CAAC8hB,aAAa,KAAK,WAAY;;EAE9F;EACA,IAAMC,cAAc,GAAI1P,QAAQ,CAAC6I,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI7I,QAAQ,CAAC3T,KAAK,CAAC,UAAU,CAAC,IAAIshB,KAAK,CAAC3N,QAAQ,CAAC,IAAKrS,OAAO,CAACgiB,OAAO;EAEtH,IAAIH,cAAc,IAAI,CAACE,cAAc,EAAE;IACrC/hB,OAAO,CAACgiB,OAAO,GAAG,CAAC;EACrB;EAEA,OAAOhiB,OAAO,CAACgiB,OAAO,OAAApiB,MAAA,CAAOI,OAAO,CAACgiB,OAAO,IAAK,EAAE;AACrD;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASC,oBAAoBA,CAACjiB,OAAO,EAAE;EACrC,IAAAyd,KAAA,GAAoDzd,OAAO,IAAI,CAAC,CAAC;IAA5DK,WAAW,GAAAod,KAAA,CAAXpd,WAAW;IAAEH,aAAa,GAAAud,KAAA,CAAbvd,aAAa;IAAKwX,YAAY,GAAAwK,wBAAA,CAAAzE,KAAA,EAAA0E,SAAA;EAChD,IAAM9a,MAAM,GAAG,IAAI+O,kBAAc,CAACsB,YAAY,CAAC;;EAE/C;EACA,IAAIxX,aAAa,IAAIyD,mBAAmB,CAACzD,aAAa,CAAC,EAAE;IACvDmH,MAAM,CAACyR,KAAK,CAAC,CAAC,CAAC7V,MAAM,CAACU,mBAAmB,CAACzD,aAAa,CAAC,CAAC;EAC3D;;EAEA;EACA,IAAIG,WAAW,EAAE;IACf,IAAIA,WAAW,KAAK,mBAAmB,IAAIgH,MAAM,CAACkR,QAAQ,CAAC,OAAO,CAAC,IAAIlR,MAAM,CAACkR,QAAQ,CAAC,QAAQ,CAAC,EAAE;MAChGlY,WAAW,IAAI,QAAQ;IACzB;IACA,IAAM+hB,0BAA0B,GAAGpf,uBAAuB,CAAC3C,WAAW,CAAC,IAAI2C,uBAAuB,CAACqf,IAAI;IACvGD,0BAA0B,CAAC5kB,OAAO,CAAC,UAAAmY,CAAC;MAAA,OAAItO,MAAM,CAACyR,KAAK,CAAC,CAAC,CAAC1W,cAAc,CAACuT,CAAC,CAAC;IAAA,EAAC;EAC3E;EAEA,OAAOtO,MAAM,CAACgG,SAAS,CAAC,CAAC;AAC3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASiV,eAAeA,CAACjQ,QAAQ,EAAAqL,KAAA,EAAS;EAAA,IAANrb,IAAI,GAAAqb,KAAA,CAAJrb,IAAI;EACtC,OAAQ,CAAC2d,KAAK,CAAC3N,QAAQ,CAAC,IAAIhQ,IAAI,KAAK,OAAO,GAAIwd,OAAO,CAACxN,QAAQ,CAAC,GAAGA,QAAQ;AAC9E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASkQ,SAASA,CAAClQ,QAAQ,EAAErS,OAAO,EAAE;EACpC,IAAIggB,KAAK,CAAC3N,QAAQ,CAAC,KAAKrS,OAAO,CAACqC,IAAI,KAAK,QAAQ,IAAIrC,OAAO,CAACqC,IAAI,KAAK,OAAO,CAAC,EAAE;IAC9E,OAAOgQ,QAAQ;EACjB;EAEA,IAAM2P,OAAO,GAAGJ,aAAa,CAACvP,QAAQ,EAAErS,OAAO,CAAC;EAChD,IAAMoa,oBAAoB,GAAG6H,oBAAoB,CAACjiB,OAAO,CAAC;EAC1D,IAAMge,MAAM,GAAGqC,YAAY,CAAChO,QAAQ,EAAErS,OAAO,CAAC;EAC9C,IAAMmgB,SAAS,GAAGD,eAAe,CAAClgB,OAAO,CAAC;EAC1C,IAAMoS,YAAY,GAAG2O,kBAAkB,CAAC/gB,OAAO,CAAC;EAEhDqS,QAAQ,GAAGkP,cAAc,CAAClP,QAAQ,EAAErS,OAAO,CAAC;EAE5C,OAAOyS,iBAAO,CAAC,CAACuL,MAAM,EAAE5L,YAAY,EAAE+N,SAAS,EAAE/F,oBAAoB,EAAE4H,OAAO,EAAE3P,QAAQ,CAAC,CAAC,CACvFnU,IAAI,CAAC,GAAG,CAAC,CACToH,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;EAAA,CAC7BA,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC;AACxB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASkd,cAAcA,CAACxiB,OAAO,EAAEqQ,MAAM,EAAE;EACvC,IAAIrQ,OAAO,YAAYoW,kBAAc,EAAE;IACrCpW,OAAO,GAAGA,OAAO,CAAC0R,SAAS,CAAC,CAAC;EAC/B;EAEA1R,OAAO,GAAGyF,QAAQ,CAAC,CAAC,CAAC,EAAEzF,OAAO,EAAEqQ,MAAM,EAAElO,oBAAoB,CAAC;EAE7D,IAAInC,OAAO,CAACqC,IAAI,KAAK,OAAO,EAAE;IAC5BrC,OAAO,CAACmD,YAAY,GAAGnD,OAAO,CAACmD,YAAY,IAAInD,OAAO,CAAC+B,MAAM;EAC/D;EAEA,OAAO/B,OAAO;AAChB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS+H,OAAGA,CAACsK,QAAQ,EAA6B;EAAA,IAA3BrS,OAAO,GAAAjB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;EAAA,IAAEsR,MAAM,GAAAtR,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;EAC7D,IAAI,CAACsT,QAAQ,EAAE;IACb,OAAOA,QAAQ;EACjB;EACArS,OAAO,GAAGwiB,cAAc,CAACxiB,OAAO,EAAEqQ,MAAM,CAAC;EACzCgC,QAAQ,GAAGiQ,eAAe,CAACjQ,QAAQ,EAAErS,OAAO,CAAC;EAE7C,IAAMyhB,KAAK,GAAGE,QAAQ,CAAC3hB,OAAO,CAAC;EAE/B,IAAIyhB,KAAK,EAAE;IACT,MAAMA,KAAK;EACb;EACA,IAAIgB,SAAS,GAAGF,SAAS,CAAClQ,QAAQ,EAAErS,OAAO,CAAC;EAC5C,IAAGA,OAAO,CAACC,YAAY,EAAE;IACvB,IAAInB,gBAAgB,GAAGiB,mBAAmB,CAACC,OAAO,CAAC;IACnD,IAAI0iB,qBAAqB,GAAG7jB,wBAAwB,CAACC,gBAAgB,CAAC;IACtE;IACA,IAAI6jB,QAAQ,GAAG,GAAG;IAClB,IAAIF,SAAS,CAACvH,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;MAC/ByH,QAAQ,GAAG,GAAG;IAChB;IACAF,SAAS,MAAA7iB,MAAA,CAAM6iB,SAAS,EAAA7iB,MAAA,CAAG+iB,QAAQ,SAAA/iB,MAAA,CAAM8iB,qBAAqB,CAAE;EAClE;EACA,IAAI1iB,OAAO,CAAC4iB,UAAU,EAAE;IACtB,IAAID,SAAQ,GAAGF,SAAS,CAACvH,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG;IACtDuH,SAAS,MAAA7iB,MAAA,CAAM6iB,SAAS,EAAA7iB,MAAA,CAAG+iB,SAAQ,oBAAA/iB,MAAA,CAAiBI,OAAO,CAAC4iB,UAAU,CAAE;EAC1E;EACA,OAAOH,SAAS;AAClB;AAAC,C;;;;;;;;AC/XD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASI,mBAAmBA,CAACC,MAAM,EAAE;EAClD,IAAIC,WAAW,GAAGD,MAAM,CAACC,WAAW,IAAI,EAAE;EAC1C,IAAIA,WAAW,CAAChnB,MAAM,EAAE;IACtB,OAAOgnB,WAAW;EACpB;EACA,IAAAC,IAAA,GAAyC,CAACF,MAAM,CAACG,SAAS,EAAEH,MAAM,CAACI,SAAS,EAAEJ,MAAM,CAACK,UAAU,CAAC,CAAC7lB,GAAG,CAAC8lB,MAAM,CAAC;IAAAC,KAAA,GAAAhS,iCAAA,CAAA2R,IAAA;IAAvGC,SAAS,GAAAI,KAAA;IAAEH,SAAS,GAAAG,KAAA;IAAEF,UAAU,GAAAE,KAAA;EACrC,IAAI,CAACJ,SAAS,EAAEC,SAAS,EAAEC,UAAU,CAAC,CAACG,IAAI,CAACpe,KAAK,CAAC,EAAE;IAClD,MAAM,4CAA4C,GAClD,+DAA+D;EACjE;EAEA,IAAI+d,SAAS,GAAGC,SAAS,EAAE;IACzB,MAAM,uCAAuC;EAC/C;EAEA,IAAIC,UAAU,IAAI,CAAC,EAAE;IACnB,MAAM,uCAAuC;EAC/C,CAAC,MAAM,IAAIA,UAAU,KAAK,CAAC,EAAE;IAC3BF,SAAS,GAAGC,SAAS;EACvB;EAEA,IAAIK,QAAQ,GAAGC,IAAI,CAACC,IAAI,CAAC,CAACP,SAAS,GAAGD,SAAS,IAAIO,IAAI,CAACE,GAAG,CAACP,UAAU,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;EAC/E,KAAK,IAAIQ,OAAO,GAAGV,SAAS,EAAEU,OAAO,GAAGT,SAAS,EAAES,OAAO,IAAIJ,QAAQ,EAAE;IACtER,WAAW,CAAC5Y,IAAI,CAACwZ,OAAO,CAAC;EAC3B;EACAZ,WAAW,CAAC5Y,IAAI,CAAC+Y,SAAS,CAAC;EAC3B,OAAOH,WAAW;AACpB,C;;ACtCiC;AAEjC,IAAMzb,mBAAO,GAAGsc,OAAa;AAC2B;AACT;AACtB;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,SAASA,CAACC,SAAS,EAAE1gB,KAAK,EAAEhB,cAAc,EAAgB;EAAA,IAAdpC,OAAO,GAAAjB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;EACtE,IAAIglB,YAAY,GAAGH,gBAAsB,CAAC5jB,OAAO,CAAC;EAClDoC,cAAc,GAAGA,cAAc,IAAIpC,OAAO;EAC1C+jB,YAAY,CAACC,kBAAkB,GAAG,IAAI5N,kBAAc,CAAC,CAACwN,eAAW,CAAC,CAAC,CAAC,EAAExhB,cAAc,CAAC,EAAE;IACrFkB,IAAI,EAAE,OAAO;IACbF,KAAK,EAAEA;EACT,CAAC,CAAC,CAAC,CAACzF,QAAQ,CAAC,CAAC;EAEd,OAAOoK,OAAG,CAAC+b,SAAS,EAAEC,YAAY,CAAC;AACrC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,wBAAwBA,CAACH,SAAS,EAA6B;EAAA,IAA3BhB,MAAM,GAAA/jB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;EAAA,IAAEiB,OAAO,GAAAjB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;EAC3E,OAAO8jB,mBAAmB,CAACC,MAAM,CAAC;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASoB,uBAAuBA,CAACJ,SAAS,EAAEf,WAAW,EAAE3gB,cAAc,EAAEpC,OAAO,EAAE;EACvFA,OAAO,GAAG4jB,mBAAe,CAAC5jB,OAAO,CAAC;EAClC4jB,gBAAsB,CAAC5jB,OAAO,CAAC;EAC/B,OAAO+iB,WAAW,CAACzlB,GAAG,CAAC,UAAA8F,KAAK;IAAA,UAAAxD,MAAA,CAAOikB,SAAS,CAACC,SAAS,EAAE1gB,KAAK,EAAEhB,cAAc,EAAEpC,OAAO,CAAC,OAAAJ,MAAA,CAAIwD,KAAK;EAAA,CAAG,CAAC,CAAClF,IAAI,CAAC,IAAI,CAAC;AACjH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAASimB,sBAAsBA,CAACpB,WAAW,EAAE;EAClD,IAAIA,WAAW,IAAI,IAAI,EAAE;IACvB,OAAO,EAAE;EACX;EACA,OAAOA,WAAW,CAACzlB,GAAG,CAAC,UAAA8F,KAAK;IAAA,sBAAAxD,MAAA,CAAmBwD,KAAK,UAAAxD,MAAA,CAAOwD,KAAK;EAAA,CAAI,CAAC,CAAClF,IAAI,CAAC,IAAI,CAAC;AAClF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASkmB,iCAAiCA,CAAC/R,QAAQ,EAAkD;EAAA,IAAhDpI,UAAU,GAAAlL,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;EAAA,IAAEslB,UAAU,GAAAtlB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;EAAA,IAAEiB,OAAO,GAAAjB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;EACxG;;EAEA,IAAIulB,oBAAoB,GAAG,CAAC,CAAC;EAC7B,IAAIhd,mBAAO,CAAC+c,UAAU,CAAC,EAAE;IACvB,OAAOC,oBAAoB;EAC7B;EAEA,IAAMC,aAAa,GAAI,CAACta,UAAU,CAACua,KAAK,IAAIH,UAAU,CAACG,KAAK,KAAK,IAAK;EAEtE,IAAMC,cAAc,GAAG,CAACxa,UAAU,CAAC6Y,MAAM;EACzC,IAAI2B,cAAc,IAAIF,aAAa,EAAE;IACnC,IAAIxB,WAAW,GAAGkB,wBAAwB,CAAC5R,QAAQ,EAAEgS,UAAU,EAAErkB,OAAO,CAAC;IAEzE,IAAIykB,cAAc,EAAE;MAClB,IAAIriB,cAAc,GAAGiiB,UAAU,CAACjiB,cAAc;MAC9C,IAAIsiB,UAAU,GAAGR,uBAAuB,CAAC7R,QAAQ,EAAE0Q,WAAW,EAAE3gB,cAAc,EAAEpC,OAAO,CAAC;MACxF,IAAI,CAACsH,mBAAO,CAACod,UAAU,CAAC,EAAE;QACxBJ,oBAAoB,CAACxB,MAAM,GAAG4B,UAAU;MAC1C;IACF;IAEA,IAAIH,aAAa,EAAE;MACjB,IAAII,SAAS,GAAGR,sBAAsB,CAACpB,WAAW,CAAC;MACnD,IAAI,CAACzb,mBAAO,CAACqd,SAAS,CAAC,EAAE;QACvBL,oBAAoB,CAACE,KAAK,GAAGG,SAAS;MACxC;IACF;EACF;EACA,OAAOL,oBAAoB;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASM,iBAAiBA,CAAC5kB,OAAO,EAAE;EACzC,IAAI6kB,UAAU,GAAG,EAAE;EACnB,IAAI7kB,OAAO,IAAI,IAAI,EAAE;IACnB,IAAIA,OAAO,CAACijB,SAAS,IAAI,IAAI,EAAE;MAC7B4B,UAAU,CAAC1a,IAAI,gBAAAvK,MAAA,CAAgBI,OAAO,CAACijB,SAAS,QAAK,CAAC;IACxD;IACA,IAAIjjB,OAAO,CAACkjB,SAAS,IAAI,IAAI,EAAE;MAC7B2B,UAAU,CAAC1a,IAAI,gBAAAvK,MAAA,CAAgBI,OAAO,CAACkjB,SAAS,QAAK,CAAC;IACxD;EACF;EACA,OAAO2B,UAAU,CAAC3mB,IAAI,CAAC,OAAO,CAAC;AACjC;AAEO,IAAM4mB,SAAS,GAAGjB,SAAS,C;;;;;;;;;;;;;;;;;ACpJlC;AACA;AACA;AACA;;AAEgC;AAEP;AACwB;AACqB;;AAEtE;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOMkB,iBAAQ,0BAAAC,QAAA;EACZ,SAAAD,SAAY1S,QAAQ,EAAgB;IAAA,IAAdrS,OAAO,GAAAjB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;IAAAkO,uBAAA,OAAA8X,QAAA;IAAA,OAAAxV,kBAAA,OAAAwV,QAAA,GAC1B,KAAK,EAAE1S,QAAQ,EAAErS,OAAO;EAChC;;EAEA;EAAAwP,iBAAA,CAAAuV,QAAA,EAAAC,QAAA;EAAA,OAAA5X,oBAAA,CAAA2X,QAAA;IAAArnB,GAAA;IAAAZ,KAAA,EACA,SAAAyiB,SAAA,EAAW;MACT,OAAO,EAAE;IACX;;IAEA;EAAA;IAAA7hB,GAAA;IAAAZ,KAAA,EACA,SAAAmN,WAAA,EAAa;MACX,IAAIH,IAAI,EAAE9J,OAAO,EAAEilB,YAAY;MAC/Bnb,IAAI,GAAG+L,YAAA,CAAAC,uBAAA,CAAAiP,QAAA,CAAAnkB,SAAA,uBAAA2F,IAAA,UAAsB,CAAC,CAAC;MAC/BvG,OAAO,GAAG,IAAI,CAACgf,UAAU,CAAC,CAAC;MAC3B,IAAI/U,UAAU,GAAG,IAAI,CAACgV,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;MACnD,IAAIiG,WAAW,GAAG,IAAI,CAACjG,SAAS,CAAC,QAAQ,CAAC,IAAGhV,UAAU,CAAC6Y,MAAM;MAE9D,IAAIwB,oBAAoB,GAAG,CAAC,CAAC;MAC7B,IAAI1f,kBAAQ,CAACsgB,WAAW,CAAC,EAAE;QACzBZ,oBAAoB,CAACxB,MAAM,GAAGoC,WAAW;MAC3C,CAAC,MAAM;QACLZ,oBAAoB,GAAGF,iCAAiC,CAAC,IAAI,CAAC/R,QAAQ,EAAEpI,UAAU,EAAEib,WAAW,EAAEllB,OAAO,CAAC;MAC3G;MACA,IAAG,CAACsH,OAAO,CAACgd,oBAAoB,CAAC,EAAE;QACjC,OAAOxa,IAAI,CAAC1G,KAAK;QACjB,OAAO0G,IAAI,CAACtG,MAAM;MACpB;MAEA4M,eAAK,CAACtG,IAAI,EAAEwa,oBAAoB,CAAC;MACjCW,YAAY,GAAGjlB,OAAO,CAACI,UAAU,IAAI,CAACJ,OAAO,CAACmlB,YAAY,GAAG,UAAU,GAAG,KAAK;MAC/E,IAAIrb,IAAI,CAACmb,YAAY,CAAC,IAAI,IAAI,EAAE;QAC9Bnb,IAAI,CAACmb,YAAY,CAAC,GAAGld,OAAG,CAAC,IAAI,CAACsK,QAAQ,EAAE,IAAI,CAAC2M,UAAU,CAAC,CAAC,CAAC;MAC5D;MACA,OAAOlV,IAAI;IACb;EAAC;AAAA,EAnCoB4U,OAAO;AAqC7B;AAEcqG,8DAAQ,E;;;;;;;;;;;;;;;;;ACzDvB;AACA;AACA;AACA;AACyF;AAC3D;AACL;AACO;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOMK,mBAAS,0BAAAJ,QAAA;EACb,SAAAI,UAAY/S,QAAQ,EAAgB;IAAA,IAAdrS,OAAO,GAAAjB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;IAAAkO,wBAAA,OAAAmY,SAAA;IAAA,OAAA7V,mBAAA,OAAA6V,SAAA,GAC1B,QAAQ,EAAE/S,QAAQ,EAAErS,OAAO;EACnC;;EAEA;EAAAwP,kBAAA,CAAA4V,SAAA,EAAAJ,QAAA;EAAA,OAAA5X,qBAAA,CAAAgY,SAAA;IAAA1nB,GAAA;IAAAZ,KAAA,EACA,SAAAyiB,SAAA,EAAW;MACT,OAAO,EAAE;IACX;;IAEA;EAAA;IAAA7hB,GAAA;IAAAZ,KAAA,EACA,SAAAmN,WAAA,EAAa;MACX,IAAIib,WAAW,GAAG,IAAI,CAACjG,SAAS,CAAC,QAAQ,CAAC;MAC1C,IAAInV,IAAI,GAAG+L,aAAA,CAAAC,wBAAA,CAAAsP,SAAA,CAAAxkB,SAAA,uBAAA2F,IAAA,UAAsB,CAAC,CAAC;MACnC,IAAIvG,OAAO,GAAG,IAAI,CAACgf,UAAU,CAAC,CAAC;MAC/B5O,eAAK,CAACtG,IAAI,EAAEsa,iCAAiC,CAAC,IAAI,CAAC/R,QAAQ,EAAEvI,IAAI,EAAEob,WAAW,EAAEllB,OAAO,CAAC,CAAC;MACzF,IAAG,CAAC8J,IAAI,CAACgZ,MAAM,EAAC;QACdhZ,IAAI,CAACgZ,MAAM,GAAG/a,OAAG,CAAC,IAAI,CAACsK,QAAQ,EAAErS,OAAO,CAAC;MAC3C;MACA,IAAG,CAAC8J,IAAI,CAACub,KAAK,IAAIrlB,OAAO,CAACqlB,KAAK,EAAC;QAC9Bvb,IAAI,CAACub,KAAK,GAAGT,iBAAiB,CAAC5kB,OAAO,CAACqlB,KAAK,CAAC;MAC/C;MAEA,OAAOvb,IAAI;IACb;EAAC;AAAA,EAxBqB4U,OAAO;AA0B9B;AAEc0G,iEAAS,E;;;;;;;;;;;;;;;;;AC5CQ;AACE;AACa;AACX;AACK;AAAA,IAEnCE,qBAAU,0BAAAN,QAAA;EACd,SAAAM,WAAYjT,QAAQ,EAA8B;IAAA,IAAA3B,KAAA;IAAA,IAA5B1Q,OAAO,GAAAjB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;IAAA,IAAE6G,OAAO,GAAA7G,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,EAAE;IAAAkO,yBAAA,OAAAqY,UAAA;IAC9C5U,KAAA,GAAAnB,oBAAA,OAAA+V,UAAA,GAAM,SAAS,EAAEjT,QAAQ,EAAErS,OAAO;IAClC0Q,KAAA,CAAK6U,SAAS,GAAG3f,OAAO;IAAC,OAAA8K,KAAA;EAC3B;;EAEA;EAAAlB,mBAAA,CAAA8V,UAAA,EAAAN,QAAA;EAAA,OAAA5X,sBAAA,CAAAkY,UAAA;IAAA5nB,GAAA;IAAAZ,KAAA,EACA,SAAAsiB,QAAA,EAAU;MAAA,IAAAxJ,MAAA;MACR,OAAO,IAAI,CAAC2P,SAAS,CAACjoB,GAAG,CAAC,UAAAke,IAAA,EAA4C;QAAA,IAA1CyH,SAAS,GAAAzH,IAAA,CAATyH,SAAS;UAAEC,SAAS,GAAA1H,IAAA,CAAT0H,SAAS;UAAE9gB,cAAc,GAAAoZ,IAAA,CAAdpZ,cAAc;QAC9D,IAAIpC,OAAO,GAAG4V,MAAI,CAACoJ,UAAU,CAAC,CAAC;QAC/B,IAAIZ,oBAAoB,GAAG,IAAIhI,kBAAc,CAACpW,OAAO,CAAC;QACtDoe,oBAAoB,CAACtF,KAAK,CAAC,CAAC,CAAChB,WAAW,CAAC,OAAO1V,cAAc,KAAK,QAAQ,GAAG;UAC5E4hB,kBAAkB,EAAE5hB;QACtB,CAAC,GAAGA,cAAc,CAAC;QACnBpC,OAAO,GAAGkI,gBAAgB,CAAClI,OAAO,CAAC;QACnCA,OAAO,CAACqlB,KAAK,GAAG;UAACpC,SAAS,EAATA,SAAS;UAAEC,SAAS,EAATA;QAAS,CAAC;QACtCljB,OAAO,CAACoC,cAAc,GAAGgc,oBAAoB;QAC7C,OAAO,IAAIgH,SAAS,CAACxP,MAAI,CAACvD,QAAQ,EAAErS,OAAO,CAAC,CAAC+a,MAAM,CAAC,CAAC;MACvD,CAAC,CAAC,CAAC7c,IAAI,CAAC,EAAE,CAAC,GACT,IAAI6mB,QAAQ,CAAC,IAAI,CAAC1S,QAAQ,EAAE,IAAI,CAAC2M,UAAU,CAAC,CAAC,CAAC,CAACjE,MAAM,CAAC,CAAC;IAC3D;;IAEA;EAAA;IAAArd,GAAA;IAAAZ,KAAA,EACA,SAAAmN,WAAA,EAAa;MAEX,IAAIH,IAAI,GAAA+L,cAAA,CAAAC,yBAAA,CAAAwP,UAAA,CAAA1kB,SAAA,uBAAA2F,IAAA,MAAqB;MAC7B,OAAOuD,IAAI,CAAC1G,KAAK;MACjB,OAAO0G,IAAI,CAACtG,MAAM;MAClB,OAAOsG,IAAI;IACb;;IAEA;EAAA;IAAApM,GAAA;IAAAZ,KAAA,EACA,SAAAyiB,SAAA,EAAW;MACT,OAAO,IAAI,GAAG,IAAI,CAACnW,IAAI,GAAG,GAAG;IAC/B;EAAC;AAAA,EAlCsBsV,OAAO;AAoC/B;AAEc4G,oEAAU,E;;;;;;;;;;;;;;;;;AC5CzB;AACA;AACA;AACA;;AAKsB;AAEG;AAQR;AAEe;AAGhC,IAAME,gBAAgB,GAAG,CAAC,cAAc,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,SAAS,CAAC;AAE3G,IAAMvjB,mCAA0B,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC;AAEzD,IAAMH,+BAAsB,GAAG;EAC7BC,MAAM,EAAE,KAAK;EACbC,aAAa,EAAE;AACjB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOMyjB,iBAAQ,0BAAAT,QAAA;EACZ,SAAAS,SAAYpT,QAAQ,EAAgB;IAAA,IAAdrS,OAAO,GAAAjB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;IAAAkO,uBAAA,OAAAwY,QAAA;IAChCzlB,OAAO,GAAGyF,QAAQ,CAAC,CAAC,CAAC,EAAEzF,OAAO,EAAEsC,oBAAoB,CAAC;IAAC,OAAAiN,kBAAA,OAAAkW,QAAA,GAChD,OAAO,EAAEpT,QAAQ,CAAC/M,OAAO,CAAC,mBAAmB,EAAE,EAAE,CAAC,EAAEtF,OAAO;EACnE;;EAEA;AACF;AACA;AACA;AACA;AACA;EALEwP,iBAAA,CAAAiW,QAAA,EAAAT,QAAA;EAAA,OAAA5X,oBAAA,CAAAqY,QAAA;IAAA/nB,GAAA;IAAAZ,KAAA,EAMA,SAAA4oB,wBAAwB5oB,KAAK,EAAE;MAC7B,IAAI,CAACsF,cAAc,CAAC,CAAC,CAACgc,oBAAoB,CAACthB,KAAK,CAAC;MACjD,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAA6oB,eAAe7oB,KAAK,EAAE;MACpB,IAAI,CAACsF,cAAc,CAAC,CAAC,CAAC+b,WAAW,CAACrhB,KAAK,CAAC;MACxC,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EAPE;IAAAY,GAAA;IAAAZ,KAAA,EAQA,SAAA8oB,UAAU9oB,KAAK,EAAE;MACf,IAAI,CAACsF,cAAc,CAAC,CAAC,CAAC2b,MAAM,CAACjhB,KAAK,CAAC;MACnC,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAY,GAAA;IAAAZ,KAAA,EAMA,SAAA+oB,mBAAmB/oB,KAAK,EAAE;MACxB,IAAI,CAACsF,cAAc,CAAC,CAAC,CAACua,eAAe,CAAC7f,KAAK,CAAC;MAC5C,OAAO,IAAI;IACb;EAAC;IAAAY,GAAA;IAAAZ,KAAA,EAED,SAAAsiB,QAAA,EAAU;MAAA,IAAA1O,KAAA;MACR,IAAIyN,WAAW,GAAG,IAAI,CAAC/b,cAAc,CAAC,CAAC,CAACmW,QAAQ,CAAC,cAAc,CAAC;MAChE,IAAM6F,oBAAoB,GAAG,IAAI,CAAChc,cAAc,CAAC,CAAC,CAACmW,QAAQ,CAAC,uBAAuB,CAAC;MACpF,IAAMuN,QAAQ,GAAG,IAAI,CAAC1jB,cAAc,CAAC,CAAC,CAACmW,QAAQ,CAAC,kBAAkB,CAAC;MACnE,IAAI3S,OAAO,GAAG,IAAI,CAACqZ,SAAS,CAAC,SAAS,CAAC;MACvC,IAAI8G,SAAS,GAAG,EAAE;MAClB,IAAIpR,iBAAO,CAAC/O,OAAO,CAAC,IAAI,CAAC0B,OAAO,CAAC1B,OAAO,CAAC,EAAE;QACzCmgB,SAAS,GAAGngB,OAAO,CAACtI,GAAG,CAAC,UAAA2I,MAAM,EAAI;UAChC,IAAI+f,GAAG,GAAGje,OAAG,CAAC2I,KAAI,CAAC2B,QAAQ,EAAE5M,QAAQ,CACjC,CAAC,CAAC,EACFQ,MAAM,CAACrD,eAAe,IAAI,CAAC,CAAC,EAC5B;YAACZ,aAAa,EAAE,OAAO;YAAED,MAAM,EAAEkE,MAAM,CAAC5D;UAAI,CAC5C,CAAC,EAAEqO,KAAI,CAACsO,UAAU,CAAC,CAAC,CAAC;UACzB,OAAQtO,KAAI,CAACuV,eAAe,CAACD,GAAG,EAAE/f,MAAM,CAAC5D,IAAI,EAAE4D,MAAM,CAACtD,MAAM,CAAC;QAC/D,CAAC,CAAC;MACJ,CAAC,MAAM;QACL,IAAI2E,OAAO,CAAC6W,WAAW,CAAC,EAAE;UACxBA,WAAW,GAAGlc,mCAA0B;QAC1C;QACA,IAAI0S,iBAAO,CAACwJ,WAAW,CAAC,EAAE;UACxB4H,SAAS,GAAG5H,WAAW,CAAC7gB,GAAG,CAAC,UAAA4oB,OAAO,EAAI;YACrC,IAAIF,GAAG,GAAGje,OAAG,CAAC2I,KAAI,CAAC2B,QAAQ,EAAE5M,QAAQ,CACjC,CAAC,CAAC,EACF2Y,oBAAoB,CAAC8H,OAAO,CAAC,IAAI,CAAC,CAAC,EACnC;cAAClkB,aAAa,EAAE,OAAO;cAAED,MAAM,EAAEmkB;YAAO,CAC5C,CAAC,EAAExV,KAAI,CAACsO,UAAU,CAAC,CAAC,CAAC;YACrB,OAAQtO,KAAI,CAACuV,eAAe,CAACD,GAAG,EAAEE,OAAO,CAAC;UAC5C,CAAC,CAAC;QACJ;MACF;MACA,OAAOH,SAAS,CAAC7nB,IAAI,CAAC,EAAE,CAAC,GAAG4nB,QAAQ;IACtC;EAAC;IAAApoB,GAAA;IAAAZ,KAAA,EAED,SAAAmN,WAAA,EAAa;MACX,IAAIkU,WAAW,GAAG,IAAI,CAACc,SAAS,CAAC,cAAc,CAAC;MAChD,IAAIlB,MAAM,GAAG,IAAI,CAACkB,SAAS,CAAC,QAAQ,CAAC;MACrC,IAAIlB,MAAM,KAAK/e,SAAS,EAAE;QACxB+e,MAAM,GAAG,CAAC,CAAC;MACb;MACA,IAAItM,uBAAa,CAACsM,MAAM,CAAC,EAAE;QACzB,IAAIoI,cAAc,GAAGpI,MAAM,CAAC+F,SAAS,IAAI,IAAI,GAAG3hB,oBAAoB,GAAGL,+BAAsB;QAC7Fic,MAAM,GAAGhW,OAAG,CAACgW,MAAM,CAAC+F,SAAS,IAAI,IAAI,CAACzR,QAAQ,EAAE5M,QAAQ,CAAC,CAAC,CAAC,EAAEsY,MAAM,EAAEoI,cAAc,EAAE,IAAI,CAACnH,UAAU,CAAC,CAAC,CAAC,CAAC;MAC1G;MACA,IAAIlV,IAAI,GAAG+L,YAAA,CAAAC,uBAAA,CAAA2P,QAAA,CAAA7kB,SAAA,uBAAA2F,IAAA,UAAsB,CAAC,CAAC;MACnCuD,IAAI,GAAG7F,IAAI,CAAC6F,IAAI,EAAE0b,gBAAgB,CAAC;MACnC,IAAM5f,OAAO,GAAG,IAAI,CAACqZ,SAAS,CAAC,SAAS,CAAC;MACzC;MACA,IAAMmH,aAAa,GAAG,CAAC9e,OAAO,CAAC1B,OAAO,CAAC,IAAI0B,OAAO,CAAC6W,WAAW,CAAC,IAAIxJ,iBAAO,CAACwJ,WAAW,CAAC;MACvF,IAAI,CAACiI,aAAa,EAAE;QAClBtc,IAAI,CAAC,KAAK,CAAC,GAAG/B,OAAG,CAAC,IAAI,CAACsK,QAAQ,EAAE,IAAI,CAAC2M,UAAU,CAAC,CAAC,EAAE;UAClDhd,aAAa,EAAE,OAAO;UACtBD,MAAM,EAAEoc;QACV,CAAC,CAAC;MACJ;MACA,IAAIJ,MAAM,IAAI,IAAI,EAAE;QAClBjU,IAAI,CAAC,QAAQ,CAAC,GAAGiU,MAAM;MACzB;MACA,OAAOjU,IAAI;IACb;EAAC;IAAApM,GAAA;IAAAZ,KAAA,EAED,SAAAmpB,gBAAgBD,GAAG,EAAEK,UAAU,EAAiB;MAAA,IAAf1jB,MAAM,GAAA5D,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,IAAI;MAC5C,IAAIunB,QAAQ,GAAG,IAAI;MACnB,IAAI,CAAChf,OAAO,CAAC+e,UAAU,CAAC,EAAE;QACxB,IAAIE,SAAS,GAAGF,UAAU,KAAK,KAAK,GAAG,KAAK,GAAGA,UAAU;QACzDC,QAAQ,GAAG,QAAQ,GAAGC,SAAS;QAC/B,IAAI,CAACjf,OAAO,CAAC3E,MAAM,CAAC,EAAE;UACpB,IAAI6jB,SAAS,GAAG7R,iBAAO,CAAChS,MAAM,CAAC,GAAGA,MAAM,CAACzE,IAAI,CAAC,IAAI,CAAC,GAAGyE,MAAM;UAC5D2jB,QAAQ,IAAI,WAAW,GAAGE,SAAS;QACrC;MACF;MACA,OAAO,UAAU,GAAI,IAAI,CAAC7H,SAAS,CAAC;QAClCqH,GAAG,EAAEA,GAAG;QACR3jB,IAAI,EAAEikB;MACR,CAAC,CAAE,GAAG,GAAG;IACX;EAAC;AAAA,EA9HoB5H,OAAO;AAmIf+G,8DAAQ,E;;;;;;;;;;;;;;;AC1KvB;AACA;AACA;AACA;;AAEgC;AAIf;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA,IAYMgB,qCAAkB,0BAAAzB,QAAA;EACtB,SAAAyB,mBAAYzmB,OAAO,EAAE;IAAAiN,iCAAA,OAAAwZ,kBAAA;IAAA,OAAAlX,4BAAA,OAAAkX,kBAAA,GACb,MAAM,EAAE,KAAK,CAAC,EAAEnW,gBAAM,CAAC;MAC3B,YAAY,EAAE,WAAW;MACzB8O,OAAO,EAAE;IACX,CAAC,EAAEpf,OAAO,CAAC;EACb;;EAEA;EAAAwP,2BAAA,CAAAiX,kBAAA,EAAAzB,QAAA;EAAA,OAAA5X,8BAAA,CAAAqZ,kBAAA;IAAA/oB,GAAA;IAAAZ,KAAA,EACA,SAAAyiB,SAAA,EAAW;MACT,OAAO,EAAE;IACX;EAAC;AAAA,EAX8Bb,OAAO;AAavC;AAEc+H,4FAAkB,E;;;;;;;;ACtCQ;;AAGzC;AACA;AACA;AACA;AACA;AACO,SAASC,gBAAgBA,CAACC,QAAQ,EAAE;EACzC,IAAIhS,iBAAO,CAACgS,QAAQ,CAAC,EAAE;IACrB,OAAOA,QAAQ;EACjB,CAAC,MAAM,IAAIA,QAAQ,CAAChU,WAAW,CAACvJ,IAAI,KAAK,UAAU,EAAE;IACnD,OAAA7L,kCAAA,CAAWopB,QAAQ,EAAE,CAAC;EACxB,CAAC,MAAM,IAAI/hB,kBAAQ,CAAC+hB,QAAQ,CAAC,EAAE;IAC7B,OAAO9gB,KAAK,CAACjF,SAAS,CAACzE,KAAK,CAACoK,IAAI,CAACiK,QAAQ,CAACC,gBAAgB,CAACkW,QAAQ,CAAC,EAAE,CAAC,CAAC;EAC3E,CAAC,MAAM;IACL,OAAO,CAACA,QAAQ,CAAC;EACnB;AACF,C;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,uBAAuBA,CAACC,eAAe,EAAEC,UAAU,EAAEzU,QAAQ,EAAErS,OAAO,EAAE;EAC/E,OAAO,IAAI+mB,OAAO,CAAC,UAACC,OAAO,EAAEC,MAAM,EAAK;IACtCJ,eAAe,CAACK,SAAS,GAAGJ,UAAU,CAACK,QAAQ,CAAC9U,QAAQ,EAAErS,OAAO,CAAC,CAAC+a,MAAM,CAAC,CAAC;;IAE3E;IACA,IAAIqM,sBAAsB,GAAGP,eAAe,CAACQ,aAAa,CAAC,wBAAwB,CAAC;IACpFD,sBAAsB,CAAC7b,KAAK,CAACnI,KAAK,GAAG,MAAM;IAC3C4jB,OAAO,CAACH,eAAe,CAAC;EAC1B,CAAC,CAAC;AACJ;AAEeD,oGAAuB,E;;AClBtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASU,gBAAgBA,CAACtnB,OAAO,EAAEunB,IAAI,EAAE;EACvC;EACA,IAAIvnB,OAAO,CAACoC,cAAc,EAAE;IAC1BpC,OAAO,CAACoC,cAAc,CAAC+H,IAAI,CAAC;MAC1B0S,KAAK,EAAE,CAAC0K,IAAI;IACd,CAAC,CAAC;EACJ,CAAC,MAAM;IACL;IACA;IACA,IAAI,CAACvnB,OAAO,CAAC6c,KAAK,EAAE;MAClB7c,OAAO,CAAC6c,KAAK,GAAG,EAAE;IACpB;IAEA,IAAI,OAAO7c,OAAO,CAAC6c,KAAK,KAAK,QAAQ,EAAE;MACrC7c,OAAO,CAAC6c,KAAK,GAAG,CAAC7c,OAAO,CAAC6c,KAAK,CAAC;IACjC;IAEA7c,OAAO,CAAC6c,KAAK,CAAC1S,IAAI,CAACod,IAAI,CAAC;EAC1B;AACF;AAEeD,4DAAgB,E;;AC/B8B;AACqB;;AAElF;AACA;AACA;AACA;AACA,SAASE,iCAAiCA,CAACxnB,OAAO,EAAE;EAClDA,OAAO,CAACynB,QAAQ,GAAG,IAAI;EACvBznB,OAAO,CAAC0nB,KAAK,GAAG,IAAI;EACpB1nB,OAAO,CAAC2nB,QAAQ,GAAG,KAAK;EACxB3nB,OAAO,CAAC4nB,cAAc,GAAG5nB,OAAO,CAAC4nB,cAAc,IAAI/lB,kBAAkB;EACrE7B,OAAO,SAAM,GAAGA,OAAO,SAAM,IAAI,EAAE;EACnCA,OAAO,SAAM,IAAI,wBAAwB;EACzCA,OAAO,CAAC6nB,iBAAiB,GAAG7nB,OAAO,CAAC6nB,iBAAiB,IAAI,CAAC,CAAC;EAE3D,IAAI,CAAC7nB,OAAO,CAAC6nB,iBAAiB,CAAC9kB,OAAO,EAAE;IACtC/C,OAAO,CAAC6nB,iBAAiB,CAAC9kB,OAAO,GAAGD,0BAA0B,CAACC,OAAO;EACxE;;EAEA;EACA;EACAukB,OAAgB,CAACtnB,OAAO,EAAE,OAAO,CAAC;AACpC;AAEewnB,wHAAiC,E;;ACzBhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASM,UAAUA,CAACC,SAAS,EAAEH,cAAc,EAAEI,eAAe,EAAE;EAC9D,OAAO,IAAIjB,OAAO,CAAC,UAACC,OAAO,EAAEC,MAAM,EAAK;IACtC,IAAIe,eAAe,EAAE;MACnBhB,OAAO,CAAC,CAAC;IACX,CAAC,MAAM;MACL,IAAIiB,SAAS,GAAGzX,QAAQ,CAACiP,aAAa,CAAC,QAAQ,CAAC;MAChDwI,SAAS,CAACjC,GAAG,GAAG+B,SAAS;MAEzB,IAAIG,OAAO,GAAGC,UAAU,CAAC,YAAM;QAC7BlB,MAAM,CAAC;UACLmB,MAAM,EAAE,OAAO;UACfC,OAAO,4BAAAzoB,MAAA,CAA4BmoB,SAAS;QAC9C,CAAC,CAAC;MACJ,CAAC,EAAEH,cAAc,CAAC,CAAC,CAAC;;MAEpBK,SAAS,CAACK,OAAO,GAAG,YAAM;QACxBC,YAAY,CAACL,OAAO,CAAC,CAAC,CAAC;QACvBjB,MAAM,CAAC;UACLmB,MAAM,EAAE,OAAO;UACfC,OAAO,mBAAAzoB,MAAA,CAAmBmoB,SAAS;QACrC,CAAC,CAAC;MACJ,CAAC;MAEDE,SAAS,CAACO,MAAM,GAAG,YAAM;QACvBD,YAAY,CAACL,OAAO,CAAC,CAAC,CAAC;QACvBlB,OAAO,CAAC,CAAC;MACX,CAAC;MACDxW,QAAQ,CAACiY,IAAI,CAACC,WAAW,CAACT,SAAS,CAAC;IACtC;EACF,CAAC,CAAC;AACJ;AAEeH,6DAAU,E;;AC1CzB;AACA;AACA;AACA;AACA;AACA;AACA,SAASa,eAAeA,CAACC,YAAY,EAAE3B,MAAM,EAAE;EAC7C,OAAOkB,UAAU,CAAC,YAAM;IACtBlB,MAAM,CAAC;MACLmB,MAAM,EAAE,OAAO;MACfC,OAAO,EAAE;IACX,CAAC,CAAC;EACJ,CAAC,EAAEO,YAAY,CAAC;AAClB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,cAAcA,CAACC,SAAS,EAAEF,YAAY,EAAE;EAC/C,OAAO,IAAI7B,OAAO,CAAC,UAACC,OAAO,EAAEC,MAAM,EAAK;IACtC,IAAMiB,OAAO,GAAGS,eAAe,CAACC,YAAY,EAAE3B,MAAM,CAAC;;IAErD;IACA;IACA,IAAM8B,SAAS,GAAI,OAAOC,KAAK,KAAK,WAAW,IAAIA,KAAK,GAAIC,iBAAiB,GAAGC,eAAe;IAE/FH,SAAS,CAACD,SAAS,CAAC,CAAChb,IAAI,CAAC,UAACqb,IAAI,EAAK;MAClCnC,OAAO,CAAC;QACNoB,MAAM,EAAE,SAAS;QACjBgB,OAAO,EAAE;UACPC,OAAO,EAAEC,GAAG,CAACC,eAAe,CAACJ,IAAI;QACnC;MACF,CAAC,CAAC;IACJ,CAAC,CAAC,SAAM,CAAC,YAAM;MACblC,MAAM,CAAC;QACLmB,MAAM,EAAE,OAAO;QACfC,OAAO,EAAE;MACX,CAAC,CAAC;IACJ,CAAC,CAAC,WAAQ,CAAC,YAAM;MACf;MACAE,YAAY,CAACL,OAAO,CAAC;IACvB,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASe,iBAAiBA,CAACH,SAAS,EAAE;EACpC,OAAO,IAAI/B,OAAO,CAAC,UAACC,OAAO,EAAEC,MAAM,EAAK;IACtC+B,KAAK,CAACF,SAAS,CAAC,CAAChb,IAAI,CAAC,UAAC0b,QAAQ,EAAK;MAClCA,QAAQ,CAACL,IAAI,CAAC,CAAC,CAACrb,IAAI,CAAC,UAACqb,IAAI,EAAK;QAC7BnC,OAAO,CAACmC,IAAI,CAAC;MACf,CAAC,CAAC;IACJ,CAAC,CAAC,SAAM,CAAC,YAAM;MACblC,MAAM,CAAC,OAAO,CAAC;IACjB,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASiC,eAAeA,CAACJ,SAAS,EAAE;EAClC,OAAO,IAAI/B,OAAO,CAAC,UAACC,OAAO,EAAEC,MAAM,EAAK;IACtC,IAAMwC,GAAG,GAAG,IAAIC,cAAc,CAAC,CAAC;IAChCD,GAAG,CAACE,YAAY,GAAG,MAAM;IACzBF,GAAG,CAACjB,MAAM,GAAG,UAAUgB,QAAQ,EAAE;MAC/BxC,OAAO,CAACyC,GAAG,CAACD,QAAQ,CAAC;IACvB,CAAC;IAEDC,GAAG,CAACnB,OAAO,GAAG,YAAY;MACxBrB,MAAM,CAAC,OAAO,CAAC;IACjB,CAAC;IAEDwC,GAAG,CAACG,IAAI,CAAC,KAAK,EAAEd,SAAS,EAAE,IAAI,CAAC;IAChCW,GAAG,CAACI,IAAI,CAAC,CAAC;EACZ,CAAC,CAAC;AACJ;AAEehB,qEAAc,E;;AC7F7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASiB,oBAAoBA,CAACC,YAAY,EAAE;EAC1C,IAAMtC,QAAQ,GAAyDsC,YAAY,CAA7EtC,QAAQ;IAAEuC,WAAW,GAA4CD,YAAY,CAAnEC,WAAW;IAAEC,IAAI,GAAsCF,YAAY,CAAtDE,IAAI;IAAEvC,KAAK,GAA+BqC,YAAY,CAAhDrC,KAAK;IAAE3J,MAAM,GAAuBgM,YAAY,CAAzChM,MAAM;IAAEsL,OAAO,GAAcU,YAAY,CAAjCV,OAAO;IAAEa,QAAQ,GAAIH,YAAY,CAAxBG,QAAQ;EAEnE,IAAIppB,EAAE,GAAG0P,QAAQ,CAACiP,aAAa,CAAC,OAAO,CAAC;EACxC3e,EAAE,CAACyK,KAAK,CAAC4e,UAAU,GAAG,QAAQ;EAC9BrpB,EAAE,CAACspB,QAAQ,GAAG,UAAU;EACxBtpB,EAAE,CAACpE,CAAC,GAAG,CAAC;EACRoE,EAAE,CAACnE,CAAC,GAAG,CAAC;EACRmE,EAAE,CAACklB,GAAG,GAAGqD,OAAO;EAChBvoB,EAAE,CAAC8I,YAAY,CAAC,gBAAgB,EAAEsgB,QAAQ,CAAC,CAAC,CAAC;;EAE7CzC,QAAQ,IAAI3mB,EAAE,CAAC8I,YAAY,CAAC,UAAU,EAAE6d,QAAQ,CAAC;EACjDuC,WAAW,IAAIlpB,EAAE,CAAC8I,YAAY,CAAC,aAAa,EAAEogB,WAAW,CAAC;EAC1DC,IAAI,IAAInpB,EAAE,CAAC8I,YAAY,CAAC,MAAM,EAAEqgB,IAAI,CAAC;EACrCvC,KAAK,IAAI5mB,EAAE,CAAC8I,YAAY,CAAC,OAAO,EAAE8d,KAAK,CAAC;EACxCA,KAAK,KAAK5mB,EAAE,CAAC4mB,KAAK,GAAGA,KAAK,CAAC,CAAC,CAAC;EAC7B3J,MAAM,IAAIjd,EAAE,CAAC8I,YAAY,CAAC,QAAQ,EAAEmU,MAAM,CAAC;;EAE3C;EACAjd,EAAE,CAAC0nB,MAAM,GAAG,YAAM;IAChBc,GAAG,CAACe,eAAe,CAAChB,OAAO,CAAC;EAC9B,CAAC;EAED,OAAOvoB,EAAE;AACX;AAEegpB,8FAAoB,E;;AClCnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASQ,kBAAkBA,CAACC,YAAY,EAAE3C,cAAc,EAAE4C,WAAW,EAAEC,QAAQ,EAAE;EAC/E,IAAAC,OAAA,GAA0CnqB,MAAM;IAA3CwC,OAAO,GAAA2nB,OAAA,CAAP3nB,OAAO;IAAEolB,UAAU,GAAAuC,OAAA,CAAVvC,UAAU;IAAEI,YAAY,GAAAmC,OAAA,CAAZnC,YAAY;EAEtC,OAAO,IAAIxB,OAAO,CAAC,UAACC,OAAO,EAAEC,MAAM,EAAK;IACtC,IAAIiB,OAAO,GAAGC,UAAU,CAAC,YAAM;MAC7BlB,MAAM,CAAC;QAACmB,MAAM,EAAE,OAAO;QAAEC,OAAO,EAAE;MAAwC,CAAC,CAAC;IAC9E,CAAC,EAAET,cAAc,CAAC;IAElB,IAAI7kB,OAAO,EAAE;MACX,IAAI4nB,eAAe,GAAG5nB,OAAO,CAAC6nB,MAAM,CAACL,YAAY,CAAC,CAACM,KAAK,CAAC,YAAM;QAC7D;QACAtC,YAAY,CAACL,OAAO,CAAC;;QAErB;QACA,IAAI4C,aAAa,GAAGH,eAAe,CAACI,SAAS,CAAC,CAAC;QAC/CD,aAAa,CAACvf,KAAK,CAACnI,KAAK,GAAG,MAAM;QAClC0nB,aAAa,CAACzgB,SAAS,IAAI,GAAG,GAAGmgB,WAAW;;QAE5C;QACA,IAAIC,QAAQ,EAAE;UACZE,eAAe,CAACK,IAAI,CAAC,CAAC;QACxB;QAEAhE,OAAO,CAAC2D,eAAe,CAAC;MAC1B,CAAC,CAAC;IACJ,CAAC,MAAM;MACL1D,MAAM,CAAC;QAACmB,MAAM,EAAE,OAAO;QAAEC,OAAO,EAAE;MAAsC,CAAC,CAAC;IAC5E;EACF,CAAC,CAAC;AACJ;AAEeiC,0FAAkB,E;;ACvCa;AACQ;AACI;AACJ;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASW,qBAAqBA,CAACpE,eAAe,EAAEqD,QAAQ,EAAElqB,OAAO,EAAE;EACjE,IAAK+d,MAAM,GAAwC/d,OAAO,CAArD+d,MAAM;IAAE0J,QAAQ,GAA8BznB,OAAO,CAA7CynB,QAAQ;IAAEuC,WAAW,GAAiBhqB,OAAO,CAAnCgqB,WAAW;IAAEC,IAAI,GAAWjqB,OAAO,CAAtBiqB,IAAI;IAAEvC,KAAK,GAAI1nB,OAAO,CAAhB0nB,KAAK;EAC/CwC,QAAQ,GAAGA,QAAQ,GAAG,MAAM,CAAC,CAAC;EAC9B,OAAO,IAAInD,OAAO,CAAC,UAACC,OAAO,EAAEC,MAAM,EAAK;IACtCa,cAAU,CAAC9nB,OAAO,CAAC6nB,iBAAiB,CAAC9kB,OAAO,EAAE/C,OAAO,CAAC4nB,cAAc,EAAErnB,MAAM,CAACwC,OAAO,CAAC,CAAC+K,IAAI,CAAC,YAAM;MAC/F+a,kBAAc,CAACqB,QAAQ,EAAElqB,OAAO,CAAC4nB,cAAc,CAAC,CAAC9Z,IAAI,CAAC,UAAA0N,IAAA,EAAe;QAAA,IAAb4N,OAAO,GAAA5N,IAAA,CAAP4N,OAAO;QAC7D,IAAImB,YAAY,GAAGT,qCAAoB,CAAC;UACtCT,OAAO,EAAED,OAAO,CAACC,OAAO;UACxBa,QAAQ,EAAEA,QAAQ;UAAE;UACpBnM,MAAM,EAANA,MAAM;UACN0J,QAAQ,EAARA,QAAQ;UACRuC,WAAW,EAAXA,WAAW;UACXC,IAAI,EAAJA,IAAI;UACJvC,KAAK,EAALA;QACF,CAAC,CAAC;QAEFb,eAAe,CAAC6B,WAAW,CAAC6B,YAAY,CAAC;QAEzCD,mCAAkB,CAACC,YAAY,EAAEvqB,OAAO,CAAC4nB,cAAc,EAAE5nB,OAAO,SAAM,EAAEA,OAAO,CAACynB,QAAQ,CAAC,CACtF3Z,IAAI,CAAC,YAAM;UACVkZ,OAAO,CAACH,eAAe,CAAC;QAC1B,CAAC,CAAC,SACI,CAAC,UAACqE,GAAG,EAAK;UACdjE,MAAM,CAACiE,GAAG,CAAC;QACb,CAAC,CAAC;;QAEJ;MACF,CAAC,CAAC,SAAM,CAAC,UAAAzN,KAAA,EAAuB;QAAA,IAArB2K,MAAM,GAAA3K,KAAA,CAAN2K,MAAM;UAAEC,OAAO,GAAA5K,KAAA,CAAP4K,OAAO;QACxBpB,MAAM,CAAC;UAACmB,MAAM,EAANA,MAAM;UAAEC,OAAO,EAAPA;QAAO,CAAC,CAAC;MAC3B,CAAC,CAAC;MACF;IACF,CAAC,CAAC,SAAM,CAAC,UAAA3K,KAAA,EAAuB;MAAA,IAArB0K,MAAM,GAAA1K,KAAA,CAAN0K,MAAM;QAAEC,OAAO,GAAA3K,KAAA,CAAP2K,OAAO;MACxBpB,MAAM,CAAC;QAACmB,MAAM,EAANA,MAAM;QAAEC,OAAO,EAAPA;MAAO,CAAC,CAAC;IAC3B,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ;AAGe4C,gGAAqB,E;;AClDpC;AACA;AACA;AACgC;AAEhC,SAASE,2BAA2BA,CAAA,EAAG;EACrC,OAAO,IAAIpE,OAAO,CAAC,UAACC,OAAO,EAAEC,MAAM,EAAK;IACtC;IACA;IACA;IACA,IAAIje,QAAQ,CAAC,CAAC,EAAC;MACbge,OAAO,CAAC,KAAK,CAAC;IAChB;IAEA,IAAM/R,KAAK,GAAGzE,QAAQ,CAACiP,aAAa,CAAC,OAAO,CAAC;IAC7C,IAAM2L,OAAO,GAAGnW,KAAK,CAACoW,WAAW,IAAIpW,KAAK,CAACoW,WAAW,CAAC,0BAA0B,CAAC;IAClFrE,OAAO,CAACoE,OAAO,KAAK,OAAO,IAAIA,OAAO,KAAK,UAAU,CAAC;EACxD,CAAC,CAAC;AACJ;AAEeD,4GAA2B,E;;;;;;;;ACpBqB;AAE/D,IAAIG,gBAAgB,EAAEC,YAAY,EAAEC,kBAAkB,EAAEC,6BAAkB,EAAE/f,mBAAQ,EAAEggB,SAAS;AAEnD;AACP;AACE;AACI;AACF;AACK;AACtB;AACe;AACE;AAezB;AAChB;;AAE+F;AACoB;AACxB;AACY;AAEvGF,kBAAkB,GAAG,SAAAA,mBAASpoB,KAAK,EAAe;EAAA,IAAbuoB,KAAK,GAAA5sB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,GAAG;EAC9C,OAAO4sB,KAAK,GAAGnI,IAAI,CAACC,IAAI,CAACrgB,KAAK,GAAGuoB,KAAK,CAAC;AACzC,CAAC;AAEDJ,YAAY,GAAG,SAAAA,aAAS7mB,IAAI,EAAE5H,KAAK,EAAE;EACnC,IAAIP,CAAC;EACLA,CAAC,GAAGmI,IAAI,CAAC3I,MAAM,GAAG,CAAC;EACnB,OAAOQ,CAAC,IAAI,CAAC,IAAImI,IAAI,CAACnI,CAAC,CAAC,IAAIO,KAAK,EAAE;IACjCP,CAAC,EAAE;EACL;EACA,OAAOmI,IAAI,CAACnI,CAAC,GAAG,CAAC,CAAC;AACpB,CAAC;AAED+uB,gBAAgB,GAAG,SAAAA,iBAAShM,GAAG,EAAElc,KAAK,EAAEuoB,KAAK,EAAE3rB,OAAO,EAAE;EACtD,IAAImS,GAAG,EAAE2H,IAAI,EAAEC,IAAI,EAAEnI,0BAA0B;EAC/CA,0BAA0B,GAAG,CAACO,GAAG,GAAG,CAAC2H,IAAI,GAAG,CAACC,IAAI,GAAG/Z,OAAO,CAAC,4BAA4B,CAAC,KAAK,IAAI,GAAG+Z,IAAI,GAAG/Z,OAAO,CAAC,2BAA2B,CAAC,KAAK,IAAI,GAAG8Z,IAAI,GAAG,IAAI,CAACzJ,MAAM,CAAC,4BAA4B,CAAC,KAAK,IAAI,GAAG8B,GAAG,GAAG,IAAI,CAAC9B,MAAM,CAAC,2BAA2B,CAAC;EACtQ,IAAK,CAACuB,0BAA0B,IAAMA,0BAA0B,KAAK,QAAQ,IAAI,CAAC5R,OAAO,CAAC4rB,QAAS,EAAE;IACnG,OAAOxoB,KAAK;EACd,CAAC,MAAM;IACL,OAAO,IAAI,CAACyoB,eAAe,CAACvM,GAAG,EAAElc,KAAK,EAAEuoB,KAAK,CAAC;EAChD;AACF,CAAC;AAEDF,6BAAkB,GAAG,SAAAA,mBAAStiB,OAAO,EAAE;EACrC,IAAI2iB,cAAc,EAAEvgB,KAAK;EACzBugB,cAAc,GAAG,CAAC;EAClB,OAAQ,CAAC3iB,OAAO,GAAGA,OAAO,IAAI,IAAI,GAAGA,OAAO,CAACkC,UAAU,GAAG,KAAK,CAAC,aAAa0gB,OAAO,IAAK,CAACD,cAAc,EAAE;IACxGvgB,KAAK,GAAGhL,MAAM,CAACsK,gBAAgB,CAAC1B,OAAO,CAAC;IACxC,IAAI,CAAC,SAAS,CAACN,IAAI,CAAC0C,KAAK,CAACygB,OAAO,CAAC,EAAE;MAClCF,cAAc,GAAG1oB,YAAK,CAAC+F,OAAO,CAAC;IACjC;EACF;EACA,OAAO2iB,cAAc;AACvB,CAAC;AAEDJ,SAAS,GAAG,SAAAA,UAAS9L,OAAO,EAAEqM,QAAQ,EAAE;EACtC,OAAOrM,OAAO,CAACta,OAAO,CAAC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC4mB,kBAAkB,CAACD,QAAQ,CAAC,CAAC;AAC5F,CAAC;AAEDvgB,mBAAQ,GAAG,SAAAA,SAASygB,aAAa,EAAE7M,GAAG,EAAE;EACtC,IAAI8M,UAAU;EACdA,UAAU,GAAGljB,cAAO,CAACoW,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC;EACvC,IAAI6M,aAAa,GAAGC,UAAU,EAAE;IAC9BA,UAAU,GAAGD,aAAa;IAC1BxiB,cAAO,CAAC2V,GAAG,EAAE,OAAO,EAAE6M,aAAa,CAAC;EACtC;EACA,OAAOC,UAAU;AACnB,CAAC;AAAC,IAEIC,qBAAU;EACd;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,SAAAA,WAAYrsB,OAAO,EAAE;IAAAiN,yBAAA,OAAAof,UAAA;IACnB,IAAIzc,aAAa;IACjB,IAAI,CAAC0c,qBAAqB,GAAG,CAAC,CAAC;IAC/B,IAAI,CAACC,gBAAgB,GAAG,CAAC,CAAC;IAC1B,IAAI,CAACC,2BAA2B,GAAG,KAAK;IACxC5c,aAAa,GAAG,IAAID,iBAAa,CAAC3P,OAAO,CAAC;IAC1C;IACA,IAAI,CAACqQ,MAAM,GAAG,UAASoc,SAAS,EAAEC,QAAQ,EAAE;MAC1C,OAAO9c,aAAa,CAACS,MAAM,CAACoc,SAAS,EAAEC,QAAQ,CAAC;IAClD,CAAC;IACD;AACJ;AACA;AACA;IACI,IAAI,CAACzc,YAAY,GAAG,YAAW;MAC7BL,aAAa,CAACK,YAAY,CAAC,CAAC;MAC5B,OAAO,IAAI;IACb,CAAC;IACD;AACJ;AACA;AACA;IACI,IAAI,CAACD,eAAe,GAAG,YAAW;MAChCJ,aAAa,CAACI,eAAe,CAAC,CAAC;MAC/B,OAAO,IAAI;IACb,CAAC;IACD;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACI,IAAI,CAACD,IAAI,GAAG,YAAW;MACrBH,aAAa,CAACG,IAAI,CAAC,CAAC;MACpB,OAAO,IAAI;IACb,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;AACA;EALE,OAAA3C,sBAAA,CAAAif,UAAA;IAAA3uB,GAAA;IAAAZ,KAAA;IAUA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACE,SAAAiL,IAAIsK,QAAQ,EAAgB;MAAA,IAAdrS,OAAO,GAAAjB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;MACxB,OAAOgJ,OAAG,CAACsK,QAAQ,EAAErS,OAAO,EAAE,IAAI,CAACqQ,MAAM,CAAC,CAAC,CAAC;IAC9C;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAZE;IAAA3S,GAAA;IAAAZ,KAAA,EAaA,SAAA6vB,UAAUta,QAAQ,EAAErS,OAAO,EAAE;MAC3BA,OAAO,GAAGsQ,gBAAM,CAAC;QACftO,aAAa,EAAE;MACjB,CAAC,EAAEhC,OAAO,CAAC;MACX,OAAO,IAAI,CAAC+H,GAAG,CAACsK,QAAQ,EAAErS,OAAO,CAAC;IACpC;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAhBE;IAAAtC,GAAA;IAAAZ,KAAA,EAiBA,SAAA8vB,oBAAoBva,QAAQ,EAAErS,OAAO,EAAE;MACrCA,OAAO,GAAGsQ,gBAAM,CAAC,CAAC,CAAC,EAAEuc,sBAAgC,EAAE7sB,OAAO,CAAC;MAC/D,OAAO,IAAI,CAAC+H,GAAG,CAACsK,QAAQ,EAAErS,OAAO,CAAC;IACpC;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EATE;IAAAtC,GAAA;IAAAZ,KAAA,EAUA,SAAAgwB,sBAAsB9sB,OAAO,EAAE;MAC7B,OAAO,IAAIoW,kBAAc,CAACpW,OAAO,CAAC,CAACqN,SAAS,CAAC,CAAC;IAChD;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAXE;IAAA3P,GAAA;IAAAZ,KAAA,EAYA,SAAAiwB,MAAM1a,QAAQ,EAAgB;MAAA,IAAdrS,OAAO,GAAAjB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;MAC1B,IAAIomB,YAAY,EAAE6H,GAAG,EAAE7a,GAAG;MAC1B6a,GAAG,GAAG,IAAI,CAACC,QAAQ,CAAC5a,QAAQ,EAAErS,OAAO,CAAC;MACtCmlB,YAAY,GAAG,CAAChT,GAAG,GAAGnS,OAAO,CAACmlB,YAAY,IAAI,IAAI,GAAGnlB,OAAO,CAACmlB,YAAY,GAAG,IAAI,CAAC9U,MAAM,CAAC,cAAc,CAAC,KAAK,IAAI,GAAG8B,GAAG,GAAG,KAAK;MAC9H,IAAInS,OAAO,CAACgmB,GAAG,IAAI,IAAI,IAAI,CAACb,YAAY,EAAE;QACxC;QACA6H,GAAG,CAACnjB,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;MACxB;MACAmjB,GAAG,GAAGA,GAAG,CAACxN,KAAK,CAAC,CAAC;MACjB,IAAI,CAAC2F,YAAY,EAAE;QACjB;QACAxb,cAAO,CAACqjB,GAAG,EAAE,WAAW,EAAE,IAAI,CAACjlB,GAAG,CAACsK,QAAQ,EAAErS,OAAO,CAAC,CAAC;QACtD;QACA,IAAI,CAACktB,iBAAiB,CAACF,GAAG,EAAEhtB,OAAO,CAAC;MACtC;MACA,OAAOgtB,GAAG;IACZ;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAXE;IAAAtvB,GAAA;IAAAZ,KAAA,EAYA,SAAAmwB,SAAS5a,QAAQ,EAAErS,OAAO,EAAE;MAC1B,IAAIsf,GAAG;MACPA,GAAG,GAAG,IAAIyF,QAAQ,CAAC1S,QAAQ,EAAE,IAAI,CAAChC,MAAM,CAAC,CAAC,CAAC;MAC3CiP,GAAG,CAACld,cAAc,CAAC,CAAC,CAAC0V,WAAW,CAAC9X,OAAO,CAAC;MACzC,OAAOsf,GAAG;IACZ;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EAPE;IAAA5hB,GAAA;IAAAZ,KAAA,EAQA,SAAAqwB,WAAW9a,QAAQ,EAAErS,OAAO,EAAE4F,OAAO,EAAE;MACrC,IAAI0Z,GAAG;MACPA,GAAG,GAAG,IAAIgG,UAAU,CAACjT,QAAQ,EAAE,IAAI,CAAChC,MAAM,CAAC,CAAC,EAAEzK,OAAO,CAAC;MACtD0Z,GAAG,CAACld,cAAc,CAAC,CAAC,CAAC0V,WAAW,CAAC9X,OAAO,CAAC;MACzC,OAAOsf,GAAG;IACZ;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;EANE;IAAA5hB,GAAA;IAAAZ,KAAA,EAOA,SAAAswB,UAAU/a,QAAQ,EAAErS,OAAO,EAAE;MAC3B,IAAIsf,GAAG;MACPA,GAAG,GAAG,IAAI8F,SAAS,CAAC/S,QAAQ,EAAE,IAAI,CAAChC,MAAM,CAAC,CAAC,CAAC;MAC5CiP,GAAG,CAACld,cAAc,CAAC,CAAC,CAAC0V,WAAW,CAAC9X,OAAO,CAAC;MACzC,OAAOsf,GAAG;IACZ;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAbE;IAAA5hB,GAAA;IAAAZ,KAAA,EAcA,SAAAuwB,gBAAgBhb,QAAQ,EAAErS,OAAO,EAAE;MACjC,OAAO,IAAI,CAAC+sB,KAAK,CAAC1a,QAAQ,EAAEjC,eAAK,CAAC,CAAC,CAAC,EAAEyc,sBAAgC,EAAE7sB,OAAO,CAAC,CAAC;IACnF;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAZE;IAAAtC,GAAA;IAAAZ,KAAA,EAaA,SAAAwwB,uBAAuBjb,QAAQ,EAAErS,OAAO,EAAE;MACxC,OAAO,IAAI,CAAC+sB,KAAK,CAAC1a,QAAQ,EAAE/B,gBAAM,CAAC;QACjCjO,IAAI,EAAE;MACR,CAAC,EAAErC,OAAO,CAAC,CAAC;IACd;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAZE;IAAAtC,GAAA;IAAAZ,KAAA,EAaA,SAAAywB,sBAAsBlb,QAAQ,EAAErS,OAAO,EAAE;MACvC,OAAO,IAAI,CAAC+sB,KAAK,CAAC1a,QAAQ,EAAE/B,gBAAM,CAAC;QACjCjO,IAAI,EAAE;MACR,CAAC,EAAErC,OAAO,CAAC,CAAC;IACd;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAZE;IAAAtC,GAAA;IAAAZ,KAAA,EAaA,SAAA0wB,2BAA2Bnb,QAAQ,EAAErS,OAAO,EAAE;MAC5C,OAAO,IAAI,CAAC+sB,KAAK,CAAC1a,QAAQ,EAAE/B,gBAAM,CAAC;QACjCjO,IAAI,EAAE;MACR,CAAC,EAAErC,OAAO,CAAC,CAAC;IACd;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAbE;IAAAtC,GAAA;IAAAZ,KAAA,EAcA,SAAA2wB,eAAepb,QAAQ,EAAErS,OAAO,EAAE;MAChC,OAAO,IAAI,CAAC+sB,KAAK,CAAC1a,QAAQ,EAAE/B,gBAAM,CAAC;QACjCjO,IAAI,EAAE;MACR,CAAC,EAAErC,OAAO,CAAC,CAAC;IACd;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAXE;IAAAtC,GAAA;IAAAZ,KAAA,EAYA,SAAA4wB,YAAYrb,QAAQ,EAAErS,OAAO,EAAE;MAC7B,OAAO,IAAI,CAAC+sB,KAAK,CAAC1a,QAAQ,EAAE/B,gBAAM,CAAC;QACjCjO,IAAI,EAAE;MACR,CAAC,EAAErC,OAAO,CAAC,CAAC;IACd;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAXE;IAAAtC,GAAA;IAAAZ,KAAA,EAYA,SAAAmY,MAAM5C,QAAQ,EAAgB;MAAA,IAAdrS,OAAO,GAAAjB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;MAC1B,OAAO,IAAI,CAACooB,QAAQ,CAAC9U,QAAQ,EAAErS,OAAO,CAAC,CAAC+a,MAAM,CAAC,CAAC;IAClD;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAXE;IAAArd,GAAA;IAAAZ,KAAA,EAYA,SAAAqqB,SAAS9U,QAAQ,EAAErS,OAAO,EAAE;MAC1BA,OAAO,GAAGyF,QAAQ,CAAC,CAAC,CAAC,EAAEzF,OAAO,EAAE,IAAI,CAACqQ,MAAM,CAAC,CAAC,CAAC;MAC9C,OAAO,IAAIoV,QAAQ,CAACpT,QAAQ,EAAErS,OAAO,CAAC;IACxC;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAVE;IAAAtC,GAAA;IAAAZ,KAAA,EAWA,SAAA6wB,WAAWtb,QAAQ,EAAErS,OAAO,EAAE;MAC5BA,OAAO,GAAGsQ,gBAAM,CAAC;QACfjO,IAAI,EAAE;MACR,CAAC,EAAErC,OAAO,CAAC;MACX,IAAI,CAACqS,QAAQ,CAAC3T,KAAK,CAAC,OAAO,CAAC,EAAE;QAC5BsB,OAAO,CAAC+B,MAAM,GAAG,KAAK;MACxB;MACA,OAAO,IAAI,CAACgG,GAAG,CAACsK,QAAQ,EAAErS,OAAO,CAAC;IACpC;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAjBE;IAAAtC,GAAA;IAAAZ,KAAA,EAkBA,SAAAsD,WAAWJ,OAAO,EAAoB;MAAA,IAAA0Q,KAAA;MAAA,IAAlBkd,SAAS,GAAA7uB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,IAAI;MAClC,IAAIoT,GAAG,EAAE2H,IAAI,EAAEC,IAAI,EAAE4F,eAAe,EAAEkO,gBAAgB,EAAEC,OAAO;MAC/D,IAAI,CAACvB,gBAAgB,GAAGnc,eAAK,CAAC,IAAI,CAACmc,gBAAgB,IAAI,CAAC,CAAC,EAAEvsB,OAAO,CAAC;MACnE2f,eAAe,GAAG,CAACxN,GAAG,GAAG,IAAI,CAACoa,gBAAgB,CAAC5a,gBAAgB,KAAK,IAAI,GAAGQ,GAAG,GAAG,IAAI,CAAC9B,MAAM,CAAC,kBAAkB,CAAC;MAChH,IAAIud,SAAS,EAAE;QACb,IAAI,CAACV,iBAAiB,QAAAttB,MAAA,CAAQ+f,eAAe,sBAAmB,IAAI,CAAC4M,gBAAgB,CAAC;MACxF;MACAsB,gBAAgB,GAAG,CAAC/T,IAAI,GAAG,CAACC,IAAI,GAAG,IAAI,CAACwS,gBAAgB,CAACwB,iBAAiB,KAAK,IAAI,GAAGhU,IAAI,GAAG,IAAI,CAAC1J,MAAM,CAAC,mBAAmB,CAAC,KAAK,IAAI,GAAGyJ,IAAI,GAAG,IAAI;MACpJ,IAAI+T,gBAAgB,IAAI,CAAC,IAAI,CAACrB,2BAA2B,EAAE;QACzD,IAAI,CAACD,gBAAgB,CAACX,QAAQ,GAAG,IAAI,CAACY,2BAA2B,GAAG,IAAI;QACxEsB,OAAO,GAAG,IAAI;QACd,IAAME,cAAc,GAAG,SAAjBA,cAAcA,CAAA,EAAS;UAC3B,IAAIC,QAAQ,EAAEjU,IAAI,EAAEC,IAAI,EAAEiU,KAAK,EAAEC,GAAG,EAAEC,IAAI,EAAEC,QAAQ;UACpDJ,QAAQ,GAAG,CAACjU,IAAI,GAAG,CAACC,IAAI,GAAGvJ,KAAI,CAAC6b,gBAAgB,CAAC+B,mBAAmB,KAAK,IAAI,GAAGrU,IAAI,GAAGvJ,KAAI,CAACL,MAAM,CAAC,qBAAqB,CAAC,KAAK,IAAI,GAAG2J,IAAI,GAAG,GAAG;UAC/IkU,KAAK,GAAG,SAAAA,MAAA,EAAW;YACjB,IAAIJ,OAAO,EAAE;cACXvF,YAAY,CAACuF,OAAO,CAAC;cACrBA,OAAO,GAAG,IAAI;YAChB;UACF,CAAC;UACDK,GAAG,GAAG,SAAAA,IAAA,EAAM;YACV,OAAOzd,KAAI,CAACwc,iBAAiB,QAAAttB,MAAA,CAAQ+f,eAAe,GAAIjP,KAAI,CAAC6b,gBAAgB,CAAC;UAChF,CAAC;UACD8B,QAAQ,GAAG,SAAAA,SAAA,EAAW;YACpBH,KAAK,CAAC,CAAC;YACP,OAAOC,GAAG,CAAC,CAAC;UACd,CAAC;UACDC,IAAI,GAAG,SAAAA,KAAA,EAAW;YAChBF,KAAK,CAAC,CAAC;YACPJ,OAAO,GAAG3F,UAAU,CAACkG,QAAQ,EAAEJ,QAAQ,CAAC;UAC1C,CAAC;UACD,IAAIA,QAAQ,EAAE;YACZ,OAAOG,IAAI,CAAC,CAAC;UACf,CAAC,MAAM;YACL,OAAOD,GAAG,CAAC,CAAC;UACd;QACF,CAAC;QACD5tB,MAAM,CAACguB,gBAAgB,CAAC,QAAQ,EAAEP,cAAc,CAAC;QACjD,OAAO;UAAA,OAAIztB,MAAM,CAACiuB,mBAAmB,CAAC,QAAQ,EAAER,cAAc,CAAC;QAAA;MACjE;IACF;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAAtwB,GAAA;IAAAZ,KAAA,EAKA,SAAA+uB,gBAAgB1iB,OAAO,EAAE/F,KAAK,EAAEuoB,KAAK,EAAE;MACrC,IAAI5I,WAAW,GAAG7Z,cAAO,CAACC,OAAO,EAAE,aAAa,CAAC,IAAID,cAAO,CAACC,OAAO,EAAE,YAAY,CAAC,IAAI,IAAI,CAACkH,MAAM,CAAC,aAAa,CAAC,IAAI,IAAI,CAACA,MAAM,CAAC,YAAY,CAAC,IAAImb,kBAAkB;MACpK,IAAIllB,oBAAU,CAACyc,WAAW,CAAC,EAAE;QAC3B,OAAOA,WAAW,CAAC3f,KAAK,EAAEuoB,KAAK,CAAC;MAClC,CAAC,MAAM;QACL,IAAI/mB,kBAAQ,CAACme,WAAW,CAAC,EAAE;UACzBA,WAAW,GAAGA,WAAW,CAACjlB,KAAK,CAAC,GAAG,CAAC,CAACR,GAAG,CAAC,UAAAmxB,KAAK;YAAA,OAAEjwB,QAAQ,CAACiwB,KAAK,CAAC;UAAA,EAAC,CAAC9V,IAAI,CAAC,UAAC5N,CAAC,EAAEC,CAAC;YAAA,OAAKD,CAAC,GAAGC,CAAC;UAAA,EAAC;QACxF;QACA,OAAOugB,YAAY,CAACxI,WAAW,EAAE3f,KAAK,CAAC;MACzC;IACF;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAA1F,GAAA;IAAAZ,KAAA,EAMA,SAAA4xB,eAAevlB,OAAO,EAAE/F,KAAK,EAAEuoB,KAAK,EAAE;MACpC,OAAO,IAAI,CAACE,eAAe,CAAC1iB,OAAO,EAAE/F,KAAK,EAAEuoB,KAAK,CAAC;IACpD;;IAEA;AACF;AACA;AACA;EAHE;IAAAjuB,GAAA;IAAAZ,KAAA,EAIA,SAAAovB,mBAAmBD,QAAQ,EAAE;MAC3BA,QAAQ,GAAGA,QAAQ,IAAI,IAAI,GAAG,IAAI,GAAGA,QAAQ;MAC7C,IAAI1P,GAAG,GAAG,CAAC,OAAOhc,MAAM,KAAK,WAAW,IAAIA,MAAM,KAAK,IAAI,GAAGA,MAAM,CAACouB,gBAAgB,GAAG,KAAK,CAAC,KAAK,CAAC;MACpG,IAAI1C,QAAQ,EAAE;QACZ1P,GAAG,GAAGiH,IAAI,CAACC,IAAI,CAAClH,GAAG,CAAC;MACtB;MACA,IAAIA,GAAG,IAAI,CAAC,IAAIA,GAAG,KAAM,CAAC,GAAC,CAAE,EAAE;QAC7BA,GAAG,GAAG,CAAC;MACT;MACA,IAAIqS,SAAS,GAAGrS,GAAG,CAAC5e,QAAQ,CAAC,CAAC;MAC9B,IAAIixB,SAAS,CAAClwB,KAAK,CAAC,OAAO,CAAC,EAAE;QAC5BkwB,SAAS,IAAI,IAAI;MACnB;MACA,OAAOA,SAAS;IAClB;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EARE;IAAAlxB,GAAA;IAAAZ,KAAA,EASA,SAAA+xB,iBAAiBC,KAAK,EAAE9uB,OAAO,EAAE;MAC/B,IAAIsH,OAAO,CAACwnB,KAAK,CAAC,EAAE;QAClB;QACA,OAAO,IAAI;MACb;MAEA9uB,OAAO,GAAGyF,QAAQ,CAAC,CAAC,CAAC,EAAEzF,OAAO,IAAI,CAAC,CAAC,EAAE,IAAI,CAACqQ,MAAM,CAAC,CAAC,CAAC;MACpD,IAAI0e,MAAM,GAAGD,KAAK,CACfxqB,MAAM,CAAC,UAAA0qB,IAAI;QAAA,OAAE,QAAQ,CAACnmB,IAAI,CAACmmB,IAAI,CAACC,OAAO,CAAC;MAAA,EAAC,CACzC3xB,GAAG,CAAC,UAAS0xB,IAAI,EAAC;QACf,IAAIE,UAAU,GAAG5e,gBAAM,CAAC;UACtBlN,KAAK,EAAE4rB,IAAI,CAAC3lB,YAAY,CAAC,OAAO,CAAC;UACjC7F,MAAM,EAAEwrB,IAAI,CAAC3lB,YAAY,CAAC,QAAQ,CAAC;UACnC2c,GAAG,EAAEgJ,IAAI,CAAC3lB,YAAY,CAAC,KAAK;QAC9B,CAAC,EAAErJ,OAAO,CAAC;QACX,IAAIqS,QAAQ,GAAG6c,UAAU,CAAC,QAAQ,CAAC,IAAIA,UAAU,CAAC,KAAK,CAAC;QACxD,OAAOA,UAAU,CAAC,QAAQ,CAAC;QAC3B,OAAOA,UAAU,CAAC,KAAK,CAAC;QACxB,IAAIplB,IAAI,GAAG,IAAIsM,kBAAc,CAAC8Y,UAAU,CAAC,CAACvU,gBAAgB,CAAC,CAAC;QAC5DhR,cAAO,CAACqlB,IAAI,EAAE,WAAW,EAAEjnB,OAAG,CAACsK,QAAQ,EAAE6c,UAAU,CAAC,CAAC;QACrDF,IAAI,CAACplB,YAAY,CAAC,OAAO,EAAEE,IAAI,CAAC1G,KAAK,CAAC;QACtC4rB,IAAI,CAACplB,YAAY,CAAC,QAAQ,EAAEE,IAAI,CAACtG,MAAM,CAAC;QACxC,OAAOwrB,IAAI;MACf,CAAC,CAAC;MACJ,IAAI,CAAC9B,iBAAiB,CAAC6B,MAAM,EAAE/uB,OAAO,CAAC;MACvC,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAlBE;IAAAtC,GAAA;IAAAZ,KAAA,EAmBA,SAAAowB,kBAAkBvG,QAAQ,EAAE3mB,OAAO,EAAE;MAAA,IAAA4V,MAAA;MACnC,IAAIkW,cAAc,EAAElM,OAAO,EAAElhB,KAAK,EAAEub,IAAI,EAAEkS,aAAa;MACvD,IAAIxF,QAAQ,KAAK,IAAI,EAAE;QACrB,OAAO,IAAI;MACb;MACA,IAAG3mB,OAAO,IAAI,IAAI,EAAE;QAClBA,OAAO,GAAG,CAAC,CAAC;MACd;MACA,IAAMI,UAAU,GAAGJ,OAAO,CAACI,UAAU,IAAI,IAAI,GAAGJ,OAAO,CAACI,UAAU,GAAG,IAAI,CAACiQ,MAAM,CAAC,YAAY,CAAC;MAE9FsW,QAAQ,GAAGD,gBAAgB,CAACC,QAAQ,CAAC;MAErC,IAAIhH,eAAe;MACnB,IAAI,IAAI,CAAC4M,gBAAgB,IAAI,IAAI,CAACA,gBAAgB,CAAC5a,gBAAgB,IAAI,IAAI,EAAE;QAC3EgO,eAAe,GAAG,IAAI,CAAC4M,gBAAgB,CAAC5a,gBAAgB;MAC1D,CAAC,MAAM,IAAI3R,OAAO,CAAC2R,gBAAgB,IAAI,IAAI,EAAE;QAC3CgO,eAAe,GAAG3f,OAAO,CAAC2R,gBAAgB;MAC5C,CAAC,MAAM;QACLgO,eAAe,GAAG,IAAI,CAACtP,MAAM,CAAC,kBAAkB,CAAC;MACnD;MAEA,IAAI4b,QAAQ,GAAGjsB,OAAO,CAAC6R,SAAS,IAAI,IAAI,GAAG7R,OAAO,CAAC6R,SAAS,GAAG,IAAI,CAACxB,MAAM,CAAC,WAAW,CAAC;MACvFsW,QAAQ,CAACnpB,OAAO,CAAC,UAAA8hB,GAAG,EAAI;QACtB,IAAI,MAAM,CAACzW,IAAI,CAACyW,GAAG,CAAC2P,OAAO,CAAC,EAAE;UAC5B,IAAIE,MAAM,GAAG,IAAI;UACjB,IAAI/uB,UAAU,EAAE;YACdkK,eAAQ,CAACgV,GAAG,EAAEK,eAAe,CAAC;UAChC;UACAC,OAAO,GAAG1W,cAAO,CAACoW,GAAG,EAAE,WAAW,CAAC,IAAIpW,cAAO,CAACoW,GAAG,EAAE,KAAK,CAAC;UAC1D,IAAI,CAAChY,OAAO,CAACsY,OAAO,CAAC,EAAE;YACrB;YACAA,OAAO,GAAG8L,SAAS,CAACnlB,IAAI,CAACqP,MAAI,EAAEgK,OAAO,EAAEqM,QAAQ,CAAC;YACjD,IAAIvN,OAAO,CAACgB,YAAY,CAACJ,GAAG,EAAEK,eAAe,CAAC,EAAE;cAC9CmM,cAAc,GAAGL,6BAAkB,CAACnM,GAAG,CAAC;cACxC,IAAIwM,cAAc,KAAK,CAAC,EAAE;gBACxB,IAAI,oBAAoB,CAACjjB,IAAI,CAAC+W,OAAO,CAAC,EAAE;kBACtCuM,aAAa,GAAGzgB,mBAAQ,CAACogB,cAAc,EAAExM,GAAG,CAAC;kBAC7C,IAAI6M,aAAa,EAAE;oBACjBvM,OAAO,GAAGA,OAAO,CAACta,OAAO,CAAC,uCAAuC,0BAAA1F,MAAA,CAA0BusB,aAAa,CAAE,CAAC;kBAC7G,CAAC,MAAM;oBACLgD,MAAM,GAAG,KAAK;kBAChB;gBACF,CAAC,MAAM;kBACLzwB,KAAK,GAAG,iBAAiB,CAACwS,IAAI,CAAC0O,OAAO,CAAC;kBACvC,IAAIlhB,KAAK,EAAE;oBACTytB,aAAa,GAAGb,gBAAgB,CAAC/kB,IAAI,CAACqP,MAAI,EAAE0J,GAAG,EAAEwM,cAAc,EAAEptB,KAAK,CAAC,CAAC,CAAC,EAAEsB,OAAO,CAAC;oBACnFmsB,aAAa,GAAGzgB,mBAAQ,CAACygB,aAAa,EAAE7M,GAAG,CAAC;oBAC5C,IAAI6M,aAAa,EAAE;sBACjBvM,OAAO,GAAGA,OAAO,CAACta,OAAO,CAAC,gBAAgB,OAAA1F,MAAA,CAAOusB,aAAa,CAAE,CAAC;oBACnE,CAAC,MAAM;sBACLgD,MAAM,GAAG,KAAK;oBAChB;kBACF;gBACF;gBACAplB,sBAAe,CAACuV,GAAG,EAAE,OAAO,CAAC;gBAC7B,IAAI,CAACtf,OAAO,CAACovB,0BAA0B,EAAE;kBACvCrlB,sBAAe,CAACuV,GAAG,EAAE,QAAQ,CAAC;gBAChC;cACF,CAAC,MAAM;gBACL;gBACA6P,MAAM,GAAG,KAAK;cAChB;YACF;YACA,IAAME,aAAa,GAAIrvB,OAAO,CAACG,OAAO,KAAK,MAAM,IAAI,CAACyV,MAAI,CAAClV,yBAAyB,CAAC,CAAC,IAAIkV,MAAI,CAAC0Z,mBAAmB,CAAC,CAAC,IAAI,CAAC3I,QAAQ,CAAC,CAAC,CAAC,CAACtd,YAAY,CAAC,KAAK,CAAE;YACzJ,IAAI8lB,MAAM,IAAIE,aAAa,EAAC;cAC1B;cACAzZ,MAAI,CAAC2Z,oBAAoB,CAAC5I,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC;YAC/D;YAEA,IAAIwI,MAAM,IAAI,CAACE,aAAa,EAAE;cAC5BzlB,mBAAY,CAAC0V,GAAG,EAAE,KAAK,EAAEM,OAAO,CAAC;YACnC;UACF;QACF;MACF,CAAC,CAAC;MACF,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;AACA;EALE;IAAAliB,GAAA;IAAAZ,KAAA,EAMA,SAAAyyB,qBAAqBpmB,OAAO,EAAE4V,WAAW,EAAEyQ,aAAa,EAAC;MACvD,IAAMC,cAAc,GAAGtmB,OAAO,CAACE,YAAY,CAACmmB,aAAa,CAAC;MAC1D,IAAIC,cAAc,IAAI,IAAI,EAAE;QAC1B7lB,mBAAY,CAACT,OAAO,EAAE4V,WAAW,EAAE0Q,cAAc,CAAC;MACpD;IACF;;IAEA;AACF;AACA;AACA;EAHE;IAAA/xB,GAAA;IAAAZ,KAAA,EAIA,SAAAwyB,oBAAA,EAAsB;MACpB,OAAO/uB,MAAM,IAAI,sBAAsB,IAAIA,MAAM;IACnD;;IAEA;AACF;AACA;AACA;EAHE;IAAA7C,GAAA;IAAAZ,KAAA,EAIA,SAAA4D,0BAAA,EAA4B;MAC1B,OAAO,SAAS,IAAIC,gBAAgB,CAACC,SAAS;IAChD;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAVE;IAAAlD,GAAA;IAAAZ,KAAA,EAWA,SAAAsF,eAAepC,OAAO,EAAE;MACtB,OAAOoW,kBAAc,OAAI,CAAC,IAAI,CAAC/F,MAAM,CAAC,CAAC,CAAC,CAACyH,WAAW,CAAC9X,OAAO,CAAC,CAACwN,SAAS,CAAC,IAAI,CAAC;IAC/E;;IAGA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAXE;IAAA9P,GAAA;IAAAZ,KAAA,EAYA,SAAA4yB,8BAA8B7I,eAAe,EAAExU,QAAQ,EAAgB;MAAA,IAAA4D,MAAA;MAAA,IAAdjW,OAAO,GAAAjB,SAAA,CAAAhD,MAAA,QAAAgD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;MACnE,OAAO,IAAIgoB,OAAO,CAAC,UAACC,OAAO,EAAEC,MAAM,EAAK;QACtC,IAAI,CAACJ,eAAe,EAAE;UACpBI,MAAM,CAAC;YAACmB,MAAM,EAAE,OAAO;YAAEC,OAAO,EAAE;UAA6C,CAAC,CAAC;QACnF;QAEAb,kDAAiC,CAACxnB,OAAO,CAAC;QAE1C,IAAIkqB,QAAQ,GAAGjU,MAAI,CAAC0W,SAAS,CAACta,QAAQ,EAAErS,OAAO,CAAC;QAEhDmrB,4CAA2B,CAAC,CAAC,CAACrd,IAAI,CAAC,UAAC6hB,qBAAqB,EAAK;UAC5D,IAAIC,YAAY;UAEhB,IAAID,qBAAqB,EAAE;YACzBC,YAAY,GAAGhJ,wCAAuB,CAACC,eAAe,EAAE5Q,MAAI,EAAE5D,QAAQ,EAAErS,OAAO,CAAC;YAChFgnB,OAAO,CAACH,eAAe,CAAC;UAC1B,CAAC,MAAM;YACL+I,YAAY,GAAG3E,sCAAqB,CAACpE,eAAe,EAAEqD,QAAQ,EAAElqB,OAAO,CAAC;UAC1E;UAEA4vB,YAAY,CACT9hB,IAAI,CAAC,YAAM;YACZkZ,OAAO,CAACH,eAAe,CAAC;UAC1B,CAAC,CAAC,SAAM,CAAC,UAAArL,IAAA,EAAuB;YAAA,IAArB4M,MAAM,GAAA5M,IAAA,CAAN4M,MAAM;cAAEC,OAAO,GAAA7M,IAAA,CAAP6M,OAAO;YAAQpB,MAAM,CAAC;cAACmB,MAAM,EAANA,MAAM;cAAEC,OAAO,EAAPA;YAAO,CAAC,CAAC;UAAC,CAAC,CAAC;;UAE9D;QACF,CAAC,CAAC,SAAM,CAAC,UAAA5K,KAAA,EAAuB;UAAA,IAArB2K,MAAM,GAAA3K,KAAA,CAAN2K,MAAM;YAAEC,OAAO,GAAA5K,KAAA,CAAP4K,OAAO;UAAQpB,MAAM,CAAC;YAACmB,MAAM,EAANA,MAAM;YAAEC,OAAO,EAAPA;UAAO,CAAC,CAAC;QAAC,CAAC,CAAC;MAChE,CAAC,CAAC;IACJ;EAAC;IAAA3qB,GAAA;IAAAZ,KAAA,EA9oBD,SAAAoR,KAAWlO,OAAO,EAAE;MAClB,OAAO,IAAI,IAAI,CAACA,OAAO,CAAC;IAC1B;EAAC;AAAA;AA+oBHsQ,gBAAM,CAAC+b,qBAAU,EAAEQ,yBAAS,CAAC;AACdR,oEAAU,E;;AClyBzB;AACA;AACA;AACyC;AACZ;AACG;AACe;AACV;AACQ;AACP;AACC;AACC;AACI;AACJ;AACoB;AACzB;AACU;AACF;AACU;AACd;AAExB;EACb5F,kBAAkB,EAAlBA,kBAAkB;EAClB4F,UAAU,EAAVA,UAAU;EACVjd,SAAS,EAATA,SAAS;EACTO,aAAa,EAAbA,iBAAa;EACb5C,UAAU,EAAVA,UAAU;EACV3Q,KAAK,EAALA,SAAK;EACLiY,UAAU,EAAVA,UAAU;EACVqK,OAAO,EAAPA,OAAO;EACPqG,QAAQ,EAARA,QAAQ;EACR7S,KAAK,EAALA,WAAK;EACLoT,UAAU,EAAVA,UAAU;EACVnR,cAAc,EAAdA,cAAc;EACdvB,SAAS,EAATA,SAAS;EACTwD,cAAc,EAAdA,kBAAc;EACd/a,WAAW,EAAXA,eAAW;EACXw0B,IAAI,EAAJA,sBAAI;EACJpK,QAAQ,EAARA,QAAQA;AACV,CAAC,EAAC","file":"./cloudinary-core-shrinkwrap.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"cloudinary\"] = factory();\n\telse\n\t\troot[\"cloudinary\"] = factory();\n})(this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/namespace/cloudinary-core-shrinkwrap.js\");\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","/**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction asciiToArray(string) {\n return string.split('');\n}\n\nmodule.exports = asciiToArray;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys'),\n keysIn = require('./keysIn');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n arrayMap = require('./_arrayMap'),\n baseUnary = require('./_baseUnary'),\n cacheHas = require('./_cacheHas');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\nfunction baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseDifference;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","var arrayFilter = require('./_arrayFilter'),\n isFunction = require('./isFunction');\n\n/**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\nfunction baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n}\n\nmodule.exports = baseFunctions;\n","var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n","var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\nmodule.exports = baseSlice;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var arrayMap = require('./_arrayMap');\n\n/**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\nfunction baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n}\n\nmodule.exports = baseValues;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var baseSlice = require('./_baseSlice');\n\n/**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\nfunction castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n}\n\nmodule.exports = castSlice;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\nfunction charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n}\n\nmodule.exports = charsEndIndex;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\nfunction charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n}\n\nmodule.exports = charsStartIndex;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n","var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n","var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n","var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n","var asciiToArray = require('./_asciiToArray'),\n hasUnicode = require('./_hasUnicode'),\n unicodeToArray = require('./_unicodeToArray');\n\n/**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n}\n\nmodule.exports = stringToArray;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction unicodeToArray(string) {\n return string.match(reUnicode) || [];\n}\n\nmodule.exports = unicodeToArray;\n","var assignValue = require('./_assignValue'),\n copyObject = require('./_copyObject'),\n createAssigner = require('./_createAssigner'),\n isArrayLike = require('./isArrayLike'),\n isPrototype = require('./_isPrototype'),\n keys = require('./keys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\nvar assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n});\n\nmodule.exports = assign;\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n","/**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\nfunction compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = compact;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var baseDifference = require('./_baseDifference'),\n baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\nvar difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n});\n\nmodule.exports = difference;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var baseFunctions = require('./_baseFunctions'),\n keys = require('./keys');\n\n/**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\nfunction functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n}\n\nmodule.exports = functions;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","var baseIndexOf = require('./_baseIndexOf'),\n isArrayLike = require('./isArrayLike'),\n isString = require('./isString'),\n toInteger = require('./toInteger'),\n values = require('./values');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\nfunction includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n}\n\nmodule.exports = includes;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var isObjectLike = require('./isObjectLike'),\n isPlainObject = require('./isPlainObject');\n\n/**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\nfunction isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n}\n\nmodule.exports = isElement;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n","var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","var baseToString = require('./_baseToString'),\n baseTrim = require('./_baseTrim'),\n castSlice = require('./_castSlice'),\n charsEndIndex = require('./_charsEndIndex'),\n charsStartIndex = require('./_charsStartIndex'),\n stringToArray = require('./_stringToArray'),\n toString = require('./toString');\n\n/**\n * Removes leading and trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trim(' abc ');\n * // => 'abc'\n *\n * _.trim('-_-abc-_-', '_-');\n * // => 'abc'\n *\n * _.map([' foo ', ' bar '], _.trim);\n * // => ['foo', 'bar']\n */\nfunction trim(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return baseTrim(string);\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n chrSymbols = stringToArray(chars),\n start = charsStartIndex(strSymbols, chrSymbols),\n end = charsEndIndex(strSymbols, chrSymbols) + 1;\n\n return castSlice(strSymbols, start, end).join('');\n}\n\nmodule.exports = trim;\n","var baseValues = require('./_baseValues'),\n keys = require('./keys');\n\n/**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\nfunction values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n}\n\nmodule.exports = values;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","/**\n * UTF8 encoder\n * @private\n */\nvar utf8_encode;\n\nexport default utf8_encode = function(argString) {\n var c1, enc, end, n, start, string, stringl, utftext;\n // http://kevin.vanzonneveld.net\n // + original by: Webtoolkit.info (http://www.webtoolkit.info/)\n // + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)\n // + improved by: sowberry\n // + tweaked by: Jack\n // + bugfixed by: Onno Marsman\n // + improved by: Yves Sucaet\n // + bugfixed by: Onno Marsman\n // + bugfixed by: Ulrich\n // + bugfixed by: Rafal Kukawski\n // + improved by: kirilloid\n // * example 1: utf8_encode('Kevin van Zonneveld');\n // * returns 1: 'Kevin van Zonneveld'\n if (argString === null || typeof argString === 'undefined') {\n return '';\n }\n string = argString + '';\n // .replace(/\\r\\n/g, \"\\n\").replace(/\\r/g, \"\\n\");\n utftext = '';\n start = void 0;\n end = void 0;\n stringl = 0;\n start = end = 0;\n stringl = string.length;\n n = 0;\n while (n < stringl) {\n c1 = string.charCodeAt(n);\n enc = null;\n if (c1 < 128) {\n end++;\n } else if (c1 > 127 && c1 < 2048) {\n enc = String.fromCharCode(c1 >> 6 | 192, c1 & 63 | 128);\n } else {\n enc = String.fromCharCode(c1 >> 12 | 224, c1 >> 6 & 63 | 128, c1 & 63 | 128);\n }\n if (enc !== null) {\n if (end > start) {\n utftext += string.slice(start, end);\n }\n utftext += enc;\n start = end = n + 1;\n }\n n++;\n }\n if (end > start) {\n utftext += string.slice(start, stringl);\n }\n return utftext;\n};\n","\n\nimport utf8_encode from './utf8_encode';\n\n/**\n * CRC32 calculator\n * Depends on 'utf8_encode'\n * @private\n * @param {string} str - The string to calculate the CRC32 for.\n * @return {number}\n */\nfunction crc32(str) {\n var crc, i, iTop, table, x, y;\n // http://kevin.vanzonneveld.net\n // + original by: Webtoolkit.info (http://www.webtoolkit.info/)\n // + improved by: T0bsn\n // + improved by: http://stackoverflow.com/questions/2647935/javascript-crc32-function-and-php-crc32-not-matching\n // - depends on: utf8_encode\n // * example 1: crc32('Kevin van Zonneveld');\n // * returns 1: 1249991249\n str = utf8_encode(str);\n table = '00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D';\n crc = 0;\n x = 0;\n y = 0;\n crc = crc ^ -1;\n i = 0;\n iTop = str.length;\n while (i < iTop) {\n y = (crc ^ str.charCodeAt(i)) & 0xFF;\n x = '0x' + table.substr(y * 9, 8);\n crc = crc >>> 8 ^ x;\n i++;\n }\n crc = crc ^ -1;\n //convert to unsigned 32-bit int if needed\n if (crc < 0) {\n crc += 4294967296;\n }\n return crc;\n}\n\nexport default crc32;\n","export default function stringPad(value, targetLength,padString) {\n targetLength = targetLength>>0; //truncate if number or convert non-number to 0;\n padString = String((typeof padString !== 'undefined' ? padString : ' '));\n if (value.length > targetLength) {\n return String(value);\n }\n else {\n targetLength = targetLength-value.length;\n if (targetLength > padString.length) {\n padString += repeatStringNumTimes(padString, targetLength/padString.length);\n }\n return padString.slice(0,targetLength) + String(value);\n }\n}\n\nfunction repeatStringNumTimes(string, times) {\n var repeatedString = \"\";\n while (times > 0) {\n repeatedString += string;\n times--;\n }\n return repeatedString;\n}\n","import stringPad from \"./stringPad\";\nlet chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nlet num = 0;\nlet map = {};\n\n[...chars].forEach((char) => {\n let key = num.toString(2);\n key = stringPad(key, 6, '0');\n map[key] = char;\n num++;\n});\n\n\n/**\n * Map of six-bit binary codes to Base64 characters\n */\nexport default map;\n","import stringPad from \"./stringPad\";\n\n/**\n * @description A semVer like string, x.y.z or x.y is allowed\n * Reverses the version positions, x.y.z turns to z.y.x\n * Pads each segment with '0' so they have length of 2\n * Example: 1.2.3 -> 03.02.01\n * @param {string} semVer Input can be either x.y.z or x.y\n * @return {string} in the form of zz.yy.xx (\n */\nexport default function reverseVersion(semVer) {\n if (semVer.split('.').length < 2) {\n throw new Error('invalid semVer, must have at least two segments');\n }\n\n // Split by '.', reverse, create new array with padded values and concat it together\n return semVer.split('.').reverse().map((segment) => {\n return stringPad(segment,2, '0');\n }).join('.');\n}\n","import base64Map from \"./base64Map\";\nimport reverseVersion from \"./reverseVersion\";\nimport stringPad from \"./stringPad\";\n\n/**\n * @description Encodes a semVer-like version string\n * @param {string} semVer Input can be either x.y.z or x.y\n * @return {string} A string built from 3 characters of the base64 table that encode the semVer\n */\nexport default function encodeVersion(semVer) {\n let strResult = '';\n\n // support x.y or x.y.z by using 'parts' as a variable\n let parts = semVer.split('.').length;\n let paddedStringLength = parts * 6; // we pad to either 12 or 18 characters\n\n // reverse (but don't mirror) the version. 1.5.15 -> 15.5.1\n // Pad to two spaces, 15.5.1 -> 15.05.01\n let paddedReversedSemver = reverseVersion(semVer);\n\n // turn 15.05.01 to a string '150501' then to a number 150501\n let num = parseInt(paddedReversedSemver.split('.').join(''));\n\n // Represent as binary, add left padding to 12 or 18 characters.\n // 150,501 -> 100100101111100101\n\n let paddedBinary = num.toString(2);\n paddedBinary = stringPad(paddedBinary, paddedStringLength, '0');\n\n // Stop in case an invalid version number was provided\n // paddedBinary must be built from sections of 6 bits\n if (paddedBinary.length % 6 !== 0) {\n throw 'Version must be smaller than 43.21.26)';\n }\n\n // turn every 6 bits into a character using the base64Map\n paddedBinary.match(/.{1,6}/g).forEach((bitString) => {\n // console.log(bitString);\n strResult += base64Map[bitString];\n });\n\n return strResult;\n}\n","import encodeVersion from \"./encodeVersion.js\";\n\n/**\n * @description Gets the SDK signature by encoding the SDK version and tech version\n * @param {{\n * [techVersion]:string,\n * [sdkSemver]: string,\n * [sdkCode]: string,\n * [feature]: string\n * }} analyticsOptions\n * @return {string} sdkAnalyticsSignature\n */\nexport default function getSDKAnalyticsSignature(analyticsOptions={}) {\n try {\n let twoPartVersion = removePatchFromSemver(analyticsOptions.techVersion);\n let encodedSDKVersion = encodeVersion(analyticsOptions.sdkSemver);\n let encodedTechVersion = encodeVersion(twoPartVersion);\n let featureCode = analyticsOptions.feature;\n let SDKCode = analyticsOptions.sdkCode;\n let algoVersion = 'A'; // The algo version is determined here, it should not be an argument\n\n return `${algoVersion}${SDKCode}${encodedSDKVersion}${encodedTechVersion}${featureCode}`;\n } catch (e) {\n // Either SDK or Node versions were unparsable\n return 'E';\n }\n}\n\n/**\n * @description Removes patch version from the semver if it exists\n * Turns x.y.z OR x.y into x.y\n * @param {'x.y.z' || 'x.y' || string} semVerStr\n */\nfunction removePatchFromSemver(semVerStr) {\n let parts = semVerStr.split('.');\n\n return `${parts[0]}.${parts[1]}`;\n}\n","/**\n * @description Gets the analyticsOptions from options- should include sdkSemver, techVersion, sdkCode, and feature\n * @param options\n * @returns {{sdkSemver: (string), sdkCode, feature: string, techVersion: (string)} || {}}\n */\nexport default function getAnalyticsOptions(options) {\n let analyticsOptions = {\n sdkSemver: options.sdkSemver,\n techVersion: options.techVersion,\n sdkCode: options.sdkCode,\n feature: '0'\n };\n if (options.urlAnalytics) {\n if (options.accessibility) {\n analyticsOptions.feature = 'D';\n }\n if (options.loading === 'lazy') {\n analyticsOptions.feature = 'C';\n }\n if (options.responsive) {\n analyticsOptions.feature = 'A';\n }\n if (options.placeholder) {\n analyticsOptions.feature = 'B';\n }\n return analyticsOptions;\n } else {\n return {};\n }\n}\n","/*\n * Includes utility methods for lazy loading media\n */\n\n/**\n * Check if IntersectionObserver is supported\n * @return {boolean} true if window.IntersectionObserver is defined\n */\nexport function isIntersectionObserverSupported() {\n // Check that 'IntersectionObserver' property is defined on window\n return typeof window === \"object\" && window.IntersectionObserver;\n}\n\n/**\n * Check if native lazy loading is supported\n * @return {boolean} true if 'loading' property is defined for HTMLImageElement\n */\nexport function isNativeLazyLoadSupported() {\n return typeof HTMLImageElement === \"object\" && HTMLImageElement.prototype.loading;\n}\n\n/**\n * Calls onIntersect() when intersection is detected, or when\n * no native lazy loading or when IntersectionObserver isn't supported.\n * @param {Element} el - the element to observe\n * @param {function} onIntersect - called when the given element is in view\n */\nexport function detectIntersection(el, onIntersect) {\n try {\n if (isNativeLazyLoadSupported() || !isIntersectionObserverSupported()) {\n // Return if there's no need or possibility to detect intersection\n onIntersect();\n return;\n }\n\n // Detect intersection with given element using IntersectionObserver\n const observer = new IntersectionObserver(\n (entries) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n onIntersect();\n observer.unobserve(entry.target);\n }\n });\n }, {threshold: [0, 0.01]});\n observer.observe(el);\n } catch (e) {\n onIntersect();\n }\n}","export var VERSION = \"2.5.0\";\n\nexport var CF_SHARED_CDN = \"d3jpl91pxevbkh.cloudfront.net\";\n\nexport var OLD_AKAMAI_SHARED_CDN = \"cloudinary-a.akamaihd.net\";\n\nexport var AKAMAI_SHARED_CDN = \"res.cloudinary.com\";\n\nexport var SHARED_CDN = AKAMAI_SHARED_CDN;\n\nexport var DEFAULT_TIMEOUT_MS = 10000;\n\nexport var DEFAULT_POSTER_OPTIONS = {\n format: 'jpg',\n resource_type: 'video'\n};\n\nexport var DEFAULT_VIDEO_SOURCE_TYPES = ['webm', 'mp4', 'ogv'];\n\nexport var SEO_TYPES = {\n \"image/upload\": \"images\",\n \"image/private\": \"private_images\",\n \"image/authenticated\": \"authenticated_images\",\n \"raw/upload\": \"files\",\n \"video/upload\": \"videos\"\n};\n\n/**\n* @const {Object} Cloudinary.DEFAULT_IMAGE_PARAMS\n* Defaults values for image parameters.\n*\n* (Previously defined using option_consume() )\n */\nexport var DEFAULT_IMAGE_PARAMS = {\n resource_type: \"image\",\n transformation: [],\n type: 'upload'\n};\n\n/**\n* Defaults values for video parameters.\n* @const {Object} Cloudinary.DEFAULT_VIDEO_PARAMS\n* (Previously defined using option_consume() )\n */\nexport var DEFAULT_VIDEO_PARAMS = {\n fallback_content: '',\n resource_type: \"video\",\n source_transformation: {},\n source_types: DEFAULT_VIDEO_SOURCE_TYPES,\n transformation: [],\n type: 'upload'\n};\n\n/**\n * Recommended sources for video tag\n * @const {Object} Cloudinary.DEFAULT_VIDEO_SOURCES\n */\nexport const DEFAULT_VIDEO_SOURCES = [\n {\n type: \"mp4\",\n codecs: \"hev1\",\n transformations: {video_codec: \"h265\"}\n },\n {\n type: \"webm\",\n codecs: \"vp9\",\n transformations: {video_codec: \"vp9\"}\n },\n {\n type: \"mp4\",\n transformations: {video_codec: \"auto\"}\n },\n {\n type: \"webm\",\n transformations: {video_codec: \"auto\"}\n }\n];\n\nexport const DEFAULT_EXTERNAL_LIBRARIES = {\n seeThru: 'https://unpkg.com/seethru@4/dist/seeThru.min.js'\n}\n\n/**\n * Predefined placeholder transformations\n * @const {Object} Cloudinary.PLACEHOLDER_IMAGE_MODES\n */\nexport const PLACEHOLDER_IMAGE_MODES = {\n 'blur': [{effect: 'blur:2000', quality: 1, fetch_format: 'auto'}], // Default\n 'pixelate': [{effect: 'pixelate', quality: 1, fetch_format: 'auto'}],\n // Generates a pixel size image which color is the predominant color of the original image.\n 'predominant-color-pixel': [\n {width: 'iw_div_2', aspect_ratio: 1, crop: 'pad', background: 'auto'},\n {crop: 'crop', width: 1, height: 1, gravity: 'north_east'},\n {fetch_format: 'auto', quality: 'auto'}\n ],\n // Generates an image which color is the predominant color of the original image.\n 'predominant-color': [\n {variables: [['$currWidth', 'w'], ['$currHeight', 'h']]},\n {width: 'iw_div_2', aspect_ratio: 1, crop: 'pad', background: 'auto'},\n {crop: 'crop', width: 10, height: 10, gravity: 'north_east'},\n {width: '$currWidth', height: '$currHeight', crop: 'fill'},\n {fetch_format: 'auto', quality: 'auto'}\n ],\n 'vectorize': [{effect: 'vectorize:3:0.1', fetch_format: 'svg'}]\n};\n\n/**\n * Predefined accessibility transformations\n * @const {Object} Cloudinary.ACCESSIBILITY_MODES\n */\nexport const ACCESSIBILITY_MODES = {\n darkmode: 'tint:75:black',\n brightmode: 'tint:50:white',\n monochrome: 'grayscale',\n colorblind: 'assist_colorblind'\n};\n\n/**\n * A list of keys used by the url() function.\n * @private\n */\nexport const URL_KEYS = [\n 'accessibility',\n 'api_secret',\n 'auth_token',\n 'cdn_subdomain',\n 'cloud_name',\n 'cname',\n 'format',\n 'placeholder',\n 'private_cdn',\n 'resource_type',\n 'secure',\n 'secure_cdn_subdomain',\n 'secure_distribution',\n 'shorten',\n 'sign_url',\n 'signature',\n 'ssl_detected',\n 'type',\n 'url_suffix',\n 'use_root_path',\n 'version'\n];\n\n\n/**\n * The resource storage type\n * @typedef type\n * @enum {string}\n * @property {string} 'upload' A resource uploaded directly to Cloudinary\n * @property {string} 'fetch' A resource fetched by Cloudinary from a 3rd party storage\n * @property {string} 'private'\n * @property {string} 'authenticated'\n * @property {string} 'sprite'\n * @property {string} 'facebook'\n * @property {string} 'twitter'\n * @property {string} 'youtube'\n * @property {string} 'vimeo'\n *\n */\n\n/**\n * The resource type\n * @typedef resourceType\n * @enum {string}\n * @property {string} 'image' An image file\n * @property {string} 'video' A video file\n * @property {string} 'raw' A raw file\n */\n","/*\n * Includes common utility methods and shims\n */\nimport {contains, isString} from \"../util\";\nimport {URL_KEYS} from '../constants';\n\nexport function omit(obj, keys) {\n obj = obj || {};\n let srcKeys = Object.keys(obj).filter(key => !contains(keys, key));\n let filtered = {};\n srcKeys.forEach(key => filtered[key] = obj[key]);\n return filtered;\n}\n\n/**\n * Return true if all items in list are strings\n * @function Util.allString\n * @param {Array} list - an array of items\n */\nexport var allStrings = function(list) {\n return list.length && list.every(isString);\n};\n\n/**\n* Creates a new array without the given item.\n* @function Util.without\n* @param {Array} array - original array\n* @param {*} item - the item to exclude from the new array\n* @return {Array} a new array made of the original array's items except for `item`\n */\nexport var without = function(array, item) {\n return array.filter(v=>v!==item);\n};\n\n/**\n* Return true is value is a number or a string representation of a number.\n* @function Util.isNumberLike\n* @param {*} value\n* @returns {boolean} true if value is a number\n* @example\n* Util.isNumber(0) // true\n* Util.isNumber(\"1.3\") // true\n* Util.isNumber(\"\") // false\n* Util.isNumber(undefined) // false\n */\nexport var isNumberLike = function(value) {\n return (value != null) && !isNaN(parseFloat(value));\n};\n\n/**\n * Escape all characters matching unsafe in the given string\n * @function Util.smartEscape\n * @param {string} string - source string to escape\n * @param {RegExp} unsafe - characters that must be escaped\n * @return {string} escaped string\n */\nexport var smartEscape = function(string, unsafe = /([^a-zA-Z0-9_.\\-\\/:]+)/g) {\n return string.replace(unsafe, function(match) {\n return match.split(\"\").map(function(c) {\n return \"%\" + c.charCodeAt(0).toString(16).toUpperCase();\n }).join(\"\");\n });\n};\n\n/**\n * Assign values from sources if they are not defined in the destination.\n * Once a value is set it does not change\n * @function Util.defaults\n * @param {Object} destination - the object to assign defaults to\n * @param {...Object} source - the source object(s) to assign defaults from\n * @return {Object} destination after it was modified\n */\nexport var defaults = function(destination, ...sources) {\n return sources.reduce(function(dest, source) {\n let key, value;\n for (key in source) {\n value = source[key];\n if (dest[key] === void 0) {\n dest[key] = value;\n }\n }\n return dest;\n }, destination);\n};\n\n/*********** lodash functions */\nexport var objectProto = Object.prototype;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nexport var objToString = objectProto.toString;\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n#isObject({});\n * // => true\n *\n#isObject([1, 2, 3]);\n * // => true\n *\n#isObject(1);\n * // => false\n */\nexport var isObject = function(value) {\n var type;\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n type = typeof value;\n return !!value && (type === 'object' || type === 'function');\n};\n\nexport var funcTag = '[object Function]';\n\n/**\n* Checks if `value` is classified as a `Function` object.\n* @function Util.isFunction\n* @param {*} value The value to check.\n* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n* @example\n*\n* function Foo(){};\n* isFunction(Foo);\n* // => true\n*\n* isFunction(/abc/);\n* // => false\n */\nexport var isFunction = function(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 which returns 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) === funcTag;\n};\n\n/*********** lodash functions */\n/** Used to match words to create compound words. */\nexport var reWords = (function() {\n var lower, upper;\n upper = '[A-Z]';\n lower = '[a-z]+';\n return RegExp(upper + '+(?=' + upper + lower + ')|' + upper + '?' + lower + '|' + upper + '+|[0-9]+', 'g');\n})();\n\n/**\n* Convert string to camelCase\n* @function Util.camelCase\n* @param {string} source - the string to convert\n* @return {string} in camelCase format\n */\nexport var camelCase = function(source) {\n var words = source.match(reWords);\n words = words.map(word=> word.charAt(0).toLocaleUpperCase() + word.slice(1).toLocaleLowerCase());\n words[0] = words[0].toLocaleLowerCase();\n\n return words.join('');\n};\n\n/**\n * Convert string to snake_case\n * @function Util.snakeCase\n * @param {string} source - the string to convert\n * @return {string} in snake_case format\n */\nexport var snakeCase = function(source) {\n var words = source.match(reWords);\n words = words.map(word=> word.toLocaleLowerCase());\n return words.join('_');\n};\n\n/**\n * Creates a new object from source, with the keys transformed using the converter.\n * @param {object} source\n * @param {function|null} converter\n * @returns {object}\n */\nexport var convertKeys = function(source, converter) {\n var result, value;\n result = {};\n for (let key in source) {\n value = source[key];\n if(converter) {\n key = converter(key);\n }\n if (!isEmpty(key)) {\n result[key] = value;\n }\n }\n return result;\n};\n\n/**\n * Create a copy of the source object with all keys in camelCase\n * @function Util.withCamelCaseKeys\n * @param {Object} value - the object to copy\n * @return {Object} a new object\n */\nexport var withCamelCaseKeys = function(source) {\n return convertKeys(source, camelCase);\n};\n\n/**\n * Create a copy of the source object with all keys in snake_case\n * @function Util.withSnakeCaseKeys\n * @param {Object} value - the object to copy\n * @return {Object} a new object\n */\nexport var withSnakeCaseKeys = function(source) {\n return convertKeys(source, snakeCase);\n};\n\n// Browser\n// Node.js\nexport var base64Encode = typeof btoa !== 'undefined' && isFunction(btoa) ? btoa : typeof Buffer !== 'undefined' && isFunction(Buffer) ? function(input) {\n if (!(input instanceof Buffer)) {\n input = new Buffer.from(String(input), 'binary');\n }\n return input.toString('base64');\n} : function(input) {\n throw new Error(\"No base64 encoding function found\");\n};\n\n/**\n* Returns the Base64-decoded version of url.
\n* This method delegates to `btoa` if present. Otherwise it tries `Buffer`.\n* @function Util.base64EncodeURL\n* @param {string} url - the url to encode. the value is URIdecoded and then re-encoded before converting to base64 representation\n* @return {string} the base64 representation of the URL\n */\nexport var base64EncodeURL = function(url) {\n try {\n url = decodeURI(url);\n } finally {\n url = encodeURI(url);\n }\n return base64Encode(url);\n};\n\n/**\n * Create a new object with only URL parameters\n * @param {object} options The source object\n * @return {Object} An object containing only URL parameters\n */\nexport function extractUrlParams(options) {\n return URL_KEYS.reduce((obj, key) => {\n if (options[key] != null) {\n obj[key] = options[key];\n }\n return obj;\n }, {});\n}\n\n\n/**\n * Handle the format parameter for fetch urls\n * @private\n * @param options url and transformation options. This argument may be changed by the function!\n */\nexport function patchFetchFormat(options) {\n if(options == null) {\n options = {};\n }\n if (options.type === \"fetch\") {\n if (options.fetch_format == null) {\n options.fetch_format = optionConsume(options, \"format\");\n }\n }\n}\n\n/**\n * Deletes `option_name` from `options` and return the value if present.\n * If `options` doesn't contain `option_name` the default value is returned.\n * @param {Object} options a collection\n * @param {String} option_name the name (key) of the desired value\n * @param {*} [default_value] the value to return is option_name is missing\n */\nexport function optionConsume(options, option_name, default_value) {\n let result = options[option_name];\n delete options[option_name];\n if (result != null) {\n return result;\n } else {\n return default_value;\n }\n}\n\n/**\n * Returns true if value is empty:\n *
    \n *
  • value is null or undefined
  • \n *
  • value is an array or string of length 0
  • \n *
  • value is an object with no keys
  • \n *
\n * @function Util.isEmpty\n * @param value\n * @returns {boolean} true if value is empty\n */\nexport function isEmpty(value) {\n if(value == null) {\n return true;\n }\n if( typeof value.length == \"number\") {\n return value.length === 0;\n }\n if( typeof value.size == \"number\") {\n return value.size === 0;\n }\n if(typeof value == \"object\") {\n for(let key in value) {\n if(value.hasOwnProperty(key)) {\n return false;\n }\n }\n return true;\n }\n return true;\n}\n","/**\n * Based on video.js implementation:\n * https://github.com/videojs/video.js/blob/4238f5c1d88890547153e7e1de7bd0d1d8e0b236/src/js/utils/browser.js\n */\n\n/**\n* Retrieve from the navigator the user agent property.\n* @returns user agent property.\n*/\nfunction getUserAgent(){\n return navigator && navigator.userAgent || '';\n}\n\n/**\n * Detect if current browser is any Android\n * @returns true if current browser is Android, false otherwise.\n */\nexport function isAndroid(){\n const userAgent = getUserAgent();\n return (/Android/i).test(userAgent);\n}\n\n/**\n * Detect if current browser is any Edge\n * @returns true if current browser is Edge, false otherwise.\n */\nexport function isEdge(){\n const userAgent = getUserAgent();\n return (/Edg/i).test(userAgent);\n}\n\n/**\n * Detect if current browser is chrome.\n * @returns true if current browser is Chrome, false otherwise.\n */\nexport function isChrome(){\n const userAgent = getUserAgent();\n return !isEdge() && ((/Chrome/i).test(userAgent) || (/CriOS/i).test(userAgent));\n}\n\n/**\n * Detect if current browser is Safari.\n * @returns true if current browser is Safari, false otherwise.\n */\nexport function isSafari(){\n // User agents for other browsers might include \"Safari\" so we must exclude them.\n // For example - this is the chrome user agent on windows 10:\n // Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36\n const userAgent = getUserAgent();\n return (/Safari/i).test(userAgent) && !isChrome() && !isAndroid() && !isEdge();\n}\n","var nodeContains;\n\nimport getSDKAnalyticsSignature from \"../sdkAnalytics/getSDKAnalyticsSignature\";\nimport getAnalyticsOptions from \"../sdkAnalytics/getAnalyticsOptions\";\nexport {getSDKAnalyticsSignature , getAnalyticsOptions};\n\nexport {\n default as assign\n} from 'lodash/assign';\n\nexport {\n default as cloneDeep\n} from 'lodash/cloneDeep';\n\nexport {\n default as compact\n} from 'lodash/compact';\n\nexport {\n default as difference\n} from 'lodash/difference';\n\nexport {\n default as functions\n} from 'lodash/functions';\n\nexport {\n default as identity\n} from 'lodash/identity';\n\nexport {\n default as includes\n} from 'lodash/includes';\n\nexport {\n default as isArray\n} from 'lodash/isArray';\n\nexport {\n default as isPlainObject\n} from 'lodash/isPlainObject';\n\nexport {\n default as isString\n} from 'lodash/isString';\n\nexport {\n default as merge\n} from 'lodash/merge';\n\nexport {\n default as contains\n} from 'lodash/includes';\n\nimport isElement from 'lodash/isElement';\nimport isFunction from 'lodash/isFunction';\nimport trim from 'lodash/trim';\n\nexport * from './lazyLoad';\nexport * from './baseutil';\nexport * from './browser';\nexport {\n isElement,\n isFunction,\n trim\n};\n\n/*\n * Includes utility methods and lodash / jQuery shims\n */\n/**\n * Get data from the DOM element.\n *\n * This method will use jQuery's `data()` method if it is available, otherwise it will get the `data-` attribute\n * @param {Element} element - the element to get the data from\n * @param {string} name - the name of the data item\n * @returns the value associated with the `name`\n * @function Util.getData\n */\nexport var getData = function (element, name) {\n switch (false) {\n case !(element == null):\n return void 0;\n case !isFunction(element.getAttribute):\n return element.getAttribute(`data-${name}`);\n case !isFunction(element.getAttr):\n return element.getAttr(`data-${name}`);\n case !isFunction(element.data):\n return element.data(name);\n case !(isFunction(typeof jQuery !== \"undefined\" && jQuery.fn && jQuery.fn.data) && isElement(element)):\n return jQuery(element).data(name);\n }\n};\n\n/**\n * Set data in the DOM element.\n *\n * This method will use jQuery's `data()` method if it is available, otherwise it will set the `data-` attribute\n * @function Util.setData\n * @param {Element} element - the element to set the data in\n * @param {string} name - the name of the data item\n * @param {*} value - the value to be set\n *\n */\nexport var setData = function (element, name, value) {\n switch (false) {\n case !(element == null):\n return void 0;\n case !isFunction(element.setAttribute):\n return element.setAttribute(`data-${name}`, value);\n case !isFunction(element.setAttr):\n return element.setAttr(`data-${name}`, value);\n case !isFunction(element.data):\n return element.data(name, value);\n case !(isFunction(typeof jQuery !== \"undefined\" && jQuery.fn && jQuery.fn.data) && isElement(element)):\n return jQuery(element).data(name, value);\n }\n};\n\n/**\n * Get attribute from the DOM element.\n *\n * @function Util.getAttribute\n * @param {Element} element - the element to set the attribute for\n * @param {string} name - the name of the attribute\n * @returns {*} the value of the attribute\n *\n */\nexport var getAttribute = function (element, name) {\n switch (false) {\n case !(element == null):\n return void 0;\n case !isFunction(element.getAttribute):\n return element.getAttribute(name);\n case !isFunction(element.attr):\n return element.attr(name);\n case !isFunction(element.getAttr):\n return element.getAttr(name);\n }\n};\n\n/**\n * Set attribute in the DOM element.\n *\n * @function Util.setAttribute\n * @param {Element} element - the element to set the attribute for\n * @param {string} name - the name of the attribute\n * @param {*} value - the value to be set\n */\nexport var setAttribute = function (element, name, value) {\n switch (false) {\n case !(element == null):\n return void 0;\n case !isFunction(element.setAttribute):\n return element.setAttribute(name, value);\n case !isFunction(element.attr):\n return element.attr(name, value);\n case !isFunction(element.setAttr):\n return element.setAttr(name, value);\n }\n};\n\n/**\n * Remove an attribute in the DOM element.\n *\n * @function Util.removeAttribute\n * @param {Element} element - the element to set the attribute for\n * @param {string} name - the name of the attribute\n */\nexport var removeAttribute = function (element, name) {\n switch (false) {\n case !(element == null):\n return void 0;\n case !isFunction(element.removeAttribute):\n return element.removeAttribute(name);\n default:\n return setAttribute(element, void 0);\n }\n};\n\n/**\n * Set a group of attributes to the element\n * @function Util.setAttributes\n * @param {Element} element - the element to set the attributes for\n * @param {Object} attributes - a hash of attribute names and values\n */\nexport var setAttributes = function (element, attributes) {\n var name, results, value;\n results = [];\n for (name in attributes) {\n value = attributes[name];\n if (value != null) {\n results.push(setAttribute(element, name, value));\n } else {\n results.push(removeAttribute(element, name));\n }\n }\n return results;\n};\n\n/**\n * Checks if element has a css class\n * @function Util.hasClass\n * @param {Element} element - the element to check\n * @param {string} name - the class name\n @returns {boolean} true if the element has the class\n */\nexport var hasClass = function (element, name) {\n if (isElement(element)) {\n return element.className.match(new RegExp(`\\\\b${name}\\\\b`));\n }\n};\n\n/**\n * Add class to the element\n * @function Util.addClass\n * @param {Element} element - the element\n * @param {string} name - the class name to add\n */\nexport var addClass = function (element, name) {\n if (!element.className.match(new RegExp(`\\\\b${name}\\\\b`))) {\n return element.className = trim(`${element.className} ${name}`);\n }\n};\n\n// The following code is taken from jQuery\nexport var getStyles = function (elem) {\n // Support: IE<=11+, Firefox<=30+ (#15098, #14150)\n // IE throws on elements created in popups\n // FF meanwhile throws on frame elements through \"defaultView.getComputedStyle\"\n if (elem.ownerDocument.defaultView.opener) {\n return elem.ownerDocument.defaultView.getComputedStyle(elem, null);\n }\n return window.getComputedStyle(elem, null);\n};\n\nexport var cssExpand = [\"Top\", \"Right\", \"Bottom\", \"Left\"];\n\nnodeContains = function (a, b) {\n var adown, bup;\n adown = (a.nodeType === 9 ? a.documentElement : a);\n bup = b && b.parentNode;\n return a === bup || !!(bup && bup.nodeType === 1 && adown.contains(bup));\n};\n\n// Truncated version of jQuery.style(elem, name)\nexport var domStyle = function (elem, name) {\n if (!(!elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style)) {\n return elem.style[name];\n }\n};\n\nexport var curCSS = function (elem, name, computed) {\n var maxWidth, minWidth, ret, rmargin, style, width;\n rmargin = /^margin/;\n width = void 0;\n minWidth = void 0;\n maxWidth = void 0;\n ret = void 0;\n style = elem.style;\n computed = computed || getStyles(elem);\n if (computed) {\n // Support: IE9\n // getPropertyValue is only needed for .css('filter') (#12537)\n ret = computed.getPropertyValue(name) || computed[name];\n }\n if (computed) {\n if (ret === \"\" && !nodeContains(elem.ownerDocument, elem)) {\n ret = domStyle(elem, name);\n }\n // Support: iOS < 6\n // A tribute to the \"awesome hack by Dean Edwards\"\n // iOS < 6 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels\n // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values\n if (rnumnonpx.test(ret) && rmargin.test(name)) {\n // Remember the original values\n width = style.width;\n minWidth = style.minWidth;\n maxWidth = style.maxWidth;\n // Put in the new values to get a computed value out\n style.minWidth = style.maxWidth = style.width = ret;\n ret = computed.width;\n // Revert the changed values\n style.width = width;\n style.minWidth = minWidth;\n style.maxWidth = maxWidth;\n }\n }\n // Support: IE\n // IE returns zIndex value as an integer.\n if (ret !== undefined) {\n return ret + \"\";\n } else {\n return ret;\n }\n};\n\nexport var cssValue = function (elem, name, convert, styles) {\n var val;\n val = curCSS(elem, name, styles);\n if (convert) {\n return parseFloat(val);\n } else {\n return val;\n }\n};\n\nexport var augmentWidthOrHeight = function (elem, name, extra, isBorderBox, styles) {\n var i, len, side, sides, val;\n // If we already have the right measurement, avoid augmentation\n // Otherwise initialize for horizontal or vertical properties\n if (extra === (isBorderBox ? \"border\" : \"content\")) {\n return 0;\n } else {\n sides = name === \"width\" ? [\"Right\", \"Left\"] : [\"Top\", \"Bottom\"];\n val = 0;\n for (i = 0, len = sides.length; i < len; i++) {\n side = sides[i];\n if (extra === \"margin\") {\n // Both box models exclude margin, so add it if we want it\n val += cssValue(elem, extra + side, true, styles);\n }\n if (isBorderBox) {\n if (extra === \"content\") {\n // border-box includes padding, so remove it if we want content\n val -= cssValue(elem, `padding${side}`, true, styles);\n }\n if (extra !== \"margin\") {\n // At this point, extra isn't border nor margin, so remove border\n val -= cssValue(elem, `border${side}Width`, true, styles);\n }\n } else {\n // At this point, extra isn't content, so add padding\n val += cssValue(elem, `padding${side}`, true, styles);\n if (extra !== \"padding\") {\n // At this point, extra isn't content nor padding, so add border\n val += cssValue(elem, `border${side}Width`, true, styles);\n }\n }\n }\n return val;\n }\n};\n\nvar pnum = /[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source;\n\nvar rnumnonpx = new RegExp(\"^(\" + pnum + \")(?!px)[a-z%]+$\", \"i\");\n\nexport var getWidthOrHeight = function (elem, name, extra) {\n var isBorderBox, styles, val, valueIsBorderBox;\n // Start with offset property, which is equivalent to the border-box value\n valueIsBorderBox = true;\n val = (name === \"width\" ? elem.offsetWidth : elem.offsetHeight);\n styles = getStyles(elem);\n isBorderBox = cssValue(elem, \"boxSizing\", false, styles) === \"border-box\";\n // Some non-html elements return undefined for offsetWidth, so check for null/undefined\n // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285\n // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668\n if (val <= 0 || (val == null)) {\n // Fall back to computed then uncomputed css if necessary\n val = curCSS(elem, name, styles);\n if (val < 0 || (val == null)) {\n val = elem.style[name];\n }\n if (rnumnonpx.test(val)) {\n // Computed unit is not pixels. Stop here and return.\n return val;\n }\n // Check for style in case a browser which returns unreliable values\n // for getComputedStyle silently falls back to the reliable elem.style\n // valueIsBorderBox = isBorderBox and (support.boxSizingReliable() or val is elem.style[name])\n valueIsBorderBox = isBorderBox && (val === elem.style[name]);\n // Normalize \"\", auto, and prepare for extra\n val = parseFloat(val) || 0;\n }\n // Use the active box-sizing model to add/subtract irrelevant styles\n return val + augmentWidthOrHeight(elem, name, extra || (isBorderBox ? \"border\" : \"content\"), valueIsBorderBox, styles);\n};\n\nexport var width = function (element) {\n return getWidthOrHeight(element, \"width\", \"content\");\n};\n\n\n/**\n * @class Util\n */\n/**\n * Returns true if item is a string\n * @function Util.isString\n * @param item\n * @returns {boolean} true if item is a string\n */\n/**\n * Returns true if item is empty:\n *
    \n *
  • item is null or undefined
  • \n *
  • item is an array or string of length 0
  • \n *
  • item is an object with no keys
  • \n *
\n * @function Util.isEmpty\n * @param item\n * @returns {boolean} true if item is empty\n */\n/**\n * Assign source properties to destination.\n * If the property is an object it is assigned as a whole, overriding the destination object.\n * @function Util.assign\n * @param {Object} destination - the object to assign to\n */\n/**\n * Recursively assign source properties to destination\n * @function Util.merge\n * @param {Object} destination - the object to assign to\n * @param {...Object} [sources] The source objects.\n */\n/**\n * Create a new copy of the given object, including all internal objects.\n * @function Util.cloneDeep\n * @param {Object} value - the object to clone\n * @return {Object} a new deep copy of the object\n */\n/**\n * Creates a new array from the parameter with \"falsey\" values removed\n * @function Util.compact\n * @param {Array} array - the array to remove values from\n * @return {Array} a new array without falsey values\n */\n/**\n * Check if a given item is included in the given array\n * @function Util.contains\n * @param {Array} array - the array to search in\n * @param {*} item - the item to search for\n * @return {boolean} true if the item is included in the array\n */\n/**\n * Returns values in the given array that are not included in the other array\n * @function Util.difference\n * @param {Array} arr - the array to select from\n * @param {Array} values - values to filter from arr\n * @return {Array} the filtered values\n */\n/**\n * Returns a list of all the function names in obj\n * @function Util.functions\n * @param {Object} object - the object to inspect\n * @return {Array} a list of functions of object\n */\n/**\n * Returns the provided value. This functions is used as a default predicate function.\n * @function Util.identity\n * @param {*} value\n * @return {*} the provided value\n */\n/**\n * Remove leading or trailing spaces from text\n * @function Util.trim\n * @param {string} text\n * @return {string} the `text` without leading or trailing spaces\n */\n","/**\n * Represents a transformation expression.\n * @param {string} expressionStr - An expression in string format.\n * @class Expression\n * Normally this class is not instantiated directly\n */\nclass Expression {\n constructor(expressionStr) {\n /**\n * @protected\n * @inner Expression-expressions\n */\n this.expressions = [];\n if (expressionStr != null) {\n this.expressions.push(Expression.normalize(expressionStr));\n }\n }\n\n /**\n * Convenience constructor method\n * @function Expression.new\n */\n static new(expressionStr) {\n return new this(expressionStr);\n }\n\n /**\n * Normalize a string expression\n * @function Cloudinary#normalize\n * @param {string} expression a expression, e.g. \"w gt 100\", \"width_gt_100\", \"width > 100\"\n * @return {string} the normalized form of the value expression, e.g. \"w_gt_100\"\n */\n static normalize(expression) {\n if (expression == null) {\n return expression;\n }\n expression = String(expression);\n const operators = \"\\\\|\\\\||>=|<=|&&|!=|>|=|<|/|-|\\\\+|\\\\*|\\\\^\";\n\n // operators\n const operatorsPattern = \"((\" + operators + \")(?=[ _]))\";\n const operatorsReplaceRE = new RegExp(operatorsPattern, \"g\");\n expression = expression.replace(operatorsReplaceRE, match => Expression.OPERATORS[match]);\n\n // predefined variables\n // The :${v} part is to prevent normalization of vars with a preceding colon (such as :duration),\n // It won't be found in PREDEFINED_VARS and so won't be normalized.\n // It is done like this because ie11 does not support regex lookbehind\n const predefinedVarsPattern = \"(\" + Object.keys(Expression.PREDEFINED_VARS).map(v=>`:${v}|${v}`).join(\"|\") + \")\";\n const userVariablePattern = '(\\\\$_*[^_ ]+)';\n\n const variablesReplaceRE = new RegExp(`${userVariablePattern}|${predefinedVarsPattern}`, \"g\");\n expression = expression.replace(variablesReplaceRE, (match) => (Expression.PREDEFINED_VARS[match] || match));\n\n return expression.replace(/[ _]+/g, '_');\n }\n\n /**\n * Serialize the expression\n * @return {string} the expression as a string\n */\n serialize() {\n return Expression.normalize(this.expressions.join(\"_\"));\n }\n\n toString() {\n return this.serialize();\n }\n\n /**\n * Get the parent transformation of this expression\n * @return Transformation\n */\n getParent() {\n return this.parent;\n }\n\n /**\n * Set the parent transformation of this expression\n * @param {Transformation} the parent transformation\n * @return {Expression} this expression\n */\n setParent(parent) {\n this.parent = parent;\n return this;\n }\n\n /**\n * Add a expression\n * @function Expression#predicate\n * @internal\n */\n predicate(name, operator, value) {\n if (Expression.OPERATORS[operator] != null) {\n operator = Expression.OPERATORS[operator];\n }\n this.expressions.push(`${name}_${operator}_${value}`);\n return this;\n }\n\n /**\n * @function Expression#and\n */\n and() {\n this.expressions.push(\"and\");\n return this;\n }\n\n /**\n * @function Expression#or\n */\n or() {\n this.expressions.push(\"or\");\n return this;\n }\n\n /**\n * Conclude expression\n * @function Expression#then\n * @return {Transformation} the transformation this expression is defined for\n */\n then() {\n return this.getParent().if(this.toString());\n }\n\n /**\n * @function Expression#height\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n height(operator, value) {\n return this.predicate(\"h\", operator, value);\n }\n\n /**\n * @function Expression#width\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n width(operator, value) {\n return this.predicate(\"w\", operator, value);\n }\n\n /**\n * @function Expression#aspectRatio\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n aspectRatio(operator, value) {\n return this.predicate(\"ar\", operator, value);\n }\n\n /**\n * @function Expression#pages\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n pageCount(operator, value) {\n return this.predicate(\"pc\", operator, value);\n }\n\n /**\n * @function Expression#faces\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n faceCount(operator, value) {\n return this.predicate(\"fc\", operator, value);\n }\n\n value(value) {\n this.expressions.push(value);\n return this;\n }\n\n /**\n */\n static variable(name, value) {\n return new this(name).value(value);\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"width\"\n * @function Expression.width\n */\n static width() {\n return new this(\"width\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"height\"\n * @function Expression.height\n */\n static height() {\n return new this(\"height\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"initialWidth\"\n * @function Expression.initialWidth\n */\n static initialWidth() {\n return new this(\"initialWidth\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"initialHeight\"\n * @function Expression.initialHeight\n */\n static initialHeight() {\n return new this(\"initialHeight\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"aspectRatio\"\n * @function Expression.aspectRatio\n */\n static aspectRatio() {\n return new this(\"aspectRatio\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"initialAspectRatio\"\n * @function Expression.initialAspectRatio\n */\n static initialAspectRatio() {\n return new this(\"initialAspectRatio\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"pageCount\"\n * @function Expression.pageCount\n */\n static pageCount() {\n return new this(\"pageCount\");\n }\n\n /**\n * @returns Expression new expression with the predefined variable \"faceCount\"\n * @function Expression.faceCount\n */\n static faceCount() {\n return new this(\"faceCount\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"currentPage\"\n * @function Expression.currentPage\n */\n static currentPage() {\n return new this(\"currentPage\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"tags\"\n * @function Expression.tags\n */\n static tags() {\n return new this(\"tags\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"pageX\"\n * @function Expression.pageX\n */\n static pageX() {\n return new this(\"pageX\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"pageY\"\n * @function Expression.pageY\n */\n static pageY() {\n return new this(\"pageY\");\n }\n\n}\n\n/**\n * @internal\n */\nExpression.OPERATORS = {\n \"=\": 'eq',\n \"!=\": 'ne',\n \"<\": 'lt',\n \">\": 'gt',\n \"<=\": 'lte',\n \">=\": 'gte',\n \"&&\": 'and',\n \"||\": 'or',\n \"*\": \"mul\",\n \"/\": \"div\",\n \"+\": \"add\",\n \"-\": \"sub\",\n \"^\": \"pow\",\n};\n\n/**\n * @internal\n */\nExpression.PREDEFINED_VARS = {\n \"aspect_ratio\": \"ar\",\n \"aspectRatio\": \"ar\",\n \"current_page\": \"cp\",\n \"currentPage\": \"cp\",\n \"duration\": \"du\",\n \"face_count\": \"fc\",\n \"faceCount\": \"fc\",\n \"height\": \"h\",\n \"initial_aspect_ratio\": \"iar\",\n \"initial_duration\": \"idu\",\n \"initial_height\": \"ih\",\n \"initial_width\": \"iw\",\n \"initialAspectRatio\": \"iar\",\n \"initialDuration\": \"idu\",\n \"initialHeight\": \"ih\",\n \"initialWidth\": \"iw\",\n \"page_count\": \"pc\",\n \"page_x\": \"px\",\n \"page_y\": \"py\",\n \"pageCount\": \"pc\",\n \"pageX\": \"px\",\n \"pageY\": \"py\",\n \"tags\": \"tags\",\n \"width\": \"w\"\n};\n\n/**\n * @internal\n */\nExpression.BOUNDRY = \"[ _]+\";\n\nexport default Expression;\n","import Expression from './expression';\n\n/**\n * Represents a transformation condition.\n * @param {string} conditionStr - a condition in string format\n * @class Condition\n * @example\n * // normally this class is not instantiated directly\n * var tr = cloudinary.Transformation.new()\n * .if().width( \">\", 1000).and().aspectRatio(\"<\", \"3:4\").then()\n * .width(1000)\n * .crop(\"scale\")\n * .else()\n * .width(500)\n * .crop(\"scale\")\n *\n * var tr = cloudinary.Transformation.new()\n * .if(\"w > 1000 and aspectRatio < 3:4\")\n * .width(1000)\n * .crop(\"scale\")\n * .else()\n * .width(500)\n * .crop(\"scale\")\n *\n */\nclass Condition extends Expression {\n constructor(conditionStr) {\n super(conditionStr);\n }\n\n /**\n * @function Condition#height\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n height(operator, value) {\n return this.predicate(\"h\", operator, value);\n }\n\n /**\n * @function Condition#width\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n width(operator, value) {\n return this.predicate(\"w\", operator, value);\n }\n\n /**\n * @function Condition#aspectRatio\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n aspectRatio(operator, value) {\n return this.predicate(\"ar\", operator, value);\n }\n\n /**\n * @function Condition#pages\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n pageCount(operator, value) {\n return this.predicate(\"pc\", operator, value);\n }\n\n /**\n * @function Condition#faces\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n faceCount(operator, value) {\n return this.predicate(\"fc\", operator, value);\n }\n\n /**\n * @function Condition#duration\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n duration(operator, value) {\n return this.predicate(\"du\", operator, value);\n }\n\n /**\n * @function Condition#initialDuration\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n initialDuration(operator, value) {\n return this.predicate(\"idu\", operator, value);\n }\n}\n\nexport default Condition;\n","/**\n * Class for defining account configuration options.\n * Depends on 'utils'\n */\n\nimport {\n defaults,\n assign,\n isString,\n isPlainObject,\n cloneDeep\n} from './util';\n\n/**\n * Class for defining account configuration options.\n * @constructor Configuration\n * @param {Object} options - The account configuration parameters to set.\n * @see Available configuration options\n */\nclass Configuration {\n constructor(options) {\n this.configuration = options == null ? {} : cloneDeep(options);\n defaults(this.configuration, DEFAULT_CONFIGURATION_PARAMS);\n }\n\n /**\n * Initializes the configuration. This method is a convenience method that invokes both\n * {@link Configuration#fromEnvironment|fromEnvironment()} (Node.js environment only)\n * and {@link Configuration#fromDocument|fromDocument()}.\n * It first tries to retrieve the configuration from the environment variable.\n * If not available, it tries from the document meta tags.\n * @function Configuration#init\n * @return {Configuration} returns `this` for chaining\n * @see fromDocument\n * @see fromEnvironment\n */\n init() {\n this.fromEnvironment();\n this.fromDocument();\n return this;\n }\n\n /**\n * Set a new configuration item\n * @function Configuration#set\n * @param {string} name - the name of the item to set\n * @param {*} value - the value to be set\n * @return {Configuration}\n *\n */\n set(name, value) {\n this.configuration[name] = value;\n return this;\n }\n\n /**\n * Get the value of a configuration item\n * @function Configuration#get\n * @param {string} name - the name of the item to set\n * @return {*} the configuration item\n */\n get(name) {\n return this.configuration[name];\n }\n\n merge(config) {\n assign(this.configuration, cloneDeep(config));\n return this;\n }\n\n /**\n * Initialize Cloudinary from HTML meta tags.\n * @function Configuration#fromDocument\n * @return {Configuration}\n * @example \n *\n */\n fromDocument() {\n var el, i, len, meta_elements;\n meta_elements = typeof document !== \"undefined\" && document !== null ? document.querySelectorAll('meta[name^=\"cloudinary_\"]') : void 0;\n if (meta_elements) {\n for (i = 0, len = meta_elements.length; i < len; i++) {\n el = meta_elements[i];\n this.configuration[el.getAttribute('name').replace('cloudinary_', '')] = el.getAttribute('content');\n }\n }\n return this;\n }\n\n /**\n * Initialize Cloudinary from the `CLOUDINARY_URL` environment variable.\n *\n * This function will only run under Node.js environment.\n * @function Configuration#fromEnvironment\n * @requires Node.js\n */\n fromEnvironment() {\n var cloudinary_url, query, uri, uriRegex;\n if(typeof process !== \"undefined\" && process !== null && process.env && process.env.CLOUDINARY_URL ){\n cloudinary_url = process.env.CLOUDINARY_URL;\n uriRegex = /cloudinary:\\/\\/(?:(\\w+)(?:\\:([\\w-]+))?@)?([\\w\\.-]+)(?:\\/([^?]*))?(?:\\?(.+))?/;\n uri = uriRegex.exec(cloudinary_url);\n if (uri) {\n if (uri[3] != null) {\n this.configuration['cloud_name'] = uri[3];\n }\n if (uri[1] != null) {\n this.configuration['api_key'] = uri[1];\n }\n if (uri[2] != null) {\n this.configuration['api_secret'] = uri[2];\n }\n if (uri[4] != null) {\n this.configuration['private_cdn'] = uri[4] != null;\n }\n if (uri[4] != null) {\n this.configuration['secure_distribution'] = uri[4];\n }\n query = uri[5];\n if (query != null) {\n query.split('&').forEach(value=>{\n let [k, v] = value.split('=');\n if (v == null) {\n v = true;\n }\n this.configuration[k] = v;\n });\n }\n }\n }\n return this;\n }\n\n /**\n * Create or modify the Cloudinary client configuration\n *\n * Warning: `config()` returns the actual internal configuration object. modifying it will change the configuration.\n *\n * This is a backward compatibility method. For new code, use get(), merge() etc.\n * @function Configuration#config\n * @param {hash|string|boolean} new_config\n * @param {string} new_value\n * @returns {*} configuration, or value\n *\n * @see {@link fromEnvironment} for initialization using environment variables\n * @see {@link fromDocument} for initialization using HTML meta tags\n */\n config(new_config, new_value) {\n switch (false) {\n case new_value === void 0:\n this.set(new_config, new_value);\n return this.configuration;\n case !isString(new_config):\n return this.get(new_config);\n case !isPlainObject(new_config):\n this.merge(new_config);\n return this.configuration;\n default:\n // Backward compatibility - return the internal object\n return this.configuration;\n }\n }\n\n /**\n * Returns a copy of the configuration parameters\n * @function Configuration#toOptions\n * @returns {Object} a key:value collection of the configuration parameters\n */\n toOptions() {\n return cloneDeep(this.configuration);\n }\n\n}\n\nconst DEFAULT_CONFIGURATION_PARAMS = {\n responsive_class: 'cld-responsive',\n responsive_use_breakpoints: true,\n round_dpr: true,\n secure: (typeof window !== \"undefined\" && window !== null ? window.location ? window.location.protocol : void 0 : void 0) === 'https:'\n};\n\nConfiguration.CONFIG_PARAMS = [\n \"api_key\",\n \"api_secret\",\n \"callback\",\n \"cdn_subdomain\",\n \"cloud_name\",\n \"cname\",\n \"private_cdn\",\n \"protocol\",\n \"resource_type\",\n \"responsive\",\n \"responsive_class\",\n \"responsive_use_breakpoints\",\n \"responsive_width\",\n \"round_dpr\",\n \"secure\",\n \"secure_cdn_subdomain\",\n \"secure_distribution\",\n \"shorten\",\n \"type\",\n \"upload_preset\",\n \"url_suffix\",\n \"use_root_path\",\n \"version\",\n \"externalLibraries\",\n \"max_timeout_ms\"\n];\n\nexport default Configuration;\n","import {\n snakeCase,\n compact\n} from '../util';\n\nclass Layer {\n /**\n * Layer\n * @constructor Layer\n * @param {Object} options - layer parameters\n */\n constructor(options) {\n this.options = {};\n if (options != null) {\n [\"resourceType\", \"type\", \"publicId\", \"format\"].forEach((key) => {\n var ref;\n return this.options[key] = (ref = options[key]) != null ? ref : options[snakeCase(key)];\n });\n }\n }\n\n resourceType(value) {\n this.options.resourceType = value;\n return this;\n }\n\n type(value) {\n this.options.type = value;\n return this;\n }\n\n publicId(value) {\n this.options.publicId = value;\n return this;\n }\n\n /**\n * Get the public ID, formatted for layer parameter\n * @function Layer#getPublicId\n * @return {String} public ID\n */\n getPublicId() {\n var ref;\n return (ref = this.options.publicId) != null ? ref.replace(/\\//g, \":\") : void 0;\n }\n\n /**\n * Get the public ID, with format if present\n * @function Layer#getFullPublicId\n * @return {String} public ID\n */\n getFullPublicId() {\n if (this.options.format != null) {\n return this.getPublicId() + \".\" + this.options.format;\n } else {\n return this.getPublicId();\n }\n }\n\n format(value) {\n this.options.format = value;\n return this;\n }\n\n /**\n * generate the string representation of the layer\n * @function Layer#toString\n */\n toString() {\n var components;\n components = [];\n if (this.options.publicId == null) {\n throw \"Must supply publicId\";\n }\n if (!(this.options.resourceType === \"image\")) {\n components.push(this.options.resourceType);\n }\n if (!(this.options.type === \"upload\")) {\n components.push(this.options.type);\n }\n components.push(this.getFullPublicId());\n return compact(components).join(\":\");\n }\n\n clone() {\n return new this.constructor(this.options);\n }\n\n}\n\nexport default Layer;\n","import Layer from './layer';\n\nimport {\n compact,\n isEmpty,\n isNumberLike,\n smartEscape,\n snakeCase\n} from '../util';\n\nclass TextLayer extends Layer {\n /**\n * @constructor TextLayer\n * @param {Object} options - layer parameters\n */\n constructor(options) {\n var keys;\n super(options);\n keys = [\"resourceType\", \"resourceType\", \"fontFamily\", \"fontSize\", \"fontWeight\", \"fontStyle\", \"textDecoration\", \"textAlign\", \"stroke\", \"letterSpacing\", \"lineSpacing\", \"fontHinting\", \"fontAntialiasing\", \"text\", \"textStyle\"];\n if (options != null) {\n keys.forEach((key) => {\n var ref;\n return this.options[key] = (ref = options[key]) != null ? ref : options[snakeCase(key)];\n });\n }\n this.options.resourceType = \"text\";\n }\n\n resourceType(resourceType) {\n throw \"Cannot modify resourceType for text layers\";\n }\n\n type(type) {\n throw \"Cannot modify type for text layers\";\n }\n\n format(format) {\n throw \"Cannot modify format for text layers\";\n }\n\n fontFamily(fontFamily) {\n this.options.fontFamily = fontFamily;\n return this;\n }\n\n fontSize(fontSize) {\n this.options.fontSize = fontSize;\n return this;\n }\n\n fontWeight(fontWeight) {\n this.options.fontWeight = fontWeight;\n return this;\n }\n\n fontStyle(fontStyle) {\n this.options.fontStyle = fontStyle;\n return this;\n }\n\n textDecoration(textDecoration) {\n this.options.textDecoration = textDecoration;\n return this;\n }\n\n textAlign(textAlign) {\n this.options.textAlign = textAlign;\n return this;\n }\n\n stroke(stroke) {\n this.options.stroke = stroke;\n return this;\n }\n\n letterSpacing(letterSpacing) {\n this.options.letterSpacing = letterSpacing;\n return this;\n }\n\n lineSpacing(lineSpacing) {\n this.options.lineSpacing = lineSpacing;\n return this;\n }\n\n fontHinting (fontHinting){\n this.options.fontHinting = fontHinting;\n return this;\n }\n\n fontAntialiasing (fontAntialiasing){\n this.options.fontAntialiasing = fontAntialiasing;\n return this;\n }\n\n text(text) {\n this.options.text = text;\n return this;\n }\n\n textStyle(textStyle) {\n this.options.textStyle = textStyle;\n return this;\n }\n\n /**\n * generate the string representation of the layer\n * @function TextLayer#toString\n * @return {String}\n */\n toString() {\n var components, hasPublicId, hasStyle, publicId, re, res, start, style, text, textSource;\n style = this.textStyleIdentifier();\n if (this.options.publicId != null) {\n publicId = this.getFullPublicId();\n }\n if (this.options.text != null) {\n hasPublicId = !isEmpty(publicId);\n hasStyle = !isEmpty(style);\n if (hasPublicId && hasStyle || !hasPublicId && !hasStyle) {\n throw \"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!\";\n }\n re = /\\$\\([a-zA-Z]\\w*\\)/g;\n start = 0;\n // textSource = text.replace(new RegExp(\"[,/]\", 'g'), (c)-> \"%#{c.charCodeAt(0).toString(16).toUpperCase()}\")\n textSource = smartEscape(this.options.text, /[,\\/]/g);\n text = \"\";\n while (res = re.exec(textSource)) {\n text += smartEscape(textSource.slice(start, res.index));\n text += res[0];\n start = res.index + res[0].length;\n }\n text += smartEscape(textSource.slice(start));\n }\n components = [this.options.resourceType, style, publicId, text];\n return compact(components).join(\":\");\n }\n\n textStyleIdentifier() {\n // Note: if a text-style argument is provided as a whole, it overrides everything else, no mix and match.\n if (!isEmpty(this.options.textStyle)) {\n return this.options.textStyle;\n }\n var components;\n components = [];\n if (this.options.fontWeight !== \"normal\") {\n components.push(this.options.fontWeight);\n }\n if (this.options.fontStyle !== \"normal\") {\n components.push(this.options.fontStyle);\n }\n if (this.options.textDecoration !== \"none\") {\n components.push(this.options.textDecoration);\n }\n components.push(this.options.textAlign);\n if (this.options.stroke !== \"none\") {\n components.push(this.options.stroke);\n }\n if (!(isEmpty(this.options.letterSpacing) && !isNumberLike(this.options.letterSpacing))) {\n components.push(\"letter_spacing_\" + this.options.letterSpacing);\n }\n if (!(isEmpty(this.options.lineSpacing) && !isNumberLike(this.options.lineSpacing))) {\n components.push(\"line_spacing_\" + this.options.lineSpacing);\n }\n if (!(isEmpty(this.options.fontAntialiasing))) {\n components.push(\"antialias_\"+this.options.fontAntialiasing);\n }\n if (!(isEmpty(this.options.fontHinting))) {\n components.push(\"hinting_\"+this.options.fontHinting );\n }\n if (!isEmpty(compact(components))) {\n if (isEmpty(this.options.fontFamily)) {\n throw `Must supply fontFamily. ${components}`;\n }\n if (isEmpty(this.options.fontSize) && !isNumberLike(this.options.fontSize)) {\n throw \"Must supply fontSize.\";\n }\n }\n components.unshift(this.options.fontFamily, this.options.fontSize);\n components = compact(components).join(\"_\");\n return components;\n }\n\n};\n\nexport default TextLayer;\n","import TextLayer from './textlayer';\n\nclass SubtitlesLayer extends TextLayer {\n /**\n * Represent a subtitles layer\n * @constructor SubtitlesLayer\n * @param {Object} options - layer parameters\n */\n constructor(options) {\n super(options);\n this.options.resourceType = \"subtitles\";\n }\n\n}\nexport default SubtitlesLayer;\n","import Layer from './layer';\n\nimport {\n base64EncodeURL,\n isString\n} from '../util';\n\nclass FetchLayer extends Layer {\n /**\n * @class FetchLayer\n * @classdesc Creates an image layer using a remote URL.\n * @param {Object|string} options - layer parameters or a url\n * @param {string} options.url the url of the image to fetch\n */\n constructor(options) {\n super(options);\n if (isString(options)) {\n this.options.url = options;\n } else if (options != null ? options.url : void 0) {\n this.options.url = options.url;\n }\n }\n\n url(url) {\n this.options.url = url;\n return this;\n }\n\n /**\n * generate the string representation of the layer\n * @function FetchLayer#toString\n * @return {String}\n */\n toString() {\n return `fetch:${base64EncodeURL(this.options.url)}`;\n }\n\n}\n\nexport default FetchLayer;\n","import Expression from './expression';\nimport Transformation from \"./transformation\";\n\nimport {\n allStrings,\n identity,\n isArray,\n isEmpty,\n isFunction,\n isPlainObject,\n isString,\n withCamelCaseKeys\n} from './util';\n\nimport Layer from './layer/layer';\nimport TextLayer from './layer/textlayer';\nimport SubtitlesLayer from './layer/subtitleslayer';\nimport FetchLayer from './layer/fetchlayer';\n\n/**\n * Transformation parameters\n * Depends on 'util', 'transformation'\n */\nclass Param {\n /**\n * Represents a single parameter.\n * @class Param\n * @param {string} name - The name of the parameter in snake_case\n * @param {string} shortName - The name of the serialized form of the parameter.\n * If a value is not provided, the parameter will not be serialized.\n * @param {function} [process=Util.identity ] - Manipulate origValue when value is called\n * @ignore\n */\n constructor(name, shortName, process = identity) {\n /**\n * The name of the parameter in snake_case\n * @member {string} Param#name\n */\n this.name = name;\n /**\n * The name of the serialized form of the parameter\n * @member {string} Param#shortName\n */\n this.shortName = shortName;\n /**\n * Manipulate origValue when value is called\n * @member {function} Param#process\n */\n this.process = process;\n }\n\n /**\n * Set a (unprocessed) value for this parameter\n * @function Param#set\n * @param {*} origValue - the value of the parameter\n * @return {Param} self for chaining\n */\n set(origValue) {\n this.origValue = origValue;\n return this;\n }\n\n /**\n * Generate the serialized form of the parameter\n * @function Param#serialize\n * @return {string} the serialized form of the parameter\n */\n serialize() {\n var val, valid;\n val = this.value();\n valid = isArray(val) || isPlainObject(val) || isString(val) ? !isEmpty(val) : val != null;\n if ((this.shortName != null) && valid) {\n return `${this.shortName}_${val}`;\n } else {\n return '';\n }\n }\n\n /**\n * Return the processed value of the parameter\n * @function Param#value\n */\n value() {\n return this.process(this.origValue);\n }\n\n static norm_color(value) {\n return value != null ? value.replace(/^#/, 'rgb:') : void 0;\n }\n\n static build_array(arg) {\n if(arg == null) {\n return [];\n } else if (isArray(arg)) {\n return arg;\n } else {\n return [arg];\n }\n }\n\n /**\n * Covert value to video codec string.\n *\n * If the parameter is an object,\n * @param {(string|Object)} param - the video codec as either a String or a Hash\n * @return {string} the video codec string in the format codec:profile:level:b_frames\n * @example\n * vc_[ :profile : [level : [b_frames]]]\n * or\n { codec: 'h264', profile: 'basic', level: '3.1', b_frames: false }\n * @ignore\n */\n static process_video_params(param) {\n var video;\n switch (param.constructor) {\n case Object:\n video = \"\";\n if ('codec' in param) {\n video = param.codec;\n if ('profile' in param) {\n video += \":\" + param.profile;\n if ('level' in param) {\n video += \":\" + param.level;\n if ('b_frames' in param && param.b_frames === false) {\n video += \":bframes_no\";\n }\n }\n }\n }\n return video;\n case String:\n return param;\n default:\n return null;\n }\n }\n}\n\nclass ArrayParam extends Param {\n /**\n * A parameter that represents an array.\n * @param {string} name - The name of the parameter in snake_case.\n * @param {string} shortName - The name of the serialized form of the parameter\n * If a value is not provided, the parameter will not be serialized.\n * @param {string} [sep='.'] - The separator to use when joining the array elements together\n * @param {function} [process=Util.identity ] - Manipulate origValue when value is called\n * @class ArrayParam\n * @extends Param\n * @ignore\n */\n constructor(name, shortName, sep = '.', process = undefined) {\n super(name, shortName, process);\n this.sep = sep;\n }\n\n serialize() {\n if (this.shortName != null) {\n let arrayValue = this.value();\n if (isEmpty(arrayValue)) {\n return '';\n } else if (isString(arrayValue)) {\n return `${this.shortName}_${arrayValue}`;\n } else {\n let flat = arrayValue.map(t=>isFunction(t.serialize) ? t.serialize() : t).join(this.sep);\n return `${this.shortName}_${flat}`;\n }\n } else {\n return '';\n }\n }\n\n value() {\n if (isArray(this.origValue)) {\n return this.origValue.map(v=>this.process(v));\n } else {\n return this.process(this.origValue);\n }\n }\n\n set(origValue) {\n if ((origValue == null) || isArray(origValue)) {\n return super.set(origValue);\n } else {\n return super.set([origValue]);\n }\n }\n}\n\nclass TransformationParam extends Param {\n /**\n * A parameter that represents a transformation\n * @param {string} name - The name of the parameter in snake_case\n * @param {string} [shortName='t'] - The name of the serialized form of the parameter\n * @param {string} [sep='.'] - The separator to use when joining the array elements together\n * @param {function} [process=Util.identity ] - Manipulate origValue when value is called\n * @class TransformationParam\n * @extends Param\n * @ignore\n */\n constructor(name, shortName = \"t\", sep = '.', process = undefined) {\n super(name, shortName, process);\n this.sep = sep;\n }\n\n /**\n * Generate string representations of the transformation.\n * @returns {*} Returns either the transformation as a string, or an array of string representations.\n */\n serialize() {\n let result = '';\n const val = this.value();\n\n if (isEmpty(val)) {\n return result;\n }\n\n // val is an array of strings so join them\n if (allStrings(val)) {\n const joined = val.join(this.sep); // creates t1.t2.t3 in case multiple named transformations were configured\n if (!isEmpty(joined)) {\n // in case options.transformation was not set with an empty string (val != ['']);\n result = `${this.shortName}_${joined}`;\n }\n } else { // Convert val to an array of strings\n result = val.map(t => {\n if (isString(t) && !isEmpty(t)) {\n return `${this.shortName}_${t}`;\n }\n if (isFunction(t.serialize)) {\n return t.serialize();\n }\n if (isPlainObject(t) && !isEmpty(t)) {\n return new Transformation(t).serialize();\n }\n return undefined;\n }).filter(t=>t);\n }\n return result;\n }\n\n set(origValue1) {\n this.origValue = origValue1;\n if (isArray(this.origValue)) {\n return super.set(this.origValue);\n } else {\n return super.set([this.origValue]);\n }\n }\n}\n\nconst number_pattern = \"([0-9]*)\\\\.([0-9]+)|([0-9]+)\";\nconst offset_any_pattern = \"(\" + number_pattern + \")([%pP])?\";\n\nclass RangeParam extends Param {\n\n /**\n * A parameter that represents a range\n * @param {string} name - The name of the parameter in snake_case\n * @param {string} shortName - The name of the serialized form of the parameter\n * If a value is not provided, the parameter will not be serialized.\n * @param {function} [process=norm_range_value ] - Manipulate origValue when value is called\n * @class RangeParam\n * @extends Param\n * @ignore\n */\n constructor(name, shortName, process = RangeParam.norm_range_value) {\n super(name, shortName, process);\n }\n static norm_range_value(value) {\n\n let offset = String(value).match(new RegExp('^' + offset_any_pattern + '$'));\n if (offset) {\n let modifier = offset[5] != null ? 'p' : '';\n value = (offset[1] || offset[4]) + modifier;\n }\n return Expression.normalize(value);\n }\n}\n\nclass RawParam extends Param {\n constructor(name, shortName, process = identity) {\n super(name, shortName, process);\n }\n\n serialize() {\n return this.value();\n }\n\n}\n\nclass LayerParam extends Param {\n // Parse layer options\n // @return [string] layer transformation string\n // @private\n value() {\n if (this.origValue == null) {\n return '';\n }\n let result;\n if (this.origValue instanceof Layer) {\n result = this.origValue;\n } else if (isPlainObject(this.origValue)) {\n let layerOptions = withCamelCaseKeys(this.origValue);\n if (layerOptions.resourceType === \"text\" || (layerOptions.text != null)) {\n result = new TextLayer(layerOptions);\n } else if (layerOptions.resourceType === \"subtitles\") {\n result = new SubtitlesLayer(layerOptions);\n } else if (layerOptions.resourceType === \"fetch\" || (layerOptions.url != null)) {\n result = new FetchLayer(layerOptions);\n } else {\n result = new Layer(layerOptions);\n }\n } else if (isString(this.origValue)) {\n if (/^fetch:.+/.test(this.origValue)) {\n result = new FetchLayer(this.origValue.substr(6));\n } else {\n result = this.origValue;\n }\n } else {\n result = '';\n }\n return result.toString();\n }\n\n static textStyle(layer) {\n return (new TextLayer(layer)).textStyleIdentifier();\n }\n}\n\nclass ExpressionParam extends Param {\n serialize() {\n return Expression.normalize(super.serialize());\n }\n}\n\nexport {\n Param,\n ArrayParam,\n TransformationParam,\n RangeParam,\n RawParam,\n LayerParam,\n ExpressionParam\n};\n","import Expression from './expression';\nimport Condition from './condition';\nimport Configuration from './configuration';\nimport {URL_KEYS} from './constants';\n\nimport {\n assign,\n camelCase,\n cloneDeep,\n compact,\n contains,\n difference,\n identity,\n isArray,\n isEmpty,\n isFunction,\n isPlainObject,\n isString,\n snakeCase\n} from './util';\n\nimport {\n Param,\n ArrayParam,\n LayerParam,\n RangeParam,\n RawParam,\n TransformationParam\n} from \"./parameters\";\n\n/**\n * Assign key, value to target, when value is not null.
\n * This function mutates the target!\n * @param {object} target the object to assign the values to\n * @param {object} sources one or more objects to get values from\n * @returns {object} the target after the assignment\n */\nfunction assignNotNull(target, ...sources) {\n sources.forEach(source => {\n Object.keys(source).forEach(key => {\n if (source[key] != null) {\n target[key] = source[key];\n }\n });\n });\n return target;\n}\n\n/**\n * TransformationBase\n * Depends on 'configuration', 'parameters','util'\n * @internal\n */\n\nclass TransformationBase {\n /**\n * The base class for transformations.\n * Members of this class are documented as belonging to the {@link Transformation} class for convenience.\n * @class TransformationBase\n */\n constructor(options) {\n /** @private */\n /** @private */\n var parent, trans;\n parent = void 0;\n trans = {};\n /**\n * Return an options object that can be used to create an identical Transformation\n * @function Transformation#toOptions\n * @return {Object} Returns a plain object representing this transformation\n */\n this.toOptions = function (withChain) {\n let opt = {};\n if(withChain == null) {\n withChain = true;\n }\n Object.keys(trans).forEach(key => opt[key] = trans[key].origValue);\n assignNotNull(opt, this.otherOptions);\n if (withChain && !isEmpty(this.chained)) {\n let list = this.chained.map(tr => tr.toOptions());\n list.push(opt);\n opt = {};\n assignNotNull(opt, this.otherOptions);\n opt.transformation = list;\n }\n return opt;\n };\n /**\n * Set a parent for this object for chaining purposes.\n *\n * @function Transformation#setParent\n * @param {Object} object - the parent to be assigned to\n * @returns {Transformation} Returns this instance for chaining purposes.\n */\n this.setParent = function (object) {\n parent = object;\n if (object != null) {\n this.fromOptions(typeof object.toOptions === \"function\" ? object.toOptions() : void 0);\n }\n return this;\n };\n /**\n * Returns the parent of this object in the chain\n * @function Transformation#getParent\n * @protected\n * @return {Object} Returns the parent of this object if there is any\n */\n this.getParent = function () {\n return parent;\n };\n\n // Helper methods to create parameter methods\n // These methods are defined here because they access `trans` which is\n // a private member of `TransformationBase`\n\n /** @protected */\n this.param = function (value, name, abbr, defaultValue, process) {\n if (process == null) {\n if (isFunction(defaultValue)) {\n process = defaultValue;\n } else {\n process = identity;\n }\n }\n trans[name] = new Param(name, abbr, process).set(value);\n return this;\n };\n /** @protected */\n this.rawParam = function (value, name, abbr, defaultValue, process) {\n process = lastArgCallback(arguments);\n trans[name] = new RawParam(name, abbr, process).set(value);\n return this;\n };\n /** @protected */\n this.rangeParam = function (value, name, abbr, defaultValue, process) {\n process = lastArgCallback(arguments);\n trans[name] = new RangeParam(name, abbr, process).set(value);\n return this;\n };\n /** @protected */\n this.arrayParam = function (value, name, abbr, sep = \":\", defaultValue = [], process = undefined) {\n process = lastArgCallback(arguments);\n trans[name] = new ArrayParam(name, abbr, sep, process).set(value);\n return this;\n };\n /** @protected */\n this.transformationParam = function (value, name, abbr, sep = \".\", defaultValue = undefined, process = undefined) {\n process = lastArgCallback(arguments);\n trans[name] = new TransformationParam(name, abbr, sep, process).set(value);\n return this;\n };\n this.layerParam = function (value, name, abbr) {\n trans[name] = new LayerParam(name, abbr).set(value);\n return this;\n };\n\n // End Helper methods\n\n /**\n * Get the value associated with the given name.\n * @function Transformation#getValue\n * @param {string} name - the name of the parameter\n * @return {*} the processed value associated with the given name\n * @description Use {@link get}.origValue for the value originally provided for the parameter\n */\n this.getValue = function (name) {\n let value = trans[name] && trans[name].value();\n return value != null ? value : this.otherOptions[name];\n };\n /**\n * Get the parameter object for the given parameter name\n * @function Transformation#get\n * @param {string} name the name of the transformation parameter\n * @returns {Param} the param object for the given name, or undefined\n */\n this.get = function (name) {\n return trans[name];\n };\n /**\n * Remove a transformation option from the transformation.\n * @function Transformation#remove\n * @param {string} name - the name of the option to remove\n * @return {*} Returns the option that was removed or null if no option by that name was found. The type of the\n * returned value depends on the value.\n */\n this.remove = function (name) {\n var temp;\n switch (false) {\n case trans[name] == null:\n temp = trans[name];\n delete trans[name];\n return temp.origValue;\n case this.otherOptions[name] == null:\n temp = this.otherOptions[name];\n delete this.otherOptions[name];\n return temp;\n default:\n return null;\n }\n };\n /**\n * Return an array of all the keys (option names) in the transformation.\n * @return {Array} the keys in snakeCase format\n */\n this.keys = function () {\n var key;\n return ((function () {\n var results;\n results = [];\n for (key in trans) {\n if (key != null) {\n results.push(key.match(VAR_NAME_RE) ? key : snakeCase(key));\n }\n }\n return results;\n })()).sort();\n };\n /**\n * Returns a plain object representation of the transformation. Values are processed.\n * @function Transformation#toPlainObject\n * @return {Object} the transformation options as plain object\n */\n this.toPlainObject = function () {\n var hash, key, list;\n hash = {};\n for (key in trans) {\n hash[key] = trans[key].value();\n if (isPlainObject(hash[key])) {\n hash[key] = cloneDeep(hash[key]);\n }\n }\n if (!isEmpty(this.chained)) {\n list = this.chained.map(tr => tr.toPlainObject());\n list.push(hash);\n hash = {\n transformation: list\n };\n }\n return hash;\n };\n /**\n * Complete the current transformation and chain to a new one.\n * In the URL, transformations are chained together by slashes.\n * @function Transformation#chain\n * @return {Transformation} Returns this transformation for chaining\n * @example\n * var tr = cloudinary.Transformation.new();\n * tr.width(10).crop('fit').chain().angle(15).serialize()\n * // produces \"c_fit,w_10/a_15\"\n */\n this.chain = function () {\n var names, tr;\n names = Object.getOwnPropertyNames(trans);\n if (names.length !== 0) {\n tr = new this.constructor(this.toOptions(false));\n this.resetTransformations();\n this.chained.push(tr);\n }\n return this;\n };\n this.resetTransformations = function () {\n trans = {};\n return this;\n };\n this.otherOptions = {};\n this.chained = [];\n this.fromOptions(options);\n }\n\n /**\n * Merge the provided options with own's options\n * @param {Object} [options={}] key-value list of options\n * @returns {Transformation} Returns this instance for chaining\n */\n fromOptions(options = {}) {\n if (options instanceof TransformationBase) {\n this.fromTransformation(options);\n } else {\n if (isString(options) || isArray(options)) {\n options = {\n transformation: options\n };\n }\n options = cloneDeep(options, function (value) {\n if (value instanceof TransformationBase || value instanceof Layer) {\n return new value.clone();\n }\n });\n // Handling of \"if\" statements precedes other options as it creates a chained transformation\n if (options[\"if\"]) {\n this.set(\"if\", options[\"if\"]);\n delete options[\"if\"];\n }\n for (let key in options) {\n let opt = options[key];\n if(opt != null) {\n if (key.match(VAR_NAME_RE)) {\n if (key !== '$attr') {\n this.set('variable', key, opt);\n }\n } else {\n this.set(key, opt);\n }\n }\n }\n }\n return this;\n }\n\n fromTransformation(other) {\n if (other instanceof TransformationBase) {\n other.keys().forEach(key =>\n this.set(key, other.get(key).origValue)\n );\n }\n return this;\n }\n\n /**\n * Set a parameter.\n * The parameter name `key` is converted to\n * @param {string} key - the name of the parameter\n * @param {*} values - the value of the parameter\n * @returns {Transformation} Returns this instance for chaining\n */\n set(key, ...values) {\n var camelKey;\n camelKey = camelCase(key);\n if (contains(Transformation.methods, camelKey)) {\n this[camelKey].apply(this, values);\n } else {\n this.otherOptions[key] = values[0];\n }\n return this;\n }\n\n hasLayer() {\n return this.getValue(\"overlay\") || this.getValue(\"underlay\");\n }\n\n /**\n * Generate a string representation of the transformation.\n * @function Transformation#serialize\n * @return {string} Returns the transformation as a string\n */\n serialize() {\n var ifParam, j, len, paramList, ref, ref1, ref2, ref3, ref4, resultArray, t, transformationList,\n transformationString, transformations, value, variables, vars;\n resultArray = this.chained.map(tr => tr.serialize());\n paramList = this.keys();\n transformations = (ref = this.get(\"transformation\")) != null ? ref.serialize() : void 0;\n ifParam = (ref1 = this.get(\"if\")) != null ? ref1.serialize() : void 0;\n variables = processVar((ref2 = this.get(\"variables\")) != null ? ref2.value() : void 0);\n paramList = difference(paramList, [\"transformation\", \"if\", \"variables\"]);\n vars = [];\n transformationList = [];\n for (j = 0, len = paramList.length; j < len; j++) {\n t = paramList[j];\n if (t.match(VAR_NAME_RE)) {\n vars.push(t + \"_\" + Expression.normalize((ref3 = this.get(t)) != null ? ref3.value() : void 0));\n } else {\n transformationList.push((ref4 = this.get(t)) != null ? ref4.serialize() : void 0);\n }\n }\n switch (false) {\n case !isString(transformations):\n transformationList.push(transformations);\n break;\n case !isArray(transformations):\n resultArray = resultArray.concat(transformations);\n }\n transformationList = (function () {\n var k, len1, results;\n results = [];\n for (k = 0, len1 = transformationList.length; k < len1; k++) {\n value = transformationList[k];\n if (isArray(value) && !isEmpty(value) || !isArray(value) && value) {\n results.push(value);\n }\n }\n return results;\n })();\n transformationList = vars.sort().concat(variables).concat(transformationList.sort());\n if (ifParam === \"if_end\") {\n transformationList.push(ifParam);\n } else if (!isEmpty(ifParam)) {\n transformationList.unshift(ifParam);\n }\n transformationString = compact(transformationList).join(this.param_separator);\n if (!isEmpty(transformationString)) {\n resultArray.push(transformationString);\n }\n return compact(resultArray).join(this.trans_separator);\n }\n\n /**\n * Provide a list of all the valid transformation option names\n * @function Transformation#listNames\n * @private\n * @return {Array} a array of all the valid option names\n */\n static listNames() {\n return Transformation.methods;\n }\n\n /**\n * Returns the attributes for an HTML tag.\n * @function Cloudinary.toHtmlAttributes\n * @return PlainObject\n */\n toHtmlAttributes() {\n let attrName, height, options, ref2, ref3, value, width;\n options = {};\n let snakeCaseKey;\n Object.keys(this.otherOptions).forEach(key=>{\n value = this.otherOptions[key];\n snakeCaseKey = snakeCase(key);\n if (!contains(Transformation.PARAM_NAMES, snakeCaseKey) && !contains(URL_KEYS, snakeCaseKey)) {\n attrName = /^html_/.test(key) ? key.slice(5) : key;\n options[attrName] = value;\n }\n });\n // convert all \"html_key\" to \"key\" with the same value\n this.keys().forEach(key => {\n if (/^html_/.test(key)) {\n options[camelCase(key.slice(5))] = this.getValue(key);\n }\n });\n if (!(this.hasLayer() || this.getValue(\"angle\") || contains([\"fit\", \"limit\", \"lfill\"], this.getValue(\"crop\")))) {\n width = (ref2 = this.get(\"width\")) != null ? ref2.origValue : void 0;\n height = (ref3 = this.get(\"height\")) != null ? ref3.origValue : void 0;\n if (parseFloat(width) >= 1.0) {\n if (options.width == null) {\n options.width = width;\n }\n }\n if (parseFloat(height) >= 1.0) {\n if (options.height == null) {\n options.height = height;\n }\n }\n }\n return options;\n }\n\n static isValidParamName(name) {\n return Transformation.methods.indexOf(camelCase(name)) >= 0;\n }\n\n /**\n * Delegate to the parent (up the call chain) to produce HTML\n * @function Transformation#toHtml\n * @return {string} HTML representation of the parent if possible.\n * @example\n * tag = cloudinary.ImageTag.new(\"sample\", {cloud_name: \"demo\"})\n * // ImageTag {name: \"img\", publicId: \"sample\"}\n * tag.toHtml()\n * // \n * tag.transformation().crop(\"fit\").width(300).toHtml()\n * // \n */\n toHtml() {\n var ref;\n return (ref = this.getParent()) != null ? typeof ref.toHtml === \"function\" ? ref.toHtml() : void 0 : void 0;\n }\n\n toString() {\n return this.serialize();\n }\n\n clone() {\n return new this.constructor(this.toOptions(true));\n }\n}\n\nconst VAR_NAME_RE = /^\\$[a-zA-Z0-9]+$/;\n\nTransformationBase.prototype.trans_separator = '/';\n\nTransformationBase.prototype.param_separator = ',';\n\n\nfunction lastArgCallback(args) {\n var callback;\n callback = args != null ? args[args.length - 1] : void 0;\n if (isFunction(callback)) {\n return callback;\n } else {\n return void 0;\n }\n}\n\nfunction processVar(varArray) {\n var j, len, name, results, v;\n if (isArray(varArray)) {\n results = [];\n for (j = 0, len = varArray.length; j < len; j++) {\n [name, v] = varArray[j];\n results.push(`${name}_${Expression.normalize(v)}`);\n }\n return results;\n } else {\n return varArray;\n }\n}\n\nfunction processCustomFunction({function_type, source}) {\n if (function_type === 'remote') {\n return [function_type, btoa(source)].join(\":\");\n } else if (function_type === 'wasm') {\n return [function_type, source].join(\":\");\n }\n}\n\n/**\n * Transformation Class methods.\n * This is a list of the parameters defined in Transformation.\n * Values are camelCased.\n * @const Transformation.methods\n * @private\n * @ignore\n * @type {Array}\n */\n/**\n * Parameters that are filtered out before passing the options to an HTML tag.\n *\n * The list of parameters is a combination of `Transformation::methods` and `Configuration::CONFIG_PARAMS`\n * @const {Array} Transformation.PARAM_NAMES\n * @private\n * @ignore\n * @see toHtmlAttributes\n */\nclass Transformation extends TransformationBase {\n /**\n * Represents a single transformation.\n * @class Transformation\n * @example\n * t = new cloudinary.Transformation();\n * t.angle(20).crop(\"scale\").width(\"auto\");\n *\n * // or\n *\n * t = new cloudinary.Transformation( {angle: 20, crop: \"scale\", width: \"auto\"});\n * @see Available image transformations\n * @see Available video transformations\n */\n constructor(options) {\n super(options);\n }\n\n /**\n * Convenience constructor\n * @param {Object} options\n * @return {Transformation}\n * @example cl = cloudinary.Transformation.new( {angle: 20, crop: \"scale\", width: \"auto\"})\n */\n static new(options) {\n return new Transformation(options);\n }\n\n /*\n Transformation Parameters\n */\n angle(value) {\n return this.arrayParam(value, \"angle\", \"a\", \".\", Expression.normalize);\n }\n\n audioCodec(value) {\n return this.param(value, \"audio_codec\", \"ac\");\n }\n\n audioFrequency(value) {\n return this.param(value, \"audio_frequency\", \"af\");\n }\n\n aspectRatio(value) {\n return this.param(value, \"aspect_ratio\", \"ar\", Expression.normalize);\n }\n\n background(value) {\n return this.param(value, \"background\", \"b\", Param.norm_color);\n }\n\n bitRate(value) {\n return this.param(value, \"bit_rate\", \"br\");\n }\n\n border(value) {\n return this.param(value, \"border\", \"bo\", function (border) {\n if (isPlainObject(border)) {\n border = assign({}, {\n color: \"black\",\n width: 2\n }, border);\n return `${border.width}px_solid_${Param.norm_color(border.color)}`;\n } else {\n return border;\n }\n });\n }\n\n color(value) {\n return this.param(value, \"color\", \"co\", Param.norm_color);\n }\n\n colorSpace(value) {\n return this.param(value, \"color_space\", \"cs\");\n }\n\n crop(value) {\n return this.param(value, \"crop\", \"c\");\n }\n\n customFunction(value) {\n return this.param(value, \"custom_function\", \"fn\", () => {\n return processCustomFunction(value);\n });\n }\n\n customPreFunction(value) {\n if (this.get('custom_function')) {\n return;\n }\n return this.rawParam(value, \"custom_function\", \"\", () => {\n value = processCustomFunction(value);\n return value ? `fn_pre:${value}` : value;\n });\n }\n\n defaultImage(value) {\n return this.param(value, \"default_image\", \"d\");\n }\n\n delay(value) {\n return this.param(value, \"delay\", \"dl\");\n }\n\n density(value) {\n return this.param(value, \"density\", \"dn\");\n }\n\n duration(value) {\n return this.rangeParam(value, \"duration\", \"du\");\n }\n\n dpr(value) {\n return this.param(value, \"dpr\", \"dpr\", (dpr) => {\n dpr = dpr.toString();\n if (dpr != null ? dpr.match(/^\\d+$/) : void 0) {\n return dpr + \".0\";\n } else {\n return Expression.normalize(dpr);\n }\n });\n }\n\n effect(value) {\n return this.arrayParam(value, \"effect\", \"e\", \":\", Expression.normalize);\n }\n\n else() {\n return this.if('else');\n }\n\n endIf() {\n return this.if('end');\n }\n\n endOffset(value) {\n return this.rangeParam(value, \"end_offset\", \"eo\");\n }\n\n fallbackContent(value) {\n return this.param(value, \"fallback_content\");\n }\n\n fetchFormat(value) {\n return this.param(value, \"fetch_format\", \"f\");\n }\n\n format(value) {\n return this.param(value, \"format\");\n }\n\n flags(value) {\n return this.arrayParam(value, \"flags\", \"fl\", \".\");\n }\n\n gravity(value) {\n return this.param(value, \"gravity\", \"g\");\n }\n\n fps(value) {\n return this.param(value, \"fps\", \"fps\", (fps) => {\n if (isString(fps)) {\n return fps;\n } else if (isArray(fps)) {\n return fps.join(\"-\");\n } else {\n return fps;\n }\n });\n }\n\n height(value) {\n return this.param(value, \"height\", \"h\", () => {\n if (this.getValue(\"crop\") || this.getValue(\"overlay\") || this.getValue(\"underlay\")) {\n return Expression.normalize(value);\n } else {\n return null;\n }\n });\n }\n\n htmlHeight(value) {\n return this.param(value, \"html_height\");\n }\n\n htmlWidth(value) {\n return this.param(value, \"html_width\");\n }\n\n if(value = \"\") {\n var i, ifVal, j, ref, trIf, trRest;\n switch (value) {\n case \"else\":\n this.chain();\n return this.param(value, \"if\", \"if\");\n case \"end\":\n this.chain();\n for (i = j = ref = this.chained.length - 1; j >= 0; i = j += -1) {\n ifVal = this.chained[i].getValue(\"if\");\n if (ifVal === \"end\") {\n break;\n } else if (ifVal != null) {\n trIf = Transformation.new().if(ifVal);\n this.chained[i].remove(\"if\");\n trRest = this.chained[i];\n this.chained[i] = Transformation.new().transformation([trIf, trRest]);\n if (ifVal !== \"else\") {\n break;\n }\n }\n }\n return this.param(value, \"if\", \"if\");\n case \"\":\n return Condition.new().setParent(this);\n default:\n return this.param(value, \"if\", \"if\", function (value) {\n return Condition.new(value).toString();\n });\n }\n }\n\n keyframeInterval(value) {\n return this.param(value, \"keyframe_interval\", \"ki\");\n }\n\n ocr(value) {\n return this.param(value, \"ocr\", \"ocr\");\n }\n\n offset(value) {\n var end_o, start_o;\n [start_o, end_o] = (isFunction(value != null ? value.split : void 0)) ? value.split('..') : isArray(value) ? value : [null, null];\n if (start_o != null) {\n this.startOffset(start_o);\n }\n if (end_o != null) {\n return this.endOffset(end_o);\n }\n }\n\n opacity(value) {\n return this.param(value, \"opacity\", \"o\", Expression.normalize);\n }\n\n overlay(value) {\n return this.layerParam(value, \"overlay\", \"l\");\n }\n\n page(value) {\n return this.param(value, \"page\", \"pg\");\n }\n\n poster(value) {\n return this.param(value, \"poster\");\n }\n\n prefix(value) {\n return this.param(value, \"prefix\", \"p\");\n }\n\n quality(value) {\n return this.param(value, \"quality\", \"q\", Expression.normalize);\n }\n\n radius(value) {\n return this.arrayParam(value, \"radius\", \"r\", \":\", Expression.normalize);\n }\n\n rawTransformation(value) {\n return this.rawParam(value, \"raw_transformation\");\n }\n\n size(value) {\n var height, width;\n if (isFunction(value != null ? value.split : void 0)) {\n [width, height] = value.split('x');\n this.width(width);\n return this.height(height);\n }\n }\n\n sourceTypes(value) {\n return this.param(value, \"source_types\");\n }\n\n sourceTransformation(value) {\n return this.param(value, \"source_transformation\");\n }\n\n startOffset(value) {\n return this.rangeParam(value, \"start_offset\", \"so\");\n }\n\n streamingProfile(value) {\n return this.param(value, \"streaming_profile\", \"sp\");\n }\n\n transformation(value) {\n return this.transformationParam(value, \"transformation\", \"t\");\n }\n\n underlay(value) {\n return this.layerParam(value, \"underlay\", \"u\");\n }\n\n variable(name, value) {\n return this.param(value, name, name);\n }\n\n variables(values) {\n return this.arrayParam(values, \"variables\");\n }\n\n videoCodec(value) {\n return this.param(value, \"video_codec\", \"vc\", Param.process_video_params);\n }\n\n videoSampling(value) {\n return this.param(value, \"video_sampling\", \"vs\");\n }\n\n width(value) {\n return this.param(value, \"width\", \"w\", () => {\n if (this.getValue(\"crop\") || this.getValue(\"overlay\") || this.getValue(\"underlay\")) {\n return Expression.normalize(value);\n } else {\n return null;\n }\n });\n }\n\n x(value) {\n return this.param(value, \"x\", \"x\", Expression.normalize);\n }\n\n y(value) {\n return this.param(value, \"y\", \"y\", Expression.normalize);\n }\n\n zoom(value) {\n return this.param(value, \"zoom\", \"z\", Expression.normalize);\n }\n\n}\n\n/**\n * Transformation Class methods.\n * This is a list of the parameters defined in Transformation.\n * Values are camelCased.\n */\nTransformation.methods = [\n \"angle\",\n \"audioCodec\",\n \"audioFrequency\",\n \"aspectRatio\",\n \"background\",\n \"bitRate\",\n \"border\",\n \"color\",\n \"colorSpace\",\n \"crop\",\n \"customFunction\",\n \"customPreFunction\",\n \"defaultImage\",\n \"delay\",\n \"density\",\n \"duration\",\n \"dpr\",\n \"effect\",\n \"else\",\n \"endIf\",\n \"endOffset\",\n \"fallbackContent\",\n \"fetchFormat\",\n \"format\",\n \"flags\",\n \"gravity\",\n \"fps\",\n \"height\",\n \"htmlHeight\",\n \"htmlWidth\",\n \"if\",\n \"keyframeInterval\",\n \"ocr\",\n \"offset\",\n \"opacity\",\n \"overlay\",\n \"page\",\n \"poster\",\n \"prefix\",\n \"quality\",\n \"radius\",\n \"rawTransformation\",\n \"size\",\n \"sourceTypes\",\n \"sourceTransformation\",\n \"startOffset\",\n \"streamingProfile\",\n \"transformation\",\n \"underlay\",\n \"variable\",\n \"variables\",\n \"videoCodec\",\n \"videoSampling\",\n \"width\",\n \"x\",\n \"y\",\n \"zoom\"\n];\n\n/**\n * Parameters that are filtered out before passing the options to an HTML tag.\n *\n * The list of parameters is a combination of `Transformation::methods` and `Configuration::CONFIG_PARAMS`\n */\nTransformation.PARAM_NAMES = Transformation.methods.map(snakeCase).concat(Configuration.CONFIG_PARAMS);\n\nexport default Transformation;\n","/**\n * Generic HTML tag\n * Depends on 'transformation', 'util'\n */\n\nimport {\n isPlainObject,\n isFunction,\n getData,\n hasClass,\n merge,\n isString\n} from '../util';\n\nimport Transformation from '../transformation';\n\n/**\n * Represents an HTML (DOM) tag\n * @constructor HtmlTag\n * @param {string} name - the name of the tag\n * @param {string} [publicId]\n * @param {Object} options\n * @example tag = new HtmlTag( 'div', { 'width': 10})\n */\nclass HtmlTag {\n constructor(name, publicId, options) {\n var transformation;\n this.name = name;\n this.publicId = publicId;\n if (options == null) {\n if (isPlainObject(publicId)) {\n options = publicId;\n this.publicId = void 0;\n } else {\n options = {};\n }\n }\n transformation = new Transformation(options);\n transformation.setParent(this);\n this.transformation = function () {\n return transformation;\n };\n }\n\n /**\n * Convenience constructor\n * Creates a new instance of an HTML (DOM) tag\n * @function HtmlTag.new\n * @param {string} name - the name of the tag\n * @param {string} [publicId]\n * @param {Object} options\n * @return {HtmlTag}\n * @example tag = HtmlTag.new( 'div', { 'width': 10})\n */\n static new(name, publicId, options) {\n return new this(name, publicId, options);\n }\n\n /**\n * combine key and value from the `attr` to generate an HTML tag attributes string.\n * `Transformation::toHtmlTagOptions` is used to filter out transformation and configuration keys.\n * @protected\n * @param {Object} attrs\n * @return {string} the attributes in the format `'key1=\"value1\" key2=\"value2\"'`\n * @ignore\n */\n htmlAttrs(attrs) {\n var key, pairs, value;\n return pairs = ((function () {\n var results;\n results = [];\n for (key in attrs) {\n value = escapeQuotes(attrs[key]);\n if (value) {\n results.push(toAttribute(key, value));\n }\n }\n return results;\n })()).sort().join(' ');\n }\n\n /**\n * Get all options related to this tag.\n * @function HtmlTag#getOptions\n * @returns {Object} the options\n *\n */\n getOptions() {\n return this.transformation().toOptions();\n }\n\n /**\n * Get the value of option `name`\n * @function HtmlTag#getOption\n * @param {string} name - the name of the option\n * @returns {*} Returns the value of the option\n *\n */\n getOption(name) {\n return this.transformation().getValue(name);\n }\n\n /**\n * Get the attributes of the tag.\n * @function HtmlTag#attributes\n * @returns {Object} attributes\n */\n attributes() {\n // The attributes are be computed from the options every time this method is invoked.\n let htmlAttributes = this.transformation().toHtmlAttributes();\n Object.keys(htmlAttributes ).forEach(key => {\n if(isPlainObject(htmlAttributes[key])){\n delete htmlAttributes[key];\n }\n });\n if( htmlAttributes.attributes) {\n // Currently HTML attributes are defined both at the top level and under 'attributes'\n merge(htmlAttributes, htmlAttributes.attributes);\n delete htmlAttributes.attributes;\n }\n\n return htmlAttributes;\n }\n\n /**\n * Set a tag attribute named `name` to `value`\n * @function HtmlTag#setAttr\n * @param {string} name - the name of the attribute\n * @param {string} value - the value of the attribute\n */\n setAttr(name, value) {\n this.transformation().set(`html_${name}`, value);\n return this;\n }\n\n /**\n * Get the value of the tag attribute `name`\n * @function HtmlTag#getAttr\n * @param {string} name - the name of the attribute\n * @returns {*}\n */\n getAttr(name) {\n return this.attributes()[`html_${name}`] || this.attributes()[name];\n }\n\n /**\n * Remove the tag attributed named `name`\n * @function HtmlTag#removeAttr\n * @param {string} name - the name of the attribute\n * @returns {*}\n */\n removeAttr(name) {\n var ref;\n return (ref = this.transformation().remove(`html_${name}`)) != null ? ref : this.transformation().remove(name);\n }\n\n /**\n * @function HtmlTag#content\n * @protected\n * @ignore\n */\n content() {\n return \"\";\n }\n\n /**\n * @function HtmlTag#openTag\n * @protected\n * @ignore\n */\n openTag() {\n let tag = \"<\" + this.name;\n let htmlAttrs = this.htmlAttrs(this.attributes());\n if(htmlAttrs && htmlAttrs.length > 0) {\n tag += \" \" + htmlAttrs\n }\n return tag + \">\";\n }\n\n /**\n * @function HtmlTag#closeTag\n * @protected\n * @ignore\n */\n closeTag() {\n return ``;\n }\n\n /**\n * Generates an HTML representation of the tag.\n * @function HtmlTag#toHtml\n * @returns {string} Returns HTML in string format\n */\n toHtml() {\n return this.openTag() + this.content() + this.closeTag();\n }\n\n /**\n * Creates a DOM object representing the tag.\n * @function HtmlTag#toDOM\n * @returns {Element}\n */\n toDOM() {\n var element, name, ref, value;\n if (!isFunction(typeof document !== \"undefined\" && document !== null ? document.createElement : void 0)) {\n throw \"Can't create DOM if document is not present!\";\n }\n element = document.createElement(this.name);\n ref = this.attributes();\n for (name in ref) {\n value = ref[name];\n element.setAttribute(name, value);\n }\n return element;\n }\n\n static isResponsive(tag, responsiveClass) {\n var dataSrc;\n dataSrc = getData(tag, 'src-cache') || getData(tag, 'src');\n return hasClass(tag, responsiveClass) && /\\bw_auto\\b/.exec(dataSrc);\n }\n\n};\n\n/**\n * Represent the given key and value as an HTML attribute.\n * @function toAttribute\n * @protected\n * @param {string} key - attribute name\n * @param {*|boolean} value - the value of the attribute. If the value is boolean `true`, return the key only.\n * @returns {string} the attribute\n *\n */\nfunction toAttribute(key, value) {\n if (!value) {\n return void 0;\n } else if (value === true) {\n return key;\n } else {\n return `${key}=\"${value}\"`;\n }\n}\n\n/**\n * If given value is a string, replaces quotes with character entities (", ')\n * @param value - value to change\n * @returns {*} changed value\n */\nfunction escapeQuotes(value) {\n return isString(value) ? value.replace('\"', '"').replace(\"'\", ''') : value;\n}\n\nexport default HtmlTag;\n","import Transformation from './transformation';\n\nimport {\n ACCESSIBILITY_MODES,\n DEFAULT_IMAGE_PARAMS,\n OLD_AKAMAI_SHARED_CDN,\n PLACEHOLDER_IMAGE_MODES,\n SHARED_CDN,\n SEO_TYPES\n} from './constants';\n\nimport {\n defaults,\n compact,\n isPlainObject\n} from './util';\n\nimport crc32 from './crc32';\nimport getSDKAnalyticsSignature from \"./sdkAnalytics/getSDKAnalyticsSignature\";\nimport getAnalyticsOptions from \"./sdkAnalytics/getAnalyticsOptions\";\n\n\n/**\n * Adds protocol, host, pathname prefixes to given string\n * @param str\n * @returns {string}\n */\nfunction makeUrl(str) {\n let prefix = document.location.protocol + '//' + document.location.host;\n if (str[0] === '?') {\n prefix += document.location.pathname;\n } else if (str[0] !== '/') {\n prefix += document.location.pathname.replace(/\\/[^\\/]*$/, '/');\n }\n return prefix + str;\n}\n\n/**\n * Check is given string is a url\n * @param str\n * @returns {boolean}\n */\nfunction isUrl(str){\n return str ? !!str.match(/^https?:\\//) : false;\n}\n\n// Produce a number between 1 and 5 to be used for cdn sub domains designation\nfunction cdnSubdomainNumber(publicId) {\n return crc32(publicId) % 5 + 1;\n}\n\n/**\n * Removes signature from options and returns the signature\n * Makes sure signature is empty or of this format: s--signature--\n * @param {object} options\n * @returns {string} the formatted signature\n */\nfunction handleSignature(options) {\n const {signature} = options;\n const isFormatted = !signature || (signature.indexOf('s--') === 0 && signature.substr(-2) === '--');\n delete options.signature;\n\n return isFormatted ? signature : `s--${signature}--`;\n}\n\n/**\n * Create the URL prefix for Cloudinary resources.\n * @param {string} publicId the resource public ID\n * @param {object} options additional options\n * @param {string} options.cloud_name - the cloud name.\n * @param {boolean} [options.cdn_subdomain=false] - Whether to automatically build URLs with\n * multiple CDN sub-domains.\n * @param {string} [options.private_cdn] - Boolean (default: false). Should be set to true for Advanced plan's users\n * that have a private CDN distribution.\n * @param {string} [options.protocol=\"http://\"] - the URI protocol to use. If options.secure is true,\n * the value is overridden to \"https://\"\n * @param {string} [options.secure_distribution] - The domain name of the CDN distribution to use for building HTTPS URLs.\n * Relevant only for Advanced plan's users that have a private CDN distribution.\n * @param {string} [options.cname] - Custom domain name to use for building HTTP URLs.\n * Relevant only for Advanced plan's users that have a private CDN distribution and a custom CNAME.\n * @param {boolean} [options.secure_cdn_subdomain=true] - When options.secure is true and this parameter is false,\n * the subdomain is set to \"res\".\n * @param {boolean} [options.secure=false] - Force HTTPS URLs of images even if embedded in non-secure HTTP pages.\n * When this value is true, options.secure_distribution will be used as host if provided, and options.protocol is set\n * to \"https://\".\n * @returns {string} the URL prefix for the resource.\n * @private\n */\nfunction handlePrefix(publicId, options) {\n if (options.cloud_name && options.cloud_name[0] === '/') {\n return '/res' + options.cloud_name;\n }\n // defaults\n let protocol = \"http://\";\n let cdnPart = \"\";\n let subdomain = \"res\";\n let host = \".cloudinary.com\";\n let path = \"/\" + options.cloud_name;\n // modifications\n if (options.protocol) {\n protocol = options.protocol + '//';\n }\n if (options.private_cdn) {\n cdnPart = options.cloud_name + \"-\";\n path = \"\";\n }\n if (options.cdn_subdomain) {\n subdomain = \"res-\" + cdnSubdomainNumber(publicId);\n }\n if (options.secure) {\n protocol = \"https://\";\n if (options.secure_cdn_subdomain === false) {\n subdomain = \"res\";\n }\n if ((options.secure_distribution != null) && options.secure_distribution !== OLD_AKAMAI_SHARED_CDN && options.secure_distribution !== SHARED_CDN) {\n cdnPart = \"\";\n subdomain = \"\";\n host = options.secure_distribution;\n }\n } else if (options.cname) {\n protocol = \"http://\";\n cdnPart = \"\";\n subdomain = options.cdn_subdomain ? 'a' + ((crc32(publicId) % 5) + 1) + '.' : '';\n host = options.cname;\n }\n return [protocol, cdnPart, subdomain, host, path].join(\"\");\n}\n\n/**\n * Return the resource type and action type based on the given configuration\n * @function Cloudinary#handleResourceType\n * @param {Object|string} resource_type\n * @param {string} [type='upload']\n * @param {string} [url_suffix]\n * @param {boolean} [use_root_path]\n * @param {boolean} [shorten]\n * @returns {string} resource_type/type\n * @ignore\n */\nfunction handleResourceType({resource_type = \"image\", type = \"upload\", url_suffix, use_root_path, shorten}) {\n let options, resourceType = resource_type;\n\n if (isPlainObject(resourceType)) {\n options = resourceType;\n resourceType = options.resource_type;\n type = options.type;\n shorten = options.shorten;\n }\n if (type == null) {\n type = 'upload';\n }\n if (url_suffix != null) {\n resourceType = SEO_TYPES[`${resourceType}/${type}`];\n type = null;\n if (resourceType == null) {\n throw new Error(`URL Suffix only supported for ${Object.keys(SEO_TYPES).join(', ')}`);\n }\n }\n if (use_root_path) {\n if (resourceType === 'image' && type === 'upload' || resourceType === \"images\") {\n resourceType = null;\n type = null;\n } else {\n throw new Error(\"Root path only supported for image/upload\");\n }\n }\n if (shorten && resourceType === 'image' && type === 'upload') {\n resourceType = 'iu';\n type = null;\n }\n return [resourceType, type].join(\"/\");\n}\n\n/**\n * Encode publicId\n * @param publicId\n * @returns {string} encoded publicId\n */\nfunction encodePublicId(publicId) {\n return encodeURIComponent(publicId).replace(/%3A/g, ':').replace(/%2F/g, '/');\n}\n\n/**\n * Encode and format publicId\n * @param publicId\n * @param options\n * @returns {string} publicId\n */\nfunction formatPublicId(publicId, options) {\n if (isUrl(publicId)){\n publicId = encodePublicId(publicId);\n } else {\n try {\n // Make sure publicId is URI encoded.\n publicId = decodeURIComponent(publicId);\n } catch (error) {}\n\n publicId = encodePublicId(publicId);\n\n if (options.url_suffix) {\n publicId = publicId + '/' + options.url_suffix;\n }\n if (options.format) {\n if (!options.trust_public_id) {\n publicId = publicId.replace(/\\.(jpg|png|gif|webp)$/, '');\n }\n publicId = publicId + '.' + options.format;\n }\n }\n return publicId;\n}\n\n/**\n * Get any error with url options\n * @param options\n * @returns {string} if error, otherwise return undefined\n */\nfunction validate(options) {\n const {cloud_name, url_suffix} = options;\n\n if (!cloud_name) {\n return 'Unknown cloud_name';\n }\n\n if (url_suffix && url_suffix.match(/[\\.\\/]/)) {\n return 'url_suffix should not include . or /';\n }\n}\n\n/**\n * Get version part of the url\n * @param publicId\n * @param options\n * @returns {string}\n */\nfunction handleVersion(publicId, options) {\n // force_version param means to make sure there is a version in the url (Default is true)\n const isForceVersion = (options.force_version || typeof options.force_version === 'undefined');\n\n // Is version included in publicId or in options, or publicId is a url (doesn't need version)\n const isVersionExist = (publicId.indexOf('/') < 0 || publicId.match(/^v[0-9]+/) || isUrl(publicId)) || options.version;\n\n if (isForceVersion && !isVersionExist) {\n options.version = 1;\n }\n\n return options.version ? `v${options.version}` : '';\n}\n\n/**\n * Get final transformation component for url string\n * @param options\n * @returns {string}\n */\nfunction handleTransformation(options) {\n let {placeholder, accessibility, ...otherOptions} = options || {};\n const result = new Transformation(otherOptions);\n\n // Append accessibility transformations\n if (accessibility && ACCESSIBILITY_MODES[accessibility]) {\n result.chain().effect(ACCESSIBILITY_MODES[accessibility]);\n }\n\n // Append placeholder transformations\n if (placeholder) {\n if (placeholder === \"predominant-color\" && result.getValue('width') && result.getValue('height')) {\n placeholder += '-pixel';\n }\n const placeholderTransformations = PLACEHOLDER_IMAGE_MODES[placeholder] || PLACEHOLDER_IMAGE_MODES.blur;\n placeholderTransformations.forEach(t => result.chain().transformation(t));\n }\n\n return result.serialize();\n}\n\n/**\n * If type is 'fetch', update publicId to be a url\n * @param publicId\n * @param type\n * @returns {string}\n */\nfunction preparePublicId(publicId, {type}){\n return (!isUrl(publicId) && type === 'fetch') ? makeUrl(publicId) : publicId;\n}\n\n/**\n * Generate url string\n * @param publicId\n * @param options\n * @returns {string} final url\n */\nfunction urlString(publicId, options) {\n if (isUrl(publicId) && (options.type === 'upload' || options.type === 'asset')) {\n return publicId;\n }\n\n const version = handleVersion(publicId, options);\n const transformationString = handleTransformation(options);\n const prefix = handlePrefix(publicId, options);\n const signature = handleSignature(options);\n const resourceType = handleResourceType(options);\n\n publicId = formatPublicId(publicId, options);\n\n return compact([prefix, resourceType, signature, transformationString, version, publicId])\n .join('/')\n .replace(/([^:])\\/+/g, '$1/') // replace '///' with '//'\n .replace(' ', '%20');\n}\n\n/**\n * Merge options and config with defaults\n * update options fetch_format according to 'type' param\n * @param options\n * @param config\n * @returns {*} updated options\n */\nfunction prepareOptions(options, config) {\n if (options instanceof Transformation) {\n options = options.toOptions();\n }\n\n options = defaults({}, options, config, DEFAULT_IMAGE_PARAMS);\n\n if (options.type === 'fetch') {\n options.fetch_format = options.fetch_format || options.format;\n }\n\n return options;\n}\n\n/**\n * Generates a URL for any asset in your Media library.\n * @function url\n * @ignore\n * @param {string} publicId - The public ID of the media asset.\n * @param {Object} [options={}] - The {@link Transformation} parameters to include in the URL.\n * @param {object} [config={}] - URL configuration parameters\n * @param {type} [options.type='upload'] - The asset's storage type.\n * For details on all fetch types, see\n * Fetch types.\n * @param {Object} [options.resource_type='image'] - The type of asset.

Possible values:
\n * - `image`
\n * - `video`
\n * - `raw`\n * @param {signature} [options.signature='s--12345678--'] - The signature component of a\n * signed delivery URL of the format: /s--SIGNATURE--/.\n * For details on signatures, see\n * Signatures.\n * @return {string} The media asset URL.\n * @see \n * Available image transformations\n * @see \n * Available video transformations\n */\nexport default function url(publicId, options = {}, config = {}) {\n if (!publicId) {\n return publicId;\n }\n options = prepareOptions(options, config);\n publicId = preparePublicId(publicId, options);\n\n const error = validate(options);\n\n if (error) {\n throw error;\n }\n let resultUrl = urlString(publicId, options);\n if(options.urlAnalytics) {\n let analyticsOptions = getAnalyticsOptions(options);\n let sdkAnalyticsSignature = getSDKAnalyticsSignature(analyticsOptions);\n // url might already have a '?' query param\n let appender = '?';\n if (resultUrl.indexOf('?') >= 0) {\n appender = '&';\n }\n resultUrl = `${resultUrl}${appender}_a=${sdkAnalyticsSignature}`;\n }\n if (options.auth_token) {\n let appender = resultUrl.indexOf('?') >= 0 ? '&' : '?';\n resultUrl = `${resultUrl}${appender}__cld_token__=${options.auth_token}`;\n }\n return resultUrl;\n};\n","\n/**\n * Helper function. Gets or populates srcset breakpoints using provided parameters\n * Either the breakpoints or min_width, max_width, max_images must be provided.\n *\n * @private\n * @param {srcset} srcset Options with either `breakpoints` or `min_width`, `max_width`, and `max_images`\n *\n * @return {number[]} Array of breakpoints\n *\n */\nexport default function generateBreakpoints(srcset) {\n let breakpoints = srcset.breakpoints || [];\n if (breakpoints.length) {\n return breakpoints;\n }\n let [min_width, max_width, max_images] = [srcset.min_width, srcset.max_width, srcset.max_images].map(Number);\n if ([min_width, max_width, max_images].some(isNaN)) {\n throw 'Either (min_width, max_width, max_images) ' +\n 'or breakpoints must be provided to the image srcset attribute';\n }\n\n if (min_width > max_width) {\n throw 'min_width must be less than max_width'\n }\n\n if (max_images <= 0) {\n throw 'max_images must be a positive integer';\n } else if (max_images === 1) {\n min_width = max_width;\n }\n\n let stepSize = Math.ceil((max_width - min_width) / Math.max(max_images - 1, 1));\n for (let current = min_width; current < max_width; current += stepSize) {\n breakpoints.push(current);\n }\n breakpoints.push(max_width);\n return breakpoints;\n}\n","import * as utils from '../util';\n\nconst isEmpty = utils.isEmpty;\nimport generateBreakpoints from './generateBreakpoints';\nimport Transformation from '../transformation';\nimport url from '../url';\n\n/**\n * Options used to generate the srcset attribute.\n * @typedef {object} srcset\n * @property {(number[]|string[])} [breakpoints] An array of breakpoints.\n * @property {number} [min_width] Minimal width of the srcset images.\n * @property {number} [max_width] Maximal width of the srcset images.\n * @property {number} [max_images] Number of srcset images to generate.\n * @property {object|string} [transformation] The transformation to use in the srcset urls.\n * @property {boolean} [sizes] Whether to calculate and add the sizes attribute.\n */\n\n/**\n * Helper function. Generates a single srcset item url\n *\n * @private\n * @param {string} public_id Public ID of the resource.\n * @param {number} width Width in pixels of the srcset item.\n * @param {object|string} transformation\n * @param {object} options Additional options.\n *\n * @return {string} Resulting URL of the item\n */\nexport function scaledUrl(public_id, width, transformation, options = {}) {\n let configParams = utils.extractUrlParams(options);\n transformation = transformation || options;\n configParams.raw_transformation = new Transformation([utils.merge({}, transformation), {\n crop: 'scale',\n width: width\n }]).toString();\n\n return url(public_id, configParams);\n}\n\n/**\n * If cache is enabled, get the breakpoints from the cache. If the values were not found in the cache,\n * or cache is not enabled, generate the values.\n * @param {srcset} srcset The srcset configuration parameters\n * @param {string} public_id\n * @param {object} options\n * @return {*|Array}\n */\nexport function getOrGenerateBreakpoints(public_id, srcset = {}, options = {}) {\n return generateBreakpoints(srcset);\n}\n\n/**\n * Helper function. Generates srcset attribute value of the HTML img tag\n * @private\n *\n * @param {string} public_id Public ID of the resource\n * @param {number[]} breakpoints An array of breakpoints (in pixels)\n * @param {object} transformation The transformation\n * @param {object} options Includes html tag options, transformation options\n * @return {string} Resulting srcset attribute value\n */\nexport function generateSrcsetAttribute(public_id, breakpoints, transformation, options) {\n options = utils.cloneDeep(options);\n utils.patchFetchFormat(options);\n return breakpoints.map(width => `${scaledUrl(public_id, width, transformation, options)} ${width}w`).join(', ');\n}\n\n/**\n * Helper function. Generates sizes attribute value of the HTML img tag\n * @private\n * @param {number[]} breakpoints An array of breakpoints.\n * @return {string} Resulting sizes attribute value\n */\nexport function generateSizesAttribute(breakpoints) {\n if (breakpoints == null) {\n return '';\n }\n return breakpoints.map(width => `(max-width: ${width}px) ${width}px`).join(', ');\n}\n\n/**\n * Helper function. Generates srcset and sizes attributes of the image tag\n *\n * Generated attributes are added to attributes argument\n *\n * @private\n * @param {string} publicId The public ID of the resource\n * @param {object} attributes Existing HTML attributes.\n * @param {srcset} srcsetData\n * @param {object} options Additional options.\n *\n * @return array The responsive attributes\n */\nexport function generateImageResponsiveAttributes(publicId, attributes = {}, srcsetData = {}, options = {}) {\n // Create both srcset and sizes here to avoid fetching breakpoints twice\n\n let responsiveAttributes = {};\n if (isEmpty(srcsetData)) {\n return responsiveAttributes;\n }\n\n const generateSizes = (!attributes.sizes && srcsetData.sizes === true);\n\n const generateSrcset = !attributes.srcset;\n if (generateSrcset || generateSizes) {\n let breakpoints = getOrGenerateBreakpoints(publicId, srcsetData, options);\n\n if (generateSrcset) {\n let transformation = srcsetData.transformation;\n let srcsetAttr = generateSrcsetAttribute(publicId, breakpoints, transformation, options);\n if (!isEmpty(srcsetAttr)) {\n responsiveAttributes.srcset = srcsetAttr;\n }\n }\n\n if (generateSizes) {\n let sizesAttr = generateSizesAttribute(breakpoints);\n if (!isEmpty(sizesAttr)) {\n responsiveAttributes.sizes = sizesAttr;\n }\n }\n }\n return responsiveAttributes;\n}\n\n/**\n * Generate a media query\n *\n * @private\n * @param {object} options configuration options\n * @param {number|string} options.min_width\n * @param {number|string} options.max_width\n * @return {string} a media query string\n */\nexport function generateMediaAttr(options) {\n let mediaQuery = [];\n if (options != null) {\n if (options.min_width != null) {\n mediaQuery.push(`(min-width: ${options.min_width}px)`);\n }\n if (options.max_width != null) {\n mediaQuery.push(`(max-width: ${options.max_width}px)`);\n }\n }\n return mediaQuery.join(' and ');\n}\n\nexport const srcsetUrl = scaledUrl;\n","/**\n * Image Tag\n * Depends on 'tags/htmltag', 'cloudinary'\n */\n\nimport HtmlTag from './htmltag';\n\nimport url from '../url';\nimport {isEmpty, isString, merge} from \"../util\";\nimport {generateImageResponsiveAttributes} from \"../util/srcsetUtils\";\n\n/**\n * Creates an HTML (DOM) Image tag using Cloudinary as the source.\n * @constructor ImageTag\n * @extends HtmlTag\n * @param {string} [publicId]\n * @param {Object} [options]\n */\nclass ImageTag extends HtmlTag {\n constructor(publicId, options = {}) {\n super(\"img\", publicId, options);\n }\n\n /** @override */\n closeTag() {\n return \"\";\n }\n\n /** @override */\n attributes() {\n var attr, options, srcAttribute;\n attr = super.attributes() || {};\n options = this.getOptions();\n let attributes = this.getOption('attributes') || {};\n let srcsetParam = this.getOption('srcset')|| attributes.srcset;\n\n let responsiveAttributes = {};\n if (isString(srcsetParam)) {\n responsiveAttributes.srcset = srcsetParam\n } else {\n responsiveAttributes = generateImageResponsiveAttributes(this.publicId, attributes, srcsetParam, options);\n }\n if(!isEmpty(responsiveAttributes)) {\n delete attr.width;\n delete attr.height;\n }\n\n merge(attr, responsiveAttributes);\n srcAttribute = options.responsive && !options.client_hints ? 'data-src' : 'src';\n if (attr[srcAttribute] == null) {\n attr[srcAttribute] = url(this.publicId, this.getOptions());\n }\n return attr;\n }\n\n};\n\nexport default ImageTag;\n","/**\n * Image Tag\n * Depends on 'tags/htmltag', 'cloudinary'\n */\nimport {generateImageResponsiveAttributes, generateMediaAttr} from \"../util/srcsetUtils\";\nimport {merge} from '../util';\nimport url from '../url';\nimport HtmlTag from './htmltag';\n\n/**\n * Creates an HTML (DOM) Image tag using Cloudinary as the source.\n * @constructor SourceTag\n * @extends HtmlTag\n * @param {string} [publicId]\n * @param {Object} [options]\n */\nclass SourceTag extends HtmlTag {\n constructor(publicId, options = {}) {\n super(\"source\", publicId, options);\n }\n\n /** @override */\n closeTag() {\n return \"\";\n }\n\n /** @override */\n attributes() {\n let srcsetParam = this.getOption('srcset');\n let attr = super.attributes() || {};\n let options = this.getOptions();\n merge(attr, generateImageResponsiveAttributes(this.publicId, attr, srcsetParam, options));\n if(!attr.srcset){\n attr.srcset = url(this.publicId, options);\n }\n if(!attr.media && options.media){\n attr.media = generateMediaAttr(options.media);\n }\n\n return attr;\n }\n\n};\n\nexport default SourceTag;\n","import HtmlTag from './htmltag';\nimport ImageTag from './imagetag';\nimport Transformation from '../transformation';\nimport SourceTag from './sourcetag';\nimport {extractUrlParams} from \"../util\";\n\nclass PictureTag extends HtmlTag {\n constructor(publicId, options = {}, sources = []) {\n super('picture', publicId, options);\n this.widthList = sources;\n }\n\n /** @override */\n content() {\n return this.widthList.map(({min_width, max_width, transformation}) => {\n let options = this.getOptions();\n let sourceTransformation = new Transformation(options);\n sourceTransformation.chain().fromOptions(typeof transformation === 'string' ? {\n raw_transformation: transformation\n } : transformation);\n options = extractUrlParams(options);\n options.media = {min_width, max_width};\n options.transformation = sourceTransformation;\n return new SourceTag(this.publicId, options).toHtml();\n }).join('') +\n new ImageTag(this.publicId, this.getOptions()).toHtml();\n }\n\n /** @override */\n attributes() {\n\n let attr = super.attributes();\n delete attr.width;\n delete attr.height;\n return attr;\n }\n\n /** @override */\n closeTag() {\n return \"\";\n }\n\n};\n\nexport default PictureTag;\n","/**\n * Video Tag\n * Depends on 'tags/htmltag', 'util', 'cloudinary'\n */\n\nimport {\n DEFAULT_VIDEO_PARAMS,\n DEFAULT_IMAGE_PARAMS\n} from '../constants';\n\nimport url from '../url';\n\nimport {\n defaults,\n isPlainObject,\n isArray,\n isEmpty,\n omit\n} from '../util';\n\nimport HtmlTag from './htmltag';\n\n\nconst VIDEO_TAG_PARAMS = ['source_types', 'source_transformation', 'fallback_content', 'poster', 'sources'];\n\nconst DEFAULT_VIDEO_SOURCE_TYPES = ['webm', 'mp4', 'ogv'];\n\nconst DEFAULT_POSTER_OPTIONS = {\n format: 'jpg',\n resource_type: 'video'\n};\n\n/**\n * Creates an HTML (DOM) Video tag using Cloudinary as the source.\n * @constructor VideoTag\n * @extends HtmlTag\n * @param {string} [publicId]\n * @param {Object} [options]\n */\nclass VideoTag extends HtmlTag {\n constructor(publicId, options = {}) {\n options = defaults({}, options, DEFAULT_VIDEO_PARAMS);\n super(\"video\", publicId.replace(/\\.(mp4|ogv|webm)$/, ''), options);\n }\n\n /**\n * Set the transformation to apply on each source\n * @function VideoTag#setSourceTransformation\n * @param {Object} an object with pairs of source type and source transformation\n * @returns {VideoTag} Returns this instance for chaining purposes.\n */\n setSourceTransformation(value) {\n this.transformation().sourceTransformation(value);\n return this;\n }\n\n /**\n * Set the source types to include in the video tag\n * @function VideoTag#setSourceTypes\n * @param {Array} an array of source types\n * @returns {VideoTag} Returns this instance for chaining purposes.\n */\n setSourceTypes(value) {\n this.transformation().sourceTypes(value);\n return this;\n }\n\n /**\n * Set the poster to be used in the video tag\n * @function VideoTag#setPoster\n * @param {string|Object} value\n * - string: a URL to use for the poster\n * - Object: transformation parameters to apply to the poster. May optionally include a public_id to use instead of the video public_id.\n * @returns {VideoTag} Returns this instance for chaining purposes.\n */\n setPoster(value) {\n this.transformation().poster(value);\n return this;\n }\n\n /**\n * Set the content to use as fallback in the video tag\n * @function VideoTag#setFallbackContent\n * @param {string} value - the content to use, in HTML format\n * @returns {VideoTag} Returns this instance for chaining purposes.\n */\n setFallbackContent(value) {\n this.transformation().fallbackContent(value);\n return this;\n }\n\n content() {\n let sourceTypes = this.transformation().getValue('source_types');\n const sourceTransformation = this.transformation().getValue('source_transformation');\n const fallback = this.transformation().getValue('fallback_content');\n let sources = this.getOption('sources');\n let innerTags = [];\n if (isArray(sources) && !isEmpty(sources)) {\n innerTags = sources.map(source => {\n let src = url(this.publicId, defaults(\n {},\n source.transformations || {},\n {resource_type: 'video', format: source.type}\n ), this.getOptions());\n return this.createSourceTag(src, source.type, source.codecs);\n });\n } else {\n if (isEmpty(sourceTypes)) {\n sourceTypes = DEFAULT_VIDEO_SOURCE_TYPES;\n }\n if (isArray(sourceTypes)) {\n innerTags = sourceTypes.map(srcType => {\n let src = url(this.publicId, defaults(\n {},\n sourceTransformation[srcType] || {},\n {resource_type: 'video', format: srcType}\n ), this.getOptions());\n return this.createSourceTag(src, srcType);\n });\n }\n }\n return innerTags.join('') + fallback;\n }\n\n attributes() {\n let sourceTypes = this.getOption('source_types');\n let poster = this.getOption('poster');\n if (poster === undefined) {\n poster = {};\n }\n if (isPlainObject(poster)) {\n let defaultOptions = poster.public_id != null ? DEFAULT_IMAGE_PARAMS : DEFAULT_POSTER_OPTIONS;\n poster = url(poster.public_id || this.publicId, defaults({}, poster, defaultOptions, this.getOptions()));\n }\n let attr = super.attributes() || {};\n attr = omit(attr, VIDEO_TAG_PARAMS);\n const sources = this.getOption('sources');\n // In case of empty sourceTypes - fallback to default source types is used.\n const hasSourceTags = !isEmpty(sources) || isEmpty(sourceTypes) || isArray(sourceTypes);\n if (!hasSourceTags) {\n attr[\"src\"] = url(this.publicId, this.getOptions(), {\n resource_type: 'video',\n format: sourceTypes\n });\n }\n if (poster != null) {\n attr[\"poster\"] = poster;\n }\n return attr;\n }\n\n createSourceTag(src, sourceType, codecs = null) {\n let mimeType = null;\n if (!isEmpty(sourceType)) {\n let videoType = sourceType === 'ogv' ? 'ogg' : sourceType;\n mimeType = 'video/' + videoType;\n if (!isEmpty(codecs)) {\n let codecsStr = isArray(codecs) ? codecs.join(', ') : codecs;\n mimeType += '; codecs=' + codecsStr;\n }\n }\n return \"\";\n }\n\n\n}\n\nexport default VideoTag;\n","/**\n * Image Tag\n * Depends on 'tags/htmltag', 'cloudinary'\n */\n\nimport HtmlTag from './htmltag';\n\nimport {\n assign\n} from '../util';\n\n/**\n * Creates an HTML (DOM) Meta tag that enables Client-Hints for the HTML page.
\n * See\n * Automating responsive images with Client Hints for more details.\n * @constructor ClientHintsMetaTag\n * @extends HtmlTag\n * @param {object} options\n * @example\n * tag = new ClientHintsMetaTag()\n * //returns: \n */\nclass ClientHintsMetaTag extends HtmlTag {\n constructor(options) {\n super('meta', void 0, assign({\n \"http-equiv\": \"Accept-CH\",\n content: \"DPR, Viewport-Width, Width\"\n }, options));\n }\n\n /** @override */\n closeTag() {\n return \"\";\n }\n\n};\n\nexport default ClientHintsMetaTag;\n","import {isArray, isString} from \"./util\";\n\n\n/**\n * @desc normalize elements, support a single element, array or nodelist, always outputs array\n * @param elements\n * @returns {[]}\n */\nexport function normalizeToArray(elements) {\n if (isArray(elements)) {\n return elements;\n } else if (elements.constructor.name === \"NodeList\") {\n return [...elements]; // ensure an array is always returned, even if nodelist\n } else if (isString(elements)) {\n return Array.prototype.slice.call(document.querySelectorAll(elements), 0);\n } else {\n return [elements];\n }\n}\n\n","/**\n * @param {HTMLElement} htmlElContainer\n * @param {object} clInstance cloudinary instance\n * @param {string} publicId\n * @param {object} options - TransformationOptions\n * @returns Promise\n */\nfunction mountCloudinaryVideoTag(htmlElContainer, clInstance, publicId, options) {\n return new Promise((resolve, reject) => {\n htmlElContainer.innerHTML = clInstance.videoTag(publicId, options).toHtml();\n\n // All videos under the html container must have a width of 100%, or they might overflow from the container\n let cloudinaryVideoElement = htmlElContainer.querySelector('.cld-transparent-video');\n cloudinaryVideoElement.style.width = '100%';\n resolve(htmlElContainer);\n });\n}\n\nexport default mountCloudinaryVideoTag;\n","/**\n * @description - Function will push a flag to incoming options\n * @param {{transformation} | {...transformation}} options - These options are the same options provided to all our SDK methods\n * We expect options to either be the transformation itself, or an object containing\n * an array of transformations\n *\n * @param {string} flag\n * @returns the mutated options object\n */\n\nfunction addFlagToOptions(options, flag) {\n // Do we have transformation\n if (options.transformation) {\n options.transformation.push({\n flags: [flag]\n });\n } else {\n // no transformation\n // ensure the flags are extended\n if (!options.flags) {\n options.flags = [];\n }\n\n if (typeof options.flags === 'string') {\n options.flags = [options.flags];\n }\n\n options.flags.push(flag);\n }\n}\n\nexport default addFlagToOptions;\n","import addFlagToOptions from \"../../transformations/addFlag\";\nimport {DEFAULT_EXTERNAL_LIBRARIES, DEFAULT_TIMEOUT_MS} from \"../../../constants\";\n\n/**\n * @description - Enforce option structure, sets defaults and ensures alpha flag exists\n * @param options {TransformationOptions}\n */\nfunction enforceOptionsForTransparentVideo(options) {\n options.autoplay = true;\n options.muted = true;\n options.controls = false;\n options.max_timeout_ms = options.max_timeout_ms || DEFAULT_TIMEOUT_MS;\n options.class = options.class || '';\n options.class += ' cld-transparent-video';\n options.externalLibraries = options.externalLibraries || {};\n\n if (!options.externalLibraries.seeThru) {\n options.externalLibraries.seeThru = DEFAULT_EXTERNAL_LIBRARIES.seeThru;\n }\n\n // ensure there's an alpha transformation present\n // this is a non documented internal flag\n addFlagToOptions(options, 'alpha');\n}\n\nexport default enforceOptionsForTransparentVideo;\n","/**\n * @description - Given a string URL, this function will load the script and resolve the promise.\n * The function doesn't resolve any value,\n * this is not a UMD loader where you can get your library name back.\n * @param scriptURL {string}\n * @param {number} max_timeout_ms - Time to elapse before promise is rejected\n * @param isAlreadyLoaded {boolean} if true, the loadScript resolves immediately\n * this is used for multiple invocations - prevents the script from being loaded multiple times\n * @return {Promise}\n */\nfunction loadScript(scriptURL, max_timeout_ms, isAlreadyLoaded) {\n return new Promise((resolve, reject) => {\n if (isAlreadyLoaded) {\n resolve();\n } else {\n let scriptTag = document.createElement('script');\n scriptTag.src = scriptURL;\n\n let timerID = setTimeout(() => {\n reject({\n status: 'error',\n message: `Timeout loading script ${scriptURL}`\n });\n }, max_timeout_ms); // 10 seconds for timeout\n\n scriptTag.onerror = () => {\n clearTimeout(timerID); // clear timeout reject error\n reject({\n status: 'error',\n message: `Error loading ${scriptURL}`\n });\n };\n\n scriptTag.onload = () => {\n clearTimeout(timerID); // clear timeout reject error\n resolve();\n };\n document.head.appendChild(scriptTag);\n }\n });\n}\n\nexport default loadScript;\n","/**\n * Reject on timeout\n * @param maxTimeoutMS\n * @param reject\n * @returns {number} timerID\n */\nfunction rejectOnTimeout(maxTimeoutMS, reject) {\n return setTimeout(() => {\n reject({\n status: 'error',\n message: 'Timeout loading Blob URL'\n });\n }, maxTimeoutMS);\n}\n\n/**\n * @description Converts a URL to a BLOB URL\n * @param {string} urlToLoad\n * @param {number} max_timeout_ms - Time to elapse before promise is rejected\n * @return {Promise<{\n * status: 'success' | 'error'\n * message?: string,\n * payload: {\n * url: string\n * }\n * }>}\n */\nfunction getBlobFromURL(urlToLoad, maxTimeoutMS) {\n return new Promise((resolve, reject) => {\n const timerID = rejectOnTimeout(maxTimeoutMS, reject);\n\n // If fetch exists, use it to fetch blob, otherwise use XHR.\n // XHR causes issues on safari 14.1 so we prefer fetch\n const fetchBlob = (typeof fetch !== 'undefined' && fetch) ? loadUrlUsingFetch : loadUrlUsingXhr;\n\n fetchBlob(urlToLoad).then((blob) => {\n resolve({\n status: 'success',\n payload: {\n blobURL: URL.createObjectURL(blob)\n }\n });\n }).catch(() => {\n reject({\n status: 'error',\n message: 'Error loading Blob URL'\n });\n }).finally(() => {\n // Clear the timeout timer on fail or success.\n clearTimeout(timerID);\n });\n });\n}\n\n/**\n * Use fetch function to fetch file\n * @param urlToLoad\n * @returns {Promise}\n */\nfunction loadUrlUsingFetch(urlToLoad) {\n return new Promise((resolve, reject) => {\n fetch(urlToLoad).then((response) => {\n response.blob().then((blob) => {\n resolve(blob);\n });\n }).catch(() => {\n reject('error');\n });\n });\n}\n\n/**\n * Use XHR to fetch file\n * @param urlToLoad\n * @returns {Promise}\n */\nfunction loadUrlUsingXhr(urlToLoad) {\n return new Promise((resolve, reject) => {\n const xhr = new XMLHttpRequest();\n xhr.responseType = 'blob';\n xhr.onload = function (response) {\n resolve(xhr.response);\n };\n\n xhr.onerror = function () {\n reject('error');\n };\n\n xhr.open('GET', urlToLoad, true);\n xhr.send();\n });\n}\n\nexport default getBlobFromURL;\n","/**\n * @description Creates a hidden HTMLVideoElement with the specified videoOptions\n * @param {{autoplay, playsinline, loop, muted, poster, blobURL, videoURL }} videoOptions\n * @param {boolean} videoOptions.autoplay - autoplays the video if true\n * @param {string} videoOptions.blobURL - the blobURL to set as video.src\n * @param {string} videoOptions.videoURL - the original videoURL the user created (with transformations)\n * @return {HTMLVideoElement}\n */\nfunction createHiddenVideoTag(videoOptions) {\n let { autoplay, playsinline, loop, muted, poster, blobURL, videoURL} = videoOptions;\n\n let el = document.createElement('video');\n el.style.visibility = 'hidden';\n el.position = 'absolute';\n el.x = 0;\n el.y = 0;\n el.src = blobURL;\n el.setAttribute('data-video-url', videoURL); // for debugging/testing\n\n autoplay && el.setAttribute('autoplay', autoplay);\n playsinline && el.setAttribute('playsinline', playsinline);\n loop && el.setAttribute('loop', loop);\n muted && el.setAttribute('muted', muted);\n muted && (el.muted = muted); // this is also needed for autoplay, on top of setAttribute\n poster && el.setAttribute('poster', poster);\n\n // Free memory at the end of the file loading.\n el.onload = () => {\n URL.revokeObjectURL(blobURL);\n };\n\n return el;\n}\n\nexport default createHiddenVideoTag;\n","/**\n * @description This function creates a new instanc eof seeThru (seeThru.create()) and returns a promise of the seeThru instance\n * @param {HTMLVideoElement} videoElement\n * @param {number} max_timeout_ms - Time to elapse before promise is rejected\n * @param {string} customClass - A classname to be added to the canvas element created by seeThru\n * @param {boolean} autoPlay\n * @return {Promise} SeeThru instance or rejection error\n */\nfunction instantiateSeeThru(videoElement, max_timeout_ms, customClass, autoPlay) {\n let {seeThru, setTimeout, clearTimeout} = window;\n\n return new Promise((resolve, reject) => {\n let timerID = setTimeout(() => {\n reject({status: 'error', message: 'Timeout instantiating seeThru instance'});\n }, max_timeout_ms);\n\n if (seeThru) {\n let seeThruInstance = seeThru.create(videoElement).ready(() => {\n // clear timeout reject error\n clearTimeout(timerID);\n\n // force container width, else the canvas can overflow out\n let canvasElement = seeThruInstance.getCanvas();\n canvasElement.style.width = '100%';\n canvasElement.className += ' ' + customClass;\n\n // start the video if autoplay is set\n if (autoPlay) {\n seeThruInstance.play();\n }\n\n resolve(seeThruInstance);\n });\n } else {\n reject({status: 'error', message: 'Error instantiating seeThru instance'});\n }\n });\n}\n\nexport default instantiateSeeThru;\n","import loadScript from \"../../xhr/loadScript\";\nimport getBlobFromURL from \"../../xhr/getBlobFromURL\";\nimport createHiddenVideoTag from \"./createHiddenVideoTag\";\nimport instantiateSeeThru from \"./instantiateSeeThru\";\n\n/**\n *\n * @param {HTMLElement} htmlElContainer\n * @param {string} videoURL\n * @param {TransformationOptions} options\n * @return {Promise}\n */\nfunction mountSeeThruCanvasTag(htmlElContainer, videoURL, options) {\n let {poster, autoplay, playsinline, loop, muted} = options;\n videoURL = videoURL + '.mp4'; // seeThru always uses mp4\n return new Promise((resolve, reject) => {\n loadScript(options.externalLibraries.seeThru, options.max_timeout_ms, window.seeThru).then(() => {\n getBlobFromURL(videoURL, options.max_timeout_ms).then(({payload}) => {\n let videoElement = createHiddenVideoTag({\n blobURL: payload.blobURL,\n videoURL: videoURL, // for debugging/testing\n poster,\n autoplay,\n playsinline,\n loop,\n muted\n });\n\n htmlElContainer.appendChild(videoElement);\n\n instantiateSeeThru(videoElement, options.max_timeout_ms, options.class, options.autoplay)\n .then(() => {\n resolve(htmlElContainer);\n })\n .catch((err) => {\n reject(err);\n });\n\n // catch for getBlobFromURL()\n }).catch(({status, message}) => {\n reject({status, message});\n });\n // catch for loadScript()\n }).catch(({status, message}) => {\n reject({status, message});\n });\n });\n}\n\n\nexport default mountSeeThruCanvasTag;\n","/**\n * @return {Promise} - Whether the browser supports transparent videos or not\n */\nimport {isSafari} from \"./util\";\n\nfunction checkSupportForTransparency() {\n return new Promise((resolve, reject) => {\n // Resolve early for safari.\n // Currently (29 December 2021) Safari can play webm/vp9,\n // but it does not support transparent video in the format we're outputting\n if (isSafari()){\n resolve(false);\n }\n\n const video = document.createElement('video');\n const canPlay = video.canPlayType && video.canPlayType('video/webm; codecs=\"vp9\"');\n resolve(canPlay === 'maybe' || canPlay === 'probably');\n });\n}\n\nexport default checkSupportForTransparency;\n","import {normalizeToArray} from \"./util/parse/normalizeToArray\";\n\nvar applyBreakpoints, closestAbove, defaultBreakpoints, findContainerWidth, maxWidth, updateDpr;\n\nimport Configuration from './configuration';\nimport HtmlTag from './tags/htmltag';\nimport ImageTag from './tags/imagetag';\nimport PictureTag from './tags/picturetag';\nimport SourceTag from './tags/sourcetag';\nimport Transformation from './transformation';\nimport url from './url';\nimport VideoTag from './tags/videotag';\nimport * as constants from './constants';\n\nimport {\n addClass,\n assign,\n defaults,\n getData,\n isEmpty,\n isFunction,\n isString,\n merge,\n removeAttribute,\n setAttribute,\n setData,\n width\n} from './util';\n//\n\nimport mountCloudinaryVideoTag from \"./util/features/transparentVideo/mountCloudinaryVideoTag\";\nimport enforceOptionsForTransparentVideo from \"./util/features/transparentVideo/enforceOptionsForTransparentVideo\";\nimport mountSeeThruCanvasTag from \"./util/features/transparentVideo/mountSeeThruCanvasTag\";\nimport checkSupportForTransparency from \"./util/features/transparentVideo/checkSupportForTransparency\";\n\ndefaultBreakpoints = function(width, steps = 100) {\n return steps * Math.ceil(width / steps);\n};\n\nclosestAbove = function(list, value) {\n var i;\n i = list.length - 2;\n while (i >= 0 && list[i] >= value) {\n i--;\n }\n return list[i + 1];\n};\n\napplyBreakpoints = function(tag, width, steps, options) {\n var ref, ref1, ref2, responsive_use_breakpoints;\n responsive_use_breakpoints = (ref = (ref1 = (ref2 = options['responsive_use_breakpoints']) != null ? ref2 : options['responsive_use_stoppoints']) != null ? ref1 : this.config('responsive_use_breakpoints')) != null ? ref : this.config('responsive_use_stoppoints');\n if ((!responsive_use_breakpoints) || (responsive_use_breakpoints === 'resize' && !options.resizing)) {\n return width;\n } else {\n return this.calc_breakpoint(tag, width, steps);\n }\n};\n\nfindContainerWidth = function(element) {\n var containerWidth, style;\n containerWidth = 0;\n while (((element = element != null ? element.parentNode : void 0) instanceof Element) && !containerWidth) {\n style = window.getComputedStyle(element);\n if (!/^inline/.test(style.display)) {\n containerWidth = width(element);\n }\n }\n return containerWidth;\n};\n\nupdateDpr = function(dataSrc, roundDpr) {\n return dataSrc.replace(/\\bdpr_(1\\.0|auto)\\b/g, 'dpr_' + this.device_pixel_ratio(roundDpr));\n};\n\nmaxWidth = function(requiredWidth, tag) {\n var imageWidth;\n imageWidth = getData(tag, 'width') || 0;\n if (requiredWidth > imageWidth) {\n imageWidth = requiredWidth;\n setData(tag, 'width', requiredWidth);\n }\n return imageWidth;\n};\n\nclass Cloudinary {\n /**\n * Creates a new Cloudinary instance.\n * @class Cloudinary\n * @classdesc Main class for accessing Cloudinary functionality.\n * @param {Object} options - A {@link Configuration} object for globally configuring Cloudinary account settings.\n * @example
\n * var cl = new cloudinary.Cloudinary( { cloud_name: \"mycloud\"});
\n * var imgTag = cl.image(\"myPicID\");\n * @see \n * Available configuration options\n */\n constructor(options) {\n var configuration;\n this.devicePixelRatioCache = {};\n this.responsiveConfig = {};\n this.responsiveResizeInitialized = false;\n configuration = new Configuration(options);\n // Provided for backward compatibility\n this.config = function(newConfig, newValue) {\n return configuration.config(newConfig, newValue);\n };\n /**\n * Use \\ tags in the document to configure this `cloudinary` instance.\n * @return This {Cloudinary} instance for chaining.\n */\n this.fromDocument = function() {\n configuration.fromDocument();\n return this;\n };\n /**\n * Use environment variables to configure this `cloudinary` instance.\n * @return This {Cloudinary} instance for chaining.\n */\n this.fromEnvironment = function() {\n configuration.fromEnvironment();\n return this;\n };\n /**\n * Initializes the configuration of this `cloudinary` instance.\n * This is a convenience method that invokes both {@link Configuration#fromEnvironment|fromEnvironment()}\n * (Node.js environment only) and {@link Configuration#fromDocument|fromDocument()}.\n * It first tries to retrieve the configuration from the environment variable.\n * If not available, it tries from the document meta tags.\n * @function Cloudinary#init\n * @see Configuration#init\n * @return This {Cloudinary} instance for chaining.\n */\n this.init = function() {\n configuration.init();\n return this;\n };\n }\n\n /**\n * Convenience constructor\n * @param {Object} options\n * @return {Cloudinary}\n * @example cl = cloudinary.Cloudinary.new( { cloud_name: \"mycloud\"})\n */\n static new(options) {\n return new this(options);\n }\n\n /**\n * Generates a URL for any asset in your Media library.\n * @function Cloudinary#url\n * @param {string} publicId - The public ID of the media asset.\n * @param {Object} [options] - The {@link Transformation} parameters to include in the URL.\n * @param {type} [options.type='upload'] - The asset's storage type.\n * For details on all fetch types, see\n * Fetch types.\n * @param {resourceType} [options.resource_type='image'] - The type of asset. Possible values:
\n * - `image`
\n * - `video`
\n * - `raw`\n * @return {string} The media asset URL.\n * @see \n * Available image transformations\n * @see \n * Available video transformations\n */\n url(publicId, options = {}) {\n return url(publicId, options, this.config());\n }\n\n /**\n * Generates a video asset URL.\n * @function Cloudinary#video_url\n * @param {string} publicId - The public ID of the video.\n * @param {Object} [options] - The {@link Transformation} parameters to include in the URL.\n * @param {type} [options.type='upload'] - The asset's storage type.\n * For details on all fetch types, see\n * Fetch types.\n * @return {string} The video URL.\n * @see Available video transformations\n */\n video_url(publicId, options) {\n options = assign({\n resource_type: 'video'\n }, options);\n return this.url(publicId, options);\n }\n\n /**\n * Generates a URL for an image intended to be used as a thumbnail for the specified video.\n * Identical to {@link Cloudinary#url|url}, except that the `resource_type` is `video`\n * and the default `format` is `jpg`.\n * @function Cloudinary#video_thumbnail_url\n * @param {string} publicId - The unique identifier of the video from which you want to generate a thumbnail image.\n * @param {Object} [options] - The image {@link Transformation} parameters to apply to the thumbnail.\n * In addition to standard image transformations, you can also use the `start_offset` transformation parameter\n * to instruct Cloudinary to generate the thumbnail from a frame other than the middle frame of the video.\n * For details, see\n * Generating video thumbnails in the Cloudinary documentation.\n * @param {type} [options.type='upload'] - The asset's storage type.\n * @return {string} The URL of the video thumbnail image.\n * @see \n * Available image transformations\n */\n video_thumbnail_url(publicId, options) {\n options = assign({}, constants.DEFAULT_POSTER_OPTIONS, options);\n return this.url(publicId, options);\n }\n\n /**\n * Generates a string representation of the specified transformation options.\n * @function Cloudinary#transformation_string\n * @param {Object} options - The {@link Transformation} options.\n * @returns {string} The transformation string.\n * @see \n * Available image transformations\n * @see \n * Available video transformations\n */\n transformation_string(options) {\n return new Transformation(options).serialize();\n }\n\n /**\n * Generates an image tag.\n * @function Cloudinary#image\n * @param {string} publicId - The public ID of the image.\n * @param {Object} options - The {@link Transformation} parameters, {@link Configuration} parameters,\n * and standard HTML <img> tag attributes to apply to the image tag.\n * @return {HTMLImageElement} An image tag DOM element.\n * @see \n * Available image transformations\n * @see Available configuration options\n */\n image(publicId, options = {}) {\n var client_hints, img, ref;\n img = this.imageTag(publicId, options);\n client_hints = (ref = options.client_hints != null ? options.client_hints : this.config('client_hints')) != null ? ref : false;\n if (options.src == null && !client_hints) {\n // src must be removed before creating the DOM element to avoid loading the image\n img.setAttr(\"src\", '');\n }\n img = img.toDOM();\n if (!client_hints) {\n // cache the image src\n setData(img, 'src-cache', this.url(publicId, options));\n // set image src taking responsiveness in account\n this.cloudinary_update(img, options);\n }\n return img;\n }\n\n /**\n * Creates a new ImageTag instance using the configuration defined for this `cloudinary` instance.\n * @function Cloudinary#imageTag\n * @param {string} publicId - The public ID of the image.\n * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters,\n * and standard HTML <img> tag attributes to apply to the image tag.\n * @return {ImageTag} An ImageTag instance that is attached (chained) to this Cloudinary instance.\n * @see \n * Available image transformations\n * @see Available configuration options\n */\n imageTag(publicId, options) {\n var tag;\n tag = new ImageTag(publicId, this.config());\n tag.transformation().fromOptions(options);\n return tag;\n }\n\n /**\n * Creates a new PictureTag instance, configured using this `cloudinary` instance.\n * @function Cloudinary#PictureTag\n * @param {string} publicId - the public ID of the resource\n * @param {Object} options - additional options to pass to the new ImageTag instance\n * @param {Array} sources - the sources definitions\n * @return {PictureTag} A PictureTag that is attached (chained) to this Cloudinary instance\n */\n pictureTag(publicId, options, sources) {\n var tag;\n tag = new PictureTag(publicId, this.config(), sources);\n tag.transformation().fromOptions(options);\n return tag;\n }\n\n /**\n * Creates a new SourceTag instance, configured using this `cloudinary` instance.\n * @function Cloudinary#SourceTag\n * @param {string} publicId - the public ID of the resource.\n * @param {Object} options - additional options to pass to the new instance.\n * @return {SourceTag} A SourceTag that is attached (chained) to this Cloudinary instance\n */\n sourceTag(publicId, options) {\n var tag;\n tag = new SourceTag(publicId, this.config());\n tag.transformation().fromOptions(options);\n return tag;\n }\n\n /**\n * Generates a video thumbnail URL from the specified remote video and includes it in an image tag.\n * @function Cloudinary#video_thumbnail\n * @param {string} publicId - The unique identifier of the video from the relevant video site.\n * Additionally, either append the image extension type to the identifier value or set\n * the image delivery format in the 'options' parameter using the 'format' transformation option.\n * For example, a YouTube video might have the identifier: 'o-urnlaJpOA.jpg'.\n * @param {Object} [options] - The {@link Transformation} parameters to apply.\n * @return {HTMLImageElement} An HTML image tag element\n * @see \n * Available video transformations\n * @see Available configuration options\n */\n video_thumbnail(publicId, options) {\n return this.image(publicId, merge({}, constants.DEFAULT_POSTER_OPTIONS, options));\n }\n\n /**\n * Fetches a facebook profile image and delivers it in an image tag element.\n * @function Cloudinary#facebook_profile_image\n * @param {string} publicId - The Facebook numeric ID. Additionally, either append the image extension type\n * to the ID or set the image delivery format in the 'options' parameter using the 'format' transformation option.\n * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters,\n * and standard HTML <img> tag attributes to apply to the image tag.\n * @return {HTMLImageElement} An image tag element.\n * @see \n * Available image transformations\n * @see Available configuration options\n */\n facebook_profile_image(publicId, options) {\n return this.image(publicId, assign({\n type: 'facebook'\n }, options));\n }\n\n /**\n * Fetches a Twitter profile image by ID and delivers it in an image tag element.\n * @function Cloudinary#twitter_profile_image\n * @param {string} publicId - The Twitter numeric ID. Additionally, either append the image extension type\n * to the ID or set the image delivery format in the 'options' parameter using the 'format' transformation option.\n * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters,\n * and standard HTML <img> tag attributes to apply to the image tag.\n * @return {HTMLImageElement} An image tag element.\n * @see \n * Available image transformations\n * @see Available configuration options\n */\n twitter_profile_image(publicId, options) {\n return this.image(publicId, assign({\n type: 'twitter'\n }, options));\n }\n\n /**\n * Fetches a Twitter profile image by name and delivers it in an image tag element.\n * @function Cloudinary#twitter_name_profile_image\n * @param {string} publicId - The Twitter screen name. Additionally, either append the image extension type\n * to the screen name or set the image delivery format in the 'options' parameter using the 'format' transformation option.\n * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters,\n * and standard HTML <img> tag attributes to apply to the image tag.\n * @return {HTMLImageElement} An image tag element.\n * @see \n * Available image transformations\n * @see Available configuration options\n */\n twitter_name_profile_image(publicId, options) {\n return this.image(publicId, assign({\n type: 'twitter_name'\n }, options));\n }\n\n /**\n * Fetches a Gravatar profile image and delivers it in an image tag element.\n * @function Cloudinary#gravatar_image\n * @param {string} publicId - The calculated hash for the Gravatar email address.\n * Additionally, either append the image extension type to the screen name or set the image delivery format\n * in the 'options' parameter using the 'format' transformation option.\n * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters,\n * and standard HTML <img> tag attributes to apply to the image tag.\n * @return {HTMLImageElement} An image tag element.\n * @see \n * Available image transformations\n * @see Available configuration options\n */\n gravatar_image(publicId, options) {\n return this.image(publicId, assign({\n type: 'gravatar'\n }, options));\n }\n\n /**\n * Fetches an image from a remote URL and delivers it in an image tag element.\n * @function Cloudinary#fetch_image\n * @param {string} publicId - The full URL of the image to fetch, including the extension.\n * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters,\n * and standard HTML <img> tag attributes to apply to the image tag.\n * @return {HTMLImageElement} An image tag element.\n * @see \n * Available image transformations\n * @see Available configuration options\n */\n fetch_image(publicId, options) {\n return this.image(publicId, assign({\n type: 'fetch'\n }, options));\n }\n\n /**\n * Generates a video tag.\n * @function Cloudinary#video\n * @param {string} publicId - The public ID of the video.\n * @param {Object} [options] - The {@link Transformation} parameters, {@link Configuration} parameters,\n * and standard HTML <img> tag attributes to apply to the image tag.\n * @return {HTMLVideoElement} A video tag DOM element.\n * @see \n * Available video transformations\n * @see Available configuration options\n */\n video(publicId, options = {}) {\n return this.videoTag(publicId, options).toHtml();\n }\n\n /**\n * Creates a new VideoTag instance using the configuration defined for this `cloudinary` instance.\n * @function Cloudinary#videoTag\n * @param {string} publicId - The public ID of the video.\n * @param {Object} options - The {@link Transformation} parameters, {@link Configuration} parameters,\n * and standard HTML <img> tag attributes to apply to the image tag.\n * @return {VideoTag} A VideoTag that is attached (chained) to this `cloudinary` instance.\n * @see \n * Available video transformations\n * @see Available configuration options\n */\n videoTag(publicId, options) {\n options = defaults({}, options, this.config());\n return new VideoTag(publicId, options);\n }\n\n /**\n * Generates a sprite PNG image that contains all images with the specified tag and the corresponding css file.\n * @function Cloudinary#sprite_css\n * @param {string} publicId - The tag on which to base the sprite image.\n * @param {Object} [options] - The {@link Transformation} parameters to include in the URL.\n * @return {string} The URL of the generated CSS file. The sprite image has the same URL, but with a PNG extension.\n * @see \n * Sprite generation\n * @see \n * Available image transformations\n */\n sprite_css(publicId, options) {\n options = assign({\n type: 'sprite'\n }, options);\n if (!publicId.match(/.css$/)) {\n options.format = 'css';\n }\n return this.url(publicId, options);\n }\n\n /**\n * Initializes responsive image behavior for all image tags with the 'cld-responsive'\n * (or other defined {@link Cloudinary#responsive|responsive} class).
\n * This method should be invoked after the page has loaded.
\n * Note: Calls {@link Cloudinary#cloudinary_update|cloudinary_update} to modify image tags.\n * @function Cloudinary#responsive\n * @param {Object} options\n * @param {String} [options.responsive_class='cld-responsive'] - An alternative class\n * to locate the relevant <img> tags.\n * @param {number} [options.responsive_debounce=100] - The debounce interval in milliseconds.\n * @param {boolean} [bootstrap=true] If true, processes the <img> tags by calling\n * {@link Cloudinary#cloudinary_update|cloudinary_update}. When false, the tags are processed\n * only after a resize event.\n * @see {@link Cloudinary#cloudinary_update|cloudinary_update} for additional configuration parameters\n * @see Automating responsive images with JavaScript\n * @return {function} that when called, removes the resize EventListener added by this function\n */\n responsive(options, bootstrap = true) {\n var ref, ref1, ref2, responsiveClass, responsiveResize, timeout;\n this.responsiveConfig = merge(this.responsiveConfig || {}, options);\n responsiveClass = (ref = this.responsiveConfig.responsive_class) != null ? ref : this.config('responsive_class');\n if (bootstrap) {\n this.cloudinary_update(`img.${responsiveClass}, img.cld-hidpi`, this.responsiveConfig);\n }\n responsiveResize = (ref1 = (ref2 = this.responsiveConfig.responsive_resize) != null ? ref2 : this.config('responsive_resize')) != null ? ref1 : true;\n if (responsiveResize && !this.responsiveResizeInitialized) {\n this.responsiveConfig.resizing = this.responsiveResizeInitialized = true;\n timeout = null;\n const makeResponsive = () => {\n var debounce, ref3, ref4, reset, run, wait, waitFunc;\n debounce = (ref3 = (ref4 = this.responsiveConfig.responsive_debounce) != null ? ref4 : this.config('responsive_debounce')) != null ? ref3 : 100;\n reset = function() {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n };\n run = () => {\n return this.cloudinary_update(`img.${responsiveClass}`, this.responsiveConfig);\n };\n waitFunc = function() {\n reset();\n return run();\n };\n wait = function() {\n reset();\n timeout = setTimeout(waitFunc, debounce);\n };\n if (debounce) {\n return wait();\n } else {\n return run();\n }\n };\n window.addEventListener('resize', makeResponsive);\n return ()=>window.removeEventListener('resize', makeResponsive);\n }\n }\n\n /**\n * @function Cloudinary#calc_breakpoint\n * @private\n * @ignore\n */\n calc_breakpoint(element, width, steps) {\n let breakpoints = getData(element, 'breakpoints') || getData(element, 'stoppoints') || this.config('breakpoints') || this.config('stoppoints') || defaultBreakpoints;\n if (isFunction(breakpoints)) {\n return breakpoints(width, steps);\n } else {\n if (isString(breakpoints)) {\n breakpoints = breakpoints.split(',').map(point=>parseInt(point)).sort((a, b) => a - b);\n }\n return closestAbove(breakpoints, width);\n }\n }\n\n /**\n * @function Cloudinary#calc_stoppoint\n * @deprecated Use {@link calc_breakpoint} instead.\n * @private\n * @ignore\n */\n calc_stoppoint(element, width, steps) {\n return this.calc_breakpoint(element, width, steps);\n }\n\n /**\n * @function Cloudinary#device_pixel_ratio\n * @private\n */\n device_pixel_ratio(roundDpr) {\n roundDpr = roundDpr == null ? true : roundDpr;\n let dpr = (typeof window !== \"undefined\" && window !== null ? window.devicePixelRatio : void 0) || 1;\n if (roundDpr) {\n dpr = Math.ceil(dpr);\n }\n if (dpr <= 0 || dpr === (0/0)) {\n dpr = 1;\n }\n let dprString = dpr.toString();\n if (dprString.match(/^\\d+$/)) {\n dprString += '.0';\n }\n return dprString;\n }\n\n /**\n * Applies responsiveness to all <img> tags under each relevant node\n * (regardless of whether the tag contains the {@link Cloudinary#responsive|responsive} class).\n * @param {Element[]} nodes The parent nodes where you want to search for <img> tags.\n * @param {Object} [options] The {@link Cloudinary#cloudinary_update|cloudinary_update} options to apply.\n * @see Available image transformations\n * @function Cloudinary#processImageTags\n */\n processImageTags(nodes, options) {\n if (isEmpty(nodes)) {\n // similar to `$.fn.cloudinary`\n return this;\n }\n\n options = defaults({}, options || {}, this.config());\n let images = nodes\n .filter(node=>/^img$/i.test(node.tagName))\n .map(function(node){\n let imgOptions = assign({\n width: node.getAttribute('width'),\n height: node.getAttribute('height'),\n src: node.getAttribute('src')\n }, options);\n let publicId = imgOptions['source'] || imgOptions['src'];\n delete imgOptions['source'];\n delete imgOptions['src'];\n let attr = new Transformation(imgOptions).toHtmlAttributes();\n setData(node, 'src-cache', url(publicId, imgOptions));\n node.setAttribute('width', attr.width);\n node.setAttribute('height', attr.height);\n return node;\n });\n this.cloudinary_update(images, options);\n return this;\n }\n\n /**\n * Updates the dpr (for `dpr_auto`) and responsive (for `w_auto`) fields according to\n * the current container size and the device pixel ratio.
\n * Note:`w_auto` is updated only for images marked with the `cld-responsive`\n * (or other defined {@link Cloudinary#responsive|responsive}) class.\n * @function Cloudinary#cloudinary_update\n * @param {(Array|string|NodeList)} elements - The HTML image elements to modify.\n * @param {Object} options\n * @param {boolean|string} [options.responsive_use_breakpoints=true]\n * Possible values:
\n * - `true`: Always use breakpoints for width.
\n * - `resize`: Use exact width on first render and breakpoints on resize.
\n * - `false`: Always use exact width.\n * @param {boolean} [options.responsive] - If `true`, enable responsive on all specified elements.\n * Alternatively, you can define specific HTML elements to modify by adding the `cld-responsive`\n * (or other custom-defined {@link Cloudinary#responsive|responsive_class}) class to those elements.\n * @param {boolean} [options.responsive_preserve_height] - If `true`, original css height is preserved.\n * Should be used only if the transformation supports different aspect ratios.\n */\n cloudinary_update(elements, options) {\n var containerWidth, dataSrc, match, ref4, requiredWidth;\n if (elements === null) {\n return this;\n }\n if(options == null) {\n options = {};\n }\n const responsive = options.responsive != null ? options.responsive : this.config('responsive');\n\n elements = normalizeToArray(elements);\n\n let responsiveClass;\n if (this.responsiveConfig && this.responsiveConfig.responsive_class != null) {\n responsiveClass = this.responsiveConfig.responsive_class;\n } else if (options.responsive_class != null) {\n responsiveClass = options.responsive_class;\n } else {\n responsiveClass = this.config('responsive_class');\n }\n\n let roundDpr = options.round_dpr != null ? options.round_dpr : this.config('round_dpr');\n elements.forEach(tag => {\n if (/img/i.test(tag.tagName)) {\n let setUrl = true;\n if (responsive) {\n addClass(tag, responsiveClass);\n }\n dataSrc = getData(tag, 'src-cache') || getData(tag, 'src');\n if (!isEmpty(dataSrc)) {\n // Update dpr according to the device's devicePixelRatio\n dataSrc = updateDpr.call(this, dataSrc, roundDpr);\n if (HtmlTag.isResponsive(tag, responsiveClass)) {\n containerWidth = findContainerWidth(tag);\n if (containerWidth !== 0) {\n if (/w_auto:breakpoints/.test(dataSrc)) {\n requiredWidth = maxWidth(containerWidth, tag);\n if (requiredWidth) {\n dataSrc = dataSrc.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/, `w_auto:breakpoints$1:${requiredWidth}`);\n } else {\n setUrl = false;\n }\n } else {\n match = /w_auto(:(\\d+))?/.exec(dataSrc);\n if (match) {\n requiredWidth = applyBreakpoints.call(this, tag, containerWidth, match[2], options);\n requiredWidth = maxWidth(requiredWidth, tag)\n if (requiredWidth) {\n dataSrc = dataSrc.replace(/w_auto[^,\\/]*/g, `w_${requiredWidth}`);\n } else {\n setUrl = false;\n }\n }\n }\n removeAttribute(tag, 'width');\n if (!options.responsive_preserve_height) {\n removeAttribute(tag, 'height');\n }\n } else {\n // Container doesn't know the size yet - usually because the image is hidden or outside the DOM.\n setUrl = false;\n }\n }\n const isLazyLoading = (options.loading === 'lazy' && !this.isNativeLazyLoadSupported() && this.isLazyLoadSupported() && !elements[0].getAttribute('src'));\n if (setUrl || isLazyLoading){\n // If data-width exists, set width to be data-width\n this.setAttributeIfExists(elements[0], 'width', 'data-width');\n }\n\n if (setUrl && !isLazyLoading) {\n setAttribute(tag, 'src', dataSrc);\n }\n }\n }\n });\n return this;\n }\n\n /**\n * Sets element[toAttribute] = element[fromAttribute] if element[fromAttribute] is set\n * @param element\n * @param toAttribute\n * @param fromAttribute\n */\n setAttributeIfExists(element, toAttribute, fromAttribute){\n const attributeValue = element.getAttribute(fromAttribute);\n if (attributeValue != null) {\n setAttribute(element, toAttribute, attributeValue);\n }\n }\n\n /**\n * Returns true if Intersection Observer API is supported\n * @returns {boolean}\n */\n isLazyLoadSupported() {\n return window && 'IntersectionObserver' in window;\n }\n\n /**\n * Returns true if using Chrome\n * @returns {boolean}\n */\n isNativeLazyLoadSupported() {\n return 'loading' in HTMLImageElement.prototype;\n }\n\n /**\n * Returns a {@link Transformation} object, initialized with the specified options, for chaining purposes.\n * @function Cloudinary#transformation\n * @param {Object} options The {@link Transformation} options to apply.\n * @return {Transformation}\n * @see Transformation\n * @see \n * Available image transformations\n * @see \n * Available video transformations\n */\n transformation(options) {\n return Transformation.new(this.config()).fromOptions(options).setParent(this);\n }\n\n\n /**\n * @description This function will append a TransparentVideo element to the htmlElContainer passed to it.\n * TransparentVideo can either be an HTML Video tag, or an HTML Canvas Tag.\n * @param {HTMLElement} htmlElContainer\n * @param {string} publicId\n * @param {object} options The {@link TransparentVideoOptions} options to apply - Extends TransformationOptions\n * options.playsinline - HTML Video Tag's native playsinline - passed to video element.\n * options.poster - HTML Video Tag's native poster - passed to video element.\n * options.loop - HTML Video Tag's native loop - passed to video element.\n * options?.externalLibraries = { [key: string]: string} - map of external libraries to be loaded\n * @return {Promise}\n */\n injectTransparentVideoElement(htmlElContainer, publicId, options = {}) {\n return new Promise((resolve, reject) => {\n if (!htmlElContainer) {\n reject({status: 'error', message: 'Expecting htmlElContainer to be HTMLElement'});\n }\n\n enforceOptionsForTransparentVideo(options);\n\n let videoURL = this.video_url(publicId, options);\n\n checkSupportForTransparency().then((isNativelyTransparent) => {\n let mountPromise;\n\n if (isNativelyTransparent) {\n mountPromise = mountCloudinaryVideoTag(htmlElContainer, this, publicId, options);\n resolve(htmlElContainer);\n } else {\n mountPromise = mountSeeThruCanvasTag(htmlElContainer, videoURL, options);\n }\n\n mountPromise\n .then(() => {\n resolve(htmlElContainer);\n }).catch(({status, message}) => { reject({status, message});});\n\n // catch for checkSupportForTransparency()\n }).catch(({status, message}) => { reject({status, message});});\n });\n }\n}\n\nassign(Cloudinary, constants);\nexport default Cloudinary;\n","/**\n * Creates the namespace for Cloudinary\n */\nimport utf8_encode from '../utf8_encode';\nimport crc32 from '../crc32';\nimport * as Util from '../util';\nimport Transformation from '../transformation';\nimport Condition from '../condition';\nimport Configuration from '../configuration';\nimport HtmlTag from '../tags/htmltag';\nimport Expression from \"../expression\";\nimport ImageTag from '../tags/imagetag';\nimport PictureTag from '../tags/picturetag';\nimport VideoTag from '../tags/videotag';\nimport ClientHintsMetaTag from '../tags/clienthintsmetatag';\nimport Layer from '../layer/layer';\nimport FetchLayer from '../layer/fetchlayer';\nimport TextLayer from '../layer/textlayer';\nimport SubtitlesLayer from '../layer/subtitleslayer';\nimport Cloudinary from '../cloudinary';\n\nexport default {\n ClientHintsMetaTag,\n Cloudinary,\n Condition,\n Configuration,\n Expression,\n crc32,\n FetchLayer,\n HtmlTag,\n ImageTag,\n Layer,\n PictureTag,\n SubtitlesLayer,\n TextLayer,\n Transformation,\n utf8_encode,\n Util,\n VideoTag\n};\n\nexport {\n ClientHintsMetaTag,\n Cloudinary,\n Condition,\n Configuration,\n Expression,\n crc32,\n FetchLayer,\n HtmlTag,\n ImageTag,\n Layer,\n PictureTag,\n SubtitlesLayer,\n TextLayer,\n Transformation,\n utf8_encode,\n Util,\n VideoTag\n};\n"],"sourceRoot":""} \ No newline at end of file diff --git a/node_modules/cloudinary-core/cloudinary-core-shrinkwrap.min.js b/node_modules/cloudinary-core/cloudinary-core-shrinkwrap.min.js new file mode 100644 index 0000000..48e3a17 --- /dev/null +++ b/node_modules/cloudinary-core/cloudinary-core-shrinkwrap.min.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.cloudinary=t():e.cloudinary=t()}(this,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/namespace/cloudinary-core-shrinkwrap.js")}({"./node_modules/lodash/_DataView.js":function(e,t,n){var o=n("./node_modules/lodash/_getNative.js")(n("./node_modules/lodash/_root.js"),"DataView");e.exports=o},"./node_modules/lodash/_Hash.js":function(e,t,n){var o=n("./node_modules/lodash/_hashClear.js"),r=n("./node_modules/lodash/_hashDelete.js"),i=n("./node_modules/lodash/_hashGet.js"),s=n("./node_modules/lodash/_hashHas.js"),u=n("./node_modules/lodash/_hashSet.js");function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},"./node_modules/lodash/_arrayIncludesWith.js":function(e,t){e.exports=function(e,t,n){for(var o=-1,r=null==e?0:e.length;++o=200&&(d=a,f=!1,t=new o(t));e:for(;++c0&&n(c)?t>1?i(c,t-1,n,s,u):o(u,c):s||(u[u.length]=c)}return u}},"./node_modules/lodash/_baseFor.js":function(e,t,n){var o=n("./node_modules/lodash/_createBaseFor.js")();e.exports=o},"./node_modules/lodash/_baseFunctions.js":function(e,t,n){var o=n("./node_modules/lodash/_arrayFilter.js"),r=n("./node_modules/lodash/isFunction.js");e.exports=function(e,t){return o(t,(function(t){return r(e[t])}))}},"./node_modules/lodash/_baseGetAllKeys.js":function(e,t,n){var o=n("./node_modules/lodash/_arrayPush.js"),r=n("./node_modules/lodash/isArray.js");e.exports=function(e,t,n){var i=t(e);return r(e)?i:o(i,n(e))}},"./node_modules/lodash/_baseGetTag.js":function(e,t,n){var o=n("./node_modules/lodash/_Symbol.js"),r=n("./node_modules/lodash/_getRawTag.js"),i=n("./node_modules/lodash/_objectToString.js"),s=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?r(e):i(e)}},"./node_modules/lodash/_baseIndexOf.js":function(e,t,n){var o=n("./node_modules/lodash/_baseFindIndex.js"),r=n("./node_modules/lodash/_baseIsNaN.js"),i=n("./node_modules/lodash/_strictIndexOf.js");e.exports=function(e,t,n){return t==t?i(e,t,n):o(e,r,n)}},"./node_modules/lodash/_baseIsArguments.js":function(e,t,n){var o=n("./node_modules/lodash/_baseGetTag.js"),r=n("./node_modules/lodash/isObjectLike.js");e.exports=function(e){return r(e)&&"[object Arguments]"==o(e)}},"./node_modules/lodash/_baseIsMap.js":function(e,t,n){var o=n("./node_modules/lodash/_getTag.js"),r=n("./node_modules/lodash/isObjectLike.js");e.exports=function(e){return r(e)&&"[object Map]"==o(e)}},"./node_modules/lodash/_baseIsNaN.js":function(e,t){e.exports=function(e){return e!=e}},"./node_modules/lodash/_baseIsNative.js":function(e,t,n){var o=n("./node_modules/lodash/isFunction.js"),r=n("./node_modules/lodash/_isMasked.js"),i=n("./node_modules/lodash/isObject.js"),s=n("./node_modules/lodash/_toSource.js"),u=/^\[object .+?Constructor\]$/,a=Function.prototype,l=Object.prototype,c=a.toString,d=l.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||r(e))&&(o(e)?f:u).test(s(e))}},"./node_modules/lodash/_baseIsSet.js":function(e,t,n){var o=n("./node_modules/lodash/_getTag.js"),r=n("./node_modules/lodash/isObjectLike.js");e.exports=function(e){return r(e)&&"[object Set]"==o(e)}},"./node_modules/lodash/_baseIsTypedArray.js":function(e,t,n){var o=n("./node_modules/lodash/_baseGetTag.js"),r=n("./node_modules/lodash/isLength.js"),i=n("./node_modules/lodash/isObjectLike.js"),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&r(e.length)&&!!s[o(e)]}},"./node_modules/lodash/_baseKeys.js":function(e,t,n){var o=n("./node_modules/lodash/_isPrototype.js"),r=n("./node_modules/lodash/_nativeKeys.js"),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return r(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},"./node_modules/lodash/_baseKeysIn.js":function(e,t,n){var o=n("./node_modules/lodash/isObject.js"),r=n("./node_modules/lodash/_isPrototype.js"),i=n("./node_modules/lodash/_nativeKeysIn.js"),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return i(e);var t=r(e),n=[];for(var u in e)("constructor"!=u||!t&&s.call(e,u))&&n.push(u);return n}},"./node_modules/lodash/_baseMerge.js":function(e,t,n){var o=n("./node_modules/lodash/_Stack.js"),r=n("./node_modules/lodash/_assignMergeValue.js"),i=n("./node_modules/lodash/_baseFor.js"),s=n("./node_modules/lodash/_baseMergeDeep.js"),u=n("./node_modules/lodash/isObject.js"),a=n("./node_modules/lodash/keysIn.js"),l=n("./node_modules/lodash/_safeGet.js");e.exports=function c(e,t,n,d,f){e!==t&&i(t,(function(i,a){if(f||(f=new o),u(i))s(e,t,a,n,c,d,f);else{var h=d?d(l(e,a),i,a+"",e,t,f):void 0;void 0===h&&(h=i),r(e,a,h)}}),a)}},"./node_modules/lodash/_baseMergeDeep.js":function(e,t,n){var o=n("./node_modules/lodash/_assignMergeValue.js"),r=n("./node_modules/lodash/_cloneBuffer.js"),i=n("./node_modules/lodash/_cloneTypedArray.js"),s=n("./node_modules/lodash/_copyArray.js"),u=n("./node_modules/lodash/_initCloneObject.js"),a=n("./node_modules/lodash/isArguments.js"),l=n("./node_modules/lodash/isArray.js"),c=n("./node_modules/lodash/isArrayLikeObject.js"),d=n("./node_modules/lodash/isBuffer.js"),f=n("./node_modules/lodash/isFunction.js"),h=n("./node_modules/lodash/isObject.js"),p=n("./node_modules/lodash/isPlainObject.js"),y=n("./node_modules/lodash/isTypedArray.js"),m=n("./node_modules/lodash/_safeGet.js"),_=n("./node_modules/lodash/toPlainObject.js");e.exports=function(e,t,n,v,b,g,j){var w=m(e,n),A=m(t,n),O=j.get(A);if(O)o(e,n,O);else{var D=g?g(w,A,n+"",e,t,j):void 0,E=void 0===D;if(E){var B=l(A),C=!B&&d(A),S=!B&&!C&&y(A);D=A,B||C||S?l(w)?D=w:c(w)?D=s(w):C?(E=!1,D=r(A,!0)):S?(E=!1,D=i(A,!0)):D=[]:p(A)||a(A)?(D=w,a(w)?D=_(w):h(w)&&!f(w)||(D=u(A))):E=!1}E&&(j.set(A,D),b(D,A,v,g,j),j.delete(A)),o(e,n,D)}}},"./node_modules/lodash/_baseRest.js":function(e,t,n){var o=n("./node_modules/lodash/identity.js"),r=n("./node_modules/lodash/_overRest.js"),i=n("./node_modules/lodash/_setToString.js");e.exports=function(e,t){return i(r(e,t,o),e+"")}},"./node_modules/lodash/_baseSetToString.js":function(e,t,n){var o=n("./node_modules/lodash/constant.js"),r=n("./node_modules/lodash/_defineProperty.js"),i=n("./node_modules/lodash/identity.js"),s=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:i;e.exports=s},"./node_modules/lodash/_baseSlice.js":function(e,t){e.exports=function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o=r?e:o(e,t,n)}},"./node_modules/lodash/_charsEndIndex.js":function(e,t,n){var o=n("./node_modules/lodash/_baseIndexOf.js");e.exports=function(e,t){for(var n=e.length;n--&&o(t,e[n],0)>-1;);return n}},"./node_modules/lodash/_charsStartIndex.js":function(e,t,n){var o=n("./node_modules/lodash/_baseIndexOf.js");e.exports=function(e,t){for(var n=-1,r=e.length;++n-1;);return n}},"./node_modules/lodash/_cloneArrayBuffer.js":function(e,t,n){var o=n("./node_modules/lodash/_Uint8Array.js");e.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}},"./node_modules/lodash/_cloneBuffer.js":function(e,t,n){(function(e){var o=n("./node_modules/lodash/_root.js"),r=t&&!t.nodeType&&t,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===r?o.Buffer:void 0,u=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,o=u?u(n):new e.constructor(n);return e.copy(o),o}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/lodash/_cloneDataView.js":function(e,t,n){var o=n("./node_modules/lodash/_cloneArrayBuffer.js");e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},"./node_modules/lodash/_cloneRegExp.js":function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},"./node_modules/lodash/_cloneSymbol.js":function(e,t,n){var o=n("./node_modules/lodash/_Symbol.js"),r=o?o.prototype:void 0,i=r?r.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},"./node_modules/lodash/_cloneTypedArray.js":function(e,t,n){var o=n("./node_modules/lodash/_cloneArrayBuffer.js");e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},"./node_modules/lodash/_copyArray.js":function(e,t){e.exports=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(i--,s):void 0,u&&r(n[0],n[1],u)&&(s=i<3?void 0:s,i=1),t=Object(t);++o-1&&e%1==0&&e-1}},"./node_modules/lodash/_listCacheSet.js":function(e,t,n){var o=n("./node_modules/lodash/_assocIndexOf.js");e.exports=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},"./node_modules/lodash/_mapCacheClear.js":function(e,t,n){var o=n("./node_modules/lodash/_Hash.js"),r=n("./node_modules/lodash/_ListCache.js"),i=n("./node_modules/lodash/_Map.js");e.exports=function(){this.size=0,this.__data__={hash:new o,map:new(i||r),string:new o}}},"./node_modules/lodash/_mapCacheDelete.js":function(e,t,n){var o=n("./node_modules/lodash/_getMapData.js");e.exports=function(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}},"./node_modules/lodash/_mapCacheGet.js":function(e,t,n){var o=n("./node_modules/lodash/_getMapData.js");e.exports=function(e){return o(this,e).get(e)}},"./node_modules/lodash/_mapCacheHas.js":function(e,t,n){var o=n("./node_modules/lodash/_getMapData.js");e.exports=function(e){return o(this,e).has(e)}},"./node_modules/lodash/_mapCacheSet.js":function(e,t,n){var o=n("./node_modules/lodash/_getMapData.js");e.exports=function(e,t){var n=o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},"./node_modules/lodash/_nativeCreate.js":function(e,t,n){var o=n("./node_modules/lodash/_getNative.js")(Object,"create");e.exports=o},"./node_modules/lodash/_nativeKeys.js":function(e,t,n){var o=n("./node_modules/lodash/_overArg.js")(Object.keys,Object);e.exports=o},"./node_modules/lodash/_nativeKeysIn.js":function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},"./node_modules/lodash/_nodeUtil.js":function(e,t,n){(function(e){var o=n("./node_modules/lodash/_freeGlobal.js"),r=t&&!t.nodeType&&t,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===r&&o.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=u}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/lodash/_objectToString.js":function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},"./node_modules/lodash/_overArg.js":function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},"./node_modules/lodash/_overRest.js":function(e,t,n){var o=n("./node_modules/lodash/_apply.js"),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,u=r(i.length-t,0),a=Array(u);++s0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},"./node_modules/lodash/_stackClear.js":function(e,t,n){var o=n("./node_modules/lodash/_ListCache.js");e.exports=function(){this.__data__=new o,this.size=0}},"./node_modules/lodash/_stackDelete.js":function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},"./node_modules/lodash/_stackGet.js":function(e,t){e.exports=function(e){return this.__data__.get(e)}},"./node_modules/lodash/_stackHas.js":function(e,t){e.exports=function(e){return this.__data__.has(e)}},"./node_modules/lodash/_stackSet.js":function(e,t,n){var o=n("./node_modules/lodash/_ListCache.js"),r=n("./node_modules/lodash/_Map.js"),i=n("./node_modules/lodash/_MapCache.js");e.exports=function(e,t){var n=this.__data__;if(n instanceof o){var s=n.__data__;if(!r||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},"./node_modules/lodash/_strictIndexOf.js":function(e,t){e.exports=function(e,t,n){for(var o=n-1,r=e.length;++o-1:!!c&&o(e,t,n)>-1}},"./node_modules/lodash/isArguments.js":function(e,t,n){var o=n("./node_modules/lodash/_baseIsArguments.js"),r=n("./node_modules/lodash/isObjectLike.js"),i=Object.prototype,s=i.hasOwnProperty,u=i.propertyIsEnumerable,a=o(function(){return arguments}())?o:function(e){return r(e)&&s.call(e,"callee")&&!u.call(e,"callee")};e.exports=a},"./node_modules/lodash/isArray.js":function(e,t){var n=Array.isArray;e.exports=n},"./node_modules/lodash/isArrayLike.js":function(e,t,n){var o=n("./node_modules/lodash/isFunction.js"),r=n("./node_modules/lodash/isLength.js");e.exports=function(e){return null!=e&&r(e.length)&&!o(e)}},"./node_modules/lodash/isArrayLikeObject.js":function(e,t,n){var o=n("./node_modules/lodash/isArrayLike.js"),r=n("./node_modules/lodash/isObjectLike.js");e.exports=function(e){return r(e)&&o(e)}},"./node_modules/lodash/isBuffer.js":function(e,t,n){(function(e){var o=n("./node_modules/lodash/_root.js"),r=n("./node_modules/lodash/stubFalse.js"),i=t&&!t.nodeType&&t,s=i&&"object"==typeof e&&e&&!e.nodeType&&e,u=s&&s.exports===i?o.Buffer:void 0,a=(u?u.isBuffer:void 0)||r;e.exports=a}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/lodash/isElement.js":function(e,t,n){var o=n("./node_modules/lodash/isObjectLike.js"),r=n("./node_modules/lodash/isPlainObject.js");e.exports=function(e){return o(e)&&1===e.nodeType&&!r(e)}},"./node_modules/lodash/isFunction.js":function(e,t,n){var o=n("./node_modules/lodash/_baseGetTag.js"),r=n("./node_modules/lodash/isObject.js");e.exports=function(e){if(!r(e))return!1;var t=o(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"./node_modules/lodash/isLength.js":function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},"./node_modules/lodash/isMap.js":function(e,t,n){var o=n("./node_modules/lodash/_baseIsMap.js"),r=n("./node_modules/lodash/_baseUnary.js"),i=n("./node_modules/lodash/_nodeUtil.js"),s=i&&i.isMap,u=s?r(s):o;e.exports=u},"./node_modules/lodash/isObject.js":function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./node_modules/lodash/isObjectLike.js":function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},"./node_modules/lodash/isPlainObject.js":function(e,t,n){var o=n("./node_modules/lodash/_baseGetTag.js"),r=n("./node_modules/lodash/_getPrototype.js"),i=n("./node_modules/lodash/isObjectLike.js"),s=Function.prototype,u=Object.prototype,a=s.toString,l=u.hasOwnProperty,c=a.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=o(e))return!1;var t=r(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==c}},"./node_modules/lodash/isSet.js":function(e,t,n){var o=n("./node_modules/lodash/_baseIsSet.js"),r=n("./node_modules/lodash/_baseUnary.js"),i=n("./node_modules/lodash/_nodeUtil.js"),s=i&&i.isSet,u=s?r(s):o;e.exports=u},"./node_modules/lodash/isString.js":function(e,t,n){var o=n("./node_modules/lodash/_baseGetTag.js"),r=n("./node_modules/lodash/isArray.js"),i=n("./node_modules/lodash/isObjectLike.js");e.exports=function(e){return"string"==typeof e||!r(e)&&i(e)&&"[object String]"==o(e)}},"./node_modules/lodash/isSymbol.js":function(e,t,n){var o=n("./node_modules/lodash/_baseGetTag.js"),r=n("./node_modules/lodash/isObjectLike.js");e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==o(e)}},"./node_modules/lodash/isTypedArray.js":function(e,t,n){var o=n("./node_modules/lodash/_baseIsTypedArray.js"),r=n("./node_modules/lodash/_baseUnary.js"),i=n("./node_modules/lodash/_nodeUtil.js"),s=i&&i.isTypedArray,u=s?r(s):o;e.exports=u},"./node_modules/lodash/keys.js":function(e,t,n){var o=n("./node_modules/lodash/_arrayLikeKeys.js"),r=n("./node_modules/lodash/_baseKeys.js"),i=n("./node_modules/lodash/isArrayLike.js");e.exports=function(e){return i(e)?o(e):r(e)}},"./node_modules/lodash/keysIn.js":function(e,t,n){var o=n("./node_modules/lodash/_arrayLikeKeys.js"),r=n("./node_modules/lodash/_baseKeysIn.js"),i=n("./node_modules/lodash/isArrayLike.js");e.exports=function(e){return i(e)?o(e,!0):r(e)}},"./node_modules/lodash/merge.js":function(e,t,n){var o=n("./node_modules/lodash/_baseMerge.js"),r=n("./node_modules/lodash/_createAssigner.js")((function(e,t,n){o(e,t,n)}));e.exports=r},"./node_modules/lodash/stubArray.js":function(e,t){e.exports=function(){return[]}},"./node_modules/lodash/stubFalse.js":function(e,t){e.exports=function(){return!1}},"./node_modules/lodash/toFinite.js":function(e,t,n){var o=n("./node_modules/lodash/toNumber.js");e.exports=function(e){return e?(e=o(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},"./node_modules/lodash/toInteger.js":function(e,t,n){var o=n("./node_modules/lodash/toFinite.js");e.exports=function(e){var t=o(e),n=t%1;return t==t?n?t-n:t:0}},"./node_modules/lodash/toNumber.js":function(e,t,n){var o=n("./node_modules/lodash/_baseTrim.js"),r=n("./node_modules/lodash/isObject.js"),i=n("./node_modules/lodash/isSymbol.js"),s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var n=u.test(e);return n||a.test(e)?l(e.slice(2),n?2:8):s.test(e)?NaN:+e}},"./node_modules/lodash/toPlainObject.js":function(e,t,n){var o=n("./node_modules/lodash/_copyObject.js"),r=n("./node_modules/lodash/keysIn.js");e.exports=function(e){return o(e,r(e))}},"./node_modules/lodash/toString.js":function(e,t,n){var o=n("./node_modules/lodash/_baseToString.js");e.exports=function(e){return null==e?"":o(e)}},"./node_modules/lodash/trim.js":function(e,t,n){var o=n("./node_modules/lodash/_baseToString.js"),r=n("./node_modules/lodash/_baseTrim.js"),i=n("./node_modules/lodash/_castSlice.js"),s=n("./node_modules/lodash/_charsEndIndex.js"),u=n("./node_modules/lodash/_charsStartIndex.js"),a=n("./node_modules/lodash/_stringToArray.js"),l=n("./node_modules/lodash/toString.js");e.exports=function(e,t,n){if((e=l(e))&&(n||void 0===t))return r(e);if(!e||!(t=o(t)))return e;var c=a(e),d=a(t),f=u(c,d),h=s(c,d)+1;return i(c,f,h).join("")}},"./node_modules/lodash/values.js":function(e,t,n){var o=n("./node_modules/lodash/_baseValues.js"),r=n("./node_modules/lodash/keys.js");e.exports=function(e){return null==e?[]:o(e,r(e))}},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./src/namespace/cloudinary-core-shrinkwrap.js":function(e,t,n){"use strict";n.r(t),n.d(t,"ClientHintsMetaTag",(function(){return Qo})),n.d(t,"Cloudinary",(function(){return gr})),n.d(t,"Condition",(function(){return pt})),n.d(t,"Configuration",(function(){return wt})),n.d(t,"Expression",(function(){return ut})),n.d(t,"crc32",(function(){return s})),n.d(t,"FetchLayer",(function(){return Kt})),n.d(t,"HtmlTag",(function(){return Tn})),n.d(t,"ImageTag",(function(){return lo})),n.d(t,"Layer",(function(){return Et})),n.d(t,"PictureTag",(function(){return ko})),n.d(t,"SubtitlesLayer",(function(){return Nt})),n.d(t,"TextLayer",(function(){return Pt})),n.d(t,"Transformation",(function(){return Cn})),n.d(t,"utf8_encode",(function(){return i})),n.d(t,"Util",(function(){return r})),n.d(t,"VideoTag",(function(){return Ho}));var o={};n.r(o),n.d(o,"VERSION",(function(){return Y})),n.d(o,"CF_SHARED_CDN",(function(){return Q})),n.d(o,"OLD_AKAMAI_SHARED_CDN",(function(){return Z})),n.d(o,"AKAMAI_SHARED_CDN",(function(){return X})),n.d(o,"SHARED_CDN",(function(){return J})),n.d(o,"DEFAULT_TIMEOUT_MS",(function(){return ee})),n.d(o,"DEFAULT_POSTER_OPTIONS",(function(){return te})),n.d(o,"DEFAULT_VIDEO_SOURCE_TYPES",(function(){return ne})),n.d(o,"SEO_TYPES",(function(){return oe})),n.d(o,"DEFAULT_IMAGE_PARAMS",(function(){return re})),n.d(o,"DEFAULT_VIDEO_PARAMS",(function(){return ie})),n.d(o,"DEFAULT_VIDEO_SOURCES",(function(){return se})),n.d(o,"DEFAULT_EXTERNAL_LIBRARIES",(function(){return ue})),n.d(o,"PLACEHOLDER_IMAGE_MODES",(function(){return ae})),n.d(o,"ACCESSIBILITY_MODES",(function(){return le})),n.d(o,"URL_KEYS",(function(){return ce}));var r={};n.r(r),n.d(r,"getSDKAnalyticsSignature",(function(){return p})),n.d(r,"getAnalyticsOptions",(function(){return m})),n.d(r,"assign",(function(){return v.a})),n.d(r,"cloneDeep",(function(){return g.a})),n.d(r,"compact",(function(){return w.a})),n.d(r,"difference",(function(){return O.a})),n.d(r,"functions",(function(){return E.a})),n.d(r,"identity",(function(){return C.a})),n.d(r,"includes",(function(){return k.a})),n.d(r,"isArray",(function(){return F.a})),n.d(r,"isPlainObject",(function(){return T.a})),n.d(r,"isString",(function(){return R.a})),n.d(r,"merge",(function(){return z.a})),n.d(r,"contains",(function(){return k.a})),n.d(r,"isIntersectionObserverSupported",(function(){return G})),n.d(r,"isNativeLazyLoadSupported",(function(){return K})),n.d(r,"detectIntersection",(function(){return q})),n.d(r,"omit",(function(){return fe})),n.d(r,"allStrings",(function(){return pe})),n.d(r,"without",(function(){return ye})),n.d(r,"isNumberLike",(function(){return me})),n.d(r,"smartEscape",(function(){return _e})),n.d(r,"defaults",(function(){return ve})),n.d(r,"objectProto",(function(){return be})),n.d(r,"objToString",(function(){return ge})),n.d(r,"isObject",(function(){return je})),n.d(r,"funcTag",(function(){return we})),n.d(r,"reWords",(function(){return Oe})),n.d(r,"camelCase",(function(){return De})),n.d(r,"snakeCase",(function(){return Ee})),n.d(r,"convertKeys",(function(){return Be})),n.d(r,"withCamelCaseKeys",(function(){return Ce})),n.d(r,"withSnakeCaseKeys",(function(){return Se})),n.d(r,"base64Encode",(function(){return ke})),n.d(r,"base64EncodeURL",(function(){return xe})),n.d(r,"extractUrlParams",(function(){return Fe})),n.d(r,"patchFetchFormat",(function(){return Pe})),n.d(r,"optionConsume",(function(){return Te})),n.d(r,"isEmpty",(function(){return Ie})),n.d(r,"isAndroid",(function(){return Le})),n.d(r,"isEdge",(function(){return ze})),n.d(r,"isChrome",(function(){return Me})),n.d(r,"isSafari",(function(){return Ne})),n.d(r,"isElement",(function(){return N.a})),n.d(r,"isFunction",(function(){return U.a})),n.d(r,"trim",(function(){return W.a})),n.d(r,"getData",(function(){return Ve})),n.d(r,"setData",(function(){return Ue})),n.d(r,"getAttribute",(function(){return He})),n.d(r,"setAttribute",(function(){return We})),n.d(r,"removeAttribute",(function(){return $e})),n.d(r,"setAttributes",(function(){return Ge})),n.d(r,"hasClass",(function(){return Ke})),n.d(r,"addClass",(function(){return qe})),n.d(r,"getStyles",(function(){return Ye})),n.d(r,"cssExpand",(function(){return Qe})),n.d(r,"domStyle",(function(){return Ze})),n.d(r,"curCSS",(function(){return Xe})),n.d(r,"cssValue",(function(){return Je})),n.d(r,"augmentWidthOrHeight",(function(){return et})),n.d(r,"getWidthOrHeight",(function(){return nt})),n.d(r,"width",(function(){return ot}));var i=function(e){var t,n,o,r,i,s,u,a;if(null==e)return"";for(a="",i=void 0,o=void 0,0,i=o=0,u=(s=e+"").length,r=0;r127&&t<2048?String.fromCharCode(t>>6|192,63&t|128):String.fromCharCode(t>>12|224,t>>6&63|128,63&t|128),null!==n&&(o>i&&(a+=s.slice(i,o)),a+=n,i=o=r+1),r++;return o>i&&(a+=s.slice(i,u)),a};var s=function(e){var t,n,o,r;for("00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D",t=0,0,r=0,t^=-1,n=0,o=(e=i(e)).length;n>>8^"0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(9*r,8),n++;return(t^=-1)<0&&(t+=4294967296),t};function u(e,t,n){return t>>=0,n=String(void 0!==n?n:" "),e.length>t?String(e):((t-=e.length)>n.length&&(n+=function(e,t){var n="";for(;t>0;)n+=e,t--;return n}(n,t/n.length)),n.slice(0,t)+String(e))}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};try{var t=y(e.techVersion),n=h(e.sdkSemver),o=h(t),r=e.feature,i=e.sdkCode,s="A";return"".concat(s).concat(i).concat(n).concat(o).concat(r)}catch(u){return"E"}}function y(e){var t=e.split(".");return"".concat(t[0],".").concat(t[1])}function m(e){var t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,feature:"0"};return e.urlAnalytics?(e.accessibility&&(t.feature="D"),"lazy"===e.loading&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t):{}}var _=n("./node_modules/lodash/assign.js"),v=n.n(_),b=n("./node_modules/lodash/cloneDeep.js"),g=n.n(b),j=n("./node_modules/lodash/compact.js"),w=n.n(j),A=n("./node_modules/lodash/difference.js"),O=n.n(A),D=n("./node_modules/lodash/functions.js"),E=n.n(D),B=n("./node_modules/lodash/identity.js"),C=n.n(B),S=n("./node_modules/lodash/includes.js"),k=n.n(S),x=n("./node_modules/lodash/isArray.js"),F=n.n(x),P=n("./node_modules/lodash/isPlainObject.js"),T=n.n(P),I=n("./node_modules/lodash/isString.js"),R=n.n(I),L=n("./node_modules/lodash/merge.js"),z=n.n(L),M=n("./node_modules/lodash/isElement.js"),N=n.n(M),V=n("./node_modules/lodash/isFunction.js"),U=n.n(V),H=n("./node_modules/lodash/trim.js"),W=n.n(H);function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(){return"object"===("undefined"==typeof window?"undefined":$(window))&&window.IntersectionObserver}function K(){return"object"===("undefined"==typeof HTMLImageElement?"undefined":$(HTMLImageElement))&&HTMLImageElement.prototype.loading}function q(e,t){try{if(K()||!G())return void t();var n=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(t(),n.unobserve(e.target))}))}),{threshold:[0,.01]});n.observe(e)}catch(o){t()}}var Y="2.5.0",Q="d3jpl91pxevbkh.cloudfront.net",Z="cloudinary-a.akamaihd.net",X="res.cloudinary.com",J=X,ee=1e4,te={format:"jpg",resource_type:"video"},ne=["webm","mp4","ogv"],oe={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},re={resource_type:"image",transformation:[],type:"upload"},ie={fallback_content:"",resource_type:"video",source_transformation:{},source_types:ne,transformation:[],type:"upload"},se=[{type:"mp4",codecs:"hev1",transformations:{video_codec:"h265"}},{type:"webm",codecs:"vp9",transformations:{video_codec:"vp9"}},{type:"mp4",transformations:{video_codec:"auto"}},{type:"webm",transformations:{video_codec:"auto"}}],ue={seeThru:"https://unpkg.com/seethru@4/dist/seeThru.min.js"},ae={blur:[{effect:"blur:2000",quality:1,fetch_format:"auto"}],pixelate:[{effect:"pixelate",quality:1,fetch_format:"auto"}],"predominant-color-pixel":[{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:1,height:1,gravity:"north_east"},{fetch_format:"auto",quality:"auto"}],"predominant-color":[{variables:[["$currWidth","w"],["$currHeight","h"]]},{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:10,height:10,gravity:"north_east"},{width:"$currWidth",height:"$currHeight",crop:"fill"},{fetch_format:"auto",quality:"auto"}],vectorize:[{effect:"vectorize:3:0.1",fetch_format:"svg"}]},le={darkmode:"tint:75:black",brightmode:"tint:50:white",monochrome:"grayscale",colorblind:"assist_colorblind"},ce=["accessibility","api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","placeholder","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","signature","ssl_detected","type","url_suffix","use_root_path","version"];function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t){e=e||{};var n=Object.keys(e).filter((function(e){return!k()(t,e)})),o={};return n.forEach((function(t){return o[t]=e[t]})),o}var he,pe=function(e){return e.length&&e.every(R.a)},ye=function(e,t){return e.filter((function(e){return e!==t}))},me=function(e){return null!=e&&!isNaN(parseFloat(e))},_e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^a-zA-Z0-9_.\-\/:]+)/g;return e.replace(t,(function(e){return e.split("").map((function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})).join("")}))},ve=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g");e=e.replace(t,(function(e){return Expression.OPERATORS[e]}));var n="("+Object.keys(Expression.PREDEFINED_VARS).map((function(e){return":".concat(e,"|").concat(e)})).join("|")+")",o=new RegExp("".concat("(\\$_*[^_ ]+)","|").concat(n),"g");return(e=e.replace(o,(function(e){return Expression.PREDEFINED_VARS[e]||e}))).replace(/[ _]+/g,"_")}},{key:"variable",value:function(e,t){return new this(e).value(t)}},{key:"width",value:function(){return new this("width")}},{key:"height",value:function(){return new this("height")}},{key:"initialWidth",value:function(){return new this("initialWidth")}},{key:"initialHeight",value:function(){return new this("initialHeight")}},{key:"aspectRatio",value:function(){return new this("aspectRatio")}},{key:"initialAspectRatio",value:function(){return new this("initialAspectRatio")}},{key:"pageCount",value:function(){return new this("pageCount")}},{key:"faceCount",value:function(){return new this("faceCount")}},{key:"currentPage",value:function(){return new this("currentPage")}},{key:"tags",value:function(){return new this("tags")}},{key:"pageX",value:function(){return new this("pageX")}},{key:"pageY",value:function(){return new this("pageY")}}],(t=[{key:"serialize",value:function(){return Expression.normalize(this.expressions.join("_"))}},{key:"toString",value:function(){return this.serialize()}},{key:"getParent",value:function(){return this.parent}},{key:"setParent",value:function(e){return this.parent=e,this}},{key:"predicate",value:function(e,t,n){return null!=Expression.OPERATORS[t]&&(t=Expression.OPERATORS[t]),this.expressions.push("".concat(e,"_").concat(t,"_").concat(n)),this}},{key:"and",value:function(){return this.expressions.push("and"),this}},{key:"or",value:function(){return this.expressions.push("or"),this}},{key:"then",value:function(){return this.getParent().if(this.toString())}},{key:"height",value:function(e,t){return this.predicate("h",e,t)}},{key:"width",value:function(e,t){return this.predicate("w",e,t)}},{key:"aspectRatio",value:function(e,t){return this.predicate("ar",e,t)}},{key:"pageCount",value:function(e,t){return this.predicate("pc",e,t)}},{key:"faceCount",value:function(e,t){return this.predicate("fc",e,t)}},{key:"value",value:function(e){return this.expressions.push(e),this}}])&&it(e.prototype,t),n&&it(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();Expression.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},Expression.PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_duration:"idu",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialDuration:"idu",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},Expression.BOUNDRY="[ _]+";var ut=Expression;function at(e){return(at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lt(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:C.a;tn(this,e),this.name=t,this.shortName=n,this.process=o}),[{key:"set",value:function(e){return this.origValue=e,this}},{key:"serialize",value:function(){var e,t;return e=this.value(),t=F()(e)||T()(e)||R()(e)?!Ie(e):null!=e,null!=this.shortName&&t?"".concat(this.shortName,"_").concat(e):""}},{key:"value",value:function(){return this.process(this.origValue)}}],[{key:"norm_color",value:function(e){return null!=e?e.replace(/^#/,"rgb:"):void 0}},{key:"build_array",value:function(e){return null==e?[]:F()(e)?e:[e]}},{key:"process_video_params",value:function(e){var t;switch(e.constructor){case Object:return t="","codec"in e&&(t=e.codec,"profile"in e&&(t+=":"+e.profile,"level"in e&&(t+=":"+e.level,"b_frames"in e&&!1===e.b_frames&&(t+=":bframes_no")))),t;case String:return e;default:return null}}}])}(),un=function(e){function t(e,n){var o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tn(this,t),(o=qt(this,t,[e,n,i])).sep=r,o}return Xt(t,e),on(t,[{key:"serialize",value:function(){if(null!=this.shortName){var e=this.value();if(Ie(e))return"";if(R()(e))return"".concat(this.shortName,"_").concat(e);var t=e.map((function(e){return U()(e.serialize)?e.serialize():e})).join(this.sep);return"".concat(this.shortName,"_").concat(t)}return""}},{key:"value",value:function(){var e=this;return F()(this.origValue)?this.origValue.map((function(t){return e.process(t)})):this.process(this.origValue)}},{key:"set",value:function(e){return null==e||F()(e)?Yt(Zt(t.prototype),"set",this).call(this,e):Yt(Zt(t.prototype),"set",this).call(this,[e])}}])}(sn),an=function(e){function t(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tn(this,t),(n=qt(this,t,[e,o,i])).sep=r,n}return Xt(t,e),on(t,[{key:"serialize",value:function(){var e=this,t="",n=this.value();if(Ie(n))return t;if(pe(n)){var o=n.join(this.sep);Ie(o)||(t="".concat(this.shortName,"_").concat(o))}else t=n.map((function(t){return R()(t)&&!Ie(t)?"".concat(e.shortName,"_").concat(t):U()(t.serialize)?t.serialize():T()(t)&&!Ie(t)?new Cn(t).serialize():void 0})).filter((function(e){return e}));return t}},{key:"set",value:function(e){return this.origValue=e,F()(this.origValue)?Yt(Zt(t.prototype),"set",this).call(this,this.origValue):Yt(Zt(t.prototype),"set",this).call(this,[this.origValue])}}])}(sn),ln=function(e){function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.norm_range_value;return tn(this,t),qt(this,t,[e,n,o])}return Xt(t,e),on(t,null,[{key:"norm_range_value",value:function(e){var t=String(e).match(new RegExp("^(([0-9]*)\\.([0-9]+)|([0-9]+))([%pP])?$"));if(t){var n=null!=t[5]?"p":"";e=(t[1]||t[4])+n}return ut.normalize(e)}}])}(sn),cn=function(e){function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C.a;return tn(this,t),qt(this,t,[e,n,o])}return Xt(t,e),on(t,[{key:"serialize",value:function(){return this.value()}}])}(sn),dn=function(e){function t(){return tn(this,t),qt(this,t,arguments)}return Xt(t,e),on(t,[{key:"value",value:function(){if(null==this.origValue)return"";var e;if(this.origValue instanceof Et)e=this.origValue;else if(T()(this.origValue)){var t=Ce(this.origValue);e="text"===t.resourceType||null!=t.text?new Pt(t):"subtitles"===t.resourceType?new Nt(t):"fetch"===t.resourceType||null!=t.url?new Kt(t):new Et(t)}else e=R()(this.origValue)?/^fetch:.+/.test(this.origValue)?new Kt(this.origValue.substr(6)):this.origValue:"";return e.toString()}}],[{key:"textStyle",value:function(e){return new Pt(e).textStyleIdentifier()}}])}(sn);function fn(e,t,n){return t=hn(t),function(e,t){if(t&&("object"===_n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],hn(e).constructor):t.apply(e,n))}function hn(e){return(hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pn(e,t){return(pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function yn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,s,u=[],a=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(o=i.call(n)).done)&&(u.push(o.value),u.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{if(!a&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw r}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n1?t-1:0),o=1;o3&&void 0!==arguments[3]?arguments[3]:":",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return i=Dn(arguments),o[t]=new un(t,n,r,i).set(e),this},this.transformationParam=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return i=Dn(arguments),o[t]=new an(t,n,r,i).set(e),this},this.layerParam=function(e,t,n){return o[t]=new dn(t,n).set(e),this},this.getValue=function(e){var t=o[e]&&o[e].value();return null!=t?t:this.otherOptions[e]},this.get=function(e){return o[e]},this.remove=function(e){var t;switch(!1){case null==o[e]:return t=o[e],delete o[e],t.origValue;case null==this.otherOptions[e]:return t=this.otherOptions[e],delete this.otherOptions[e],t;default:return null}},this.keys=function(){var e;return function(){var t;for(e in t=[],o)null!=e&&t.push(e.match(On)?e:Ee(e));return t}().sort()},this.toPlainObject=function(){var e,t,n;for(t in e={},o)e[t]=o[t].value(),T()(e[t])&&(e[t]=g()(e[t]));return Ie(this.chained)||((n=this.chained.map((function(e){return e.toPlainObject()}))).push(e),e={transformation:n}),e},this.chain=function(){var e;return 0!==Object.getOwnPropertyNames(o).length&&(e=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(e)),this},this.resetTransformations=function(){return o={},this},this.otherOptions={},this.chained=[],this.fromOptions(t)}return gn(e,[{key:"fromOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t instanceof e)this.fromTransformation(t);else for(var n in(R()(t)||F()(t))&&(t={transformation:t}),(t=g()(t,(function(t){if(t instanceof e||t instanceof Layer)return new t.clone}))).if&&(this.set("if",t.if),delete t.if),t){var o=t[n];null!=o&&(n.match(On)?"$attr"!==n&&this.set("variable",n,o):this.set(n,o))}return this}},{key:"fromTransformation",value:function(t){var n=this;return t instanceof e&&t.keys().forEach((function(e){return n.set(e,t.get(e).origValue)})),this}},{key:"set",value:function(e){var t;t=De(e);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r=1&&null==n.width&&(n.width=s),parseFloat(t)>=1&&null==n.height&&(n.height=t)),n}},{key:"toHtml",value:function(){var e;return null!=(e=this.getParent())&&"function"==typeof e.toHtml?e.toHtml():void 0}},{key:"toString",value:function(){return this.serialize()}},{key:"clone",value:function(){return new this.constructor(this.toOptions(!0))}}],[{key:"listNames",value:function(){return Bn.methods}},{key:"isValidParamName",value:function(e){return Bn.methods.indexOf(De(e))>=0}}])}(),On=/^\$[a-zA-Z0-9]+$/;function Dn(e){var t;return t=null!=e?e[e.length-1]:void 0,U()(t)?t:void 0}function En(e){var t=e.function_type,n=e.source;return"remote"===t?[t,btoa(n)].join(":"):"wasm"===t?[t,n].join(":"):void 0}An.prototype.trans_separator="/",An.prototype.param_separator=",";var Bn=function(e){function Transformation(e){return vn(this,Transformation),fn(this,Transformation,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pn(e,t)}(Transformation,e),gn(Transformation,[{key:"angle",value:function(e){return this.arrayParam(e,"angle","a",".",ut.normalize)}},{key:"audioCodec",value:function(e){return this.param(e,"audio_codec","ac")}},{key:"audioFrequency",value:function(e){return this.param(e,"audio_frequency","af")}},{key:"aspectRatio",value:function(e){return this.param(e,"aspect_ratio","ar",ut.normalize)}},{key:"background",value:function(e){return this.param(e,"background","b",sn.norm_color)}},{key:"bitRate",value:function(e){return this.param(e,"bit_rate","br")}},{key:"border",value:function(e){return this.param(e,"border","bo",(function(e){return T()(e)?(e=v()({},{color:"black",width:2},e),"".concat(e.width,"px_solid_").concat(sn.norm_color(e.color))):e}))}},{key:"color",value:function(e){return this.param(e,"color","co",sn.norm_color)}},{key:"colorSpace",value:function(e){return this.param(e,"color_space","cs")}},{key:"crop",value:function(e){return this.param(e,"crop","c")}},{key:"customFunction",value:function(e){return this.param(e,"custom_function","fn",(function(){return En(e)}))}},{key:"customPreFunction",value:function(e){if(!this.get("custom_function"))return this.rawParam(e,"custom_function","",(function(){return(e=En(e))?"fn_pre:".concat(e):e}))}},{key:"defaultImage",value:function(e){return this.param(e,"default_image","d")}},{key:"delay",value:function(e){return this.param(e,"delay","dl")}},{key:"density",value:function(e){return this.param(e,"density","dn")}},{key:"duration",value:function(e){return this.rangeParam(e,"duration","du")}},{key:"dpr",value:function(e){return this.param(e,"dpr","dpr",(function(e){return(null!=(e=e.toString())?e.match(/^\d+$/):void 0)?e+".0":ut.normalize(e)}))}},{key:"effect",value:function(e){return this.arrayParam(e,"effect","e",":",ut.normalize)}},{key:"else",value:function(){return this.if("else")}},{key:"endIf",value:function(){return this.if("end")}},{key:"endOffset",value:function(e){return this.rangeParam(e,"end_offset","eo")}},{key:"fallbackContent",value:function(e){return this.param(e,"fallback_content")}},{key:"fetchFormat",value:function(e){return this.param(e,"fetch_format","f")}},{key:"format",value:function(e){return this.param(e,"format")}},{key:"flags",value:function(e){return this.arrayParam(e,"flags","fl",".")}},{key:"gravity",value:function(e){return this.param(e,"gravity","g")}},{key:"fps",value:function(e){return this.param(e,"fps","fps",(function(e){return R()(e)?e:F()(e)?e.join("-"):e}))}},{key:"height",value:function(e){var t=this;return this.param(e,"height","h",(function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?ut.normalize(e):null}))}},{key:"htmlHeight",value:function(e){return this.param(e,"html_height")}},{key:"htmlWidth",value:function(e){return this.param(e,"html_width")}},{key:"if",value:function(){var e,t,n,o,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(i){case"else":return this.chain(),this.param(i,"if","if");case"end":for(this.chain(),e=n=this.chained.length-1;n>=0&&"end"!==(t=this.chained[e].getValue("if"))&&(null==t||(o=Transformation.new().if(t),this.chained[e].remove("if"),r=this.chained[e],this.chained[e]=Transformation.new().transformation([o,r]),"else"===t));e=n+=-1);return this.param(i,"if","if");case"":return pt.new().setParent(this);default:return this.param(i,"if","if",(function(e){return pt.new(e).toString()}))}}},{key:"keyframeInterval",value:function(e){return this.param(e,"keyframe_interval","ki")}},{key:"ocr",value:function(e){return this.param(e,"ocr","ocr")}},{key:"offset",value:function(e){var t,n,o=yn(U()(null!=e?e.split:void 0)?e.split(".."):F()(e)?e:[null,null],2);if(n=o[0],t=o[1],null!=n&&this.startOffset(n),null!=t)return this.endOffset(t)}},{key:"opacity",value:function(e){return this.param(e,"opacity","o",ut.normalize)}},{key:"overlay",value:function(e){return this.layerParam(e,"overlay","l")}},{key:"page",value:function(e){return this.param(e,"page","pg")}},{key:"poster",value:function(e){return this.param(e,"poster")}},{key:"prefix",value:function(e){return this.param(e,"prefix","p")}},{key:"quality",value:function(e){return this.param(e,"quality","q",ut.normalize)}},{key:"radius",value:function(e){return this.arrayParam(e,"radius","r",":",ut.normalize)}},{key:"rawTransformation",value:function(e){return this.rawParam(e,"raw_transformation")}},{key:"size",value:function(e){var t,n;if(U()(null!=e?e.split:void 0)){var o=yn(e.split("x"),2);return n=o[0],t=o[1],this.width(n),this.height(t)}}},{key:"sourceTypes",value:function(e){return this.param(e,"source_types")}},{key:"sourceTransformation",value:function(e){return this.param(e,"source_transformation")}},{key:"startOffset",value:function(e){return this.rangeParam(e,"start_offset","so")}},{key:"streamingProfile",value:function(e){return this.param(e,"streaming_profile","sp")}},{key:"transformation",value:function(e){return this.transformationParam(e,"transformation","t")}},{key:"underlay",value:function(e){return this.layerParam(e,"underlay","u")}},{key:"variable",value:function(e,t){return this.param(t,e,e)}},{key:"variables",value:function(e){return this.arrayParam(e,"variables")}},{key:"videoCodec",value:function(e){return this.param(e,"video_codec","vc",sn.process_video_params)}},{key:"videoSampling",value:function(e){return this.param(e,"video_sampling","vs")}},{key:"width",value:function(e){var t=this;return this.param(e,"width","w",(function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?ut.normalize(e):null}))}},{key:"x",value:function(e){return this.param(e,"x","x",ut.normalize)}},{key:"y",value:function(e){return this.param(e,"y","y",ut.normalize)}},{key:"zoom",value:function(e){return this.param(e,"zoom","z",ut.normalize)}}],[{key:"new",value:function(e){return new Transformation(e)}}])}(An);Bn.methods=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","customFunction","customPreFunction","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","ocr","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],Bn.PARAM_NAMES=Bn.methods.map(Ee).concat(wt.CONFIG_PARAMS);var Cn=Bn;function Sn(e){return(Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kn(e,t){for(var n=0;n0&&(e+=" "+t),e+">"}},{key:"closeTag",value:function(){return"")}},{key:"toHtml",value:function(){return this.openTag()+this.content()+this.closeTag()}},{key:"toDOM",value:function(){var e,t,n,o;if(!U()("undefined"!=typeof document&&null!==document?document.createElement:void 0))throw"Can't create DOM if document is not present!";for(t in e=document.createElement(this.name),n=this.attributes())o=n[t],e.setAttribute(t,o);return e}}])&&kn(e.prototype,t),n&&kn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),In=["placeholder","accessibility"];function Rn(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ln(e){return!!e&&!!e.match(/^https?:\//)}function zn(e,t){if(t.cloud_name&&"/"===t.cloud_name[0])return"/res"+t.cloud_name;var n="http://",o="",r="res",i=".cloudinary.com",u="/"+t.cloud_name;return t.protocol&&(n=t.protocol+"//"),t.private_cdn&&(o=t.cloud_name+"-",u=""),t.cdn_subdomain&&(r="res-"+function(e){return s(e)%5+1}(e)),t.secure?(n="https://",!1===t.secure_cdn_subdomain&&(r="res"),null!=t.secure_distribution&&t.secure_distribution!==Z&&t.secure_distribution!==J&&(o="",r="",i=t.secure_distribution)):t.cname&&(n="http://",o="",r=t.cdn_subdomain?"a"+(s(e)%5+1)+".":"",i=t.cname),[n,o,r,i,u].join("")}function Mn(e){return encodeURIComponent(e).replace(/%3A/g,":").replace(/%2F/g,"/")}function Nn(e){var t=e.cloud_name,n=e.url_suffix;return t?n&&n.match(/[\.\/]/)?"url_suffix should not include . or /":void 0:"Unknown cloud_name"}function Vn(e,t){var n,o,r=t.type;return Ln(e)||"fetch"!==r?e:(n=e,o=document.location.protocol+"//"+document.location.host,"?"===n[0]?o+=document.location.pathname:"/"!==n[0]&&(o+=document.location.pathname.replace(/\/[^\/]*$/,"/")),o+n)}function Un(e,t){if(Ln(e)&&("upload"===t.type||"asset"===t.type))return e;var n=function(e,t){var n=t.force_version||void 0===t.force_version,o=e.indexOf("/")<0||e.match(/^v[0-9]+/)||Ln(e)||t.version;return n&&!o&&(t.version=1),t.version?"v".concat(t.version):""}(e,t),o=function(e){var t=e||{},n=t.placeholder,o=t.accessibility,r=Rn(t,In),i=new Cn(r);return o&&le[o]&&i.chain().effect(le[o]),n&&("predominant-color"===n&&i.getValue("width")&&i.getValue("height")&&(n+="-pixel"),(ae[n]||ae.blur).forEach((function(e){return i.chain().transformation(e)}))),i.serialize()}(t),r=zn(e,t),i=function(e){var t=e.signature,n=!t||0===t.indexOf("s--")&&"--"===t.substr(-2);return delete e.signature,n?t:"s--".concat(t,"--")}(t),s=function(e){var t,n=e.resource_type,o=void 0===n?"image":n,r=e.type,i=void 0===r?"upload":r,s=e.url_suffix,u=e.use_root_path,a=e.shorten,l=o;if(T()(l)&&(l=(t=l).resource_type,i=t.type,a=t.shorten),null==i&&(i="upload"),null!=s&&(l=oe["".concat(l,"/").concat(i)],i=null,null==l))throw new Error("URL Suffix only supported for ".concat(Object.keys(oe).join(", ")));if(u){if(("image"!==l||"upload"!==i)&&"images"!==l)throw new Error("Root path only supported for image/upload");l=null,i=null}return a&&"image"===l&&"upload"===i&&(l="iu",i=null),[l,i].join("/")}(t);return e=function(e,t){if(Ln(e))e=Mn(e);else{try{e=decodeURIComponent(e)}catch(n){}e=Mn(e),t.url_suffix&&(e=e+"/"+t.url_suffix),t.format&&(t.trust_public_id||(e=e.replace(/\.(jpg|png|gif|webp)$/,"")),e=e+"."+t.format)}return e}(e,t),w()([r,s,i,o,n,e]).join("/").replace(/([^:])\/+/g,"$1/").replace(" ","%20")}function Hn(e,t){return e instanceof Cn&&(e=e.toOptions()),"fetch"===(e=ve({},e,t,re)).type&&(e.fetch_format=e.fetch_format||e.format),e}function Wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return e;e=Vn(e,t=Hn(t,n));var o=Nn(t);if(o)throw o;var r=Un(e,t);if(t.urlAnalytics){var i=m(t),s=p(i),u="?";r.indexOf("?")>=0&&(u="&"),r="".concat(r).concat(u,"_a=").concat(s)}if(t.auth_token){var a=r.indexOf("?")>=0?"&":"?";r="".concat(r).concat(a,"__cld_token__=").concat(t.auth_token)}return r}function $n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,s,u=[],a=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(o=i.call(n)).done)&&(u.push(o.value),u.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{if(!a&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw r}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);nr)throw"min_width must be less than max_width";if(i<=0)throw"max_images must be a positive integer";1===i&&(o=r);for(var s=Math.ceil((r-o)/Math.max(i-1,1)),u=o;u3&&void 0!==arguments[3]?arguments[3]:{},r=Fe(o);return n=n||o,r.raw_transformation=new Cn([z.a({},n),{crop:"scale",width:t}]).toString(),Wn(e,r)}function Qn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Kn(t)}function Zn(e,t,n,o){return Pe(o=g.a(o)),t.map((function(t){return"".concat(Yn(e,t,n,o)," ").concat(t,"w")})).join(", ")}function Xn(e){return null==e?"":e.map((function(e){return"(max-width: ".concat(e,"px) ").concat(e,"px")})).join(", ")}function Jn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r={};if(qn(n))return r;var i=!t.sizes&&!0===n.sizes,s=!t.srcset;if(s||i){var u=Qn(e,n,o);if(s){var a=n.transformation,l=Zn(e,u,a,o);qn(l)||(r.srcset=l)}if(i){var c=Xn(u);qn(c)||(r.sizes=c)}}return r}function eo(e){return(eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function to(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function no(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return to(this,ImageTag),ro(this,ImageTag,["img",e,t])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ao(e,t)}(ImageTag,e),t=ImageTag,(n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var e,t,n;e=io(uo(ImageTag.prototype),"attributes",this).call(this)||{},t=this.getOptions();var o=this.getOption("attributes")||{},r=this.getOption("srcset")||o.srcset,i={};return R()(r)?i.srcset=r:i=Jn(this.publicId,o,r,t),Ie(i)||(delete e.width,delete e.height),z()(e,i),null==e[n=t.responsive&&!t.client_hints?"data-src":"src"]&&(e[n]=Wn(this.publicId,this.getOptions())),e}}])&&no(t.prototype,n),o&&no(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}(Tn);function co(e){return(co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ho(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return fo(this,t),yo(this,t,["source",e,n])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bo(e,t)}(t,e),n=t,(o=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var e=this.getOption("srcset"),n=mo(vo(t.prototype),"attributes",this).call(this)||{},o=this.getOptions();return z()(n,Jn(this.publicId,n,e,o)),n.srcset||(n.srcset=Wn(this.publicId,o)),!n.media&&o.media&&(n.media=function(e){var t=[];return null!=e&&(null!=e.min_width&&t.push("(min-width: ".concat(e.min_width,"px)")),null!=e.max_width&&t.push("(max-width: ".concat(e.max_width,"px)"))),t.join(" and ")}(o.media)),n}}])&&ho(n.prototype,o),r&&ho(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(Tn);function jo(e){return(jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ao(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return wo(this,PictureTag),(t=Do(this,PictureTag,["picture",e,n])).widthList=o,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&So(e,t)}(PictureTag,e),t=PictureTag,(n=[{key:"content",value:function(){var e=this;return this.widthList.map((function(t){var n=t.min_width,o=t.max_width,r=t.transformation,i=e.getOptions(),s=new Cn(i);return s.chain().fromOptions("string"==typeof r?{raw_transformation:r}:r),(i=Fe(i)).media={min_width:n,max_width:o},i.transformation=s,new go(e.publicId,i).toHtml()})).join("")+new lo(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var e=Eo(Co(PictureTag.prototype),"attributes",this).call(this);return delete e.width,delete e.height,e}},{key:"closeTag",value:function(){return""}}])&&Ao(t.prototype,n),o&&Ao(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}(Tn);function xo(e){return(xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Po(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return Fo(this,VideoTag),t=ve({},t,ie),Io(this,VideoTag,["video",e.replace(/\.(mp4|ogv|webm)$/,""),t])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mo(e,t)}(VideoTag,e),t=VideoTag,(n=[{key:"setSourceTransformation",value:function(e){return this.transformation().sourceTransformation(e),this}},{key:"setSourceTypes",value:function(e){return this.transformation().sourceTypes(e),this}},{key:"setPoster",value:function(e){return this.transformation().poster(e),this}},{key:"setFallbackContent",value:function(e){return this.transformation().fallbackContent(e),this}},{key:"content",value:function(){var e=this,t=this.transformation().getValue("source_types"),n=this.transformation().getValue("source_transformation"),o=this.transformation().getValue("fallback_content"),r=this.getOption("sources"),i=[];return F()(r)&&!Ie(r)?i=r.map((function(t){var n=Wn(e.publicId,ve({},t.transformations||{},{resource_type:"video",format:t.type}),e.getOptions());return e.createSourceTag(n,t.type,t.codecs)})):(Ie(t)&&(t=Vo),F()(t)&&(i=t.map((function(t){var o=Wn(e.publicId,ve({},n[t]||{},{resource_type:"video",format:t}),e.getOptions());return e.createSourceTag(o,t)})))),i.join("")+o}},{key:"attributes",value:function(){var e=this.getOption("source_types"),t=this.getOption("poster");if(void 0===t&&(t={}),T()(t)){var n=null!=t.public_id?re:Uo;t=Wn(t.public_id||this.publicId,ve({},t,n,this.getOptions()))}var o=Ro(zo(VideoTag.prototype),"attributes",this).call(this)||{};return o=fe(o,No),!Ie(this.getOption("sources"))||Ie(e)||F()(e)||(o.src=Wn(this.publicId,this.getOptions(),{resource_type:"video",format:e})),null!=t&&(o.poster=t),o}},{key:"createSourceTag",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=null;if(!Ie(t)){var r="ogv"===t?"ogg":t;if(o="video/"+r,!Ie(n)){var i=F()(n)?n.join(", "):n;o+="; codecs="+i}}return""}}])&&Po(t.prototype,n),o&&Po(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}(Tn);function Wo(e){return(Wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $o(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:100;return t*Math.ceil(e/t)},cr=function(e,t){var n;for(n=e.length-2;n>=0&&e[n]>=t;)n--;return e[n+1]},lr=function(e,t,n,o){var r,i,s,u;return!(u=null!=(r=null!=(i=null!=(s=o.responsive_use_breakpoints)?s:o.responsive_use_stoppoints)?i:this.config("responsive_use_breakpoints"))?r:this.config("responsive_use_stoppoints"))||"resize"===u&&!o.resizing?t:this.calc_breakpoint(e,t,n)},fr=function(e){var t,n;for(t=0;(e=null!=e?e.parentNode:void 0)instanceof Element&&!t;)n=window.getComputedStyle(e),/^inline/.test(n.display)||(t=ot(e));return t},pr=function(e,t){return e.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(t))},hr=function(e,t){var n;return e>(n=Ve(t,"width")||0)&&(n=e,Ue(t,"width",e)),n};var br=function(){return e=function Cloudinary(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Cloudinary),this.devicePixelRatioCache={},this.responsiveConfig={},this.responsiveResizeInitialized=!1,t=new wt(e),this.config=function(e,n){return t.config(e,n)},this.fromDocument=function(){return t.fromDocument(),this},this.fromEnvironment=function(){return t.fromEnvironment(),this},this.init=function(){return t.init(),this}},n=[{key:"new",value:function(e){return new this(e)}}],(t=[{key:"url",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Wn(e,t,this.config())}},{key:"video_url",value:function(e,t){return t=v()({resource_type:"video"},t),this.url(e,t)}},{key:"video_thumbnail_url",value:function(e,t){return t=v()({},te,t),this.url(e,t)}},{key:"transformation_string",value:function(e){return new Cn(e).serialize()}},{key:"image",value:function(e){var t,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=this.imageTag(e,r),t=null!=(o=null!=r.client_hints?r.client_hints:this.config("client_hints"))&&o,null!=r.src||t||n.setAttr("src",""),n=n.toDOM(),t||(Ue(n,"src-cache",this.url(e,r)),this.cloudinary_update(n,r)),n}},{key:"imageTag",value:function(e,t){var n;return(n=new lo(e,this.config())).transformation().fromOptions(t),n}},{key:"pictureTag",value:function(e,t,n){var o;return(o=new ko(e,this.config(),n)).transformation().fromOptions(t),o}},{key:"sourceTag",value:function(e,t){var n;return(n=new go(e,this.config())).transformation().fromOptions(t),n}},{key:"video_thumbnail",value:function(e,t){return this.image(e,z()({},te,t))}},{key:"facebook_profile_image",value:function(e,t){return this.image(e,v()({type:"facebook"},t))}},{key:"twitter_profile_image",value:function(e,t){return this.image(e,v()({type:"twitter"},t))}},{key:"twitter_name_profile_image",value:function(e,t){return this.image(e,v()({type:"twitter_name"},t))}},{key:"gravatar_image",value:function(e,t){return this.image(e,v()({type:"gravatar"},t))}},{key:"fetch_image",value:function(e,t){return this.image(e,v()({type:"fetch"},t))}},{key:"video",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videoTag(e,t).toHtml()}},{key:"videoTag",value:function(e,t){return t=ve({},t,this.config()),new Ho(e,t)}},{key:"sprite_css",value:function(e,t){return t=v()({type:"sprite"},t),e.match(/.css$/)||(t.format="css"),this.url(e,t)}},{key:"responsive",value:function(e){var t,n,o,r,i,s=this,u=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.responsiveConfig=z()(this.responsiveConfig||{},e),r=null!=(t=this.responsiveConfig.responsive_class)?t:this.config("responsive_class"),u&&this.cloudinary_update("img.".concat(r,", img.cld-hidpi"),this.responsiveConfig),(null==(n=null!=(o=this.responsiveConfig.responsive_resize)?o:this.config("responsive_resize"))||n)&&!this.responsiveResizeInitialized){this.responsiveConfig.resizing=this.responsiveResizeInitialized=!0,i=null;var a=function(){var e,t,n,o,u,a;return e=null!=(t=null!=(n=s.responsiveConfig.responsive_debounce)?n:s.config("responsive_debounce"))?t:100,o=function(){i&&(clearTimeout(i),i=null)},u=function(){return s.cloudinary_update("img.".concat(r),s.responsiveConfig)},a=function(){return o(),u()},e?(o(),void(i=setTimeout(a,e))):u()};return window.addEventListener("resize",a),function(){return window.removeEventListener("resize",a)}}}},{key:"calc_breakpoint",value:function(e,t,n){var o=Ve(e,"breakpoints")||Ve(e,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||dr;return U()(o)?o(t,n):(R()(o)&&(o=o.split(",").map((function(e){return parseInt(e)})).sort((function(e,t){return e-t}))),cr(o,t))}},{key:"calc_stoppoint",value:function(e,t,n){return this.calc_breakpoint(e,t,n)}},{key:"device_pixel_ratio",value:function(e){e=null==e||e;var t=("undefined"!=typeof window&&null!==window?window.devicePixelRatio:void 0)||1;e&&(t=Math.ceil(t)),(t<=0||NaN===t)&&(t=1);var n=t.toString();return n.match(/^\d+$/)&&(n+=".0"),n}},{key:"processImageTags",value:function(e,t){if(Ie(e))return this;t=ve({},t||{},this.config());var n=e.filter((function(e){return/^img$/i.test(e.tagName)})).map((function(e){var n=v()({width:e.getAttribute("width"),height:e.getAttribute("height"),src:e.getAttribute("src")},t),o=n.source||n.src;delete n.source,delete n.src;var r=new Cn(n).toHtmlAttributes();return Ue(e,"src-cache",Wn(o,n)),e.setAttribute("width",r.width),e.setAttribute("height",r.height),e}));return this.cloudinary_update(n,t),this}},{key:"cloudinary_update",value:function(e,t){var n,o,r,i,s=this;if(null===e)return this;null==t&&(t={});var u,a=null!=t.responsive?t.responsive:this.config("responsive");e=function(e){return F()(e)?e:"NodeList"===e.constructor.name?Zo(e):R()(e)?Array.prototype.slice.call(document.querySelectorAll(e),0):[e]}(e),u=this.responsiveConfig&&null!=this.responsiveConfig.responsive_class?this.responsiveConfig.responsive_class:null!=t.responsive_class?t.responsive_class:this.config("responsive_class");var l=null!=t.round_dpr?t.round_dpr:this.config("round_dpr");return e.forEach((function(c){if(/img/i.test(c.tagName)){var d=!0;if(a&&qe(c,u),!Ie(o=Ve(c,"src-cache")||Ve(c,"src"))){o=pr.call(s,o,l),Tn.isResponsive(c,u)&&(0!==(n=fr(c))?(/w_auto:breakpoints/.test(o)?(i=hr(n,c))?o=o.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:".concat(i)):d=!1:(r=/w_auto(:(\d+))?/.exec(o))&&(i=lr.call(s,c,n,r[2],t),(i=hr(i,c))?o=o.replace(/w_auto[^,\/]*/g,"w_".concat(i)):d=!1),$e(c,"width"),t.responsive_preserve_height||$e(c,"height")):d=!1);var f="lazy"===t.loading&&!s.isNativeLazyLoadSupported()&&s.isLazyLoadSupported()&&!e[0].getAttribute("src");(d||f)&&s.setAttributeIfExists(e[0],"width","data-width"),d&&!f&&We(c,"src",o)}}})),this}},{key:"setAttributeIfExists",value:function(e,t,n){var o=e.getAttribute(n);null!=o&&We(e,t,o)}},{key:"isLazyLoadSupported",value:function(){return window&&"IntersectionObserver"in window}},{key:"isNativeLazyLoadSupported",value:function(){return"loading"in HTMLImageElement.prototype}},{key:"transformation",value:function(e){return Cn.new(this.config()).fromOptions(e).setParent(this)}},{key:"injectTransparentVideoElement",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(r,i){e||i({status:"error",message:"Expecting htmlElContainer to be HTMLElement"}),tr(o);var s=n.video_url(t,o);yr().then((function(u){var a;u?(a=Jo(e,n,t,o),r(e)):a=ar(e,s,o),a.then((function(){r(e)})).catch((function(e){var t=e.status,n=e.message;i({status:t,message:n})}))})).catch((function(e){var t=e.status,n=e.message;i({status:t,message:n})}))}))}}])&&_r(e.prototype,t),n&&_r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();v()(br,o);var gr=br;t.default={ClientHintsMetaTag:Qo,Cloudinary:gr,Condition:pt,Configuration:wt,Expression:ut,crc32:s,FetchLayer:Kt,HtmlTag:Tn,ImageTag:lo,Layer:Et,PictureTag:ko,SubtitlesLayer:Nt,TextLayer:Pt,Transformation:Cn,utf8_encode:i,Util:r,VideoTag:Ho}}})})); \ No newline at end of file diff --git a/node_modules/cloudinary-core/cloudinary-core.d.ts b/node_modules/cloudinary-core/cloudinary-core.d.ts new file mode 100644 index 0000000..0473594 --- /dev/null +++ b/node_modules/cloudinary-core/cloudinary-core.d.ts @@ -0,0 +1,954 @@ +export as namespace cloudinary; + +/****************************** Constants *************************************/ +type CropMode = string | "scale" | "fit" | "limit" | "mfit" | "fill" | "lfill" | "pad" | "lpad" | "mpad" | "crop" | "thumb" | "imagga_crop" | "imagga_scale"; +type CustomFunctionType = "wasm" | "remote"; +interface CustomFunction { + function_type: CustomFunctionType; + source: string; +} +type Gravity = string | "north_west" | "north" | "north_east" | "west" | "center" | "east" | "south_west" | "south" | "south_east" | "xy_center" | + "face" | "face:center" | "face:auto" | "faces" | "faces:center" | "faces:auto" | "body" | "body:face" | "adv_face" | "adv_faces" | "adv_eyes" | + "custom" | "custom:face" | "custom:faces" | "custom:adv_face" | "custom:adv_faces" | + "auto" | "auto:adv_face" | "auto:adv_faces" | "auto:adv_eyes" | "auto:body" | "auto:face" | "auto:faces" | "auto:custom_no_override" | "auto:none"; +type ImageFileExtension = string | "jpg" | "jpe" | "jpeg" | "jpc" | "jp2" | "j2k" | "wdp" | "jxr" | "hdp" | "png" | "gif" | "webp" | "bmp" | "tif" | "tiff" | + "ico" | "pdf" | "ps" | "ept" | "eps" | "eps3" | "psd" | "svg" | "ai" | "djvu" | "flif"; +type VideoFileExtension = string | "webm" | "mp4" | "ogv" | "flv" | "m3u8"; +type Angle = number | string | Array | "auto_right" | "auto_left" | "ignore" | "vflip" | "hflip"; +type ColorSpace = string | "srgb" | "no_cmyk"; +type ImageFlags = string | Array | "any_format" | "attachment" | "awebp" | "clip" | "cutter" | "force_strip" | "ignore_aspect_ratio" | "keep_iptc" | "layer_apply" | + "lossy" | "preserve_transparency" | "png8" | "progressive" | "rasterize" | "region_relative" | "relative" | "strip_profile" | "text_no_trim" | "no_overflow" | "tiled"; +type VideoFlags = string | Array | "splice" | "layer_apply" | "no_stream" | "truncate_ts" | "waveform"; +type AudioCodec = string | "none" | "aac" | "vorbis" | "mp3"; +type AudioFrequency = number | 8000 | 11025 | 16000 | 22050 | 32000 | 37800 | 44056 | 44100 | 47250 | 48000 | 88200 | 96000 | 176400 | 192000; +type StreamingProfiles = string | "4k" | "full_hd" | "hd" | "sd" | "full_hd_wifi" | "full_hd_lean" | "hd_lean"; +type UrlOptions = (Transformation | Transformation.Options) & { placeholder?: string, accessibility?: string }; + +export function crc32(str: string): any; +export function utf8_encode(argString: string): any; + +type AnalyticsOptions = { + sdkSemver: string; + techVersion: string; + sdkCode: string; + feature: string; +} + +type AnalyticsOptionsParameters = { + sdkSemver: string; + techVersion: string; + sdkCode: string; + urlAnalytics?: boolean; + accessibility?: boolean; + loading?: string; + responsive?: boolean; + placeholder?: boolean; +} + +export class Util { + static allStrings(list: Array): boolean; + static camelCase(text: string): string; + static convertKeys(source: Object, converter?: (value: any) => any): Object; + static defaults(target: Object, object1?: any, ...objectN: any[]): Object; + static snakeCase(source: string): string; + static without(array: Array, item: any): Array; + static isNumberLike(value: any): boolean; + static withCamelCaseKeys(source: Object): Object; + static smartEscape(text: string, unsafe: string | RegExp): string; + static withSnakeCaseKeys(source: Object): Object; + static hasClass(element: Element, name: string): boolean; + static addClass(element: Element, name: string): void; + static getAttribute(element: Element, name: string): string; + static setAttribute(element: Element, name: string, value: any): void; + static removeAttribute(element: Element, name: string): void; + static setAttributes(element: Element, attributes: Array): any; + static getData(element: Element, name: string): any; + static setData(element: Element, name: string, value: any): void; + static width(element: Element): number; + static isString(value: any): boolean; + static isArray(obj: any): boolean; + static isEmpty(value: any): boolean; + static assign(target: Object, object1?: any, ...objectN: any[]): any; + static merge(target: Object, object1?: any, ...objectN: any[]): any; + static cloneDeep(value: any): any; + static compact(array: Array): Array; + static contains(collection: Array, item: any): boolean; + static difference(array: Array, values: Array): Array; + static isFunction(value: any): boolean; + static functions(object: any): Array; + static identity(value: any): any; + static isPlainObject(value: any): boolean; + static trim(text: string): string; + static detectIntersection(element: Element, onIntersect: Function): void + + static getAnalyticsOptions(options: AnalyticsOptionsParameters) : AnalyticsOptions; + static getSDKAnalyticsSignature(options: AnalyticsOptions):string; +} + + +/** + * Represents a single transformation. + * @class Transformation + * @example + * t = new cloudinary.Transformation(); + * t.angle(20).crop("scale").width("auto"); + * + * // or + * + * t = new cloudinary.Transformation( {angle: 20, crop: "scale", width: "auto"}); + */ +export class Transformation { + + constructor(options?: Transformation.Options); + + static "new"(options?: Transformation.Options): Transformation; + + /** + * Return an options object that can be used to create an identical Transformation + * @function Transformation#toOptions + * @return {Object} Returns a plain object representing this transformation + */ + toOptions(): Object; + + /** + * Get the value associated with the given name. + * @function Transformation#getValue + * @param {string} name - the name of the parameter + * @return {*} the processed value associated with the given name + * @description Use {@link get}.origValue for the value originally provided for the parameter + */ + getValue(name: string): any; + + /** + * Get the parameter object for the given parameter name + * @function Transformation#get + * @param {string} name the name of the transformation parameter + * @returns {Param} the param object for the given name, or undefined + */ + get(name: string): any; + + /** + * Remove a transformation option from the transformation. + * @function Transformation#remove + * @param {string} name - the name of the option to remove + * @return {*} Returns the option that was removed or null if no option by that name was found. The type of the + * returned value depends on the value. + */ + remove(name: string): any; + + /** + * Return an array of all the keys (option names) in the transformation. + * @return {Array} the keys in snakeCase format + */ + keys(): Array; + + /** + * Returns a plain object representation of the transformation. Values are processed. + * @function Transformation#toPlainObject + * @return {Object} the transformation options as plain object + */ + toPlainObject(): Object; + + /** + * Returns the value of "overlay" if it exists, otherwise returns the value of "underlay" + */ + hasLayer(): any; + + /** + * Generate a string representation of the transformation. + * @return {string } Returns the transformation as a string + */ + serialize(): string; + + /** + * Combines all propoerties from source transformation into this one + * @param source transformation to copy + * @return this transforamtion + */ + fromTransformation(source: Transformation): Transformation; + + /** + * Returns attributes for an HTML tag. + * @return PlainObject + */ + toHtmlAttributes(): Object; + + + /** + * Complete the current transformation and chain to a new one. + * In the URL, transformations are chained together by slashes. + * @function Transformation#chain + * @return {Transformation} Returns this transformation for chaining + * @example + * var tr = cloudinary.Transformation.new(); + * tr.width(10).crop('fit').chain().angle(15).serialize() + * // produces "c_fit,w_10/a_15" + */ + chain(): Transformation; + + /** + * Resets this transformation to an empty one + */ + resetTransformations(): Transformation; + + "if"(): Condition; // Create a condition + "if"(condition?: string): Transformation; // Create a condition + "else"(): Transformation; // Separator for setting the desired transformation for an "if" branch in case of falsy condition + endIf(): Transformation; // End condition + + /** + * Transformation methods + */ + angle(value: Angle): Transformation; // degrees or mode + audioCodec(value: AudioCodec): Transformation; + audioFrequency(value: AudioFrequency): Transformation; + aspectRatio(value: string | number): Transformation; // ratio or percent, e.g. 1.5 or 16:9 + background(value: string): Transformation; // color, e.g. "blue" or "rgb:9090ff" + border(value: string): Transformation; // style, e.g. "6px_solid_rgb:00390b60" + color(value: string): Transformation; // e.g. "red" or "rgb:20a020" + colorSpace(value: ColorSpace): Transformation; + crop(value: CropMode): Transformation; + customFunction(value: CustomFunction): Transformation; + customPreFunction(value: CustomFunction): Transformation; + defaultImage(value: string): Transformation; // public id of an uploaded image + delay(value: string): Transformation; + density(value: number): Transformation; // Control the density to use while converting a PDF document to images. (range: 50-300, default: 150) + dpr(value: "auto" | number): Transformation; // Deliver the image in the specified device pixel ratio. The parameter accepts any positive float value + effect(value: string | Array): Transformation; // name and value, e.g. hue:40 + fetchFormat(value: "auto" | ImageFileExtension): Transformation; + format(value: ImageFileExtension): Transformation; + flags(value: ImageFlags | string): Transformation; // Set one or more flags that alter the default transformation behavior. Separate multiple flags with a dot (`.`). + gravity(value: Gravity): Transformation; // The last any covers auto:50 which is cropping algorithm aggresiveness and future proofing + height(value: number): Transformation; // Number of pixels or height % + htmlHeight(value: string): Transformation; + htmlWidth(value: string): Transformation; + opacity(value: number): Transformation; // percent, 0-100 + overlay(value: string): Transformation; // Identifier, e.g. "text:Arial_50:Smile!", or public id of a different resource + page(value: number): Transformation; // Given a multi-page file (PDF, animated GIF, TIFF), generate an image of a single page using the given index. + prefix(value: string): Transformation; + quality(value: string | number): Transformation; // percent or percent[:chroma_subsampling] or auto[:quality_level] + radius(value: "max" | number): Transformation; // pixels or max + rawTransformation(value: any): Transformation; + size(value: string): Transformation; + sourceTypes(value: VideoFileExtension | Array): Transformation; + sources?: Array; + sourceTransformation(value: Object): Transformation; // Set the transformation to apply on each source by an object with pairs of source type and source transformations to apply + startOffset(value: number | string): Transformation; + streamingProfile(value: string): Transformation; + transformation(value: string | Array): Transformation; // Apply a pre-defined named transformation of the given name. When using Cloudinary's client integration libraries, the 'transformation' parameter accepts an array of transformation parameters to be chained together. + underlay(value: string): Transformation; // public id of an uploaded image + variable(name: string, value: any): Transformation; + variables(value: Array<[string, any]>): Transformation; + videoCodec(value: string | Object): Transformation; // Select the video codec and control the video content of the profile used. Can be provided in the form [::[:[<:b_frames>]]] to specify specific values to apply for video codec, profile, level and b_frames, e.g. "h264:baseline:3.1:bframes_no". Also accepts a hash of values such as { codec: 'h264', profile: 'basic', level: '3.1', b_frames: false } + videoSampling(value: number | string): Transformation; // Integer - The total number of frames to sample from the original video. String - The number of seconds between each frame to sample from the original video. e.g. 2.3s takes one frame every 2.3 seconds. + width(value: string | number): Transformation; // Number of pixels, width % or "auto" with rounding step + x(value: number): Transformation; // pixels or percent + y(value: number): Transformation; // pixels or percent + zoom(value: number): Transformation; // percent + toHtml(): string; // Returns the string representation of this transformation + + // Video options + bitRate(value: number | string): Transformation; // Advanced control of video bitrate in bits per second. By default the video uses a variable bitrate (VBR), with this value indicating the maximum bitrate. If constant is specified, the video plays with a constant bitrate (CBR). + // Supported codecs: h264, h265(MPEG - 4); vp8, vp9(WebM). + duration(value :number | string): Transformation; // Float or string + endOffset(value: number | string): Transformation; // Float or string + fallbackContent(value: string): Transformation; + fps(value: string | Array): Transformation; + keyframeInterval(value: number): Transformation; + offset(value: string): Transformation; // [float, float] or [string, string] or a range. Shortcut to set video cutting using a combination of start_offset and end_offset values + poster(value: string | Object): Transformation; + sourceTypes(value: string): Transformation; +} + +export class Condition { + /** + * Represents a transformation condition + * @param {string} conditionStr - a condition in string format + * @class Condition + * @example + * // normally this class is not instantiated directly */ + constructor(conditionStr: string); + + static "new"(conditionStr: string): Condition; + + "and"(): Condition; // Add terms to the condition + "or"(): Condition; // Add terms to the condition + "then"(): Transformation; // Separator for setting the desired transformation for an "if" branch in case of truthy condition + + /** + * @function Condition#height + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Condition} this condition + */ + height(operator: string, value: string | number): Condition; + /** + * @function Condition#width + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Condition} this condition + */ + width(operator: string, value: string | number): Condition; + /** + * @function Condition#aspectRatio + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Condition} this condition + */ + aspectRatio(operator: string, value: string | number): Condition; + /** + * @function Condition#pageCount + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Condition} this condition + */ + pageCount(operator: string, value: string | number): Condition; + /** + * @function Condition#faceCount + * @param {string} operator the comparison operator (e.g. "<", "lt") + * @param {string|number} value the right hand side value + * @return {Condition} this condition + */ + faceCount(operator: string, value: string | number): Condition; +} +export namespace Transformation { + export interface Options extends Configuration.Options { + angle?: Angle; // degrees or mode + aspectRatio?: string | number; // ratio or percent, e.g. 1.5 or 16:9 + background?: string; // color, e.g. "blue" or "rgb:9090ff" + border?: string; // style, e.g. "6px_solid_rgb:00390b60" + color?: string; // e.g. "red" or "rgb:20a020" + colorSpace?: ColorSpace; + crop?: CropMode, + customFunction?: CustomFunction, + customPreFunction?: CustomFunction, + defaultImage?: string; // public id of an uploaded image + delay?: string; + density?: number | string; // Control the density to use while converting a PDF document to images. (range: 50-300, default: 150) + dpr?: number | string; // Deliver the image in the specified device pixel ratio. The parameter accepts any positive float value + effect?: string | Array; // name and value, e.g. hue:40 + fetchFormat?: ImageFileExtension; + format?: ImageFileExtension; + flags?: ImageFlags | string; // Set one or more flags that alter the default transformation behavior. Separate multiple flags with a dot (`.`). + gravity?: Gravity; // The last any covers auto:50 which is cropping algorithm aggresiveness and future proofing + height?: number | string; // Number of pixels or height % + htmlHeight?: string; + htmlWidth?: string; + "if"?: string; // Apply a transformation only if a specified condition is met (see the conditional transformations documentation). + "else"?: string; + endIf?: string; + opacity?: number | string; // percent, 0-100 + overlay?: string; // Identifier, e.g. "text:Arial_50:Smile!", or public id of a different resource + page?: number | string; // Given a multi-page file (PDF, animated GIF, TIFF), generate an image of a single page using the given index. + prefix?: string; + quality?: string | number; // percent or percent[:chroma_subsampling] or auto[:quality_level] + radius?: number | string; // pixels or max + rawTransformation?: any; + size?: string; + transformation?: string | Array; // Apply a pre-defined named transformation of the given name. When using Cloudinary's client integration libraries, the 'transformation' parameter accepts an array of transformation parameters to be chained together. + underlay?: string; // public id of an uploaded image + variable?: [string, any]; + variables?: Array<[string, any]>; + width?: string | number; // Number of pixels, width % or "auto" with rounding step + x?: number | string; // pixels or percent + y?: number | string; // pixels or percent + zoom?: number | string; // percent + [futureKey: string]: any; + } + + interface VideoOptions extends Transformation.Options { + audioCodec?: AudioCodec; + audioFrequency?: AudioFrequency; + bitRate?: number | string; // Advanced control of video bitrate in bits per second. By default the video uses a variable bitrate (VBR), with this value indicating the maximum bitrate. If constant is specified, the video plays with a constant bitrate (CBR). + // Supported codecs: h264, h265(MPEG - 4); vp8, vp9(WebM). + duration?: number | string; // Float or string + endOffset?: number | string; // Float or string + fallbackContent?: string; + flags?: VideoFlags; + fps?: string | Array; + keyframeInterval?: number; + offset?: string, // [float, float] or [string, string] or a range. Shortcut to set video cutting using a combination of start_offset and end_offset values + poster?: string | Object, + sourceTypes?: string; + sourceTransformation?: string; + startOffset?: number | string; // Float or string + streamingProfile?: StreamingProfiles + videoCodec?: string | Object; // Select the video codec and control the video content of the profile used. Can be provided in the form [::[:[<:b_frames>]]] to specify specific values to apply for video codec, profile, level and b_frames, e.g. "h264:baseline:3.1:bframes_no". Also accepts a hash of values such as { codec: 'h264', profile: 'basic', level: '3.1', b_frames: false } + videoSampling?: number | string; // Integer - The total number of frames to sample from the original video. The frames are spread out over the length of the video, e.g. 20 takes one frame every 5% -- OR -- String - The number of seconds between each frame to sample from the original video. e.g. 2.3s takes one frame every 2.3 seconds. + } +} + +/** + * Cloudinary configuration class + * @constructor Configuration + * @param {Object} options - configuration parameters + */ +export class Configuration { + constructor(options?: Configuration.Options); + + init(): Configuration; + set(name: string, value?: any): Configuration; + get(name: string): any; + merge(config?: Object): Configuration; + + /** + * Initialize Cloudinary from HTML meta tags. + * @function Configuration#fromDocument + * @return {Configuration} + * @example + * + */ + fromDocument(): Configuration; + + fromEnvironment(): Configuration; + + toOptions(): Object; +} + + +/** + * Represents an HTML (DOM) tag + * @constructor HtmlTag + * @param {string} name - the name of the tag + * @param {string} [publicId] + * @param {Object} options + * @example tag = new HtmlTag( 'div', { 'width': 10}) + */ +export class HtmlTag { + constructor(name: string, publicId?: string, options?: Transformation.Options); + constructor(name: string, options?: Transformation.Options); + static "new"(name: string, publicId?: string, options?: Transformation.Options): HtmlTag; + static "new"(name: string, options?: Transformation.Options): HtmlTag; + getOptions(): Object; + getOption(name: string): any; + attributes(): Object; + setAttr(name: string, value: string): void; + getAttr(name: string): string; + removeAttr(name: string): string; + content(): string; + openTag(): string; + closeTag(): string; + toHtml(): string; + toDOM(): Element; + isResponsive(): boolean; + transformation(): Transformation; +} +/** + * Creates an HTML (DOM) Image tag using Cloudinary as the source. + * @constructor ImageTag + * @extends HtmlTag + * @param {string} [publicId] + * @param {Object} [options] + */ +export class ImageTag extends HtmlTag { + static "new"(publicId: string, options?: Transformation.Options): ImageTag; + static "new"(name: string, publicId: string, options?: Transformation.Options): ImageTag; +} + +/** + * Creates an HTML (DOM) Picture tag using Cloudinary as the source. + * @constructor PictureTag + * @extends HtmlTag + * @param {string} [publicId] + * @param {Object} [options] + * @param {Array} [widthList] + */ +export class PictureTag extends HtmlTag { + static "new"(publicId: string, options?: Transformation.Options, widthList?: Array): PictureTag; + static "new"(name: string, publicId: string, options?: Transformation.Options): PictureTag; +} + +/** + * Creates an HTML (DOM) Source tag using Cloudinary as the source. + * @constructor SourceTag + * @extends HtmlTag + * @param {string} [publicId] + * @param {Object} [options] + */ +export class SourceTag extends HtmlTag { + static "new"(publicId: string, options?: Transformation.Options): SourceTag; + static "new"(name: string, publicId: string, options?: Transformation.Options): SourceTag; +} + +/** + * Creates an HTML (DOM) Video tag using Cloudinary as the source. + * @constructor VideoTag + * @extends HtmlTag + * @param {string} [publicId] + * @param {Object} [options] + */ +export class VideoTag extends HtmlTag { + static "new"(publicId: string, options?: Transformation.VideoOptions): VideoTag; + static "new"(name: string, publicId: string, options?: Transformation.Options): VideoTag; + /** + * Set the transformation to apply on each source + * @function VideoTag#setSourceTransformation + * @param {Object} value an object with pairs of source type and source transformation + * @returns {VideoTag} Returns this instance for chaining purposes. + */ + setSourceTransformation(value: Object): VideoTag; + + /** + * Set the source types to include in the video tag + * @function VideoTag#setSourceTypes + * @param {Array} sourceTypes an array of source types + * @returns {VideoTag} Returns this instance for chaining purposes. + */ + setSourceTypes(sourceTypes: VideoFileExtension | Array): VideoTag; + + /** + * Set the poster to be used in the video tag + * @function VideoTag#setPoster + * @param {string|Object} poster + * - string: a URL to use for the poster + * - Object: transformation parameters to apply to the poster. May optionally include a public_id to use instead of the video public_id. + * @returns {VideoTag} Returns this instance for chaining purposes. + */ + setPoster(poster: string | Object): VideoTag; + + /** + * Set the content to use as fallback in the video tag + * @function VideoTag#setFallbackContent + * @param {string} fallbackContent - the content to use, in HTML format + * @returns {VideoTag} Returns this instance for chaining purposes. + */ + setFallbackContent(fallbackContent: string): VideoTag; + + /** + * Returns the HTML for the child elements of this video + */ + content(): string; +} + +/** + * Creates an HTML (DOM) Meta tag that enables client-hints. + * @constructor ClientHintsMetaTag + * @extends HtmlTag + */ +export class ClientHintsMetaTag extends HtmlTag { + constructor (options?: Transformation.Options); +} + +/**************************************** Layers section ************************************/ + +export class Layer { + /** + * Layer + * @constructor Layer + * @param {Object} options - layer parameters + */ + constructor(options?: Layer.Options); + + /** Setters */ + resourceType(value: string): Layer; + type(value: string): Layer; + publicId(value: string): Layer; + format(value: string): Layer; + /** Getters */ + getPublicId(): string; + getFullPublicId(): string; + toString(): string; +} + +export namespace Layer { + export interface Options { + resourceType?: string; + type?: string; + publicId?: string; + format?: string; + } +} + +export class FetchLayer extends Layer { + constructor(options?: FetchLayer.Options); + + /** setters */ + url(url: string): FetchLayer; + toString(): string; +} + +export namespace FetchLayer { + export interface Options { + url?: string + } +} + +/** + * @constructor TextLayer + * @param {Object} options - layer parameters + */ +export class TextLayer extends Layer { + constructor (options?: TextLayer.Options); + + /** Setters */ + fontFamily(value: string): TextLayer; + fontSize(value: number): TextLayer; + fontWeight(value: string): TextLayer; + fontStyle(value: string): TextLayer; + fontHinting(value: string): TextLayer; + fontAntialiasing(value: string): TextLayer; + textDecoration(value: string): TextLayer; + textAlign(value: string): TextLayer; + stroke(value: string): TextLayer; + letterSpacing(value: number): TextLayer; + lineSpacing(value: number): TextLayer; + text(value: string): TextLayer; + textStyle(value: string): TextLayer; + /** Getters */ + toString(): string; + textStyleIdentifier(): Array; +} + +export namespace TextLayer { + export interface Options { + resourceType?: string; + fontFamily?: string; + fontSize?: number; + fontWeight?: string; + fontStyle?: string; + fontHinting?: string; + fontAntialiasing?: string; + textDecoration?: string; + textAlign?: string; + stroke?: string; + letterSpacing?: number; + lineSpacing?: number; + text?: string; + textStyle?: string; + } +} + +/** + * Represent a subtitles layer + * @constructor SubtitlesLayer + * @param {Object} options - layer parameters + */ +export class SubtitlesLayer extends TextLayer { + constructor (options: TextLayer.Options); +} + +export class Param { + constructor (name: string, shortName?: string, process?: (value: any) => any); + + /** + * Set a (unprocessed) value for this parameter + * @function Param#set + * @param {*} origValue - the value of the parameter + * @return {Param} self for chaining + */ + set(origValue: any): Param; + + /** + * Generate the serialized form of the parameter + * @function Param#serialize + * @return {string} the serialized form of the parameter + */ + serialize(): string; + + /** + * Return the processed value of the parameter + * @function Param#value + */ + value(): any; + + /** + * Replaces '#' symbols with 'rgb:' + */ + norm_color(): string; + + /** + * Wraps this param in an array if it isn't already an array + */ + build_array(): Array +} + +/** + * Main Cloudinary class + * @class Cloudinary + * @param {Object} options - options to configure Cloudinary + * @see Configuration for more details + * @example + * // Include cloudinary_js in a `; +} + +function v1_result_adapter(callback) { + if (callback == null) { + return undefined; + } + return function (result) { + if (result.error != null) { + return callback(result.error); + } + return callback(void 0, result); + }; +} + +function v1_adapter(name, num_pass_args, v1) { + return function () { + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + var pass_args = take(args, num_pass_args); + var options = args[num_pass_args]; + var callback = args[num_pass_args + 1]; + if (callback == null && isFunction(options)) { + callback = options; + options = {}; + } + callback = v1_result_adapter(callback); + args = pass_args.concat([callback, options]); + return v1[name].apply(this, args); + }; +} + +function v1_adapters(exports, v1, mapping) { + return Object.keys(mapping).map(function (name) { + var num_pass_args = mapping[name]; + exports[name] = v1_adapter(name, num_pass_args, v1); + return exports[name]; + }); +} + +function as_safe_bool(value) { + if (value == null) { + return void 0; + } + if (value === true || value === 'true' || value === '1') { + value = 1; + } + if (value === false || value === 'false' || value === '0') { + value = 0; + } + return value; +} + +var NUMBER_PATTERN = "([0-9]*)\\.([0-9]+)|([0-9]+)"; + +var OFFSET_ANY_PATTERN = `(${NUMBER_PATTERN})([%pP])?`; +var RANGE_VALUE_RE = RegExp(`^${OFFSET_ANY_PATTERN}$`); +var OFFSET_ANY_PATTERN_RE = RegExp(`(${OFFSET_ANY_PATTERN})\\.\\.(${OFFSET_ANY_PATTERN})`); + +// Split a range into the start and end values +function split_range(range) { + // :nodoc: + switch (range.constructor) { + case String: + if (!OFFSET_ANY_PATTERN_RE.test(range)) { + return range; + } + return range.split(".."); + case Array: + return [first(range), last(range)]; + default: + return [null, null]; + } +} + +function norm_range_value(value) { + // :nodoc: + var offset = String(value).match(RANGE_VALUE_RE); + if (offset) { + var modifier = offset[5] ? 'p' : ''; + value = `${offset[1] || offset[4]}${modifier}`; + } + return value; +} + +/** + * A video codec parameter can be either a String or a Hash. + * @param {Object} param vc_[ : : []] + * or { codec: 'h264', profile: 'basic', level: '3.1' } + * @return {String} : : []] if a Hash was provided + * or the param if a String was provided. + * Returns null if param is not a Hash or String + */ +function process_video_params(param) { + switch (param.constructor) { + case Object: + { + var video = ""; + if ('codec' in param) { + video = param.codec; + if ('profile' in param) { + video += ":" + param.profile; + if ('level' in param) { + video += ":" + param.level; + } + } + } + return video; + } + case String: + return param; + default: + return null; + } +} + +/** + * Returns a Hash of parameters used to create an archive + * @private + * @param {object} options + * @return {object} Archive API parameters + */ + +function archive_params() { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + return { + allow_missing: exports.as_safe_bool(options.allow_missing), + async: exports.as_safe_bool(options.async), + expires_at: options.expires_at, + flatten_folders: exports.as_safe_bool(options.flatten_folders), + flatten_transformations: exports.as_safe_bool(options.flatten_transformations), + keep_derived: exports.as_safe_bool(options.keep_derived), + mode: options.mode, + notification_url: options.notification_url, + prefixes: options.prefixes && toArray(options.prefixes), + fully_qualified_public_ids: options.fully_qualified_public_ids && toArray(options.fully_qualified_public_ids), + public_ids: options.public_ids && toArray(options.public_ids), + skip_transformation_name: exports.as_safe_bool(options.skip_transformation_name), + tags: options.tags && toArray(options.tags), + target_format: options.target_format, + target_public_id: options.target_public_id, + target_tags: options.target_tags && toArray(options.target_tags), + timestamp: options.timestamp || exports.timestamp(), + transformations: utils.build_eager(options.transformations), + type: options.type, + use_original_filename: exports.as_safe_bool(options.use_original_filename) + }; +} + +exports.process_layer = process_layer; + +exports.create_source_tag = function create_source_tag(src, source_type) { + var codecs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + + var video_type = source_type === 'ogv' ? 'ogg' : source_type; + var mime_type = `video/${video_type}`; + if (!isEmpty(codecs)) { + var codecs_str = isArray(codecs) ? codecs.join(', ') : codecs; + mime_type += `; codecs=${codecs_str}`; + } + return ``; +}; + +function build_explicit_api_params(public_id) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + return [exports.build_upload_params(extend({}, { public_id }, options))]; +} + +function generate_responsive_breakpoints_string(breakpoints) { + if (breakpoints == null) { + return null; + } + breakpoints = clone(breakpoints); + if (!isArray(breakpoints)) { + breakpoints = [breakpoints]; + } + for (var j = 0; j < breakpoints.length; j++) { + var breakpoint_settings = breakpoints[j]; + if (breakpoint_settings != null) { + if (breakpoint_settings.transformation) { + breakpoint_settings.transformation = utils.generate_transformation_string(clone(breakpoint_settings.transformation)); + } + } + } + return JSON.stringify(breakpoints); +} + +function build_streaming_profiles_param() { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var params = pickOnlyExistingValues(options, "display_name", "representations"); + if (isArray(params.representations)) { + params.representations = JSON.stringify(params.representations.map(function (r) { + return { + transformation: utils.generate_transformation_string(r.transformation) + }; + })); + } + return params; +} + +function hashToParameters(hash) { + return entries(hash).reduce(function (parameters, _ref30) { + var _ref31 = _slicedToArray(_ref30, 2), + key = _ref31[0], + value = _ref31[1]; + + if (isArray(value)) { + key = key.endsWith('[]') ? key : key + '[]'; + var items = value.map(function (v) { + return [key, v]; + }); + parameters = parameters.concat(items); + } else { + parameters.push([key, value]); + } + return parameters; + }, []); +} + +/** + * Convert a hash of values to a URI query string. + * Array values are spread as individual parameters. + * @param {object} hash Key-value parameters + * @return {string} A URI query string. + */ +function hashToQuery(hash) { + return hashToParameters(hash).map(function (_ref32) { + var _ref33 = _slicedToArray(_ref32, 2), + key = _ref33[0], + value = _ref33[1]; + + return `${querystring.escape(key)}=${querystring.escape(value)}`; + }).join('&'); +} + +/** + * Verify that the parameter `value` is defined and it's string value is not zero. + *
This function should not be confused with `isEmpty()`. + * @private + * @param {string|number} value The value to check. + * @return {boolean} True if the value is defined and not empty. + */ + +function present(value) { + return value != null && ("" + value).length > 0; +} + +/** + * Returns a new object with key values from source based on the keys. + * `null` or `undefined` values are not copied. + * @private + * @param {object} source The object to pick values from. + * @param {...string} keys One or more keys to copy from source. + * @return {object} A new object with the required keys and values. + */ + +function pickOnlyExistingValues(source) { + var result = {}; + if (source) { + for (var _len2 = arguments.length, keys = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + keys[_key2 - 1] = arguments[_key2]; + } + + keys.forEach(function (key) { + if (source[key] != null) { + result[key] = source[key]; + } + }); + } + return result; +} + +/** + * Returns a JSON array as String. + * Yields the array before it is converted to JSON format + * @private + * @param {object|String|Array} data + * @param {function(*):*} [modifier] called with the array before the array is stringified + * @return {String|null} a JSON array string or `null` if data is `null` + */ + +function jsonArrayParam(data, modifier) { + if (!data) { + return null; + } + if (isString(data)) { + data = JSON.parse(data); + } + if (!isArray(data)) { + data = [data]; + } + if (isFunction(modifier)) { + data = modifier(data); + } + return JSON.stringify(data); +} + +/** + * Empty function - do nothing + * + */ +exports.NOP = function () {}; +exports.generate_auth_token = generate_auth_token; +exports.getUserAgent = getUserAgent; +exports.build_upload_params = build_upload_params; +exports.build_multi_and_sprite_params = build_multi_and_sprite_params; +exports.api_download_url = api_download_url; +exports.timestamp = function () { + return Math.floor(new Date().getTime() / 1000); +}; +exports.option_consume = consumeOption; // for backwards compatibility +exports.build_array = toArray; // for backwards compatibility +exports.encode_double_array = encodeDoubleArray; +exports.encode_key_value = encode_key_value; +exports.encode_context = encode_context; +exports.build_eager = build_eager; +exports.build_custom_headers = build_custom_headers; +exports.generate_transformation_string = generate_transformation_string; +exports.updateable_resource_params = updateable_resource_params; +exports.extractUrlParams = extractUrlParams; +exports.extractTransformationParams = extractTransformationParams; +exports.patchFetchFormat = patchFetchFormat; +exports.url = url; +exports.video_url = video_url; +exports.video_thumbnail_url = video_thumbnail_url; +exports.api_url = api_url; +exports.random_public_id = random_public_id; +exports.signed_preloaded_image = signed_preloaded_image; +exports.api_sign_request = api_sign_request; +exports.clear_blank = clear_blank; +exports.merge = merge; +exports.sign_request = sign_request; +exports.webhook_signature = webhook_signature; +exports.verifyNotificationSignature = verifyNotificationSignature; +exports.process_request_params = process_request_params; +exports.private_download_url = private_download_url; +exports.zip_download_url = zip_download_url; +exports.download_archive_url = download_archive_url; +exports.download_zip_url = download_zip_url; +exports.cloudinary_js_config = cloudinary_js_config; +exports.v1_adapters = v1_adapters; +exports.as_safe_bool = as_safe_bool; +exports.archive_params = archive_params; +exports.build_explicit_api_params = build_explicit_api_params; +exports.generate_responsive_breakpoints_string = generate_responsive_breakpoints_string; +exports.build_streaming_profiles_param = build_streaming_profiles_param; +exports.hashToParameters = hashToParameters; +exports.present = present; +exports.only = pickOnlyExistingValues; // for backwards compatibility +exports.pickOnlyExistingValues = pickOnlyExistingValues; +exports.jsonArrayParam = jsonArrayParam; +exports.download_folder = download_folder; +exports.base_api_url = base_api_url; +exports.download_backedup_asset = download_backedup_asset; +exports.compute_hash = compute_hash; +exports.build_distribution_domain = build_distribution_domain; +exports.sort_object_by_key = sort_object_by_key; + +// was exported before, so kept for backwards compatibility +exports.DEFAULT_POSTER_OPTIONS = DEFAULT_POSTER_OPTIONS; +exports.DEFAULT_VIDEO_SOURCE_TYPES = DEFAULT_VIDEO_SOURCE_TYPES; + +Object.assign(module.exports, { + normalize_expression, + at, + clone, + extend, + filter, + includes, + isArray, + isEmpty, + isNumber, + isObject, + isRemoteUrl, + isString, + isUndefined, + keys: function keys(source) { + return Object.keys(source); + }, + ensurePresenceOf +}); \ No newline at end of file diff --git a/node_modules/cloudinary/lib-es5/utils/isRemoteUrl.js b/node_modules/cloudinary/lib-es5/utils/isRemoteUrl.js new file mode 100644 index 0000000..7f2faff --- /dev/null +++ b/node_modules/cloudinary/lib-es5/utils/isRemoteUrl.js @@ -0,0 +1,16 @@ +'use strict'; + +var isString = require('lodash/isString'); + +/** + * Checks whether a given url or path is a local file + * @param {string} url the url or path to the file + * @returns {boolean} true if the given url is a remote location or data + */ +function isRemoteUrl(url) { + var SUBSTRING_LENGTH = 120; + var urlSubstring = isString(url) && url.substring(0, SUBSTRING_LENGTH); + return isString(url) && /^ftp:|^https?:|^gs:|^s3:|^data:([\w-.]+\/[\w-.]+(\+[\w-.]+)?)?(;[\w-.]+=[\w-.]+)*;base64,([a-zA-Z0-9\/+\n=]+)$/.test(urlSubstring); +} + +module.exports = isRemoteUrl; \ No newline at end of file diff --git a/node_modules/cloudinary/lib-es5/utils/parsing/consumeOption.js b/node_modules/cloudinary/lib-es5/utils/parsing/consumeOption.js new file mode 100644 index 0000000..ce09992 --- /dev/null +++ b/node_modules/cloudinary/lib-es5/utils/parsing/consumeOption.js @@ -0,0 +1,17 @@ +"use strict"; + +/** + * Deletes `option_name` from `options` and return the value if present. + * If `options` doesn't contain `option_name` the default value is returned. + * @param {Object} options a collection + * @param {String} option_name the name (key) of the desired value + * @param {*} [default_value] the value to return is option_name is missing + */ + +function consumeOption(options, option_name, default_value) { + var result = options[option_name]; + delete options[option_name]; + return result != null ? result : default_value; +} + +module.exports = consumeOption; \ No newline at end of file diff --git a/node_modules/cloudinary/lib-es5/utils/parsing/toArray.js b/node_modules/cloudinary/lib-es5/utils/parsing/toArray.js new file mode 100644 index 0000000..abb6020 --- /dev/null +++ b/node_modules/cloudinary/lib-es5/utils/parsing/toArray.js @@ -0,0 +1,21 @@ +'use strict'; + +var isArray = require('lodash/isArray'); + +/** + * @desc Turns arguments that aren't arrays into arrays + * @param arg + * @returns { any | any[] } + */ +function toArray(arg) { + switch (true) { + case arg == null: + return []; + case isArray(arg): + return arg; + default: + return [arg]; + } +} + +module.exports = toArray; \ No newline at end of file diff --git a/node_modules/cloudinary/lib-es5/utils/rimraf.js b/node_modules/cloudinary/lib-es5/utils/rimraf.js new file mode 100644 index 0000000..16adeee --- /dev/null +++ b/node_modules/cloudinary/lib-es5/utils/rimraf.js @@ -0,0 +1,25 @@ +'use strict'; + +var fs = require('fs'); +var path = require('path'); + +/** + * Remove directory recursively + * @param {string} dir_path + * @see https://stackoverflow.com/a/42505874/3027390 + */ +function rimraf(dir_path) { + if (fs.existsSync(dir_path)) { + fs.readdirSync(dir_path).forEach(function (entry) { + var entry_path = path.join(dir_path, entry); + if (fs.lstatSync(entry_path).isDirectory()) { + rimraf(entry_path); + } else { + fs.unlinkSync(entry_path); + } + }); + fs.rmdirSync(dir_path); + } +} + +module.exports = rimraf; \ No newline at end of file diff --git a/node_modules/cloudinary/lib-es5/utils/srcsetUtils.js b/node_modules/cloudinary/lib-es5/utils/srcsetUtils.js new file mode 100644 index 0000000..152bcbc --- /dev/null +++ b/node_modules/cloudinary/lib-es5/utils/srcsetUtils.js @@ -0,0 +1,174 @@ +'use strict'; + +var utils = require('./index'); +var generateBreakpoints = require('./generateBreakpoints'); +var Cache = require('../cache'); + +var isEmpty = utils.isEmpty; + +/** + * Options used to generate the srcset attribute. + * @typedef {object} srcset + * @property {(number[]|string[])} [breakpoints] An array of breakpoints. + * @property {number} [min_width] Minimal width of the srcset images. + * @property {number} [max_width] Maximal width of the srcset images. + * @property {number} [max_images] Number of srcset images to generate. + * @property {object|string} [transformation] The transformation to use in the srcset urls. + * @property {boolean} [sizes] Whether to calculate and add the sizes attribute. + */ + +/** + * Helper function. Generates a single srcset item url + * + * @private + * @param {string} public_id Public ID of the resource. + * @param {number} width Width in pixels of the srcset item. + * @param {object|string} transformation + * @param {object} options Additional options. + * + * @return {string} Resulting URL of the item + */ +function scaledUrl(public_id, width, transformation) { + var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + + var configParams = utils.extractUrlParams(options); + transformation = transformation || options; + configParams.raw_transformation = utils.generate_transformation_string([utils.extend({}, transformation), { crop: 'scale', width: width }]); + + return utils.url(public_id, configParams); +} + +/** + * If cache is enabled, get the breakpoints from the cache. If the values were not found in the cache, + * or cache is not enabled, generate the values. + * @param {srcset} srcset The srcset configuration parameters + * @param {string} public_id + * @param {object} options + * @return {*|Array} + */ +function getOrGenerateBreakpoints(public_id) { + var srcset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + + var breakpoints = []; + if (srcset.useCache) { + breakpoints = Cache.get(public_id, options); + if (!breakpoints) { + breakpoints = []; + } + } else { + breakpoints = generateBreakpoints(srcset); + } + return breakpoints; +} + +/** + * Helper function. Generates srcset attribute value of the HTML img tag + * @private + * + * @param {string} public_id Public ID of the resource + * @param {number[]} breakpoints An array of breakpoints (in pixels) + * @param {object} transformation The transformation + * @param {object} options Includes html tag options, transformation options + * @return {string} Resulting srcset attribute value + */ +function generateSrcsetAttribute(public_id, breakpoints, transformation, options) { + options = utils.clone(options); + utils.patchFetchFormat(options); + return breakpoints.map(function (width) { + return `${scaledUrl(public_id, width, transformation, options)} ${width}w`; + }).join(', '); +} + +/** + * Helper function. Generates sizes attribute value of the HTML img tag + * @private + * @param {number[]} breakpoints An array of breakpoints. + * @return {string} Resulting sizes attribute value + */ +function generateSizesAttribute() { + var breakpoints = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + + return breakpoints.map(function (width) { + return `(max-width: ${width}px) ${width}px`; + }).join(', '); +} + +/** + * Helper function. Generates srcset and sizes attributes of the image tag + * + * Generated attributes are added to attributes argument + * + * @private + * @param {string} publicId The public ID of the resource + * @param {object} attributes Existing HTML attributes. + * @param {srcset} srcsetData + * @param {object} options Additional options. + * + * @return array The responsive attributes + */ +function generateImageResponsiveAttributes(publicId) { + var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var srcsetData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + + // Create both srcset and sizes here to avoid fetching breakpoints twice + + var responsiveAttributes = {}; + if (isEmpty(srcsetData)) { + return responsiveAttributes; + } + + var generateSizes = !attributes.sizes && srcsetData.sizes === true; + + var generateSrcset = !attributes.srcset; + if (generateSrcset || generateSizes) { + var breakpoints = getOrGenerateBreakpoints(publicId, srcsetData, options); + + if (generateSrcset) { + var transformation = srcsetData.transformation; + var srcsetAttr = generateSrcsetAttribute(publicId, breakpoints, transformation, options); + if (!isEmpty(srcsetAttr)) { + responsiveAttributes.srcset = srcsetAttr; + } + } + + if (generateSizes) { + var sizesAttr = generateSizesAttribute(breakpoints); + if (!isEmpty(sizesAttr)) { + responsiveAttributes.sizes = sizesAttr; + } + } + } + return responsiveAttributes; +} + +/** + * Generate a media query + * + * @private + * @param {object} options configuration options + * @param {number|string} options.min_width + * @param {number|string} options.max_width + * @return {string} a media query string + */ +function generateMediaAttr() { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var mediaQuery = []; + if (options.min_width != null) { + mediaQuery.push(`(min-width: ${options.min_width}px)`); + } + if (options.max_width != null) { + mediaQuery.push(`(max-width: ${options.max_width}px)`); + } + return mediaQuery.join(' and '); +} + +module.exports = { + srcsetUrl: scaledUrl, + generateSrcsetAttribute, + generateSizesAttribute, + generateMediaAttr, + generateImageResponsiveAttributes +}; \ No newline at end of file diff --git a/node_modules/cloudinary/lib-es5/utils/utf8_encode.js b/node_modules/cloudinary/lib-es5/utils/utf8_encode.js new file mode 100644 index 0000000..d5d4af4 --- /dev/null +++ b/node_modules/cloudinary/lib-es5/utils/utf8_encode.js @@ -0,0 +1,61 @@ +"use strict"; + +/* eslint-disable no-bitwise */ +// http://kevin.vanzonneveld.net +// + original by: Webtoolkit.info (http://www.webtoolkit.info/) +// + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) +// + improved by: sowberry +// + tweaked by: Jack +// + bugfixed by: Onno Marsman +// + improved by: Yves Sucaet +// + bugfixed by: Onno Marsman +// + bugfixed by: Ulrich +// + bugfixed by: Rafal Kukawski +// + improved by: kirilloid +// * example 1: utf8_encode('Kevin van Zonneveld') +// * returns 1: 'Kevin van Zonneveld' + +/** + * Encode the given string + * @private + * @param {string} argString the string to encode + * @return {string} + */ +module.exports = function utf8_encode(argString) { + var c1 = void 0, + enc = void 0, + n = void 0; + if (argString == null) { + return ""; + } + var string = argString + ""; + var utftext = ""; + var start = 0; + var end = 0; + var stringl = string.length; + n = 0; + while (n < stringl) { + c1 = string.charCodeAt(n); + enc = null; + if (c1 < 128) { + end++; + } else if (c1 > 127 && c1 < 2048) { + enc = String.fromCharCode(c1 >> 6 | 192, c1 & 63 | 128); + } else { + enc = String.fromCharCode(c1 >> 12 | 224, c1 >> 6 & 63 | 128, c1 & 63 | 128); + } + if (enc !== null) { + if (end > start) { + utftext += string.slice(start, end); + } + utftext += enc; + start = n + 1; + end = start; + } + n++; + } + if (end > start) { + utftext += string.slice(start, stringl); + } + return utftext; +}; \ No newline at end of file diff --git a/node_modules/cloudinary/lib-es5/v2/api.js b/node_modules/cloudinary/lib-es5/v2/api.js new file mode 100644 index 0000000..f21862e --- /dev/null +++ b/node_modules/cloudinary/lib-es5/v2/api.js @@ -0,0 +1,79 @@ +'use strict'; + +var api = require('../api'); +var v1_adapters = require('../utils').v1_adapters; + +v1_adapters(exports, api, { + ping: 0, + usage: 0, + resource_types: 0, + resources: 0, + resources_by_tag: 1, + resources_by_context: 2, + resources_by_moderation: 2, + resource_by_asset_id: 1, + resources_by_asset_ids: 1, + resources_by_ids: 1, + resources_by_asset_folder: 1, + resource: 1, + restore: 1, + update: 1, + delete_resources: 1, + delete_resources_by_prefix: 1, + delete_resources_by_tag: 1, + delete_all_resources: 0, + delete_derived_resources: 1, + tags: 0, + transformations: 0, + transformation: 1, + delete_transformation: 1, + update_transformation: 2, + create_transformation: 2, + upload_presets: 0, + upload_preset: 1, + delete_upload_preset: 1, + update_upload_preset: 1, + create_upload_preset: 0, + root_folders: 0, + sub_folders: 1, + delete_folder: 1, + create_folder: 1, + upload_mappings: 0, + upload_mapping: 1, + delete_upload_mapping: 1, + update_upload_mapping: 1, + create_upload_mapping: 1, + list_streaming_profiles: 0, + get_streaming_profile: 1, + delete_streaming_profile: 1, + update_streaming_profile: 1, + create_streaming_profile: 1, + publish_by_ids: 1, + publish_by_tag: 1, + publish_by_prefix: 1, + update_resources_access_mode_by_prefix: 2, + update_resources_access_mode_by_tag: 2, + update_resources_access_mode_by_ids: 2, + search: 1, + search_folders: 1, + visual_search: 1, + delete_derived_by_transformation: 2, + add_metadata_field: 1, + list_metadata_fields: 1, + delete_metadata_field: 1, + metadata_field_by_field_id: 1, + update_metadata_field: 2, + update_metadata_field_datasource: 2, + delete_datasource_entries: 2, + restore_metadata_field_datasource: 2, + order_metadata_field_datasource: 3, + reorder_metadata_fields: 2, + list_metadata_rules: 1, + add_metadata_rule: 1, + delete_metadata_rule: 1, + update_metadata_rule: 2, + add_related_assets: 2, + add_related_assets_by_asset_id: 2, + delete_related_assets: 2, + delete_related_assets_by_asset_id: 2 +}); \ No newline at end of file diff --git a/node_modules/cloudinary/lib-es5/v2/index.js b/node_modules/cloudinary/lib-es5/v2/index.js new file mode 100644 index 0000000..9fa8630 --- /dev/null +++ b/node_modules/cloudinary/lib-es5/v2/index.js @@ -0,0 +1,17 @@ +'use strict'; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var v1 = require('../cloudinary'); +var api = require('./api'); +var uploader = require('./uploader'); +var search = require('./search'); +var search_folders = require('./search_folders'); + +var v2 = _extends({}, v1, { + api, + uploader, + search, + search_folders +}); +module.exports = v2; \ No newline at end of file diff --git a/node_modules/cloudinary/lib-es5/v2/search.js b/node_modules/cloudinary/lib-es5/v2/search.js new file mode 100644 index 0000000..38024bb --- /dev/null +++ b/node_modules/cloudinary/lib-es5/v2/search.js @@ -0,0 +1,210 @@ +'use strict'; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +var api = require('./api'); +var config = require('../config'); + +var _require = require('../utils'), + isEmpty = _require.isEmpty, + isNumber = _require.isNumber, + compute_hash = _require.compute_hash, + build_distribution_domain = _require.build_distribution_domain, + clear_blank = _require.clear_blank, + sort_object_by_key = _require.sort_object_by_key; + +var _require2 = require('../utils/encoding/base64Encode'), + base64Encode = _require2.base64Encode; + +var Search = function () { + function Search() { + _classCallCheck(this, Search); + + this.query_hash = { + sort_by: [], + aggregate: [], + with_field: [] + }; + this._ttl = 300; + } + + _createClass(Search, [{ + key: 'expression', + value: function expression(value) { + this.query_hash.expression = value; + return this; + } + }, { + key: 'max_results', + value: function max_results(value) { + this.query_hash.max_results = value; + return this; + } + }, { + key: 'next_cursor', + value: function next_cursor(value) { + this.query_hash.next_cursor = value; + return this; + } + }, { + key: 'aggregate', + value: function aggregate(value) { + var found = this.query_hash.aggregate.find(function (v) { + return v === value; + }); + + if (!found) { + this.query_hash.aggregate.push(value); + } + + return this; + } + }, { + key: 'with_field', + value: function with_field(value) { + var found = this.query_hash.with_field.find(function (v) { + return v === value; + }); + + if (!found) { + this.query_hash.with_field.push(value); + } + + return this; + } + }, { + key: 'sort_by', + value: function sort_by(field_name) { + var dir = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "desc"; + + var sort_bucket = void 0; + sort_bucket = {}; + sort_bucket[field_name] = dir; + + // Check if this field name is already stored in the hash + var previously_sorted_obj = this.query_hash.sort_by.find(function (sort_by) { + return sort_by[field_name]; + }); + + // Since objects are references in Javascript, we can update the reference we found + // For example, + if (previously_sorted_obj) { + previously_sorted_obj[field_name] = dir; + } else { + this.query_hash.sort_by.push(sort_bucket); + } + + return this; + } + }, { + key: 'ttl', + value: function ttl(newTtl) { + if (isNumber(newTtl)) { + this._ttl = newTtl; + return this; + } + + throw new Error('New TTL value has to be a Number.'); + } + }, { + key: 'to_query', + value: function to_query() { + var _this = this; + + Object.keys(this.query_hash).forEach(function (k) { + var v = _this.query_hash[k]; + if (!isNumber(v) && isEmpty(v)) { + delete _this.query_hash[k]; + } + }); + return this.query_hash; + } + }, { + key: 'execute', + value: function execute(options, callback) { + if (callback === null) { + callback = options; + } + options = options || {}; + return api.search(this.to_query(), options, callback); + } + }, { + key: 'to_url', + value: function to_url(ttl, next_cursor) { + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + + var apiSecret = 'api_secret' in options ? options.api_secret : config().api_secret; + if (!apiSecret) { + throw new Error('Must supply api_secret'); + } + + var urlTtl = ttl || this._ttl; + + var query = this.to_query(); + + var urlCursor = next_cursor; + if (query.next_cursor && !next_cursor) { + urlCursor = query.next_cursor; + } + delete query.next_cursor; + + var dataOrderedByKey = sort_object_by_key(clear_blank(query)); + var encodedQuery = base64Encode(JSON.stringify(dataOrderedByKey)); + + var urlPrefix = build_distribution_domain(options.source, options); + + var signature = compute_hash(`${urlTtl}${encodedQuery}${apiSecret}`, 'sha256', 'hex'); + + var urlWithoutCursor = `${urlPrefix}/search/${signature}/${urlTtl}/${encodedQuery}`; + return urlCursor ? `${urlWithoutCursor}/${urlCursor}` : urlWithoutCursor; + } + }], [{ + key: 'instance', + value: function instance() { + return new Search(); + } + }, { + key: 'expression', + value: function expression(value) { + return this.instance().expression(value); + } + }, { + key: 'max_results', + value: function max_results(value) { + return this.instance().max_results(value); + } + }, { + key: 'next_cursor', + value: function next_cursor(value) { + return this.instance().next_cursor(value); + } + }, { + key: 'aggregate', + value: function aggregate(value) { + return this.instance().aggregate(value); + } + }, { + key: 'with_field', + value: function with_field(value) { + return this.instance().with_field(value); + } + }, { + key: 'sort_by', + value: function sort_by(field_name) { + var dir = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'asc'; + + return this.instance().sort_by(field_name, dir); + } + }, { + key: 'ttl', + value: function ttl(newTtl) { + return this.instance().ttl(newTtl); + } + }]); + + return Search; +}(); + +module.exports = Search; \ No newline at end of file diff --git a/node_modules/cloudinary/lib-es5/v2/search_folders.js b/node_modules/cloudinary/lib-es5/v2/search_folders.js new file mode 100644 index 0000000..2b30da8 --- /dev/null +++ b/node_modules/cloudinary/lib-es5/v2/search_folders.js @@ -0,0 +1,42 @@ +'use strict'; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Search = require('./search'); +var api = require('./api'); + +var SearchFolders = function (_Search) { + _inherits(SearchFolders, _Search); + + function SearchFolders() { + _classCallCheck(this, SearchFolders); + + return _possibleConstructorReturn(this, (SearchFolders.__proto__ || Object.getPrototypeOf(SearchFolders)).call(this)); + } + + _createClass(SearchFolders, [{ + key: 'execute', + value: function execute(options, callback) { + if (callback === null) { + callback = options; + } + options = options || {}; + return api.search_folders(this.to_query(), options, callback); + } + }], [{ + key: 'instance', + value: function instance() { + return new SearchFolders(); + } + }]); + + return SearchFolders; +}(Search); + +module.exports = SearchFolders; \ No newline at end of file diff --git a/node_modules/cloudinary/lib-es5/v2/uploader.js b/node_modules/cloudinary/lib-es5/v2/uploader.js new file mode 100644 index 0000000..1dae6d3 --- /dev/null +++ b/node_modules/cloudinary/lib-es5/v2/uploader.js @@ -0,0 +1,40 @@ +'use strict'; + +var uploader = require('../uploader'); +var v1_adapters = require('../utils').v1_adapters; + +v1_adapters(exports, uploader, { + unsigned_upload_stream: 1, + upload_stream: 0, + unsigned_upload: 2, + upload: 1, + upload_large_part: 0, + upload_large: 1, + upload_chunked: 1, + upload_chunked_stream: 0, + explicit: 1, + destroy: 1, + rename: 2, + text: 1, + generate_sprite: 1, + multi: 1, + explode: 1, + add_tag: 2, + remove_tag: 2, + remove_all_tags: 1, + add_context: 2, + remove_all_context: 1, + replace_tag: 2, + create_archive: 0, + create_zip: 0, + update_metadata: 2 +}); + +exports.direct_upload = uploader.direct_upload; +exports.upload_tag_params = uploader.upload_tag_params; +exports.upload_url = uploader.upload_url; +exports.image_upload_tag = uploader.image_upload_tag; +exports.unsigned_image_upload_tag = uploader.unsigned_image_upload_tag; +exports.create_slideshow = uploader.create_slideshow; +exports.download_generated_sprite = uploader.download_generated_sprite; +exports.download_multi = uploader.download_multi; \ No newline at end of file diff --git a/node_modules/cloudinary/lib/api.js b/node_modules/cloudinary/lib/api.js new file mode 100644 index 0000000..4512064 --- /dev/null +++ b/node_modules/cloudinary/lib/api.js @@ -0,0 +1,684 @@ +const utils = require("./utils"); +const call_api = require("./api_client/call_api"); + +const { + extend, + pickOnlyExistingValues +} = utils; + +const TRANSFORMATIONS_URI = "transformations"; + +function deleteResourcesParams(options, params = {}) { + return extend(params, pickOnlyExistingValues(options, "keep_original", "invalidate", "next_cursor", "transformations")); +} + +function getResourceParams(options) { + return pickOnlyExistingValues(options, "exif", "cinemagraph_analysis", "colors", "derived_next_cursor", "faces", "image_metadata", "media_metadata", "pages", "phash", "coordinates", "max_results", "versions", "accessibility_analysis", 'related', 'related_next_cursor'); +} + +exports.ping = function ping(callback, options = {}) { + return call_api("get", ["ping"], {}, callback, options); +}; + +exports.usage = function usage(callback, options = {}) { + const uri = ["usage"]; + + if (options.date) { + uri.push(options.date); + } + + return call_api("get", uri, {}, callback, options); +}; + +exports.resource_types = function resource_types(callback, options = {}) { + return call_api("get", ["resources"], {}, callback, options); +}; + +exports.resources = function resources(callback, options = {}) { + let resource_type, type, uri; + resource_type = options.resource_type || "image"; + type = options.type; + uri = ["resources", resource_type]; + if (type != null) { + uri.push(type); + } + if ((options.start_at != null) && Object.prototype.toString.call(options.start_at) === '[object Date]') { + options.start_at = options.start_at.toUTCString(); + } + return call_api("get", uri, pickOnlyExistingValues(options, "next_cursor", "max_results", "prefix", "tags", "context", "direction", "moderations", "start_at", "metadata"), callback, options); +}; + +exports.resources_by_tag = function resources_by_tag(tag, callback, options = {}) { + let resource_type, uri; + resource_type = options.resource_type || "image"; + uri = ["resources", resource_type, "tags", tag]; + return call_api("get", uri, pickOnlyExistingValues(options, "next_cursor", "max_results", "tags", "context", "direction", "moderations", "metadata"), callback, options); +}; + +exports.resources_by_context = function resources_by_context(key, value, callback, options = {}) { + let params, resource_type, uri; + resource_type = options.resource_type || "image"; + uri = ["resources", resource_type, "context"]; + params = pickOnlyExistingValues(options, "next_cursor", "max_results", "tags", "context", "direction", "moderations", "metadata"); + params.key = key; + if (value != null) { + params.value = value; + } + return call_api("get", uri, params, callback, options); +}; + +exports.resources_by_moderation = function resources_by_moderation(kind, status, callback, options = {}) { + let resource_type, uri; + resource_type = options.resource_type || "image"; + uri = ["resources", resource_type, "moderations", kind, status]; + return call_api("get", uri, pickOnlyExistingValues(options, "next_cursor", "max_results", "tags", "context", "direction", "moderations", "metadata"), callback, options); +}; + +exports.resource_by_asset_id = function resource_by_asset_id(asset_id, callback, options = {}) { + const uri = ["resources", asset_id]; + return call_api("get", uri, getResourceParams(options), callback, options); +} + +exports.resources_by_asset_folder = function resources_by_asset_folder(asset_folder, callback, options = {}) { + let params, uri; + uri = ["resources", 'by_asset_folder']; + params = pickOnlyExistingValues(options, "next_cursor", "max_results", "tags", "context", "moderations"); + params.asset_folder = asset_folder; + return call_api("get", uri, params, callback, options); +}; + +exports.resources_by_asset_ids = function resources_by_asset_ids(asset_ids, callback, options = {}) { + let params, uri; + uri = ["resources", "by_asset_ids"]; + params = pickOnlyExistingValues(options, "tags", "context", "moderations"); + params["asset_ids[]"] = asset_ids; + return call_api("get", uri, params, callback, options); +} + +exports.resources_by_ids = function resources_by_ids(public_ids, callback, options = {}) { + let params, resource_type, type, uri; + resource_type = options.resource_type || "image"; + type = options.type || "upload"; + uri = ["resources", resource_type, type]; + params = pickOnlyExistingValues(options, "tags", "context", "moderations"); + params["public_ids[]"] = public_ids; + return call_api("get", uri, params, callback, options); +}; + +exports.resource = function resource(public_id, callback, options = {}) { + let resource_type, type, uri; + resource_type = options.resource_type || "image"; + type = options.type || "upload"; + uri = ["resources", resource_type, type, public_id]; + return call_api("get", uri, getResourceParams(options), callback, options); +}; + +exports.restore = function restore(public_ids, callback, options = {}) { + options.content_type = 'json'; + let resource_type, type, uri; + resource_type = options.resource_type || "image"; + type = options.type || "upload"; + uri = ["resources", resource_type, type, "restore"]; + return call_api("post", uri, { + public_ids: public_ids, + versions: options.versions + }, callback, options); +}; + +exports.update = function update(public_id, callback, options = {}) { + let params, resource_type, type, uri; + resource_type = options.resource_type || "image"; + type = options.type || "upload"; + uri = ["resources", resource_type, type, public_id]; + params = utils.updateable_resource_params(options); + if (options.moderation_status != null) { + params.moderation_status = options.moderation_status; + } + if (options.clear_invalid != null) { + params.clear_invalid = options.clear_invalid; + } + return call_api("post", uri, params, callback, options); +}; + +exports.delete_resources = function delete_resources(public_ids, callback, options = {}) { + let resource_type, type, uri; + resource_type = options.resource_type || "image"; + type = options.type || "upload"; + uri = ["resources", resource_type, type]; + return call_api("delete", uri, deleteResourcesParams(options, { + "public_ids[]": public_ids + }), callback, options); +}; + +exports.delete_resources_by_prefix = function delete_resources_by_prefix(prefix, callback, options = {}) { + let resource_type, type, uri; + resource_type = options.resource_type || "image"; + type = options.type || "upload"; + uri = ["resources", resource_type, type]; + return call_api("delete", uri, deleteResourcesParams(options, { + prefix: prefix + }), callback, options); +}; + +exports.delete_resources_by_tag = function delete_resources_by_tag(tag, callback, options = {}) { + let resource_type, uri; + resource_type = options.resource_type || "image"; + uri = ["resources", resource_type, "tags", tag]; + return call_api("delete", uri, deleteResourcesParams(options), callback, options); +}; + +exports.delete_all_resources = function delete_all_resources(callback, options = {}) { + let resource_type, type, uri; + + resource_type = options.resource_type || "image"; + type = options.type || "upload"; + uri = ["resources", resource_type, type]; + return call_api("delete", uri, deleteResourcesParams(options, { + all: true + }), callback, options); +}; + +const createRelationParams = (publicIds = []) => { + return { + assets_to_relate: Array.isArray(publicIds) ? publicIds : [publicIds] + }; +}; + +const deleteRelationParams = (publicIds = []) => { + return { + assets_to_unrelate: Array.isArray(publicIds) ? publicIds : [publicIds] + }; +}; + +exports.add_related_assets = (publicId, assetsToRelate, callback, options = {}) => { + const params = createRelationParams(assetsToRelate); + return call_api('post', ['resources', 'related_assets', options.resource_type, options.type, publicId], params, callback, options); +}; + +exports.add_related_assets_by_asset_id = (assetId, assetsToRelate, callback, options = {}) => { + const params = createRelationParams(assetsToRelate); + return call_api('post', ['resources', 'related_assets', assetId], params, callback, options); +}; + +exports.delete_related_assets = (publicId, assetsToUnrelate, callback, options = {}) => { + const params = deleteRelationParams(assetsToUnrelate); + return call_api('delete', ['resources', 'related_assets', options.resource_type, options.type, publicId], params, callback, options); +}; + +exports.delete_related_assets_by_asset_id = (assetId, assetsToUnrelate, callback, options = {}) => { + const params = deleteRelationParams(assetsToUnrelate); + return call_api('delete', ['resources', 'related_assets', assetId], params, callback, options); +}; + +exports.delete_derived_resources = function delete_derived_resources(derived_resource_ids, callback, options = {}) { + let uri; + uri = ["derived_resources"]; + return call_api("delete", uri, { + "derived_resource_ids[]": derived_resource_ids + }, callback, options); +}; + +exports.delete_derived_by_transformation = function delete_derived_by_transformation( + public_ids, + transformations, + callback, + options = {} +) { + let params, resource_type, type, uri; + resource_type = options.resource_type || "image"; + type = options.type || "upload"; + uri = "resources/" + resource_type + "/" + type; + params = extend({ + "public_ids[]": public_ids + }, pickOnlyExistingValues(options, "invalidate")); + params.keep_original = true; + params.transformations = utils.build_eager(transformations); + return call_api("delete", uri, params, callback, options); +}; + +exports.tags = function tags(callback, options = {}) { + let resource_type, uri; + resource_type = options.resource_type || "image"; + uri = ["tags", resource_type]; + return call_api("get", uri, pickOnlyExistingValues(options, "next_cursor", "max_results", "prefix"), callback, options); +}; + +exports.transformations = function transformations(callback, options = {}) { + const params = pickOnlyExistingValues(options, "next_cursor", "max_results", "named"); + return call_api("get", TRANSFORMATIONS_URI, params, callback, options); +}; + +exports.transformation = function transformation(transformationName, callback, options = {}) { + const params = pickOnlyExistingValues(options, "next_cursor", "max_results"); + params.transformation = utils.build_eager(transformationName); + return call_api("get", TRANSFORMATIONS_URI, params, callback, options); +}; + +exports.delete_transformation = function delete_transformation(transformationName, callback, options = {}) { + const params = {}; + params.transformation = utils.build_eager(transformationName); + return call_api("delete", TRANSFORMATIONS_URI, params, callback, options); +}; + +exports.update_transformation = function update_transformation(transformationName, updates, callback, options = {}) { + const params = pickOnlyExistingValues(updates, "allowed_for_strict"); + params.transformation = utils.build_eager(transformationName); + if (updates.unsafe_update != null) { + params.unsafe_update = utils.build_eager(updates.unsafe_update); + } + return call_api("put", TRANSFORMATIONS_URI, params, callback, options); +}; + +exports.create_transformation = function create_transformation(name, definition, callback, options = {}) { + const params = {name}; + params.transformation = utils.build_eager(definition); + return call_api("post", TRANSFORMATIONS_URI, params, callback, options); +}; + +exports.upload_presets = function upload_presets(callback, options = {}) { + return call_api("get", ["upload_presets"], pickOnlyExistingValues(options, "next_cursor", "max_results"), callback, options); +}; + +exports.upload_preset = function upload_preset(name, callback, options = {}) { + let uri; + uri = ["upload_presets", name]; + return call_api("get", uri, {}, callback, options); +}; + +exports.delete_upload_preset = function delete_upload_preset(name, callback, options = {}) { + let uri; + uri = ["upload_presets", name]; + return call_api("delete", uri, {}, callback, options); +}; + +exports.update_upload_preset = function update_upload_preset(name, callback, options = {}) { + let params, uri; + uri = ["upload_presets", name]; + params = utils.merge(utils.clear_blank(utils.build_upload_params(options)), pickOnlyExistingValues(options, "unsigned", "disallow_public_id", "live")); + return call_api("put", uri, params, callback, options); +}; + +exports.create_upload_preset = function create_upload_preset(callback, options = {}) { + let params, uri; + uri = ["upload_presets"]; + params = utils.merge(utils.clear_blank(utils.build_upload_params(options)), pickOnlyExistingValues(options, "name", "unsigned", "disallow_public_id", "live")); + return call_api("post", uri, params, callback, options); +}; + +exports.root_folders = function root_folders(callback, options = {}) { + let uri, params; + uri = ["folders"]; + params = pickOnlyExistingValues(options, "next_cursor", "max_results"); + return call_api("get", uri, params, callback, options); +}; + +exports.sub_folders = function sub_folders(path, callback, options = {}) { + let uri, params; + uri = ["folders", path]; + params = pickOnlyExistingValues(options, "next_cursor", "max_results"); + return call_api("get", uri, params, callback, options); +}; + +/** + * Creates an empty folder + * + * @param {string} path The folder path to create + * @param {function} callback Callback function + * @param {object} options Configuration options + * @returns {*} + */ +exports.create_folder = function create_folder(path, callback, options = {}) { + let uri; + uri = ["folders", path]; + return call_api("post", uri, {}, callback, options); +}; + +exports.delete_folder = function delete_folder(path, callback, options = {}) { + let uri; + uri = ["folders", path]; + return call_api("delete", uri, {}, callback, options); +}; + +exports.upload_mappings = function upload_mappings(callback, options = {}) { + let params; + params = pickOnlyExistingValues(options, "next_cursor", "max_results"); + return call_api("get", "upload_mappings", params, callback, options); +}; + +exports.upload_mapping = function upload_mapping(name, callback, options = {}) { + if (name == null) { + name = null; + } + return call_api("get", 'upload_mappings', { + folder: name + }, callback, options); +}; + +exports.delete_upload_mapping = function delete_upload_mapping(name, callback, options = {}) { + return call_api("delete", 'upload_mappings', { + folder: name + }, callback, options); +}; + +exports.update_upload_mapping = function update_upload_mapping(name, callback, options = {}) { + let params; + params = pickOnlyExistingValues(options, "template"); + params.folder = name; + return call_api("put", 'upload_mappings', params, callback, options); +}; + +exports.create_upload_mapping = function create_upload_mapping(name, callback, options = {}) { + let params; + params = pickOnlyExistingValues(options, "template"); + params.folder = name; + return call_api("post", 'upload_mappings', params, callback, options); +}; + +function publishResource(byKey, value, callback, options = {}) { + let params, resource_type, uri; + params = pickOnlyExistingValues(options, "type", "invalidate", "overwrite"); + params[byKey] = value; + resource_type = options.resource_type || "image"; + uri = ["resources", resource_type, "publish_resources"]; + options = extend({ + resource_type: resource_type + }, options); + return call_api("post", uri, params, callback, options); +} + +exports.publish_by_prefix = function publish_by_prefix(prefix, callback, options = {}) { + return publishResource("prefix", prefix, callback, options); +}; + +exports.publish_by_tag = function publish_by_tag(tag, callback, options = {}) { + return publishResource("tag", tag, callback, options); +}; + +exports.publish_by_ids = function publish_by_ids(public_ids, callback, options = {}) { + return publishResource("public_ids", public_ids, callback, options); +}; + +exports.list_streaming_profiles = function list_streaming_profiles(callback, options = {}) { + return call_api("get", "streaming_profiles", {}, callback, options); +}; + +exports.get_streaming_profile = function get_streaming_profile(name, callback, options = {}) { + return call_api("get", "streaming_profiles/" + name, {}, callback, options); +}; + +exports.delete_streaming_profile = function delete_streaming_profile(name, callback, options = {}) { + return call_api("delete", "streaming_profiles/" + name, {}, callback, options); +}; + +exports.update_streaming_profile = function update_streaming_profile(name, callback, options = {}) { + let params; + params = utils.build_streaming_profiles_param(options); + return call_api("put", "streaming_profiles/" + name, params, callback, options); +}; + +exports.create_streaming_profile = function create_streaming_profile(name, callback, options = {}) { + let params; + params = utils.build_streaming_profiles_param(options); + params.name = name; + return call_api("post", 'streaming_profiles', params, callback, options); +}; + +function updateResourcesAccessMode(access_mode, by_key, value, callback, options = {}) { + let params, resource_type, type; + resource_type = options.resource_type || "image"; + type = options.type || "upload"; + params = { + access_mode: access_mode + }; + params[by_key] = value; + return call_api("post", "resources/" + resource_type + "/" + type + "/update_access_mode", params, callback, options); +} + +exports.search = function search(params, callback, options = {}) { + options.content_type = 'json'; + return call_api("post", "resources/search", params, callback, options); +}; + +exports.visual_search = function visual_search(params, callback, options = {}) { + const allowedParams = pickOnlyExistingValues(params, 'image_url', 'image_asset_id', 'text'); + return call_api('get', ['resources', 'visual_search'], allowedParams, callback, options); +}; + +exports.search_folders = function search_folders(params, callback, options = {}) { + options.content_type = 'json'; + return call_api("post", "folders/search", params, callback, options); +}; + +exports.update_resources_access_mode_by_prefix = function update_resources_access_mode_by_prefix( + access_mode, + prefix, + callback, + options = {} +) { + return updateResourcesAccessMode(access_mode, "prefix", prefix, callback, options); +}; + +exports.update_resources_access_mode_by_tag = function update_resources_access_mode_by_tag( + access_mode, + tag, + callback, + options = {} +) { + return updateResourcesAccessMode(access_mode, "tag", tag, callback, options); +}; + +exports.update_resources_access_mode_by_ids = function update_resources_access_mode_by_ids( + access_mode, + ids, + callback, + options = {} +) { + return updateResourcesAccessMode(access_mode, "public_ids[]", ids, callback, options); +}; + +/** + * Creates a new metadata field definition + * + * @see https://cloudinary.com/documentation/admin_api#create_a_metadata_field + * + * @param {Object} field The field to add + * @param {Function} callback Callback function + * @param {Object} options Configuration options + * + * @return {Object} + */ +exports.add_metadata_field = function add_metadata_field(field, callback, options = {}) { + const params = pickOnlyExistingValues(field, "external_id", "type", "label", "mandatory", "default_value", "validation", "datasource", "restrictions"); + options.content_type = "json"; + return call_api("post", ["metadata_fields"], params, callback, options); +}; + +/** + * Returns a list of all metadata field definitions + * + * @see https://cloudinary.com/documentation/admin_api#get_metadata_fields + * + * @param {Function} callback Callback function + * @param {Object} options Configuration options + * + * @return {Object} + */ +exports.list_metadata_fields = function list_metadata_fields(callback, options = {}) { + return call_api("get", ["metadata_fields"], {}, callback, options); +}; + +/** + * Deletes a metadata field definition. + * + * The field should no longer be considered a valid candidate for all other endpoints + * + * @see https://cloudinary.com/documentation/admin_api#delete_a_metadata_field_by_external_id + * + * @param {String} field_external_id The external id of the field to delete + * @param {Function} callback Callback function + * @param {Object} options Configuration options + * + * @return {Object} + */ +exports.delete_metadata_field = function delete_metadata_field(field_external_id, callback, options = {}) { + return call_api("delete", ["metadata_fields", field_external_id], {}, callback, options); +}; + +/** + * Get a metadata field by external id + * + * @see https://cloudinary.com/documentation/admin_api#get_a_metadata_field_by_external_id + * + * @param {String} external_id The ID of the metadata field to retrieve + * @param {Function} callback Callback function + * @param {Object} options Configuration options + * + * @return {Object} + */ +exports.metadata_field_by_field_id = function metadata_field_by_field_id(external_id, callback, options = {}) { + return call_api("get", ["metadata_fields", external_id], {}, callback, options); +}; + +/** + * Updates a metadata field by external id + * + * Updates a metadata field definition (partially, no need to pass the entire object) passed as JSON data. + * See {@link https://cloudinary.com/documentation/admin_api#generic_structure_of_a_metadata_field Generic structure of a metadata field} for details. + * + * @see https://cloudinary.com/documentation/admin_api#update_a_metadata_field_by_external_id + * + * @param {String} external_id The ID of the metadata field to update + * @param {Object} field Updated values of metadata field + * @param {Function} callback Callback function + * @param {Object} options Configuration options + * + * @return {Object} + */ +exports.update_metadata_field = function update_metadata_field(external_id, field, callback, options = {}) { + const params = pickOnlyExistingValues(field, "external_id", "type", "label", "mandatory", "default_value", "validation", "datasource", "restrictions"); + options.content_type = "json"; + return call_api("put", ["metadata_fields", external_id], params, callback, options); +}; + +/** + * Updates a metadata field datasource + * + * Updates the datasource of a supported field type (currently only enum and set), passed as JSON data. The + * update is partial: datasource entries with an existing external_id will be updated and entries with new + * external_id’s (or without external_id’s) will be appended. + * + * @see https://cloudinary.com/documentation/admin_api#update_a_metadata_field_datasource + * + * @param {String} field_external_id The ID of the field to update + * @param {Object} entries_external_id Updated values for datasource + * @param {Function} callback Callback function + * @param {Object} options Configuration options + * + * @return {Object} + */ +exports.update_metadata_field_datasource = function update_metadata_field_datasource(field_external_id, entries_external_id, callback, options = {}) { + const params = pickOnlyExistingValues(entries_external_id, "values"); + options.content_type = "json"; + return call_api("put", ["metadata_fields", field_external_id, "datasource"], params, callback, options); +}; + +/** + * Deletes entries in a metadata field datasource + * + * Deletes (blocks) the datasource entries for a specified metadata field definition. Sets the state of the + * entries to inactive. This is a soft delete, the entries still exist under the hood and can be activated again + * with the restore datasource entries method. + * + * @see https://cloudinary.com/documentation/admin_api#delete_entries_in_a_metadata_field_datasource + * + * @param {String} field_external_id The ID of the metadata field + * @param {Array} entries_external_id An array of IDs of datasource entries to delete + * @param {Function} callback Callback function + * @param {Object} options Configuration options + * + * @return {Object} + */ +exports.delete_datasource_entries = function delete_datasource_entries(field_external_id, entries_external_id, callback, options = {}) { + options.content_type = "json"; + const params = {external_ids: entries_external_id}; + return call_api("delete", ["metadata_fields", field_external_id, "datasource"], params, callback, options); +}; + +/** + * Restores entries in a metadata field datasource + * + * Restores (unblocks) any previously deleted datasource entries for a specified metadata field definition. + * Sets the state of the entries to active. + * + * @see https://cloudinary.com/documentation/admin_api#restore_entries_in_a_metadata_field_datasource + * + * @param {String} field_external_id The ID of the metadata field + * @param {Array} entries_external_id An array of IDs of datasource entries to delete + * @param {Function} callback Callback function + * @param {Object} options Configuration options + * + * @return {Object} + */ +exports.restore_metadata_field_datasource = function restore_metadata_field_datasource(field_external_id, entries_external_id, callback, options = {}) { + options.content_type = "json"; + const params = {external_ids: entries_external_id}; + return call_api("post", ["metadata_fields", field_external_id, "datasource_restore"], params, callback, options); +}; + +/** + * Sorts metadata field datasource. Currently supports only value + * @param {String} field_external_id The ID of the metadata field + * @param {String} sort_by Criteria for the sort. Currently supports only value + * @param {String} direction Optional (gets either asc or desc) + * @param {Function} callback Callback function + * @param {Object} options Configuration options + * + * @return {Object} + */ +exports.order_metadata_field_datasource = function order_metadata_field_datasource(field_external_id, sort_by, direction, callback, options = {}) { + options.content_type = "json"; + const params = { + order_by: sort_by, + direction: direction + }; + return call_api("post", ["metadata_fields", field_external_id, "datasource", "order"], params, callback, options); +}; + +/** + * Reorders metadata fields. + * + * @param {String} order_by Criteria for the order (one of the fields 'label', 'external_id', 'created_at'). + * @param {String} direction Optional (gets either asc or desc). + * @param {Function} callback Callback function. + * @param {Object} options Configuration options. + * + * @return {Object} + */ +exports.reorder_metadata_fields = function reorder_metadata_fields(order_by, direction, callback, options = {}) { + options.content_type = "json"; + const params = { + order_by, + direction + }; + return call_api("put", ["metadata_fields", "order"], params, callback, options); +}; + +exports.list_metadata_rules = function list_metadata_rules(callback, options = {}) { + return call_api('get', ['metadata_rules'], {}, callback, options); +}; + +exports.add_metadata_rule = function add_metadata_rule(metadata_rule, callback, options = {}) { + options.content_type = 'json'; + const params = pickOnlyExistingValues(metadata_rule, 'metadata_field_id', 'condition', 'result', 'name'); + return call_api('post', ['metadata_rules'], params, callback, options); +}; + +exports.update_metadata_rule = function update_metadata_rule(field_external_id, updated_metadata_rule, callback, options = {}) { + options.content_type = 'json'; + const params = pickOnlyExistingValues(updated_metadata_rule, 'metadata_field_id', 'condition', 'result', 'name', 'state'); + return call_api('put', ['metadata_rules', field_external_id], params, callback, options); +}; + +exports.delete_metadata_rule = function delete_metadata_rule(field_external_id, callback, options = {}) { + return call_api('delete', ['metadata_rules', field_external_id], {}, callback, options); +}; diff --git a/node_modules/cloudinary/lib/api_client/call_account_api.js b/node_modules/cloudinary/lib/api_client/call_account_api.js new file mode 100644 index 0000000..1df492a --- /dev/null +++ b/node_modules/cloudinary/lib/api_client/call_account_api.js @@ -0,0 +1,22 @@ +// eslint-disable-next-line import/order +const config = require("../config"); +const utils = require("../utils"); +const ensureOption = require('../utils/ensureOption').defaults(config()); +const execute_request = require('./execute_request'); + +const { ensurePresenceOf } = utils; + +function call_account_api(method, uri, params, callback, options) { + ensurePresenceOf({ method, uri }); + const cloudinary = ensureOption(options, "upload_prefix", "https://api.cloudinary.com"); + const account_id = ensureOption(options, "account_id"); + const api_url = [cloudinary, "v1_1", "provisioning", "accounts", account_id].concat(uri).join("/"); + const auth = { + key: ensureOption(options, "provisioning_api_key"), + secret: ensureOption(options, "provisioning_api_secret") + }; + + return execute_request(method, params, auth, api_url, callback, options); +} + +module.exports = call_account_api; diff --git a/node_modules/cloudinary/lib/api_client/call_api.js b/node_modules/cloudinary/lib/api_client/call_api.js new file mode 100644 index 0000000..5b925ee --- /dev/null +++ b/node_modules/cloudinary/lib/api_client/call_api.js @@ -0,0 +1,26 @@ +// eslint-disable-next-line import/order +const config = require("../config"); +const utils = require("../utils"); +const ensureOption = require('../utils/ensureOption').defaults(config()); +const execute_request = require('./execute_request'); + +const { ensurePresenceOf } = utils; + +function call_api(method, uri, params, callback, options) { + ensurePresenceOf({ method, uri }); + const api_url = utils.base_api_url(uri, options); + let auth = {}; + if (options.oauth_token || config().oauth_token){ + auth = { + oauth_token: ensureOption(options, "oauth_token") + }; + } else { + auth = { + key: ensureOption(options, "api_key"), + secret: ensureOption(options, "api_secret") + }; + } + return execute_request(method, params, auth, api_url, callback, options); +} + +module.exports = call_api; diff --git a/node_modules/cloudinary/lib/api_client/execute_request.js b/node_modules/cloudinary/lib/api_client/execute_request.js new file mode 100644 index 0000000..74917d7 --- /dev/null +++ b/node_modules/cloudinary/lib/api_client/execute_request.js @@ -0,0 +1,163 @@ +// eslint-disable-next-line import/order +const config = require("../config"); +const https = /^http:/.test(config().upload_prefix) ? require('http') : require('https'); +const querystring = require("querystring"); +const Q = require('q'); +const url = require('url'); +const utils = require("../utils"); +const ensureOption = require('../utils/ensureOption').defaults(config()); + +const { extend, includes, isEmpty } = utils; + +const agent = config.api_proxy ? new https.Agent(config.api_proxy) : null; + +function execute_request(method, params, auth, api_url, callback, options = {}) { + method = method.toUpperCase(); + const deferred = Q.defer(); + + let query_params, handle_response; // declare to user later + let key = auth.key; + let secret = auth.secret; + let oauth_token = auth.oauth_token; + let content_type = 'application/x-www-form-urlencoded'; + + if (options.content_type === 'json') { + query_params = JSON.stringify(params); + content_type = 'application/json'; + } else { + query_params = querystring.stringify(params); + } + + if (method === "GET") { + api_url += "?" + query_params; + } + + let request_options = url.parse(api_url); + + request_options = extend(request_options, { + method: method, + headers: { + 'Content-Type': content_type, + 'User-Agent': utils.getUserAgent() + } + }); + + if (oauth_token) { + request_options.headers.Authorization = `Bearer ${oauth_token}`; + } else { + request_options.auth = key + ":" + secret + } + + if (options.agent != null) { + request_options.agent = options.agent; + } + + let proxy = options.api_proxy || config().api_proxy; + if (!isEmpty(proxy)) { + if (!request_options.agent && agent) { + request_options.agent = agent; + } else if (!request_options.agent) { + request_options.agent = new https.Agent(proxy); + } else { + console.warn("Proxy is set, but request uses a custom agent, proxy is ignored."); + } + } + if (method !== "GET") { + request_options.headers['Content-Length'] = Buffer.byteLength(query_params); + } + handle_response = function (res) { + const {hide_sensitive = false} = config(); + const sanitizedOptions = {...request_options}; + + if (hide_sensitive === true){ + if ("auth" in sanitizedOptions) { delete sanitizedOptions.auth; } + if ("Authorization" in sanitizedOptions.headers) { delete sanitizedOptions.headers.Authorization; } + } + + if (includes([200, 400, 401, 403, 404, 409, 420, 500], res.statusCode)) { + let buffer = ""; + let error = false; + res.on("data", function (d) { + buffer += d; + return buffer; + }); + res.on("end", function () { + let result; + if (error) { + return; + } + try { + result = JSON.parse(buffer); + } catch (e) { + result = { + error: { + message: "Server return invalid JSON response. Status Code " + res.statusCode + } + }; + } + + if (result.error) { + result.error.http_code = res.statusCode; + } else { + result.rate_limit_allowed = parseInt(res.headers["x-featureratelimit-limit"]); + result.rate_limit_reset_at = new Date(res.headers["x-featureratelimit-reset"]); + result.rate_limit_remaining = parseInt(res.headers["x-featureratelimit-remaining"]); + } + + if (result.error) { + deferred.reject(Object.assign({ + request_options: sanitizedOptions, + query_params + }, result)); + } else { + deferred.resolve(result); + } + if (typeof callback === "function") { + callback(result); + } + }); + res.on("error", function (e) { + error = true; + let err_obj = { + error: { + message: e, + http_code: res.statusCode, + request_options: sanitizedOptions, + query_params + } + }; + deferred.reject(err_obj.error); + if (typeof callback === "function") { + callback(err_obj); + } + }); + } else { + let err_obj = { + error: { + message: "Server returned unexpected status code - " + res.statusCode, + http_code: res.statusCode, + request_options: sanitizedOptions, + query_params + } + }; + deferred.reject(err_obj.error); + if (typeof callback === "function") { + callback(err_obj); + } + } + }; + + const request = https.request(request_options, handle_response); + request.on("error", function (e) { + deferred.reject(e); + return typeof callback === "function" ? callback({ error: e }) : void 0; + }); + request.setTimeout(ensureOption(options, "timeout", 60000)); + if (method !== "GET") { + request.write(query_params); + } + request.end(); + return deferred.promise; +} + +module.exports = execute_request; diff --git a/node_modules/cloudinary/lib/auth_token.js b/node_modules/cloudinary/lib/auth_token.js new file mode 100644 index 0000000..39694b5 --- /dev/null +++ b/node_modules/cloudinary/lib/auth_token.js @@ -0,0 +1,84 @@ +/** + * Authorization Token + * @module auth_token + */ + +const crypto = require('crypto'); +const smart_escape = require('./utils/encoding/smart_escape'); + +const unsafe = /([ "#%&'/:;<=>?@[\]^`{|}~]+)/g; + +function digest(message, key) { + return crypto.createHmac("sha256", Buffer.from(key, "hex")).update(message).digest('hex'); +} + +/** + * Escape url using lowercase hex code + * @param {string} url a url string + * @return {string} escaped url + */ +function escapeToLower(url) { + const safeUrl = smart_escape(url, unsafe); + return safeUrl.replace(/%../g, function (match) { + return match.toLowerCase(); + }); +} + +/** + * Auth token options + * @typedef {object} authTokenOptions + * @property {string} [token_name="__cld_token__"] The name of the token. + * @property {string} key The secret key required to sign the token. + * @property {string} ip The IP address of the client. + * @property {number} start_time=now The start time of the token in seconds from epoch. + * @property {string} expiration The expiration time of the token in seconds from epoch. + * @property {string} duration The duration of the token (from start_time). + * @property {string|Array} acl The ACL(s) for the token. + * @property {string} url The URL to authentication in case of a URL token. + * + */ + +/** + * Generate an authorization token + * @param {authTokenOptions} options + * @returns {string} the authorization token + */ +module.exports = function (options) { + const tokenName = options.token_name ? options.token_name : "__cld_token__"; + const tokenSeparator = "~"; + if (options.expiration == null) { + if (options.duration != null) { + let start = options.start_time != null ? options.start_time : Math.round(Date.now() / 1000); + options.expiration = start + options.duration; + } else { + throw new Error("Must provide either expiration or duration"); + } + } + let tokenParts = []; + if (options.ip != null) { + tokenParts.push(`ip=${options.ip}`); + } + if (options.start_time != null) { + tokenParts.push(`st=${options.start_time}`); + } + tokenParts.push(`exp=${options.expiration}`); + if (options.acl != null) { + if (Array.isArray(options.acl) === true) { + options.acl = options.acl.join("!"); + } + tokenParts.push(`acl=${escapeToLower(options.acl)}`); + } + let toSign = [...tokenParts]; + if (options.url != null && options.acl == null) { + let url = escapeToLower(options.url); + toSign.push(`url=${url}`); + } + let auth = digest(toSign.join(tokenSeparator), options.key); + tokenParts.push(`hmac=${auth}`); + + if (!options.url && !options.acl) { + throw 'authToken must contain either an acl or a url property' + } + + return `${tokenName}=${tokenParts.join(tokenSeparator)}`; +}; diff --git a/node_modules/cloudinary/lib/cache.js b/node_modules/cloudinary/lib/cache.js new file mode 100644 index 0000000..6e40272 --- /dev/null +++ b/node_modules/cloudinary/lib/cache.js @@ -0,0 +1,147 @@ +/* eslint-disable class-methods-use-this */ + +const CACHE = Symbol.for("com.cloudinary.cache"); +const CACHE_ADAPTER = Symbol.for("com.cloudinary.cacheAdapter"); +const { ensurePresenceOf, generate_transformation_string } = require('./utils'); + +/** + * The adapter used to communicate with the underlying cache storage + */ +class CacheAdapter { + /** + * Get a value from the cache + * @param {string} publicId + * @param {string} type + * @param {string} resourceType + * @param {string} transformation + * @param {string} format + * @return {*} the value associated with the provided arguments + */ + get(publicId, type, resourceType, transformation, format) {} + + /** + * Set a new value in the cache + * @param {string} publicId + * @param {string} type + * @param {string} resourceType + * @param {string} transformation + * @param {string} format + * @param {*} value + */ + set(publicId, type, resourceType, transformation, format, value) {} + + /** + * Delete all values in the cache + */ + flushAll() {} +} +/** + * @class Cache + * Stores and retrieves values identified by publicId / options pairs + */ +const Cache = { + /** + * The adapter interface. Extend this class to implement a specific adapter. + * @type CacheAdapter + */ + CacheAdapter, + /** + * Set the cache adapter + * @param {CacheAdapter} adapter The cache adapter + */ + setAdapter(adapter) { + if (this.adapter) { + console.warn("Overriding existing cache adapter"); + } + this.adapter = adapter; + }, + /** + * Get the adapter the Cache is using + * @return {CacheAdapter} the current cache adapter + */ + getAdapter() { + return this.adapter; + }, + /** + * Get an item from the cache + * @param {string} publicId + * @param {object} options + * @return {*} + */ + get(publicId, options) { + if (!this.adapter) { return undefined; } + ensurePresenceOf({ publicId }); + let transformation = generate_transformation_string({ ...options }); + return this.adapter.get( + publicId, options.type || 'upload', + options.resource_type || 'image', + transformation, + options.format + ); + }, + /** + * Set a new value in the cache + * @param {string} publicId + * @param {object} options + * @param {*} value + * @return {*} + */ + set(publicId, options, value) { + if (!this.adapter) { return undefined; } + ensurePresenceOf({ publicId, value }); + let transformation = generate_transformation_string({ ...options }); + return this.adapter.set( + publicId, + options.type || 'upload', + options.resource_type || 'image', + transformation, + options.format, + value + ); + }, + /** + * Clear all items in the cache + * @return {*} Returns the value from the adapter's flushAll() method + */ + flushAll() { + if (!this.adapter) { return undefined; } + return this.adapter.flushAll(); + } + +}; + +// Define singleton property +Object.defineProperty(Cache, "instance", { + get() { + return global[CACHE]; + } +}); +Object.defineProperty(Cache, "adapter", { + /** + * + * @return {CacheAdapter} The current cache adapter + */ + get() { + return global[CACHE_ADAPTER]; + }, + /** + * Set the cache adapter to be used by Cache + * @param {CacheAdapter} adapter Cache adapter + */ + set(adapter) { + global[CACHE_ADAPTER] = adapter; + } +}); +Object.freeze(Cache); + +// Instantiate the singleton +let symbols = Object.getOwnPropertySymbols(global); +if (symbols.indexOf(CACHE) < 0) { + global[CACHE] = Cache; +} + +/** + * Store key value pairs + + */ +module.exports = Cache; diff --git a/node_modules/cloudinary/lib/cache/FileKeyValueStorage.js b/node_modules/cloudinary/lib/cache/FileKeyValueStorage.js new file mode 100644 index 0000000..319067e --- /dev/null +++ b/node_modules/cloudinary/lib/cache/FileKeyValueStorage.js @@ -0,0 +1,54 @@ +const fs = require('fs'); +const path = require('path'); +const rimraf = require('../utils/rimraf'); + +class FileKeyValueStorage { + constructor({ baseFolder } = {}) { + this.init(baseFolder); + } + + init(baseFolder) { + if (baseFolder) { + try { + fs.accessSync(baseFolder); + this.baseFolder = baseFolder; + } catch (err) { + throw err; + } + } else { + if (!fs.existsSync('test_cache')) { + fs.mkdirSync('test_cache'); + } + this.baseFolder = fs.mkdtempSync('test_cache/cloudinary_cache_'); + console.info("Created temporary cache folder at " + this.baseFolder); + } + } + + get(key) { + let value = fs.readFileSync(this.getFilename(key)); + try { + return JSON.parse(value); + } catch (e) { + throw "Cannot parse cache value"; + } + } + + set(key, value) { + fs.writeFileSync(this.getFilename(key), JSON.stringify(value)); + } + + clear() { + let files = fs.readdirSync(this.baseFolder); + files.forEach(file => fs.unlinkSync(path.join(this.baseFolder, file))); + } + + deleteBaseFolder() { + rimraf(this.baseFolder); + } + + getFilename(key) { + return path.format({ name: key, base: key, ext: '.json', dir: this.baseFolder }); + } +} + +module.exports = FileKeyValueStorage; diff --git a/node_modules/cloudinary/lib/cache/KeyValueCacheAdapter.js b/node_modules/cloudinary/lib/cache/KeyValueCacheAdapter.js new file mode 100644 index 0000000..f49531c --- /dev/null +++ b/node_modules/cloudinary/lib/cache/KeyValueCacheAdapter.js @@ -0,0 +1,62 @@ +const crypto = require('crypto'); +const CacheAdapter = require('../cache').CacheAdapter; + +/** + * + */ +class KeyValueCacheAdapter extends CacheAdapter { + constructor(storage) { + super(); + this.storage = storage; + } + + /** @inheritDoc */ + get(publicId, type, resourceType, transformation, format) { + let key = KeyValueCacheAdapter.generateCacheKey(publicId, type, resourceType, transformation, format); + return KeyValueCacheAdapter.extractData(this.storage.get(key)); + } + + /** @inheritDoc */ + set(publicId, type, resourceType, transformation, format, value) { + let key = KeyValueCacheAdapter.generateCacheKey(publicId, type, resourceType, transformation, format); + this.storage.set( + key, + KeyValueCacheAdapter.prepareData( + publicId, + type, + resourceType, + transformation, + format, + value + ) + ); + } + + /** @inheritDoc */ + flushAll() { + this.storage.clear(); + } + + /** @inheritDoc */ + delete(publicId, type, resourceType, transformation, format) { + let key = KeyValueCacheAdapter.generateCacheKey(publicId, type, resourceType, transformation, format); + return this.storage.delete(key); + } + + static generateCacheKey(publicId, type, resourceType, transformation, format) { + type = type || "upload"; + resourceType = resourceType || "image"; + let sha1 = crypto.createHash('sha1'); + return sha1.update([publicId, type, resourceType, transformation, format].filter(i => i).join('/')).digest('hex'); + } + + static prepareData(publicId, type, resourceType, transformation, format, data) { + return { publicId, type, resourceType, transformation, format, breakpoints: data }; + } + + static extractData(data) { + return data ? data.breakpoints : null; + } +} + +module.exports = KeyValueCacheAdapter; diff --git a/node_modules/cloudinary/lib/cloudinary.js b/node_modules/cloudinary/lib/cloudinary.js new file mode 100644 index 0000000..6c0d00f --- /dev/null +++ b/node_modules/cloudinary/lib/cloudinary.js @@ -0,0 +1,237 @@ +const _ = require('lodash'); +exports.config = require("./config"); +exports.utils = require("./utils"); +exports.uploader = require("./uploader"); +exports.api = require("./api"); +let account = require("./provisioning/account"); + +exports.provisioning = { + account: account +}; +exports.PreloadedFile = require("./preloaded_file"); +exports.Cache = require('./cache'); + +const cloudinary = module.exports; + +const optionConsume = cloudinary.utils.option_consume; + +exports.url = function url(public_id, options) { + options = _.extend({}, options); + return cloudinary.utils.url(public_id, options); +}; + +const { generateImageResponsiveAttributes, generateMediaAttr } = require('./utils/srcsetUtils'); + +/** + * Helper function, allows chaining transformation to the end of transformation list + * + * @private + * @param {object} options Original options + * @param {object|object[]} transformation Transformations to chain at the end + * + * @return {object} Resulting options + */ +function chainTransformations(options, transformation = []) { + // preserve url options + let urlOptions = cloudinary.utils.extractUrlParams(options); + let currentTransformation = cloudinary.utils.extractTransformationParams(options); + transformation = cloudinary.utils.build_array(transformation); + urlOptions.transformation = [currentTransformation, ...transformation]; + return urlOptions; +} + +/** + * Generate an HTML img tag with a Cloudinary URL + * @param {string} source A Public ID or a URL + * @param {object} options Configuration options + * @param {srcset} options.srcset srcset options + * @param {object} options.attributes HTML attributes + * @param {number} options.html_width (deprecated) The HTML tag width + * @param {number} options.html_height (deprecated) The HTML tag height + * @param {boolean} options.client_hints Don't implement the client side responsive function. + * This argument can override the the same option in the global configuration. + * @param {boolean} options.responsive Setup the tag for the client side responsive function. + * @param {boolean} options.hidpi Setup the tag for the client side auto dpr function. + * @param {boolean} options.responsive_placeholder A place holder image URL to use with. + * the client side responsive function + * @return {string} An HTML img tag + */ +exports.image = function image(source, options) { + let localOptions = _.extend({}, options); + let srcsetParam = optionConsume(localOptions, 'srcset'); + let attributes = optionConsume(localOptions, 'attributes', {}); + let src = cloudinary.utils.url(source, localOptions); + if ("html_width" in localOptions) localOptions.width = optionConsume(localOptions, "html_width"); + if ("html_height" in localOptions) localOptions.height = optionConsume(localOptions, "html_height"); + + let client_hints = optionConsume(localOptions, "client_hints", cloudinary.config().client_hints); + let responsive = optionConsume(localOptions, "responsive"); + let hidpi = optionConsume(localOptions, "hidpi"); + + if ((responsive || hidpi) && !client_hints) { + localOptions["data-src"] = src; + let classes = [responsive ? "cld-responsive" : "cld-hidpi"]; + let current_class = optionConsume(localOptions, "class"); + if (current_class) classes.push(current_class); + localOptions.class = classes.join(" "); + src = optionConsume(localOptions, "responsive_placeholder", cloudinary.config().responsive_placeholder); + if (src === "blank") { + src = cloudinary.BLANK; + } + } + let html = ""; + return html; +}; + +/** + * Creates an HTML video tag for the provided public_id + * @param {String} public_id the resource public ID + * @param {Object} [options] options for the resource and HTML tag + * @param {(String|Array)} [options.source_types] Specify which + * source type the tag should include. defaults to webm, mp4 and ogv. + * @param {String} [options.source_transformation] specific transformations + * to use for a specific source type. + * @param {(String|Object)} [options.poster] image URL or + * poster options that may include a public_id key and + * poster-specific transformations + * @example Example of generating a video tag: + * cloudinary.video("mymovie.mp4"); + * cloudinary.video("mymovie.mp4", {source_types: 'webm'}); + * cloudinary.video("mymovie.ogv", {poster: "myspecialplaceholder.jpg"}); + * cloudinary.video("mymovie.webm", {source_types: ['webm', 'mp4'], poster: {effect: 'sepia'}}); + * @return {string} HTML video tag + */ +exports.video = function video(public_id, options) { + options = _.extend({}, options); + public_id = public_id.replace(/\.(mp4|ogv|webm)$/, ''); + let source_types = optionConsume(options, 'source_types', []); + let source_transformation = optionConsume(options, 'source_transformation', {}); + let sources = optionConsume(options, 'sources', []); + let fallback = optionConsume(options, 'fallback_content', ''); + + if (source_types.length === 0) source_types = cloudinary.utils.DEFAULT_VIDEO_SOURCE_TYPES; + let video_options = _.cloneDeep(options); + + if (video_options.hasOwnProperty('poster')) { + if (_.isPlainObject(video_options.poster)) { + if (video_options.poster.hasOwnProperty('public_id')) { + video_options.poster = cloudinary.utils.url(video_options.poster.public_id, video_options.poster); + } else { + video_options.poster = cloudinary.utils.url(public_id, _.extend({}, cloudinary.utils.DEFAULT_POSTER_OPTIONS, video_options.poster)); + } + } + } else { + video_options.poster = cloudinary.utils.url(public_id, _.extend({}, cloudinary.utils.DEFAULT_POSTER_OPTIONS, options)); + } + + if (!video_options.poster) delete video_options.poster; + + let html = '`; +}; + + +/** + * Generate a source tag. + * @param {string} public_id + * @param {object} options + * @param {srcset} options.srcset arguments required to generate the srcset attribute. + * @param {object} options.attributes HTML tag attributes + * @return {string} + */ +exports.source = function source(public_id, options = {}) { + let srcsetParam = cloudinary.utils.extend({}, options.srcset, cloudinary.config().srcset); + let attributes = options.attributes || {}; + + cloudinary.utils.extend(attributes, generateImageResponsiveAttributes(public_id, attributes, srcsetParam, options)); + if (!attributes.srcset) { + attributes.srcset = cloudinary.url(public_id, options); + } + if (!attributes.media && options.media) { + attributes.media = generateMediaAttr(options.media); + } + return ``; +}; + +/** + * Generate a picture HTML tag.
+ * The sources argument defines different transformations to apply for each + * media query. + * @param {string}public_id + * @param {object} options + * @param {object[]} options.sources a list of source arguments. A source tag will be rendered for each item + * @param {number} options.sources.min_width a minimum width query + * @param {number} options.sources.max_width a maximum width query + * @param {number} options.sources.transformation the transformation to apply to the source tag. + * @return {string} A picture HTML tag + * @example + * + * cloudinary.picture("sample", { + * sources: [ + * {min_width: 1600, transformation: {crop: 'fill', width: 800, aspect_ratio: 2}}, + * {min_width: 500, transformation: {crop: 'fill', width: 600, aspect_ratio: 2.3}}, + * {transformation: {crop: 'crop', width: 400, gravity: 'auto'}}, + * ]} + * ); + */ +exports.picture = function picture(public_id, options = {}) { + let sources = options.sources || []; + options = cloudinary.utils.clone(options); + delete options.sources; + cloudinary.utils.patchFetchFormat(options); + return "" + + sources.map((source) => { + let sourceOptions = chainTransformations(options, source.transformation); + sourceOptions.media = source; + return cloudinary.source(public_id, sourceOptions); + }).join('') + + cloudinary.image(public_id, options) + + ""; +}; + +exports.cloudinary_js_config = cloudinary.utils.cloudinary_js_config; +exports.CF_SHARED_CDN = cloudinary.utils.CF_SHARED_CDN; +exports.AKAMAI_SHARED_CDN = cloudinary.utils.AKAMAI_SHARED_CDN; +exports.SHARED_CDN = cloudinary.utils.SHARED_CDN; +exports.BLANK = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"; +exports.v2 = require('./v2'); diff --git a/node_modules/cloudinary/lib/config.js b/node_modules/cloudinary/lib/config.js new file mode 100644 index 0000000..1de579d --- /dev/null +++ b/node_modules/cloudinary/lib/config.js @@ -0,0 +1,129 @@ +/** + * Assign a value to a nested object + * @function putNestedValue + * @param params the parent object - this argument will be modified! + * @param key key in the form nested[innerkey] + * @param value the value to assign + * @return the modified params object + */ +const url = require('url'); +const extend = require("lodash/extend"); +const isObject = require("lodash/isObject"); +const isString = require("lodash/isString"); +const isUndefined = require("lodash/isUndefined"); +const isEmpty = require("lodash/isEmpty"); +const entries = require('./utils/entries'); + +let cloudinary_config = void 0; + +/** + * Sets a value in an object using a nested key + * @param {object} params The object to assign the value in. + * @param {string} key The key of the value. A period is used to denote inner keys. + * @param {*} value The value to set. + * @returns {object} The params argument. + * @example + * let o = {foo: {bar: 1}}; + * putNestedValue(o, 'foo.bar', 2); // {foo: {bar: 2}} + * putNestedValue(o, 'foo.inner.key', 'this creates an inner object'); + * // {{foo: {bar: 2}, inner: {key: 'this creates an inner object'}}} + */ +function putNestedValue(params, key, value) { + let chain = key.split(/[\[\]]+/).filter(i => i.length); + let outer = params; + let lastKey = chain.pop(); + for (let j = 0; j < chain.length; j++) { + let innerKey = chain[j]; + let inner = outer[innerKey]; + if (inner == null) { + inner = {}; + outer[innerKey] = inner; + } + outer = inner; + } + outer[lastKey] = value; + return params; +} + +function parseCloudinaryConfigFromEnvURL(ENV_STR) { + let conf = {}; + + let uri = url.parse(ENV_STR, true); + + if (uri.protocol === 'cloudinary:') { + conf = Object.assign({}, conf, { + cloud_name: uri.host, + api_key: uri.auth && uri.auth.split(":")[0], + api_secret: uri.auth && uri.auth.split(":")[1], + private_cdn: uri.pathname != null, + secure_distribution: uri.pathname && uri.pathname.substring(1) + }); + } else if (uri.protocol === 'account:') { + conf = Object.assign({}, conf, { + account_id: uri.host, + provisioning_api_key: uri.auth && uri.auth.split(":")[0], + provisioning_api_secret: uri.auth && uri.auth.split(":")[1] + }); + } + + return conf; +} + +function extendCloudinaryConfigFromQuery(ENV_URL, confToExtend = {}) { + let uri = url.parse(ENV_URL, true); + if (uri.query != null) { + entries(uri.query).forEach(([key, value]) => putNestedValue(confToExtend, key, value)); + } +} + +function extendCloudinaryConfig(parsedConfig, confToExtend = {}) { + entries(parsedConfig).forEach(([key, value]) => { + if (value !== undefined) { + confToExtend[key] = value; + } + }); + + return confToExtend; +} + +module.exports = function (new_config, new_value) { + if ((cloudinary_config == null) || new_config === true) { + if (cloudinary_config == null) { + cloudinary_config = {}; + } else { + Object.keys(cloudinary_config).forEach(key => delete cloudinary_config[key]); + } + + let CLOUDINARY_ENV_URL = process.env.CLOUDINARY_URL; + let CLOUDINARY_ENV_ACCOUNT_URL = process.env.CLOUDINARY_ACCOUNT_URL; + let CLOUDINARY_API_PROXY = process.env.CLOUDINARY_API_PROXY; + + if (CLOUDINARY_ENV_URL && !CLOUDINARY_ENV_URL.toLowerCase().startsWith('cloudinary://')) { + throw new Error("Invalid CLOUDINARY_URL protocol. URL should begin with 'cloudinary://'"); + } + if (CLOUDINARY_ENV_ACCOUNT_URL && !CLOUDINARY_ENV_ACCOUNT_URL.toLowerCase().startsWith('account://')) { + throw new Error("Invalid CLOUDINARY_ACCOUNT_URL protocol. URL should begin with 'account://'"); + } + if (!isEmpty(CLOUDINARY_API_PROXY)) { + extendCloudinaryConfig({ api_proxy: CLOUDINARY_API_PROXY }, cloudinary_config); + } + + [CLOUDINARY_ENV_URL, CLOUDINARY_ENV_ACCOUNT_URL].forEach((ENV_URL) => { + if (ENV_URL) { + let parsedConfig = parseCloudinaryConfigFromEnvURL(ENV_URL); + extendCloudinaryConfig(parsedConfig, cloudinary_config); + // Provide Query support in ENV url cloudinary://key:secret@test123?foo[bar]=value + // expect(cloudinary_config.foo.bar).to.eql('value') + extendCloudinaryConfigFromQuery(ENV_URL, cloudinary_config); + } + }); + } + if (!isUndefined(new_value)) { + cloudinary_config[new_config] = new_value; + } else if (isString(new_config)) { + return cloudinary_config[new_config]; + } else if (isObject(new_config)) { + extend(cloudinary_config, new_config); + } + return cloudinary_config; +}; diff --git a/node_modules/cloudinary/lib/preloaded_file.js b/node_modules/cloudinary/lib/preloaded_file.js new file mode 100644 index 0000000..e5e9f51 --- /dev/null +++ b/node_modules/cloudinary/lib/preloaded_file.js @@ -0,0 +1,66 @@ +let PRELOADED_CLOUDINARY_PATH, config, utils; + +utils = require("./utils"); + +config = require("./config"); + +PRELOADED_CLOUDINARY_PATH = /^([^\/]+)\/([^\/]+)\/v(\d+)\/([^#]+)#([^\/]+)$/; + +class PreloadedFile { + constructor(file_info) { + let matches, public_id_and_format; + matches = file_info.match(PRELOADED_CLOUDINARY_PATH); + if (!matches) { + throw "Invalid preloaded file info"; + } + this.resource_type = matches[1]; + this.type = matches[2]; + this.version = matches[3]; + this.filename = matches[4]; + this.signature = matches[5]; + public_id_and_format = PreloadedFile.split_format(this.filename); + this.public_id = public_id_and_format[0]; + this.format = public_id_and_format[1]; + } + + is_valid() { + let expected_signature; + expected_signature = utils.api_sign_request({ + public_id: this.public_id, + version: this.version + }, config().api_secret); + return this.signature === expected_signature; + } + + static split_format(identifier) { + let format, last_dot, public_id; + last_dot = identifier.lastIndexOf("."); + if (last_dot === -1) { + return [identifier, null]; + } + public_id = identifier.substr(0, last_dot); + format = identifier.substr(last_dot + 1); + return [public_id, format]; + } + + identifier() { + return `v${this.version}/${this.filename}`; + } + + toString() { + return `${this.resource_type}/${this.type}/v${this.version}/${this.filename}#${this.signature}`; + } + + toJSON() { + let result = {}; + Object.getOwnPropertyNames(this).forEach((key) => { + let val = this[key]; + if (typeof val !== 'function') { + result[key] = val; + } + }); + return result; + } +} + +module.exports = PreloadedFile; diff --git a/node_modules/cloudinary/lib/provisioning/account.js b/node_modules/cloudinary/lib/provisioning/account.js new file mode 100644 index 0000000..c887d2d --- /dev/null +++ b/node_modules/cloudinary/lib/provisioning/account.js @@ -0,0 +1,314 @@ +const utils = require("../utils"); +const call_account_api = require('../api_client/call_account_api'); + +const { pickOnlyExistingValues } = utils; + +/** + * @desc Lists sub-accounts. + * @param [enabled] {boolean} - Whether to only return enabled sub-accounts (true) or disabled accounts (false). + * Default: all accounts are returned (both enabled and disabled). + * @param [ids] {number[]} - A list of up to 100 sub-account IDs. When provided, other parameters are ignored. + * @param [prefix] {string} - Returns accounts where the name begins with the specified case-insensitive string. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function sub_accounts(enabled, ids = [], prefix, options = {}, callback) { + let params = { + enabled, + ids, + prefix + }; + + let uri = ['sub_accounts']; + return call_account_api('GET', uri, params, callback, options); +} + + +/** + * @desc Retrieves the details of the specified sub-account. + * @param sub_account_id {string} - The ID of the sub-account. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function sub_account(sub_account_id, options = {}, callback) { + let uri = ['sub_accounts', sub_account_id]; + return call_account_api('GET', uri, {}, callback, options); +} + + +/** + * @desc Creates a new sub-account. Any users that have access to all sub-accounts will also automatically have access + * to the new sub-account. + * @param name {string} The display name as shown in the management console. + * @param cloud_name {string} A case-insensitive cloud name comprised of alphanumeric and underscore characters. + * Generates an error if the specified cloud name is not unique across all Cloudinary + * accounts. Note: Once created, the name can only be changed for accounts with fewer than + * 1000 assets. + * @param custom_attributes {object} Any custom attributes you want to associate with the sub-account, as a map/hash of + * key/value pairs. + * @param enabled {boolean} Whether the sub-account is enabled. Default: true + * @param base_account {string} The ID of another sub-account, from which to copy all of the following settings: + * Size limits, Timed limits, and Flags. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param callback + */ +function create_sub_account(name, cloud_name, custom_attributes, enabled, base_account, options = {}, callback) { + let params = { + cloud_name: cloud_name, + name, + custom_attributes: custom_attributes, + enabled, + base_sub_account_id: base_account + }; + + options.content_type = "json"; + let uri = ['sub_accounts']; + return call_account_api('POST', uri, params, callback, options); +} + +/** + * @desc Deletes the specified sub-account. Supported only for accounts with fewer than 1000 assets. + * @param sub_account_id {string} - The ID of the sub-account to delete. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function delete_sub_account(sub_account_id, options = {}, callback) { + let uri = ['sub_accounts', sub_account_id]; + return call_account_api('DELETE', uri, {}, callback, options); +} + +/** + * @desc Updates the specified details of the sub-account. + * @param sub_account_id {string} - The ID of the sub-account. + * @param [name] {string} - The display name as shown in the management console. + * @param [cloud_name] {string} - A new cloud name for the account. + * Notes: + * - Can only be changed for accounts with fewer than 1000 assets. + * - generates an error if the cloud name is not unique across all Cloudinary accounts. + * @param [custom_attributes] {object} - Any custom attributes you want to associate with the sub-account, as a map/hash + * of key/value pairs. + * @param [enabled] {boolean} - Whether the sub-account is enabled. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function update_sub_account(sub_account_id, name, cloud_name, custom_attributes, enabled, options = {}, callback) { + let params = { + cloud_name: cloud_name, + name, + custom_attributes: custom_attributes, + enabled + }; + + options.content_type = "json"; + let uri = ['sub_accounts', sub_account_id]; + return call_account_api('PUT', uri, params, callback, options); +} + +/** + * @desc Returns the user with the specified ID. + * @param user_id {string} - The ID of the user. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function user(user_id, options = {}, callback) { + let uri = ['users', user_id]; + return call_account_api('GET', uri, {}, callback, options); +} + +/** + * @desc Lists users in the account. + * @param [pending] {boolean} - Limit results to pending users (true), users that are not pending (false), or all users (undefined, the default) + * @param [user_ids] {string[]} - A list of up to 100 user IDs. When provided, other parameters are ignored. + * @param [prefix] {string} - Returns users where the name or email address begins with the specified case-insensitive + * string. + * @param [sub_account_id[ {string} - Only returns users who have access to the specified account. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function users(pending, user_ids, prefix, sub_account_id, options = {}, callback) { + let uri = ['users']; + let params = { + ids: user_ids, + pending, + prefix, + sub_account_id + }; + return call_account_api('GET', uri, pickOnlyExistingValues(params, "ids", "pending", "prefix", "sub_account_id"), callback, options); +} + +/** + * @desc Creates a new user in the account. + * @param name {string} - The name of the user. + * @param email {string} - A unique email address, which serves as the login name and notification address. + * @param role {string} - The role to assign. Possible values: master_admin, admin, billing, technical_admin, reports, + * media_library_admin, media_library_user + * @param [sub_account_ids] {string[]} - The list of sub-account IDs that this user can access. + * Note: This parameter is ignored if the role is specified as master_admin. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function create_user(name, email, role, sub_account_ids, options = {}, callback) { + let uri = ['users']; + let params = { + name, + email, + role, + sub_account_ids: sub_account_ids + }; + options.content_type = 'json'; + return call_account_api('POST', uri, params, callback, options); +} + +/** + * @desc Updates the details of the specified user. + * @param user_id {string} - The ID of the user to update. + * @param [name] {string} - The name of the user. + * @param [email] {string} - A unique email address, which serves as the login name and notification address. + * @param [role] {string} - The role to assign. Possible values: master_admin, admin, billing, technical_admin, reports, + * media_library_admin, media_library_user + * @param [sub_account_ids] {string[]} - The list of sub-account IDs that this user can access. + * Note: This parameter is ignored if the role is specified as master_admin. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function update_user(user_id, name, email, role, sub_account_ids, options = {}, callback) { + let uri = ['users', user_id]; + let params = { + name, + email, + role, + sub_account_ids: sub_account_ids + }; + options.content_type = 'json'; + return call_account_api('PUT', uri, params, callback, options); +} + +/** + * @desc Deletes an existing user. + * @param user_id {string} - The ID of the user to delete. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function delete_user(user_id, options = {}, callback) { + let uri = ['users', user_id]; + return call_account_api('DELETE', uri, {}, callback, options); +} + +/** + * @desc Creates a new user group. + * @param name {string} - The name for the user group. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function create_user_group(name, options = {}, callback) { + let uri = ['user_groups']; + options.content_type = 'json'; + let params = { + name + }; + return call_account_api('POST', uri, params, callback, options); +} + +/** + * @desc Updates the specified user group. + * @param group_id {string} The ID of the user group to update. + * @param name {string} - The name for the user group. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function update_user_group(group_id, name, options = {}, callback) { + let uri = ['user_groups', group_id]; + let params = { + name + }; + return call_account_api('PUT', uri, params, callback, options); +} + +/** + * @desc Deletes the user group with the specified ID. + * @param group_id {string} The ID of the user group to delete. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function delete_user_group(group_id, options = {}, callback) { + let uri = ['user_groups', group_id]; + return call_account_api('DELETE', uri, {}, callback, options); +} + +/** + * @desc Adds a user to a group with the specified ID. + * @param group_id {string} - The ID of the user group. + * @param user_id {string} - The ID of the user. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function add_user_to_group(group_id, user_id, options = {}, callback) { + let uri = ['user_groups', group_id, 'users', user_id]; + return call_account_api('POST', uri, {}, callback, options); +} + +/** + * @desc Removes a user from a group with the specified ID. + * @param group_id {string} - The ID of the user group. + * @param user_id {string} - The ID of the user. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function remove_user_from_group(group_id, user_id, options = {}, callback) { + let uri = ['user_groups', group_id, 'users', user_id]; + return call_account_api('DELETE', uri, {}, callback, options); +} + +/** + * @desc Retrieves the details of the specified user group. + * @param group_id {string} - The ID of the user group to retrieve. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function user_group(group_id, options = {}, callback) { + let uri = ['user_groups', group_id]; + return call_account_api('GET', uri, {}, callback, options); +} + +/** + * @desc Lists user groups in the account. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function user_groups(options = {}, callback) { + let uri = ['user_groups']; + return call_account_api('GET', uri, {}, callback, options); +} + +/** + * @desc Lists users in the specified user group. + * @param group_id {string} - The ID of the user group. + * @param [options] {object} - See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation. + * @param [callback] {function} + */ +function user_group_users(group_id, options = {}, callback) { + let uri = ['user_groups', group_id, 'users']; + return call_account_api('GET', uri, {}, callback, options); +} + + +module.exports = { + sub_accounts, + create_sub_account, + delete_sub_account, + sub_account, + update_sub_account, + user, + users, + user_group, + user_groups, + user_group_users, + remove_user_from_group, + delete_user, + update_user_group, + update_user, + create_user, + create_user_group, + add_user_to_group, + delete_user_group +}; diff --git a/node_modules/cloudinary/lib/upload_stream.js b/node_modules/cloudinary/lib/upload_stream.js new file mode 100644 index 0000000..de946a9 --- /dev/null +++ b/node_modules/cloudinary/lib/upload_stream.js @@ -0,0 +1,23 @@ + +const Transform = require("stream").Transform; + +class UploadStream extends Transform { + constructor(options) { + super(); + this.boundary = options.boundary; + } + + _transform(data, encoding, next) { + let buffer = ((Buffer.isBuffer(data)) ? data : Buffer.from(data, encoding)); + this.push(buffer); + next(); + } + + _flush(next) { + this.push(Buffer.from("\r\n", 'ascii')); + this.push(Buffer.from("--" + this.boundary + "--", 'ascii')); + return next(); + } +} + +module.exports = UploadStream; diff --git a/node_modules/cloudinary/lib/uploader.js b/node_modules/cloudinary/lib/uploader.js new file mode 100644 index 0000000..8a5ac32 --- /dev/null +++ b/node_modules/cloudinary/lib/uploader.js @@ -0,0 +1,721 @@ +const fs = require('fs'); +const { extname, basename } = require('path'); +const Q = require('q'); +const Writable = require("stream").Writable; +const urlLib = require('url'); + +// eslint-disable-next-line import/order +const { upload_prefix } = require("./config")(); + +const isSecure = !(upload_prefix && upload_prefix.slice(0, 5) === 'http:'); +const https = isSecure ? require('https') : require('http'); + +const Cache = require('./cache'); +const utils = require("./utils"); +const UploadStream = require('./upload_stream'); +const config = require("./config"); +const ensureOption = require('./utils/ensureOption').defaults(config()); + +const agent = config.api_proxy ? new https.Agent(config.api_proxy) : null; + +const { + build_upload_params, + extend, + includes, + isEmpty, + isObject, + isRemoteUrl, + merge, + pickOnlyExistingValues +} = utils; + +exports.unsigned_upload_stream = function unsigned_upload_stream(upload_preset, callback, options = {}) { + return exports.upload_stream(callback, merge(options, { + unsigned: true, + upload_preset: upload_preset + })); +}; + +exports.upload_stream = function upload_stream(callback, options = {}) { + return exports.upload(null, callback, extend({ + stream: true + }, options)); +}; + +exports.unsigned_upload = function unsigned_upload(file, upload_preset, callback, options = {}) { + return exports.upload(file, callback, merge(options, { + unsigned: true, + upload_preset: upload_preset + })); +}; + +exports.upload = function upload(file, callback, options = {}) { + return call_api("upload", callback, options, function () { + let params = build_upload_params(options); + return isRemoteUrl(file) ? [params, { file: file }] : [params, {}, file]; + }); +}; + +exports.upload_large = function upload_large(path, callback, options = {}) { + if ((path != null) && isRemoteUrl(path)) { + // upload a remote file + return exports.upload(path, callback, options); + } + if (path != null && !options.filename) { + options.filename = path.split(/(\\|\/)/g).pop().replace(/\.[^/.]+$/, ""); + } + return exports.upload_chunked(path, callback, extend({ + resource_type: 'raw' + }, options)); +}; + +exports.upload_chunked = function upload_chunked(path, callback, options) { + let file_reader = fs.createReadStream(path); + let out_stream = exports.upload_chunked_stream(callback, options); + return file_reader.pipe(out_stream); +}; + +class Chunkable extends Writable { + constructor(options) { + super(options); + this.chunk_size = options.chunk_size != null ? options.chunk_size : 20000000; + this.buffer = Buffer.alloc(0); + this.active = true; + this.on('finish', () => { + if (this.active) { + this.emit('ready', this.buffer, true, function () { + }); + } + }); + } + + _write(data, encoding, done) { + if (!this.active) { + done(); + } + if (this.buffer.length + data.length <= this.chunk_size) { + this.buffer = Buffer.concat([this.buffer, data], this.buffer.length + data.length); + done(); + } else { + const grab = this.chunk_size - this.buffer.length; + this.buffer = Buffer.concat([this.buffer, data.slice(0, grab)], this.buffer.length + grab); + this.emit('ready', this.buffer, false, (active) => { + this.active = active; + if (this.active) { + this.buffer = data.slice(grab); + done(); + } + }); + } + } +} + +exports.upload_large_stream = function upload_large_stream(_unused_, callback, options = {}) { + return exports.upload_chunked_stream(callback, extend({ + resource_type: 'raw' + }, options)); +}; + +exports.upload_chunked_stream = function upload_chunked_stream(callback, options = {}) { + options = extend({}, options, { + stream: true + }); + options.x_unique_upload_id = utils.random_public_id(); + let params = build_upload_params(options); + let chunk_size = options.chunk_size != null ? options.chunk_size : options.part_size; + let chunker = new Chunkable({ + chunk_size: chunk_size + }); + let sent = 0; + chunker.on('ready', function (buffer, is_last, done) { + let chunk_start = sent; + sent += buffer.length; + options.content_range = `bytes ${chunk_start}-${sent - 1}/${(is_last ? sent : -1)}`; + params.timestamp = utils.timestamp(); + let finished_part = function (result) { + const errorOrLast = (result.error != null) || is_last; + if (errorOrLast && typeof callback === "function") { + callback(result); + } + return done(!errorOrLast); + }; + let stream = call_api("upload", finished_part, options, function () { + return [params, {}, buffer]; + }); + return stream.write(buffer, 'buffer', function () { + return stream.end(); + }); + }); + return chunker; +}; + +exports.explicit = function explicit(public_id, callback, options = {}) { + return call_api("explicit", callback, options, function () { + return utils.build_explicit_api_params(public_id, options); + }); +}; + +// Creates a new archive in the server and returns information in JSON format +exports.create_archive = function create_archive(callback, options = {}, target_format = null) { + return call_api("generate_archive", callback, options, function () { + let opt = utils.archive_params(options); + if (target_format) { + opt.target_format = target_format; + } + return [opt]; + }); +}; + +// Creates a new zip archive in the server and returns information in JSON format +exports.create_zip = function create_zip(callback, options = {}) { + return exports.create_archive(callback, options, "zip"); +}; + + +exports.create_slideshow = function create_slideshow(options, callback) { + options.resource_type = ensureOption(options, "resource_type", "video"); + return call_api("create_slideshow", callback, options, function () { + // Generate a transformation from the manifest_transformation key, which should be a valid transformation + const manifest_transformation = utils.generate_transformation_string(extend({}, options.manifest_transformation)); + + // Try to use {options.transformation} to generate a transformation (Example: options.transformation.width, options.transformation.height) + const transformation = utils.generate_transformation_string(extend({}, ensureOption(options, 'transformation', {}))); + + return [ + { + timestamp: utils.timestamp(), + manifest_transformation: manifest_transformation, + upload_preset: options.upload_preset, + overwrite: options.overwrite, + public_id: options.public_id, + notification_url: options.notification_url, + manifest_json: options.manifest_json, + tags: options.tags, + transformation: transformation + } + ]; + }); +}; + + +exports.destroy = function destroy(public_id, callback, options = {}) { + return call_api("destroy", callback, options, function () { + return [ + { + timestamp: utils.timestamp(), + type: options.type, + invalidate: options.invalidate, + public_id: public_id + } + ]; + }); +}; + +exports.rename = function rename(from_public_id, to_public_id, callback, options = {}) { + return call_api("rename", callback, options, function () { + return [ + { + timestamp: utils.timestamp(), + type: options.type, + from_public_id: from_public_id, + to_public_id: to_public_id, + overwrite: options.overwrite, + invalidate: options.invalidate, + to_type: options.to_type, + context: options.context, + metadata: options.metadata + } + ]; + }); +}; + +const TEXT_PARAMS = ["public_id", "font_family", "font_size", "font_color", "text_align", "font_weight", "font_style", "background", "opacity", "text_decoration", "font_hinting", "font_antialiasing"]; + +exports.text = function text(content, callback, options = {}) { + return call_api("text", callback, options, function () { + let textParams = pickOnlyExistingValues(options, ...TEXT_PARAMS); + let params = { + timestamp: utils.timestamp(), + text: content, + ...textParams + }; + + return [params]; + }); +}; + +/** + * Generate a sprite by merging multiple images into a single large image for reducing network overhead and bypassing + * download limitations. + * + * The process produces 2 files as follows: + * - A single image file containing all the images with the specified tag (PNG by default). + * - A CSS file that includes the style class names and the location of the individual images in the sprite. + * + * @param {String|Object} tag A string specifying a tag that indicates which images to include or an object + * which includes options and image URLs. + * @param {Function} callback Callback function + * @param {Object} options Configuration options. If options are passed as the first parameter, this parameter + * should be empty + * + * @return {Object} + */ +exports.generate_sprite = function generate_sprite(tag, callback, options = {}) { + return call_api("sprite", callback, options, function () { + return [utils.build_multi_and_sprite_params(tag, options)]; + }); +}; + + +/** + * Returns a signed url to download a sprite + * + * @param {String|Object} tag A string specifying a tag that indicates which images to include or an object + * which includes options and image URLs. + * @param {Object} options Configuration options. If options are passed as the first parameter, this parameter + * should be empty + * + * @returns {string} + */ +exports.download_generated_sprite = function download_generated_sprite(tag, options = {}) { + return utils.api_download_url("sprite", utils.build_multi_and_sprite_params(tag, options), options); +} + +/** + * Returns a signed url to download a single animated image (GIF, PNG or WebP), video (MP4 or WebM) or a single PDF from + * multiple image assets. + * + * @param {String|Object} tag A string specifying a tag that indicates which images to include or an object + * which includes options and image URLs. + * @param {Object} options Configuration options. If options are passed as the first parameter, this parameter + * should be empty + * + * @returns {string} + */ +exports.download_multi = function download_multi(tag, options = {}) { + return utils.api_download_url("multi", utils.build_multi_and_sprite_params(tag, options), options); +} + +/** + * Creates either a single animated image (GIF, PNG or WebP), video (MP4 or WebM) or a single PDF from multiple image + * assets. + * + * Each asset is included as a single frame of the resulting animated image/video, or a page of the PDF (sorted + * alphabetically by their Public ID). + * + * @param {String|Object} tag A string specifying a tag that indicates which images to include or an object + * which includes options and image URLs. + * @param {Function} callback Callback function + * @param {Object} options Configuration options. If options are passed as the first parameter, this parameter + * should be empty + * + * @return {Object} + */ +exports.multi = function multi(tag, callback, options = {}) { + return call_api("multi", callback, options, function () { + return [utils.build_multi_and_sprite_params(tag, options)]; + }); +}; + +exports.explode = function explode(public_id, callback, options = {}) { + return call_api("explode", callback, options, function () { + const transformation = utils.generate_transformation_string(extend({}, options)); + return [ + { + timestamp: utils.timestamp(), + public_id: public_id, + transformation: transformation, + format: options.format, + type: options.type, + notification_url: options.notification_url + } + ]; + }); +}; + +/** + * + * @param {String} tag The tag or tags to assign. Can specify multiple + * tags in a single string, separated by commas - "t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11". + * + * @param {Array} public_ids A list of public IDs (up to 1000) of assets uploaded to Cloudinary. + * + * @param {Function} callback Callback function + * + * @param {Object} options Configuration options may include 'exclusive' (boolean) which causes + * clearing this tag from all other resources + * @return {Object} + */ +exports.add_tag = function add_tag(tag, public_ids = [], callback, options = {}) { + const exclusive = utils.option_consume("exclusive", options); + const command = exclusive ? "set_exclusive" : "add"; + return call_tags_api(tag, command, public_ids, callback, options); +}; + + +/** + * @param {String} tag The tag or tags to remove. Can specify multiple + * tags in a single string, separated by commas - "t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11". + * + * @param {Array} public_ids A list of public IDs (up to 1000) of assets uploaded to Cloudinary. + * + * @param {Function} callback Callback function + * + * @param {Object} options Configuration options may include 'exclusive' (boolean) which causes + * clearing this tag from all other resources + * @return {Object} + */ +exports.remove_tag = function remove_tag(tag, public_ids = [], callback, options = {}) { + return call_tags_api(tag, "remove", public_ids, callback, options); +}; + +exports.remove_all_tags = function remove_all_tags(public_ids = [], callback, options = {}) { + return call_tags_api(null, "remove_all", public_ids, callback, options); +}; + +exports.replace_tag = function replace_tag(tag, public_ids = [], callback, options = {}) { + return call_tags_api(tag, "replace", public_ids, callback, options); +}; + +function call_tags_api(tag, command, public_ids = [], callback, options = {}) { + return call_api("tags", callback, options, function () { + let params = { + timestamp: utils.timestamp(), + public_ids: utils.build_array(public_ids), + command: command, + type: options.type + }; + if (tag != null) { + params.tag = tag; + } + return [params]; + }); +} + +exports.add_context = function add_context(context, public_ids = [], callback, options = {}) { + return call_context_api(context, 'add', public_ids, callback, options); +}; + +exports.remove_all_context = function remove_all_context(public_ids = [], callback, options = {}) { + return call_context_api(null, 'remove_all', public_ids, callback, options); +}; + +function call_context_api(context, command, public_ids = [], callback, options = {}) { + return call_api('context', callback, options, function () { + let params = { + timestamp: utils.timestamp(), + public_ids: utils.build_array(public_ids), + command: command, + type: options.type + }; + if (context != null) { + params.context = utils.encode_context(context); + } + return [params]; + }); +} + +/** + * Cache (part of) the upload results. + * @param result + * @param {object} options + * @param {string} options.type + * @param {string} options.resource_type + */ +function cacheResults(result, { type, resource_type }) { + if (result.responsive_breakpoints) { + result.responsive_breakpoints.forEach( + ({ transformation, + url, + breakpoints }) => Cache.set( + result.public_id, + { type, resource_type, raw_transformation: transformation, format: extname(breakpoints[0].url).slice(1) }, + breakpoints.map(i => i.width) + ) + ); + } +} + + +function parseResult(buffer, res) { + let result = ''; + try { + result = JSON.parse(buffer); + if (result.error && !result.error.name) { + result.error.name = "Error"; + } + } catch (jsonError) { + result = { + error: { + message: `Server return invalid JSON response. Status Code ${res.statusCode}. ${jsonError}`, + name: "Error" + } + }; + } + return result; +} + +function call_api(action, callback, options, get_params) { + if (typeof callback !== "function") { + callback = function () {}; + } + + const USE_PROMISES = !options.disable_promises; + + let deferred = Q.defer(); + if (options == null) { + options = {}; + } + let [params, unsigned_params, file] = get_params.call(); + params = utils.process_request_params(params, options); + params = extend(params, unsigned_params); + let api_url = utils.api_url(action, options); + let boundary = utils.random_public_id(); + let errorRaised = false; + let handle_response = function (res) { + // let buffer; + if (errorRaised) { + + // Already reported + } else if (res.error) { + errorRaised = true; + + if (USE_PROMISES) { + deferred.reject(res); + } + callback(res); + } else if (includes([200, 400, 401, 404, 420, 500], res.statusCode)) { + let buffer = ""; + res.on("data", (d) => { + buffer += d; + return buffer; + }); + res.on("end", () => { + let result; + if (errorRaised) { + return; + } + result = parseResult(buffer, res); + if (result.error) { + result.error.http_code = res.statusCode; + if (USE_PROMISES) { + deferred.reject(result.error); + } + } else { + cacheResults(result, options); + if (USE_PROMISES) { + deferred.resolve(result); + } + } + callback(result); + }); + res.on("error", (error) => { + errorRaised = true; + if (USE_PROMISES) { + deferred.reject(error); + } + callback({ error }); + }); + } else { + let error = { + message: `Server returned unexpected status code - ${res.statusCode}`, + http_code: res.statusCode, + name: "UnexpectedResponse" + }; + if (USE_PROMISES) { + deferred.reject(error); + } + callback({ error }); + } + }; + let post_data = utils.hashToParameters(params) + .filter(([key, value]) => value != null) + .map( + ([key, value]) => Buffer.from(encodeFieldPart(boundary, key, value), 'utf8') + ); + let result = post(api_url, post_data, boundary, file, handle_response, options); + if (isObject(result)) { + return result; + } + + if (USE_PROMISES) { + return deferred.promise; + } +} + +function post(url, post_data, boundary, file, callback, options) { + let file_header; + let finish_buffer = Buffer.from("--" + boundary + "--", 'ascii'); + let oauth_token = options.oauth_token || config().oauth_token; + if ((file != null) || options.stream) { + // eslint-disable-next-line no-nested-ternary + let filename = options.stream ? options.filename ? options.filename : "file" : basename(file); + file_header = Buffer.from(encodeFilePart(boundary, 'application/octet-stream', 'file', filename), 'binary'); + } + let post_options = urlLib.parse(url); + let headers = { + 'Content-Type': `multipart/form-data; boundary=${boundary}`, + 'User-Agent': utils.getUserAgent() + }; + if (options.content_range != null) { + headers['Content-Range'] = options.content_range; + } + if (options.x_unique_upload_id != null) { + headers['X-Unique-Upload-Id'] = options.x_unique_upload_id; + } + if (options.extra_headers !== null) { + headers = merge(headers, options.extra_headers); + } + if (oauth_token != null) { + headers.Authorization = `Bearer ${oauth_token}`; + } + + post_options = extend(post_options, { + method: 'POST', + headers: headers + }); + if (options.agent != null) { + post_options.agent = options.agent; + } + let proxy = options.api_proxy || config().api_proxy; + if (!isEmpty(proxy)) { + if (!post_options.agent && agent) { + post_options.agent = agent; + } else if (!post_options.agent) { + post_options.agent = new https.Agent(proxy); + } else { + console.warn("Proxy is set, but request uses a custom agent, proxy is ignored."); + } + } + + let post_request = https.request(post_options, callback); + let upload_stream = new UploadStream({ boundary }); + upload_stream.pipe(post_request); + let timeout = false; + post_request.on("error", function (error) { + if (timeout) { + error = { + message: "Request Timeout", + http_code: 499, + name: "TimeoutError" + }; + } + return callback({ error }); + }); + post_request.setTimeout(options.timeout != null ? options.timeout : 60000, function () { + timeout = true; + return post_request.abort(); + }); + post_data.forEach(postDatum => post_request.write(postDatum)); + if (options.stream) { + post_request.write(file_header); + return upload_stream; + } + if (file != null) { + post_request.write(file_header); + fs.createReadStream(file).on('error', function (error) { + callback({ + error: error + }); + return post_request.abort(); + }).pipe(upload_stream); + } else { + post_request.write(finish_buffer); + post_request.end(); + } + return true; +} + +function encodeFieldPart(boundary, name, value) { + return [ + `--${boundary}`, + `Content-Disposition: form-data; name="${name}"`, + '', + value, + '' + ].join("\r\n"); +} + +function encodeFilePart(boundary, type, name, filename) { + return [ + `--${boundary}`, + `Content-Disposition: form-data; name="${name}"; filename="${filename}"`, + `Content-Type: ${type}`, + '', + '' + ].join("\r\n"); +} + +exports.direct_upload = function direct_upload(callback_url, options = {}) { + let params = build_upload_params(extend({ + callback: callback_url + }, options)); + params = utils.process_request_params(params, options); + let api_url = utils.api_url("upload", options); + return { + hidden_fields: params, + form_attrs: { + action: api_url, + method: "POST", + enctype: "multipart/form-data" + } + }; +}; + +exports.upload_tag_params = function upload_tag_params(options = {}) { + let params = build_upload_params(options); + params = utils.process_request_params(params, options); + return JSON.stringify(params); +}; + +exports.upload_url = function upload_url(options = {}) { + if (options.resource_type == null) { + options.resource_type = "auto"; + } + return utils.api_url("upload", options); +}; + +exports.image_upload_tag = function image_upload_tag(field, options = {}) { + let html_options = options.html || {}; + let tag_options = extend({ + type: "file", + name: "file", + "data-url": exports.upload_url(options), + "data-form-data": exports.upload_tag_params(options), + "data-cloudinary-field": field, + "data-max-chunk-size": options.chunk_size, + "class": [html_options.class, "cloudinary-fileupload"].join(" ") + }, html_options); + return ``; +}; + +exports.unsigned_image_upload_tag = function unsigned_image_upload_tag(field, upload_preset, options = {}) { + return exports.image_upload_tag(field, merge(options, { + unsigned: true, + upload_preset: upload_preset + })); +}; + + +/** + * Populates metadata fields with the given values. Existing values will be overwritten. + * + * @param {Object} metadata A list of custom metadata fields (by external_id) and the values to assign to each + * @param {Array} public_ids The public IDs of the resources to update + * @param {Function} callback Callback function + * @param {Object} options Configuration options + * + * @return {Object} + */ +exports.update_metadata = function update_metadata(metadata, public_ids, callback, options = {}) { + return call_api("metadata", callback, options, function () { + let params = { + metadata: utils.encode_context(metadata), + public_ids: utils.build_array(public_ids), + timestamp: utils.timestamp(), + type: options.type, + clear_invalid: options.clear_invalid + }; + return [params]; + }); +}; diff --git a/node_modules/cloudinary/lib/utils/consts.js b/node_modules/cloudinary/lib/utils/consts.js new file mode 100644 index 0000000..90f7449 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/consts.js @@ -0,0 +1,149 @@ +const DEFAULT_RESPONSIVE_WIDTH_TRANSFORMATION = { + width: "auto", + crop: "limit" +}; + +const DEFAULT_POSTER_OPTIONS = { + format: 'jpg', + resource_type: 'video' +}; + +const DEFAULT_VIDEO_SOURCE_TYPES = ['webm', 'mp4', 'ogv']; + +const CONDITIONAL_OPERATORS = { + "=": 'eq', + "!=": 'ne', + "<": 'lt', + ">": 'gt', + "<=": 'lte', + ">=": 'gte', + "&&": 'and', + "||": 'or', + "*": "mul", + "/": "div", + "+": "add", + "-": "sub", + "^": "pow" +}; + +let SIMPLE_PARAMS = [ + ["audio_codec", "ac"], + ["audio_frequency", "af"], + ["bit_rate", 'br'], + ["color_space", "cs"], + ["default_image", "d"], + ["delay", "dl"], + ["density", "dn"], + ["duration", "du"], + ["end_offset", "eo"], + ["fetch_format", "f"], + ["gravity", "g"], + ["page", "pg"], + ["prefix", "p"], + ["start_offset", "so"], + ["streaming_profile", "sp"], + ["video_codec", "vc"], + ["video_sampling", "vs"] +]; + +const PREDEFINED_VARS = { + "aspect_ratio": "ar", + "aspectRatio": "ar", + "current_page": "cp", + "currentPage": "cp", + "duration": "du", + "face_count": "fc", + "faceCount": "fc", + "height": "h", + "initial_aspect_ratio": "iar", + "initial_height": "ih", + "initial_width": "iw", + "initialAspectRatio": "iar", + "initialHeight": "ih", + "initialWidth": "iw", + "initial_duration": "idu", + "initialDuration": "idu", + "page_count": "pc", + "page_x": "px", + "page_y": "py", + "pageCount": "pc", + "pageX": "px", + "pageY": "py", + "tags": "tags", + "width": "w" +}; + +const TRANSFORMATION_PARAMS = [ + 'angle', + 'aspect_ratio', + 'audio_codec', + 'audio_frequency', + 'background', + 'bit_rate', + 'border', + 'color', + 'color_space', + 'crop', + 'default_image', + 'delay', + 'density', + 'dpr', + 'duration', + 'effect', + 'end_offset', + 'fetch_format', + 'flags', + 'fps', + 'gravity', + 'height', + 'if', + 'keyframe_interval', + 'offset', + 'opacity', + 'overlay', + 'page', + 'prefix', + 'quality', + 'radius', + 'raw_transformation', + 'responsive_width', + 'size', + 'start_offset', + 'streaming_profile', + 'transformation', + 'underlay', + 'variables', + 'video_codec', + 'video_sampling', + 'width', + 'x', + 'y', + 'zoom' // + any key that starts with '$' +]; + +const LAYER_KEYWORD_PARAMS = { + font_weight: "normal", + font_style: "normal", + text_decoration: "none", + text_align: null, + stroke: "none" +}; + +const UPLOAD_PREFIX = "https://api.cloudinary.com"; + +const SUPPORTED_SIGNATURE_ALGORITHMS = ["sha1", "sha256"]; +const DEFAULT_SIGNATURE_ALGORITHM = "sha1"; + +module.exports = { + DEFAULT_RESPONSIVE_WIDTH_TRANSFORMATION, + DEFAULT_POSTER_OPTIONS, + DEFAULT_VIDEO_SOURCE_TYPES, + CONDITIONAL_OPERATORS, + PREDEFINED_VARS, + LAYER_KEYWORD_PARAMS, + TRANSFORMATION_PARAMS, + SIMPLE_PARAMS, + UPLOAD_PREFIX, + SUPPORTED_SIGNATURE_ALGORITHMS, + DEFAULT_SIGNATURE_ALGORITHM +}; diff --git a/node_modules/cloudinary/lib/utils/crc32.js b/node_modules/cloudinary/lib/utils/crc32.js new file mode 100644 index 0000000..e8c21d3 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/crc32.js @@ -0,0 +1,41 @@ +/* eslint-disable no-bitwise */ +// http://kevin.vanzonneveld.net +// + original by: Webtoolkit.info (http://www.webtoolkit.info/) +// + improved by: T0bsn +// + improved by: http://stackoverflow.com/questions/2647935/javascript-crc32-function-and-php-crc32-not-matching +// - depends on: utf8_encode +// * example 1: crc32('Kevin van Zonneveld') +// * returns 1: 1249991249 + +const utf8_encode = require('./utf8_encode'); + +/** + * Compute the crc32 checksum if the given string + * @private + * @param {string} str + * @return {number|*} + */ +function crc32(str) { + let crc, i, iTop, table, x, y; + str = utf8_encode(str); + table = "00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D"; + crc = 0; + x = 0; + y = 0; + crc = crc ^ (-1); + i = 0; + iTop = str.length; + while (i < iTop) { + y = (crc ^ str.charCodeAt(i)) & 0xFF; + x = "0x" + table.substr(y * 9, 8); + crc = (crc >>> 8) ^ x; + i++; + } + crc = crc ^ (-1); + if (crc < 0) { + crc += 4294967296; + } + return crc; +} + +module.exports = crc32; diff --git a/node_modules/cloudinary/lib/utils/encoding/base64Encode.js b/node_modules/cloudinary/lib/utils/encoding/base64Encode.js new file mode 100644 index 0000000..e3aa190 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/encoding/base64Encode.js @@ -0,0 +1,8 @@ +function base64Encode(input) { + if (!(input instanceof Buffer)) { + input = Buffer.from(String(input), 'binary'); + } + return input.toString('base64'); +} + +module.exports.base64Encode = base64Encode; diff --git a/node_modules/cloudinary/lib/utils/encoding/base64EncodeURL.js b/node_modules/cloudinary/lib/utils/encoding/base64EncodeURL.js new file mode 100644 index 0000000..738a789 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/encoding/base64EncodeURL.js @@ -0,0 +1,17 @@ +const { base64Encode } = require('./base64Encode') + +function base64EncodeURL(sourceUrl) { + try { + sourceUrl = decodeURI(sourceUrl); + } catch (error) { + // ignore errors + } + sourceUrl = encodeURI(sourceUrl); + return base64Encode(sourceUrl) + .replace(/\+/g, '-') // Convert '+' to '-' + .replace(/\//g, '_') // Convert '/' to '_' + .replace(/=+$/, ''); // Remove ending '='; +} + + +module.exports.base64EncodeURL = base64EncodeURL; diff --git a/node_modules/cloudinary/lib/utils/encoding/encodeDoubleArray.js b/node_modules/cloudinary/lib/utils/encoding/encodeDoubleArray.js new file mode 100644 index 0000000..9251b92 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/encoding/encodeDoubleArray.js @@ -0,0 +1,18 @@ +const isArray = require('lodash/isArray'); +const toArray = require('../parsing/toArray'); + +/** + * Serialize an array of arrays into a string + * @param {string[] | Array.>} array - An array of arrays. + * If the first element is not an array the argument is wrapped in an array. + * @returns {string} A string representation of the arrays. + */ +function encodeDoubleArray(array) { + array = toArray(array); + if (!isArray(array[0])) { + array = [array]; + } + return array.map(e => toArray(e).join(",")).join("|"); +} + +module.exports = encodeDoubleArray; diff --git a/node_modules/cloudinary/lib/utils/encoding/sdkAnalytics/getSDKVersions.js b/node_modules/cloudinary/lib/utils/encoding/sdkAnalytics/getSDKVersions.js new file mode 100644 index 0000000..dcb1828 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/encoding/sdkAnalytics/getSDKVersions.js @@ -0,0 +1,27 @@ +let fs = require('fs'); +let path = require('path'); +let sdkCode = 'M'; // Constant per SDK + +/** + * @description Gets the relevant versions of the SDK(package version, node version and sdkCode) + * @param {'default' | 'x.y.z' | 'x.y' | string} useSDKVersion Default uses package.json version + * @param {'default' | 'x.y.z' | 'x.y' | string} useNodeVersion Default uses process.versions.node + * @return {{sdkSemver:string, techVersion:string, sdkCode:string}} A map of relevant versions and codes + */ +function getSDKVersions(useSDKVersion = 'default', useNodeVersion = 'default') { + let pkgJSONFile = fs.readFileSync(path.join(__dirname, '../../../../package.json'), 'utf-8'); + + // allow to pass a custom SDKVersion + let sdkSemver = useSDKVersion === 'default' ? JSON.parse(pkgJSONFile).version : useSDKVersion; + + // allow to pass a custom techVersion (Node version) + let techVersion = useNodeVersion === 'default' ? process.versions.node : useNodeVersion; + + return { + sdkSemver, + techVersion, + sdkCode + }; +} + +module.exports = getSDKVersions; diff --git a/node_modules/cloudinary/lib/utils/encoding/smart_escape.js b/node_modules/cloudinary/lib/utils/encoding/smart_escape.js new file mode 100644 index 0000000..e3e9fc9 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/encoding/smart_escape.js @@ -0,0 +1,11 @@ +// Based on CGI::unescape. In addition does not escape / : +// smart_escape = (string) => encodeURIComponent(string).replace(/%3A/g, ":").replace(/%2F/g, "/") +function smart_escape(string, unsafe = /([^a-zA-Z0-9_.\-\/:]+)/g) { + return string.replace(unsafe, function (match) { + return match.split("").map(function (c) { + return "%" + c.charCodeAt(0).toString(16).toUpperCase(); + }).join(""); + }); +} + +module.exports = smart_escape; diff --git a/node_modules/cloudinary/lib/utils/ensureOption.js b/node_modules/cloudinary/lib/utils/ensureOption.js new file mode 100644 index 0000000..98df08c --- /dev/null +++ b/node_modules/cloudinary/lib/utils/ensureOption.js @@ -0,0 +1,39 @@ +/** + * Returns an ensureOption function that relies on the provided `defaultOptions` argument + * for default values. + * @private + * @param {object} defaultOptions + * @return {function(*, *, *=): *} + */ +function defaults(defaultOptions) { + return function ensureOption(options, name, defaultValue) { + let value; + + if (typeof options[name] !== 'undefined') { + value = options[name]; + } else if (typeof defaultOptions[name] !== 'undefined') { + value = defaultOptions[name]; + } else if (typeof defaultValue !== 'undefined') { + value = defaultValue; + } else { + throw `Must supply ${name}`; + } + + return value; + }; +} + +/** + * Get the option `name` from options, the global config, or the default value. + * If the value is not defined and no default value was provided, + * the method will throw an error. + * @private + * @param {object} options + * @param {string} name + * @param {*} [defaultValue] + * @return {*} the value associated with the provided `name` or the default. + * + */ +module.exports = defaults({}); + +module.exports.defaults = defaults; diff --git a/node_modules/cloudinary/lib/utils/ensurePresenceOf.js b/node_modules/cloudinary/lib/utils/ensurePresenceOf.js new file mode 100644 index 0000000..15adff8 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/ensurePresenceOf.js @@ -0,0 +1,20 @@ +/** + * Validate that the given values are defined + * @private + * @param {object} parameters where each key value pair is the name and value of the argument to validate. + * + * @example + * + * function foo(bar){ + * ensurePresenceOf({bar}); + * // ... + * } + */ +function ensurePresenceOf(parameters) { + let missing = Object.keys(parameters).filter(key => parameters[key] === undefined); + if (missing.length) { + console.error(missing.join(',') + " cannot be undefined"); + } +} + +module.exports = ensurePresenceOf; diff --git a/node_modules/cloudinary/lib/utils/entries.js b/node_modules/cloudinary/lib/utils/entries.js new file mode 100644 index 0000000..6bf8e19 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/entries.js @@ -0,0 +1,10 @@ +module.exports = Object.entries ? Object.entries : function (obj) { + let ownProps = Object.keys(obj), + i = ownProps.length, + resArray = new Array(i); // preallocate the Array + while (i--) { + resArray[i] = [ownProps[i], obj[ownProps[i]]]; + } + + return resArray; +}; diff --git a/node_modules/cloudinary/lib/utils/generateBreakpoints.js b/node_modules/cloudinary/lib/utils/generateBreakpoints.js new file mode 100644 index 0000000..f81453e --- /dev/null +++ b/node_modules/cloudinary/lib/utils/generateBreakpoints.js @@ -0,0 +1,41 @@ + +/** + * Helper function. Gets or populates srcset breakpoints using provided parameters + * Either the breakpoints or min_width, max_width, max_images must be provided. + * + * @module utils + * @private + * @param {srcset} srcset Options with either `breakpoints` or `min_width`, `max_width`, and `max_images` + * + * @return {number[]} Array of breakpoints + * + */ +function generateBreakpoints(srcset) { + let breakpoints = srcset.breakpoints || []; + if (breakpoints.length) { + return breakpoints; + } + let [min_width, max_width, max_images] = [srcset.min_width, srcset.max_width, srcset.max_images].map(Number); + if ([min_width, max_width, max_images].some(Number.isNaN)) { + throw 'Either (min_width, max_width, max_images) ' + + 'or breakpoints must be provided to the image srcset attribute'; + } + + if (min_width > max_width) { + throw 'min_width must be less than max_width'; + } + + if (max_images <= 0) { + throw 'max_images must be a positive integer'; + } else if (max_images === 1) { + min_width = max_width; + } + + let stepSize = Math.ceil((max_width - min_width) / Math.max(max_images - 1, 1)); + for (let current = min_width; current < max_width; current += stepSize) { + breakpoints.push(current); + } + breakpoints.push(max_width); + return breakpoints; +} +module.exports = generateBreakpoints; diff --git a/node_modules/cloudinary/lib/utils/index.js b/node_modules/cloudinary/lib/utils/index.js new file mode 100644 index 0000000..47acd25 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/index.js @@ -0,0 +1,1703 @@ +/** + * Utilities + * @module utils + * @borrows module:auth_token as generate_auth_token + */ + +const crypto = require("crypto"); +const querystring = require("querystring"); +const urlParse = require("url").parse; + +// Functions used internally +const compact = require("lodash/compact"); +const first = require("lodash/first"); +const isFunction = require("lodash/isFunction"); +const isPlainObject = require("lodash/isPlainObject"); +const last = require("lodash/last"); +const map = require("lodash/map"); +const take = require("lodash/take"); +const at = require("lodash/at"); + +// Exposed by the module +const clone = require("lodash/clone"); +const extend = require("lodash/extend"); +const filter = require("lodash/filter"); +const includes = require("lodash/includes"); +const isArray = require("lodash/isArray"); +const isEmpty = require("lodash/isEmpty"); +const isNumber = require("lodash/isNumber"); +const isObject = require("lodash/isObject"); +const isString = require("lodash/isString"); +const isUndefined = require("lodash/isUndefined"); + +const smart_escape = require("./encoding/smart_escape"); +const consumeOption = require('./parsing/consumeOption'); +const toArray = require('./parsing/toArray'); +let {base64EncodeURL} = require('./encoding/base64EncodeURL'); +const encodeDoubleArray = require('./encoding/encodeDoubleArray'); + +const config = require("../config"); +const generate_token = require("../auth_token"); +const crc32 = require('./crc32'); +const ensurePresenceOf = require('./ensurePresenceOf'); +const ensureOption = require('./ensureOption').defaults(config()); +const entries = require('./entries'); +const isRemoteUrl = require('./isRemoteUrl'); +const getSDKVersions = require('./encoding/sdkAnalytics/getSDKVersions'); +const { + getAnalyticsOptions, + getSDKAnalyticsSignature +} = require('cloudinary-core').Util; + +exports = module.exports; +const utils = module.exports; + +try { + // eslint-disable-next-line global-require + utils.VERSION = require('../../package.json').version; +} catch (error) { + utils.VERSION = ''; +} + +function generate_auth_token(options) { + let token_options = Object.assign({}, config().auth_token, options); + return generate_token(token_options); +} + +exports.CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net"; +exports.OLD_AKAMAI_SHARED_CDN = "cloudinary-a.akamaihd.net"; +exports.AKAMAI_SHARED_CDN = "res.cloudinary.com"; +exports.SHARED_CDN = exports.AKAMAI_SHARED_CDN; +exports.USER_AGENT = `CloudinaryNodeJS/${exports.VERSION} (Node ${process.versions.node})`; + +// Add platform information to the USER_AGENT header +// This is intended for platform information and not individual applications! +exports.userPlatform = ""; + +function getUserAgent() { + return isEmpty(utils.userPlatform) ? `${utils.USER_AGENT}` : `${utils.userPlatform} ${utils.USER_AGENT}`; +} + +const { + DEFAULT_RESPONSIVE_WIDTH_TRANSFORMATION, + DEFAULT_POSTER_OPTIONS, + DEFAULT_VIDEO_SOURCE_TYPES, + CONDITIONAL_OPERATORS, + PREDEFINED_VARS, + LAYER_KEYWORD_PARAMS, + TRANSFORMATION_PARAMS, + SIMPLE_PARAMS, + UPLOAD_PREFIX, + SUPPORTED_SIGNATURE_ALGORITHMS, + DEFAULT_SIGNATURE_ALGORITHM +} = require('./consts'); + +function textStyle(layer) { + let keywords = []; + let style = ""; + + if (!isEmpty(layer.text_style)) { + return layer.text_style; + } + Object.keys(LAYER_KEYWORD_PARAMS).forEach((attr) => { + let default_value = LAYER_KEYWORD_PARAMS[attr]; + let attr_value = layer[attr] || default_value; + if (attr_value !== default_value) { + keywords.push(attr_value); + } + }); + + Object.keys(layer).forEach((attr) => { + if (attr === "letter_spacing" || attr === "line_spacing") { + keywords.push(`${attr}_${layer[attr]}`); + } + if (attr === "font_hinting") { + keywords.push(`${attr.split("_").pop()}_${layer[attr]}`); + } + if (attr === "font_antialiasing") { + keywords.push(`antialias_${layer[attr]}`); + } + }); + + if (layer.hasOwnProperty("font_size" || "font_family") || !isEmpty(keywords)) { + if (!layer.font_size) throw new Error('Must supply font_size for text in overlay/underlay'); + if (!layer.font_family) throw new Error('Must supply font_family for text in overlay/underlay'); + keywords.unshift(layer.font_size); + keywords.unshift(layer.font_family); + style = compact(keywords).join("_"); + } + return style; +} + +/** + * Normalize an expression string, replace "nice names" with their coded values and spaces with "_" + * e.g. `width > 0` => `w_lt_0` + * + * @param {String} expression An expression to be normalized + * @return {Object|String} A normalized String of the input value if possible otherwise the value itself + */ +function normalize_expression(expression) { + if (!isString(expression) || expression.length === 0 || expression.match(/^!.+!$/)) { + return expression; + } + + const operators = "\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\^|\\+|\\*"; + const operatorsPattern = "((" + operators + ")(?=[ _]))"; + const operatorsReplaceRE = new RegExp(operatorsPattern, "g"); + expression = expression.replace(operatorsReplaceRE, match => CONDITIONAL_OPERATORS[match]); + + // Duplicate PREDEFINED_VARS to also include :{var_name} as well as {var_name} + // Example: + // -- PREDEFINED_VARS = ['foo'] + // -- predefinedVarsPattern = ':foo|foo' + // It is done like this because node 6 does not support regex lookbehind + const predefinedVarsPattern = "(" + Object.keys(PREDEFINED_VARS).map(v => `:${v}|${v}`).join("|") + ")"; + const userVariablePattern = '(\\$_*[^_ ]+)'; + const variablesReplaceRE = new RegExp(`${userVariablePattern}|${predefinedVarsPattern}`, "g"); + expression = expression.replace(variablesReplaceRE, (match) => (PREDEFINED_VARS[match] || match)); + + return expression.replace(/[ _]+/g, '_'); +} + +/** + * Parse custom_function options + * @private + * @param {object|*} customFunction a custom function object containing function_type and source values + * @return {string|*} custom_function transformation string + */ +function process_custom_function(customFunction) { + if (!isObject(customFunction)) { + return customFunction; + } + if (customFunction.function_type === "remote") { + const encodedSource = base64EncodeURL(customFunction.source); + + return [customFunction.function_type, encodedSource].join(":"); + } + return [customFunction.function_type, customFunction.source].join(":"); +} + +/** + * Parse custom_pre_function options + * @private + * @param {object|*} customPreFunction a custom function object containing function_type and source values + * @return {string|*} custom_pre_function transformation string + */ +function process_custom_pre_function(customPreFunction) { + let result = process_custom_function(customPreFunction); + return utils.isString(result) ? `pre:${result}` : null; +} + +/** + * Parse "if" parameter + * Translates the condition if provided. + * @private + * @return {string} "if_" + ifValue + */ +function process_if(ifValue) { + return ifValue ? "if_" + normalize_expression(ifValue) : ifValue; +} + +/** + * Parse layer options + * @private + * @param {object|*} layer The layer to parse. + * @return {string} layer transformation string + */ +function process_layer(layer) { + if (isString(layer)) { + let resourceType = null; + let layerUrl = ''; + + let fetchLayerBegin = 'fetch:'; + if (layer.startsWith(fetchLayerBegin)) { + layerUrl = layer.substring(fetchLayerBegin.length); + } else if (layer.indexOf(':fetch:', 0) !== -1) { + const parts = layer.split(':', 3); + resourceType = parts[0]; + layerUrl = parts[2]; + } else { + return layer; + } + + layer = { + url: layerUrl, + type: 'fetch' + }; + + if (resourceType) { + layer.resource_type = resourceType; + } + } + + if (typeof layer !== 'object') { + return layer; + } + + let { + resource_type, + text, + type, + public_id, + format, + url: fetchUrl + } = layer; + const components = []; + + if (!isEmpty(text) && isEmpty(resource_type)) { + resource_type = 'text'; + } + + if (!isEmpty(fetchUrl) && isEmpty(type)) { + type = 'fetch'; + } + + if (!isEmpty(public_id) && !isEmpty(format)) { + public_id = `${public_id}.${format}`; + } + + if (isEmpty(public_id) && resource_type !== 'text' && type !== 'fetch') { + throw new Error('Must supply public_id for non-text overlay'); + } + + if (!isEmpty(resource_type) && resource_type !== 'image') { + components.push(resource_type); + } + + if (!isEmpty(type) && type !== 'upload') { + components.push(type); + } + + if (resource_type === 'text' || resource_type === 'subtitles') { + if (isEmpty(public_id) && isEmpty(text)) { + throw new Error('Must supply either text or public_in in overlay'); + } + + const textOptions = textStyle(layer); + + if (!isEmpty(textOptions)) { + components.push(textOptions); + } + + if (!isEmpty(public_id)) { + public_id = public_id.replace('/', ':'); + components.push(public_id); + } + + if (!isEmpty(text)) { + const variablesRegex = new RegExp(/(\$\([a-zA-Z]\w+\))/g); + const textDividedByVariables = text.split(variablesRegex).filter(x => x); + const encodedParts = textDividedByVariables.map(subText => { + const matches = variablesRegex[Symbol.match](subText); + const isVariable = matches ? matches.length > 0 : false; + if (isVariable) { + return subText; + } + return encodeCurlyBraces(encodeURIComponent(smart_escape(subText, new RegExp(/([,\/])/g)))); + }); + components.push(encodedParts.join('')); + } + } else if (type === 'fetch') { + const encodedUrl = base64EncodeURL(fetchUrl); + components.push(encodedUrl); + } else { + public_id = public_id.replace('/', ':'); + components.push(public_id); + } + + return components.join(':'); +} + +function replaceAllSubstrings(string, search, replacement = '') { + return string.split(search).join(replacement); +} + +function encodeCurlyBraces(input) { + return replaceAllSubstrings(replaceAllSubstrings(input, '(', '%28'), ')', '%29'); +} + +/** + * Parse radius options + * @private + * @param {Array|string|number} radius The radius to parse + * @return {string} radius transformation string + */ +function process_radius(radius) { + if (!radius) { + return radius; + } + if (!isArray(radius)) { + radius = [radius]; + } + if (radius.length === 0 || radius.length > 4) { + throw new Error("Radius array should contain between 1 and 4 values"); + } + if (radius.findIndex(x => x === null) >= 0) { + throw new Error("Corner: Cannot be null"); + } + return radius.map(normalize_expression).join(':'); +} + +function build_multi_and_sprite_params(tagOrOptions, options) { + let tag = null; + if (typeof tagOrOptions === 'string') { + tag = tagOrOptions; + } else { + if (isEmpty(options)) { + options = tagOrOptions; + } else { + throw new Error('First argument must be a tag when additional options are passed'); + } + tag = null; + } + if (!options && !tag) { + throw new Error('Either tag or urls are required') + } + if (!options) { + options = {} + } + const urls = options.urls + const transformation = generate_transformation_string(extend({}, options, { + fetch_format: options.format + })); + return { + tag, + transformation, + urls, + timestamp: utils.timestamp(), + async: options.async, + notification_url: options.notification_url + }; +} + +function build_upload_params(options) { + let params = { + access_mode: options.access_mode, + allowed_formats: options.allowed_formats && toArray(options.allowed_formats).join(","), + asset_folder: options.asset_folder, + async: utils.as_safe_bool(options.async), + backup: utils.as_safe_bool(options.backup), + callback: options.callback, + cinemagraph_analysis: utils.as_safe_bool(options.cinemagraph_analysis), + colors: utils.as_safe_bool(options.colors), + display_name: options.display_name, + discard_original_filename: utils.as_safe_bool(options.discard_original_filename), + eager: utils.build_eager(options.eager), + eager_async: utils.as_safe_bool(options.eager_async), + eager_notification_url: options.eager_notification_url, + eval: options.eval, + exif: utils.as_safe_bool(options.exif), + faces: utils.as_safe_bool(options.faces), + folder: options.folder, + format: options.format, + filename_override: options.filename_override, + image_metadata: utils.as_safe_bool(options.image_metadata), + media_metadata: utils.as_safe_bool(options.media_metadata), + invalidate: utils.as_safe_bool(options.invalidate), + moderation: options.moderation, + notification_url: options.notification_url, + overwrite: utils.as_safe_bool(options.overwrite), + phash: utils.as_safe_bool(options.phash), + proxy: options.proxy, + public_id: options.public_id, + public_id_prefix: options.public_id_prefix, + quality_analysis: utils.as_safe_bool(options.quality_analysis), + responsive_breakpoints: utils.generate_responsive_breakpoints_string(options.responsive_breakpoints), + return_delete_token: utils.as_safe_bool(options.return_delete_token), + timestamp: options.timestamp || exports.timestamp(), + transformation: utils.generate_transformation_string(clone(options)), + type: options.type, + unique_filename: utils.as_safe_bool(options.unique_filename), + upload_preset: options.upload_preset, + use_filename: utils.as_safe_bool(options.use_filename), + use_filename_as_display_name: utils.as_safe_bool(options.use_filename_as_display_name), + quality_override: options.quality_override, + accessibility_analysis: utils.as_safe_bool(options.accessibility_analysis), + use_asset_folder_as_public_id_prefix: utils.as_safe_bool(options.use_asset_folder_as_public_id_prefix), + visual_search: utils.as_safe_bool(options.visual_search), + on_success: options.on_success + }; + return utils.updateable_resource_params(options, params); +} + +function encode_key_value(arg) { + if (!isObject(arg)) { + return arg; + } + return entries(arg).map(([k, v]) => `${k}=${v}`).join('|'); +} + + +/** + * @description Escape = and | with two backslashes \\ + * @param {string|number} value + * @return {string} + */ +function escapeMetadataValue(value) { + return value.toString().replace(/([=|])/g, '\\$&'); +} + + +/** + * + * @description Encode metadata fields based on incoming value. + * If array, escape as color_id=[\"green\",\"red\"] + * If string/number, escape as in_stock_id=50 + * + * Joins resulting values with a pipe: + * in_stock_id=50|color_id=[\"green\",\"red\"] + * + * = and | and escaped by default (this can't be turned off) + * + * @param metadataObj + * @return {string} + */ +function encode_context(metadataObj) { + if (!isObject(metadataObj)) { + return metadataObj; + } + + return entries(metadataObj).map(([key, value]) => { + // if string, simply parse the value and move on + if (isString(value)) { + return `${key}=${escapeMetadataValue(value)}`; + + // If array, parse each item individually + } else if (isArray(value)) { + let values = value.map((innerVal) => { + return `\"${escapeMetadataValue(innerVal)}\"` + }).join(','); + return `${key}=[${values}]` + // if number, convert to string + } else if (Number.isInteger(value)) { + return `${key}=${escapeMetadataValue(String(value))}`; + // if unknown, return the value as string + } else { + return value.toString(); + } + }).join('|'); +} + +function build_eager(transformations) { + return toArray(transformations) + .map((transformation) => { + const transformationString = utils.generate_transformation_string(clone(transformation)); + const format = transformation.format; + return format == null ? transformationString : `${transformationString}/${format}`; + }).join('|'); +} + +/** + * Build the custom headers for the request + * @private + * @param headers + * @return {Array|object|string} An object of name and value, + * an array of header strings, or a string of headers + */ +function build_custom_headers(headers) { + switch (true) { + case headers == null: + return void 0; + case isArray(headers): + return headers.join("\n"); + case isObject(headers): + return entries(headers).map(([k, v]) => `${k}:${v}`).join("\n"); + default: + return headers; + } +} + +function generate_transformation_string(options) { + if (utils.isString(options)) { + return options; + } + if (isArray(options)) { + return options.map(t => utils.generate_transformation_string(clone(t))).filter(utils.present).join('/'); + } + + let responsive_width = consumeOption(options, "responsive_width", config().responsive_width); + let width = options.width; + let height = options.height; + let size = consumeOption(options, "size"); + if (size) { + [width, height] = size.split("x"); + [options.width, options.height] = [width, height]; + } + let has_layer = options.overlay || options.underlay; + let crop = consumeOption(options, "crop"); + let angle = toArray(consumeOption(options, "angle")).join("."); + let no_html_sizes = has_layer || utils.present(angle) || crop === "fit" || crop === "limit" || responsive_width; + if (width && (width.toString().indexOf("auto") === 0 || no_html_sizes || parseFloat(width) < 1)) { + delete options.width; + } + if (height && (no_html_sizes || parseFloat(height) < 1)) { + delete options.height; + } + let background = consumeOption(options, "background"); + background = background && background.replace(/^#/, "rgb:"); + let color = consumeOption(options, "color"); + color = color && color.replace(/^#/, "rgb:"); + let base_transformations = toArray(consumeOption(options, "transformation", [])); + let named_transformation = []; + if (base_transformations.some(isObject)) { + base_transformations = base_transformations.map(tr => utils.generate_transformation_string( + isObject(tr) ? clone(tr) : {transformation: tr} + )); + } else { + named_transformation = base_transformations.join("."); + base_transformations = []; + } + let effect = consumeOption(options, "effect"); + if (isArray(effect)) { + effect = effect.join(":"); + } else if (isObject(effect)) { + effect = entries(effect).map( + ([key, value]) => `${key}:${value}` + ); + } + let border = consumeOption(options, "border"); + if (isObject(border)) { + border = `${border.width != null ? border.width : 2}px_solid_${(border.color != null ? border.color : "black").replace(/^#/, 'rgb:')}`; + } else if (/^\d+$/.exec(border)) { // fallback to html border attributes + options.border = border; + border = void 0; + } + let flags = toArray(consumeOption(options, "flags")).join("."); + let dpr = consumeOption(options, "dpr", config().dpr); + if (options.offset != null) { + [options.start_offset, options.end_offset] = split_range(consumeOption(options, "offset")); + } + if (options.start_offset) { + options.start_offset = normalize_expression(options.start_offset); + } + if (options.end_offset) { + options.end_offset = normalize_expression(options.end_offset); + } + let overlay = process_layer(consumeOption(options, "overlay")); + let radius = process_radius(consumeOption(options, "radius")); + let underlay = process_layer(consumeOption(options, "underlay")); + let ifValue = process_if(consumeOption(options, "if")); + let custom_function = process_custom_function(consumeOption(options, "custom_function")); + let custom_pre_function = process_custom_pre_function(consumeOption(options, "custom_pre_function")); + let fps = consumeOption(options, 'fps'); + if (isArray(fps)) { + fps = fps.join('-'); + } + let params = { + a: normalize_expression(angle), + ar: normalize_expression(consumeOption(options, "aspect_ratio")), + b: background, + bo: border, + c: crop, + co: color, + dpr: normalize_expression(dpr), + e: normalize_expression(effect), + fl: flags, + fn: custom_function || custom_pre_function, + fps: fps, + h: normalize_expression(height), + ki: normalize_expression(consumeOption(options, "keyframe_interval")), + l: overlay, + o: normalize_expression(consumeOption(options, "opacity")), + q: normalize_expression(consumeOption(options, "quality")), + r: radius, + t: named_transformation, + u: underlay, + w: normalize_expression(width), + x: normalize_expression(consumeOption(options, "x")), + y: normalize_expression(consumeOption(options, "y")), + z: normalize_expression(consumeOption(options, "zoom")) + }; + + SIMPLE_PARAMS.forEach(([name, short]) => { + let value = consumeOption(options, name); + if (value !== undefined) { + params[short] = value; + } + }); + if (params.vc != null) { + params.vc = process_video_params(params.vc); + } + ["so", "eo", "du"].forEach((short) => { + if (params[short] !== undefined) { + params[short] = norm_range_value(params[short]); + } + }); + + let variablesParam = consumeOption(options, "variables", []); + let variables = entries(options) + .filter(([key, value]) => key.startsWith('$')) + .map(([key, value]) => { + delete options[key]; + return `${key}_${normalize_expression(value)}`; + }).sort().concat( + variablesParam.map(([name, value]) => `${name}_${normalize_expression(value)}`) + ).join(','); + + let transformations = entries(params) + .filter(([key, value]) => utils.present(value)) + .map(([key, value]) => key + '_' + value) + .sort() + .join(','); + + let raw_transformation = consumeOption(options, 'raw_transformation'); + transformations = compact([ifValue, variables, transformations, raw_transformation]).join(","); + base_transformations.push(transformations); + transformations = base_transformations; + if (responsive_width) { + let responsive_width_transformation = config().responsive_width_transformation + || DEFAULT_RESPONSIVE_WIDTH_TRANSFORMATION; + + transformations.push(utils.generate_transformation_string(clone(responsive_width_transformation))); + } + if (String(width).startsWith("auto") || responsive_width) { + options.responsive = true; + } + if (dpr === "auto") { + options.hidpi = true; + } + return filter(transformations, utils.present).join("/"); +} + +function updateable_resource_params(options, params = {}) { + if (options.access_control != null) { + params.access_control = utils.jsonArrayParam(options.access_control); + } + if (options.auto_tagging != null) { + params.auto_tagging = options.auto_tagging; + } + if (options.background_removal != null) { + params.background_removal = options.background_removal; + } + if (options.categorization != null) { + params.categorization = options.categorization; + } + if (options.context != null) { + params.context = utils.encode_context(options.context); + } + if (options.metadata != null) { + params.metadata = utils.encode_context(options.metadata); + } + if (options.custom_coordinates != null) { + params.custom_coordinates = encodeDoubleArray(options.custom_coordinates); + } + if (options.detection != null) { + params.detection = options.detection; + } + if (options.face_coordinates != null) { + params.face_coordinates = encodeDoubleArray(options.face_coordinates); + } + if (options.headers != null) { + params.headers = utils.build_custom_headers(options.headers); + } + if (options.notification_url != null) { + params.notification_url = options.notification_url; + } + if (options.ocr != null) { + params.ocr = options.ocr; + } + if (options.raw_convert != null) { + params.raw_convert = options.raw_convert; + } + if (options.similarity_search != null) { + params.similarity_search = options.similarity_search; + } + if (options.tags != null) { + params.tags = toArray(options.tags).join(","); + } + if (options.quality_override != null) { + params.quality_override = options.quality_override; + } + if (options.asset_folder != null) { + params.asset_folder = options.asset_folder; + } + if (options.display_name != null) { + params.display_name = options.display_name; + } + if (options.unique_display_name != null) { + params.unique_display_name = options.unique_display_name; + } + if (options.visual_search != null) { + params.visual_search = options.visual_search; + } + return params; +} + +/** + * A list of keys used by the url() function. + * @private + */ +const URL_KEYS = [ + 'api_secret', + 'auth_token', + 'cdn_subdomain', + 'cloud_name', + 'cname', + 'format', + 'long_url_signature', + 'private_cdn', + 'resource_type', + 'secure', + 'secure_cdn_subdomain', + 'secure_distribution', + 'shorten', + 'sign_url', + 'ssl_detected', + 'type', + 'url_suffix', + 'use_root_path', + 'version' +]; + +/** + * Create a new object with only URL parameters + * @param {object} options The source object + * @return {Object} An object containing only URL parameters + */ + +function extractUrlParams(options) { + return pickOnlyExistingValues(options, ...URL_KEYS); +} + +/** + * Create a new object with only transformation parameters + * @param {object} options The source object + * @return {Object} An object containing only transformation parameters + */ + +function extractTransformationParams(options) { + return pickOnlyExistingValues(options, ...TRANSFORMATION_PARAMS); +} + +/** + * Handle the format parameter for fetch urls + * @private + * @param options url and transformation options. This argument may be changed by the function! + */ + +function patchFetchFormat(options = {}) { + if (options.type === "fetch") { + if (options.fetch_format == null) { + options.fetch_format = consumeOption(options, "format"); + } + } +} + +function build_distribution_domain(source, options) { + const cloud_name = consumeOption(options, 'cloud_name', config().cloud_name); + if (!cloud_name) { + throw new Error('Must supply cloud_name in tag or in configuration'); + } + + let secure = consumeOption(options, 'secure', null); + const ssl_detected = consumeOption(options, 'ssl_detected', config().ssl_detected); + if (secure === null) { + secure = ssl_detected || config().secure; + } + + const private_cdn = consumeOption(options, 'private_cdn', config().private_cdn); + const cname = consumeOption(options, 'cname', config().cname); + const secure_distribution = consumeOption(options, 'secure_distribution', config().secure_distribution); + const cdn_subdomain = consumeOption(options, 'cdn_subdomain', config().cdn_subdomain); + const secure_cdn_subdomain = consumeOption(options, 'secure_cdn_subdomain', config().secure_cdn_subdomain); + + return unsigned_url_prefix(source, cloud_name, private_cdn, cdn_subdomain, secure_cdn_subdomain, cname, secure, secure_distribution); +} + +function url(public_id, options = {}) { + let signature, source_to_sign; + utils.patchFetchFormat(options); + let type = consumeOption(options, "type", null); + let transformation = utils.generate_transformation_string(options); + + let resource_type = consumeOption(options, "resource_type", "image"); + let version = consumeOption(options, "version"); + let force_version = consumeOption(options, "force_version", config().force_version); + if (force_version == null) { + force_version = true; + } + let long_url_signature = !!consumeOption(options, "long_url_signature", config().long_url_signature); + let format = consumeOption(options, "format"); + let shorten = consumeOption(options, "shorten", config().shorten); + let sign_url = consumeOption(options, "sign_url", config().sign_url); + let api_secret = consumeOption(options, "api_secret", config().api_secret); + let url_suffix = consumeOption(options, "url_suffix"); + let use_root_path = consumeOption(options, "use_root_path", config().use_root_path); + let signature_algorithm = consumeOption(options, "signature_algorithm", config().signature_algorithm || DEFAULT_SIGNATURE_ALGORITHM); + if (long_url_signature) { + signature_algorithm = 'sha256'; + } + let auth_token = consumeOption(options, "auth_token"); + if (auth_token !== false) { + auth_token = exports.merge(config().auth_token, auth_token); + } + let preloaded = /^(image|raw)\/([a-z0-9_]+)\/v(\d+)\/([^#]+)$/.exec(public_id); + if (preloaded) { + resource_type = preloaded[1]; + type = preloaded[2]; + version = preloaded[3]; + public_id = preloaded[4]; + } + let original_source = public_id; + if (public_id == null) { + return original_source; + } + public_id = public_id.toString(); + if (type === null && public_id.match(/^https?:\//i)) { + return original_source; + } + [resource_type, type] = finalize_resource_type(resource_type, type, url_suffix, use_root_path, shorten); + [public_id, source_to_sign] = finalize_source(public_id, format, url_suffix); + + if (version == null && force_version && source_to_sign.indexOf("/") >= 0 && !source_to_sign.match(/^v[0-9]+/) && !source_to_sign.match(/^https?:\//)) { + version = 1; + } + if (version != null) { + version = `v${version}`; + } else { + version = null; + } + + transformation = transformation.replace(/([^:])\/\//g, '$1/'); + if (sign_url && isEmpty(auth_token)) { + let to_sign = [transformation, source_to_sign].filter(function (part) { + return (part != null) && part !== ''; + }).join('/'); + + const signatureConfig = {}; + if (long_url_signature) { + signatureConfig.algorithm = 'sha256'; + signatureConfig.signatureLength = 32; + } else { + signatureConfig.algorithm = signature_algorithm; + signatureConfig.signatureLength = 8; + } + + const truncated = compute_hash(to_sign + api_secret, signatureConfig.algorithm, 'base64') + .slice(0, signatureConfig.signatureLength) + .replace(/\//g, '_') + .replace(/\+/g, '-'); + signature = `s--${truncated}--`; + } + + let prefix = build_distribution_domain(public_id, options); + let resultUrl = [prefix, resource_type, type, signature, transformation, version, public_id].filter(function (part) { + return (part != null) && part !== ''; + }).join('/').replace(/ /g, '%20'); + if (sign_url && !isEmpty(auth_token)) { + auth_token.url = urlParse(resultUrl).path; + let token = generate_token(auth_token); + resultUrl += `?${token}`; + } + + let urlAnalytics = ensureOption(options, 'urlAnalytics', false); + + if (urlAnalytics === true) { + let { + sdkCode, + sdkSemver, + techVersion + } = getSDKVersions(); + let sdkVersions = { + sdkCode: ensureOption(options, 'sdkCode', sdkCode), + sdkSemver: ensureOption(options, 'sdkSemver', sdkSemver), + techVersion: ensureOption(options, 'techVersion', techVersion) + }; + + let analyticsOptions = getAnalyticsOptions( + Object.assign({}, options, sdkVersions) + ); + + let sdkAnalyticsSignature = getSDKAnalyticsSignature(analyticsOptions); + + // url might already have a '?' query param + let appender = '?'; + if (resultUrl.indexOf('?') >= 0) { + appender = '&'; + } + resultUrl = `${resultUrl}${appender}_a=${sdkAnalyticsSignature}`; + } + + return resultUrl; +} + +function video_url(public_id, options) { + options = extend({ + resource_type: 'video' + }, options); + return utils.url(public_id, options); +} + +function finalize_source(source, format, url_suffix) { + let source_to_sign; + source = source.replace(/([^:])\/\//g, '$1/'); + if (source.match(/^https?:\//i)) { + source = smart_escape(source); + source_to_sign = source; + } else { + source = encodeURIComponent(decodeURIComponent(source)).replace(/%3A/g, ":").replace(/%2F/g, "/"); + source_to_sign = source; + if (url_suffix) { + if (url_suffix.match(/[\.\/]/)) { + throw new Error('url_suffix should not include . or /'); + } + source = source + '/' + url_suffix; + } + if (format != null) { + source = source + '.' + format; + source_to_sign = source_to_sign + '.' + format; + } + } + return [source, source_to_sign]; +} + +function video_thumbnail_url(public_id, options) { + options = extend({}, DEFAULT_POSTER_OPTIONS, options); + return utils.url(public_id, options); +} + +function finalize_resource_type(resource_type, type, url_suffix, use_root_path, shorten) { + if (type == null) { + type = 'upload'; + } + if (url_suffix != null) { + if (resource_type === 'image' && type === 'upload') { + resource_type = "images"; + type = null; + } else if (resource_type === 'image' && type === 'private') { + resource_type = 'private_images'; + type = null; + } else if (resource_type === 'image' && type === 'authenticated') { + resource_type = 'authenticated_images'; + type = null; + } else if (resource_type === 'raw' && type === 'upload') { + resource_type = 'files'; + type = null; + } else if (resource_type === 'video' && type === 'upload') { + resource_type = 'videos'; + type = null; + } else { + throw new Error("URL Suffix only supported for image/upload, image/private, image/authenticated, video/upload and raw/upload"); + } + } + if (use_root_path) { + if ((resource_type === 'image' && type === 'upload') || (resource_type === 'images' && (type == null))) { + resource_type = null; + type = null; + } else { + throw new Error("Root path only supported for image/upload"); + } + } + if (shorten && resource_type === 'image' && type === 'upload') { + resource_type = 'iu'; + type = null; + } + return [resource_type, type]; +} + +// cdn_subdomain and secure_cdn_subdomain +// 1) Customers in shared distribution (e.g. res.cloudinary.com) +// if cdn_domain is true uses res-[1-5].cloudinary.com for both http and https. +// Setting secure_cdn_subdomain to false disables this for https. +// 2) Customers with private cdn +// if cdn_domain is true uses cloudname-res-[1-5].cloudinary.com for http +// if secure_cdn_domain is true uses cloudname-res-[1-5].cloudinary.com for https +// (please contact support if you require this) +// 3) Customers with cname +// if cdn_domain is true uses a[1-5].cname for http. +// For https, uses the same naming scheme as 1 for shared distribution and as 2 for private distribution. + +function unsigned_url_prefix( + source, + cloud_name, + private_cdn, + cdn_subdomain, + secure_cdn_subdomain, + cname, + secure, + secure_distribution +) { + let prefix; + if (cloud_name.indexOf("/") === 0) { + return '/res' + cloud_name; + } + let shared_domain = !private_cdn; + if (secure) { + if ((secure_distribution == null) || secure_distribution === exports.OLD_AKAMAI_SHARED_CDN) { + secure_distribution = private_cdn ? cloud_name + "-res.cloudinary.com" : exports.SHARED_CDN; + } + if (shared_domain == null) { + shared_domain = secure_distribution === exports.SHARED_CDN; + } + if ((secure_cdn_subdomain == null) && shared_domain) { + secure_cdn_subdomain = cdn_subdomain; + } + if (secure_cdn_subdomain) { + secure_distribution = secure_distribution.replace('res.cloudinary.com', 'res-' + ((crc32(source) % 5) + 1 + '.cloudinary.com')); + } + prefix = 'https://' + secure_distribution; + } else if (cname) { + let subdomain = cdn_subdomain ? 'a' + ((crc32(source) % 5) + 1) + '.' : ''; + prefix = 'http://' + subdomain + cname; + } else { + let cdn_part = private_cdn ? cloud_name + '-' : ''; + let subdomain_part = cdn_subdomain ? '-' + ((crc32(source) % 5) + 1) : ''; + let host = [cdn_part, 'res', subdomain_part, '.cloudinary.com'].join(''); + prefix = 'http://' + host; + } + if (shared_domain) { + prefix += '/' + cloud_name; + } + return prefix; +} + +function base_api_url(path = [], options = {}) { + let cloudinary = ensureOption(options, "upload_prefix", UPLOAD_PREFIX); + let cloud_name = ensureOption(options, "cloud_name"); + let encode_path = unencoded_path => encodeURIComponent(unencoded_path).replace("'", '%27'); + let encoded_path = Array.isArray(path) ? path.map(encode_path) : encode_path(path); + return [cloudinary, "v1_1", cloud_name].concat(encoded_path).join("/"); +} + +function api_url(action = 'upload', options = {}) { + let resource_type = options.resource_type || "image"; + return base_api_url([resource_type, action], options); +} + +function random_public_id() { + return crypto.randomBytes(12).toString('base64').replace(/[^a-z0-9]/g, ""); +} + +function signed_preloaded_image(result) { + return `${result.resource_type}/upload/v${result.version}/${filter([result.public_id, result.format], utils.present).join(".")}#${result.signature}`; +} + +function api_sign_request(params_to_sign, api_secret) { + let to_sign = entries(params_to_sign).filter( + ([k, v]) => utils.present(v) + ).map( + ([k, v]) => `${k}=${toArray(v).join(",")}` + ).sort().join("&"); + return compute_hash(to_sign + api_secret, config().signature_algorithm || DEFAULT_SIGNATURE_ALGORITHM, 'hex'); +} + +/** + * Computes hash from input string using specified algorithm. + * @private + * @param {string} input string which to compute hash from + * @param {string} signature_algorithm algorithm to use for computing hash + * @param {string} encoding type of encoding + * @return {string} computed hash value + */ +function compute_hash(input, signature_algorithm, encoding) { + if (!SUPPORTED_SIGNATURE_ALGORITHMS.includes(signature_algorithm)) { + throw new Error(`Signature algorithm ${signature_algorithm} is not supported. Supported algorithms: ${SUPPORTED_SIGNATURE_ALGORITHMS.join(', ')}`); + } + const hash = crypto.createHash(signature_algorithm).update(input).digest(); + return Buffer.from(hash).toString(encoding); +} + +function clear_blank(hash) { + let filtered_hash = {}; + entries(hash).filter( + ([k, v]) => utils.present(v) + ).forEach( + ([k, v]) => { + filtered_hash[k] = v.filter ? v.filter(x => x) : v; + } + ); + return filtered_hash; +} + +function sort_object_by_key(object) { + return Object.keys(object).sort().reduce((obj, key) => { + obj[key] = object[key]; + return obj; + }, {}); +} + +function merge(hash1, hash2) { + return {...hash1, ...hash2}; +} + +function sign_request(params, options = {}) { + let apiKey = ensureOption(options, 'api_key'); + let apiSecret = ensureOption(options, 'api_secret'); + params = exports.clear_blank(params); + params.signature = exports.api_sign_request(params, apiSecret); + params.api_key = apiKey; + return params; +} + +function webhook_signature(data, timestamp, options = {}) { + ensurePresenceOf({ + data, + timestamp + }); + + let api_secret = ensureOption(options, 'api_secret'); + let signature_algorithm = ensureOption(options, 'signature_algorithm', DEFAULT_SIGNATURE_ALGORITHM); + return compute_hash(data + timestamp + api_secret, signature_algorithm, 'hex'); +} + +/** + * Verifies the authenticity of a notification signature + * + * @param {string} body JSON of the request's body + * @param {number} timestamp Unix timestamp in seconds. Can be retrieved from the X-Cld-Timestamp header + * @param {string} signature Actual signature. Can be retrieved from the X-Cld-Signature header + * @param {number} [valid_for=7200] The desired time in seconds for considering the request valid + * + * @return {boolean} + */ +function verifyNotificationSignature(body, timestamp, signature, valid_for = 7200) { + // verify that signature is valid for the given timestamp + if (timestamp < Math.round(Date.now() / 1000) - valid_for) { + return false; + } + const payload_hash = utils.webhook_signature(body, timestamp, { + api_secret: config().api_secret, + signature_algorithm: config().signature_algorithm + }); + return signature === payload_hash; +} + +function process_request_params(params, options) { + if ((options.unsigned != null) && options.unsigned) { + params = exports.clear_blank(params); + delete params.timestamp; + } else if (options.oauth_token || config().oauth_token) { + params = exports.clear_blank(params); + } else if (options.signature) { + params = exports.clear_blank(options); + } else { + params = exports.sign_request(params, options); + } + + return params; +} + +function private_download_url(public_id, format, options = {}) { + let params = exports.sign_request({ + timestamp: options.timestamp || exports.timestamp(), + public_id: public_id, + format: format, + type: options.type, + attachment: options.attachment, + expires_at: options.expires_at + }, options); + return exports.api_url("download", options) + "?" + querystring.stringify(params); +} + +/** + * Utility method that uses the deprecated ZIP download API. + * @deprecated Replaced by {download_zip_url} that uses the more advanced and robust archive generation and download API + */ + +function zip_download_url(tag, options = {}) { + let params = exports.sign_request({ + timestamp: options.timestamp || exports.timestamp(), + tag: tag, + transformation: utils.generate_transformation_string(options) + }, options); + return exports.api_url("download_tag.zip", options) + "?" + hashToQuery(params); +} + +/** + * The returned url should allow downloading the backedup asset based on the + * version and asset id + * asset and version id are returned with resource(, { versions: true }) + * @param asset_id + * @param version_id + * @param options + * @returns {string } + */ +function download_backedup_asset(asset_id, version_id, options = {}) { + let params = exports.sign_request({ + timestamp: options.timestamp || exports.timestamp(), + asset_id: asset_id, + version_id: version_id + }, options); + return exports.base_api_url(['download_backup'], options) + "?" + hashToQuery(params); +} + +/** + * Utility method to create a signed URL for specified resources. + * @param action + * @param params + * @param options + */ +function api_download_url(action, params, options) { + const download_params = { + ...params, + mode: "download" + } + let cloudinary_params = exports.sign_request(download_params, options); + return exports.api_url(action, options) + "?" + hashToQuery(cloudinary_params); +} + +/** + * Returns a URL that when invokes creates an archive and returns it. + * @param {object} options + * @param {string} [options.resource_type="image"] The resource type of files to include in the archive. + * Must be one of :image | :video | :raw + * @param {string} [options.type="upload"] The specific file type of resources: :upload|:private|:authenticated + * @param {string|Array} [options.tags] list of tags to include in the archive + * @param {string|Array} [options.public_ids] list of public_ids to include in the archive + * @param {string|Array} [options.prefixes] list of prefixes of public IDs (e.g., folders). + * @param {string|Array} [options.fully_qualified_public_ids] list of fully qualified public_ids to include + * in the archive. + * @param {string|Array} [options.transformations] list of transformations. + * The derived images of the given transformations are included in the archive. Using the string representation of + * multiple chained transformations as we use for the 'eager' upload parameter. + * @param {string} [options.mode="create"] return the generated archive file or to store it as a raw resource and + * return a JSON with URLs for accessing the archive. Possible values: :download, :create + * @param {string} [options.target_format="zip"] + * @param {string} [options.target_public_id] public ID of the generated raw resource. + * Relevant only for the create mode. If not specified, random public ID is generated. + * @param {boolean} [options.flatten_folders=false] If true, flatten public IDs with folders to be in the root + * of the archive. Add numeric counter to the file name in case of a name conflict. + * @param {boolean} [options.flatten_transformations=false] If true, and multiple transformations are given, + * flatten the folder structure of derived images and store the transformation details on the file name instead. + * @param {boolean} [options.use_original_filename] Use the original file name of included images + * (if available) instead of the public ID. + * @param {boolean} [options.async=false] If true, return immediately and perform archive creation in the background. + * Relevant only for the create mode. + * @param {string} [options.notification_url] URL to send an HTTP post request (webhook) to when the + * archive creation is completed. + * @param {string|Array} [options.target_tags=] Allows assigning one or more tags to the generated archive file + * (for later housekeeping via the admin API). + * @param {string} [options.keep_derived=false] keep the derived images used for generating the archive + * @return {String} archive url + */ +function download_archive_url(options = {}) { + const params = exports.archive_params(merge(options, { + mode: "download" + })) + return api_download_url("generate_archive", params, options) +} + +/** + * Returns a URL that when invokes creates an zip archive and returns it. + * @see download_archive_url + */ + +function download_zip_url(options = {}) { + return exports.download_archive_url(merge(options, { + target_format: "zip" + })); +} + +/** + * Creates and returns a URL that when invoked creates an archive of a folder + * @param {string} folder_path Full path (from the root) of the folder to download + * @param {object} options Additional options + * @returns {string} Url for downloading an archive of a folder + */ +function download_folder(folder_path, options = {}) { + options.resource_type = options.resource_type || "all"; + options.prefixes = folder_path; + let cloudinary_params = exports.sign_request(exports.archive_params(merge(options, { + mode: "download" + })), options); + return exports.api_url("generate_archive", options) + "?" + hashToQuery(cloudinary_params); +} + +/** + * Render the key/value pair as an HTML tag attribute + * @private + * @param {string} key + * @param {string|boolean|number} [value] + * @return {string} A string representing the HTML attribute + */ +function join_pair(key, value) { + if (!value) { + return void 0; + } + return value === true ? key : key + "='" + value + "'"; +} + +/** + * If the given value is a string, replaces single or double quotes with character entities + * @private + * @param {*} value The string to encode quotes in + * @return {*} Encoded string or original value if not a string + */ +function escapeQuotes(value) { + return isString(value) ? value.replace(/\"/g, '"').replace(/\'/g, ''') : value; +} + +/** + * + * @param attrs + * @return {*} + */ +exports.html_attrs = function html_attrs(attrs) { + return filter(map(attrs, function (value, key) { + return join_pair(key, escapeQuotes(value)); + })).sort().join(" "); +}; + +const CLOUDINARY_JS_CONFIG_PARAMS = ['api_key', 'cloud_name', 'private_cdn', 'secure_distribution', 'cdn_subdomain']; + +function cloudinary_js_config() { + let params = pickOnlyExistingValues(config(), ...CLOUDINARY_JS_CONFIG_PARAMS); + return ``; +} + +function v1_result_adapter(callback) { + if (callback == null) { + return undefined; + } + return function (result) { + if (result.error != null) { + return callback(result.error); + } + return callback(void 0, result); + }; +} + +function v1_adapter(name, num_pass_args, v1) { + return function (...args) { + let pass_args = take(args, num_pass_args); + let options = args[num_pass_args]; + let callback = args[num_pass_args + 1]; + if ((callback == null) && isFunction(options)) { + callback = options; + options = {}; + } + callback = v1_result_adapter(callback); + args = pass_args.concat([callback, options]); + return v1[name].apply(this, args); + }; +} + +function v1_adapters(exports, v1, mapping) { + return Object.keys(mapping).map((name) => { + let num_pass_args = mapping[name]; + exports[name] = v1_adapter(name, num_pass_args, v1); + return exports[name]; + }); +} + +function as_safe_bool(value) { + if (value == null) { + return void 0; + } + if (value === true || value === 'true' || value === '1') { + value = 1; + } + if (value === false || value === 'false' || value === '0') { + value = 0; + } + return value; +} + +const NUMBER_PATTERN = "([0-9]*)\\.([0-9]+)|([0-9]+)"; + +const OFFSET_ANY_PATTERN = `(${NUMBER_PATTERN})([%pP])?`; +const RANGE_VALUE_RE = RegExp(`^${OFFSET_ANY_PATTERN}$`); +const OFFSET_ANY_PATTERN_RE = RegExp(`(${OFFSET_ANY_PATTERN})\\.\\.(${OFFSET_ANY_PATTERN})`); + +// Split a range into the start and end values +function split_range(range) { // :nodoc: + switch (range.constructor) { + case String: + if (!OFFSET_ANY_PATTERN_RE.test(range)) { + return range; + } + return range.split(".."); + case Array: + return [first(range), last(range)]; + default: + return [null, null]; + } +} + +function norm_range_value(value) { // :nodoc: + let offset = String(value).match(RANGE_VALUE_RE); + if (offset) { + let modifier = offset[5] ? 'p' : ''; + value = `${offset[1] || offset[4]}${modifier}`; + } + return value; +} + +/** + * A video codec parameter can be either a String or a Hash. + * @param {Object} param vc_[ : : []] + * or { codec: 'h264', profile: 'basic', level: '3.1' } + * @return {String} : : []] if a Hash was provided + * or the param if a String was provided. + * Returns null if param is not a Hash or String + */ +function process_video_params(param) { + switch (param.constructor) { + case Object: { + let video = ""; + if ('codec' in param) { + video = param.codec; + if ('profile' in param) { + video += ":" + param.profile; + if ('level' in param) { + video += ":" + param.level; + } + } + } + return video; + } + case String: + return param; + default: + return null; + } +} + +/** + * Returns a Hash of parameters used to create an archive + * @private + * @param {object} options + * @return {object} Archive API parameters + */ + +function archive_params(options = {}) { + return { + allow_missing: exports.as_safe_bool(options.allow_missing), + async: exports.as_safe_bool(options.async), + expires_at: options.expires_at, + flatten_folders: exports.as_safe_bool(options.flatten_folders), + flatten_transformations: exports.as_safe_bool(options.flatten_transformations), + keep_derived: exports.as_safe_bool(options.keep_derived), + mode: options.mode, + notification_url: options.notification_url, + prefixes: options.prefixes && toArray(options.prefixes), + fully_qualified_public_ids: options.fully_qualified_public_ids && toArray(options.fully_qualified_public_ids), + public_ids: options.public_ids && toArray(options.public_ids), + skip_transformation_name: exports.as_safe_bool(options.skip_transformation_name), + tags: options.tags && toArray(options.tags), + target_format: options.target_format, + target_public_id: options.target_public_id, + target_tags: options.target_tags && toArray(options.target_tags), + timestamp: options.timestamp || exports.timestamp(), + transformations: utils.build_eager(options.transformations), + type: options.type, + use_original_filename: exports.as_safe_bool(options.use_original_filename) + }; +} + +exports.process_layer = process_layer; + +exports.create_source_tag = function create_source_tag(src, source_type, codecs = null) { + let video_type = source_type === 'ogv' ? 'ogg' : source_type; + let mime_type = `video/${video_type}`; + if (!isEmpty(codecs)) { + let codecs_str = isArray(codecs) ? codecs.join(', ') : codecs; + mime_type += `; codecs=${codecs_str}`; + } + return ``; +}; + +function build_explicit_api_params(public_id, options = {}) { + return [exports.build_upload_params(extend({}, {public_id}, options))]; +} + +function generate_responsive_breakpoints_string(breakpoints) { + if (breakpoints == null) { + return null; + } + breakpoints = clone(breakpoints); + if (!isArray(breakpoints)) { + breakpoints = [breakpoints]; + } + for (let j = 0; j < breakpoints.length; j++) { + let breakpoint_settings = breakpoints[j]; + if (breakpoint_settings != null) { + if (breakpoint_settings.transformation) { + breakpoint_settings.transformation = utils.generate_transformation_string( + clone(breakpoint_settings.transformation) + ); + } + } + } + return JSON.stringify(breakpoints); +} + +function build_streaming_profiles_param(options = {}) { + let params = pickOnlyExistingValues(options, "display_name", "representations"); + if (isArray(params.representations)) { + params.representations = JSON.stringify(params.representations.map( + r => ({ + transformation: utils.generate_transformation_string(r.transformation) + }) + )); + } + return params; +} + +function hashToParameters(hash) { + return entries(hash).reduce((parameters, [key, value]) => { + if (isArray(value)) { + key = key.endsWith('[]') ? key : key + '[]'; + const items = value.map(v => [key, v]); + parameters = parameters.concat(items); + } else { + parameters.push([key, value]); + } + return parameters; + }, []); +} + +/** + * Convert a hash of values to a URI query string. + * Array values are spread as individual parameters. + * @param {object} hash Key-value parameters + * @return {string} A URI query string. + */ +function hashToQuery(hash) { + return hashToParameters(hash).map( + ([key, value]) => `${querystring.escape(key)}=${querystring.escape(value)}` + ).join('&'); +} + +/** + * Verify that the parameter `value` is defined and it's string value is not zero. + *
This function should not be confused with `isEmpty()`. + * @private + * @param {string|number} value The value to check. + * @return {boolean} True if the value is defined and not empty. + */ + +function present(value) { + return value != null && ("" + value).length > 0; +} + +/** + * Returns a new object with key values from source based on the keys. + * `null` or `undefined` values are not copied. + * @private + * @param {object} source The object to pick values from. + * @param {...string} keys One or more keys to copy from source. + * @return {object} A new object with the required keys and values. + */ + +function pickOnlyExistingValues(source, ...keys) { + let result = {}; + if (source) { + keys.forEach((key) => { + if (source[key] != null) { + result[key] = source[key]; + } + }); + } + return result; +} + +/** + * Returns a JSON array as String. + * Yields the array before it is converted to JSON format + * @private + * @param {object|String|Array} data + * @param {function(*):*} [modifier] called with the array before the array is stringified + * @return {String|null} a JSON array string or `null` if data is `null` + */ + +function jsonArrayParam(data, modifier) { + if (!data) { + return null; + } + if (isString(data)) { + data = JSON.parse(data); + } + if (!isArray(data)) { + data = [data]; + } + if (isFunction(modifier)) { + data = modifier(data); + } + return JSON.stringify(data); +} + +/** + * Empty function - do nothing + * + */ +exports.NOP = function () { +}; +exports.generate_auth_token = generate_auth_token; +exports.getUserAgent = getUserAgent; +exports.build_upload_params = build_upload_params; +exports.build_multi_and_sprite_params = build_multi_and_sprite_params; +exports.api_download_url = api_download_url; +exports.timestamp = () => Math.floor(new Date().getTime() / 1000); +exports.option_consume = consumeOption; // for backwards compatibility +exports.build_array = toArray; // for backwards compatibility +exports.encode_double_array = encodeDoubleArray; +exports.encode_key_value = encode_key_value; +exports.encode_context = encode_context; +exports.build_eager = build_eager; +exports.build_custom_headers = build_custom_headers; +exports.generate_transformation_string = generate_transformation_string; +exports.updateable_resource_params = updateable_resource_params; +exports.extractUrlParams = extractUrlParams; +exports.extractTransformationParams = extractTransformationParams; +exports.patchFetchFormat = patchFetchFormat; +exports.url = url; +exports.video_url = video_url; +exports.video_thumbnail_url = video_thumbnail_url; +exports.api_url = api_url; +exports.random_public_id = random_public_id; +exports.signed_preloaded_image = signed_preloaded_image; +exports.api_sign_request = api_sign_request; +exports.clear_blank = clear_blank; +exports.merge = merge; +exports.sign_request = sign_request; +exports.webhook_signature = webhook_signature; +exports.verifyNotificationSignature = verifyNotificationSignature; +exports.process_request_params = process_request_params; +exports.private_download_url = private_download_url; +exports.zip_download_url = zip_download_url; +exports.download_archive_url = download_archive_url; +exports.download_zip_url = download_zip_url; +exports.cloudinary_js_config = cloudinary_js_config; +exports.v1_adapters = v1_adapters; +exports.as_safe_bool = as_safe_bool; +exports.archive_params = archive_params; +exports.build_explicit_api_params = build_explicit_api_params; +exports.generate_responsive_breakpoints_string = generate_responsive_breakpoints_string; +exports.build_streaming_profiles_param = build_streaming_profiles_param; +exports.hashToParameters = hashToParameters; +exports.present = present; +exports.only = pickOnlyExistingValues; // for backwards compatibility +exports.pickOnlyExistingValues = pickOnlyExistingValues; +exports.jsonArrayParam = jsonArrayParam; +exports.download_folder = download_folder; +exports.base_api_url = base_api_url; +exports.download_backedup_asset = download_backedup_asset; +exports.compute_hash = compute_hash; +exports.build_distribution_domain = build_distribution_domain; +exports.sort_object_by_key = sort_object_by_key; + +// was exported before, so kept for backwards compatibility +exports.DEFAULT_POSTER_OPTIONS = DEFAULT_POSTER_OPTIONS; +exports.DEFAULT_VIDEO_SOURCE_TYPES = DEFAULT_VIDEO_SOURCE_TYPES; + +Object.assign(module.exports, { + normalize_expression, + at, + clone, + extend, + filter, + includes, + isArray, + isEmpty, + isNumber, + isObject, + isRemoteUrl, + isString, + isUndefined, + keys: source => Object.keys(source), + ensurePresenceOf +}); diff --git a/node_modules/cloudinary/lib/utils/isRemoteUrl.js b/node_modules/cloudinary/lib/utils/isRemoteUrl.js new file mode 100644 index 0000000..eadcce7 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/isRemoteUrl.js @@ -0,0 +1,14 @@ +const isString = require('lodash/isString'); + +/** + * Checks whether a given url or path is a local file + * @param {string} url the url or path to the file + * @returns {boolean} true if the given url is a remote location or data + */ +function isRemoteUrl(url) { + const SUBSTRING_LENGTH = 120; + const urlSubstring = isString(url) && url.substring(0, SUBSTRING_LENGTH); + return isString(url) && /^ftp:|^https?:|^gs:|^s3:|^data:([\w-.]+\/[\w-.]+(\+[\w-.]+)?)?(;[\w-.]+=[\w-.]+)*;base64,([a-zA-Z0-9\/+\n=]+)$/.test(urlSubstring); +} + +module.exports = isRemoteUrl; diff --git a/node_modules/cloudinary/lib/utils/parsing/consumeOption.js b/node_modules/cloudinary/lib/utils/parsing/consumeOption.js new file mode 100644 index 0000000..6bc8993 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/parsing/consumeOption.js @@ -0,0 +1,15 @@ +/** + * Deletes `option_name` from `options` and return the value if present. + * If `options` doesn't contain `option_name` the default value is returned. + * @param {Object} options a collection + * @param {String} option_name the name (key) of the desired value + * @param {*} [default_value] the value to return is option_name is missing + */ + +function consumeOption(options, option_name, default_value) { + let result = options[option_name]; + delete options[option_name]; + return result != null ? result : default_value; +} + +module.exports = consumeOption; diff --git a/node_modules/cloudinary/lib/utils/parsing/toArray.js b/node_modules/cloudinary/lib/utils/parsing/toArray.js new file mode 100644 index 0000000..0c40632 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/parsing/toArray.js @@ -0,0 +1,19 @@ +const isArray = require('lodash/isArray'); + +/** + * @desc Turns arguments that aren't arrays into arrays + * @param arg + * @returns { any | any[] } + */ +function toArray(arg) { + switch (true) { + case arg == null: + return []; + case isArray(arg): + return arg; + default: + return [arg]; + } +} + +module.exports = toArray; diff --git a/node_modules/cloudinary/lib/utils/rimraf.js b/node_modules/cloudinary/lib/utils/rimraf.js new file mode 100644 index 0000000..27e5a61 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/rimraf.js @@ -0,0 +1,23 @@ +const fs = require('fs'); +const path = require('path'); + +/** + * Remove directory recursively + * @param {string} dir_path + * @see https://stackoverflow.com/a/42505874/3027390 + */ +function rimraf(dir_path) { + if (fs.existsSync(dir_path)) { + fs.readdirSync(dir_path).forEach(function (entry) { + let entry_path = path.join(dir_path, entry); + if (fs.lstatSync(entry_path).isDirectory()) { + rimraf(entry_path); + } else { + fs.unlinkSync(entry_path); + } + }); + fs.rmdirSync(dir_path); + } +} + +module.exports = rimraf; diff --git a/node_modules/cloudinary/lib/utils/srcsetUtils.js b/node_modules/cloudinary/lib/utils/srcsetUtils.js new file mode 100644 index 0000000..2d55ac5 --- /dev/null +++ b/node_modules/cloudinary/lib/utils/srcsetUtils.js @@ -0,0 +1,156 @@ + +const utils = require('./index'); +const generateBreakpoints = require('./generateBreakpoints'); +const Cache = require('../cache'); + +const isEmpty = utils.isEmpty; + +/** + * Options used to generate the srcset attribute. + * @typedef {object} srcset + * @property {(number[]|string[])} [breakpoints] An array of breakpoints. + * @property {number} [min_width] Minimal width of the srcset images. + * @property {number} [max_width] Maximal width of the srcset images. + * @property {number} [max_images] Number of srcset images to generate. + * @property {object|string} [transformation] The transformation to use in the srcset urls. + * @property {boolean} [sizes] Whether to calculate and add the sizes attribute. + */ + +/** + * Helper function. Generates a single srcset item url + * + * @private + * @param {string} public_id Public ID of the resource. + * @param {number} width Width in pixels of the srcset item. + * @param {object|string} transformation + * @param {object} options Additional options. + * + * @return {string} Resulting URL of the item + */ +function scaledUrl(public_id, width, transformation, options = {}) { + let configParams = utils.extractUrlParams(options); + transformation = transformation || options; + configParams.raw_transformation = utils.generate_transformation_string([utils.extend({}, transformation), { crop: 'scale', width: width }]); + + return utils.url(public_id, configParams); +} + +/** + * If cache is enabled, get the breakpoints from the cache. If the values were not found in the cache, + * or cache is not enabled, generate the values. + * @param {srcset} srcset The srcset configuration parameters + * @param {string} public_id + * @param {object} options + * @return {*|Array} + */ +function getOrGenerateBreakpoints(public_id, srcset = {}, options = {}) { + let breakpoints = []; + if (srcset.useCache) { + breakpoints = Cache.get(public_id, options); + if (!breakpoints) { + breakpoints = []; + } + } else { + breakpoints = generateBreakpoints(srcset); + } + return breakpoints; +} + +/** + * Helper function. Generates srcset attribute value of the HTML img tag + * @private + * + * @param {string} public_id Public ID of the resource + * @param {number[]} breakpoints An array of breakpoints (in pixels) + * @param {object} transformation The transformation + * @param {object} options Includes html tag options, transformation options + * @return {string} Resulting srcset attribute value + */ +function generateSrcsetAttribute(public_id, breakpoints, transformation, options) { + options = utils.clone(options); + utils.patchFetchFormat(options); + return breakpoints.map(width => `${scaledUrl(public_id, width, transformation, options)} ${width}w`).join(', '); +} + +/** + * Helper function. Generates sizes attribute value of the HTML img tag + * @private + * @param {number[]} breakpoints An array of breakpoints. + * @return {string} Resulting sizes attribute value + */ +function generateSizesAttribute(breakpoints = []) { + return breakpoints.map(width => `(max-width: ${width}px) ${width}px`).join(', '); +} + +/** + * Helper function. Generates srcset and sizes attributes of the image tag + * + * Generated attributes are added to attributes argument + * + * @private + * @param {string} publicId The public ID of the resource + * @param {object} attributes Existing HTML attributes. + * @param {srcset} srcsetData + * @param {object} options Additional options. + * + * @return array The responsive attributes + */ +function generateImageResponsiveAttributes(publicId, attributes = {}, srcsetData = {}, options = {}) { + // Create both srcset and sizes here to avoid fetching breakpoints twice + + let responsiveAttributes = {}; + if (isEmpty(srcsetData)) { + return responsiveAttributes; + } + + const generateSizes = (!attributes.sizes && srcsetData.sizes === true); + + const generateSrcset = !attributes.srcset; + if (generateSrcset || generateSizes) { + let breakpoints = getOrGenerateBreakpoints(publicId, srcsetData, options); + + if (generateSrcset) { + let transformation = srcsetData.transformation; + let srcsetAttr = generateSrcsetAttribute(publicId, breakpoints, transformation, options); + if (!isEmpty(srcsetAttr)) { + responsiveAttributes.srcset = srcsetAttr; + } + } + + if (generateSizes) { + let sizesAttr = generateSizesAttribute(breakpoints); + if (!isEmpty(sizesAttr)) { + responsiveAttributes.sizes = sizesAttr; + } + } + } + return responsiveAttributes; +} + +/** + * Generate a media query + * + * @private + * @param {object} options configuration options + * @param {number|string} options.min_width + * @param {number|string} options.max_width + * @return {string} a media query string + */ +function generateMediaAttr(options = {}) { + let mediaQuery = []; + if (options.min_width != null) { + mediaQuery.push(`(min-width: ${options.min_width}px)`); + } + if (options.max_width != null) { + mediaQuery.push(`(max-width: ${options.max_width}px)`); + } + return mediaQuery.join(' and '); +} + +module.exports = { + srcsetUrl: scaledUrl, + generateSrcsetAttribute, + generateSizesAttribute, + generateMediaAttr, + generateImageResponsiveAttributes +}; diff --git a/node_modules/cloudinary/lib/utils/utf8_encode.js b/node_modules/cloudinary/lib/utils/utf8_encode.js new file mode 100644 index 0000000..4ab7a6f --- /dev/null +++ b/node_modules/cloudinary/lib/utils/utf8_encode.js @@ -0,0 +1,57 @@ +/* eslint-disable no-bitwise */ +// http://kevin.vanzonneveld.net +// + original by: Webtoolkit.info (http://www.webtoolkit.info/) +// + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) +// + improved by: sowberry +// + tweaked by: Jack +// + bugfixed by: Onno Marsman +// + improved by: Yves Sucaet +// + bugfixed by: Onno Marsman +// + bugfixed by: Ulrich +// + bugfixed by: Rafal Kukawski +// + improved by: kirilloid +// * example 1: utf8_encode('Kevin van Zonneveld') +// * returns 1: 'Kevin van Zonneveld' + +/** + * Encode the given string + * @private + * @param {string} argString the string to encode + * @return {string} + */ +module.exports = function utf8_encode(argString) { + let c1, enc, n; + if (argString == null) { + return ""; + } + let string = argString + ""; + let utftext = ""; + let start = 0; + let end = 0; + let stringl = string.length; + n = 0; + while (n < stringl) { + c1 = string.charCodeAt(n); + enc = null; + if (c1 < 128) { + end++; + } else if (c1 > 127 && c1 < 2048) { + enc = String.fromCharCode((c1 >> 6) | 192, (c1 & 63) | 128); + } else { + enc = String.fromCharCode((c1 >> 12) | 224, ((c1 >> 6) & 63) | 128, (c1 & 63) | 128); + } + if (enc !== null) { + if (end > start) { + utftext += string.slice(start, end); + } + utftext += enc; + start = n + 1; + end = start; + } + n++; + } + if (end > start) { + utftext += string.slice(start, stringl); + } + return utftext; +}; diff --git a/node_modules/cloudinary/lib/v2/api.js b/node_modules/cloudinary/lib/v2/api.js new file mode 100644 index 0000000..b6b0818 --- /dev/null +++ b/node_modules/cloudinary/lib/v2/api.js @@ -0,0 +1,77 @@ +const api = require('../api'); +const v1_adapters = require('../utils').v1_adapters; + +v1_adapters(exports, api, { + ping: 0, + usage: 0, + resource_types: 0, + resources: 0, + resources_by_tag: 1, + resources_by_context: 2, + resources_by_moderation: 2, + resource_by_asset_id: 1, + resources_by_asset_ids: 1, + resources_by_ids: 1, + resources_by_asset_folder: 1, + resource: 1, + restore: 1, + update: 1, + delete_resources: 1, + delete_resources_by_prefix: 1, + delete_resources_by_tag: 1, + delete_all_resources: 0, + delete_derived_resources: 1, + tags: 0, + transformations: 0, + transformation: 1, + delete_transformation: 1, + update_transformation: 2, + create_transformation: 2, + upload_presets: 0, + upload_preset: 1, + delete_upload_preset: 1, + update_upload_preset: 1, + create_upload_preset: 0, + root_folders: 0, + sub_folders: 1, + delete_folder: 1, + create_folder: 1, + upload_mappings: 0, + upload_mapping: 1, + delete_upload_mapping: 1, + update_upload_mapping: 1, + create_upload_mapping: 1, + list_streaming_profiles: 0, + get_streaming_profile: 1, + delete_streaming_profile: 1, + update_streaming_profile: 1, + create_streaming_profile: 1, + publish_by_ids: 1, + publish_by_tag: 1, + publish_by_prefix: 1, + update_resources_access_mode_by_prefix: 2, + update_resources_access_mode_by_tag: 2, + update_resources_access_mode_by_ids: 2, + search: 1, + search_folders: 1, + visual_search: 1, + delete_derived_by_transformation: 2, + add_metadata_field: 1, + list_metadata_fields: 1, + delete_metadata_field: 1, + metadata_field_by_field_id: 1, + update_metadata_field: 2, + update_metadata_field_datasource: 2, + delete_datasource_entries: 2, + restore_metadata_field_datasource: 2, + order_metadata_field_datasource: 3, + reorder_metadata_fields: 2, + list_metadata_rules: 1, + add_metadata_rule: 1, + delete_metadata_rule: 1, + update_metadata_rule: 2, + add_related_assets: 2, + add_related_assets_by_asset_id: 2, + delete_related_assets: 2, + delete_related_assets_by_asset_id: 2 +}); diff --git a/node_modules/cloudinary/lib/v2/index.js b/node_modules/cloudinary/lib/v2/index.js new file mode 100644 index 0000000..1dcb49f --- /dev/null +++ b/node_modules/cloudinary/lib/v2/index.js @@ -0,0 +1,14 @@ +const v1 = require('../cloudinary'); +const api = require('./api'); +const uploader = require('./uploader'); +const search = require('./search'); +const search_folders = require('./search_folders'); + +const v2 = { + ...v1, + api, + uploader, + search, + search_folders +}; +module.exports = v2; diff --git a/node_modules/cloudinary/lib/v2/search.js b/node_modules/cloudinary/lib/v2/search.js new file mode 100644 index 0000000..87b1ae5 --- /dev/null +++ b/node_modules/cloudinary/lib/v2/search.js @@ -0,0 +1,164 @@ +const api = require('./api'); +const config = require('../config'); +const { + isEmpty, + isNumber, + compute_hash, + build_distribution_domain, + clear_blank, + sort_object_by_key +} = require('../utils'); +const {base64Encode} = require('../utils/encoding/base64Encode'); + +const Search = class Search { + constructor() { + this.query_hash = { + sort_by: [], + aggregate: [], + with_field: [] + }; + this._ttl = 300; + } + + static instance() { + return new Search(); + } + + static expression(value) { + return this.instance().expression(value); + } + + static max_results(value) { + return this.instance().max_results(value); + } + + static next_cursor(value) { + return this.instance().next_cursor(value); + } + + static aggregate(value) { + return this.instance().aggregate(value); + } + + static with_field(value) { + return this.instance().with_field(value); + } + + static sort_by(field_name, dir = 'asc') { + return this.instance().sort_by(field_name, dir); + } + + static ttl(newTtl) { + return this.instance().ttl(newTtl); + } + + expression(value) { + this.query_hash.expression = value; + return this; + } + + max_results(value) { + this.query_hash.max_results = value; + return this; + } + + next_cursor(value) { + this.query_hash.next_cursor = value; + return this; + } + + aggregate(value) { + const found = this.query_hash.aggregate.find(v => v === value); + + if (!found) { + this.query_hash.aggregate.push(value); + } + + return this; + } + + with_field(value) { + const found = this.query_hash.with_field.find(v => v === value); + + if (!found) { + this.query_hash.with_field.push(value); + } + + return this; + } + + sort_by(field_name, dir = "desc") { + let sort_bucket; + sort_bucket = {}; + sort_bucket[field_name] = dir; + + // Check if this field name is already stored in the hash + const previously_sorted_obj = this.query_hash.sort_by.find((sort_by) => sort_by[field_name]); + + // Since objects are references in Javascript, we can update the reference we found + // For example, + if (previously_sorted_obj) { + previously_sorted_obj[field_name] = dir; + } else { + this.query_hash.sort_by.push(sort_bucket); + } + + return this; + } + + ttl(newTtl) { + if (isNumber(newTtl)) { + this._ttl = newTtl; + return this; + } + + throw new Error('New TTL value has to be a Number.'); + } + + to_query() { + Object.keys(this.query_hash).forEach((k) => { + let v = this.query_hash[k]; + if (!isNumber(v) && isEmpty(v)) { + delete this.query_hash[k]; + } + }); + return this.query_hash; + } + + execute(options, callback) { + if (callback === null) { + callback = options; + } + options = options || {}; + return api.search(this.to_query(), options, callback); + } + + to_url(ttl, next_cursor, options = {}) { + const apiSecret = 'api_secret' in options ? options.api_secret : config().api_secret; + if (!apiSecret) { + throw new Error('Must supply api_secret'); + } + + const urlTtl = ttl || this._ttl; + + const query = this.to_query(); + + let urlCursor = next_cursor; + if (query.next_cursor && !next_cursor) { + urlCursor = query.next_cursor; + } + delete query.next_cursor; + + const dataOrderedByKey = sort_object_by_key(clear_blank(query)); + const encodedQuery = base64Encode(JSON.stringify(dataOrderedByKey)); + + const urlPrefix = build_distribution_domain(options.source, options); + + const signature = compute_hash(`${urlTtl}${encodedQuery}${apiSecret}`, 'sha256', 'hex'); + + const urlWithoutCursor = `${urlPrefix}/search/${signature}/${urlTtl}/${encodedQuery}`; + return urlCursor ? `${urlWithoutCursor}/${urlCursor}` : urlWithoutCursor; + } +}; + +module.exports = Search; diff --git a/node_modules/cloudinary/lib/v2/search_folders.js b/node_modules/cloudinary/lib/v2/search_folders.js new file mode 100644 index 0000000..9221b14 --- /dev/null +++ b/node_modules/cloudinary/lib/v2/search_folders.js @@ -0,0 +1,22 @@ +const Search = require('./search'); +const api = require('./api'); + +const SearchFolders = class SearchFolders extends Search { + constructor() { + super(); + } + + static instance() { + return new SearchFolders(); + } + + execute(options, callback) { + if (callback === null) { + callback = options; + } + options = options || {}; + return api.search_folders(this.to_query(), options, callback); + } +}; + +module.exports = SearchFolders; diff --git a/node_modules/cloudinary/lib/v2/uploader.js b/node_modules/cloudinary/lib/v2/uploader.js new file mode 100644 index 0000000..5c1bd6d --- /dev/null +++ b/node_modules/cloudinary/lib/v2/uploader.js @@ -0,0 +1,38 @@ +const uploader = require('../uploader'); +const v1_adapters = require('../utils').v1_adapters; + +v1_adapters(exports, uploader, { + unsigned_upload_stream: 1, + upload_stream: 0, + unsigned_upload: 2, + upload: 1, + upload_large_part: 0, + upload_large: 1, + upload_chunked: 1, + upload_chunked_stream: 0, + explicit: 1, + destroy: 1, + rename: 2, + text: 1, + generate_sprite: 1, + multi: 1, + explode: 1, + add_tag: 2, + remove_tag: 2, + remove_all_tags: 1, + add_context: 2, + remove_all_context: 1, + replace_tag: 2, + create_archive: 0, + create_zip: 0, + update_metadata: 2 +}); + +exports.direct_upload = uploader.direct_upload; +exports.upload_tag_params = uploader.upload_tag_params; +exports.upload_url = uploader.upload_url; +exports.image_upload_tag = uploader.image_upload_tag; +exports.unsigned_image_upload_tag = uploader.unsigned_image_upload_tag; +exports.create_slideshow = uploader.create_slideshow; +exports.download_generated_sprite = uploader.download_generated_sprite; +exports.download_multi = uploader.download_multi; diff --git a/node_modules/cloudinary/package.json b/node_modules/cloudinary/package.json new file mode 100644 index 0000000..32de7d4 --- /dev/null +++ b/node_modules/cloudinary/package.json @@ -0,0 +1,74 @@ +{ + "author": "Cloudinary ", + "name": "cloudinary", + "description": "Cloudinary NPM for node.js integration", + "version": "1.41.3", + "homepage": "http://cloudinary.com", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/cloudinary/cloudinary_npm.git" + }, + "main": "cloudinary.js", + "dependencies": { + "cloudinary-core": "^2.13.0", + "core-js": "^3.30.1", + "lodash": "^4.17.21", + "q": "^1.5.1" + }, + "devDependencies": { + "@types/mocha": "^7.0.2", + "@types/node": "^13.5.0", + "@types/expect.js": "^0.3.29", + "babel-cli": "^6.26.0", + "babel-core": "^6.26.3", + "babel-plugin-transform-runtime": "^6.23.0", + "babel-polyfill": "^6.26.0", + "babel-preset-env": "^1.7.0", + "babel-preset-stage-0": "^6.24.1", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "date-fns": "^2.16.1", + "dotenv": "4.x", + "dtslint": "^0.9.1", + "eslint": "^6.8.0", + "eslint-config-airbnb-base": "^14.2.1", + "eslint-plugin-import": "^2.20.2", + "expect.js": "0.3.x", + "glob": "^7.1.6", + "jsdoc": "^3.5.5", + "jsdom": "^9.12.0", + "jsdom-global": "2.1.1", + "mocha": "^6.2.3", + "mock-fs": "^4.12.0", + "nyc": "^13.3.0", + "rimraf": "^3.0.0", + "sinon": "^6.1.4", + "typescript": "^3.7.5", + "webpack-cli": "^3.2.1" + }, + "files": [ + "lib/**/*", + "lib-es5/**/*", + "cloudinary.js", + "babel.config.js", + "package.json", + "types/index.d.ts" + ], + "types": "types", + "scripts": { + "test": "tools/scripts/test.sh", + "test:unit": "tools/scripts/test.es6.unit.sh", + "test-with-temp-cloud": "tools/scripts/tests-with-temp-cloud.sh", + "dtslint": "tools/scripts/ditslint.sh", + "lint": "tools/scripts/lint.sh", + "compile": "tools/scripts/compile.sh", + "coverage": "tools/scripts/test.es6.sh --coverage", + "test-es6": "tools/scripts/test.es6.sh", + "test-es5": "tools/scripts/test.es5.sh", + "docs": "tools/scripts/docs.sh" + }, + "engines": { + "node": ">=0.6" + } +} diff --git a/node_modules/cloudinary/types/index.d.ts b/node_modules/cloudinary/types/index.d.ts new file mode 100644 index 0000000..0c05329 --- /dev/null +++ b/node_modules/cloudinary/types/index.d.ts @@ -0,0 +1,1435 @@ +import {Transform} from 'stream'; + + +declare module 'cloudinary' { + + /****************************** Constants *************************************/ + /****************************** Transformations *******************************/ + type CropMode = + | (string & {}) + | "scale" + | "fit" + | "limit" + | "mfit" + | "fill" + | "lfill" + | "pad" + | "lpad" + | "mpad" + | "crop" + | "thumb" + | "imagga_crop" + | "imagga_scale"; + type Gravity = + | (string & {}) + | "north_west" + | "north" + | "north_east" + | "west" + | "center" + | "east" + | "south_west" + | "south" + | "south_east" + | "xy_center" + | "face" + | "face:center" + | "face:auto" + | "faces" + | "faces:center" + | "faces:auto" + | "body" + | "body:face" + | "adv_face" + | "adv_faces" + | "adv_eyes" + | "custom" + | "custom:face" + | "custom:faces" + | "custom:adv_face" + | "custom:adv_faces" + | "auto" + | "auto:adv_face" + | "auto:adv_faces" + | "auto:adv_eyes" + | "auto:body" + | "auto:face" + | "auto:faces" + | "auto:custom_no_override" + | "auto:none" + | "liquid" + | "ocr_text"; + type Angle = + number + | (string & {}) + | Array + | "auto_right" + | "auto_left" + | "ignore" + | "vflip" + | "hflip"; + type ImageEffect = + | (string & {}) + | "hue" + | "red" + | "green" + | "blue" + | "negate" + | "brightness" + | "auto_brightness" + | "brightness_hsb" + | "sepia" + | "grayscale" + | "blackwhite" + | "saturation" + | "colorize" + | "replace_color" + | "simulate_colorblind" + | "assist_colorblind" + | "recolor" + | "tint" + | "contrast" + | "auto_contrast" + | "auto_color" + | "vibrance" + | "noise" + | "ordered_dither" + | "pixelate_faces" + | "pixelate_region" + | "pixelate" + | "unsharp_mask" + | "sharpen" + | "blur_faces" + | "blur_region" + | "blur" + | "tilt_shift" + | "gradient_fade" + | "vignette" + | "anti_removal" + | "overlay" + | "mask" + | "multiply" + | "displace" + | "shear" + | "distort" + | "trim" + | "make_transparent" + | "shadow" + | "viesus_correct" + | "fill_light" + | "gamma" + | "improve"; + + type VideoEffect = + (string & {}) + | "accelerate" + | "reverse" + | "boomerang" + | "loop" + | "make_transparent" + | "transition"; + type AudioCodec = (string & {}) | "none" | "aac" | "vorbis" | "mp3"; + type AudioFrequency = + string + | (number & {}) + | 8000 + | 11025 + | 16000 + | 22050 + | 32000 + | 37800 + | 44056 + | 44100 + | 47250 + | 48000 + | 88200 + | 96000 + | 176400 + | 192000; + /****************************** Flags *************************************/ + type ImageFlags = + | (string & {}) + | Array + | "any_format" + | "attachment" + | "apng" + | "awebp" + | "clip" + | "clip_evenodd" + | "cutter" + | "force_strip" + | "getinfo" + | "ignore_aspect_ratio" + | "immutable_cache" + | "keep_attribution" + | "keep_iptc" + | "layer_apply" + | "lossy" + | "preserve_transparency" + | "png8" + | "png32" + | "progressive" + | "rasterize" + | "region_relative" + | "relative" + | "replace_image" + | "sanitize" + | "strip_profile" + | "text_no_trim" + | "no_overflow" + | "text_disallow_overflow" + | "tiff8_lzw" + | "tiled"; + type VideoFlags = + | (string & {}) + | Array + | "animated" + | "awebp" + | "attachment" + | "streaming_attachment" + | "hlsv3" + | "keep_dar" + | "splice" + | "layer_apply" + | "no_stream" + | "mono" + | "relative" + | "truncate_ts" + | "waveform"; + type ColorSpace = (string & {}) | "srgb" | "no_cmyk" | "keep_cmyk"; + type DeliveryType = + | (string & {}) + | "upload" + | "private" + | "authenticated" + | "fetch" + | "multi" + | "text" + | "asset" + | "list" + | "facebook" + | "twitter" + | "twitter_name" + | "instagram" + | "gravatar" + | "youtube" + | "hulu" + | "vimeo" + | "animoto" + | "worldstarhiphop" + | "dailymotion"; + /****************************** URL *************************************/ + type ResourceType = (string & {}) | "image" | "raw" | "video"; + type ImageFormat = + | (string & {}) + | "gif" + | "png" + | "jpg" + | "bmp" + | "ico" + | "pdf" + | "tiff" + | "eps" + | "jpc" + | "jp2" + | "psd" + | "webp" + | "zip" + | "svg" + | "webm" + | "wdp" + | "hpx" + | "djvu" + | "ai" + | "flif" + | "bpg" + | "miff" + | "tga" + | "heic" + type VideoFormat = + | (string & {}) + | "auto" + | "flv" + | "m3u8" + | "ts" + | "mov" + | "mkv" + | "mp4" + | "mpd" + | "ogv" + | "webm" + + export interface CommonTransformationOptions { + transformation?: TransformationOptions; + raw_transformation?: string; + crop?: CropMode; + width?: number | string; + height?: number | string; + size?: string; + aspect_ratio?: number | string; + gravity?: Gravity; + x?: number | string; + y?: number | string; + zoom?: number | string; + effect?: string | Array; + background?: string; + angle?: Angle; + radius?: number | string; + overlay?: string | object; //might be Record + custom_function?: string | { function_type: (string & {}) | "wasm" | "remote", source: string } + variables?: Array; //might be Record + if?: string; + else?: string; + end_if?: string; + dpr?: number | string; + quality?: number | string; + delay?: number | string; + + [futureKey: string]: any; + } + + export interface ImageTransformationOptions extends CommonTransformationOptions { + underlay?: string | Object; //might be Record + color?: string; + color_space?: ColorSpace; + opacity?: number | string; + border?: string; + default_image?: string; + density?: number | string; + format?: ImageFormat; + fetch_format?: ImageFormat; + effect?: string | Array | ImageEffect; + page?: number | string; + flags?: ImageFlags | string; + + [futureKey: string]: any; + } + + interface VideoTransformationOptions extends CommonTransformationOptions { + audio_codec?: AudioCodec; + audio_frequency?: AudioFrequency; + video_codec?: string | Object; //might be Record + bit_rate?: number | string; + fps?: string | Array; + keyframe_interval?: string; + offset?: string, + start_offset?: number | string; + end_offset?: number | string; + duration?: number | string; + streaming_profile?: StreamingProfiles + video_sampling?: number | string; + format?: VideoFormat; + fetch_format?: VideoFormat; + effect?: string | Array | VideoEffect; + flags?: VideoFlags; + + [futureKey: string]: any; + } + + interface TextStyleOptions { + text_style?: string; + font_family?: string; + font_size?: number; + font_color?: string; + font_weight?: string; + font_style?: string; + background?: string; + opacity?: number; + text_decoration?: string + } + + interface ConfigOptions { + cloud_name?: string; + api_key?: string; + api_secret?: string; + api_proxy?: string; + private_cdn?: boolean; + secure_distribution?: string; + force_version?: boolean; + ssl_detected?: boolean; + secure?: boolean; + cdn_subdomain?: boolean; + secure_cdn_subdomain?: boolean; + cname?: string; + shorten?: boolean; + sign_url?: boolean; + long_url_signature?: boolean; + use_root_path?: boolean; + auth_token?: AuthTokenApiOptions; + account_id?: string; + provisioning_api_key?: string; + provisioning_api_secret?: string; + oauth_token?: string; + + [futureKey: string]: any; + } + + export interface ResourceOptions { + type?: string; + resource_type?: string; + } + + export interface UrlOptions extends ResourceOptions { + version?: string; + format?: string; + url_suffix?: string; + + [futureKey: string]: any; + } + + export interface ImageTagOptions { + html_height?: string; + html_width?: string; + srcset?: object; //might be Record + attributes?: object; //might be Record + client_hints?: boolean; + responsive?: boolean; + hidpi?: boolean; + responsive_placeholder?: boolean; + + [futureKey: string]: any; + } + + export interface VideoTagOptions { + source_types?: string | string[]; + source_transformation?: TransformationOptions; + fallback_content?: string; + poster?: string | object; //might be Record + controls?: boolean; + preload?: string; + + [futureKey: string]: any; + } + + /****************************** Admin API Options *************************************/ + export interface AdminApiOptions { + agent?: object; //might be Record + content_type?: string; + oauth_token?: string; + + [futureKey: string]: any; + } + + export type VisualSearchParams = { image_url: string } | { image_asset_id: string } | { text: string }; + + export interface ArchiveApiOptions { + allow_missing?: boolean; + async?: boolean; + expires_at?: number; + flatten_folders?: boolean; + flatten_transformations?: boolean; + keep_derived?: boolean; + mode?: string; + notification_url?: string; + prefixes?: string; + public_ids?: string[] | string; + fully_qualified_public_ids?: string[] | string; + skip_transformation_name?: boolean; + tags?: string | string[]; + target_format?: TargetArchiveFormat; + target_public_id?: string; + target_tags?: string[]; + timestamp?: number; + transformations?: TransformationOptions; + type?: DeliveryType + use_original_filename?: boolean; + + [futureKey: string]: any; + } + + export interface UpdateApiOptions extends ResourceOptions { + access_control?: string[]; + auto_tagging?: number; + background_removal?: string; + categorization?: string; + context?: boolean | string; + custom_coordinates?: string; + detection?: string; + face_coordinates?: string; + headers?: string; + notification_url?: string; + ocr?: string; + raw_convert?: string; + similarity_search?: string; + tags?: string | string[]; + moderation_status?: string; + unsafe_update?: object; //might be Record + allowed_for_strict?: boolean; + asset_folder?: string; + unique_display_name?: boolean; + display_name?: string + + [futureKey: string]: any; + } + + export interface PublishApiOptions extends ResourceOptions { + invalidate?: boolean; + overwrite?: boolean; + + [futureKey: string]: any; + } + + export interface ResourceApiOptions extends ResourceOptions { + transformation?: TransformationOptions; + transformations?: TransformationOptions; + keep_original?: boolean; + next_cursor?: boolean | string; + public_ids?: string[]; + prefix?: string; + all?: boolean; + max_results?: number; + tags?: boolean; + tag?: string; + context?: boolean; + direction?: number | string; + moderations?: boolean; + start_at?: string; + exif?: boolean; + colors?: boolean; + derived_next_cursor?: string; + faces?: boolean; + image_metadata?: boolean; + media_metadata?: boolean; + pages?: boolean; + coordinates?: boolean; + phash?: boolean; + cinemagraph_analysis?: boolean; + accessibility_analysis?: boolean; + related?: boolean; + + [futureKey: string]: any; + } + + export interface UploadApiOptions { + access_mode?: AccessMode; + allowed_formats?: Array | Array; + async?: boolean; + backup?: boolean; + callback?: string; + colors?: boolean; + discard_original_filename?: boolean; + eager?: TransformationOptions; + eager_async?: boolean; + eager_notification_url?: string; + eval?: string; + exif?: boolean; + faces?: boolean; + filename_override?: string; + folder?: string; + format?: VideoFormat | ImageFormat; + image_metadata?: boolean; + media_metadata?: boolean; + invalidate?: boolean; + moderation?: ModerationKind; + notification_url?: string; + overwrite?: boolean; + phash?: boolean; + proxy?: string; + public_id?: string; + quality_analysis?: boolean; + resource_type?: "image" | "video" | "raw" | "auto"; + responsive_breakpoints?: Record; + return_delete_token?: boolean + timestamp?: number; + transformation?: TransformationOptions; + type?: DeliveryType; + unique_filename?: boolean; + upload_preset?: string; + use_filename?: boolean; + chunk_size?: number; + disable_promises?: boolean; + oauth_token?: string; + use_asset_folder_as_public_id_prefix?: boolean; + + [futureKey: string]: any; + } + + export interface ProvisioningApiOptions { + account_id?: string; + provisioning_api_key?: string; + provisioning_api_secret?: string; + agent?: object; //might be Record? + content_type?: string; + + [futureKey: string]: any; + } + + export interface AuthTokenApiOptions { + key: string; + acl: string; + ip?: string; + start_time?: number; + duration?: number; + expiration?: number; + url?: string; + } + + type TransformationOptions = + string + | string[] + | VideoTransformationOptions + | ImageTransformationOptions + | Object //might be Record + | Array + | Array; + + type ImageTransformationAndTagsOptions = ImageTransformationOptions | ImageTagOptions; + type VideoTransformationAndTagsOptions = VideoTransformationOptions | VideoTagOptions; + type ImageAndVideoFormatOptions = ImageFormat | VideoFormat; + type ConfigAndUrlOptions = ConfigOptions | UrlOptions; + type AdminAndPublishOptions = AdminApiOptions | PublishApiOptions; + type AdminAndResourceOptions = AdminApiOptions | ResourceApiOptions; + type AdminAndUpdateApiOptions = AdminApiOptions | UpdateApiOptions; + + /****************************** API *************************************/ + type Status = (string & {}) | "pending" | "approved" | "rejected"; + type StreamingProfiles = + (string & {}) + | "4k" + | "full_hd" + | "hd" + | "sd" + | "full_hd_wifi" + | "full_hd_lean" + | "hd_lean"; + type ModerationKind = (string & {}) | "manual" | "webpurify" | "aws_rek" | "metascan"; + type AccessMode = (string & {}) | "public" | "authenticated"; + type TargetArchiveFormat = (string & {}) | "zip" | "tgz"; + + // err is kept for backwards compatibility, it currently will always be undefined + type ResponseCallback = (err?: any, callResult?: any) => any; + + type UploadResponseCallback = (err?: UploadApiErrorResponse, callResult?: UploadApiResponse) => void; + + export interface AdminApiPaginationResponse { + next_cursor?: string; + } + + export interface AdminApiBaseResponse { + rate_limit_allowed?: number; + rate_limit_reset_at?: string; + rate_limit_remaining?: number; + } + + export interface UploadApiResponse { + public_id: string; + version: number; + signature: string; + width: number; + height: number; + format: string; + resource_type: "image" | "video" | "raw" | "auto"; + created_at: string; + tags: Array; + pages: number; + bytes: number; + type: string; + etag: string; + placeholder: boolean; + url: string; + secure_url: string; + access_mode: string; + original_filename: string; + moderation: Array; + access_control: Array; + context: object; //won't change since it's response, we need to discuss documentation team about it before implementing. + metadata: object; //won't change since it's response, we need to discuss documentation team about it before implementing. + colors?: [string, number][]; + + [futureKey: string]: any; + } + + export interface UploadApiErrorResponse { + message: string; + name: string; + http_code: number; + + [futureKey: string]: any; + } + + class UploadStream extends Transform { + } + + export interface DeleteApiResponse { + message: string; + http_code: number; + } + + export interface BaseAssetRelation { + asset: string; + status: 200; + } + + export interface AssetRelationSuccess extends BaseAssetRelation { + message: 'success'; + code: 'success_ids' + } + + export interface AssetRelationAlreadyExists extends BaseAssetRelation { + message: 'resource already exists'; + code: 'already_exists_ids'; + } + + export interface NewAssetRelationResponse { + failed: [any], + success: Array + } + + export interface DeleteAssetRelation { + failed: [any], + success: Array + } + + export interface MetadataFieldApiOptions { + external_id?: string; + type?: string; + label?: string; + mandatory?: boolean; + default_value?: number; + validation?: object; //there are 4 types, we need to discuss documentation team about it before implementing. + datasource?: DatasourceEntry; + + [futureKey: string]: any; + } + + export interface MetadataFieldApiResponse { + external_id: string; + type: string; + label: string; + mandatory: boolean; + default_value: number; + validation: object; //there are 4 types, we need to discuss documentation team about it before implementing. + datasource: DatasourceEntry; + + [futureKey: string]: any; + } + + export interface MetadataFieldsApiResponse extends AdminApiPaginationResponse, AdminApiBaseResponse { + metadata_fields: MetadataFieldApiResponse[] + } + + export interface DatasourceChange { + values: Array + } + + export type MetadataRuleCondition = + MetadataRulePopulatedCondition + | MetadataRuleEqualsCondition + | MetadataRuleIncludesCondition + | MetadataRuleOrCondition + | MetadataRuleAndCondition; + + export interface MetadataRulePopulatedCondition { + metadata_field_id: string; + populated: boolean; + } + + export interface MetadataRuleEqualsCondition { + metadata_field_id: string; + equals: string; + } + + export interface MetadataRuleIncludesCondition { + metadata_field_id: string; + includes: Array; + } + + export interface MetadataRuleOrCondition { + and: Array + } + + export interface MetadataRuleAndCondition { + or: Array + } + + export type MetadataRuleResult = + MetadataRuleResultEnable + | MetadataRuleResultEnableWithActivate + | MetadataRuleResultEnableWithApply; + + interface MetadataRuleResultCommon { + set_mandatory?: boolean; + } + + export interface MetadataRuleResultEnable extends MetadataRuleResultCommon { + enable: boolean; + } + + export interface MetadataRuleResultEnableWithActivate extends MetadataRuleResultCommon { + enable?: boolean; + activate_values: "all" | { + external_ids: string | Array | null; + mode?: "override" | "append"; + } + } + + export interface MetadataRuleResultEnableWithApply extends MetadataRuleResultCommon { + enable?: boolean; + apply_value: { + value: string | Array; + mode?: "default" | "append"; + } + } + + export interface MetadataRule { + metadata_field_id: string; + name: string | null; + condition: MetadataRuleCondition; + result: MetadataRuleResult | Array; + state?: string; + } + + export interface MetadataRuleResponse extends MetadataRule { + condition_signature: string; + external_id: string; + } + + export type MetadataRulesListResponse = Array; + + export interface ResourceApiResponse extends AdminApiPaginationResponse, AdminApiBaseResponse { + resources: [ + { + public_id: string; + format: string; + version: number; + resource_type: string; + type: string; + placeholder: boolean; + created_at: string; + bytes: number; + width: number; + height: number; + backup: boolean; + access_mode: string; + url: string; + secure_url: string; + tags: Array; + context: object; //won't change since it's response, we need to discuss documentation team about it before implementing. + next_cursor: string; + derived_next_cursor: string; + exif: object; //won't change since it's response, we need to discuss documentation team about it before implementing. + image_metadata: object; //won't change since it's response, we need to discuss documentation team about it before implementing. + media_metadata: object; + faces: number[][]; + quality_analysis: number; + colors: [string, number][]; + derived: Array; + moderation: object; //won't change since it's response, we need to discuss documentation team about it before implementing. + phash: string; + predominant: object; //won't change since it's response, we need to discuss documentation team about it before implementing. + coordinates: object; //won't change since it's response, we need to discuss documentation team about it before implementing. + access_control: Array; + pages: number; + + [futureKey: string]: any; + } + ] + } + + export type SignApiOptions = Record; + + export interface DatasourceEntry { + external_id?: string; + value: string; + } + + export namespace v2 { + + /****************************** Global Utils *************************************/ + + function cloudinary_js_config(): string; + + function config(new_config?: boolean | ConfigOptions): ConfigOptions; + + function config(key: K, value?: undefined): V; + + function config(key: K, value: V): ConfigOptions & { [Property in K]: V } + + function url(public_id: string, options?: TransformationOptions | ConfigAndUrlOptions): string; + + /****************************** Tags *************************************/ + + function image(source: string, options?: ImageTransformationAndTagsOptions | ConfigAndUrlOptions): string; + + function picture(public_id: string, options?: ImageTransformationAndTagsOptions | ConfigAndUrlOptions): string; + + function source(public_id: string, options?: TransformationOptions | ConfigAndUrlOptions): string; + + function video(public_id: string, options?: VideoTransformationAndTagsOptions | ConfigAndUrlOptions): string; + + /****************************** Utils *************************************/ + + namespace utils { + + function sign_request(params_to_sign: SignApiOptions, options?: ConfigAndUrlOptions): { + signature: string; + api_key: string; + [key: string]: any + }; + + function api_sign_request(params_to_sign: SignApiOptions, api_secret: string): string; + + function verifyNotificationSignature(body: string, timestamp: number, signature: string, valid_for?: number): boolean; + + function api_url(action?: string, options?: ConfigAndUrlOptions): string; + + function url(public_id?: string, options?: TransformationOptions | ConfigAndUrlOptions): string; + + function video_thumbnail_url(public_id?: string, options?: VideoTransformationOptions | ConfigAndUrlOptions): string; + + function video_url(public_id?: string, options?: VideoTransformationOptions | ConfigAndUrlOptions): string; + + function generate_transformation_string(options: TransformationOptions): string; + + function archive_params(options?: ArchiveApiOptions): Promise; + + function download_archive_url(options?: ArchiveApiOptions | ConfigAndUrlOptions): string + + function download_zip_url(options?: ArchiveApiOptions | ConfigAndUrlOptions): string; + + function download_backedup_asset(asset_id?: string, version_id?: string, options?: ArchiveApiOptions | ConfigAndUrlOptions): string + + function generate_auth_token(options?: AuthTokenApiOptions): string; + + function webhook_signature(data?: string, timestamp?: number, options?: ConfigOptions): string; + + function private_download_url(publicID: string, format: string, options: Partial<{ + resource_type: ResourceType; + type: DeliveryType; + expires_at: number; + attachment: boolean; + }>): string; + } + + /****************************** Admin API V2 Methods *************************************/ + + namespace api { + function create_streaming_profile(name: string, options: AdminApiOptions | { + display_name?: string, + representations: TransformationOptions + }, callback?: ResponseCallback): Promise; + + function create_transformation(name: string, transformation: TransformationOptions, callback?: ResponseCallback): Promise; + + function create_transformation(name: string, transformation: TransformationOptions, options?: AdminApiOptions | { + allowed_for_strict?: boolean + }, callback?: ResponseCallback): Promise; + + function create_upload_mapping(folder: string, options: AdminApiOptions | { + template: string + }, callback?: ResponseCallback): Promise; + + function create_upload_preset(options?: AdminApiOptions | { + name?: string, + unsigned?: boolean, + disallow_public_id?: boolean + }, callback?: ResponseCallback): Promise; + + function delete_all_resources(value?: AdminAndResourceOptions, callback?: ResponseCallback): Promise; + + function delete_derived_by_transformation(public_ids: string[], transformations: TransformationOptions, callback?: ResponseCallback): Promise; + + function delete_derived_by_transformation(public_ids: string[], transformations: TransformationOptions, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function delete_derived_resources(public_ids: string[], callback?: ResponseCallback): Promise; + + function delete_derived_resources(public_ids: string[], options?: AdminAndResourceOptions, callback?: ResponseCallback): Promise; + + function delete_resources(value: string[], callback?: ResponseCallback): Promise; + + function delete_resources(value: string[], options?: AdminAndResourceOptions, callback?: ResponseCallback): Promise; + + function delete_resources_by_prefix(prefix: string, options?: AdminAndResourceOptions, callback?: ResponseCallback): Promise; + + function delete_resources_by_prefix(prefix: string, callback?: ResponseCallback): Promise; + + function delete_resources_by_tag(tag: string, options?: AdminAndResourceOptions, callback?: ResponseCallback): Promise; + + function delete_resources_by_tag(tag: string, callback?: ResponseCallback): Promise; + + function delete_streaming_profile(name: string, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function delete_streaming_profile(name: string, callback?: ResponseCallback): Promise; + + function delete_transformation(transformationName: TransformationOptions, callback?: ResponseCallback): Promise; + + function delete_transformation(transformationName: TransformationOptions, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function delete_upload_mapping(folder: string, callback?: ResponseCallback): Promise; + + function delete_upload_mapping(folder: string, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function delete_upload_preset(name: string, callback?: ResponseCallback): Promise; + + function delete_upload_preset(name: string, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function get_streaming_profile(name: string | ResponseCallback, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function get_streaming_profile(name: string | ResponseCallback, callback?: ResponseCallback): Promise; + + function list_streaming_profiles(callback?: ResponseCallback): Promise; + + function list_streaming_profiles(options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function ping(options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function ping(callback?: ResponseCallback): Promise; + + function publish_by_ids(public_ids: string[], options?: AdminAndPublishOptions, callback?: ResponseCallback): Promise; + + function publish_by_ids(public_ids: string[], callback?: ResponseCallback): Promise; + + function publish_by_prefix(prefix: string[] | string, options?: AdminAndPublishOptions, callback?: ResponseCallback): Promise; + + function publish_by_prefix(prefix: string[] | string, callback?: ResponseCallback): Promise; + + function publish_by_tag(tag: string, options?: AdminAndPublishOptions, callback?: ResponseCallback): Promise; + + function publish_by_tag(tag: string, callback?: ResponseCallback): Promise; + + function resource(public_id: string, options?: AdminAndResourceOptions, callback?: ResponseCallback): Promise; + + function resource(public_id: string, callback?: ResponseCallback): Promise; + + function resource_types(options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function resources(options?: AdminAndResourceOptions, callback?: ResponseCallback): Promise; + + function resources_by_context(key: string, value?: string, options?: AdminAndResourceOptions, callback?: ResponseCallback): Promise; + + function resources_by_context(key: string, value?: string, options?: AdminAndResourceOptions): Promise; + + function resources_by_context(key: string, options?: AdminAndResourceOptions): Promise; + + function resources_by_context(key: string, callback?: ResponseCallback): Promise; + + function resources_by_asset_ids(asset_ids: string[] | string, options?: AdminAndResourceOptions, callback?: ResponseCallback): Promise; + + function resources_by_asset_ids(asset_ids: string[] | string, callback?: ResponseCallback): Promise; + + function resources_by_ids(public_ids: string[] | string, options?: AdminAndResourceOptions, callback?: ResponseCallback): Promise; + + function resources_by_ids(public_ids: string[] | string, callback?: ResponseCallback): Promise; + + function resources_by_asset_folder(asset_folder: string, options?: AdminAndResourceOptions, callback?: ResponseCallback): Promise; + + function resources_by_asset_folder(asset_folder: string, callback?: ResponseCallback): Promise; + + function resources_by_moderation(moderation: ModerationKind, status: Status, options?: AdminAndResourceOptions, callback?: ResponseCallback): Promise; + + function resources_by_moderation(moderation: ModerationKind, status: Status, callback?: ResponseCallback): Promise; + + function resources_by_tag(tag: string, options?: AdminAndResourceOptions, callback?: ResponseCallback): Promise; + + function resources_by_tag(tag: string, callback?: ResponseCallback): Promise; + + function restore(public_ids: string[], options?: AdminApiOptions | { + resource_type: ResourceType, + type: DeliveryType + }, callback?: ResponseCallback): Promise; + + function restore(public_ids: string[], callback?: ResponseCallback): Promise; + + function root_folders(callback?: ResponseCallback, options?: AdminApiOptions): Promise; + + function search(params: string, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function search(params: string, callback?: ResponseCallback): Promise; + + function sub_folders(root_folder: string, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function sub_folders(root_folder: string, callback?: ResponseCallback): Promise; + + function search_folders(search_input: string, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function search_folders(search_input: string, callback?: ResponseCallback): Promise; + + function visual_search(params: VisualSearchParams, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function visual_search(params: VisualSearchParams, callback?: ResponseCallback): Promise; + + function tags(options?: AdminApiOptions | { + max_results?: number, + next_cursor?: string, + prefix?: string + }, callback?: ResponseCallback): Promise; + + function transformation(transformation: TransformationOptions, options?: AdminApiOptions | { + max_results?: number, + next_cursor?: string, + named?: boolean + }, callback?: ResponseCallback): Promise; + + function transformation(transformation: TransformationOptions, callback?: ResponseCallback): Promise; + + function transformations(options?: AdminApiOptions | { + max_results?: number, + next_cursor?: string, + named?: boolean + }, callback?: ResponseCallback): Promise; + + function transformations(callback?: ResponseCallback): Promise; + + function update(public_id: string, options?: AdminAndUpdateApiOptions, callback?: ResponseCallback): Promise; + + function update(public_id: string, callback?: ResponseCallback): Promise; + + function update_resources_access_mode_by_ids(access_mode: AccessMode, ids: string[], options?: AdminAndUpdateApiOptions, callback?: ResponseCallback): Promise; + + function update_resources_access_mode_by_ids(access_mode: AccessMode, ids: string[], callback?: ResponseCallback): Promise; + + function update_resources_access_mode_by_prefix(access_mode: AccessMode, prefix: string, options?: AdminAndUpdateApiOptions, callback?: ResponseCallback): Promise; + + function update_resources_access_mode_by_prefix(access_mode: AccessMode, prefix: string, callback?: ResponseCallback): Promise; + + function update_resources_access_mode_by_tag(access_mode: AccessMode, tag: string, options?: AdminAndUpdateApiOptions, callback?: ResponseCallback): Promise; + + function update_resources_access_mode_by_tag(access_mode: AccessMode, tag: string, callback?: ResponseCallback): Promise; + + function update_streaming_profile(name: string, options: { + display_name?: string, + representations: Array<{ transformation?: VideoTransformationOptions }> + }, callback?: ResponseCallback): Promise; + + function update_transformation(transformation_name: TransformationOptions, updates?: TransformationOptions, callback?: ResponseCallback): Promise; + + function update_transformation(transformation_name: TransformationOptions, callback?: ResponseCallback): Promise; + + function update_upload_mapping(name: string, options: AdminApiOptions | { + template: string + }, callback?: ResponseCallback): Promise; + + function update_upload_preset(name?: string, options?: AdminApiOptions | { + unsigned?: boolean, + disallow_public_id?: boolean + }, callback?: ResponseCallback): Promise; + + function update_upload_preset(name?: string, callback?: ResponseCallback): Promise; + + function upload_mapping(name?: string, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function upload_mapping(name?: string, callback?: ResponseCallback): Promise; + + function upload_mappings(options?: AdminApiOptions | { + max_results?: number, + next_cursor?: string + }, callback?: ResponseCallback): Promise; + + function upload_mappings(callback?: ResponseCallback): Promise; + + function upload_preset(name?: string, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function upload_preset(name?: string, callback?: ResponseCallback): Promise; + + function upload_presets(options?: AdminApiOptions | { + max_results?: number, + next_cursor?: string + }, callback?: ResponseCallback): Promise; + + function usage(callback?: ResponseCallback, options?: AdminApiOptions): Promise; + + function usage(options?: AdminApiOptions): Promise; + + function create_folder(path: string, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function delete_folder(path: string, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function add_related_assets(public_id: string, public_ids_to_relate: string | Array, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function add_related_assets_by_asset_id(asset_id: string, public_ids_to_relate: string | Array, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function delete_related_assets(public_id: string, public_ids_to_unrelate: string | Array, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function delete_related_assets_by_asset_id(asset_id: string, public_ids_to_unrelate: string | Array, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + /****************************** Structured Metadata API V2 Methods *************************************/ + + function add_metadata_field(field: MetadataFieldApiOptions, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function add_metadata_field(field: MetadataFieldApiOptions, callback?: ResponseCallback): Promise; + + function list_metadata_fields(callback?: ResponseCallback, options?: AdminApiOptions): Promise; + + function list_metadata_fields(options?: AdminApiOptions): Promise; + + function delete_metadata_field(field_external_id: string, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function delete_metadata_field(field_external_id: string, callback?: ResponseCallback): Promise; + + function metadata_field_by_field_id(external_id: string, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function metadata_field_by_field_id(external_id: string, callback?: ResponseCallback): Promise; + + function update_metadata_field(external_id: string, field: MetadataFieldApiOptions, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function update_metadata_field(external_id: string, field: MetadataFieldApiOptions, callback?: ResponseCallback): Promise; + + function update_metadata_field_datasource(field_external_id: string, entries_external_id: DatasourceChange, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function update_metadata_field_datasource(field_external_id: string, entries_external_id: DatasourceChange, callback?: ResponseCallback): Promise; + + function delete_datasource_entries(field_external_id: string, entries_external_id: string[], options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function delete_datasource_entries(field_external_id: string, entries_external_id: string[], callback?: ResponseCallback): Promise; + + function restore_metadata_field_datasource(field_external_id: string, entries_external_id: string[], options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function restore_metadata_field_datasource(field_external_id: string, entries_external_id: string[], callback?: ResponseCallback): Promise; + + /****************************** Structured Metadata Rules API V2 Methods *************************************/ + function add_metadata_rule(rule: MetadataRule, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function add_metadata_rule(rule: MetadataRule, callback?: ResponseCallback): Promise; + + function list_metadata_rules(callback?: ResponseCallback, options?: AdminApiOptions): Promise; + + function list_metadata_rules(options?: AdminApiOptions): Promise; + + function update_metadata_rule(external_id: string, rule: MetadataRule, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function update_metadata_rule(external_id: string, rule: MetadataRule, callback?: ResponseCallback): Promise; + + function delete_metadata_rule(external_id: string, options?: AdminApiOptions, callback?: ResponseCallback): Promise; + + function delete_metadata_rule(external_id: string, callback?: ResponseCallback): Promise; + + } + + /****************************** Upload API V2 Methods *************************************/ + + namespace uploader { + function add_context(context: string, public_ids: string[], options?: { + type?: DeliveryType, + resource_type?: ResourceType + }, callback?: ResponseCallback): Promise; + + function add_context(context: string, public_ids: string[], callback?: ResponseCallback): Promise; + + function add_tag(tag: string, public_ids: string[], options?: { + type?: DeliveryType, + resource_type?: ResourceType + }, callback?: ResponseCallback): Promise; + + function add_tag(tag: string, public_ids: string[], callback?: ResponseCallback): Promise; + + function create_archive(options?: ArchiveApiOptions, target_format?: TargetArchiveFormat, callback?: ResponseCallback,): Promise; + + function create_zip(options?: ArchiveApiOptions, callback?: ResponseCallback): Promise; + + function destroy(public_id: string, options?: { + resource_type?: ResourceType, + type?: DeliveryType, + invalidate?: boolean + }, callback?: ResponseCallback,): Promise; + + function destroy(public_id: string, callback?: ResponseCallback,): Promise; + + function explicit(public_id: string, options?: UploadApiOptions, callback?: ResponseCallback): Promise; + + function explicit(public_id: string, callback?: ResponseCallback): Promise; + + function explode(public_id: string, options?: { + page?: 'all', + type?: DeliveryType, + format?: ImageAndVideoFormatOptions, + notification_url?: string, + transformations?: TransformationOptions + }, callback?: ResponseCallback): Promise + + function explode(public_id: string, callback?: ResponseCallback): Promise + + function generate_sprite(tag: string, options?: { + transformation?: TransformationOptions, + format?: ImageAndVideoFormatOptions, + notification_url?: string, + async?: boolean + }, callback?: ResponseCallback): Promise; + + function generate_sprite(tag: string, callback?: ResponseCallback): Promise; + + function image_upload_tag(field?: string, options?: UploadApiOptions): Promise; + + function multi(tag: string, options?: { + transformation?: TransformationOptions, + async?: boolean, + format?: ImageAndVideoFormatOptions, + notification_url?: string + }, callback?: ResponseCallback): Promise; + + function multi(tag: string, callback?: ResponseCallback): Promise; + + function remove_all_context(public_ids: string[], options?: { + context?: string, + resource_type?: ResourceType, + type?: DeliveryType + }, callback?: ResponseCallback): Promise; + + function remove_all_context(public_ids: string[], callback?: ResponseCallback): Promise; + + function remove_all_tags(public_ids: string[], options?: { + tag?: string, + resource_type?: ResourceType, + type?: DeliveryType + }, callback?: ResponseCallback): Promise; + + function remove_all_tags(public_ids: string[], callback?: ResponseCallback): Promise; + + function remove_tag(tag: string, public_ids: string[], options?: { + tag?: string, + resource_type?: ResourceType, + type?: DeliveryType + }, callback?: ResponseCallback): Promise; + + function remove_tag(tag: string, public_ids: string[], callback?: ResponseCallback): Promise; + + function rename(from_public_id: string, to_public_id: string, options?: { + resource_type?: ResourceType, + type?: DeliveryType, + to_type?: DeliveryType, + overwrite?: boolean, + invalidate?: boolean + }, callback?: ResponseCallback): Promise; + + function rename(from_public_id: string, to_public_id: string, callback?: ResponseCallback): Promise; + + function replace_tag(tag: string, public_ids: string[], options?: { + resource_type?: ResourceType, + type?: DeliveryType + }, callback?: ResponseCallback): Promise; + + function replace_tag(tag: string, public_ids: string[], callback?: ResponseCallback): Promise; + + function text(text: string, options?: TextStyleOptions | { + public_id?: string + }, callback?: ResponseCallback): Promise; + + function text(text: string, callback?: ResponseCallback): Promise; + + function unsigned_image_upload_tag(field: string, upload_preset: string, options?: UploadApiOptions): Promise; + + function unsigned_upload(file: string, upload_preset: string, options?: UploadApiOptions, callback?: ResponseCallback): Promise; + + function unsigned_upload(file: string, upload_preset: string, callback?: ResponseCallback): Promise; + + function unsigned_upload_stream(upload_preset: string, options?: UploadApiOptions, callback?: ResponseCallback): UploadStream; + + function unsigned_upload_stream(upload_preset: string, callback?: ResponseCallback): UploadStream; + + function upload(file: string, options?: UploadApiOptions, callback?: UploadResponseCallback): Promise; + + function upload(file: string, callback?: UploadResponseCallback): Promise; + + function upload_chunked(path: string, options?: UploadApiOptions, callback?: UploadResponseCallback): Promise; + + function upload_chunked(path: string, callback?: UploadResponseCallback): Promise; + + function upload_chunked_stream(options?: UploadApiOptions, callback?: UploadResponseCallback): UploadStream; + + function upload_large(path: string, options?: UploadApiOptions, callback?: UploadResponseCallback): Promise; + + function upload_large(path: string, callback?: UploadResponseCallback): Promise; + + function upload_stream(options?: UploadApiOptions, callback?: UploadResponseCallback): UploadStream; + + function upload_stream(callback?: UploadResponseCallback): UploadStream; + + function upload_tag_params(options?: UploadApiOptions, callback?: UploadResponseCallback): Promise; + + function upload_url(options?: ConfigOptions): Promise; + + function create_slideshow(options?: ConfigOptions & { + manifest_transformation?: TransformationOptions, + manifest_json?: Record + }, callback?: UploadResponseCallback): Promise; + + /****************************** Structured Metadata API V2 Methods *************************************/ + + function update_metadata(metadata: string | Record, public_ids: string[], options?: UploadApiOptions, callback?: ResponseCallback): Promise; + + function update_metadata(metadata: string | Record, public_ids: string[], callback?: ResponseCallback): Promise; + } + + /****************************** Search API *************************************/ + + class search { + + aggregate(value?: string): search; + + execute(): Promise; + + expression(value?: string): search; + + max_results(value?: number): search; + + next_cursor(value?: string): search; + + sort_by(key: string, value: 'asc' | 'desc'): search; + + ttl(newTtl: number): search; + + to_query(value?: string): search; + + with_field(value?: string): search; + + to_url(newTtl?: number, next_cursor?: string, options?: ConfigOptions): string; + + static aggregate(args?: string): search; + + static expression(args?: string): search; + + static instance(args?: string): search; + + static max_results(args?: number): search; + + static next_cursor(args?: string): search; + + static sort_by(key: string, value: 'asc' | 'desc'): search; + + static ttl(newTtl: number): search; + + static with_field(args?: string): search; + } + + /****************************** Provisioning API *************************************/ + + namespace provisioning { + namespace account { + function sub_accounts(enabled: boolean, ids?: string[], prefix?: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function sub_account(subAccountId: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function create_sub_account(name: string, cloudName: string, customAttributes?: Record, enabled?: boolean, baseAccount?: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function delete_sub_account(subAccountId: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function update_sub_account(subAccountId: string, name?: string, cloudName?: string, customAttributes?: Record, enabled?: boolean, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function user(userId: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function users(pending: boolean, userIds?: string[], prefix?: string, subAccountId?: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function create_user(name: string, email: string, role: string, subAccountIds?: string[], options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function update_user(userId: string, name?: string, email?: string, role?: string, subAccountIds?: string[], options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function delete_user(userId: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function create_user_group(name: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function update_user_group(groupId: string, name: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function delete_user_group(groupId: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function add_user_to_group(groupId: string, userId: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function remove_user_from_group(groupId: string, userId: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function user_group(groupId: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function user_groups(options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + + function user_group_users(groupId: string, options?: ProvisioningApiOptions, callback?: ResponseCallback): Promise; + } + } + } +} diff --git a/node_modules/core-js/LICENSE b/node_modules/core-js/LICENSE new file mode 100644 index 0000000..761cc94 --- /dev/null +++ b/node_modules/core-js/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2014-2024 Denis Pushkarev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/core-js/README.md b/node_modules/core-js/README.md new file mode 100644 index 0000000..9d57a67 --- /dev/null +++ b/node_modules/core-js/README.md @@ -0,0 +1,95 @@ +![logo](https://user-images.githubusercontent.com/2213682/146607186-8e13ddef-26a4-4ebf-befd-5aac9d77c090.png) + +
+ +[![fundraising](https://opencollective.com/core-js/all/badge.svg?label=fundraising)](https://opencollective.com/core-js) [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md) [![version](https://img.shields.io/npm/v/core-js.svg)](https://www.npmjs.com/package/core-js) [![core-js downloads](https://img.shields.io/npm/dm/core-js.svg?label=npm%20i%20core-js)](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18) + +
+ +**I highly recommend reading this: [So, what's next?](https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md)** +--- + +> Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2023](https://github.com/zloirock/core-js#ecmascript): [promises](https://github.com/zloirock/core-js#ecmascript-promise), [symbols](https://github.com/zloirock/core-js#ecmascript-symbol), [collections](https://github.com/zloirock/core-js#ecmascript-collections), iterators, [typed arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays), many other features, [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](https://github.com/zloirock/core-js#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution. + +## Raising funds + +`core-js` isn't backed by a company, so the future of this project depends on you. Become a sponsor or a backer if you are interested in `core-js`: [**Open Collective**](https://opencollective.com/core-js), [**Patreon**](https://patreon.com/zloirock), [**Boosty**](https://boosty.to/zloirock), **Bitcoin ( bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz )**, [**Alipay**](https://user-images.githubusercontent.com/2213682/219464783-c17ad329-17ce-4795-82a7-f609493345ed.png). + +--- + + + +--- + + + +--- + +[*Example of usage*](https://tinyurl.com/2mknex43): +```js +import 'core-js/actual'; + +Promise.resolve(42).then(it => console.log(it)); // => 42 + +Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5] + +[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2] + +(function * (i) { while (true) yield i++; })(1) + .drop(1).take(5) + .filter(it => it % 2) + .map(it => it ** 2) + .toArray(); // => [9, 25] + +structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) +``` + +*You can load only required features*: +```js +import 'core-js/actual/promise'; +import 'core-js/actual/set'; +import 'core-js/actual/iterator'; +import 'core-js/actual/array/from'; +import 'core-js/actual/array/flat-map'; +import 'core-js/actual/structured-clone'; + +Promise.resolve(42).then(it => console.log(it)); // => 42 + +Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5] + +[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2] + +(function * (i) { while (true) yield i++; })(1) + .drop(1).take(5) + .filter(it => it % 2) + .map(it => it ** 2) + .toArray(); // => [9, 25] + +structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) +``` + +*Or use it without global namespace pollution*: +```js +import Promise from 'core-js-pure/actual/promise'; +import Set from 'core-js-pure/actual/set'; +import Iterator from 'core-js-pure/actual/iterator'; +import from from 'core-js-pure/actual/array/from'; +import flatMap from 'core-js-pure/actual/array/flat-map'; +import structuredClone from 'core-js-pure/actual/structured-clone'; + +Promise.resolve(42).then(it => console.log(it)); // => 42 + +from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5] + +flatMap([1, 2], it => [it, it]); // => [1, 1, 2, 2] + +Iterator.from(function * (i) { while (true) yield i++; }(1)) + .drop(1).take(5) + .filter(it => it % 2) + .map(it => it ** 2) + .toArray(); // => [9, 25] + +structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) +``` + +**It's a global version (first 2 examples), for more info see [`core-js` documentation](https://github.com/zloirock/core-js/blob/master/README.md).** diff --git a/node_modules/core-js/actual/README.md b/node_modules/core-js/actual/README.md new file mode 100644 index 0000000..62c88a0 --- /dev/null +++ b/node_modules/core-js/actual/README.md @@ -0,0 +1 @@ +This folder contains entry points for all `core-js` features with dependencies. It's the recommended way for usage only required features. diff --git a/node_modules/core-js/actual/aggregate-error.js b/node_modules/core-js/actual/aggregate-error.js new file mode 100644 index 0000000..78ab986 --- /dev/null +++ b/node_modules/core-js/actual/aggregate-error.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/aggregate-error'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array-buffer/constructor.js b/node_modules/core-js/actual/array-buffer/constructor.js new file mode 100644 index 0000000..f6e214d --- /dev/null +++ b/node_modules/core-js/actual/array-buffer/constructor.js @@ -0,0 +1,7 @@ +'use strict'; +var parent = require('../../stable/array-buffer/constructor'); +require('../../modules/esnext.array-buffer.detached'); +require('../../modules/esnext.array-buffer.transfer'); +require('../../modules/esnext.array-buffer.transfer-to-fixed-length'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array-buffer/detached.js b/node_modules/core-js/actual/array-buffer/detached.js new file mode 100644 index 0000000..8861010 --- /dev/null +++ b/node_modules/core-js/actual/array-buffer/detached.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/array-buffer/detached'); +require('../../modules/esnext.array-buffer.detached'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array-buffer/index.js b/node_modules/core-js/actual/array-buffer/index.js new file mode 100644 index 0000000..47e89f4 --- /dev/null +++ b/node_modules/core-js/actual/array-buffer/index.js @@ -0,0 +1,7 @@ +'use strict'; +var parent = require('../../stable/array-buffer'); +require('../../modules/esnext.array-buffer.detached'); +require('../../modules/esnext.array-buffer.transfer'); +require('../../modules/esnext.array-buffer.transfer-to-fixed-length'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array-buffer/is-view.js b/node_modules/core-js/actual/array-buffer/is-view.js new file mode 100644 index 0000000..e84330c --- /dev/null +++ b/node_modules/core-js/actual/array-buffer/is-view.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array-buffer/is-view'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array-buffer/slice.js b/node_modules/core-js/actual/array-buffer/slice.js new file mode 100644 index 0000000..750d712 --- /dev/null +++ b/node_modules/core-js/actual/array-buffer/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array-buffer/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array-buffer/transfer-to-fixed-length.js b/node_modules/core-js/actual/array-buffer/transfer-to-fixed-length.js new file mode 100644 index 0000000..2d5e4c8 --- /dev/null +++ b/node_modules/core-js/actual/array-buffer/transfer-to-fixed-length.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/array-buffer/transfer-to-fixed-length'); +require('../../modules/esnext.array-buffer.transfer-to-fixed-length'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array-buffer/transfer.js b/node_modules/core-js/actual/array-buffer/transfer.js new file mode 100644 index 0000000..9f1700a --- /dev/null +++ b/node_modules/core-js/actual/array-buffer/transfer.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/array-buffer/transfer'); +require('../../modules/esnext.array-buffer.transfer'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/at.js b/node_modules/core-js/actual/array/at.js new file mode 100644 index 0000000..4a39536 --- /dev/null +++ b/node_modules/core-js/actual/array/at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/at'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/concat.js b/node_modules/core-js/actual/array/concat.js new file mode 100644 index 0000000..76ba9be --- /dev/null +++ b/node_modules/core-js/actual/array/concat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/concat'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/copy-within.js b/node_modules/core-js/actual/array/copy-within.js new file mode 100644 index 0000000..1719cc8 --- /dev/null +++ b/node_modules/core-js/actual/array/copy-within.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/copy-within'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/entries.js b/node_modules/core-js/actual/array/entries.js new file mode 100644 index 0000000..014c288 --- /dev/null +++ b/node_modules/core-js/actual/array/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/every.js b/node_modules/core-js/actual/array/every.js new file mode 100644 index 0000000..5c67c69 --- /dev/null +++ b/node_modules/core-js/actual/array/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/every'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/fill.js b/node_modules/core-js/actual/array/fill.js new file mode 100644 index 0000000..cd3a527 --- /dev/null +++ b/node_modules/core-js/actual/array/fill.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/fill'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/filter.js b/node_modules/core-js/actual/array/filter.js new file mode 100644 index 0000000..e975a05 --- /dev/null +++ b/node_modules/core-js/actual/array/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/find-index.js b/node_modules/core-js/actual/array/find-index.js new file mode 100644 index 0000000..a90bcfd --- /dev/null +++ b/node_modules/core-js/actual/array/find-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/find-index'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/find-last-index.js b/node_modules/core-js/actual/array/find-last-index.js new file mode 100644 index 0000000..1c29cfc --- /dev/null +++ b/node_modules/core-js/actual/array/find-last-index.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.array.find-last-index'); +var parent = require('../../stable/array/find-last-index'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/find-last.js b/node_modules/core-js/actual/array/find-last.js new file mode 100644 index 0000000..c215b31 --- /dev/null +++ b/node_modules/core-js/actual/array/find-last.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.array.find-last'); +var parent = require('../../stable/array/find-last'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/find.js b/node_modules/core-js/actual/array/find.js new file mode 100644 index 0000000..2a4b74f --- /dev/null +++ b/node_modules/core-js/actual/array/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/find'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/flat-map.js b/node_modules/core-js/actual/array/flat-map.js new file mode 100644 index 0000000..e27b6d3 --- /dev/null +++ b/node_modules/core-js/actual/array/flat-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/flat-map'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/flat.js b/node_modules/core-js/actual/array/flat.js new file mode 100644 index 0000000..7a7779b --- /dev/null +++ b/node_modules/core-js/actual/array/flat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/flat'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/for-each.js b/node_modules/core-js/actual/array/for-each.js new file mode 100644 index 0000000..8f7370e --- /dev/null +++ b/node_modules/core-js/actual/array/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/from-async.js b/node_modules/core-js/actual/array/from-async.js new file mode 100644 index 0000000..875bc68 --- /dev/null +++ b/node_modules/core-js/actual/array/from-async.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.array.from-async'); +var path = require('../../internals/path'); + +module.exports = path.Array.fromAsync; diff --git a/node_modules/core-js/actual/array/from.js b/node_modules/core-js/actual/array/from.js new file mode 100644 index 0000000..ee3ee01 --- /dev/null +++ b/node_modules/core-js/actual/array/from.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/from'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/group-by-to-map.js b/node_modules/core-js/actual/array/group-by-to-map.js new file mode 100644 index 0000000..d29af87 --- /dev/null +++ b/node_modules/core-js/actual/array/group-by-to-map.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/es.object.to-string'); +require('../../modules/esnext.array.group-by-to-map'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'groupByToMap'); diff --git a/node_modules/core-js/actual/array/group-by.js b/node_modules/core-js/actual/array/group-by.js new file mode 100644 index 0000000..0044399 --- /dev/null +++ b/node_modules/core-js/actual/array/group-by.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.array.group-by'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'groupBy'); diff --git a/node_modules/core-js/actual/array/group-to-map.js b/node_modules/core-js/actual/array/group-to-map.js new file mode 100644 index 0000000..67d3e71 --- /dev/null +++ b/node_modules/core-js/actual/array/group-to-map.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/es.object.to-string'); +require('../../modules/esnext.array.group-to-map'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'groupToMap'); diff --git a/node_modules/core-js/actual/array/group.js b/node_modules/core-js/actual/array/group.js new file mode 100644 index 0000000..0e3ac69 --- /dev/null +++ b/node_modules/core-js/actual/array/group.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.array.group'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'group'); diff --git a/node_modules/core-js/actual/array/includes.js b/node_modules/core-js/actual/array/includes.js new file mode 100644 index 0000000..2bf0fdb --- /dev/null +++ b/node_modules/core-js/actual/array/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/index-of.js b/node_modules/core-js/actual/array/index-of.js new file mode 100644 index 0000000..efe592b --- /dev/null +++ b/node_modules/core-js/actual/array/index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/index.js b/node_modules/core-js/actual/array/index.js new file mode 100644 index 0000000..4ffabf5 --- /dev/null +++ b/node_modules/core-js/actual/array/index.js @@ -0,0 +1,18 @@ +'use strict'; +var parent = require('../../stable/array'); +require('../../modules/es.promise'); +require('../../modules/es.object.to-string'); +require('../../modules/esnext.array.from-async'); +require('../../modules/esnext.array.group'); +require('../../modules/esnext.array.group-to-map'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.array.find-last'); +require('../../modules/esnext.array.find-last-index'); +require('../../modules/esnext.array.group-by'); +require('../../modules/esnext.array.group-by-to-map'); +require('../../modules/esnext.array.to-reversed'); +require('../../modules/esnext.array.to-sorted'); +require('../../modules/esnext.array.to-spliced'); +require('../../modules/esnext.array.with'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/is-array.js b/node_modules/core-js/actual/array/is-array.js new file mode 100644 index 0000000..95c9b86 --- /dev/null +++ b/node_modules/core-js/actual/array/is-array.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/is-array'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/iterator.js b/node_modules/core-js/actual/array/iterator.js new file mode 100644 index 0000000..d61e2e0 --- /dev/null +++ b/node_modules/core-js/actual/array/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/join.js b/node_modules/core-js/actual/array/join.js new file mode 100644 index 0000000..3bdb90e --- /dev/null +++ b/node_modules/core-js/actual/array/join.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/join'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/keys.js b/node_modules/core-js/actual/array/keys.js new file mode 100644 index 0000000..117fffc --- /dev/null +++ b/node_modules/core-js/actual/array/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/last-index-of.js b/node_modules/core-js/actual/array/last-index-of.js new file mode 100644 index 0000000..af35831 --- /dev/null +++ b/node_modules/core-js/actual/array/last-index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/last-index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/map.js b/node_modules/core-js/actual/array/map.js new file mode 100644 index 0000000..575c07b --- /dev/null +++ b/node_modules/core-js/actual/array/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/map'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/of.js b/node_modules/core-js/actual/array/of.js new file mode 100644 index 0000000..45b8aef --- /dev/null +++ b/node_modules/core-js/actual/array/of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/push.js b/node_modules/core-js/actual/array/push.js new file mode 100644 index 0000000..d4d5d6f --- /dev/null +++ b/node_modules/core-js/actual/array/push.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/push'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/reduce-right.js b/node_modules/core-js/actual/array/reduce-right.js new file mode 100644 index 0000000..355656b --- /dev/null +++ b/node_modules/core-js/actual/array/reduce-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/reduce-right'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/reduce.js b/node_modules/core-js/actual/array/reduce.js new file mode 100644 index 0000000..f4ad08c --- /dev/null +++ b/node_modules/core-js/actual/array/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/reverse.js b/node_modules/core-js/actual/array/reverse.js new file mode 100644 index 0000000..9104318 --- /dev/null +++ b/node_modules/core-js/actual/array/reverse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/reverse'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/slice.js b/node_modules/core-js/actual/array/slice.js new file mode 100644 index 0000000..e19733b --- /dev/null +++ b/node_modules/core-js/actual/array/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/some.js b/node_modules/core-js/actual/array/some.js new file mode 100644 index 0000000..451975b --- /dev/null +++ b/node_modules/core-js/actual/array/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/some'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/sort.js b/node_modules/core-js/actual/array/sort.js new file mode 100644 index 0000000..2425dfa --- /dev/null +++ b/node_modules/core-js/actual/array/sort.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/sort'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/splice.js b/node_modules/core-js/actual/array/splice.js new file mode 100644 index 0000000..71dbb51 --- /dev/null +++ b/node_modules/core-js/actual/array/splice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/splice'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/to-reversed.js b/node_modules/core-js/actual/array/to-reversed.js new file mode 100644 index 0000000..459dc5d --- /dev/null +++ b/node_modules/core-js/actual/array/to-reversed.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../stable/array/to-reversed'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.array.to-reversed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/to-sorted.js b/node_modules/core-js/actual/array/to-sorted.js new file mode 100644 index 0000000..00444f0 --- /dev/null +++ b/node_modules/core-js/actual/array/to-sorted.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../stable/array/to-sorted'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.array.to-sorted'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/to-spliced.js b/node_modules/core-js/actual/array/to-spliced.js new file mode 100644 index 0000000..18fea69 --- /dev/null +++ b/node_modules/core-js/actual/array/to-spliced.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../stable/array/to-spliced'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.array.to-spliced'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/unshift.js b/node_modules/core-js/actual/array/unshift.js new file mode 100644 index 0000000..8401263 --- /dev/null +++ b/node_modules/core-js/actual/array/unshift.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/unshift'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/values.js b/node_modules/core-js/actual/array/values.js new file mode 100644 index 0000000..ae813ae --- /dev/null +++ b/node_modules/core-js/actual/array/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/array/values'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/at.js b/node_modules/core-js/actual/array/virtual/at.js new file mode 100644 index 0000000..578d5ad --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/at'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/concat.js b/node_modules/core-js/actual/array/virtual/concat.js new file mode 100644 index 0000000..f4b1589 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/concat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/concat'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/copy-within.js b/node_modules/core-js/actual/array/virtual/copy-within.js new file mode 100644 index 0000000..45039b7 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/copy-within.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/copy-within'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/entries.js b/node_modules/core-js/actual/array/virtual/entries.js new file mode 100644 index 0000000..68ac70a --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/every.js b/node_modules/core-js/actual/array/virtual/every.js new file mode 100644 index 0000000..b49636f --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/every'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/fill.js b/node_modules/core-js/actual/array/virtual/fill.js new file mode 100644 index 0000000..1ab5b05 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/fill.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/fill'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/filter.js b/node_modules/core-js/actual/array/virtual/filter.js new file mode 100644 index 0000000..7b7dfbb --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/find-index.js b/node_modules/core-js/actual/array/virtual/find-index.js new file mode 100644 index 0000000..c924f63 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/find-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/find-index'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/find-last-index.js b/node_modules/core-js/actual/array/virtual/find-last-index.js new file mode 100644 index 0000000..3c0397f --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/find-last-index.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/esnext.array.find-last-index'); +var parent = require('../../../stable/array/virtual/find-last-index'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/find-last.js b/node_modules/core-js/actual/array/virtual/find-last.js new file mode 100644 index 0000000..ab53b1c --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/find-last.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/esnext.array.find-last'); +var parent = require('../../../stable/array/virtual/find-last'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/find.js b/node_modules/core-js/actual/array/virtual/find.js new file mode 100644 index 0000000..0cf8df6 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/find'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/flat-map.js b/node_modules/core-js/actual/array/virtual/flat-map.js new file mode 100644 index 0000000..ae16b20 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/flat-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/flat-map'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/flat.js b/node_modules/core-js/actual/array/virtual/flat.js new file mode 100644 index 0000000..a02b569 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/flat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/flat'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/for-each.js b/node_modules/core-js/actual/array/virtual/for-each.js new file mode 100644 index 0000000..a5e179d --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/group-by-to-map.js b/node_modules/core-js/actual/array/virtual/group-by-to-map.js new file mode 100644 index 0000000..617aaa3 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/group-by-to-map.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../../modules/es.map'); +require('../../../modules/es.object.to-string'); +require('../../../modules/esnext.array.group-by-to-map'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'groupByToMap'); diff --git a/node_modules/core-js/actual/array/virtual/group-by.js b/node_modules/core-js/actual/array/virtual/group-by.js new file mode 100644 index 0000000..af7eb76 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/group-by.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/esnext.array.group-by'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'groupBy'); diff --git a/node_modules/core-js/actual/array/virtual/group-to-map.js b/node_modules/core-js/actual/array/virtual/group-to-map.js new file mode 100644 index 0000000..6cfad20 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/group-to-map.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../../modules/es.map'); +require('../../../modules/es.object.to-string'); +require('../../../modules/esnext.array.group-to-map'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'groupToMap'); diff --git a/node_modules/core-js/actual/array/virtual/group.js b/node_modules/core-js/actual/array/virtual/group.js new file mode 100644 index 0000000..ab3beac --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/group.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/esnext.array.group'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'group'); diff --git a/node_modules/core-js/actual/array/virtual/includes.js b/node_modules/core-js/actual/array/virtual/includes.js new file mode 100644 index 0000000..dafeb0a --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/index-of.js b/node_modules/core-js/actual/array/virtual/index-of.js new file mode 100644 index 0000000..1cc47c0 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/index.js b/node_modules/core-js/actual/array/virtual/index.js new file mode 100644 index 0000000..5c73843 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/index.js @@ -0,0 +1,17 @@ +'use strict'; +var parent = require('../../../stable/array/virtual'); +require('../../../modules/es.map'); +require('../../../modules/es.object.to-string'); +require('../../../modules/esnext.array.group'); +require('../../../modules/esnext.array.group-to-map'); +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.array.find-last'); +require('../../../modules/esnext.array.find-last-index'); +require('../../../modules/esnext.array.group-by'); +require('../../../modules/esnext.array.group-by-to-map'); +require('../../../modules/esnext.array.to-reversed'); +require('../../../modules/esnext.array.to-sorted'); +require('../../../modules/esnext.array.to-spliced'); +require('../../../modules/esnext.array.with'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/iterator.js b/node_modules/core-js/actual/array/virtual/iterator.js new file mode 100644 index 0000000..78515f8 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/join.js b/node_modules/core-js/actual/array/virtual/join.js new file mode 100644 index 0000000..58e7a1e --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/join.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/join'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/keys.js b/node_modules/core-js/actual/array/virtual/keys.js new file mode 100644 index 0000000..d60d648 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/last-index-of.js b/node_modules/core-js/actual/array/virtual/last-index-of.js new file mode 100644 index 0000000..b512303 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/last-index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/last-index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/map.js b/node_modules/core-js/actual/array/virtual/map.js new file mode 100644 index 0000000..33c53e0 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/map'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/push.js b/node_modules/core-js/actual/array/virtual/push.js new file mode 100644 index 0000000..b33a19b --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/push.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/push'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/reduce-right.js b/node_modules/core-js/actual/array/virtual/reduce-right.js new file mode 100644 index 0000000..8c87c1a --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/reduce-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/reduce-right'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/reduce.js b/node_modules/core-js/actual/array/virtual/reduce.js new file mode 100644 index 0000000..8efc567 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/reverse.js b/node_modules/core-js/actual/array/virtual/reverse.js new file mode 100644 index 0000000..e1c69f3 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/reverse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/reverse'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/slice.js b/node_modules/core-js/actual/array/virtual/slice.js new file mode 100644 index 0000000..992e9ee --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/some.js b/node_modules/core-js/actual/array/virtual/some.js new file mode 100644 index 0000000..1bc1105 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/some'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/sort.js b/node_modules/core-js/actual/array/virtual/sort.js new file mode 100644 index 0000000..92b2017 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/sort.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/sort'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/splice.js b/node_modules/core-js/actual/array/virtual/splice.js new file mode 100644 index 0000000..a281196 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/splice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/splice'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/to-reversed.js b/node_modules/core-js/actual/array/virtual/to-reversed.js new file mode 100644 index 0000000..025a3c5 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/to-reversed.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/to-reversed'); +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.array.to-reversed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/to-sorted.js b/node_modules/core-js/actual/array/virtual/to-sorted.js new file mode 100644 index 0000000..27c5c96 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/to-sorted.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/to-sorted'); +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.array.to-sorted'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/to-spliced.js b/node_modules/core-js/actual/array/virtual/to-spliced.js new file mode 100644 index 0000000..a6da4da --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/to-spliced.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/to-spliced'); +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.array.to-spliced'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/unshift.js b/node_modules/core-js/actual/array/virtual/unshift.js new file mode 100644 index 0000000..7cf8b80 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/unshift.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/unshift'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/values.js b/node_modules/core-js/actual/array/virtual/values.js new file mode 100644 index 0000000..d3dac45 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/values'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/virtual/with.js b/node_modules/core-js/actual/array/virtual/with.js new file mode 100644 index 0000000..ab70a39 --- /dev/null +++ b/node_modules/core-js/actual/array/virtual/with.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../../stable/array/virtual/with'); +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.array.with'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/array/with.js b/node_modules/core-js/actual/array/with.js new file mode 100644 index 0000000..324e998 --- /dev/null +++ b/node_modules/core-js/actual/array/with.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../stable/array/with'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.array.with'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/async-disposable-stack/constructor.js b/node_modules/core-js/actual/async-disposable-stack/constructor.js new file mode 100644 index 0000000..b8b56dd --- /dev/null +++ b/node_modules/core-js/actual/async-disposable-stack/constructor.js @@ -0,0 +1,12 @@ +'use strict'; +require('../../modules/es.error.cause'); +require('../../modules/es.error.to-string'); +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.suppressed-error.constructor'); +require('../../modules/esnext.async-disposable-stack.constructor'); +require('../../modules/esnext.async-iterator.async-dispose'); +require('../../modules/esnext.iterator.dispose'); +var path = require('../../internals/path'); + +module.exports = path.AsyncDisposableStack; diff --git a/node_modules/core-js/actual/async-disposable-stack/index.js b/node_modules/core-js/actual/async-disposable-stack/index.js new file mode 100644 index 0000000..b8b56dd --- /dev/null +++ b/node_modules/core-js/actual/async-disposable-stack/index.js @@ -0,0 +1,12 @@ +'use strict'; +require('../../modules/es.error.cause'); +require('../../modules/es.error.to-string'); +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.suppressed-error.constructor'); +require('../../modules/esnext.async-disposable-stack.constructor'); +require('../../modules/esnext.async-iterator.async-dispose'); +require('../../modules/esnext.iterator.dispose'); +var path = require('../../internals/path'); + +module.exports = path.AsyncDisposableStack; diff --git a/node_modules/core-js/actual/async-iterator/async-dispose.js b/node_modules/core-js/actual/async-iterator/async-dispose.js new file mode 100644 index 0000000..8513ef3 --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/async-dispose.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.async-dispose'); diff --git a/node_modules/core-js/actual/async-iterator/drop.js b/node_modules/core-js/actual/async-iterator/drop.js new file mode 100644 index 0000000..e38788f --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/drop.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.drop'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('AsyncIterator', 'drop'); diff --git a/node_modules/core-js/actual/async-iterator/every.js b/node_modules/core-js/actual/async-iterator/every.js new file mode 100644 index 0000000..57ef76e --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/every.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.every'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('AsyncIterator', 'every'); diff --git a/node_modules/core-js/actual/async-iterator/filter.js b/node_modules/core-js/actual/async-iterator/filter.js new file mode 100644 index 0000000..6ca50b1 --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/filter.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.filter'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('AsyncIterator', 'filter'); diff --git a/node_modules/core-js/actual/async-iterator/find.js b/node_modules/core-js/actual/async-iterator/find.js new file mode 100644 index 0000000..ed47bae --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/find.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.find'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('AsyncIterator', 'find'); diff --git a/node_modules/core-js/actual/async-iterator/flat-map.js b/node_modules/core-js/actual/async-iterator/flat-map.js new file mode 100644 index 0000000..97c2d18 --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/flat-map.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.flat-map'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('AsyncIterator', 'flatMap'); diff --git a/node_modules/core-js/actual/async-iterator/for-each.js b/node_modules/core-js/actual/async-iterator/for-each.js new file mode 100644 index 0000000..9f2be34 --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/for-each.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.for-each'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('AsyncIterator', 'forEach'); diff --git a/node_modules/core-js/actual/async-iterator/from.js b/node_modules/core-js/actual/async-iterator/from.js new file mode 100644 index 0000000..e8471c1 --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/from.js @@ -0,0 +1,23 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.drop'); +require('../../modules/esnext.async-iterator.every'); +require('../../modules/esnext.async-iterator.filter'); +require('../../modules/esnext.async-iterator.find'); +require('../../modules/esnext.async-iterator.flat-map'); +require('../../modules/esnext.async-iterator.for-each'); +require('../../modules/esnext.async-iterator.from'); +require('../../modules/esnext.async-iterator.map'); +require('../../modules/esnext.async-iterator.reduce'); +require('../../modules/esnext.async-iterator.some'); +require('../../modules/esnext.async-iterator.take'); +require('../../modules/esnext.async-iterator.to-array'); +require('../../modules/web.dom-collections.iterator'); + +var path = require('../../internals/path'); + +module.exports = path.AsyncIterator.from; diff --git a/node_modules/core-js/actual/async-iterator/index.js b/node_modules/core-js/actual/async-iterator/index.js new file mode 100644 index 0000000..2c85f87 --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/index.js @@ -0,0 +1,24 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.async-dispose'); +require('../../modules/esnext.async-iterator.drop'); +require('../../modules/esnext.async-iterator.every'); +require('../../modules/esnext.async-iterator.filter'); +require('../../modules/esnext.async-iterator.find'); +require('../../modules/esnext.async-iterator.flat-map'); +require('../../modules/esnext.async-iterator.for-each'); +require('../../modules/esnext.async-iterator.from'); +require('../../modules/esnext.async-iterator.map'); +require('../../modules/esnext.async-iterator.reduce'); +require('../../modules/esnext.async-iterator.some'); +require('../../modules/esnext.async-iterator.take'); +require('../../modules/esnext.async-iterator.to-array'); +require('../../modules/web.dom-collections.iterator'); + +var path = require('../../internals/path'); + +module.exports = path.AsyncIterator; diff --git a/node_modules/core-js/actual/async-iterator/map.js b/node_modules/core-js/actual/async-iterator/map.js new file mode 100644 index 0000000..503762d --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/map.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.map'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('AsyncIterator', 'map'); diff --git a/node_modules/core-js/actual/async-iterator/reduce.js b/node_modules/core-js/actual/async-iterator/reduce.js new file mode 100644 index 0000000..07d122c --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/reduce.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.reduce'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('AsyncIterator', 'reduce'); diff --git a/node_modules/core-js/actual/async-iterator/some.js b/node_modules/core-js/actual/async-iterator/some.js new file mode 100644 index 0000000..cb0612a --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/some.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.some'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('AsyncIterator', 'some'); diff --git a/node_modules/core-js/actual/async-iterator/take.js b/node_modules/core-js/actual/async-iterator/take.js new file mode 100644 index 0000000..318528a --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/take.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.take'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('AsyncIterator', 'take'); diff --git a/node_modules/core-js/actual/async-iterator/to-array.js b/node_modules/core-js/actual/async-iterator/to-array.js new file mode 100644 index 0000000..90abd70 --- /dev/null +++ b/node_modules/core-js/actual/async-iterator/to-array.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.to-array'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('AsyncIterator', 'toArray'); diff --git a/node_modules/core-js/actual/atob.js b/node_modules/core-js/actual/atob.js new file mode 100644 index 0000000..ec90d10 --- /dev/null +++ b/node_modules/core-js/actual/atob.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/atob'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/btoa.js b/node_modules/core-js/actual/btoa.js new file mode 100644 index 0000000..681dcee --- /dev/null +++ b/node_modules/core-js/actual/btoa.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/btoa'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/clear-immediate.js b/node_modules/core-js/actual/clear-immediate.js new file mode 100644 index 0000000..c9445e0 --- /dev/null +++ b/node_modules/core-js/actual/clear-immediate.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/clear-immediate'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/data-view/get-float16.js b/node_modules/core-js/actual/data-view/get-float16.js new file mode 100644 index 0000000..3c12bb2 --- /dev/null +++ b/node_modules/core-js/actual/data-view/get-float16.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.data-view.get-float16'); diff --git a/node_modules/core-js/actual/data-view/index.js b/node_modules/core-js/actual/data-view/index.js new file mode 100644 index 0000000..732555e --- /dev/null +++ b/node_modules/core-js/actual/data-view/index.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../stable/data-view'); +require('../../modules/esnext.data-view.get-float16'); +require('../../modules/esnext.data-view.set-float16'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/data-view/set-float16.js b/node_modules/core-js/actual/data-view/set-float16.js new file mode 100644 index 0000000..e238839 --- /dev/null +++ b/node_modules/core-js/actual/data-view/set-float16.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.data-view.set-float16'); diff --git a/node_modules/core-js/actual/date/get-year.js b/node_modules/core-js/actual/date/get-year.js new file mode 100644 index 0000000..b4eff1f --- /dev/null +++ b/node_modules/core-js/actual/date/get-year.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/date/get-year'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/date/index.js b/node_modules/core-js/actual/date/index.js new file mode 100644 index 0000000..270b6e8 --- /dev/null +++ b/node_modules/core-js/actual/date/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/date'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/date/now.js b/node_modules/core-js/actual/date/now.js new file mode 100644 index 0000000..f0ca2b6 --- /dev/null +++ b/node_modules/core-js/actual/date/now.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/date/now'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/date/set-year.js b/node_modules/core-js/actual/date/set-year.js new file mode 100644 index 0000000..d35ee3f --- /dev/null +++ b/node_modules/core-js/actual/date/set-year.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/date/set-year'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/date/to-gmt-string.js b/node_modules/core-js/actual/date/to-gmt-string.js new file mode 100644 index 0000000..cabf92e --- /dev/null +++ b/node_modules/core-js/actual/date/to-gmt-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/date/to-gmt-string'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/date/to-iso-string.js b/node_modules/core-js/actual/date/to-iso-string.js new file mode 100644 index 0000000..027ecdd --- /dev/null +++ b/node_modules/core-js/actual/date/to-iso-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/date/to-iso-string'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/date/to-json.js b/node_modules/core-js/actual/date/to-json.js new file mode 100644 index 0000000..72ce900 --- /dev/null +++ b/node_modules/core-js/actual/date/to-json.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/date/to-json'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/date/to-primitive.js b/node_modules/core-js/actual/date/to-primitive.js new file mode 100644 index 0000000..d85a5d2 --- /dev/null +++ b/node_modules/core-js/actual/date/to-primitive.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/date/to-primitive'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/date/to-string.js b/node_modules/core-js/actual/date/to-string.js new file mode 100644 index 0000000..e07e11a --- /dev/null +++ b/node_modules/core-js/actual/date/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/date/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/disposable-stack/constructor.js b/node_modules/core-js/actual/disposable-stack/constructor.js new file mode 100644 index 0000000..f9b8d38 --- /dev/null +++ b/node_modules/core-js/actual/disposable-stack/constructor.js @@ -0,0 +1,10 @@ +'use strict'; +require('../../modules/es.error.cause'); +require('../../modules/es.error.to-string'); +require('../../modules/es.object.to-string'); +require('../../modules/esnext.suppressed-error.constructor'); +require('../../modules/esnext.disposable-stack.constructor'); +require('../../modules/esnext.iterator.dispose'); +var path = require('../../internals/path'); + +module.exports = path.DisposableStack; diff --git a/node_modules/core-js/actual/disposable-stack/index.js b/node_modules/core-js/actual/disposable-stack/index.js new file mode 100644 index 0000000..f9b8d38 --- /dev/null +++ b/node_modules/core-js/actual/disposable-stack/index.js @@ -0,0 +1,10 @@ +'use strict'; +require('../../modules/es.error.cause'); +require('../../modules/es.error.to-string'); +require('../../modules/es.object.to-string'); +require('../../modules/esnext.suppressed-error.constructor'); +require('../../modules/esnext.disposable-stack.constructor'); +require('../../modules/esnext.iterator.dispose'); +var path = require('../../internals/path'); + +module.exports = path.DisposableStack; diff --git a/node_modules/core-js/actual/dom-collections/for-each.js b/node_modules/core-js/actual/dom-collections/for-each.js new file mode 100644 index 0000000..379a13c --- /dev/null +++ b/node_modules/core-js/actual/dom-collections/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/dom-collections/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/dom-collections/index.js b/node_modules/core-js/actual/dom-collections/index.js new file mode 100644 index 0000000..535ba24 --- /dev/null +++ b/node_modules/core-js/actual/dom-collections/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/dom-collections'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/dom-collections/iterator.js b/node_modules/core-js/actual/dom-collections/iterator.js new file mode 100644 index 0000000..659a6f2 --- /dev/null +++ b/node_modules/core-js/actual/dom-collections/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/dom-collections/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/dom-exception/constructor.js b/node_modules/core-js/actual/dom-exception/constructor.js new file mode 100644 index 0000000..0efde7c --- /dev/null +++ b/node_modules/core-js/actual/dom-exception/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/dom-exception/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/dom-exception/index.js b/node_modules/core-js/actual/dom-exception/index.js new file mode 100644 index 0000000..a5a30fb --- /dev/null +++ b/node_modules/core-js/actual/dom-exception/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/dom-exception'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/dom-exception/to-string-tag.js b/node_modules/core-js/actual/dom-exception/to-string-tag.js new file mode 100644 index 0000000..7230555 --- /dev/null +++ b/node_modules/core-js/actual/dom-exception/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/dom-exception/to-string-tag'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/error/constructor.js b/node_modules/core-js/actual/error/constructor.js new file mode 100644 index 0000000..6fe4e88 --- /dev/null +++ b/node_modules/core-js/actual/error/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/error/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/error/index.js b/node_modules/core-js/actual/error/index.js new file mode 100644 index 0000000..7d3ad1c --- /dev/null +++ b/node_modules/core-js/actual/error/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/error'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/error/to-string.js b/node_modules/core-js/actual/error/to-string.js new file mode 100644 index 0000000..8a8032f --- /dev/null +++ b/node_modules/core-js/actual/error/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/error/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/escape.js b/node_modules/core-js/actual/escape.js new file mode 100644 index 0000000..2d03968 --- /dev/null +++ b/node_modules/core-js/actual/escape.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/escape'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/function/bind.js b/node_modules/core-js/actual/function/bind.js new file mode 100644 index 0000000..510ca61 --- /dev/null +++ b/node_modules/core-js/actual/function/bind.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/function/bind'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/function/has-instance.js b/node_modules/core-js/actual/function/has-instance.js new file mode 100644 index 0000000..b2a802d --- /dev/null +++ b/node_modules/core-js/actual/function/has-instance.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/function/has-instance'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/function/index.js b/node_modules/core-js/actual/function/index.js new file mode 100644 index 0000000..d3f8885 --- /dev/null +++ b/node_modules/core-js/actual/function/index.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/function'); +require('../../modules/esnext.function.metadata'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/function/metadata.js b/node_modules/core-js/actual/function/metadata.js new file mode 100644 index 0000000..63c5bba --- /dev/null +++ b/node_modules/core-js/actual/function/metadata.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/esnext.function.metadata'); + +module.exports = null; diff --git a/node_modules/core-js/actual/function/name.js b/node_modules/core-js/actual/function/name.js new file mode 100644 index 0000000..8ca1657 --- /dev/null +++ b/node_modules/core-js/actual/function/name.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/function/name'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/function/virtual/bind.js b/node_modules/core-js/actual/function/virtual/bind.js new file mode 100644 index 0000000..03e8ccc --- /dev/null +++ b/node_modules/core-js/actual/function/virtual/bind.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/function/virtual/bind'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/function/virtual/index.js b/node_modules/core-js/actual/function/virtual/index.js new file mode 100644 index 0000000..b190d98 --- /dev/null +++ b/node_modules/core-js/actual/function/virtual/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/function/virtual'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/get-iterator-method.js b/node_modules/core-js/actual/get-iterator-method.js new file mode 100644 index 0000000..bef996b --- /dev/null +++ b/node_modules/core-js/actual/get-iterator-method.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/get-iterator-method'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/get-iterator.js b/node_modules/core-js/actual/get-iterator.js new file mode 100644 index 0000000..34665e8 --- /dev/null +++ b/node_modules/core-js/actual/get-iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/get-iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/global-this.js b/node_modules/core-js/actual/global-this.js new file mode 100644 index 0000000..b7a5fd9 --- /dev/null +++ b/node_modules/core-js/actual/global-this.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/global-this'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/index.js b/node_modules/core-js/actual/index.js new file mode 100644 index 0000000..6c80f2b --- /dev/null +++ b/node_modules/core-js/actual/index.js @@ -0,0 +1,5 @@ +'use strict'; +require('../stable'); +require('../stage/3'); + +module.exports = require('../internals/path'); diff --git a/node_modules/core-js/actual/instance/at.js b/node_modules/core-js/actual/instance/at.js new file mode 100644 index 0000000..3a26078 --- /dev/null +++ b/node_modules/core-js/actual/instance/at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/at'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/bind.js b/node_modules/core-js/actual/instance/bind.js new file mode 100644 index 0000000..dbc4848 --- /dev/null +++ b/node_modules/core-js/actual/instance/bind.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/bind'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/code-point-at.js b/node_modules/core-js/actual/instance/code-point-at.js new file mode 100644 index 0000000..b4fc699 --- /dev/null +++ b/node_modules/core-js/actual/instance/code-point-at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/code-point-at'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/concat.js b/node_modules/core-js/actual/instance/concat.js new file mode 100644 index 0000000..c6f4020 --- /dev/null +++ b/node_modules/core-js/actual/instance/concat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/concat'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/copy-within.js b/node_modules/core-js/actual/instance/copy-within.js new file mode 100644 index 0000000..4029b41 --- /dev/null +++ b/node_modules/core-js/actual/instance/copy-within.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/copy-within'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/ends-with.js b/node_modules/core-js/actual/instance/ends-with.js new file mode 100644 index 0000000..ea42c98 --- /dev/null +++ b/node_modules/core-js/actual/instance/ends-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/ends-with'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/entries.js b/node_modules/core-js/actual/instance/entries.js new file mode 100644 index 0000000..e5fc8bc --- /dev/null +++ b/node_modules/core-js/actual/instance/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/every.js b/node_modules/core-js/actual/instance/every.js new file mode 100644 index 0000000..78de3ed --- /dev/null +++ b/node_modules/core-js/actual/instance/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/every'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/fill.js b/node_modules/core-js/actual/instance/fill.js new file mode 100644 index 0000000..20c30b6 --- /dev/null +++ b/node_modules/core-js/actual/instance/fill.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/fill'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/filter.js b/node_modules/core-js/actual/instance/filter.js new file mode 100644 index 0000000..986aebe --- /dev/null +++ b/node_modules/core-js/actual/instance/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/find-index.js b/node_modules/core-js/actual/instance/find-index.js new file mode 100644 index 0000000..a395e93 --- /dev/null +++ b/node_modules/core-js/actual/instance/find-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/find-index'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/find-last-index.js b/node_modules/core-js/actual/instance/find-last-index.js new file mode 100644 index 0000000..4c7cfcb --- /dev/null +++ b/node_modules/core-js/actual/instance/find-last-index.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/find-last-index'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.findLastIndex; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.findLastIndex) ? method : own; +}; diff --git a/node_modules/core-js/actual/instance/find-last.js b/node_modules/core-js/actual/instance/find-last.js new file mode 100644 index 0000000..7d30e0b --- /dev/null +++ b/node_modules/core-js/actual/instance/find-last.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/find-last'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.findLast; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.findLast) ? method : own; +}; diff --git a/node_modules/core-js/actual/instance/find.js b/node_modules/core-js/actual/instance/find.js new file mode 100644 index 0000000..1b6457a --- /dev/null +++ b/node_modules/core-js/actual/instance/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/find'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/flags.js b/node_modules/core-js/actual/instance/flags.js new file mode 100644 index 0000000..b932b41 --- /dev/null +++ b/node_modules/core-js/actual/instance/flags.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/flags'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/flat-map.js b/node_modules/core-js/actual/instance/flat-map.js new file mode 100644 index 0000000..9d1187e --- /dev/null +++ b/node_modules/core-js/actual/instance/flat-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/flat-map'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/flat.js b/node_modules/core-js/actual/instance/flat.js new file mode 100644 index 0000000..46ca8d6 --- /dev/null +++ b/node_modules/core-js/actual/instance/flat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/flat'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/for-each.js b/node_modules/core-js/actual/instance/for-each.js new file mode 100644 index 0000000..5dd1750 --- /dev/null +++ b/node_modules/core-js/actual/instance/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/group-by-to-map.js b/node_modules/core-js/actual/instance/group-by-to-map.js new file mode 100644 index 0000000..3786d42 --- /dev/null +++ b/node_modules/core-js/actual/instance/group-by-to-map.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/group-by-to-map'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.groupByToMap; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.groupByToMap) ? method : own; +}; diff --git a/node_modules/core-js/actual/instance/group-by.js b/node_modules/core-js/actual/instance/group-by.js new file mode 100644 index 0000000..2d52f6e --- /dev/null +++ b/node_modules/core-js/actual/instance/group-by.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/group-by'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.groupBy; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.groupBy) ? method : own; +}; diff --git a/node_modules/core-js/actual/instance/group-to-map.js b/node_modules/core-js/actual/instance/group-to-map.js new file mode 100644 index 0000000..627a20e --- /dev/null +++ b/node_modules/core-js/actual/instance/group-to-map.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/group-to-map'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.groupToMap; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.groupToMap) ? method : own; +}; diff --git a/node_modules/core-js/actual/instance/group.js b/node_modules/core-js/actual/instance/group.js new file mode 100644 index 0000000..e2ec5d4 --- /dev/null +++ b/node_modules/core-js/actual/instance/group.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/group'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.group; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.group) ? method : own; +}; diff --git a/node_modules/core-js/actual/instance/includes.js b/node_modules/core-js/actual/instance/includes.js new file mode 100644 index 0000000..1a098ba --- /dev/null +++ b/node_modules/core-js/actual/instance/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/index-of.js b/node_modules/core-js/actual/instance/index-of.js new file mode 100644 index 0000000..b124eac --- /dev/null +++ b/node_modules/core-js/actual/instance/index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/is-well-formed.js b/node_modules/core-js/actual/instance/is-well-formed.js new file mode 100644 index 0000000..6735165 --- /dev/null +++ b/node_modules/core-js/actual/instance/is-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/is-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/keys.js b/node_modules/core-js/actual/instance/keys.js new file mode 100644 index 0000000..e7815a4 --- /dev/null +++ b/node_modules/core-js/actual/instance/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/last-index-of.js b/node_modules/core-js/actual/instance/last-index-of.js new file mode 100644 index 0000000..b7af419 --- /dev/null +++ b/node_modules/core-js/actual/instance/last-index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/last-index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/map.js b/node_modules/core-js/actual/instance/map.js new file mode 100644 index 0000000..47412e4 --- /dev/null +++ b/node_modules/core-js/actual/instance/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/map'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/match-all.js b/node_modules/core-js/actual/instance/match-all.js new file mode 100644 index 0000000..7e5dc8f --- /dev/null +++ b/node_modules/core-js/actual/instance/match-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/match-all'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/pad-end.js b/node_modules/core-js/actual/instance/pad-end.js new file mode 100644 index 0000000..cdd5282 --- /dev/null +++ b/node_modules/core-js/actual/instance/pad-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/pad-end'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/pad-start.js b/node_modules/core-js/actual/instance/pad-start.js new file mode 100644 index 0000000..2ffcc71 --- /dev/null +++ b/node_modules/core-js/actual/instance/pad-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/pad-start'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/push.js b/node_modules/core-js/actual/instance/push.js new file mode 100644 index 0000000..643d7e5 --- /dev/null +++ b/node_modules/core-js/actual/instance/push.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/push'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/reduce-right.js b/node_modules/core-js/actual/instance/reduce-right.js new file mode 100644 index 0000000..f1094f2 --- /dev/null +++ b/node_modules/core-js/actual/instance/reduce-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/reduce-right'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/reduce.js b/node_modules/core-js/actual/instance/reduce.js new file mode 100644 index 0000000..c82bac0 --- /dev/null +++ b/node_modules/core-js/actual/instance/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/repeat.js b/node_modules/core-js/actual/instance/repeat.js new file mode 100644 index 0000000..08618ba --- /dev/null +++ b/node_modules/core-js/actual/instance/repeat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/repeat'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/replace-all.js b/node_modules/core-js/actual/instance/replace-all.js new file mode 100644 index 0000000..8343a9e --- /dev/null +++ b/node_modules/core-js/actual/instance/replace-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/replace-all'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/reverse.js b/node_modules/core-js/actual/instance/reverse.js new file mode 100644 index 0000000..d1e55bc --- /dev/null +++ b/node_modules/core-js/actual/instance/reverse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/reverse'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/slice.js b/node_modules/core-js/actual/instance/slice.js new file mode 100644 index 0000000..8573bc3 --- /dev/null +++ b/node_modules/core-js/actual/instance/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/some.js b/node_modules/core-js/actual/instance/some.js new file mode 100644 index 0000000..372f248 --- /dev/null +++ b/node_modules/core-js/actual/instance/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/some'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/sort.js b/node_modules/core-js/actual/instance/sort.js new file mode 100644 index 0000000..d99506e --- /dev/null +++ b/node_modules/core-js/actual/instance/sort.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/sort'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/splice.js b/node_modules/core-js/actual/instance/splice.js new file mode 100644 index 0000000..95c4841 --- /dev/null +++ b/node_modules/core-js/actual/instance/splice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/splice'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/starts-with.js b/node_modules/core-js/actual/instance/starts-with.js new file mode 100644 index 0000000..91b4142 --- /dev/null +++ b/node_modules/core-js/actual/instance/starts-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/starts-with'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/to-reversed.js b/node_modules/core-js/actual/instance/to-reversed.js new file mode 100644 index 0000000..5cfb459 --- /dev/null +++ b/node_modules/core-js/actual/instance/to-reversed.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/to-reversed'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.toReversed; + return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toReversed)) ? method : own; +}; diff --git a/node_modules/core-js/actual/instance/to-sorted.js b/node_modules/core-js/actual/instance/to-sorted.js new file mode 100644 index 0000000..a059c6f --- /dev/null +++ b/node_modules/core-js/actual/instance/to-sorted.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/to-sorted'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.toSorted; + return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toSorted)) ? method : own; +}; diff --git a/node_modules/core-js/actual/instance/to-spliced.js b/node_modules/core-js/actual/instance/to-spliced.js new file mode 100644 index 0000000..9e67474 --- /dev/null +++ b/node_modules/core-js/actual/instance/to-spliced.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/to-spliced'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.toSpliced; + return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toSpliced)) ? method : own; +}; diff --git a/node_modules/core-js/actual/instance/to-well-formed.js b/node_modules/core-js/actual/instance/to-well-formed.js new file mode 100644 index 0000000..3139f67 --- /dev/null +++ b/node_modules/core-js/actual/instance/to-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/to-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/trim-end.js b/node_modules/core-js/actual/instance/trim-end.js new file mode 100644 index 0000000..44d66a0 --- /dev/null +++ b/node_modules/core-js/actual/instance/trim-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/trim-end'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/trim-left.js b/node_modules/core-js/actual/instance/trim-left.js new file mode 100644 index 0000000..fc7e89a --- /dev/null +++ b/node_modules/core-js/actual/instance/trim-left.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/trim-left'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/trim-right.js b/node_modules/core-js/actual/instance/trim-right.js new file mode 100644 index 0000000..4d6ac08 --- /dev/null +++ b/node_modules/core-js/actual/instance/trim-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/trim-right'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/trim-start.js b/node_modules/core-js/actual/instance/trim-start.js new file mode 100644 index 0000000..9599f65 --- /dev/null +++ b/node_modules/core-js/actual/instance/trim-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/trim-start'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/trim.js b/node_modules/core-js/actual/instance/trim.js new file mode 100644 index 0000000..be937f3 --- /dev/null +++ b/node_modules/core-js/actual/instance/trim.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/trim'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/unshift.js b/node_modules/core-js/actual/instance/unshift.js new file mode 100644 index 0000000..99598d6 --- /dev/null +++ b/node_modules/core-js/actual/instance/unshift.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/unshift'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/values.js b/node_modules/core-js/actual/instance/values.js new file mode 100644 index 0000000..10d5e97 --- /dev/null +++ b/node_modules/core-js/actual/instance/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/instance/values'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/instance/with.js b/node_modules/core-js/actual/instance/with.js new file mode 100644 index 0000000..f3db9f4 --- /dev/null +++ b/node_modules/core-js/actual/instance/with.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/with'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it['with']; + return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype['with'])) ? method : own; +}; diff --git a/node_modules/core-js/actual/is-iterable.js b/node_modules/core-js/actual/is-iterable.js new file mode 100644 index 0000000..aaaee55 --- /dev/null +++ b/node_modules/core-js/actual/is-iterable.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/is-iterable'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/iterator/dispose.js b/node_modules/core-js/actual/iterator/dispose.js new file mode 100644 index 0000000..4fbee00 --- /dev/null +++ b/node_modules/core-js/actual/iterator/dispose.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.iterator.dispose'); diff --git a/node_modules/core-js/actual/iterator/drop.js b/node_modules/core-js/actual/iterator/drop.js new file mode 100644 index 0000000..01c4d0a --- /dev/null +++ b/node_modules/core-js/actual/iterator/drop.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.drop'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'drop'); diff --git a/node_modules/core-js/actual/iterator/every.js b/node_modules/core-js/actual/iterator/every.js new file mode 100644 index 0000000..a73c6d2 --- /dev/null +++ b/node_modules/core-js/actual/iterator/every.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.every'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'every'); diff --git a/node_modules/core-js/actual/iterator/filter.js b/node_modules/core-js/actual/iterator/filter.js new file mode 100644 index 0000000..8bd6b1a --- /dev/null +++ b/node_modules/core-js/actual/iterator/filter.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.filter'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'filter'); diff --git a/node_modules/core-js/actual/iterator/find.js b/node_modules/core-js/actual/iterator/find.js new file mode 100644 index 0000000..bdd7ec8 --- /dev/null +++ b/node_modules/core-js/actual/iterator/find.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.find'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'find'); diff --git a/node_modules/core-js/actual/iterator/flat-map.js b/node_modules/core-js/actual/iterator/flat-map.js new file mode 100644 index 0000000..6c571d7 --- /dev/null +++ b/node_modules/core-js/actual/iterator/flat-map.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.flat-map'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'flatMap'); diff --git a/node_modules/core-js/actual/iterator/for-each.js b/node_modules/core-js/actual/iterator/for-each.js new file mode 100644 index 0000000..8f9f0e5 --- /dev/null +++ b/node_modules/core-js/actual/iterator/for-each.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.for-each'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'forEach'); diff --git a/node_modules/core-js/actual/iterator/from.js b/node_modules/core-js/actual/iterator/from.js new file mode 100644 index 0000000..5a49ec4 --- /dev/null +++ b/node_modules/core-js/actual/iterator/from.js @@ -0,0 +1,25 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.dispose'); +require('../../modules/esnext.iterator.drop'); +require('../../modules/esnext.iterator.every'); +require('../../modules/esnext.iterator.filter'); +require('../../modules/esnext.iterator.find'); +require('../../modules/esnext.iterator.flat-map'); +require('../../modules/esnext.iterator.for-each'); +require('../../modules/esnext.iterator.from'); +require('../../modules/esnext.iterator.map'); +require('../../modules/esnext.iterator.reduce'); +require('../../modules/esnext.iterator.some'); +require('../../modules/esnext.iterator.take'); +require('../../modules/esnext.iterator.to-array'); +require('../../modules/esnext.iterator.to-async'); +require('../../modules/web.dom-collections.iterator'); + +var path = require('../../internals/path'); + +module.exports = path.Iterator.from; diff --git a/node_modules/core-js/actual/iterator/index.js b/node_modules/core-js/actual/iterator/index.js new file mode 100644 index 0000000..83f2135 --- /dev/null +++ b/node_modules/core-js/actual/iterator/index.js @@ -0,0 +1,25 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.dispose'); +require('../../modules/esnext.iterator.drop'); +require('../../modules/esnext.iterator.every'); +require('../../modules/esnext.iterator.filter'); +require('../../modules/esnext.iterator.find'); +require('../../modules/esnext.iterator.flat-map'); +require('../../modules/esnext.iterator.for-each'); +require('../../modules/esnext.iterator.from'); +require('../../modules/esnext.iterator.map'); +require('../../modules/esnext.iterator.reduce'); +require('../../modules/esnext.iterator.some'); +require('../../modules/esnext.iterator.take'); +require('../../modules/esnext.iterator.to-array'); +require('../../modules/esnext.iterator.to-async'); +require('../../modules/web.dom-collections.iterator'); + +var path = require('../../internals/path'); + +module.exports = path.Iterator; diff --git a/node_modules/core-js/actual/iterator/map.js b/node_modules/core-js/actual/iterator/map.js new file mode 100644 index 0000000..5fceabf --- /dev/null +++ b/node_modules/core-js/actual/iterator/map.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.map'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'map'); diff --git a/node_modules/core-js/actual/iterator/reduce.js b/node_modules/core-js/actual/iterator/reduce.js new file mode 100644 index 0000000..6c956f8 --- /dev/null +++ b/node_modules/core-js/actual/iterator/reduce.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.reduce'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'reduce'); diff --git a/node_modules/core-js/actual/iterator/some.js b/node_modules/core-js/actual/iterator/some.js new file mode 100644 index 0000000..3251cd0 --- /dev/null +++ b/node_modules/core-js/actual/iterator/some.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.some'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'some'); diff --git a/node_modules/core-js/actual/iterator/take.js b/node_modules/core-js/actual/iterator/take.js new file mode 100644 index 0000000..8dbb1ef --- /dev/null +++ b/node_modules/core-js/actual/iterator/take.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.take'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'take'); diff --git a/node_modules/core-js/actual/iterator/to-array.js b/node_modules/core-js/actual/iterator/to-array.js new file mode 100644 index 0000000..c1acd1e --- /dev/null +++ b/node_modules/core-js/actual/iterator/to-array.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.to-array'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'toArray'); diff --git a/node_modules/core-js/actual/iterator/to-async.js b/node_modules/core-js/actual/iterator/to-async.js new file mode 100644 index 0000000..dc67a7e --- /dev/null +++ b/node_modules/core-js/actual/iterator/to-async.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.to-async'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'toAsync'); diff --git a/node_modules/core-js/actual/json/index.js b/node_modules/core-js/actual/json/index.js new file mode 100644 index 0000000..6061c65 --- /dev/null +++ b/node_modules/core-js/actual/json/index.js @@ -0,0 +1,10 @@ +'use strict'; +var parent = require('../../stable/json'); +require('../../modules/es.object.create'); +require('../../modules/es.object.freeze'); +require('../../modules/es.object.keys'); +require('../../modules/esnext.json.is-raw-json'); +require('../../modules/esnext.json.parse'); +require('../../modules/esnext.json.raw-json'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/json/is-raw-json.js b/node_modules/core-js/actual/json/is-raw-json.js new file mode 100644 index 0000000..a0d5a44 --- /dev/null +++ b/node_modules/core-js/actual/json/is-raw-json.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.json.is-raw-json'); +var path = require('../../internals/path'); + +module.exports = path.JSON.isRawJSON; diff --git a/node_modules/core-js/actual/json/parse.js b/node_modules/core-js/actual/json/parse.js new file mode 100644 index 0000000..b2ae469 --- /dev/null +++ b/node_modules/core-js/actual/json/parse.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.object.keys'); +require('../../modules/esnext.json.parse'); +var path = require('../../internals/path'); + +module.exports = path.JSON.parse; diff --git a/node_modules/core-js/actual/json/raw-json.js b/node_modules/core-js/actual/json/raw-json.js new file mode 100644 index 0000000..5a28569 --- /dev/null +++ b/node_modules/core-js/actual/json/raw-json.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.object.create'); +require('../../modules/es.object.freeze'); +require('../../modules/esnext.json.raw-json'); +var path = require('../../internals/path'); + +module.exports = path.JSON.rawJSON; diff --git a/node_modules/core-js/actual/json/stringify.js b/node_modules/core-js/actual/json/stringify.js new file mode 100644 index 0000000..a28b682 --- /dev/null +++ b/node_modules/core-js/actual/json/stringify.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/json/stringify'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/json/to-string-tag.js b/node_modules/core-js/actual/json/to-string-tag.js new file mode 100644 index 0000000..50ae57a --- /dev/null +++ b/node_modules/core-js/actual/json/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/json/to-string-tag'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/map/group-by.js b/node_modules/core-js/actual/map/group-by.js new file mode 100644 index 0000000..fdc4be8 --- /dev/null +++ b/node_modules/core-js/actual/map/group-by.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/map/group-by'); +require('../../modules/esnext.map.group-by'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/map/index.js b/node_modules/core-js/actual/map/index.js new file mode 100644 index 0000000..3663acf --- /dev/null +++ b/node_modules/core-js/actual/map/index.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/map'); +require('../../modules/esnext.map.group-by'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/acosh.js b/node_modules/core-js/actual/math/acosh.js new file mode 100644 index 0000000..77c94ab --- /dev/null +++ b/node_modules/core-js/actual/math/acosh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/acosh'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/asinh.js b/node_modules/core-js/actual/math/asinh.js new file mode 100644 index 0000000..eb45ca4 --- /dev/null +++ b/node_modules/core-js/actual/math/asinh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/asinh'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/atanh.js b/node_modules/core-js/actual/math/atanh.js new file mode 100644 index 0000000..257d042 --- /dev/null +++ b/node_modules/core-js/actual/math/atanh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/atanh'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/cbrt.js b/node_modules/core-js/actual/math/cbrt.js new file mode 100644 index 0000000..b2997fb --- /dev/null +++ b/node_modules/core-js/actual/math/cbrt.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/cbrt'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/clz32.js b/node_modules/core-js/actual/math/clz32.js new file mode 100644 index 0000000..47e999e --- /dev/null +++ b/node_modules/core-js/actual/math/clz32.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/clz32'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/cosh.js b/node_modules/core-js/actual/math/cosh.js new file mode 100644 index 0000000..fdb381e --- /dev/null +++ b/node_modules/core-js/actual/math/cosh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/cosh'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/expm1.js b/node_modules/core-js/actual/math/expm1.js new file mode 100644 index 0000000..9ffc0c1 --- /dev/null +++ b/node_modules/core-js/actual/math/expm1.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/expm1'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/f16round.js b/node_modules/core-js/actual/math/f16round.js new file mode 100644 index 0000000..f16f880 --- /dev/null +++ b/node_modules/core-js/actual/math/f16round.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.math.f16round'); +var path = require('../../internals/path'); + +module.exports = path.Math.f16round; diff --git a/node_modules/core-js/actual/math/fround.js b/node_modules/core-js/actual/math/fround.js new file mode 100644 index 0000000..6775a3c --- /dev/null +++ b/node_modules/core-js/actual/math/fround.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/fround'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/hypot.js b/node_modules/core-js/actual/math/hypot.js new file mode 100644 index 0000000..e89c885 --- /dev/null +++ b/node_modules/core-js/actual/math/hypot.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/hypot'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/imul.js b/node_modules/core-js/actual/math/imul.js new file mode 100644 index 0000000..aa22b08 --- /dev/null +++ b/node_modules/core-js/actual/math/imul.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/imul'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/index.js b/node_modules/core-js/actual/math/index.js new file mode 100644 index 0000000..2ff4632 --- /dev/null +++ b/node_modules/core-js/actual/math/index.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/math'); +require('../../modules/esnext.math.f16round'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/log10.js b/node_modules/core-js/actual/math/log10.js new file mode 100644 index 0000000..d0522a6 --- /dev/null +++ b/node_modules/core-js/actual/math/log10.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/log10'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/log1p.js b/node_modules/core-js/actual/math/log1p.js new file mode 100644 index 0000000..f8b6a71 --- /dev/null +++ b/node_modules/core-js/actual/math/log1p.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/log1p'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/log2.js b/node_modules/core-js/actual/math/log2.js new file mode 100644 index 0000000..960932a --- /dev/null +++ b/node_modules/core-js/actual/math/log2.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/log2'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/sign.js b/node_modules/core-js/actual/math/sign.js new file mode 100644 index 0000000..1ec5634 --- /dev/null +++ b/node_modules/core-js/actual/math/sign.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/sign'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/sinh.js b/node_modules/core-js/actual/math/sinh.js new file mode 100644 index 0000000..73db2e7 --- /dev/null +++ b/node_modules/core-js/actual/math/sinh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/sinh'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/tanh.js b/node_modules/core-js/actual/math/tanh.js new file mode 100644 index 0000000..ca38467 --- /dev/null +++ b/node_modules/core-js/actual/math/tanh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/tanh'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/to-string-tag.js b/node_modules/core-js/actual/math/to-string-tag.js new file mode 100644 index 0000000..a8788f8 --- /dev/null +++ b/node_modules/core-js/actual/math/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/to-string-tag'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/math/trunc.js b/node_modules/core-js/actual/math/trunc.js new file mode 100644 index 0000000..3396343 --- /dev/null +++ b/node_modules/core-js/actual/math/trunc.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/math/trunc'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/constructor.js b/node_modules/core-js/actual/number/constructor.js new file mode 100644 index 0000000..c6050e6 --- /dev/null +++ b/node_modules/core-js/actual/number/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/epsilon.js b/node_modules/core-js/actual/number/epsilon.js new file mode 100644 index 0000000..caa8083 --- /dev/null +++ b/node_modules/core-js/actual/number/epsilon.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number/epsilon'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/index.js b/node_modules/core-js/actual/number/index.js new file mode 100644 index 0000000..7166da0 --- /dev/null +++ b/node_modules/core-js/actual/number/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/is-finite.js b/node_modules/core-js/actual/number/is-finite.js new file mode 100644 index 0000000..4d07a04 --- /dev/null +++ b/node_modules/core-js/actual/number/is-finite.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number/is-finite'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/is-integer.js b/node_modules/core-js/actual/number/is-integer.js new file mode 100644 index 0000000..7b39d4a --- /dev/null +++ b/node_modules/core-js/actual/number/is-integer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number/is-integer'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/is-nan.js b/node_modules/core-js/actual/number/is-nan.js new file mode 100644 index 0000000..669bcdc --- /dev/null +++ b/node_modules/core-js/actual/number/is-nan.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number/is-nan'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/is-safe-integer.js b/node_modules/core-js/actual/number/is-safe-integer.js new file mode 100644 index 0000000..6c569dc --- /dev/null +++ b/node_modules/core-js/actual/number/is-safe-integer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number/is-safe-integer'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/max-safe-integer.js b/node_modules/core-js/actual/number/max-safe-integer.js new file mode 100644 index 0000000..2c3a264 --- /dev/null +++ b/node_modules/core-js/actual/number/max-safe-integer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number/max-safe-integer'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/min-safe-integer.js b/node_modules/core-js/actual/number/min-safe-integer.js new file mode 100644 index 0000000..378c27c --- /dev/null +++ b/node_modules/core-js/actual/number/min-safe-integer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number/min-safe-integer'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/parse-float.js b/node_modules/core-js/actual/number/parse-float.js new file mode 100644 index 0000000..5164e3c --- /dev/null +++ b/node_modules/core-js/actual/number/parse-float.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number/parse-float'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/parse-int.js b/node_modules/core-js/actual/number/parse-int.js new file mode 100644 index 0000000..88c334a --- /dev/null +++ b/node_modules/core-js/actual/number/parse-int.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number/parse-int'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/to-exponential.js b/node_modules/core-js/actual/number/to-exponential.js new file mode 100644 index 0000000..31f3362 --- /dev/null +++ b/node_modules/core-js/actual/number/to-exponential.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number/to-exponential'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/to-fixed.js b/node_modules/core-js/actual/number/to-fixed.js new file mode 100644 index 0000000..918a91a --- /dev/null +++ b/node_modules/core-js/actual/number/to-fixed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number/to-fixed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/to-precision.js b/node_modules/core-js/actual/number/to-precision.js new file mode 100644 index 0000000..5d6f7bc --- /dev/null +++ b/node_modules/core-js/actual/number/to-precision.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/number/to-precision'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/virtual/index.js b/node_modules/core-js/actual/number/virtual/index.js new file mode 100644 index 0000000..02e5b8f --- /dev/null +++ b/node_modules/core-js/actual/number/virtual/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/number/virtual'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/virtual/to-exponential.js b/node_modules/core-js/actual/number/virtual/to-exponential.js new file mode 100644 index 0000000..0b782d9 --- /dev/null +++ b/node_modules/core-js/actual/number/virtual/to-exponential.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/number/virtual/to-exponential'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/virtual/to-fixed.js b/node_modules/core-js/actual/number/virtual/to-fixed.js new file mode 100644 index 0000000..8be480b --- /dev/null +++ b/node_modules/core-js/actual/number/virtual/to-fixed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/number/virtual/to-fixed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/number/virtual/to-precision.js b/node_modules/core-js/actual/number/virtual/to-precision.js new file mode 100644 index 0000000..ae96726 --- /dev/null +++ b/node_modules/core-js/actual/number/virtual/to-precision.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/number/virtual/to-precision'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/assign.js b/node_modules/core-js/actual/object/assign.js new file mode 100644 index 0000000..714d1d8 --- /dev/null +++ b/node_modules/core-js/actual/object/assign.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/assign'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/create.js b/node_modules/core-js/actual/object/create.js new file mode 100644 index 0000000..4ae79ab --- /dev/null +++ b/node_modules/core-js/actual/object/create.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/create'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/define-getter.js b/node_modules/core-js/actual/object/define-getter.js new file mode 100644 index 0000000..5dee6d0 --- /dev/null +++ b/node_modules/core-js/actual/object/define-getter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/define-getter'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/define-properties.js b/node_modules/core-js/actual/object/define-properties.js new file mode 100644 index 0000000..7f78475 --- /dev/null +++ b/node_modules/core-js/actual/object/define-properties.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/define-properties'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/define-property.js b/node_modules/core-js/actual/object/define-property.js new file mode 100644 index 0000000..8f84eae --- /dev/null +++ b/node_modules/core-js/actual/object/define-property.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/define-property'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/define-setter.js b/node_modules/core-js/actual/object/define-setter.js new file mode 100644 index 0000000..d4e258e --- /dev/null +++ b/node_modules/core-js/actual/object/define-setter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/define-setter'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/entries.js b/node_modules/core-js/actual/object/entries.js new file mode 100644 index 0000000..15857c9 --- /dev/null +++ b/node_modules/core-js/actual/object/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/freeze.js b/node_modules/core-js/actual/object/freeze.js new file mode 100644 index 0000000..896dccb --- /dev/null +++ b/node_modules/core-js/actual/object/freeze.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/freeze'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/from-entries.js b/node_modules/core-js/actual/object/from-entries.js new file mode 100644 index 0000000..0ef1d53 --- /dev/null +++ b/node_modules/core-js/actual/object/from-entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/from-entries'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/get-own-property-descriptor.js b/node_modules/core-js/actual/object/get-own-property-descriptor.js new file mode 100644 index 0000000..7062506 --- /dev/null +++ b/node_modules/core-js/actual/object/get-own-property-descriptor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/get-own-property-descriptor'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/get-own-property-descriptors.js b/node_modules/core-js/actual/object/get-own-property-descriptors.js new file mode 100644 index 0000000..8a95172 --- /dev/null +++ b/node_modules/core-js/actual/object/get-own-property-descriptors.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/get-own-property-descriptors'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/get-own-property-names.js b/node_modules/core-js/actual/object/get-own-property-names.js new file mode 100644 index 0000000..990e5dc --- /dev/null +++ b/node_modules/core-js/actual/object/get-own-property-names.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/get-own-property-names'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/get-own-property-symbols.js b/node_modules/core-js/actual/object/get-own-property-symbols.js new file mode 100644 index 0000000..6c468cb --- /dev/null +++ b/node_modules/core-js/actual/object/get-own-property-symbols.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/get-own-property-symbols'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/get-prototype-of.js b/node_modules/core-js/actual/object/get-prototype-of.js new file mode 100644 index 0000000..37d72fd --- /dev/null +++ b/node_modules/core-js/actual/object/get-prototype-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/get-prototype-of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/group-by.js b/node_modules/core-js/actual/object/group-by.js new file mode 100644 index 0000000..71b1245 --- /dev/null +++ b/node_modules/core-js/actual/object/group-by.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/object/group-by'); +require('../../modules/esnext.object.group-by'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/has-own.js b/node_modules/core-js/actual/object/has-own.js new file mode 100644 index 0000000..c2c8615 --- /dev/null +++ b/node_modules/core-js/actual/object/has-own.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/has-own'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/index.js b/node_modules/core-js/actual/object/index.js new file mode 100644 index 0000000..4123d83 --- /dev/null +++ b/node_modules/core-js/actual/object/index.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/object'); +require('../../modules/esnext.object.group-by'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/is-extensible.js b/node_modules/core-js/actual/object/is-extensible.js new file mode 100644 index 0000000..bd9fd8e --- /dev/null +++ b/node_modules/core-js/actual/object/is-extensible.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/is-extensible'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/is-frozen.js b/node_modules/core-js/actual/object/is-frozen.js new file mode 100644 index 0000000..1f84fe6 --- /dev/null +++ b/node_modules/core-js/actual/object/is-frozen.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/is-frozen'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/is-sealed.js b/node_modules/core-js/actual/object/is-sealed.js new file mode 100644 index 0000000..67bdd67 --- /dev/null +++ b/node_modules/core-js/actual/object/is-sealed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/is-sealed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/is.js b/node_modules/core-js/actual/object/is.js new file mode 100644 index 0000000..06ac44b --- /dev/null +++ b/node_modules/core-js/actual/object/is.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/is'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/keys.js b/node_modules/core-js/actual/object/keys.js new file mode 100644 index 0000000..8ee488e --- /dev/null +++ b/node_modules/core-js/actual/object/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/lookup-getter.js b/node_modules/core-js/actual/object/lookup-getter.js new file mode 100644 index 0000000..3b7753b --- /dev/null +++ b/node_modules/core-js/actual/object/lookup-getter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/lookup-getter'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/lookup-setter.js b/node_modules/core-js/actual/object/lookup-setter.js new file mode 100644 index 0000000..b00be37 --- /dev/null +++ b/node_modules/core-js/actual/object/lookup-setter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/lookup-setter'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/prevent-extensions.js b/node_modules/core-js/actual/object/prevent-extensions.js new file mode 100644 index 0000000..a85d829 --- /dev/null +++ b/node_modules/core-js/actual/object/prevent-extensions.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/prevent-extensions'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/proto.js b/node_modules/core-js/actual/object/proto.js new file mode 100644 index 0000000..a35edc5 --- /dev/null +++ b/node_modules/core-js/actual/object/proto.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/proto'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/seal.js b/node_modules/core-js/actual/object/seal.js new file mode 100644 index 0000000..7464ccd --- /dev/null +++ b/node_modules/core-js/actual/object/seal.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/seal'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/set-prototype-of.js b/node_modules/core-js/actual/object/set-prototype-of.js new file mode 100644 index 0000000..17dabe8 --- /dev/null +++ b/node_modules/core-js/actual/object/set-prototype-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/set-prototype-of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/to-string.js b/node_modules/core-js/actual/object/to-string.js new file mode 100644 index 0000000..caaec01 --- /dev/null +++ b/node_modules/core-js/actual/object/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/object/values.js b/node_modules/core-js/actual/object/values.js new file mode 100644 index 0000000..36e8028 --- /dev/null +++ b/node_modules/core-js/actual/object/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/object/values'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/parse-float.js b/node_modules/core-js/actual/parse-float.js new file mode 100644 index 0000000..2733e70 --- /dev/null +++ b/node_modules/core-js/actual/parse-float.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/parse-float'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/parse-int.js b/node_modules/core-js/actual/parse-int.js new file mode 100644 index 0000000..0aefd41 --- /dev/null +++ b/node_modules/core-js/actual/parse-int.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/parse-int'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/promise/all-settled.js b/node_modules/core-js/actual/promise/all-settled.js new file mode 100644 index 0000000..e19dfcf --- /dev/null +++ b/node_modules/core-js/actual/promise/all-settled.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/promise/all-settled'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/promise/any.js b/node_modules/core-js/actual/promise/any.js new file mode 100644 index 0000000..1568a8f --- /dev/null +++ b/node_modules/core-js/actual/promise/any.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/promise/any'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/promise/finally.js b/node_modules/core-js/actual/promise/finally.js new file mode 100644 index 0000000..d6ec566 --- /dev/null +++ b/node_modules/core-js/actual/promise/finally.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/promise/finally'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/promise/index.js b/node_modules/core-js/actual/promise/index.js new file mode 100644 index 0000000..ddbb55e --- /dev/null +++ b/node_modules/core-js/actual/promise/index.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../stable/promise'); +require('../../modules/esnext.promise.try'); +require('../../modules/esnext.promise.with-resolvers'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/promise/try.js b/node_modules/core-js/actual/promise/try.js new file mode 100644 index 0000000..a35f233 --- /dev/null +++ b/node_modules/core-js/actual/promise/try.js @@ -0,0 +1,13 @@ +'use strict'; +require('../../modules/es.promise'); +require('../../modules/esnext.promise.try'); +var call = require('../../internals/function-call'); +var isCallable = require('../../internals/is-callable'); +var path = require('../../internals/path'); + +var Promise = path.Promise; +var promiseTry = Promise['try']; + +module.exports = { 'try': function (callbackfn) { + return call(promiseTry, isCallable(this) ? this : Promise, callbackfn); +} }['try']; diff --git a/node_modules/core-js/actual/promise/with-resolvers.js b/node_modules/core-js/actual/promise/with-resolvers.js new file mode 100644 index 0000000..92bf3c5 --- /dev/null +++ b/node_modules/core-js/actual/promise/with-resolvers.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../stable/promise/with-resolvers'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.promise.with-resolvers'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/queue-microtask.js b/node_modules/core-js/actual/queue-microtask.js new file mode 100644 index 0000000..0f10b0d --- /dev/null +++ b/node_modules/core-js/actual/queue-microtask.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/queue-microtask'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/apply.js b/node_modules/core-js/actual/reflect/apply.js new file mode 100644 index 0000000..62d9eb7 --- /dev/null +++ b/node_modules/core-js/actual/reflect/apply.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect/apply'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/construct.js b/node_modules/core-js/actual/reflect/construct.js new file mode 100644 index 0000000..f87a36e --- /dev/null +++ b/node_modules/core-js/actual/reflect/construct.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect/construct'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/define-property.js b/node_modules/core-js/actual/reflect/define-property.js new file mode 100644 index 0000000..bbc2016 --- /dev/null +++ b/node_modules/core-js/actual/reflect/define-property.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect/define-property'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/delete-property.js b/node_modules/core-js/actual/reflect/delete-property.js new file mode 100644 index 0000000..039d837 --- /dev/null +++ b/node_modules/core-js/actual/reflect/delete-property.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect/delete-property'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/get-own-property-descriptor.js b/node_modules/core-js/actual/reflect/get-own-property-descriptor.js new file mode 100644 index 0000000..3bd76f6 --- /dev/null +++ b/node_modules/core-js/actual/reflect/get-own-property-descriptor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect/get-own-property-descriptor'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/get-prototype-of.js b/node_modules/core-js/actual/reflect/get-prototype-of.js new file mode 100644 index 0000000..4fa6cc0 --- /dev/null +++ b/node_modules/core-js/actual/reflect/get-prototype-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect/get-prototype-of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/get.js b/node_modules/core-js/actual/reflect/get.js new file mode 100644 index 0000000..6181621 --- /dev/null +++ b/node_modules/core-js/actual/reflect/get.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect/get'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/has.js b/node_modules/core-js/actual/reflect/has.js new file mode 100644 index 0000000..758ac93 --- /dev/null +++ b/node_modules/core-js/actual/reflect/has.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect/has'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/index.js b/node_modules/core-js/actual/reflect/index.js new file mode 100644 index 0000000..60ed697 --- /dev/null +++ b/node_modules/core-js/actual/reflect/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/is-extensible.js b/node_modules/core-js/actual/reflect/is-extensible.js new file mode 100644 index 0000000..9be837a --- /dev/null +++ b/node_modules/core-js/actual/reflect/is-extensible.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect/is-extensible'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/own-keys.js b/node_modules/core-js/actual/reflect/own-keys.js new file mode 100644 index 0000000..03e8025 --- /dev/null +++ b/node_modules/core-js/actual/reflect/own-keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect/own-keys'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/prevent-extensions.js b/node_modules/core-js/actual/reflect/prevent-extensions.js new file mode 100644 index 0000000..63575dc --- /dev/null +++ b/node_modules/core-js/actual/reflect/prevent-extensions.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect/prevent-extensions'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/set-prototype-of.js b/node_modules/core-js/actual/reflect/set-prototype-of.js new file mode 100644 index 0000000..e67ce79 --- /dev/null +++ b/node_modules/core-js/actual/reflect/set-prototype-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect/set-prototype-of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/set.js b/node_modules/core-js/actual/reflect/set.js new file mode 100644 index 0000000..07d1cf8 --- /dev/null +++ b/node_modules/core-js/actual/reflect/set.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/reflect/set'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/reflect/to-string-tag.js b/node_modules/core-js/actual/reflect/to-string-tag.js new file mode 100644 index 0000000..3908aff --- /dev/null +++ b/node_modules/core-js/actual/reflect/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/es.reflect.to-string-tag'); + +module.exports = 'Reflect'; diff --git a/node_modules/core-js/actual/regexp/constructor.js b/node_modules/core-js/actual/regexp/constructor.js new file mode 100644 index 0000000..3bbfdb0 --- /dev/null +++ b/node_modules/core-js/actual/regexp/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/regexp/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/regexp/dot-all.js b/node_modules/core-js/actual/regexp/dot-all.js new file mode 100644 index 0000000..f087e21 --- /dev/null +++ b/node_modules/core-js/actual/regexp/dot-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/regexp/dot-all'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/regexp/escape.js b/node_modules/core-js/actual/regexp/escape.js new file mode 100644 index 0000000..983d260 --- /dev/null +++ b/node_modules/core-js/actual/regexp/escape.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.regexp.escape'); +var path = require('../../internals/path'); + +module.exports = path.RegExp.escape; diff --git a/node_modules/core-js/actual/regexp/flags.js b/node_modules/core-js/actual/regexp/flags.js new file mode 100644 index 0000000..a15eb25 --- /dev/null +++ b/node_modules/core-js/actual/regexp/flags.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/regexp/flags'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/regexp/index.js b/node_modules/core-js/actual/regexp/index.js new file mode 100644 index 0000000..ba369e0 --- /dev/null +++ b/node_modules/core-js/actual/regexp/index.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/regexp'); +require('../../modules/esnext.regexp.escape'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/regexp/match.js b/node_modules/core-js/actual/regexp/match.js new file mode 100644 index 0000000..b07f8a8 --- /dev/null +++ b/node_modules/core-js/actual/regexp/match.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/regexp/match'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/regexp/replace.js b/node_modules/core-js/actual/regexp/replace.js new file mode 100644 index 0000000..ba055ef --- /dev/null +++ b/node_modules/core-js/actual/regexp/replace.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/regexp/replace'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/regexp/search.js b/node_modules/core-js/actual/regexp/search.js new file mode 100644 index 0000000..291d14b --- /dev/null +++ b/node_modules/core-js/actual/regexp/search.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/regexp/search'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/regexp/split.js b/node_modules/core-js/actual/regexp/split.js new file mode 100644 index 0000000..08f81b3 --- /dev/null +++ b/node_modules/core-js/actual/regexp/split.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/regexp/split'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/regexp/sticky.js b/node_modules/core-js/actual/regexp/sticky.js new file mode 100644 index 0000000..5897934 --- /dev/null +++ b/node_modules/core-js/actual/regexp/sticky.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/regexp/sticky'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/regexp/test.js b/node_modules/core-js/actual/regexp/test.js new file mode 100644 index 0000000..68ea66f --- /dev/null +++ b/node_modules/core-js/actual/regexp/test.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/regexp/test'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/regexp/to-string.js b/node_modules/core-js/actual/regexp/to-string.js new file mode 100644 index 0000000..93d6a29 --- /dev/null +++ b/node_modules/core-js/actual/regexp/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/regexp/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/self.js b/node_modules/core-js/actual/self.js new file mode 100644 index 0000000..42d78cd --- /dev/null +++ b/node_modules/core-js/actual/self.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/self'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/set-immediate.js b/node_modules/core-js/actual/set-immediate.js new file mode 100644 index 0000000..70365b3 --- /dev/null +++ b/node_modules/core-js/actual/set-immediate.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/set-immediate'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/set-interval.js b/node_modules/core-js/actual/set-interval.js new file mode 100644 index 0000000..67d300c --- /dev/null +++ b/node_modules/core-js/actual/set-interval.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/set-interval'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/set-timeout.js b/node_modules/core-js/actual/set-timeout.js new file mode 100644 index 0000000..7203eb2 --- /dev/null +++ b/node_modules/core-js/actual/set-timeout.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/set-timeout'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/set/difference.js b/node_modules/core-js/actual/set/difference.js new file mode 100644 index 0000000..594bd7a --- /dev/null +++ b/node_modules/core-js/actual/set/difference.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/set/difference'); +require('../../modules/esnext.set.difference.v2'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/set/index.js b/node_modules/core-js/actual/set/index.js new file mode 100644 index 0000000..2ea9cf0 --- /dev/null +++ b/node_modules/core-js/actual/set/index.js @@ -0,0 +1,11 @@ +'use strict'; +var parent = require('../../stable/set'); +require('../../modules/esnext.set.difference.v2'); +require('../../modules/esnext.set.intersection.v2'); +require('../../modules/esnext.set.is-disjoint-from.v2'); +require('../../modules/esnext.set.is-subset-of.v2'); +require('../../modules/esnext.set.is-superset-of.v2'); +require('../../modules/esnext.set.symmetric-difference.v2'); +require('../../modules/esnext.set.union.v2'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/set/intersection.js b/node_modules/core-js/actual/set/intersection.js new file mode 100644 index 0000000..d245fec --- /dev/null +++ b/node_modules/core-js/actual/set/intersection.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/set/intersection'); +require('../../modules/esnext.set.intersection.v2'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/set/is-disjoint-from.js b/node_modules/core-js/actual/set/is-disjoint-from.js new file mode 100644 index 0000000..6781d79 --- /dev/null +++ b/node_modules/core-js/actual/set/is-disjoint-from.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/set/is-disjoint-from'); +require('../../modules/esnext.set.is-disjoint-from.v2'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/set/is-subset-of.js b/node_modules/core-js/actual/set/is-subset-of.js new file mode 100644 index 0000000..96a48be --- /dev/null +++ b/node_modules/core-js/actual/set/is-subset-of.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/set/is-subset-of'); +require('../../modules/esnext.set.is-subset-of.v2'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/set/is-superset-of.js b/node_modules/core-js/actual/set/is-superset-of.js new file mode 100644 index 0000000..3c67563 --- /dev/null +++ b/node_modules/core-js/actual/set/is-superset-of.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/set/is-superset-of'); +require('../../modules/esnext.set.is-superset-of.v2'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/set/symmetric-difference.js b/node_modules/core-js/actual/set/symmetric-difference.js new file mode 100644 index 0000000..4efeeb3 --- /dev/null +++ b/node_modules/core-js/actual/set/symmetric-difference.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/set/symmetric-difference'); +require('../../modules/esnext.set.symmetric-difference.v2'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/set/union.js b/node_modules/core-js/actual/set/union.js new file mode 100644 index 0000000..50d0a01 --- /dev/null +++ b/node_modules/core-js/actual/set/union.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/set/union'); +require('../../modules/esnext.set.union.v2'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/anchor.js b/node_modules/core-js/actual/string/anchor.js new file mode 100644 index 0000000..9efc89d --- /dev/null +++ b/node_modules/core-js/actual/string/anchor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/anchor'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/at.js b/node_modules/core-js/actual/string/at.js new file mode 100644 index 0000000..f9a9c7c --- /dev/null +++ b/node_modules/core-js/actual/string/at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/at'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/big.js b/node_modules/core-js/actual/string/big.js new file mode 100644 index 0000000..0ecd01d --- /dev/null +++ b/node_modules/core-js/actual/string/big.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/big'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/blink.js b/node_modules/core-js/actual/string/blink.js new file mode 100644 index 0000000..3162b48 --- /dev/null +++ b/node_modules/core-js/actual/string/blink.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/blink'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/bold.js b/node_modules/core-js/actual/string/bold.js new file mode 100644 index 0000000..6a25ad7 --- /dev/null +++ b/node_modules/core-js/actual/string/bold.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/bold'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/code-point-at.js b/node_modules/core-js/actual/string/code-point-at.js new file mode 100644 index 0000000..e537d17 --- /dev/null +++ b/node_modules/core-js/actual/string/code-point-at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/code-point-at'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/ends-with.js b/node_modules/core-js/actual/string/ends-with.js new file mode 100644 index 0000000..2ca9ed2 --- /dev/null +++ b/node_modules/core-js/actual/string/ends-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/ends-with'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/fixed.js b/node_modules/core-js/actual/string/fixed.js new file mode 100644 index 0000000..2ac56e2 --- /dev/null +++ b/node_modules/core-js/actual/string/fixed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/fixed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/fontcolor.js b/node_modules/core-js/actual/string/fontcolor.js new file mode 100644 index 0000000..d60137b --- /dev/null +++ b/node_modules/core-js/actual/string/fontcolor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/fontcolor'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/fontsize.js b/node_modules/core-js/actual/string/fontsize.js new file mode 100644 index 0000000..edfcbc4 --- /dev/null +++ b/node_modules/core-js/actual/string/fontsize.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/fontsize'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/from-code-point.js b/node_modules/core-js/actual/string/from-code-point.js new file mode 100644 index 0000000..b86cdae --- /dev/null +++ b/node_modules/core-js/actual/string/from-code-point.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/from-code-point'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/includes.js b/node_modules/core-js/actual/string/includes.js new file mode 100644 index 0000000..c221c3d --- /dev/null +++ b/node_modules/core-js/actual/string/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/index.js b/node_modules/core-js/actual/string/index.js new file mode 100644 index 0000000..d1357b5 --- /dev/null +++ b/node_modules/core-js/actual/string/index.js @@ -0,0 +1,8 @@ +'use strict'; +var parent = require('../../stable/string'); + +// TODO: Remove from `core-js@4` +require('../../modules/esnext.string.is-well-formed'); +require('../../modules/esnext.string.to-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/is-well-formed.js b/node_modules/core-js/actual/string/is-well-formed.js new file mode 100644 index 0000000..9e91f47 --- /dev/null +++ b/node_modules/core-js/actual/string/is-well-formed.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../../modules/esnext.string.is-well-formed'); + +var parent = require('../../stable/string/is-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/italics.js b/node_modules/core-js/actual/string/italics.js new file mode 100644 index 0000000..eb3d62e --- /dev/null +++ b/node_modules/core-js/actual/string/italics.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/italics'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/iterator.js b/node_modules/core-js/actual/string/iterator.js new file mode 100644 index 0000000..02ebb13 --- /dev/null +++ b/node_modules/core-js/actual/string/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/link.js b/node_modules/core-js/actual/string/link.js new file mode 100644 index 0000000..f9d0255 --- /dev/null +++ b/node_modules/core-js/actual/string/link.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/link'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/match-all.js b/node_modules/core-js/actual/string/match-all.js new file mode 100644 index 0000000..06d157d --- /dev/null +++ b/node_modules/core-js/actual/string/match-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/match-all'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/match.js b/node_modules/core-js/actual/string/match.js new file mode 100644 index 0000000..2395bcc --- /dev/null +++ b/node_modules/core-js/actual/string/match.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/match'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/pad-end.js b/node_modules/core-js/actual/string/pad-end.js new file mode 100644 index 0000000..877ba29 --- /dev/null +++ b/node_modules/core-js/actual/string/pad-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/pad-end'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/pad-start.js b/node_modules/core-js/actual/string/pad-start.js new file mode 100644 index 0000000..d4e4a7e --- /dev/null +++ b/node_modules/core-js/actual/string/pad-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/pad-start'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/raw.js b/node_modules/core-js/actual/string/raw.js new file mode 100644 index 0000000..39202ab --- /dev/null +++ b/node_modules/core-js/actual/string/raw.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/raw'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/repeat.js b/node_modules/core-js/actual/string/repeat.js new file mode 100644 index 0000000..0d2945c --- /dev/null +++ b/node_modules/core-js/actual/string/repeat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/repeat'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/replace-all.js b/node_modules/core-js/actual/string/replace-all.js new file mode 100644 index 0000000..ba6985a --- /dev/null +++ b/node_modules/core-js/actual/string/replace-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/replace-all'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/replace.js b/node_modules/core-js/actual/string/replace.js new file mode 100644 index 0000000..075d819 --- /dev/null +++ b/node_modules/core-js/actual/string/replace.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/replace'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/search.js b/node_modules/core-js/actual/string/search.js new file mode 100644 index 0000000..d66b106 --- /dev/null +++ b/node_modules/core-js/actual/string/search.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/search'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/small.js b/node_modules/core-js/actual/string/small.js new file mode 100644 index 0000000..430e083 --- /dev/null +++ b/node_modules/core-js/actual/string/small.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/small'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/split.js b/node_modules/core-js/actual/string/split.js new file mode 100644 index 0000000..d71e627 --- /dev/null +++ b/node_modules/core-js/actual/string/split.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/split'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/starts-with.js b/node_modules/core-js/actual/string/starts-with.js new file mode 100644 index 0000000..818cdff --- /dev/null +++ b/node_modules/core-js/actual/string/starts-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/starts-with'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/strike.js b/node_modules/core-js/actual/string/strike.js new file mode 100644 index 0000000..ca20cd3 --- /dev/null +++ b/node_modules/core-js/actual/string/strike.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/strike'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/sub.js b/node_modules/core-js/actual/string/sub.js new file mode 100644 index 0000000..58163d2 --- /dev/null +++ b/node_modules/core-js/actual/string/sub.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/sub'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/substr.js b/node_modules/core-js/actual/string/substr.js new file mode 100644 index 0000000..f71c01b --- /dev/null +++ b/node_modules/core-js/actual/string/substr.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/substr'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/sup.js b/node_modules/core-js/actual/string/sup.js new file mode 100644 index 0000000..04fa80d --- /dev/null +++ b/node_modules/core-js/actual/string/sup.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/sup'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/to-well-formed.js b/node_modules/core-js/actual/string/to-well-formed.js new file mode 100644 index 0000000..67ad9e4 --- /dev/null +++ b/node_modules/core-js/actual/string/to-well-formed.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../../modules/esnext.string.to-well-formed'); + +var parent = require('../../stable/string/to-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/trim-end.js b/node_modules/core-js/actual/string/trim-end.js new file mode 100644 index 0000000..92c2c38 --- /dev/null +++ b/node_modules/core-js/actual/string/trim-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/trim-end'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/trim-left.js b/node_modules/core-js/actual/string/trim-left.js new file mode 100644 index 0000000..d9b2f3f --- /dev/null +++ b/node_modules/core-js/actual/string/trim-left.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/trim-left'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/trim-right.js b/node_modules/core-js/actual/string/trim-right.js new file mode 100644 index 0000000..68bb582 --- /dev/null +++ b/node_modules/core-js/actual/string/trim-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/trim-right'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/trim-start.js b/node_modules/core-js/actual/string/trim-start.js new file mode 100644 index 0000000..17611e6 --- /dev/null +++ b/node_modules/core-js/actual/string/trim-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/trim-start'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/trim.js b/node_modules/core-js/actual/string/trim.js new file mode 100644 index 0000000..0539355 --- /dev/null +++ b/node_modules/core-js/actual/string/trim.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/string/trim'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/anchor.js b/node_modules/core-js/actual/string/virtual/anchor.js new file mode 100644 index 0000000..66c2c91 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/anchor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/anchor'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/at.js b/node_modules/core-js/actual/string/virtual/at.js new file mode 100644 index 0000000..b87d421 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/at'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/big.js b/node_modules/core-js/actual/string/virtual/big.js new file mode 100644 index 0000000..5c89910 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/big.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/big'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/blink.js b/node_modules/core-js/actual/string/virtual/blink.js new file mode 100644 index 0000000..a4a0f12 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/blink.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/blink'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/bold.js b/node_modules/core-js/actual/string/virtual/bold.js new file mode 100644 index 0000000..b2384d9 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/bold.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/bold'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/code-point-at.js b/node_modules/core-js/actual/string/virtual/code-point-at.js new file mode 100644 index 0000000..0620b08 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/code-point-at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/code-point-at'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/ends-with.js b/node_modules/core-js/actual/string/virtual/ends-with.js new file mode 100644 index 0000000..d874e7d --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/ends-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/ends-with'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/fixed.js b/node_modules/core-js/actual/string/virtual/fixed.js new file mode 100644 index 0000000..fd54719 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/fixed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/fixed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/fontcolor.js b/node_modules/core-js/actual/string/virtual/fontcolor.js new file mode 100644 index 0000000..cb5c63a --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/fontcolor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/fontcolor'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/fontsize.js b/node_modules/core-js/actual/string/virtual/fontsize.js new file mode 100644 index 0000000..2175b3f --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/fontsize.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/fontsize'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/includes.js b/node_modules/core-js/actual/string/virtual/includes.js new file mode 100644 index 0000000..2175260 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/index.js b/node_modules/core-js/actual/string/virtual/index.js new file mode 100644 index 0000000..19afd93 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/index.js @@ -0,0 +1,8 @@ +'use strict'; +var parent = require('../../../stable/string/virtual'); + +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.string.is-well-formed'); +require('../../../modules/esnext.string.to-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/is-well-formed.js b/node_modules/core-js/actual/string/virtual/is-well-formed.js new file mode 100644 index 0000000..e3702f4 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/is-well-formed.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.string.is-well-formed'); + +var parent = require('../../../stable/string/virtual/is-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/italics.js b/node_modules/core-js/actual/string/virtual/italics.js new file mode 100644 index 0000000..921158a --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/italics.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/italics'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/iterator.js b/node_modules/core-js/actual/string/virtual/iterator.js new file mode 100644 index 0000000..c6a45cd --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/link.js b/node_modules/core-js/actual/string/virtual/link.js new file mode 100644 index 0000000..464611c --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/link.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/link'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/match-all.js b/node_modules/core-js/actual/string/virtual/match-all.js new file mode 100644 index 0000000..8703b82 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/match-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/match-all'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/pad-end.js b/node_modules/core-js/actual/string/virtual/pad-end.js new file mode 100644 index 0000000..43d1d1c --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/pad-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/pad-end'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/pad-start.js b/node_modules/core-js/actual/string/virtual/pad-start.js new file mode 100644 index 0000000..e4e7e1a --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/pad-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/pad-start'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/repeat.js b/node_modules/core-js/actual/string/virtual/repeat.js new file mode 100644 index 0000000..14962cf --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/repeat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/repeat'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/replace-all.js b/node_modules/core-js/actual/string/virtual/replace-all.js new file mode 100644 index 0000000..d3604ff --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/replace-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/replace-all'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/small.js b/node_modules/core-js/actual/string/virtual/small.js new file mode 100644 index 0000000..8c4de6a --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/small.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/small'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/starts-with.js b/node_modules/core-js/actual/string/virtual/starts-with.js new file mode 100644 index 0000000..d887a04 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/starts-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/starts-with'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/strike.js b/node_modules/core-js/actual/string/virtual/strike.js new file mode 100644 index 0000000..2aea074 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/strike.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/strike'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/sub.js b/node_modules/core-js/actual/string/virtual/sub.js new file mode 100644 index 0000000..cd3327b --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/sub.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/sub'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/substr.js b/node_modules/core-js/actual/string/virtual/substr.js new file mode 100644 index 0000000..a02e33c --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/substr.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/substr'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/sup.js b/node_modules/core-js/actual/string/virtual/sup.js new file mode 100644 index 0000000..33036f7 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/sup.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/sup'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/to-well-formed.js b/node_modules/core-js/actual/string/virtual/to-well-formed.js new file mode 100644 index 0000000..86db8e6 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/to-well-formed.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.string.to-well-formed'); + +var parent = require('../../../stable/string/virtual/to-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/trim-end.js b/node_modules/core-js/actual/string/virtual/trim-end.js new file mode 100644 index 0000000..3065012 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/trim-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/trim-end'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/trim-left.js b/node_modules/core-js/actual/string/virtual/trim-left.js new file mode 100644 index 0000000..dadf770 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/trim-left.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/trim-left'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/trim-right.js b/node_modules/core-js/actual/string/virtual/trim-right.js new file mode 100644 index 0000000..fba0dfd --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/trim-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/trim-right'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/trim-start.js b/node_modules/core-js/actual/string/virtual/trim-start.js new file mode 100644 index 0000000..c0679cc --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/trim-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/trim-start'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/trim.js b/node_modules/core-js/actual/string/virtual/trim.js new file mode 100644 index 0000000..59673b5 --- /dev/null +++ b/node_modules/core-js/actual/string/virtual/trim.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../stable/string/virtual/trim'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/structured-clone.js b/node_modules/core-js/actual/structured-clone.js new file mode 100644 index 0000000..2dc60a1 --- /dev/null +++ b/node_modules/core-js/actual/structured-clone.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/structured-clone'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/suppressed-error.js b/node_modules/core-js/actual/suppressed-error.js new file mode 100644 index 0000000..d550baa --- /dev/null +++ b/node_modules/core-js/actual/suppressed-error.js @@ -0,0 +1,7 @@ +'use strict'; +require('../modules/es.error.cause'); +require('../modules/es.error.to-string'); +require('../modules/esnext.suppressed-error.constructor'); +var path = require('../internals/path'); + +module.exports = path.SuppressedError; diff --git a/node_modules/core-js/actual/symbol/async-dispose.js b/node_modules/core-js/actual/symbol/async-dispose.js new file mode 100644 index 0000000..712e3be --- /dev/null +++ b/node_modules/core-js/actual/symbol/async-dispose.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.symbol.async-dispose'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('asyncDispose'); diff --git a/node_modules/core-js/actual/symbol/async-iterator.js b/node_modules/core-js/actual/symbol/async-iterator.js new file mode 100644 index 0000000..9ed1f74 --- /dev/null +++ b/node_modules/core-js/actual/symbol/async-iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/async-iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/description.js b/node_modules/core-js/actual/symbol/description.js new file mode 100644 index 0000000..d2a5731 --- /dev/null +++ b/node_modules/core-js/actual/symbol/description.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/description'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/dispose.js b/node_modules/core-js/actual/symbol/dispose.js new file mode 100644 index 0000000..17c74c3 --- /dev/null +++ b/node_modules/core-js/actual/symbol/dispose.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.symbol.dispose'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('dispose'); diff --git a/node_modules/core-js/actual/symbol/for.js b/node_modules/core-js/actual/symbol/for.js new file mode 100644 index 0000000..2349323 --- /dev/null +++ b/node_modules/core-js/actual/symbol/for.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/for'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/has-instance.js b/node_modules/core-js/actual/symbol/has-instance.js new file mode 100644 index 0000000..4ffe725 --- /dev/null +++ b/node_modules/core-js/actual/symbol/has-instance.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/has-instance'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/index.js b/node_modules/core-js/actual/symbol/index.js new file mode 100644 index 0000000..5905a78 --- /dev/null +++ b/node_modules/core-js/actual/symbol/index.js @@ -0,0 +1,9 @@ +'use strict'; +var parent = require('../../stable/symbol'); + +require('../../modules/esnext.function.metadata'); +require('../../modules/esnext.symbol.async-dispose'); +require('../../modules/esnext.symbol.dispose'); +require('../../modules/esnext.symbol.metadata'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/is-concat-spreadable.js b/node_modules/core-js/actual/symbol/is-concat-spreadable.js new file mode 100644 index 0000000..0c86b41 --- /dev/null +++ b/node_modules/core-js/actual/symbol/is-concat-spreadable.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/is-concat-spreadable'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/iterator.js b/node_modules/core-js/actual/symbol/iterator.js new file mode 100644 index 0000000..0804df8 --- /dev/null +++ b/node_modules/core-js/actual/symbol/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/key-for.js b/node_modules/core-js/actual/symbol/key-for.js new file mode 100644 index 0000000..c515ed3 --- /dev/null +++ b/node_modules/core-js/actual/symbol/key-for.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/key-for'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/match-all.js b/node_modules/core-js/actual/symbol/match-all.js new file mode 100644 index 0000000..23c97e0 --- /dev/null +++ b/node_modules/core-js/actual/symbol/match-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/match-all'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/match.js b/node_modules/core-js/actual/symbol/match.js new file mode 100644 index 0000000..68061fd --- /dev/null +++ b/node_modules/core-js/actual/symbol/match.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/match'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/metadata.js b/node_modules/core-js/actual/symbol/metadata.js new file mode 100644 index 0000000..768cbae --- /dev/null +++ b/node_modules/core-js/actual/symbol/metadata.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/esnext.function.metadata'); +require('../../modules/esnext.symbol.metadata'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('metadata'); diff --git a/node_modules/core-js/actual/symbol/replace.js b/node_modules/core-js/actual/symbol/replace.js new file mode 100644 index 0000000..59ea3ad --- /dev/null +++ b/node_modules/core-js/actual/symbol/replace.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/replace'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/search.js b/node_modules/core-js/actual/symbol/search.js new file mode 100644 index 0000000..68f6233 --- /dev/null +++ b/node_modules/core-js/actual/symbol/search.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/search'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/species.js b/node_modules/core-js/actual/symbol/species.js new file mode 100644 index 0000000..25dfd51 --- /dev/null +++ b/node_modules/core-js/actual/symbol/species.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/species'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/split.js b/node_modules/core-js/actual/symbol/split.js new file mode 100644 index 0000000..c4af55f --- /dev/null +++ b/node_modules/core-js/actual/symbol/split.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/split'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/to-primitive.js b/node_modules/core-js/actual/symbol/to-primitive.js new file mode 100644 index 0000000..ceab28f --- /dev/null +++ b/node_modules/core-js/actual/symbol/to-primitive.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/to-primitive'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/to-string-tag.js b/node_modules/core-js/actual/symbol/to-string-tag.js new file mode 100644 index 0000000..6fe360c --- /dev/null +++ b/node_modules/core-js/actual/symbol/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/to-string-tag'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/unscopables.js b/node_modules/core-js/actual/symbol/unscopables.js new file mode 100644 index 0000000..1d05b70 --- /dev/null +++ b/node_modules/core-js/actual/symbol/unscopables.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/symbol/unscopables'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/at.js b/node_modules/core-js/actual/typed-array/at.js new file mode 100644 index 0000000..59e18b8 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/at'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/copy-within.js b/node_modules/core-js/actual/typed-array/copy-within.js new file mode 100644 index 0000000..015fea1 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/copy-within.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/copy-within'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/entries.js b/node_modules/core-js/actual/typed-array/entries.js new file mode 100644 index 0000000..f187e0d --- /dev/null +++ b/node_modules/core-js/actual/typed-array/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/every.js b/node_modules/core-js/actual/typed-array/every.js new file mode 100644 index 0000000..a34625d --- /dev/null +++ b/node_modules/core-js/actual/typed-array/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/every'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/fill.js b/node_modules/core-js/actual/typed-array/fill.js new file mode 100644 index 0000000..3236a10 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/fill.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/fill'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/filter.js b/node_modules/core-js/actual/typed-array/filter.js new file mode 100644 index 0000000..8ac9e89 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/find-index.js b/node_modules/core-js/actual/typed-array/find-index.js new file mode 100644 index 0000000..da18404 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/find-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/find-index'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/find-last-index.js b/node_modules/core-js/actual/typed-array/find-last-index.js new file mode 100644 index 0000000..eb7cd48 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/find-last-index.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.typed-array.find-last-index'); +var parent = require('../../stable/typed-array/find-last-index'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/find-last.js b/node_modules/core-js/actual/typed-array/find-last.js new file mode 100644 index 0000000..f7608b1 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/find-last.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.typed-array.find-last'); +var parent = require('../../stable/typed-array/find-last'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/find.js b/node_modules/core-js/actual/typed-array/find.js new file mode 100644 index 0000000..af39eac --- /dev/null +++ b/node_modules/core-js/actual/typed-array/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/find'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/float32-array.js b/node_modules/core-js/actual/typed-array/float32-array.js new file mode 100644 index 0000000..1bfbb23 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/float32-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/typed-array/float32-array'); +require('../../actual/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/float64-array.js b/node_modules/core-js/actual/typed-array/float64-array.js new file mode 100644 index 0000000..85a9b73 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/float64-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/typed-array/float64-array'); +require('../../actual/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/for-each.js b/node_modules/core-js/actual/typed-array/for-each.js new file mode 100644 index 0000000..56f4c26 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/from-base64.js b/node_modules/core-js/actual/typed-array/from-base64.js new file mode 100644 index 0000000..68a6e94 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/from-base64.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.uint8-array.from-base64'); diff --git a/node_modules/core-js/actual/typed-array/from-hex.js b/node_modules/core-js/actual/typed-array/from-hex.js new file mode 100644 index 0000000..984225b --- /dev/null +++ b/node_modules/core-js/actual/typed-array/from-hex.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.uint8-array.from-hex'); diff --git a/node_modules/core-js/actual/typed-array/from.js b/node_modules/core-js/actual/typed-array/from.js new file mode 100644 index 0000000..2027a7a --- /dev/null +++ b/node_modules/core-js/actual/typed-array/from.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/from'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/includes.js b/node_modules/core-js/actual/typed-array/includes.js new file mode 100644 index 0000000..c87ecab --- /dev/null +++ b/node_modules/core-js/actual/typed-array/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/index-of.js b/node_modules/core-js/actual/typed-array/index-of.js new file mode 100644 index 0000000..e2096ed --- /dev/null +++ b/node_modules/core-js/actual/typed-array/index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/index.js b/node_modules/core-js/actual/typed-array/index.js new file mode 100644 index 0000000..c495f5a --- /dev/null +++ b/node_modules/core-js/actual/typed-array/index.js @@ -0,0 +1,17 @@ +'use strict'; +var parent = require('../../stable/typed-array'); +require('../../modules/esnext.uint8-array.from-base64'); +require('../../modules/esnext.uint8-array.from-hex'); +require('../../modules/esnext.uint8-array.set-from-base64'); +require('../../modules/esnext.uint8-array.set-from-hex'); +require('../../modules/esnext.uint8-array.to-base64'); +require('../../modules/esnext.uint8-array.to-hex'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.typed-array.find-last'); +require('../../modules/esnext.typed-array.find-last-index'); +require('../../modules/esnext.typed-array.to-reversed'); +require('../../modules/esnext.typed-array.to-sorted'); +require('../../modules/esnext.typed-array.to-spliced'); +require('../../modules/esnext.typed-array.with'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/int16-array.js b/node_modules/core-js/actual/typed-array/int16-array.js new file mode 100644 index 0000000..ee00a14 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/int16-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/typed-array/int16-array'); +require('../../actual/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/int32-array.js b/node_modules/core-js/actual/typed-array/int32-array.js new file mode 100644 index 0000000..b20c128 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/int32-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/typed-array/int32-array'); +require('../../actual/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/int8-array.js b/node_modules/core-js/actual/typed-array/int8-array.js new file mode 100644 index 0000000..4837662 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/int8-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/typed-array/int8-array'); +require('../../actual/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/iterator.js b/node_modules/core-js/actual/typed-array/iterator.js new file mode 100644 index 0000000..98b9665 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/join.js b/node_modules/core-js/actual/typed-array/join.js new file mode 100644 index 0000000..d18a936 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/join.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/join'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/keys.js b/node_modules/core-js/actual/typed-array/keys.js new file mode 100644 index 0000000..4976bfe --- /dev/null +++ b/node_modules/core-js/actual/typed-array/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/last-index-of.js b/node_modules/core-js/actual/typed-array/last-index-of.js new file mode 100644 index 0000000..abfa69e --- /dev/null +++ b/node_modules/core-js/actual/typed-array/last-index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/last-index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/map.js b/node_modules/core-js/actual/typed-array/map.js new file mode 100644 index 0000000..8b70aeb --- /dev/null +++ b/node_modules/core-js/actual/typed-array/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/map'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/methods.js b/node_modules/core-js/actual/typed-array/methods.js new file mode 100644 index 0000000..c9f680c --- /dev/null +++ b/node_modules/core-js/actual/typed-array/methods.js @@ -0,0 +1,17 @@ +'use strict'; +var parent = require('../../stable/typed-array/methods'); +require('../../modules/esnext.uint8-array.from-base64'); +require('../../modules/esnext.uint8-array.from-hex'); +require('../../modules/esnext.uint8-array.set-from-base64'); +require('../../modules/esnext.uint8-array.set-from-hex'); +require('../../modules/esnext.uint8-array.to-base64'); +require('../../modules/esnext.uint8-array.to-hex'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.typed-array.find-last'); +require('../../modules/esnext.typed-array.find-last-index'); +require('../../modules/esnext.typed-array.to-reversed'); +require('../../modules/esnext.typed-array.to-sorted'); +require('../../modules/esnext.typed-array.to-spliced'); +require('../../modules/esnext.typed-array.with'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/of.js b/node_modules/core-js/actual/typed-array/of.js new file mode 100644 index 0000000..720fad2 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/of'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/reduce-right.js b/node_modules/core-js/actual/typed-array/reduce-right.js new file mode 100644 index 0000000..3b61cca --- /dev/null +++ b/node_modules/core-js/actual/typed-array/reduce-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/reduce-right'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/reduce.js b/node_modules/core-js/actual/typed-array/reduce.js new file mode 100644 index 0000000..fc0cce0 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/reverse.js b/node_modules/core-js/actual/typed-array/reverse.js new file mode 100644 index 0000000..ad56277 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/reverse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/reverse'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/set-from-base64.js b/node_modules/core-js/actual/typed-array/set-from-base64.js new file mode 100644 index 0000000..4bdfeb8 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/set-from-base64.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.uint8-array.set-from-base64'); diff --git a/node_modules/core-js/actual/typed-array/set-from-hex.js b/node_modules/core-js/actual/typed-array/set-from-hex.js new file mode 100644 index 0000000..50ad2b1 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/set-from-hex.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.uint8-array.set-from-hex'); diff --git a/node_modules/core-js/actual/typed-array/set.js b/node_modules/core-js/actual/typed-array/set.js new file mode 100644 index 0000000..3ccf650 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/set.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/set'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/slice.js b/node_modules/core-js/actual/typed-array/slice.js new file mode 100644 index 0000000..0a6cddb --- /dev/null +++ b/node_modules/core-js/actual/typed-array/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/some.js b/node_modules/core-js/actual/typed-array/some.js new file mode 100644 index 0000000..6bd5b42 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/some'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/sort.js b/node_modules/core-js/actual/typed-array/sort.js new file mode 100644 index 0000000..611064b --- /dev/null +++ b/node_modules/core-js/actual/typed-array/sort.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/sort'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/subarray.js b/node_modules/core-js/actual/typed-array/subarray.js new file mode 100644 index 0000000..864d041 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/subarray.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/subarray'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/to-base64.js b/node_modules/core-js/actual/typed-array/to-base64.js new file mode 100644 index 0000000..2ad689d --- /dev/null +++ b/node_modules/core-js/actual/typed-array/to-base64.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.uint8-array.to-base64'); diff --git a/node_modules/core-js/actual/typed-array/to-hex.js b/node_modules/core-js/actual/typed-array/to-hex.js new file mode 100644 index 0000000..2ea18d1 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/to-hex.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.uint8-array.to-hex'); diff --git a/node_modules/core-js/actual/typed-array/to-locale-string.js b/node_modules/core-js/actual/typed-array/to-locale-string.js new file mode 100644 index 0000000..a9b0e49 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/to-locale-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/to-locale-string'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/to-reversed.js b/node_modules/core-js/actual/typed-array/to-reversed.js new file mode 100644 index 0000000..81a473b --- /dev/null +++ b/node_modules/core-js/actual/typed-array/to-reversed.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../stable/typed-array/to-reversed'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.typed-array.to-reversed'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/to-sorted.js b/node_modules/core-js/actual/typed-array/to-sorted.js new file mode 100644 index 0000000..fd51ddf --- /dev/null +++ b/node_modules/core-js/actual/typed-array/to-sorted.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../stable/typed-array/to-sorted'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.typed-array.to-sorted'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/to-spliced.js b/node_modules/core-js/actual/typed-array/to-spliced.js new file mode 100644 index 0000000..ab4bf35 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/to-spliced.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../../modules/esnext.typed-array.to-spliced'); diff --git a/node_modules/core-js/actual/typed-array/to-string.js b/node_modules/core-js/actual/typed-array/to-string.js new file mode 100644 index 0000000..3d30acb --- /dev/null +++ b/node_modules/core-js/actual/typed-array/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/uint16-array.js b/node_modules/core-js/actual/typed-array/uint16-array.js new file mode 100644 index 0000000..7bf175f --- /dev/null +++ b/node_modules/core-js/actual/typed-array/uint16-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/typed-array/uint16-array'); +require('../../actual/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/uint32-array.js b/node_modules/core-js/actual/typed-array/uint32-array.js new file mode 100644 index 0000000..a4a9db8 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/uint32-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/typed-array/uint32-array'); +require('../../actual/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/uint8-array.js b/node_modules/core-js/actual/typed-array/uint8-array.js new file mode 100644 index 0000000..f34cc91 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/uint8-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/typed-array/uint8-array'); +require('../../actual/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/uint8-clamped-array.js b/node_modules/core-js/actual/typed-array/uint8-clamped-array.js new file mode 100644 index 0000000..77f7950 --- /dev/null +++ b/node_modules/core-js/actual/typed-array/uint8-clamped-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../stable/typed-array/uint8-clamped-array'); +require('../../actual/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/values.js b/node_modules/core-js/actual/typed-array/values.js new file mode 100644 index 0000000..36b171f --- /dev/null +++ b/node_modules/core-js/actual/typed-array/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/typed-array/values'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/typed-array/with.js b/node_modules/core-js/actual/typed-array/with.js new file mode 100644 index 0000000..080d19d --- /dev/null +++ b/node_modules/core-js/actual/typed-array/with.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../stable/typed-array/with'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.typed-array.with'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/unescape.js b/node_modules/core-js/actual/unescape.js new file mode 100644 index 0000000..6aadaa0 --- /dev/null +++ b/node_modules/core-js/actual/unescape.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../stable/unescape'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/url-search-params/index.js b/node_modules/core-js/actual/url-search-params/index.js new file mode 100644 index 0000000..612b82e --- /dev/null +++ b/node_modules/core-js/actual/url-search-params/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/url-search-params'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/url/can-parse.js b/node_modules/core-js/actual/url/can-parse.js new file mode 100644 index 0000000..356c417 --- /dev/null +++ b/node_modules/core-js/actual/url/can-parse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/url/can-parse'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/url/index.js b/node_modules/core-js/actual/url/index.js new file mode 100644 index 0000000..59968cf --- /dev/null +++ b/node_modules/core-js/actual/url/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/url'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/url/parse.js b/node_modules/core-js/actual/url/parse.js new file mode 100644 index 0000000..5c0c9fb --- /dev/null +++ b/node_modules/core-js/actual/url/parse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/url/parse'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/url/to-json.js b/node_modules/core-js/actual/url/to-json.js new file mode 100644 index 0000000..917718a --- /dev/null +++ b/node_modules/core-js/actual/url/to-json.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/url/to-json'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/weak-map/index.js b/node_modules/core-js/actual/weak-map/index.js new file mode 100644 index 0000000..2216ded --- /dev/null +++ b/node_modules/core-js/actual/weak-map/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/weak-map'); + +module.exports = parent; diff --git a/node_modules/core-js/actual/weak-set/index.js b/node_modules/core-js/actual/weak-set/index.js new file mode 100644 index 0000000..926088a --- /dev/null +++ b/node_modules/core-js/actual/weak-set/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../stable/weak-set'); + +module.exports = parent; diff --git a/node_modules/core-js/configurator.js b/node_modules/core-js/configurator.js new file mode 100644 index 0000000..b8cac18 --- /dev/null +++ b/node_modules/core-js/configurator.js @@ -0,0 +1,28 @@ +'use strict'; +var hasOwn = require('./internals/has-own-property'); +var isArray = require('./internals/is-array'); +var isForced = require('./internals/is-forced'); +var shared = require('./internals/shared-store'); + +var data = isForced.data; +var normalize = isForced.normalize; +var USE_FUNCTION_CONSTRUCTOR = 'USE_FUNCTION_CONSTRUCTOR'; +var ASYNC_ITERATOR_PROTOTYPE = 'AsyncIteratorPrototype'; + +var setAggressivenessLevel = function (object, constant) { + if (isArray(object)) for (var i = 0; i < object.length; i++) data[normalize(object[i])] = constant; +}; + +module.exports = function (options) { + if (typeof options == 'object') { + setAggressivenessLevel(options.useNative, isForced.NATIVE); + setAggressivenessLevel(options.usePolyfill, isForced.POLYFILL); + setAggressivenessLevel(options.useFeatureDetection, null); + if (hasOwn(options, USE_FUNCTION_CONSTRUCTOR)) { + shared[USE_FUNCTION_CONSTRUCTOR] = !!options[USE_FUNCTION_CONSTRUCTOR]; + } + if (hasOwn(options, ASYNC_ITERATOR_PROTOTYPE)) { + shared[ASYNC_ITERATOR_PROTOTYPE] = options[ASYNC_ITERATOR_PROTOTYPE]; + } + } +}; diff --git a/node_modules/core-js/es/README.md b/node_modules/core-js/es/README.md new file mode 100644 index 0000000..d497f29 --- /dev/null +++ b/node_modules/core-js/es/README.md @@ -0,0 +1 @@ +This folder contains entry points for [stable ECMAScript features](https://github.com/zloirock/core-js/#ecmascript) with dependencies. diff --git a/node_modules/core-js/es/aggregate-error.js b/node_modules/core-js/es/aggregate-error.js new file mode 100644 index 0000000..2a0c810 --- /dev/null +++ b/node_modules/core-js/es/aggregate-error.js @@ -0,0 +1,9 @@ +'use strict'; +require('../modules/es.error.cause'); +require('../modules/es.aggregate-error'); +require('../modules/es.aggregate-error.cause'); +require('../modules/es.array.iterator'); +require('../modules/es.string.iterator'); +var path = require('../internals/path'); + +module.exports = path.AggregateError; diff --git a/node_modules/core-js/es/array-buffer/constructor.js b/node_modules/core-js/es/array-buffer/constructor.js new file mode 100644 index 0000000..3a375e0 --- /dev/null +++ b/node_modules/core-js/es/array-buffer/constructor.js @@ -0,0 +1,10 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.array-buffer.detached'); +require('../../modules/es.array-buffer.transfer'); +require('../../modules/es.array-buffer.transfer-to-fixed-length'); +require('../../modules/es.object.to-string'); +var path = require('../../internals/path'); + +module.exports = path.ArrayBuffer; diff --git a/node_modules/core-js/es/array-buffer/detached.js b/node_modules/core-js/es/array-buffer/detached.js new file mode 100644 index 0000000..2c0ec73 --- /dev/null +++ b/node_modules/core-js/es/array-buffer/detached.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.array-buffer.detached'); diff --git a/node_modules/core-js/es/array-buffer/index.js b/node_modules/core-js/es/array-buffer/index.js new file mode 100644 index 0000000..f66c7f7 --- /dev/null +++ b/node_modules/core-js/es/array-buffer/index.js @@ -0,0 +1,12 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.is-view'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.data-view'); +require('../../modules/es.array-buffer.detached'); +require('../../modules/es.array-buffer.transfer'); +require('../../modules/es.array-buffer.transfer-to-fixed-length'); +require('../../modules/es.object.to-string'); +var path = require('../../internals/path'); + +module.exports = path.ArrayBuffer; diff --git a/node_modules/core-js/es/array-buffer/is-view.js b/node_modules/core-js/es/array-buffer/is-view.js new file mode 100644 index 0000000..7580dd0 --- /dev/null +++ b/node_modules/core-js/es/array-buffer/is-view.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array-buffer.is-view'); +var path = require('../../internals/path'); + +module.exports = path.ArrayBuffer.isView; diff --git a/node_modules/core-js/es/array-buffer/slice.js b/node_modules/core-js/es/array-buffer/slice.js new file mode 100644 index 0000000..df38220 --- /dev/null +++ b/node_modules/core-js/es/array-buffer/slice.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.array-buffer.slice'); diff --git a/node_modules/core-js/es/array-buffer/transfer-to-fixed-length.js b/node_modules/core-js/es/array-buffer/transfer-to-fixed-length.js new file mode 100644 index 0000000..21d4340 --- /dev/null +++ b/node_modules/core-js/es/array-buffer/transfer-to-fixed-length.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.data-view'); +require('../../modules/es.array-buffer.transfer-to-fixed-length'); diff --git a/node_modules/core-js/es/array-buffer/transfer.js b/node_modules/core-js/es/array-buffer/transfer.js new file mode 100644 index 0000000..f7198e0 --- /dev/null +++ b/node_modules/core-js/es/array-buffer/transfer.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.data-view'); +require('../../modules/es.array-buffer.transfer'); diff --git a/node_modules/core-js/es/array/at.js b/node_modules/core-js/es/array/at.js new file mode 100644 index 0000000..045588c --- /dev/null +++ b/node_modules/core-js/es/array/at.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.at'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'at'); diff --git a/node_modules/core-js/es/array/concat.js b/node_modules/core-js/es/array/concat.js new file mode 100644 index 0000000..f9868cb --- /dev/null +++ b/node_modules/core-js/es/array/concat.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.concat'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'concat'); diff --git a/node_modules/core-js/es/array/copy-within.js b/node_modules/core-js/es/array/copy-within.js new file mode 100644 index 0000000..ec74929 --- /dev/null +++ b/node_modules/core-js/es/array/copy-within.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.copy-within'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'copyWithin'); diff --git a/node_modules/core-js/es/array/entries.js b/node_modules/core-js/es/array/entries.js new file mode 100644 index 0000000..191cea2 --- /dev/null +++ b/node_modules/core-js/es/array/entries.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'entries'); diff --git a/node_modules/core-js/es/array/every.js b/node_modules/core-js/es/array/every.js new file mode 100644 index 0000000..02a5973 --- /dev/null +++ b/node_modules/core-js/es/array/every.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.every'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'every'); diff --git a/node_modules/core-js/es/array/fill.js b/node_modules/core-js/es/array/fill.js new file mode 100644 index 0000000..5510882 --- /dev/null +++ b/node_modules/core-js/es/array/fill.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.fill'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'fill'); diff --git a/node_modules/core-js/es/array/filter.js b/node_modules/core-js/es/array/filter.js new file mode 100644 index 0000000..22c6fb2 --- /dev/null +++ b/node_modules/core-js/es/array/filter.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.filter'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'filter'); diff --git a/node_modules/core-js/es/array/find-index.js b/node_modules/core-js/es/array/find-index.js new file mode 100644 index 0000000..e4f753b --- /dev/null +++ b/node_modules/core-js/es/array/find-index.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.find-index'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'findIndex'); diff --git a/node_modules/core-js/es/array/find-last-index.js b/node_modules/core-js/es/array/find-last-index.js new file mode 100644 index 0000000..8495550 --- /dev/null +++ b/node_modules/core-js/es/array/find-last-index.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.find-last-index'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'findLastIndex'); diff --git a/node_modules/core-js/es/array/find-last.js b/node_modules/core-js/es/array/find-last.js new file mode 100644 index 0000000..ce0b9ae --- /dev/null +++ b/node_modules/core-js/es/array/find-last.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.find-last'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'findLast'); diff --git a/node_modules/core-js/es/array/find.js b/node_modules/core-js/es/array/find.js new file mode 100644 index 0000000..18c71f7 --- /dev/null +++ b/node_modules/core-js/es/array/find.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.find'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'find'); diff --git a/node_modules/core-js/es/array/flat-map.js b/node_modules/core-js/es/array/flat-map.js new file mode 100644 index 0000000..f64d5a4 --- /dev/null +++ b/node_modules/core-js/es/array/flat-map.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.array.flat-map'); +require('../../modules/es.array.unscopables.flat-map'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'flatMap'); diff --git a/node_modules/core-js/es/array/flat.js b/node_modules/core-js/es/array/flat.js new file mode 100644 index 0000000..f5ee4cd --- /dev/null +++ b/node_modules/core-js/es/array/flat.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.array.flat'); +require('../../modules/es.array.unscopables.flat'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'flat'); diff --git a/node_modules/core-js/es/array/for-each.js b/node_modules/core-js/es/array/for-each.js new file mode 100644 index 0000000..e28bb51 --- /dev/null +++ b/node_modules/core-js/es/array/for-each.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.for-each'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'forEach'); diff --git a/node_modules/core-js/es/array/from.js b/node_modules/core-js/es/array/from.js new file mode 100644 index 0000000..9d7c5af --- /dev/null +++ b/node_modules/core-js/es/array/from.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.string.iterator'); +require('../../modules/es.array.from'); +var path = require('../../internals/path'); + +module.exports = path.Array.from; diff --git a/node_modules/core-js/es/array/includes.js b/node_modules/core-js/es/array/includes.js new file mode 100644 index 0000000..cb2ca43 --- /dev/null +++ b/node_modules/core-js/es/array/includes.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.includes'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'includes'); diff --git a/node_modules/core-js/es/array/index-of.js b/node_modules/core-js/es/array/index-of.js new file mode 100644 index 0000000..f330bd4 --- /dev/null +++ b/node_modules/core-js/es/array/index-of.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.index-of'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'indexOf'); diff --git a/node_modules/core-js/es/array/index.js b/node_modules/core-js/es/array/index.js new file mode 100644 index 0000000..abae289 --- /dev/null +++ b/node_modules/core-js/es/array/index.js @@ -0,0 +1,44 @@ +'use strict'; +require('../../modules/es.array.from'); +require('../../modules/es.array.is-array'); +require('../../modules/es.array.of'); +require('../../modules/es.array.at'); +require('../../modules/es.array.concat'); +require('../../modules/es.array.copy-within'); +require('../../modules/es.array.every'); +require('../../modules/es.array.fill'); +require('../../modules/es.array.filter'); +require('../../modules/es.array.find'); +require('../../modules/es.array.find-index'); +require('../../modules/es.array.find-last'); +require('../../modules/es.array.find-last-index'); +require('../../modules/es.array.flat'); +require('../../modules/es.array.flat-map'); +require('../../modules/es.array.for-each'); +require('../../modules/es.array.includes'); +require('../../modules/es.array.index-of'); +require('../../modules/es.array.iterator'); +require('../../modules/es.array.join'); +require('../../modules/es.array.last-index-of'); +require('../../modules/es.array.map'); +require('../../modules/es.array.push'); +require('../../modules/es.array.reduce'); +require('../../modules/es.array.reduce-right'); +require('../../modules/es.array.reverse'); +require('../../modules/es.array.slice'); +require('../../modules/es.array.some'); +require('../../modules/es.array.sort'); +require('../../modules/es.array.species'); +require('../../modules/es.array.splice'); +require('../../modules/es.array.to-reversed'); +require('../../modules/es.array.to-sorted'); +require('../../modules/es.array.to-spliced'); +require('../../modules/es.array.unscopables.flat'); +require('../../modules/es.array.unscopables.flat-map'); +require('../../modules/es.array.unshift'); +require('../../modules/es.array.with'); +require('../../modules/es.object.to-string'); +require('../../modules/es.string.iterator'); +var path = require('../../internals/path'); + +module.exports = path.Array; diff --git a/node_modules/core-js/es/array/is-array.js b/node_modules/core-js/es/array/is-array.js new file mode 100644 index 0000000..3db4bce --- /dev/null +++ b/node_modules/core-js/es/array/is-array.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.is-array'); +var path = require('../../internals/path'); + +module.exports = path.Array.isArray; diff --git a/node_modules/core-js/es/array/iterator.js b/node_modules/core-js/es/array/iterator.js new file mode 100644 index 0000000..05f32e7 --- /dev/null +++ b/node_modules/core-js/es/array/iterator.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'values'); diff --git a/node_modules/core-js/es/array/join.js b/node_modules/core-js/es/array/join.js new file mode 100644 index 0000000..ae4ea90 --- /dev/null +++ b/node_modules/core-js/es/array/join.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.join'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'join'); diff --git a/node_modules/core-js/es/array/keys.js b/node_modules/core-js/es/array/keys.js new file mode 100644 index 0000000..0a49fd3 --- /dev/null +++ b/node_modules/core-js/es/array/keys.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'keys'); diff --git a/node_modules/core-js/es/array/last-index-of.js b/node_modules/core-js/es/array/last-index-of.js new file mode 100644 index 0000000..52d9682 --- /dev/null +++ b/node_modules/core-js/es/array/last-index-of.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.last-index-of'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'lastIndexOf'); diff --git a/node_modules/core-js/es/array/map.js b/node_modules/core-js/es/array/map.js new file mode 100644 index 0000000..8de03a6 --- /dev/null +++ b/node_modules/core-js/es/array/map.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.map'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'map'); diff --git a/node_modules/core-js/es/array/of.js b/node_modules/core-js/es/array/of.js new file mode 100644 index 0000000..dc88b02 --- /dev/null +++ b/node_modules/core-js/es/array/of.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.of'); +var path = require('../../internals/path'); + +module.exports = path.Array.of; diff --git a/node_modules/core-js/es/array/push.js b/node_modules/core-js/es/array/push.js new file mode 100644 index 0000000..d3d2fed --- /dev/null +++ b/node_modules/core-js/es/array/push.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.push'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'push'); diff --git a/node_modules/core-js/es/array/reduce-right.js b/node_modules/core-js/es/array/reduce-right.js new file mode 100644 index 0000000..da1c0bc --- /dev/null +++ b/node_modules/core-js/es/array/reduce-right.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.reduce-right'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'reduceRight'); diff --git a/node_modules/core-js/es/array/reduce.js b/node_modules/core-js/es/array/reduce.js new file mode 100644 index 0000000..4a2ab82 --- /dev/null +++ b/node_modules/core-js/es/array/reduce.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.reduce'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'reduce'); diff --git a/node_modules/core-js/es/array/reverse.js b/node_modules/core-js/es/array/reverse.js new file mode 100644 index 0000000..d81b997 --- /dev/null +++ b/node_modules/core-js/es/array/reverse.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.reverse'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'reverse'); diff --git a/node_modules/core-js/es/array/slice.js b/node_modules/core-js/es/array/slice.js new file mode 100644 index 0000000..3a93806 --- /dev/null +++ b/node_modules/core-js/es/array/slice.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.slice'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'slice'); diff --git a/node_modules/core-js/es/array/some.js b/node_modules/core-js/es/array/some.js new file mode 100644 index 0000000..0c16abc --- /dev/null +++ b/node_modules/core-js/es/array/some.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.some'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'some'); diff --git a/node_modules/core-js/es/array/sort.js b/node_modules/core-js/es/array/sort.js new file mode 100644 index 0000000..a603b2c --- /dev/null +++ b/node_modules/core-js/es/array/sort.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.sort'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'sort'); diff --git a/node_modules/core-js/es/array/splice.js b/node_modules/core-js/es/array/splice.js new file mode 100644 index 0000000..310381b --- /dev/null +++ b/node_modules/core-js/es/array/splice.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.splice'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'splice'); diff --git a/node_modules/core-js/es/array/to-reversed.js b/node_modules/core-js/es/array/to-reversed.js new file mode 100644 index 0000000..d05807e --- /dev/null +++ b/node_modules/core-js/es/array/to-reversed.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.to-reversed'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'toReversed'); diff --git a/node_modules/core-js/es/array/to-sorted.js b/node_modules/core-js/es/array/to-sorted.js new file mode 100644 index 0000000..acffea2 --- /dev/null +++ b/node_modules/core-js/es/array/to-sorted.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.array.sort'); +require('../../modules/es.array.to-sorted'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'toSorted'); diff --git a/node_modules/core-js/es/array/to-spliced.js b/node_modules/core-js/es/array/to-spliced.js new file mode 100644 index 0000000..f0a9993 --- /dev/null +++ b/node_modules/core-js/es/array/to-spliced.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.to-spliced'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'toSpliced'); diff --git a/node_modules/core-js/es/array/unshift.js b/node_modules/core-js/es/array/unshift.js new file mode 100644 index 0000000..63e33a8 --- /dev/null +++ b/node_modules/core-js/es/array/unshift.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.unshift'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'unshift'); diff --git a/node_modules/core-js/es/array/values.js b/node_modules/core-js/es/array/values.js new file mode 100644 index 0000000..05f32e7 --- /dev/null +++ b/node_modules/core-js/es/array/values.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'values'); diff --git a/node_modules/core-js/es/array/virtual/at.js b/node_modules/core-js/es/array/virtual/at.js new file mode 100644 index 0000000..20d5030 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/at.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.at'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'at'); diff --git a/node_modules/core-js/es/array/virtual/concat.js b/node_modules/core-js/es/array/virtual/concat.js new file mode 100644 index 0000000..17763b4 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/concat.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.concat'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'concat'); diff --git a/node_modules/core-js/es/array/virtual/copy-within.js b/node_modules/core-js/es/array/virtual/copy-within.js new file mode 100644 index 0000000..1540c35 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/copy-within.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.copy-within'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'copyWithin'); diff --git a/node_modules/core-js/es/array/virtual/entries.js b/node_modules/core-js/es/array/virtual/entries.js new file mode 100644 index 0000000..c38f703 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/entries.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../../modules/es.array.iterator'); +require('../../../modules/es.object.to-string'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'entries'); diff --git a/node_modules/core-js/es/array/virtual/every.js b/node_modules/core-js/es/array/virtual/every.js new file mode 100644 index 0000000..d362028 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/every.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.every'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'every'); diff --git a/node_modules/core-js/es/array/virtual/fill.js b/node_modules/core-js/es/array/virtual/fill.js new file mode 100644 index 0000000..0799890 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/fill.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.fill'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'fill'); diff --git a/node_modules/core-js/es/array/virtual/filter.js b/node_modules/core-js/es/array/virtual/filter.js new file mode 100644 index 0000000..e30806a --- /dev/null +++ b/node_modules/core-js/es/array/virtual/filter.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.filter'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'filter'); diff --git a/node_modules/core-js/es/array/virtual/find-index.js b/node_modules/core-js/es/array/virtual/find-index.js new file mode 100644 index 0000000..797c3a8 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/find-index.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.find-index'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'findIndex'); diff --git a/node_modules/core-js/es/array/virtual/find-last-index.js b/node_modules/core-js/es/array/virtual/find-last-index.js new file mode 100644 index 0000000..b0a1cc7 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/find-last-index.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.find-last-index'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'findLastIndex'); diff --git a/node_modules/core-js/es/array/virtual/find-last.js b/node_modules/core-js/es/array/virtual/find-last.js new file mode 100644 index 0000000..7c55df6 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/find-last.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.find-last'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'findLast'); diff --git a/node_modules/core-js/es/array/virtual/find.js b/node_modules/core-js/es/array/virtual/find.js new file mode 100644 index 0000000..9b91c0a --- /dev/null +++ b/node_modules/core-js/es/array/virtual/find.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.find'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'find'); diff --git a/node_modules/core-js/es/array/virtual/flat-map.js b/node_modules/core-js/es/array/virtual/flat-map.js new file mode 100644 index 0000000..505a05a --- /dev/null +++ b/node_modules/core-js/es/array/virtual/flat-map.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../../modules/es.array.flat-map'); +require('../../../modules/es.array.unscopables.flat-map'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'flatMap'); diff --git a/node_modules/core-js/es/array/virtual/flat.js b/node_modules/core-js/es/array/virtual/flat.js new file mode 100644 index 0000000..8e327b6 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/flat.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../../modules/es.array.flat'); +require('../../../modules/es.array.unscopables.flat'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'flat'); diff --git a/node_modules/core-js/es/array/virtual/for-each.js b/node_modules/core-js/es/array/virtual/for-each.js new file mode 100644 index 0000000..adb777b --- /dev/null +++ b/node_modules/core-js/es/array/virtual/for-each.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.for-each'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'forEach'); diff --git a/node_modules/core-js/es/array/virtual/includes.js b/node_modules/core-js/es/array/virtual/includes.js new file mode 100644 index 0000000..f4ec86f --- /dev/null +++ b/node_modules/core-js/es/array/virtual/includes.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.includes'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'includes'); diff --git a/node_modules/core-js/es/array/virtual/index-of.js b/node_modules/core-js/es/array/virtual/index-of.js new file mode 100644 index 0000000..f30a3f2 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/index-of.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.index-of'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'indexOf'); diff --git a/node_modules/core-js/es/array/virtual/index.js b/node_modules/core-js/es/array/virtual/index.js new file mode 100644 index 0000000..03a8182 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/index.js @@ -0,0 +1,40 @@ +'use strict'; +require('../../../modules/es.array.at'); +require('../../../modules/es.array.concat'); +require('../../../modules/es.array.copy-within'); +require('../../../modules/es.array.every'); +require('../../../modules/es.array.fill'); +require('../../../modules/es.array.filter'); +require('../../../modules/es.array.find'); +require('../../../modules/es.array.find-index'); +require('../../../modules/es.array.find-last'); +require('../../../modules/es.array.find-last-index'); +require('../../../modules/es.array.flat'); +require('../../../modules/es.array.flat-map'); +require('../../../modules/es.array.for-each'); +require('../../../modules/es.array.includes'); +require('../../../modules/es.array.index-of'); +require('../../../modules/es.array.iterator'); +require('../../../modules/es.array.join'); +require('../../../modules/es.array.last-index-of'); +require('../../../modules/es.array.map'); +require('../../../modules/es.array.push'); +require('../../../modules/es.array.reduce'); +require('../../../modules/es.array.reduce-right'); +require('../../../modules/es.array.reverse'); +require('../../../modules/es.array.slice'); +require('../../../modules/es.array.some'); +require('../../../modules/es.array.sort'); +require('../../../modules/es.array.species'); +require('../../../modules/es.array.splice'); +require('../../../modules/es.array.to-reversed'); +require('../../../modules/es.array.to-sorted'); +require('../../../modules/es.array.to-spliced'); +require('../../../modules/es.array.unscopables.flat'); +require('../../../modules/es.array.unscopables.flat-map'); +require('../../../modules/es.array.unshift'); +require('../../../modules/es.array.with'); +require('../../../modules/es.object.to-string'); +var entryVirtual = require('../../../internals/entry-virtual'); + +module.exports = entryVirtual('Array'); diff --git a/node_modules/core-js/es/array/virtual/iterator.js b/node_modules/core-js/es/array/virtual/iterator.js new file mode 100644 index 0000000..5a8b3d4 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/iterator.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../../modules/es.array.iterator'); +require('../../../modules/es.object.to-string'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'values'); diff --git a/node_modules/core-js/es/array/virtual/join.js b/node_modules/core-js/es/array/virtual/join.js new file mode 100644 index 0000000..a60ddd8 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/join.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.join'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'join'); diff --git a/node_modules/core-js/es/array/virtual/keys.js b/node_modules/core-js/es/array/virtual/keys.js new file mode 100644 index 0000000..f4f40de --- /dev/null +++ b/node_modules/core-js/es/array/virtual/keys.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../../modules/es.array.iterator'); +require('../../../modules/es.object.to-string'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'keys'); diff --git a/node_modules/core-js/es/array/virtual/last-index-of.js b/node_modules/core-js/es/array/virtual/last-index-of.js new file mode 100644 index 0000000..3bbe2ec --- /dev/null +++ b/node_modules/core-js/es/array/virtual/last-index-of.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.last-index-of'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'lastIndexOf'); diff --git a/node_modules/core-js/es/array/virtual/map.js b/node_modules/core-js/es/array/virtual/map.js new file mode 100644 index 0000000..4596b98 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/map.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.map'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'map'); diff --git a/node_modules/core-js/es/array/virtual/push.js b/node_modules/core-js/es/array/virtual/push.js new file mode 100644 index 0000000..f28af7d --- /dev/null +++ b/node_modules/core-js/es/array/virtual/push.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.push'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'push'); diff --git a/node_modules/core-js/es/array/virtual/reduce-right.js b/node_modules/core-js/es/array/virtual/reduce-right.js new file mode 100644 index 0000000..2560648 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/reduce-right.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.reduce-right'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'reduceRight'); diff --git a/node_modules/core-js/es/array/virtual/reduce.js b/node_modules/core-js/es/array/virtual/reduce.js new file mode 100644 index 0000000..7d89021 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/reduce.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.reduce'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'reduce'); diff --git a/node_modules/core-js/es/array/virtual/reverse.js b/node_modules/core-js/es/array/virtual/reverse.js new file mode 100644 index 0000000..c747650 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/reverse.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.reverse'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'reverse'); diff --git a/node_modules/core-js/es/array/virtual/slice.js b/node_modules/core-js/es/array/virtual/slice.js new file mode 100644 index 0000000..8650e1d --- /dev/null +++ b/node_modules/core-js/es/array/virtual/slice.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.slice'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'slice'); diff --git a/node_modules/core-js/es/array/virtual/some.js b/node_modules/core-js/es/array/virtual/some.js new file mode 100644 index 0000000..e8d3327 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/some.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.some'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'some'); diff --git a/node_modules/core-js/es/array/virtual/sort.js b/node_modules/core-js/es/array/virtual/sort.js new file mode 100644 index 0000000..c09054c --- /dev/null +++ b/node_modules/core-js/es/array/virtual/sort.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.sort'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'sort'); diff --git a/node_modules/core-js/es/array/virtual/splice.js b/node_modules/core-js/es/array/virtual/splice.js new file mode 100644 index 0000000..60e2f3a --- /dev/null +++ b/node_modules/core-js/es/array/virtual/splice.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.splice'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'splice'); diff --git a/node_modules/core-js/es/array/virtual/to-reversed.js b/node_modules/core-js/es/array/virtual/to-reversed.js new file mode 100644 index 0000000..fd98212 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/to-reversed.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.to-reversed'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'toReversed'); diff --git a/node_modules/core-js/es/array/virtual/to-sorted.js b/node_modules/core-js/es/array/virtual/to-sorted.js new file mode 100644 index 0000000..5cb7fa2 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/to-sorted.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../../modules/es.array.sort'); +require('../../../modules/es.array.to-sorted'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'toSorted'); diff --git a/node_modules/core-js/es/array/virtual/to-spliced.js b/node_modules/core-js/es/array/virtual/to-spliced.js new file mode 100644 index 0000000..0ab0baf --- /dev/null +++ b/node_modules/core-js/es/array/virtual/to-spliced.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.to-spliced'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'toSpliced'); diff --git a/node_modules/core-js/es/array/virtual/unshift.js b/node_modules/core-js/es/array/virtual/unshift.js new file mode 100644 index 0000000..8f1038d --- /dev/null +++ b/node_modules/core-js/es/array/virtual/unshift.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.unshift'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'unshift'); diff --git a/node_modules/core-js/es/array/virtual/values.js b/node_modules/core-js/es/array/virtual/values.js new file mode 100644 index 0000000..5a8b3d4 --- /dev/null +++ b/node_modules/core-js/es/array/virtual/values.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../../modules/es.array.iterator'); +require('../../../modules/es.object.to-string'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'values'); diff --git a/node_modules/core-js/es/array/virtual/with.js b/node_modules/core-js/es/array/virtual/with.js new file mode 100644 index 0000000..c5da88a --- /dev/null +++ b/node_modules/core-js/es/array/virtual/with.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.array.with'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'with'); diff --git a/node_modules/core-js/es/array/with.js b/node_modules/core-js/es/array/with.js new file mode 100644 index 0000000..ed0527e --- /dev/null +++ b/node_modules/core-js/es/array/with.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.array.with'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'with'); diff --git a/node_modules/core-js/es/data-view/index.js b/node_modules/core-js/es/data-view/index.js new file mode 100644 index 0000000..6eeb107 --- /dev/null +++ b/node_modules/core-js/es/data-view/index.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.data-view'); +require('../../modules/es.object.to-string'); +var path = require('../../internals/path'); + +module.exports = path.DataView; diff --git a/node_modules/core-js/es/date/get-year.js b/node_modules/core-js/es/date/get-year.js new file mode 100644 index 0000000..8364fa1 --- /dev/null +++ b/node_modules/core-js/es/date/get-year.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.date.get-year'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Date', 'getYear'); diff --git a/node_modules/core-js/es/date/index.js b/node_modules/core-js/es/date/index.js new file mode 100644 index 0000000..ec1d224 --- /dev/null +++ b/node_modules/core-js/es/date/index.js @@ -0,0 +1,12 @@ +'use strict'; +require('../../modules/es.date.get-year'); +require('../../modules/es.date.now'); +require('../../modules/es.date.set-year'); +require('../../modules/es.date.to-gmt-string'); +require('../../modules/es.date.to-iso-string'); +require('../../modules/es.date.to-json'); +require('../../modules/es.date.to-string'); +require('../../modules/es.date.to-primitive'); +var path = require('../../internals/path'); + +module.exports = path.Date; diff --git a/node_modules/core-js/es/date/now.js b/node_modules/core-js/es/date/now.js new file mode 100644 index 0000000..0e395ae --- /dev/null +++ b/node_modules/core-js/es/date/now.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.date.now'); +var path = require('../../internals/path'); + +module.exports = path.Date.now; diff --git a/node_modules/core-js/es/date/set-year.js b/node_modules/core-js/es/date/set-year.js new file mode 100644 index 0000000..b12aa4e --- /dev/null +++ b/node_modules/core-js/es/date/set-year.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.date.set-year'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Date', 'setYear'); diff --git a/node_modules/core-js/es/date/to-gmt-string.js b/node_modules/core-js/es/date/to-gmt-string.js new file mode 100644 index 0000000..eb5fe4b --- /dev/null +++ b/node_modules/core-js/es/date/to-gmt-string.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.date.to-gmt-string'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Date', 'toGMTString'); diff --git a/node_modules/core-js/es/date/to-iso-string.js b/node_modules/core-js/es/date/to-iso-string.js new file mode 100644 index 0000000..1099ff1 --- /dev/null +++ b/node_modules/core-js/es/date/to-iso-string.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.date.to-iso-string'); +require('../../modules/es.date.to-json'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Date', 'toISOString'); diff --git a/node_modules/core-js/es/date/to-json.js b/node_modules/core-js/es/date/to-json.js new file mode 100644 index 0000000..891ee53 --- /dev/null +++ b/node_modules/core-js/es/date/to-json.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.date.to-json'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Date', 'toJSON'); diff --git a/node_modules/core-js/es/date/to-primitive.js b/node_modules/core-js/es/date/to-primitive.js new file mode 100644 index 0000000..bccade6 --- /dev/null +++ b/node_modules/core-js/es/date/to-primitive.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.date.to-primitive'); +var uncurryThis = require('../../internals/function-uncurry-this'); +var toPrimitive = require('../../internals/date-to-primitive'); + +module.exports = uncurryThis(toPrimitive); diff --git a/node_modules/core-js/es/date/to-string.js b/node_modules/core-js/es/date/to-string.js new file mode 100644 index 0000000..4dc3ee2 --- /dev/null +++ b/node_modules/core-js/es/date/to-string.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.date.to-string'); +var uncurryThis = require('../../internals/function-uncurry-this'); + +module.exports = uncurryThis(Date.prototype.toString); diff --git a/node_modules/core-js/es/error/constructor.js b/node_modules/core-js/es/error/constructor.js new file mode 100644 index 0000000..a14c352 --- /dev/null +++ b/node_modules/core-js/es/error/constructor.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.error.cause'); +var path = require('../../internals/path'); + +module.exports = path; diff --git a/node_modules/core-js/es/error/index.js b/node_modules/core-js/es/error/index.js new file mode 100644 index 0000000..10f873f --- /dev/null +++ b/node_modules/core-js/es/error/index.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.error.cause'); +require('../../modules/es.error.to-string'); +var path = require('../../internals/path'); + +module.exports = path; diff --git a/node_modules/core-js/es/error/to-string.js b/node_modules/core-js/es/error/to-string.js new file mode 100644 index 0000000..fe82bf2 --- /dev/null +++ b/node_modules/core-js/es/error/to-string.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.error.to-string'); +var toString = require('../../internals/error-to-string'); + +module.exports = toString; diff --git a/node_modules/core-js/es/escape.js b/node_modules/core-js/es/escape.js new file mode 100644 index 0000000..71775b5 --- /dev/null +++ b/node_modules/core-js/es/escape.js @@ -0,0 +1,5 @@ +'use strict'; +require('../modules/es.escape'); +var path = require('../internals/path'); + +module.exports = path.escape; diff --git a/node_modules/core-js/es/function/bind.js b/node_modules/core-js/es/function/bind.js new file mode 100644 index 0000000..4b35a80 --- /dev/null +++ b/node_modules/core-js/es/function/bind.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.function.bind'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Function', 'bind'); diff --git a/node_modules/core-js/es/function/has-instance.js b/node_modules/core-js/es/function/has-instance.js new file mode 100644 index 0000000..d50062d --- /dev/null +++ b/node_modules/core-js/es/function/has-instance.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.function.has-instance'); +var wellKnownSymbol = require('../../internals/well-known-symbol'); + +module.exports = Function[wellKnownSymbol('hasInstance')]; diff --git a/node_modules/core-js/es/function/index.js b/node_modules/core-js/es/function/index.js new file mode 100644 index 0000000..c58835f --- /dev/null +++ b/node_modules/core-js/es/function/index.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.function.bind'); +require('../../modules/es.function.name'); +require('../../modules/es.function.has-instance'); +var path = require('../../internals/path'); + +module.exports = path.Function; diff --git a/node_modules/core-js/es/function/name.js b/node_modules/core-js/es/function/name.js new file mode 100644 index 0000000..588269a --- /dev/null +++ b/node_modules/core-js/es/function/name.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.function.name'); diff --git a/node_modules/core-js/es/function/virtual/bind.js b/node_modules/core-js/es/function/virtual/bind.js new file mode 100644 index 0000000..46bf502 --- /dev/null +++ b/node_modules/core-js/es/function/virtual/bind.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.function.bind'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Function', 'bind'); diff --git a/node_modules/core-js/es/function/virtual/index.js b/node_modules/core-js/es/function/virtual/index.js new file mode 100644 index 0000000..ccda880 --- /dev/null +++ b/node_modules/core-js/es/function/virtual/index.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.function.bind'); +var entryVirtual = require('../../../internals/entry-virtual'); + +module.exports = entryVirtual('Function'); diff --git a/node_modules/core-js/es/get-iterator-method.js b/node_modules/core-js/es/get-iterator-method.js new file mode 100644 index 0000000..8ea9df4 --- /dev/null +++ b/node_modules/core-js/es/get-iterator-method.js @@ -0,0 +1,6 @@ +'use strict'; +require('../modules/es.array.iterator'); +require('../modules/es.string.iterator'); +var getIteratorMethod = require('../internals/get-iterator-method'); + +module.exports = getIteratorMethod; diff --git a/node_modules/core-js/es/get-iterator.js b/node_modules/core-js/es/get-iterator.js new file mode 100644 index 0000000..372774e --- /dev/null +++ b/node_modules/core-js/es/get-iterator.js @@ -0,0 +1,6 @@ +'use strict'; +require('../modules/es.array.iterator'); +require('../modules/es.string.iterator'); +var getIterator = require('../internals/get-iterator'); + +module.exports = getIterator; diff --git a/node_modules/core-js/es/global-this.js b/node_modules/core-js/es/global-this.js new file mode 100644 index 0000000..4b10fec --- /dev/null +++ b/node_modules/core-js/es/global-this.js @@ -0,0 +1,4 @@ +'use strict'; +require('../modules/es.global-this'); + +module.exports = require('../internals/global-this'); diff --git a/node_modules/core-js/es/index.js b/node_modules/core-js/es/index.js new file mode 100644 index 0000000..0e307ae --- /dev/null +++ b/node_modules/core-js/es/index.js @@ -0,0 +1,258 @@ +'use strict'; +require('../modules/es.symbol'); +require('../modules/es.symbol.description'); +require('../modules/es.symbol.async-iterator'); +require('../modules/es.symbol.has-instance'); +require('../modules/es.symbol.is-concat-spreadable'); +require('../modules/es.symbol.iterator'); +require('../modules/es.symbol.match'); +require('../modules/es.symbol.match-all'); +require('../modules/es.symbol.replace'); +require('../modules/es.symbol.search'); +require('../modules/es.symbol.species'); +require('../modules/es.symbol.split'); +require('../modules/es.symbol.to-primitive'); +require('../modules/es.symbol.to-string-tag'); +require('../modules/es.symbol.unscopables'); +require('../modules/es.error.cause'); +require('../modules/es.error.to-string'); +require('../modules/es.aggregate-error'); +require('../modules/es.aggregate-error.cause'); +require('../modules/es.array.at'); +require('../modules/es.array.concat'); +require('../modules/es.array.copy-within'); +require('../modules/es.array.every'); +require('../modules/es.array.fill'); +require('../modules/es.array.filter'); +require('../modules/es.array.find'); +require('../modules/es.array.find-index'); +require('../modules/es.array.find-last'); +require('../modules/es.array.find-last-index'); +require('../modules/es.array.flat'); +require('../modules/es.array.flat-map'); +require('../modules/es.array.for-each'); +require('../modules/es.array.from'); +require('../modules/es.array.includes'); +require('../modules/es.array.index-of'); +require('../modules/es.array.is-array'); +require('../modules/es.array.iterator'); +require('../modules/es.array.join'); +require('../modules/es.array.last-index-of'); +require('../modules/es.array.map'); +require('../modules/es.array.of'); +require('../modules/es.array.push'); +require('../modules/es.array.reduce'); +require('../modules/es.array.reduce-right'); +require('../modules/es.array.reverse'); +require('../modules/es.array.slice'); +require('../modules/es.array.some'); +require('../modules/es.array.sort'); +require('../modules/es.array.species'); +require('../modules/es.array.splice'); +require('../modules/es.array.to-reversed'); +require('../modules/es.array.to-sorted'); +require('../modules/es.array.to-spliced'); +require('../modules/es.array.unscopables.flat'); +require('../modules/es.array.unscopables.flat-map'); +require('../modules/es.array.unshift'); +require('../modules/es.array.with'); +require('../modules/es.array-buffer.constructor'); +require('../modules/es.array-buffer.is-view'); +require('../modules/es.array-buffer.slice'); +require('../modules/es.data-view'); +require('../modules/es.array-buffer.detached'); +require('../modules/es.array-buffer.transfer'); +require('../modules/es.array-buffer.transfer-to-fixed-length'); +require('../modules/es.date.get-year'); +require('../modules/es.date.now'); +require('../modules/es.date.set-year'); +require('../modules/es.date.to-gmt-string'); +require('../modules/es.date.to-iso-string'); +require('../modules/es.date.to-json'); +require('../modules/es.date.to-primitive'); +require('../modules/es.date.to-string'); +require('../modules/es.escape'); +require('../modules/es.function.bind'); +require('../modules/es.function.has-instance'); +require('../modules/es.function.name'); +require('../modules/es.global-this'); +require('../modules/es.json.stringify'); +require('../modules/es.json.to-string-tag'); +require('../modules/es.map'); +require('../modules/es.map.group-by'); +require('../modules/es.math.acosh'); +require('../modules/es.math.asinh'); +require('../modules/es.math.atanh'); +require('../modules/es.math.cbrt'); +require('../modules/es.math.clz32'); +require('../modules/es.math.cosh'); +require('../modules/es.math.expm1'); +require('../modules/es.math.fround'); +require('../modules/es.math.hypot'); +require('../modules/es.math.imul'); +require('../modules/es.math.log10'); +require('../modules/es.math.log1p'); +require('../modules/es.math.log2'); +require('../modules/es.math.sign'); +require('../modules/es.math.sinh'); +require('../modules/es.math.tanh'); +require('../modules/es.math.to-string-tag'); +require('../modules/es.math.trunc'); +require('../modules/es.number.constructor'); +require('../modules/es.number.epsilon'); +require('../modules/es.number.is-finite'); +require('../modules/es.number.is-integer'); +require('../modules/es.number.is-nan'); +require('../modules/es.number.is-safe-integer'); +require('../modules/es.number.max-safe-integer'); +require('../modules/es.number.min-safe-integer'); +require('../modules/es.number.parse-float'); +require('../modules/es.number.parse-int'); +require('../modules/es.number.to-exponential'); +require('../modules/es.number.to-fixed'); +require('../modules/es.number.to-precision'); +require('../modules/es.object.assign'); +require('../modules/es.object.create'); +require('../modules/es.object.define-getter'); +require('../modules/es.object.define-properties'); +require('../modules/es.object.define-property'); +require('../modules/es.object.define-setter'); +require('../modules/es.object.entries'); +require('../modules/es.object.freeze'); +require('../modules/es.object.from-entries'); +require('../modules/es.object.get-own-property-descriptor'); +require('../modules/es.object.get-own-property-descriptors'); +require('../modules/es.object.get-own-property-names'); +require('../modules/es.object.get-prototype-of'); +require('../modules/es.object.group-by'); +require('../modules/es.object.has-own'); +require('../modules/es.object.is'); +require('../modules/es.object.is-extensible'); +require('../modules/es.object.is-frozen'); +require('../modules/es.object.is-sealed'); +require('../modules/es.object.keys'); +require('../modules/es.object.lookup-getter'); +require('../modules/es.object.lookup-setter'); +require('../modules/es.object.prevent-extensions'); +require('../modules/es.object.proto'); +require('../modules/es.object.seal'); +require('../modules/es.object.set-prototype-of'); +require('../modules/es.object.to-string'); +require('../modules/es.object.values'); +require('../modules/es.parse-float'); +require('../modules/es.parse-int'); +require('../modules/es.promise'); +require('../modules/es.promise.all-settled'); +require('../modules/es.promise.any'); +require('../modules/es.promise.finally'); +require('../modules/es.promise.with-resolvers'); +require('../modules/es.reflect.apply'); +require('../modules/es.reflect.construct'); +require('../modules/es.reflect.define-property'); +require('../modules/es.reflect.delete-property'); +require('../modules/es.reflect.get'); +require('../modules/es.reflect.get-own-property-descriptor'); +require('../modules/es.reflect.get-prototype-of'); +require('../modules/es.reflect.has'); +require('../modules/es.reflect.is-extensible'); +require('../modules/es.reflect.own-keys'); +require('../modules/es.reflect.prevent-extensions'); +require('../modules/es.reflect.set'); +require('../modules/es.reflect.set-prototype-of'); +require('../modules/es.reflect.to-string-tag'); +require('../modules/es.regexp.constructor'); +require('../modules/es.regexp.dot-all'); +require('../modules/es.regexp.exec'); +require('../modules/es.regexp.flags'); +require('../modules/es.regexp.sticky'); +require('../modules/es.regexp.test'); +require('../modules/es.regexp.to-string'); +require('../modules/es.set'); +require('../modules/es.set.difference.v2'); +require('../modules/es.set.intersection.v2'); +require('../modules/es.set.is-disjoint-from.v2'); +require('../modules/es.set.is-subset-of.v2'); +require('../modules/es.set.is-superset-of.v2'); +require('../modules/es.set.symmetric-difference.v2'); +require('../modules/es.set.union.v2'); +require('../modules/es.string.at-alternative'); +require('../modules/es.string.code-point-at'); +require('../modules/es.string.ends-with'); +require('../modules/es.string.from-code-point'); +require('../modules/es.string.includes'); +require('../modules/es.string.is-well-formed'); +require('../modules/es.string.iterator'); +require('../modules/es.string.match'); +require('../modules/es.string.match-all'); +require('../modules/es.string.pad-end'); +require('../modules/es.string.pad-start'); +require('../modules/es.string.raw'); +require('../modules/es.string.repeat'); +require('../modules/es.string.replace'); +require('../modules/es.string.replace-all'); +require('../modules/es.string.search'); +require('../modules/es.string.split'); +require('../modules/es.string.starts-with'); +require('../modules/es.string.substr'); +require('../modules/es.string.to-well-formed'); +require('../modules/es.string.trim'); +require('../modules/es.string.trim-end'); +require('../modules/es.string.trim-start'); +require('../modules/es.string.anchor'); +require('../modules/es.string.big'); +require('../modules/es.string.blink'); +require('../modules/es.string.bold'); +require('../modules/es.string.fixed'); +require('../modules/es.string.fontcolor'); +require('../modules/es.string.fontsize'); +require('../modules/es.string.italics'); +require('../modules/es.string.link'); +require('../modules/es.string.small'); +require('../modules/es.string.strike'); +require('../modules/es.string.sub'); +require('../modules/es.string.sup'); +require('../modules/es.typed-array.float32-array'); +require('../modules/es.typed-array.float64-array'); +require('../modules/es.typed-array.int8-array'); +require('../modules/es.typed-array.int16-array'); +require('../modules/es.typed-array.int32-array'); +require('../modules/es.typed-array.uint8-array'); +require('../modules/es.typed-array.uint8-clamped-array'); +require('../modules/es.typed-array.uint16-array'); +require('../modules/es.typed-array.uint32-array'); +require('../modules/es.typed-array.at'); +require('../modules/es.typed-array.copy-within'); +require('../modules/es.typed-array.every'); +require('../modules/es.typed-array.fill'); +require('../modules/es.typed-array.filter'); +require('../modules/es.typed-array.find'); +require('../modules/es.typed-array.find-index'); +require('../modules/es.typed-array.find-last'); +require('../modules/es.typed-array.find-last-index'); +require('../modules/es.typed-array.for-each'); +require('../modules/es.typed-array.from'); +require('../modules/es.typed-array.includes'); +require('../modules/es.typed-array.index-of'); +require('../modules/es.typed-array.iterator'); +require('../modules/es.typed-array.join'); +require('../modules/es.typed-array.last-index-of'); +require('../modules/es.typed-array.map'); +require('../modules/es.typed-array.of'); +require('../modules/es.typed-array.reduce'); +require('../modules/es.typed-array.reduce-right'); +require('../modules/es.typed-array.reverse'); +require('../modules/es.typed-array.set'); +require('../modules/es.typed-array.slice'); +require('../modules/es.typed-array.some'); +require('../modules/es.typed-array.sort'); +require('../modules/es.typed-array.subarray'); +require('../modules/es.typed-array.to-locale-string'); +require('../modules/es.typed-array.to-reversed'); +require('../modules/es.typed-array.to-sorted'); +require('../modules/es.typed-array.to-string'); +require('../modules/es.typed-array.with'); +require('../modules/es.unescape'); +require('../modules/es.weak-map'); +require('../modules/es.weak-set'); + +module.exports = require('../internals/path'); diff --git a/node_modules/core-js/es/instance/at.js b/node_modules/core-js/es/instance/at.js new file mode 100644 index 0000000..75de4fc --- /dev/null +++ b/node_modules/core-js/es/instance/at.js @@ -0,0 +1,15 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var arrayMethod = require('../array/virtual/at'); +var stringMethod = require('../string/virtual/at'); + +var ArrayPrototype = Array.prototype; +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.at; + if (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.at)) return arrayMethod; + if (typeof it == 'string' || it === StringPrototype || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.at)) { + return stringMethod; + } return own; +}; diff --git a/node_modules/core-js/es/instance/bind.js b/node_modules/core-js/es/instance/bind.js new file mode 100644 index 0000000..e8fb66f --- /dev/null +++ b/node_modules/core-js/es/instance/bind.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../function/virtual/bind'); + +var FunctionPrototype = Function.prototype; + +module.exports = function (it) { + var own = it.bind; + return it === FunctionPrototype || (isPrototypeOf(FunctionPrototype, it) && own === FunctionPrototype.bind) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/code-point-at.js b/node_modules/core-js/es/instance/code-point-at.js new file mode 100644 index 0000000..5be3cd3 --- /dev/null +++ b/node_modules/core-js/es/instance/code-point-at.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/code-point-at'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.codePointAt; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.codePointAt) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/concat.js b/node_modules/core-js/es/instance/concat.js new file mode 100644 index 0000000..6474041 --- /dev/null +++ b/node_modules/core-js/es/instance/concat.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/concat'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.concat; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.concat) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/copy-within.js b/node_modules/core-js/es/instance/copy-within.js new file mode 100644 index 0000000..9b16fe0 --- /dev/null +++ b/node_modules/core-js/es/instance/copy-within.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/copy-within'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.copyWithin; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.copyWithin) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/ends-with.js b/node_modules/core-js/es/instance/ends-with.js new file mode 100644 index 0000000..ca2af50 --- /dev/null +++ b/node_modules/core-js/es/instance/ends-with.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/ends-with'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.endsWith; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.endsWith) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/entries.js b/node_modules/core-js/es/instance/entries.js new file mode 100644 index 0000000..e900c67 --- /dev/null +++ b/node_modules/core-js/es/instance/entries.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/entries'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.entries; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.entries) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/every.js b/node_modules/core-js/es/instance/every.js new file mode 100644 index 0000000..0e3bc52 --- /dev/null +++ b/node_modules/core-js/es/instance/every.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/every'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.every; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.every) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/fill.js b/node_modules/core-js/es/instance/fill.js new file mode 100644 index 0000000..5bf862c --- /dev/null +++ b/node_modules/core-js/es/instance/fill.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/fill'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.fill; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.fill) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/filter.js b/node_modules/core-js/es/instance/filter.js new file mode 100644 index 0000000..7e0a348 --- /dev/null +++ b/node_modules/core-js/es/instance/filter.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/filter'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.filter; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.filter) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/find-index.js b/node_modules/core-js/es/instance/find-index.js new file mode 100644 index 0000000..862344f --- /dev/null +++ b/node_modules/core-js/es/instance/find-index.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/find-index'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.findIndex; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.findIndex) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/find-last-index.js b/node_modules/core-js/es/instance/find-last-index.js new file mode 100644 index 0000000..4c7cfcb --- /dev/null +++ b/node_modules/core-js/es/instance/find-last-index.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/find-last-index'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.findLastIndex; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.findLastIndex) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/find-last.js b/node_modules/core-js/es/instance/find-last.js new file mode 100644 index 0000000..7d30e0b --- /dev/null +++ b/node_modules/core-js/es/instance/find-last.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/find-last'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.findLast; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.findLast) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/find.js b/node_modules/core-js/es/instance/find.js new file mode 100644 index 0000000..2511c3b --- /dev/null +++ b/node_modules/core-js/es/instance/find.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/find'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.find; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.find) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/flags.js b/node_modules/core-js/es/instance/flags.js new file mode 100644 index 0000000..66b08c4 --- /dev/null +++ b/node_modules/core-js/es/instance/flags.js @@ -0,0 +1,9 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var flags = require('../regexp/flags'); + +var RegExpPrototype = RegExp.prototype; + +module.exports = function (it) { + return (it === RegExpPrototype || isPrototypeOf(RegExpPrototype, it)) ? flags(it) : it.flags; +}; diff --git a/node_modules/core-js/es/instance/flat-map.js b/node_modules/core-js/es/instance/flat-map.js new file mode 100644 index 0000000..d406dd9 --- /dev/null +++ b/node_modules/core-js/es/instance/flat-map.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/flat-map'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.flatMap; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.flatMap) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/flat.js b/node_modules/core-js/es/instance/flat.js new file mode 100644 index 0000000..5b16864 --- /dev/null +++ b/node_modules/core-js/es/instance/flat.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/flat'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.flat; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.flat) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/for-each.js b/node_modules/core-js/es/instance/for-each.js new file mode 100644 index 0000000..58566e6 --- /dev/null +++ b/node_modules/core-js/es/instance/for-each.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/for-each'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.forEach; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.forEach) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/includes.js b/node_modules/core-js/es/instance/includes.js new file mode 100644 index 0000000..d2daf8c --- /dev/null +++ b/node_modules/core-js/es/instance/includes.js @@ -0,0 +1,15 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var arrayMethod = require('../array/virtual/includes'); +var stringMethod = require('../string/virtual/includes'); + +var ArrayPrototype = Array.prototype; +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.includes; + if (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.includes)) return arrayMethod; + if (typeof it == 'string' || it === StringPrototype || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.includes)) { + return stringMethod; + } return own; +}; diff --git a/node_modules/core-js/es/instance/index-of.js b/node_modules/core-js/es/instance/index-of.js new file mode 100644 index 0000000..bcd0898 --- /dev/null +++ b/node_modules/core-js/es/instance/index-of.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/index-of'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.indexOf; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.indexOf) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/is-well-formed.js b/node_modules/core-js/es/instance/is-well-formed.js new file mode 100644 index 0000000..728fdc5 --- /dev/null +++ b/node_modules/core-js/es/instance/is-well-formed.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/is-well-formed'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.isWellFormed; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.isWellFormed) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/keys.js b/node_modules/core-js/es/instance/keys.js new file mode 100644 index 0000000..b535ac2 --- /dev/null +++ b/node_modules/core-js/es/instance/keys.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/keys'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.keys; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.keys) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/last-index-of.js b/node_modules/core-js/es/instance/last-index-of.js new file mode 100644 index 0000000..633d120 --- /dev/null +++ b/node_modules/core-js/es/instance/last-index-of.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/last-index-of'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.lastIndexOf; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.lastIndexOf) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/map.js b/node_modules/core-js/es/instance/map.js new file mode 100644 index 0000000..43b9fca --- /dev/null +++ b/node_modules/core-js/es/instance/map.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/map'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.map; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.map) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/match-all.js b/node_modules/core-js/es/instance/match-all.js new file mode 100644 index 0000000..251a5be --- /dev/null +++ b/node_modules/core-js/es/instance/match-all.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/match-all'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.matchAll; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.matchAll) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/pad-end.js b/node_modules/core-js/es/instance/pad-end.js new file mode 100644 index 0000000..bb5dd80 --- /dev/null +++ b/node_modules/core-js/es/instance/pad-end.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/pad-end'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.padEnd; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.padEnd) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/pad-start.js b/node_modules/core-js/es/instance/pad-start.js new file mode 100644 index 0000000..94a73a9 --- /dev/null +++ b/node_modules/core-js/es/instance/pad-start.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/pad-start'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.padStart; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.padStart) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/push.js b/node_modules/core-js/es/instance/push.js new file mode 100644 index 0000000..1796ff0 --- /dev/null +++ b/node_modules/core-js/es/instance/push.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/push'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.push; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.push) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/reduce-right.js b/node_modules/core-js/es/instance/reduce-right.js new file mode 100644 index 0000000..25c6118 --- /dev/null +++ b/node_modules/core-js/es/instance/reduce-right.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/reduce-right'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.reduceRight; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.reduceRight) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/reduce.js b/node_modules/core-js/es/instance/reduce.js new file mode 100644 index 0000000..0f8f414 --- /dev/null +++ b/node_modules/core-js/es/instance/reduce.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/reduce'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.reduce; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.reduce) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/repeat.js b/node_modules/core-js/es/instance/repeat.js new file mode 100644 index 0000000..ab7e497 --- /dev/null +++ b/node_modules/core-js/es/instance/repeat.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/repeat'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.repeat; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.repeat) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/replace-all.js b/node_modules/core-js/es/instance/replace-all.js new file mode 100644 index 0000000..f5b2146 --- /dev/null +++ b/node_modules/core-js/es/instance/replace-all.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/replace-all'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.replaceAll; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.replaceAll) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/reverse.js b/node_modules/core-js/es/instance/reverse.js new file mode 100644 index 0000000..bf00f66 --- /dev/null +++ b/node_modules/core-js/es/instance/reverse.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/reverse'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.reverse; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.reverse) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/slice.js b/node_modules/core-js/es/instance/slice.js new file mode 100644 index 0000000..369ea0a --- /dev/null +++ b/node_modules/core-js/es/instance/slice.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/slice'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.slice; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.slice) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/some.js b/node_modules/core-js/es/instance/some.js new file mode 100644 index 0000000..3eddc1b --- /dev/null +++ b/node_modules/core-js/es/instance/some.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/some'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.some; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.some) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/sort.js b/node_modules/core-js/es/instance/sort.js new file mode 100644 index 0000000..a6c21f6 --- /dev/null +++ b/node_modules/core-js/es/instance/sort.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/sort'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.sort; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.sort) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/splice.js b/node_modules/core-js/es/instance/splice.js new file mode 100644 index 0000000..e7e715f --- /dev/null +++ b/node_modules/core-js/es/instance/splice.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/splice'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.splice; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.splice) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/starts-with.js b/node_modules/core-js/es/instance/starts-with.js new file mode 100644 index 0000000..2185de7 --- /dev/null +++ b/node_modules/core-js/es/instance/starts-with.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/starts-with'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.startsWith; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.startsWith) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/to-reversed.js b/node_modules/core-js/es/instance/to-reversed.js new file mode 100644 index 0000000..5cfb459 --- /dev/null +++ b/node_modules/core-js/es/instance/to-reversed.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/to-reversed'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.toReversed; + return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toReversed)) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/to-sorted.js b/node_modules/core-js/es/instance/to-sorted.js new file mode 100644 index 0000000..a059c6f --- /dev/null +++ b/node_modules/core-js/es/instance/to-sorted.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/to-sorted'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.toSorted; + return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toSorted)) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/to-spliced.js b/node_modules/core-js/es/instance/to-spliced.js new file mode 100644 index 0000000..9e67474 --- /dev/null +++ b/node_modules/core-js/es/instance/to-spliced.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/to-spliced'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.toSpliced; + return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toSpliced)) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/to-well-formed.js b/node_modules/core-js/es/instance/to-well-formed.js new file mode 100644 index 0000000..29701d8 --- /dev/null +++ b/node_modules/core-js/es/instance/to-well-formed.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/to-well-formed'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.toWellFormed; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.toWellFormed) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/trim-end.js b/node_modules/core-js/es/instance/trim-end.js new file mode 100644 index 0000000..4688be6 --- /dev/null +++ b/node_modules/core-js/es/instance/trim-end.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/trim-end'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.trimEnd; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.trimEnd) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/trim-left.js b/node_modules/core-js/es/instance/trim-left.js new file mode 100644 index 0000000..9657ceb --- /dev/null +++ b/node_modules/core-js/es/instance/trim-left.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/trim-left'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.trimLeft; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.trimLeft) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/trim-right.js b/node_modules/core-js/es/instance/trim-right.js new file mode 100644 index 0000000..16eb9e3 --- /dev/null +++ b/node_modules/core-js/es/instance/trim-right.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/trim-right'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.trimRight; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.trimRight) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/trim-start.js b/node_modules/core-js/es/instance/trim-start.js new file mode 100644 index 0000000..baf1599 --- /dev/null +++ b/node_modules/core-js/es/instance/trim-start.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/trim-start'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.trimStart; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.trimStart) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/trim.js b/node_modules/core-js/es/instance/trim.js new file mode 100644 index 0000000..6983995 --- /dev/null +++ b/node_modules/core-js/es/instance/trim.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/trim'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.trim; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.trim) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/unshift.js b/node_modules/core-js/es/instance/unshift.js new file mode 100644 index 0000000..e30c714 --- /dev/null +++ b/node_modules/core-js/es/instance/unshift.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/unshift'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.unshift; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.unshift) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/values.js b/node_modules/core-js/es/instance/values.js new file mode 100644 index 0000000..0573ad4 --- /dev/null +++ b/node_modules/core-js/es/instance/values.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/values'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.values; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.values) ? method : own; +}; diff --git a/node_modules/core-js/es/instance/with.js b/node_modules/core-js/es/instance/with.js new file mode 100644 index 0000000..f3db9f4 --- /dev/null +++ b/node_modules/core-js/es/instance/with.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/with'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it['with']; + return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype['with'])) ? method : own; +}; diff --git a/node_modules/core-js/es/is-iterable.js b/node_modules/core-js/es/is-iterable.js new file mode 100644 index 0000000..7a53114 --- /dev/null +++ b/node_modules/core-js/es/is-iterable.js @@ -0,0 +1,6 @@ +'use strict'; +require('../modules/es.array.iterator'); +require('../modules/es.string.iterator'); +var isIterable = require('../internals/is-iterable'); + +module.exports = isIterable; diff --git a/node_modules/core-js/es/json/index.js b/node_modules/core-js/es/json/index.js new file mode 100644 index 0000000..ea69c7f --- /dev/null +++ b/node_modules/core-js/es/json/index.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.date.to-json'); +require('../../modules/es.json.stringify'); +require('../../modules/es.json.to-string-tag'); +var path = require('../../internals/path'); + +// eslint-disable-next-line es/no-json -- safe +module.exports = path.JSON || (path.JSON = { stringify: JSON.stringify }); diff --git a/node_modules/core-js/es/json/stringify.js b/node_modules/core-js/es/json/stringify.js new file mode 100644 index 0000000..068f1ea --- /dev/null +++ b/node_modules/core-js/es/json/stringify.js @@ -0,0 +1,13 @@ +'use strict'; +require('../../modules/es.date.to-json'); +require('../../modules/es.json.stringify'); +var path = require('../../internals/path'); +var apply = require('../../internals/function-apply'); + +// eslint-disable-next-line es/no-json -- safe +if (!path.JSON) path.JSON = { stringify: JSON.stringify }; + +// eslint-disable-next-line no-unused-vars -- required for `.length` +module.exports = function stringify(it, replacer, space) { + return apply(path.JSON.stringify, null, arguments); +}; diff --git a/node_modules/core-js/es/json/to-string-tag.js b/node_modules/core-js/es/json/to-string-tag.js new file mode 100644 index 0000000..8a8fbcd --- /dev/null +++ b/node_modules/core-js/es/json/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/es.json.to-string-tag'); + +module.exports = 'JSON'; diff --git a/node_modules/core-js/es/map/group-by.js b/node_modules/core-js/es/map/group-by.js new file mode 100644 index 0000000..3228c05 --- /dev/null +++ b/node_modules/core-js/es/map/group-by.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.map'); +require('../../modules/es.map.group-by'); +var path = require('../../internals/path'); + +module.exports = path.Map.groupBy; diff --git a/node_modules/core-js/es/map/index.js b/node_modules/core-js/es/map/index.js new file mode 100644 index 0000000..9dea507 --- /dev/null +++ b/node_modules/core-js/es/map/index.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.map'); +require('../../modules/es.map.group-by'); +require('../../modules/es.object.to-string'); +require('../../modules/es.string.iterator'); +var path = require('../../internals/path'); + +module.exports = path.Map; diff --git a/node_modules/core-js/es/math/acosh.js b/node_modules/core-js/es/math/acosh.js new file mode 100644 index 0000000..f9f7797 --- /dev/null +++ b/node_modules/core-js/es/math/acosh.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.acosh'); +var path = require('../../internals/path'); + +module.exports = path.Math.acosh; diff --git a/node_modules/core-js/es/math/asinh.js b/node_modules/core-js/es/math/asinh.js new file mode 100644 index 0000000..fcbc193 --- /dev/null +++ b/node_modules/core-js/es/math/asinh.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.asinh'); +var path = require('../../internals/path'); + +module.exports = path.Math.asinh; diff --git a/node_modules/core-js/es/math/atanh.js b/node_modules/core-js/es/math/atanh.js new file mode 100644 index 0000000..cab7848 --- /dev/null +++ b/node_modules/core-js/es/math/atanh.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.atanh'); +var path = require('../../internals/path'); + +module.exports = path.Math.atanh; diff --git a/node_modules/core-js/es/math/cbrt.js b/node_modules/core-js/es/math/cbrt.js new file mode 100644 index 0000000..2760a52 --- /dev/null +++ b/node_modules/core-js/es/math/cbrt.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.cbrt'); +var path = require('../../internals/path'); + +module.exports = path.Math.cbrt; diff --git a/node_modules/core-js/es/math/clz32.js b/node_modules/core-js/es/math/clz32.js new file mode 100644 index 0000000..ba550ae --- /dev/null +++ b/node_modules/core-js/es/math/clz32.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.clz32'); +var path = require('../../internals/path'); + +module.exports = path.Math.clz32; diff --git a/node_modules/core-js/es/math/cosh.js b/node_modules/core-js/es/math/cosh.js new file mode 100644 index 0000000..73f9ada --- /dev/null +++ b/node_modules/core-js/es/math/cosh.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.cosh'); +var path = require('../../internals/path'); + +module.exports = path.Math.cosh; diff --git a/node_modules/core-js/es/math/expm1.js b/node_modules/core-js/es/math/expm1.js new file mode 100644 index 0000000..909cb45 --- /dev/null +++ b/node_modules/core-js/es/math/expm1.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.expm1'); +var path = require('../../internals/path'); + +module.exports = path.Math.expm1; diff --git a/node_modules/core-js/es/math/fround.js b/node_modules/core-js/es/math/fround.js new file mode 100644 index 0000000..25e17ca --- /dev/null +++ b/node_modules/core-js/es/math/fround.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.fround'); +var path = require('../../internals/path'); + +module.exports = path.Math.fround; diff --git a/node_modules/core-js/es/math/hypot.js b/node_modules/core-js/es/math/hypot.js new file mode 100644 index 0000000..9d476c8 --- /dev/null +++ b/node_modules/core-js/es/math/hypot.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.hypot'); +var path = require('../../internals/path'); + +module.exports = path.Math.hypot; diff --git a/node_modules/core-js/es/math/imul.js b/node_modules/core-js/es/math/imul.js new file mode 100644 index 0000000..4962f30 --- /dev/null +++ b/node_modules/core-js/es/math/imul.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.imul'); +var path = require('../../internals/path'); + +module.exports = path.Math.imul; diff --git a/node_modules/core-js/es/math/index.js b/node_modules/core-js/es/math/index.js new file mode 100644 index 0000000..a9e7aa9 --- /dev/null +++ b/node_modules/core-js/es/math/index.js @@ -0,0 +1,22 @@ +'use strict'; +require('../../modules/es.math.acosh'); +require('../../modules/es.math.asinh'); +require('../../modules/es.math.atanh'); +require('../../modules/es.math.cbrt'); +require('../../modules/es.math.clz32'); +require('../../modules/es.math.cosh'); +require('../../modules/es.math.expm1'); +require('../../modules/es.math.fround'); +require('../../modules/es.math.hypot'); +require('../../modules/es.math.imul'); +require('../../modules/es.math.log10'); +require('../../modules/es.math.log1p'); +require('../../modules/es.math.log2'); +require('../../modules/es.math.sign'); +require('../../modules/es.math.sinh'); +require('../../modules/es.math.tanh'); +require('../../modules/es.math.to-string-tag'); +require('../../modules/es.math.trunc'); +var path = require('../../internals/path'); + +module.exports = path.Math; diff --git a/node_modules/core-js/es/math/log10.js b/node_modules/core-js/es/math/log10.js new file mode 100644 index 0000000..abe3615 --- /dev/null +++ b/node_modules/core-js/es/math/log10.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.log10'); +var path = require('../../internals/path'); + +module.exports = path.Math.log10; diff --git a/node_modules/core-js/es/math/log1p.js b/node_modules/core-js/es/math/log1p.js new file mode 100644 index 0000000..ea24c24 --- /dev/null +++ b/node_modules/core-js/es/math/log1p.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.log1p'); +var path = require('../../internals/path'); + +module.exports = path.Math.log1p; diff --git a/node_modules/core-js/es/math/log2.js b/node_modules/core-js/es/math/log2.js new file mode 100644 index 0000000..39aca14 --- /dev/null +++ b/node_modules/core-js/es/math/log2.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.log2'); +var path = require('../../internals/path'); + +module.exports = path.Math.log2; diff --git a/node_modules/core-js/es/math/sign.js b/node_modules/core-js/es/math/sign.js new file mode 100644 index 0000000..7d3c835 --- /dev/null +++ b/node_modules/core-js/es/math/sign.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.sign'); +var path = require('../../internals/path'); + +module.exports = path.Math.sign; diff --git a/node_modules/core-js/es/math/sinh.js b/node_modules/core-js/es/math/sinh.js new file mode 100644 index 0000000..07412d6 --- /dev/null +++ b/node_modules/core-js/es/math/sinh.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.sinh'); +var path = require('../../internals/path'); + +module.exports = path.Math.sinh; diff --git a/node_modules/core-js/es/math/tanh.js b/node_modules/core-js/es/math/tanh.js new file mode 100644 index 0000000..906be86 --- /dev/null +++ b/node_modules/core-js/es/math/tanh.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.tanh'); +var path = require('../../internals/path'); + +module.exports = path.Math.tanh; diff --git a/node_modules/core-js/es/math/to-string-tag.js b/node_modules/core-js/es/math/to-string-tag.js new file mode 100644 index 0000000..f59580a --- /dev/null +++ b/node_modules/core-js/es/math/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/es.math.to-string-tag'); + +module.exports = 'Math'; diff --git a/node_modules/core-js/es/math/trunc.js b/node_modules/core-js/es/math/trunc.js new file mode 100644 index 0000000..491a41a --- /dev/null +++ b/node_modules/core-js/es/math/trunc.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.math.trunc'); +var path = require('../../internals/path'); + +module.exports = path.Math.trunc; diff --git a/node_modules/core-js/es/number/constructor.js b/node_modules/core-js/es/number/constructor.js new file mode 100644 index 0000000..77d9d6d --- /dev/null +++ b/node_modules/core-js/es/number/constructor.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.number.constructor'); +var path = require('../../internals/path'); + +module.exports = path.Number; diff --git a/node_modules/core-js/es/number/epsilon.js b/node_modules/core-js/es/number/epsilon.js new file mode 100644 index 0000000..a0405ff --- /dev/null +++ b/node_modules/core-js/es/number/epsilon.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/es.number.epsilon'); + +module.exports = Math.pow(2, -52); diff --git a/node_modules/core-js/es/number/index.js b/node_modules/core-js/es/number/index.js new file mode 100644 index 0000000..f1eaa61 --- /dev/null +++ b/node_modules/core-js/es/number/index.js @@ -0,0 +1,17 @@ +'use strict'; +require('../../modules/es.number.constructor'); +require('../../modules/es.number.epsilon'); +require('../../modules/es.number.is-finite'); +require('../../modules/es.number.is-integer'); +require('../../modules/es.number.is-nan'); +require('../../modules/es.number.is-safe-integer'); +require('../../modules/es.number.max-safe-integer'); +require('../../modules/es.number.min-safe-integer'); +require('../../modules/es.number.parse-float'); +require('../../modules/es.number.parse-int'); +require('../../modules/es.number.to-exponential'); +require('../../modules/es.number.to-fixed'); +require('../../modules/es.number.to-precision'); +var path = require('../../internals/path'); + +module.exports = path.Number; diff --git a/node_modules/core-js/es/number/is-finite.js b/node_modules/core-js/es/number/is-finite.js new file mode 100644 index 0000000..c57cd98 --- /dev/null +++ b/node_modules/core-js/es/number/is-finite.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.number.is-finite'); +var path = require('../../internals/path'); + +module.exports = path.Number.isFinite; diff --git a/node_modules/core-js/es/number/is-integer.js b/node_modules/core-js/es/number/is-integer.js new file mode 100644 index 0000000..9c1e3ce --- /dev/null +++ b/node_modules/core-js/es/number/is-integer.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.number.is-integer'); +var path = require('../../internals/path'); + +module.exports = path.Number.isInteger; diff --git a/node_modules/core-js/es/number/is-nan.js b/node_modules/core-js/es/number/is-nan.js new file mode 100644 index 0000000..e55780f --- /dev/null +++ b/node_modules/core-js/es/number/is-nan.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.number.is-nan'); +var path = require('../../internals/path'); + +module.exports = path.Number.isNaN; diff --git a/node_modules/core-js/es/number/is-safe-integer.js b/node_modules/core-js/es/number/is-safe-integer.js new file mode 100644 index 0000000..a83cb0f --- /dev/null +++ b/node_modules/core-js/es/number/is-safe-integer.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.number.is-safe-integer'); +var path = require('../../internals/path'); + +module.exports = path.Number.isSafeInteger; diff --git a/node_modules/core-js/es/number/max-safe-integer.js b/node_modules/core-js/es/number/max-safe-integer.js new file mode 100644 index 0000000..68c978c --- /dev/null +++ b/node_modules/core-js/es/number/max-safe-integer.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/es.number.max-safe-integer'); + +module.exports = 0x1FFFFFFFFFFFFF; diff --git a/node_modules/core-js/es/number/min-safe-integer.js b/node_modules/core-js/es/number/min-safe-integer.js new file mode 100644 index 0000000..0354566 --- /dev/null +++ b/node_modules/core-js/es/number/min-safe-integer.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/es.number.min-safe-integer'); + +module.exports = -0x1FFFFFFFFFFFFF; diff --git a/node_modules/core-js/es/number/parse-float.js b/node_modules/core-js/es/number/parse-float.js new file mode 100644 index 0000000..43015af --- /dev/null +++ b/node_modules/core-js/es/number/parse-float.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.number.parse-float'); +var path = require('../../internals/path'); + +module.exports = path.Number.parseFloat; diff --git a/node_modules/core-js/es/number/parse-int.js b/node_modules/core-js/es/number/parse-int.js new file mode 100644 index 0000000..90660fc --- /dev/null +++ b/node_modules/core-js/es/number/parse-int.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.number.parse-int'); +var path = require('../../internals/path'); + +module.exports = path.Number.parseInt; diff --git a/node_modules/core-js/es/number/to-exponential.js b/node_modules/core-js/es/number/to-exponential.js new file mode 100644 index 0000000..cb5f64e --- /dev/null +++ b/node_modules/core-js/es/number/to-exponential.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.number.to-exponential'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Number', 'toExponential'); diff --git a/node_modules/core-js/es/number/to-fixed.js b/node_modules/core-js/es/number/to-fixed.js new file mode 100644 index 0000000..f96050d --- /dev/null +++ b/node_modules/core-js/es/number/to-fixed.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.number.to-fixed'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Number', 'toFixed'); diff --git a/node_modules/core-js/es/number/to-precision.js b/node_modules/core-js/es/number/to-precision.js new file mode 100644 index 0000000..395353d --- /dev/null +++ b/node_modules/core-js/es/number/to-precision.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.number.to-precision'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Number', 'toPrecision'); diff --git a/node_modules/core-js/es/number/virtual/index.js b/node_modules/core-js/es/number/virtual/index.js new file mode 100644 index 0000000..1414039 --- /dev/null +++ b/node_modules/core-js/es/number/virtual/index.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../../modules/es.number.to-exponential'); +require('../../../modules/es.number.to-fixed'); +require('../../../modules/es.number.to-precision'); +var entryVirtual = require('../../../internals/entry-virtual'); + +module.exports = entryVirtual('Number'); diff --git a/node_modules/core-js/es/number/virtual/to-exponential.js b/node_modules/core-js/es/number/virtual/to-exponential.js new file mode 100644 index 0000000..16c701a --- /dev/null +++ b/node_modules/core-js/es/number/virtual/to-exponential.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.number.to-exponential'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Number', 'toExponential'); diff --git a/node_modules/core-js/es/number/virtual/to-fixed.js b/node_modules/core-js/es/number/virtual/to-fixed.js new file mode 100644 index 0000000..13f923c --- /dev/null +++ b/node_modules/core-js/es/number/virtual/to-fixed.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.number.to-fixed'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Number', 'toFixed'); diff --git a/node_modules/core-js/es/number/virtual/to-precision.js b/node_modules/core-js/es/number/virtual/to-precision.js new file mode 100644 index 0000000..3f14005 --- /dev/null +++ b/node_modules/core-js/es/number/virtual/to-precision.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.number.to-precision'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Number', 'toPrecision'); diff --git a/node_modules/core-js/es/object/assign.js b/node_modules/core-js/es/object/assign.js new file mode 100644 index 0000000..a65486b --- /dev/null +++ b/node_modules/core-js/es/object/assign.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.assign'); +var path = require('../../internals/path'); + +module.exports = path.Object.assign; diff --git a/node_modules/core-js/es/object/create.js b/node_modules/core-js/es/object/create.js new file mode 100644 index 0000000..4c8ed6d --- /dev/null +++ b/node_modules/core-js/es/object/create.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.create'); +var path = require('../../internals/path'); + +var Object = path.Object; + +module.exports = function create(P, D) { + return Object.create(P, D); +}; diff --git a/node_modules/core-js/es/object/define-getter.js b/node_modules/core-js/es/object/define-getter.js new file mode 100644 index 0000000..a7073b9 --- /dev/null +++ b/node_modules/core-js/es/object/define-getter.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.define-getter'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Object', '__defineGetter__'); diff --git a/node_modules/core-js/es/object/define-properties.js b/node_modules/core-js/es/object/define-properties.js new file mode 100644 index 0000000..6b3959e --- /dev/null +++ b/node_modules/core-js/es/object/define-properties.js @@ -0,0 +1,11 @@ +'use strict'; +require('../../modules/es.object.define-properties'); +var path = require('../../internals/path'); + +var Object = path.Object; + +var defineProperties = module.exports = function defineProperties(T, D) { + return Object.defineProperties(T, D); +}; + +if (Object.defineProperties.sham) defineProperties.sham = true; diff --git a/node_modules/core-js/es/object/define-property.js b/node_modules/core-js/es/object/define-property.js new file mode 100644 index 0000000..26b927b --- /dev/null +++ b/node_modules/core-js/es/object/define-property.js @@ -0,0 +1,11 @@ +'use strict'; +require('../../modules/es.object.define-property'); +var path = require('../../internals/path'); + +var Object = path.Object; + +var defineProperty = module.exports = function defineProperty(it, key, desc) { + return Object.defineProperty(it, key, desc); +}; + +if (Object.defineProperty.sham) defineProperty.sham = true; diff --git a/node_modules/core-js/es/object/define-setter.js b/node_modules/core-js/es/object/define-setter.js new file mode 100644 index 0000000..0b35dec --- /dev/null +++ b/node_modules/core-js/es/object/define-setter.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.define-setter'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Object', '__defineSetter__'); diff --git a/node_modules/core-js/es/object/entries.js b/node_modules/core-js/es/object/entries.js new file mode 100644 index 0000000..5670fe3 --- /dev/null +++ b/node_modules/core-js/es/object/entries.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.entries'); +var path = require('../../internals/path'); + +module.exports = path.Object.entries; diff --git a/node_modules/core-js/es/object/freeze.js b/node_modules/core-js/es/object/freeze.js new file mode 100644 index 0000000..f0bc19a --- /dev/null +++ b/node_modules/core-js/es/object/freeze.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.freeze'); +var path = require('../../internals/path'); + +module.exports = path.Object.freeze; diff --git a/node_modules/core-js/es/object/from-entries.js b/node_modules/core-js/es/object/from-entries.js new file mode 100644 index 0000000..9177fec --- /dev/null +++ b/node_modules/core-js/es/object/from-entries.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.from-entries'); +var path = require('../../internals/path'); + +module.exports = path.Object.fromEntries; diff --git a/node_modules/core-js/es/object/get-own-property-descriptor.js b/node_modules/core-js/es/object/get-own-property-descriptor.js new file mode 100644 index 0000000..069b151 --- /dev/null +++ b/node_modules/core-js/es/object/get-own-property-descriptor.js @@ -0,0 +1,11 @@ +'use strict'; +require('../../modules/es.object.get-own-property-descriptor'); +var path = require('../../internals/path'); + +var Object = path.Object; + +var getOwnPropertyDescriptor = module.exports = function getOwnPropertyDescriptor(it, key) { + return Object.getOwnPropertyDescriptor(it, key); +}; + +if (Object.getOwnPropertyDescriptor.sham) getOwnPropertyDescriptor.sham = true; diff --git a/node_modules/core-js/es/object/get-own-property-descriptors.js b/node_modules/core-js/es/object/get-own-property-descriptors.js new file mode 100644 index 0000000..7155192 --- /dev/null +++ b/node_modules/core-js/es/object/get-own-property-descriptors.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.get-own-property-descriptors'); +var path = require('../../internals/path'); + +module.exports = path.Object.getOwnPropertyDescriptors; diff --git a/node_modules/core-js/es/object/get-own-property-names.js b/node_modules/core-js/es/object/get-own-property-names.js new file mode 100644 index 0000000..fe438dd --- /dev/null +++ b/node_modules/core-js/es/object/get-own-property-names.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.get-own-property-names'); +var path = require('../../internals/path'); + +var Object = path.Object; + +module.exports = function getOwnPropertyNames(it) { + return Object.getOwnPropertyNames(it); +}; diff --git a/node_modules/core-js/es/object/get-own-property-symbols.js b/node_modules/core-js/es/object/get-own-property-symbols.js new file mode 100644 index 0000000..5238c78 --- /dev/null +++ b/node_modules/core-js/es/object/get-own-property-symbols.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.symbol'); +var path = require('../../internals/path'); + +module.exports = path.Object.getOwnPropertySymbols; diff --git a/node_modules/core-js/es/object/get-prototype-of.js b/node_modules/core-js/es/object/get-prototype-of.js new file mode 100644 index 0000000..a0af9c6 --- /dev/null +++ b/node_modules/core-js/es/object/get-prototype-of.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.get-prototype-of'); +var path = require('../../internals/path'); + +module.exports = path.Object.getPrototypeOf; diff --git a/node_modules/core-js/es/object/group-by.js b/node_modules/core-js/es/object/group-by.js new file mode 100644 index 0000000..52a006c --- /dev/null +++ b/node_modules/core-js/es/object/group-by.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.object.create'); +require('../../modules/es.object.group-by'); + +var path = require('../../internals/path'); + +module.exports = path.Object.groupBy; diff --git a/node_modules/core-js/es/object/has-own.js b/node_modules/core-js/es/object/has-own.js new file mode 100644 index 0000000..bf8685c --- /dev/null +++ b/node_modules/core-js/es/object/has-own.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.has-own'); +var path = require('../../internals/path'); + +module.exports = path.Object.hasOwn; diff --git a/node_modules/core-js/es/object/index.js b/node_modules/core-js/es/object/index.js new file mode 100644 index 0000000..266bb6e --- /dev/null +++ b/node_modules/core-js/es/object/index.js @@ -0,0 +1,36 @@ +'use strict'; +require('../../modules/es.symbol'); +require('../../modules/es.object.assign'); +require('../../modules/es.object.create'); +require('../../modules/es.object.define-property'); +require('../../modules/es.object.define-properties'); +require('../../modules/es.object.entries'); +require('../../modules/es.object.freeze'); +require('../../modules/es.object.from-entries'); +require('../../modules/es.object.get-own-property-descriptor'); +require('../../modules/es.object.get-own-property-descriptors'); +require('../../modules/es.object.get-own-property-names'); +require('../../modules/es.object.get-prototype-of'); +require('../../modules/es.object.group-by'); +require('../../modules/es.object.has-own'); +require('../../modules/es.object.is'); +require('../../modules/es.object.is-extensible'); +require('../../modules/es.object.is-frozen'); +require('../../modules/es.object.is-sealed'); +require('../../modules/es.object.keys'); +require('../../modules/es.object.prevent-extensions'); +require('../../modules/es.object.proto'); +require('../../modules/es.object.seal'); +require('../../modules/es.object.set-prototype-of'); +require('../../modules/es.object.values'); +require('../../modules/es.object.to-string'); +require('../../modules/es.object.define-getter'); +require('../../modules/es.object.define-setter'); +require('../../modules/es.object.lookup-getter'); +require('../../modules/es.object.lookup-setter'); +require('../../modules/es.json.to-string-tag'); +require('../../modules/es.math.to-string-tag'); +require('../../modules/es.reflect.to-string-tag'); +var path = require('../../internals/path'); + +module.exports = path.Object; diff --git a/node_modules/core-js/es/object/is-extensible.js b/node_modules/core-js/es/object/is-extensible.js new file mode 100644 index 0000000..8472a83 --- /dev/null +++ b/node_modules/core-js/es/object/is-extensible.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.is-extensible'); +var path = require('../../internals/path'); + +module.exports = path.Object.isExtensible; diff --git a/node_modules/core-js/es/object/is-frozen.js b/node_modules/core-js/es/object/is-frozen.js new file mode 100644 index 0000000..7ce7848 --- /dev/null +++ b/node_modules/core-js/es/object/is-frozen.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.is-frozen'); +var path = require('../../internals/path'); + +module.exports = path.Object.isFrozen; diff --git a/node_modules/core-js/es/object/is-sealed.js b/node_modules/core-js/es/object/is-sealed.js new file mode 100644 index 0000000..d7f4b3d --- /dev/null +++ b/node_modules/core-js/es/object/is-sealed.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.is-sealed'); +var path = require('../../internals/path'); + +module.exports = path.Object.isSealed; diff --git a/node_modules/core-js/es/object/is.js b/node_modules/core-js/es/object/is.js new file mode 100644 index 0000000..9b0dbc3 --- /dev/null +++ b/node_modules/core-js/es/object/is.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.is'); +var path = require('../../internals/path'); + +module.exports = path.Object.is; diff --git a/node_modules/core-js/es/object/keys.js b/node_modules/core-js/es/object/keys.js new file mode 100644 index 0000000..e0c0143 --- /dev/null +++ b/node_modules/core-js/es/object/keys.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.keys'); +var path = require('../../internals/path'); + +module.exports = path.Object.keys; diff --git a/node_modules/core-js/es/object/lookup-getter.js b/node_modules/core-js/es/object/lookup-getter.js new file mode 100644 index 0000000..cadd1f3 --- /dev/null +++ b/node_modules/core-js/es/object/lookup-getter.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.lookup-getter'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Object', '__lookupGetter__'); diff --git a/node_modules/core-js/es/object/lookup-setter.js b/node_modules/core-js/es/object/lookup-setter.js new file mode 100644 index 0000000..6afc30f --- /dev/null +++ b/node_modules/core-js/es/object/lookup-setter.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.lookup-setter'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Object', '__lookupSetter__'); diff --git a/node_modules/core-js/es/object/prevent-extensions.js b/node_modules/core-js/es/object/prevent-extensions.js new file mode 100644 index 0000000..4c0a44a --- /dev/null +++ b/node_modules/core-js/es/object/prevent-extensions.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.prevent-extensions'); +var path = require('../../internals/path'); + +module.exports = path.Object.preventExtensions; diff --git a/node_modules/core-js/es/object/proto.js b/node_modules/core-js/es/object/proto.js new file mode 100644 index 0000000..611f168 --- /dev/null +++ b/node_modules/core-js/es/object/proto.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.object.proto'); diff --git a/node_modules/core-js/es/object/seal.js b/node_modules/core-js/es/object/seal.js new file mode 100644 index 0000000..4da8ba8 --- /dev/null +++ b/node_modules/core-js/es/object/seal.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.seal'); +var path = require('../../internals/path'); + +module.exports = path.Object.seal; diff --git a/node_modules/core-js/es/object/set-prototype-of.js b/node_modules/core-js/es/object/set-prototype-of.js new file mode 100644 index 0000000..2920089 --- /dev/null +++ b/node_modules/core-js/es/object/set-prototype-of.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.set-prototype-of'); +var path = require('../../internals/path'); + +module.exports = path.Object.setPrototypeOf; diff --git a/node_modules/core-js/es/object/to-string.js b/node_modules/core-js/es/object/to-string.js new file mode 100644 index 0000000..76f65f6 --- /dev/null +++ b/node_modules/core-js/es/object/to-string.js @@ -0,0 +1,10 @@ +'use strict'; +require('../../modules/es.json.to-string-tag'); +require('../../modules/es.math.to-string-tag'); +require('../../modules/es.object.to-string'); +require('../../modules/es.reflect.to-string-tag'); +var classof = require('../../internals/classof'); + +module.exports = function (it) { + return '[object ' + classof(it) + ']'; +}; diff --git a/node_modules/core-js/es/object/values.js b/node_modules/core-js/es/object/values.js new file mode 100644 index 0000000..6c4f188 --- /dev/null +++ b/node_modules/core-js/es/object/values.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.values'); +var path = require('../../internals/path'); + +module.exports = path.Object.values; diff --git a/node_modules/core-js/es/parse-float.js b/node_modules/core-js/es/parse-float.js new file mode 100644 index 0000000..38fcad1 --- /dev/null +++ b/node_modules/core-js/es/parse-float.js @@ -0,0 +1,5 @@ +'use strict'; +require('../modules/es.parse-float'); +var path = require('../internals/path'); + +module.exports = path.parseFloat; diff --git a/node_modules/core-js/es/parse-int.js b/node_modules/core-js/es/parse-int.js new file mode 100644 index 0000000..9859572 --- /dev/null +++ b/node_modules/core-js/es/parse-int.js @@ -0,0 +1,5 @@ +'use strict'; +require('../modules/es.parse-int'); +var path = require('../internals/path'); + +module.exports = path.parseInt; diff --git a/node_modules/core-js/es/promise/all-settled.js b/node_modules/core-js/es/promise/all-settled.js new file mode 100644 index 0000000..9f9875e --- /dev/null +++ b/node_modules/core-js/es/promise/all-settled.js @@ -0,0 +1,16 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/es.promise.all-settled'); +require('../../modules/es.string.iterator'); +var call = require('../../internals/function-call'); +var isCallable = require('../../internals/is-callable'); +var path = require('../../internals/path'); + +var Promise = path.Promise; +var $allSettled = Promise.allSettled; + +module.exports = function allSettled(iterable) { + return call($allSettled, isCallable(this) ? this : Promise, iterable); +}; diff --git a/node_modules/core-js/es/promise/any.js b/node_modules/core-js/es/promise/any.js new file mode 100644 index 0000000..8e49250 --- /dev/null +++ b/node_modules/core-js/es/promise/any.js @@ -0,0 +1,17 @@ +'use strict'; +require('../../modules/es.aggregate-error'); +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/es.promise.any'); +require('../../modules/es.string.iterator'); +var call = require('../../internals/function-call'); +var isCallable = require('../../internals/is-callable'); +var path = require('../../internals/path'); + +var Promise = path.Promise; +var $any = Promise.any; + +module.exports = function any(iterable) { + return call($any, isCallable(this) ? this : Promise, iterable); +}; diff --git a/node_modules/core-js/es/promise/finally.js b/node_modules/core-js/es/promise/finally.js new file mode 100644 index 0000000..6a07c1a --- /dev/null +++ b/node_modules/core-js/es/promise/finally.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/es.promise.finally'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Promise', 'finally'); diff --git a/node_modules/core-js/es/promise/index.js b/node_modules/core-js/es/promise/index.js new file mode 100644 index 0000000..aa570f8 --- /dev/null +++ b/node_modules/core-js/es/promise/index.js @@ -0,0 +1,13 @@ +'use strict'; +require('../../modules/es.aggregate-error'); +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/es.promise.all-settled'); +require('../../modules/es.promise.any'); +require('../../modules/es.promise.with-resolvers'); +require('../../modules/es.promise.finally'); +require('../../modules/es.string.iterator'); +var path = require('../../internals/path'); + +module.exports = path.Promise; diff --git a/node_modules/core-js/es/promise/with-resolvers.js b/node_modules/core-js/es/promise/with-resolvers.js new file mode 100644 index 0000000..0e2f6a0 --- /dev/null +++ b/node_modules/core-js/es/promise/with-resolvers.js @@ -0,0 +1,13 @@ +'use strict'; +require('../../modules/es.promise'); +require('../../modules/es.promise.with-resolvers'); +var call = require('../../internals/function-call'); +var isCallable = require('../../internals/is-callable'); +var path = require('../../internals/path'); + +var Promise = path.Promise; +var promiseWithResolvers = Promise.withResolvers; + +module.exports = function withResolvers() { + return call(promiseWithResolvers, isCallable(this) ? this : Promise); +}; diff --git a/node_modules/core-js/es/reflect/apply.js b/node_modules/core-js/es/reflect/apply.js new file mode 100644 index 0000000..3e20a2d --- /dev/null +++ b/node_modules/core-js/es/reflect/apply.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.reflect.apply'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.apply; diff --git a/node_modules/core-js/es/reflect/construct.js b/node_modules/core-js/es/reflect/construct.js new file mode 100644 index 0000000..c2118b2 --- /dev/null +++ b/node_modules/core-js/es/reflect/construct.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.reflect.construct'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.construct; diff --git a/node_modules/core-js/es/reflect/define-property.js b/node_modules/core-js/es/reflect/define-property.js new file mode 100644 index 0000000..b2366a7 --- /dev/null +++ b/node_modules/core-js/es/reflect/define-property.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.reflect.define-property'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.defineProperty; diff --git a/node_modules/core-js/es/reflect/delete-property.js b/node_modules/core-js/es/reflect/delete-property.js new file mode 100644 index 0000000..43f7cc3 --- /dev/null +++ b/node_modules/core-js/es/reflect/delete-property.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.reflect.delete-property'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.deleteProperty; diff --git a/node_modules/core-js/es/reflect/get-own-property-descriptor.js b/node_modules/core-js/es/reflect/get-own-property-descriptor.js new file mode 100644 index 0000000..2426052 --- /dev/null +++ b/node_modules/core-js/es/reflect/get-own-property-descriptor.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.reflect.get-own-property-descriptor'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.getOwnPropertyDescriptor; diff --git a/node_modules/core-js/es/reflect/get-prototype-of.js b/node_modules/core-js/es/reflect/get-prototype-of.js new file mode 100644 index 0000000..a53ab73 --- /dev/null +++ b/node_modules/core-js/es/reflect/get-prototype-of.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.reflect.get-prototype-of'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.getPrototypeOf; diff --git a/node_modules/core-js/es/reflect/get.js b/node_modules/core-js/es/reflect/get.js new file mode 100644 index 0000000..ec57c08 --- /dev/null +++ b/node_modules/core-js/es/reflect/get.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.reflect.get'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.get; diff --git a/node_modules/core-js/es/reflect/has.js b/node_modules/core-js/es/reflect/has.js new file mode 100644 index 0000000..70f721b --- /dev/null +++ b/node_modules/core-js/es/reflect/has.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.reflect.has'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.has; diff --git a/node_modules/core-js/es/reflect/index.js b/node_modules/core-js/es/reflect/index.js new file mode 100644 index 0000000..0916f6a --- /dev/null +++ b/node_modules/core-js/es/reflect/index.js @@ -0,0 +1,19 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.reflect.apply'); +require('../../modules/es.reflect.construct'); +require('../../modules/es.reflect.define-property'); +require('../../modules/es.reflect.delete-property'); +require('../../modules/es.reflect.get'); +require('../../modules/es.reflect.get-own-property-descriptor'); +require('../../modules/es.reflect.get-prototype-of'); +require('../../modules/es.reflect.has'); +require('../../modules/es.reflect.is-extensible'); +require('../../modules/es.reflect.own-keys'); +require('../../modules/es.reflect.prevent-extensions'); +require('../../modules/es.reflect.set'); +require('../../modules/es.reflect.set-prototype-of'); +require('../../modules/es.reflect.to-string-tag'); +var path = require('../../internals/path'); + +module.exports = path.Reflect; diff --git a/node_modules/core-js/es/reflect/is-extensible.js b/node_modules/core-js/es/reflect/is-extensible.js new file mode 100644 index 0000000..c234774 --- /dev/null +++ b/node_modules/core-js/es/reflect/is-extensible.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.reflect.is-extensible'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.isExtensible; diff --git a/node_modules/core-js/es/reflect/own-keys.js b/node_modules/core-js/es/reflect/own-keys.js new file mode 100644 index 0000000..15a75b2 --- /dev/null +++ b/node_modules/core-js/es/reflect/own-keys.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.reflect.own-keys'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.ownKeys; diff --git a/node_modules/core-js/es/reflect/prevent-extensions.js b/node_modules/core-js/es/reflect/prevent-extensions.js new file mode 100644 index 0000000..e5a758e --- /dev/null +++ b/node_modules/core-js/es/reflect/prevent-extensions.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.reflect.prevent-extensions'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.preventExtensions; diff --git a/node_modules/core-js/es/reflect/set-prototype-of.js b/node_modules/core-js/es/reflect/set-prototype-of.js new file mode 100644 index 0000000..7fa3db9 --- /dev/null +++ b/node_modules/core-js/es/reflect/set-prototype-of.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.reflect.set-prototype-of'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.setPrototypeOf; diff --git a/node_modules/core-js/es/reflect/set.js b/node_modules/core-js/es/reflect/set.js new file mode 100644 index 0000000..ffaaef7 --- /dev/null +++ b/node_modules/core-js/es/reflect/set.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.reflect.set'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.set; diff --git a/node_modules/core-js/es/reflect/to-string-tag.js b/node_modules/core-js/es/reflect/to-string-tag.js new file mode 100644 index 0000000..be533d0 --- /dev/null +++ b/node_modules/core-js/es/reflect/to-string-tag.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.reflect.to-string-tag'); + +module.exports = 'Reflect'; diff --git a/node_modules/core-js/es/regexp/constructor.js b/node_modules/core-js/es/regexp/constructor.js new file mode 100644 index 0000000..6c5d1e1 --- /dev/null +++ b/node_modules/core-js/es/regexp/constructor.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.regexp.constructor'); +require('../../modules/es.regexp.dot-all'); +require('../../modules/es.regexp.exec'); +require('../../modules/es.regexp.sticky'); + +module.exports = RegExp; diff --git a/node_modules/core-js/es/regexp/dot-all.js b/node_modules/core-js/es/regexp/dot-all.js new file mode 100644 index 0000000..10f2571 --- /dev/null +++ b/node_modules/core-js/es/regexp/dot-all.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.regexp.constructor'); +require('../../modules/es.regexp.dot-all'); +require('../../modules/es.regexp.exec'); + +module.exports = function (it) { + return it.dotAll; +}; diff --git a/node_modules/core-js/es/regexp/flags.js b/node_modules/core-js/es/regexp/flags.js new file mode 100644 index 0000000..cda54e4 --- /dev/null +++ b/node_modules/core-js/es/regexp/flags.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.regexp.flags'); +var getRegExpFlags = require('../../internals/regexp-get-flags'); + +module.exports = getRegExpFlags; diff --git a/node_modules/core-js/es/regexp/index.js b/node_modules/core-js/es/regexp/index.js new file mode 100644 index 0000000..27c4121 --- /dev/null +++ b/node_modules/core-js/es/regexp/index.js @@ -0,0 +1,12 @@ +'use strict'; +require('../../modules/es.regexp.constructor'); +require('../../modules/es.regexp.to-string'); +require('../../modules/es.regexp.dot-all'); +require('../../modules/es.regexp.exec'); +require('../../modules/es.regexp.flags'); +require('../../modules/es.regexp.sticky'); +require('../../modules/es.regexp.test'); +require('../../modules/es.string.match'); +require('../../modules/es.string.replace'); +require('../../modules/es.string.search'); +require('../../modules/es.string.split'); diff --git a/node_modules/core-js/es/regexp/match.js b/node_modules/core-js/es/regexp/match.js new file mode 100644 index 0000000..48803ce --- /dev/null +++ b/node_modules/core-js/es/regexp/match.js @@ -0,0 +1,11 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.string.match'); +var call = require('../../internals/function-call'); +var wellKnownSymbol = require('../../internals/well-known-symbol'); + +var MATCH = wellKnownSymbol('match'); + +module.exports = function (it, str) { + return call(RegExp.prototype[MATCH], it, str); +}; diff --git a/node_modules/core-js/es/regexp/replace.js b/node_modules/core-js/es/regexp/replace.js new file mode 100644 index 0000000..f118204 --- /dev/null +++ b/node_modules/core-js/es/regexp/replace.js @@ -0,0 +1,11 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.string.replace'); +var call = require('../../internals/function-call'); +var wellKnownSymbol = require('../../internals/well-known-symbol'); + +var REPLACE = wellKnownSymbol('replace'); + +module.exports = function (it, str, replacer) { + return call(RegExp.prototype[REPLACE], it, str, replacer); +}; diff --git a/node_modules/core-js/es/regexp/search.js b/node_modules/core-js/es/regexp/search.js new file mode 100644 index 0000000..ef3edf0 --- /dev/null +++ b/node_modules/core-js/es/regexp/search.js @@ -0,0 +1,11 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.string.search'); +var call = require('../../internals/function-call'); +var wellKnownSymbol = require('../../internals/well-known-symbol'); + +var SEARCH = wellKnownSymbol('search'); + +module.exports = function (it, str) { + return call(RegExp.prototype[SEARCH], it, str); +}; diff --git a/node_modules/core-js/es/regexp/split.js b/node_modules/core-js/es/regexp/split.js new file mode 100644 index 0000000..91cbd2c --- /dev/null +++ b/node_modules/core-js/es/regexp/split.js @@ -0,0 +1,11 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.string.split'); +var call = require('../../internals/function-call'); +var wellKnownSymbol = require('../../internals/well-known-symbol'); + +var SPLIT = wellKnownSymbol('split'); + +module.exports = function (it, str, limit) { + return call(RegExp.prototype[SPLIT], it, str, limit); +}; diff --git a/node_modules/core-js/es/regexp/sticky.js b/node_modules/core-js/es/regexp/sticky.js new file mode 100644 index 0000000..9726f3d --- /dev/null +++ b/node_modules/core-js/es/regexp/sticky.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.regexp.constructor'); +require('../../modules/es.regexp.exec'); +require('../../modules/es.regexp.sticky'); + +module.exports = function (it) { + return it.sticky; +}; diff --git a/node_modules/core-js/es/regexp/test.js b/node_modules/core-js/es/regexp/test.js new file mode 100644 index 0000000..cc779f4 --- /dev/null +++ b/node_modules/core-js/es/regexp/test.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.regexp.test'); +var uncurryThis = require('../../internals/function-uncurry-this'); + +module.exports = uncurryThis(/./.test); diff --git a/node_modules/core-js/es/regexp/to-string.js b/node_modules/core-js/es/regexp/to-string.js new file mode 100644 index 0000000..c42ce3e --- /dev/null +++ b/node_modules/core-js/es/regexp/to-string.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.regexp.to-string'); +var uncurryThis = require('../../internals/function-uncurry-this'); + +module.exports = uncurryThis(/./.toString); diff --git a/node_modules/core-js/es/set/difference.js b/node_modules/core-js/es/set/difference.js new file mode 100644 index 0000000..cc5a1d6 --- /dev/null +++ b/node_modules/core-js/es/set/difference.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/es.set.difference.v2'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'difference'); diff --git a/node_modules/core-js/es/set/index.js b/node_modules/core-js/es/set/index.js new file mode 100644 index 0000000..9a300f8 --- /dev/null +++ b/node_modules/core-js/es/set/index.js @@ -0,0 +1,15 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +require('../../modules/es.set'); +require('../../modules/es.set.difference.v2'); +require('../../modules/es.set.intersection.v2'); +require('../../modules/es.set.is-disjoint-from.v2'); +require('../../modules/es.set.is-subset-of.v2'); +require('../../modules/es.set.is-superset-of.v2'); +require('../../modules/es.set.symmetric-difference.v2'); +require('../../modules/es.set.union.v2'); +require('../../modules/es.string.iterator'); +var path = require('../../internals/path'); + +module.exports = path.Set; diff --git a/node_modules/core-js/es/set/intersection.js b/node_modules/core-js/es/set/intersection.js new file mode 100644 index 0000000..8c2b7a1 --- /dev/null +++ b/node_modules/core-js/es/set/intersection.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/es.set.intersection.v2'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'intersection'); diff --git a/node_modules/core-js/es/set/is-disjoint-from.js b/node_modules/core-js/es/set/is-disjoint-from.js new file mode 100644 index 0000000..1888869 --- /dev/null +++ b/node_modules/core-js/es/set/is-disjoint-from.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/es.set.is-disjoint-from.v2'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'isDisjointFrom'); diff --git a/node_modules/core-js/es/set/is-subset-of.js b/node_modules/core-js/es/set/is-subset-of.js new file mode 100644 index 0000000..242f717 --- /dev/null +++ b/node_modules/core-js/es/set/is-subset-of.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/es.set.is-subset-of.v2'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'isSubsetOf'); diff --git a/node_modules/core-js/es/set/is-superset-of.js b/node_modules/core-js/es/set/is-superset-of.js new file mode 100644 index 0000000..ee81cfb --- /dev/null +++ b/node_modules/core-js/es/set/is-superset-of.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/es.set.is-superset-of.v2'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'isSupersetOf'); diff --git a/node_modules/core-js/es/set/symmetric-difference.js b/node_modules/core-js/es/set/symmetric-difference.js new file mode 100644 index 0000000..60fbf7b --- /dev/null +++ b/node_modules/core-js/es/set/symmetric-difference.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/es.set.symmetric-difference.v2'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'symmetricDifference'); diff --git a/node_modules/core-js/es/set/union.js b/node_modules/core-js/es/set/union.js new file mode 100644 index 0000000..d5d7516 --- /dev/null +++ b/node_modules/core-js/es/set/union.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/es.set.union.v2'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'union'); diff --git a/node_modules/core-js/es/string/anchor.js b/node_modules/core-js/es/string/anchor.js new file mode 100644 index 0000000..627f397 --- /dev/null +++ b/node_modules/core-js/es/string/anchor.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.anchor'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'anchor'); diff --git a/node_modules/core-js/es/string/at.js b/node_modules/core-js/es/string/at.js new file mode 100644 index 0000000..1183270 --- /dev/null +++ b/node_modules/core-js/es/string/at.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.at-alternative'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'at'); diff --git a/node_modules/core-js/es/string/big.js b/node_modules/core-js/es/string/big.js new file mode 100644 index 0000000..08cc112 --- /dev/null +++ b/node_modules/core-js/es/string/big.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.big'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'big'); diff --git a/node_modules/core-js/es/string/blink.js b/node_modules/core-js/es/string/blink.js new file mode 100644 index 0000000..2741fb4 --- /dev/null +++ b/node_modules/core-js/es/string/blink.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.blink'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'blink'); diff --git a/node_modules/core-js/es/string/bold.js b/node_modules/core-js/es/string/bold.js new file mode 100644 index 0000000..24065f7 --- /dev/null +++ b/node_modules/core-js/es/string/bold.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.bold'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'bold'); diff --git a/node_modules/core-js/es/string/code-point-at.js b/node_modules/core-js/es/string/code-point-at.js new file mode 100644 index 0000000..7a6bc5c --- /dev/null +++ b/node_modules/core-js/es/string/code-point-at.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.code-point-at'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'codePointAt'); diff --git a/node_modules/core-js/es/string/ends-with.js b/node_modules/core-js/es/string/ends-with.js new file mode 100644 index 0000000..d598020 --- /dev/null +++ b/node_modules/core-js/es/string/ends-with.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.ends-with'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'endsWith'); diff --git a/node_modules/core-js/es/string/fixed.js b/node_modules/core-js/es/string/fixed.js new file mode 100644 index 0000000..9d70348 --- /dev/null +++ b/node_modules/core-js/es/string/fixed.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.fixed'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'fixed'); diff --git a/node_modules/core-js/es/string/fontcolor.js b/node_modules/core-js/es/string/fontcolor.js new file mode 100644 index 0000000..056c07d --- /dev/null +++ b/node_modules/core-js/es/string/fontcolor.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.fontcolor'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'fontcolor'); diff --git a/node_modules/core-js/es/string/fontsize.js b/node_modules/core-js/es/string/fontsize.js new file mode 100644 index 0000000..8784d06 --- /dev/null +++ b/node_modules/core-js/es/string/fontsize.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.fontsize'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'fontsize'); diff --git a/node_modules/core-js/es/string/from-code-point.js b/node_modules/core-js/es/string/from-code-point.js new file mode 100644 index 0000000..93ba4ce --- /dev/null +++ b/node_modules/core-js/es/string/from-code-point.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.from-code-point'); +var path = require('../../internals/path'); + +module.exports = path.String.fromCodePoint; diff --git a/node_modules/core-js/es/string/includes.js b/node_modules/core-js/es/string/includes.js new file mode 100644 index 0000000..0b6f480 --- /dev/null +++ b/node_modules/core-js/es/string/includes.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.includes'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'includes'); diff --git a/node_modules/core-js/es/string/index.js b/node_modules/core-js/es/string/index.js new file mode 100644 index 0000000..6529e2d --- /dev/null +++ b/node_modules/core-js/es/string/index.js @@ -0,0 +1,42 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.regexp.exec'); +require('../../modules/es.string.from-code-point'); +require('../../modules/es.string.raw'); +require('../../modules/es.string.code-point-at'); +require('../../modules/es.string.at-alternative'); +require('../../modules/es.string.ends-with'); +require('../../modules/es.string.includes'); +require('../../modules/es.string.is-well-formed'); +require('../../modules/es.string.match'); +require('../../modules/es.string.match-all'); +require('../../modules/es.string.pad-end'); +require('../../modules/es.string.pad-start'); +require('../../modules/es.string.repeat'); +require('../../modules/es.string.replace'); +require('../../modules/es.string.replace-all'); +require('../../modules/es.string.search'); +require('../../modules/es.string.split'); +require('../../modules/es.string.starts-with'); +require('../../modules/es.string.substr'); +require('../../modules/es.string.to-well-formed'); +require('../../modules/es.string.trim'); +require('../../modules/es.string.trim-start'); +require('../../modules/es.string.trim-end'); +require('../../modules/es.string.iterator'); +require('../../modules/es.string.anchor'); +require('../../modules/es.string.big'); +require('../../modules/es.string.blink'); +require('../../modules/es.string.bold'); +require('../../modules/es.string.fixed'); +require('../../modules/es.string.fontcolor'); +require('../../modules/es.string.fontsize'); +require('../../modules/es.string.italics'); +require('../../modules/es.string.link'); +require('../../modules/es.string.small'); +require('../../modules/es.string.strike'); +require('../../modules/es.string.sub'); +require('../../modules/es.string.sup'); +var path = require('../../internals/path'); + +module.exports = path.String; diff --git a/node_modules/core-js/es/string/is-well-formed.js b/node_modules/core-js/es/string/is-well-formed.js new file mode 100644 index 0000000..6504ed0 --- /dev/null +++ b/node_modules/core-js/es/string/is-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/es.string.is-well-formed'); + +module.exports = require('../../internals/entry-unbind')('String', 'isWellFormed'); diff --git a/node_modules/core-js/es/string/italics.js b/node_modules/core-js/es/string/italics.js new file mode 100644 index 0000000..0d5b42c --- /dev/null +++ b/node_modules/core-js/es/string/italics.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.italics'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'italics'); diff --git a/node_modules/core-js/es/string/iterator.js b/node_modules/core-js/es/string/iterator.js new file mode 100644 index 0000000..3b1e83b --- /dev/null +++ b/node_modules/core-js/es/string/iterator.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.string.iterator'); +var uncurryThis = require('../../internals/function-uncurry-this'); +var Iterators = require('../../internals/iterators'); + +module.exports = uncurryThis(Iterators.String); diff --git a/node_modules/core-js/es/string/link.js b/node_modules/core-js/es/string/link.js new file mode 100644 index 0000000..d40cc6d --- /dev/null +++ b/node_modules/core-js/es/string/link.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.link'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'link'); diff --git a/node_modules/core-js/es/string/match-all.js b/node_modules/core-js/es/string/match-all.js new file mode 100644 index 0000000..d51c037 --- /dev/null +++ b/node_modules/core-js/es/string/match-all.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.regexp.exec'); +require('../../modules/es.string.match-all'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'matchAll'); diff --git a/node_modules/core-js/es/string/match.js b/node_modules/core-js/es/string/match.js new file mode 100644 index 0000000..2aeded5 --- /dev/null +++ b/node_modules/core-js/es/string/match.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.string.match'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'match'); diff --git a/node_modules/core-js/es/string/pad-end.js b/node_modules/core-js/es/string/pad-end.js new file mode 100644 index 0000000..f631635 --- /dev/null +++ b/node_modules/core-js/es/string/pad-end.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.pad-end'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'padEnd'); diff --git a/node_modules/core-js/es/string/pad-start.js b/node_modules/core-js/es/string/pad-start.js new file mode 100644 index 0000000..e4e2e4d --- /dev/null +++ b/node_modules/core-js/es/string/pad-start.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.pad-start'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'padStart'); diff --git a/node_modules/core-js/es/string/raw.js b/node_modules/core-js/es/string/raw.js new file mode 100644 index 0000000..3da9761 --- /dev/null +++ b/node_modules/core-js/es/string/raw.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.raw'); +var path = require('../../internals/path'); + +module.exports = path.String.raw; diff --git a/node_modules/core-js/es/string/repeat.js b/node_modules/core-js/es/string/repeat.js new file mode 100644 index 0000000..dd725d2 --- /dev/null +++ b/node_modules/core-js/es/string/repeat.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.repeat'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'repeat'); diff --git a/node_modules/core-js/es/string/replace-all.js b/node_modules/core-js/es/string/replace-all.js new file mode 100644 index 0000000..36ff09f --- /dev/null +++ b/node_modules/core-js/es/string/replace-all.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.string.replace'); +require('../../modules/es.string.replace-all'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'replaceAll'); diff --git a/node_modules/core-js/es/string/replace.js b/node_modules/core-js/es/string/replace.js new file mode 100644 index 0000000..724b811 --- /dev/null +++ b/node_modules/core-js/es/string/replace.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.string.replace'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'replace'); diff --git a/node_modules/core-js/es/string/search.js b/node_modules/core-js/es/string/search.js new file mode 100644 index 0000000..d85960c --- /dev/null +++ b/node_modules/core-js/es/string/search.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.string.search'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'search'); diff --git a/node_modules/core-js/es/string/small.js b/node_modules/core-js/es/string/small.js new file mode 100644 index 0000000..1d5bd50 --- /dev/null +++ b/node_modules/core-js/es/string/small.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.small'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'small'); diff --git a/node_modules/core-js/es/string/split.js b/node_modules/core-js/es/string/split.js new file mode 100644 index 0000000..e449df0 --- /dev/null +++ b/node_modules/core-js/es/string/split.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.string.split'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'split'); diff --git a/node_modules/core-js/es/string/starts-with.js b/node_modules/core-js/es/string/starts-with.js new file mode 100644 index 0000000..ebf96ad --- /dev/null +++ b/node_modules/core-js/es/string/starts-with.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.starts-with'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'startsWith'); diff --git a/node_modules/core-js/es/string/strike.js b/node_modules/core-js/es/string/strike.js new file mode 100644 index 0000000..0ea8a3a --- /dev/null +++ b/node_modules/core-js/es/string/strike.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.strike'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'strike'); diff --git a/node_modules/core-js/es/string/sub.js b/node_modules/core-js/es/string/sub.js new file mode 100644 index 0000000..9ba0d45 --- /dev/null +++ b/node_modules/core-js/es/string/sub.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.sub'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'sub'); diff --git a/node_modules/core-js/es/string/substr.js b/node_modules/core-js/es/string/substr.js new file mode 100644 index 0000000..6159b9e --- /dev/null +++ b/node_modules/core-js/es/string/substr.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.substr'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'substr'); diff --git a/node_modules/core-js/es/string/sup.js b/node_modules/core-js/es/string/sup.js new file mode 100644 index 0000000..fd0a477 --- /dev/null +++ b/node_modules/core-js/es/string/sup.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.sup'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'sup'); diff --git a/node_modules/core-js/es/string/to-well-formed.js b/node_modules/core-js/es/string/to-well-formed.js new file mode 100644 index 0000000..151870a --- /dev/null +++ b/node_modules/core-js/es/string/to-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/es.string.to-well-formed'); + +module.exports = require('../../internals/entry-unbind')('String', 'toWellFormed'); diff --git a/node_modules/core-js/es/string/trim-end.js b/node_modules/core-js/es/string/trim-end.js new file mode 100644 index 0000000..1ca5a97 --- /dev/null +++ b/node_modules/core-js/es/string/trim-end.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.trim-end'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'trimRight'); diff --git a/node_modules/core-js/es/string/trim-left.js b/node_modules/core-js/es/string/trim-left.js new file mode 100644 index 0000000..ea85dd9 --- /dev/null +++ b/node_modules/core-js/es/string/trim-left.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.trim-start'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'trimLeft'); diff --git a/node_modules/core-js/es/string/trim-right.js b/node_modules/core-js/es/string/trim-right.js new file mode 100644 index 0000000..1ca5a97 --- /dev/null +++ b/node_modules/core-js/es/string/trim-right.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.trim-end'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'trimRight'); diff --git a/node_modules/core-js/es/string/trim-start.js b/node_modules/core-js/es/string/trim-start.js new file mode 100644 index 0000000..ea85dd9 --- /dev/null +++ b/node_modules/core-js/es/string/trim-start.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.trim-start'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'trimLeft'); diff --git a/node_modules/core-js/es/string/trim.js b/node_modules/core-js/es/string/trim.js new file mode 100644 index 0000000..4ae27eb --- /dev/null +++ b/node_modules/core-js/es/string/trim.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.string.trim'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('String', 'trim'); diff --git a/node_modules/core-js/es/string/virtual/anchor.js b/node_modules/core-js/es/string/virtual/anchor.js new file mode 100644 index 0000000..fc4dce9 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/anchor.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.anchor'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'anchor'); diff --git a/node_modules/core-js/es/string/virtual/at.js b/node_modules/core-js/es/string/virtual/at.js new file mode 100644 index 0000000..bea638a --- /dev/null +++ b/node_modules/core-js/es/string/virtual/at.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.at-alternative'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'at'); diff --git a/node_modules/core-js/es/string/virtual/big.js b/node_modules/core-js/es/string/virtual/big.js new file mode 100644 index 0000000..07d2c7c --- /dev/null +++ b/node_modules/core-js/es/string/virtual/big.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.big'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'big'); diff --git a/node_modules/core-js/es/string/virtual/blink.js b/node_modules/core-js/es/string/virtual/blink.js new file mode 100644 index 0000000..dddf5b0 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/blink.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.blink'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'blink'); diff --git a/node_modules/core-js/es/string/virtual/bold.js b/node_modules/core-js/es/string/virtual/bold.js new file mode 100644 index 0000000..7c74a78 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/bold.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.bold'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'bold'); diff --git a/node_modules/core-js/es/string/virtual/code-point-at.js b/node_modules/core-js/es/string/virtual/code-point-at.js new file mode 100644 index 0000000..593ef4c --- /dev/null +++ b/node_modules/core-js/es/string/virtual/code-point-at.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.code-point-at'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'codePointAt'); diff --git a/node_modules/core-js/es/string/virtual/ends-with.js b/node_modules/core-js/es/string/virtual/ends-with.js new file mode 100644 index 0000000..a45a986 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/ends-with.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.ends-with'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'endsWith'); diff --git a/node_modules/core-js/es/string/virtual/fixed.js b/node_modules/core-js/es/string/virtual/fixed.js new file mode 100644 index 0000000..bbde9c3 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/fixed.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.fixed'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'fixed'); diff --git a/node_modules/core-js/es/string/virtual/fontcolor.js b/node_modules/core-js/es/string/virtual/fontcolor.js new file mode 100644 index 0000000..d5f9568 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/fontcolor.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.fontcolor'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'fontcolor'); diff --git a/node_modules/core-js/es/string/virtual/fontsize.js b/node_modules/core-js/es/string/virtual/fontsize.js new file mode 100644 index 0000000..8283920 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/fontsize.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.fontsize'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'fontsize'); diff --git a/node_modules/core-js/es/string/virtual/includes.js b/node_modules/core-js/es/string/virtual/includes.js new file mode 100644 index 0000000..b75490a --- /dev/null +++ b/node_modules/core-js/es/string/virtual/includes.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.includes'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'includes'); diff --git a/node_modules/core-js/es/string/virtual/index.js b/node_modules/core-js/es/string/virtual/index.js new file mode 100644 index 0000000..70199c9 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/index.js @@ -0,0 +1,38 @@ +'use strict'; +require('../../../modules/es.object.to-string'); +require('../../../modules/es.regexp.exec'); +require('../../../modules/es.string.at-alternative'); +require('../../../modules/es.string.code-point-at'); +require('../../../modules/es.string.ends-with'); +require('../../../modules/es.string.includes'); +require('../../../modules/es.string.match'); +require('../../../modules/es.string.match-all'); +require('../../../modules/es.string.pad-end'); +require('../../../modules/es.string.pad-start'); +require('../../../modules/es.string.repeat'); +require('../../../modules/es.string.replace'); +require('../../../modules/es.string.replace-all'); +require('../../../modules/es.string.search'); +require('../../../modules/es.string.split'); +require('../../../modules/es.string.starts-with'); +require('../../../modules/es.string.substr'); +require('../../../modules/es.string.trim'); +require('../../../modules/es.string.trim-start'); +require('../../../modules/es.string.trim-end'); +require('../../../modules/es.string.iterator'); +require('../../../modules/es.string.anchor'); +require('../../../modules/es.string.big'); +require('../../../modules/es.string.blink'); +require('../../../modules/es.string.bold'); +require('../../../modules/es.string.fixed'); +require('../../../modules/es.string.fontcolor'); +require('../../../modules/es.string.fontsize'); +require('../../../modules/es.string.italics'); +require('../../../modules/es.string.link'); +require('../../../modules/es.string.small'); +require('../../../modules/es.string.strike'); +require('../../../modules/es.string.sub'); +require('../../../modules/es.string.sup'); +var entryVirtual = require('../../../internals/entry-virtual'); + +module.exports = entryVirtual('String'); diff --git a/node_modules/core-js/es/string/virtual/is-well-formed.js b/node_modules/core-js/es/string/virtual/is-well-formed.js new file mode 100644 index 0000000..620db5e --- /dev/null +++ b/node_modules/core-js/es/string/virtual/is-well-formed.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.is-well-formed'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'isWellFormed'); diff --git a/node_modules/core-js/es/string/virtual/italics.js b/node_modules/core-js/es/string/virtual/italics.js new file mode 100644 index 0000000..59866c1 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/italics.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.italics'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'italics'); diff --git a/node_modules/core-js/es/string/virtual/iterator.js b/node_modules/core-js/es/string/virtual/iterator.js new file mode 100644 index 0000000..613d81d --- /dev/null +++ b/node_modules/core-js/es/string/virtual/iterator.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../../modules/es.object.to-string'); +require('../../../modules/es.string.iterator'); +var Iterators = require('../../../internals/iterators'); + +module.exports = Iterators.String; diff --git a/node_modules/core-js/es/string/virtual/link.js b/node_modules/core-js/es/string/virtual/link.js new file mode 100644 index 0000000..f3e9c31 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/link.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.link'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'link'); diff --git a/node_modules/core-js/es/string/virtual/match-all.js b/node_modules/core-js/es/string/virtual/match-all.js new file mode 100644 index 0000000..ef1e92e --- /dev/null +++ b/node_modules/core-js/es/string/virtual/match-all.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../../modules/es.object.to-string'); +require('../../../modules/es.regexp.exec'); +require('../../../modules/es.string.match-all'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'matchAll'); diff --git a/node_modules/core-js/es/string/virtual/pad-end.js b/node_modules/core-js/es/string/virtual/pad-end.js new file mode 100644 index 0000000..e76542b --- /dev/null +++ b/node_modules/core-js/es/string/virtual/pad-end.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.pad-end'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'padEnd'); diff --git a/node_modules/core-js/es/string/virtual/pad-start.js b/node_modules/core-js/es/string/virtual/pad-start.js new file mode 100644 index 0000000..56aa70d --- /dev/null +++ b/node_modules/core-js/es/string/virtual/pad-start.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.pad-start'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'padStart'); diff --git a/node_modules/core-js/es/string/virtual/repeat.js b/node_modules/core-js/es/string/virtual/repeat.js new file mode 100644 index 0000000..b8d857b --- /dev/null +++ b/node_modules/core-js/es/string/virtual/repeat.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.repeat'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'repeat'); diff --git a/node_modules/core-js/es/string/virtual/replace-all.js b/node_modules/core-js/es/string/virtual/replace-all.js new file mode 100644 index 0000000..aeebb97 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/replace-all.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../../modules/es.regexp.exec'); +require('../../../modules/es.string.replace'); +require('../../../modules/es.string.replace-all'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'replaceAll'); diff --git a/node_modules/core-js/es/string/virtual/small.js b/node_modules/core-js/es/string/virtual/small.js new file mode 100644 index 0000000..401b13a --- /dev/null +++ b/node_modules/core-js/es/string/virtual/small.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.small'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'small'); diff --git a/node_modules/core-js/es/string/virtual/starts-with.js b/node_modules/core-js/es/string/virtual/starts-with.js new file mode 100644 index 0000000..d4dbe86 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/starts-with.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.starts-with'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'startsWith'); diff --git a/node_modules/core-js/es/string/virtual/strike.js b/node_modules/core-js/es/string/virtual/strike.js new file mode 100644 index 0000000..a0b769c --- /dev/null +++ b/node_modules/core-js/es/string/virtual/strike.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.strike'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'strike'); diff --git a/node_modules/core-js/es/string/virtual/sub.js b/node_modules/core-js/es/string/virtual/sub.js new file mode 100644 index 0000000..c710755 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/sub.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.sub'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'sub'); diff --git a/node_modules/core-js/es/string/virtual/substr.js b/node_modules/core-js/es/string/virtual/substr.js new file mode 100644 index 0000000..61a2217 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/substr.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.substr'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'substr'); diff --git a/node_modules/core-js/es/string/virtual/sup.js b/node_modules/core-js/es/string/virtual/sup.js new file mode 100644 index 0000000..0707bc0 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/sup.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.sup'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'sup'); diff --git a/node_modules/core-js/es/string/virtual/to-well-formed.js b/node_modules/core-js/es/string/virtual/to-well-formed.js new file mode 100644 index 0000000..87d6275 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/to-well-formed.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.to-well-formed'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'toWellFormed'); diff --git a/node_modules/core-js/es/string/virtual/trim-end.js b/node_modules/core-js/es/string/virtual/trim-end.js new file mode 100644 index 0000000..bd013aa --- /dev/null +++ b/node_modules/core-js/es/string/virtual/trim-end.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.trim-end'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'trimRight'); diff --git a/node_modules/core-js/es/string/virtual/trim-left.js b/node_modules/core-js/es/string/virtual/trim-left.js new file mode 100644 index 0000000..3987da8 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/trim-left.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.trim-start'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'trimLeft'); diff --git a/node_modules/core-js/es/string/virtual/trim-right.js b/node_modules/core-js/es/string/virtual/trim-right.js new file mode 100644 index 0000000..bd013aa --- /dev/null +++ b/node_modules/core-js/es/string/virtual/trim-right.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.trim-end'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'trimRight'); diff --git a/node_modules/core-js/es/string/virtual/trim-start.js b/node_modules/core-js/es/string/virtual/trim-start.js new file mode 100644 index 0000000..3987da8 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/trim-start.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.trim-start'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'trimLeft'); diff --git a/node_modules/core-js/es/string/virtual/trim.js b/node_modules/core-js/es/string/virtual/trim.js new file mode 100644 index 0000000..02e9b22 --- /dev/null +++ b/node_modules/core-js/es/string/virtual/trim.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/es.string.trim'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'trim'); diff --git a/node_modules/core-js/es/symbol/async-iterator.js b/node_modules/core-js/es/symbol/async-iterator.js new file mode 100644 index 0000000..64b80ae --- /dev/null +++ b/node_modules/core-js/es/symbol/async-iterator.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.symbol.async-iterator'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('asyncIterator'); diff --git a/node_modules/core-js/es/symbol/description.js b/node_modules/core-js/es/symbol/description.js new file mode 100644 index 0000000..01ce17a --- /dev/null +++ b/node_modules/core-js/es/symbol/description.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.symbol.description'); diff --git a/node_modules/core-js/es/symbol/for.js b/node_modules/core-js/es/symbol/for.js new file mode 100644 index 0000000..9c0a7d0 --- /dev/null +++ b/node_modules/core-js/es/symbol/for.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.symbol'); +var path = require('../../internals/path'); + +module.exports = path.Symbol['for']; diff --git a/node_modules/core-js/es/symbol/has-instance.js b/node_modules/core-js/es/symbol/has-instance.js new file mode 100644 index 0000000..a588394 --- /dev/null +++ b/node_modules/core-js/es/symbol/has-instance.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.symbol.has-instance'); +require('../../modules/es.function.has-instance'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('hasInstance'); diff --git a/node_modules/core-js/es/symbol/index.js b/node_modules/core-js/es/symbol/index.js new file mode 100644 index 0000000..80226ab --- /dev/null +++ b/node_modules/core-js/es/symbol/index.js @@ -0,0 +1,24 @@ +'use strict'; +require('../../modules/es.array.concat'); +require('../../modules/es.object.to-string'); +require('../../modules/es.symbol'); +require('../../modules/es.symbol.async-iterator'); +require('../../modules/es.symbol.description'); +require('../../modules/es.symbol.has-instance'); +require('../../modules/es.symbol.is-concat-spreadable'); +require('../../modules/es.symbol.iterator'); +require('../../modules/es.symbol.match'); +require('../../modules/es.symbol.match-all'); +require('../../modules/es.symbol.replace'); +require('../../modules/es.symbol.search'); +require('../../modules/es.symbol.species'); +require('../../modules/es.symbol.split'); +require('../../modules/es.symbol.to-primitive'); +require('../../modules/es.symbol.to-string-tag'); +require('../../modules/es.symbol.unscopables'); +require('../../modules/es.json.to-string-tag'); +require('../../modules/es.math.to-string-tag'); +require('../../modules/es.reflect.to-string-tag'); +var path = require('../../internals/path'); + +module.exports = path.Symbol; diff --git a/node_modules/core-js/es/symbol/is-concat-spreadable.js b/node_modules/core-js/es/symbol/is-concat-spreadable.js new file mode 100644 index 0000000..dbf9a5b --- /dev/null +++ b/node_modules/core-js/es/symbol/is-concat-spreadable.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.array.concat'); +require('../../modules/es.symbol.is-concat-spreadable'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('isConcatSpreadable'); diff --git a/node_modules/core-js/es/symbol/iterator.js b/node_modules/core-js/es/symbol/iterator.js new file mode 100644 index 0000000..dfddcf8 --- /dev/null +++ b/node_modules/core-js/es/symbol/iterator.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +require('../../modules/es.string.iterator'); +require('../../modules/es.symbol.iterator'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('iterator'); diff --git a/node_modules/core-js/es/symbol/key-for.js b/node_modules/core-js/es/symbol/key-for.js new file mode 100644 index 0000000..d04d3d0 --- /dev/null +++ b/node_modules/core-js/es/symbol/key-for.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.symbol'); +var path = require('../../internals/path'); + +module.exports = path.Symbol.keyFor; diff --git a/node_modules/core-js/es/symbol/match-all.js b/node_modules/core-js/es/symbol/match-all.js new file mode 100644 index 0000000..295d0db --- /dev/null +++ b/node_modules/core-js/es/symbol/match-all.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.regexp.exec'); +require('../../modules/es.symbol.match-all'); +require('../../modules/es.string.match-all'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('matchAll'); diff --git a/node_modules/core-js/es/symbol/match.js b/node_modules/core-js/es/symbol/match.js new file mode 100644 index 0000000..7047f3d --- /dev/null +++ b/node_modules/core-js/es/symbol/match.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.symbol.match'); +require('../../modules/es.string.match'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('match'); diff --git a/node_modules/core-js/es/symbol/replace.js b/node_modules/core-js/es/symbol/replace.js new file mode 100644 index 0000000..8ebfd57 --- /dev/null +++ b/node_modules/core-js/es/symbol/replace.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.symbol.replace'); +require('../../modules/es.string.replace'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('replace'); diff --git a/node_modules/core-js/es/symbol/search.js b/node_modules/core-js/es/symbol/search.js new file mode 100644 index 0000000..2510cd6 --- /dev/null +++ b/node_modules/core-js/es/symbol/search.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.symbol.search'); +require('../../modules/es.string.search'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('search'); diff --git a/node_modules/core-js/es/symbol/species.js b/node_modules/core-js/es/symbol/species.js new file mode 100644 index 0000000..12f064a --- /dev/null +++ b/node_modules/core-js/es/symbol/species.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.symbol.species'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('species'); diff --git a/node_modules/core-js/es/symbol/split.js b/node_modules/core-js/es/symbol/split.js new file mode 100644 index 0000000..da2c04b --- /dev/null +++ b/node_modules/core-js/es/symbol/split.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.regexp.exec'); +require('../../modules/es.symbol.split'); +require('../../modules/es.string.split'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('split'); diff --git a/node_modules/core-js/es/symbol/to-primitive.js b/node_modules/core-js/es/symbol/to-primitive.js new file mode 100644 index 0000000..c5fde8d --- /dev/null +++ b/node_modules/core-js/es/symbol/to-primitive.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.date.to-primitive'); +require('../../modules/es.symbol.to-primitive'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('toPrimitive'); diff --git a/node_modules/core-js/es/symbol/to-string-tag.js b/node_modules/core-js/es/symbol/to-string-tag.js new file mode 100644 index 0000000..1bf1284 --- /dev/null +++ b/node_modules/core-js/es/symbol/to-string-tag.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.json.to-string-tag'); +require('../../modules/es.math.to-string-tag'); +require('../../modules/es.object.to-string'); +require('../../modules/es.reflect.to-string-tag'); +require('../../modules/es.symbol.to-string-tag'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('toStringTag'); diff --git a/node_modules/core-js/es/symbol/unscopables.js b/node_modules/core-js/es/symbol/unscopables.js new file mode 100644 index 0000000..5d7799c --- /dev/null +++ b/node_modules/core-js/es/symbol/unscopables.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.symbol.unscopables'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('unscopables'); diff --git a/node_modules/core-js/es/typed-array/at.js b/node_modules/core-js/es/typed-array/at.js new file mode 100644 index 0000000..17ed453 --- /dev/null +++ b/node_modules/core-js/es/typed-array/at.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.at'); diff --git a/node_modules/core-js/es/typed-array/copy-within.js b/node_modules/core-js/es/typed-array/copy-within.js new file mode 100644 index 0000000..1381bac --- /dev/null +++ b/node_modules/core-js/es/typed-array/copy-within.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.copy-within'); diff --git a/node_modules/core-js/es/typed-array/entries.js b/node_modules/core-js/es/typed-array/entries.js new file mode 100644 index 0000000..918a9b3 --- /dev/null +++ b/node_modules/core-js/es/typed-array/entries.js @@ -0,0 +1,3 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.typed-array.iterator'); diff --git a/node_modules/core-js/es/typed-array/every.js b/node_modules/core-js/es/typed-array/every.js new file mode 100644 index 0000000..530fbbb --- /dev/null +++ b/node_modules/core-js/es/typed-array/every.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.every'); diff --git a/node_modules/core-js/es/typed-array/fill.js b/node_modules/core-js/es/typed-array/fill.js new file mode 100644 index 0000000..0f13bf5 --- /dev/null +++ b/node_modules/core-js/es/typed-array/fill.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.fill'); diff --git a/node_modules/core-js/es/typed-array/filter.js b/node_modules/core-js/es/typed-array/filter.js new file mode 100644 index 0000000..40bbc51 --- /dev/null +++ b/node_modules/core-js/es/typed-array/filter.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.filter'); diff --git a/node_modules/core-js/es/typed-array/find-index.js b/node_modules/core-js/es/typed-array/find-index.js new file mode 100644 index 0000000..e5e3a33 --- /dev/null +++ b/node_modules/core-js/es/typed-array/find-index.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.find-index'); diff --git a/node_modules/core-js/es/typed-array/find-last-index.js b/node_modules/core-js/es/typed-array/find-last-index.js new file mode 100644 index 0000000..e2c58bf --- /dev/null +++ b/node_modules/core-js/es/typed-array/find-last-index.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.find-last-index'); diff --git a/node_modules/core-js/es/typed-array/find-last.js b/node_modules/core-js/es/typed-array/find-last.js new file mode 100644 index 0000000..95e4117 --- /dev/null +++ b/node_modules/core-js/es/typed-array/find-last.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.find-last'); diff --git a/node_modules/core-js/es/typed-array/find.js b/node_modules/core-js/es/typed-array/find.js new file mode 100644 index 0000000..1d89e09 --- /dev/null +++ b/node_modules/core-js/es/typed-array/find.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.find'); diff --git a/node_modules/core-js/es/typed-array/float32-array.js b/node_modules/core-js/es/typed-array/float32-array.js new file mode 100644 index 0000000..9f3e4bb --- /dev/null +++ b/node_modules/core-js/es/typed-array/float32-array.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.typed-array.float32-array'); +require('./methods'); +var global = require('../../internals/global-this'); + +module.exports = global.Float32Array; diff --git a/node_modules/core-js/es/typed-array/float64-array.js b/node_modules/core-js/es/typed-array/float64-array.js new file mode 100644 index 0000000..5506d7b --- /dev/null +++ b/node_modules/core-js/es/typed-array/float64-array.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.typed-array.float64-array'); +require('./methods'); +var global = require('../../internals/global-this'); + +module.exports = global.Float64Array; diff --git a/node_modules/core-js/es/typed-array/for-each.js b/node_modules/core-js/es/typed-array/for-each.js new file mode 100644 index 0000000..9545224 --- /dev/null +++ b/node_modules/core-js/es/typed-array/for-each.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.for-each'); diff --git a/node_modules/core-js/es/typed-array/from.js b/node_modules/core-js/es/typed-array/from.js new file mode 100644 index 0000000..b38f31c --- /dev/null +++ b/node_modules/core-js/es/typed-array/from.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.from'); diff --git a/node_modules/core-js/es/typed-array/includes.js b/node_modules/core-js/es/typed-array/includes.js new file mode 100644 index 0000000..0c825a4 --- /dev/null +++ b/node_modules/core-js/es/typed-array/includes.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.includes'); diff --git a/node_modules/core-js/es/typed-array/index-of.js b/node_modules/core-js/es/typed-array/index-of.js new file mode 100644 index 0000000..5e78bf0 --- /dev/null +++ b/node_modules/core-js/es/typed-array/index-of.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.index-of'); diff --git a/node_modules/core-js/es/typed-array/index.js b/node_modules/core-js/es/typed-array/index.js new file mode 100644 index 0000000..9e20b36 --- /dev/null +++ b/node_modules/core-js/es/typed-array/index.js @@ -0,0 +1,13 @@ +'use strict'; +require('../../modules/es.typed-array.int8-array'); +require('../../modules/es.typed-array.uint8-array'); +require('../../modules/es.typed-array.uint8-clamped-array'); +require('../../modules/es.typed-array.int16-array'); +require('../../modules/es.typed-array.uint16-array'); +require('../../modules/es.typed-array.int32-array'); +require('../../modules/es.typed-array.uint32-array'); +require('../../modules/es.typed-array.float32-array'); +require('../../modules/es.typed-array.float64-array'); +require('./methods'); + +module.exports = require('../../internals/global-this'); diff --git a/node_modules/core-js/es/typed-array/int16-array.js b/node_modules/core-js/es/typed-array/int16-array.js new file mode 100644 index 0000000..5ba8637 --- /dev/null +++ b/node_modules/core-js/es/typed-array/int16-array.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.typed-array.int16-array'); +require('./methods'); +var global = require('../../internals/global-this'); + +module.exports = global.Int16Array; diff --git a/node_modules/core-js/es/typed-array/int32-array.js b/node_modules/core-js/es/typed-array/int32-array.js new file mode 100644 index 0000000..24bf169 --- /dev/null +++ b/node_modules/core-js/es/typed-array/int32-array.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.typed-array.int32-array'); +require('./methods'); +var global = require('../../internals/global-this'); + +module.exports = global.Int32Array; diff --git a/node_modules/core-js/es/typed-array/int8-array.js b/node_modules/core-js/es/typed-array/int8-array.js new file mode 100644 index 0000000..3796320 --- /dev/null +++ b/node_modules/core-js/es/typed-array/int8-array.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.typed-array.int8-array'); +require('./methods'); +var global = require('../../internals/global-this'); + +module.exports = global.Int8Array; diff --git a/node_modules/core-js/es/typed-array/iterator.js b/node_modules/core-js/es/typed-array/iterator.js new file mode 100644 index 0000000..918a9b3 --- /dev/null +++ b/node_modules/core-js/es/typed-array/iterator.js @@ -0,0 +1,3 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.typed-array.iterator'); diff --git a/node_modules/core-js/es/typed-array/join.js b/node_modules/core-js/es/typed-array/join.js new file mode 100644 index 0000000..70465b8 --- /dev/null +++ b/node_modules/core-js/es/typed-array/join.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.join'); diff --git a/node_modules/core-js/es/typed-array/keys.js b/node_modules/core-js/es/typed-array/keys.js new file mode 100644 index 0000000..918a9b3 --- /dev/null +++ b/node_modules/core-js/es/typed-array/keys.js @@ -0,0 +1,3 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.typed-array.iterator'); diff --git a/node_modules/core-js/es/typed-array/last-index-of.js b/node_modules/core-js/es/typed-array/last-index-of.js new file mode 100644 index 0000000..4babd1e --- /dev/null +++ b/node_modules/core-js/es/typed-array/last-index-of.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.last-index-of'); diff --git a/node_modules/core-js/es/typed-array/map.js b/node_modules/core-js/es/typed-array/map.js new file mode 100644 index 0000000..059366c --- /dev/null +++ b/node_modules/core-js/es/typed-array/map.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.map'); diff --git a/node_modules/core-js/es/typed-array/methods.js b/node_modules/core-js/es/typed-array/methods.js new file mode 100644 index 0000000..22b5d7c --- /dev/null +++ b/node_modules/core-js/es/typed-array/methods.js @@ -0,0 +1,34 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.string.iterator'); +require('../../modules/es.typed-array.from'); +require('../../modules/es.typed-array.of'); +require('../../modules/es.typed-array.at'); +require('../../modules/es.typed-array.copy-within'); +require('../../modules/es.typed-array.every'); +require('../../modules/es.typed-array.fill'); +require('../../modules/es.typed-array.filter'); +require('../../modules/es.typed-array.find'); +require('../../modules/es.typed-array.find-index'); +require('../../modules/es.typed-array.find-last'); +require('../../modules/es.typed-array.find-last-index'); +require('../../modules/es.typed-array.for-each'); +require('../../modules/es.typed-array.includes'); +require('../../modules/es.typed-array.index-of'); +require('../../modules/es.typed-array.join'); +require('../../modules/es.typed-array.last-index-of'); +require('../../modules/es.typed-array.map'); +require('../../modules/es.typed-array.reduce'); +require('../../modules/es.typed-array.reduce-right'); +require('../../modules/es.typed-array.reverse'); +require('../../modules/es.typed-array.set'); +require('../../modules/es.typed-array.slice'); +require('../../modules/es.typed-array.some'); +require('../../modules/es.typed-array.sort'); +require('../../modules/es.typed-array.subarray'); +require('../../modules/es.typed-array.to-locale-string'); +require('../../modules/es.typed-array.to-string'); +require('../../modules/es.typed-array.to-reversed'); +require('../../modules/es.typed-array.to-sorted'); +require('../../modules/es.typed-array.with'); +require('../../modules/es.typed-array.iterator'); diff --git a/node_modules/core-js/es/typed-array/of.js b/node_modules/core-js/es/typed-array/of.js new file mode 100644 index 0000000..dc572fb --- /dev/null +++ b/node_modules/core-js/es/typed-array/of.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.of'); diff --git a/node_modules/core-js/es/typed-array/reduce-right.js b/node_modules/core-js/es/typed-array/reduce-right.js new file mode 100644 index 0000000..9acb3e7 --- /dev/null +++ b/node_modules/core-js/es/typed-array/reduce-right.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.reduce-right'); diff --git a/node_modules/core-js/es/typed-array/reduce.js b/node_modules/core-js/es/typed-array/reduce.js new file mode 100644 index 0000000..59b3f78 --- /dev/null +++ b/node_modules/core-js/es/typed-array/reduce.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.reduce'); diff --git a/node_modules/core-js/es/typed-array/reverse.js b/node_modules/core-js/es/typed-array/reverse.js new file mode 100644 index 0000000..00d8399 --- /dev/null +++ b/node_modules/core-js/es/typed-array/reverse.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.reverse'); diff --git a/node_modules/core-js/es/typed-array/set.js b/node_modules/core-js/es/typed-array/set.js new file mode 100644 index 0000000..3394aae --- /dev/null +++ b/node_modules/core-js/es/typed-array/set.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.set'); diff --git a/node_modules/core-js/es/typed-array/slice.js b/node_modules/core-js/es/typed-array/slice.js new file mode 100644 index 0000000..5b074a1 --- /dev/null +++ b/node_modules/core-js/es/typed-array/slice.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.slice'); diff --git a/node_modules/core-js/es/typed-array/some.js b/node_modules/core-js/es/typed-array/some.js new file mode 100644 index 0000000..bfc4f4f --- /dev/null +++ b/node_modules/core-js/es/typed-array/some.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.some'); diff --git a/node_modules/core-js/es/typed-array/sort.js b/node_modules/core-js/es/typed-array/sort.js new file mode 100644 index 0000000..a3cf1c8 --- /dev/null +++ b/node_modules/core-js/es/typed-array/sort.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.sort'); diff --git a/node_modules/core-js/es/typed-array/subarray.js b/node_modules/core-js/es/typed-array/subarray.js new file mode 100644 index 0000000..5314642 --- /dev/null +++ b/node_modules/core-js/es/typed-array/subarray.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.subarray'); diff --git a/node_modules/core-js/es/typed-array/to-locale-string.js b/node_modules/core-js/es/typed-array/to-locale-string.js new file mode 100644 index 0000000..aa77e74 --- /dev/null +++ b/node_modules/core-js/es/typed-array/to-locale-string.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.to-locale-string'); diff --git a/node_modules/core-js/es/typed-array/to-reversed.js b/node_modules/core-js/es/typed-array/to-reversed.js new file mode 100644 index 0000000..2bd631a --- /dev/null +++ b/node_modules/core-js/es/typed-array/to-reversed.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.to-reversed'); diff --git a/node_modules/core-js/es/typed-array/to-sorted.js b/node_modules/core-js/es/typed-array/to-sorted.js new file mode 100644 index 0000000..9ab0f2b --- /dev/null +++ b/node_modules/core-js/es/typed-array/to-sorted.js @@ -0,0 +1,3 @@ +'use strict'; +require('../../modules/es.typed-array.sort'); +require('../../modules/es.typed-array.to-sorted'); diff --git a/node_modules/core-js/es/typed-array/to-string.js b/node_modules/core-js/es/typed-array/to-string.js new file mode 100644 index 0000000..86142ad --- /dev/null +++ b/node_modules/core-js/es/typed-array/to-string.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.to-string'); diff --git a/node_modules/core-js/es/typed-array/uint16-array.js b/node_modules/core-js/es/typed-array/uint16-array.js new file mode 100644 index 0000000..08ebcad --- /dev/null +++ b/node_modules/core-js/es/typed-array/uint16-array.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.typed-array.uint16-array'); +require('./methods'); +var global = require('../../internals/global-this'); + +module.exports = global.Uint16Array; diff --git a/node_modules/core-js/es/typed-array/uint32-array.js b/node_modules/core-js/es/typed-array/uint32-array.js new file mode 100644 index 0000000..04cd382 --- /dev/null +++ b/node_modules/core-js/es/typed-array/uint32-array.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.typed-array.uint32-array'); +require('./methods'); +var global = require('../../internals/global-this'); + +module.exports = global.Uint32Array; diff --git a/node_modules/core-js/es/typed-array/uint8-array.js b/node_modules/core-js/es/typed-array/uint8-array.js new file mode 100644 index 0000000..531c1f3 --- /dev/null +++ b/node_modules/core-js/es/typed-array/uint8-array.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.typed-array.uint8-array'); +require('./methods'); +var global = require('../../internals/global-this'); + +module.exports = global.Uint8Array; diff --git a/node_modules/core-js/es/typed-array/uint8-clamped-array.js b/node_modules/core-js/es/typed-array/uint8-clamped-array.js new file mode 100644 index 0000000..2081308 --- /dev/null +++ b/node_modules/core-js/es/typed-array/uint8-clamped-array.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.array-buffer.constructor'); +require('../../modules/es.array-buffer.slice'); +require('../../modules/es.typed-array.uint8-clamped-array'); +require('./methods'); +var global = require('../../internals/global-this'); + +module.exports = global.Uint8ClampedArray; diff --git a/node_modules/core-js/es/typed-array/values.js b/node_modules/core-js/es/typed-array/values.js new file mode 100644 index 0000000..918a9b3 --- /dev/null +++ b/node_modules/core-js/es/typed-array/values.js @@ -0,0 +1,3 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.typed-array.iterator'); diff --git a/node_modules/core-js/es/typed-array/with.js b/node_modules/core-js/es/typed-array/with.js new file mode 100644 index 0000000..25d0047 --- /dev/null +++ b/node_modules/core-js/es/typed-array/with.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.typed-array.with'); diff --git a/node_modules/core-js/es/unescape.js b/node_modules/core-js/es/unescape.js new file mode 100644 index 0000000..9482945 --- /dev/null +++ b/node_modules/core-js/es/unescape.js @@ -0,0 +1,5 @@ +'use strict'; +require('../modules/es.unescape'); +var path = require('../internals/path'); + +module.exports = path.unescape; diff --git a/node_modules/core-js/es/weak-map/index.js b/node_modules/core-js/es/weak-map/index.js new file mode 100644 index 0000000..591e5b8 --- /dev/null +++ b/node_modules/core-js/es/weak-map/index.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +require('../../modules/es.weak-map'); +var path = require('../../internals/path'); + +module.exports = path.WeakMap; diff --git a/node_modules/core-js/es/weak-set/index.js b/node_modules/core-js/es/weak-set/index.js new file mode 100644 index 0000000..39079e3 --- /dev/null +++ b/node_modules/core-js/es/weak-set/index.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/es.object.to-string'); +require('../../modules/es.weak-set'); +var path = require('../../internals/path'); + +module.exports = path.WeakSet; diff --git a/node_modules/core-js/features/aggregate-error.js b/node_modules/core-js/features/aggregate-error.js new file mode 100644 index 0000000..dc651f8 --- /dev/null +++ b/node_modules/core-js/features/aggregate-error.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/aggregate-error'); diff --git a/node_modules/core-js/features/array-buffer/constructor.js b/node_modules/core-js/features/array-buffer/constructor.js new file mode 100644 index 0000000..5a04836 --- /dev/null +++ b/node_modules/core-js/features/array-buffer/constructor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array-buffer/constructor'); diff --git a/node_modules/core-js/features/array-buffer/detached.js b/node_modules/core-js/features/array-buffer/detached.js new file mode 100644 index 0000000..9f086b3 --- /dev/null +++ b/node_modules/core-js/features/array-buffer/detached.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array-buffer/detached'); diff --git a/node_modules/core-js/features/array-buffer/index.js b/node_modules/core-js/features/array-buffer/index.js new file mode 100644 index 0000000..c742210 --- /dev/null +++ b/node_modules/core-js/features/array-buffer/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array-buffer'); diff --git a/node_modules/core-js/features/array-buffer/is-view.js b/node_modules/core-js/features/array-buffer/is-view.js new file mode 100644 index 0000000..32ac354 --- /dev/null +++ b/node_modules/core-js/features/array-buffer/is-view.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array-buffer/is-view'); diff --git a/node_modules/core-js/features/array-buffer/slice.js b/node_modules/core-js/features/array-buffer/slice.js new file mode 100644 index 0000000..dc4551f --- /dev/null +++ b/node_modules/core-js/features/array-buffer/slice.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array-buffer/slice'); diff --git a/node_modules/core-js/features/array-buffer/transfer-to-fixed-length.js b/node_modules/core-js/features/array-buffer/transfer-to-fixed-length.js new file mode 100644 index 0000000..0820c7b --- /dev/null +++ b/node_modules/core-js/features/array-buffer/transfer-to-fixed-length.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array-buffer/transfer-to-fixed-length'); diff --git a/node_modules/core-js/features/array-buffer/transfer.js b/node_modules/core-js/features/array-buffer/transfer.js new file mode 100644 index 0000000..f34385e --- /dev/null +++ b/node_modules/core-js/features/array-buffer/transfer.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array-buffer/transfer'); diff --git a/node_modules/core-js/features/array/at.js b/node_modules/core-js/features/array/at.js new file mode 100644 index 0000000..28ad63a --- /dev/null +++ b/node_modules/core-js/features/array/at.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/at'); diff --git a/node_modules/core-js/features/array/concat.js b/node_modules/core-js/features/array/concat.js new file mode 100644 index 0000000..a4d9301 --- /dev/null +++ b/node_modules/core-js/features/array/concat.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/concat'); diff --git a/node_modules/core-js/features/array/copy-within.js b/node_modules/core-js/features/array/copy-within.js new file mode 100644 index 0000000..22359da --- /dev/null +++ b/node_modules/core-js/features/array/copy-within.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/copy-within'); diff --git a/node_modules/core-js/features/array/entries.js b/node_modules/core-js/features/array/entries.js new file mode 100644 index 0000000..b7e134a --- /dev/null +++ b/node_modules/core-js/features/array/entries.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/entries'); diff --git a/node_modules/core-js/features/array/every.js b/node_modules/core-js/features/array/every.js new file mode 100644 index 0000000..5a6748d --- /dev/null +++ b/node_modules/core-js/features/array/every.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/every'); diff --git a/node_modules/core-js/features/array/fill.js b/node_modules/core-js/features/array/fill.js new file mode 100644 index 0000000..e4e0278 --- /dev/null +++ b/node_modules/core-js/features/array/fill.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/fill'); diff --git a/node_modules/core-js/features/array/filter-out.js b/node_modules/core-js/features/array/filter-out.js new file mode 100644 index 0000000..3a82aff --- /dev/null +++ b/node_modules/core-js/features/array/filter-out.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/filter-out'); diff --git a/node_modules/core-js/features/array/filter-reject.js b/node_modules/core-js/features/array/filter-reject.js new file mode 100644 index 0000000..497c19a --- /dev/null +++ b/node_modules/core-js/features/array/filter-reject.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/filter-reject'); diff --git a/node_modules/core-js/features/array/filter.js b/node_modules/core-js/features/array/filter.js new file mode 100644 index 0000000..79fb0b9 --- /dev/null +++ b/node_modules/core-js/features/array/filter.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/filter'); diff --git a/node_modules/core-js/features/array/find-index.js b/node_modules/core-js/features/array/find-index.js new file mode 100644 index 0000000..119f698 --- /dev/null +++ b/node_modules/core-js/features/array/find-index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/find-index'); diff --git a/node_modules/core-js/features/array/find-last-index.js b/node_modules/core-js/features/array/find-last-index.js new file mode 100644 index 0000000..0a760db --- /dev/null +++ b/node_modules/core-js/features/array/find-last-index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/find-last-index'); diff --git a/node_modules/core-js/features/array/find-last.js b/node_modules/core-js/features/array/find-last.js new file mode 100644 index 0000000..49f9d2f --- /dev/null +++ b/node_modules/core-js/features/array/find-last.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/find-last'); diff --git a/node_modules/core-js/features/array/find.js b/node_modules/core-js/features/array/find.js new file mode 100644 index 0000000..eac1147 --- /dev/null +++ b/node_modules/core-js/features/array/find.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/find'); diff --git a/node_modules/core-js/features/array/flat-map.js b/node_modules/core-js/features/array/flat-map.js new file mode 100644 index 0000000..db4a7d7 --- /dev/null +++ b/node_modules/core-js/features/array/flat-map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/flat-map'); diff --git a/node_modules/core-js/features/array/flat.js b/node_modules/core-js/features/array/flat.js new file mode 100644 index 0000000..45797e0 --- /dev/null +++ b/node_modules/core-js/features/array/flat.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/flat'); diff --git a/node_modules/core-js/features/array/for-each.js b/node_modules/core-js/features/array/for-each.js new file mode 100644 index 0000000..b823be5 --- /dev/null +++ b/node_modules/core-js/features/array/for-each.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/for-each'); diff --git a/node_modules/core-js/features/array/from-async.js b/node_modules/core-js/features/array/from-async.js new file mode 100644 index 0000000..63c1931 --- /dev/null +++ b/node_modules/core-js/features/array/from-async.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/from-async'); diff --git a/node_modules/core-js/features/array/from.js b/node_modules/core-js/features/array/from.js new file mode 100644 index 0000000..752da11 --- /dev/null +++ b/node_modules/core-js/features/array/from.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/from'); diff --git a/node_modules/core-js/features/array/group-by-to-map.js b/node_modules/core-js/features/array/group-by-to-map.js new file mode 100644 index 0000000..559d458 --- /dev/null +++ b/node_modules/core-js/features/array/group-by-to-map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/group-by-to-map'); diff --git a/node_modules/core-js/features/array/group-by.js b/node_modules/core-js/features/array/group-by.js new file mode 100644 index 0000000..66f66a5 --- /dev/null +++ b/node_modules/core-js/features/array/group-by.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/group-by'); diff --git a/node_modules/core-js/features/array/group-to-map.js b/node_modules/core-js/features/array/group-to-map.js new file mode 100644 index 0000000..9bf0af4 --- /dev/null +++ b/node_modules/core-js/features/array/group-to-map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/group-to-map'); diff --git a/node_modules/core-js/features/array/group.js b/node_modules/core-js/features/array/group.js new file mode 100644 index 0000000..8e58705 --- /dev/null +++ b/node_modules/core-js/features/array/group.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/group'); diff --git a/node_modules/core-js/features/array/includes.js b/node_modules/core-js/features/array/includes.js new file mode 100644 index 0000000..b70af4c --- /dev/null +++ b/node_modules/core-js/features/array/includes.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/includes'); diff --git a/node_modules/core-js/features/array/index-of.js b/node_modules/core-js/features/array/index-of.js new file mode 100644 index 0000000..c088e00 --- /dev/null +++ b/node_modules/core-js/features/array/index-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/index-of'); diff --git a/node_modules/core-js/features/array/index.js b/node_modules/core-js/features/array/index.js new file mode 100644 index 0000000..7b95b43 --- /dev/null +++ b/node_modules/core-js/features/array/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array'); diff --git a/node_modules/core-js/features/array/is-array.js b/node_modules/core-js/features/array/is-array.js new file mode 100644 index 0000000..119116a --- /dev/null +++ b/node_modules/core-js/features/array/is-array.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/is-array'); diff --git a/node_modules/core-js/features/array/is-template-object.js b/node_modules/core-js/features/array/is-template-object.js new file mode 100644 index 0000000..25ec3f7 --- /dev/null +++ b/node_modules/core-js/features/array/is-template-object.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/is-template-object'); diff --git a/node_modules/core-js/features/array/iterator.js b/node_modules/core-js/features/array/iterator.js new file mode 100644 index 0000000..322b558 --- /dev/null +++ b/node_modules/core-js/features/array/iterator.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/iterator'); diff --git a/node_modules/core-js/features/array/join.js b/node_modules/core-js/features/array/join.js new file mode 100644 index 0000000..c053244 --- /dev/null +++ b/node_modules/core-js/features/array/join.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/join'); diff --git a/node_modules/core-js/features/array/keys.js b/node_modules/core-js/features/array/keys.js new file mode 100644 index 0000000..fd4c6f8 --- /dev/null +++ b/node_modules/core-js/features/array/keys.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/keys'); diff --git a/node_modules/core-js/features/array/last-index-of.js b/node_modules/core-js/features/array/last-index-of.js new file mode 100644 index 0000000..1a4b7d0 --- /dev/null +++ b/node_modules/core-js/features/array/last-index-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/last-index-of'); diff --git a/node_modules/core-js/features/array/last-index.js b/node_modules/core-js/features/array/last-index.js new file mode 100644 index 0000000..c813300 --- /dev/null +++ b/node_modules/core-js/features/array/last-index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/last-index'); diff --git a/node_modules/core-js/features/array/last-item.js b/node_modules/core-js/features/array/last-item.js new file mode 100644 index 0000000..264d109 --- /dev/null +++ b/node_modules/core-js/features/array/last-item.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/last-item'); diff --git a/node_modules/core-js/features/array/map.js b/node_modules/core-js/features/array/map.js new file mode 100644 index 0000000..755baa0 --- /dev/null +++ b/node_modules/core-js/features/array/map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/map'); diff --git a/node_modules/core-js/features/array/of.js b/node_modules/core-js/features/array/of.js new file mode 100644 index 0000000..aa27fbe --- /dev/null +++ b/node_modules/core-js/features/array/of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/of'); diff --git a/node_modules/core-js/features/array/push.js b/node_modules/core-js/features/array/push.js new file mode 100644 index 0000000..e445e85 --- /dev/null +++ b/node_modules/core-js/features/array/push.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/push'); diff --git a/node_modules/core-js/features/array/reduce-right.js b/node_modules/core-js/features/array/reduce-right.js new file mode 100644 index 0000000..0a81e53 --- /dev/null +++ b/node_modules/core-js/features/array/reduce-right.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/reduce-right'); diff --git a/node_modules/core-js/features/array/reduce.js b/node_modules/core-js/features/array/reduce.js new file mode 100644 index 0000000..be5dcc4 --- /dev/null +++ b/node_modules/core-js/features/array/reduce.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/reduce'); diff --git a/node_modules/core-js/features/array/reverse.js b/node_modules/core-js/features/array/reverse.js new file mode 100644 index 0000000..13ffa30 --- /dev/null +++ b/node_modules/core-js/features/array/reverse.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/reverse'); diff --git a/node_modules/core-js/features/array/slice.js b/node_modules/core-js/features/array/slice.js new file mode 100644 index 0000000..2361724 --- /dev/null +++ b/node_modules/core-js/features/array/slice.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/slice'); diff --git a/node_modules/core-js/features/array/some.js b/node_modules/core-js/features/array/some.js new file mode 100644 index 0000000..70ef42a --- /dev/null +++ b/node_modules/core-js/features/array/some.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/some'); diff --git a/node_modules/core-js/features/array/sort.js b/node_modules/core-js/features/array/sort.js new file mode 100644 index 0000000..51542be --- /dev/null +++ b/node_modules/core-js/features/array/sort.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/sort'); diff --git a/node_modules/core-js/features/array/splice.js b/node_modules/core-js/features/array/splice.js new file mode 100644 index 0000000..435477a --- /dev/null +++ b/node_modules/core-js/features/array/splice.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/splice'); diff --git a/node_modules/core-js/features/array/to-reversed.js b/node_modules/core-js/features/array/to-reversed.js new file mode 100644 index 0000000..4d5e3e8 --- /dev/null +++ b/node_modules/core-js/features/array/to-reversed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/to-reversed'); diff --git a/node_modules/core-js/features/array/to-sorted.js b/node_modules/core-js/features/array/to-sorted.js new file mode 100644 index 0000000..7863413 --- /dev/null +++ b/node_modules/core-js/features/array/to-sorted.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/to-sorted'); diff --git a/node_modules/core-js/features/array/to-spliced.js b/node_modules/core-js/features/array/to-spliced.js new file mode 100644 index 0000000..573563c --- /dev/null +++ b/node_modules/core-js/features/array/to-spliced.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/to-spliced'); diff --git a/node_modules/core-js/features/array/unique-by.js b/node_modules/core-js/features/array/unique-by.js new file mode 100644 index 0000000..f45a3d1 --- /dev/null +++ b/node_modules/core-js/features/array/unique-by.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/unique-by'); diff --git a/node_modules/core-js/features/array/unshift.js b/node_modules/core-js/features/array/unshift.js new file mode 100644 index 0000000..0b2cc19 --- /dev/null +++ b/node_modules/core-js/features/array/unshift.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/unshift'); diff --git a/node_modules/core-js/features/array/values.js b/node_modules/core-js/features/array/values.js new file mode 100644 index 0000000..a07deb7 --- /dev/null +++ b/node_modules/core-js/features/array/values.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/values'); diff --git a/node_modules/core-js/features/array/virtual/at.js b/node_modules/core-js/features/array/virtual/at.js new file mode 100644 index 0000000..0df9756 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/at.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/at'); diff --git a/node_modules/core-js/features/array/virtual/concat.js b/node_modules/core-js/features/array/virtual/concat.js new file mode 100644 index 0000000..1c92a12 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/concat.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/concat'); diff --git a/node_modules/core-js/features/array/virtual/copy-within.js b/node_modules/core-js/features/array/virtual/copy-within.js new file mode 100644 index 0000000..ece58e6 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/copy-within.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/copy-within'); diff --git a/node_modules/core-js/features/array/virtual/entries.js b/node_modules/core-js/features/array/virtual/entries.js new file mode 100644 index 0000000..ad7f4f5 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/entries.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/entries'); diff --git a/node_modules/core-js/features/array/virtual/every.js b/node_modules/core-js/features/array/virtual/every.js new file mode 100644 index 0000000..228d31b --- /dev/null +++ b/node_modules/core-js/features/array/virtual/every.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/every'); diff --git a/node_modules/core-js/features/array/virtual/fill.js b/node_modules/core-js/features/array/virtual/fill.js new file mode 100644 index 0000000..066ebc1 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/fill.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/fill'); diff --git a/node_modules/core-js/features/array/virtual/filter-out.js b/node_modules/core-js/features/array/virtual/filter-out.js new file mode 100644 index 0000000..c01b3c4 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/filter-out.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/filter-out'); diff --git a/node_modules/core-js/features/array/virtual/filter-reject.js b/node_modules/core-js/features/array/virtual/filter-reject.js new file mode 100644 index 0000000..e361da3 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/filter-reject.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/filter-reject'); diff --git a/node_modules/core-js/features/array/virtual/filter.js b/node_modules/core-js/features/array/virtual/filter.js new file mode 100644 index 0000000..b037cf9 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/filter.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/filter'); diff --git a/node_modules/core-js/features/array/virtual/find-index.js b/node_modules/core-js/features/array/virtual/find-index.js new file mode 100644 index 0000000..7353298 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/find-index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/find-index'); diff --git a/node_modules/core-js/features/array/virtual/find-last-index.js b/node_modules/core-js/features/array/virtual/find-last-index.js new file mode 100644 index 0000000..fd157f2 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/find-last-index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/find-last-index'); diff --git a/node_modules/core-js/features/array/virtual/find-last.js b/node_modules/core-js/features/array/virtual/find-last.js new file mode 100644 index 0000000..4f7456b --- /dev/null +++ b/node_modules/core-js/features/array/virtual/find-last.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/find-last'); diff --git a/node_modules/core-js/features/array/virtual/find.js b/node_modules/core-js/features/array/virtual/find.js new file mode 100644 index 0000000..d87b83e --- /dev/null +++ b/node_modules/core-js/features/array/virtual/find.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/find'); diff --git a/node_modules/core-js/features/array/virtual/flat-map.js b/node_modules/core-js/features/array/virtual/flat-map.js new file mode 100644 index 0000000..eb6010c --- /dev/null +++ b/node_modules/core-js/features/array/virtual/flat-map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/flat-map'); diff --git a/node_modules/core-js/features/array/virtual/flat.js b/node_modules/core-js/features/array/virtual/flat.js new file mode 100644 index 0000000..b13e32d --- /dev/null +++ b/node_modules/core-js/features/array/virtual/flat.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/flat'); diff --git a/node_modules/core-js/features/array/virtual/for-each.js b/node_modules/core-js/features/array/virtual/for-each.js new file mode 100644 index 0000000..36a63e2 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/for-each.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/for-each'); diff --git a/node_modules/core-js/features/array/virtual/group-by-to-map.js b/node_modules/core-js/features/array/virtual/group-by-to-map.js new file mode 100644 index 0000000..e6e3500 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/group-by-to-map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/group-by-to-map'); diff --git a/node_modules/core-js/features/array/virtual/group-by.js b/node_modules/core-js/features/array/virtual/group-by.js new file mode 100644 index 0000000..cb7b425 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/group-by.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/group-by'); diff --git a/node_modules/core-js/features/array/virtual/group-to-map.js b/node_modules/core-js/features/array/virtual/group-to-map.js new file mode 100644 index 0000000..4579468 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/group-to-map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/group-to-map'); diff --git a/node_modules/core-js/features/array/virtual/group.js b/node_modules/core-js/features/array/virtual/group.js new file mode 100644 index 0000000..d74be5c --- /dev/null +++ b/node_modules/core-js/features/array/virtual/group.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/group'); diff --git a/node_modules/core-js/features/array/virtual/includes.js b/node_modules/core-js/features/array/virtual/includes.js new file mode 100644 index 0000000..b958745 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/includes.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/includes'); diff --git a/node_modules/core-js/features/array/virtual/index-of.js b/node_modules/core-js/features/array/virtual/index-of.js new file mode 100644 index 0000000..c662ba1 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/index-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/index-of'); diff --git a/node_modules/core-js/features/array/virtual/index.js b/node_modules/core-js/features/array/virtual/index.js new file mode 100644 index 0000000..dee1f54 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual'); diff --git a/node_modules/core-js/features/array/virtual/iterator.js b/node_modules/core-js/features/array/virtual/iterator.js new file mode 100644 index 0000000..557e31b --- /dev/null +++ b/node_modules/core-js/features/array/virtual/iterator.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/iterator'); diff --git a/node_modules/core-js/features/array/virtual/join.js b/node_modules/core-js/features/array/virtual/join.js new file mode 100644 index 0000000..62bf5b9 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/join.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/join'); diff --git a/node_modules/core-js/features/array/virtual/keys.js b/node_modules/core-js/features/array/virtual/keys.js new file mode 100644 index 0000000..1e088ef --- /dev/null +++ b/node_modules/core-js/features/array/virtual/keys.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/keys'); diff --git a/node_modules/core-js/features/array/virtual/last-index-of.js b/node_modules/core-js/features/array/virtual/last-index-of.js new file mode 100644 index 0000000..f275e49 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/last-index-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/last-index-of'); diff --git a/node_modules/core-js/features/array/virtual/map.js b/node_modules/core-js/features/array/virtual/map.js new file mode 100644 index 0000000..af801d8 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/map'); diff --git a/node_modules/core-js/features/array/virtual/push.js b/node_modules/core-js/features/array/virtual/push.js new file mode 100644 index 0000000..b25cc38 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/push.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/push'); diff --git a/node_modules/core-js/features/array/virtual/reduce-right.js b/node_modules/core-js/features/array/virtual/reduce-right.js new file mode 100644 index 0000000..896942f --- /dev/null +++ b/node_modules/core-js/features/array/virtual/reduce-right.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/reduce-right'); diff --git a/node_modules/core-js/features/array/virtual/reduce.js b/node_modules/core-js/features/array/virtual/reduce.js new file mode 100644 index 0000000..479ec56 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/reduce.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/reduce'); diff --git a/node_modules/core-js/features/array/virtual/reverse.js b/node_modules/core-js/features/array/virtual/reverse.js new file mode 100644 index 0000000..94b6ab8 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/reverse.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/reverse'); diff --git a/node_modules/core-js/features/array/virtual/slice.js b/node_modules/core-js/features/array/virtual/slice.js new file mode 100644 index 0000000..4cb10c6 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/slice.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/slice'); diff --git a/node_modules/core-js/features/array/virtual/some.js b/node_modules/core-js/features/array/virtual/some.js new file mode 100644 index 0000000..12cd60c --- /dev/null +++ b/node_modules/core-js/features/array/virtual/some.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/some'); diff --git a/node_modules/core-js/features/array/virtual/sort.js b/node_modules/core-js/features/array/virtual/sort.js new file mode 100644 index 0000000..db45d31 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/sort.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/sort'); diff --git a/node_modules/core-js/features/array/virtual/splice.js b/node_modules/core-js/features/array/virtual/splice.js new file mode 100644 index 0000000..e1485f0 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/splice.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/splice'); diff --git a/node_modules/core-js/features/array/virtual/to-reversed.js b/node_modules/core-js/features/array/virtual/to-reversed.js new file mode 100644 index 0000000..d6c9044 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/to-reversed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/to-reversed'); diff --git a/node_modules/core-js/features/array/virtual/to-sorted.js b/node_modules/core-js/features/array/virtual/to-sorted.js new file mode 100644 index 0000000..2c9ccf2 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/to-sorted.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/to-sorted'); diff --git a/node_modules/core-js/features/array/virtual/to-spliced.js b/node_modules/core-js/features/array/virtual/to-spliced.js new file mode 100644 index 0000000..785933f --- /dev/null +++ b/node_modules/core-js/features/array/virtual/to-spliced.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/to-spliced'); diff --git a/node_modules/core-js/features/array/virtual/unique-by.js b/node_modules/core-js/features/array/virtual/unique-by.js new file mode 100644 index 0000000..178bd56 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/unique-by.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/unique-by'); diff --git a/node_modules/core-js/features/array/virtual/unshift.js b/node_modules/core-js/features/array/virtual/unshift.js new file mode 100644 index 0000000..c9761cb --- /dev/null +++ b/node_modules/core-js/features/array/virtual/unshift.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/unshift'); diff --git a/node_modules/core-js/features/array/virtual/values.js b/node_modules/core-js/features/array/virtual/values.js new file mode 100644 index 0000000..c39701e --- /dev/null +++ b/node_modules/core-js/features/array/virtual/values.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/values'); diff --git a/node_modules/core-js/features/array/virtual/with.js b/node_modules/core-js/features/array/virtual/with.js new file mode 100644 index 0000000..5b3f3a9 --- /dev/null +++ b/node_modules/core-js/features/array/virtual/with.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/array/virtual/with'); diff --git a/node_modules/core-js/features/array/with.js b/node_modules/core-js/features/array/with.js new file mode 100644 index 0000000..dea83a7 --- /dev/null +++ b/node_modules/core-js/features/array/with.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/array/with'); diff --git a/node_modules/core-js/features/async-disposable-stack/constructor.js b/node_modules/core-js/features/async-disposable-stack/constructor.js new file mode 100644 index 0000000..2adfd3e --- /dev/null +++ b/node_modules/core-js/features/async-disposable-stack/constructor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-disposable-stack/constructor'); diff --git a/node_modules/core-js/features/async-disposable-stack/index.js b/node_modules/core-js/features/async-disposable-stack/index.js new file mode 100644 index 0000000..e45aa25 --- /dev/null +++ b/node_modules/core-js/features/async-disposable-stack/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-disposable-stack'); diff --git a/node_modules/core-js/features/async-iterator/as-indexed-pairs.js b/node_modules/core-js/features/async-iterator/as-indexed-pairs.js new file mode 100644 index 0000000..8f479ff --- /dev/null +++ b/node_modules/core-js/features/async-iterator/as-indexed-pairs.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/as-indexed-pairs'); diff --git a/node_modules/core-js/features/async-iterator/async-dispose.js b/node_modules/core-js/features/async-iterator/async-dispose.js new file mode 100644 index 0000000..ac37610 --- /dev/null +++ b/node_modules/core-js/features/async-iterator/async-dispose.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/async-dispose'); diff --git a/node_modules/core-js/features/async-iterator/drop.js b/node_modules/core-js/features/async-iterator/drop.js new file mode 100644 index 0000000..12e52a3 --- /dev/null +++ b/node_modules/core-js/features/async-iterator/drop.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/drop'); diff --git a/node_modules/core-js/features/async-iterator/every.js b/node_modules/core-js/features/async-iterator/every.js new file mode 100644 index 0000000..eb74c22 --- /dev/null +++ b/node_modules/core-js/features/async-iterator/every.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/every'); diff --git a/node_modules/core-js/features/async-iterator/filter.js b/node_modules/core-js/features/async-iterator/filter.js new file mode 100644 index 0000000..eaef99a --- /dev/null +++ b/node_modules/core-js/features/async-iterator/filter.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/filter'); diff --git a/node_modules/core-js/features/async-iterator/find.js b/node_modules/core-js/features/async-iterator/find.js new file mode 100644 index 0000000..3b5a8ea --- /dev/null +++ b/node_modules/core-js/features/async-iterator/find.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/find'); diff --git a/node_modules/core-js/features/async-iterator/flat-map.js b/node_modules/core-js/features/async-iterator/flat-map.js new file mode 100644 index 0000000..dbfc9c7 --- /dev/null +++ b/node_modules/core-js/features/async-iterator/flat-map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/flat-map'); diff --git a/node_modules/core-js/features/async-iterator/for-each.js b/node_modules/core-js/features/async-iterator/for-each.js new file mode 100644 index 0000000..3ff764a --- /dev/null +++ b/node_modules/core-js/features/async-iterator/for-each.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/for-each'); diff --git a/node_modules/core-js/features/async-iterator/from.js b/node_modules/core-js/features/async-iterator/from.js new file mode 100644 index 0000000..1fcdec1 --- /dev/null +++ b/node_modules/core-js/features/async-iterator/from.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/from'); diff --git a/node_modules/core-js/features/async-iterator/index.js b/node_modules/core-js/features/async-iterator/index.js new file mode 100644 index 0000000..7aaf549 --- /dev/null +++ b/node_modules/core-js/features/async-iterator/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator'); diff --git a/node_modules/core-js/features/async-iterator/indexed.js b/node_modules/core-js/features/async-iterator/indexed.js new file mode 100644 index 0000000..b8403f6 --- /dev/null +++ b/node_modules/core-js/features/async-iterator/indexed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/indexed'); diff --git a/node_modules/core-js/features/async-iterator/map.js b/node_modules/core-js/features/async-iterator/map.js new file mode 100644 index 0000000..9de4ae3 --- /dev/null +++ b/node_modules/core-js/features/async-iterator/map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/map'); diff --git a/node_modules/core-js/features/async-iterator/reduce.js b/node_modules/core-js/features/async-iterator/reduce.js new file mode 100644 index 0000000..8050d22 --- /dev/null +++ b/node_modules/core-js/features/async-iterator/reduce.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/reduce'); diff --git a/node_modules/core-js/features/async-iterator/some.js b/node_modules/core-js/features/async-iterator/some.js new file mode 100644 index 0000000..eeeff5d --- /dev/null +++ b/node_modules/core-js/features/async-iterator/some.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/some'); diff --git a/node_modules/core-js/features/async-iterator/take.js b/node_modules/core-js/features/async-iterator/take.js new file mode 100644 index 0000000..17d1a63 --- /dev/null +++ b/node_modules/core-js/features/async-iterator/take.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/take'); diff --git a/node_modules/core-js/features/async-iterator/to-array.js b/node_modules/core-js/features/async-iterator/to-array.js new file mode 100644 index 0000000..cf42198 --- /dev/null +++ b/node_modules/core-js/features/async-iterator/to-array.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/async-iterator/to-array'); diff --git a/node_modules/core-js/features/atob.js b/node_modules/core-js/features/atob.js new file mode 100644 index 0000000..5274555 --- /dev/null +++ b/node_modules/core-js/features/atob.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/atob'); diff --git a/node_modules/core-js/features/bigint/index.js b/node_modules/core-js/features/bigint/index.js new file mode 100644 index 0000000..c634a7c --- /dev/null +++ b/node_modules/core-js/features/bigint/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/bigint'); diff --git a/node_modules/core-js/features/bigint/range.js b/node_modules/core-js/features/bigint/range.js new file mode 100644 index 0000000..b40003d --- /dev/null +++ b/node_modules/core-js/features/bigint/range.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/bigint/range'); diff --git a/node_modules/core-js/features/btoa.js b/node_modules/core-js/features/btoa.js new file mode 100644 index 0000000..a3eeb28 --- /dev/null +++ b/node_modules/core-js/features/btoa.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/btoa'); diff --git a/node_modules/core-js/features/clear-immediate.js b/node_modules/core-js/features/clear-immediate.js new file mode 100644 index 0000000..670e2ac --- /dev/null +++ b/node_modules/core-js/features/clear-immediate.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/clear-immediate'); diff --git a/node_modules/core-js/features/composite-key.js b/node_modules/core-js/features/composite-key.js new file mode 100644 index 0000000..0aa534d --- /dev/null +++ b/node_modules/core-js/features/composite-key.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/composite-key'); diff --git a/node_modules/core-js/features/composite-symbol.js b/node_modules/core-js/features/composite-symbol.js new file mode 100644 index 0000000..870aaf3 --- /dev/null +++ b/node_modules/core-js/features/composite-symbol.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/composite-symbol'); diff --git a/node_modules/core-js/features/data-view/get-float16.js b/node_modules/core-js/features/data-view/get-float16.js new file mode 100644 index 0000000..d53e289 --- /dev/null +++ b/node_modules/core-js/features/data-view/get-float16.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/data-view/get-float16'); diff --git a/node_modules/core-js/features/data-view/get-uint8-clamped.js b/node_modules/core-js/features/data-view/get-uint8-clamped.js new file mode 100644 index 0000000..6b2e0e3 --- /dev/null +++ b/node_modules/core-js/features/data-view/get-uint8-clamped.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/data-view/get-uint8-clamped'); diff --git a/node_modules/core-js/features/data-view/index.js b/node_modules/core-js/features/data-view/index.js new file mode 100644 index 0000000..3ee3e88 --- /dev/null +++ b/node_modules/core-js/features/data-view/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/data-view'); diff --git a/node_modules/core-js/features/data-view/set-float16.js b/node_modules/core-js/features/data-view/set-float16.js new file mode 100644 index 0000000..2c0c9af --- /dev/null +++ b/node_modules/core-js/features/data-view/set-float16.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/data-view/set-float16'); diff --git a/node_modules/core-js/features/data-view/set-uint8-clamped.js b/node_modules/core-js/features/data-view/set-uint8-clamped.js new file mode 100644 index 0000000..27e928f --- /dev/null +++ b/node_modules/core-js/features/data-view/set-uint8-clamped.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/data-view/set-uint8-clamped'); diff --git a/node_modules/core-js/features/date/get-year.js b/node_modules/core-js/features/date/get-year.js new file mode 100644 index 0000000..01748db --- /dev/null +++ b/node_modules/core-js/features/date/get-year.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/date/get-year'); diff --git a/node_modules/core-js/features/date/index.js b/node_modules/core-js/features/date/index.js new file mode 100644 index 0000000..00763b1 --- /dev/null +++ b/node_modules/core-js/features/date/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/date'); diff --git a/node_modules/core-js/features/date/now.js b/node_modules/core-js/features/date/now.js new file mode 100644 index 0000000..456f092 --- /dev/null +++ b/node_modules/core-js/features/date/now.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/date/now'); diff --git a/node_modules/core-js/features/date/set-year.js b/node_modules/core-js/features/date/set-year.js new file mode 100644 index 0000000..b1eb5b6 --- /dev/null +++ b/node_modules/core-js/features/date/set-year.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/date/set-year'); diff --git a/node_modules/core-js/features/date/to-gmt-string.js b/node_modules/core-js/features/date/to-gmt-string.js new file mode 100644 index 0000000..1a8cf3d --- /dev/null +++ b/node_modules/core-js/features/date/to-gmt-string.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/date/to-gmt-string'); diff --git a/node_modules/core-js/features/date/to-iso-string.js b/node_modules/core-js/features/date/to-iso-string.js new file mode 100644 index 0000000..4351df8 --- /dev/null +++ b/node_modules/core-js/features/date/to-iso-string.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/date/to-iso-string'); diff --git a/node_modules/core-js/features/date/to-json.js b/node_modules/core-js/features/date/to-json.js new file mode 100644 index 0000000..eb1f073 --- /dev/null +++ b/node_modules/core-js/features/date/to-json.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/date/to-json'); diff --git a/node_modules/core-js/features/date/to-primitive.js b/node_modules/core-js/features/date/to-primitive.js new file mode 100644 index 0000000..c04d5ff --- /dev/null +++ b/node_modules/core-js/features/date/to-primitive.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/date/to-primitive'); diff --git a/node_modules/core-js/features/date/to-string.js b/node_modules/core-js/features/date/to-string.js new file mode 100644 index 0000000..138ac94 --- /dev/null +++ b/node_modules/core-js/features/date/to-string.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/date/to-string'); diff --git a/node_modules/core-js/features/disposable-stack/constructor.js b/node_modules/core-js/features/disposable-stack/constructor.js new file mode 100644 index 0000000..be69e37 --- /dev/null +++ b/node_modules/core-js/features/disposable-stack/constructor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/disposable-stack/constructor'); diff --git a/node_modules/core-js/features/disposable-stack/index.js b/node_modules/core-js/features/disposable-stack/index.js new file mode 100644 index 0000000..5bbacfb --- /dev/null +++ b/node_modules/core-js/features/disposable-stack/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/disposable-stack'); diff --git a/node_modules/core-js/features/dom-collections/for-each.js b/node_modules/core-js/features/dom-collections/for-each.js new file mode 100644 index 0000000..4e34919 --- /dev/null +++ b/node_modules/core-js/features/dom-collections/for-each.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/dom-collections/for-each'); diff --git a/node_modules/core-js/features/dom-collections/index.js b/node_modules/core-js/features/dom-collections/index.js new file mode 100644 index 0000000..a2b1318 --- /dev/null +++ b/node_modules/core-js/features/dom-collections/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/dom-collections'); diff --git a/node_modules/core-js/features/dom-collections/iterator.js b/node_modules/core-js/features/dom-collections/iterator.js new file mode 100644 index 0000000..6b51ef0 --- /dev/null +++ b/node_modules/core-js/features/dom-collections/iterator.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/dom-collections/iterator'); diff --git a/node_modules/core-js/features/dom-exception/constructor.js b/node_modules/core-js/features/dom-exception/constructor.js new file mode 100644 index 0000000..54c37aa --- /dev/null +++ b/node_modules/core-js/features/dom-exception/constructor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/dom-exception/constructor'); diff --git a/node_modules/core-js/features/dom-exception/index.js b/node_modules/core-js/features/dom-exception/index.js new file mode 100644 index 0000000..d047ee8 --- /dev/null +++ b/node_modules/core-js/features/dom-exception/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/dom-exception'); diff --git a/node_modules/core-js/features/dom-exception/to-string-tag.js b/node_modules/core-js/features/dom-exception/to-string-tag.js new file mode 100644 index 0000000..a578f44 --- /dev/null +++ b/node_modules/core-js/features/dom-exception/to-string-tag.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/dom-exception/to-string-tag'); diff --git a/node_modules/core-js/features/error/constructor.js b/node_modules/core-js/features/error/constructor.js new file mode 100644 index 0000000..73f2cbc --- /dev/null +++ b/node_modules/core-js/features/error/constructor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/error/constructor'); diff --git a/node_modules/core-js/features/error/index.js b/node_modules/core-js/features/error/index.js new file mode 100644 index 0000000..5a0f6b0 --- /dev/null +++ b/node_modules/core-js/features/error/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/error'); diff --git a/node_modules/core-js/features/error/to-string.js b/node_modules/core-js/features/error/to-string.js new file mode 100644 index 0000000..47b1551 --- /dev/null +++ b/node_modules/core-js/features/error/to-string.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/error/to-string'); diff --git a/node_modules/core-js/features/escape.js b/node_modules/core-js/features/escape.js new file mode 100644 index 0000000..be0474b --- /dev/null +++ b/node_modules/core-js/features/escape.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/escape'); diff --git a/node_modules/core-js/features/function/bind.js b/node_modules/core-js/features/function/bind.js new file mode 100644 index 0000000..8281dcb --- /dev/null +++ b/node_modules/core-js/features/function/bind.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/function/bind'); diff --git a/node_modules/core-js/features/function/demethodize.js b/node_modules/core-js/features/function/demethodize.js new file mode 100644 index 0000000..cf093c3 --- /dev/null +++ b/node_modules/core-js/features/function/demethodize.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/function/demethodize'); diff --git a/node_modules/core-js/features/function/has-instance.js b/node_modules/core-js/features/function/has-instance.js new file mode 100644 index 0000000..4fc1051 --- /dev/null +++ b/node_modules/core-js/features/function/has-instance.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/function/has-instance'); diff --git a/node_modules/core-js/features/function/index.js b/node_modules/core-js/features/function/index.js new file mode 100644 index 0000000..0ba08df --- /dev/null +++ b/node_modules/core-js/features/function/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/function'); diff --git a/node_modules/core-js/features/function/is-callable.js b/node_modules/core-js/features/function/is-callable.js new file mode 100644 index 0000000..b624162 --- /dev/null +++ b/node_modules/core-js/features/function/is-callable.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/function/is-callable'); diff --git a/node_modules/core-js/features/function/is-constructor.js b/node_modules/core-js/features/function/is-constructor.js new file mode 100644 index 0000000..46c9208 --- /dev/null +++ b/node_modules/core-js/features/function/is-constructor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/function/is-constructor'); diff --git a/node_modules/core-js/features/function/metadata.js b/node_modules/core-js/features/function/metadata.js new file mode 100644 index 0000000..31e8fea --- /dev/null +++ b/node_modules/core-js/features/function/metadata.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/function/metadata'); diff --git a/node_modules/core-js/features/function/name.js b/node_modules/core-js/features/function/name.js new file mode 100644 index 0000000..e5facbc --- /dev/null +++ b/node_modules/core-js/features/function/name.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/function/name'); diff --git a/node_modules/core-js/features/function/un-this.js b/node_modules/core-js/features/function/un-this.js new file mode 100644 index 0000000..bc6f519 --- /dev/null +++ b/node_modules/core-js/features/function/un-this.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/function/un-this'); diff --git a/node_modules/core-js/features/function/virtual/bind.js b/node_modules/core-js/features/function/virtual/bind.js new file mode 100644 index 0000000..f0da5de --- /dev/null +++ b/node_modules/core-js/features/function/virtual/bind.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/function/virtual/bind'); diff --git a/node_modules/core-js/features/function/virtual/demethodize.js b/node_modules/core-js/features/function/virtual/demethodize.js new file mode 100644 index 0000000..a9e6403 --- /dev/null +++ b/node_modules/core-js/features/function/virtual/demethodize.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/function/virtual/demethodize'); diff --git a/node_modules/core-js/features/function/virtual/index.js b/node_modules/core-js/features/function/virtual/index.js new file mode 100644 index 0000000..cbfa55e --- /dev/null +++ b/node_modules/core-js/features/function/virtual/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/function/virtual'); diff --git a/node_modules/core-js/features/function/virtual/un-this.js b/node_modules/core-js/features/function/virtual/un-this.js new file mode 100644 index 0000000..d534492 --- /dev/null +++ b/node_modules/core-js/features/function/virtual/un-this.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/function/virtual/un-this'); diff --git a/node_modules/core-js/features/get-iterator-method.js b/node_modules/core-js/features/get-iterator-method.js new file mode 100644 index 0000000..2ee2e32 --- /dev/null +++ b/node_modules/core-js/features/get-iterator-method.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/get-iterator-method'); diff --git a/node_modules/core-js/features/get-iterator.js b/node_modules/core-js/features/get-iterator.js new file mode 100644 index 0000000..0e97366 --- /dev/null +++ b/node_modules/core-js/features/get-iterator.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/get-iterator'); diff --git a/node_modules/core-js/features/global-this.js b/node_modules/core-js/features/global-this.js new file mode 100644 index 0000000..7ef6e00 --- /dev/null +++ b/node_modules/core-js/features/global-this.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/global-this'); diff --git a/node_modules/core-js/features/index.js b/node_modules/core-js/features/index.js new file mode 100644 index 0000000..862f06c --- /dev/null +++ b/node_modules/core-js/features/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full'); diff --git a/node_modules/core-js/features/instance/at.js b/node_modules/core-js/features/instance/at.js new file mode 100644 index 0000000..63ee4e0 --- /dev/null +++ b/node_modules/core-js/features/instance/at.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/at'); diff --git a/node_modules/core-js/features/instance/bind.js b/node_modules/core-js/features/instance/bind.js new file mode 100644 index 0000000..a4df444 --- /dev/null +++ b/node_modules/core-js/features/instance/bind.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/bind'); diff --git a/node_modules/core-js/features/instance/code-point-at.js b/node_modules/core-js/features/instance/code-point-at.js new file mode 100644 index 0000000..ac8f54a --- /dev/null +++ b/node_modules/core-js/features/instance/code-point-at.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/code-point-at'); diff --git a/node_modules/core-js/features/instance/code-points.js b/node_modules/core-js/features/instance/code-points.js new file mode 100644 index 0000000..250b28c --- /dev/null +++ b/node_modules/core-js/features/instance/code-points.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/code-points'); diff --git a/node_modules/core-js/features/instance/concat.js b/node_modules/core-js/features/instance/concat.js new file mode 100644 index 0000000..70fe007 --- /dev/null +++ b/node_modules/core-js/features/instance/concat.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/concat'); diff --git a/node_modules/core-js/features/instance/copy-within.js b/node_modules/core-js/features/instance/copy-within.js new file mode 100644 index 0000000..b833739 --- /dev/null +++ b/node_modules/core-js/features/instance/copy-within.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/copy-within'); diff --git a/node_modules/core-js/features/instance/demethodize.js b/node_modules/core-js/features/instance/demethodize.js new file mode 100644 index 0000000..3d5d9a4 --- /dev/null +++ b/node_modules/core-js/features/instance/demethodize.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/demethodize'); diff --git a/node_modules/core-js/features/instance/ends-with.js b/node_modules/core-js/features/instance/ends-with.js new file mode 100644 index 0000000..e6abcf7 --- /dev/null +++ b/node_modules/core-js/features/instance/ends-with.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/ends-with'); diff --git a/node_modules/core-js/features/instance/entries.js b/node_modules/core-js/features/instance/entries.js new file mode 100644 index 0000000..23486b2 --- /dev/null +++ b/node_modules/core-js/features/instance/entries.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/entries'); diff --git a/node_modules/core-js/features/instance/every.js b/node_modules/core-js/features/instance/every.js new file mode 100644 index 0000000..d9b53c9 --- /dev/null +++ b/node_modules/core-js/features/instance/every.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/every'); diff --git a/node_modules/core-js/features/instance/fill.js b/node_modules/core-js/features/instance/fill.js new file mode 100644 index 0000000..17d1f57 --- /dev/null +++ b/node_modules/core-js/features/instance/fill.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/fill'); diff --git a/node_modules/core-js/features/instance/filter-out.js b/node_modules/core-js/features/instance/filter-out.js new file mode 100644 index 0000000..12191d6 --- /dev/null +++ b/node_modules/core-js/features/instance/filter-out.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/filter-out'); diff --git a/node_modules/core-js/features/instance/filter-reject.js b/node_modules/core-js/features/instance/filter-reject.js new file mode 100644 index 0000000..c52ceab --- /dev/null +++ b/node_modules/core-js/features/instance/filter-reject.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/filter-reject'); diff --git a/node_modules/core-js/features/instance/filter.js b/node_modules/core-js/features/instance/filter.js new file mode 100644 index 0000000..75faee1 --- /dev/null +++ b/node_modules/core-js/features/instance/filter.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/filter'); diff --git a/node_modules/core-js/features/instance/find-index.js b/node_modules/core-js/features/instance/find-index.js new file mode 100644 index 0000000..843a5f0 --- /dev/null +++ b/node_modules/core-js/features/instance/find-index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/find-index'); diff --git a/node_modules/core-js/features/instance/find-last-index.js b/node_modules/core-js/features/instance/find-last-index.js new file mode 100644 index 0000000..9e12128 --- /dev/null +++ b/node_modules/core-js/features/instance/find-last-index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/find-last-index'); diff --git a/node_modules/core-js/features/instance/find-last.js b/node_modules/core-js/features/instance/find-last.js new file mode 100644 index 0000000..f3e952e --- /dev/null +++ b/node_modules/core-js/features/instance/find-last.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/find-last'); diff --git a/node_modules/core-js/features/instance/find.js b/node_modules/core-js/features/instance/find.js new file mode 100644 index 0000000..2b4eece --- /dev/null +++ b/node_modules/core-js/features/instance/find.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/find'); diff --git a/node_modules/core-js/features/instance/flags.js b/node_modules/core-js/features/instance/flags.js new file mode 100644 index 0000000..5d51e28 --- /dev/null +++ b/node_modules/core-js/features/instance/flags.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/flags'); diff --git a/node_modules/core-js/features/instance/flat-map.js b/node_modules/core-js/features/instance/flat-map.js new file mode 100644 index 0000000..9de4385 --- /dev/null +++ b/node_modules/core-js/features/instance/flat-map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/flat-map'); diff --git a/node_modules/core-js/features/instance/flat.js b/node_modules/core-js/features/instance/flat.js new file mode 100644 index 0000000..caceea4 --- /dev/null +++ b/node_modules/core-js/features/instance/flat.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/flat'); diff --git a/node_modules/core-js/features/instance/for-each.js b/node_modules/core-js/features/instance/for-each.js new file mode 100644 index 0000000..160548f --- /dev/null +++ b/node_modules/core-js/features/instance/for-each.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/for-each'); diff --git a/node_modules/core-js/features/instance/group-by-to-map.js b/node_modules/core-js/features/instance/group-by-to-map.js new file mode 100644 index 0000000..0a27360 --- /dev/null +++ b/node_modules/core-js/features/instance/group-by-to-map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/group-by-to-map'); diff --git a/node_modules/core-js/features/instance/group-by.js b/node_modules/core-js/features/instance/group-by.js new file mode 100644 index 0000000..fc9c9cc --- /dev/null +++ b/node_modules/core-js/features/instance/group-by.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/group-by'); diff --git a/node_modules/core-js/features/instance/group-to-map.js b/node_modules/core-js/features/instance/group-to-map.js new file mode 100644 index 0000000..010a97e --- /dev/null +++ b/node_modules/core-js/features/instance/group-to-map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/group-to-map'); diff --git a/node_modules/core-js/features/instance/group.js b/node_modules/core-js/features/instance/group.js new file mode 100644 index 0000000..4479a8a --- /dev/null +++ b/node_modules/core-js/features/instance/group.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/group'); diff --git a/node_modules/core-js/features/instance/includes.js b/node_modules/core-js/features/instance/includes.js new file mode 100644 index 0000000..845b728 --- /dev/null +++ b/node_modules/core-js/features/instance/includes.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/includes'); diff --git a/node_modules/core-js/features/instance/index-of.js b/node_modules/core-js/features/instance/index-of.js new file mode 100644 index 0000000..39d1aa0 --- /dev/null +++ b/node_modules/core-js/features/instance/index-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/index-of'); diff --git a/node_modules/core-js/features/instance/is-well-formed.js b/node_modules/core-js/features/instance/is-well-formed.js new file mode 100644 index 0000000..50253dc --- /dev/null +++ b/node_modules/core-js/features/instance/is-well-formed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/is-well-formed'); diff --git a/node_modules/core-js/features/instance/keys.js b/node_modules/core-js/features/instance/keys.js new file mode 100644 index 0000000..2def5f5 --- /dev/null +++ b/node_modules/core-js/features/instance/keys.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/keys'); diff --git a/node_modules/core-js/features/instance/last-index-of.js b/node_modules/core-js/features/instance/last-index-of.js new file mode 100644 index 0000000..03502cc --- /dev/null +++ b/node_modules/core-js/features/instance/last-index-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/last-index-of'); diff --git a/node_modules/core-js/features/instance/map.js b/node_modules/core-js/features/instance/map.js new file mode 100644 index 0000000..0108606 --- /dev/null +++ b/node_modules/core-js/features/instance/map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/map'); diff --git a/node_modules/core-js/features/instance/match-all.js b/node_modules/core-js/features/instance/match-all.js new file mode 100644 index 0000000..41dd3e4 --- /dev/null +++ b/node_modules/core-js/features/instance/match-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/match-all'); diff --git a/node_modules/core-js/features/instance/pad-end.js b/node_modules/core-js/features/instance/pad-end.js new file mode 100644 index 0000000..d7d01c5 --- /dev/null +++ b/node_modules/core-js/features/instance/pad-end.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/pad-end'); diff --git a/node_modules/core-js/features/instance/pad-start.js b/node_modules/core-js/features/instance/pad-start.js new file mode 100644 index 0000000..c96ea43 --- /dev/null +++ b/node_modules/core-js/features/instance/pad-start.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/pad-start'); diff --git a/node_modules/core-js/features/instance/push.js b/node_modules/core-js/features/instance/push.js new file mode 100644 index 0000000..3d1703f --- /dev/null +++ b/node_modules/core-js/features/instance/push.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/push'); diff --git a/node_modules/core-js/features/instance/reduce-right.js b/node_modules/core-js/features/instance/reduce-right.js new file mode 100644 index 0000000..024f17b --- /dev/null +++ b/node_modules/core-js/features/instance/reduce-right.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/reduce-right'); diff --git a/node_modules/core-js/features/instance/reduce.js b/node_modules/core-js/features/instance/reduce.js new file mode 100644 index 0000000..895fc2f --- /dev/null +++ b/node_modules/core-js/features/instance/reduce.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/reduce'); diff --git a/node_modules/core-js/features/instance/repeat.js b/node_modules/core-js/features/instance/repeat.js new file mode 100644 index 0000000..8664359 --- /dev/null +++ b/node_modules/core-js/features/instance/repeat.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/repeat'); diff --git a/node_modules/core-js/features/instance/replace-all.js b/node_modules/core-js/features/instance/replace-all.js new file mode 100644 index 0000000..9018591 --- /dev/null +++ b/node_modules/core-js/features/instance/replace-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/replace-all'); diff --git a/node_modules/core-js/features/instance/reverse.js b/node_modules/core-js/features/instance/reverse.js new file mode 100644 index 0000000..d7173ec --- /dev/null +++ b/node_modules/core-js/features/instance/reverse.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/reverse'); diff --git a/node_modules/core-js/features/instance/slice.js b/node_modules/core-js/features/instance/slice.js new file mode 100644 index 0000000..550de9b --- /dev/null +++ b/node_modules/core-js/features/instance/slice.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/slice'); diff --git a/node_modules/core-js/features/instance/some.js b/node_modules/core-js/features/instance/some.js new file mode 100644 index 0000000..a03bf9a --- /dev/null +++ b/node_modules/core-js/features/instance/some.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/some'); diff --git a/node_modules/core-js/features/instance/sort.js b/node_modules/core-js/features/instance/sort.js new file mode 100644 index 0000000..a7368e0 --- /dev/null +++ b/node_modules/core-js/features/instance/sort.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/sort'); diff --git a/node_modules/core-js/features/instance/splice.js b/node_modules/core-js/features/instance/splice.js new file mode 100644 index 0000000..0527d4f --- /dev/null +++ b/node_modules/core-js/features/instance/splice.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/splice'); diff --git a/node_modules/core-js/features/instance/starts-with.js b/node_modules/core-js/features/instance/starts-with.js new file mode 100644 index 0000000..fc41430 --- /dev/null +++ b/node_modules/core-js/features/instance/starts-with.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/starts-with'); diff --git a/node_modules/core-js/features/instance/to-reversed.js b/node_modules/core-js/features/instance/to-reversed.js new file mode 100644 index 0000000..e89a837 --- /dev/null +++ b/node_modules/core-js/features/instance/to-reversed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/to-reversed'); diff --git a/node_modules/core-js/features/instance/to-sorted.js b/node_modules/core-js/features/instance/to-sorted.js new file mode 100644 index 0000000..52d079a --- /dev/null +++ b/node_modules/core-js/features/instance/to-sorted.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/to-sorted'); diff --git a/node_modules/core-js/features/instance/to-spliced.js b/node_modules/core-js/features/instance/to-spliced.js new file mode 100644 index 0000000..bcca07d --- /dev/null +++ b/node_modules/core-js/features/instance/to-spliced.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/to-spliced'); diff --git a/node_modules/core-js/features/instance/to-well-formed.js b/node_modules/core-js/features/instance/to-well-formed.js new file mode 100644 index 0000000..b689d9f --- /dev/null +++ b/node_modules/core-js/features/instance/to-well-formed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/to-well-formed'); diff --git a/node_modules/core-js/features/instance/trim-end.js b/node_modules/core-js/features/instance/trim-end.js new file mode 100644 index 0000000..3cc7030 --- /dev/null +++ b/node_modules/core-js/features/instance/trim-end.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/trim-end'); diff --git a/node_modules/core-js/features/instance/trim-left.js b/node_modules/core-js/features/instance/trim-left.js new file mode 100644 index 0000000..212ab15 --- /dev/null +++ b/node_modules/core-js/features/instance/trim-left.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/trim-left'); diff --git a/node_modules/core-js/features/instance/trim-right.js b/node_modules/core-js/features/instance/trim-right.js new file mode 100644 index 0000000..f264fe6 --- /dev/null +++ b/node_modules/core-js/features/instance/trim-right.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/trim-right'); diff --git a/node_modules/core-js/features/instance/trim-start.js b/node_modules/core-js/features/instance/trim-start.js new file mode 100644 index 0000000..f3a64e5 --- /dev/null +++ b/node_modules/core-js/features/instance/trim-start.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/trim-start'); diff --git a/node_modules/core-js/features/instance/trim.js b/node_modules/core-js/features/instance/trim.js new file mode 100644 index 0000000..1f4c525 --- /dev/null +++ b/node_modules/core-js/features/instance/trim.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/trim'); diff --git a/node_modules/core-js/features/instance/un-this.js b/node_modules/core-js/features/instance/un-this.js new file mode 100644 index 0000000..d66d389 --- /dev/null +++ b/node_modules/core-js/features/instance/un-this.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/un-this'); diff --git a/node_modules/core-js/features/instance/unique-by.js b/node_modules/core-js/features/instance/unique-by.js new file mode 100644 index 0000000..cd88bc7 --- /dev/null +++ b/node_modules/core-js/features/instance/unique-by.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/unique-by'); diff --git a/node_modules/core-js/features/instance/unshift.js b/node_modules/core-js/features/instance/unshift.js new file mode 100644 index 0000000..e5e66aa --- /dev/null +++ b/node_modules/core-js/features/instance/unshift.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/unshift'); diff --git a/node_modules/core-js/features/instance/values.js b/node_modules/core-js/features/instance/values.js new file mode 100644 index 0000000..9052a5d --- /dev/null +++ b/node_modules/core-js/features/instance/values.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/values'); diff --git a/node_modules/core-js/features/instance/with.js b/node_modules/core-js/features/instance/with.js new file mode 100644 index 0000000..286b09d --- /dev/null +++ b/node_modules/core-js/features/instance/with.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/instance/with'); diff --git a/node_modules/core-js/features/is-iterable.js b/node_modules/core-js/features/is-iterable.js new file mode 100644 index 0000000..766bd5f --- /dev/null +++ b/node_modules/core-js/features/is-iterable.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/is-iterable'); diff --git a/node_modules/core-js/features/iterator/as-indexed-pairs.js b/node_modules/core-js/features/iterator/as-indexed-pairs.js new file mode 100644 index 0000000..9364305 --- /dev/null +++ b/node_modules/core-js/features/iterator/as-indexed-pairs.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/as-indexed-pairs'); diff --git a/node_modules/core-js/features/iterator/dispose.js b/node_modules/core-js/features/iterator/dispose.js new file mode 100644 index 0000000..fcd3539 --- /dev/null +++ b/node_modules/core-js/features/iterator/dispose.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/dispose'); diff --git a/node_modules/core-js/features/iterator/drop.js b/node_modules/core-js/features/iterator/drop.js new file mode 100644 index 0000000..bbcff35 --- /dev/null +++ b/node_modules/core-js/features/iterator/drop.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/drop'); diff --git a/node_modules/core-js/features/iterator/every.js b/node_modules/core-js/features/iterator/every.js new file mode 100644 index 0000000..ecc41f2 --- /dev/null +++ b/node_modules/core-js/features/iterator/every.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/every'); diff --git a/node_modules/core-js/features/iterator/filter.js b/node_modules/core-js/features/iterator/filter.js new file mode 100644 index 0000000..0f7c200 --- /dev/null +++ b/node_modules/core-js/features/iterator/filter.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/filter'); diff --git a/node_modules/core-js/features/iterator/find.js b/node_modules/core-js/features/iterator/find.js new file mode 100644 index 0000000..cc311fa --- /dev/null +++ b/node_modules/core-js/features/iterator/find.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/find'); diff --git a/node_modules/core-js/features/iterator/flat-map.js b/node_modules/core-js/features/iterator/flat-map.js new file mode 100644 index 0000000..a738044 --- /dev/null +++ b/node_modules/core-js/features/iterator/flat-map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/flat-map'); diff --git a/node_modules/core-js/features/iterator/for-each.js b/node_modules/core-js/features/iterator/for-each.js new file mode 100644 index 0000000..21c2f99 --- /dev/null +++ b/node_modules/core-js/features/iterator/for-each.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/for-each'); diff --git a/node_modules/core-js/features/iterator/from.js b/node_modules/core-js/features/iterator/from.js new file mode 100644 index 0000000..92d71c4 --- /dev/null +++ b/node_modules/core-js/features/iterator/from.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/from'); diff --git a/node_modules/core-js/features/iterator/index.js b/node_modules/core-js/features/iterator/index.js new file mode 100644 index 0000000..fef2b87 --- /dev/null +++ b/node_modules/core-js/features/iterator/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator'); diff --git a/node_modules/core-js/features/iterator/indexed.js b/node_modules/core-js/features/iterator/indexed.js new file mode 100644 index 0000000..e4440d0 --- /dev/null +++ b/node_modules/core-js/features/iterator/indexed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/indexed'); diff --git a/node_modules/core-js/features/iterator/map.js b/node_modules/core-js/features/iterator/map.js new file mode 100644 index 0000000..4428c6b --- /dev/null +++ b/node_modules/core-js/features/iterator/map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/map'); diff --git a/node_modules/core-js/features/iterator/range.js b/node_modules/core-js/features/iterator/range.js new file mode 100644 index 0000000..ae809a5 --- /dev/null +++ b/node_modules/core-js/features/iterator/range.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/range'); diff --git a/node_modules/core-js/features/iterator/reduce.js b/node_modules/core-js/features/iterator/reduce.js new file mode 100644 index 0000000..6e397c1 --- /dev/null +++ b/node_modules/core-js/features/iterator/reduce.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/reduce'); diff --git a/node_modules/core-js/features/iterator/some.js b/node_modules/core-js/features/iterator/some.js new file mode 100644 index 0000000..4a3b82b --- /dev/null +++ b/node_modules/core-js/features/iterator/some.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/some'); diff --git a/node_modules/core-js/features/iterator/take.js b/node_modules/core-js/features/iterator/take.js new file mode 100644 index 0000000..0f04626 --- /dev/null +++ b/node_modules/core-js/features/iterator/take.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/take'); diff --git a/node_modules/core-js/features/iterator/to-array.js b/node_modules/core-js/features/iterator/to-array.js new file mode 100644 index 0000000..fa386a0 --- /dev/null +++ b/node_modules/core-js/features/iterator/to-array.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/to-array'); diff --git a/node_modules/core-js/features/iterator/to-async.js b/node_modules/core-js/features/iterator/to-async.js new file mode 100644 index 0000000..0feb846 --- /dev/null +++ b/node_modules/core-js/features/iterator/to-async.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/iterator/to-async'); diff --git a/node_modules/core-js/features/json/index.js b/node_modules/core-js/features/json/index.js new file mode 100644 index 0000000..4148d30 --- /dev/null +++ b/node_modules/core-js/features/json/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/json'); diff --git a/node_modules/core-js/features/json/is-raw-json.js b/node_modules/core-js/features/json/is-raw-json.js new file mode 100644 index 0000000..602cee7 --- /dev/null +++ b/node_modules/core-js/features/json/is-raw-json.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/json/is-raw-json'); diff --git a/node_modules/core-js/features/json/parse.js b/node_modules/core-js/features/json/parse.js new file mode 100644 index 0000000..f65730c --- /dev/null +++ b/node_modules/core-js/features/json/parse.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/json/parse'); diff --git a/node_modules/core-js/features/json/raw-json.js b/node_modules/core-js/features/json/raw-json.js new file mode 100644 index 0000000..7b1ba01 --- /dev/null +++ b/node_modules/core-js/features/json/raw-json.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/json/raw-json'); diff --git a/node_modules/core-js/features/json/stringify.js b/node_modules/core-js/features/json/stringify.js new file mode 100644 index 0000000..026d871 --- /dev/null +++ b/node_modules/core-js/features/json/stringify.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/json/stringify'); diff --git a/node_modules/core-js/features/json/to-string-tag.js b/node_modules/core-js/features/json/to-string-tag.js new file mode 100644 index 0000000..68c5d83 --- /dev/null +++ b/node_modules/core-js/features/json/to-string-tag.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/json/to-string-tag'); diff --git a/node_modules/core-js/features/map/delete-all.js b/node_modules/core-js/features/map/delete-all.js new file mode 100644 index 0000000..a80185d --- /dev/null +++ b/node_modules/core-js/features/map/delete-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/delete-all'); diff --git a/node_modules/core-js/features/map/emplace.js b/node_modules/core-js/features/map/emplace.js new file mode 100644 index 0000000..91430cf --- /dev/null +++ b/node_modules/core-js/features/map/emplace.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/emplace'); diff --git a/node_modules/core-js/features/map/every.js b/node_modules/core-js/features/map/every.js new file mode 100644 index 0000000..f9061c0 --- /dev/null +++ b/node_modules/core-js/features/map/every.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/every'); diff --git a/node_modules/core-js/features/map/filter.js b/node_modules/core-js/features/map/filter.js new file mode 100644 index 0000000..c2e9bab --- /dev/null +++ b/node_modules/core-js/features/map/filter.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/filter'); diff --git a/node_modules/core-js/features/map/find-key.js b/node_modules/core-js/features/map/find-key.js new file mode 100644 index 0000000..f279fcd --- /dev/null +++ b/node_modules/core-js/features/map/find-key.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/find-key'); diff --git a/node_modules/core-js/features/map/find.js b/node_modules/core-js/features/map/find.js new file mode 100644 index 0000000..1e59378 --- /dev/null +++ b/node_modules/core-js/features/map/find.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/find'); diff --git a/node_modules/core-js/features/map/from.js b/node_modules/core-js/features/map/from.js new file mode 100644 index 0000000..ec52d18 --- /dev/null +++ b/node_modules/core-js/features/map/from.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/from'); diff --git a/node_modules/core-js/features/map/group-by.js b/node_modules/core-js/features/map/group-by.js new file mode 100644 index 0000000..63b9c7a --- /dev/null +++ b/node_modules/core-js/features/map/group-by.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/group-by'); diff --git a/node_modules/core-js/features/map/includes.js b/node_modules/core-js/features/map/includes.js new file mode 100644 index 0000000..fb664b9 --- /dev/null +++ b/node_modules/core-js/features/map/includes.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/includes'); diff --git a/node_modules/core-js/features/map/index.js b/node_modules/core-js/features/map/index.js new file mode 100644 index 0000000..2a8a0b9 --- /dev/null +++ b/node_modules/core-js/features/map/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map'); diff --git a/node_modules/core-js/features/map/key-by.js b/node_modules/core-js/features/map/key-by.js new file mode 100644 index 0000000..2e8ee66 --- /dev/null +++ b/node_modules/core-js/features/map/key-by.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/key-by'); diff --git a/node_modules/core-js/features/map/key-of.js b/node_modules/core-js/features/map/key-of.js new file mode 100644 index 0000000..9beb059 --- /dev/null +++ b/node_modules/core-js/features/map/key-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/key-of'); diff --git a/node_modules/core-js/features/map/map-keys.js b/node_modules/core-js/features/map/map-keys.js new file mode 100644 index 0000000..bfb33d3 --- /dev/null +++ b/node_modules/core-js/features/map/map-keys.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/map-keys'); diff --git a/node_modules/core-js/features/map/map-values.js b/node_modules/core-js/features/map/map-values.js new file mode 100644 index 0000000..2c304ce --- /dev/null +++ b/node_modules/core-js/features/map/map-values.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/map-values'); diff --git a/node_modules/core-js/features/map/merge.js b/node_modules/core-js/features/map/merge.js new file mode 100644 index 0000000..fdd5c80 --- /dev/null +++ b/node_modules/core-js/features/map/merge.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/merge'); diff --git a/node_modules/core-js/features/map/of.js b/node_modules/core-js/features/map/of.js new file mode 100644 index 0000000..d8f58a5 --- /dev/null +++ b/node_modules/core-js/features/map/of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/of'); diff --git a/node_modules/core-js/features/map/reduce.js b/node_modules/core-js/features/map/reduce.js new file mode 100644 index 0000000..e5cd5df --- /dev/null +++ b/node_modules/core-js/features/map/reduce.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/reduce'); diff --git a/node_modules/core-js/features/map/some.js b/node_modules/core-js/features/map/some.js new file mode 100644 index 0000000..2512dd2 --- /dev/null +++ b/node_modules/core-js/features/map/some.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/some'); diff --git a/node_modules/core-js/features/map/update-or-insert.js b/node_modules/core-js/features/map/update-or-insert.js new file mode 100644 index 0000000..a18ccb4 --- /dev/null +++ b/node_modules/core-js/features/map/update-or-insert.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/update-or-insert'); diff --git a/node_modules/core-js/features/map/update.js b/node_modules/core-js/features/map/update.js new file mode 100644 index 0000000..440c740 --- /dev/null +++ b/node_modules/core-js/features/map/update.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/update'); diff --git a/node_modules/core-js/features/map/upsert.js b/node_modules/core-js/features/map/upsert.js new file mode 100644 index 0000000..04ffb64 --- /dev/null +++ b/node_modules/core-js/features/map/upsert.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/map/upsert'); diff --git a/node_modules/core-js/features/math/acosh.js b/node_modules/core-js/features/math/acosh.js new file mode 100644 index 0000000..c9bfc00 --- /dev/null +++ b/node_modules/core-js/features/math/acosh.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/acosh'); diff --git a/node_modules/core-js/features/math/asinh.js b/node_modules/core-js/features/math/asinh.js new file mode 100644 index 0000000..6b9eb95 --- /dev/null +++ b/node_modules/core-js/features/math/asinh.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/asinh'); diff --git a/node_modules/core-js/features/math/atanh.js b/node_modules/core-js/features/math/atanh.js new file mode 100644 index 0000000..8217711 --- /dev/null +++ b/node_modules/core-js/features/math/atanh.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/atanh'); diff --git a/node_modules/core-js/features/math/cbrt.js b/node_modules/core-js/features/math/cbrt.js new file mode 100644 index 0000000..f9b9faa --- /dev/null +++ b/node_modules/core-js/features/math/cbrt.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/cbrt'); diff --git a/node_modules/core-js/features/math/clamp.js b/node_modules/core-js/features/math/clamp.js new file mode 100644 index 0000000..c2f8174 --- /dev/null +++ b/node_modules/core-js/features/math/clamp.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/clamp'); diff --git a/node_modules/core-js/features/math/clz32.js b/node_modules/core-js/features/math/clz32.js new file mode 100644 index 0000000..2841081 --- /dev/null +++ b/node_modules/core-js/features/math/clz32.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/clz32'); diff --git a/node_modules/core-js/features/math/cosh.js b/node_modules/core-js/features/math/cosh.js new file mode 100644 index 0000000..65e2661 --- /dev/null +++ b/node_modules/core-js/features/math/cosh.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/cosh'); diff --git a/node_modules/core-js/features/math/deg-per-rad.js b/node_modules/core-js/features/math/deg-per-rad.js new file mode 100644 index 0000000..110d845 --- /dev/null +++ b/node_modules/core-js/features/math/deg-per-rad.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/deg-per-rad'); diff --git a/node_modules/core-js/features/math/degrees.js b/node_modules/core-js/features/math/degrees.js new file mode 100644 index 0000000..76853a8 --- /dev/null +++ b/node_modules/core-js/features/math/degrees.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/degrees'); diff --git a/node_modules/core-js/features/math/expm1.js b/node_modules/core-js/features/math/expm1.js new file mode 100644 index 0000000..800178a --- /dev/null +++ b/node_modules/core-js/features/math/expm1.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/expm1'); diff --git a/node_modules/core-js/features/math/f16round.js b/node_modules/core-js/features/math/f16round.js new file mode 100644 index 0000000..ef46057 --- /dev/null +++ b/node_modules/core-js/features/math/f16round.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/f16round'); diff --git a/node_modules/core-js/features/math/fround.js b/node_modules/core-js/features/math/fround.js new file mode 100644 index 0000000..2d0ffb9 --- /dev/null +++ b/node_modules/core-js/features/math/fround.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/fround'); diff --git a/node_modules/core-js/features/math/fscale.js b/node_modules/core-js/features/math/fscale.js new file mode 100644 index 0000000..a3c810e --- /dev/null +++ b/node_modules/core-js/features/math/fscale.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/fscale'); diff --git a/node_modules/core-js/features/math/hypot.js b/node_modules/core-js/features/math/hypot.js new file mode 100644 index 0000000..440e05b --- /dev/null +++ b/node_modules/core-js/features/math/hypot.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/hypot'); diff --git a/node_modules/core-js/features/math/iaddh.js b/node_modules/core-js/features/math/iaddh.js new file mode 100644 index 0000000..41b6022 --- /dev/null +++ b/node_modules/core-js/features/math/iaddh.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/iaddh'); diff --git a/node_modules/core-js/features/math/imul.js b/node_modules/core-js/features/math/imul.js new file mode 100644 index 0000000..6ea4a59 --- /dev/null +++ b/node_modules/core-js/features/math/imul.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/imul'); diff --git a/node_modules/core-js/features/math/imulh.js b/node_modules/core-js/features/math/imulh.js new file mode 100644 index 0000000..8d3aa00 --- /dev/null +++ b/node_modules/core-js/features/math/imulh.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/imulh'); diff --git a/node_modules/core-js/features/math/index.js b/node_modules/core-js/features/math/index.js new file mode 100644 index 0000000..a81bf12 --- /dev/null +++ b/node_modules/core-js/features/math/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math'); diff --git a/node_modules/core-js/features/math/isubh.js b/node_modules/core-js/features/math/isubh.js new file mode 100644 index 0000000..230ac6d --- /dev/null +++ b/node_modules/core-js/features/math/isubh.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/isubh'); diff --git a/node_modules/core-js/features/math/log10.js b/node_modules/core-js/features/math/log10.js new file mode 100644 index 0000000..318026b --- /dev/null +++ b/node_modules/core-js/features/math/log10.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/log10'); diff --git a/node_modules/core-js/features/math/log1p.js b/node_modules/core-js/features/math/log1p.js new file mode 100644 index 0000000..6ba95b3 --- /dev/null +++ b/node_modules/core-js/features/math/log1p.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/log1p'); diff --git a/node_modules/core-js/features/math/log2.js b/node_modules/core-js/features/math/log2.js new file mode 100644 index 0000000..5864670 --- /dev/null +++ b/node_modules/core-js/features/math/log2.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/log2'); diff --git a/node_modules/core-js/features/math/rad-per-deg.js b/node_modules/core-js/features/math/rad-per-deg.js new file mode 100644 index 0000000..5835603 --- /dev/null +++ b/node_modules/core-js/features/math/rad-per-deg.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/rad-per-deg'); diff --git a/node_modules/core-js/features/math/radians.js b/node_modules/core-js/features/math/radians.js new file mode 100644 index 0000000..24b0d60 --- /dev/null +++ b/node_modules/core-js/features/math/radians.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/radians'); diff --git a/node_modules/core-js/features/math/scale.js b/node_modules/core-js/features/math/scale.js new file mode 100644 index 0000000..5ab06d2 --- /dev/null +++ b/node_modules/core-js/features/math/scale.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/scale'); diff --git a/node_modules/core-js/features/math/seeded-prng.js b/node_modules/core-js/features/math/seeded-prng.js new file mode 100644 index 0000000..2974ed0 --- /dev/null +++ b/node_modules/core-js/features/math/seeded-prng.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/seeded-prng'); diff --git a/node_modules/core-js/features/math/sign.js b/node_modules/core-js/features/math/sign.js new file mode 100644 index 0000000..f7d2f5b --- /dev/null +++ b/node_modules/core-js/features/math/sign.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/sign'); diff --git a/node_modules/core-js/features/math/signbit.js b/node_modules/core-js/features/math/signbit.js new file mode 100644 index 0000000..04d90f3 --- /dev/null +++ b/node_modules/core-js/features/math/signbit.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/signbit'); diff --git a/node_modules/core-js/features/math/sinh.js b/node_modules/core-js/features/math/sinh.js new file mode 100644 index 0000000..efa726f --- /dev/null +++ b/node_modules/core-js/features/math/sinh.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/sinh'); diff --git a/node_modules/core-js/features/math/sum-precise.js b/node_modules/core-js/features/math/sum-precise.js new file mode 100644 index 0000000..9b97747 --- /dev/null +++ b/node_modules/core-js/features/math/sum-precise.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/sum-precise'); diff --git a/node_modules/core-js/features/math/tanh.js b/node_modules/core-js/features/math/tanh.js new file mode 100644 index 0000000..64b2af9 --- /dev/null +++ b/node_modules/core-js/features/math/tanh.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/tanh'); diff --git a/node_modules/core-js/features/math/to-string-tag.js b/node_modules/core-js/features/math/to-string-tag.js new file mode 100644 index 0000000..1e098bc --- /dev/null +++ b/node_modules/core-js/features/math/to-string-tag.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/to-string-tag'); diff --git a/node_modules/core-js/features/math/trunc.js b/node_modules/core-js/features/math/trunc.js new file mode 100644 index 0000000..5e0503e --- /dev/null +++ b/node_modules/core-js/features/math/trunc.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/trunc'); diff --git a/node_modules/core-js/features/math/umulh.js b/node_modules/core-js/features/math/umulh.js new file mode 100644 index 0000000..a75cfb2 --- /dev/null +++ b/node_modules/core-js/features/math/umulh.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/math/umulh'); diff --git a/node_modules/core-js/features/number/constructor.js b/node_modules/core-js/features/number/constructor.js new file mode 100644 index 0000000..c8b7fd2 --- /dev/null +++ b/node_modules/core-js/features/number/constructor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/constructor'); diff --git a/node_modules/core-js/features/number/epsilon.js b/node_modules/core-js/features/number/epsilon.js new file mode 100644 index 0000000..3ef9388 --- /dev/null +++ b/node_modules/core-js/features/number/epsilon.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/epsilon'); diff --git a/node_modules/core-js/features/number/from-string.js b/node_modules/core-js/features/number/from-string.js new file mode 100644 index 0000000..94449dc --- /dev/null +++ b/node_modules/core-js/features/number/from-string.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/from-string'); diff --git a/node_modules/core-js/features/number/index.js b/node_modules/core-js/features/number/index.js new file mode 100644 index 0000000..cc284ab --- /dev/null +++ b/node_modules/core-js/features/number/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number'); diff --git a/node_modules/core-js/features/number/is-finite.js b/node_modules/core-js/features/number/is-finite.js new file mode 100644 index 0000000..6b4d686 --- /dev/null +++ b/node_modules/core-js/features/number/is-finite.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/is-finite'); diff --git a/node_modules/core-js/features/number/is-integer.js b/node_modules/core-js/features/number/is-integer.js new file mode 100644 index 0000000..875de43 --- /dev/null +++ b/node_modules/core-js/features/number/is-integer.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/is-integer'); diff --git a/node_modules/core-js/features/number/is-nan.js b/node_modules/core-js/features/number/is-nan.js new file mode 100644 index 0000000..3d04b6c --- /dev/null +++ b/node_modules/core-js/features/number/is-nan.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/is-nan'); diff --git a/node_modules/core-js/features/number/is-safe-integer.js b/node_modules/core-js/features/number/is-safe-integer.js new file mode 100644 index 0000000..80138ab --- /dev/null +++ b/node_modules/core-js/features/number/is-safe-integer.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/is-safe-integer'); diff --git a/node_modules/core-js/features/number/max-safe-integer.js b/node_modules/core-js/features/number/max-safe-integer.js new file mode 100644 index 0000000..f197c19 --- /dev/null +++ b/node_modules/core-js/features/number/max-safe-integer.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/max-safe-integer'); diff --git a/node_modules/core-js/features/number/min-safe-integer.js b/node_modules/core-js/features/number/min-safe-integer.js new file mode 100644 index 0000000..eb2f1cc --- /dev/null +++ b/node_modules/core-js/features/number/min-safe-integer.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/min-safe-integer'); diff --git a/node_modules/core-js/features/number/parse-float.js b/node_modules/core-js/features/number/parse-float.js new file mode 100644 index 0000000..f7a26ad --- /dev/null +++ b/node_modules/core-js/features/number/parse-float.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/parse-float'); diff --git a/node_modules/core-js/features/number/parse-int.js b/node_modules/core-js/features/number/parse-int.js new file mode 100644 index 0000000..7386793 --- /dev/null +++ b/node_modules/core-js/features/number/parse-int.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/parse-int'); diff --git a/node_modules/core-js/features/number/range.js b/node_modules/core-js/features/number/range.js new file mode 100644 index 0000000..baaff2d --- /dev/null +++ b/node_modules/core-js/features/number/range.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/range'); diff --git a/node_modules/core-js/features/number/to-exponential.js b/node_modules/core-js/features/number/to-exponential.js new file mode 100644 index 0000000..d43a5cb --- /dev/null +++ b/node_modules/core-js/features/number/to-exponential.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/to-exponential'); diff --git a/node_modules/core-js/features/number/to-fixed.js b/node_modules/core-js/features/number/to-fixed.js new file mode 100644 index 0000000..2bfde18 --- /dev/null +++ b/node_modules/core-js/features/number/to-fixed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/to-fixed'); diff --git a/node_modules/core-js/features/number/to-precision.js b/node_modules/core-js/features/number/to-precision.js new file mode 100644 index 0000000..7b11461 --- /dev/null +++ b/node_modules/core-js/features/number/to-precision.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/number/to-precision'); diff --git a/node_modules/core-js/features/number/virtual/index.js b/node_modules/core-js/features/number/virtual/index.js new file mode 100644 index 0000000..ecbe682 --- /dev/null +++ b/node_modules/core-js/features/number/virtual/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/number/virtual'); diff --git a/node_modules/core-js/features/number/virtual/to-exponential.js b/node_modules/core-js/features/number/virtual/to-exponential.js new file mode 100644 index 0000000..cfea35c --- /dev/null +++ b/node_modules/core-js/features/number/virtual/to-exponential.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/number/virtual/to-exponential'); diff --git a/node_modules/core-js/features/number/virtual/to-fixed.js b/node_modules/core-js/features/number/virtual/to-fixed.js new file mode 100644 index 0000000..1189dde --- /dev/null +++ b/node_modules/core-js/features/number/virtual/to-fixed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/number/virtual/to-fixed'); diff --git a/node_modules/core-js/features/number/virtual/to-precision.js b/node_modules/core-js/features/number/virtual/to-precision.js new file mode 100644 index 0000000..ae1ecf0 --- /dev/null +++ b/node_modules/core-js/features/number/virtual/to-precision.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/number/virtual/to-precision'); diff --git a/node_modules/core-js/features/object/assign.js b/node_modules/core-js/features/object/assign.js new file mode 100644 index 0000000..5683ee5 --- /dev/null +++ b/node_modules/core-js/features/object/assign.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/assign'); diff --git a/node_modules/core-js/features/object/create.js b/node_modules/core-js/features/object/create.js new file mode 100644 index 0000000..64219ba --- /dev/null +++ b/node_modules/core-js/features/object/create.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/create'); diff --git a/node_modules/core-js/features/object/define-getter.js b/node_modules/core-js/features/object/define-getter.js new file mode 100644 index 0000000..ca4f069 --- /dev/null +++ b/node_modules/core-js/features/object/define-getter.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/define-getter'); diff --git a/node_modules/core-js/features/object/define-properties.js b/node_modules/core-js/features/object/define-properties.js new file mode 100644 index 0000000..9304e18 --- /dev/null +++ b/node_modules/core-js/features/object/define-properties.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/define-properties'); diff --git a/node_modules/core-js/features/object/define-property.js b/node_modules/core-js/features/object/define-property.js new file mode 100644 index 0000000..73e600e --- /dev/null +++ b/node_modules/core-js/features/object/define-property.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/define-property'); diff --git a/node_modules/core-js/features/object/define-setter.js b/node_modules/core-js/features/object/define-setter.js new file mode 100644 index 0000000..433c6db --- /dev/null +++ b/node_modules/core-js/features/object/define-setter.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/define-setter'); diff --git a/node_modules/core-js/features/object/entries.js b/node_modules/core-js/features/object/entries.js new file mode 100644 index 0000000..571de8a --- /dev/null +++ b/node_modules/core-js/features/object/entries.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/entries'); diff --git a/node_modules/core-js/features/object/freeze.js b/node_modules/core-js/features/object/freeze.js new file mode 100644 index 0000000..16498eb --- /dev/null +++ b/node_modules/core-js/features/object/freeze.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/freeze'); diff --git a/node_modules/core-js/features/object/from-entries.js b/node_modules/core-js/features/object/from-entries.js new file mode 100644 index 0000000..ba13c50 --- /dev/null +++ b/node_modules/core-js/features/object/from-entries.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/from-entries'); diff --git a/node_modules/core-js/features/object/get-own-property-descriptor.js b/node_modules/core-js/features/object/get-own-property-descriptor.js new file mode 100644 index 0000000..8830ad1 --- /dev/null +++ b/node_modules/core-js/features/object/get-own-property-descriptor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/get-own-property-descriptor'); diff --git a/node_modules/core-js/features/object/get-own-property-descriptors.js b/node_modules/core-js/features/object/get-own-property-descriptors.js new file mode 100644 index 0000000..387f6ba --- /dev/null +++ b/node_modules/core-js/features/object/get-own-property-descriptors.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/get-own-property-descriptors'); diff --git a/node_modules/core-js/features/object/get-own-property-names.js b/node_modules/core-js/features/object/get-own-property-names.js new file mode 100644 index 0000000..908d1bc --- /dev/null +++ b/node_modules/core-js/features/object/get-own-property-names.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/get-own-property-names'); diff --git a/node_modules/core-js/features/object/get-own-property-symbols.js b/node_modules/core-js/features/object/get-own-property-symbols.js new file mode 100644 index 0000000..5c07b43 --- /dev/null +++ b/node_modules/core-js/features/object/get-own-property-symbols.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/get-own-property-symbols'); diff --git a/node_modules/core-js/features/object/get-prototype-of.js b/node_modules/core-js/features/object/get-prototype-of.js new file mode 100644 index 0000000..42892a9 --- /dev/null +++ b/node_modules/core-js/features/object/get-prototype-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/get-prototype-of'); diff --git a/node_modules/core-js/features/object/group-by.js b/node_modules/core-js/features/object/group-by.js new file mode 100644 index 0000000..0453c41 --- /dev/null +++ b/node_modules/core-js/features/object/group-by.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/group-by'); diff --git a/node_modules/core-js/features/object/has-own.js b/node_modules/core-js/features/object/has-own.js new file mode 100644 index 0000000..54f123a --- /dev/null +++ b/node_modules/core-js/features/object/has-own.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/has-own'); diff --git a/node_modules/core-js/features/object/index.js b/node_modules/core-js/features/object/index.js new file mode 100644 index 0000000..5c340fa --- /dev/null +++ b/node_modules/core-js/features/object/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object'); diff --git a/node_modules/core-js/features/object/is-extensible.js b/node_modules/core-js/features/object/is-extensible.js new file mode 100644 index 0000000..9c5cf71 --- /dev/null +++ b/node_modules/core-js/features/object/is-extensible.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/is-extensible'); diff --git a/node_modules/core-js/features/object/is-frozen.js b/node_modules/core-js/features/object/is-frozen.js new file mode 100644 index 0000000..5b55ff2 --- /dev/null +++ b/node_modules/core-js/features/object/is-frozen.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/is-frozen'); diff --git a/node_modules/core-js/features/object/is-sealed.js b/node_modules/core-js/features/object/is-sealed.js new file mode 100644 index 0000000..ca9b6d5 --- /dev/null +++ b/node_modules/core-js/features/object/is-sealed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/is-sealed'); diff --git a/node_modules/core-js/features/object/is.js b/node_modules/core-js/features/object/is.js new file mode 100644 index 0000000..3c1cc37 --- /dev/null +++ b/node_modules/core-js/features/object/is.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/is'); diff --git a/node_modules/core-js/features/object/iterate-entries.js b/node_modules/core-js/features/object/iterate-entries.js new file mode 100644 index 0000000..9062fd9 --- /dev/null +++ b/node_modules/core-js/features/object/iterate-entries.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/iterate-entries'); diff --git a/node_modules/core-js/features/object/iterate-keys.js b/node_modules/core-js/features/object/iterate-keys.js new file mode 100644 index 0000000..399bf68 --- /dev/null +++ b/node_modules/core-js/features/object/iterate-keys.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/iterate-keys'); diff --git a/node_modules/core-js/features/object/iterate-values.js b/node_modules/core-js/features/object/iterate-values.js new file mode 100644 index 0000000..9071119 --- /dev/null +++ b/node_modules/core-js/features/object/iterate-values.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/iterate-values'); diff --git a/node_modules/core-js/features/object/keys.js b/node_modules/core-js/features/object/keys.js new file mode 100644 index 0000000..96c50aa --- /dev/null +++ b/node_modules/core-js/features/object/keys.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/keys'); diff --git a/node_modules/core-js/features/object/lookup-getter.js b/node_modules/core-js/features/object/lookup-getter.js new file mode 100644 index 0000000..adb1c5f --- /dev/null +++ b/node_modules/core-js/features/object/lookup-getter.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/lookup-getter'); diff --git a/node_modules/core-js/features/object/lookup-setter.js b/node_modules/core-js/features/object/lookup-setter.js new file mode 100644 index 0000000..2f5f762 --- /dev/null +++ b/node_modules/core-js/features/object/lookup-setter.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/lookup-setter'); diff --git a/node_modules/core-js/features/object/prevent-extensions.js b/node_modules/core-js/features/object/prevent-extensions.js new file mode 100644 index 0000000..82d6ec6 --- /dev/null +++ b/node_modules/core-js/features/object/prevent-extensions.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/prevent-extensions'); diff --git a/node_modules/core-js/features/object/proto.js b/node_modules/core-js/features/object/proto.js new file mode 100644 index 0000000..19d734a --- /dev/null +++ b/node_modules/core-js/features/object/proto.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/proto'); diff --git a/node_modules/core-js/features/object/seal.js b/node_modules/core-js/features/object/seal.js new file mode 100644 index 0000000..938fdea --- /dev/null +++ b/node_modules/core-js/features/object/seal.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/seal'); diff --git a/node_modules/core-js/features/object/set-prototype-of.js b/node_modules/core-js/features/object/set-prototype-of.js new file mode 100644 index 0000000..c675249 --- /dev/null +++ b/node_modules/core-js/features/object/set-prototype-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/set-prototype-of'); diff --git a/node_modules/core-js/features/object/to-string.js b/node_modules/core-js/features/object/to-string.js new file mode 100644 index 0000000..dfe3d9a --- /dev/null +++ b/node_modules/core-js/features/object/to-string.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/to-string'); diff --git a/node_modules/core-js/features/object/values.js b/node_modules/core-js/features/object/values.js new file mode 100644 index 0000000..a24b011 --- /dev/null +++ b/node_modules/core-js/features/object/values.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/object/values'); diff --git a/node_modules/core-js/features/observable/index.js b/node_modules/core-js/features/observable/index.js new file mode 100644 index 0000000..8a6a134 --- /dev/null +++ b/node_modules/core-js/features/observable/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/observable'); diff --git a/node_modules/core-js/features/parse-float.js b/node_modules/core-js/features/parse-float.js new file mode 100644 index 0000000..c4f9729 --- /dev/null +++ b/node_modules/core-js/features/parse-float.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/parse-float'); diff --git a/node_modules/core-js/features/parse-int.js b/node_modules/core-js/features/parse-int.js new file mode 100644 index 0000000..ed5510f --- /dev/null +++ b/node_modules/core-js/features/parse-int.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/parse-int'); diff --git a/node_modules/core-js/features/promise/all-settled.js b/node_modules/core-js/features/promise/all-settled.js new file mode 100644 index 0000000..4a11ad8 --- /dev/null +++ b/node_modules/core-js/features/promise/all-settled.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/promise/all-settled'); diff --git a/node_modules/core-js/features/promise/any.js b/node_modules/core-js/features/promise/any.js new file mode 100644 index 0000000..8aca210 --- /dev/null +++ b/node_modules/core-js/features/promise/any.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/promise/any'); diff --git a/node_modules/core-js/features/promise/finally.js b/node_modules/core-js/features/promise/finally.js new file mode 100644 index 0000000..597665b --- /dev/null +++ b/node_modules/core-js/features/promise/finally.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/promise/finally'); diff --git a/node_modules/core-js/features/promise/index.js b/node_modules/core-js/features/promise/index.js new file mode 100644 index 0000000..087ef05 --- /dev/null +++ b/node_modules/core-js/features/promise/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/promise'); diff --git a/node_modules/core-js/features/promise/try.js b/node_modules/core-js/features/promise/try.js new file mode 100644 index 0000000..51e03f3 --- /dev/null +++ b/node_modules/core-js/features/promise/try.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/promise/try'); diff --git a/node_modules/core-js/features/promise/with-resolvers.js b/node_modules/core-js/features/promise/with-resolvers.js new file mode 100644 index 0000000..d605d92 --- /dev/null +++ b/node_modules/core-js/features/promise/with-resolvers.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/promise/with-resolvers'); diff --git a/node_modules/core-js/features/queue-microtask.js b/node_modules/core-js/features/queue-microtask.js new file mode 100644 index 0000000..2eba40c --- /dev/null +++ b/node_modules/core-js/features/queue-microtask.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/queue-microtask'); diff --git a/node_modules/core-js/features/reflect/apply.js b/node_modules/core-js/features/reflect/apply.js new file mode 100644 index 0000000..91bd4b7 --- /dev/null +++ b/node_modules/core-js/features/reflect/apply.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/apply'); diff --git a/node_modules/core-js/features/reflect/construct.js b/node_modules/core-js/features/reflect/construct.js new file mode 100644 index 0000000..0cac364 --- /dev/null +++ b/node_modules/core-js/features/reflect/construct.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/construct'); diff --git a/node_modules/core-js/features/reflect/define-metadata.js b/node_modules/core-js/features/reflect/define-metadata.js new file mode 100644 index 0000000..ebae09e --- /dev/null +++ b/node_modules/core-js/features/reflect/define-metadata.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/define-metadata'); diff --git a/node_modules/core-js/features/reflect/define-property.js b/node_modules/core-js/features/reflect/define-property.js new file mode 100644 index 0000000..4505faa --- /dev/null +++ b/node_modules/core-js/features/reflect/define-property.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/define-property'); diff --git a/node_modules/core-js/features/reflect/delete-metadata.js b/node_modules/core-js/features/reflect/delete-metadata.js new file mode 100644 index 0000000..a7a5de5 --- /dev/null +++ b/node_modules/core-js/features/reflect/delete-metadata.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/delete-metadata'); diff --git a/node_modules/core-js/features/reflect/delete-property.js b/node_modules/core-js/features/reflect/delete-property.js new file mode 100644 index 0000000..30f0bcb --- /dev/null +++ b/node_modules/core-js/features/reflect/delete-property.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/delete-property'); diff --git a/node_modules/core-js/features/reflect/get-metadata-keys.js b/node_modules/core-js/features/reflect/get-metadata-keys.js new file mode 100644 index 0000000..ddb8096 --- /dev/null +++ b/node_modules/core-js/features/reflect/get-metadata-keys.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/get-metadata-keys'); diff --git a/node_modules/core-js/features/reflect/get-metadata.js b/node_modules/core-js/features/reflect/get-metadata.js new file mode 100644 index 0000000..df1a505 --- /dev/null +++ b/node_modules/core-js/features/reflect/get-metadata.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/get-metadata'); diff --git a/node_modules/core-js/features/reflect/get-own-metadata-keys.js b/node_modules/core-js/features/reflect/get-own-metadata-keys.js new file mode 100644 index 0000000..900520a --- /dev/null +++ b/node_modules/core-js/features/reflect/get-own-metadata-keys.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/get-own-metadata-keys'); diff --git a/node_modules/core-js/features/reflect/get-own-metadata.js b/node_modules/core-js/features/reflect/get-own-metadata.js new file mode 100644 index 0000000..4a57ec5 --- /dev/null +++ b/node_modules/core-js/features/reflect/get-own-metadata.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/get-own-metadata'); diff --git a/node_modules/core-js/features/reflect/get-own-property-descriptor.js b/node_modules/core-js/features/reflect/get-own-property-descriptor.js new file mode 100644 index 0000000..3762167 --- /dev/null +++ b/node_modules/core-js/features/reflect/get-own-property-descriptor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/get-own-property-descriptor'); diff --git a/node_modules/core-js/features/reflect/get-prototype-of.js b/node_modules/core-js/features/reflect/get-prototype-of.js new file mode 100644 index 0000000..e9e5ccc --- /dev/null +++ b/node_modules/core-js/features/reflect/get-prototype-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/get-prototype-of'); diff --git a/node_modules/core-js/features/reflect/get.js b/node_modules/core-js/features/reflect/get.js new file mode 100644 index 0000000..208ac21 --- /dev/null +++ b/node_modules/core-js/features/reflect/get.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/get'); diff --git a/node_modules/core-js/features/reflect/has-metadata.js b/node_modules/core-js/features/reflect/has-metadata.js new file mode 100644 index 0000000..4672bb1 --- /dev/null +++ b/node_modules/core-js/features/reflect/has-metadata.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/has-metadata'); diff --git a/node_modules/core-js/features/reflect/has-own-metadata.js b/node_modules/core-js/features/reflect/has-own-metadata.js new file mode 100644 index 0000000..312bbcd --- /dev/null +++ b/node_modules/core-js/features/reflect/has-own-metadata.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/has-own-metadata'); diff --git a/node_modules/core-js/features/reflect/has.js b/node_modules/core-js/features/reflect/has.js new file mode 100644 index 0000000..cce123e --- /dev/null +++ b/node_modules/core-js/features/reflect/has.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/has'); diff --git a/node_modules/core-js/features/reflect/index.js b/node_modules/core-js/features/reflect/index.js new file mode 100644 index 0000000..71c2937 --- /dev/null +++ b/node_modules/core-js/features/reflect/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect'); diff --git a/node_modules/core-js/features/reflect/is-extensible.js b/node_modules/core-js/features/reflect/is-extensible.js new file mode 100644 index 0000000..0505e0d --- /dev/null +++ b/node_modules/core-js/features/reflect/is-extensible.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/is-extensible'); diff --git a/node_modules/core-js/features/reflect/metadata.js b/node_modules/core-js/features/reflect/metadata.js new file mode 100644 index 0000000..0be9239 --- /dev/null +++ b/node_modules/core-js/features/reflect/metadata.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/metadata'); diff --git a/node_modules/core-js/features/reflect/own-keys.js b/node_modules/core-js/features/reflect/own-keys.js new file mode 100644 index 0000000..92abc14 --- /dev/null +++ b/node_modules/core-js/features/reflect/own-keys.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/own-keys'); diff --git a/node_modules/core-js/features/reflect/prevent-extensions.js b/node_modules/core-js/features/reflect/prevent-extensions.js new file mode 100644 index 0000000..2ff709a --- /dev/null +++ b/node_modules/core-js/features/reflect/prevent-extensions.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/prevent-extensions'); diff --git a/node_modules/core-js/features/reflect/set-prototype-of.js b/node_modules/core-js/features/reflect/set-prototype-of.js new file mode 100644 index 0000000..0de0f6f --- /dev/null +++ b/node_modules/core-js/features/reflect/set-prototype-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/set-prototype-of'); diff --git a/node_modules/core-js/features/reflect/set.js b/node_modules/core-js/features/reflect/set.js new file mode 100644 index 0000000..64d2f25 --- /dev/null +++ b/node_modules/core-js/features/reflect/set.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/set'); diff --git a/node_modules/core-js/features/reflect/to-string-tag.js b/node_modules/core-js/features/reflect/to-string-tag.js new file mode 100644 index 0000000..8025077 --- /dev/null +++ b/node_modules/core-js/features/reflect/to-string-tag.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/reflect/to-string-tag'); diff --git a/node_modules/core-js/features/regexp/constructor.js b/node_modules/core-js/features/regexp/constructor.js new file mode 100644 index 0000000..4ebcde9 --- /dev/null +++ b/node_modules/core-js/features/regexp/constructor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/regexp/constructor'); diff --git a/node_modules/core-js/features/regexp/dot-all.js b/node_modules/core-js/features/regexp/dot-all.js new file mode 100644 index 0000000..54e2001 --- /dev/null +++ b/node_modules/core-js/features/regexp/dot-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/regexp/dot-all'); diff --git a/node_modules/core-js/features/regexp/escape.js b/node_modules/core-js/features/regexp/escape.js new file mode 100644 index 0000000..49cff6e --- /dev/null +++ b/node_modules/core-js/features/regexp/escape.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/regexp/escape'); diff --git a/node_modules/core-js/features/regexp/flags.js b/node_modules/core-js/features/regexp/flags.js new file mode 100644 index 0000000..7f42d4c --- /dev/null +++ b/node_modules/core-js/features/regexp/flags.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/regexp/flags'); diff --git a/node_modules/core-js/features/regexp/index.js b/node_modules/core-js/features/regexp/index.js new file mode 100644 index 0000000..c0ac4a6 --- /dev/null +++ b/node_modules/core-js/features/regexp/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/regexp'); diff --git a/node_modules/core-js/features/regexp/match.js b/node_modules/core-js/features/regexp/match.js new file mode 100644 index 0000000..ee1ff23 --- /dev/null +++ b/node_modules/core-js/features/regexp/match.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/regexp/match'); diff --git a/node_modules/core-js/features/regexp/replace.js b/node_modules/core-js/features/regexp/replace.js new file mode 100644 index 0000000..ec82d10 --- /dev/null +++ b/node_modules/core-js/features/regexp/replace.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/regexp/replace'); diff --git a/node_modules/core-js/features/regexp/search.js b/node_modules/core-js/features/regexp/search.js new file mode 100644 index 0000000..81bf05a --- /dev/null +++ b/node_modules/core-js/features/regexp/search.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/regexp/search'); diff --git a/node_modules/core-js/features/regexp/split.js b/node_modules/core-js/features/regexp/split.js new file mode 100644 index 0000000..de101d1 --- /dev/null +++ b/node_modules/core-js/features/regexp/split.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/regexp/split'); diff --git a/node_modules/core-js/features/regexp/sticky.js b/node_modules/core-js/features/regexp/sticky.js new file mode 100644 index 0000000..a126677 --- /dev/null +++ b/node_modules/core-js/features/regexp/sticky.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/regexp/sticky'); diff --git a/node_modules/core-js/features/regexp/test.js b/node_modules/core-js/features/regexp/test.js new file mode 100644 index 0000000..4a71272 --- /dev/null +++ b/node_modules/core-js/features/regexp/test.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/regexp/test'); diff --git a/node_modules/core-js/features/regexp/to-string.js b/node_modules/core-js/features/regexp/to-string.js new file mode 100644 index 0000000..231dd7f --- /dev/null +++ b/node_modules/core-js/features/regexp/to-string.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/regexp/to-string'); diff --git a/node_modules/core-js/features/self.js b/node_modules/core-js/features/self.js new file mode 100644 index 0000000..8d6cc48 --- /dev/null +++ b/node_modules/core-js/features/self.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/self'); diff --git a/node_modules/core-js/features/set-immediate.js b/node_modules/core-js/features/set-immediate.js new file mode 100644 index 0000000..596f174 --- /dev/null +++ b/node_modules/core-js/features/set-immediate.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/set-immediate'); diff --git a/node_modules/core-js/features/set-interval.js b/node_modules/core-js/features/set-interval.js new file mode 100644 index 0000000..87f9063 --- /dev/null +++ b/node_modules/core-js/features/set-interval.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/set-interval'); diff --git a/node_modules/core-js/features/set-timeout.js b/node_modules/core-js/features/set-timeout.js new file mode 100644 index 0000000..572fe7c --- /dev/null +++ b/node_modules/core-js/features/set-timeout.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/set-timeout'); diff --git a/node_modules/core-js/features/set/add-all.js b/node_modules/core-js/features/set/add-all.js new file mode 100644 index 0000000..9483e5e --- /dev/null +++ b/node_modules/core-js/features/set/add-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/add-all'); diff --git a/node_modules/core-js/features/set/delete-all.js b/node_modules/core-js/features/set/delete-all.js new file mode 100644 index 0000000..bbc2a2d --- /dev/null +++ b/node_modules/core-js/features/set/delete-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/delete-all'); diff --git a/node_modules/core-js/features/set/difference.js b/node_modules/core-js/features/set/difference.js new file mode 100644 index 0000000..bd086a8 --- /dev/null +++ b/node_modules/core-js/features/set/difference.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/difference'); diff --git a/node_modules/core-js/features/set/every.js b/node_modules/core-js/features/set/every.js new file mode 100644 index 0000000..ee6f35a --- /dev/null +++ b/node_modules/core-js/features/set/every.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/every'); diff --git a/node_modules/core-js/features/set/filter.js b/node_modules/core-js/features/set/filter.js new file mode 100644 index 0000000..9f15da0 --- /dev/null +++ b/node_modules/core-js/features/set/filter.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/filter'); diff --git a/node_modules/core-js/features/set/find.js b/node_modules/core-js/features/set/find.js new file mode 100644 index 0000000..d3345d5 --- /dev/null +++ b/node_modules/core-js/features/set/find.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/find'); diff --git a/node_modules/core-js/features/set/from.js b/node_modules/core-js/features/set/from.js new file mode 100644 index 0000000..fcf53c4 --- /dev/null +++ b/node_modules/core-js/features/set/from.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/from'); diff --git a/node_modules/core-js/features/set/index.js b/node_modules/core-js/features/set/index.js new file mode 100644 index 0000000..b014ccf --- /dev/null +++ b/node_modules/core-js/features/set/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set'); diff --git a/node_modules/core-js/features/set/intersection.js b/node_modules/core-js/features/set/intersection.js new file mode 100644 index 0000000..013eccf --- /dev/null +++ b/node_modules/core-js/features/set/intersection.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/intersection'); diff --git a/node_modules/core-js/features/set/is-disjoint-from.js b/node_modules/core-js/features/set/is-disjoint-from.js new file mode 100644 index 0000000..45b1726 --- /dev/null +++ b/node_modules/core-js/features/set/is-disjoint-from.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/is-disjoint-from'); diff --git a/node_modules/core-js/features/set/is-subset-of.js b/node_modules/core-js/features/set/is-subset-of.js new file mode 100644 index 0000000..0276665 --- /dev/null +++ b/node_modules/core-js/features/set/is-subset-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/is-subset-of'); diff --git a/node_modules/core-js/features/set/is-superset-of.js b/node_modules/core-js/features/set/is-superset-of.js new file mode 100644 index 0000000..d90cf53 --- /dev/null +++ b/node_modules/core-js/features/set/is-superset-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/is-superset-of'); diff --git a/node_modules/core-js/features/set/join.js b/node_modules/core-js/features/set/join.js new file mode 100644 index 0000000..74be35e --- /dev/null +++ b/node_modules/core-js/features/set/join.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/join'); diff --git a/node_modules/core-js/features/set/map.js b/node_modules/core-js/features/set/map.js new file mode 100644 index 0000000..4a8d431 --- /dev/null +++ b/node_modules/core-js/features/set/map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/map'); diff --git a/node_modules/core-js/features/set/of.js b/node_modules/core-js/features/set/of.js new file mode 100644 index 0000000..07c4b51 --- /dev/null +++ b/node_modules/core-js/features/set/of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/of'); diff --git a/node_modules/core-js/features/set/reduce.js b/node_modules/core-js/features/set/reduce.js new file mode 100644 index 0000000..9a91617 --- /dev/null +++ b/node_modules/core-js/features/set/reduce.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/reduce'); diff --git a/node_modules/core-js/features/set/some.js b/node_modules/core-js/features/set/some.js new file mode 100644 index 0000000..cf445d5 --- /dev/null +++ b/node_modules/core-js/features/set/some.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/some'); diff --git a/node_modules/core-js/features/set/symmetric-difference.js b/node_modules/core-js/features/set/symmetric-difference.js new file mode 100644 index 0000000..66dbeb3 --- /dev/null +++ b/node_modules/core-js/features/set/symmetric-difference.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/symmetric-difference'); diff --git a/node_modules/core-js/features/set/union.js b/node_modules/core-js/features/set/union.js new file mode 100644 index 0000000..56b88c7 --- /dev/null +++ b/node_modules/core-js/features/set/union.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/set/union'); diff --git a/node_modules/core-js/features/string/anchor.js b/node_modules/core-js/features/string/anchor.js new file mode 100644 index 0000000..e319c4c --- /dev/null +++ b/node_modules/core-js/features/string/anchor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/anchor'); diff --git a/node_modules/core-js/features/string/at.js b/node_modules/core-js/features/string/at.js new file mode 100644 index 0000000..f052a4b --- /dev/null +++ b/node_modules/core-js/features/string/at.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/at'); diff --git a/node_modules/core-js/features/string/big.js b/node_modules/core-js/features/string/big.js new file mode 100644 index 0000000..25db1cd --- /dev/null +++ b/node_modules/core-js/features/string/big.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/big'); diff --git a/node_modules/core-js/features/string/blink.js b/node_modules/core-js/features/string/blink.js new file mode 100644 index 0000000..198acfb --- /dev/null +++ b/node_modules/core-js/features/string/blink.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/blink'); diff --git a/node_modules/core-js/features/string/bold.js b/node_modules/core-js/features/string/bold.js new file mode 100644 index 0000000..12e3a98 --- /dev/null +++ b/node_modules/core-js/features/string/bold.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/bold'); diff --git a/node_modules/core-js/features/string/code-point-at.js b/node_modules/core-js/features/string/code-point-at.js new file mode 100644 index 0000000..21a1efc --- /dev/null +++ b/node_modules/core-js/features/string/code-point-at.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/code-point-at'); diff --git a/node_modules/core-js/features/string/code-points.js b/node_modules/core-js/features/string/code-points.js new file mode 100644 index 0000000..aa721d7 --- /dev/null +++ b/node_modules/core-js/features/string/code-points.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/code-points'); diff --git a/node_modules/core-js/features/string/cooked.js b/node_modules/core-js/features/string/cooked.js new file mode 100644 index 0000000..cc7d80b --- /dev/null +++ b/node_modules/core-js/features/string/cooked.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/cooked'); diff --git a/node_modules/core-js/features/string/dedent.js b/node_modules/core-js/features/string/dedent.js new file mode 100644 index 0000000..1417fea --- /dev/null +++ b/node_modules/core-js/features/string/dedent.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/dedent'); diff --git a/node_modules/core-js/features/string/ends-with.js b/node_modules/core-js/features/string/ends-with.js new file mode 100644 index 0000000..82c8de3 --- /dev/null +++ b/node_modules/core-js/features/string/ends-with.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/ends-with'); diff --git a/node_modules/core-js/features/string/fixed.js b/node_modules/core-js/features/string/fixed.js new file mode 100644 index 0000000..18e3d12 --- /dev/null +++ b/node_modules/core-js/features/string/fixed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/fixed'); diff --git a/node_modules/core-js/features/string/fontcolor.js b/node_modules/core-js/features/string/fontcolor.js new file mode 100644 index 0000000..d2173ad --- /dev/null +++ b/node_modules/core-js/features/string/fontcolor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/fontcolor'); diff --git a/node_modules/core-js/features/string/fontsize.js b/node_modules/core-js/features/string/fontsize.js new file mode 100644 index 0000000..60ed0de --- /dev/null +++ b/node_modules/core-js/features/string/fontsize.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/fontsize'); diff --git a/node_modules/core-js/features/string/from-code-point.js b/node_modules/core-js/features/string/from-code-point.js new file mode 100644 index 0000000..4ae1760 --- /dev/null +++ b/node_modules/core-js/features/string/from-code-point.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/from-code-point'); diff --git a/node_modules/core-js/features/string/includes.js b/node_modules/core-js/features/string/includes.js new file mode 100644 index 0000000..a38daae --- /dev/null +++ b/node_modules/core-js/features/string/includes.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/includes'); diff --git a/node_modules/core-js/features/string/index.js b/node_modules/core-js/features/string/index.js new file mode 100644 index 0000000..39dec7f --- /dev/null +++ b/node_modules/core-js/features/string/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string'); diff --git a/node_modules/core-js/features/string/is-well-formed.js b/node_modules/core-js/features/string/is-well-formed.js new file mode 100644 index 0000000..8a3222e --- /dev/null +++ b/node_modules/core-js/features/string/is-well-formed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/is-well-formed'); diff --git a/node_modules/core-js/features/string/italics.js b/node_modules/core-js/features/string/italics.js new file mode 100644 index 0000000..2662142 --- /dev/null +++ b/node_modules/core-js/features/string/italics.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/italics'); diff --git a/node_modules/core-js/features/string/iterator.js b/node_modules/core-js/features/string/iterator.js new file mode 100644 index 0000000..e947c4c --- /dev/null +++ b/node_modules/core-js/features/string/iterator.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/iterator'); diff --git a/node_modules/core-js/features/string/link.js b/node_modules/core-js/features/string/link.js new file mode 100644 index 0000000..ce03a70 --- /dev/null +++ b/node_modules/core-js/features/string/link.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/link'); diff --git a/node_modules/core-js/features/string/match-all.js b/node_modules/core-js/features/string/match-all.js new file mode 100644 index 0000000..cff637b --- /dev/null +++ b/node_modules/core-js/features/string/match-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/match-all'); diff --git a/node_modules/core-js/features/string/match.js b/node_modules/core-js/features/string/match.js new file mode 100644 index 0000000..fcdc638 --- /dev/null +++ b/node_modules/core-js/features/string/match.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/match'); diff --git a/node_modules/core-js/features/string/pad-end.js b/node_modules/core-js/features/string/pad-end.js new file mode 100644 index 0000000..87afd0b --- /dev/null +++ b/node_modules/core-js/features/string/pad-end.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/pad-end'); diff --git a/node_modules/core-js/features/string/pad-start.js b/node_modules/core-js/features/string/pad-start.js new file mode 100644 index 0000000..6381fbd --- /dev/null +++ b/node_modules/core-js/features/string/pad-start.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/pad-start'); diff --git a/node_modules/core-js/features/string/raw.js b/node_modules/core-js/features/string/raw.js new file mode 100644 index 0000000..9921960 --- /dev/null +++ b/node_modules/core-js/features/string/raw.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/raw'); diff --git a/node_modules/core-js/features/string/repeat.js b/node_modules/core-js/features/string/repeat.js new file mode 100644 index 0000000..e9549f3 --- /dev/null +++ b/node_modules/core-js/features/string/repeat.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/repeat'); diff --git a/node_modules/core-js/features/string/replace-all.js b/node_modules/core-js/features/string/replace-all.js new file mode 100644 index 0000000..8cb01ea --- /dev/null +++ b/node_modules/core-js/features/string/replace-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/replace-all'); diff --git a/node_modules/core-js/features/string/replace.js b/node_modules/core-js/features/string/replace.js new file mode 100644 index 0000000..cfbbbdb --- /dev/null +++ b/node_modules/core-js/features/string/replace.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/replace'); diff --git a/node_modules/core-js/features/string/search.js b/node_modules/core-js/features/string/search.js new file mode 100644 index 0000000..7f44eba --- /dev/null +++ b/node_modules/core-js/features/string/search.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/search'); diff --git a/node_modules/core-js/features/string/small.js b/node_modules/core-js/features/string/small.js new file mode 100644 index 0000000..83371d4 --- /dev/null +++ b/node_modules/core-js/features/string/small.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/small'); diff --git a/node_modules/core-js/features/string/split.js b/node_modules/core-js/features/string/split.js new file mode 100644 index 0000000..df53dde --- /dev/null +++ b/node_modules/core-js/features/string/split.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/split'); diff --git a/node_modules/core-js/features/string/starts-with.js b/node_modules/core-js/features/string/starts-with.js new file mode 100644 index 0000000..c36f72b --- /dev/null +++ b/node_modules/core-js/features/string/starts-with.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/starts-with'); diff --git a/node_modules/core-js/features/string/strike.js b/node_modules/core-js/features/string/strike.js new file mode 100644 index 0000000..5931582 --- /dev/null +++ b/node_modules/core-js/features/string/strike.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/strike'); diff --git a/node_modules/core-js/features/string/sub.js b/node_modules/core-js/features/string/sub.js new file mode 100644 index 0000000..ee9be2d --- /dev/null +++ b/node_modules/core-js/features/string/sub.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/sub'); diff --git a/node_modules/core-js/features/string/substr.js b/node_modules/core-js/features/string/substr.js new file mode 100644 index 0000000..3a0d996 --- /dev/null +++ b/node_modules/core-js/features/string/substr.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/substr'); diff --git a/node_modules/core-js/features/string/sup.js b/node_modules/core-js/features/string/sup.js new file mode 100644 index 0000000..fafa2e5 --- /dev/null +++ b/node_modules/core-js/features/string/sup.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/sup'); diff --git a/node_modules/core-js/features/string/to-well-formed.js b/node_modules/core-js/features/string/to-well-formed.js new file mode 100644 index 0000000..318acd2 --- /dev/null +++ b/node_modules/core-js/features/string/to-well-formed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/to-well-formed'); diff --git a/node_modules/core-js/features/string/trim-end.js b/node_modules/core-js/features/string/trim-end.js new file mode 100644 index 0000000..6913dab --- /dev/null +++ b/node_modules/core-js/features/string/trim-end.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/trim-end'); diff --git a/node_modules/core-js/features/string/trim-left.js b/node_modules/core-js/features/string/trim-left.js new file mode 100644 index 0000000..729d4d4 --- /dev/null +++ b/node_modules/core-js/features/string/trim-left.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/trim-left'); diff --git a/node_modules/core-js/features/string/trim-right.js b/node_modules/core-js/features/string/trim-right.js new file mode 100644 index 0000000..5bb915c --- /dev/null +++ b/node_modules/core-js/features/string/trim-right.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/trim-right'); diff --git a/node_modules/core-js/features/string/trim-start.js b/node_modules/core-js/features/string/trim-start.js new file mode 100644 index 0000000..9288f6c --- /dev/null +++ b/node_modules/core-js/features/string/trim-start.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/trim-start'); diff --git a/node_modules/core-js/features/string/trim.js b/node_modules/core-js/features/string/trim.js new file mode 100644 index 0000000..d5cdd8e --- /dev/null +++ b/node_modules/core-js/features/string/trim.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/string/trim'); diff --git a/node_modules/core-js/features/string/virtual/anchor.js b/node_modules/core-js/features/string/virtual/anchor.js new file mode 100644 index 0000000..ef0030d --- /dev/null +++ b/node_modules/core-js/features/string/virtual/anchor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/anchor'); diff --git a/node_modules/core-js/features/string/virtual/at.js b/node_modules/core-js/features/string/virtual/at.js new file mode 100644 index 0000000..cf004d8 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/at.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/at'); diff --git a/node_modules/core-js/features/string/virtual/big.js b/node_modules/core-js/features/string/virtual/big.js new file mode 100644 index 0000000..bb7af64 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/big.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/big'); diff --git a/node_modules/core-js/features/string/virtual/blink.js b/node_modules/core-js/features/string/virtual/blink.js new file mode 100644 index 0000000..13c183f --- /dev/null +++ b/node_modules/core-js/features/string/virtual/blink.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/blink'); diff --git a/node_modules/core-js/features/string/virtual/bold.js b/node_modules/core-js/features/string/virtual/bold.js new file mode 100644 index 0000000..b18c2dc --- /dev/null +++ b/node_modules/core-js/features/string/virtual/bold.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/bold'); diff --git a/node_modules/core-js/features/string/virtual/code-point-at.js b/node_modules/core-js/features/string/virtual/code-point-at.js new file mode 100644 index 0000000..d96f544 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/code-point-at.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/code-point-at'); diff --git a/node_modules/core-js/features/string/virtual/code-points.js b/node_modules/core-js/features/string/virtual/code-points.js new file mode 100644 index 0000000..fdbd7a4 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/code-points.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/code-points'); diff --git a/node_modules/core-js/features/string/virtual/ends-with.js b/node_modules/core-js/features/string/virtual/ends-with.js new file mode 100644 index 0000000..232aaa7 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/ends-with.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/ends-with'); diff --git a/node_modules/core-js/features/string/virtual/fixed.js b/node_modules/core-js/features/string/virtual/fixed.js new file mode 100644 index 0000000..4d40578 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/fixed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/fixed'); diff --git a/node_modules/core-js/features/string/virtual/fontcolor.js b/node_modules/core-js/features/string/virtual/fontcolor.js new file mode 100644 index 0000000..2d37d0e --- /dev/null +++ b/node_modules/core-js/features/string/virtual/fontcolor.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/fontcolor'); diff --git a/node_modules/core-js/features/string/virtual/fontsize.js b/node_modules/core-js/features/string/virtual/fontsize.js new file mode 100644 index 0000000..9a10610 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/fontsize.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/fontsize'); diff --git a/node_modules/core-js/features/string/virtual/includes.js b/node_modules/core-js/features/string/virtual/includes.js new file mode 100644 index 0000000..0c77bc7 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/includes.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/includes'); diff --git a/node_modules/core-js/features/string/virtual/index.js b/node_modules/core-js/features/string/virtual/index.js new file mode 100644 index 0000000..4dbf80b --- /dev/null +++ b/node_modules/core-js/features/string/virtual/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual'); diff --git a/node_modules/core-js/features/string/virtual/is-well-formed.js b/node_modules/core-js/features/string/virtual/is-well-formed.js new file mode 100644 index 0000000..7a46df3 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/is-well-formed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/is-well-formed'); diff --git a/node_modules/core-js/features/string/virtual/italics.js b/node_modules/core-js/features/string/virtual/italics.js new file mode 100644 index 0000000..a359791 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/italics.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/italics'); diff --git a/node_modules/core-js/features/string/virtual/iterator.js b/node_modules/core-js/features/string/virtual/iterator.js new file mode 100644 index 0000000..070896f --- /dev/null +++ b/node_modules/core-js/features/string/virtual/iterator.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/iterator'); diff --git a/node_modules/core-js/features/string/virtual/link.js b/node_modules/core-js/features/string/virtual/link.js new file mode 100644 index 0000000..4caad6c --- /dev/null +++ b/node_modules/core-js/features/string/virtual/link.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/link'); diff --git a/node_modules/core-js/features/string/virtual/match-all.js b/node_modules/core-js/features/string/virtual/match-all.js new file mode 100644 index 0000000..f1a16e5 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/match-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/match-all'); diff --git a/node_modules/core-js/features/string/virtual/pad-end.js b/node_modules/core-js/features/string/virtual/pad-end.js new file mode 100644 index 0000000..b197b82 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/pad-end.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/pad-end'); diff --git a/node_modules/core-js/features/string/virtual/pad-start.js b/node_modules/core-js/features/string/virtual/pad-start.js new file mode 100644 index 0000000..0d9f790 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/pad-start.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/pad-start'); diff --git a/node_modules/core-js/features/string/virtual/repeat.js b/node_modules/core-js/features/string/virtual/repeat.js new file mode 100644 index 0000000..c9bd2b1 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/repeat.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/repeat'); diff --git a/node_modules/core-js/features/string/virtual/replace-all.js b/node_modules/core-js/features/string/virtual/replace-all.js new file mode 100644 index 0000000..5c41a81 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/replace-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/replace-all'); diff --git a/node_modules/core-js/features/string/virtual/small.js b/node_modules/core-js/features/string/virtual/small.js new file mode 100644 index 0000000..41830fd --- /dev/null +++ b/node_modules/core-js/features/string/virtual/small.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/small'); diff --git a/node_modules/core-js/features/string/virtual/starts-with.js b/node_modules/core-js/features/string/virtual/starts-with.js new file mode 100644 index 0000000..faf7f9a --- /dev/null +++ b/node_modules/core-js/features/string/virtual/starts-with.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/starts-with'); diff --git a/node_modules/core-js/features/string/virtual/strike.js b/node_modules/core-js/features/string/virtual/strike.js new file mode 100644 index 0000000..4aa6aab --- /dev/null +++ b/node_modules/core-js/features/string/virtual/strike.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/strike'); diff --git a/node_modules/core-js/features/string/virtual/sub.js b/node_modules/core-js/features/string/virtual/sub.js new file mode 100644 index 0000000..0406b51 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/sub.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/sub'); diff --git a/node_modules/core-js/features/string/virtual/substr.js b/node_modules/core-js/features/string/virtual/substr.js new file mode 100644 index 0000000..bff178a --- /dev/null +++ b/node_modules/core-js/features/string/virtual/substr.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/substr'); diff --git a/node_modules/core-js/features/string/virtual/sup.js b/node_modules/core-js/features/string/virtual/sup.js new file mode 100644 index 0000000..ea4b086 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/sup.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/sup'); diff --git a/node_modules/core-js/features/string/virtual/to-well-formed.js b/node_modules/core-js/features/string/virtual/to-well-formed.js new file mode 100644 index 0000000..fb106bc --- /dev/null +++ b/node_modules/core-js/features/string/virtual/to-well-formed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/to-well-formed'); diff --git a/node_modules/core-js/features/string/virtual/trim-end.js b/node_modules/core-js/features/string/virtual/trim-end.js new file mode 100644 index 0000000..d90c02d --- /dev/null +++ b/node_modules/core-js/features/string/virtual/trim-end.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/trim-end'); diff --git a/node_modules/core-js/features/string/virtual/trim-left.js b/node_modules/core-js/features/string/virtual/trim-left.js new file mode 100644 index 0000000..407b11f --- /dev/null +++ b/node_modules/core-js/features/string/virtual/trim-left.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/trim-left'); diff --git a/node_modules/core-js/features/string/virtual/trim-right.js b/node_modules/core-js/features/string/virtual/trim-right.js new file mode 100644 index 0000000..8e6fd4d --- /dev/null +++ b/node_modules/core-js/features/string/virtual/trim-right.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/trim-right'); diff --git a/node_modules/core-js/features/string/virtual/trim-start.js b/node_modules/core-js/features/string/virtual/trim-start.js new file mode 100644 index 0000000..0c3545a --- /dev/null +++ b/node_modules/core-js/features/string/virtual/trim-start.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/trim-start'); diff --git a/node_modules/core-js/features/string/virtual/trim.js b/node_modules/core-js/features/string/virtual/trim.js new file mode 100644 index 0000000..da33237 --- /dev/null +++ b/node_modules/core-js/features/string/virtual/trim.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../full/string/virtual/trim'); diff --git a/node_modules/core-js/features/structured-clone.js b/node_modules/core-js/features/structured-clone.js new file mode 100644 index 0000000..3f23d55 --- /dev/null +++ b/node_modules/core-js/features/structured-clone.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/structured-clone'); diff --git a/node_modules/core-js/features/suppressed-error.js b/node_modules/core-js/features/suppressed-error.js new file mode 100644 index 0000000..331939c --- /dev/null +++ b/node_modules/core-js/features/suppressed-error.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/suppressed-error'); diff --git a/node_modules/core-js/features/symbol/async-dispose.js b/node_modules/core-js/features/symbol/async-dispose.js new file mode 100644 index 0000000..e31c76d --- /dev/null +++ b/node_modules/core-js/features/symbol/async-dispose.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/async-dispose'); diff --git a/node_modules/core-js/features/symbol/async-iterator.js b/node_modules/core-js/features/symbol/async-iterator.js new file mode 100644 index 0000000..6951dae --- /dev/null +++ b/node_modules/core-js/features/symbol/async-iterator.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/async-iterator'); diff --git a/node_modules/core-js/features/symbol/custom-matcher.js b/node_modules/core-js/features/symbol/custom-matcher.js new file mode 100644 index 0000000..79c145d --- /dev/null +++ b/node_modules/core-js/features/symbol/custom-matcher.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/custom-matcher'); diff --git a/node_modules/core-js/features/symbol/description.js b/node_modules/core-js/features/symbol/description.js new file mode 100644 index 0000000..dacdab2 --- /dev/null +++ b/node_modules/core-js/features/symbol/description.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/description'); diff --git a/node_modules/core-js/features/symbol/dispose.js b/node_modules/core-js/features/symbol/dispose.js new file mode 100644 index 0000000..270f729 --- /dev/null +++ b/node_modules/core-js/features/symbol/dispose.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/dispose'); diff --git a/node_modules/core-js/features/symbol/for.js b/node_modules/core-js/features/symbol/for.js new file mode 100644 index 0000000..69a3555 --- /dev/null +++ b/node_modules/core-js/features/symbol/for.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/for'); diff --git a/node_modules/core-js/features/symbol/has-instance.js b/node_modules/core-js/features/symbol/has-instance.js new file mode 100644 index 0000000..fc003b3 --- /dev/null +++ b/node_modules/core-js/features/symbol/has-instance.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/has-instance'); diff --git a/node_modules/core-js/features/symbol/index.js b/node_modules/core-js/features/symbol/index.js new file mode 100644 index 0000000..02c9e00 --- /dev/null +++ b/node_modules/core-js/features/symbol/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol'); diff --git a/node_modules/core-js/features/symbol/is-concat-spreadable.js b/node_modules/core-js/features/symbol/is-concat-spreadable.js new file mode 100644 index 0000000..190c326 --- /dev/null +++ b/node_modules/core-js/features/symbol/is-concat-spreadable.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/is-concat-spreadable'); diff --git a/node_modules/core-js/features/symbol/is-registered-symbol.js b/node_modules/core-js/features/symbol/is-registered-symbol.js new file mode 100644 index 0000000..abc6281 --- /dev/null +++ b/node_modules/core-js/features/symbol/is-registered-symbol.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/is-registered-symbol'); diff --git a/node_modules/core-js/features/symbol/is-registered.js b/node_modules/core-js/features/symbol/is-registered.js new file mode 100644 index 0000000..5954519 --- /dev/null +++ b/node_modules/core-js/features/symbol/is-registered.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/is-registered'); diff --git a/node_modules/core-js/features/symbol/is-well-known-symbol.js b/node_modules/core-js/features/symbol/is-well-known-symbol.js new file mode 100644 index 0000000..71f6a9d --- /dev/null +++ b/node_modules/core-js/features/symbol/is-well-known-symbol.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/is-well-known-symbol'); diff --git a/node_modules/core-js/features/symbol/is-well-known.js b/node_modules/core-js/features/symbol/is-well-known.js new file mode 100644 index 0000000..3c6270e --- /dev/null +++ b/node_modules/core-js/features/symbol/is-well-known.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/is-well-known'); diff --git a/node_modules/core-js/features/symbol/iterator.js b/node_modules/core-js/features/symbol/iterator.js new file mode 100644 index 0000000..01690d8 --- /dev/null +++ b/node_modules/core-js/features/symbol/iterator.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/iterator'); diff --git a/node_modules/core-js/features/symbol/key-for.js b/node_modules/core-js/features/symbol/key-for.js new file mode 100644 index 0000000..b8d2061 --- /dev/null +++ b/node_modules/core-js/features/symbol/key-for.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/key-for'); diff --git a/node_modules/core-js/features/symbol/match-all.js b/node_modules/core-js/features/symbol/match-all.js new file mode 100644 index 0000000..d921882 --- /dev/null +++ b/node_modules/core-js/features/symbol/match-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/match-all'); diff --git a/node_modules/core-js/features/symbol/match.js b/node_modules/core-js/features/symbol/match.js new file mode 100644 index 0000000..52f36d4 --- /dev/null +++ b/node_modules/core-js/features/symbol/match.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/match'); diff --git a/node_modules/core-js/features/symbol/matcher.js b/node_modules/core-js/features/symbol/matcher.js new file mode 100644 index 0000000..a595085 --- /dev/null +++ b/node_modules/core-js/features/symbol/matcher.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/matcher'); diff --git a/node_modules/core-js/features/symbol/metadata-key.js b/node_modules/core-js/features/symbol/metadata-key.js new file mode 100644 index 0000000..8f0b026 --- /dev/null +++ b/node_modules/core-js/features/symbol/metadata-key.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/metadata-key'); diff --git a/node_modules/core-js/features/symbol/metadata.js b/node_modules/core-js/features/symbol/metadata.js new file mode 100644 index 0000000..af7fdd1 --- /dev/null +++ b/node_modules/core-js/features/symbol/metadata.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/metadata'); diff --git a/node_modules/core-js/features/symbol/observable.js b/node_modules/core-js/features/symbol/observable.js new file mode 100644 index 0000000..991b7f9 --- /dev/null +++ b/node_modules/core-js/features/symbol/observable.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/observable'); diff --git a/node_modules/core-js/features/symbol/pattern-match.js b/node_modules/core-js/features/symbol/pattern-match.js new file mode 100644 index 0000000..74a6bba --- /dev/null +++ b/node_modules/core-js/features/symbol/pattern-match.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/pattern-match'); diff --git a/node_modules/core-js/features/symbol/replace-all.js b/node_modules/core-js/features/symbol/replace-all.js new file mode 100644 index 0000000..e6b3eab --- /dev/null +++ b/node_modules/core-js/features/symbol/replace-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/replace-all'); diff --git a/node_modules/core-js/features/symbol/replace.js b/node_modules/core-js/features/symbol/replace.js new file mode 100644 index 0000000..890d0fc --- /dev/null +++ b/node_modules/core-js/features/symbol/replace.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/replace'); diff --git a/node_modules/core-js/features/symbol/search.js b/node_modules/core-js/features/symbol/search.js new file mode 100644 index 0000000..b888afc --- /dev/null +++ b/node_modules/core-js/features/symbol/search.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/search'); diff --git a/node_modules/core-js/features/symbol/species.js b/node_modules/core-js/features/symbol/species.js new file mode 100644 index 0000000..e7e4e28 --- /dev/null +++ b/node_modules/core-js/features/symbol/species.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/species'); diff --git a/node_modules/core-js/features/symbol/split.js b/node_modules/core-js/features/symbol/split.js new file mode 100644 index 0000000..8c4b7a5 --- /dev/null +++ b/node_modules/core-js/features/symbol/split.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/split'); diff --git a/node_modules/core-js/features/symbol/to-primitive.js b/node_modules/core-js/features/symbol/to-primitive.js new file mode 100644 index 0000000..d3b7a0d --- /dev/null +++ b/node_modules/core-js/features/symbol/to-primitive.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/to-primitive'); diff --git a/node_modules/core-js/features/symbol/to-string-tag.js b/node_modules/core-js/features/symbol/to-string-tag.js new file mode 100644 index 0000000..b08cc0f --- /dev/null +++ b/node_modules/core-js/features/symbol/to-string-tag.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/to-string-tag'); diff --git a/node_modules/core-js/features/symbol/unscopables.js b/node_modules/core-js/features/symbol/unscopables.js new file mode 100644 index 0000000..f336314 --- /dev/null +++ b/node_modules/core-js/features/symbol/unscopables.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/symbol/unscopables'); diff --git a/node_modules/core-js/features/typed-array/at.js b/node_modules/core-js/features/typed-array/at.js new file mode 100644 index 0000000..dbda0f2 --- /dev/null +++ b/node_modules/core-js/features/typed-array/at.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/at'); diff --git a/node_modules/core-js/features/typed-array/copy-within.js b/node_modules/core-js/features/typed-array/copy-within.js new file mode 100644 index 0000000..5cd49d9 --- /dev/null +++ b/node_modules/core-js/features/typed-array/copy-within.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/copy-within'); diff --git a/node_modules/core-js/features/typed-array/entries.js b/node_modules/core-js/features/typed-array/entries.js new file mode 100644 index 0000000..d7fb635 --- /dev/null +++ b/node_modules/core-js/features/typed-array/entries.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/entries'); diff --git a/node_modules/core-js/features/typed-array/every.js b/node_modules/core-js/features/typed-array/every.js new file mode 100644 index 0000000..4d9f494 --- /dev/null +++ b/node_modules/core-js/features/typed-array/every.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/every'); diff --git a/node_modules/core-js/features/typed-array/fill.js b/node_modules/core-js/features/typed-array/fill.js new file mode 100644 index 0000000..987b2c6 --- /dev/null +++ b/node_modules/core-js/features/typed-array/fill.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/fill'); diff --git a/node_modules/core-js/features/typed-array/filter-out.js b/node_modules/core-js/features/typed-array/filter-out.js new file mode 100644 index 0000000..4ebe258 --- /dev/null +++ b/node_modules/core-js/features/typed-array/filter-out.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/filter-out'); diff --git a/node_modules/core-js/features/typed-array/filter-reject.js b/node_modules/core-js/features/typed-array/filter-reject.js new file mode 100644 index 0000000..1eca98c --- /dev/null +++ b/node_modules/core-js/features/typed-array/filter-reject.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/filter-reject'); diff --git a/node_modules/core-js/features/typed-array/filter.js b/node_modules/core-js/features/typed-array/filter.js new file mode 100644 index 0000000..e8004b2 --- /dev/null +++ b/node_modules/core-js/features/typed-array/filter.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/filter'); diff --git a/node_modules/core-js/features/typed-array/find-index.js b/node_modules/core-js/features/typed-array/find-index.js new file mode 100644 index 0000000..a1de959 --- /dev/null +++ b/node_modules/core-js/features/typed-array/find-index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/find-index'); diff --git a/node_modules/core-js/features/typed-array/find-last-index.js b/node_modules/core-js/features/typed-array/find-last-index.js new file mode 100644 index 0000000..de77d08 --- /dev/null +++ b/node_modules/core-js/features/typed-array/find-last-index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/find-last-index'); diff --git a/node_modules/core-js/features/typed-array/find-last.js b/node_modules/core-js/features/typed-array/find-last.js new file mode 100644 index 0000000..d224ab3 --- /dev/null +++ b/node_modules/core-js/features/typed-array/find-last.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/find-last'); diff --git a/node_modules/core-js/features/typed-array/find.js b/node_modules/core-js/features/typed-array/find.js new file mode 100644 index 0000000..40cc496 --- /dev/null +++ b/node_modules/core-js/features/typed-array/find.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/find'); diff --git a/node_modules/core-js/features/typed-array/float32-array.js b/node_modules/core-js/features/typed-array/float32-array.js new file mode 100644 index 0000000..4d48fa1 --- /dev/null +++ b/node_modules/core-js/features/typed-array/float32-array.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/float32-array'); diff --git a/node_modules/core-js/features/typed-array/float64-array.js b/node_modules/core-js/features/typed-array/float64-array.js new file mode 100644 index 0000000..64bdedf --- /dev/null +++ b/node_modules/core-js/features/typed-array/float64-array.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/float64-array'); diff --git a/node_modules/core-js/features/typed-array/for-each.js b/node_modules/core-js/features/typed-array/for-each.js new file mode 100644 index 0000000..f2e5073 --- /dev/null +++ b/node_modules/core-js/features/typed-array/for-each.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/for-each'); diff --git a/node_modules/core-js/features/typed-array/from-async.js b/node_modules/core-js/features/typed-array/from-async.js new file mode 100644 index 0000000..c19d08c --- /dev/null +++ b/node_modules/core-js/features/typed-array/from-async.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/from-async'); diff --git a/node_modules/core-js/features/typed-array/from-base64.js b/node_modules/core-js/features/typed-array/from-base64.js new file mode 100644 index 0000000..dbcfebc --- /dev/null +++ b/node_modules/core-js/features/typed-array/from-base64.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/from-base64'); diff --git a/node_modules/core-js/features/typed-array/from-hex.js b/node_modules/core-js/features/typed-array/from-hex.js new file mode 100644 index 0000000..d7418cd --- /dev/null +++ b/node_modules/core-js/features/typed-array/from-hex.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/from-hex'); diff --git a/node_modules/core-js/features/typed-array/from.js b/node_modules/core-js/features/typed-array/from.js new file mode 100644 index 0000000..a0488ef --- /dev/null +++ b/node_modules/core-js/features/typed-array/from.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/from'); diff --git a/node_modules/core-js/features/typed-array/group-by.js b/node_modules/core-js/features/typed-array/group-by.js new file mode 100644 index 0000000..946f22c --- /dev/null +++ b/node_modules/core-js/features/typed-array/group-by.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/group-by'); diff --git a/node_modules/core-js/features/typed-array/includes.js b/node_modules/core-js/features/typed-array/includes.js new file mode 100644 index 0000000..1af591f --- /dev/null +++ b/node_modules/core-js/features/typed-array/includes.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/includes'); diff --git a/node_modules/core-js/features/typed-array/index-of.js b/node_modules/core-js/features/typed-array/index-of.js new file mode 100644 index 0000000..d100918 --- /dev/null +++ b/node_modules/core-js/features/typed-array/index-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/index-of'); diff --git a/node_modules/core-js/features/typed-array/index.js b/node_modules/core-js/features/typed-array/index.js new file mode 100644 index 0000000..84e38dd --- /dev/null +++ b/node_modules/core-js/features/typed-array/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array'); diff --git a/node_modules/core-js/features/typed-array/int16-array.js b/node_modules/core-js/features/typed-array/int16-array.js new file mode 100644 index 0000000..8b90d1a --- /dev/null +++ b/node_modules/core-js/features/typed-array/int16-array.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/int16-array'); diff --git a/node_modules/core-js/features/typed-array/int32-array.js b/node_modules/core-js/features/typed-array/int32-array.js new file mode 100644 index 0000000..0bc324b --- /dev/null +++ b/node_modules/core-js/features/typed-array/int32-array.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/int32-array'); diff --git a/node_modules/core-js/features/typed-array/int8-array.js b/node_modules/core-js/features/typed-array/int8-array.js new file mode 100644 index 0000000..3d30c41 --- /dev/null +++ b/node_modules/core-js/features/typed-array/int8-array.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/int8-array'); diff --git a/node_modules/core-js/features/typed-array/iterator.js b/node_modules/core-js/features/typed-array/iterator.js new file mode 100644 index 0000000..02623ea --- /dev/null +++ b/node_modules/core-js/features/typed-array/iterator.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/iterator'); diff --git a/node_modules/core-js/features/typed-array/join.js b/node_modules/core-js/features/typed-array/join.js new file mode 100644 index 0000000..8c1a74f --- /dev/null +++ b/node_modules/core-js/features/typed-array/join.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/join'); diff --git a/node_modules/core-js/features/typed-array/keys.js b/node_modules/core-js/features/typed-array/keys.js new file mode 100644 index 0000000..b90483f --- /dev/null +++ b/node_modules/core-js/features/typed-array/keys.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/keys'); diff --git a/node_modules/core-js/features/typed-array/last-index-of.js b/node_modules/core-js/features/typed-array/last-index-of.js new file mode 100644 index 0000000..c170848 --- /dev/null +++ b/node_modules/core-js/features/typed-array/last-index-of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/last-index-of'); diff --git a/node_modules/core-js/features/typed-array/map.js b/node_modules/core-js/features/typed-array/map.js new file mode 100644 index 0000000..cb73c09 --- /dev/null +++ b/node_modules/core-js/features/typed-array/map.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/map'); diff --git a/node_modules/core-js/features/typed-array/methods.js b/node_modules/core-js/features/typed-array/methods.js new file mode 100644 index 0000000..9f8db1e --- /dev/null +++ b/node_modules/core-js/features/typed-array/methods.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/methods'); diff --git a/node_modules/core-js/features/typed-array/of.js b/node_modules/core-js/features/typed-array/of.js new file mode 100644 index 0000000..52663f4 --- /dev/null +++ b/node_modules/core-js/features/typed-array/of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/of'); diff --git a/node_modules/core-js/features/typed-array/reduce-right.js b/node_modules/core-js/features/typed-array/reduce-right.js new file mode 100644 index 0000000..d258dcd --- /dev/null +++ b/node_modules/core-js/features/typed-array/reduce-right.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/reduce-right'); diff --git a/node_modules/core-js/features/typed-array/reduce.js b/node_modules/core-js/features/typed-array/reduce.js new file mode 100644 index 0000000..bdb9106 --- /dev/null +++ b/node_modules/core-js/features/typed-array/reduce.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/reduce'); diff --git a/node_modules/core-js/features/typed-array/reverse.js b/node_modules/core-js/features/typed-array/reverse.js new file mode 100644 index 0000000..7923e59 --- /dev/null +++ b/node_modules/core-js/features/typed-array/reverse.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/reverse'); diff --git a/node_modules/core-js/features/typed-array/set-from-base64.js b/node_modules/core-js/features/typed-array/set-from-base64.js new file mode 100644 index 0000000..ea2f639 --- /dev/null +++ b/node_modules/core-js/features/typed-array/set-from-base64.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/set-from-base64'); diff --git a/node_modules/core-js/features/typed-array/set-from-hex.js b/node_modules/core-js/features/typed-array/set-from-hex.js new file mode 100644 index 0000000..a6c639b --- /dev/null +++ b/node_modules/core-js/features/typed-array/set-from-hex.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/set-from-hex'); diff --git a/node_modules/core-js/features/typed-array/set.js b/node_modules/core-js/features/typed-array/set.js new file mode 100644 index 0000000..5f12682 --- /dev/null +++ b/node_modules/core-js/features/typed-array/set.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/set'); diff --git a/node_modules/core-js/features/typed-array/slice.js b/node_modules/core-js/features/typed-array/slice.js new file mode 100644 index 0000000..e0d0811 --- /dev/null +++ b/node_modules/core-js/features/typed-array/slice.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/slice'); diff --git a/node_modules/core-js/features/typed-array/some.js b/node_modules/core-js/features/typed-array/some.js new file mode 100644 index 0000000..7d3bf5a --- /dev/null +++ b/node_modules/core-js/features/typed-array/some.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/some'); diff --git a/node_modules/core-js/features/typed-array/sort.js b/node_modules/core-js/features/typed-array/sort.js new file mode 100644 index 0000000..8af7761 --- /dev/null +++ b/node_modules/core-js/features/typed-array/sort.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/sort'); diff --git a/node_modules/core-js/features/typed-array/subarray.js b/node_modules/core-js/features/typed-array/subarray.js new file mode 100644 index 0000000..aba0b31 --- /dev/null +++ b/node_modules/core-js/features/typed-array/subarray.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/subarray'); diff --git a/node_modules/core-js/features/typed-array/to-base64.js b/node_modules/core-js/features/typed-array/to-base64.js new file mode 100644 index 0000000..9205945 --- /dev/null +++ b/node_modules/core-js/features/typed-array/to-base64.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/to-base64'); diff --git a/node_modules/core-js/features/typed-array/to-hex.js b/node_modules/core-js/features/typed-array/to-hex.js new file mode 100644 index 0000000..2a19bdc --- /dev/null +++ b/node_modules/core-js/features/typed-array/to-hex.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/to-hex'); diff --git a/node_modules/core-js/features/typed-array/to-locale-string.js b/node_modules/core-js/features/typed-array/to-locale-string.js new file mode 100644 index 0000000..96ec891 --- /dev/null +++ b/node_modules/core-js/features/typed-array/to-locale-string.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/to-locale-string'); diff --git a/node_modules/core-js/features/typed-array/to-reversed.js b/node_modules/core-js/features/typed-array/to-reversed.js new file mode 100644 index 0000000..1d163ed --- /dev/null +++ b/node_modules/core-js/features/typed-array/to-reversed.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/to-reversed'); diff --git a/node_modules/core-js/features/typed-array/to-sorted.js b/node_modules/core-js/features/typed-array/to-sorted.js new file mode 100644 index 0000000..06ee8a6 --- /dev/null +++ b/node_modules/core-js/features/typed-array/to-sorted.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/to-sorted'); diff --git a/node_modules/core-js/features/typed-array/to-spliced.js b/node_modules/core-js/features/typed-array/to-spliced.js new file mode 100644 index 0000000..4bc8246 --- /dev/null +++ b/node_modules/core-js/features/typed-array/to-spliced.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/to-spliced'); diff --git a/node_modules/core-js/features/typed-array/to-string.js b/node_modules/core-js/features/typed-array/to-string.js new file mode 100644 index 0000000..564dec7 --- /dev/null +++ b/node_modules/core-js/features/typed-array/to-string.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/to-string'); diff --git a/node_modules/core-js/features/typed-array/uint16-array.js b/node_modules/core-js/features/typed-array/uint16-array.js new file mode 100644 index 0000000..3c13972 --- /dev/null +++ b/node_modules/core-js/features/typed-array/uint16-array.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/uint16-array'); diff --git a/node_modules/core-js/features/typed-array/uint32-array.js b/node_modules/core-js/features/typed-array/uint32-array.js new file mode 100644 index 0000000..57d4db5 --- /dev/null +++ b/node_modules/core-js/features/typed-array/uint32-array.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/uint32-array'); diff --git a/node_modules/core-js/features/typed-array/uint8-array.js b/node_modules/core-js/features/typed-array/uint8-array.js new file mode 100644 index 0000000..7d50a3d --- /dev/null +++ b/node_modules/core-js/features/typed-array/uint8-array.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/uint8-array'); diff --git a/node_modules/core-js/features/typed-array/uint8-clamped-array.js b/node_modules/core-js/features/typed-array/uint8-clamped-array.js new file mode 100644 index 0000000..6a82ffb --- /dev/null +++ b/node_modules/core-js/features/typed-array/uint8-clamped-array.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/uint8-clamped-array'); diff --git a/node_modules/core-js/features/typed-array/unique-by.js b/node_modules/core-js/features/typed-array/unique-by.js new file mode 100644 index 0000000..8ee5b6e --- /dev/null +++ b/node_modules/core-js/features/typed-array/unique-by.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/unique-by'); diff --git a/node_modules/core-js/features/typed-array/values.js b/node_modules/core-js/features/typed-array/values.js new file mode 100644 index 0000000..c2d2e94 --- /dev/null +++ b/node_modules/core-js/features/typed-array/values.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/values'); diff --git a/node_modules/core-js/features/typed-array/with.js b/node_modules/core-js/features/typed-array/with.js new file mode 100644 index 0000000..93b9f51 --- /dev/null +++ b/node_modules/core-js/features/typed-array/with.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/typed-array/with'); diff --git a/node_modules/core-js/features/unescape.js b/node_modules/core-js/features/unescape.js new file mode 100644 index 0000000..2627b4a --- /dev/null +++ b/node_modules/core-js/features/unescape.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../full/unescape'); diff --git a/node_modules/core-js/features/url-search-params/index.js b/node_modules/core-js/features/url-search-params/index.js new file mode 100644 index 0000000..a820545 --- /dev/null +++ b/node_modules/core-js/features/url-search-params/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/url-search-params'); diff --git a/node_modules/core-js/features/url/can-parse.js b/node_modules/core-js/features/url/can-parse.js new file mode 100644 index 0000000..3d69ec5 --- /dev/null +++ b/node_modules/core-js/features/url/can-parse.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/url/can-parse'); diff --git a/node_modules/core-js/features/url/index.js b/node_modules/core-js/features/url/index.js new file mode 100644 index 0000000..d7202ad --- /dev/null +++ b/node_modules/core-js/features/url/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/url'); diff --git a/node_modules/core-js/features/url/parse.js b/node_modules/core-js/features/url/parse.js new file mode 100644 index 0000000..37c22d6 --- /dev/null +++ b/node_modules/core-js/features/url/parse.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/url/parse'); diff --git a/node_modules/core-js/features/url/to-json.js b/node_modules/core-js/features/url/to-json.js new file mode 100644 index 0000000..6cf7a77 --- /dev/null +++ b/node_modules/core-js/features/url/to-json.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/url/to-json'); diff --git a/node_modules/core-js/features/weak-map/delete-all.js b/node_modules/core-js/features/weak-map/delete-all.js new file mode 100644 index 0000000..a19160b --- /dev/null +++ b/node_modules/core-js/features/weak-map/delete-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/weak-map/delete-all'); diff --git a/node_modules/core-js/features/weak-map/emplace.js b/node_modules/core-js/features/weak-map/emplace.js new file mode 100644 index 0000000..ac39847 --- /dev/null +++ b/node_modules/core-js/features/weak-map/emplace.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/weak-map/emplace'); diff --git a/node_modules/core-js/features/weak-map/from.js b/node_modules/core-js/features/weak-map/from.js new file mode 100644 index 0000000..4dbec01 --- /dev/null +++ b/node_modules/core-js/features/weak-map/from.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/weak-map/from'); diff --git a/node_modules/core-js/features/weak-map/index.js b/node_modules/core-js/features/weak-map/index.js new file mode 100644 index 0000000..d5bcede --- /dev/null +++ b/node_modules/core-js/features/weak-map/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/weak-map'); diff --git a/node_modules/core-js/features/weak-map/of.js b/node_modules/core-js/features/weak-map/of.js new file mode 100644 index 0000000..73021e6 --- /dev/null +++ b/node_modules/core-js/features/weak-map/of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/weak-map/of'); diff --git a/node_modules/core-js/features/weak-map/upsert.js b/node_modules/core-js/features/weak-map/upsert.js new file mode 100644 index 0000000..6582591 --- /dev/null +++ b/node_modules/core-js/features/weak-map/upsert.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/weak-map/upsert'); diff --git a/node_modules/core-js/features/weak-set/add-all.js b/node_modules/core-js/features/weak-set/add-all.js new file mode 100644 index 0000000..f537412 --- /dev/null +++ b/node_modules/core-js/features/weak-set/add-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/weak-set/add-all'); diff --git a/node_modules/core-js/features/weak-set/delete-all.js b/node_modules/core-js/features/weak-set/delete-all.js new file mode 100644 index 0000000..3da6c75 --- /dev/null +++ b/node_modules/core-js/features/weak-set/delete-all.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/weak-set/delete-all'); diff --git a/node_modules/core-js/features/weak-set/from.js b/node_modules/core-js/features/weak-set/from.js new file mode 100644 index 0000000..d300e22 --- /dev/null +++ b/node_modules/core-js/features/weak-set/from.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/weak-set/from'); diff --git a/node_modules/core-js/features/weak-set/index.js b/node_modules/core-js/features/weak-set/index.js new file mode 100644 index 0000000..7da09c8 --- /dev/null +++ b/node_modules/core-js/features/weak-set/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/weak-set'); diff --git a/node_modules/core-js/features/weak-set/of.js b/node_modules/core-js/features/weak-set/of.js new file mode 100644 index 0000000..7070230 --- /dev/null +++ b/node_modules/core-js/features/weak-set/of.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../full/weak-set/of'); diff --git a/node_modules/core-js/full/README.md b/node_modules/core-js/full/README.md new file mode 100644 index 0000000..62c88a0 --- /dev/null +++ b/node_modules/core-js/full/README.md @@ -0,0 +1 @@ +This folder contains entry points for all `core-js` features with dependencies. It's the recommended way for usage only required features. diff --git a/node_modules/core-js/full/aggregate-error.js b/node_modules/core-js/full/aggregate-error.js new file mode 100644 index 0000000..53ba5cf --- /dev/null +++ b/node_modules/core-js/full/aggregate-error.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: remove from `core-js@4` +require('../modules/esnext.aggregate-error'); + +var parent = require('../actual/aggregate-error'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array-buffer/constructor.js b/node_modules/core-js/full/array-buffer/constructor.js new file mode 100644 index 0000000..fc0efd2 --- /dev/null +++ b/node_modules/core-js/full/array-buffer/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array-buffer/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array-buffer/detached.js b/node_modules/core-js/full/array-buffer/detached.js new file mode 100644 index 0000000..08bff30 --- /dev/null +++ b/node_modules/core-js/full/array-buffer/detached.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array-buffer/detached'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array-buffer/index.js b/node_modules/core-js/full/array-buffer/index.js new file mode 100644 index 0000000..6f64913 --- /dev/null +++ b/node_modules/core-js/full/array-buffer/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array-buffer'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array-buffer/is-view.js b/node_modules/core-js/full/array-buffer/is-view.js new file mode 100644 index 0000000..ae1a546 --- /dev/null +++ b/node_modules/core-js/full/array-buffer/is-view.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array-buffer/is-view'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array-buffer/slice.js b/node_modules/core-js/full/array-buffer/slice.js new file mode 100644 index 0000000..1886c1e --- /dev/null +++ b/node_modules/core-js/full/array-buffer/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array-buffer/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array-buffer/transfer-to-fixed-length.js b/node_modules/core-js/full/array-buffer/transfer-to-fixed-length.js new file mode 100644 index 0000000..8eb8cc9 --- /dev/null +++ b/node_modules/core-js/full/array-buffer/transfer-to-fixed-length.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array-buffer/transfer-to-fixed-length'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array-buffer/transfer.js b/node_modules/core-js/full/array-buffer/transfer.js new file mode 100644 index 0000000..2906f13 --- /dev/null +++ b/node_modules/core-js/full/array-buffer/transfer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array-buffer/transfer'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/at.js b/node_modules/core-js/full/array/at.js new file mode 100644 index 0000000..edc75ea --- /dev/null +++ b/node_modules/core-js/full/array/at.js @@ -0,0 +1,7 @@ +'use strict'; +var parent = require('../../actual/array/at'); + +// TODO: Remove from `core-js@4` +require('../../modules/esnext.array.at'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/concat.js b/node_modules/core-js/full/array/concat.js new file mode 100644 index 0000000..249f671 --- /dev/null +++ b/node_modules/core-js/full/array/concat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/concat'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/copy-within.js b/node_modules/core-js/full/array/copy-within.js new file mode 100644 index 0000000..e6f7e0e --- /dev/null +++ b/node_modules/core-js/full/array/copy-within.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/copy-within'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/entries.js b/node_modules/core-js/full/array/entries.js new file mode 100644 index 0000000..cca5eaf --- /dev/null +++ b/node_modules/core-js/full/array/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/every.js b/node_modules/core-js/full/array/every.js new file mode 100644 index 0000000..d82e61d --- /dev/null +++ b/node_modules/core-js/full/array/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/every'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/fill.js b/node_modules/core-js/full/array/fill.js new file mode 100644 index 0000000..7ed4273 --- /dev/null +++ b/node_modules/core-js/full/array/fill.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/fill'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/filter-out.js b/node_modules/core-js/full/array/filter-out.js new file mode 100644 index 0000000..21169a1 --- /dev/null +++ b/node_modules/core-js/full/array/filter-out.js @@ -0,0 +1,6 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../../modules/esnext.array.filter-out'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'filterOut'); diff --git a/node_modules/core-js/full/array/filter-reject.js b/node_modules/core-js/full/array/filter-reject.js new file mode 100644 index 0000000..b346de7 --- /dev/null +++ b/node_modules/core-js/full/array/filter-reject.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.array.filter-reject'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'filterReject'); diff --git a/node_modules/core-js/full/array/filter.js b/node_modules/core-js/full/array/filter.js new file mode 100644 index 0000000..910ac63 --- /dev/null +++ b/node_modules/core-js/full/array/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/find-index.js b/node_modules/core-js/full/array/find-index.js new file mode 100644 index 0000000..b3b00d6 --- /dev/null +++ b/node_modules/core-js/full/array/find-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/find-index'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/find-last-index.js b/node_modules/core-js/full/array/find-last-index.js new file mode 100644 index 0000000..6dbba15 --- /dev/null +++ b/node_modules/core-js/full/array/find-last-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/find-last-index'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/find-last.js b/node_modules/core-js/full/array/find-last.js new file mode 100644 index 0000000..60a41af --- /dev/null +++ b/node_modules/core-js/full/array/find-last.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/find-last'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/find.js b/node_modules/core-js/full/array/find.js new file mode 100644 index 0000000..48dfb63 --- /dev/null +++ b/node_modules/core-js/full/array/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/find'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/flat-map.js b/node_modules/core-js/full/array/flat-map.js new file mode 100644 index 0000000..f610ccd --- /dev/null +++ b/node_modules/core-js/full/array/flat-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/flat-map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/flat.js b/node_modules/core-js/full/array/flat.js new file mode 100644 index 0000000..db1d556 --- /dev/null +++ b/node_modules/core-js/full/array/flat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/flat'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/for-each.js b/node_modules/core-js/full/array/for-each.js new file mode 100644 index 0000000..8b5c684 --- /dev/null +++ b/node_modules/core-js/full/array/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/from-async.js b/node_modules/core-js/full/array/from-async.js new file mode 100644 index 0000000..667964a --- /dev/null +++ b/node_modules/core-js/full/array/from-async.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/from-async'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/from.js b/node_modules/core-js/full/array/from.js new file mode 100644 index 0000000..b6eda77 --- /dev/null +++ b/node_modules/core-js/full/array/from.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/from'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/group-by-to-map.js b/node_modules/core-js/full/array/group-by-to-map.js new file mode 100644 index 0000000..70ca4cc --- /dev/null +++ b/node_modules/core-js/full/array/group-by-to-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/group-by-to-map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/group-by.js b/node_modules/core-js/full/array/group-by.js new file mode 100644 index 0000000..12da265 --- /dev/null +++ b/node_modules/core-js/full/array/group-by.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/group-by'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/group-to-map.js b/node_modules/core-js/full/array/group-to-map.js new file mode 100644 index 0000000..46b881d --- /dev/null +++ b/node_modules/core-js/full/array/group-to-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/group-to-map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/group.js b/node_modules/core-js/full/array/group.js new file mode 100644 index 0000000..597fe8e --- /dev/null +++ b/node_modules/core-js/full/array/group.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/group'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/includes.js b/node_modules/core-js/full/array/includes.js new file mode 100644 index 0000000..445a988 --- /dev/null +++ b/node_modules/core-js/full/array/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/index-of.js b/node_modules/core-js/full/array/index-of.js new file mode 100644 index 0000000..6974884 --- /dev/null +++ b/node_modules/core-js/full/array/index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/index.js b/node_modules/core-js/full/array/index.js new file mode 100644 index 0000000..a6de170 --- /dev/null +++ b/node_modules/core-js/full/array/index.js @@ -0,0 +1,14 @@ +'use strict'; +var parent = require('../../actual/array'); +require('../../modules/es.map'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.array.at'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.array.filter-out'); +require('../../modules/esnext.array.filter-reject'); +require('../../modules/esnext.array.is-template-object'); +require('../../modules/esnext.array.last-item'); +require('../../modules/esnext.array.last-index'); +require('../../modules/esnext.array.unique-by'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/is-array.js b/node_modules/core-js/full/array/is-array.js new file mode 100644 index 0000000..5d277cb --- /dev/null +++ b/node_modules/core-js/full/array/is-array.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/is-array'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/is-template-object.js b/node_modules/core-js/full/array/is-template-object.js new file mode 100644 index 0000000..30fe977 --- /dev/null +++ b/node_modules/core-js/full/array/is-template-object.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.array.is-template-object'); +var path = require('../../internals/path'); + +module.exports = path.Array.isTemplateObject; diff --git a/node_modules/core-js/full/array/iterator.js b/node_modules/core-js/full/array/iterator.js new file mode 100644 index 0000000..3ab47e3 --- /dev/null +++ b/node_modules/core-js/full/array/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/join.js b/node_modules/core-js/full/array/join.js new file mode 100644 index 0000000..63f9458 --- /dev/null +++ b/node_modules/core-js/full/array/join.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/join'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/keys.js b/node_modules/core-js/full/array/keys.js new file mode 100644 index 0000000..fb0bfd2 --- /dev/null +++ b/node_modules/core-js/full/array/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/last-index-of.js b/node_modules/core-js/full/array/last-index-of.js new file mode 100644 index 0000000..c013671 --- /dev/null +++ b/node_modules/core-js/full/array/last-index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/last-index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/last-index.js b/node_modules/core-js/full/array/last-index.js new file mode 100644 index 0000000..2f49d08 --- /dev/null +++ b/node_modules/core-js/full/array/last-index.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.array.last-index'); diff --git a/node_modules/core-js/full/array/last-item.js b/node_modules/core-js/full/array/last-item.js new file mode 100644 index 0000000..be6b3d6 --- /dev/null +++ b/node_modules/core-js/full/array/last-item.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.array.last-item'); diff --git a/node_modules/core-js/full/array/map.js b/node_modules/core-js/full/array/map.js new file mode 100644 index 0000000..d26b99e --- /dev/null +++ b/node_modules/core-js/full/array/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/of.js b/node_modules/core-js/full/array/of.js new file mode 100644 index 0000000..ada7f02 --- /dev/null +++ b/node_modules/core-js/full/array/of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/push.js b/node_modules/core-js/full/array/push.js new file mode 100644 index 0000000..f0d432a --- /dev/null +++ b/node_modules/core-js/full/array/push.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/push'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/reduce-right.js b/node_modules/core-js/full/array/reduce-right.js new file mode 100644 index 0000000..d060ec9 --- /dev/null +++ b/node_modules/core-js/full/array/reduce-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/reduce-right'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/reduce.js b/node_modules/core-js/full/array/reduce.js new file mode 100644 index 0000000..31389bd --- /dev/null +++ b/node_modules/core-js/full/array/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/reverse.js b/node_modules/core-js/full/array/reverse.js new file mode 100644 index 0000000..8841bf7 --- /dev/null +++ b/node_modules/core-js/full/array/reverse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/reverse'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/slice.js b/node_modules/core-js/full/array/slice.js new file mode 100644 index 0000000..b113e06 --- /dev/null +++ b/node_modules/core-js/full/array/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/some.js b/node_modules/core-js/full/array/some.js new file mode 100644 index 0000000..21360ff --- /dev/null +++ b/node_modules/core-js/full/array/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/some'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/sort.js b/node_modules/core-js/full/array/sort.js new file mode 100644 index 0000000..05edb2f --- /dev/null +++ b/node_modules/core-js/full/array/sort.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/sort'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/splice.js b/node_modules/core-js/full/array/splice.js new file mode 100644 index 0000000..9bdd09c --- /dev/null +++ b/node_modules/core-js/full/array/splice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/splice'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/to-reversed.js b/node_modules/core-js/full/array/to-reversed.js new file mode 100644 index 0000000..ac88cd1 --- /dev/null +++ b/node_modules/core-js/full/array/to-reversed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/to-reversed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/to-sorted.js b/node_modules/core-js/full/array/to-sorted.js new file mode 100644 index 0000000..45e8491 --- /dev/null +++ b/node_modules/core-js/full/array/to-sorted.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/to-sorted'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/to-spliced.js b/node_modules/core-js/full/array/to-spliced.js new file mode 100644 index 0000000..219c3ef --- /dev/null +++ b/node_modules/core-js/full/array/to-spliced.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/to-spliced'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/unique-by.js b/node_modules/core-js/full/array/unique-by.js new file mode 100644 index 0000000..8bb3b36 --- /dev/null +++ b/node_modules/core-js/full/array/unique-by.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.array.unique-by'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'uniqueBy'); diff --git a/node_modules/core-js/full/array/unshift.js b/node_modules/core-js/full/array/unshift.js new file mode 100644 index 0000000..ab7ecb8 --- /dev/null +++ b/node_modules/core-js/full/array/unshift.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/unshift'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/values.js b/node_modules/core-js/full/array/values.js new file mode 100644 index 0000000..61ee0a9 --- /dev/null +++ b/node_modules/core-js/full/array/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/values'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/at.js b/node_modules/core-js/full/array/virtual/at.js new file mode 100644 index 0000000..3780e74 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/at.js @@ -0,0 +1,7 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/at'); + +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.array.at'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/concat.js b/node_modules/core-js/full/array/virtual/concat.js new file mode 100644 index 0000000..5909ae1 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/concat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/concat'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/copy-within.js b/node_modules/core-js/full/array/virtual/copy-within.js new file mode 100644 index 0000000..da9f25b --- /dev/null +++ b/node_modules/core-js/full/array/virtual/copy-within.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/copy-within'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/entries.js b/node_modules/core-js/full/array/virtual/entries.js new file mode 100644 index 0000000..e8d3408 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/every.js b/node_modules/core-js/full/array/virtual/every.js new file mode 100644 index 0000000..0365070 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/every'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/fill.js b/node_modules/core-js/full/array/virtual/fill.js new file mode 100644 index 0000000..7c55451 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/fill.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/fill'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/filter-out.js b/node_modules/core-js/full/array/virtual/filter-out.js new file mode 100644 index 0000000..8bf9a24 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/filter-out.js @@ -0,0 +1,6 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.array.filter-out'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'filterOut'); diff --git a/node_modules/core-js/full/array/virtual/filter-reject.js b/node_modules/core-js/full/array/virtual/filter-reject.js new file mode 100644 index 0000000..094f90d --- /dev/null +++ b/node_modules/core-js/full/array/virtual/filter-reject.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/esnext.array.filter-reject'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'filterReject'); diff --git a/node_modules/core-js/full/array/virtual/filter.js b/node_modules/core-js/full/array/virtual/filter.js new file mode 100644 index 0000000..f1f4713 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/find-index.js b/node_modules/core-js/full/array/virtual/find-index.js new file mode 100644 index 0000000..78f64de --- /dev/null +++ b/node_modules/core-js/full/array/virtual/find-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/find-index'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/find-last-index.js b/node_modules/core-js/full/array/virtual/find-last-index.js new file mode 100644 index 0000000..d681c60 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/find-last-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/find-last-index'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/find-last.js b/node_modules/core-js/full/array/virtual/find-last.js new file mode 100644 index 0000000..cbe5fd0 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/find-last.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/find-last'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/find.js b/node_modules/core-js/full/array/virtual/find.js new file mode 100644 index 0000000..fda73cb --- /dev/null +++ b/node_modules/core-js/full/array/virtual/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/find'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/flat-map.js b/node_modules/core-js/full/array/virtual/flat-map.js new file mode 100644 index 0000000..4c95ebd --- /dev/null +++ b/node_modules/core-js/full/array/virtual/flat-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/flat-map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/flat.js b/node_modules/core-js/full/array/virtual/flat.js new file mode 100644 index 0000000..801557b --- /dev/null +++ b/node_modules/core-js/full/array/virtual/flat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/flat'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/for-each.js b/node_modules/core-js/full/array/virtual/for-each.js new file mode 100644 index 0000000..4f3c6b4 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/group-by-to-map.js b/node_modules/core-js/full/array/virtual/group-by-to-map.js new file mode 100644 index 0000000..5ef4d2c --- /dev/null +++ b/node_modules/core-js/full/array/virtual/group-by-to-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/group-by-to-map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/group-by.js b/node_modules/core-js/full/array/virtual/group-by.js new file mode 100644 index 0000000..69cb432 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/group-by.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/group-by'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/group-to-map.js b/node_modules/core-js/full/array/virtual/group-to-map.js new file mode 100644 index 0000000..f400392 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/group-to-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/group-to-map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/group.js b/node_modules/core-js/full/array/virtual/group.js new file mode 100644 index 0000000..e207bea --- /dev/null +++ b/node_modules/core-js/full/array/virtual/group.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/group'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/includes.js b/node_modules/core-js/full/array/virtual/includes.js new file mode 100644 index 0000000..87036aa --- /dev/null +++ b/node_modules/core-js/full/array/virtual/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/index-of.js b/node_modules/core-js/full/array/virtual/index-of.js new file mode 100644 index 0000000..3bed9e3 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/index.js b/node_modules/core-js/full/array/virtual/index.js new file mode 100644 index 0000000..540a9c5 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/index.js @@ -0,0 +1,10 @@ +'use strict'; +var parent = require('../../../actual/array/virtual'); +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.array.at'); +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.array.filter-out'); +require('../../../modules/esnext.array.filter-reject'); +require('../../../modules/esnext.array.unique-by'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/iterator.js b/node_modules/core-js/full/array/virtual/iterator.js new file mode 100644 index 0000000..7270ac1 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/join.js b/node_modules/core-js/full/array/virtual/join.js new file mode 100644 index 0000000..da77b62 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/join.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/join'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/keys.js b/node_modules/core-js/full/array/virtual/keys.js new file mode 100644 index 0000000..d0dac79 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/last-index-of.js b/node_modules/core-js/full/array/virtual/last-index-of.js new file mode 100644 index 0000000..255dbfc --- /dev/null +++ b/node_modules/core-js/full/array/virtual/last-index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/last-index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/map.js b/node_modules/core-js/full/array/virtual/map.js new file mode 100644 index 0000000..4c48db4 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/push.js b/node_modules/core-js/full/array/virtual/push.js new file mode 100644 index 0000000..19e76ba --- /dev/null +++ b/node_modules/core-js/full/array/virtual/push.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/push'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/reduce-right.js b/node_modules/core-js/full/array/virtual/reduce-right.js new file mode 100644 index 0000000..2af9769 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/reduce-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/reduce-right'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/reduce.js b/node_modules/core-js/full/array/virtual/reduce.js new file mode 100644 index 0000000..db9f088 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/reverse.js b/node_modules/core-js/full/array/virtual/reverse.js new file mode 100644 index 0000000..68e2e48 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/reverse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/reverse'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/slice.js b/node_modules/core-js/full/array/virtual/slice.js new file mode 100644 index 0000000..3a59289 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/some.js b/node_modules/core-js/full/array/virtual/some.js new file mode 100644 index 0000000..629feb3 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/some'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/sort.js b/node_modules/core-js/full/array/virtual/sort.js new file mode 100644 index 0000000..c10bc93 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/sort.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/sort'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/splice.js b/node_modules/core-js/full/array/virtual/splice.js new file mode 100644 index 0000000..f0cf444 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/splice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/splice'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/to-reversed.js b/node_modules/core-js/full/array/virtual/to-reversed.js new file mode 100644 index 0000000..7e90ce0 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/to-reversed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/to-reversed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/to-sorted.js b/node_modules/core-js/full/array/virtual/to-sorted.js new file mode 100644 index 0000000..d7c3698 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/to-sorted.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/to-sorted'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/to-spliced.js b/node_modules/core-js/full/array/virtual/to-spliced.js new file mode 100644 index 0000000..f8abf12 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/to-spliced.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/to-spliced'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/unique-by.js b/node_modules/core-js/full/array/virtual/unique-by.js new file mode 100644 index 0000000..d9c0282 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/unique-by.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../../modules/es.map'); +require('../../../modules/esnext.array.unique-by'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Array', 'uniqueBy'); diff --git a/node_modules/core-js/full/array/virtual/unshift.js b/node_modules/core-js/full/array/virtual/unshift.js new file mode 100644 index 0000000..20c1022 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/unshift.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/unshift'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/values.js b/node_modules/core-js/full/array/virtual/values.js new file mode 100644 index 0000000..d88e6f4 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/values'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/virtual/with.js b/node_modules/core-js/full/array/virtual/with.js new file mode 100644 index 0000000..51abc80 --- /dev/null +++ b/node_modules/core-js/full/array/virtual/with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/array/virtual/with'); + +module.exports = parent; diff --git a/node_modules/core-js/full/array/with.js b/node_modules/core-js/full/array/with.js new file mode 100644 index 0000000..71c9c57 --- /dev/null +++ b/node_modules/core-js/full/array/with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/array/with'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-disposable-stack/constructor.js b/node_modules/core-js/full/async-disposable-stack/constructor.js new file mode 100644 index 0000000..9726971 --- /dev/null +++ b/node_modules/core-js/full/async-disposable-stack/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-disposable-stack/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-disposable-stack/index.js b/node_modules/core-js/full/async-disposable-stack/index.js new file mode 100644 index 0000000..5958353 --- /dev/null +++ b/node_modules/core-js/full/async-disposable-stack/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-disposable-stack'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/as-indexed-pairs.js b/node_modules/core-js/full/async-iterator/as-indexed-pairs.js new file mode 100644 index 0000000..0dee720 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/as-indexed-pairs.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.as-indexed-pairs'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('AsyncIterator', 'asIndexedPairs'); diff --git a/node_modules/core-js/full/async-iterator/async-dispose.js b/node_modules/core-js/full/async-iterator/async-dispose.js new file mode 100644 index 0000000..fb92148 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/async-dispose.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-iterator/async-dispose'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/drop.js b/node_modules/core-js/full/async-iterator/drop.js new file mode 100644 index 0000000..7b3e510 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/drop.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-iterator/drop'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/every.js b/node_modules/core-js/full/async-iterator/every.js new file mode 100644 index 0000000..22304e4 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-iterator/every'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/filter.js b/node_modules/core-js/full/async-iterator/filter.js new file mode 100644 index 0000000..b50edd6 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-iterator/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/find.js b/node_modules/core-js/full/async-iterator/find.js new file mode 100644 index 0000000..9288425 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-iterator/find'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/flat-map.js b/node_modules/core-js/full/async-iterator/flat-map.js new file mode 100644 index 0000000..8ec8656 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/flat-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-iterator/flat-map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/for-each.js b/node_modules/core-js/full/async-iterator/for-each.js new file mode 100644 index 0000000..ae36f43 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-iterator/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/from.js b/node_modules/core-js/full/async-iterator/from.js new file mode 100644 index 0000000..3023df9 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/from.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-iterator/from'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/index.js b/node_modules/core-js/full/async-iterator/index.js new file mode 100644 index 0000000..2f8a40e --- /dev/null +++ b/node_modules/core-js/full/async-iterator/index.js @@ -0,0 +1,7 @@ +'use strict'; +var parent = require('../../actual/async-iterator'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.async-iterator.as-indexed-pairs'); +require('../../modules/esnext.async-iterator.indexed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/indexed.js b/node_modules/core-js/full/async-iterator/indexed.js new file mode 100644 index 0000000..915bf46 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/indexed.js @@ -0,0 +1,10 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../../modules/es.object.to-string'); +require('../../modules/es.promise'); +require('../../modules/esnext.async-iterator.constructor'); +require('../../modules/esnext.async-iterator.indexed'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('AsyncIterator', 'indexed'); diff --git a/node_modules/core-js/full/async-iterator/map.js b/node_modules/core-js/full/async-iterator/map.js new file mode 100644 index 0000000..516dd53 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-iterator/map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/reduce.js b/node_modules/core-js/full/async-iterator/reduce.js new file mode 100644 index 0000000..eedfb77 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-iterator/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/some.js b/node_modules/core-js/full/async-iterator/some.js new file mode 100644 index 0000000..aec975a --- /dev/null +++ b/node_modules/core-js/full/async-iterator/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-iterator/some'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/take.js b/node_modules/core-js/full/async-iterator/take.js new file mode 100644 index 0000000..b921202 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/take.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-iterator/take'); + +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/to-array.js b/node_modules/core-js/full/async-iterator/to-array.js new file mode 100644 index 0000000..df3bad6 --- /dev/null +++ b/node_modules/core-js/full/async-iterator/to-array.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/async-iterator/to-array'); + +module.exports = parent; diff --git a/node_modules/core-js/full/atob.js b/node_modules/core-js/full/atob.js new file mode 100644 index 0000000..b133156 --- /dev/null +++ b/node_modules/core-js/full/atob.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/atob'); + +module.exports = parent; diff --git a/node_modules/core-js/full/bigint/index.js b/node_modules/core-js/full/bigint/index.js new file mode 100644 index 0000000..f00d835 --- /dev/null +++ b/node_modules/core-js/full/bigint/index.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.bigint.range'); +var BigInt = require('../../internals/path').BigInt; + +module.exports = BigInt; diff --git a/node_modules/core-js/full/bigint/range.js b/node_modules/core-js/full/bigint/range.js new file mode 100644 index 0000000..dac0848 --- /dev/null +++ b/node_modules/core-js/full/bigint/range.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.bigint.range'); +var BigInt = require('../../internals/path').BigInt; + +module.exports = BigInt && BigInt.range; diff --git a/node_modules/core-js/full/btoa.js b/node_modules/core-js/full/btoa.js new file mode 100644 index 0000000..6dc6cdf --- /dev/null +++ b/node_modules/core-js/full/btoa.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/btoa'); + +module.exports = parent; diff --git a/node_modules/core-js/full/clear-immediate.js b/node_modules/core-js/full/clear-immediate.js new file mode 100644 index 0000000..34408f3 --- /dev/null +++ b/node_modules/core-js/full/clear-immediate.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/clear-immediate'); + +module.exports = parent; diff --git a/node_modules/core-js/full/composite-key.js b/node_modules/core-js/full/composite-key.js new file mode 100644 index 0000000..6da3f57 --- /dev/null +++ b/node_modules/core-js/full/composite-key.js @@ -0,0 +1,5 @@ +'use strict'; +require('../modules/esnext.composite-key'); +var path = require('../internals/path'); + +module.exports = path.compositeKey; diff --git a/node_modules/core-js/full/composite-symbol.js b/node_modules/core-js/full/composite-symbol.js new file mode 100644 index 0000000..50b220c --- /dev/null +++ b/node_modules/core-js/full/composite-symbol.js @@ -0,0 +1,6 @@ +'use strict'; +require('../modules/es.symbol'); +require('../modules/esnext.composite-symbol'); +var path = require('../internals/path'); + +module.exports = path.compositeSymbol; diff --git a/node_modules/core-js/full/data-view/get-float16.js b/node_modules/core-js/full/data-view/get-float16.js new file mode 100644 index 0000000..03caa59 --- /dev/null +++ b/node_modules/core-js/full/data-view/get-float16.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/data-view/get-float16'); + +module.exports = parent; diff --git a/node_modules/core-js/full/data-view/get-uint8-clamped.js b/node_modules/core-js/full/data-view/get-uint8-clamped.js new file mode 100644 index 0000000..8311c07 --- /dev/null +++ b/node_modules/core-js/full/data-view/get-uint8-clamped.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.data-view.get-uint8-clamped'); diff --git a/node_modules/core-js/full/data-view/index.js b/node_modules/core-js/full/data-view/index.js new file mode 100644 index 0000000..18d16c4 --- /dev/null +++ b/node_modules/core-js/full/data-view/index.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('../../actual/data-view'); +require('../../modules/esnext.data-view.get-uint8-clamped'); +require('../../modules/esnext.data-view.set-uint8-clamped'); + +module.exports = parent; diff --git a/node_modules/core-js/full/data-view/set-float16.js b/node_modules/core-js/full/data-view/set-float16.js new file mode 100644 index 0000000..e884df9 --- /dev/null +++ b/node_modules/core-js/full/data-view/set-float16.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/data-view/set-float16'); + +module.exports = parent; diff --git a/node_modules/core-js/full/data-view/set-uint8-clamped.js b/node_modules/core-js/full/data-view/set-uint8-clamped.js new file mode 100644 index 0000000..e2bbae2 --- /dev/null +++ b/node_modules/core-js/full/data-view/set-uint8-clamped.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.data-view.set-uint8-clamped'); diff --git a/node_modules/core-js/full/date/get-year.js b/node_modules/core-js/full/date/get-year.js new file mode 100644 index 0000000..4ef2dc1 --- /dev/null +++ b/node_modules/core-js/full/date/get-year.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/date/get-year'); + +module.exports = parent; diff --git a/node_modules/core-js/full/date/index.js b/node_modules/core-js/full/date/index.js new file mode 100644 index 0000000..4077bde --- /dev/null +++ b/node_modules/core-js/full/date/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/date'); + +module.exports = parent; diff --git a/node_modules/core-js/full/date/now.js b/node_modules/core-js/full/date/now.js new file mode 100644 index 0000000..87da638 --- /dev/null +++ b/node_modules/core-js/full/date/now.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/date/now'); + +module.exports = parent; diff --git a/node_modules/core-js/full/date/set-year.js b/node_modules/core-js/full/date/set-year.js new file mode 100644 index 0000000..79c0ab3 --- /dev/null +++ b/node_modules/core-js/full/date/set-year.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/date/set-year'); + +module.exports = parent; diff --git a/node_modules/core-js/full/date/to-gmt-string.js b/node_modules/core-js/full/date/to-gmt-string.js new file mode 100644 index 0000000..53aa627 --- /dev/null +++ b/node_modules/core-js/full/date/to-gmt-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/date/to-gmt-string'); + +module.exports = parent; diff --git a/node_modules/core-js/full/date/to-iso-string.js b/node_modules/core-js/full/date/to-iso-string.js new file mode 100644 index 0000000..c8041d0 --- /dev/null +++ b/node_modules/core-js/full/date/to-iso-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/date/to-iso-string'); + +module.exports = parent; diff --git a/node_modules/core-js/full/date/to-json.js b/node_modules/core-js/full/date/to-json.js new file mode 100644 index 0000000..d80c14a --- /dev/null +++ b/node_modules/core-js/full/date/to-json.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/date/to-json'); + +module.exports = parent; diff --git a/node_modules/core-js/full/date/to-primitive.js b/node_modules/core-js/full/date/to-primitive.js new file mode 100644 index 0000000..7e8094e --- /dev/null +++ b/node_modules/core-js/full/date/to-primitive.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/date/to-primitive'); + +module.exports = parent; diff --git a/node_modules/core-js/full/date/to-string.js b/node_modules/core-js/full/date/to-string.js new file mode 100644 index 0000000..15f2903 --- /dev/null +++ b/node_modules/core-js/full/date/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/date/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/full/disposable-stack/constructor.js b/node_modules/core-js/full/disposable-stack/constructor.js new file mode 100644 index 0000000..4ee0a30 --- /dev/null +++ b/node_modules/core-js/full/disposable-stack/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/disposable-stack/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/full/disposable-stack/index.js b/node_modules/core-js/full/disposable-stack/index.js new file mode 100644 index 0000000..a0c0de9 --- /dev/null +++ b/node_modules/core-js/full/disposable-stack/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/disposable-stack'); + +module.exports = parent; diff --git a/node_modules/core-js/full/dom-collections/for-each.js b/node_modules/core-js/full/dom-collections/for-each.js new file mode 100644 index 0000000..5172d59 --- /dev/null +++ b/node_modules/core-js/full/dom-collections/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/dom-collections/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/full/dom-collections/index.js b/node_modules/core-js/full/dom-collections/index.js new file mode 100644 index 0000000..1239518 --- /dev/null +++ b/node_modules/core-js/full/dom-collections/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/dom-collections'); + +module.exports = parent; diff --git a/node_modules/core-js/full/dom-collections/iterator.js b/node_modules/core-js/full/dom-collections/iterator.js new file mode 100644 index 0000000..8c31637 --- /dev/null +++ b/node_modules/core-js/full/dom-collections/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/dom-collections/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/full/dom-exception/constructor.js b/node_modules/core-js/full/dom-exception/constructor.js new file mode 100644 index 0000000..873ebbf --- /dev/null +++ b/node_modules/core-js/full/dom-exception/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/dom-exception/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/full/dom-exception/index.js b/node_modules/core-js/full/dom-exception/index.js new file mode 100644 index 0000000..31290fc --- /dev/null +++ b/node_modules/core-js/full/dom-exception/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/dom-exception'); + +module.exports = parent; diff --git a/node_modules/core-js/full/dom-exception/to-string-tag.js b/node_modules/core-js/full/dom-exception/to-string-tag.js new file mode 100644 index 0000000..50261b6 --- /dev/null +++ b/node_modules/core-js/full/dom-exception/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/dom-exception/to-string-tag'); + +module.exports = parent; diff --git a/node_modules/core-js/full/error/constructor.js b/node_modules/core-js/full/error/constructor.js new file mode 100644 index 0000000..26a72a6 --- /dev/null +++ b/node_modules/core-js/full/error/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/error/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/full/error/index.js b/node_modules/core-js/full/error/index.js new file mode 100644 index 0000000..1885dea --- /dev/null +++ b/node_modules/core-js/full/error/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/error'); + +module.exports = parent; diff --git a/node_modules/core-js/full/error/to-string.js b/node_modules/core-js/full/error/to-string.js new file mode 100644 index 0000000..1b33052 --- /dev/null +++ b/node_modules/core-js/full/error/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/error/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/full/escape.js b/node_modules/core-js/full/escape.js new file mode 100644 index 0000000..6648b3a --- /dev/null +++ b/node_modules/core-js/full/escape.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/escape'); + +module.exports = parent; diff --git a/node_modules/core-js/full/function/bind.js b/node_modules/core-js/full/function/bind.js new file mode 100644 index 0000000..33687e0 --- /dev/null +++ b/node_modules/core-js/full/function/bind.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/function/bind'); + +module.exports = parent; diff --git a/node_modules/core-js/full/function/demethodize.js b/node_modules/core-js/full/function/demethodize.js new file mode 100644 index 0000000..6e96aa1 --- /dev/null +++ b/node_modules/core-js/full/function/demethodize.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.function.demethodize'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Function', 'demethodize'); diff --git a/node_modules/core-js/full/function/has-instance.js b/node_modules/core-js/full/function/has-instance.js new file mode 100644 index 0000000..12219cb --- /dev/null +++ b/node_modules/core-js/full/function/has-instance.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/function/has-instance'); + +module.exports = parent; diff --git a/node_modules/core-js/full/function/index.js b/node_modules/core-js/full/function/index.js new file mode 100644 index 0000000..4ecdac5 --- /dev/null +++ b/node_modules/core-js/full/function/index.js @@ -0,0 +1,9 @@ +'use strict'; +var parent = require('../../actual/function'); +require('../../modules/esnext.function.demethodize'); +require('../../modules/esnext.function.is-callable'); +require('../../modules/esnext.function.is-constructor'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.function.un-this'); + +module.exports = parent; diff --git a/node_modules/core-js/full/function/is-callable.js b/node_modules/core-js/full/function/is-callable.js new file mode 100644 index 0000000..e481b3c --- /dev/null +++ b/node_modules/core-js/full/function/is-callable.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.function.is-callable'); +var path = require('../../internals/path'); + +module.exports = path.Function.isCallable; diff --git a/node_modules/core-js/full/function/is-constructor.js b/node_modules/core-js/full/function/is-constructor.js new file mode 100644 index 0000000..7256eac --- /dev/null +++ b/node_modules/core-js/full/function/is-constructor.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.function.is-constructor'); +var path = require('../../internals/path'); + +module.exports = path.Function.isConstructor; diff --git a/node_modules/core-js/full/function/metadata.js b/node_modules/core-js/full/function/metadata.js new file mode 100644 index 0000000..5b33d15 --- /dev/null +++ b/node_modules/core-js/full/function/metadata.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/function/metadata'); + +module.exports = parent; diff --git a/node_modules/core-js/full/function/name.js b/node_modules/core-js/full/function/name.js new file mode 100644 index 0000000..80daa2d --- /dev/null +++ b/node_modules/core-js/full/function/name.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/function/name'); + +module.exports = parent; diff --git a/node_modules/core-js/full/function/un-this.js b/node_modules/core-js/full/function/un-this.js new file mode 100644 index 0000000..a9561ca --- /dev/null +++ b/node_modules/core-js/full/function/un-this.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.function.un-this'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Function', 'unThis'); diff --git a/node_modules/core-js/full/function/virtual/bind.js b/node_modules/core-js/full/function/virtual/bind.js new file mode 100644 index 0000000..2262d5f --- /dev/null +++ b/node_modules/core-js/full/function/virtual/bind.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/function/virtual/bind'); + +module.exports = parent; diff --git a/node_modules/core-js/full/function/virtual/demethodize.js b/node_modules/core-js/full/function/virtual/demethodize.js new file mode 100644 index 0000000..47318a4 --- /dev/null +++ b/node_modules/core-js/full/function/virtual/demethodize.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/esnext.function.demethodize'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Function', 'demethodize'); diff --git a/node_modules/core-js/full/function/virtual/index.js b/node_modules/core-js/full/function/virtual/index.js new file mode 100644 index 0000000..76d5952 --- /dev/null +++ b/node_modules/core-js/full/function/virtual/index.js @@ -0,0 +1,7 @@ +'use strict'; +var parent = require('../../../actual/function/virtual'); +require('../../../modules/esnext.function.demethodize'); +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.function.un-this'); + +module.exports = parent; diff --git a/node_modules/core-js/full/function/virtual/un-this.js b/node_modules/core-js/full/function/virtual/un-this.js new file mode 100644 index 0000000..671c189 --- /dev/null +++ b/node_modules/core-js/full/function/virtual/un-this.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../../modules/esnext.function.un-this'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('Function', 'unThis'); diff --git a/node_modules/core-js/full/get-iterator-method.js b/node_modules/core-js/full/get-iterator-method.js new file mode 100644 index 0000000..803708e --- /dev/null +++ b/node_modules/core-js/full/get-iterator-method.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/get-iterator-method'); + +module.exports = parent; diff --git a/node_modules/core-js/full/get-iterator.js b/node_modules/core-js/full/get-iterator.js new file mode 100644 index 0000000..d22ebe3 --- /dev/null +++ b/node_modules/core-js/full/get-iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/get-iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/full/global-this.js b/node_modules/core-js/full/global-this.js new file mode 100644 index 0000000..fd3dec9 --- /dev/null +++ b/node_modules/core-js/full/global-this.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: remove from `core-js@4` +require('../modules/esnext.global-this'); + +var parent = require('../actual/global-this'); + +module.exports = parent; diff --git a/node_modules/core-js/full/index.js b/node_modules/core-js/full/index.js new file mode 100644 index 0000000..8ff1dbf --- /dev/null +++ b/node_modules/core-js/full/index.js @@ -0,0 +1,483 @@ +'use strict'; +require('../modules/es.symbol'); +require('../modules/es.symbol.description'); +require('../modules/es.symbol.async-iterator'); +require('../modules/es.symbol.has-instance'); +require('../modules/es.symbol.is-concat-spreadable'); +require('../modules/es.symbol.iterator'); +require('../modules/es.symbol.match'); +require('../modules/es.symbol.match-all'); +require('../modules/es.symbol.replace'); +require('../modules/es.symbol.search'); +require('../modules/es.symbol.species'); +require('../modules/es.symbol.split'); +require('../modules/es.symbol.to-primitive'); +require('../modules/es.symbol.to-string-tag'); +require('../modules/es.symbol.unscopables'); +require('../modules/es.error.cause'); +require('../modules/es.error.to-string'); +require('../modules/es.aggregate-error'); +require('../modules/es.aggregate-error.cause'); +require('../modules/es.array.at'); +require('../modules/es.array.concat'); +require('../modules/es.array.copy-within'); +require('../modules/es.array.every'); +require('../modules/es.array.fill'); +require('../modules/es.array.filter'); +require('../modules/es.array.find'); +require('../modules/es.array.find-index'); +require('../modules/es.array.find-last'); +require('../modules/es.array.find-last-index'); +require('../modules/es.array.flat'); +require('../modules/es.array.flat-map'); +require('../modules/es.array.for-each'); +require('../modules/es.array.from'); +require('../modules/es.array.includes'); +require('../modules/es.array.index-of'); +require('../modules/es.array.is-array'); +require('../modules/es.array.iterator'); +require('../modules/es.array.join'); +require('../modules/es.array.last-index-of'); +require('../modules/es.array.map'); +require('../modules/es.array.of'); +require('../modules/es.array.push'); +require('../modules/es.array.reduce'); +require('../modules/es.array.reduce-right'); +require('../modules/es.array.reverse'); +require('../modules/es.array.slice'); +require('../modules/es.array.some'); +require('../modules/es.array.sort'); +require('../modules/es.array.species'); +require('../modules/es.array.splice'); +require('../modules/es.array.to-reversed'); +require('../modules/es.array.to-sorted'); +require('../modules/es.array.to-spliced'); +require('../modules/es.array.unscopables.flat'); +require('../modules/es.array.unscopables.flat-map'); +require('../modules/es.array.unshift'); +require('../modules/es.array.with'); +require('../modules/es.array-buffer.constructor'); +require('../modules/es.array-buffer.is-view'); +require('../modules/es.array-buffer.slice'); +require('../modules/es.data-view'); +require('../modules/es.array-buffer.detached'); +require('../modules/es.array-buffer.transfer'); +require('../modules/es.array-buffer.transfer-to-fixed-length'); +require('../modules/es.date.get-year'); +require('../modules/es.date.now'); +require('../modules/es.date.set-year'); +require('../modules/es.date.to-gmt-string'); +require('../modules/es.date.to-iso-string'); +require('../modules/es.date.to-json'); +require('../modules/es.date.to-primitive'); +require('../modules/es.date.to-string'); +require('../modules/es.escape'); +require('../modules/es.function.bind'); +require('../modules/es.function.has-instance'); +require('../modules/es.function.name'); +require('../modules/es.global-this'); +require('../modules/es.json.stringify'); +require('../modules/es.json.to-string-tag'); +require('../modules/es.map'); +require('../modules/es.map.group-by'); +require('../modules/es.math.acosh'); +require('../modules/es.math.asinh'); +require('../modules/es.math.atanh'); +require('../modules/es.math.cbrt'); +require('../modules/es.math.clz32'); +require('../modules/es.math.cosh'); +require('../modules/es.math.expm1'); +require('../modules/es.math.fround'); +require('../modules/es.math.hypot'); +require('../modules/es.math.imul'); +require('../modules/es.math.log10'); +require('../modules/es.math.log1p'); +require('../modules/es.math.log2'); +require('../modules/es.math.sign'); +require('../modules/es.math.sinh'); +require('../modules/es.math.tanh'); +require('../modules/es.math.to-string-tag'); +require('../modules/es.math.trunc'); +require('../modules/es.number.constructor'); +require('../modules/es.number.epsilon'); +require('../modules/es.number.is-finite'); +require('../modules/es.number.is-integer'); +require('../modules/es.number.is-nan'); +require('../modules/es.number.is-safe-integer'); +require('../modules/es.number.max-safe-integer'); +require('../modules/es.number.min-safe-integer'); +require('../modules/es.number.parse-float'); +require('../modules/es.number.parse-int'); +require('../modules/es.number.to-exponential'); +require('../modules/es.number.to-fixed'); +require('../modules/es.number.to-precision'); +require('../modules/es.object.assign'); +require('../modules/es.object.create'); +require('../modules/es.object.define-getter'); +require('../modules/es.object.define-properties'); +require('../modules/es.object.define-property'); +require('../modules/es.object.define-setter'); +require('../modules/es.object.entries'); +require('../modules/es.object.freeze'); +require('../modules/es.object.from-entries'); +require('../modules/es.object.get-own-property-descriptor'); +require('../modules/es.object.get-own-property-descriptors'); +require('../modules/es.object.get-own-property-names'); +require('../modules/es.object.get-prototype-of'); +require('../modules/es.object.group-by'); +require('../modules/es.object.has-own'); +require('../modules/es.object.is'); +require('../modules/es.object.is-extensible'); +require('../modules/es.object.is-frozen'); +require('../modules/es.object.is-sealed'); +require('../modules/es.object.keys'); +require('../modules/es.object.lookup-getter'); +require('../modules/es.object.lookup-setter'); +require('../modules/es.object.prevent-extensions'); +require('../modules/es.object.proto'); +require('../modules/es.object.seal'); +require('../modules/es.object.set-prototype-of'); +require('../modules/es.object.to-string'); +require('../modules/es.object.values'); +require('../modules/es.parse-float'); +require('../modules/es.parse-int'); +require('../modules/es.promise'); +require('../modules/es.promise.all-settled'); +require('../modules/es.promise.any'); +require('../modules/es.promise.finally'); +require('../modules/es.promise.with-resolvers'); +require('../modules/es.reflect.apply'); +require('../modules/es.reflect.construct'); +require('../modules/es.reflect.define-property'); +require('../modules/es.reflect.delete-property'); +require('../modules/es.reflect.get'); +require('../modules/es.reflect.get-own-property-descriptor'); +require('../modules/es.reflect.get-prototype-of'); +require('../modules/es.reflect.has'); +require('../modules/es.reflect.is-extensible'); +require('../modules/es.reflect.own-keys'); +require('../modules/es.reflect.prevent-extensions'); +require('../modules/es.reflect.set'); +require('../modules/es.reflect.set-prototype-of'); +require('../modules/es.reflect.to-string-tag'); +require('../modules/es.regexp.constructor'); +require('../modules/es.regexp.dot-all'); +require('../modules/es.regexp.exec'); +require('../modules/es.regexp.flags'); +require('../modules/es.regexp.sticky'); +require('../modules/es.regexp.test'); +require('../modules/es.regexp.to-string'); +require('../modules/es.set'); +require('../modules/es.set.difference.v2'); +require('../modules/es.set.intersection.v2'); +require('../modules/es.set.is-disjoint-from.v2'); +require('../modules/es.set.is-subset-of.v2'); +require('../modules/es.set.is-superset-of.v2'); +require('../modules/es.set.symmetric-difference.v2'); +require('../modules/es.set.union.v2'); +require('../modules/es.string.at-alternative'); +require('../modules/es.string.code-point-at'); +require('../modules/es.string.ends-with'); +require('../modules/es.string.from-code-point'); +require('../modules/es.string.includes'); +require('../modules/es.string.is-well-formed'); +require('../modules/es.string.iterator'); +require('../modules/es.string.match'); +require('../modules/es.string.match-all'); +require('../modules/es.string.pad-end'); +require('../modules/es.string.pad-start'); +require('../modules/es.string.raw'); +require('../modules/es.string.repeat'); +require('../modules/es.string.replace'); +require('../modules/es.string.replace-all'); +require('../modules/es.string.search'); +require('../modules/es.string.split'); +require('../modules/es.string.starts-with'); +require('../modules/es.string.substr'); +require('../modules/es.string.to-well-formed'); +require('../modules/es.string.trim'); +require('../modules/es.string.trim-end'); +require('../modules/es.string.trim-start'); +require('../modules/es.string.anchor'); +require('../modules/es.string.big'); +require('../modules/es.string.blink'); +require('../modules/es.string.bold'); +require('../modules/es.string.fixed'); +require('../modules/es.string.fontcolor'); +require('../modules/es.string.fontsize'); +require('../modules/es.string.italics'); +require('../modules/es.string.link'); +require('../modules/es.string.small'); +require('../modules/es.string.strike'); +require('../modules/es.string.sub'); +require('../modules/es.string.sup'); +require('../modules/es.typed-array.float32-array'); +require('../modules/es.typed-array.float64-array'); +require('../modules/es.typed-array.int8-array'); +require('../modules/es.typed-array.int16-array'); +require('../modules/es.typed-array.int32-array'); +require('../modules/es.typed-array.uint8-array'); +require('../modules/es.typed-array.uint8-clamped-array'); +require('../modules/es.typed-array.uint16-array'); +require('../modules/es.typed-array.uint32-array'); +require('../modules/es.typed-array.at'); +require('../modules/es.typed-array.copy-within'); +require('../modules/es.typed-array.every'); +require('../modules/es.typed-array.fill'); +require('../modules/es.typed-array.filter'); +require('../modules/es.typed-array.find'); +require('../modules/es.typed-array.find-index'); +require('../modules/es.typed-array.find-last'); +require('../modules/es.typed-array.find-last-index'); +require('../modules/es.typed-array.for-each'); +require('../modules/es.typed-array.from'); +require('../modules/es.typed-array.includes'); +require('../modules/es.typed-array.index-of'); +require('../modules/es.typed-array.iterator'); +require('../modules/es.typed-array.join'); +require('../modules/es.typed-array.last-index-of'); +require('../modules/es.typed-array.map'); +require('../modules/es.typed-array.of'); +require('../modules/es.typed-array.reduce'); +require('../modules/es.typed-array.reduce-right'); +require('../modules/es.typed-array.reverse'); +require('../modules/es.typed-array.set'); +require('../modules/es.typed-array.slice'); +require('../modules/es.typed-array.some'); +require('../modules/es.typed-array.sort'); +require('../modules/es.typed-array.subarray'); +require('../modules/es.typed-array.to-locale-string'); +require('../modules/es.typed-array.to-reversed'); +require('../modules/es.typed-array.to-sorted'); +require('../modules/es.typed-array.to-string'); +require('../modules/es.typed-array.with'); +require('../modules/es.unescape'); +require('../modules/es.weak-map'); +require('../modules/es.weak-set'); +require('../modules/esnext.aggregate-error'); +require('../modules/esnext.suppressed-error.constructor'); +require('../modules/esnext.array.from-async'); +require('../modules/esnext.array.at'); +require('../modules/esnext.array.filter-out'); +require('../modules/esnext.array.filter-reject'); +require('../modules/esnext.array.find-last'); +require('../modules/esnext.array.find-last-index'); +require('../modules/esnext.array.group'); +require('../modules/esnext.array.group-by'); +require('../modules/esnext.array.group-by-to-map'); +require('../modules/esnext.array.group-to-map'); +require('../modules/esnext.array.is-template-object'); +require('../modules/esnext.array.last-index'); +require('../modules/esnext.array.last-item'); +require('../modules/esnext.array.to-reversed'); +require('../modules/esnext.array.to-sorted'); +require('../modules/esnext.array.to-spliced'); +require('../modules/esnext.array.unique-by'); +require('../modules/esnext.array.with'); +require('../modules/esnext.array-buffer.detached'); +require('../modules/esnext.array-buffer.transfer'); +require('../modules/esnext.array-buffer.transfer-to-fixed-length'); +require('../modules/esnext.async-disposable-stack.constructor'); +require('../modules/esnext.async-iterator.constructor'); +require('../modules/esnext.async-iterator.as-indexed-pairs'); +require('../modules/esnext.async-iterator.async-dispose'); +require('../modules/esnext.async-iterator.drop'); +require('../modules/esnext.async-iterator.every'); +require('../modules/esnext.async-iterator.filter'); +require('../modules/esnext.async-iterator.find'); +require('../modules/esnext.async-iterator.flat-map'); +require('../modules/esnext.async-iterator.for-each'); +require('../modules/esnext.async-iterator.from'); +require('../modules/esnext.async-iterator.indexed'); +require('../modules/esnext.async-iterator.map'); +require('../modules/esnext.async-iterator.reduce'); +require('../modules/esnext.async-iterator.some'); +require('../modules/esnext.async-iterator.take'); +require('../modules/esnext.async-iterator.to-array'); +require('../modules/esnext.bigint.range'); +require('../modules/esnext.composite-key'); +require('../modules/esnext.composite-symbol'); +require('../modules/esnext.data-view.get-float16'); +require('../modules/esnext.data-view.get-uint8-clamped'); +require('../modules/esnext.data-view.set-float16'); +require('../modules/esnext.data-view.set-uint8-clamped'); +require('../modules/esnext.disposable-stack.constructor'); +require('../modules/esnext.function.demethodize'); +require('../modules/esnext.function.is-callable'); +require('../modules/esnext.function.is-constructor'); +require('../modules/esnext.function.metadata'); +require('../modules/esnext.function.un-this'); +require('../modules/esnext.global-this'); +require('../modules/esnext.iterator.constructor'); +require('../modules/esnext.iterator.as-indexed-pairs'); +require('../modules/esnext.iterator.dispose'); +require('../modules/esnext.iterator.drop'); +require('../modules/esnext.iterator.every'); +require('../modules/esnext.iterator.filter'); +require('../modules/esnext.iterator.find'); +require('../modules/esnext.iterator.flat-map'); +require('../modules/esnext.iterator.for-each'); +require('../modules/esnext.iterator.from'); +require('../modules/esnext.iterator.indexed'); +require('../modules/esnext.iterator.map'); +require('../modules/esnext.iterator.range'); +require('../modules/esnext.iterator.reduce'); +require('../modules/esnext.iterator.some'); +require('../modules/esnext.iterator.take'); +require('../modules/esnext.iterator.to-array'); +require('../modules/esnext.iterator.to-async'); +require('../modules/esnext.json.is-raw-json'); +require('../modules/esnext.json.parse'); +require('../modules/esnext.json.raw-json'); +require('../modules/esnext.map.delete-all'); +require('../modules/esnext.map.emplace'); +require('../modules/esnext.map.every'); +require('../modules/esnext.map.filter'); +require('../modules/esnext.map.find'); +require('../modules/esnext.map.find-key'); +require('../modules/esnext.map.from'); +require('../modules/esnext.map.group-by'); +require('../modules/esnext.map.includes'); +require('../modules/esnext.map.key-by'); +require('../modules/esnext.map.key-of'); +require('../modules/esnext.map.map-keys'); +require('../modules/esnext.map.map-values'); +require('../modules/esnext.map.merge'); +require('../modules/esnext.map.of'); +require('../modules/esnext.map.reduce'); +require('../modules/esnext.map.some'); +require('../modules/esnext.map.update'); +require('../modules/esnext.map.update-or-insert'); +require('../modules/esnext.map.upsert'); +require('../modules/esnext.math.clamp'); +require('../modules/esnext.math.deg-per-rad'); +require('../modules/esnext.math.degrees'); +require('../modules/esnext.math.fscale'); +require('../modules/esnext.math.f16round'); +require('../modules/esnext.math.iaddh'); +require('../modules/esnext.math.imulh'); +require('../modules/esnext.math.isubh'); +require('../modules/esnext.math.rad-per-deg'); +require('../modules/esnext.math.radians'); +require('../modules/esnext.math.scale'); +require('../modules/esnext.math.seeded-prng'); +require('../modules/esnext.math.signbit'); +require('../modules/esnext.math.sum-precise'); +require('../modules/esnext.math.umulh'); +require('../modules/esnext.number.from-string'); +require('../modules/esnext.number.range'); +require('../modules/esnext.object.has-own'); +require('../modules/esnext.object.iterate-entries'); +require('../modules/esnext.object.iterate-keys'); +require('../modules/esnext.object.iterate-values'); +require('../modules/esnext.object.group-by'); +require('../modules/esnext.observable'); +require('../modules/esnext.promise.all-settled'); +require('../modules/esnext.promise.any'); +require('../modules/esnext.promise.try'); +require('../modules/esnext.promise.with-resolvers'); +require('../modules/esnext.reflect.define-metadata'); +require('../modules/esnext.reflect.delete-metadata'); +require('../modules/esnext.reflect.get-metadata'); +require('../modules/esnext.reflect.get-metadata-keys'); +require('../modules/esnext.reflect.get-own-metadata'); +require('../modules/esnext.reflect.get-own-metadata-keys'); +require('../modules/esnext.reflect.has-metadata'); +require('../modules/esnext.reflect.has-own-metadata'); +require('../modules/esnext.reflect.metadata'); +require('../modules/esnext.regexp.escape'); +require('../modules/esnext.set.add-all'); +require('../modules/esnext.set.delete-all'); +require('../modules/esnext.set.difference.v2'); +require('../modules/esnext.set.difference'); +require('../modules/esnext.set.every'); +require('../modules/esnext.set.filter'); +require('../modules/esnext.set.find'); +require('../modules/esnext.set.from'); +require('../modules/esnext.set.intersection.v2'); +require('../modules/esnext.set.intersection'); +require('../modules/esnext.set.is-disjoint-from.v2'); +require('../modules/esnext.set.is-disjoint-from'); +require('../modules/esnext.set.is-subset-of.v2'); +require('../modules/esnext.set.is-subset-of'); +require('../modules/esnext.set.is-superset-of.v2'); +require('../modules/esnext.set.is-superset-of'); +require('../modules/esnext.set.join'); +require('../modules/esnext.set.map'); +require('../modules/esnext.set.of'); +require('../modules/esnext.set.reduce'); +require('../modules/esnext.set.some'); +require('../modules/esnext.set.symmetric-difference.v2'); +require('../modules/esnext.set.symmetric-difference'); +require('../modules/esnext.set.union.v2'); +require('../modules/esnext.set.union'); +require('../modules/esnext.string.at'); +require('../modules/esnext.string.cooked'); +require('../modules/esnext.string.code-points'); +require('../modules/esnext.string.dedent'); +require('../modules/esnext.string.is-well-formed'); +require('../modules/esnext.string.match-all'); +require('../modules/esnext.string.replace-all'); +require('../modules/esnext.string.to-well-formed'); +require('../modules/esnext.symbol.async-dispose'); +require('../modules/esnext.symbol.custom-matcher'); +require('../modules/esnext.symbol.dispose'); +require('../modules/esnext.symbol.is-registered-symbol'); +require('../modules/esnext.symbol.is-registered'); +require('../modules/esnext.symbol.is-well-known-symbol'); +require('../modules/esnext.symbol.is-well-known'); +require('../modules/esnext.symbol.matcher'); +require('../modules/esnext.symbol.metadata'); +require('../modules/esnext.symbol.metadata-key'); +require('../modules/esnext.symbol.observable'); +require('../modules/esnext.symbol.pattern-match'); +require('../modules/esnext.symbol.replace-all'); +require('../modules/esnext.typed-array.from-async'); +require('../modules/esnext.typed-array.at'); +require('../modules/esnext.typed-array.filter-out'); +require('../modules/esnext.typed-array.filter-reject'); +require('../modules/esnext.typed-array.find-last'); +require('../modules/esnext.typed-array.find-last-index'); +require('../modules/esnext.typed-array.group-by'); +require('../modules/esnext.typed-array.to-reversed'); +require('../modules/esnext.typed-array.to-sorted'); +require('../modules/esnext.typed-array.to-spliced'); +require('../modules/esnext.typed-array.unique-by'); +require('../modules/esnext.typed-array.with'); +require('../modules/esnext.uint8-array.from-base64'); +require('../modules/esnext.uint8-array.from-hex'); +require('../modules/esnext.uint8-array.set-from-base64'); +require('../modules/esnext.uint8-array.set-from-hex'); +require('../modules/esnext.uint8-array.to-base64'); +require('../modules/esnext.uint8-array.to-hex'); +require('../modules/esnext.weak-map.delete-all'); +require('../modules/esnext.weak-map.from'); +require('../modules/esnext.weak-map.of'); +require('../modules/esnext.weak-map.emplace'); +require('../modules/esnext.weak-map.upsert'); +require('../modules/esnext.weak-set.add-all'); +require('../modules/esnext.weak-set.delete-all'); +require('../modules/esnext.weak-set.from'); +require('../modules/esnext.weak-set.of'); +require('../modules/web.atob'); +require('../modules/web.btoa'); +require('../modules/web.dom-collections.for-each'); +require('../modules/web.dom-collections.iterator'); +require('../modules/web.dom-exception.constructor'); +require('../modules/web.dom-exception.stack'); +require('../modules/web.dom-exception.to-string-tag'); +require('../modules/web.immediate'); +require('../modules/web.queue-microtask'); +require('../modules/web.self'); +require('../modules/web.structured-clone'); +require('../modules/web.timers'); +require('../modules/web.url'); +require('../modules/web.url.can-parse'); +require('../modules/web.url.parse'); +require('../modules/web.url.to-json'); +require('../modules/web.url-search-params'); +require('../modules/web.url-search-params.delete'); +require('../modules/web.url-search-params.has'); +require('../modules/web.url-search-params.size'); + +module.exports = require('../internals/path'); diff --git a/node_modules/core-js/full/instance/at.js b/node_modules/core-js/full/instance/at.js new file mode 100644 index 0000000..75de4fc --- /dev/null +++ b/node_modules/core-js/full/instance/at.js @@ -0,0 +1,15 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var arrayMethod = require('../array/virtual/at'); +var stringMethod = require('../string/virtual/at'); + +var ArrayPrototype = Array.prototype; +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.at; + if (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.at)) return arrayMethod; + if (typeof it == 'string' || it === StringPrototype || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.at)) { + return stringMethod; + } return own; +}; diff --git a/node_modules/core-js/full/instance/bind.js b/node_modules/core-js/full/instance/bind.js new file mode 100644 index 0000000..229d51a --- /dev/null +++ b/node_modules/core-js/full/instance/bind.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/bind'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/code-point-at.js b/node_modules/core-js/full/instance/code-point-at.js new file mode 100644 index 0000000..57d254a --- /dev/null +++ b/node_modules/core-js/full/instance/code-point-at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/code-point-at'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/code-points.js b/node_modules/core-js/full/instance/code-points.js new file mode 100644 index 0000000..d2050a7 --- /dev/null +++ b/node_modules/core-js/full/instance/code-points.js @@ -0,0 +1,11 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/code-points'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.codePoints; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.codePoints) ? method : own; +}; diff --git a/node_modules/core-js/full/instance/concat.js b/node_modules/core-js/full/instance/concat.js new file mode 100644 index 0000000..7efdf2c --- /dev/null +++ b/node_modules/core-js/full/instance/concat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/concat'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/copy-within.js b/node_modules/core-js/full/instance/copy-within.js new file mode 100644 index 0000000..3ee9dc5 --- /dev/null +++ b/node_modules/core-js/full/instance/copy-within.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/copy-within'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/demethodize.js b/node_modules/core-js/full/instance/demethodize.js new file mode 100644 index 0000000..c463e6c --- /dev/null +++ b/node_modules/core-js/full/instance/demethodize.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../function/virtual/demethodize'); + +var FunctionPrototype = Function.prototype; + +module.exports = function (it) { + var own = it.demethodize; + return it === FunctionPrototype || (isPrototypeOf(FunctionPrototype, it) && own === FunctionPrototype.demethodize) ? method : own; +}; diff --git a/node_modules/core-js/full/instance/ends-with.js b/node_modules/core-js/full/instance/ends-with.js new file mode 100644 index 0000000..af148b0 --- /dev/null +++ b/node_modules/core-js/full/instance/ends-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/ends-with'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/entries.js b/node_modules/core-js/full/instance/entries.js new file mode 100644 index 0000000..e29f0d3 --- /dev/null +++ b/node_modules/core-js/full/instance/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/every.js b/node_modules/core-js/full/instance/every.js new file mode 100644 index 0000000..49822cb --- /dev/null +++ b/node_modules/core-js/full/instance/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/every'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/fill.js b/node_modules/core-js/full/instance/fill.js new file mode 100644 index 0000000..d4a97d4 --- /dev/null +++ b/node_modules/core-js/full/instance/fill.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/fill'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/filter-out.js b/node_modules/core-js/full/instance/filter-out.js new file mode 100644 index 0000000..ea5fb5b --- /dev/null +++ b/node_modules/core-js/full/instance/filter-out.js @@ -0,0 +1,11 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/filter-out'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.filterOut; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.filterOut) ? method : own; +}; diff --git a/node_modules/core-js/full/instance/filter-reject.js b/node_modules/core-js/full/instance/filter-reject.js new file mode 100644 index 0000000..fbf438d --- /dev/null +++ b/node_modules/core-js/full/instance/filter-reject.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/filter-reject'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.filterReject; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.filterReject) ? method : own; +}; diff --git a/node_modules/core-js/full/instance/filter.js b/node_modules/core-js/full/instance/filter.js new file mode 100644 index 0000000..2f0f1b5 --- /dev/null +++ b/node_modules/core-js/full/instance/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/find-index.js b/node_modules/core-js/full/instance/find-index.js new file mode 100644 index 0000000..fb201b7 --- /dev/null +++ b/node_modules/core-js/full/instance/find-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/find-index'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/find-last-index.js b/node_modules/core-js/full/instance/find-last-index.js new file mode 100644 index 0000000..031dfc9 --- /dev/null +++ b/node_modules/core-js/full/instance/find-last-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/find-last-index'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/find-last.js b/node_modules/core-js/full/instance/find-last.js new file mode 100644 index 0000000..1f5dcc6 --- /dev/null +++ b/node_modules/core-js/full/instance/find-last.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/find-last'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/find.js b/node_modules/core-js/full/instance/find.js new file mode 100644 index 0000000..80aafe1 --- /dev/null +++ b/node_modules/core-js/full/instance/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/find'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/flags.js b/node_modules/core-js/full/instance/flags.js new file mode 100644 index 0000000..ad4640c --- /dev/null +++ b/node_modules/core-js/full/instance/flags.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/flags'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/flat-map.js b/node_modules/core-js/full/instance/flat-map.js new file mode 100644 index 0000000..53315a1 --- /dev/null +++ b/node_modules/core-js/full/instance/flat-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/flat-map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/flat.js b/node_modules/core-js/full/instance/flat.js new file mode 100644 index 0000000..20538cd --- /dev/null +++ b/node_modules/core-js/full/instance/flat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/flat'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/for-each.js b/node_modules/core-js/full/instance/for-each.js new file mode 100644 index 0000000..0fc6785 --- /dev/null +++ b/node_modules/core-js/full/instance/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/group-by-to-map.js b/node_modules/core-js/full/instance/group-by-to-map.js new file mode 100644 index 0000000..35da2a7 --- /dev/null +++ b/node_modules/core-js/full/instance/group-by-to-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/group-by-to-map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/group-by.js b/node_modules/core-js/full/instance/group-by.js new file mode 100644 index 0000000..0162d6d --- /dev/null +++ b/node_modules/core-js/full/instance/group-by.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/group-by'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/group-to-map.js b/node_modules/core-js/full/instance/group-to-map.js new file mode 100644 index 0000000..62d9a1f --- /dev/null +++ b/node_modules/core-js/full/instance/group-to-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/group-to-map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/group.js b/node_modules/core-js/full/instance/group.js new file mode 100644 index 0000000..9fc4fd1 --- /dev/null +++ b/node_modules/core-js/full/instance/group.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/group'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/includes.js b/node_modules/core-js/full/instance/includes.js new file mode 100644 index 0000000..a5d876e --- /dev/null +++ b/node_modules/core-js/full/instance/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/index-of.js b/node_modules/core-js/full/instance/index-of.js new file mode 100644 index 0000000..bbfecf2 --- /dev/null +++ b/node_modules/core-js/full/instance/index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/is-well-formed.js b/node_modules/core-js/full/instance/is-well-formed.js new file mode 100644 index 0000000..2480643 --- /dev/null +++ b/node_modules/core-js/full/instance/is-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/is-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/keys.js b/node_modules/core-js/full/instance/keys.js new file mode 100644 index 0000000..d066c77 --- /dev/null +++ b/node_modules/core-js/full/instance/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/last-index-of.js b/node_modules/core-js/full/instance/last-index-of.js new file mode 100644 index 0000000..04d3e45 --- /dev/null +++ b/node_modules/core-js/full/instance/last-index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/last-index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/map.js b/node_modules/core-js/full/instance/map.js new file mode 100644 index 0000000..2b2d637 --- /dev/null +++ b/node_modules/core-js/full/instance/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/match-all.js b/node_modules/core-js/full/instance/match-all.js new file mode 100644 index 0000000..0207313 --- /dev/null +++ b/node_modules/core-js/full/instance/match-all.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: remove from `core-js@4` +require('../../modules/esnext.string.match-all'); + +var parent = require('../../actual/instance/match-all'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/pad-end.js b/node_modules/core-js/full/instance/pad-end.js new file mode 100644 index 0000000..a288446 --- /dev/null +++ b/node_modules/core-js/full/instance/pad-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/pad-end'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/pad-start.js b/node_modules/core-js/full/instance/pad-start.js new file mode 100644 index 0000000..1e66bd4 --- /dev/null +++ b/node_modules/core-js/full/instance/pad-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/pad-start'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/push.js b/node_modules/core-js/full/instance/push.js new file mode 100644 index 0000000..5b49c01 --- /dev/null +++ b/node_modules/core-js/full/instance/push.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/push'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/reduce-right.js b/node_modules/core-js/full/instance/reduce-right.js new file mode 100644 index 0000000..0ffbf82 --- /dev/null +++ b/node_modules/core-js/full/instance/reduce-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/reduce-right'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/reduce.js b/node_modules/core-js/full/instance/reduce.js new file mode 100644 index 0000000..ae52442 --- /dev/null +++ b/node_modules/core-js/full/instance/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/repeat.js b/node_modules/core-js/full/instance/repeat.js new file mode 100644 index 0000000..5828652 --- /dev/null +++ b/node_modules/core-js/full/instance/repeat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/repeat'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/replace-all.js b/node_modules/core-js/full/instance/replace-all.js new file mode 100644 index 0000000..f218e3e --- /dev/null +++ b/node_modules/core-js/full/instance/replace-all.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: remove from `core-js@4` +require('../../modules/esnext.string.replace-all'); + +var parent = require('../../actual/instance/replace-all'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/reverse.js b/node_modules/core-js/full/instance/reverse.js new file mode 100644 index 0000000..5541ac7 --- /dev/null +++ b/node_modules/core-js/full/instance/reverse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/reverse'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/slice.js b/node_modules/core-js/full/instance/slice.js new file mode 100644 index 0000000..07cdbd7 --- /dev/null +++ b/node_modules/core-js/full/instance/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/some.js b/node_modules/core-js/full/instance/some.js new file mode 100644 index 0000000..c01be5f --- /dev/null +++ b/node_modules/core-js/full/instance/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/some'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/sort.js b/node_modules/core-js/full/instance/sort.js new file mode 100644 index 0000000..b51a3f1 --- /dev/null +++ b/node_modules/core-js/full/instance/sort.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/sort'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/splice.js b/node_modules/core-js/full/instance/splice.js new file mode 100644 index 0000000..b0fd55e --- /dev/null +++ b/node_modules/core-js/full/instance/splice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/splice'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/starts-with.js b/node_modules/core-js/full/instance/starts-with.js new file mode 100644 index 0000000..4d7a24e --- /dev/null +++ b/node_modules/core-js/full/instance/starts-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/starts-with'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/to-reversed.js b/node_modules/core-js/full/instance/to-reversed.js new file mode 100644 index 0000000..030a66a --- /dev/null +++ b/node_modules/core-js/full/instance/to-reversed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/to-reversed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/to-sorted.js b/node_modules/core-js/full/instance/to-sorted.js new file mode 100644 index 0000000..623a535 --- /dev/null +++ b/node_modules/core-js/full/instance/to-sorted.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/to-sorted'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/to-spliced.js b/node_modules/core-js/full/instance/to-spliced.js new file mode 100644 index 0000000..92fc837 --- /dev/null +++ b/node_modules/core-js/full/instance/to-spliced.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/to-spliced'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/to-well-formed.js b/node_modules/core-js/full/instance/to-well-formed.js new file mode 100644 index 0000000..751ce51 --- /dev/null +++ b/node_modules/core-js/full/instance/to-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/to-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/trim-end.js b/node_modules/core-js/full/instance/trim-end.js new file mode 100644 index 0000000..c28bf3f --- /dev/null +++ b/node_modules/core-js/full/instance/trim-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/trim-end'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/trim-left.js b/node_modules/core-js/full/instance/trim-left.js new file mode 100644 index 0000000..2888ccf --- /dev/null +++ b/node_modules/core-js/full/instance/trim-left.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/trim-left'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/trim-right.js b/node_modules/core-js/full/instance/trim-right.js new file mode 100644 index 0000000..83c6b40 --- /dev/null +++ b/node_modules/core-js/full/instance/trim-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/trim-right'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/trim-start.js b/node_modules/core-js/full/instance/trim-start.js new file mode 100644 index 0000000..3e92d9f --- /dev/null +++ b/node_modules/core-js/full/instance/trim-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/trim-start'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/trim.js b/node_modules/core-js/full/instance/trim.js new file mode 100644 index 0000000..6327d40 --- /dev/null +++ b/node_modules/core-js/full/instance/trim.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/trim'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/un-this.js b/node_modules/core-js/full/instance/un-this.js new file mode 100644 index 0000000..a1d40b7 --- /dev/null +++ b/node_modules/core-js/full/instance/un-this.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../function/virtual/un-this'); + +var FunctionPrototype = Function.prototype; + +module.exports = function (it) { + var own = it.unThis; + return it === FunctionPrototype || (isPrototypeOf(FunctionPrototype, it) && own === FunctionPrototype.unThis) ? method : own; +}; diff --git a/node_modules/core-js/full/instance/unique-by.js b/node_modules/core-js/full/instance/unique-by.js new file mode 100644 index 0000000..faad544 --- /dev/null +++ b/node_modules/core-js/full/instance/unique-by.js @@ -0,0 +1,10 @@ +'use strict'; +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/unique-by'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.uniqueBy; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.uniqueBy) ? method : own; +}; diff --git a/node_modules/core-js/full/instance/unshift.js b/node_modules/core-js/full/instance/unshift.js new file mode 100644 index 0000000..d92d4a6 --- /dev/null +++ b/node_modules/core-js/full/instance/unshift.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/unshift'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/values.js b/node_modules/core-js/full/instance/values.js new file mode 100644 index 0000000..5b3a76e --- /dev/null +++ b/node_modules/core-js/full/instance/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/values'); + +module.exports = parent; diff --git a/node_modules/core-js/full/instance/with.js b/node_modules/core-js/full/instance/with.js new file mode 100644 index 0000000..b1eb565 --- /dev/null +++ b/node_modules/core-js/full/instance/with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/instance/with'); + +module.exports = parent; diff --git a/node_modules/core-js/full/is-iterable.js b/node_modules/core-js/full/is-iterable.js new file mode 100644 index 0000000..c8f44d7 --- /dev/null +++ b/node_modules/core-js/full/is-iterable.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/is-iterable'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/as-indexed-pairs.js b/node_modules/core-js/full/iterator/as-indexed-pairs.js new file mode 100644 index 0000000..e8504f3 --- /dev/null +++ b/node_modules/core-js/full/iterator/as-indexed-pairs.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.as-indexed-pairs'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'asIndexedPairs'); + diff --git a/node_modules/core-js/full/iterator/dispose.js b/node_modules/core-js/full/iterator/dispose.js new file mode 100644 index 0000000..6246a05 --- /dev/null +++ b/node_modules/core-js/full/iterator/dispose.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/dispose'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/drop.js b/node_modules/core-js/full/iterator/drop.js new file mode 100644 index 0000000..dc9a548 --- /dev/null +++ b/node_modules/core-js/full/iterator/drop.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/drop'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/every.js b/node_modules/core-js/full/iterator/every.js new file mode 100644 index 0000000..3f7b394 --- /dev/null +++ b/node_modules/core-js/full/iterator/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/every'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/filter.js b/node_modules/core-js/full/iterator/filter.js new file mode 100644 index 0000000..f19dd0f --- /dev/null +++ b/node_modules/core-js/full/iterator/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/find.js b/node_modules/core-js/full/iterator/find.js new file mode 100644 index 0000000..e26690e --- /dev/null +++ b/node_modules/core-js/full/iterator/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/find'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/flat-map.js b/node_modules/core-js/full/iterator/flat-map.js new file mode 100644 index 0000000..e6d721d --- /dev/null +++ b/node_modules/core-js/full/iterator/flat-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/flat-map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/for-each.js b/node_modules/core-js/full/iterator/for-each.js new file mode 100644 index 0000000..b378e32 --- /dev/null +++ b/node_modules/core-js/full/iterator/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/from.js b/node_modules/core-js/full/iterator/from.js new file mode 100644 index 0000000..57cece2 --- /dev/null +++ b/node_modules/core-js/full/iterator/from.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/from'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/index.js b/node_modules/core-js/full/iterator/index.js new file mode 100644 index 0000000..c6caf46 --- /dev/null +++ b/node_modules/core-js/full/iterator/index.js @@ -0,0 +1,8 @@ +'use strict'; +var parent = require('../../actual/iterator'); +require('../../modules/esnext.iterator.range'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.iterator.as-indexed-pairs'); +require('../../modules/esnext.iterator.indexed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/indexed.js b/node_modules/core-js/full/iterator/indexed.js new file mode 100644 index 0000000..6a2aa84 --- /dev/null +++ b/node_modules/core-js/full/iterator/indexed.js @@ -0,0 +1,10 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.indexed'); + +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Iterator', 'indexed'); + diff --git a/node_modules/core-js/full/iterator/map.js b/node_modules/core-js/full/iterator/map.js new file mode 100644 index 0000000..e41e383 --- /dev/null +++ b/node_modules/core-js/full/iterator/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/range.js b/node_modules/core-js/full/iterator/range.js new file mode 100644 index 0000000..20f811b --- /dev/null +++ b/node_modules/core-js/full/iterator/range.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.iterator.constructor'); +require('../../modules/esnext.iterator.range'); +var path = require('../../internals/path'); + +module.exports = path.Iterator.range; diff --git a/node_modules/core-js/full/iterator/reduce.js b/node_modules/core-js/full/iterator/reduce.js new file mode 100644 index 0000000..d2c30ac --- /dev/null +++ b/node_modules/core-js/full/iterator/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/some.js b/node_modules/core-js/full/iterator/some.js new file mode 100644 index 0000000..a6ea597 --- /dev/null +++ b/node_modules/core-js/full/iterator/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/some'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/take.js b/node_modules/core-js/full/iterator/take.js new file mode 100644 index 0000000..6988d74 --- /dev/null +++ b/node_modules/core-js/full/iterator/take.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/take'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/to-array.js b/node_modules/core-js/full/iterator/to-array.js new file mode 100644 index 0000000..e8a923d --- /dev/null +++ b/node_modules/core-js/full/iterator/to-array.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/to-array'); + +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/to-async.js b/node_modules/core-js/full/iterator/to-async.js new file mode 100644 index 0000000..8c6985c --- /dev/null +++ b/node_modules/core-js/full/iterator/to-async.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/iterator/to-async'); + +module.exports = parent; diff --git a/node_modules/core-js/full/json/index.js b/node_modules/core-js/full/json/index.js new file mode 100644 index 0000000..7f01daa --- /dev/null +++ b/node_modules/core-js/full/json/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/json'); + +module.exports = parent; diff --git a/node_modules/core-js/full/json/is-raw-json.js b/node_modules/core-js/full/json/is-raw-json.js new file mode 100644 index 0000000..ba34b87 --- /dev/null +++ b/node_modules/core-js/full/json/is-raw-json.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/json/is-raw-json'); + +module.exports = parent; diff --git a/node_modules/core-js/full/json/parse.js b/node_modules/core-js/full/json/parse.js new file mode 100644 index 0000000..10319ef --- /dev/null +++ b/node_modules/core-js/full/json/parse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/json/parse'); + +module.exports = parent; diff --git a/node_modules/core-js/full/json/raw-json.js b/node_modules/core-js/full/json/raw-json.js new file mode 100644 index 0000000..1b85bf6 --- /dev/null +++ b/node_modules/core-js/full/json/raw-json.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/json/raw-json'); + +module.exports = parent; diff --git a/node_modules/core-js/full/json/stringify.js b/node_modules/core-js/full/json/stringify.js new file mode 100644 index 0000000..4b65c67 --- /dev/null +++ b/node_modules/core-js/full/json/stringify.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/json/stringify'); + +module.exports = parent; diff --git a/node_modules/core-js/full/json/to-string-tag.js b/node_modules/core-js/full/json/to-string-tag.js new file mode 100644 index 0000000..d0eae3c --- /dev/null +++ b/node_modules/core-js/full/json/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/json/to-string-tag'); + +module.exports = parent; diff --git a/node_modules/core-js/full/map/delete-all.js b/node_modules/core-js/full/map/delete-all.js new file mode 100644 index 0000000..53f7532 --- /dev/null +++ b/node_modules/core-js/full/map/delete-all.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.delete-all'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'deleteAll'); diff --git a/node_modules/core-js/full/map/emplace.js b/node_modules/core-js/full/map/emplace.js new file mode 100644 index 0000000..b23b795 --- /dev/null +++ b/node_modules/core-js/full/map/emplace.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.emplace'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'emplace'); diff --git a/node_modules/core-js/full/map/every.js b/node_modules/core-js/full/map/every.js new file mode 100644 index 0000000..cb6053b --- /dev/null +++ b/node_modules/core-js/full/map/every.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.every'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'every'); diff --git a/node_modules/core-js/full/map/filter.js b/node_modules/core-js/full/map/filter.js new file mode 100644 index 0000000..e94aafb --- /dev/null +++ b/node_modules/core-js/full/map/filter.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.filter'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'filter'); diff --git a/node_modules/core-js/full/map/find-key.js b/node_modules/core-js/full/map/find-key.js new file mode 100644 index 0000000..942c457 --- /dev/null +++ b/node_modules/core-js/full/map/find-key.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.find-key'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'findKey'); diff --git a/node_modules/core-js/full/map/find.js b/node_modules/core-js/full/map/find.js new file mode 100644 index 0000000..f1326b2 --- /dev/null +++ b/node_modules/core-js/full/map/find.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.find'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'find'); diff --git a/node_modules/core-js/full/map/from.js b/node_modules/core-js/full/map/from.js new file mode 100644 index 0000000..649c002 --- /dev/null +++ b/node_modules/core-js/full/map/from.js @@ -0,0 +1,24 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.array.iterator'); +require('../../modules/es.map'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.map.from'); +require('../../modules/esnext.map.delete-all'); +require('../../modules/esnext.map.emplace'); +require('../../modules/esnext.map.every'); +require('../../modules/esnext.map.filter'); +require('../../modules/esnext.map.find'); +require('../../modules/esnext.map.find-key'); +require('../../modules/esnext.map.includes'); +require('../../modules/esnext.map.key-of'); +require('../../modules/esnext.map.map-keys'); +require('../../modules/esnext.map.map-values'); +require('../../modules/esnext.map.merge'); +require('../../modules/esnext.map.reduce'); +require('../../modules/esnext.map.some'); +require('../../modules/esnext.map.update'); +require('../../modules/web.dom-collections.iterator'); +var path = require('../../internals/path'); + +module.exports = path.Map.from; diff --git a/node_modules/core-js/full/map/group-by.js b/node_modules/core-js/full/map/group-by.js new file mode 100644 index 0000000..76dee9f --- /dev/null +++ b/node_modules/core-js/full/map/group-by.js @@ -0,0 +1,18 @@ +'use strict'; +var parent = require('../../actual/map/group-by'); +require('../../modules/esnext.map.delete-all'); +require('../../modules/esnext.map.emplace'); +require('../../modules/esnext.map.every'); +require('../../modules/esnext.map.filter'); +require('../../modules/esnext.map.find'); +require('../../modules/esnext.map.find-key'); +require('../../modules/esnext.map.includes'); +require('../../modules/esnext.map.key-of'); +require('../../modules/esnext.map.map-keys'); +require('../../modules/esnext.map.map-values'); +require('../../modules/esnext.map.merge'); +require('../../modules/esnext.map.reduce'); +require('../../modules/esnext.map.some'); +require('../../modules/esnext.map.update'); + +module.exports = parent; diff --git a/node_modules/core-js/full/map/includes.js b/node_modules/core-js/full/map/includes.js new file mode 100644 index 0000000..52432ed --- /dev/null +++ b/node_modules/core-js/full/map/includes.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.includes'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'includes'); diff --git a/node_modules/core-js/full/map/index.js b/node_modules/core-js/full/map/index.js new file mode 100644 index 0000000..13bc239 --- /dev/null +++ b/node_modules/core-js/full/map/index.js @@ -0,0 +1,25 @@ +'use strict'; +var parent = require('../../actual/map'); +require('../../modules/esnext.map.from'); +require('../../modules/esnext.map.of'); +require('../../modules/esnext.map.delete-all'); +require('../../modules/esnext.map.emplace'); +require('../../modules/esnext.map.every'); +require('../../modules/esnext.map.filter'); +require('../../modules/esnext.map.find'); +require('../../modules/esnext.map.find-key'); +require('../../modules/esnext.map.includes'); +require('../../modules/esnext.map.key-by'); +require('../../modules/esnext.map.key-of'); +require('../../modules/esnext.map.map-keys'); +require('../../modules/esnext.map.map-values'); +require('../../modules/esnext.map.merge'); +require('../../modules/esnext.map.reduce'); +require('../../modules/esnext.map.some'); +require('../../modules/esnext.map.update'); +// TODO: remove from `core-js@4` +require('../../modules/esnext.map.upsert'); +// TODO: remove from `core-js@4` +require('../../modules/esnext.map.update-or-insert'); + +module.exports = parent; diff --git a/node_modules/core-js/full/map/key-by.js b/node_modules/core-js/full/map/key-by.js new file mode 100644 index 0000000..13daf9f --- /dev/null +++ b/node_modules/core-js/full/map/key-by.js @@ -0,0 +1,28 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.map'); +require('../../modules/esnext.map.key-by'); +require('../../modules/esnext.map.delete-all'); +require('../../modules/esnext.map.emplace'); +require('../../modules/esnext.map.every'); +require('../../modules/esnext.map.filter'); +require('../../modules/esnext.map.find'); +require('../../modules/esnext.map.find-key'); +require('../../modules/esnext.map.includes'); +require('../../modules/esnext.map.key-of'); +require('../../modules/esnext.map.map-keys'); +require('../../modules/esnext.map.map-values'); +require('../../modules/esnext.map.merge'); +require('../../modules/esnext.map.reduce'); +require('../../modules/esnext.map.some'); +require('../../modules/esnext.map.update'); +var call = require('../../internals/function-call'); +var isCallable = require('../../internals/is-callable'); +var path = require('../../internals/path'); + +var Map = path.Map; +var mapKeyBy = Map.keyBy; + +module.exports = function keyBy(source, iterable, keyDerivative) { + return call(mapKeyBy, isCallable(this) ? this : Map, source, iterable, keyDerivative); +}; diff --git a/node_modules/core-js/full/map/key-of.js b/node_modules/core-js/full/map/key-of.js new file mode 100644 index 0000000..985c2ca --- /dev/null +++ b/node_modules/core-js/full/map/key-of.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.key-of'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'keyOf'); diff --git a/node_modules/core-js/full/map/map-keys.js b/node_modules/core-js/full/map/map-keys.js new file mode 100644 index 0000000..168d985 --- /dev/null +++ b/node_modules/core-js/full/map/map-keys.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.map-keys'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'mapKeys'); diff --git a/node_modules/core-js/full/map/map-values.js b/node_modules/core-js/full/map/map-values.js new file mode 100644 index 0000000..2346a0b --- /dev/null +++ b/node_modules/core-js/full/map/map-values.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.map-values'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'mapValues'); diff --git a/node_modules/core-js/full/map/merge.js b/node_modules/core-js/full/map/merge.js new file mode 100644 index 0000000..85c0b0a --- /dev/null +++ b/node_modules/core-js/full/map/merge.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.merge'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'merge'); diff --git a/node_modules/core-js/full/map/of.js b/node_modules/core-js/full/map/of.js new file mode 100644 index 0000000..530b9d8 --- /dev/null +++ b/node_modules/core-js/full/map/of.js @@ -0,0 +1,22 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.array.iterator'); +require('../../modules/es.map'); +require('../../modules/esnext.map.of'); +require('../../modules/esnext.map.delete-all'); +require('../../modules/esnext.map.emplace'); +require('../../modules/esnext.map.every'); +require('../../modules/esnext.map.filter'); +require('../../modules/esnext.map.find'); +require('../../modules/esnext.map.find-key'); +require('../../modules/esnext.map.includes'); +require('../../modules/esnext.map.key-of'); +require('../../modules/esnext.map.map-keys'); +require('../../modules/esnext.map.map-values'); +require('../../modules/esnext.map.merge'); +require('../../modules/esnext.map.reduce'); +require('../../modules/esnext.map.some'); +require('../../modules/esnext.map.update'); +var path = require('../../internals/path'); + +module.exports = path.Map.of; diff --git a/node_modules/core-js/full/map/reduce.js b/node_modules/core-js/full/map/reduce.js new file mode 100644 index 0000000..88bf566 --- /dev/null +++ b/node_modules/core-js/full/map/reduce.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.reduce'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'reduce'); diff --git a/node_modules/core-js/full/map/some.js b/node_modules/core-js/full/map/some.js new file mode 100644 index 0000000..fb55efb --- /dev/null +++ b/node_modules/core-js/full/map/some.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.some'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'some'); diff --git a/node_modules/core-js/full/map/update-or-insert.js b/node_modules/core-js/full/map/update-or-insert.js new file mode 100644 index 0000000..299d9c3 --- /dev/null +++ b/node_modules/core-js/full/map/update-or-insert.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: remove from `core-js@4` +require('../../modules/es.map'); +require('../../modules/esnext.map.update-or-insert'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'updateOrInsert'); diff --git a/node_modules/core-js/full/map/update.js b/node_modules/core-js/full/map/update.js new file mode 100644 index 0000000..abc452c --- /dev/null +++ b/node_modules/core-js/full/map/update.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.update'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'update'); diff --git a/node_modules/core-js/full/map/upsert.js b/node_modules/core-js/full/map/upsert.js new file mode 100644 index 0000000..7467fe7 --- /dev/null +++ b/node_modules/core-js/full/map/upsert.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.map.upsert'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Map', 'upsert'); diff --git a/node_modules/core-js/full/math/acosh.js b/node_modules/core-js/full/math/acosh.js new file mode 100644 index 0000000..ae3e386 --- /dev/null +++ b/node_modules/core-js/full/math/acosh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/acosh'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/asinh.js b/node_modules/core-js/full/math/asinh.js new file mode 100644 index 0000000..7771b33 --- /dev/null +++ b/node_modules/core-js/full/math/asinh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/asinh'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/atanh.js b/node_modules/core-js/full/math/atanh.js new file mode 100644 index 0000000..40ffa97 --- /dev/null +++ b/node_modules/core-js/full/math/atanh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/atanh'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/cbrt.js b/node_modules/core-js/full/math/cbrt.js new file mode 100644 index 0000000..add0887 --- /dev/null +++ b/node_modules/core-js/full/math/cbrt.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/cbrt'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/clamp.js b/node_modules/core-js/full/math/clamp.js new file mode 100644 index 0000000..fdece38 --- /dev/null +++ b/node_modules/core-js/full/math/clamp.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.math.clamp'); +var path = require('../../internals/path'); + +module.exports = path.Math.clamp; diff --git a/node_modules/core-js/full/math/clz32.js b/node_modules/core-js/full/math/clz32.js new file mode 100644 index 0000000..cb9c405 --- /dev/null +++ b/node_modules/core-js/full/math/clz32.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/clz32'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/cosh.js b/node_modules/core-js/full/math/cosh.js new file mode 100644 index 0000000..16e37a5 --- /dev/null +++ b/node_modules/core-js/full/math/cosh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/cosh'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/deg-per-rad.js b/node_modules/core-js/full/math/deg-per-rad.js new file mode 100644 index 0000000..1580018 --- /dev/null +++ b/node_modules/core-js/full/math/deg-per-rad.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/esnext.math.deg-per-rad'); + +module.exports = Math.PI / 180; diff --git a/node_modules/core-js/full/math/degrees.js b/node_modules/core-js/full/math/degrees.js new file mode 100644 index 0000000..fd68e7e --- /dev/null +++ b/node_modules/core-js/full/math/degrees.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.math.degrees'); +var path = require('../../internals/path'); + +module.exports = path.Math.degrees; diff --git a/node_modules/core-js/full/math/expm1.js b/node_modules/core-js/full/math/expm1.js new file mode 100644 index 0000000..29f007e --- /dev/null +++ b/node_modules/core-js/full/math/expm1.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/expm1'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/f16round.js b/node_modules/core-js/full/math/f16round.js new file mode 100644 index 0000000..935ecf4 --- /dev/null +++ b/node_modules/core-js/full/math/f16round.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/f16round'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/fround.js b/node_modules/core-js/full/math/fround.js new file mode 100644 index 0000000..87df0b1 --- /dev/null +++ b/node_modules/core-js/full/math/fround.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/fround'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/fscale.js b/node_modules/core-js/full/math/fscale.js new file mode 100644 index 0000000..43dbe07 --- /dev/null +++ b/node_modules/core-js/full/math/fscale.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.math.fscale'); +var path = require('../../internals/path'); + +module.exports = path.Math.fscale; diff --git a/node_modules/core-js/full/math/hypot.js b/node_modules/core-js/full/math/hypot.js new file mode 100644 index 0000000..5b340dc --- /dev/null +++ b/node_modules/core-js/full/math/hypot.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/hypot'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/iaddh.js b/node_modules/core-js/full/math/iaddh.js new file mode 100644 index 0000000..a0c3543 --- /dev/null +++ b/node_modules/core-js/full/math/iaddh.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.math.iaddh'); +var path = require('../../internals/path'); + +module.exports = path.Math.iaddh; diff --git a/node_modules/core-js/full/math/imul.js b/node_modules/core-js/full/math/imul.js new file mode 100644 index 0000000..0d0c7eb --- /dev/null +++ b/node_modules/core-js/full/math/imul.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/imul'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/imulh.js b/node_modules/core-js/full/math/imulh.js new file mode 100644 index 0000000..ee0b267 --- /dev/null +++ b/node_modules/core-js/full/math/imulh.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.math.imulh'); +var path = require('../../internals/path'); + +module.exports = path.Math.imulh; diff --git a/node_modules/core-js/full/math/index.js b/node_modules/core-js/full/math/index.js new file mode 100644 index 0000000..ec931c7 --- /dev/null +++ b/node_modules/core-js/full/math/index.js @@ -0,0 +1,20 @@ +'use strict'; +var parent = require('../../actual/math'); +require('../../modules/es.array.iterator'); +require('../../modules/esnext.math.clamp'); +require('../../modules/esnext.math.deg-per-rad'); +require('../../modules/esnext.math.degrees'); +require('../../modules/esnext.math.fscale'); +require('../../modules/esnext.math.rad-per-deg'); +require('../../modules/esnext.math.radians'); +require('../../modules/esnext.math.scale'); +require('../../modules/esnext.math.seeded-prng'); +require('../../modules/esnext.math.signbit'); +require('../../modules/esnext.math.sum-precise'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.math.iaddh'); +require('../../modules/esnext.math.isubh'); +require('../../modules/esnext.math.imulh'); +require('../../modules/esnext.math.umulh'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/isubh.js b/node_modules/core-js/full/math/isubh.js new file mode 100644 index 0000000..57ff251 --- /dev/null +++ b/node_modules/core-js/full/math/isubh.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.math.isubh'); +var path = require('../../internals/path'); + +module.exports = path.Math.isubh; diff --git a/node_modules/core-js/full/math/log10.js b/node_modules/core-js/full/math/log10.js new file mode 100644 index 0000000..32b479f --- /dev/null +++ b/node_modules/core-js/full/math/log10.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/log10'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/log1p.js b/node_modules/core-js/full/math/log1p.js new file mode 100644 index 0000000..06b776d --- /dev/null +++ b/node_modules/core-js/full/math/log1p.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/log1p'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/log2.js b/node_modules/core-js/full/math/log2.js new file mode 100644 index 0000000..248ff4d --- /dev/null +++ b/node_modules/core-js/full/math/log2.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/log2'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/rad-per-deg.js b/node_modules/core-js/full/math/rad-per-deg.js new file mode 100644 index 0000000..2f66c12 --- /dev/null +++ b/node_modules/core-js/full/math/rad-per-deg.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/esnext.math.rad-per-deg'); + +module.exports = 180 / Math.PI; diff --git a/node_modules/core-js/full/math/radians.js b/node_modules/core-js/full/math/radians.js new file mode 100644 index 0000000..27d0a67 --- /dev/null +++ b/node_modules/core-js/full/math/radians.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.math.radians'); +var path = require('../../internals/path'); + +module.exports = path.Math.radians; diff --git a/node_modules/core-js/full/math/scale.js b/node_modules/core-js/full/math/scale.js new file mode 100644 index 0000000..8a60a85 --- /dev/null +++ b/node_modules/core-js/full/math/scale.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.math.scale'); +var path = require('../../internals/path'); + +module.exports = path.Math.scale; diff --git a/node_modules/core-js/full/math/seeded-prng.js b/node_modules/core-js/full/math/seeded-prng.js new file mode 100644 index 0000000..513140a --- /dev/null +++ b/node_modules/core-js/full/math/seeded-prng.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.math.seeded-prng'); +var path = require('../../internals/path'); + +module.exports = path.Math.seededPRNG; diff --git a/node_modules/core-js/full/math/sign.js b/node_modules/core-js/full/math/sign.js new file mode 100644 index 0000000..678db98 --- /dev/null +++ b/node_modules/core-js/full/math/sign.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/sign'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/signbit.js b/node_modules/core-js/full/math/signbit.js new file mode 100644 index 0000000..e652559 --- /dev/null +++ b/node_modules/core-js/full/math/signbit.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.math.signbit'); +var path = require('../../internals/path'); + +module.exports = path.Math.signbit; diff --git a/node_modules/core-js/full/math/sinh.js b/node_modules/core-js/full/math/sinh.js new file mode 100644 index 0000000..6d1a498 --- /dev/null +++ b/node_modules/core-js/full/math/sinh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/sinh'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/sum-precise.js b/node_modules/core-js/full/math/sum-precise.js new file mode 100644 index 0000000..fda5a72 --- /dev/null +++ b/node_modules/core-js/full/math/sum-precise.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.array.iterator'); +require('../../modules/esnext.math.sum-precise'); +var path = require('../../internals/path'); + +module.exports = path.Math.sumPrecise; diff --git a/node_modules/core-js/full/math/tanh.js b/node_modules/core-js/full/math/tanh.js new file mode 100644 index 0000000..b56c9af --- /dev/null +++ b/node_modules/core-js/full/math/tanh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/tanh'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/to-string-tag.js b/node_modules/core-js/full/math/to-string-tag.js new file mode 100644 index 0000000..f391373 --- /dev/null +++ b/node_modules/core-js/full/math/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/to-string-tag'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/trunc.js b/node_modules/core-js/full/math/trunc.js new file mode 100644 index 0000000..f0d3f68 --- /dev/null +++ b/node_modules/core-js/full/math/trunc.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/math/trunc'); + +module.exports = parent; diff --git a/node_modules/core-js/full/math/umulh.js b/node_modules/core-js/full/math/umulh.js new file mode 100644 index 0000000..2cdd561 --- /dev/null +++ b/node_modules/core-js/full/math/umulh.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.math.umulh'); +var path = require('../../internals/path'); + +module.exports = path.Math.umulh; diff --git a/node_modules/core-js/full/number/constructor.js b/node_modules/core-js/full/number/constructor.js new file mode 100644 index 0000000..74d8256 --- /dev/null +++ b/node_modules/core-js/full/number/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/number/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/epsilon.js b/node_modules/core-js/full/number/epsilon.js new file mode 100644 index 0000000..85eda3d --- /dev/null +++ b/node_modules/core-js/full/number/epsilon.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/number/epsilon'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/from-string.js b/node_modules/core-js/full/number/from-string.js new file mode 100644 index 0000000..334b931 --- /dev/null +++ b/node_modules/core-js/full/number/from-string.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.number.from-string'); +var path = require('../../internals/path'); + +module.exports = path.Number.fromString; diff --git a/node_modules/core-js/full/number/index.js b/node_modules/core-js/full/number/index.js new file mode 100644 index 0000000..d06e9c1 --- /dev/null +++ b/node_modules/core-js/full/number/index.js @@ -0,0 +1,8 @@ +'use strict'; +var parent = require('../../actual/number'); + +module.exports = parent; + +require('../../modules/es.object.to-string'); +require('../../modules/esnext.number.from-string'); +require('../../modules/esnext.number.range'); diff --git a/node_modules/core-js/full/number/is-finite.js b/node_modules/core-js/full/number/is-finite.js new file mode 100644 index 0000000..160692d --- /dev/null +++ b/node_modules/core-js/full/number/is-finite.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/number/is-finite'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/is-integer.js b/node_modules/core-js/full/number/is-integer.js new file mode 100644 index 0000000..c871191 --- /dev/null +++ b/node_modules/core-js/full/number/is-integer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/number/is-integer'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/is-nan.js b/node_modules/core-js/full/number/is-nan.js new file mode 100644 index 0000000..e5bb8d0 --- /dev/null +++ b/node_modules/core-js/full/number/is-nan.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/number/is-nan'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/is-safe-integer.js b/node_modules/core-js/full/number/is-safe-integer.js new file mode 100644 index 0000000..2a81972 --- /dev/null +++ b/node_modules/core-js/full/number/is-safe-integer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/number/is-safe-integer'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/max-safe-integer.js b/node_modules/core-js/full/number/max-safe-integer.js new file mode 100644 index 0000000..8090e2a --- /dev/null +++ b/node_modules/core-js/full/number/max-safe-integer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/number/max-safe-integer'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/min-safe-integer.js b/node_modules/core-js/full/number/min-safe-integer.js new file mode 100644 index 0000000..9c95f27 --- /dev/null +++ b/node_modules/core-js/full/number/min-safe-integer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/number/min-safe-integer'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/parse-float.js b/node_modules/core-js/full/number/parse-float.js new file mode 100644 index 0000000..0c81579 --- /dev/null +++ b/node_modules/core-js/full/number/parse-float.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/number/parse-float'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/parse-int.js b/node_modules/core-js/full/number/parse-int.js new file mode 100644 index 0000000..211a703 --- /dev/null +++ b/node_modules/core-js/full/number/parse-int.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/number/parse-int'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/range.js b/node_modules/core-js/full/number/range.js new file mode 100644 index 0000000..5b02c43 --- /dev/null +++ b/node_modules/core-js/full/number/range.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.number.range'); +var path = require('../../internals/path'); + +module.exports = path.Number.range; diff --git a/node_modules/core-js/full/number/to-exponential.js b/node_modules/core-js/full/number/to-exponential.js new file mode 100644 index 0000000..35ecf72 --- /dev/null +++ b/node_modules/core-js/full/number/to-exponential.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/number/to-exponential'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/to-fixed.js b/node_modules/core-js/full/number/to-fixed.js new file mode 100644 index 0000000..4541d0e --- /dev/null +++ b/node_modules/core-js/full/number/to-fixed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/number/to-fixed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/to-precision.js b/node_modules/core-js/full/number/to-precision.js new file mode 100644 index 0000000..6a5453b --- /dev/null +++ b/node_modules/core-js/full/number/to-precision.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/number/to-precision'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/virtual/index.js b/node_modules/core-js/full/number/virtual/index.js new file mode 100644 index 0000000..8c21e41 --- /dev/null +++ b/node_modules/core-js/full/number/virtual/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/number/virtual'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/virtual/to-exponential.js b/node_modules/core-js/full/number/virtual/to-exponential.js new file mode 100644 index 0000000..7e9c11c --- /dev/null +++ b/node_modules/core-js/full/number/virtual/to-exponential.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/number/virtual/to-exponential'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/virtual/to-fixed.js b/node_modules/core-js/full/number/virtual/to-fixed.js new file mode 100644 index 0000000..fd79411 --- /dev/null +++ b/node_modules/core-js/full/number/virtual/to-fixed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/number/virtual/to-fixed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/number/virtual/to-precision.js b/node_modules/core-js/full/number/virtual/to-precision.js new file mode 100644 index 0000000..7613cbe --- /dev/null +++ b/node_modules/core-js/full/number/virtual/to-precision.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/number/virtual/to-precision'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/assign.js b/node_modules/core-js/full/object/assign.js new file mode 100644 index 0000000..31728d1 --- /dev/null +++ b/node_modules/core-js/full/object/assign.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/assign'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/create.js b/node_modules/core-js/full/object/create.js new file mode 100644 index 0000000..6f345f1 --- /dev/null +++ b/node_modules/core-js/full/object/create.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/create'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/define-getter.js b/node_modules/core-js/full/object/define-getter.js new file mode 100644 index 0000000..b227de0 --- /dev/null +++ b/node_modules/core-js/full/object/define-getter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/define-getter'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/define-properties.js b/node_modules/core-js/full/object/define-properties.js new file mode 100644 index 0000000..4e8b0e0 --- /dev/null +++ b/node_modules/core-js/full/object/define-properties.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/define-properties'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/define-property.js b/node_modules/core-js/full/object/define-property.js new file mode 100644 index 0000000..49fbbb7 --- /dev/null +++ b/node_modules/core-js/full/object/define-property.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/define-property'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/define-setter.js b/node_modules/core-js/full/object/define-setter.js new file mode 100644 index 0000000..64d47dd --- /dev/null +++ b/node_modules/core-js/full/object/define-setter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/define-setter'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/entries.js b/node_modules/core-js/full/object/entries.js new file mode 100644 index 0000000..38df8a7 --- /dev/null +++ b/node_modules/core-js/full/object/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/freeze.js b/node_modules/core-js/full/object/freeze.js new file mode 100644 index 0000000..cb2d1fb --- /dev/null +++ b/node_modules/core-js/full/object/freeze.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/freeze'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/from-entries.js b/node_modules/core-js/full/object/from-entries.js new file mode 100644 index 0000000..e057e66 --- /dev/null +++ b/node_modules/core-js/full/object/from-entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/from-entries'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/get-own-property-descriptor.js b/node_modules/core-js/full/object/get-own-property-descriptor.js new file mode 100644 index 0000000..0a2d96b --- /dev/null +++ b/node_modules/core-js/full/object/get-own-property-descriptor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/get-own-property-descriptor'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/get-own-property-descriptors.js b/node_modules/core-js/full/object/get-own-property-descriptors.js new file mode 100644 index 0000000..2d084c6 --- /dev/null +++ b/node_modules/core-js/full/object/get-own-property-descriptors.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/get-own-property-descriptors'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/get-own-property-names.js b/node_modules/core-js/full/object/get-own-property-names.js new file mode 100644 index 0000000..02d280f --- /dev/null +++ b/node_modules/core-js/full/object/get-own-property-names.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/get-own-property-names'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/get-own-property-symbols.js b/node_modules/core-js/full/object/get-own-property-symbols.js new file mode 100644 index 0000000..ebad505 --- /dev/null +++ b/node_modules/core-js/full/object/get-own-property-symbols.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/get-own-property-symbols'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/get-prototype-of.js b/node_modules/core-js/full/object/get-prototype-of.js new file mode 100644 index 0000000..5cb26a8 --- /dev/null +++ b/node_modules/core-js/full/object/get-prototype-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/get-prototype-of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/group-by.js b/node_modules/core-js/full/object/group-by.js new file mode 100644 index 0000000..c52c073 --- /dev/null +++ b/node_modules/core-js/full/object/group-by.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/group-by'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/has-own.js b/node_modules/core-js/full/object/has-own.js new file mode 100644 index 0000000..3d2c4ed --- /dev/null +++ b/node_modules/core-js/full/object/has-own.js @@ -0,0 +1,7 @@ +'use strict'; +var parent = require('../../actual/object/has-own'); + +// TODO: Remove from `core-js@4` +require('../../modules/esnext.object.has-own'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/index.js b/node_modules/core-js/full/object/index.js new file mode 100644 index 0000000..6720214 --- /dev/null +++ b/node_modules/core-js/full/object/index.js @@ -0,0 +1,9 @@ +'use strict'; +var parent = require('../../actual/object'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.object.has-own'); +require('../../modules/esnext.object.iterate-entries'); +require('../../modules/esnext.object.iterate-keys'); +require('../../modules/esnext.object.iterate-values'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/is-extensible.js b/node_modules/core-js/full/object/is-extensible.js new file mode 100644 index 0000000..7bc463a --- /dev/null +++ b/node_modules/core-js/full/object/is-extensible.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/is-extensible'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/is-frozen.js b/node_modules/core-js/full/object/is-frozen.js new file mode 100644 index 0000000..5573c28 --- /dev/null +++ b/node_modules/core-js/full/object/is-frozen.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/is-frozen'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/is-sealed.js b/node_modules/core-js/full/object/is-sealed.js new file mode 100644 index 0000000..423fcaf --- /dev/null +++ b/node_modules/core-js/full/object/is-sealed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/is-sealed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/is.js b/node_modules/core-js/full/object/is.js new file mode 100644 index 0000000..0787260 --- /dev/null +++ b/node_modules/core-js/full/object/is.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/is'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/iterate-entries.js b/node_modules/core-js/full/object/iterate-entries.js new file mode 100644 index 0000000..e46f881 --- /dev/null +++ b/node_modules/core-js/full/object/iterate-entries.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.object.iterate-entries'); +var path = require('../../internals/path'); + +module.exports = path.Object.iterateEntries; diff --git a/node_modules/core-js/full/object/iterate-keys.js b/node_modules/core-js/full/object/iterate-keys.js new file mode 100644 index 0000000..68afc74 --- /dev/null +++ b/node_modules/core-js/full/object/iterate-keys.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.object.iterate-keys'); +var path = require('../../internals/path'); + +module.exports = path.Object.iterateKeys; diff --git a/node_modules/core-js/full/object/iterate-values.js b/node_modules/core-js/full/object/iterate-values.js new file mode 100644 index 0000000..2a35127 --- /dev/null +++ b/node_modules/core-js/full/object/iterate-values.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.object.iterate-values'); +var path = require('../../internals/path'); + +module.exports = path.Object.iterateValues; diff --git a/node_modules/core-js/full/object/keys.js b/node_modules/core-js/full/object/keys.js new file mode 100644 index 0000000..f5e1b56 --- /dev/null +++ b/node_modules/core-js/full/object/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/lookup-getter.js b/node_modules/core-js/full/object/lookup-getter.js new file mode 100644 index 0000000..e74c064 --- /dev/null +++ b/node_modules/core-js/full/object/lookup-getter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/lookup-getter'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/lookup-setter.js b/node_modules/core-js/full/object/lookup-setter.js new file mode 100644 index 0000000..7a11b4a --- /dev/null +++ b/node_modules/core-js/full/object/lookup-setter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/lookup-setter'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/prevent-extensions.js b/node_modules/core-js/full/object/prevent-extensions.js new file mode 100644 index 0000000..5537694 --- /dev/null +++ b/node_modules/core-js/full/object/prevent-extensions.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/prevent-extensions'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/proto.js b/node_modules/core-js/full/object/proto.js new file mode 100644 index 0000000..dcf2a1a --- /dev/null +++ b/node_modules/core-js/full/object/proto.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/proto'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/seal.js b/node_modules/core-js/full/object/seal.js new file mode 100644 index 0000000..7afd5a9 --- /dev/null +++ b/node_modules/core-js/full/object/seal.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/seal'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/set-prototype-of.js b/node_modules/core-js/full/object/set-prototype-of.js new file mode 100644 index 0000000..e3434d7 --- /dev/null +++ b/node_modules/core-js/full/object/set-prototype-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/set-prototype-of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/to-string.js b/node_modules/core-js/full/object/to-string.js new file mode 100644 index 0000000..7c590c6 --- /dev/null +++ b/node_modules/core-js/full/object/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/full/object/values.js b/node_modules/core-js/full/object/values.js new file mode 100644 index 0000000..72b8691 --- /dev/null +++ b/node_modules/core-js/full/object/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/object/values'); + +module.exports = parent; diff --git a/node_modules/core-js/full/observable/index.js b/node_modules/core-js/full/observable/index.js new file mode 100644 index 0000000..c29fa73 --- /dev/null +++ b/node_modules/core-js/full/observable/index.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../modules/esnext.observable'); +require('../../modules/esnext.symbol.observable'); +require('../../modules/es.object.to-string'); +require('../../modules/es.string.iterator'); +require('../../modules/web.dom-collections.iterator'); +var path = require('../../internals/path'); + +module.exports = path.Observable; diff --git a/node_modules/core-js/full/parse-float.js b/node_modules/core-js/full/parse-float.js new file mode 100644 index 0000000..943f46e --- /dev/null +++ b/node_modules/core-js/full/parse-float.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/parse-float'); + +module.exports = parent; diff --git a/node_modules/core-js/full/parse-int.js b/node_modules/core-js/full/parse-int.js new file mode 100644 index 0000000..0267308 --- /dev/null +++ b/node_modules/core-js/full/parse-int.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/parse-int'); + +module.exports = parent; diff --git a/node_modules/core-js/full/promise/all-settled.js b/node_modules/core-js/full/promise/all-settled.js new file mode 100644 index 0000000..5279cba --- /dev/null +++ b/node_modules/core-js/full/promise/all-settled.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../../modules/esnext.promise.all-settled'); + +var parent = require('../../actual/promise/all-settled'); + +module.exports = parent; diff --git a/node_modules/core-js/full/promise/any.js b/node_modules/core-js/full/promise/any.js new file mode 100644 index 0000000..ab2a7da --- /dev/null +++ b/node_modules/core-js/full/promise/any.js @@ -0,0 +1,8 @@ +'use strict'; +var parent = require('../../actual/promise/any'); + +// TODO: Remove from `core-js@4` +require('../../modules/esnext.aggregate-error'); +require('../../modules/esnext.promise.any'); + +module.exports = parent; diff --git a/node_modules/core-js/full/promise/finally.js b/node_modules/core-js/full/promise/finally.js new file mode 100644 index 0000000..feae5bb --- /dev/null +++ b/node_modules/core-js/full/promise/finally.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/promise/finally'); + +module.exports = parent; diff --git a/node_modules/core-js/full/promise/index.js b/node_modules/core-js/full/promise/index.js new file mode 100644 index 0000000..f678969 --- /dev/null +++ b/node_modules/core-js/full/promise/index.js @@ -0,0 +1,8 @@ +'use strict'; +var parent = require('../../actual/promise'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.aggregate-error'); +require('../../modules/esnext.promise.all-settled'); +require('../../modules/esnext.promise.any'); + +module.exports = parent; diff --git a/node_modules/core-js/full/promise/try.js b/node_modules/core-js/full/promise/try.js new file mode 100644 index 0000000..68bb7ba --- /dev/null +++ b/node_modules/core-js/full/promise/try.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/promise/try'); + +module.exports = parent; diff --git a/node_modules/core-js/full/promise/with-resolvers.js b/node_modules/core-js/full/promise/with-resolvers.js new file mode 100644 index 0000000..f1b0709 --- /dev/null +++ b/node_modules/core-js/full/promise/with-resolvers.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/promise/with-resolvers'); + +module.exports = parent; diff --git a/node_modules/core-js/full/queue-microtask.js b/node_modules/core-js/full/queue-microtask.js new file mode 100644 index 0000000..a01488c --- /dev/null +++ b/node_modules/core-js/full/queue-microtask.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/queue-microtask'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/apply.js b/node_modules/core-js/full/reflect/apply.js new file mode 100644 index 0000000..39adbcd --- /dev/null +++ b/node_modules/core-js/full/reflect/apply.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/reflect/apply'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/construct.js b/node_modules/core-js/full/reflect/construct.js new file mode 100644 index 0000000..7f1bb95 --- /dev/null +++ b/node_modules/core-js/full/reflect/construct.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/reflect/construct'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/define-metadata.js b/node_modules/core-js/full/reflect/define-metadata.js new file mode 100644 index 0000000..dba9cc3 --- /dev/null +++ b/node_modules/core-js/full/reflect/define-metadata.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.reflect.define-metadata'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.defineMetadata; diff --git a/node_modules/core-js/full/reflect/define-property.js b/node_modules/core-js/full/reflect/define-property.js new file mode 100644 index 0000000..f3f7d5f --- /dev/null +++ b/node_modules/core-js/full/reflect/define-property.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/reflect/define-property'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/delete-metadata.js b/node_modules/core-js/full/reflect/delete-metadata.js new file mode 100644 index 0000000..a3a3733 --- /dev/null +++ b/node_modules/core-js/full/reflect/delete-metadata.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.reflect.delete-metadata'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.deleteMetadata; diff --git a/node_modules/core-js/full/reflect/delete-property.js b/node_modules/core-js/full/reflect/delete-property.js new file mode 100644 index 0000000..270cb5d --- /dev/null +++ b/node_modules/core-js/full/reflect/delete-property.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/reflect/delete-property'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/get-metadata-keys.js b/node_modules/core-js/full/reflect/get-metadata-keys.js new file mode 100644 index 0000000..4d671fd --- /dev/null +++ b/node_modules/core-js/full/reflect/get-metadata-keys.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.reflect.get-metadata-keys'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.getMetadataKeys; diff --git a/node_modules/core-js/full/reflect/get-metadata.js b/node_modules/core-js/full/reflect/get-metadata.js new file mode 100644 index 0000000..738bd74 --- /dev/null +++ b/node_modules/core-js/full/reflect/get-metadata.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.reflect.get-metadata'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.getMetadata; diff --git a/node_modules/core-js/full/reflect/get-own-metadata-keys.js b/node_modules/core-js/full/reflect/get-own-metadata-keys.js new file mode 100644 index 0000000..bd33e65 --- /dev/null +++ b/node_modules/core-js/full/reflect/get-own-metadata-keys.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.reflect.get-own-metadata-keys'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.getOwnMetadataKeys; diff --git a/node_modules/core-js/full/reflect/get-own-metadata.js b/node_modules/core-js/full/reflect/get-own-metadata.js new file mode 100644 index 0000000..c8890df --- /dev/null +++ b/node_modules/core-js/full/reflect/get-own-metadata.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.reflect.get-own-metadata'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.getOwnMetadata; diff --git a/node_modules/core-js/full/reflect/get-own-property-descriptor.js b/node_modules/core-js/full/reflect/get-own-property-descriptor.js new file mode 100644 index 0000000..4610a0f --- /dev/null +++ b/node_modules/core-js/full/reflect/get-own-property-descriptor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/reflect/get-own-property-descriptor'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/get-prototype-of.js b/node_modules/core-js/full/reflect/get-prototype-of.js new file mode 100644 index 0000000..e948f49 --- /dev/null +++ b/node_modules/core-js/full/reflect/get-prototype-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/reflect/get-prototype-of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/get.js b/node_modules/core-js/full/reflect/get.js new file mode 100644 index 0000000..75b2c85 --- /dev/null +++ b/node_modules/core-js/full/reflect/get.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/reflect/get'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/has-metadata.js b/node_modules/core-js/full/reflect/has-metadata.js new file mode 100644 index 0000000..bd623a7 --- /dev/null +++ b/node_modules/core-js/full/reflect/has-metadata.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.reflect.has-metadata'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.hasMetadata; diff --git a/node_modules/core-js/full/reflect/has-own-metadata.js b/node_modules/core-js/full/reflect/has-own-metadata.js new file mode 100644 index 0000000..f56149f --- /dev/null +++ b/node_modules/core-js/full/reflect/has-own-metadata.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.reflect.has-own-metadata'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.hasOwnMetadata; diff --git a/node_modules/core-js/full/reflect/has.js b/node_modules/core-js/full/reflect/has.js new file mode 100644 index 0000000..3de54d8 --- /dev/null +++ b/node_modules/core-js/full/reflect/has.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/reflect/has'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/index.js b/node_modules/core-js/full/reflect/index.js new file mode 100644 index 0000000..5ff5892 --- /dev/null +++ b/node_modules/core-js/full/reflect/index.js @@ -0,0 +1,13 @@ +'use strict'; +var parent = require('../../actual/reflect'); +require('../../modules/esnext.reflect.define-metadata'); +require('../../modules/esnext.reflect.delete-metadata'); +require('../../modules/esnext.reflect.get-metadata'); +require('../../modules/esnext.reflect.get-metadata-keys'); +require('../../modules/esnext.reflect.get-own-metadata'); +require('../../modules/esnext.reflect.get-own-metadata-keys'); +require('../../modules/esnext.reflect.has-metadata'); +require('../../modules/esnext.reflect.has-own-metadata'); +require('../../modules/esnext.reflect.metadata'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/is-extensible.js b/node_modules/core-js/full/reflect/is-extensible.js new file mode 100644 index 0000000..b6131c4 --- /dev/null +++ b/node_modules/core-js/full/reflect/is-extensible.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/reflect/is-extensible'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/metadata.js b/node_modules/core-js/full/reflect/metadata.js new file mode 100644 index 0000000..a3ff8f5 --- /dev/null +++ b/node_modules/core-js/full/reflect/metadata.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.reflect.metadata'); +var path = require('../../internals/path'); + +module.exports = path.Reflect.metadata; diff --git a/node_modules/core-js/full/reflect/own-keys.js b/node_modules/core-js/full/reflect/own-keys.js new file mode 100644 index 0000000..1bfadd3 --- /dev/null +++ b/node_modules/core-js/full/reflect/own-keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/reflect/own-keys'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/prevent-extensions.js b/node_modules/core-js/full/reflect/prevent-extensions.js new file mode 100644 index 0000000..48af957 --- /dev/null +++ b/node_modules/core-js/full/reflect/prevent-extensions.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/reflect/prevent-extensions'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/set-prototype-of.js b/node_modules/core-js/full/reflect/set-prototype-of.js new file mode 100644 index 0000000..0d07597 --- /dev/null +++ b/node_modules/core-js/full/reflect/set-prototype-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/reflect/set-prototype-of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/set.js b/node_modules/core-js/full/reflect/set.js new file mode 100644 index 0000000..a08a20d --- /dev/null +++ b/node_modules/core-js/full/reflect/set.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/reflect/set'); + +module.exports = parent; diff --git a/node_modules/core-js/full/reflect/to-string-tag.js b/node_modules/core-js/full/reflect/to-string-tag.js new file mode 100644 index 0000000..3908aff --- /dev/null +++ b/node_modules/core-js/full/reflect/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/es.reflect.to-string-tag'); + +module.exports = 'Reflect'; diff --git a/node_modules/core-js/full/regexp/constructor.js b/node_modules/core-js/full/regexp/constructor.js new file mode 100644 index 0000000..414c1db --- /dev/null +++ b/node_modules/core-js/full/regexp/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/regexp/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/full/regexp/dot-all.js b/node_modules/core-js/full/regexp/dot-all.js new file mode 100644 index 0000000..bb687d2 --- /dev/null +++ b/node_modules/core-js/full/regexp/dot-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/regexp/dot-all'); + +module.exports = parent; diff --git a/node_modules/core-js/full/regexp/escape.js b/node_modules/core-js/full/regexp/escape.js new file mode 100644 index 0000000..5790cab --- /dev/null +++ b/node_modules/core-js/full/regexp/escape.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/regexp/escape'); + +module.exports = parent; diff --git a/node_modules/core-js/full/regexp/flags.js b/node_modules/core-js/full/regexp/flags.js new file mode 100644 index 0000000..1356b99 --- /dev/null +++ b/node_modules/core-js/full/regexp/flags.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/regexp/flags'); + +module.exports = parent; diff --git a/node_modules/core-js/full/regexp/index.js b/node_modules/core-js/full/regexp/index.js new file mode 100644 index 0000000..427bbc1 --- /dev/null +++ b/node_modules/core-js/full/regexp/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/regexp'); + +module.exports = parent; diff --git a/node_modules/core-js/full/regexp/match.js b/node_modules/core-js/full/regexp/match.js new file mode 100644 index 0000000..97dcf32 --- /dev/null +++ b/node_modules/core-js/full/regexp/match.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/regexp/match'); + +module.exports = parent; diff --git a/node_modules/core-js/full/regexp/replace.js b/node_modules/core-js/full/regexp/replace.js new file mode 100644 index 0000000..5c22adb --- /dev/null +++ b/node_modules/core-js/full/regexp/replace.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/regexp/replace'); + +module.exports = parent; diff --git a/node_modules/core-js/full/regexp/search.js b/node_modules/core-js/full/regexp/search.js new file mode 100644 index 0000000..551c403 --- /dev/null +++ b/node_modules/core-js/full/regexp/search.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/regexp/search'); + +module.exports = parent; diff --git a/node_modules/core-js/full/regexp/split.js b/node_modules/core-js/full/regexp/split.js new file mode 100644 index 0000000..2aaa16c --- /dev/null +++ b/node_modules/core-js/full/regexp/split.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/regexp/split'); + +module.exports = parent; diff --git a/node_modules/core-js/full/regexp/sticky.js b/node_modules/core-js/full/regexp/sticky.js new file mode 100644 index 0000000..2831425 --- /dev/null +++ b/node_modules/core-js/full/regexp/sticky.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/regexp/sticky'); + +module.exports = parent; diff --git a/node_modules/core-js/full/regexp/test.js b/node_modules/core-js/full/regexp/test.js new file mode 100644 index 0000000..04e5c12 --- /dev/null +++ b/node_modules/core-js/full/regexp/test.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/regexp/test'); + +module.exports = parent; diff --git a/node_modules/core-js/full/regexp/to-string.js b/node_modules/core-js/full/regexp/to-string.js new file mode 100644 index 0000000..f2a2709 --- /dev/null +++ b/node_modules/core-js/full/regexp/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/regexp/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/full/self.js b/node_modules/core-js/full/self.js new file mode 100644 index 0000000..f460150 --- /dev/null +++ b/node_modules/core-js/full/self.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/self'); + +module.exports = parent; diff --git a/node_modules/core-js/full/set-immediate.js b/node_modules/core-js/full/set-immediate.js new file mode 100644 index 0000000..8d99840 --- /dev/null +++ b/node_modules/core-js/full/set-immediate.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/set-immediate'); + +module.exports = parent; diff --git a/node_modules/core-js/full/set-interval.js b/node_modules/core-js/full/set-interval.js new file mode 100644 index 0000000..b542c54 --- /dev/null +++ b/node_modules/core-js/full/set-interval.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/set-interval'); + +module.exports = parent; diff --git a/node_modules/core-js/full/set-timeout.js b/node_modules/core-js/full/set-timeout.js new file mode 100644 index 0000000..2cc1978 --- /dev/null +++ b/node_modules/core-js/full/set-timeout.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/set-timeout'); + +module.exports = parent; diff --git a/node_modules/core-js/full/set/add-all.js b/node_modules/core-js/full/set/add-all.js new file mode 100644 index 0000000..bafef1c --- /dev/null +++ b/node_modules/core-js/full/set/add-all.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/esnext.set.add-all'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'addAll'); diff --git a/node_modules/core-js/full/set/delete-all.js b/node_modules/core-js/full/set/delete-all.js new file mode 100644 index 0000000..0233621 --- /dev/null +++ b/node_modules/core-js/full/set/delete-all.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/esnext.set.delete-all'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'deleteAll'); diff --git a/node_modules/core-js/full/set/difference.js b/node_modules/core-js/full/set/difference.js new file mode 100644 index 0000000..879eff1 --- /dev/null +++ b/node_modules/core-js/full/set/difference.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../actual/set/difference'); +require('../../modules/es.array.iterator'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.set.difference'); +require('../../modules/web.dom-collections.iterator'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'difference'); diff --git a/node_modules/core-js/full/set/every.js b/node_modules/core-js/full/set/every.js new file mode 100644 index 0000000..f5c0cfb --- /dev/null +++ b/node_modules/core-js/full/set/every.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/esnext.set.every'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'every'); diff --git a/node_modules/core-js/full/set/filter.js b/node_modules/core-js/full/set/filter.js new file mode 100644 index 0000000..3150068 --- /dev/null +++ b/node_modules/core-js/full/set/filter.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/esnext.set.filter'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'filter'); diff --git a/node_modules/core-js/full/set/find.js b/node_modules/core-js/full/set/find.js new file mode 100644 index 0000000..9ff5b53 --- /dev/null +++ b/node_modules/core-js/full/set/find.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/esnext.set.find'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'find'); diff --git a/node_modules/core-js/full/set/from.js b/node_modules/core-js/full/set/from.js new file mode 100644 index 0000000..d46b051 --- /dev/null +++ b/node_modules/core-js/full/set/from.js @@ -0,0 +1,26 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.array.iterator'); +require('../../modules/es.set'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.set.from'); +require('../../modules/esnext.set.add-all'); +require('../../modules/esnext.set.delete-all'); +require('../../modules/esnext.set.difference.v2'); +require('../../modules/esnext.set.every'); +require('../../modules/esnext.set.filter'); +require('../../modules/esnext.set.find'); +require('../../modules/esnext.set.join'); +require('../../modules/esnext.set.intersection.v2'); +require('../../modules/esnext.set.is-disjoint-from.v2'); +require('../../modules/esnext.set.is-subset-of.v2'); +require('../../modules/esnext.set.is-superset-of.v2'); +require('../../modules/esnext.set.map'); +require('../../modules/esnext.set.reduce'); +require('../../modules/esnext.set.some'); +require('../../modules/esnext.set.symmetric-difference.v2'); +require('../../modules/esnext.set.union.v2'); +require('../../modules/web.dom-collections.iterator'); +var path = require('../../internals/path'); + +module.exports = path.Set.from; diff --git a/node_modules/core-js/full/set/index.js b/node_modules/core-js/full/set/index.js new file mode 100644 index 0000000..f483f9e --- /dev/null +++ b/node_modules/core-js/full/set/index.js @@ -0,0 +1,22 @@ +'use strict'; +var parent = require('../../actual/set'); +require('../../modules/esnext.set.from'); +require('../../modules/esnext.set.of'); +require('../../modules/esnext.set.add-all'); +require('../../modules/esnext.set.delete-all'); +require('../../modules/esnext.set.every'); +require('../../modules/esnext.set.difference'); +require('../../modules/esnext.set.filter'); +require('../../modules/esnext.set.find'); +require('../../modules/esnext.set.intersection'); +require('../../modules/esnext.set.is-disjoint-from'); +require('../../modules/esnext.set.is-subset-of'); +require('../../modules/esnext.set.is-superset-of'); +require('../../modules/esnext.set.join'); +require('../../modules/esnext.set.map'); +require('../../modules/esnext.set.reduce'); +require('../../modules/esnext.set.some'); +require('../../modules/esnext.set.symmetric-difference'); +require('../../modules/esnext.set.union'); + +module.exports = parent; diff --git a/node_modules/core-js/full/set/intersection.js b/node_modules/core-js/full/set/intersection.js new file mode 100644 index 0000000..8e96ff5 --- /dev/null +++ b/node_modules/core-js/full/set/intersection.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../actual/set/intersection'); +require('../../modules/es.array.iterator'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.set.intersection'); +require('../../modules/web.dom-collections.iterator'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'intersection'); diff --git a/node_modules/core-js/full/set/is-disjoint-from.js b/node_modules/core-js/full/set/is-disjoint-from.js new file mode 100644 index 0000000..0eae0d6 --- /dev/null +++ b/node_modules/core-js/full/set/is-disjoint-from.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../actual/set/is-disjoint-from'); +require('../../modules/es.array.iterator'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.set.is-disjoint-from'); +require('../../modules/web.dom-collections.iterator'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'isDisjointFrom'); diff --git a/node_modules/core-js/full/set/is-subset-of.js b/node_modules/core-js/full/set/is-subset-of.js new file mode 100644 index 0000000..6cab425 --- /dev/null +++ b/node_modules/core-js/full/set/is-subset-of.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../actual/set/is-subset-of'); +require('../../modules/es.array.iterator'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.set.is-subset-of'); +require('../../modules/web.dom-collections.iterator'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'isSubsetOf'); diff --git a/node_modules/core-js/full/set/is-superset-of.js b/node_modules/core-js/full/set/is-superset-of.js new file mode 100644 index 0000000..38c029e --- /dev/null +++ b/node_modules/core-js/full/set/is-superset-of.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../actual/set/is-superset-of'); +require('../../modules/es.array.iterator'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.set.is-superset-of'); +require('../../modules/web.dom-collections.iterator'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'isSupersetOf'); diff --git a/node_modules/core-js/full/set/join.js b/node_modules/core-js/full/set/join.js new file mode 100644 index 0000000..f50f5e2 --- /dev/null +++ b/node_modules/core-js/full/set/join.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/esnext.set.join'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'join'); diff --git a/node_modules/core-js/full/set/map.js b/node_modules/core-js/full/set/map.js new file mode 100644 index 0000000..0785cfc --- /dev/null +++ b/node_modules/core-js/full/set/map.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/esnext.set.map'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'map'); diff --git a/node_modules/core-js/full/set/of.js b/node_modules/core-js/full/set/of.js new file mode 100644 index 0000000..754f8e3 --- /dev/null +++ b/node_modules/core-js/full/set/of.js @@ -0,0 +1,24 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.array.iterator'); +require('../../modules/es.set'); +require('../../modules/esnext.set.of'); +require('../../modules/esnext.set.add-all'); +require('../../modules/esnext.set.delete-all'); +require('../../modules/esnext.set.difference.v2'); +require('../../modules/esnext.set.every'); +require('../../modules/esnext.set.filter'); +require('../../modules/esnext.set.find'); +require('../../modules/esnext.set.join'); +require('../../modules/esnext.set.intersection.v2'); +require('../../modules/esnext.set.is-disjoint-from.v2'); +require('../../modules/esnext.set.is-subset-of.v2'); +require('../../modules/esnext.set.is-superset-of.v2'); +require('../../modules/esnext.set.map'); +require('../../modules/esnext.set.reduce'); +require('../../modules/esnext.set.some'); +require('../../modules/esnext.set.symmetric-difference.v2'); +require('../../modules/esnext.set.union.v2'); +var path = require('../../internals/path'); + +module.exports = path.Set.of; diff --git a/node_modules/core-js/full/set/reduce.js b/node_modules/core-js/full/set/reduce.js new file mode 100644 index 0000000..5e624cd --- /dev/null +++ b/node_modules/core-js/full/set/reduce.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/esnext.set.reduce'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'reduce'); diff --git a/node_modules/core-js/full/set/some.js b/node_modules/core-js/full/set/some.js new file mode 100644 index 0000000..9a7adfd --- /dev/null +++ b/node_modules/core-js/full/set/some.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.set'); +require('../../modules/esnext.set.some'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'some'); diff --git a/node_modules/core-js/full/set/symmetric-difference.js b/node_modules/core-js/full/set/symmetric-difference.js new file mode 100644 index 0000000..04b74e8 --- /dev/null +++ b/node_modules/core-js/full/set/symmetric-difference.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../actual/set/symmetric-difference'); +require('../../modules/es.array.iterator'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.set.symmetric-difference'); +require('../../modules/web.dom-collections.iterator'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'symmetricDifference'); diff --git a/node_modules/core-js/full/set/union.js b/node_modules/core-js/full/set/union.js new file mode 100644 index 0000000..146011c --- /dev/null +++ b/node_modules/core-js/full/set/union.js @@ -0,0 +1,9 @@ +'use strict'; +require('../../actual/set/union'); +require('../../modules/es.array.iterator'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.set.union'); +require('../../modules/web.dom-collections.iterator'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Set', 'union'); diff --git a/node_modules/core-js/full/string/anchor.js b/node_modules/core-js/full/string/anchor.js new file mode 100644 index 0000000..8faede4 --- /dev/null +++ b/node_modules/core-js/full/string/anchor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/anchor'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/at.js b/node_modules/core-js/full/string/at.js new file mode 100644 index 0000000..a3903ea --- /dev/null +++ b/node_modules/core-js/full/string/at.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../actual/string/at'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.string.at'); + +module.exports = require('../../internals/entry-unbind')('String', 'at'); diff --git a/node_modules/core-js/full/string/big.js b/node_modules/core-js/full/string/big.js new file mode 100644 index 0000000..bc349a2 --- /dev/null +++ b/node_modules/core-js/full/string/big.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/big'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/blink.js b/node_modules/core-js/full/string/blink.js new file mode 100644 index 0000000..e8abf63 --- /dev/null +++ b/node_modules/core-js/full/string/blink.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/blink'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/bold.js b/node_modules/core-js/full/string/bold.js new file mode 100644 index 0000000..e7954e5 --- /dev/null +++ b/node_modules/core-js/full/string/bold.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/bold'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/code-point-at.js b/node_modules/core-js/full/string/code-point-at.js new file mode 100644 index 0000000..ade6be4 --- /dev/null +++ b/node_modules/core-js/full/string/code-point-at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/code-point-at'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/code-points.js b/node_modules/core-js/full/string/code-points.js new file mode 100644 index 0000000..73bca4e --- /dev/null +++ b/node_modules/core-js/full/string/code-points.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/esnext.string.code-points'); + +module.exports = require('../../internals/entry-unbind')('String', 'codePoints'); diff --git a/node_modules/core-js/full/string/cooked.js b/node_modules/core-js/full/string/cooked.js new file mode 100644 index 0000000..6eddb1b --- /dev/null +++ b/node_modules/core-js/full/string/cooked.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.string.cooked'); +var path = require('../../internals/path'); + +module.exports = path.String.cooked; diff --git a/node_modules/core-js/full/string/dedent.js b/node_modules/core-js/full/string/dedent.js new file mode 100644 index 0000000..68eb090 --- /dev/null +++ b/node_modules/core-js/full/string/dedent.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.string.from-code-point'); +require('../../modules/es.weak-map'); +require('../../modules/esnext.string.dedent'); +var path = require('../../internals/path'); + +module.exports = path.String.dedent; diff --git a/node_modules/core-js/full/string/ends-with.js b/node_modules/core-js/full/string/ends-with.js new file mode 100644 index 0000000..44ad69e --- /dev/null +++ b/node_modules/core-js/full/string/ends-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/ends-with'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/fixed.js b/node_modules/core-js/full/string/fixed.js new file mode 100644 index 0000000..44efff2 --- /dev/null +++ b/node_modules/core-js/full/string/fixed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/fixed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/fontcolor.js b/node_modules/core-js/full/string/fontcolor.js new file mode 100644 index 0000000..f491dfb --- /dev/null +++ b/node_modules/core-js/full/string/fontcolor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/fontcolor'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/fontsize.js b/node_modules/core-js/full/string/fontsize.js new file mode 100644 index 0000000..0dffa6a --- /dev/null +++ b/node_modules/core-js/full/string/fontsize.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/fontsize'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/from-code-point.js b/node_modules/core-js/full/string/from-code-point.js new file mode 100644 index 0000000..3c2e909 --- /dev/null +++ b/node_modules/core-js/full/string/from-code-point.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/from-code-point'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/includes.js b/node_modules/core-js/full/string/includes.js new file mode 100644 index 0000000..52966da --- /dev/null +++ b/node_modules/core-js/full/string/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/index.js b/node_modules/core-js/full/string/index.js new file mode 100644 index 0000000..708cbe6 --- /dev/null +++ b/node_modules/core-js/full/string/index.js @@ -0,0 +1,12 @@ +'use strict'; +var parent = require('../../actual/string'); +require('../../modules/es.weak-map'); +// TODO: remove from `core-js@4` +require('../../modules/esnext.string.at'); +require('../../modules/esnext.string.cooked'); +require('../../modules/esnext.string.code-points'); +require('../../modules/esnext.string.dedent'); +require('../../modules/esnext.string.match-all'); +require('../../modules/esnext.string.replace-all'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/is-well-formed.js b/node_modules/core-js/full/string/is-well-formed.js new file mode 100644 index 0000000..c156be2 --- /dev/null +++ b/node_modules/core-js/full/string/is-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/is-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/italics.js b/node_modules/core-js/full/string/italics.js new file mode 100644 index 0000000..42184d3 --- /dev/null +++ b/node_modules/core-js/full/string/italics.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/italics'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/iterator.js b/node_modules/core-js/full/string/iterator.js new file mode 100644 index 0000000..fefcef6 --- /dev/null +++ b/node_modules/core-js/full/string/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/link.js b/node_modules/core-js/full/string/link.js new file mode 100644 index 0000000..3acbcfb --- /dev/null +++ b/node_modules/core-js/full/string/link.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/link'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/match-all.js b/node_modules/core-js/full/string/match-all.js new file mode 100644 index 0000000..9d23a4a --- /dev/null +++ b/node_modules/core-js/full/string/match-all.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: remove from `core-js@4` +require('../../modules/esnext.string.match-all'); + +var parent = require('../../actual/string/match-all'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/match.js b/node_modules/core-js/full/string/match.js new file mode 100644 index 0000000..a3dc019 --- /dev/null +++ b/node_modules/core-js/full/string/match.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/match'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/pad-end.js b/node_modules/core-js/full/string/pad-end.js new file mode 100644 index 0000000..d51bd03 --- /dev/null +++ b/node_modules/core-js/full/string/pad-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/pad-end'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/pad-start.js b/node_modules/core-js/full/string/pad-start.js new file mode 100644 index 0000000..f93fbdc --- /dev/null +++ b/node_modules/core-js/full/string/pad-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/pad-start'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/raw.js b/node_modules/core-js/full/string/raw.js new file mode 100644 index 0000000..d304197 --- /dev/null +++ b/node_modules/core-js/full/string/raw.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/raw'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/repeat.js b/node_modules/core-js/full/string/repeat.js new file mode 100644 index 0000000..f3075ea --- /dev/null +++ b/node_modules/core-js/full/string/repeat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/repeat'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/replace-all.js b/node_modules/core-js/full/string/replace-all.js new file mode 100644 index 0000000..1bbb651 --- /dev/null +++ b/node_modules/core-js/full/string/replace-all.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: remove from `core-js@4` +require('../../modules/esnext.string.replace-all'); + +var parent = require('../../actual/string/replace-all'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/replace.js b/node_modules/core-js/full/string/replace.js new file mode 100644 index 0000000..2ada803 --- /dev/null +++ b/node_modules/core-js/full/string/replace.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/replace'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/search.js b/node_modules/core-js/full/string/search.js new file mode 100644 index 0000000..53e96af --- /dev/null +++ b/node_modules/core-js/full/string/search.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/search'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/small.js b/node_modules/core-js/full/string/small.js new file mode 100644 index 0000000..5d9b03f --- /dev/null +++ b/node_modules/core-js/full/string/small.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/small'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/split.js b/node_modules/core-js/full/string/split.js new file mode 100644 index 0000000..29d4920 --- /dev/null +++ b/node_modules/core-js/full/string/split.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/split'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/starts-with.js b/node_modules/core-js/full/string/starts-with.js new file mode 100644 index 0000000..677f13f --- /dev/null +++ b/node_modules/core-js/full/string/starts-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/starts-with'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/strike.js b/node_modules/core-js/full/string/strike.js new file mode 100644 index 0000000..39ac25e --- /dev/null +++ b/node_modules/core-js/full/string/strike.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/strike'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/sub.js b/node_modules/core-js/full/string/sub.js new file mode 100644 index 0000000..a67dc8e --- /dev/null +++ b/node_modules/core-js/full/string/sub.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/sub'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/substr.js b/node_modules/core-js/full/string/substr.js new file mode 100644 index 0000000..0ffb4ae --- /dev/null +++ b/node_modules/core-js/full/string/substr.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/substr'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/sup.js b/node_modules/core-js/full/string/sup.js new file mode 100644 index 0000000..2ef447d --- /dev/null +++ b/node_modules/core-js/full/string/sup.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/sup'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/to-well-formed.js b/node_modules/core-js/full/string/to-well-formed.js new file mode 100644 index 0000000..ac5affe --- /dev/null +++ b/node_modules/core-js/full/string/to-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/to-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/trim-end.js b/node_modules/core-js/full/string/trim-end.js new file mode 100644 index 0000000..6be627f --- /dev/null +++ b/node_modules/core-js/full/string/trim-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/trim-end'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/trim-left.js b/node_modules/core-js/full/string/trim-left.js new file mode 100644 index 0000000..862eb1a --- /dev/null +++ b/node_modules/core-js/full/string/trim-left.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/trim-left'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/trim-right.js b/node_modules/core-js/full/string/trim-right.js new file mode 100644 index 0000000..8c34d71 --- /dev/null +++ b/node_modules/core-js/full/string/trim-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/trim-right'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/trim-start.js b/node_modules/core-js/full/string/trim-start.js new file mode 100644 index 0000000..b6c6e13 --- /dev/null +++ b/node_modules/core-js/full/string/trim-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/trim-start'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/trim.js b/node_modules/core-js/full/string/trim.js new file mode 100644 index 0000000..23cd177 --- /dev/null +++ b/node_modules/core-js/full/string/trim.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/string/trim'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/anchor.js b/node_modules/core-js/full/string/virtual/anchor.js new file mode 100644 index 0000000..fcd064c --- /dev/null +++ b/node_modules/core-js/full/string/virtual/anchor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/anchor'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/at.js b/node_modules/core-js/full/string/virtual/at.js new file mode 100644 index 0000000..68c432c --- /dev/null +++ b/node_modules/core-js/full/string/virtual/at.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../../actual/string/virtual/at'); +// TODO: Remove from `core-js@4` +require('../../../modules/esnext.string.at'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'at'); diff --git a/node_modules/core-js/full/string/virtual/big.js b/node_modules/core-js/full/string/virtual/big.js new file mode 100644 index 0000000..ea815ef --- /dev/null +++ b/node_modules/core-js/full/string/virtual/big.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/big'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/blink.js b/node_modules/core-js/full/string/virtual/blink.js new file mode 100644 index 0000000..906bbe3 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/blink.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/blink'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/bold.js b/node_modules/core-js/full/string/virtual/bold.js new file mode 100644 index 0000000..8cbfe9d --- /dev/null +++ b/node_modules/core-js/full/string/virtual/bold.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/bold'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/code-point-at.js b/node_modules/core-js/full/string/virtual/code-point-at.js new file mode 100644 index 0000000..dd2db8f --- /dev/null +++ b/node_modules/core-js/full/string/virtual/code-point-at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/code-point-at'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/code-points.js b/node_modules/core-js/full/string/virtual/code-points.js new file mode 100644 index 0000000..4fa3ce4 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/code-points.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../../modules/es.object.to-string'); +require('../../../modules/esnext.string.code-points'); +var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); + +module.exports = getBuiltInPrototypeMethod('String', 'codePoints'); diff --git a/node_modules/core-js/full/string/virtual/ends-with.js b/node_modules/core-js/full/string/virtual/ends-with.js new file mode 100644 index 0000000..e77ae8d --- /dev/null +++ b/node_modules/core-js/full/string/virtual/ends-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/ends-with'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/fixed.js b/node_modules/core-js/full/string/virtual/fixed.js new file mode 100644 index 0000000..daf1e22 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/fixed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/fixed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/fontcolor.js b/node_modules/core-js/full/string/virtual/fontcolor.js new file mode 100644 index 0000000..1e9fa24 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/fontcolor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/fontcolor'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/fontsize.js b/node_modules/core-js/full/string/virtual/fontsize.js new file mode 100644 index 0000000..19b2a4c --- /dev/null +++ b/node_modules/core-js/full/string/virtual/fontsize.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/fontsize'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/includes.js b/node_modules/core-js/full/string/virtual/includes.js new file mode 100644 index 0000000..5057bba --- /dev/null +++ b/node_modules/core-js/full/string/virtual/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/index.js b/node_modules/core-js/full/string/virtual/index.js new file mode 100644 index 0000000..261c940 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/index.js @@ -0,0 +1,10 @@ +'use strict'; +var parent = require('../../../actual/string/virtual'); +// TODO: remove from `core-js@4` +require('../../../modules/esnext.string.at'); +require('../../../modules/esnext.string.code-points'); +// TODO: remove from `core-js@4` +require('../../../modules/esnext.string.match-all'); +require('../../../modules/esnext.string.replace-all'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/is-well-formed.js b/node_modules/core-js/full/string/virtual/is-well-formed.js new file mode 100644 index 0000000..0358bea --- /dev/null +++ b/node_modules/core-js/full/string/virtual/is-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/is-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/italics.js b/node_modules/core-js/full/string/virtual/italics.js new file mode 100644 index 0000000..8714b59 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/italics.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/italics'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/iterator.js b/node_modules/core-js/full/string/virtual/iterator.js new file mode 100644 index 0000000..1878fd1 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/link.js b/node_modules/core-js/full/string/virtual/link.js new file mode 100644 index 0000000..f61a09b --- /dev/null +++ b/node_modules/core-js/full/string/virtual/link.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/link'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/match-all.js b/node_modules/core-js/full/string/virtual/match-all.js new file mode 100644 index 0000000..26e80f6 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/match-all.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: remove from `core-js@4` +require('../../../modules/esnext.string.match-all'); + +var parent = require('../../../actual/string/virtual/match-all'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/pad-end.js b/node_modules/core-js/full/string/virtual/pad-end.js new file mode 100644 index 0000000..f02b9ec --- /dev/null +++ b/node_modules/core-js/full/string/virtual/pad-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/pad-end'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/pad-start.js b/node_modules/core-js/full/string/virtual/pad-start.js new file mode 100644 index 0000000..f8aeed6 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/pad-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/pad-start'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/repeat.js b/node_modules/core-js/full/string/virtual/repeat.js new file mode 100644 index 0000000..4dc5718 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/repeat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/repeat'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/replace-all.js b/node_modules/core-js/full/string/virtual/replace-all.js new file mode 100644 index 0000000..cdf4c9d --- /dev/null +++ b/node_modules/core-js/full/string/virtual/replace-all.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: remove from `core-js@4` +require('../../../modules/esnext.string.replace-all'); + +var parent = require('../../../actual/string/virtual/replace-all'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/small.js b/node_modules/core-js/full/string/virtual/small.js new file mode 100644 index 0000000..7dd3fdf --- /dev/null +++ b/node_modules/core-js/full/string/virtual/small.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/small'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/starts-with.js b/node_modules/core-js/full/string/virtual/starts-with.js new file mode 100644 index 0000000..7cda818 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/starts-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/starts-with'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/strike.js b/node_modules/core-js/full/string/virtual/strike.js new file mode 100644 index 0000000..f1cdccb --- /dev/null +++ b/node_modules/core-js/full/string/virtual/strike.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/strike'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/sub.js b/node_modules/core-js/full/string/virtual/sub.js new file mode 100644 index 0000000..10cb6c2 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/sub.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/sub'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/substr.js b/node_modules/core-js/full/string/virtual/substr.js new file mode 100644 index 0000000..5870366 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/substr.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/substr'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/sup.js b/node_modules/core-js/full/string/virtual/sup.js new file mode 100644 index 0000000..132152b --- /dev/null +++ b/node_modules/core-js/full/string/virtual/sup.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/sup'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/to-well-formed.js b/node_modules/core-js/full/string/virtual/to-well-formed.js new file mode 100644 index 0000000..f4f5d71 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/to-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/to-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/trim-end.js b/node_modules/core-js/full/string/virtual/trim-end.js new file mode 100644 index 0000000..961704f --- /dev/null +++ b/node_modules/core-js/full/string/virtual/trim-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/trim-end'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/trim-left.js b/node_modules/core-js/full/string/virtual/trim-left.js new file mode 100644 index 0000000..59bb506 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/trim-left.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/trim-left'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/trim-right.js b/node_modules/core-js/full/string/virtual/trim-right.js new file mode 100644 index 0000000..69fe2c9 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/trim-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/trim-right'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/trim-start.js b/node_modules/core-js/full/string/virtual/trim-start.js new file mode 100644 index 0000000..fce3e89 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/trim-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/trim-start'); + +module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/trim.js b/node_modules/core-js/full/string/virtual/trim.js new file mode 100644 index 0000000..af5fa18 --- /dev/null +++ b/node_modules/core-js/full/string/virtual/trim.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../actual/string/virtual/trim'); + +module.exports = parent; diff --git a/node_modules/core-js/full/structured-clone.js b/node_modules/core-js/full/structured-clone.js new file mode 100644 index 0000000..e79f18f --- /dev/null +++ b/node_modules/core-js/full/structured-clone.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/structured-clone'); + +module.exports = parent; diff --git a/node_modules/core-js/full/suppressed-error.js b/node_modules/core-js/full/suppressed-error.js new file mode 100644 index 0000000..4b2905a --- /dev/null +++ b/node_modules/core-js/full/suppressed-error.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/suppressed-error'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/async-dispose.js b/node_modules/core-js/full/symbol/async-dispose.js new file mode 100644 index 0000000..badcbcf --- /dev/null +++ b/node_modules/core-js/full/symbol/async-dispose.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/async-dispose'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/async-iterator.js b/node_modules/core-js/full/symbol/async-iterator.js new file mode 100644 index 0000000..fd7aa54 --- /dev/null +++ b/node_modules/core-js/full/symbol/async-iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/async-iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/custom-matcher.js b/node_modules/core-js/full/symbol/custom-matcher.js new file mode 100644 index 0000000..7b6dad3 --- /dev/null +++ b/node_modules/core-js/full/symbol/custom-matcher.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.symbol.custom-matcher'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('customMatcher'); diff --git a/node_modules/core-js/full/symbol/description.js b/node_modules/core-js/full/symbol/description.js new file mode 100644 index 0000000..01ce17a --- /dev/null +++ b/node_modules/core-js/full/symbol/description.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/es.symbol.description'); diff --git a/node_modules/core-js/full/symbol/dispose.js b/node_modules/core-js/full/symbol/dispose.js new file mode 100644 index 0000000..153ed52 --- /dev/null +++ b/node_modules/core-js/full/symbol/dispose.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/dispose'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/for.js b/node_modules/core-js/full/symbol/for.js new file mode 100644 index 0000000..6e5e5c6 --- /dev/null +++ b/node_modules/core-js/full/symbol/for.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/for'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/has-instance.js b/node_modules/core-js/full/symbol/has-instance.js new file mode 100644 index 0000000..b70ed03 --- /dev/null +++ b/node_modules/core-js/full/symbol/has-instance.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/has-instance'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/index.js b/node_modules/core-js/full/symbol/index.js new file mode 100644 index 0000000..8366813 --- /dev/null +++ b/node_modules/core-js/full/symbol/index.js @@ -0,0 +1,15 @@ +'use strict'; +var parent = require('../../actual/symbol'); +require('../../modules/esnext.symbol.is-registered-symbol'); +require('../../modules/esnext.symbol.is-well-known-symbol'); +require('../../modules/esnext.symbol.custom-matcher'); +require('../../modules/esnext.symbol.observable'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.symbol.is-registered'); +require('../../modules/esnext.symbol.is-well-known'); +require('../../modules/esnext.symbol.matcher'); +require('../../modules/esnext.symbol.metadata-key'); +require('../../modules/esnext.symbol.pattern-match'); +require('../../modules/esnext.symbol.replace-all'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/is-concat-spreadable.js b/node_modules/core-js/full/symbol/is-concat-spreadable.js new file mode 100644 index 0000000..606e169 --- /dev/null +++ b/node_modules/core-js/full/symbol/is-concat-spreadable.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/is-concat-spreadable'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/is-registered-symbol.js b/node_modules/core-js/full/symbol/is-registered-symbol.js new file mode 100644 index 0000000..7ef1f02 --- /dev/null +++ b/node_modules/core-js/full/symbol/is-registered-symbol.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.symbol'); +require('../../modules/esnext.symbol.is-registered-symbol'); +var path = require('../../internals/path'); + +module.exports = path.Symbol.isRegisteredSymbol; diff --git a/node_modules/core-js/full/symbol/is-registered.js b/node_modules/core-js/full/symbol/is-registered.js new file mode 100644 index 0000000..7a2e6d2 --- /dev/null +++ b/node_modules/core-js/full/symbol/is-registered.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.symbol'); +require('../../modules/esnext.symbol.is-registered'); +var path = require('../../internals/path'); + +module.exports = path.Symbol.isRegistered; diff --git a/node_modules/core-js/full/symbol/is-well-known-symbol.js b/node_modules/core-js/full/symbol/is-well-known-symbol.js new file mode 100644 index 0000000..5106242 --- /dev/null +++ b/node_modules/core-js/full/symbol/is-well-known-symbol.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.symbol'); +require('../../modules/esnext.symbol.is-well-known-symbol'); +var path = require('../../internals/path'); + +module.exports = path.Symbol.isWellKnownSymbol; diff --git a/node_modules/core-js/full/symbol/is-well-known.js b/node_modules/core-js/full/symbol/is-well-known.js new file mode 100644 index 0000000..9e9f648 --- /dev/null +++ b/node_modules/core-js/full/symbol/is-well-known.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.symbol'); +require('../../modules/esnext.symbol.is-well-known'); +var path = require('../../internals/path'); + +module.exports = path.Symbol.isWellKnown; diff --git a/node_modules/core-js/full/symbol/iterator.js b/node_modules/core-js/full/symbol/iterator.js new file mode 100644 index 0000000..5ed48cc --- /dev/null +++ b/node_modules/core-js/full/symbol/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/key-for.js b/node_modules/core-js/full/symbol/key-for.js new file mode 100644 index 0000000..a959f7f --- /dev/null +++ b/node_modules/core-js/full/symbol/key-for.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/key-for'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/match-all.js b/node_modules/core-js/full/symbol/match-all.js new file mode 100644 index 0000000..6ee8474 --- /dev/null +++ b/node_modules/core-js/full/symbol/match-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/match-all'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/match.js b/node_modules/core-js/full/symbol/match.js new file mode 100644 index 0000000..29f668e --- /dev/null +++ b/node_modules/core-js/full/symbol/match.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/match'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/matcher.js b/node_modules/core-js/full/symbol/matcher.js new file mode 100644 index 0000000..8ae8bd1 --- /dev/null +++ b/node_modules/core-js/full/symbol/matcher.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.symbol.matcher'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('matcher'); diff --git a/node_modules/core-js/full/symbol/metadata-key.js b/node_modules/core-js/full/symbol/metadata-key.js new file mode 100644 index 0000000..a6fcd00 --- /dev/null +++ b/node_modules/core-js/full/symbol/metadata-key.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.symbol.metadata-key'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('metadataKey'); diff --git a/node_modules/core-js/full/symbol/metadata.js b/node_modules/core-js/full/symbol/metadata.js new file mode 100644 index 0000000..b44c1a5 --- /dev/null +++ b/node_modules/core-js/full/symbol/metadata.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/metadata'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/observable.js b/node_modules/core-js/full/symbol/observable.js new file mode 100644 index 0000000..3f05b28 --- /dev/null +++ b/node_modules/core-js/full/symbol/observable.js @@ -0,0 +1,5 @@ +'use strict'; +require('../../modules/esnext.symbol.observable'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('observable'); diff --git a/node_modules/core-js/full/symbol/pattern-match.js b/node_modules/core-js/full/symbol/pattern-match.js new file mode 100644 index 0000000..3bd8489 --- /dev/null +++ b/node_modules/core-js/full/symbol/pattern-match.js @@ -0,0 +1,6 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../../modules/esnext.symbol.pattern-match'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('patternMatch'); diff --git a/node_modules/core-js/full/symbol/replace-all.js b/node_modules/core-js/full/symbol/replace-all.js new file mode 100644 index 0000000..76a360a --- /dev/null +++ b/node_modules/core-js/full/symbol/replace-all.js @@ -0,0 +1,6 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../../modules/esnext.symbol.replace-all'); +var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); + +module.exports = WrappedWellKnownSymbolModule.f('replaceAll'); diff --git a/node_modules/core-js/full/symbol/replace.js b/node_modules/core-js/full/symbol/replace.js new file mode 100644 index 0000000..749b2c1 --- /dev/null +++ b/node_modules/core-js/full/symbol/replace.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/replace'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/search.js b/node_modules/core-js/full/symbol/search.js new file mode 100644 index 0000000..4259531 --- /dev/null +++ b/node_modules/core-js/full/symbol/search.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/search'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/species.js b/node_modules/core-js/full/symbol/species.js new file mode 100644 index 0000000..970e526 --- /dev/null +++ b/node_modules/core-js/full/symbol/species.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/species'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/split.js b/node_modules/core-js/full/symbol/split.js new file mode 100644 index 0000000..07c221d --- /dev/null +++ b/node_modules/core-js/full/symbol/split.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/split'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/to-primitive.js b/node_modules/core-js/full/symbol/to-primitive.js new file mode 100644 index 0000000..4775a13 --- /dev/null +++ b/node_modules/core-js/full/symbol/to-primitive.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/to-primitive'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/to-string-tag.js b/node_modules/core-js/full/symbol/to-string-tag.js new file mode 100644 index 0000000..3a1918b --- /dev/null +++ b/node_modules/core-js/full/symbol/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/to-string-tag'); + +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/unscopables.js b/node_modules/core-js/full/symbol/unscopables.js new file mode 100644 index 0000000..379e8b3 --- /dev/null +++ b/node_modules/core-js/full/symbol/unscopables.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/symbol/unscopables'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/at.js b/node_modules/core-js/full/typed-array/at.js new file mode 100644 index 0000000..ee0919f --- /dev/null +++ b/node_modules/core-js/full/typed-array/at.js @@ -0,0 +1,7 @@ +'use strict'; +var parent = require('../../actual/typed-array/at'); + +// TODO: Remove from `core-js@4` +require('../../modules/esnext.typed-array.at'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/copy-within.js b/node_modules/core-js/full/typed-array/copy-within.js new file mode 100644 index 0000000..c2228f8 --- /dev/null +++ b/node_modules/core-js/full/typed-array/copy-within.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/copy-within'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/entries.js b/node_modules/core-js/full/typed-array/entries.js new file mode 100644 index 0000000..cf3edb6 --- /dev/null +++ b/node_modules/core-js/full/typed-array/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/every.js b/node_modules/core-js/full/typed-array/every.js new file mode 100644 index 0000000..4d40f03 --- /dev/null +++ b/node_modules/core-js/full/typed-array/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/every'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/fill.js b/node_modules/core-js/full/typed-array/fill.js new file mode 100644 index 0000000..50b2d54 --- /dev/null +++ b/node_modules/core-js/full/typed-array/fill.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/fill'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/filter-out.js b/node_modules/core-js/full/typed-array/filter-out.js new file mode 100644 index 0000000..a6726b7 --- /dev/null +++ b/node_modules/core-js/full/typed-array/filter-out.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../../modules/esnext.typed-array.filter-out'); diff --git a/node_modules/core-js/full/typed-array/filter-reject.js b/node_modules/core-js/full/typed-array/filter-reject.js new file mode 100644 index 0000000..c9d3275 --- /dev/null +++ b/node_modules/core-js/full/typed-array/filter-reject.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.typed-array.filter-reject'); diff --git a/node_modules/core-js/full/typed-array/filter.js b/node_modules/core-js/full/typed-array/filter.js new file mode 100644 index 0000000..0e5b349 --- /dev/null +++ b/node_modules/core-js/full/typed-array/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/find-index.js b/node_modules/core-js/full/typed-array/find-index.js new file mode 100644 index 0000000..f770e7d --- /dev/null +++ b/node_modules/core-js/full/typed-array/find-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/find-index'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/find-last-index.js b/node_modules/core-js/full/typed-array/find-last-index.js new file mode 100644 index 0000000..1c8ade6 --- /dev/null +++ b/node_modules/core-js/full/typed-array/find-last-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/find-last-index'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/find-last.js b/node_modules/core-js/full/typed-array/find-last.js new file mode 100644 index 0000000..5279720 --- /dev/null +++ b/node_modules/core-js/full/typed-array/find-last.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/find-last'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/find.js b/node_modules/core-js/full/typed-array/find.js new file mode 100644 index 0000000..c78edee --- /dev/null +++ b/node_modules/core-js/full/typed-array/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/find'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/float32-array.js b/node_modules/core-js/full/typed-array/float32-array.js new file mode 100644 index 0000000..94de0e7 --- /dev/null +++ b/node_modules/core-js/full/typed-array/float32-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../actual/typed-array/float32-array'); +require('../../full/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/float64-array.js b/node_modules/core-js/full/typed-array/float64-array.js new file mode 100644 index 0000000..8837577 --- /dev/null +++ b/node_modules/core-js/full/typed-array/float64-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../actual/typed-array/float64-array'); +require('../../full/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/for-each.js b/node_modules/core-js/full/typed-array/for-each.js new file mode 100644 index 0000000..8ceca88 --- /dev/null +++ b/node_modules/core-js/full/typed-array/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/from-async.js b/node_modules/core-js/full/typed-array/from-async.js new file mode 100644 index 0000000..f78f4a8 --- /dev/null +++ b/node_modules/core-js/full/typed-array/from-async.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.typed-array.from-async'); diff --git a/node_modules/core-js/full/typed-array/from-base64.js b/node_modules/core-js/full/typed-array/from-base64.js new file mode 100644 index 0000000..7338700 --- /dev/null +++ b/node_modules/core-js/full/typed-array/from-base64.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/from-base64'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/from-hex.js b/node_modules/core-js/full/typed-array/from-hex.js new file mode 100644 index 0000000..4d329ec --- /dev/null +++ b/node_modules/core-js/full/typed-array/from-hex.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/from-hex'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/from.js b/node_modules/core-js/full/typed-array/from.js new file mode 100644 index 0000000..a1693c8 --- /dev/null +++ b/node_modules/core-js/full/typed-array/from.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/from'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/group-by.js b/node_modules/core-js/full/typed-array/group-by.js new file mode 100644 index 0000000..cea8d66 --- /dev/null +++ b/node_modules/core-js/full/typed-array/group-by.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/esnext.typed-array.group-by'); diff --git a/node_modules/core-js/full/typed-array/includes.js b/node_modules/core-js/full/typed-array/includes.js new file mode 100644 index 0000000..d901103 --- /dev/null +++ b/node_modules/core-js/full/typed-array/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/index-of.js b/node_modules/core-js/full/typed-array/index-of.js new file mode 100644 index 0000000..89a1fd9 --- /dev/null +++ b/node_modules/core-js/full/typed-array/index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/index.js b/node_modules/core-js/full/typed-array/index.js new file mode 100644 index 0000000..2a1f043 --- /dev/null +++ b/node_modules/core-js/full/typed-array/index.js @@ -0,0 +1,14 @@ +'use strict'; +var parent = require('../../actual/typed-array'); +require('../../modules/es.map'); +require('../../modules/es.promise'); +require('../../modules/esnext.typed-array.from-async'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.typed-array.at'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.typed-array.filter-out'); +require('../../modules/esnext.typed-array.filter-reject'); +require('../../modules/esnext.typed-array.group-by'); +require('../../modules/esnext.typed-array.unique-by'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/int16-array.js b/node_modules/core-js/full/typed-array/int16-array.js new file mode 100644 index 0000000..b9473c6 --- /dev/null +++ b/node_modules/core-js/full/typed-array/int16-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../actual/typed-array/int16-array'); +require('../../full/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/int32-array.js b/node_modules/core-js/full/typed-array/int32-array.js new file mode 100644 index 0000000..283854b --- /dev/null +++ b/node_modules/core-js/full/typed-array/int32-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../actual/typed-array/int32-array'); +require('../../full/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/int8-array.js b/node_modules/core-js/full/typed-array/int8-array.js new file mode 100644 index 0000000..37ab3fb --- /dev/null +++ b/node_modules/core-js/full/typed-array/int8-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../actual/typed-array/int8-array'); +require('../../full/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/iterator.js b/node_modules/core-js/full/typed-array/iterator.js new file mode 100644 index 0000000..a7c10a3 --- /dev/null +++ b/node_modules/core-js/full/typed-array/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/join.js b/node_modules/core-js/full/typed-array/join.js new file mode 100644 index 0000000..cbfce88 --- /dev/null +++ b/node_modules/core-js/full/typed-array/join.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/join'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/keys.js b/node_modules/core-js/full/typed-array/keys.js new file mode 100644 index 0000000..369e7d4 --- /dev/null +++ b/node_modules/core-js/full/typed-array/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/last-index-of.js b/node_modules/core-js/full/typed-array/last-index-of.js new file mode 100644 index 0000000..940fb2d --- /dev/null +++ b/node_modules/core-js/full/typed-array/last-index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/last-index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/map.js b/node_modules/core-js/full/typed-array/map.js new file mode 100644 index 0000000..a979363 --- /dev/null +++ b/node_modules/core-js/full/typed-array/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/map'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/methods.js b/node_modules/core-js/full/typed-array/methods.js new file mode 100644 index 0000000..1e85c5f --- /dev/null +++ b/node_modules/core-js/full/typed-array/methods.js @@ -0,0 +1,14 @@ +'use strict'; +var parent = require('../../actual/typed-array/methods'); +require('../../modules/es.map'); +require('../../modules/es.promise'); +require('../../modules/esnext.typed-array.from-async'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.typed-array.at'); +// TODO: Remove from `core-js@4` +require('../../modules/esnext.typed-array.filter-out'); +require('../../modules/esnext.typed-array.filter-reject'); +require('../../modules/esnext.typed-array.group-by'); +require('../../modules/esnext.typed-array.unique-by'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/of.js b/node_modules/core-js/full/typed-array/of.js new file mode 100644 index 0000000..8b4d096 --- /dev/null +++ b/node_modules/core-js/full/typed-array/of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/reduce-right.js b/node_modules/core-js/full/typed-array/reduce-right.js new file mode 100644 index 0000000..350a25c --- /dev/null +++ b/node_modules/core-js/full/typed-array/reduce-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/reduce-right'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/reduce.js b/node_modules/core-js/full/typed-array/reduce.js new file mode 100644 index 0000000..dc2ca2d --- /dev/null +++ b/node_modules/core-js/full/typed-array/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/reverse.js b/node_modules/core-js/full/typed-array/reverse.js new file mode 100644 index 0000000..c6d6242 --- /dev/null +++ b/node_modules/core-js/full/typed-array/reverse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/reverse'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/set-from-base64.js b/node_modules/core-js/full/typed-array/set-from-base64.js new file mode 100644 index 0000000..78bf569 --- /dev/null +++ b/node_modules/core-js/full/typed-array/set-from-base64.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/set-from-base64'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/set-from-hex.js b/node_modules/core-js/full/typed-array/set-from-hex.js new file mode 100644 index 0000000..9b112f5 --- /dev/null +++ b/node_modules/core-js/full/typed-array/set-from-hex.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/set-from-hex'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/set.js b/node_modules/core-js/full/typed-array/set.js new file mode 100644 index 0000000..d1cf8f2 --- /dev/null +++ b/node_modules/core-js/full/typed-array/set.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/set'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/slice.js b/node_modules/core-js/full/typed-array/slice.js new file mode 100644 index 0000000..264ae0f --- /dev/null +++ b/node_modules/core-js/full/typed-array/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/some.js b/node_modules/core-js/full/typed-array/some.js new file mode 100644 index 0000000..32d17c2 --- /dev/null +++ b/node_modules/core-js/full/typed-array/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/some'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/sort.js b/node_modules/core-js/full/typed-array/sort.js new file mode 100644 index 0000000..cdc3de3 --- /dev/null +++ b/node_modules/core-js/full/typed-array/sort.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/sort'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/subarray.js b/node_modules/core-js/full/typed-array/subarray.js new file mode 100644 index 0000000..a638b2a --- /dev/null +++ b/node_modules/core-js/full/typed-array/subarray.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/subarray'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/to-base64.js b/node_modules/core-js/full/typed-array/to-base64.js new file mode 100644 index 0000000..065c3a6 --- /dev/null +++ b/node_modules/core-js/full/typed-array/to-base64.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/to-base64'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/to-hex.js b/node_modules/core-js/full/typed-array/to-hex.js new file mode 100644 index 0000000..2d15510 --- /dev/null +++ b/node_modules/core-js/full/typed-array/to-hex.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/to-hex'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/to-locale-string.js b/node_modules/core-js/full/typed-array/to-locale-string.js new file mode 100644 index 0000000..fbc9f6f --- /dev/null +++ b/node_modules/core-js/full/typed-array/to-locale-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/to-locale-string'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/to-reversed.js b/node_modules/core-js/full/typed-array/to-reversed.js new file mode 100644 index 0000000..9fa431a --- /dev/null +++ b/node_modules/core-js/full/typed-array/to-reversed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/to-reversed'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/to-sorted.js b/node_modules/core-js/full/typed-array/to-sorted.js new file mode 100644 index 0000000..0445376 --- /dev/null +++ b/node_modules/core-js/full/typed-array/to-sorted.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/to-sorted'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/to-spliced.js b/node_modules/core-js/full/typed-array/to-spliced.js new file mode 100644 index 0000000..a21aff3 --- /dev/null +++ b/node_modules/core-js/full/typed-array/to-spliced.js @@ -0,0 +1,5 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var parent = require('../../actual/typed-array/to-spliced'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/to-string.js b/node_modules/core-js/full/typed-array/to-string.js new file mode 100644 index 0000000..0c9f331 --- /dev/null +++ b/node_modules/core-js/full/typed-array/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/uint16-array.js b/node_modules/core-js/full/typed-array/uint16-array.js new file mode 100644 index 0000000..53fa819 --- /dev/null +++ b/node_modules/core-js/full/typed-array/uint16-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../actual/typed-array/uint16-array'); +require('../../full/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/uint32-array.js b/node_modules/core-js/full/typed-array/uint32-array.js new file mode 100644 index 0000000..f577d7f --- /dev/null +++ b/node_modules/core-js/full/typed-array/uint32-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../actual/typed-array/uint32-array'); +require('../../full/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/uint8-array.js b/node_modules/core-js/full/typed-array/uint8-array.js new file mode 100644 index 0000000..3eb28d7 --- /dev/null +++ b/node_modules/core-js/full/typed-array/uint8-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../actual/typed-array/uint8-array'); +require('../../full/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/uint8-clamped-array.js b/node_modules/core-js/full/typed-array/uint8-clamped-array.js new file mode 100644 index 0000000..493d611 --- /dev/null +++ b/node_modules/core-js/full/typed-array/uint8-clamped-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../actual/typed-array/uint8-clamped-array'); +require('../../full/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/unique-by.js b/node_modules/core-js/full/typed-array/unique-by.js new file mode 100644 index 0000000..43a46a7 --- /dev/null +++ b/node_modules/core-js/full/typed-array/unique-by.js @@ -0,0 +1,3 @@ +'use strict'; +require('../../modules/es.map'); +require('../../modules/esnext.typed-array.unique-by'); diff --git a/node_modules/core-js/full/typed-array/values.js b/node_modules/core-js/full/typed-array/values.js new file mode 100644 index 0000000..4ef9b9d --- /dev/null +++ b/node_modules/core-js/full/typed-array/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/values'); + +module.exports = parent; diff --git a/node_modules/core-js/full/typed-array/with.js b/node_modules/core-js/full/typed-array/with.js new file mode 100644 index 0000000..ec01ee5 --- /dev/null +++ b/node_modules/core-js/full/typed-array/with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/typed-array/with'); + +module.exports = parent; diff --git a/node_modules/core-js/full/unescape.js b/node_modules/core-js/full/unescape.js new file mode 100644 index 0000000..c9d614a --- /dev/null +++ b/node_modules/core-js/full/unescape.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../actual/unescape'); + +module.exports = parent; diff --git a/node_modules/core-js/full/url-search-params/index.js b/node_modules/core-js/full/url-search-params/index.js new file mode 100644 index 0000000..d6e6df5 --- /dev/null +++ b/node_modules/core-js/full/url-search-params/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/url-search-params'); + +module.exports = parent; diff --git a/node_modules/core-js/full/url/can-parse.js b/node_modules/core-js/full/url/can-parse.js new file mode 100644 index 0000000..5b083b0 --- /dev/null +++ b/node_modules/core-js/full/url/can-parse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/url/can-parse'); + +module.exports = parent; diff --git a/node_modules/core-js/full/url/index.js b/node_modules/core-js/full/url/index.js new file mode 100644 index 0000000..59c378f --- /dev/null +++ b/node_modules/core-js/full/url/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/url'); + +module.exports = parent; diff --git a/node_modules/core-js/full/url/parse.js b/node_modules/core-js/full/url/parse.js new file mode 100644 index 0000000..7105032 --- /dev/null +++ b/node_modules/core-js/full/url/parse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/url/parse'); + +module.exports = parent; diff --git a/node_modules/core-js/full/url/to-json.js b/node_modules/core-js/full/url/to-json.js new file mode 100644 index 0000000..c26ef4a --- /dev/null +++ b/node_modules/core-js/full/url/to-json.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../actual/url/to-json'); + +module.exports = parent; diff --git a/node_modules/core-js/full/weak-map/delete-all.js b/node_modules/core-js/full/weak-map/delete-all.js new file mode 100644 index 0000000..76f854b --- /dev/null +++ b/node_modules/core-js/full/weak-map/delete-all.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.weak-map'); +require('../../modules/esnext.weak-map.delete-all'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('WeakMap', 'deleteAll'); diff --git a/node_modules/core-js/full/weak-map/emplace.js b/node_modules/core-js/full/weak-map/emplace.js new file mode 100644 index 0000000..fc3844a --- /dev/null +++ b/node_modules/core-js/full/weak-map/emplace.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.weak-map'); +require('../../modules/esnext.weak-map.emplace'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('WeakMap', 'emplace'); diff --git a/node_modules/core-js/full/weak-map/from.js b/node_modules/core-js/full/weak-map/from.js new file mode 100644 index 0000000..39cf823 --- /dev/null +++ b/node_modules/core-js/full/weak-map/from.js @@ -0,0 +1,12 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.array.iterator'); +require('../../modules/es.string.iterator'); +require('../../modules/es.weak-map'); +require('../../modules/esnext.weak-map.from'); +require('../../modules/esnext.weak-map.delete-all'); +require('../../modules/esnext.weak-map.emplace'); +require('../../modules/web.dom-collections.iterator'); +var path = require('../../internals/path'); + +module.exports = path.WeakMap.from; diff --git a/node_modules/core-js/full/weak-map/index.js b/node_modules/core-js/full/weak-map/index.js new file mode 100644 index 0000000..5244cd3 --- /dev/null +++ b/node_modules/core-js/full/weak-map/index.js @@ -0,0 +1,11 @@ +'use strict'; +var parent = require('../../actual/weak-map'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.weak-map.emplace'); +require('../../modules/esnext.weak-map.from'); +require('../../modules/esnext.weak-map.of'); +require('../../modules/esnext.weak-map.delete-all'); +// TODO: remove from `core-js@4` +require('../../modules/esnext.weak-map.upsert'); + +module.exports = parent; diff --git a/node_modules/core-js/full/weak-map/of.js b/node_modules/core-js/full/weak-map/of.js new file mode 100644 index 0000000..611a73b --- /dev/null +++ b/node_modules/core-js/full/weak-map/of.js @@ -0,0 +1,10 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.array.iterator'); +require('../../modules/es.weak-map'); +require('../../modules/esnext.weak-map.of'); +require('../../modules/esnext.weak-map.delete-all'); +require('../../modules/esnext.weak-map.emplace'); +var path = require('../../internals/path'); + +module.exports = path.WeakMap.of; diff --git a/node_modules/core-js/full/weak-map/upsert.js b/node_modules/core-js/full/weak-map/upsert.js new file mode 100644 index 0000000..003098f --- /dev/null +++ b/node_modules/core-js/full/weak-map/upsert.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.weak-map'); +require('../../modules/esnext.weak-map.upsert'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('WeakMap', 'upsert'); diff --git a/node_modules/core-js/full/weak-set/add-all.js b/node_modules/core-js/full/weak-set/add-all.js new file mode 100644 index 0000000..4ecd10f --- /dev/null +++ b/node_modules/core-js/full/weak-set/add-all.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.weak-set'); +require('../../modules/esnext.weak-set.add-all'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('WeakSet', 'addAll'); diff --git a/node_modules/core-js/full/weak-set/delete-all.js b/node_modules/core-js/full/weak-set/delete-all.js new file mode 100644 index 0000000..5ddc14a --- /dev/null +++ b/node_modules/core-js/full/weak-set/delete-all.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.weak-set'); +require('../../modules/esnext.weak-set.delete-all'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('WeakSet', 'deleteAll'); diff --git a/node_modules/core-js/full/weak-set/from.js b/node_modules/core-js/full/weak-set/from.js new file mode 100644 index 0000000..5d7a4f9 --- /dev/null +++ b/node_modules/core-js/full/weak-set/from.js @@ -0,0 +1,12 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.array.iterator'); +require('../../modules/es.string.iterator'); +require('../../modules/es.weak-set'); +require('../../modules/esnext.weak-set.from'); +require('../../modules/esnext.weak-set.add-all'); +require('../../modules/esnext.weak-set.delete-all'); +require('../../modules/web.dom-collections.iterator'); +var path = require('../../internals/path'); + +module.exports = path.WeakSet.from; diff --git a/node_modules/core-js/full/weak-set/index.js b/node_modules/core-js/full/weak-set/index.js new file mode 100644 index 0000000..9d9ac8d --- /dev/null +++ b/node_modules/core-js/full/weak-set/index.js @@ -0,0 +1,9 @@ +'use strict'; +var parent = require('../../actual/weak-set'); +require('../../modules/es.string.iterator'); +require('../../modules/esnext.weak-set.add-all'); +require('../../modules/esnext.weak-set.delete-all'); +require('../../modules/esnext.weak-set.from'); +require('../../modules/esnext.weak-set.of'); + +module.exports = parent; diff --git a/node_modules/core-js/full/weak-set/of.js b/node_modules/core-js/full/weak-set/of.js new file mode 100644 index 0000000..79b4523 --- /dev/null +++ b/node_modules/core-js/full/weak-set/of.js @@ -0,0 +1,10 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/es.array.iterator'); +require('../../modules/es.weak-set'); +require('../../modules/esnext.weak-set.of'); +require('../../modules/esnext.weak-set.add-all'); +require('../../modules/esnext.weak-set.delete-all'); +var path = require('../../internals/path'); + +module.exports = path.WeakSet.of; diff --git a/node_modules/core-js/index.js b/node_modules/core-js/index.js new file mode 100644 index 0000000..b4eca7e --- /dev/null +++ b/node_modules/core-js/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./full'); diff --git a/node_modules/core-js/internals/README.md b/node_modules/core-js/internals/README.md new file mode 100644 index 0000000..f5cca30 --- /dev/null +++ b/node_modules/core-js/internals/README.md @@ -0,0 +1 @@ +This folder contains internal parts of `core-js` like helpers. diff --git a/node_modules/core-js/internals/a-callable.js b/node_modules/core-js/internals/a-callable.js new file mode 100644 index 0000000..0aae1ad --- /dev/null +++ b/node_modules/core-js/internals/a-callable.js @@ -0,0 +1,11 @@ +'use strict'; +var isCallable = require('../internals/is-callable'); +var tryToString = require('../internals/try-to-string'); + +var $TypeError = TypeError; + +// `Assert: IsCallable(argument) is true` +module.exports = function (argument) { + if (isCallable(argument)) return argument; + throw new $TypeError(tryToString(argument) + ' is not a function'); +}; diff --git a/node_modules/core-js/internals/a-constructor.js b/node_modules/core-js/internals/a-constructor.js new file mode 100644 index 0000000..efede0f --- /dev/null +++ b/node_modules/core-js/internals/a-constructor.js @@ -0,0 +1,11 @@ +'use strict'; +var isConstructor = require('../internals/is-constructor'); +var tryToString = require('../internals/try-to-string'); + +var $TypeError = TypeError; + +// `Assert: IsConstructor(argument) is true` +module.exports = function (argument) { + if (isConstructor(argument)) return argument; + throw new $TypeError(tryToString(argument) + ' is not a constructor'); +}; diff --git a/node_modules/core-js/internals/a-data-view.js b/node_modules/core-js/internals/a-data-view.js new file mode 100644 index 0000000..12ed3e5 --- /dev/null +++ b/node_modules/core-js/internals/a-data-view.js @@ -0,0 +1,9 @@ +'use strict'; +var classof = require('../internals/classof'); + +var $TypeError = TypeError; + +module.exports = function (argument) { + if (classof(argument) === 'DataView') return argument; + throw new $TypeError('Argument is not a DataView'); +}; diff --git a/node_modules/core-js/internals/a-map.js b/node_modules/core-js/internals/a-map.js new file mode 100644 index 0000000..0b21a89 --- /dev/null +++ b/node_modules/core-js/internals/a-map.js @@ -0,0 +1,8 @@ +'use strict'; +var has = require('../internals/map-helpers').has; + +// Perform ? RequireInternalSlot(M, [[MapData]]) +module.exports = function (it) { + has(it); + return it; +}; diff --git a/node_modules/core-js/internals/a-possible-prototype.js b/node_modules/core-js/internals/a-possible-prototype.js new file mode 100644 index 0000000..d800258 --- /dev/null +++ b/node_modules/core-js/internals/a-possible-prototype.js @@ -0,0 +1,10 @@ +'use strict'; +var isPossiblePrototype = require('../internals/is-possible-prototype'); + +var $String = String; +var $TypeError = TypeError; + +module.exports = function (argument) { + if (isPossiblePrototype(argument)) return argument; + throw new $TypeError("Can't set " + $String(argument) + ' as a prototype'); +}; diff --git a/node_modules/core-js/internals/a-set.js b/node_modules/core-js/internals/a-set.js new file mode 100644 index 0000000..6df1ead --- /dev/null +++ b/node_modules/core-js/internals/a-set.js @@ -0,0 +1,8 @@ +'use strict'; +var has = require('../internals/set-helpers').has; + +// Perform ? RequireInternalSlot(M, [[SetData]]) +module.exports = function (it) { + has(it); + return it; +}; diff --git a/node_modules/core-js/internals/a-string.js b/node_modules/core-js/internals/a-string.js new file mode 100644 index 0000000..ec8dff3 --- /dev/null +++ b/node_modules/core-js/internals/a-string.js @@ -0,0 +1,7 @@ +'use strict'; +var $TypeError = TypeError; + +module.exports = function (argument) { + if (typeof argument == 'string') return argument; + throw new $TypeError('Argument is not a string'); +}; diff --git a/node_modules/core-js/internals/a-weak-map.js b/node_modules/core-js/internals/a-weak-map.js new file mode 100644 index 0000000..5d775f1 --- /dev/null +++ b/node_modules/core-js/internals/a-weak-map.js @@ -0,0 +1,8 @@ +'use strict'; +var has = require('../internals/weak-map-helpers').has; + +// Perform ? RequireInternalSlot(M, [[WeakMapData]]) +module.exports = function (it) { + has(it); + return it; +}; diff --git a/node_modules/core-js/internals/a-weak-set.js b/node_modules/core-js/internals/a-weak-set.js new file mode 100644 index 0000000..5b0c13c --- /dev/null +++ b/node_modules/core-js/internals/a-weak-set.js @@ -0,0 +1,8 @@ +'use strict'; +var has = require('../internals/weak-set-helpers').has; + +// Perform ? RequireInternalSlot(M, [[WeakSetData]]) +module.exports = function (it) { + has(it); + return it; +}; diff --git a/node_modules/core-js/internals/add-disposable-resource.js b/node_modules/core-js/internals/add-disposable-resource.js new file mode 100644 index 0000000..412c9cc --- /dev/null +++ b/node_modules/core-js/internals/add-disposable-resource.js @@ -0,0 +1,56 @@ +'use strict'; +var call = require('../internals/function-call'); +var uncurryThis = require('../internals/function-uncurry-this'); +var bind = require('../internals/function-bind-context'); +var anObject = require('../internals/an-object'); +var aCallable = require('../internals/a-callable'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var getMethod = require('../internals/get-method'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var ASYNC_DISPOSE = wellKnownSymbol('asyncDispose'); +var DISPOSE = wellKnownSymbol('dispose'); + +var push = uncurryThis([].push); + +// `GetDisposeMethod` abstract operation +// https://tc39.es/proposal-explicit-resource-management/#sec-getdisposemethod +var getDisposeMethod = function (V, hint) { + if (hint === 'async-dispose') { + var method = getMethod(V, ASYNC_DISPOSE); + if (method !== undefined) return method; + method = getMethod(V, DISPOSE); + if (method === undefined) return method; + return function () { + call(method, this); + }; + } return getMethod(V, DISPOSE); +}; + +// `CreateDisposableResource` abstract operation +// https://tc39.es/proposal-explicit-resource-management/#sec-createdisposableresource +var createDisposableResource = function (V, hint, method) { + if (arguments.length < 3 && !isNullOrUndefined(V)) { + method = aCallable(getDisposeMethod(anObject(V), hint)); + } + + return method === undefined ? function () { + return undefined; + } : bind(method, V); +}; + +// `AddDisposableResource` abstract operation +// https://tc39.es/proposal-explicit-resource-management/#sec-adddisposableresource +module.exports = function (disposable, V, hint, method) { + var resource; + if (arguments.length < 4) { + // When `V`` is either `null` or `undefined` and hint is `async-dispose`, + // we record that the resource was evaluated to ensure we will still perform an `Await` when resources are later disposed. + if (isNullOrUndefined(V) && hint === 'sync-dispose') return; + resource = createDisposableResource(V, hint); + } else { + resource = createDisposableResource(undefined, hint, method); + } + + push(disposable.stack, resource); +}; diff --git a/node_modules/core-js/internals/add-to-unscopables.js b/node_modules/core-js/internals/add-to-unscopables.js new file mode 100644 index 0000000..c0908db --- /dev/null +++ b/node_modules/core-js/internals/add-to-unscopables.js @@ -0,0 +1,21 @@ +'use strict'; +var wellKnownSymbol = require('../internals/well-known-symbol'); +var create = require('../internals/object-create'); +var defineProperty = require('../internals/object-define-property').f; + +var UNSCOPABLES = wellKnownSymbol('unscopables'); +var ArrayPrototype = Array.prototype; + +// Array.prototype[@@unscopables] +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +if (ArrayPrototype[UNSCOPABLES] === undefined) { + defineProperty(ArrayPrototype, UNSCOPABLES, { + configurable: true, + value: create(null) + }); +} + +// add a key to Array.prototype[@@unscopables] +module.exports = function (key) { + ArrayPrototype[UNSCOPABLES][key] = true; +}; diff --git a/node_modules/core-js/internals/advance-string-index.js b/node_modules/core-js/internals/advance-string-index.js new file mode 100644 index 0000000..f104d53 --- /dev/null +++ b/node_modules/core-js/internals/advance-string-index.js @@ -0,0 +1,8 @@ +'use strict'; +var charAt = require('../internals/string-multibyte').charAt; + +// `AdvanceStringIndex` abstract operation +// https://tc39.es/ecma262/#sec-advancestringindex +module.exports = function (S, index, unicode) { + return index + (unicode ? charAt(S, index).length : 1); +}; diff --git a/node_modules/core-js/internals/an-instance.js b/node_modules/core-js/internals/an-instance.js new file mode 100644 index 0000000..ba3422d --- /dev/null +++ b/node_modules/core-js/internals/an-instance.js @@ -0,0 +1,9 @@ +'use strict'; +var isPrototypeOf = require('../internals/object-is-prototype-of'); + +var $TypeError = TypeError; + +module.exports = function (it, Prototype) { + if (isPrototypeOf(Prototype, it)) return it; + throw new $TypeError('Incorrect invocation'); +}; diff --git a/node_modules/core-js/internals/an-object-or-undefined.js b/node_modules/core-js/internals/an-object-or-undefined.js new file mode 100644 index 0000000..3138e11 --- /dev/null +++ b/node_modules/core-js/internals/an-object-or-undefined.js @@ -0,0 +1,10 @@ +'use strict'; +var isObject = require('../internals/is-object'); + +var $String = String; +var $TypeError = TypeError; + +module.exports = function (argument) { + if (argument === undefined || isObject(argument)) return argument; + throw new $TypeError($String(argument) + ' is not an object or undefined'); +}; diff --git a/node_modules/core-js/internals/an-object.js b/node_modules/core-js/internals/an-object.js new file mode 100644 index 0000000..c782e78 --- /dev/null +++ b/node_modules/core-js/internals/an-object.js @@ -0,0 +1,11 @@ +'use strict'; +var isObject = require('../internals/is-object'); + +var $String = String; +var $TypeError = TypeError; + +// `Assert: Type(argument) is Object` +module.exports = function (argument) { + if (isObject(argument)) return argument; + throw new $TypeError($String(argument) + ' is not an object'); +}; diff --git a/node_modules/core-js/internals/an-uint8-array.js b/node_modules/core-js/internals/an-uint8-array.js new file mode 100644 index 0000000..7f162f6 --- /dev/null +++ b/node_modules/core-js/internals/an-uint8-array.js @@ -0,0 +1,11 @@ +'use strict'; +var classof = require('../internals/classof'); + +var $TypeError = TypeError; + +// Perform ? RequireInternalSlot(argument, [[TypedArrayName]]) +// If argument.[[TypedArrayName]] is not "Uint8Array", throw a TypeError exception +module.exports = function (argument) { + if (classof(argument) === 'Uint8Array') return argument; + throw new $TypeError('Argument is not an Uint8Array'); +}; diff --git a/node_modules/core-js/internals/array-buffer-basic-detection.js b/node_modules/core-js/internals/array-buffer-basic-detection.js new file mode 100644 index 0000000..8ae7d9b --- /dev/null +++ b/node_modules/core-js/internals/array-buffer-basic-detection.js @@ -0,0 +1,3 @@ +'use strict'; +// eslint-disable-next-line es/no-typed-arrays -- safe +module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined'; diff --git a/node_modules/core-js/internals/array-buffer-byte-length.js b/node_modules/core-js/internals/array-buffer-byte-length.js new file mode 100644 index 0000000..56ffa87 --- /dev/null +++ b/node_modules/core-js/internals/array-buffer-byte-length.js @@ -0,0 +1,15 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var uncurryThisAccessor = require('../internals/function-uncurry-this-accessor'); +var classof = require('../internals/classof-raw'); + +var ArrayBuffer = globalThis.ArrayBuffer; +var TypeError = globalThis.TypeError; + +// Includes +// - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]). +// - If IsSharedArrayBuffer(O) is true, throw a TypeError exception. +module.exports = ArrayBuffer && uncurryThisAccessor(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) { + if (classof(O) !== 'ArrayBuffer') throw new TypeError('ArrayBuffer expected'); + return O.byteLength; +}; diff --git a/node_modules/core-js/internals/array-buffer-is-detached.js b/node_modules/core-js/internals/array-buffer-is-detached.js new file mode 100644 index 0000000..6283644 --- /dev/null +++ b/node_modules/core-js/internals/array-buffer-is-detached.js @@ -0,0 +1,19 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); +var arrayBufferByteLength = require('../internals/array-buffer-byte-length'); + +var ArrayBuffer = globalThis.ArrayBuffer; +var ArrayBufferPrototype = ArrayBuffer && ArrayBuffer.prototype; +var slice = ArrayBufferPrototype && uncurryThis(ArrayBufferPrototype.slice); + +module.exports = function (O) { + if (arrayBufferByteLength(O) !== 0) return false; + if (!slice) return false; + try { + slice(O, 0, 0); + return false; + } catch (error) { + return true; + } +}; diff --git a/node_modules/core-js/internals/array-buffer-non-extensible.js b/node_modules/core-js/internals/array-buffer-non-extensible.js new file mode 100644 index 0000000..968b2d0 --- /dev/null +++ b/node_modules/core-js/internals/array-buffer-non-extensible.js @@ -0,0 +1,11 @@ +'use strict'; +// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it +var fails = require('../internals/fails'); + +module.exports = fails(function () { + if (typeof ArrayBuffer == 'function') { + var buffer = new ArrayBuffer(8); + // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe + if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 }); + } +}); diff --git a/node_modules/core-js/internals/array-buffer-not-detached.js b/node_modules/core-js/internals/array-buffer-not-detached.js new file mode 100644 index 0000000..be5aff3 --- /dev/null +++ b/node_modules/core-js/internals/array-buffer-not-detached.js @@ -0,0 +1,9 @@ +'use strict'; +var isDetached = require('../internals/array-buffer-is-detached'); + +var $TypeError = TypeError; + +module.exports = function (it) { + if (isDetached(it)) throw new $TypeError('ArrayBuffer is detached'); + return it; +}; diff --git a/node_modules/core-js/internals/array-buffer-transfer.js b/node_modules/core-js/internals/array-buffer-transfer.js new file mode 100644 index 0000000..26ae9d0 --- /dev/null +++ b/node_modules/core-js/internals/array-buffer-transfer.js @@ -0,0 +1,45 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this'); +var uncurryThisAccessor = require('../internals/function-uncurry-this-accessor'); +var toIndex = require('../internals/to-index'); +var notDetached = require('../internals/array-buffer-not-detached'); +var arrayBufferByteLength = require('../internals/array-buffer-byte-length'); +var detachTransferable = require('../internals/detach-transferable'); +var PROPER_STRUCTURED_CLONE_TRANSFER = require('../internals/structured-clone-proper-transfer'); + +var structuredClone = globalThis.structuredClone; +var ArrayBuffer = globalThis.ArrayBuffer; +var DataView = globalThis.DataView; +var min = Math.min; +var ArrayBufferPrototype = ArrayBuffer.prototype; +var DataViewPrototype = DataView.prototype; +var slice = uncurryThis(ArrayBufferPrototype.slice); +var isResizable = uncurryThisAccessor(ArrayBufferPrototype, 'resizable', 'get'); +var maxByteLength = uncurryThisAccessor(ArrayBufferPrototype, 'maxByteLength', 'get'); +var getInt8 = uncurryThis(DataViewPrototype.getInt8); +var setInt8 = uncurryThis(DataViewPrototype.setInt8); + +module.exports = (PROPER_STRUCTURED_CLONE_TRANSFER || detachTransferable) && function (arrayBuffer, newLength, preserveResizability) { + var byteLength = arrayBufferByteLength(arrayBuffer); + var newByteLength = newLength === undefined ? byteLength : toIndex(newLength); + var fixedLength = !isResizable || !isResizable(arrayBuffer); + var newBuffer; + notDetached(arrayBuffer); + if (PROPER_STRUCTURED_CLONE_TRANSFER) { + arrayBuffer = structuredClone(arrayBuffer, { transfer: [arrayBuffer] }); + if (byteLength === newByteLength && (preserveResizability || fixedLength)) return arrayBuffer; + } + if (byteLength >= newByteLength && (!preserveResizability || fixedLength)) { + newBuffer = slice(arrayBuffer, 0, newByteLength); + } else { + var options = preserveResizability && !fixedLength && maxByteLength ? { maxByteLength: maxByteLength(arrayBuffer) } : undefined; + newBuffer = new ArrayBuffer(newByteLength, options); + var a = new DataView(arrayBuffer); + var b = new DataView(newBuffer); + var copyLength = min(newByteLength, byteLength); + for (var i = 0; i < copyLength; i++) setInt8(b, i, getInt8(a, i)); + } + if (!PROPER_STRUCTURED_CLONE_TRANSFER) detachTransferable(arrayBuffer); + return newBuffer; +}; diff --git a/node_modules/core-js/internals/array-buffer-view-core.js b/node_modules/core-js/internals/array-buffer-view-core.js new file mode 100644 index 0000000..14d2d1c --- /dev/null +++ b/node_modules/core-js/internals/array-buffer-view-core.js @@ -0,0 +1,193 @@ +'use strict'; +var NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-basic-detection'); +var DESCRIPTORS = require('../internals/descriptors'); +var globalThis = require('../internals/global-this'); +var isCallable = require('../internals/is-callable'); +var isObject = require('../internals/is-object'); +var hasOwn = require('../internals/has-own-property'); +var classof = require('../internals/classof'); +var tryToString = require('../internals/try-to-string'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var defineBuiltIn = require('../internals/define-built-in'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); +var setPrototypeOf = require('../internals/object-set-prototype-of'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var uid = require('../internals/uid'); +var InternalStateModule = require('../internals/internal-state'); + +var enforceInternalState = InternalStateModule.enforce; +var getInternalState = InternalStateModule.get; +var Int8Array = globalThis.Int8Array; +var Int8ArrayPrototype = Int8Array && Int8Array.prototype; +var Uint8ClampedArray = globalThis.Uint8ClampedArray; +var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype; +var TypedArray = Int8Array && getPrototypeOf(Int8Array); +var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype); +var ObjectPrototype = Object.prototype; +var TypeError = globalThis.TypeError; + +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG'); +var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor'; +// Fixing native typed arrays in Opera Presto crashes the browser, see #595 +var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(globalThis.opera) !== 'Opera'; +var TYPED_ARRAY_TAG_REQUIRED = false; +var NAME, Constructor, Prototype; + +var TypedArrayConstructorsList = { + Int8Array: 1, + Uint8Array: 1, + Uint8ClampedArray: 1, + Int16Array: 2, + Uint16Array: 2, + Int32Array: 4, + Uint32Array: 4, + Float32Array: 4, + Float64Array: 8 +}; + +var BigIntArrayConstructorsList = { + BigInt64Array: 8, + BigUint64Array: 8 +}; + +var isView = function isView(it) { + if (!isObject(it)) return false; + var klass = classof(it); + return klass === 'DataView' + || hasOwn(TypedArrayConstructorsList, klass) + || hasOwn(BigIntArrayConstructorsList, klass); +}; + +var getTypedArrayConstructor = function (it) { + var proto = getPrototypeOf(it); + if (!isObject(proto)) return; + var state = getInternalState(proto); + return (state && hasOwn(state, TYPED_ARRAY_CONSTRUCTOR)) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor(proto); +}; + +var isTypedArray = function (it) { + if (!isObject(it)) return false; + var klass = classof(it); + return hasOwn(TypedArrayConstructorsList, klass) + || hasOwn(BigIntArrayConstructorsList, klass); +}; + +var aTypedArray = function (it) { + if (isTypedArray(it)) return it; + throw new TypeError('Target is not a typed array'); +}; + +var aTypedArrayConstructor = function (C) { + if (isCallable(C) && (!setPrototypeOf || isPrototypeOf(TypedArray, C))) return C; + throw new TypeError(tryToString(C) + ' is not a typed array constructor'); +}; + +var exportTypedArrayMethod = function (KEY, property, forced, options) { + if (!DESCRIPTORS) return; + if (forced) for (var ARRAY in TypedArrayConstructorsList) { + var TypedArrayConstructor = globalThis[ARRAY]; + if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY)) try { + delete TypedArrayConstructor.prototype[KEY]; + } catch (error) { + // old WebKit bug - some methods are non-configurable + try { + TypedArrayConstructor.prototype[KEY] = property; + } catch (error2) { /* empty */ } + } + } + if (!TypedArrayPrototype[KEY] || forced) { + defineBuiltIn(TypedArrayPrototype, KEY, forced ? property + : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options); + } +}; + +var exportTypedArrayStaticMethod = function (KEY, property, forced) { + var ARRAY, TypedArrayConstructor; + if (!DESCRIPTORS) return; + if (setPrototypeOf) { + if (forced) for (ARRAY in TypedArrayConstructorsList) { + TypedArrayConstructor = globalThis[ARRAY]; + if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY)) try { + delete TypedArrayConstructor[KEY]; + } catch (error) { /* empty */ } + } + if (!TypedArray[KEY] || forced) { + // V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable + try { + return defineBuiltIn(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property); + } catch (error) { /* empty */ } + } else return; + } + for (ARRAY in TypedArrayConstructorsList) { + TypedArrayConstructor = globalThis[ARRAY]; + if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) { + defineBuiltIn(TypedArrayConstructor, KEY, property); + } + } +}; + +for (NAME in TypedArrayConstructorsList) { + Constructor = globalThis[NAME]; + Prototype = Constructor && Constructor.prototype; + if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor; + else NATIVE_ARRAY_BUFFER_VIEWS = false; +} + +for (NAME in BigIntArrayConstructorsList) { + Constructor = globalThis[NAME]; + Prototype = Constructor && Constructor.prototype; + if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor; +} + +// WebKit bug - typed arrays constructors prototype is Object.prototype +if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) { + // eslint-disable-next-line no-shadow -- safe + TypedArray = function TypedArray() { + throw new TypeError('Incorrect invocation'); + }; + if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) { + if (globalThis[NAME]) setPrototypeOf(globalThis[NAME], TypedArray); + } +} + +if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) { + TypedArrayPrototype = TypedArray.prototype; + if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) { + if (globalThis[NAME]) setPrototypeOf(globalThis[NAME].prototype, TypedArrayPrototype); + } +} + +// WebKit bug - one more object in Uint8ClampedArray prototype chain +if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) { + setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype); +} + +if (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) { + TYPED_ARRAY_TAG_REQUIRED = true; + defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG, { + configurable: true, + get: function () { + return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined; + } + }); + for (NAME in TypedArrayConstructorsList) if (globalThis[NAME]) { + createNonEnumerableProperty(globalThis[NAME], TYPED_ARRAY_TAG, NAME); + } +} + +module.exports = { + NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS, + TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG, + aTypedArray: aTypedArray, + aTypedArrayConstructor: aTypedArrayConstructor, + exportTypedArrayMethod: exportTypedArrayMethod, + exportTypedArrayStaticMethod: exportTypedArrayStaticMethod, + getTypedArrayConstructor: getTypedArrayConstructor, + isView: isView, + isTypedArray: isTypedArray, + TypedArray: TypedArray, + TypedArrayPrototype: TypedArrayPrototype +}; diff --git a/node_modules/core-js/internals/array-buffer.js b/node_modules/core-js/internals/array-buffer.js new file mode 100644 index 0000000..13ad460 --- /dev/null +++ b/node_modules/core-js/internals/array-buffer.js @@ -0,0 +1,260 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this'); +var DESCRIPTORS = require('../internals/descriptors'); +var NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-basic-detection'); +var FunctionName = require('../internals/function-name'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var defineBuiltIns = require('../internals/define-built-ins'); +var fails = require('../internals/fails'); +var anInstance = require('../internals/an-instance'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var toLength = require('../internals/to-length'); +var toIndex = require('../internals/to-index'); +var fround = require('../internals/math-fround'); +var IEEE754 = require('../internals/ieee754'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); +var setPrototypeOf = require('../internals/object-set-prototype-of'); +var arrayFill = require('../internals/array-fill'); +var arraySlice = require('../internals/array-slice'); +var inheritIfRequired = require('../internals/inherit-if-required'); +var copyConstructorProperties = require('../internals/copy-constructor-properties'); +var setToStringTag = require('../internals/set-to-string-tag'); +var InternalStateModule = require('../internals/internal-state'); + +var PROPER_FUNCTION_NAME = FunctionName.PROPER; +var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; +var ARRAY_BUFFER = 'ArrayBuffer'; +var DATA_VIEW = 'DataView'; +var PROTOTYPE = 'prototype'; +var WRONG_LENGTH = 'Wrong length'; +var WRONG_INDEX = 'Wrong index'; +var getInternalArrayBufferState = InternalStateModule.getterFor(ARRAY_BUFFER); +var getInternalDataViewState = InternalStateModule.getterFor(DATA_VIEW); +var setInternalState = InternalStateModule.set; +var NativeArrayBuffer = globalThis[ARRAY_BUFFER]; +var $ArrayBuffer = NativeArrayBuffer; +var ArrayBufferPrototype = $ArrayBuffer && $ArrayBuffer[PROTOTYPE]; +var $DataView = globalThis[DATA_VIEW]; +var DataViewPrototype = $DataView && $DataView[PROTOTYPE]; +var ObjectPrototype = Object.prototype; +var Array = globalThis.Array; +var RangeError = globalThis.RangeError; +var fill = uncurryThis(arrayFill); +var reverse = uncurryThis([].reverse); + +var packIEEE754 = IEEE754.pack; +var unpackIEEE754 = IEEE754.unpack; + +var packInt8 = function (number) { + return [number & 0xFF]; +}; + +var packInt16 = function (number) { + return [number & 0xFF, number >> 8 & 0xFF]; +}; + +var packInt32 = function (number) { + return [number & 0xFF, number >> 8 & 0xFF, number >> 16 & 0xFF, number >> 24 & 0xFF]; +}; + +var unpackInt32 = function (buffer) { + return buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0]; +}; + +var packFloat32 = function (number) { + return packIEEE754(fround(number), 23, 4); +}; + +var packFloat64 = function (number) { + return packIEEE754(number, 52, 8); +}; + +var addGetter = function (Constructor, key, getInternalState) { + defineBuiltInAccessor(Constructor[PROTOTYPE], key, { + configurable: true, + get: function () { + return getInternalState(this)[key]; + } + }); +}; + +var get = function (view, count, index, isLittleEndian) { + var store = getInternalDataViewState(view); + var intIndex = toIndex(index); + var boolIsLittleEndian = !!isLittleEndian; + if (intIndex + count > store.byteLength) throw new RangeError(WRONG_INDEX); + var bytes = store.bytes; + var start = intIndex + store.byteOffset; + var pack = arraySlice(bytes, start, start + count); + return boolIsLittleEndian ? pack : reverse(pack); +}; + +var set = function (view, count, index, conversion, value, isLittleEndian) { + var store = getInternalDataViewState(view); + var intIndex = toIndex(index); + var pack = conversion(+value); + var boolIsLittleEndian = !!isLittleEndian; + if (intIndex + count > store.byteLength) throw new RangeError(WRONG_INDEX); + var bytes = store.bytes; + var start = intIndex + store.byteOffset; + for (var i = 0; i < count; i++) bytes[start + i] = pack[boolIsLittleEndian ? i : count - i - 1]; +}; + +if (!NATIVE_ARRAY_BUFFER) { + $ArrayBuffer = function ArrayBuffer(length) { + anInstance(this, ArrayBufferPrototype); + var byteLength = toIndex(length); + setInternalState(this, { + type: ARRAY_BUFFER, + bytes: fill(Array(byteLength), 0), + byteLength: byteLength + }); + if (!DESCRIPTORS) { + this.byteLength = byteLength; + this.detached = false; + } + }; + + ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE]; + + $DataView = function DataView(buffer, byteOffset, byteLength) { + anInstance(this, DataViewPrototype); + anInstance(buffer, ArrayBufferPrototype); + var bufferState = getInternalArrayBufferState(buffer); + var bufferLength = bufferState.byteLength; + var offset = toIntegerOrInfinity(byteOffset); + if (offset < 0 || offset > bufferLength) throw new RangeError('Wrong offset'); + byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength); + if (offset + byteLength > bufferLength) throw new RangeError(WRONG_LENGTH); + setInternalState(this, { + type: DATA_VIEW, + buffer: buffer, + byteLength: byteLength, + byteOffset: offset, + bytes: bufferState.bytes + }); + if (!DESCRIPTORS) { + this.buffer = buffer; + this.byteLength = byteLength; + this.byteOffset = offset; + } + }; + + DataViewPrototype = $DataView[PROTOTYPE]; + + if (DESCRIPTORS) { + addGetter($ArrayBuffer, 'byteLength', getInternalArrayBufferState); + addGetter($DataView, 'buffer', getInternalDataViewState); + addGetter($DataView, 'byteLength', getInternalDataViewState); + addGetter($DataView, 'byteOffset', getInternalDataViewState); + } + + defineBuiltIns(DataViewPrototype, { + getInt8: function getInt8(byteOffset) { + return get(this, 1, byteOffset)[0] << 24 >> 24; + }, + getUint8: function getUint8(byteOffset) { + return get(this, 1, byteOffset)[0]; + }, + getInt16: function getInt16(byteOffset /* , littleEndian */) { + var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : false); + return (bytes[1] << 8 | bytes[0]) << 16 >> 16; + }, + getUint16: function getUint16(byteOffset /* , littleEndian */) { + var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : false); + return bytes[1] << 8 | bytes[0]; + }, + getInt32: function getInt32(byteOffset /* , littleEndian */) { + return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : false)); + }, + getUint32: function getUint32(byteOffset /* , littleEndian */) { + return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : false)) >>> 0; + }, + getFloat32: function getFloat32(byteOffset /* , littleEndian */) { + return unpackIEEE754(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : false), 23); + }, + getFloat64: function getFloat64(byteOffset /* , littleEndian */) { + return unpackIEEE754(get(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : false), 52); + }, + setInt8: function setInt8(byteOffset, value) { + set(this, 1, byteOffset, packInt8, value); + }, + setUint8: function setUint8(byteOffset, value) { + set(this, 1, byteOffset, packInt8, value); + }, + setInt16: function setInt16(byteOffset, value /* , littleEndian */) { + set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : false); + }, + setUint16: function setUint16(byteOffset, value /* , littleEndian */) { + set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : false); + }, + setInt32: function setInt32(byteOffset, value /* , littleEndian */) { + set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : false); + }, + setUint32: function setUint32(byteOffset, value /* , littleEndian */) { + set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : false); + }, + setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) { + set(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : false); + }, + setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) { + set(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : false); + } + }); +} else { + var INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME && NativeArrayBuffer.name !== ARRAY_BUFFER; + /* eslint-disable no-new, sonar/inconsistent-function-call -- required for testing */ + if (!fails(function () { + NativeArrayBuffer(1); + }) || !fails(function () { + new NativeArrayBuffer(-1); + }) || fails(function () { + new NativeArrayBuffer(); + new NativeArrayBuffer(1.5); + new NativeArrayBuffer(NaN); + return NativeArrayBuffer.length !== 1 || INCORRECT_ARRAY_BUFFER_NAME && !CONFIGURABLE_FUNCTION_NAME; + })) { + /* eslint-enable no-new, sonar/inconsistent-function-call -- required for testing */ + $ArrayBuffer = function ArrayBuffer(length) { + anInstance(this, ArrayBufferPrototype); + return inheritIfRequired(new NativeArrayBuffer(toIndex(length)), this, $ArrayBuffer); + }; + + $ArrayBuffer[PROTOTYPE] = ArrayBufferPrototype; + + ArrayBufferPrototype.constructor = $ArrayBuffer; + + copyConstructorProperties($ArrayBuffer, NativeArrayBuffer); + } else if (INCORRECT_ARRAY_BUFFER_NAME && CONFIGURABLE_FUNCTION_NAME) { + createNonEnumerableProperty(NativeArrayBuffer, 'name', ARRAY_BUFFER); + } + + // WebKit bug - the same parent prototype for typed arrays and data view + if (setPrototypeOf && getPrototypeOf(DataViewPrototype) !== ObjectPrototype) { + setPrototypeOf(DataViewPrototype, ObjectPrototype); + } + + // iOS Safari 7.x bug + var testView = new $DataView(new $ArrayBuffer(2)); + var $setInt8 = uncurryThis(DataViewPrototype.setInt8); + testView.setInt8(0, 2147483648); + testView.setInt8(1, 2147483649); + if (testView.getInt8(0) || !testView.getInt8(1)) defineBuiltIns(DataViewPrototype, { + setInt8: function setInt8(byteOffset, value) { + $setInt8(this, byteOffset, value << 24 >> 24); + }, + setUint8: function setUint8(byteOffset, value) { + $setInt8(this, byteOffset, value << 24 >> 24); + } + }, { unsafe: true }); +} + +setToStringTag($ArrayBuffer, ARRAY_BUFFER); +setToStringTag($DataView, DATA_VIEW); + +module.exports = { + ArrayBuffer: $ArrayBuffer, + DataView: $DataView +}; diff --git a/node_modules/core-js/internals/array-copy-within.js b/node_modules/core-js/internals/array-copy-within.js new file mode 100644 index 0000000..e199714 --- /dev/null +++ b/node_modules/core-js/internals/array-copy-within.js @@ -0,0 +1,31 @@ +'use strict'; +var toObject = require('../internals/to-object'); +var toAbsoluteIndex = require('../internals/to-absolute-index'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var deletePropertyOrThrow = require('../internals/delete-property-or-throw'); + +var min = Math.min; + +// `Array.prototype.copyWithin` method implementation +// https://tc39.es/ecma262/#sec-array.prototype.copywithin +// eslint-disable-next-line es/no-array-prototype-copywithin -- safe +module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) { + var O = toObject(this); + var len = lengthOfArrayLike(O); + var to = toAbsoluteIndex(target, len); + var from = toAbsoluteIndex(start, len); + var end = arguments.length > 2 ? arguments[2] : undefined; + var count = min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to); + var inc = 1; + if (from < to && to < from + count) { + inc = -1; + from += count - 1; + to += count - 1; + } + while (count-- > 0) { + if (from in O) O[to] = O[from]; + else deletePropertyOrThrow(O, to); + to += inc; + from += inc; + } return O; +}; diff --git a/node_modules/core-js/internals/array-fill.js b/node_modules/core-js/internals/array-fill.js new file mode 100644 index 0000000..c6b16cd --- /dev/null +++ b/node_modules/core-js/internals/array-fill.js @@ -0,0 +1,17 @@ +'use strict'; +var toObject = require('../internals/to-object'); +var toAbsoluteIndex = require('../internals/to-absolute-index'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); + +// `Array.prototype.fill` method implementation +// https://tc39.es/ecma262/#sec-array.prototype.fill +module.exports = function fill(value /* , start = 0, end = @length */) { + var O = toObject(this); + var length = lengthOfArrayLike(O); + var argumentsLength = arguments.length; + var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length); + var end = argumentsLength > 2 ? arguments[2] : undefined; + var endPos = end === undefined ? length : toAbsoluteIndex(end, length); + while (endPos > index) O[index++] = value; + return O; +}; diff --git a/node_modules/core-js/internals/array-for-each.js b/node_modules/core-js/internals/array-for-each.js new file mode 100644 index 0000000..22477f4 --- /dev/null +++ b/node_modules/core-js/internals/array-for-each.js @@ -0,0 +1,12 @@ +'use strict'; +var $forEach = require('../internals/array-iteration').forEach; +var arrayMethodIsStrict = require('../internals/array-method-is-strict'); + +var STRICT_METHOD = arrayMethodIsStrict('forEach'); + +// `Array.prototype.forEach` method implementation +// https://tc39.es/ecma262/#sec-array.prototype.foreach +module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) { + return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); +// eslint-disable-next-line es/no-array-prototype-foreach -- safe +} : [].forEach; diff --git a/node_modules/core-js/internals/array-from-async.js b/node_modules/core-js/internals/array-from-async.js new file mode 100644 index 0000000..6cca999 --- /dev/null +++ b/node_modules/core-js/internals/array-from-async.js @@ -0,0 +1,51 @@ +'use strict'; +var bind = require('../internals/function-bind-context'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toObject = require('../internals/to-object'); +var isConstructor = require('../internals/is-constructor'); +var getAsyncIterator = require('../internals/get-async-iterator'); +var getIterator = require('../internals/get-iterator'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var getIteratorMethod = require('../internals/get-iterator-method'); +var getMethod = require('../internals/get-method'); +var getBuiltIn = require('../internals/get-built-in'); +var getBuiltInPrototypeMethod = require('../internals/get-built-in-prototype-method'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var AsyncFromSyncIterator = require('../internals/async-from-sync-iterator'); +var toArray = require('../internals/async-iterator-iteration').toArray; + +var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); +var arrayIterator = uncurryThis(getBuiltInPrototypeMethod('Array', 'values')); +var arrayIteratorNext = uncurryThis(arrayIterator([]).next); + +var safeArrayIterator = function () { + return new SafeArrayIterator(this); +}; + +var SafeArrayIterator = function (O) { + this.iterator = arrayIterator(O); +}; + +SafeArrayIterator.prototype.next = function () { + return arrayIteratorNext(this.iterator); +}; + +// `Array.fromAsync` method implementation +// https://github.com/tc39/proposal-array-from-async +module.exports = function fromAsync(asyncItems /* , mapfn = undefined, thisArg = undefined */) { + var C = this; + var argumentsLength = arguments.length; + var mapfn = argumentsLength > 1 ? arguments[1] : undefined; + var thisArg = argumentsLength > 2 ? arguments[2] : undefined; + return new (getBuiltIn('Promise'))(function (resolve) { + var O = toObject(asyncItems); + if (mapfn !== undefined) mapfn = bind(mapfn, thisArg); + var usingAsyncIterator = getMethod(O, ASYNC_ITERATOR); + var usingSyncIterator = usingAsyncIterator ? undefined : getIteratorMethod(O) || safeArrayIterator; + var A = isConstructor(C) ? new C() : []; + var iterator = usingAsyncIterator + ? getAsyncIterator(O, usingAsyncIterator) + : new AsyncFromSyncIterator(getIteratorDirect(getIterator(O, usingSyncIterator))); + resolve(toArray(iterator, mapfn, A)); + }); +}; diff --git a/node_modules/core-js/internals/array-from-constructor-and-list.js b/node_modules/core-js/internals/array-from-constructor-and-list.js new file mode 100644 index 0000000..d6c8ae2 --- /dev/null +++ b/node_modules/core-js/internals/array-from-constructor-and-list.js @@ -0,0 +1,10 @@ +'use strict'; +var lengthOfArrayLike = require('../internals/length-of-array-like'); + +module.exports = function (Constructor, list, $length) { + var index = 0; + var length = arguments.length > 2 ? $length : lengthOfArrayLike(list); + var result = new Constructor(length); + while (length > index) result[index] = list[index++]; + return result; +}; diff --git a/node_modules/core-js/internals/array-from.js b/node_modules/core-js/internals/array-from.js new file mode 100644 index 0000000..e187939 --- /dev/null +++ b/node_modules/core-js/internals/array-from.js @@ -0,0 +1,46 @@ +'use strict'; +var bind = require('../internals/function-bind-context'); +var call = require('../internals/function-call'); +var toObject = require('../internals/to-object'); +var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing'); +var isArrayIteratorMethod = require('../internals/is-array-iterator-method'); +var isConstructor = require('../internals/is-constructor'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var createProperty = require('../internals/create-property'); +var getIterator = require('../internals/get-iterator'); +var getIteratorMethod = require('../internals/get-iterator-method'); + +var $Array = Array; + +// `Array.from` method implementation +// https://tc39.es/ecma262/#sec-array.from +module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { + var O = toObject(arrayLike); + var IS_CONSTRUCTOR = isConstructor(this); + var argumentsLength = arguments.length; + var mapfn = argumentsLength > 1 ? arguments[1] : undefined; + var mapping = mapfn !== undefined; + if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined); + var iteratorMethod = getIteratorMethod(O); + var index = 0; + var length, result, step, iterator, next, value; + // if the target is not iterable or it's an array with the default iterator - use a simple case + if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) { + result = IS_CONSTRUCTOR ? new this() : []; + iterator = getIterator(O, iteratorMethod); + next = iterator.next; + for (;!(step = call(next, iterator)).done; index++) { + value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value; + createProperty(result, index, value); + } + } else { + length = lengthOfArrayLike(O); + result = IS_CONSTRUCTOR ? new this(length) : $Array(length); + for (;length > index; index++) { + value = mapping ? mapfn(O[index], index) : O[index]; + createProperty(result, index, value); + } + } + result.length = index; + return result; +}; diff --git a/node_modules/core-js/internals/array-group-to-map.js b/node_modules/core-js/internals/array-group-to-map.js new file mode 100644 index 0000000..608d45a --- /dev/null +++ b/node_modules/core-js/internals/array-group-to-map.js @@ -0,0 +1,31 @@ +'use strict'; +var bind = require('../internals/function-bind-context'); +var uncurryThis = require('../internals/function-uncurry-this'); +var IndexedObject = require('../internals/indexed-object'); +var toObject = require('../internals/to-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var MapHelpers = require('../internals/map-helpers'); + +var Map = MapHelpers.Map; +var mapGet = MapHelpers.get; +var mapHas = MapHelpers.has; +var mapSet = MapHelpers.set; +var push = uncurryThis([].push); + +// `Array.prototype.groupToMap` method +// https://github.com/tc39/proposal-array-grouping +module.exports = function groupToMap(callbackfn /* , thisArg */) { + var O = toObject(this); + var self = IndexedObject(O); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var map = new Map(); + var length = lengthOfArrayLike(self); + var index = 0; + var key, value; + for (;length > index; index++) { + value = self[index]; + key = boundFunction(value, index, O); + if (mapHas(map, key)) push(mapGet(map, key), value); + else mapSet(map, key, [value]); + } return map; +}; diff --git a/node_modules/core-js/internals/array-group.js b/node_modules/core-js/internals/array-group.js new file mode 100644 index 0000000..dbec5a4 --- /dev/null +++ b/node_modules/core-js/internals/array-group.js @@ -0,0 +1,37 @@ +'use strict'; +var bind = require('../internals/function-bind-context'); +var uncurryThis = require('../internals/function-uncurry-this'); +var IndexedObject = require('../internals/indexed-object'); +var toObject = require('../internals/to-object'); +var toPropertyKey = require('../internals/to-property-key'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var objectCreate = require('../internals/object-create'); +var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list'); + +var $Array = Array; +var push = uncurryThis([].push); + +module.exports = function ($this, callbackfn, that, specificConstructor) { + var O = toObject($this); + var self = IndexedObject(O); + var boundFunction = bind(callbackfn, that); + var target = objectCreate(null); + var length = lengthOfArrayLike(self); + var index = 0; + var Constructor, key, value; + for (;length > index; index++) { + value = self[index]; + key = toPropertyKey(boundFunction(value, index, O)); + // in some IE versions, `hasOwnProperty` returns incorrect result on integer keys + // but since it's a `null` prototype object, we can safely use `in` + if (key in target) push(target[key], value); + else target[key] = [value]; + } + // TODO: Remove this block from `core-js@4` + if (specificConstructor) { + Constructor = specificConstructor(O); + if (Constructor !== $Array) { + for (key in target) target[key] = arrayFromConstructorAndList(Constructor, target[key]); + } + } return target; +}; diff --git a/node_modules/core-js/internals/array-includes.js b/node_modules/core-js/internals/array-includes.js new file mode 100644 index 0000000..556d54a --- /dev/null +++ b/node_modules/core-js/internals/array-includes.js @@ -0,0 +1,34 @@ +'use strict'; +var toIndexedObject = require('../internals/to-indexed-object'); +var toAbsoluteIndex = require('../internals/to-absolute-index'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); + +// `Array.prototype.{ indexOf, includes }` methods implementation +var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject($this); + var length = lengthOfArrayLike(O); + if (length === 0) return !IS_INCLUDES && -1; + var index = toAbsoluteIndex(fromIndex, length); + var value; + // Array#includes uses SameValueZero equality algorithm + // eslint-disable-next-line no-self-compare -- NaN check + if (IS_INCLUDES && el !== el) while (length > index) { + value = O[index++]; + // eslint-disable-next-line no-self-compare -- NaN check + if (value !== value) return true; + // Array#indexOf ignores holes, Array#includes - not + } else for (;length > index; index++) { + if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; + } return !IS_INCLUDES && -1; + }; +}; + +module.exports = { + // `Array.prototype.includes` method + // https://tc39.es/ecma262/#sec-array.prototype.includes + includes: createMethod(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) +}; diff --git a/node_modules/core-js/internals/array-iteration-from-last.js b/node_modules/core-js/internals/array-iteration-from-last.js new file mode 100644 index 0000000..aa79724 --- /dev/null +++ b/node_modules/core-js/internals/array-iteration-from-last.js @@ -0,0 +1,35 @@ +'use strict'; +var bind = require('../internals/function-bind-context'); +var IndexedObject = require('../internals/indexed-object'); +var toObject = require('../internals/to-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); + +// `Array.prototype.{ findLast, findLastIndex }` methods implementation +var createMethod = function (TYPE) { + var IS_FIND_LAST_INDEX = TYPE === 1; + return function ($this, callbackfn, that) { + var O = toObject($this); + var self = IndexedObject(O); + var index = lengthOfArrayLike(self); + var boundFunction = bind(callbackfn, that); + var value, result; + while (index-- > 0) { + value = self[index]; + result = boundFunction(value, index, O); + if (result) switch (TYPE) { + case 0: return value; // findLast + case 1: return index; // findLastIndex + } + } + return IS_FIND_LAST_INDEX ? -1 : undefined; + }; +}; + +module.exports = { + // `Array.prototype.findLast` method + // https://github.com/tc39/proposal-array-find-from-last + findLast: createMethod(0), + // `Array.prototype.findLastIndex` method + // https://github.com/tc39/proposal-array-find-from-last + findLastIndex: createMethod(1) +}; diff --git a/node_modules/core-js/internals/array-iteration.js b/node_modules/core-js/internals/array-iteration.js new file mode 100644 index 0000000..689c885 --- /dev/null +++ b/node_modules/core-js/internals/array-iteration.js @@ -0,0 +1,74 @@ +'use strict'; +var bind = require('../internals/function-bind-context'); +var uncurryThis = require('../internals/function-uncurry-this'); +var IndexedObject = require('../internals/indexed-object'); +var toObject = require('../internals/to-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var arraySpeciesCreate = require('../internals/array-species-create'); + +var push = uncurryThis([].push); + +// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation +var createMethod = function (TYPE) { + var IS_MAP = TYPE === 1; + var IS_FILTER = TYPE === 2; + var IS_SOME = TYPE === 3; + var IS_EVERY = TYPE === 4; + var IS_FIND_INDEX = TYPE === 6; + var IS_FILTER_REJECT = TYPE === 7; + var NO_HOLES = TYPE === 5 || IS_FIND_INDEX; + return function ($this, callbackfn, that, specificCreate) { + var O = toObject($this); + var self = IndexedObject(O); + var length = lengthOfArrayLike(self); + var boundFunction = bind(callbackfn, that); + var index = 0; + var create = specificCreate || arraySpeciesCreate; + var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined; + var value, result; + for (;length > index; index++) if (NO_HOLES || index in self) { + value = self[index]; + result = boundFunction(value, index, O); + if (TYPE) { + if (IS_MAP) target[index] = result; // map + else if (result) switch (TYPE) { + case 3: return true; // some + case 5: return value; // find + case 6: return index; // findIndex + case 2: push(target, value); // filter + } else switch (TYPE) { + case 4: return false; // every + case 7: push(target, value); // filterReject + } + } + } + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; + }; +}; + +module.exports = { + // `Array.prototype.forEach` method + // https://tc39.es/ecma262/#sec-array.prototype.foreach + forEach: createMethod(0), + // `Array.prototype.map` method + // https://tc39.es/ecma262/#sec-array.prototype.map + map: createMethod(1), + // `Array.prototype.filter` method + // https://tc39.es/ecma262/#sec-array.prototype.filter + filter: createMethod(2), + // `Array.prototype.some` method + // https://tc39.es/ecma262/#sec-array.prototype.some + some: createMethod(3), + // `Array.prototype.every` method + // https://tc39.es/ecma262/#sec-array.prototype.every + every: createMethod(4), + // `Array.prototype.find` method + // https://tc39.es/ecma262/#sec-array.prototype.find + find: createMethod(5), + // `Array.prototype.findIndex` method + // https://tc39.es/ecma262/#sec-array.prototype.findIndex + findIndex: createMethod(6), + // `Array.prototype.filterReject` method + // https://github.com/tc39/proposal-array-filtering + filterReject: createMethod(7) +}; diff --git a/node_modules/core-js/internals/array-last-index-of.js b/node_modules/core-js/internals/array-last-index-of.js new file mode 100644 index 0000000..84eaaa3 --- /dev/null +++ b/node_modules/core-js/internals/array-last-index-of.js @@ -0,0 +1,28 @@ +'use strict'; +/* eslint-disable es/no-array-prototype-lastindexof -- safe */ +var apply = require('../internals/function-apply'); +var toIndexedObject = require('../internals/to-indexed-object'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var arrayMethodIsStrict = require('../internals/array-method-is-strict'); + +var min = Math.min; +var $lastIndexOf = [].lastIndexOf; +var NEGATIVE_ZERO = !!$lastIndexOf && 1 / [1].lastIndexOf(1, -0) < 0; +var STRICT_METHOD = arrayMethodIsStrict('lastIndexOf'); +var FORCED = NEGATIVE_ZERO || !STRICT_METHOD; + +// `Array.prototype.lastIndexOf` method implementation +// https://tc39.es/ecma262/#sec-array.prototype.lastindexof +module.exports = FORCED ? function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) { + // convert -0 to +0 + if (NEGATIVE_ZERO) return apply($lastIndexOf, this, arguments) || 0; + var O = toIndexedObject(this); + var length = lengthOfArrayLike(O); + if (length === 0) return -1; + var index = length - 1; + if (arguments.length > 1) index = min(index, toIntegerOrInfinity(arguments[1])); + if (index < 0) index = length + index; + for (;index >= 0; index--) if (index in O && O[index] === searchElement) return index || 0; + return -1; +} : $lastIndexOf; diff --git a/node_modules/core-js/internals/array-method-has-species-support.js b/node_modules/core-js/internals/array-method-has-species-support.js new file mode 100644 index 0000000..83fafe0 --- /dev/null +++ b/node_modules/core-js/internals/array-method-has-species-support.js @@ -0,0 +1,20 @@ +'use strict'; +var fails = require('../internals/fails'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var V8_VERSION = require('../internals/environment-v8-version'); + +var SPECIES = wellKnownSymbol('species'); + +module.exports = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION >= 51 || !fails(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); +}; diff --git a/node_modules/core-js/internals/array-method-is-strict.js b/node_modules/core-js/internals/array-method-is-strict.js new file mode 100644 index 0000000..8259c2f --- /dev/null +++ b/node_modules/core-js/internals/array-method-is-strict.js @@ -0,0 +1,10 @@ +'use strict'; +var fails = require('../internals/fails'); + +module.exports = function (METHOD_NAME, argument) { + var method = [][METHOD_NAME]; + return !!method && fails(function () { + // eslint-disable-next-line no-useless-call -- required for testing + method.call(null, argument || function () { return 1; }, 1); + }); +}; diff --git a/node_modules/core-js/internals/array-reduce.js b/node_modules/core-js/internals/array-reduce.js new file mode 100644 index 0000000..0c6b689 --- /dev/null +++ b/node_modules/core-js/internals/array-reduce.js @@ -0,0 +1,46 @@ +'use strict'; +var aCallable = require('../internals/a-callable'); +var toObject = require('../internals/to-object'); +var IndexedObject = require('../internals/indexed-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); + +var $TypeError = TypeError; + +var REDUCE_EMPTY = 'Reduce of empty array with no initial value'; + +// `Array.prototype.{ reduce, reduceRight }` methods implementation +var createMethod = function (IS_RIGHT) { + return function (that, callbackfn, argumentsLength, memo) { + var O = toObject(that); + var self = IndexedObject(O); + var length = lengthOfArrayLike(O); + aCallable(callbackfn); + if (length === 0 && argumentsLength < 2) throw new $TypeError(REDUCE_EMPTY); + var index = IS_RIGHT ? length - 1 : 0; + var i = IS_RIGHT ? -1 : 1; + if (argumentsLength < 2) while (true) { + if (index in self) { + memo = self[index]; + index += i; + break; + } + index += i; + if (IS_RIGHT ? index < 0 : length <= index) { + throw new $TypeError(REDUCE_EMPTY); + } + } + for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) { + memo = callbackfn(memo, self[index], index, O); + } + return memo; + }; +}; + +module.exports = { + // `Array.prototype.reduce` method + // https://tc39.es/ecma262/#sec-array.prototype.reduce + left: createMethod(false), + // `Array.prototype.reduceRight` method + // https://tc39.es/ecma262/#sec-array.prototype.reduceright + right: createMethod(true) +}; diff --git a/node_modules/core-js/internals/array-set-length.js b/node_modules/core-js/internals/array-set-length.js new file mode 100644 index 0000000..5324280 --- /dev/null +++ b/node_modules/core-js/internals/array-set-length.js @@ -0,0 +1,27 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var isArray = require('../internals/is-array'); + +var $TypeError = TypeError; +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + +// Safari < 13 does not throw an error in this case +var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () { + // makes no sense without proper strict mode support + if (this !== undefined) return true; + try { + // eslint-disable-next-line es/no-object-defineproperty -- safe + Object.defineProperty([], 'length', { writable: false }).length = 1; + } catch (error) { + return error instanceof TypeError; + } +}(); + +module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) { + if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) { + throw new $TypeError('Cannot set read only .length'); + } return O.length = length; +} : function (O, length) { + return O.length = length; +}; diff --git a/node_modules/core-js/internals/array-slice.js b/node_modules/core-js/internals/array-slice.js new file mode 100644 index 0000000..b18786f --- /dev/null +++ b/node_modules/core-js/internals/array-slice.js @@ -0,0 +1,4 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); + +module.exports = uncurryThis([].slice); diff --git a/node_modules/core-js/internals/array-sort.js b/node_modules/core-js/internals/array-sort.js new file mode 100644 index 0000000..c12faf1 --- /dev/null +++ b/node_modules/core-js/internals/array-sort.js @@ -0,0 +1,42 @@ +'use strict'; +var arraySlice = require('../internals/array-slice'); + +var floor = Math.floor; + +var sort = function (array, comparefn) { + var length = array.length; + + if (length < 8) { + // insertion sort + var i = 1; + var element, j; + + while (i < length) { + j = i; + element = array[i]; + while (j && comparefn(array[j - 1], element) > 0) { + array[j] = array[--j]; + } + if (j !== i++) array[j] = element; + } + } else { + // merge sort + var middle = floor(length / 2); + var left = sort(arraySlice(array, 0, middle), comparefn); + var right = sort(arraySlice(array, middle), comparefn); + var llength = left.length; + var rlength = right.length; + var lindex = 0; + var rindex = 0; + + while (lindex < llength || rindex < rlength) { + array[lindex + rindex] = (lindex < llength && rindex < rlength) + ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++] + : lindex < llength ? left[lindex++] : right[rindex++]; + } + } + + return array; +}; + +module.exports = sort; diff --git a/node_modules/core-js/internals/array-species-constructor.js b/node_modules/core-js/internals/array-species-constructor.js new file mode 100644 index 0000000..db2f18c --- /dev/null +++ b/node_modules/core-js/internals/array-species-constructor.js @@ -0,0 +1,23 @@ +'use strict'; +var isArray = require('../internals/is-array'); +var isConstructor = require('../internals/is-constructor'); +var isObject = require('../internals/is-object'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var SPECIES = wellKnownSymbol('species'); +var $Array = Array; + +// a part of `ArraySpeciesCreate` abstract operation +// https://tc39.es/ecma262/#sec-arrayspeciescreate +module.exports = function (originalArray) { + var C; + if (isArray(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined; + else if (isObject(C)) { + C = C[SPECIES]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; +}; diff --git a/node_modules/core-js/internals/array-species-create.js b/node_modules/core-js/internals/array-species-create.js new file mode 100644 index 0000000..35d0291 --- /dev/null +++ b/node_modules/core-js/internals/array-species-create.js @@ -0,0 +1,8 @@ +'use strict'; +var arraySpeciesConstructor = require('../internals/array-species-constructor'); + +// `ArraySpeciesCreate` abstract operation +// https://tc39.es/ecma262/#sec-arrayspeciescreate +module.exports = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); +}; diff --git a/node_modules/core-js/internals/array-to-reversed.js b/node_modules/core-js/internals/array-to-reversed.js new file mode 100644 index 0000000..0a1e9c7 --- /dev/null +++ b/node_modules/core-js/internals/array-to-reversed.js @@ -0,0 +1,12 @@ +'use strict'; +var lengthOfArrayLike = require('../internals/length-of-array-like'); + +// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed +// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed +module.exports = function (O, C) { + var len = lengthOfArrayLike(O); + var A = new C(len); + var k = 0; + for (; k < len; k++) A[k] = O[len - k - 1]; + return A; +}; diff --git a/node_modules/core-js/internals/array-unique-by.js b/node_modules/core-js/internals/array-unique-by.js new file mode 100644 index 0000000..42f2425 --- /dev/null +++ b/node_modules/core-js/internals/array-unique-by.js @@ -0,0 +1,35 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var aCallable = require('../internals/a-callable'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var toObject = require('../internals/to-object'); +var MapHelpers = require('../internals/map-helpers'); +var iterate = require('../internals/map-iterate'); + +var Map = MapHelpers.Map; +var mapHas = MapHelpers.has; +var mapSet = MapHelpers.set; +var push = uncurryThis([].push); + +// `Array.prototype.uniqueBy` method +// https://github.com/tc39/proposal-array-unique +module.exports = function uniqueBy(resolver) { + var that = toObject(this); + var length = lengthOfArrayLike(that); + var result = []; + var map = new Map(); + var resolverFunction = !isNullOrUndefined(resolver) ? aCallable(resolver) : function (value) { + return value; + }; + var index, item, key; + for (index = 0; index < length; index++) { + item = that[index]; + key = resolverFunction(item); + if (!mapHas(map, key)) mapSet(map, key, item); + } + iterate(map, function (value) { + push(result, value); + }); + return result; +}; diff --git a/node_modules/core-js/internals/array-with.js b/node_modules/core-js/internals/array-with.js new file mode 100644 index 0000000..e4a825e --- /dev/null +++ b/node_modules/core-js/internals/array-with.js @@ -0,0 +1,18 @@ +'use strict'; +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); + +var $RangeError = RangeError; + +// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with +// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with +module.exports = function (O, C, index, value) { + var len = lengthOfArrayLike(O); + var relativeIndex = toIntegerOrInfinity(index); + var actualIndex = relativeIndex < 0 ? len + relativeIndex : relativeIndex; + if (actualIndex >= len || actualIndex < 0) throw new $RangeError('Incorrect index'); + var A = new C(len); + var k = 0; + for (; k < len; k++) A[k] = k === actualIndex ? value : O[k]; + return A; +}; diff --git a/node_modules/core-js/internals/async-from-sync-iterator.js b/node_modules/core-js/internals/async-from-sync-iterator.js new file mode 100644 index 0000000..b4ab017 --- /dev/null +++ b/node_modules/core-js/internals/async-from-sync-iterator.js @@ -0,0 +1,49 @@ +'use strict'; +var call = require('../internals/function-call'); +var anObject = require('../internals/an-object'); +var create = require('../internals/object-create'); +var getMethod = require('../internals/get-method'); +var defineBuiltIns = require('../internals/define-built-ins'); +var InternalStateModule = require('../internals/internal-state'); +var getBuiltIn = require('../internals/get-built-in'); +var AsyncIteratorPrototype = require('../internals/async-iterator-prototype'); +var createIterResultObject = require('../internals/create-iter-result-object'); + +var Promise = getBuiltIn('Promise'); + +var ASYNC_FROM_SYNC_ITERATOR = 'AsyncFromSyncIterator'; +var setInternalState = InternalStateModule.set; +var getInternalState = InternalStateModule.getterFor(ASYNC_FROM_SYNC_ITERATOR); + +var asyncFromSyncIteratorContinuation = function (result, resolve, reject) { + var done = result.done; + Promise.resolve(result.value).then(function (value) { + resolve(createIterResultObject(value, done)); + }, reject); +}; + +var AsyncFromSyncIterator = function AsyncIterator(iteratorRecord) { + iteratorRecord.type = ASYNC_FROM_SYNC_ITERATOR; + setInternalState(this, iteratorRecord); +}; + +AsyncFromSyncIterator.prototype = defineBuiltIns(create(AsyncIteratorPrototype), { + next: function next() { + var state = getInternalState(this); + return new Promise(function (resolve, reject) { + var result = anObject(call(state.next, state.iterator)); + asyncFromSyncIteratorContinuation(result, resolve, reject); + }); + }, + 'return': function () { + var iterator = getInternalState(this).iterator; + return new Promise(function (resolve, reject) { + var $return = getMethod(iterator, 'return'); + if ($return === undefined) return resolve(createIterResultObject(undefined, true)); + var result = anObject(call($return, iterator)); + asyncFromSyncIteratorContinuation(result, resolve, reject); + }); + } +}); + +module.exports = AsyncFromSyncIterator; diff --git a/node_modules/core-js/internals/async-iterator-close.js b/node_modules/core-js/internals/async-iterator-close.js new file mode 100644 index 0000000..30cc91a --- /dev/null +++ b/node_modules/core-js/internals/async-iterator-close.js @@ -0,0 +1,19 @@ +'use strict'; +var call = require('../internals/function-call'); +var getBuiltIn = require('../internals/get-built-in'); +var getMethod = require('../internals/get-method'); + +module.exports = function (iterator, method, argument, reject) { + try { + var returnMethod = getMethod(iterator, 'return'); + if (returnMethod) { + return getBuiltIn('Promise').resolve(call(returnMethod, iterator)).then(function () { + method(argument); + }, function (error) { + reject(error); + }); + } + } catch (error2) { + return reject(error2); + } method(argument); +}; diff --git a/node_modules/core-js/internals/async-iterator-create-proxy.js b/node_modules/core-js/internals/async-iterator-create-proxy.js new file mode 100644 index 0000000..12f7c2d --- /dev/null +++ b/node_modules/core-js/internals/async-iterator-create-proxy.js @@ -0,0 +1,105 @@ +'use strict'; +var call = require('../internals/function-call'); +var perform = require('../internals/perform'); +var anObject = require('../internals/an-object'); +var create = require('../internals/object-create'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var defineBuiltIns = require('../internals/define-built-ins'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var InternalStateModule = require('../internals/internal-state'); +var getBuiltIn = require('../internals/get-built-in'); +var getMethod = require('../internals/get-method'); +var AsyncIteratorPrototype = require('../internals/async-iterator-prototype'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var iteratorClose = require('../internals/iterator-close'); + +var Promise = getBuiltIn('Promise'); + +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var ASYNC_ITERATOR_HELPER = 'AsyncIteratorHelper'; +var WRAP_FOR_VALID_ASYNC_ITERATOR = 'WrapForValidAsyncIterator'; +var setInternalState = InternalStateModule.set; + +var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) { + var IS_GENERATOR = !IS_ITERATOR; + var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER); + + var getStateOrEarlyExit = function (that) { + var stateCompletion = perform(function () { + return getInternalState(that); + }); + + var stateError = stateCompletion.error; + var state = stateCompletion.value; + + if (stateError || (IS_GENERATOR && state.done)) { + return { exit: true, value: stateError ? Promise.reject(state) : Promise.resolve(createIterResultObject(undefined, true)) }; + } return { exit: false, value: state }; + }; + + return defineBuiltIns(create(AsyncIteratorPrototype), { + next: function next() { + var stateCompletion = getStateOrEarlyExit(this); + var state = stateCompletion.value; + if (stateCompletion.exit) return state; + var handlerCompletion = perform(function () { + return anObject(state.nextHandler(Promise)); + }); + var handlerError = handlerCompletion.error; + var value = handlerCompletion.value; + if (handlerError) state.done = true; + return handlerError ? Promise.reject(value) : Promise.resolve(value); + }, + 'return': function () { + var stateCompletion = getStateOrEarlyExit(this); + var state = stateCompletion.value; + if (stateCompletion.exit) return state; + state.done = true; + var iterator = state.iterator; + var returnMethod, result; + var completion = perform(function () { + if (state.inner) try { + iteratorClose(state.inner.iterator, 'normal'); + } catch (error) { + return iteratorClose(iterator, 'throw', error); + } + return getMethod(iterator, 'return'); + }); + returnMethod = result = completion.value; + if (completion.error) return Promise.reject(result); + if (returnMethod === undefined) return Promise.resolve(createIterResultObject(undefined, true)); + completion = perform(function () { + return call(returnMethod, iterator); + }); + result = completion.value; + if (completion.error) return Promise.reject(result); + return IS_ITERATOR ? Promise.resolve(result) : Promise.resolve(result).then(function (resolved) { + anObject(resolved); + return createIterResultObject(undefined, true); + }); + } + }); +}; + +var WrapForValidAsyncIteratorPrototype = createAsyncIteratorProxyPrototype(true); +var AsyncIteratorHelperPrototype = createAsyncIteratorProxyPrototype(false); + +createNonEnumerableProperty(AsyncIteratorHelperPrototype, TO_STRING_TAG, 'Async Iterator Helper'); + +module.exports = function (nextHandler, IS_ITERATOR) { + var AsyncIteratorProxy = function AsyncIterator(record, state) { + if (state) { + state.iterator = record.iterator; + state.next = record.next; + } else state = record; + state.type = IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER; + state.nextHandler = nextHandler; + state.counter = 0; + state.done = false; + setInternalState(this, state); + }; + + AsyncIteratorProxy.prototype = IS_ITERATOR ? WrapForValidAsyncIteratorPrototype : AsyncIteratorHelperPrototype; + + return AsyncIteratorProxy; +}; diff --git a/node_modules/core-js/internals/async-iterator-indexed.js b/node_modules/core-js/internals/async-iterator-indexed.js new file mode 100644 index 0000000..8ed6671 --- /dev/null +++ b/node_modules/core-js/internals/async-iterator-indexed.js @@ -0,0 +1,13 @@ +'use strict'; +var call = require('../internals/function-call'); +var map = require('../internals/async-iterator-map'); + +var callback = function (value, counter) { + return [counter, value]; +}; + +// `AsyncIterator.prototype.indexed` method +// https://github.com/tc39/proposal-iterator-helpers +module.exports = function indexed() { + return call(map, this, callback); +}; diff --git a/node_modules/core-js/internals/async-iterator-iteration.js b/node_modules/core-js/internals/async-iterator-iteration.js new file mode 100644 index 0000000..684c0bf --- /dev/null +++ b/node_modules/core-js/internals/async-iterator-iteration.js @@ -0,0 +1,90 @@ +'use strict'; +// https://github.com/tc39/proposal-iterator-helpers +// https://github.com/tc39/proposal-array-from-async +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var isObject = require('../internals/is-object'); +var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer'); +var getBuiltIn = require('../internals/get-built-in'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var closeAsyncIteration = require('../internals/async-iterator-close'); + +var createMethod = function (TYPE) { + var IS_TO_ARRAY = TYPE === 0; + var IS_FOR_EACH = TYPE === 1; + var IS_EVERY = TYPE === 2; + var IS_SOME = TYPE === 3; + return function (object, fn, target) { + anObject(object); + var MAPPING = fn !== undefined; + if (MAPPING || !IS_TO_ARRAY) aCallable(fn); + var record = getIteratorDirect(object); + var Promise = getBuiltIn('Promise'); + var iterator = record.iterator; + var next = record.next; + var counter = 0; + + return new Promise(function (resolve, reject) { + var ifAbruptCloseAsyncIterator = function (error) { + closeAsyncIteration(iterator, reject, error, reject); + }; + + var loop = function () { + try { + if (MAPPING) try { + doesNotExceedSafeInteger(counter); + } catch (error5) { ifAbruptCloseAsyncIterator(error5); } + Promise.resolve(anObject(call(next, iterator))).then(function (step) { + try { + if (anObject(step).done) { + if (IS_TO_ARRAY) { + target.length = counter; + resolve(target); + } else resolve(IS_SOME ? false : IS_EVERY || undefined); + } else { + var value = step.value; + try { + if (MAPPING) { + var result = fn(value, counter); + + var handler = function ($result) { + if (IS_FOR_EACH) { + loop(); + } else if (IS_EVERY) { + $result ? loop() : closeAsyncIteration(iterator, resolve, false, reject); + } else if (IS_TO_ARRAY) { + try { + target[counter++] = $result; + loop(); + } catch (error4) { ifAbruptCloseAsyncIterator(error4); } + } else { + $result ? closeAsyncIteration(iterator, resolve, IS_SOME || value, reject) : loop(); + } + }; + + if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); + else handler(result); + } else { + target[counter++] = value; + loop(); + } + } catch (error3) { ifAbruptCloseAsyncIterator(error3); } + } + } catch (error2) { reject(error2); } + }, reject); + } catch (error) { reject(error); } + }; + + loop(); + }); + }; +}; + +module.exports = { + toArray: createMethod(0), + forEach: createMethod(1), + every: createMethod(2), + some: createMethod(3), + find: createMethod(4) +}; diff --git a/node_modules/core-js/internals/async-iterator-map.js b/node_modules/core-js/internals/async-iterator-map.js new file mode 100644 index 0000000..6e333f9 --- /dev/null +++ b/node_modules/core-js/internals/async-iterator-map.js @@ -0,0 +1,57 @@ +'use strict'; +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var isObject = require('../internals/is-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var closeAsyncIteration = require('../internals/async-iterator-close'); + +var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { + var state = this; + var iterator = state.iterator; + var mapper = state.mapper; + + return new Promise(function (resolve, reject) { + var doneAndReject = function (error) { + state.done = true; + reject(error); + }; + + var ifAbruptCloseAsyncIterator = function (error) { + closeAsyncIteration(iterator, doneAndReject, error, doneAndReject); + }; + + Promise.resolve(anObject(call(state.next, iterator))).then(function (step) { + try { + if (anObject(step).done) { + state.done = true; + resolve(createIterResultObject(undefined, true)); + } else { + var value = step.value; + try { + var result = mapper(value, state.counter++); + + var handler = function (mapped) { + resolve(createIterResultObject(mapped, false)); + }; + + if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); + else handler(result); + } catch (error2) { ifAbruptCloseAsyncIterator(error2); } + } + } catch (error) { doneAndReject(error); } + }, doneAndReject); + }); +}); + +// `AsyncIterator.prototype.map` method +// https://github.com/tc39/proposal-iterator-helpers +module.exports = function map(mapper) { + anObject(this); + aCallable(mapper); + return new AsyncIteratorProxy(getIteratorDirect(this), { + mapper: mapper + }); +}; diff --git a/node_modules/core-js/internals/async-iterator-prototype.js b/node_modules/core-js/internals/async-iterator-prototype.js new file mode 100644 index 0000000..1fed135 --- /dev/null +++ b/node_modules/core-js/internals/async-iterator-prototype.js @@ -0,0 +1,38 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var shared = require('../internals/shared-store'); +var isCallable = require('../internals/is-callable'); +var create = require('../internals/object-create'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); +var defineBuiltIn = require('../internals/define-built-in'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var IS_PURE = require('../internals/is-pure'); + +var USE_FUNCTION_CONSTRUCTOR = 'USE_FUNCTION_CONSTRUCTOR'; +var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); +var AsyncIterator = globalThis.AsyncIterator; +var PassedAsyncIteratorPrototype = shared.AsyncIteratorPrototype; +var AsyncIteratorPrototype, prototype; + +if (PassedAsyncIteratorPrototype) { + AsyncIteratorPrototype = PassedAsyncIteratorPrototype; +} else if (isCallable(AsyncIterator)) { + AsyncIteratorPrototype = AsyncIterator.prototype; +} else if (shared[USE_FUNCTION_CONSTRUCTOR] || globalThis[USE_FUNCTION_CONSTRUCTOR]) { + try { + // eslint-disable-next-line no-new-func -- we have no alternatives without usage of modern syntax + prototype = getPrototypeOf(getPrototypeOf(getPrototypeOf(Function('return async function*(){}()')()))); + if (getPrototypeOf(prototype) === Object.prototype) AsyncIteratorPrototype = prototype; + } catch (error) { /* empty */ } +} + +if (!AsyncIteratorPrototype) AsyncIteratorPrototype = {}; +else if (IS_PURE) AsyncIteratorPrototype = create(AsyncIteratorPrototype); + +if (!isCallable(AsyncIteratorPrototype[ASYNC_ITERATOR])) { + defineBuiltIn(AsyncIteratorPrototype, ASYNC_ITERATOR, function () { + return this; + }); +} + +module.exports = AsyncIteratorPrototype; diff --git a/node_modules/core-js/internals/async-iterator-wrap.js b/node_modules/core-js/internals/async-iterator-wrap.js new file mode 100644 index 0000000..5836316 --- /dev/null +++ b/node_modules/core-js/internals/async-iterator-wrap.js @@ -0,0 +1,7 @@ +'use strict'; +var call = require('../internals/function-call'); +var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy'); + +module.exports = createAsyncIteratorProxy(function () { + return call(this.next, this.iterator); +}, true); diff --git a/node_modules/core-js/internals/base64-map.js b/node_modules/core-js/internals/base64-map.js new file mode 100644 index 0000000..2bda13a --- /dev/null +++ b/node_modules/core-js/internals/base64-map.js @@ -0,0 +1,19 @@ +'use strict'; +var commonAlphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; +var base64Alphabet = commonAlphabet + '+/'; +var base64UrlAlphabet = commonAlphabet + '-_'; + +var inverse = function (characters) { + // TODO: use `Object.create(null)` in `core-js@4` + var result = {}; + var index = 0; + for (; index < 64; index++) result[characters.charAt(index)] = index; + return result; +}; + +module.exports = { + i2c: base64Alphabet, + c2i: inverse(base64Alphabet), + i2cUrl: base64UrlAlphabet, + c2iUrl: inverse(base64UrlAlphabet) +}; diff --git a/node_modules/core-js/internals/call-with-safe-iteration-closing.js b/node_modules/core-js/internals/call-with-safe-iteration-closing.js new file mode 100644 index 0000000..b468c8f --- /dev/null +++ b/node_modules/core-js/internals/call-with-safe-iteration-closing.js @@ -0,0 +1,12 @@ +'use strict'; +var anObject = require('../internals/an-object'); +var iteratorClose = require('../internals/iterator-close'); + +// call something on iterator step with safe closing on error +module.exports = function (iterator, fn, value, ENTRIES) { + try { + return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value); + } catch (error) { + iteratorClose(iterator, 'throw', error); + } +}; diff --git a/node_modules/core-js/internals/caller.js b/node_modules/core-js/internals/caller.js new file mode 100644 index 0000000..c37987e --- /dev/null +++ b/node_modules/core-js/internals/caller.js @@ -0,0 +1,8 @@ +'use strict'; +module.exports = function (methodName, numArgs) { + return numArgs === 1 ? function (object, arg) { + return object[methodName](arg); + } : function (object, arg1, arg2) { + return object[methodName](arg1, arg2); + }; +}; diff --git a/node_modules/core-js/internals/check-correctness-of-iteration.js b/node_modules/core-js/internals/check-correctness-of-iteration.js new file mode 100644 index 0000000..ee9f092 --- /dev/null +++ b/node_modules/core-js/internals/check-correctness-of-iteration.js @@ -0,0 +1,41 @@ +'use strict'; +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var ITERATOR = wellKnownSymbol('iterator'); +var SAFE_CLOSING = false; + +try { + var called = 0; + var iteratorWithReturn = { + next: function () { + return { done: !!called++ }; + }, + 'return': function () { + SAFE_CLOSING = true; + } + }; + iteratorWithReturn[ITERATOR] = function () { + return this; + }; + // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing + Array.from(iteratorWithReturn, function () { throw 2; }); +} catch (error) { /* empty */ } + +module.exports = function (exec, SKIP_CLOSING) { + try { + if (!SKIP_CLOSING && !SAFE_CLOSING) return false; + } catch (error) { return false; } // workaround of old WebKit + `eval` bug + var ITERATION_SUPPORT = false; + try { + var object = {}; + object[ITERATOR] = function () { + return { + next: function () { + return { done: ITERATION_SUPPORT = true }; + } + }; + }; + exec(object); + } catch (error) { /* empty */ } + return ITERATION_SUPPORT; +}; diff --git a/node_modules/core-js/internals/classof-raw.js b/node_modules/core-js/internals/classof-raw.js new file mode 100644 index 0000000..3c3d430 --- /dev/null +++ b/node_modules/core-js/internals/classof-raw.js @@ -0,0 +1,9 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); + +var toString = uncurryThis({}.toString); +var stringSlice = uncurryThis(''.slice); + +module.exports = function (it) { + return stringSlice(toString(it), 8, -1); +}; diff --git a/node_modules/core-js/internals/classof.js b/node_modules/core-js/internals/classof.js new file mode 100644 index 0000000..8c0fae6 --- /dev/null +++ b/node_modules/core-js/internals/classof.js @@ -0,0 +1,30 @@ +'use strict'; +var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support'); +var isCallable = require('../internals/is-callable'); +var classofRaw = require('../internals/classof-raw'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var $Object = Object; + +// ES3 wrong here +var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments'; + +// fallback for IE11 Script Access Denied error +var tryGet = function (it, key) { + try { + return it[key]; + } catch (error) { /* empty */ } +}; + +// getting tag from ES6+ `Object.prototype.toString` +module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result; +}; diff --git a/node_modules/core-js/internals/collection-from.js b/node_modules/core-js/internals/collection-from.js new file mode 100644 index 0000000..06d7f98 --- /dev/null +++ b/node_modules/core-js/internals/collection-from.js @@ -0,0 +1,24 @@ +'use strict'; +// https://tc39.github.io/proposal-setmap-offrom/ +var bind = require('../internals/function-bind-context'); +var anObject = require('../internals/an-object'); +var toObject = require('../internals/to-object'); +var iterate = require('../internals/iterate'); + +module.exports = function (C, adder, ENTRY) { + return function from(source /* , mapFn, thisArg */) { + var O = toObject(source); + var length = arguments.length; + var mapFn = length > 1 ? arguments[1] : undefined; + var mapping = mapFn !== undefined; + var boundFunction = mapping ? bind(mapFn, length > 2 ? arguments[2] : undefined) : undefined; + var result = new C(); + var n = 0; + iterate(O, function (nextItem) { + var entry = mapping ? boundFunction(nextItem, n++) : nextItem; + if (ENTRY) adder(result, anObject(entry)[0], entry[1]); + else adder(result, entry); + }); + return result; + }; +}; diff --git a/node_modules/core-js/internals/collection-of.js b/node_modules/core-js/internals/collection-of.js new file mode 100644 index 0000000..b23f18b --- /dev/null +++ b/node_modules/core-js/internals/collection-of.js @@ -0,0 +1,15 @@ +'use strict'; +var anObject = require('../internals/an-object'); + +// https://tc39.github.io/proposal-setmap-offrom/ +module.exports = function (C, adder, ENTRY) { + return function of() { + var result = new C(); + var length = arguments.length; + for (var index = 0; index < length; index++) { + var entry = arguments[index]; + if (ENTRY) adder(result, anObject(entry)[0], entry[1]); + else adder(result, entry); + } return result; + }; +}; diff --git a/node_modules/core-js/internals/collection-strong.js b/node_modules/core-js/internals/collection-strong.js new file mode 100644 index 0000000..cea1107 --- /dev/null +++ b/node_modules/core-js/internals/collection-strong.js @@ -0,0 +1,206 @@ +'use strict'; +var create = require('../internals/object-create'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var defineBuiltIns = require('../internals/define-built-ins'); +var bind = require('../internals/function-bind-context'); +var anInstance = require('../internals/an-instance'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var iterate = require('../internals/iterate'); +var defineIterator = require('../internals/iterator-define'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var setSpecies = require('../internals/set-species'); +var DESCRIPTORS = require('../internals/descriptors'); +var fastKey = require('../internals/internal-metadata').fastKey; +var InternalStateModule = require('../internals/internal-state'); + +var setInternalState = InternalStateModule.set; +var internalStateGetterFor = InternalStateModule.getterFor; + +module.exports = { + getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { + var Constructor = wrapper(function (that, iterable) { + anInstance(that, Prototype); + setInternalState(that, { + type: CONSTRUCTOR_NAME, + index: create(null), + first: null, + last: null, + size: 0 + }); + if (!DESCRIPTORS) that.size = 0; + if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); + }); + + var Prototype = Constructor.prototype; + + var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME); + + var define = function (that, key, value) { + var state = getInternalState(that); + var entry = getEntry(that, key); + var previous, index; + // change existing entry + if (entry) { + entry.value = value; + // create new entry + } else { + state.last = entry = { + index: index = fastKey(key, true), + key: key, + value: value, + previous: previous = state.last, + next: null, + removed: false + }; + if (!state.first) state.first = entry; + if (previous) previous.next = entry; + if (DESCRIPTORS) state.size++; + else that.size++; + // add to index + if (index !== 'F') state.index[index] = entry; + } return that; + }; + + var getEntry = function (that, key) { + var state = getInternalState(that); + // fast case + var index = fastKey(key); + var entry; + if (index !== 'F') return state.index[index]; + // frozen object case + for (entry = state.first; entry; entry = entry.next) { + if (entry.key === key) return entry; + } + }; + + defineBuiltIns(Prototype, { + // `{ Map, Set }.prototype.clear()` methods + // https://tc39.es/ecma262/#sec-map.prototype.clear + // https://tc39.es/ecma262/#sec-set.prototype.clear + clear: function clear() { + var that = this; + var state = getInternalState(that); + var entry = state.first; + while (entry) { + entry.removed = true; + if (entry.previous) entry.previous = entry.previous.next = null; + entry = entry.next; + } + state.first = state.last = null; + state.index = create(null); + if (DESCRIPTORS) state.size = 0; + else that.size = 0; + }, + // `{ Map, Set }.prototype.delete(key)` methods + // https://tc39.es/ecma262/#sec-map.prototype.delete + // https://tc39.es/ecma262/#sec-set.prototype.delete + 'delete': function (key) { + var that = this; + var state = getInternalState(that); + var entry = getEntry(that, key); + if (entry) { + var next = entry.next; + var prev = entry.previous; + delete state.index[entry.index]; + entry.removed = true; + if (prev) prev.next = next; + if (next) next.previous = prev; + if (state.first === entry) state.first = next; + if (state.last === entry) state.last = prev; + if (DESCRIPTORS) state.size--; + else that.size--; + } return !!entry; + }, + // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods + // https://tc39.es/ecma262/#sec-map.prototype.foreach + // https://tc39.es/ecma262/#sec-set.prototype.foreach + forEach: function forEach(callbackfn /* , that = undefined */) { + var state = getInternalState(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var entry; + while (entry = entry ? entry.next : state.first) { + boundFunction(entry.value, entry.key, this); + // revert to the last existing entry + while (entry && entry.removed) entry = entry.previous; + } + }, + // `{ Map, Set}.prototype.has(key)` methods + // https://tc39.es/ecma262/#sec-map.prototype.has + // https://tc39.es/ecma262/#sec-set.prototype.has + has: function has(key) { + return !!getEntry(this, key); + } + }); + + defineBuiltIns(Prototype, IS_MAP ? { + // `Map.prototype.get(key)` method + // https://tc39.es/ecma262/#sec-map.prototype.get + get: function get(key) { + var entry = getEntry(this, key); + return entry && entry.value; + }, + // `Map.prototype.set(key, value)` method + // https://tc39.es/ecma262/#sec-map.prototype.set + set: function set(key, value) { + return define(this, key === 0 ? 0 : key, value); + } + } : { + // `Set.prototype.add(value)` method + // https://tc39.es/ecma262/#sec-set.prototype.add + add: function add(value) { + return define(this, value = value === 0 ? 0 : value, value); + } + }); + if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', { + configurable: true, + get: function () { + return getInternalState(this).size; + } + }); + return Constructor; + }, + setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) { + var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator'; + var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME); + var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME); + // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods + // https://tc39.es/ecma262/#sec-map.prototype.entries + // https://tc39.es/ecma262/#sec-map.prototype.keys + // https://tc39.es/ecma262/#sec-map.prototype.values + // https://tc39.es/ecma262/#sec-map.prototype-@@iterator + // https://tc39.es/ecma262/#sec-set.prototype.entries + // https://tc39.es/ecma262/#sec-set.prototype.keys + // https://tc39.es/ecma262/#sec-set.prototype.values + // https://tc39.es/ecma262/#sec-set.prototype-@@iterator + defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) { + setInternalState(this, { + type: ITERATOR_NAME, + target: iterated, + state: getInternalCollectionState(iterated), + kind: kind, + last: null + }); + }, function () { + var state = getInternalIteratorState(this); + var kind = state.kind; + var entry = state.last; + // revert to the last existing entry + while (entry && entry.removed) entry = entry.previous; + // get next entry + if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) { + // or finish the iteration + state.target = null; + return createIterResultObject(undefined, true); + } + // return step by kind + if (kind === 'keys') return createIterResultObject(entry.key, false); + if (kind === 'values') return createIterResultObject(entry.value, false); + return createIterResultObject([entry.key, entry.value], false); + }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); + + // `{ Map, Set }.prototype[@@species]` accessors + // https://tc39.es/ecma262/#sec-get-map-@@species + // https://tc39.es/ecma262/#sec-get-set-@@species + setSpecies(CONSTRUCTOR_NAME); + } +}; diff --git a/node_modules/core-js/internals/collection-weak.js b/node_modules/core-js/internals/collection-weak.js new file mode 100644 index 0000000..d13b7bc --- /dev/null +++ b/node_modules/core-js/internals/collection-weak.js @@ -0,0 +1,131 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var defineBuiltIns = require('../internals/define-built-ins'); +var getWeakData = require('../internals/internal-metadata').getWeakData; +var anInstance = require('../internals/an-instance'); +var anObject = require('../internals/an-object'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var isObject = require('../internals/is-object'); +var iterate = require('../internals/iterate'); +var ArrayIterationModule = require('../internals/array-iteration'); +var hasOwn = require('../internals/has-own-property'); +var InternalStateModule = require('../internals/internal-state'); + +var setInternalState = InternalStateModule.set; +var internalStateGetterFor = InternalStateModule.getterFor; +var find = ArrayIterationModule.find; +var findIndex = ArrayIterationModule.findIndex; +var splice = uncurryThis([].splice); +var id = 0; + +// fallback for uncaught frozen keys +var uncaughtFrozenStore = function (state) { + return state.frozen || (state.frozen = new UncaughtFrozenStore()); +}; + +var UncaughtFrozenStore = function () { + this.entries = []; +}; + +var findUncaughtFrozen = function (store, key) { + return find(store.entries, function (it) { + return it[0] === key; + }); +}; + +UncaughtFrozenStore.prototype = { + get: function (key) { + var entry = findUncaughtFrozen(this, key); + if (entry) return entry[1]; + }, + has: function (key) { + return !!findUncaughtFrozen(this, key); + }, + set: function (key, value) { + var entry = findUncaughtFrozen(this, key); + if (entry) entry[1] = value; + else this.entries.push([key, value]); + }, + 'delete': function (key) { + var index = findIndex(this.entries, function (it) { + return it[0] === key; + }); + if (~index) splice(this.entries, index, 1); + return !!~index; + } +}; + +module.exports = { + getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { + var Constructor = wrapper(function (that, iterable) { + anInstance(that, Prototype); + setInternalState(that, { + type: CONSTRUCTOR_NAME, + id: id++, + frozen: null + }); + if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); + }); + + var Prototype = Constructor.prototype; + + var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME); + + var define = function (that, key, value) { + var state = getInternalState(that); + var data = getWeakData(anObject(key), true); + if (data === true) uncaughtFrozenStore(state).set(key, value); + else data[state.id] = value; + return that; + }; + + defineBuiltIns(Prototype, { + // `{ WeakMap, WeakSet }.prototype.delete(key)` methods + // https://tc39.es/ecma262/#sec-weakmap.prototype.delete + // https://tc39.es/ecma262/#sec-weakset.prototype.delete + 'delete': function (key) { + var state = getInternalState(this); + if (!isObject(key)) return false; + var data = getWeakData(key); + if (data === true) return uncaughtFrozenStore(state)['delete'](key); + return data && hasOwn(data, state.id) && delete data[state.id]; + }, + // `{ WeakMap, WeakSet }.prototype.has(key)` methods + // https://tc39.es/ecma262/#sec-weakmap.prototype.has + // https://tc39.es/ecma262/#sec-weakset.prototype.has + has: function has(key) { + var state = getInternalState(this); + if (!isObject(key)) return false; + var data = getWeakData(key); + if (data === true) return uncaughtFrozenStore(state).has(key); + return data && hasOwn(data, state.id); + } + }); + + defineBuiltIns(Prototype, IS_MAP ? { + // `WeakMap.prototype.get(key)` method + // https://tc39.es/ecma262/#sec-weakmap.prototype.get + get: function get(key) { + var state = getInternalState(this); + if (isObject(key)) { + var data = getWeakData(key); + if (data === true) return uncaughtFrozenStore(state).get(key); + if (data) return data[state.id]; + } + }, + // `WeakMap.prototype.set(key, value)` method + // https://tc39.es/ecma262/#sec-weakmap.prototype.set + set: function set(key, value) { + return define(this, key, value); + } + } : { + // `WeakSet.prototype.add(value)` method + // https://tc39.es/ecma262/#sec-weakset.prototype.add + add: function add(value) { + return define(this, value, true); + } + }); + + return Constructor; + } +}; diff --git a/node_modules/core-js/internals/collection.js b/node_modules/core-js/internals/collection.js new file mode 100644 index 0000000..4961bd7 --- /dev/null +++ b/node_modules/core-js/internals/collection.js @@ -0,0 +1,106 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this'); +var isForced = require('../internals/is-forced'); +var defineBuiltIn = require('../internals/define-built-in'); +var InternalMetadataModule = require('../internals/internal-metadata'); +var iterate = require('../internals/iterate'); +var anInstance = require('../internals/an-instance'); +var isCallable = require('../internals/is-callable'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var isObject = require('../internals/is-object'); +var fails = require('../internals/fails'); +var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration'); +var setToStringTag = require('../internals/set-to-string-tag'); +var inheritIfRequired = require('../internals/inherit-if-required'); + +module.exports = function (CONSTRUCTOR_NAME, wrapper, common) { + var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1; + var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1; + var ADDER = IS_MAP ? 'set' : 'add'; + var NativeConstructor = globalThis[CONSTRUCTOR_NAME]; + var NativePrototype = NativeConstructor && NativeConstructor.prototype; + var Constructor = NativeConstructor; + var exported = {}; + + var fixMethod = function (KEY) { + var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]); + defineBuiltIn(NativePrototype, KEY, + KEY === 'add' ? function add(value) { + uncurriedNativeMethod(this, value === 0 ? 0 : value); + return this; + } : KEY === 'delete' ? function (key) { + return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); + } : KEY === 'get' ? function get(key) { + return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key); + } : KEY === 'has' ? function has(key) { + return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); + } : function set(key, value) { + uncurriedNativeMethod(this, key === 0 ? 0 : key, value); + return this; + } + ); + }; + + var REPLACE = isForced( + CONSTRUCTOR_NAME, + !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () { + new NativeConstructor().entries().next(); + })) + ); + + if (REPLACE) { + // create collection constructor + Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER); + InternalMetadataModule.enable(); + } else if (isForced(CONSTRUCTOR_NAME, true)) { + var instance = new Constructor(); + // early implementations not supports chaining + var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) !== instance; + // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false + var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); }); + // most early implementations doesn't supports iterables, most modern - not close it correctly + // eslint-disable-next-line no-new -- required for testing + var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); }); + // for early implementations -0 and +0 not the same + var BUGGY_ZERO = !IS_WEAK && fails(function () { + // V8 ~ Chromium 42- fails only with 5+ elements + var $instance = new NativeConstructor(); + var index = 5; + while (index--) $instance[ADDER](index, index); + return !$instance.has(-0); + }); + + if (!ACCEPT_ITERABLES) { + Constructor = wrapper(function (dummy, iterable) { + anInstance(dummy, NativePrototype); + var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor); + if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); + return that; + }); + Constructor.prototype = NativePrototype; + NativePrototype.constructor = Constructor; + } + + if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) { + fixMethod('delete'); + fixMethod('has'); + IS_MAP && fixMethod('get'); + } + + if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER); + + // weak collections should not contains .clear method + if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear; + } + + exported[CONSTRUCTOR_NAME] = Constructor; + $({ global: true, constructor: true, forced: Constructor !== NativeConstructor }, exported); + + setToStringTag(Constructor, CONSTRUCTOR_NAME); + + if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP); + + return Constructor; +}; diff --git a/node_modules/core-js/internals/composite-key.js b/node_modules/core-js/internals/composite-key.js new file mode 100644 index 0000000..6c44f20 --- /dev/null +++ b/node_modules/core-js/internals/composite-key.js @@ -0,0 +1,50 @@ +'use strict'; +// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` +require('../modules/es.map'); +require('../modules/es.weak-map'); +var getBuiltIn = require('../internals/get-built-in'); +var create = require('../internals/object-create'); +var isObject = require('../internals/is-object'); + +var $Object = Object; +var $TypeError = TypeError; +var Map = getBuiltIn('Map'); +var WeakMap = getBuiltIn('WeakMap'); + +var Node = function () { + // keys + this.object = null; + this.symbol = null; + // child nodes + this.primitives = null; + this.objectsByIndex = create(null); +}; + +Node.prototype.get = function (key, initializer) { + return this[key] || (this[key] = initializer()); +}; + +Node.prototype.next = function (i, it, IS_OBJECT) { + var store = IS_OBJECT + ? this.objectsByIndex[i] || (this.objectsByIndex[i] = new WeakMap()) + : this.primitives || (this.primitives = new Map()); + var entry = store.get(it); + if (!entry) store.set(it, entry = new Node()); + return entry; +}; + +var root = new Node(); + +module.exports = function () { + var active = root; + var length = arguments.length; + var i, it; + // for prevent leaking, start from objects + for (i = 0; i < length; i++) { + if (isObject(it = arguments[i])) active = active.next(i, it, true); + } + if (this === $Object && active === root) throw new $TypeError('Composite keys must contain a non-primitive component'); + for (i = 0; i < length; i++) { + if (!isObject(it = arguments[i])) active = active.next(i, it, false); + } return active; +}; diff --git a/node_modules/core-js/internals/copy-constructor-properties.js b/node_modules/core-js/internals/copy-constructor-properties.js new file mode 100644 index 0000000..8e73d46 --- /dev/null +++ b/node_modules/core-js/internals/copy-constructor-properties.js @@ -0,0 +1,17 @@ +'use strict'; +var hasOwn = require('../internals/has-own-property'); +var ownKeys = require('../internals/own-keys'); +var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor'); +var definePropertyModule = require('../internals/object-define-property'); + +module.exports = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } +}; diff --git a/node_modules/core-js/internals/correct-is-regexp-logic.js b/node_modules/core-js/internals/correct-is-regexp-logic.js new file mode 100644 index 0000000..2eb5233 --- /dev/null +++ b/node_modules/core-js/internals/correct-is-regexp-logic.js @@ -0,0 +1,16 @@ +'use strict'; +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var MATCH = wellKnownSymbol('match'); + +module.exports = function (METHOD_NAME) { + var regexp = /./; + try { + '/./'[METHOD_NAME](regexp); + } catch (error1) { + try { + regexp[MATCH] = false; + return '/./'[METHOD_NAME](regexp); + } catch (error2) { /* empty */ } + } return false; +}; diff --git a/node_modules/core-js/internals/correct-prototype-getter.js b/node_modules/core-js/internals/correct-prototype-getter.js new file mode 100644 index 0000000..e14d4af --- /dev/null +++ b/node_modules/core-js/internals/correct-prototype-getter.js @@ -0,0 +1,9 @@ +'use strict'; +var fails = require('../internals/fails'); + +module.exports = !fails(function () { + function F() { /* empty */ } + F.prototype.constructor = null; + // eslint-disable-next-line es/no-object-getprototypeof -- required for testing + return Object.getPrototypeOf(new F()) !== F.prototype; +}); diff --git a/node_modules/core-js/internals/create-html.js b/node_modules/core-js/internals/create-html.js new file mode 100644 index 0000000..650c2a1 --- /dev/null +++ b/node_modules/core-js/internals/create-html.js @@ -0,0 +1,16 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var toString = require('../internals/to-string'); + +var quot = /"/g; +var replace = uncurryThis(''.replace); + +// `CreateHTML` abstract operation +// https://tc39.es/ecma262/#sec-createhtml +module.exports = function (string, tag, attribute, value) { + var S = toString(requireObjectCoercible(string)); + var p1 = '<' + tag; + if (attribute !== '') p1 += ' ' + attribute + '="' + replace(toString(value), quot, '"') + '"'; + return p1 + '>' + S + ''; +}; diff --git a/node_modules/core-js/internals/create-iter-result-object.js b/node_modules/core-js/internals/create-iter-result-object.js new file mode 100644 index 0000000..a05d2d3 --- /dev/null +++ b/node_modules/core-js/internals/create-iter-result-object.js @@ -0,0 +1,6 @@ +'use strict'; +// `CreateIterResultObject` abstract operation +// https://tc39.es/ecma262/#sec-createiterresultobject +module.exports = function (value, done) { + return { value: value, done: done }; +}; diff --git a/node_modules/core-js/internals/create-non-enumerable-property.js b/node_modules/core-js/internals/create-non-enumerable-property.js new file mode 100644 index 0000000..718c3a5 --- /dev/null +++ b/node_modules/core-js/internals/create-non-enumerable-property.js @@ -0,0 +1,11 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var definePropertyModule = require('../internals/object-define-property'); +var createPropertyDescriptor = require('../internals/create-property-descriptor'); + +module.exports = DESCRIPTORS ? function (object, key, value) { + return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); +} : function (object, key, value) { + object[key] = value; + return object; +}; diff --git a/node_modules/core-js/internals/create-property-descriptor.js b/node_modules/core-js/internals/create-property-descriptor.js new file mode 100644 index 0000000..5ef2773 --- /dev/null +++ b/node_modules/core-js/internals/create-property-descriptor.js @@ -0,0 +1,9 @@ +'use strict'; +module.exports = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; +}; diff --git a/node_modules/core-js/internals/create-property.js b/node_modules/core-js/internals/create-property.js new file mode 100644 index 0000000..e7f6188 --- /dev/null +++ b/node_modules/core-js/internals/create-property.js @@ -0,0 +1,9 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var definePropertyModule = require('../internals/object-define-property'); +var createPropertyDescriptor = require('../internals/create-property-descriptor'); + +module.exports = function (object, key, value) { + if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value)); + else object[key] = value; +}; diff --git a/node_modules/core-js/internals/date-to-iso-string.js b/node_modules/core-js/internals/date-to-iso-string.js new file mode 100644 index 0000000..4fc47a1 --- /dev/null +++ b/node_modules/core-js/internals/date-to-iso-string.js @@ -0,0 +1,41 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var fails = require('../internals/fails'); +var padStart = require('../internals/string-pad').start; + +var $RangeError = RangeError; +var $isFinite = isFinite; +var abs = Math.abs; +var DatePrototype = Date.prototype; +var nativeDateToISOString = DatePrototype.toISOString; +var thisTimeValue = uncurryThis(DatePrototype.getTime); +var getUTCDate = uncurryThis(DatePrototype.getUTCDate); +var getUTCFullYear = uncurryThis(DatePrototype.getUTCFullYear); +var getUTCHours = uncurryThis(DatePrototype.getUTCHours); +var getUTCMilliseconds = uncurryThis(DatePrototype.getUTCMilliseconds); +var getUTCMinutes = uncurryThis(DatePrototype.getUTCMinutes); +var getUTCMonth = uncurryThis(DatePrototype.getUTCMonth); +var getUTCSeconds = uncurryThis(DatePrototype.getUTCSeconds); + +// `Date.prototype.toISOString` method implementation +// https://tc39.es/ecma262/#sec-date.prototype.toisostring +// PhantomJS / old WebKit fails here: +module.exports = (fails(function () { + return nativeDateToISOString.call(new Date(-5e13 - 1)) !== '0385-07-25T07:06:39.999Z'; +}) || !fails(function () { + nativeDateToISOString.call(new Date(NaN)); +})) ? function toISOString() { + if (!$isFinite(thisTimeValue(this))) throw new $RangeError('Invalid time value'); + var date = this; + var year = getUTCFullYear(date); + var milliseconds = getUTCMilliseconds(date); + var sign = year < 0 ? '-' : year > 9999 ? '+' : ''; + return sign + padStart(abs(year), sign ? 6 : 4, 0) + + '-' + padStart(getUTCMonth(date) + 1, 2, 0) + + '-' + padStart(getUTCDate(date), 2, 0) + + 'T' + padStart(getUTCHours(date), 2, 0) + + ':' + padStart(getUTCMinutes(date), 2, 0) + + ':' + padStart(getUTCSeconds(date), 2, 0) + + '.' + padStart(milliseconds, 3, 0) + + 'Z'; +} : nativeDateToISOString; diff --git a/node_modules/core-js/internals/date-to-primitive.js b/node_modules/core-js/internals/date-to-primitive.js new file mode 100644 index 0000000..b72e5df --- /dev/null +++ b/node_modules/core-js/internals/date-to-primitive.js @@ -0,0 +1,14 @@ +'use strict'; +var anObject = require('../internals/an-object'); +var ordinaryToPrimitive = require('../internals/ordinary-to-primitive'); + +var $TypeError = TypeError; + +// `Date.prototype[@@toPrimitive](hint)` method implementation +// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive +module.exports = function (hint) { + anObject(this); + if (hint === 'string' || hint === 'default') hint = 'string'; + else if (hint !== 'number') throw new $TypeError('Incorrect hint'); + return ordinaryToPrimitive(this, hint); +}; diff --git a/node_modules/core-js/internals/define-built-in-accessor.js b/node_modules/core-js/internals/define-built-in-accessor.js new file mode 100644 index 0000000..17c9708 --- /dev/null +++ b/node_modules/core-js/internals/define-built-in-accessor.js @@ -0,0 +1,9 @@ +'use strict'; +var makeBuiltIn = require('../internals/make-built-in'); +var defineProperty = require('../internals/object-define-property'); + +module.exports = function (target, name, descriptor) { + if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true }); + if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true }); + return defineProperty.f(target, name, descriptor); +}; diff --git a/node_modules/core-js/internals/define-built-in.js b/node_modules/core-js/internals/define-built-in.js new file mode 100644 index 0000000..3594306 --- /dev/null +++ b/node_modules/core-js/internals/define-built-in.js @@ -0,0 +1,28 @@ +'use strict'; +var isCallable = require('../internals/is-callable'); +var definePropertyModule = require('../internals/object-define-property'); +var makeBuiltIn = require('../internals/make-built-in'); +var defineGlobalProperty = require('../internals/define-global-property'); + +module.exports = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable(value)) makeBuiltIn(value, name, options); + if (options.global) { + if (simple) O[key] = value; + else defineGlobalProperty(key, value); + } else { + try { + if (!options.unsafe) delete O[key]; + else if (O[key]) simple = true; + } catch (error) { /* empty */ } + if (simple) O[key] = value; + else definePropertyModule.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; +}; diff --git a/node_modules/core-js/internals/define-built-ins.js b/node_modules/core-js/internals/define-built-ins.js new file mode 100644 index 0000000..1fbd53c --- /dev/null +++ b/node_modules/core-js/internals/define-built-ins.js @@ -0,0 +1,7 @@ +'use strict'; +var defineBuiltIn = require('../internals/define-built-in'); + +module.exports = function (target, src, options) { + for (var key in src) defineBuiltIn(target, key, src[key], options); + return target; +}; diff --git a/node_modules/core-js/internals/define-global-property.js b/node_modules/core-js/internals/define-global-property.js new file mode 100644 index 0000000..96fd4a2 --- /dev/null +++ b/node_modules/core-js/internals/define-global-property.js @@ -0,0 +1,13 @@ +'use strict'; +var globalThis = require('../internals/global-this'); + +// eslint-disable-next-line es/no-object-defineproperty -- safe +var defineProperty = Object.defineProperty; + +module.exports = function (key, value) { + try { + defineProperty(globalThis, key, { value: value, configurable: true, writable: true }); + } catch (error) { + globalThis[key] = value; + } return value; +}; diff --git a/node_modules/core-js/internals/delete-property-or-throw.js b/node_modules/core-js/internals/delete-property-or-throw.js new file mode 100644 index 0000000..7265f6f --- /dev/null +++ b/node_modules/core-js/internals/delete-property-or-throw.js @@ -0,0 +1,8 @@ +'use strict'; +var tryToString = require('../internals/try-to-string'); + +var $TypeError = TypeError; + +module.exports = function (O, P) { + if (!delete O[P]) throw new $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O)); +}; diff --git a/node_modules/core-js/internals/descriptors.js b/node_modules/core-js/internals/descriptors.js new file mode 100644 index 0000000..7d6f24a --- /dev/null +++ b/node_modules/core-js/internals/descriptors.js @@ -0,0 +1,8 @@ +'use strict'; +var fails = require('../internals/fails'); + +// Detect IE8's incomplete defineProperty implementation +module.exports = !fails(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7; +}); diff --git a/node_modules/core-js/internals/detach-transferable.js b/node_modules/core-js/internals/detach-transferable.js new file mode 100644 index 0000000..8fa55c5 --- /dev/null +++ b/node_modules/core-js/internals/detach-transferable.js @@ -0,0 +1,37 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var getBuiltInNodeModule = require('../internals/get-built-in-node-module'); +var PROPER_STRUCTURED_CLONE_TRANSFER = require('../internals/structured-clone-proper-transfer'); + +var structuredClone = globalThis.structuredClone; +var $ArrayBuffer = globalThis.ArrayBuffer; +var $MessageChannel = globalThis.MessageChannel; +var detach = false; +var WorkerThreads, channel, buffer, $detach; + +if (PROPER_STRUCTURED_CLONE_TRANSFER) { + detach = function (transferable) { + structuredClone(transferable, { transfer: [transferable] }); + }; +} else if ($ArrayBuffer) try { + if (!$MessageChannel) { + WorkerThreads = getBuiltInNodeModule('worker_threads'); + if (WorkerThreads) $MessageChannel = WorkerThreads.MessageChannel; + } + + if ($MessageChannel) { + channel = new $MessageChannel(); + buffer = new $ArrayBuffer(2); + + $detach = function (transferable) { + channel.port1.postMessage(null, [transferable]); + }; + + if (buffer.byteLength === 2) { + $detach(buffer); + if (buffer.byteLength === 0) detach = $detach; + } + } +} catch (error) { /* empty */ } + +module.exports = detach; diff --git a/node_modules/core-js/internals/document-create-element.js b/node_modules/core-js/internals/document-create-element.js new file mode 100644 index 0000000..dd572fb --- /dev/null +++ b/node_modules/core-js/internals/document-create-element.js @@ -0,0 +1,11 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var isObject = require('../internals/is-object'); + +var document = globalThis.document; +// typeof document.createElement is 'object' in old IE +var EXISTS = isObject(document) && isObject(document.createElement); + +module.exports = function (it) { + return EXISTS ? document.createElement(it) : {}; +}; diff --git a/node_modules/core-js/internals/does-not-exceed-safe-integer.js b/node_modules/core-js/internals/does-not-exceed-safe-integer.js new file mode 100644 index 0000000..fff7beb --- /dev/null +++ b/node_modules/core-js/internals/does-not-exceed-safe-integer.js @@ -0,0 +1,8 @@ +'use strict'; +var $TypeError = TypeError; +var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + +module.exports = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; +}; diff --git a/node_modules/core-js/internals/dom-exception-constants.js b/node_modules/core-js/internals/dom-exception-constants.js new file mode 100644 index 0000000..1588953 --- /dev/null +++ b/node_modules/core-js/internals/dom-exception-constants.js @@ -0,0 +1,28 @@ +'use strict'; +module.exports = { + IndexSizeError: { s: 'INDEX_SIZE_ERR', c: 1, m: 1 }, + DOMStringSizeError: { s: 'DOMSTRING_SIZE_ERR', c: 2, m: 0 }, + HierarchyRequestError: { s: 'HIERARCHY_REQUEST_ERR', c: 3, m: 1 }, + WrongDocumentError: { s: 'WRONG_DOCUMENT_ERR', c: 4, m: 1 }, + InvalidCharacterError: { s: 'INVALID_CHARACTER_ERR', c: 5, m: 1 }, + NoDataAllowedError: { s: 'NO_DATA_ALLOWED_ERR', c: 6, m: 0 }, + NoModificationAllowedError: { s: 'NO_MODIFICATION_ALLOWED_ERR', c: 7, m: 1 }, + NotFoundError: { s: 'NOT_FOUND_ERR', c: 8, m: 1 }, + NotSupportedError: { s: 'NOT_SUPPORTED_ERR', c: 9, m: 1 }, + InUseAttributeError: { s: 'INUSE_ATTRIBUTE_ERR', c: 10, m: 1 }, + InvalidStateError: { s: 'INVALID_STATE_ERR', c: 11, m: 1 }, + SyntaxError: { s: 'SYNTAX_ERR', c: 12, m: 1 }, + InvalidModificationError: { s: 'INVALID_MODIFICATION_ERR', c: 13, m: 1 }, + NamespaceError: { s: 'NAMESPACE_ERR', c: 14, m: 1 }, + InvalidAccessError: { s: 'INVALID_ACCESS_ERR', c: 15, m: 1 }, + ValidationError: { s: 'VALIDATION_ERR', c: 16, m: 0 }, + TypeMismatchError: { s: 'TYPE_MISMATCH_ERR', c: 17, m: 1 }, + SecurityError: { s: 'SECURITY_ERR', c: 18, m: 1 }, + NetworkError: { s: 'NETWORK_ERR', c: 19, m: 1 }, + AbortError: { s: 'ABORT_ERR', c: 20, m: 1 }, + URLMismatchError: { s: 'URL_MISMATCH_ERR', c: 21, m: 1 }, + QuotaExceededError: { s: 'QUOTA_EXCEEDED_ERR', c: 22, m: 1 }, + TimeoutError: { s: 'TIMEOUT_ERR', c: 23, m: 1 }, + InvalidNodeTypeError: { s: 'INVALID_NODE_TYPE_ERR', c: 24, m: 1 }, + DataCloneError: { s: 'DATA_CLONE_ERR', c: 25, m: 1 } +}; diff --git a/node_modules/core-js/internals/dom-iterables.js b/node_modules/core-js/internals/dom-iterables.js new file mode 100644 index 0000000..1dbc1f7 --- /dev/null +++ b/node_modules/core-js/internals/dom-iterables.js @@ -0,0 +1,36 @@ +'use strict'; +// iterable DOM collections +// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods +module.exports = { + CSSRuleList: 0, + CSSStyleDeclaration: 0, + CSSValueList: 0, + ClientRectList: 0, + DOMRectList: 0, + DOMStringList: 0, + DOMTokenList: 1, + DataTransferItemList: 0, + FileList: 0, + HTMLAllCollection: 0, + HTMLCollection: 0, + HTMLFormElement: 0, + HTMLSelectElement: 0, + MediaList: 0, + MimeTypeArray: 0, + NamedNodeMap: 0, + NodeList: 1, + PaintRequestList: 0, + Plugin: 0, + PluginArray: 0, + SVGLengthList: 0, + SVGNumberList: 0, + SVGPathSegList: 0, + SVGPointList: 0, + SVGStringList: 0, + SVGTransformList: 0, + SourceBufferList: 0, + StyleSheetList: 0, + TextTrackCueList: 0, + TextTrackList: 0, + TouchList: 0 +}; diff --git a/node_modules/core-js/internals/dom-token-list-prototype.js b/node_modules/core-js/internals/dom-token-list-prototype.js new file mode 100644 index 0000000..a0c4071 --- /dev/null +++ b/node_modules/core-js/internals/dom-token-list-prototype.js @@ -0,0 +1,8 @@ +'use strict'; +// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList` +var documentCreateElement = require('../internals/document-create-element'); + +var classList = documentCreateElement('span').classList; +var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype; + +module.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype; diff --git a/node_modules/core-js/internals/entry-unbind.js b/node_modules/core-js/internals/entry-unbind.js new file mode 100644 index 0000000..3ec17cd --- /dev/null +++ b/node_modules/core-js/internals/entry-unbind.js @@ -0,0 +1,7 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this'); + +module.exports = function (CONSTRUCTOR, METHOD) { + return uncurryThis(globalThis[CONSTRUCTOR].prototype[METHOD]); +}; diff --git a/node_modules/core-js/internals/entry-virtual.js b/node_modules/core-js/internals/entry-virtual.js new file mode 100644 index 0000000..948d83f --- /dev/null +++ b/node_modules/core-js/internals/entry-virtual.js @@ -0,0 +1,6 @@ +'use strict'; +var globalThis = require('../internals/global-this'); + +module.exports = function (CONSTRUCTOR) { + return globalThis[CONSTRUCTOR].prototype; +}; diff --git a/node_modules/core-js/internals/enum-bug-keys.js b/node_modules/core-js/internals/enum-bug-keys.js new file mode 100644 index 0000000..a99e8a0 --- /dev/null +++ b/node_modules/core-js/internals/enum-bug-keys.js @@ -0,0 +1,11 @@ +'use strict'; +// IE8- don't enum bug keys +module.exports = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' +]; diff --git a/node_modules/core-js/internals/environment-ff-version.js b/node_modules/core-js/internals/environment-ff-version.js new file mode 100644 index 0000000..dd72d7e --- /dev/null +++ b/node_modules/core-js/internals/environment-ff-version.js @@ -0,0 +1,6 @@ +'use strict'; +var userAgent = require('../internals/environment-user-agent'); + +var firefox = userAgent.match(/firefox\/(\d+)/i); + +module.exports = !!firefox && +firefox[1]; diff --git a/node_modules/core-js/internals/environment-is-ie-or-edge.js b/node_modules/core-js/internals/environment-is-ie-or-edge.js new file mode 100644 index 0000000..7c64cb7 --- /dev/null +++ b/node_modules/core-js/internals/environment-is-ie-or-edge.js @@ -0,0 +1,4 @@ +'use strict'; +var UA = require('../internals/environment-user-agent'); + +module.exports = /MSIE|Trident/.test(UA); diff --git a/node_modules/core-js/internals/environment-is-ios-pebble.js b/node_modules/core-js/internals/environment-is-ios-pebble.js new file mode 100644 index 0000000..c411fa7 --- /dev/null +++ b/node_modules/core-js/internals/environment-is-ios-pebble.js @@ -0,0 +1,4 @@ +'use strict'; +var userAgent = require('../internals/environment-user-agent'); + +module.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined'; diff --git a/node_modules/core-js/internals/environment-is-ios.js b/node_modules/core-js/internals/environment-is-ios.js new file mode 100644 index 0000000..100367d --- /dev/null +++ b/node_modules/core-js/internals/environment-is-ios.js @@ -0,0 +1,5 @@ +'use strict'; +var userAgent = require('../internals/environment-user-agent'); + +// eslint-disable-next-line redos/no-vulnerable -- safe +module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent); diff --git a/node_modules/core-js/internals/environment-is-node.js b/node_modules/core-js/internals/environment-is-node.js new file mode 100644 index 0000000..eb6eeda --- /dev/null +++ b/node_modules/core-js/internals/environment-is-node.js @@ -0,0 +1,4 @@ +'use strict'; +var ENVIRONMENT = require('../internals/environment'); + +module.exports = ENVIRONMENT === 'NODE'; diff --git a/node_modules/core-js/internals/environment-is-webos-webkit.js b/node_modules/core-js/internals/environment-is-webos-webkit.js new file mode 100644 index 0000000..16d9abb --- /dev/null +++ b/node_modules/core-js/internals/environment-is-webos-webkit.js @@ -0,0 +1,4 @@ +'use strict'; +var userAgent = require('../internals/environment-user-agent'); + +module.exports = /web0s(?!.*chrome)/i.test(userAgent); diff --git a/node_modules/core-js/internals/environment-user-agent.js b/node_modules/core-js/internals/environment-user-agent.js new file mode 100644 index 0000000..31b1067 --- /dev/null +++ b/node_modules/core-js/internals/environment-user-agent.js @@ -0,0 +1,7 @@ +'use strict'; +var globalThis = require('../internals/global-this'); + +var navigator = globalThis.navigator; +var userAgent = navigator && navigator.userAgent; + +module.exports = userAgent ? String(userAgent) : ''; diff --git a/node_modules/core-js/internals/environment-v8-version.js b/node_modules/core-js/internals/environment-v8-version.js new file mode 100644 index 0000000..6b083aa --- /dev/null +++ b/node_modules/core-js/internals/environment-v8-version.js @@ -0,0 +1,28 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var userAgent = require('../internals/environment-user-agent'); + +var process = globalThis.process; +var Deno = globalThis.Deno; +var versions = process && process.versions || Deno && Deno.version; +var v8 = versions && versions.v8; +var match, version; + +if (v8) { + match = v8.split('.'); + // in old Chrome, versions of V8 isn't V8 = Chrome / 10 + // but their correct versions are not interesting for us + version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); +} + +// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` +// so check `userAgent` even if `.v8` exists, but 0 +if (!version && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } +} + +module.exports = version; diff --git a/node_modules/core-js/internals/environment-webkit-version.js b/node_modules/core-js/internals/environment-webkit-version.js new file mode 100644 index 0000000..207b151 --- /dev/null +++ b/node_modules/core-js/internals/environment-webkit-version.js @@ -0,0 +1,6 @@ +'use strict'; +var userAgent = require('../internals/environment-user-agent'); + +var webkit = userAgent.match(/AppleWebKit\/(\d+)\./); + +module.exports = !!webkit && +webkit[1]; diff --git a/node_modules/core-js/internals/environment.js b/node_modules/core-js/internals/environment.js new file mode 100644 index 0000000..1c6fdd8 --- /dev/null +++ b/node_modules/core-js/internals/environment.js @@ -0,0 +1,21 @@ +'use strict'; +/* global Bun, Deno -- detection */ +var globalThis = require('../internals/global-this'); +var userAgent = require('../internals/environment-user-agent'); +var classof = require('../internals/classof-raw'); + +var userAgentStartsWith = function (string) { + return userAgent.slice(0, string.length) === string; +}; + +module.exports = (function () { + if (userAgentStartsWith('Bun/')) return 'BUN'; + if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE'; + if (userAgentStartsWith('Deno/')) return 'DENO'; + if (userAgentStartsWith('Node.js/')) return 'NODE'; + if (globalThis.Bun && typeof Bun.version == 'string') return 'BUN'; + if (globalThis.Deno && typeof Deno.version == 'object') return 'DENO'; + if (classof(globalThis.process) === 'process') return 'NODE'; + if (globalThis.window && globalThis.document) return 'BROWSER'; + return 'REST'; +})(); diff --git a/node_modules/core-js/internals/error-stack-clear.js b/node_modules/core-js/internals/error-stack-clear.js new file mode 100644 index 0000000..43b8cd2 --- /dev/null +++ b/node_modules/core-js/internals/error-stack-clear.js @@ -0,0 +1,16 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); + +var $Error = Error; +var replace = uncurryThis(''.replace); + +var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd'); +// eslint-disable-next-line redos/no-vulnerable -- safe +var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/; +var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST); + +module.exports = function (stack, dropEntries) { + if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) { + while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, ''); + } return stack; +}; diff --git a/node_modules/core-js/internals/error-stack-install.js b/node_modules/core-js/internals/error-stack-install.js new file mode 100644 index 0000000..eef057b --- /dev/null +++ b/node_modules/core-js/internals/error-stack-install.js @@ -0,0 +1,14 @@ +'use strict'; +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var clearErrorStack = require('../internals/error-stack-clear'); +var ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable'); + +// non-standard V8 +var captureStackTrace = Error.captureStackTrace; + +module.exports = function (error, C, stack, dropEntries) { + if (ERROR_STACK_INSTALLABLE) { + if (captureStackTrace) captureStackTrace(error, C); + else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries)); + } +}; diff --git a/node_modules/core-js/internals/error-stack-installable.js b/node_modules/core-js/internals/error-stack-installable.js new file mode 100644 index 0000000..96b987f --- /dev/null +++ b/node_modules/core-js/internals/error-stack-installable.js @@ -0,0 +1,11 @@ +'use strict'; +var fails = require('../internals/fails'); +var createPropertyDescriptor = require('../internals/create-property-descriptor'); + +module.exports = !fails(function () { + var error = new Error('a'); + if (!('stack' in error)) return true; + // eslint-disable-next-line es/no-object-defineproperty -- safe + Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7)); + return error.stack !== 7; +}); diff --git a/node_modules/core-js/internals/error-to-string.js b/node_modules/core-js/internals/error-to-string.js new file mode 100644 index 0000000..0fdb8ee --- /dev/null +++ b/node_modules/core-js/internals/error-to-string.js @@ -0,0 +1,29 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var fails = require('../internals/fails'); +var anObject = require('../internals/an-object'); +var normalizeStringArgument = require('../internals/normalize-string-argument'); + +var nativeErrorToString = Error.prototype.toString; + +var INCORRECT_TO_STRING = fails(function () { + if (DESCRIPTORS) { + // Chrome 32- incorrectly call accessor + // eslint-disable-next-line es/no-object-create, es/no-object-defineproperty -- safe + var object = Object.create(Object.defineProperty({}, 'name', { get: function () { + return this === object; + } })); + if (nativeErrorToString.call(object) !== 'true') return true; + } + // FF10- does not properly handle non-strings + return nativeErrorToString.call({ message: 1, name: 2 }) !== '2: 1' + // IE8 does not properly handle defaults + || nativeErrorToString.call({}) !== 'Error'; +}); + +module.exports = INCORRECT_TO_STRING ? function toString() { + var O = anObject(this); + var name = normalizeStringArgument(O.name, 'Error'); + var message = normalizeStringArgument(O.message); + return !name ? message : !message ? name : name + ': ' + message; +} : nativeErrorToString; diff --git a/node_modules/core-js/internals/export.js b/node_modules/core-js/internals/export.js new file mode 100644 index 0000000..b175366 --- /dev/null +++ b/node_modules/core-js/internals/export.js @@ -0,0 +1,55 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var defineBuiltIn = require('../internals/define-built-in'); +var defineGlobalProperty = require('../internals/define-global-property'); +var copyConstructorProperties = require('../internals/copy-constructor-properties'); +var isForced = require('../internals/is-forced'); + +/* + options.target - name of the target object + options.global - target is the global object + options.stat - export as static methods of target + options.proto - export as prototype methods of target + options.real - real prototype method for the `pure` version + options.forced - export even if the native feature is available + options.bind - bind methods to the target, required for the `pure` version + options.wrap - wrap constructors to preventing global pollution, required for the `pure` version + options.unsafe - use the simple assignment of property instead of delete + defineProperty + options.sham - add a flag to not completely full polyfills + options.enumerable - export as enumerable property + options.dontCallGetSet - prevent calling a getter on target + options.name - the .name of the function if it does not match the key +*/ +module.exports = function (options, source) { + var TARGET = options.target; + var GLOBAL = options.global; + var STATIC = options.stat; + var FORCED, target, key, targetProperty, sourceProperty, descriptor; + if (GLOBAL) { + target = globalThis; + } else if (STATIC) { + target = globalThis[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = globalThis[TARGET] && globalThis[TARGET].prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } +}; diff --git a/node_modules/core-js/internals/fails.js b/node_modules/core-js/internals/fails.js new file mode 100644 index 0000000..7880c82 --- /dev/null +++ b/node_modules/core-js/internals/fails.js @@ -0,0 +1,8 @@ +'use strict'; +module.exports = function (exec) { + try { + return !!exec(); + } catch (error) { + return true; + } +}; diff --git a/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js b/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js new file mode 100644 index 0000000..816a5b3 --- /dev/null +++ b/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js @@ -0,0 +1,76 @@ +'use strict'; +// TODO: Remove from `core-js@4` since it's moved to entry points +require('../modules/es.regexp.exec'); +var call = require('../internals/function-call'); +var defineBuiltIn = require('../internals/define-built-in'); +var regexpExec = require('../internals/regexp-exec'); +var fails = require('../internals/fails'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); + +var SPECIES = wellKnownSymbol('species'); +var RegExpPrototype = RegExp.prototype; + +module.exports = function (KEY, exec, FORCED, SHAM) { + var SYMBOL = wellKnownSymbol(KEY); + + var DELEGATES_TO_SYMBOL = !fails(function () { + // String methods call symbol-named RegExp methods + var O = {}; + O[SYMBOL] = function () { return 7; }; + return ''[KEY](O) !== 7; + }); + + var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () { + // Symbol-named RegExp methods call .exec + var execCalled = false; + var re = /a/; + + if (KEY === 'split') { + // We can't use real regex here since it causes deoptimization + // and serious performance degradation in V8 + // https://github.com/zloirock/core-js/issues/306 + re = {}; + // RegExp[@@split] doesn't call the regex's exec method, but first creates + // a new one. We need to return the patched regex when creating the new one. + re.constructor = {}; + re.constructor[SPECIES] = function () { return re; }; + re.flags = ''; + re[SYMBOL] = /./[SYMBOL]; + } + + re.exec = function () { + execCalled = true; + return null; + }; + + re[SYMBOL](''); + return !execCalled; + }); + + if ( + !DELEGATES_TO_SYMBOL || + !DELEGATES_TO_EXEC || + FORCED + ) { + var nativeRegExpMethod = /./[SYMBOL]; + var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { + var $exec = regexp.exec; + if ($exec === regexpExec || $exec === RegExpPrototype.exec) { + if (DELEGATES_TO_SYMBOL && !forceStringMethod) { + // The native String method already delegates to @@method (this + // polyfilled function), leasing to infinite recursion. + // We avoid it by directly calling the native @@method method. + return { done: true, value: call(nativeRegExpMethod, regexp, str, arg2) }; + } + return { done: true, value: call(nativeMethod, str, regexp, arg2) }; + } + return { done: false }; + }); + + defineBuiltIn(String.prototype, KEY, methods[0]); + defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]); + } + + if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true); +}; diff --git a/node_modules/core-js/internals/flatten-into-array.js b/node_modules/core-js/internals/flatten-into-array.js new file mode 100644 index 0000000..04b2030 --- /dev/null +++ b/node_modules/core-js/internals/flatten-into-array.js @@ -0,0 +1,34 @@ +'use strict'; +var isArray = require('../internals/is-array'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer'); +var bind = require('../internals/function-bind-context'); + +// `FlattenIntoArray` abstract operation +// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray +var flattenIntoArray = function (target, original, source, sourceLen, start, depth, mapper, thisArg) { + var targetIndex = start; + var sourceIndex = 0; + var mapFn = mapper ? bind(mapper, thisArg) : false; + var element, elementLen; + + while (sourceIndex < sourceLen) { + if (sourceIndex in source) { + element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex]; + + if (depth > 0 && isArray(element)) { + elementLen = lengthOfArrayLike(element); + targetIndex = flattenIntoArray(target, original, element, elementLen, targetIndex, depth - 1) - 1; + } else { + doesNotExceedSafeInteger(targetIndex + 1); + target[targetIndex] = element; + } + + targetIndex++; + } + sourceIndex++; + } + return targetIndex; +}; + +module.exports = flattenIntoArray; diff --git a/node_modules/core-js/internals/freezing.js b/node_modules/core-js/internals/freezing.js new file mode 100644 index 0000000..17212ad --- /dev/null +++ b/node_modules/core-js/internals/freezing.js @@ -0,0 +1,7 @@ +'use strict'; +var fails = require('../internals/fails'); + +module.exports = !fails(function () { + // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing + return Object.isExtensible(Object.preventExtensions({})); +}); diff --git a/node_modules/core-js/internals/function-apply.js b/node_modules/core-js/internals/function-apply.js new file mode 100644 index 0000000..3d4e569 --- /dev/null +++ b/node_modules/core-js/internals/function-apply.js @@ -0,0 +1,11 @@ +'use strict'; +var NATIVE_BIND = require('../internals/function-bind-native'); + +var FunctionPrototype = Function.prototype; +var apply = FunctionPrototype.apply; +var call = FunctionPrototype.call; + +// eslint-disable-next-line es/no-reflect -- safe +module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () { + return call.apply(apply, arguments); +}); diff --git a/node_modules/core-js/internals/function-bind-context.js b/node_modules/core-js/internals/function-bind-context.js new file mode 100644 index 0000000..73378e8 --- /dev/null +++ b/node_modules/core-js/internals/function-bind-context.js @@ -0,0 +1,14 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this-clause'); +var aCallable = require('../internals/a-callable'); +var NATIVE_BIND = require('../internals/function-bind-native'); + +var bind = uncurryThis(uncurryThis.bind); + +// optional / simple context binding +module.exports = function (fn, that) { + aCallable(fn); + return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) { + return fn.apply(that, arguments); + }; +}; diff --git a/node_modules/core-js/internals/function-bind-native.js b/node_modules/core-js/internals/function-bind-native.js new file mode 100644 index 0000000..424f934 --- /dev/null +++ b/node_modules/core-js/internals/function-bind-native.js @@ -0,0 +1,9 @@ +'use strict'; +var fails = require('../internals/fails'); + +module.exports = !fails(function () { + // eslint-disable-next-line es/no-function-prototype-bind -- safe + var test = (function () { /* empty */ }).bind(); + // eslint-disable-next-line no-prototype-builtins -- safe + return typeof test != 'function' || test.hasOwnProperty('prototype'); +}); diff --git a/node_modules/core-js/internals/function-bind.js b/node_modules/core-js/internals/function-bind.js new file mode 100644 index 0000000..fe22ec5 --- /dev/null +++ b/node_modules/core-js/internals/function-bind.js @@ -0,0 +1,36 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var aCallable = require('../internals/a-callable'); +var isObject = require('../internals/is-object'); +var hasOwn = require('../internals/has-own-property'); +var arraySlice = require('../internals/array-slice'); +var NATIVE_BIND = require('../internals/function-bind-native'); + +var $Function = Function; +var concat = uncurryThis([].concat); +var join = uncurryThis([].join); +var factories = {}; + +var construct = function (C, argsLength, args) { + if (!hasOwn(factories, argsLength)) { + var list = []; + var i = 0; + for (; i < argsLength; i++) list[i] = 'a[' + i + ']'; + factories[argsLength] = $Function('C,a', 'return new C(' + join(list, ',') + ')'); + } return factories[argsLength](C, args); +}; + +// `Function.prototype.bind` method implementation +// https://tc39.es/ecma262/#sec-function.prototype.bind +// eslint-disable-next-line es/no-function-prototype-bind -- detection +module.exports = NATIVE_BIND ? $Function.bind : function bind(that /* , ...args */) { + var F = aCallable(this); + var Prototype = F.prototype; + var partArgs = arraySlice(arguments, 1); + var boundFunction = function bound(/* args... */) { + var args = concat(partArgs, arraySlice(arguments)); + return this instanceof boundFunction ? construct(F, args.length, args) : F.apply(that, args); + }; + if (isObject(Prototype)) boundFunction.prototype = Prototype; + return boundFunction; +}; diff --git a/node_modules/core-js/internals/function-call.js b/node_modules/core-js/internals/function-call.js new file mode 100644 index 0000000..998b4de --- /dev/null +++ b/node_modules/core-js/internals/function-call.js @@ -0,0 +1,8 @@ +'use strict'; +var NATIVE_BIND = require('../internals/function-bind-native'); + +var call = Function.prototype.call; + +module.exports = NATIVE_BIND ? call.bind(call) : function () { + return call.apply(call, arguments); +}; diff --git a/node_modules/core-js/internals/function-demethodize.js b/node_modules/core-js/internals/function-demethodize.js new file mode 100644 index 0000000..0ba9d43 --- /dev/null +++ b/node_modules/core-js/internals/function-demethodize.js @@ -0,0 +1,7 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var aCallable = require('../internals/a-callable'); + +module.exports = function demethodize() { + return uncurryThis(aCallable(this)); +}; diff --git a/node_modules/core-js/internals/function-name.js b/node_modules/core-js/internals/function-name.js new file mode 100644 index 0000000..ce6fdd9 --- /dev/null +++ b/node_modules/core-js/internals/function-name.js @@ -0,0 +1,18 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var hasOwn = require('../internals/has-own-property'); + +var FunctionPrototype = Function.prototype; +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor; + +var EXISTS = hasOwn(FunctionPrototype, 'name'); +// additional protection from minified / mangled / dropped function names +var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; +var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable)); + +module.exports = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE +}; diff --git a/node_modules/core-js/internals/function-uncurry-this-accessor.js b/node_modules/core-js/internals/function-uncurry-this-accessor.js new file mode 100644 index 0000000..4d5ef18 --- /dev/null +++ b/node_modules/core-js/internals/function-uncurry-this-accessor.js @@ -0,0 +1,10 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var aCallable = require('../internals/a-callable'); + +module.exports = function (object, key, method) { + try { + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method])); + } catch (error) { /* empty */ } +}; diff --git a/node_modules/core-js/internals/function-uncurry-this-clause.js b/node_modules/core-js/internals/function-uncurry-this-clause.js new file mode 100644 index 0000000..7589e4b --- /dev/null +++ b/node_modules/core-js/internals/function-uncurry-this-clause.js @@ -0,0 +1,10 @@ +'use strict'; +var classofRaw = require('../internals/classof-raw'); +var uncurryThis = require('../internals/function-uncurry-this'); + +module.exports = function (fn) { + // Nashorn bug: + // https://github.com/zloirock/core-js/issues/1128 + // https://github.com/zloirock/core-js/issues/1130 + if (classofRaw(fn) === 'Function') return uncurryThis(fn); +}; diff --git a/node_modules/core-js/internals/function-uncurry-this.js b/node_modules/core-js/internals/function-uncurry-this.js new file mode 100644 index 0000000..2fd36ec --- /dev/null +++ b/node_modules/core-js/internals/function-uncurry-this.js @@ -0,0 +1,12 @@ +'use strict'; +var NATIVE_BIND = require('../internals/function-bind-native'); + +var FunctionPrototype = Function.prototype; +var call = FunctionPrototype.call; +var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); + +module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) { + return function () { + return call.apply(fn, arguments); + }; +}; diff --git a/node_modules/core-js/internals/get-alphabet-option.js b/node_modules/core-js/internals/get-alphabet-option.js new file mode 100644 index 0000000..216d169 --- /dev/null +++ b/node_modules/core-js/internals/get-alphabet-option.js @@ -0,0 +1,8 @@ +'use strict'; +var $TypeError = TypeError; + +module.exports = function (options) { + var alphabet = options && options.alphabet; + if (alphabet === undefined || alphabet === 'base64' || alphabet === 'base64url') return alphabet || 'base64'; + throw new $TypeError('Incorrect `alphabet` option'); +}; diff --git a/node_modules/core-js/internals/get-async-iterator-flattenable.js b/node_modules/core-js/internals/get-async-iterator-flattenable.js new file mode 100644 index 0000000..4cd7d04 --- /dev/null +++ b/node_modules/core-js/internals/get-async-iterator-flattenable.js @@ -0,0 +1,30 @@ +'use strict'; +var call = require('../internals/function-call'); +var isCallable = require('../internals/is-callable'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var getIteratorMethod = require('../internals/get-iterator-method'); +var getMethod = require('../internals/get-method'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var AsyncFromSyncIterator = require('../internals/async-from-sync-iterator'); + +var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); + +module.exports = function (obj) { + var object = anObject(obj); + var alreadyAsync = true; + var method = getMethod(object, ASYNC_ITERATOR); + var iterator; + if (!isCallable(method)) { + method = getIteratorMethod(object); + alreadyAsync = false; + } + if (method !== undefined) { + iterator = call(method, object); + } else { + iterator = object; + alreadyAsync = true; + } + anObject(iterator); + return getIteratorDirect(alreadyAsync ? iterator : new AsyncFromSyncIterator(getIteratorDirect(iterator))); +}; diff --git a/node_modules/core-js/internals/get-async-iterator.js b/node_modules/core-js/internals/get-async-iterator.js new file mode 100644 index 0000000..b25b75f --- /dev/null +++ b/node_modules/core-js/internals/get-async-iterator.js @@ -0,0 +1,15 @@ +'use strict'; +var call = require('../internals/function-call'); +var AsyncFromSyncIterator = require('../internals/async-from-sync-iterator'); +var anObject = require('../internals/an-object'); +var getIterator = require('../internals/get-iterator'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var getMethod = require('../internals/get-method'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); + +module.exports = function (it, usingIterator) { + var method = arguments.length < 2 ? getMethod(it, ASYNC_ITERATOR) : usingIterator; + return method ? anObject(call(method, it)) : new AsyncFromSyncIterator(getIteratorDirect(getIterator(it))); +}; diff --git a/node_modules/core-js/internals/get-built-in-node-module.js b/node_modules/core-js/internals/get-built-in-node-module.js new file mode 100644 index 0000000..93ba567 --- /dev/null +++ b/node_modules/core-js/internals/get-built-in-node-module.js @@ -0,0 +1,15 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var IS_NODE = require('../internals/environment-is-node'); + +module.exports = function (name) { + if (IS_NODE) { + try { + return globalThis.process.getBuiltinModule(name); + } catch (error) { /* empty */ } + try { + // eslint-disable-next-line no-new-func -- safe + return Function('return require("' + name + '")')(); + } catch (error) { /* empty */ } + } +}; diff --git a/node_modules/core-js/internals/get-built-in-prototype-method.js b/node_modules/core-js/internals/get-built-in-prototype-method.js new file mode 100644 index 0000000..ad05404 --- /dev/null +++ b/node_modules/core-js/internals/get-built-in-prototype-method.js @@ -0,0 +1,8 @@ +'use strict'; +var globalThis = require('../internals/global-this'); + +module.exports = function (CONSTRUCTOR, METHOD) { + var Constructor = globalThis[CONSTRUCTOR]; + var Prototype = Constructor && Constructor.prototype; + return Prototype && Prototype[METHOD]; +}; diff --git a/node_modules/core-js/internals/get-built-in.js b/node_modules/core-js/internals/get-built-in.js new file mode 100644 index 0000000..b685be5 --- /dev/null +++ b/node_modules/core-js/internals/get-built-in.js @@ -0,0 +1,11 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var isCallable = require('../internals/is-callable'); + +var aFunction = function (argument) { + return isCallable(argument) ? argument : undefined; +}; + +module.exports = function (namespace, method) { + return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method]; +}; diff --git a/node_modules/core-js/internals/get-iterator-direct.js b/node_modules/core-js/internals/get-iterator-direct.js new file mode 100644 index 0000000..b321956 --- /dev/null +++ b/node_modules/core-js/internals/get-iterator-direct.js @@ -0,0 +1,10 @@ +'use strict'; +// `GetIteratorDirect(obj)` abstract operation +// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect +module.exports = function (obj) { + return { + iterator: obj, + next: obj.next, + done: false + }; +}; diff --git a/node_modules/core-js/internals/get-iterator-flattenable.js b/node_modules/core-js/internals/get-iterator-flattenable.js new file mode 100644 index 0000000..e9ea9c4 --- /dev/null +++ b/node_modules/core-js/internals/get-iterator-flattenable.js @@ -0,0 +1,11 @@ +'use strict'; +var call = require('../internals/function-call'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var getIteratorMethod = require('../internals/get-iterator-method'); + +module.exports = function (obj, stringHandling) { + if (!stringHandling || typeof obj !== 'string') anObject(obj); + var method = getIteratorMethod(obj); + return getIteratorDirect(anObject(method !== undefined ? call(method, obj) : obj)); +}; diff --git a/node_modules/core-js/internals/get-iterator-method.js b/node_modules/core-js/internals/get-iterator-method.js new file mode 100644 index 0000000..7c1a58b --- /dev/null +++ b/node_modules/core-js/internals/get-iterator-method.js @@ -0,0 +1,14 @@ +'use strict'; +var classof = require('../internals/classof'); +var getMethod = require('../internals/get-method'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var Iterators = require('../internals/iterators'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var ITERATOR = wellKnownSymbol('iterator'); + +module.exports = function (it) { + if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR) + || getMethod(it, '@@iterator') + || Iterators[classof(it)]; +}; diff --git a/node_modules/core-js/internals/get-iterator.js b/node_modules/core-js/internals/get-iterator.js new file mode 100644 index 0000000..2b4c53e --- /dev/null +++ b/node_modules/core-js/internals/get-iterator.js @@ -0,0 +1,14 @@ +'use strict'; +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var tryToString = require('../internals/try-to-string'); +var getIteratorMethod = require('../internals/get-iterator-method'); + +var $TypeError = TypeError; + +module.exports = function (argument, usingIterator) { + var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator; + if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument)); + throw new $TypeError(tryToString(argument) + ' is not iterable'); +}; diff --git a/node_modules/core-js/internals/get-json-replacer-function.js b/node_modules/core-js/internals/get-json-replacer-function.js new file mode 100644 index 0000000..abfdce4 --- /dev/null +++ b/node_modules/core-js/internals/get-json-replacer-function.js @@ -0,0 +1,30 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var isArray = require('../internals/is-array'); +var isCallable = require('../internals/is-callable'); +var classof = require('../internals/classof-raw'); +var toString = require('../internals/to-string'); + +var push = uncurryThis([].push); + +module.exports = function (replacer) { + if (isCallable(replacer)) return replacer; + if (!isArray(replacer)) return; + var rawLength = replacer.length; + var keys = []; + for (var i = 0; i < rawLength; i++) { + var element = replacer[i]; + if (typeof element == 'string') push(keys, element); + else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString(element)); + } + var keysLength = keys.length; + var root = true; + return function (key, value) { + if (root) { + root = false; + return value; + } + if (isArray(this)) return value; + for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value; + }; +}; diff --git a/node_modules/core-js/internals/get-method.js b/node_modules/core-js/internals/get-method.js new file mode 100644 index 0000000..dd3c10c --- /dev/null +++ b/node_modules/core-js/internals/get-method.js @@ -0,0 +1,10 @@ +'use strict'; +var aCallable = require('../internals/a-callable'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); + +// `GetMethod` abstract operation +// https://tc39.es/ecma262/#sec-getmethod +module.exports = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); +}; diff --git a/node_modules/core-js/internals/get-set-record.js b/node_modules/core-js/internals/get-set-record.js new file mode 100644 index 0000000..ab43f32 --- /dev/null +++ b/node_modules/core-js/internals/get-set-record.js @@ -0,0 +1,40 @@ +'use strict'; +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var call = require('../internals/function-call'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var getIteratorDirect = require('../internals/get-iterator-direct'); + +var INVALID_SIZE = 'Invalid size'; +var $RangeError = RangeError; +var $TypeError = TypeError; +var max = Math.max; + +var SetRecord = function (set, intSize) { + this.set = set; + this.size = max(intSize, 0); + this.has = aCallable(set.has); + this.keys = aCallable(set.keys); +}; + +SetRecord.prototype = { + getIterator: function () { + return getIteratorDirect(anObject(call(this.keys, this.set))); + }, + includes: function (it) { + return call(this.has, this.set, it); + } +}; + +// `GetSetRecord` abstract operation +// https://tc39.es/proposal-set-methods/#sec-getsetrecord +module.exports = function (obj) { + anObject(obj); + var numSize = +obj.size; + // NOTE: If size is undefined, then numSize will be NaN + // eslint-disable-next-line no-self-compare -- NaN check + if (numSize !== numSize) throw new $TypeError(INVALID_SIZE); + var intSize = toIntegerOrInfinity(numSize); + if (intSize < 0) throw new $RangeError(INVALID_SIZE); + return new SetRecord(obj, intSize); +}; diff --git a/node_modules/core-js/internals/get-substitution.js b/node_modules/core-js/internals/get-substitution.js new file mode 100644 index 0000000..fcb8860 --- /dev/null +++ b/node_modules/core-js/internals/get-substitution.js @@ -0,0 +1,46 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var toObject = require('../internals/to-object'); + +var floor = Math.floor; +var charAt = uncurryThis(''.charAt); +var replace = uncurryThis(''.replace); +var stringSlice = uncurryThis(''.slice); +// eslint-disable-next-line redos/no-vulnerable -- safe +var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g; +var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g; + +// `GetSubstitution` abstract operation +// https://tc39.es/ecma262/#sec-getsubstitution +module.exports = function (matched, str, position, captures, namedCaptures, replacement) { + var tailPos = position + matched.length; + var m = captures.length; + var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; + if (namedCaptures !== undefined) { + namedCaptures = toObject(namedCaptures); + symbols = SUBSTITUTION_SYMBOLS; + } + return replace(replacement, symbols, function (match, ch) { + var capture; + switch (charAt(ch, 0)) { + case '$': return '$'; + case '&': return matched; + case '`': return stringSlice(str, 0, position); + case "'": return stringSlice(str, tailPos); + case '<': + capture = namedCaptures[stringSlice(ch, 1, -1)]; + break; + default: // \d\d? + var n = +ch; + if (n === 0) return match; + if (n > m) { + var f = floor(n / 10); + if (f === 0) return match; + if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1); + return match; + } + capture = captures[n - 1]; + } + return capture === undefined ? '' : capture; + }); +}; diff --git a/node_modules/core-js/internals/global-this.js b/node_modules/core-js/internals/global-this.js new file mode 100644 index 0000000..a154678 --- /dev/null +++ b/node_modules/core-js/internals/global-this.js @@ -0,0 +1,16 @@ +'use strict'; +var check = function (it) { + return it && it.Math === Math && it; +}; + +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 +module.exports = + // eslint-disable-next-line es/no-global-this -- safe + check(typeof globalThis == 'object' && globalThis) || + check(typeof window == 'object' && window) || + // eslint-disable-next-line no-restricted-globals -- safe + check(typeof self == 'object' && self) || + check(typeof global == 'object' && global) || + check(typeof this == 'object' && this) || + // eslint-disable-next-line no-new-func -- fallback + (function () { return this; })() || Function('return this')(); diff --git a/node_modules/core-js/internals/has-own-property.js b/node_modules/core-js/internals/has-own-property.js new file mode 100644 index 0000000..336d800 --- /dev/null +++ b/node_modules/core-js/internals/has-own-property.js @@ -0,0 +1,12 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var toObject = require('../internals/to-object'); + +var hasOwnProperty = uncurryThis({}.hasOwnProperty); + +// `HasOwnProperty` abstract operation +// https://tc39.es/ecma262/#sec-hasownproperty +// eslint-disable-next-line es/no-object-hasown -- safe +module.exports = Object.hasOwn || function hasOwn(it, key) { + return hasOwnProperty(toObject(it), key); +}; diff --git a/node_modules/core-js/internals/hidden-keys.js b/node_modules/core-js/internals/hidden-keys.js new file mode 100644 index 0000000..648a166 --- /dev/null +++ b/node_modules/core-js/internals/hidden-keys.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = {}; diff --git a/node_modules/core-js/internals/host-report-errors.js b/node_modules/core-js/internals/host-report-errors.js new file mode 100644 index 0000000..1f3b26a --- /dev/null +++ b/node_modules/core-js/internals/host-report-errors.js @@ -0,0 +1,7 @@ +'use strict'; +module.exports = function (a, b) { + try { + // eslint-disable-next-line no-console -- safe + arguments.length === 1 ? console.error(a) : console.error(a, b); + } catch (error) { /* empty */ } +}; diff --git a/node_modules/core-js/internals/html.js b/node_modules/core-js/internals/html.js new file mode 100644 index 0000000..b8da90e --- /dev/null +++ b/node_modules/core-js/internals/html.js @@ -0,0 +1,4 @@ +'use strict'; +var getBuiltIn = require('../internals/get-built-in'); + +module.exports = getBuiltIn('document', 'documentElement'); diff --git a/node_modules/core-js/internals/ie8-dom-define.js b/node_modules/core-js/internals/ie8-dom-define.js new file mode 100644 index 0000000..22719e8 --- /dev/null +++ b/node_modules/core-js/internals/ie8-dom-define.js @@ -0,0 +1,12 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var fails = require('../internals/fails'); +var createElement = require('../internals/document-create-element'); + +// Thanks to IE8 for its funny defineProperty +module.exports = !DESCRIPTORS && !fails(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a !== 7; +}); diff --git a/node_modules/core-js/internals/ieee754.js b/node_modules/core-js/internals/ieee754.js new file mode 100644 index 0000000..ae60a47 --- /dev/null +++ b/node_modules/core-js/internals/ieee754.js @@ -0,0 +1,103 @@ +'use strict'; +// IEEE754 conversions based on https://github.com/feross/ieee754 +var $Array = Array; +var abs = Math.abs; +var pow = Math.pow; +var floor = Math.floor; +var log = Math.log; +var LN2 = Math.LN2; + +var pack = function (number, mantissaLength, bytes) { + var buffer = $Array(bytes); + var exponentLength = bytes * 8 - mantissaLength - 1; + var eMax = (1 << exponentLength) - 1; + var eBias = eMax >> 1; + var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0; + var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0; + var index = 0; + var exponent, mantissa, c; + number = abs(number); + // eslint-disable-next-line no-self-compare -- NaN check + if (number !== number || number === Infinity) { + // eslint-disable-next-line no-self-compare -- NaN check + mantissa = number !== number ? 1 : 0; + exponent = eMax; + } else { + exponent = floor(log(number) / LN2); + c = pow(2, -exponent); + if (number * c < 1) { + exponent--; + c *= 2; + } + if (exponent + eBias >= 1) { + number += rt / c; + } else { + number += rt * pow(2, 1 - eBias); + } + if (number * c >= 2) { + exponent++; + c /= 2; + } + if (exponent + eBias >= eMax) { + mantissa = 0; + exponent = eMax; + } else if (exponent + eBias >= 1) { + mantissa = (number * c - 1) * pow(2, mantissaLength); + exponent += eBias; + } else { + mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength); + exponent = 0; + } + } + while (mantissaLength >= 8) { + buffer[index++] = mantissa & 255; + mantissa /= 256; + mantissaLength -= 8; + } + exponent = exponent << mantissaLength | mantissa; + exponentLength += mantissaLength; + while (exponentLength > 0) { + buffer[index++] = exponent & 255; + exponent /= 256; + exponentLength -= 8; + } + buffer[index - 1] |= sign * 128; + return buffer; +}; + +var unpack = function (buffer, mantissaLength) { + var bytes = buffer.length; + var exponentLength = bytes * 8 - mantissaLength - 1; + var eMax = (1 << exponentLength) - 1; + var eBias = eMax >> 1; + var nBits = exponentLength - 7; + var index = bytes - 1; + var sign = buffer[index--]; + var exponent = sign & 127; + var mantissa; + sign >>= 7; + while (nBits > 0) { + exponent = exponent * 256 + buffer[index--]; + nBits -= 8; + } + mantissa = exponent & (1 << -nBits) - 1; + exponent >>= -nBits; + nBits += mantissaLength; + while (nBits > 0) { + mantissa = mantissa * 256 + buffer[index--]; + nBits -= 8; + } + if (exponent === 0) { + exponent = 1 - eBias; + } else if (exponent === eMax) { + return mantissa ? NaN : sign ? -Infinity : Infinity; + } else { + mantissa += pow(2, mantissaLength); + exponent -= eBias; + } return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength); +}; + +module.exports = { + pack: pack, + unpack: unpack +}; diff --git a/node_modules/core-js/internals/indexed-object.js b/node_modules/core-js/internals/indexed-object.js new file mode 100644 index 0000000..cea2a9a --- /dev/null +++ b/node_modules/core-js/internals/indexed-object.js @@ -0,0 +1,16 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var fails = require('../internals/fails'); +var classof = require('../internals/classof-raw'); + +var $Object = Object; +var split = uncurryThis(''.split); + +// fallback for non-array-like ES3 and non-enumerable old V8 strings +module.exports = fails(function () { + // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 + // eslint-disable-next-line no-prototype-builtins -- safe + return !$Object('z').propertyIsEnumerable(0); +}) ? function (it) { + return classof(it) === 'String' ? split(it, '') : $Object(it); +} : $Object; diff --git a/node_modules/core-js/internals/inherit-if-required.js b/node_modules/core-js/internals/inherit-if-required.js new file mode 100644 index 0000000..248771d --- /dev/null +++ b/node_modules/core-js/internals/inherit-if-required.js @@ -0,0 +1,19 @@ +'use strict'; +var isCallable = require('../internals/is-callable'); +var isObject = require('../internals/is-object'); +var setPrototypeOf = require('../internals/object-set-prototype-of'); + +// makes subclassing work correct for wrapped built-ins +module.exports = function ($this, dummy, Wrapper) { + var NewTarget, NewTargetPrototype; + if ( + // it can work only with native `setPrototypeOf` + setPrototypeOf && + // we haven't completely correct pre-ES6 way for getting `new.target`, so use this + isCallable(NewTarget = dummy.constructor) && + NewTarget !== Wrapper && + isObject(NewTargetPrototype = NewTarget.prototype) && + NewTargetPrototype !== Wrapper.prototype + ) setPrototypeOf($this, NewTargetPrototype); + return $this; +}; diff --git a/node_modules/core-js/internals/inspect-source.js b/node_modules/core-js/internals/inspect-source.js new file mode 100644 index 0000000..eb9e80c --- /dev/null +++ b/node_modules/core-js/internals/inspect-source.js @@ -0,0 +1,15 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var isCallable = require('../internals/is-callable'); +var store = require('../internals/shared-store'); + +var functionToString = uncurryThis(Function.toString); + +// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper +if (!isCallable(store.inspectSource)) { + store.inspectSource = function (it) { + return functionToString(it); + }; +} + +module.exports = store.inspectSource; diff --git a/node_modules/core-js/internals/install-error-cause.js b/node_modules/core-js/internals/install-error-cause.js new file mode 100644 index 0000000..35f3b93 --- /dev/null +++ b/node_modules/core-js/internals/install-error-cause.js @@ -0,0 +1,11 @@ +'use strict'; +var isObject = require('../internals/is-object'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); + +// `InstallErrorCause` abstract operation +// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause +module.exports = function (O, options) { + if (isObject(options) && 'cause' in options) { + createNonEnumerableProperty(O, 'cause', options.cause); + } +}; diff --git a/node_modules/core-js/internals/internal-metadata.js b/node_modules/core-js/internals/internal-metadata.js new file mode 100644 index 0000000..df8b338 --- /dev/null +++ b/node_modules/core-js/internals/internal-metadata.js @@ -0,0 +1,90 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var hiddenKeys = require('../internals/hidden-keys'); +var isObject = require('../internals/is-object'); +var hasOwn = require('../internals/has-own-property'); +var defineProperty = require('../internals/object-define-property').f; +var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names'); +var getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external'); +var isExtensible = require('../internals/object-is-extensible'); +var uid = require('../internals/uid'); +var FREEZING = require('../internals/freezing'); + +var REQUIRED = false; +var METADATA = uid('meta'); +var id = 0; + +var setMetadata = function (it) { + defineProperty(it, METADATA, { value: { + objectID: 'O' + id++, // object ID + weakData: {} // weak collections IDs + } }); +}; + +var fastKey = function (it, create) { + // return a primitive with prefix + if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; + if (!hasOwn(it, METADATA)) { + // can't set metadata to uncaught frozen object + if (!isExtensible(it)) return 'F'; + // not necessary to add metadata + if (!create) return 'E'; + // add missing metadata + setMetadata(it); + // return object ID + } return it[METADATA].objectID; +}; + +var getWeakData = function (it, create) { + if (!hasOwn(it, METADATA)) { + // can't set metadata to uncaught frozen object + if (!isExtensible(it)) return true; + // not necessary to add metadata + if (!create) return false; + // add missing metadata + setMetadata(it); + // return the store of weak collections IDs + } return it[METADATA].weakData; +}; + +// add metadata on freeze-family methods calling +var onFreeze = function (it) { + if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it); + return it; +}; + +var enable = function () { + meta.enable = function () { /* empty */ }; + REQUIRED = true; + var getOwnPropertyNames = getOwnPropertyNamesModule.f; + var splice = uncurryThis([].splice); + var test = {}; + test[METADATA] = 1; + + // prevent exposing of metadata key + if (getOwnPropertyNames(test).length) { + getOwnPropertyNamesModule.f = function (it) { + var result = getOwnPropertyNames(it); + for (var i = 0, length = result.length; i < length; i++) { + if (result[i] === METADATA) { + splice(result, i, 1); + break; + } + } return result; + }; + + $({ target: 'Object', stat: true, forced: true }, { + getOwnPropertyNames: getOwnPropertyNamesExternalModule.f + }); + } +}; + +var meta = module.exports = { + enable: enable, + fastKey: fastKey, + getWeakData: getWeakData, + onFreeze: onFreeze +}; + +hiddenKeys[METADATA] = true; diff --git a/node_modules/core-js/internals/internal-state.js b/node_modules/core-js/internals/internal-state.js new file mode 100644 index 0000000..83e70b6 --- /dev/null +++ b/node_modules/core-js/internals/internal-state.js @@ -0,0 +1,71 @@ +'use strict'; +var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection'); +var globalThis = require('../internals/global-this'); +var isObject = require('../internals/is-object'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var hasOwn = require('../internals/has-own-property'); +var shared = require('../internals/shared-store'); +var sharedKey = require('../internals/shared-key'); +var hiddenKeys = require('../internals/hidden-keys'); + +var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; +var TypeError = globalThis.TypeError; +var WeakMap = globalThis.WeakMap; +var set, get, has; + +var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); +}; + +var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject(it) || (state = get(it)).type !== TYPE) { + throw new TypeError('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; +}; + +if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* eslint-disable no-self-assign -- prototype methods protection */ + store.get = store.get; + store.has = store.has; + store.set = store.set; + /* eslint-enable no-self-assign -- prototype methods protection */ + set = function (it, metadata) { + if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; +} else { + var STATE = sharedKey('state'); + hiddenKeys[STATE] = true; + set = function (it, metadata) { + if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn(it, STATE); + }; +} + +module.exports = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor +}; diff --git a/node_modules/core-js/internals/is-array-iterator-method.js b/node_modules/core-js/internals/is-array-iterator-method.js new file mode 100644 index 0000000..6878983 --- /dev/null +++ b/node_modules/core-js/internals/is-array-iterator-method.js @@ -0,0 +1,11 @@ +'use strict'; +var wellKnownSymbol = require('../internals/well-known-symbol'); +var Iterators = require('../internals/iterators'); + +var ITERATOR = wellKnownSymbol('iterator'); +var ArrayPrototype = Array.prototype; + +// check on default Array iterator +module.exports = function (it) { + return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it); +}; diff --git a/node_modules/core-js/internals/is-array.js b/node_modules/core-js/internals/is-array.js new file mode 100644 index 0000000..14ea3b0 --- /dev/null +++ b/node_modules/core-js/internals/is-array.js @@ -0,0 +1,9 @@ +'use strict'; +var classof = require('../internals/classof-raw'); + +// `IsArray` abstract operation +// https://tc39.es/ecma262/#sec-isarray +// eslint-disable-next-line es/no-array-isarray -- safe +module.exports = Array.isArray || function isArray(argument) { + return classof(argument) === 'Array'; +}; diff --git a/node_modules/core-js/internals/is-big-int-array.js b/node_modules/core-js/internals/is-big-int-array.js new file mode 100644 index 0000000..7599b57 --- /dev/null +++ b/node_modules/core-js/internals/is-big-int-array.js @@ -0,0 +1,7 @@ +'use strict'; +var classof = require('../internals/classof'); + +module.exports = function (it) { + var klass = classof(it); + return klass === 'BigInt64Array' || klass === 'BigUint64Array'; +}; diff --git a/node_modules/core-js/internals/is-callable.js b/node_modules/core-js/internals/is-callable.js new file mode 100644 index 0000000..bf80463 --- /dev/null +++ b/node_modules/core-js/internals/is-callable.js @@ -0,0 +1,12 @@ +'use strict'; +// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot +var documentAll = typeof document == 'object' && document.all; + +// `IsCallable` abstract operation +// https://tc39.es/ecma262/#sec-iscallable +// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing +module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) { + return typeof argument == 'function' || argument === documentAll; +} : function (argument) { + return typeof argument == 'function'; +}; diff --git a/node_modules/core-js/internals/is-constructor.js b/node_modules/core-js/internals/is-constructor.js new file mode 100644 index 0000000..36d7342 --- /dev/null +++ b/node_modules/core-js/internals/is-constructor.js @@ -0,0 +1,52 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var fails = require('../internals/fails'); +var isCallable = require('../internals/is-callable'); +var classof = require('../internals/classof'); +var getBuiltIn = require('../internals/get-built-in'); +var inspectSource = require('../internals/inspect-source'); + +var noop = function () { /* empty */ }; +var construct = getBuiltIn('Reflect', 'construct'); +var constructorRegExp = /^\s*(?:class|function)\b/; +var exec = uncurryThis(constructorRegExp.exec); +var INCORRECT_TO_STRING = !constructorRegExp.test(noop); + +var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, [], argument); + return true; + } catch (error) { + return false; + } +}; + +var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(argument)) { + case 'AsyncFunction': + case 'GeneratorFunction': + case 'AsyncGeneratorFunction': return false; + } + try { + // we can't check .prototype since constructors produced by .bind haven't it + // `Function#toString` throws on some built-it function in some legacy engines + // (for example, `DOMQuad` and similar in FF41-) + return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } +}; + +isConstructorLegacy.sham = true; + +// `IsConstructor` abstract operation +// https://tc39.es/ecma262/#sec-isconstructor +module.exports = !construct || fails(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; +}) ? isConstructorLegacy : isConstructorModern; diff --git a/node_modules/core-js/internals/is-data-descriptor.js b/node_modules/core-js/internals/is-data-descriptor.js new file mode 100644 index 0000000..201e35b --- /dev/null +++ b/node_modules/core-js/internals/is-data-descriptor.js @@ -0,0 +1,6 @@ +'use strict'; +var hasOwn = require('../internals/has-own-property'); + +module.exports = function (descriptor) { + return descriptor !== undefined && (hasOwn(descriptor, 'value') || hasOwn(descriptor, 'writable')); +}; diff --git a/node_modules/core-js/internals/is-forced.js b/node_modules/core-js/internals/is-forced.js new file mode 100644 index 0000000..acd8cc4 --- /dev/null +++ b/node_modules/core-js/internals/is-forced.js @@ -0,0 +1,23 @@ +'use strict'; +var fails = require('../internals/fails'); +var isCallable = require('../internals/is-callable'); + +var replacement = /#|\.prototype\./; + +var isForced = function (feature, detection) { + var value = data[normalize(feature)]; + return value === POLYFILL ? true + : value === NATIVE ? false + : isCallable(detection) ? fails(detection) + : !!detection; +}; + +var normalize = isForced.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); +}; + +var data = isForced.data = {}; +var NATIVE = isForced.NATIVE = 'N'; +var POLYFILL = isForced.POLYFILL = 'P'; + +module.exports = isForced; diff --git a/node_modules/core-js/internals/is-integral-number.js b/node_modules/core-js/internals/is-integral-number.js new file mode 100644 index 0000000..f2bbf69 --- /dev/null +++ b/node_modules/core-js/internals/is-integral-number.js @@ -0,0 +1,11 @@ +'use strict'; +var isObject = require('../internals/is-object'); + +var floor = Math.floor; + +// `IsIntegralNumber` abstract operation +// https://tc39.es/ecma262/#sec-isintegralnumber +// eslint-disable-next-line es/no-number-isinteger -- safe +module.exports = Number.isInteger || function isInteger(it) { + return !isObject(it) && isFinite(it) && floor(it) === it; +}; diff --git a/node_modules/core-js/internals/is-iterable.js b/node_modules/core-js/internals/is-iterable.js new file mode 100644 index 0000000..94560dc --- /dev/null +++ b/node_modules/core-js/internals/is-iterable.js @@ -0,0 +1,17 @@ +'use strict'; +var classof = require('../internals/classof'); +var hasOwn = require('../internals/has-own-property'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var Iterators = require('../internals/iterators'); + +var ITERATOR = wellKnownSymbol('iterator'); +var $Object = Object; + +module.exports = function (it) { + if (isNullOrUndefined(it)) return false; + var O = $Object(it); + return O[ITERATOR] !== undefined + || '@@iterator' in O + || hasOwn(Iterators, classof(O)); +}; diff --git a/node_modules/core-js/internals/is-null-or-undefined.js b/node_modules/core-js/internals/is-null-or-undefined.js new file mode 100644 index 0000000..8e687dd --- /dev/null +++ b/node_modules/core-js/internals/is-null-or-undefined.js @@ -0,0 +1,6 @@ +'use strict'; +// we can't use just `it == null` since of `document.all` special case +// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec +module.exports = function (it) { + return it === null || it === undefined; +}; diff --git a/node_modules/core-js/internals/is-object.js b/node_modules/core-js/internals/is-object.js new file mode 100644 index 0000000..8ed1588 --- /dev/null +++ b/node_modules/core-js/internals/is-object.js @@ -0,0 +1,6 @@ +'use strict'; +var isCallable = require('../internals/is-callable'); + +module.exports = function (it) { + return typeof it == 'object' ? it !== null : isCallable(it); +}; diff --git a/node_modules/core-js/internals/is-possible-prototype.js b/node_modules/core-js/internals/is-possible-prototype.js new file mode 100644 index 0000000..80e976d --- /dev/null +++ b/node_modules/core-js/internals/is-possible-prototype.js @@ -0,0 +1,6 @@ +'use strict'; +var isObject = require('../internals/is-object'); + +module.exports = function (argument) { + return isObject(argument) || argument === null; +}; diff --git a/node_modules/core-js/internals/is-pure.js b/node_modules/core-js/internals/is-pure.js new file mode 100644 index 0000000..ae7c87b --- /dev/null +++ b/node_modules/core-js/internals/is-pure.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = false; diff --git a/node_modules/core-js/internals/is-raw-json.js b/node_modules/core-js/internals/is-raw-json.js new file mode 100644 index 0000000..f6cab85 --- /dev/null +++ b/node_modules/core-js/internals/is-raw-json.js @@ -0,0 +1,9 @@ +'use strict'; +var isObject = require('../internals/is-object'); +var getInternalState = require('../internals/internal-state').get; + +module.exports = function isRawJSON(O) { + if (!isObject(O)) return false; + var state = getInternalState(O); + return !!state && state.type === 'RawJSON'; +}; diff --git a/node_modules/core-js/internals/is-regexp.js b/node_modules/core-js/internals/is-regexp.js new file mode 100644 index 0000000..a4b287a --- /dev/null +++ b/node_modules/core-js/internals/is-regexp.js @@ -0,0 +1,13 @@ +'use strict'; +var isObject = require('../internals/is-object'); +var classof = require('../internals/classof-raw'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var MATCH = wellKnownSymbol('match'); + +// `IsRegExp` abstract operation +// https://tc39.es/ecma262/#sec-isregexp +module.exports = function (it) { + var isRegExp; + return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp'); +}; diff --git a/node_modules/core-js/internals/is-symbol.js b/node_modules/core-js/internals/is-symbol.js new file mode 100644 index 0000000..8c62ff9 --- /dev/null +++ b/node_modules/core-js/internals/is-symbol.js @@ -0,0 +1,14 @@ +'use strict'; +var getBuiltIn = require('../internals/get-built-in'); +var isCallable = require('../internals/is-callable'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid'); + +var $Object = Object; + +module.exports = USE_SYMBOL_AS_UID ? function (it) { + return typeof it == 'symbol'; +} : function (it) { + var $Symbol = getBuiltIn('Symbol'); + return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it)); +}; diff --git a/node_modules/core-js/internals/iterate-simple.js b/node_modules/core-js/internals/iterate-simple.js new file mode 100644 index 0000000..f940cc3 --- /dev/null +++ b/node_modules/core-js/internals/iterate-simple.js @@ -0,0 +1,12 @@ +'use strict'; +var call = require('../internals/function-call'); + +module.exports = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) { + var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator; + var next = record.next; + var step, result; + while (!(step = call(next, iterator)).done) { + result = fn(step.value); + if (result !== undefined) return result; + } +}; diff --git a/node_modules/core-js/internals/iterate.js b/node_modules/core-js/internals/iterate.js new file mode 100644 index 0000000..bcfa5cf --- /dev/null +++ b/node_modules/core-js/internals/iterate.js @@ -0,0 +1,69 @@ +'use strict'; +var bind = require('../internals/function-bind-context'); +var call = require('../internals/function-call'); +var anObject = require('../internals/an-object'); +var tryToString = require('../internals/try-to-string'); +var isArrayIteratorMethod = require('../internals/is-array-iterator-method'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var getIterator = require('../internals/get-iterator'); +var getIteratorMethod = require('../internals/get-iterator-method'); +var iteratorClose = require('../internals/iterator-close'); + +var $TypeError = TypeError; + +var Result = function (stopped, result) { + this.stopped = stopped; + this.result = result; +}; + +var ResultPrototype = Result.prototype; + +module.exports = function (iterable, unboundFunction, options) { + var that = options && options.that; + var AS_ENTRIES = !!(options && options.AS_ENTRIES); + var IS_RECORD = !!(options && options.IS_RECORD); + var IS_ITERATOR = !!(options && options.IS_ITERATOR); + var INTERRUPTED = !!(options && options.INTERRUPTED); + var fn = bind(unboundFunction, that); + var iterator, iterFn, index, length, result, next, step; + + var stop = function (condition) { + if (iterator) iteratorClose(iterator, 'normal', condition); + return new Result(true, condition); + }; + + var callFn = function (value) { + if (AS_ENTRIES) { + anObject(value); + return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]); + } return INTERRUPTED ? fn(value, stop) : fn(value); + }; + + if (IS_RECORD) { + iterator = iterable.iterator; + } else if (IS_ITERATOR) { + iterator = iterable; + } else { + iterFn = getIteratorMethod(iterable); + if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable'); + // optimisation for array iterators + if (isArrayIteratorMethod(iterFn)) { + for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) { + result = callFn(iterable[index]); + if (result && isPrototypeOf(ResultPrototype, result)) return result; + } return new Result(false); + } + iterator = getIterator(iterable, iterFn); + } + + next = IS_RECORD ? iterable.next : iterator.next; + while (!(step = call(next, iterator)).done) { + try { + result = callFn(step.value); + } catch (error) { + iteratorClose(iterator, 'throw', error); + } + if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result; + } return new Result(false); +}; diff --git a/node_modules/core-js/internals/iterator-close.js b/node_modules/core-js/internals/iterator-close.js new file mode 100644 index 0000000..df2d1e0 --- /dev/null +++ b/node_modules/core-js/internals/iterator-close.js @@ -0,0 +1,24 @@ +'use strict'; +var call = require('../internals/function-call'); +var anObject = require('../internals/an-object'); +var getMethod = require('../internals/get-method'); + +module.exports = function (iterator, kind, value) { + var innerResult, innerError; + anObject(iterator); + try { + innerResult = getMethod(iterator, 'return'); + if (!innerResult) { + if (kind === 'throw') throw value; + return value; + } + innerResult = call(innerResult, iterator); + } catch (error) { + innerError = true; + innerResult = error; + } + if (kind === 'throw') throw value; + if (innerError) throw innerResult; + anObject(innerResult); + return value; +}; diff --git a/node_modules/core-js/internals/iterator-create-constructor.js b/node_modules/core-js/internals/iterator-create-constructor.js new file mode 100644 index 0000000..e519c9f --- /dev/null +++ b/node_modules/core-js/internals/iterator-create-constructor.js @@ -0,0 +1,16 @@ +'use strict'; +var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype; +var create = require('../internals/object-create'); +var createPropertyDescriptor = require('../internals/create-property-descriptor'); +var setToStringTag = require('../internals/set-to-string-tag'); +var Iterators = require('../internals/iterators'); + +var returnThis = function () { return this; }; + +module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { + var TO_STRING_TAG = NAME + ' Iterator'; + IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) }); + setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true); + Iterators[TO_STRING_TAG] = returnThis; + return IteratorConstructor; +}; diff --git a/node_modules/core-js/internals/iterator-create-proxy.js b/node_modules/core-js/internals/iterator-create-proxy.js new file mode 100644 index 0000000..ffb9d74 --- /dev/null +++ b/node_modules/core-js/internals/iterator-create-proxy.js @@ -0,0 +1,76 @@ +'use strict'; +var call = require('../internals/function-call'); +var create = require('../internals/object-create'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var defineBuiltIns = require('../internals/define-built-ins'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var InternalStateModule = require('../internals/internal-state'); +var getMethod = require('../internals/get-method'); +var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype; +var createIterResultObject = require('../internals/create-iter-result-object'); +var iteratorClose = require('../internals/iterator-close'); + +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var ITERATOR_HELPER = 'IteratorHelper'; +var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator'; +var setInternalState = InternalStateModule.set; + +var createIteratorProxyPrototype = function (IS_ITERATOR) { + var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER); + + return defineBuiltIns(create(IteratorPrototype), { + next: function next() { + var state = getInternalState(this); + // for simplification: + // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject` + // for `%IteratorHelperPrototype%.next` - just a value + if (IS_ITERATOR) return state.nextHandler(); + try { + var result = state.done ? undefined : state.nextHandler(); + return createIterResultObject(result, state.done); + } catch (error) { + state.done = true; + throw error; + } + }, + 'return': function () { + var state = getInternalState(this); + var iterator = state.iterator; + state.done = true; + if (IS_ITERATOR) { + var returnMethod = getMethod(iterator, 'return'); + return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true); + } + if (state.inner) try { + iteratorClose(state.inner.iterator, 'normal'); + } catch (error) { + return iteratorClose(iterator, 'throw', error); + } + iteratorClose(iterator, 'normal'); + return createIterResultObject(undefined, true); + } + }); +}; + +var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true); +var IteratorHelperPrototype = createIteratorProxyPrototype(false); + +createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper'); + +module.exports = function (nextHandler, IS_ITERATOR) { + var IteratorProxy = function Iterator(record, state) { + if (state) { + state.iterator = record.iterator; + state.next = record.next; + } else state = record; + state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER; + state.nextHandler = nextHandler; + state.counter = 0; + state.done = false; + setInternalState(this, state); + }; + + IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype; + + return IteratorProxy; +}; diff --git a/node_modules/core-js/internals/iterator-define.js b/node_modules/core-js/internals/iterator-define.js new file mode 100644 index 0000000..c1eebd4 --- /dev/null +++ b/node_modules/core-js/internals/iterator-define.js @@ -0,0 +1,102 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var IS_PURE = require('../internals/is-pure'); +var FunctionName = require('../internals/function-name'); +var isCallable = require('../internals/is-callable'); +var createIteratorConstructor = require('../internals/iterator-create-constructor'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); +var setPrototypeOf = require('../internals/object-set-prototype-of'); +var setToStringTag = require('../internals/set-to-string-tag'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var defineBuiltIn = require('../internals/define-built-in'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var Iterators = require('../internals/iterators'); +var IteratorsCore = require('../internals/iterators-core'); + +var PROPER_FUNCTION_NAME = FunctionName.PROPER; +var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; +var IteratorPrototype = IteratorsCore.IteratorPrototype; +var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; +var ITERATOR = wellKnownSymbol('iterator'); +var KEYS = 'keys'; +var VALUES = 'values'; +var ENTRIES = 'entries'; + +var returnThis = function () { return this; }; + +module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { + createIteratorConstructor(IteratorConstructor, NAME, next); + + var getIterationMethod = function (KIND) { + if (KIND === DEFAULT && defaultIterator) return defaultIterator; + if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND]; + + switch (KIND) { + case KEYS: return function keys() { return new IteratorConstructor(this, KIND); }; + case VALUES: return function values() { return new IteratorConstructor(this, KIND); }; + case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); }; + } + + return function () { return new IteratorConstructor(this); }; + }; + + var TO_STRING_TAG = NAME + ' Iterator'; + var INCORRECT_VALUES_NAME = false; + var IterablePrototype = Iterable.prototype; + var nativeIterator = IterablePrototype[ITERATOR] + || IterablePrototype['@@iterator'] + || DEFAULT && IterablePrototype[DEFAULT]; + var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT); + var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; + var CurrentIteratorPrototype, methods, KEY; + + // fix native + if (anyNativeIterator) { + CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable())); + if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { + if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { + if (setPrototypeOf) { + setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype); + } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) { + defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis); + } + } + // Set @@toStringTag to native iterators + setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true); + if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis; + } + } + + // fix Array.prototype.{ values, @@iterator }.name in V8 / FF + if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) { + if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) { + createNonEnumerableProperty(IterablePrototype, 'name', VALUES); + } else { + INCORRECT_VALUES_NAME = true; + defaultIterator = function values() { return call(nativeIterator, this); }; + } + } + + // export additional methods + if (DEFAULT) { + methods = { + values: getIterationMethod(VALUES), + keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), + entries: getIterationMethod(ENTRIES) + }; + if (FORCED) for (KEY in methods) { + if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { + defineBuiltIn(IterablePrototype, KEY, methods[KEY]); + } + } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); + } + + // define iterator + if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) { + defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT }); + } + Iterators[NAME] = defaultIterator; + + return methods; +}; diff --git a/node_modules/core-js/internals/iterator-indexed.js b/node_modules/core-js/internals/iterator-indexed.js new file mode 100644 index 0000000..e7e6676 --- /dev/null +++ b/node_modules/core-js/internals/iterator-indexed.js @@ -0,0 +1,13 @@ +'use strict'; +var call = require('../internals/function-call'); +var map = require('../internals/iterator-map'); + +var callback = function (value, counter) { + return [counter, value]; +}; + +// `Iterator.prototype.indexed` method +// https://github.com/tc39/proposal-iterator-helpers +module.exports = function indexed() { + return call(map, this, callback); +}; diff --git a/node_modules/core-js/internals/iterator-map.js b/node_modules/core-js/internals/iterator-map.js new file mode 100644 index 0000000..005abe0 --- /dev/null +++ b/node_modules/core-js/internals/iterator-map.js @@ -0,0 +1,24 @@ +'use strict'; +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var createIteratorProxy = require('../internals/iterator-create-proxy'); +var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing'); + +var IteratorProxy = createIteratorProxy(function () { + var iterator = this.iterator; + var result = anObject(call(this.next, iterator)); + var done = this.done = !!result.done; + if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true); +}); + +// `Iterator.prototype.map` method +// https://github.com/tc39/proposal-iterator-helpers +module.exports = function map(mapper) { + anObject(this); + aCallable(mapper); + return new IteratorProxy(getIteratorDirect(this), { + mapper: mapper + }); +}; diff --git a/node_modules/core-js/internals/iterators-core.js b/node_modules/core-js/internals/iterators-core.js new file mode 100644 index 0000000..9ebcaae --- /dev/null +++ b/node_modules/core-js/internals/iterators-core.js @@ -0,0 +1,49 @@ +'use strict'; +var fails = require('../internals/fails'); +var isCallable = require('../internals/is-callable'); +var isObject = require('../internals/is-object'); +var create = require('../internals/object-create'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); +var defineBuiltIn = require('../internals/define-built-in'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var IS_PURE = require('../internals/is-pure'); + +var ITERATOR = wellKnownSymbol('iterator'); +var BUGGY_SAFARI_ITERATORS = false; + +// `%IteratorPrototype%` object +// https://tc39.es/ecma262/#sec-%iteratorprototype%-object +var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; + +/* eslint-disable es/no-array-prototype-keys -- safe */ +if ([].keys) { + arrayIterator = [].keys(); + // Safari 8 has buggy iterators w/o `next` + if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; + else { + PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator)); + if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; + } +} + +var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () { + var test = {}; + // FF44- legacy iterators case + return IteratorPrototype[ITERATOR].call(test) !== test; +}); + +if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {}; +else if (IS_PURE) IteratorPrototype = create(IteratorPrototype); + +// `%IteratorPrototype%[@@iterator]()` method +// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator +if (!isCallable(IteratorPrototype[ITERATOR])) { + defineBuiltIn(IteratorPrototype, ITERATOR, function () { + return this; + }); +} + +module.exports = { + IteratorPrototype: IteratorPrototype, + BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS +}; diff --git a/node_modules/core-js/internals/iterators.js b/node_modules/core-js/internals/iterators.js new file mode 100644 index 0000000..648a166 --- /dev/null +++ b/node_modules/core-js/internals/iterators.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = {}; diff --git a/node_modules/core-js/internals/length-of-array-like.js b/node_modules/core-js/internals/length-of-array-like.js new file mode 100644 index 0000000..8cddc2f --- /dev/null +++ b/node_modules/core-js/internals/length-of-array-like.js @@ -0,0 +1,8 @@ +'use strict'; +var toLength = require('../internals/to-length'); + +// `LengthOfArrayLike` abstract operation +// https://tc39.es/ecma262/#sec-lengthofarraylike +module.exports = function (obj) { + return toLength(obj.length); +}; diff --git a/node_modules/core-js/internals/make-built-in.js b/node_modules/core-js/internals/make-built-in.js new file mode 100644 index 0000000..5743098 --- /dev/null +++ b/node_modules/core-js/internals/make-built-in.js @@ -0,0 +1,55 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var fails = require('../internals/fails'); +var isCallable = require('../internals/is-callable'); +var hasOwn = require('../internals/has-own-property'); +var DESCRIPTORS = require('../internals/descriptors'); +var CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE; +var inspectSource = require('../internals/inspect-source'); +var InternalStateModule = require('../internals/internal-state'); + +var enforceInternalState = InternalStateModule.enforce; +var getInternalState = InternalStateModule.get; +var $String = String; +// eslint-disable-next-line es/no-object-defineproperty -- safe +var defineProperty = Object.defineProperty; +var stringSlice = uncurryThis(''.slice); +var replace = uncurryThis(''.replace); +var join = uncurryThis([].join); + +var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; +}); + +var TEMPLATE = String(String).split('String'); + +var makeBuiltIn = module.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false }); + // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable + } else if (value.prototype) value.prototype = undefined; + } catch (error) { /* empty */ } + var state = enforceInternalState(value); + if (!hasOwn(state, 'source')) { + state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); + } return value; +}; + +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative +// eslint-disable-next-line no-extend-native -- required +Function.prototype.toString = makeBuiltIn(function toString() { + return isCallable(this) && getInternalState(this).source || inspectSource(this); +}, 'toString'); diff --git a/node_modules/core-js/internals/map-helpers.js b/node_modules/core-js/internals/map-helpers.js new file mode 100644 index 0000000..8120c7d --- /dev/null +++ b/node_modules/core-js/internals/map-helpers.js @@ -0,0 +1,15 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); + +// eslint-disable-next-line es/no-map -- safe +var MapPrototype = Map.prototype; + +module.exports = { + // eslint-disable-next-line es/no-map -- safe + Map: Map, + set: uncurryThis(MapPrototype.set), + get: uncurryThis(MapPrototype.get), + has: uncurryThis(MapPrototype.has), + remove: uncurryThis(MapPrototype['delete']), + proto: MapPrototype +}; diff --git a/node_modules/core-js/internals/map-iterate.js b/node_modules/core-js/internals/map-iterate.js new file mode 100644 index 0000000..2c56a0b --- /dev/null +++ b/node_modules/core-js/internals/map-iterate.js @@ -0,0 +1,16 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var iterateSimple = require('../internals/iterate-simple'); +var MapHelpers = require('../internals/map-helpers'); + +var Map = MapHelpers.Map; +var MapPrototype = MapHelpers.proto; +var forEach = uncurryThis(MapPrototype.forEach); +var entries = uncurryThis(MapPrototype.entries); +var next = entries(new Map()).next; + +module.exports = function (map, fn, interruptible) { + return interruptible ? iterateSimple({ iterator: entries(map), next: next }, function (entry) { + return fn(entry[1], entry[0]); + }) : forEach(map, fn); +}; diff --git a/node_modules/core-js/internals/map-upsert.js b/node_modules/core-js/internals/map-upsert.js new file mode 100644 index 0000000..28f17f3 --- /dev/null +++ b/node_modules/core-js/internals/map-upsert.js @@ -0,0 +1,31 @@ +'use strict'; +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var isCallable = require('../internals/is-callable'); +var anObject = require('../internals/an-object'); + +var $TypeError = TypeError; + +// `Map.prototype.upsert` method +// https://github.com/tc39/proposal-upsert +module.exports = function upsert(key, updateFn /* , insertFn */) { + var map = anObject(this); + var get = aCallable(map.get); + var has = aCallable(map.has); + var set = aCallable(map.set); + var insertFn = arguments.length > 2 ? arguments[2] : undefined; + var value; + if (!isCallable(updateFn) && !isCallable(insertFn)) { + throw new $TypeError('At least one callback required'); + } + if (call(has, map, key)) { + value = call(get, map, key); + if (isCallable(updateFn)) { + value = updateFn(value); + call(set, map, key, value); + } + } else if (isCallable(insertFn)) { + value = insertFn(); + call(set, map, key, value); + } return value; +}; diff --git a/node_modules/core-js/internals/math-expm1.js b/node_modules/core-js/internals/math-expm1.js new file mode 100644 index 0000000..f0a1a96 --- /dev/null +++ b/node_modules/core-js/internals/math-expm1.js @@ -0,0 +1,17 @@ +'use strict'; +// eslint-disable-next-line es/no-math-expm1 -- safe +var $expm1 = Math.expm1; +var exp = Math.exp; + +// `Math.expm1` method implementation +// https://tc39.es/ecma262/#sec-math.expm1 +module.exports = (!$expm1 + // Old FF bug + // eslint-disable-next-line no-loss-of-precision -- required for old engines + || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168 + // Tor Browser bug + || $expm1(-2e-17) !== -2e-17 +) ? function expm1(x) { + var n = +x; + return n === 0 ? n : n > -1e-6 && n < 1e-6 ? n + n * n / 2 : exp(n) - 1; +} : $expm1; diff --git a/node_modules/core-js/internals/math-f16round.js b/node_modules/core-js/internals/math-f16round.js new file mode 100644 index 0000000..89e450a --- /dev/null +++ b/node_modules/core-js/internals/math-f16round.js @@ -0,0 +1,12 @@ +'use strict'; +var floatRound = require('../internals/math-float-round'); + +var FLOAT16_EPSILON = 0.0009765625; +var FLOAT16_MAX_VALUE = 65504; +var FLOAT16_MIN_VALUE = 6.103515625e-05; + +// `Math.f16round` method implementation +// https://github.com/tc39/proposal-float16array +module.exports = Math.f16round || function f16round(x) { + return floatRound(x, FLOAT16_EPSILON, FLOAT16_MAX_VALUE, FLOAT16_MIN_VALUE); +}; diff --git a/node_modules/core-js/internals/math-float-round.js b/node_modules/core-js/internals/math-float-round.js new file mode 100644 index 0000000..77c9492 --- /dev/null +++ b/node_modules/core-js/internals/math-float-round.js @@ -0,0 +1,23 @@ +'use strict'; +var sign = require('../internals/math-sign'); + +var abs = Math.abs; + +var EPSILON = 2.220446049250313e-16; // Number.EPSILON +var INVERSE_EPSILON = 1 / EPSILON; + +var roundTiesToEven = function (n) { + return n + INVERSE_EPSILON - INVERSE_EPSILON; +}; + +module.exports = function (x, FLOAT_EPSILON, FLOAT_MAX_VALUE, FLOAT_MIN_VALUE) { + var n = +x; + var absolute = abs(n); + var s = sign(n); + if (absolute < FLOAT_MIN_VALUE) return s * roundTiesToEven(absolute / FLOAT_MIN_VALUE / FLOAT_EPSILON) * FLOAT_MIN_VALUE * FLOAT_EPSILON; + var a = (1 + FLOAT_EPSILON / EPSILON) * absolute; + var result = a - (a - absolute); + // eslint-disable-next-line no-self-compare -- NaN check + if (result > FLOAT_MAX_VALUE || result !== result) return s * Infinity; + return s * result; +}; diff --git a/node_modules/core-js/internals/math-fround.js b/node_modules/core-js/internals/math-fround.js new file mode 100644 index 0000000..7fc1909 --- /dev/null +++ b/node_modules/core-js/internals/math-fround.js @@ -0,0 +1,13 @@ +'use strict'; +var floatRound = require('../internals/math-float-round'); + +var FLOAT32_EPSILON = 1.1920928955078125e-7; // 2 ** -23; +var FLOAT32_MAX_VALUE = 3.4028234663852886e+38; // 2 ** 128 - 2 ** 104 +var FLOAT32_MIN_VALUE = 1.1754943508222875e-38; // 2 ** -126; + +// `Math.fround` method implementation +// https://tc39.es/ecma262/#sec-math.fround +// eslint-disable-next-line es/no-math-fround -- safe +module.exports = Math.fround || function fround(x) { + return floatRound(x, FLOAT32_EPSILON, FLOAT32_MAX_VALUE, FLOAT32_MIN_VALUE); +}; diff --git a/node_modules/core-js/internals/math-log10.js b/node_modules/core-js/internals/math-log10.js new file mode 100644 index 0000000..c6a47b2 --- /dev/null +++ b/node_modules/core-js/internals/math-log10.js @@ -0,0 +1,8 @@ +'use strict'; +var log = Math.log; +var LOG10E = Math.LOG10E; + +// eslint-disable-next-line es/no-math-log10 -- safe +module.exports = Math.log10 || function log10(x) { + return log(x) * LOG10E; +}; diff --git a/node_modules/core-js/internals/math-log1p.js b/node_modules/core-js/internals/math-log1p.js new file mode 100644 index 0000000..6917bf4 --- /dev/null +++ b/node_modules/core-js/internals/math-log1p.js @@ -0,0 +1,10 @@ +'use strict'; +var log = Math.log; + +// `Math.log1p` method implementation +// https://tc39.es/ecma262/#sec-math.log1p +// eslint-disable-next-line es/no-math-log1p -- safe +module.exports = Math.log1p || function log1p(x) { + var n = +x; + return n > -1e-8 && n < 1e-8 ? n - n * n / 2 : log(1 + n); +}; diff --git a/node_modules/core-js/internals/math-scale.js b/node_modules/core-js/internals/math-scale.js new file mode 100644 index 0000000..6a9087d --- /dev/null +++ b/node_modules/core-js/internals/math-scale.js @@ -0,0 +1,14 @@ +'use strict'; +// `Math.scale` method implementation +// https://rwaldron.github.io/proposal-math-extensions/ +module.exports = Math.scale || function scale(x, inLow, inHigh, outLow, outHigh) { + var nx = +x; + var nInLow = +inLow; + var nInHigh = +inHigh; + var nOutLow = +outLow; + var nOutHigh = +outHigh; + // eslint-disable-next-line no-self-compare -- NaN check + if (nx !== nx || nInLow !== nInLow || nInHigh !== nInHigh || nOutLow !== nOutLow || nOutHigh !== nOutHigh) return NaN; + if (nx === Infinity || nx === -Infinity) return nx; + return (nx - nInLow) * (nOutHigh - nOutLow) / (nInHigh - nInLow) + nOutLow; +}; diff --git a/node_modules/core-js/internals/math-sign.js b/node_modules/core-js/internals/math-sign.js new file mode 100644 index 0000000..d59578e --- /dev/null +++ b/node_modules/core-js/internals/math-sign.js @@ -0,0 +1,9 @@ +'use strict'; +// `Math.sign` method implementation +// https://tc39.es/ecma262/#sec-math.sign +// eslint-disable-next-line es/no-math-sign -- safe +module.exports = Math.sign || function sign(x) { + var n = +x; + // eslint-disable-next-line no-self-compare -- NaN check + return n === 0 || n !== n ? n : n < 0 ? -1 : 1; +}; diff --git a/node_modules/core-js/internals/math-trunc.js b/node_modules/core-js/internals/math-trunc.js new file mode 100644 index 0000000..6d41e54 --- /dev/null +++ b/node_modules/core-js/internals/math-trunc.js @@ -0,0 +1,11 @@ +'use strict'; +var ceil = Math.ceil; +var floor = Math.floor; + +// `Math.trunc` method +// https://tc39.es/ecma262/#sec-math.trunc +// eslint-disable-next-line es/no-math-trunc -- safe +module.exports = Math.trunc || function trunc(x) { + var n = +x; + return (n > 0 ? floor : ceil)(n); +}; diff --git a/node_modules/core-js/internals/microtask.js b/node_modules/core-js/internals/microtask.js new file mode 100644 index 0000000..906ffc4 --- /dev/null +++ b/node_modules/core-js/internals/microtask.js @@ -0,0 +1,79 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var safeGetBuiltIn = require('../internals/safe-get-built-in'); +var bind = require('../internals/function-bind-context'); +var macrotask = require('../internals/task').set; +var Queue = require('../internals/queue'); +var IS_IOS = require('../internals/environment-is-ios'); +var IS_IOS_PEBBLE = require('../internals/environment-is-ios-pebble'); +var IS_WEBOS_WEBKIT = require('../internals/environment-is-webos-webkit'); +var IS_NODE = require('../internals/environment-is-node'); + +var MutationObserver = globalThis.MutationObserver || globalThis.WebKitMutationObserver; +var document = globalThis.document; +var process = globalThis.process; +var Promise = globalThis.Promise; +var microtask = safeGetBuiltIn('queueMicrotask'); +var notify, toggle, node, promise, then; + +// modern engines have queueMicrotask method +if (!microtask) { + var queue = new Queue(); + + var flush = function () { + var parent, fn; + if (IS_NODE && (parent = process.domain)) parent.exit(); + while (fn = queue.get()) try { + fn(); + } catch (error) { + if (queue.head) notify(); + throw error; + } + if (parent) parent.enter(); + }; + + // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339 + // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898 + if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) { + toggle = true; + node = document.createTextNode(''); + new MutationObserver(flush).observe(node, { characterData: true }); + notify = function () { + node.data = toggle = !toggle; + }; + // environments with maybe non-completely correct, but existent Promise + } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) { + // Promise.resolve without an argument throws an error in LG WebOS 2 + promise = Promise.resolve(undefined); + // workaround of WebKit ~ iOS Safari 10.1 bug + promise.constructor = Promise; + then = bind(promise.then, promise); + notify = function () { + then(flush); + }; + // Node.js without promises + } else if (IS_NODE) { + notify = function () { + process.nextTick(flush); + }; + // for other environments - macrotask based on: + // - setImmediate + // - MessageChannel + // - window.postMessage + // - onreadystatechange + // - setTimeout + } else { + // `webpack` dev server bug on IE global methods - use bind(fn, global) + macrotask = bind(macrotask, globalThis); + notify = function () { + macrotask(flush); + }; + } + + microtask = function (fn) { + if (!queue.head) notify(); + queue.add(fn); + }; +} + +module.exports = microtask; diff --git a/node_modules/core-js/internals/native-raw-json.js b/node_modules/core-js/internals/native-raw-json.js new file mode 100644 index 0000000..f37892e --- /dev/null +++ b/node_modules/core-js/internals/native-raw-json.js @@ -0,0 +1,9 @@ +'use strict'; +/* eslint-disable es/no-json -- safe */ +var fails = require('../internals/fails'); + +module.exports = !fails(function () { + var unsafeInt = '9007199254740993'; + var raw = JSON.rawJSON(unsafeInt); + return !JSON.isRawJSON(raw) || JSON.stringify(raw) !== unsafeInt; +}); diff --git a/node_modules/core-js/internals/new-promise-capability.js b/node_modules/core-js/internals/new-promise-capability.js new file mode 100644 index 0000000..dac6549 --- /dev/null +++ b/node_modules/core-js/internals/new-promise-capability.js @@ -0,0 +1,21 @@ +'use strict'; +var aCallable = require('../internals/a-callable'); + +var $TypeError = TypeError; + +var PromiseCapability = function (C) { + var resolve, reject; + this.promise = new C(function ($$resolve, $$reject) { + if (resolve !== undefined || reject !== undefined) throw new $TypeError('Bad Promise constructor'); + resolve = $$resolve; + reject = $$reject; + }); + this.resolve = aCallable(resolve); + this.reject = aCallable(reject); +}; + +// `NewPromiseCapability` abstract operation +// https://tc39.es/ecma262/#sec-newpromisecapability +module.exports.f = function (C) { + return new PromiseCapability(C); +}; diff --git a/node_modules/core-js/internals/normalize-string-argument.js b/node_modules/core-js/internals/normalize-string-argument.js new file mode 100644 index 0000000..83d4af7 --- /dev/null +++ b/node_modules/core-js/internals/normalize-string-argument.js @@ -0,0 +1,6 @@ +'use strict'; +var toString = require('../internals/to-string'); + +module.exports = function (argument, $default) { + return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument); +}; diff --git a/node_modules/core-js/internals/not-a-nan.js b/node_modules/core-js/internals/not-a-nan.js new file mode 100644 index 0000000..61ce8f1 --- /dev/null +++ b/node_modules/core-js/internals/not-a-nan.js @@ -0,0 +1,8 @@ +'use strict'; +var $RangeError = RangeError; + +module.exports = function (it) { + // eslint-disable-next-line no-self-compare -- NaN check + if (it === it) return it; + throw new $RangeError('NaN is not allowed'); +}; diff --git a/node_modules/core-js/internals/not-a-regexp.js b/node_modules/core-js/internals/not-a-regexp.js new file mode 100644 index 0000000..49c81fb --- /dev/null +++ b/node_modules/core-js/internals/not-a-regexp.js @@ -0,0 +1,10 @@ +'use strict'; +var isRegExp = require('../internals/is-regexp'); + +var $TypeError = TypeError; + +module.exports = function (it) { + if (isRegExp(it)) { + throw new $TypeError("The method doesn't accept regular expressions"); + } return it; +}; diff --git a/node_modules/core-js/internals/number-is-finite.js b/node_modules/core-js/internals/number-is-finite.js new file mode 100644 index 0000000..d2fe159 --- /dev/null +++ b/node_modules/core-js/internals/number-is-finite.js @@ -0,0 +1,11 @@ +'use strict'; +var globalThis = require('../internals/global-this'); + +var globalIsFinite = globalThis.isFinite; + +// `Number.isFinite` method +// https://tc39.es/ecma262/#sec-number.isfinite +// eslint-disable-next-line es/no-number-isfinite -- safe +module.exports = Number.isFinite || function isFinite(it) { + return typeof it == 'number' && globalIsFinite(it); +}; diff --git a/node_modules/core-js/internals/number-parse-float.js b/node_modules/core-js/internals/number-parse-float.js new file mode 100644 index 0000000..09da20d --- /dev/null +++ b/node_modules/core-js/internals/number-parse-float.js @@ -0,0 +1,23 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var fails = require('../internals/fails'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toString = require('../internals/to-string'); +var trim = require('../internals/string-trim').trim; +var whitespaces = require('../internals/whitespaces'); + +var charAt = uncurryThis(''.charAt); +var $parseFloat = globalThis.parseFloat; +var Symbol = globalThis.Symbol; +var ITERATOR = Symbol && Symbol.iterator; +var FORCED = 1 / $parseFloat(whitespaces + '-0') !== -Infinity + // MS Edge 18- broken with boxed symbols + || (ITERATOR && !fails(function () { $parseFloat(Object(ITERATOR)); })); + +// `parseFloat` method +// https://tc39.es/ecma262/#sec-parsefloat-string +module.exports = FORCED ? function parseFloat(string) { + var trimmedString = trim(toString(string)); + var result = $parseFloat(trimmedString); + return result === 0 && charAt(trimmedString, 0) === '-' ? -0 : result; +} : $parseFloat; diff --git a/node_modules/core-js/internals/number-parse-int.js b/node_modules/core-js/internals/number-parse-int.js new file mode 100644 index 0000000..eae2813 --- /dev/null +++ b/node_modules/core-js/internals/number-parse-int.js @@ -0,0 +1,23 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var fails = require('../internals/fails'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toString = require('../internals/to-string'); +var trim = require('../internals/string-trim').trim; +var whitespaces = require('../internals/whitespaces'); + +var $parseInt = globalThis.parseInt; +var Symbol = globalThis.Symbol; +var ITERATOR = Symbol && Symbol.iterator; +var hex = /^[+-]?0x/i; +var exec = uncurryThis(hex.exec); +var FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22 + // MS Edge 18- broken with boxed symbols + || (ITERATOR && !fails(function () { $parseInt(Object(ITERATOR)); })); + +// `parseInt` method +// https://tc39.es/ecma262/#sec-parseint-string-radix +module.exports = FORCED ? function parseInt(string, radix) { + var S = trim(toString(string)); + return $parseInt(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10)); +} : $parseInt; diff --git a/node_modules/core-js/internals/numeric-range-iterator.js b/node_modules/core-js/internals/numeric-range-iterator.js new file mode 100644 index 0000000..17830a2 --- /dev/null +++ b/node_modules/core-js/internals/numeric-range-iterator.js @@ -0,0 +1,106 @@ +'use strict'; +var InternalStateModule = require('../internals/internal-state'); +var createIteratorConstructor = require('../internals/iterator-create-constructor'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var isObject = require('../internals/is-object'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var DESCRIPTORS = require('../internals/descriptors'); + +var INCORRECT_RANGE = 'Incorrect Iterator.range arguments'; +var NUMERIC_RANGE_ITERATOR = 'NumericRangeIterator'; + +var setInternalState = InternalStateModule.set; +var getInternalState = InternalStateModule.getterFor(NUMERIC_RANGE_ITERATOR); + +var $RangeError = RangeError; +var $TypeError = TypeError; + +var $RangeIterator = createIteratorConstructor(function NumericRangeIterator(start, end, option, type, zero, one) { + // TODO: Drop the first `typeof` check after removing legacy methods in `core-js@4` + if (typeof start != type || (end !== Infinity && end !== -Infinity && typeof end != type)) { + throw new $TypeError(INCORRECT_RANGE); + } + if (start === Infinity || start === -Infinity) { + throw new $RangeError(INCORRECT_RANGE); + } + var ifIncrease = end > start; + var inclusiveEnd = false; + var step; + if (option === undefined) { + step = undefined; + } else if (isObject(option)) { + step = option.step; + inclusiveEnd = !!option.inclusive; + } else if (typeof option == type) { + step = option; + } else { + throw new $TypeError(INCORRECT_RANGE); + } + if (isNullOrUndefined(step)) { + step = ifIncrease ? one : -one; + } + if (typeof step != type) { + throw new $TypeError(INCORRECT_RANGE); + } + if (step === Infinity || step === -Infinity || (step === zero && start !== end)) { + throw new $RangeError(INCORRECT_RANGE); + } + // eslint-disable-next-line no-self-compare -- NaN check + var hitsEnd = start !== start || end !== end || step !== step || (end > start) !== (step > zero); + setInternalState(this, { + type: NUMERIC_RANGE_ITERATOR, + start: start, + end: end, + step: step, + inclusive: inclusiveEnd, + hitsEnd: hitsEnd, + currentCount: zero, + zero: zero + }); + if (!DESCRIPTORS) { + this.start = start; + this.end = end; + this.step = step; + this.inclusive = inclusiveEnd; + } +}, NUMERIC_RANGE_ITERATOR, function next() { + var state = getInternalState(this); + if (state.hitsEnd) return createIterResultObject(undefined, true); + var start = state.start; + var end = state.end; + var step = state.step; + var currentYieldingValue = start + (step * state.currentCount++); + if (currentYieldingValue === end) state.hitsEnd = true; + var inclusiveEnd = state.inclusive; + var endCondition; + if (end > start) { + endCondition = inclusiveEnd ? currentYieldingValue > end : currentYieldingValue >= end; + } else { + endCondition = inclusiveEnd ? end > currentYieldingValue : end >= currentYieldingValue; + } + if (endCondition) { + state.hitsEnd = true; + return createIterResultObject(undefined, true); + } return createIterResultObject(currentYieldingValue, false); +}); + +var addGetter = function (key) { + defineBuiltInAccessor($RangeIterator.prototype, key, { + get: function () { + return getInternalState(this)[key]; + }, + set: function () { /* empty */ }, + configurable: true, + enumerable: false + }); +}; + +if (DESCRIPTORS) { + addGetter('start'); + addGetter('end'); + addGetter('inclusive'); + addGetter('step'); +} + +module.exports = $RangeIterator; diff --git a/node_modules/core-js/internals/object-assign.js b/node_modules/core-js/internals/object-assign.js new file mode 100644 index 0000000..1a8947b --- /dev/null +++ b/node_modules/core-js/internals/object-assign.js @@ -0,0 +1,57 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var uncurryThis = require('../internals/function-uncurry-this'); +var call = require('../internals/function-call'); +var fails = require('../internals/fails'); +var objectKeys = require('../internals/object-keys'); +var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols'); +var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable'); +var toObject = require('../internals/to-object'); +var IndexedObject = require('../internals/indexed-object'); + +// eslint-disable-next-line es/no-object-assign -- safe +var $assign = Object.assign; +// eslint-disable-next-line es/no-object-defineproperty -- required for testing +var defineProperty = Object.defineProperty; +var concat = uncurryThis([].concat); + +// `Object.assign` method +// https://tc39.es/ecma262/#sec-object.assign +module.exports = !$assign || fails(function () { + // should have correct order of operations (Edge bug) + if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', { + enumerable: true, + get: function () { + defineProperty(this, 'b', { + value: 3, + enumerable: false + }); + } + }), { b: 2 })).b !== 1) return true; + // should work with symbols and should have deterministic property order (V8 bug) + var A = {}; + var B = {}; + // eslint-disable-next-line es/no-symbol -- safe + var symbol = Symbol('assign detection'); + var alphabet = 'abcdefghijklmnopqrst'; + A[symbol] = 7; + alphabet.split('').forEach(function (chr) { B[chr] = chr; }); + return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet; +}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length` + var T = toObject(target); + var argumentsLength = arguments.length; + var index = 1; + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + var propertyIsEnumerable = propertyIsEnumerableModule.f; + while (argumentsLength > index) { + var S = IndexedObject(arguments[index++]); + var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S); + var length = keys.length; + var j = 0; + var key; + while (length > j) { + key = keys[j++]; + if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key]; + } + } return T; +} : $assign; diff --git a/node_modules/core-js/internals/object-create.js b/node_modules/core-js/internals/object-create.js new file mode 100644 index 0000000..e24560e --- /dev/null +++ b/node_modules/core-js/internals/object-create.js @@ -0,0 +1,85 @@ +'use strict'; +/* global ActiveXObject -- old IE, WSH */ +var anObject = require('../internals/an-object'); +var definePropertiesModule = require('../internals/object-define-properties'); +var enumBugKeys = require('../internals/enum-bug-keys'); +var hiddenKeys = require('../internals/hidden-keys'); +var html = require('../internals/html'); +var documentCreateElement = require('../internals/document-create-element'); +var sharedKey = require('../internals/shared-key'); + +var GT = '>'; +var LT = '<'; +var PROTOTYPE = 'prototype'; +var SCRIPT = 'script'; +var IE_PROTO = sharedKey('IE_PROTO'); + +var EmptyConstructor = function () { /* empty */ }; + +var scriptTag = function (content) { + return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; +}; + +// Create object with fake `null` prototype: use ActiveX Object with cleared prototype +var NullProtoObjectViaActiveX = function (activeXDocument) { + activeXDocument.write(scriptTag('')); + activeXDocument.close(); + var temp = activeXDocument.parentWindow.Object; + // eslint-disable-next-line no-useless-assignment -- avoid memory leak + activeXDocument = null; + return temp; +}; + +// Create object with fake `null` prototype: use iframe Object with cleared prototype +var NullProtoObjectViaIFrame = function () { + // Thrash, waste and sodomy: IE GC bug + var iframe = documentCreateElement('iframe'); + var JS = 'java' + SCRIPT + ':'; + var iframeDocument; + iframe.style.display = 'none'; + html.appendChild(iframe); + // https://github.com/zloirock/core-js/issues/475 + iframe.src = String(JS); + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write(scriptTag('document.F=Object')); + iframeDocument.close(); + return iframeDocument.F; +}; + +// Check for document.domain and active x support +// No need to use active x approach when document.domain is not set +// see https://github.com/es-shims/es5-shim/issues/150 +// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 +// avoid IE GC bug +var activeXDocument; +var NullProtoObject = function () { + try { + activeXDocument = new ActiveXObject('htmlfile'); + } catch (error) { /* ignore */ } + NullProtoObject = typeof document != 'undefined' + ? document.domain && activeXDocument + ? NullProtoObjectViaActiveX(activeXDocument) // old IE + : NullProtoObjectViaIFrame() + : NullProtoObjectViaActiveX(activeXDocument); // WSH + var length = enumBugKeys.length; + while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; + return NullProtoObject(); +}; + +hiddenKeys[IE_PROTO] = true; + +// `Object.create` method +// https://tc39.es/ecma262/#sec-object.create +// eslint-disable-next-line es/no-object-create -- safe +module.exports = Object.create || function create(O, Properties) { + var result; + if (O !== null) { + EmptyConstructor[PROTOTYPE] = anObject(O); + result = new EmptyConstructor(); + EmptyConstructor[PROTOTYPE] = null; + // add "__proto__" for Object.getPrototypeOf polyfill + result[IE_PROTO] = O; + } else result = NullProtoObject(); + return Properties === undefined ? result : definePropertiesModule.f(result, Properties); +}; diff --git a/node_modules/core-js/internals/object-define-properties.js b/node_modules/core-js/internals/object-define-properties.js new file mode 100644 index 0000000..1a1d1bd --- /dev/null +++ b/node_modules/core-js/internals/object-define-properties.js @@ -0,0 +1,21 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug'); +var definePropertyModule = require('../internals/object-define-property'); +var anObject = require('../internals/an-object'); +var toIndexedObject = require('../internals/to-indexed-object'); +var objectKeys = require('../internals/object-keys'); + +// `Object.defineProperties` method +// https://tc39.es/ecma262/#sec-object.defineproperties +// eslint-disable-next-line es/no-object-defineproperties -- safe +exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { + anObject(O); + var props = toIndexedObject(Properties); + var keys = objectKeys(Properties); + var length = keys.length; + var index = 0; + var key; + while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]); + return O; +}; diff --git a/node_modules/core-js/internals/object-define-property.js b/node_modules/core-js/internals/object-define-property.js new file mode 100644 index 0000000..704d616 --- /dev/null +++ b/node_modules/core-js/internals/object-define-property.js @@ -0,0 +1,44 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var IE8_DOM_DEFINE = require('../internals/ie8-dom-define'); +var V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug'); +var anObject = require('../internals/an-object'); +var toPropertyKey = require('../internals/to-property-key'); + +var $TypeError = TypeError; +// eslint-disable-next-line es/no-object-defineproperty -- safe +var $defineProperty = Object.defineProperty; +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +var ENUMERABLE = 'enumerable'; +var CONFIGURABLE = 'configurable'; +var WRITABLE = 'writable'; + +// `Object.defineProperty` method +// https://tc39.es/ecma262/#sec-object.defineproperty +exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject(O); + P = toPropertyKey(P); + anObject(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(O, P); + if (current && current[WRITABLE]) { + O[P] = Attributes.value; + Attributes = { + configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE], + enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], + writable: false + }; + } + } return $defineProperty(O, P, Attributes); +} : $defineProperty : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPropertyKey(P); + anObject(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; +}; diff --git a/node_modules/core-js/internals/object-get-own-property-descriptor.js b/node_modules/core-js/internals/object-get-own-property-descriptor.js new file mode 100644 index 0000000..1fd4181 --- /dev/null +++ b/node_modules/core-js/internals/object-get-own-property-descriptor.js @@ -0,0 +1,23 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var call = require('../internals/function-call'); +var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable'); +var createPropertyDescriptor = require('../internals/create-property-descriptor'); +var toIndexedObject = require('../internals/to-indexed-object'); +var toPropertyKey = require('../internals/to-property-key'); +var hasOwn = require('../internals/has-own-property'); +var IE8_DOM_DEFINE = require('../internals/ie8-dom-define'); + +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + +// `Object.getOwnPropertyDescriptor` method +// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor +exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject(O); + P = toPropertyKey(P); + if (IE8_DOM_DEFINE) try { + return $getOwnPropertyDescriptor(O, P); + } catch (error) { /* empty */ } + if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]); +}; diff --git a/node_modules/core-js/internals/object-get-own-property-names-external.js b/node_modules/core-js/internals/object-get-own-property-names-external.js new file mode 100644 index 0000000..9bafd9a --- /dev/null +++ b/node_modules/core-js/internals/object-get-own-property-names-external.js @@ -0,0 +1,24 @@ +'use strict'; +/* eslint-disable es/no-object-getownpropertynames -- safe */ +var classof = require('../internals/classof-raw'); +var toIndexedObject = require('../internals/to-indexed-object'); +var $getOwnPropertyNames = require('../internals/object-get-own-property-names').f; +var arraySlice = require('../internals/array-slice'); + +var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames + ? Object.getOwnPropertyNames(window) : []; + +var getWindowNames = function (it) { + try { + return $getOwnPropertyNames(it); + } catch (error) { + return arraySlice(windowNames); + } +}; + +// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window +module.exports.f = function getOwnPropertyNames(it) { + return windowNames && classof(it) === 'Window' + ? getWindowNames(it) + : $getOwnPropertyNames(toIndexedObject(it)); +}; diff --git a/node_modules/core-js/internals/object-get-own-property-names.js b/node_modules/core-js/internals/object-get-own-property-names.js new file mode 100644 index 0000000..08c935d --- /dev/null +++ b/node_modules/core-js/internals/object-get-own-property-names.js @@ -0,0 +1,12 @@ +'use strict'; +var internalObjectKeys = require('../internals/object-keys-internal'); +var enumBugKeys = require('../internals/enum-bug-keys'); + +var hiddenKeys = enumBugKeys.concat('length', 'prototype'); + +// `Object.getOwnPropertyNames` method +// https://tc39.es/ecma262/#sec-object.getownpropertynames +// eslint-disable-next-line es/no-object-getownpropertynames -- safe +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return internalObjectKeys(O, hiddenKeys); +}; diff --git a/node_modules/core-js/internals/object-get-own-property-symbols.js b/node_modules/core-js/internals/object-get-own-property-symbols.js new file mode 100644 index 0000000..9ee3730 --- /dev/null +++ b/node_modules/core-js/internals/object-get-own-property-symbols.js @@ -0,0 +1,3 @@ +'use strict'; +// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe +exports.f = Object.getOwnPropertySymbols; diff --git a/node_modules/core-js/internals/object-get-prototype-of.js b/node_modules/core-js/internals/object-get-prototype-of.js new file mode 100644 index 0000000..75201d3 --- /dev/null +++ b/node_modules/core-js/internals/object-get-prototype-of.js @@ -0,0 +1,22 @@ +'use strict'; +var hasOwn = require('../internals/has-own-property'); +var isCallable = require('../internals/is-callable'); +var toObject = require('../internals/to-object'); +var sharedKey = require('../internals/shared-key'); +var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter'); + +var IE_PROTO = sharedKey('IE_PROTO'); +var $Object = Object; +var ObjectPrototype = $Object.prototype; + +// `Object.getPrototypeOf` method +// https://tc39.es/ecma262/#sec-object.getprototypeof +// eslint-disable-next-line es/no-object-getprototypeof -- safe +module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) { + var object = toObject(O); + if (hasOwn(object, IE_PROTO)) return object[IE_PROTO]; + var constructor = object.constructor; + if (isCallable(constructor) && object instanceof constructor) { + return constructor.prototype; + } return object instanceof $Object ? ObjectPrototype : null; +}; diff --git a/node_modules/core-js/internals/object-is-extensible.js b/node_modules/core-js/internals/object-is-extensible.js new file mode 100644 index 0000000..1f3d628 --- /dev/null +++ b/node_modules/core-js/internals/object-is-extensible.js @@ -0,0 +1,17 @@ +'use strict'; +var fails = require('../internals/fails'); +var isObject = require('../internals/is-object'); +var classof = require('../internals/classof-raw'); +var ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible'); + +// eslint-disable-next-line es/no-object-isextensible -- safe +var $isExtensible = Object.isExtensible; +var FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); }); + +// `Object.isExtensible` method +// https://tc39.es/ecma262/#sec-object.isextensible +module.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) { + if (!isObject(it)) return false; + if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) === 'ArrayBuffer') return false; + return $isExtensible ? $isExtensible(it) : true; +} : $isExtensible; diff --git a/node_modules/core-js/internals/object-is-prototype-of.js b/node_modules/core-js/internals/object-is-prototype-of.js new file mode 100644 index 0000000..77cca1e --- /dev/null +++ b/node_modules/core-js/internals/object-is-prototype-of.js @@ -0,0 +1,4 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); + +module.exports = uncurryThis({}.isPrototypeOf); diff --git a/node_modules/core-js/internals/object-iterator.js b/node_modules/core-js/internals/object-iterator.js new file mode 100644 index 0000000..a2f0443 --- /dev/null +++ b/node_modules/core-js/internals/object-iterator.js @@ -0,0 +1,38 @@ +'use strict'; +var InternalStateModule = require('../internals/internal-state'); +var createIteratorConstructor = require('../internals/iterator-create-constructor'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var hasOwn = require('../internals/has-own-property'); +var objectKeys = require('../internals/object-keys'); +var toObject = require('../internals/to-object'); + +var OBJECT_ITERATOR = 'Object Iterator'; +var setInternalState = InternalStateModule.set; +var getInternalState = InternalStateModule.getterFor(OBJECT_ITERATOR); + +module.exports = createIteratorConstructor(function ObjectIterator(source, mode) { + var object = toObject(source); + setInternalState(this, { + type: OBJECT_ITERATOR, + mode: mode, + object: object, + keys: objectKeys(object), + index: 0 + }); +}, 'Object', function next() { + var state = getInternalState(this); + var keys = state.keys; + while (true) { + if (keys === null || state.index >= keys.length) { + state.object = state.keys = null; + return createIterResultObject(undefined, true); + } + var key = keys[state.index++]; + var object = state.object; + if (!hasOwn(object, key)) continue; + switch (state.mode) { + case 'keys': return createIterResultObject(key, false); + case 'values': return createIterResultObject(object[key], false); + } /* entries */ return createIterResultObject([key, object[key]], false); + } +}); diff --git a/node_modules/core-js/internals/object-keys-internal.js b/node_modules/core-js/internals/object-keys-internal.js new file mode 100644 index 0000000..42354cf --- /dev/null +++ b/node_modules/core-js/internals/object-keys-internal.js @@ -0,0 +1,21 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var hasOwn = require('../internals/has-own-property'); +var toIndexedObject = require('../internals/to-indexed-object'); +var indexOf = require('../internals/array-includes').indexOf; +var hiddenKeys = require('../internals/hidden-keys'); + +var push = uncurryThis([].push); + +module.exports = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; +}; diff --git a/node_modules/core-js/internals/object-keys.js b/node_modules/core-js/internals/object-keys.js new file mode 100644 index 0000000..0376135 --- /dev/null +++ b/node_modules/core-js/internals/object-keys.js @@ -0,0 +1,10 @@ +'use strict'; +var internalObjectKeys = require('../internals/object-keys-internal'); +var enumBugKeys = require('../internals/enum-bug-keys'); + +// `Object.keys` method +// https://tc39.es/ecma262/#sec-object.keys +// eslint-disable-next-line es/no-object-keys -- safe +module.exports = Object.keys || function keys(O) { + return internalObjectKeys(O, enumBugKeys); +}; diff --git a/node_modules/core-js/internals/object-property-is-enumerable.js b/node_modules/core-js/internals/object-property-is-enumerable.js new file mode 100644 index 0000000..f262d10 --- /dev/null +++ b/node_modules/core-js/internals/object-property-is-enumerable.js @@ -0,0 +1,14 @@ +'use strict'; +var $propertyIsEnumerable = {}.propertyIsEnumerable; +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + +// Nashorn ~ JDK8 bug +var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1); + +// `Object.prototype.propertyIsEnumerable` method implementation +// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable +exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) { + var descriptor = getOwnPropertyDescriptor(this, V); + return !!descriptor && descriptor.enumerable; +} : $propertyIsEnumerable; diff --git a/node_modules/core-js/internals/object-prototype-accessors-forced.js b/node_modules/core-js/internals/object-prototype-accessors-forced.js new file mode 100644 index 0000000..e175498 --- /dev/null +++ b/node_modules/core-js/internals/object-prototype-accessors-forced.js @@ -0,0 +1,18 @@ +'use strict'; +/* eslint-disable no-undef, no-useless-call, sonar/no-reference-error -- required for testing */ +/* eslint-disable es/no-legacy-object-prototype-accessor-methods -- required for testing */ +var IS_PURE = require('../internals/is-pure'); +var globalThis = require('../internals/global-this'); +var fails = require('../internals/fails'); +var WEBKIT = require('../internals/environment-webkit-version'); + +// Forced replacement object prototype accessors methods +module.exports = IS_PURE || !fails(function () { + // This feature detection crashes old WebKit + // https://github.com/zloirock/core-js/issues/232 + if (WEBKIT && WEBKIT < 535) return; + var key = Math.random(); + // In FF throws only define methods + __defineSetter__.call(null, key, function () { /* empty */ }); + delete globalThis[key]; +}); diff --git a/node_modules/core-js/internals/object-set-prototype-of.js b/node_modules/core-js/internals/object-set-prototype-of.js new file mode 100644 index 0000000..94fcf6c --- /dev/null +++ b/node_modules/core-js/internals/object-set-prototype-of.js @@ -0,0 +1,29 @@ +'use strict'; +/* eslint-disable no-proto -- safe */ +var uncurryThisAccessor = require('../internals/function-uncurry-this-accessor'); +var isObject = require('../internals/is-object'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var aPossiblePrototype = require('../internals/a-possible-prototype'); + +// `Object.setPrototypeOf` method +// https://tc39.es/ecma262/#sec-object.setprototypeof +// Works with __proto__ only. Old v8 can't work with null proto objects. +// eslint-disable-next-line es/no-object-setprototypeof -- safe +module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () { + var CORRECT_SETTER = false; + var test = {}; + var setter; + try { + setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set'); + setter(test, []); + CORRECT_SETTER = test instanceof Array; + } catch (error) { /* empty */ } + return function setPrototypeOf(O, proto) { + requireObjectCoercible(O); + aPossiblePrototype(proto); + if (!isObject(O)) return O; + if (CORRECT_SETTER) setter(O, proto); + else O.__proto__ = proto; + return O; + }; +}() : undefined); diff --git a/node_modules/core-js/internals/object-to-array.js b/node_modules/core-js/internals/object-to-array.js new file mode 100644 index 0000000..2a84f75 --- /dev/null +++ b/node_modules/core-js/internals/object-to-array.js @@ -0,0 +1,49 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var fails = require('../internals/fails'); +var uncurryThis = require('../internals/function-uncurry-this'); +var objectGetPrototypeOf = require('../internals/object-get-prototype-of'); +var objectKeys = require('../internals/object-keys'); +var toIndexedObject = require('../internals/to-indexed-object'); +var $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f; + +var propertyIsEnumerable = uncurryThis($propertyIsEnumerable); +var push = uncurryThis([].push); + +// in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys +// of `null` prototype objects +var IE_BUG = DESCRIPTORS && fails(function () { + // eslint-disable-next-line es/no-object-create -- safe + var O = Object.create(null); + O[2] = 2; + return !propertyIsEnumerable(O, 2); +}); + +// `Object.{ entries, values }` methods implementation +var createMethod = function (TO_ENTRIES) { + return function (it) { + var O = toIndexedObject(it); + var keys = objectKeys(O); + var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null; + var length = keys.length; + var i = 0; + var result = []; + var key; + while (length > i) { + key = keys[i++]; + if (!DESCRIPTORS || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) { + push(result, TO_ENTRIES ? [key, O[key]] : O[key]); + } + } + return result; + }; +}; + +module.exports = { + // `Object.entries` method + // https://tc39.es/ecma262/#sec-object.entries + entries: createMethod(true), + // `Object.values` method + // https://tc39.es/ecma262/#sec-object.values + values: createMethod(false) +}; diff --git a/node_modules/core-js/internals/object-to-string.js b/node_modules/core-js/internals/object-to-string.js new file mode 100644 index 0000000..d624036 --- /dev/null +++ b/node_modules/core-js/internals/object-to-string.js @@ -0,0 +1,9 @@ +'use strict'; +var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support'); +var classof = require('../internals/classof'); + +// `Object.prototype.toString` method implementation +// https://tc39.es/ecma262/#sec-object.prototype.tostring +module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() { + return '[object ' + classof(this) + ']'; +}; diff --git a/node_modules/core-js/internals/ordinary-to-primitive.js b/node_modules/core-js/internals/ordinary-to-primitive.js new file mode 100644 index 0000000..f8acc2f --- /dev/null +++ b/node_modules/core-js/internals/ordinary-to-primitive.js @@ -0,0 +1,16 @@ +'use strict'; +var call = require('../internals/function-call'); +var isCallable = require('../internals/is-callable'); +var isObject = require('../internals/is-object'); + +var $TypeError = TypeError; + +// `OrdinaryToPrimitive` abstract operation +// https://tc39.es/ecma262/#sec-ordinarytoprimitive +module.exports = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val; + if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val; + if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val; + throw new $TypeError("Can't convert object to primitive value"); +}; diff --git a/node_modules/core-js/internals/own-keys.js b/node_modules/core-js/internals/own-keys.js new file mode 100644 index 0000000..bf4864d --- /dev/null +++ b/node_modules/core-js/internals/own-keys.js @@ -0,0 +1,15 @@ +'use strict'; +var getBuiltIn = require('../internals/get-built-in'); +var uncurryThis = require('../internals/function-uncurry-this'); +var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names'); +var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols'); +var anObject = require('../internals/an-object'); + +var concat = uncurryThis([].concat); + +// all object keys, includes non-enumerable and symbols +module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; +}; diff --git a/node_modules/core-js/internals/parse-json-string.js b/node_modules/core-js/internals/parse-json-string.js new file mode 100644 index 0000000..741c0bd --- /dev/null +++ b/node_modules/core-js/internals/parse-json-string.js @@ -0,0 +1,56 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var hasOwn = require('../internals/has-own-property'); + +var $SyntaxError = SyntaxError; +var $parseInt = parseInt; +var fromCharCode = String.fromCharCode; +var at = uncurryThis(''.charAt); +var slice = uncurryThis(''.slice); +var exec = uncurryThis(/./.exec); + +var codePoints = { + '\\"': '"', + '\\\\': '\\', + '\\/': '/', + '\\b': '\b', + '\\f': '\f', + '\\n': '\n', + '\\r': '\r', + '\\t': '\t' +}; + +var IS_4_HEX_DIGITS = /^[\da-f]{4}$/i; +// eslint-disable-next-line regexp/no-control-character -- safe +var IS_C0_CONTROL_CODE = /^[\u0000-\u001F]$/; + +module.exports = function (source, i) { + var unterminated = true; + var value = ''; + while (i < source.length) { + var chr = at(source, i); + if (chr === '\\') { + var twoChars = slice(source, i, i + 2); + if (hasOwn(codePoints, twoChars)) { + value += codePoints[twoChars]; + i += 2; + } else if (twoChars === '\\u') { + i += 2; + var fourHexDigits = slice(source, i, i + 4); + if (!exec(IS_4_HEX_DIGITS, fourHexDigits)) throw new $SyntaxError('Bad Unicode escape at: ' + i); + value += fromCharCode($parseInt(fourHexDigits, 16)); + i += 4; + } else throw new $SyntaxError('Unknown escape sequence: "' + twoChars + '"'); + } else if (chr === '"') { + unterminated = false; + i++; + break; + } else { + if (exec(IS_C0_CONTROL_CODE, chr)) throw new $SyntaxError('Bad control character in string literal at: ' + i); + value += chr; + i++; + } + } + if (unterminated) throw new $SyntaxError('Unterminated string at: ' + i); + return { value: value, end: i }; +}; diff --git a/node_modules/core-js/internals/path.js b/node_modules/core-js/internals/path.js new file mode 100644 index 0000000..6c8b344 --- /dev/null +++ b/node_modules/core-js/internals/path.js @@ -0,0 +1,4 @@ +'use strict'; +var globalThis = require('../internals/global-this'); + +module.exports = globalThis; diff --git a/node_modules/core-js/internals/perform.js b/node_modules/core-js/internals/perform.js new file mode 100644 index 0000000..3100f09 --- /dev/null +++ b/node_modules/core-js/internals/perform.js @@ -0,0 +1,8 @@ +'use strict'; +module.exports = function (exec) { + try { + return { error: false, value: exec() }; + } catch (error) { + return { error: true, value: error }; + } +}; diff --git a/node_modules/core-js/internals/promise-constructor-detection.js b/node_modules/core-js/internals/promise-constructor-detection.js new file mode 100644 index 0000000..1c2e203 --- /dev/null +++ b/node_modules/core-js/internals/promise-constructor-detection.js @@ -0,0 +1,47 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var NativePromiseConstructor = require('../internals/promise-native-constructor'); +var isCallable = require('../internals/is-callable'); +var isForced = require('../internals/is-forced'); +var inspectSource = require('../internals/inspect-source'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var ENVIRONMENT = require('../internals/environment'); +var IS_PURE = require('../internals/is-pure'); +var V8_VERSION = require('../internals/environment-v8-version'); + +var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; +var SPECIES = wellKnownSymbol('species'); +var SUBCLASSING = false; +var NATIVE_PROMISE_REJECTION_EVENT = isCallable(globalThis.PromiseRejectionEvent); + +var FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () { + var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor); + var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor); + // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables + // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 + // We can't detect it synchronously, so just check versions + if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true; + // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution + if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true; + // We can't use @@species feature detection in V8 since it causes + // deoptimization and performance degradation + // https://github.com/zloirock/core-js/issues/679 + if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) { + // Detect correctness of subclassing with @@species support + var promise = new NativePromiseConstructor(function (resolve) { resolve(1); }); + var FakePromise = function (exec) { + exec(function () { /* empty */ }, function () { /* empty */ }); + }; + var constructor = promise.constructor = {}; + constructor[SPECIES] = FakePromise; + SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise; + if (!SUBCLASSING) return true; + // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test + } return !GLOBAL_CORE_JS_PROMISE && (ENVIRONMENT === 'BROWSER' || ENVIRONMENT === 'DENO') && !NATIVE_PROMISE_REJECTION_EVENT; +}); + +module.exports = { + CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR, + REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT, + SUBCLASSING: SUBCLASSING +}; diff --git a/node_modules/core-js/internals/promise-native-constructor.js b/node_modules/core-js/internals/promise-native-constructor.js new file mode 100644 index 0000000..4d126bc --- /dev/null +++ b/node_modules/core-js/internals/promise-native-constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var globalThis = require('../internals/global-this'); + +module.exports = globalThis.Promise; diff --git a/node_modules/core-js/internals/promise-resolve.js b/node_modules/core-js/internals/promise-resolve.js new file mode 100644 index 0000000..c562d9c --- /dev/null +++ b/node_modules/core-js/internals/promise-resolve.js @@ -0,0 +1,13 @@ +'use strict'; +var anObject = require('../internals/an-object'); +var isObject = require('../internals/is-object'); +var newPromiseCapability = require('../internals/new-promise-capability'); + +module.exports = function (C, x) { + anObject(C); + if (isObject(x) && x.constructor === C) return x; + var promiseCapability = newPromiseCapability.f(C); + var resolve = promiseCapability.resolve; + resolve(x); + return promiseCapability.promise; +}; diff --git a/node_modules/core-js/internals/promise-statics-incorrect-iteration.js b/node_modules/core-js/internals/promise-statics-incorrect-iteration.js new file mode 100644 index 0000000..21c0f22 --- /dev/null +++ b/node_modules/core-js/internals/promise-statics-incorrect-iteration.js @@ -0,0 +1,8 @@ +'use strict'; +var NativePromiseConstructor = require('../internals/promise-native-constructor'); +var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration'); +var FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR; + +module.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) { + NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ }); +}); diff --git a/node_modules/core-js/internals/proxy-accessor.js b/node_modules/core-js/internals/proxy-accessor.js new file mode 100644 index 0000000..8718bb7 --- /dev/null +++ b/node_modules/core-js/internals/proxy-accessor.js @@ -0,0 +1,10 @@ +'use strict'; +var defineProperty = require('../internals/object-define-property').f; + +module.exports = function (Target, Source, key) { + key in Target || defineProperty(Target, key, { + configurable: true, + get: function () { return Source[key]; }, + set: function (it) { Source[key] = it; } + }); +}; diff --git a/node_modules/core-js/internals/queue.js b/node_modules/core-js/internals/queue.js new file mode 100644 index 0000000..0785558 --- /dev/null +++ b/node_modules/core-js/internals/queue.js @@ -0,0 +1,25 @@ +'use strict'; +var Queue = function () { + this.head = null; + this.tail = null; +}; + +Queue.prototype = { + add: function (item) { + var entry = { item: item, next: null }; + var tail = this.tail; + if (tail) tail.next = entry; + else this.head = entry; + this.tail = entry; + }, + get: function () { + var entry = this.head; + if (entry) { + var next = this.head = entry.next; + if (next === null) this.tail = null; + return entry.item; + } + } +}; + +module.exports = Queue; diff --git a/node_modules/core-js/internals/reflect-metadata.js b/node_modules/core-js/internals/reflect-metadata.js new file mode 100644 index 0000000..8041616 --- /dev/null +++ b/node_modules/core-js/internals/reflect-metadata.js @@ -0,0 +1,62 @@ +'use strict'; +// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` +require('../modules/es.map'); +require('../modules/es.weak-map'); +var getBuiltIn = require('../internals/get-built-in'); +var uncurryThis = require('../internals/function-uncurry-this'); +var shared = require('../internals/shared'); + +var Map = getBuiltIn('Map'); +var WeakMap = getBuiltIn('WeakMap'); +var push = uncurryThis([].push); + +var metadata = shared('metadata'); +var store = metadata.store || (metadata.store = new WeakMap()); + +var getOrCreateMetadataMap = function (target, targetKey, create) { + var targetMetadata = store.get(target); + if (!targetMetadata) { + if (!create) return; + store.set(target, targetMetadata = new Map()); + } + var keyMetadata = targetMetadata.get(targetKey); + if (!keyMetadata) { + if (!create) return; + targetMetadata.set(targetKey, keyMetadata = new Map()); + } return keyMetadata; +}; + +var ordinaryHasOwnMetadata = function (MetadataKey, O, P) { + var metadataMap = getOrCreateMetadataMap(O, P, false); + return metadataMap === undefined ? false : metadataMap.has(MetadataKey); +}; + +var ordinaryGetOwnMetadata = function (MetadataKey, O, P) { + var metadataMap = getOrCreateMetadataMap(O, P, false); + return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey); +}; + +var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) { + getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue); +}; + +var ordinaryOwnMetadataKeys = function (target, targetKey) { + var metadataMap = getOrCreateMetadataMap(target, targetKey, false); + var keys = []; + if (metadataMap) metadataMap.forEach(function (_, key) { push(keys, key); }); + return keys; +}; + +var toMetadataKey = function (it) { + return it === undefined || typeof it == 'symbol' ? it : String(it); +}; + +module.exports = { + store: store, + getMap: getOrCreateMetadataMap, + has: ordinaryHasOwnMetadata, + get: ordinaryGetOwnMetadata, + set: ordinaryDefineOwnMetadata, + keys: ordinaryOwnMetadataKeys, + toKey: toMetadataKey +}; diff --git a/node_modules/core-js/internals/regexp-exec-abstract.js b/node_modules/core-js/internals/regexp-exec-abstract.js new file mode 100644 index 0000000..630d605 --- /dev/null +++ b/node_modules/core-js/internals/regexp-exec-abstract.js @@ -0,0 +1,21 @@ +'use strict'; +var call = require('../internals/function-call'); +var anObject = require('../internals/an-object'); +var isCallable = require('../internals/is-callable'); +var classof = require('../internals/classof-raw'); +var regexpExec = require('../internals/regexp-exec'); + +var $TypeError = TypeError; + +// `RegExpExec` abstract operation +// https://tc39.es/ecma262/#sec-regexpexec +module.exports = function (R, S) { + var exec = R.exec; + if (isCallable(exec)) { + var result = call(exec, R, S); + if (result !== null) anObject(result); + return result; + } + if (classof(R) === 'RegExp') return call(regexpExec, R, S); + throw new $TypeError('RegExp#exec called on incompatible receiver'); +}; diff --git a/node_modules/core-js/internals/regexp-exec.js b/node_modules/core-js/internals/regexp-exec.js new file mode 100644 index 0000000..a23cf2a --- /dev/null +++ b/node_modules/core-js/internals/regexp-exec.js @@ -0,0 +1,117 @@ +'use strict'; +/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ +/* eslint-disable regexp/no-useless-quantifier -- testing */ +var call = require('../internals/function-call'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toString = require('../internals/to-string'); +var regexpFlags = require('../internals/regexp-flags'); +var stickyHelpers = require('../internals/regexp-sticky-helpers'); +var shared = require('../internals/shared'); +var create = require('../internals/object-create'); +var getInternalState = require('../internals/internal-state').get; +var UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all'); +var UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg'); + +var nativeReplace = shared('native-string-replace', String.prototype.replace); +var nativeExec = RegExp.prototype.exec; +var patchedExec = nativeExec; +var charAt = uncurryThis(''.charAt); +var indexOf = uncurryThis(''.indexOf); +var replace = uncurryThis(''.replace); +var stringSlice = uncurryThis(''.slice); + +var UPDATES_LAST_INDEX_WRONG = (function () { + var re1 = /a/; + var re2 = /b*/g; + call(nativeExec, re1, 'a'); + call(nativeExec, re2, 'a'); + return re1.lastIndex !== 0 || re2.lastIndex !== 0; +})(); + +var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET; + +// nonparticipating capturing group, copied from es5-shim's String#split patch. +var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; + +var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG; + +if (PATCH) { + patchedExec = function exec(string) { + var re = this; + var state = getInternalState(re); + var str = toString(string); + var raw = state.raw; + var result, reCopy, lastIndex, match, i, object, group; + + if (raw) { + raw.lastIndex = re.lastIndex; + result = call(patchedExec, raw, str); + re.lastIndex = raw.lastIndex; + return result; + } + + var groups = state.groups; + var sticky = UNSUPPORTED_Y && re.sticky; + var flags = call(regexpFlags, re); + var source = re.source; + var charsAdded = 0; + var strCopy = str; + + if (sticky) { + flags = replace(flags, 'y', ''); + if (indexOf(flags, 'g') === -1) { + flags += 'g'; + } + + strCopy = stringSlice(str, re.lastIndex); + // Support anchored sticky behavior. + if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) { + source = '(?: ' + source + ')'; + strCopy = ' ' + strCopy; + charsAdded++; + } + // ^(? + rx + ) is needed, in combination with some str slicing, to + // simulate the 'y' flag. + reCopy = new RegExp('^(?:' + source + ')', flags); + } + + if (NPCG_INCLUDED) { + reCopy = new RegExp('^' + source + '$(?!\\s)', flags); + } + if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; + + match = call(nativeExec, sticky ? reCopy : re, strCopy); + + if (sticky) { + if (match) { + match.input = stringSlice(match.input, charsAdded); + match[0] = stringSlice(match[0], charsAdded); + match.index = re.lastIndex; + re.lastIndex += match[0].length; + } else re.lastIndex = 0; + } else if (UPDATES_LAST_INDEX_WRONG && match) { + re.lastIndex = re.global ? match.index + match[0].length : lastIndex; + } + if (NPCG_INCLUDED && match && match.length > 1) { + // Fix browsers whose `exec` methods don't consistently return `undefined` + // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/ + call(nativeReplace, match[0], reCopy, function () { + for (i = 1; i < arguments.length - 2; i++) { + if (arguments[i] === undefined) match[i] = undefined; + } + }); + } + + if (match && groups) { + match.groups = object = create(null); + for (i = 0; i < groups.length; i++) { + group = groups[i]; + object[group[0]] = match[group[1]]; + } + } + + return match; + }; +} + +module.exports = patchedExec; diff --git a/node_modules/core-js/internals/regexp-flags.js b/node_modules/core-js/internals/regexp-flags.js new file mode 100644 index 0000000..6d73e1c --- /dev/null +++ b/node_modules/core-js/internals/regexp-flags.js @@ -0,0 +1,18 @@ +'use strict'; +var anObject = require('../internals/an-object'); + +// `RegExp.prototype.flags` getter implementation +// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags +module.exports = function () { + var that = anObject(this); + var result = ''; + if (that.hasIndices) result += 'd'; + if (that.global) result += 'g'; + if (that.ignoreCase) result += 'i'; + if (that.multiline) result += 'm'; + if (that.dotAll) result += 's'; + if (that.unicode) result += 'u'; + if (that.unicodeSets) result += 'v'; + if (that.sticky) result += 'y'; + return result; +}; diff --git a/node_modules/core-js/internals/regexp-get-flags.js b/node_modules/core-js/internals/regexp-get-flags.js new file mode 100644 index 0000000..134ff74 --- /dev/null +++ b/node_modules/core-js/internals/regexp-get-flags.js @@ -0,0 +1,13 @@ +'use strict'; +var call = require('../internals/function-call'); +var hasOwn = require('../internals/has-own-property'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var regExpFlags = require('../internals/regexp-flags'); + +var RegExpPrototype = RegExp.prototype; + +module.exports = function (R) { + var flags = R.flags; + return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R) + ? call(regExpFlags, R) : flags; +}; diff --git a/node_modules/core-js/internals/regexp-sticky-helpers.js b/node_modules/core-js/internals/regexp-sticky-helpers.js new file mode 100644 index 0000000..7e266f2 --- /dev/null +++ b/node_modules/core-js/internals/regexp-sticky-helpers.js @@ -0,0 +1,31 @@ +'use strict'; +var fails = require('../internals/fails'); +var globalThis = require('../internals/global-this'); + +// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError +var $RegExp = globalThis.RegExp; + +var UNSUPPORTED_Y = fails(function () { + var re = $RegExp('a', 'y'); + re.lastIndex = 2; + return re.exec('abcd') !== null; +}); + +// UC Browser bug +// https://github.com/zloirock/core-js/issues/1008 +var MISSED_STICKY = UNSUPPORTED_Y || fails(function () { + return !$RegExp('a', 'y').sticky; +}); + +var BROKEN_CARET = UNSUPPORTED_Y || fails(function () { + // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 + var re = $RegExp('^r', 'gy'); + re.lastIndex = 2; + return re.exec('str') !== null; +}); + +module.exports = { + BROKEN_CARET: BROKEN_CARET, + MISSED_STICKY: MISSED_STICKY, + UNSUPPORTED_Y: UNSUPPORTED_Y +}; diff --git a/node_modules/core-js/internals/regexp-unsupported-dot-all.js b/node_modules/core-js/internals/regexp-unsupported-dot-all.js new file mode 100644 index 0000000..2ffb9d2 --- /dev/null +++ b/node_modules/core-js/internals/regexp-unsupported-dot-all.js @@ -0,0 +1,11 @@ +'use strict'; +var fails = require('../internals/fails'); +var globalThis = require('../internals/global-this'); + +// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError +var $RegExp = globalThis.RegExp; + +module.exports = fails(function () { + var re = $RegExp('.', 's'); + return !(re.dotAll && re.test('\n') && re.flags === 's'); +}); diff --git a/node_modules/core-js/internals/regexp-unsupported-ncg.js b/node_modules/core-js/internals/regexp-unsupported-ncg.js new file mode 100644 index 0000000..5fa1939 --- /dev/null +++ b/node_modules/core-js/internals/regexp-unsupported-ncg.js @@ -0,0 +1,12 @@ +'use strict'; +var fails = require('../internals/fails'); +var globalThis = require('../internals/global-this'); + +// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError +var $RegExp = globalThis.RegExp; + +module.exports = fails(function () { + var re = $RegExp('(?b)', 'g'); + return re.exec('b').groups.a !== 'b' || + 'b'.replace(re, '$c') !== 'bc'; +}); diff --git a/node_modules/core-js/internals/require-object-coercible.js b/node_modules/core-js/internals/require-object-coercible.js new file mode 100644 index 0000000..2a17058 --- /dev/null +++ b/node_modules/core-js/internals/require-object-coercible.js @@ -0,0 +1,11 @@ +'use strict'; +var isNullOrUndefined = require('../internals/is-null-or-undefined'); + +var $TypeError = TypeError; + +// `RequireObjectCoercible` abstract operation +// https://tc39.es/ecma262/#sec-requireobjectcoercible +module.exports = function (it) { + if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it); + return it; +}; diff --git a/node_modules/core-js/internals/safe-get-built-in.js b/node_modules/core-js/internals/safe-get-built-in.js new file mode 100644 index 0000000..7185174 --- /dev/null +++ b/node_modules/core-js/internals/safe-get-built-in.js @@ -0,0 +1,13 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var DESCRIPTORS = require('../internals/descriptors'); + +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + +// Avoid NodeJS experimental warning +module.exports = function (name) { + if (!DESCRIPTORS) return globalThis[name]; + var descriptor = getOwnPropertyDescriptor(globalThis, name); + return descriptor && descriptor.value; +}; diff --git a/node_modules/core-js/internals/same-value-zero.js b/node_modules/core-js/internals/same-value-zero.js new file mode 100644 index 0000000..be23857 --- /dev/null +++ b/node_modules/core-js/internals/same-value-zero.js @@ -0,0 +1,7 @@ +'use strict'; +// `SameValueZero` abstract operation +// https://tc39.es/ecma262/#sec-samevaluezero +module.exports = function (x, y) { + // eslint-disable-next-line no-self-compare -- NaN check + return x === y || x !== x && y !== y; +}; diff --git a/node_modules/core-js/internals/same-value.js b/node_modules/core-js/internals/same-value.js new file mode 100644 index 0000000..7b0d1dd --- /dev/null +++ b/node_modules/core-js/internals/same-value.js @@ -0,0 +1,8 @@ +'use strict'; +// `SameValue` abstract operation +// https://tc39.es/ecma262/#sec-samevalue +// eslint-disable-next-line es/no-object-is -- safe +module.exports = Object.is || function is(x, y) { + // eslint-disable-next-line no-self-compare -- NaN check + return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y; +}; diff --git a/node_modules/core-js/internals/schedulers-fix.js b/node_modules/core-js/internals/schedulers-fix.js new file mode 100644 index 0000000..6c1001c --- /dev/null +++ b/node_modules/core-js/internals/schedulers-fix.js @@ -0,0 +1,31 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var apply = require('../internals/function-apply'); +var isCallable = require('../internals/is-callable'); +var ENVIRONMENT = require('../internals/environment'); +var USER_AGENT = require('../internals/environment-user-agent'); +var arraySlice = require('../internals/array-slice'); +var validateArgumentsLength = require('../internals/validate-arguments-length'); + +var Function = globalThis.Function; +// dirty IE9- and Bun 0.3.0- checks +var WRAP = /MSIE .\./.test(USER_AGENT) || ENVIRONMENT === 'BUN' && (function () { + var version = globalThis.Bun.version.split('.'); + return version.length < 3 || version[0] === '0' && (version[1] < 3 || version[1] === '3' && version[2] === '0'); +})(); + +// IE9- / Bun 0.3.0- setTimeout / setInterval / setImmediate additional parameters fix +// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers +// https://github.com/oven-sh/bun/issues/1633 +module.exports = function (scheduler, hasTimeArg) { + var firstParamIndex = hasTimeArg ? 2 : 1; + return WRAP ? function (handler, timeout /* , ...arguments */) { + var boundArgs = validateArgumentsLength(arguments.length, 1) > firstParamIndex; + var fn = isCallable(handler) ? handler : Function(handler); + var params = boundArgs ? arraySlice(arguments, firstParamIndex) : []; + var callback = boundArgs ? function () { + apply(fn, this, params); + } : fn; + return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback); + } : scheduler; +}; diff --git a/node_modules/core-js/internals/set-clone.js b/node_modules/core-js/internals/set-clone.js new file mode 100644 index 0000000..07329f4 --- /dev/null +++ b/node_modules/core-js/internals/set-clone.js @@ -0,0 +1,14 @@ +'use strict'; +var SetHelpers = require('../internals/set-helpers'); +var iterate = require('../internals/set-iterate'); + +var Set = SetHelpers.Set; +var add = SetHelpers.add; + +module.exports = function (set) { + var result = new Set(); + iterate(set, function (it) { + add(result, it); + }); + return result; +}; diff --git a/node_modules/core-js/internals/set-difference.js b/node_modules/core-js/internals/set-difference.js new file mode 100644 index 0000000..cb21542 --- /dev/null +++ b/node_modules/core-js/internals/set-difference.js @@ -0,0 +1,26 @@ +'use strict'; +var aSet = require('../internals/a-set'); +var SetHelpers = require('../internals/set-helpers'); +var clone = require('../internals/set-clone'); +var size = require('../internals/set-size'); +var getSetRecord = require('../internals/get-set-record'); +var iterateSet = require('../internals/set-iterate'); +var iterateSimple = require('../internals/iterate-simple'); + +var has = SetHelpers.has; +var remove = SetHelpers.remove; + +// `Set.prototype.difference` method +// https://github.com/tc39/proposal-set-methods +module.exports = function difference(other) { + var O = aSet(this); + var otherRec = getSetRecord(other); + var result = clone(O); + if (size(O) <= otherRec.size) iterateSet(O, function (e) { + if (otherRec.includes(e)) remove(result, e); + }); + else iterateSimple(otherRec.getIterator(), function (e) { + if (has(O, e)) remove(result, e); + }); + return result; +}; diff --git a/node_modules/core-js/internals/set-helpers.js b/node_modules/core-js/internals/set-helpers.js new file mode 100644 index 0000000..f474987 --- /dev/null +++ b/node_modules/core-js/internals/set-helpers.js @@ -0,0 +1,14 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); + +// eslint-disable-next-line es/no-set -- safe +var SetPrototype = Set.prototype; + +module.exports = { + // eslint-disable-next-line es/no-set -- safe + Set: Set, + add: uncurryThis(SetPrototype.add), + has: uncurryThis(SetPrototype.has), + remove: uncurryThis(SetPrototype['delete']), + proto: SetPrototype +}; diff --git a/node_modules/core-js/internals/set-intersection.js b/node_modules/core-js/internals/set-intersection.js new file mode 100644 index 0000000..fd926f2 --- /dev/null +++ b/node_modules/core-js/internals/set-intersection.js @@ -0,0 +1,31 @@ +'use strict'; +var aSet = require('../internals/a-set'); +var SetHelpers = require('../internals/set-helpers'); +var size = require('../internals/set-size'); +var getSetRecord = require('../internals/get-set-record'); +var iterateSet = require('../internals/set-iterate'); +var iterateSimple = require('../internals/iterate-simple'); + +var Set = SetHelpers.Set; +var add = SetHelpers.add; +var has = SetHelpers.has; + +// `Set.prototype.intersection` method +// https://github.com/tc39/proposal-set-methods +module.exports = function intersection(other) { + var O = aSet(this); + var otherRec = getSetRecord(other); + var result = new Set(); + + if (size(O) > otherRec.size) { + iterateSimple(otherRec.getIterator(), function (e) { + if (has(O, e)) add(result, e); + }); + } else { + iterateSet(O, function (e) { + if (otherRec.includes(e)) add(result, e); + }); + } + + return result; +}; diff --git a/node_modules/core-js/internals/set-is-disjoint-from.js b/node_modules/core-js/internals/set-is-disjoint-from.js new file mode 100644 index 0000000..9f3c7b5 --- /dev/null +++ b/node_modules/core-js/internals/set-is-disjoint-from.js @@ -0,0 +1,22 @@ +'use strict'; +var aSet = require('../internals/a-set'); +var has = require('../internals/set-helpers').has; +var size = require('../internals/set-size'); +var getSetRecord = require('../internals/get-set-record'); +var iterateSet = require('../internals/set-iterate'); +var iterateSimple = require('../internals/iterate-simple'); +var iteratorClose = require('../internals/iterator-close'); + +// `Set.prototype.isDisjointFrom` method +// https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom +module.exports = function isDisjointFrom(other) { + var O = aSet(this); + var otherRec = getSetRecord(other); + if (size(O) <= otherRec.size) return iterateSet(O, function (e) { + if (otherRec.includes(e)) return false; + }, true) !== false; + var iterator = otherRec.getIterator(); + return iterateSimple(iterator, function (e) { + if (has(O, e)) return iteratorClose(iterator, 'normal', false); + }) !== false; +}; diff --git a/node_modules/core-js/internals/set-is-subset-of.js b/node_modules/core-js/internals/set-is-subset-of.js new file mode 100644 index 0000000..541c007 --- /dev/null +++ b/node_modules/core-js/internals/set-is-subset-of.js @@ -0,0 +1,16 @@ +'use strict'; +var aSet = require('../internals/a-set'); +var size = require('../internals/set-size'); +var iterate = require('../internals/set-iterate'); +var getSetRecord = require('../internals/get-set-record'); + +// `Set.prototype.isSubsetOf` method +// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf +module.exports = function isSubsetOf(other) { + var O = aSet(this); + var otherRec = getSetRecord(other); + if (size(O) > otherRec.size) return false; + return iterate(O, function (e) { + if (!otherRec.includes(e)) return false; + }, true) !== false; +}; diff --git a/node_modules/core-js/internals/set-is-superset-of.js b/node_modules/core-js/internals/set-is-superset-of.js new file mode 100644 index 0000000..0907424 --- /dev/null +++ b/node_modules/core-js/internals/set-is-superset-of.js @@ -0,0 +1,19 @@ +'use strict'; +var aSet = require('../internals/a-set'); +var has = require('../internals/set-helpers').has; +var size = require('../internals/set-size'); +var getSetRecord = require('../internals/get-set-record'); +var iterateSimple = require('../internals/iterate-simple'); +var iteratorClose = require('../internals/iterator-close'); + +// `Set.prototype.isSupersetOf` method +// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf +module.exports = function isSupersetOf(other) { + var O = aSet(this); + var otherRec = getSetRecord(other); + if (size(O) < otherRec.size) return false; + var iterator = otherRec.getIterator(); + return iterateSimple(iterator, function (e) { + if (!has(O, e)) return iteratorClose(iterator, 'normal', false); + }) !== false; +}; diff --git a/node_modules/core-js/internals/set-iterate.js b/node_modules/core-js/internals/set-iterate.js new file mode 100644 index 0000000..afbf910 --- /dev/null +++ b/node_modules/core-js/internals/set-iterate.js @@ -0,0 +1,14 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var iterateSimple = require('../internals/iterate-simple'); +var SetHelpers = require('../internals/set-helpers'); + +var Set = SetHelpers.Set; +var SetPrototype = SetHelpers.proto; +var forEach = uncurryThis(SetPrototype.forEach); +var keys = uncurryThis(SetPrototype.keys); +var next = keys(new Set()).next; + +module.exports = function (set, fn, interruptible) { + return interruptible ? iterateSimple({ iterator: keys(set), next: next }, fn) : forEach(set, fn); +}; diff --git a/node_modules/core-js/internals/set-method-accept-set-like.js b/node_modules/core-js/internals/set-method-accept-set-like.js new file mode 100644 index 0000000..6790879 --- /dev/null +++ b/node_modules/core-js/internals/set-method-accept-set-like.js @@ -0,0 +1,35 @@ +'use strict'; +var getBuiltIn = require('../internals/get-built-in'); + +var createSetLike = function (size) { + return { + size: size, + has: function () { + return false; + }, + keys: function () { + return { + next: function () { + return { done: true }; + } + }; + } + }; +}; + +module.exports = function (name) { + var Set = getBuiltIn('Set'); + try { + new Set()[name](createSetLike(0)); + try { + // late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it + // https://github.com/tc39/proposal-set-methods/pull/88 + new Set()[name](createSetLike(-1)); + return false; + } catch (error2) { + return true; + } + } catch (error) { + return false; + } +}; diff --git a/node_modules/core-js/internals/set-size.js b/node_modules/core-js/internals/set-size.js new file mode 100644 index 0000000..19df5c8 --- /dev/null +++ b/node_modules/core-js/internals/set-size.js @@ -0,0 +1,7 @@ +'use strict'; +var uncurryThisAccessor = require('../internals/function-uncurry-this-accessor'); +var SetHelpers = require('../internals/set-helpers'); + +module.exports = uncurryThisAccessor(SetHelpers.proto, 'size', 'get') || function (set) { + return set.size; +}; diff --git a/node_modules/core-js/internals/set-species.js b/node_modules/core-js/internals/set-species.js new file mode 100644 index 0000000..fd92a4d --- /dev/null +++ b/node_modules/core-js/internals/set-species.js @@ -0,0 +1,18 @@ +'use strict'; +var getBuiltIn = require('../internals/get-built-in'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var DESCRIPTORS = require('../internals/descriptors'); + +var SPECIES = wellKnownSymbol('species'); + +module.exports = function (CONSTRUCTOR_NAME) { + var Constructor = getBuiltIn(CONSTRUCTOR_NAME); + + if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) { + defineBuiltInAccessor(Constructor, SPECIES, { + configurable: true, + get: function () { return this; } + }); + } +}; diff --git a/node_modules/core-js/internals/set-symmetric-difference.js b/node_modules/core-js/internals/set-symmetric-difference.js new file mode 100644 index 0000000..acd1c46 --- /dev/null +++ b/node_modules/core-js/internals/set-symmetric-difference.js @@ -0,0 +1,23 @@ +'use strict'; +var aSet = require('../internals/a-set'); +var SetHelpers = require('../internals/set-helpers'); +var clone = require('../internals/set-clone'); +var getSetRecord = require('../internals/get-set-record'); +var iterateSimple = require('../internals/iterate-simple'); + +var add = SetHelpers.add; +var has = SetHelpers.has; +var remove = SetHelpers.remove; + +// `Set.prototype.symmetricDifference` method +// https://github.com/tc39/proposal-set-methods +module.exports = function symmetricDifference(other) { + var O = aSet(this); + var keysIter = getSetRecord(other).getIterator(); + var result = clone(O); + iterateSimple(keysIter, function (e) { + if (has(O, e)) remove(result, e); + else add(result, e); + }); + return result; +}; diff --git a/node_modules/core-js/internals/set-to-string-tag.js b/node_modules/core-js/internals/set-to-string-tag.js new file mode 100644 index 0000000..1dd0052 --- /dev/null +++ b/node_modules/core-js/internals/set-to-string-tag.js @@ -0,0 +1,13 @@ +'use strict'; +var defineProperty = require('../internals/object-define-property').f; +var hasOwn = require('../internals/has-own-property'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); + +module.exports = function (target, TAG, STATIC) { + if (target && !STATIC) target = target.prototype; + if (target && !hasOwn(target, TO_STRING_TAG)) { + defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG }); + } +}; diff --git a/node_modules/core-js/internals/set-union.js b/node_modules/core-js/internals/set-union.js new file mode 100644 index 0000000..51e38d0 --- /dev/null +++ b/node_modules/core-js/internals/set-union.js @@ -0,0 +1,18 @@ +'use strict'; +var aSet = require('../internals/a-set'); +var add = require('../internals/set-helpers').add; +var clone = require('../internals/set-clone'); +var getSetRecord = require('../internals/get-set-record'); +var iterateSimple = require('../internals/iterate-simple'); + +// `Set.prototype.union` method +// https://github.com/tc39/proposal-set-methods +module.exports = function union(other) { + var O = aSet(this); + var keysIter = getSetRecord(other).getIterator(); + var result = clone(O); + iterateSimple(keysIter, function (it) { + add(result, it); + }); + return result; +}; diff --git a/node_modules/core-js/internals/shared-key.js b/node_modules/core-js/internals/shared-key.js new file mode 100644 index 0000000..157f98e --- /dev/null +++ b/node_modules/core-js/internals/shared-key.js @@ -0,0 +1,9 @@ +'use strict'; +var shared = require('../internals/shared'); +var uid = require('../internals/uid'); + +var keys = shared('keys'); + +module.exports = function (key) { + return keys[key] || (keys[key] = uid(key)); +}; diff --git a/node_modules/core-js/internals/shared-store.js b/node_modules/core-js/internals/shared-store.js new file mode 100644 index 0000000..4164a48 --- /dev/null +++ b/node_modules/core-js/internals/shared-store.js @@ -0,0 +1,15 @@ +'use strict'; +var IS_PURE = require('../internals/is-pure'); +var globalThis = require('../internals/global-this'); +var defineGlobalProperty = require('../internals/define-global-property'); + +var SHARED = '__core-js_shared__'; +var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {}); + +(store.versions || (store.versions = [])).push({ + version: '3.38.1', + mode: IS_PURE ? 'pure' : 'global', + copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE', + source: 'https://github.com/zloirock/core-js' +}); diff --git a/node_modules/core-js/internals/shared.js b/node_modules/core-js/internals/shared.js new file mode 100644 index 0000000..29ac11c --- /dev/null +++ b/node_modules/core-js/internals/shared.js @@ -0,0 +1,6 @@ +'use strict'; +var store = require('../internals/shared-store'); + +module.exports = function (key, value) { + return store[key] || (store[key] = value || {}); +}; diff --git a/node_modules/core-js/internals/species-constructor.js b/node_modules/core-js/internals/species-constructor.js new file mode 100644 index 0000000..5627cde --- /dev/null +++ b/node_modules/core-js/internals/species-constructor.js @@ -0,0 +1,15 @@ +'use strict'; +var anObject = require('../internals/an-object'); +var aConstructor = require('../internals/a-constructor'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var SPECIES = wellKnownSymbol('species'); + +// `SpeciesConstructor` abstract operation +// https://tc39.es/ecma262/#sec-speciesconstructor +module.exports = function (O, defaultConstructor) { + var C = anObject(O).constructor; + var S; + return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S); +}; diff --git a/node_modules/core-js/internals/string-cooked.js b/node_modules/core-js/internals/string-cooked.js new file mode 100644 index 0000000..c0b58ea --- /dev/null +++ b/node_modules/core-js/internals/string-cooked.js @@ -0,0 +1,27 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var toIndexedObject = require('../internals/to-indexed-object'); +var toString = require('../internals/to-string'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); + +var $TypeError = TypeError; +var push = uncurryThis([].push); +var join = uncurryThis([].join); + +// `String.cooked` method +// https://tc39.es/proposal-string-cooked/ +module.exports = function cooked(template /* , ...substitutions */) { + var cookedTemplate = toIndexedObject(template); + var literalSegments = lengthOfArrayLike(cookedTemplate); + if (!literalSegments) return ''; + var argumentsLength = arguments.length; + var elements = []; + var i = 0; + while (true) { + var nextVal = cookedTemplate[i++]; + if (nextVal === undefined) throw new $TypeError('Incorrect template'); + push(elements, toString(nextVal)); + if (i === literalSegments) return join(elements, ''); + if (i < argumentsLength) push(elements, toString(arguments[i])); + } +}; diff --git a/node_modules/core-js/internals/string-html-forced.js b/node_modules/core-js/internals/string-html-forced.js new file mode 100644 index 0000000..d6470d0 --- /dev/null +++ b/node_modules/core-js/internals/string-html-forced.js @@ -0,0 +1,11 @@ +'use strict'; +var fails = require('../internals/fails'); + +// check the existence of a method, lowercase +// of a tag and escaping quotes in arguments +module.exports = function (METHOD_NAME) { + return fails(function () { + var test = ''[METHOD_NAME]('"'); + return test !== test.toLowerCase() || test.split('"').length > 3; + }); +}; diff --git a/node_modules/core-js/internals/string-multibyte.js b/node_modules/core-js/internals/string-multibyte.js new file mode 100644 index 0000000..d4093a7 --- /dev/null +++ b/node_modules/core-js/internals/string-multibyte.js @@ -0,0 +1,37 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var toString = require('../internals/to-string'); +var requireObjectCoercible = require('../internals/require-object-coercible'); + +var charAt = uncurryThis(''.charAt); +var charCodeAt = uncurryThis(''.charCodeAt); +var stringSlice = uncurryThis(''.slice); + +var createMethod = function (CONVERT_TO_STRING) { + return function ($this, pos) { + var S = toString(requireObjectCoercible($this)); + var position = toIntegerOrInfinity(pos); + var size = S.length; + var first, second; + if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; + first = charCodeAt(S, position); + return first < 0xD800 || first > 0xDBFF || position + 1 === size + || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF + ? CONVERT_TO_STRING + ? charAt(S, position) + : first + : CONVERT_TO_STRING + ? stringSlice(S, position, position + 2) + : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; + }; +}; + +module.exports = { + // `String.prototype.codePointAt` method + // https://tc39.es/ecma262/#sec-string.prototype.codepointat + codeAt: createMethod(false), + // `String.prototype.at` method + // https://github.com/mathiasbynens/String.prototype.at + charAt: createMethod(true) +}; diff --git a/node_modules/core-js/internals/string-pad-webkit-bug.js b/node_modules/core-js/internals/string-pad-webkit-bug.js new file mode 100644 index 0000000..e37987b --- /dev/null +++ b/node_modules/core-js/internals/string-pad-webkit-bug.js @@ -0,0 +1,5 @@ +'use strict'; +// https://github.com/zloirock/core-js/issues/280 +var userAgent = require('../internals/environment-user-agent'); + +module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent); diff --git a/node_modules/core-js/internals/string-pad.js b/node_modules/core-js/internals/string-pad.js new file mode 100644 index 0000000..419e904 --- /dev/null +++ b/node_modules/core-js/internals/string-pad.js @@ -0,0 +1,36 @@ +'use strict'; +// https://github.com/tc39/proposal-string-pad-start-end +var uncurryThis = require('../internals/function-uncurry-this'); +var toLength = require('../internals/to-length'); +var toString = require('../internals/to-string'); +var $repeat = require('../internals/string-repeat'); +var requireObjectCoercible = require('../internals/require-object-coercible'); + +var repeat = uncurryThis($repeat); +var stringSlice = uncurryThis(''.slice); +var ceil = Math.ceil; + +// `String.prototype.{ padStart, padEnd }` methods implementation +var createMethod = function (IS_END) { + return function ($this, maxLength, fillString) { + var S = toString(requireObjectCoercible($this)); + var intMaxLength = toLength(maxLength); + var stringLength = S.length; + var fillStr = fillString === undefined ? ' ' : toString(fillString); + var fillLen, stringFiller; + if (intMaxLength <= stringLength || fillStr === '') return S; + fillLen = intMaxLength - stringLength; + stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length)); + if (stringFiller.length > fillLen) stringFiller = stringSlice(stringFiller, 0, fillLen); + return IS_END ? S + stringFiller : stringFiller + S; + }; +}; + +module.exports = { + // `String.prototype.padStart` method + // https://tc39.es/ecma262/#sec-string.prototype.padstart + start: createMethod(false), + // `String.prototype.padEnd` method + // https://tc39.es/ecma262/#sec-string.prototype.padend + end: createMethod(true) +}; diff --git a/node_modules/core-js/internals/string-parse.js b/node_modules/core-js/internals/string-parse.js new file mode 100644 index 0000000..e7196f4 --- /dev/null +++ b/node_modules/core-js/internals/string-parse.js @@ -0,0 +1,119 @@ +'use strict'; +// adapted from https://github.com/jridgewell/string-dedent +var getBuiltIn = require('../internals/get-built-in'); +var uncurryThis = require('../internals/function-uncurry-this'); + +var fromCharCode = String.fromCharCode; +var fromCodePoint = getBuiltIn('String', 'fromCodePoint'); +var charAt = uncurryThis(''.charAt); +var charCodeAt = uncurryThis(''.charCodeAt); +var stringIndexOf = uncurryThis(''.indexOf); +var stringSlice = uncurryThis(''.slice); + +var ZERO_CODE = 48; +var NINE_CODE = 57; +var LOWER_A_CODE = 97; +var LOWER_F_CODE = 102; +var UPPER_A_CODE = 65; +var UPPER_F_CODE = 70; + +var isDigit = function (str, index) { + var c = charCodeAt(str, index); + return c >= ZERO_CODE && c <= NINE_CODE; +}; + +var parseHex = function (str, index, end) { + if (end >= str.length) return -1; + var n = 0; + for (; index < end; index++) { + var c = hexToInt(charCodeAt(str, index)); + if (c === -1) return -1; + n = n * 16 + c; + } + return n; +}; + +var hexToInt = function (c) { + if (c >= ZERO_CODE && c <= NINE_CODE) return c - ZERO_CODE; + if (c >= LOWER_A_CODE && c <= LOWER_F_CODE) return c - LOWER_A_CODE + 10; + if (c >= UPPER_A_CODE && c <= UPPER_F_CODE) return c - UPPER_A_CODE + 10; + return -1; +}; + +module.exports = function (raw) { + var out = ''; + var start = 0; + // We need to find every backslash escape sequence, and cook the escape into a real char. + var i = 0; + var n; + while ((i = stringIndexOf(raw, '\\', i)) > -1) { + out += stringSlice(raw, start, i); + // If the backslash is the last char of the string, then it was an invalid sequence. + // This can't actually happen in a tagged template literal, but could happen if you manually + // invoked the tag with an array. + if (++i === raw.length) return; + var next = charAt(raw, i++); + switch (next) { + // Escaped control codes need to be individually processed. + case 'b': + out += '\b'; + break; + case 't': + out += '\t'; + break; + case 'n': + out += '\n'; + break; + case 'v': + out += '\v'; + break; + case 'f': + out += '\f'; + break; + case 'r': + out += '\r'; + break; + // Escaped line terminators just skip the char. + case '\r': + // Treat `\r\n` as a single terminator. + if (i < raw.length && charAt(raw, i) === '\n') ++i; + // break omitted + case '\n': + case '\u2028': + case '\u2029': + break; + // `\0` is a null control char, but `\0` followed by another digit is an illegal octal escape. + case '0': + if (isDigit(raw, i)) return; + out += '\0'; + break; + // Hex escapes must contain 2 hex chars. + case 'x': + n = parseHex(raw, i, i + 2); + if (n === -1) return; + i += 2; + out += fromCharCode(n); + break; + // Unicode escapes contain either 4 chars, or an unlimited number between `{` and `}`. + // The hex value must not overflow 0x10FFFF. + case 'u': + if (i < raw.length && charAt(raw, i) === '{') { + var end = stringIndexOf(raw, '}', ++i); + if (end === -1) return; + n = parseHex(raw, i, end); + i = end + 1; + } else { + n = parseHex(raw, i, i + 4); + i += 4; + } + if (n === -1 || n > 0x10FFFF) return; + out += fromCodePoint(n); + break; + default: + if (isDigit(next, 0)) return; + out += next; + } + start = i; + } + return out + stringSlice(raw, start); +}; diff --git a/node_modules/core-js/internals/string-punycode-to-ascii.js b/node_modules/core-js/internals/string-punycode-to-ascii.js new file mode 100644 index 0000000..6e39746 --- /dev/null +++ b/node_modules/core-js/internals/string-punycode-to-ascii.js @@ -0,0 +1,181 @@ +'use strict'; +// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js +var uncurryThis = require('../internals/function-uncurry-this'); + +var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 +var base = 36; +var tMin = 1; +var tMax = 26; +var skew = 38; +var damp = 700; +var initialBias = 72; +var initialN = 128; // 0x80 +var delimiter = '-'; // '\x2D' +var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars +var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators +var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process'; +var baseMinusTMin = base - tMin; + +var $RangeError = RangeError; +var exec = uncurryThis(regexSeparators.exec); +var floor = Math.floor; +var fromCharCode = String.fromCharCode; +var charCodeAt = uncurryThis(''.charCodeAt); +var join = uncurryThis([].join); +var push = uncurryThis([].push); +var replace = uncurryThis(''.replace); +var split = uncurryThis(''.split); +var toLowerCase = uncurryThis(''.toLowerCase); + +/** + * Creates an array containing the numeric code points of each Unicode + * character in the string. While JavaScript uses UCS-2 internally, + * this function will convert a pair of surrogate halves (each of which + * UCS-2 exposes as separate characters) into a single code point, + * matching UTF-16. + */ +var ucs2decode = function (string) { + var output = []; + var counter = 0; + var length = string.length; + while (counter < length) { + var value = charCodeAt(string, counter++); + if (value >= 0xD800 && value <= 0xDBFF && counter < length) { + // It's a high surrogate, and there is a next character. + var extra = charCodeAt(string, counter++); + if ((extra & 0xFC00) === 0xDC00) { // Low surrogate. + push(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); + } else { + // It's an unmatched surrogate; only append this code unit, in case the + // next code unit is the high surrogate of a surrogate pair. + push(output, value); + counter--; + } + } else { + push(output, value); + } + } + return output; +}; + +/** + * Converts a digit/integer into a basic code point. + */ +var digitToBasic = function (digit) { + // 0..25 map to ASCII a..z or A..Z + // 26..35 map to ASCII 0..9 + return digit + 22 + 75 * (digit < 26); +}; + +/** + * Bias adaptation function as per section 3.4 of RFC 3492. + * https://tools.ietf.org/html/rfc3492#section-3.4 + */ +var adapt = function (delta, numPoints, firstTime) { + var k = 0; + delta = firstTime ? floor(delta / damp) : delta >> 1; + delta += floor(delta / numPoints); + while (delta > baseMinusTMin * tMax >> 1) { + delta = floor(delta / baseMinusTMin); + k += base; + } + return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); +}; + +/** + * Converts a string of Unicode symbols (e.g. a domain name label) to a + * Punycode string of ASCII-only symbols. + */ +var encode = function (input) { + var output = []; + + // Convert the input in UCS-2 to an array of Unicode code points. + input = ucs2decode(input); + + // Cache the length. + var inputLength = input.length; + + // Initialize the state. + var n = initialN; + var delta = 0; + var bias = initialBias; + var i, currentValue; + + // Handle the basic code points. + for (i = 0; i < input.length; i++) { + currentValue = input[i]; + if (currentValue < 0x80) { + push(output, fromCharCode(currentValue)); + } + } + + var basicLength = output.length; // number of basic code points. + var handledCPCount = basicLength; // number of code points that have been handled; + + // Finish the basic string with a delimiter unless it's empty. + if (basicLength) { + push(output, delimiter); + } + + // Main encoding loop: + while (handledCPCount < inputLength) { + // All non-basic code points < n have been handled already. Find the next larger one: + var m = maxInt; + for (i = 0; i < input.length; i++) { + currentValue = input[i]; + if (currentValue >= n && currentValue < m) { + m = currentValue; + } + } + + // Increase `delta` enough to advance the decoder's state to , but guard against overflow. + var handledCPCountPlusOne = handledCPCount + 1; + if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { + throw new $RangeError(OVERFLOW_ERROR); + } + + delta += (m - n) * handledCPCountPlusOne; + n = m; + + for (i = 0; i < input.length; i++) { + currentValue = input[i]; + if (currentValue < n && ++delta > maxInt) { + throw new $RangeError(OVERFLOW_ERROR); + } + if (currentValue === n) { + // Represent delta as a generalized variable-length integer. + var q = delta; + var k = base; + while (true) { + var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; + if (q < t) break; + var qMinusT = q - t; + var baseMinusT = base - t; + push(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT))); + q = floor(qMinusT / baseMinusT); + k += base; + } + + push(output, fromCharCode(digitToBasic(q))); + bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength); + delta = 0; + handledCPCount++; + } + } + + delta++; + n++; + } + return join(output, ''); +}; + +module.exports = function (input) { + var encoded = []; + var labels = split(replace(toLowerCase(input), regexSeparators, '\u002E'), '.'); + var i, label; + for (i = 0; i < labels.length; i++) { + label = labels[i]; + push(encoded, exec(regexNonASCII, label) ? 'xn--' + encode(label) : label); + } + return join(encoded, '.'); +}; diff --git a/node_modules/core-js/internals/string-repeat.js b/node_modules/core-js/internals/string-repeat.js new file mode 100644 index 0000000..5d0460e --- /dev/null +++ b/node_modules/core-js/internals/string-repeat.js @@ -0,0 +1,17 @@ +'use strict'; +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var toString = require('../internals/to-string'); +var requireObjectCoercible = require('../internals/require-object-coercible'); + +var $RangeError = RangeError; + +// `String.prototype.repeat` method implementation +// https://tc39.es/ecma262/#sec-string.prototype.repeat +module.exports = function repeat(count) { + var str = toString(requireObjectCoercible(this)); + var result = ''; + var n = toIntegerOrInfinity(count); + if (n < 0 || n === Infinity) throw new $RangeError('Wrong number of repetitions'); + for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str; + return result; +}; diff --git a/node_modules/core-js/internals/string-trim-end.js b/node_modules/core-js/internals/string-trim-end.js new file mode 100644 index 0000000..a57c7d6 --- /dev/null +++ b/node_modules/core-js/internals/string-trim-end.js @@ -0,0 +1,11 @@ +'use strict'; +var $trimEnd = require('../internals/string-trim').end; +var forcedStringTrimMethod = require('../internals/string-trim-forced'); + +// `String.prototype.{ trimEnd, trimRight }` method +// https://tc39.es/ecma262/#sec-string.prototype.trimend +// https://tc39.es/ecma262/#String.prototype.trimright +module.exports = forcedStringTrimMethod('trimEnd') ? function trimEnd() { + return $trimEnd(this); +// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe +} : ''.trimEnd; diff --git a/node_modules/core-js/internals/string-trim-forced.js b/node_modules/core-js/internals/string-trim-forced.js new file mode 100644 index 0000000..86b7160 --- /dev/null +++ b/node_modules/core-js/internals/string-trim-forced.js @@ -0,0 +1,16 @@ +'use strict'; +var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER; +var fails = require('../internals/fails'); +var whitespaces = require('../internals/whitespaces'); + +var non = '\u200B\u0085\u180E'; + +// check that a method works with the correct list +// of whitespaces and has a correct name +module.exports = function (METHOD_NAME) { + return fails(function () { + return !!whitespaces[METHOD_NAME]() + || non[METHOD_NAME]() !== non + || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME); + }); +}; diff --git a/node_modules/core-js/internals/string-trim-start.js b/node_modules/core-js/internals/string-trim-start.js new file mode 100644 index 0000000..b1e16cf --- /dev/null +++ b/node_modules/core-js/internals/string-trim-start.js @@ -0,0 +1,11 @@ +'use strict'; +var $trimStart = require('../internals/string-trim').start; +var forcedStringTrimMethod = require('../internals/string-trim-forced'); + +// `String.prototype.{ trimStart, trimLeft }` method +// https://tc39.es/ecma262/#sec-string.prototype.trimstart +// https://tc39.es/ecma262/#String.prototype.trimleft +module.exports = forcedStringTrimMethod('trimStart') ? function trimStart() { + return $trimStart(this); +// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe +} : ''.trimStart; diff --git a/node_modules/core-js/internals/string-trim.js b/node_modules/core-js/internals/string-trim.js new file mode 100644 index 0000000..01379b5 --- /dev/null +++ b/node_modules/core-js/internals/string-trim.js @@ -0,0 +1,31 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var toString = require('../internals/to-string'); +var whitespaces = require('../internals/whitespaces'); + +var replace = uncurryThis(''.replace); +var ltrim = RegExp('^[' + whitespaces + ']+'); +var rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$'); + +// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation +var createMethod = function (TYPE) { + return function ($this) { + var string = toString(requireObjectCoercible($this)); + if (TYPE & 1) string = replace(string, ltrim, ''); + if (TYPE & 2) string = replace(string, rtrim, '$1'); + return string; + }; +}; + +module.exports = { + // `String.prototype.{ trimLeft, trimStart }` methods + // https://tc39.es/ecma262/#sec-string.prototype.trimstart + start: createMethod(1), + // `String.prototype.{ trimRight, trimEnd }` methods + // https://tc39.es/ecma262/#sec-string.prototype.trimend + end: createMethod(2), + // `String.prototype.trim` method + // https://tc39.es/ecma262/#sec-string.prototype.trim + trim: createMethod(3) +}; diff --git a/node_modules/core-js/internals/structured-clone-proper-transfer.js b/node_modules/core-js/internals/structured-clone-proper-transfer.js new file mode 100644 index 0000000..eb57f29 --- /dev/null +++ b/node_modules/core-js/internals/structured-clone-proper-transfer.js @@ -0,0 +1,16 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var fails = require('../internals/fails'); +var V8 = require('../internals/environment-v8-version'); +var ENVIRONMENT = require('../internals/environment'); + +var structuredClone = globalThis.structuredClone; + +module.exports = !!structuredClone && !fails(function () { + // prevent V8 ArrayBufferDetaching protector cell invalidation and performance degradation + // https://github.com/zloirock/core-js/issues/679 + if ((ENVIRONMENT === 'DENO' && V8 > 92) || (ENVIRONMENT === 'NODE' && V8 > 94) || (ENVIRONMENT === 'BROWSER' && V8 > 97)) return false; + var buffer = new ArrayBuffer(8); + var clone = structuredClone(buffer, { transfer: [buffer] }); + return buffer.byteLength !== 0 || clone.byteLength !== 8; +}); diff --git a/node_modules/core-js/internals/symbol-constructor-detection.js b/node_modules/core-js/internals/symbol-constructor-detection.js new file mode 100644 index 0000000..2c421dd --- /dev/null +++ b/node_modules/core-js/internals/symbol-constructor-detection.js @@ -0,0 +1,19 @@ +'use strict'; +/* eslint-disable es/no-symbol -- required for testing */ +var V8_VERSION = require('../internals/environment-v8-version'); +var fails = require('../internals/fails'); +var globalThis = require('../internals/global-this'); + +var $String = globalThis.String; + +// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing +module.exports = !!Object.getOwnPropertySymbols && !fails(function () { + var symbol = Symbol('symbol detection'); + // Chrome 38 Symbol has incorrect toString conversion + // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances + // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will, + // of course, fail. + return !$String(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION && V8_VERSION < 41; +}); diff --git a/node_modules/core-js/internals/symbol-define-to-primitive.js b/node_modules/core-js/internals/symbol-define-to-primitive.js new file mode 100644 index 0000000..67fb785 --- /dev/null +++ b/node_modules/core-js/internals/symbol-define-to-primitive.js @@ -0,0 +1,21 @@ +'use strict'; +var call = require('../internals/function-call'); +var getBuiltIn = require('../internals/get-built-in'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var defineBuiltIn = require('../internals/define-built-in'); + +module.exports = function () { + var Symbol = getBuiltIn('Symbol'); + var SymbolPrototype = Symbol && Symbol.prototype; + var valueOf = SymbolPrototype && SymbolPrototype.valueOf; + var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); + + if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) { + // `Symbol.prototype[@@toPrimitive]` method + // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive + // eslint-disable-next-line no-unused-vars -- required for .length + defineBuiltIn(SymbolPrototype, TO_PRIMITIVE, function (hint) { + return call(valueOf, this); + }, { arity: 1 }); + } +}; diff --git a/node_modules/core-js/internals/symbol-is-registered.js b/node_modules/core-js/internals/symbol-is-registered.js new file mode 100644 index 0000000..9c35d70 --- /dev/null +++ b/node_modules/core-js/internals/symbol-is-registered.js @@ -0,0 +1,17 @@ +'use strict'; +var getBuiltIn = require('../internals/get-built-in'); +var uncurryThis = require('../internals/function-uncurry-this'); + +var Symbol = getBuiltIn('Symbol'); +var keyFor = Symbol.keyFor; +var thisSymbolValue = uncurryThis(Symbol.prototype.valueOf); + +// `Symbol.isRegisteredSymbol` method +// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol +module.exports = Symbol.isRegisteredSymbol || function isRegisteredSymbol(value) { + try { + return keyFor(thisSymbolValue(value)) !== undefined; + } catch (error) { + return false; + } +}; diff --git a/node_modules/core-js/internals/symbol-is-well-known.js b/node_modules/core-js/internals/symbol-is-well-known.js new file mode 100644 index 0000000..50ec53e --- /dev/null +++ b/node_modules/core-js/internals/symbol-is-well-known.js @@ -0,0 +1,35 @@ +'use strict'; +var shared = require('../internals/shared'); +var getBuiltIn = require('../internals/get-built-in'); +var uncurryThis = require('../internals/function-uncurry-this'); +var isSymbol = require('../internals/is-symbol'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var Symbol = getBuiltIn('Symbol'); +var $isWellKnownSymbol = Symbol.isWellKnownSymbol; +var getOwnPropertyNames = getBuiltIn('Object', 'getOwnPropertyNames'); +var thisSymbolValue = uncurryThis(Symbol.prototype.valueOf); +var WellKnownSymbolsStore = shared('wks'); + +for (var i = 0, symbolKeys = getOwnPropertyNames(Symbol), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) { + // some old engines throws on access to some keys like `arguments` or `caller` + try { + var symbolKey = symbolKeys[i]; + if (isSymbol(Symbol[symbolKey])) wellKnownSymbol(symbolKey); + } catch (error) { /* empty */ } +} + +// `Symbol.isWellKnownSymbol` method +// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol +// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected +module.exports = function isWellKnownSymbol(value) { + if ($isWellKnownSymbol && $isWellKnownSymbol(value)) return true; + try { + var symbol = thisSymbolValue(value); + for (var j = 0, keys = getOwnPropertyNames(WellKnownSymbolsStore), keysLength = keys.length; j < keysLength; j++) { + // eslint-disable-next-line eqeqeq -- polyfilled symbols case + if (WellKnownSymbolsStore[keys[j]] == symbol) return true; + } + } catch (error) { /* empty */ } + return false; +}; diff --git a/node_modules/core-js/internals/symbol-registry-detection.js b/node_modules/core-js/internals/symbol-registry-detection.js new file mode 100644 index 0000000..d6fec44 --- /dev/null +++ b/node_modules/core-js/internals/symbol-registry-detection.js @@ -0,0 +1,5 @@ +'use strict'; +var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); + +/* eslint-disable es/no-symbol -- safe */ +module.exports = NATIVE_SYMBOL && !!Symbol['for'] && !!Symbol.keyFor; diff --git a/node_modules/core-js/internals/task.js b/node_modules/core-js/internals/task.js new file mode 100644 index 0000000..691b36e --- /dev/null +++ b/node_modules/core-js/internals/task.js @@ -0,0 +1,117 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var apply = require('../internals/function-apply'); +var bind = require('../internals/function-bind-context'); +var isCallable = require('../internals/is-callable'); +var hasOwn = require('../internals/has-own-property'); +var fails = require('../internals/fails'); +var html = require('../internals/html'); +var arraySlice = require('../internals/array-slice'); +var createElement = require('../internals/document-create-element'); +var validateArgumentsLength = require('../internals/validate-arguments-length'); +var IS_IOS = require('../internals/environment-is-ios'); +var IS_NODE = require('../internals/environment-is-node'); + +var set = globalThis.setImmediate; +var clear = globalThis.clearImmediate; +var process = globalThis.process; +var Dispatch = globalThis.Dispatch; +var Function = globalThis.Function; +var MessageChannel = globalThis.MessageChannel; +var String = globalThis.String; +var counter = 0; +var queue = {}; +var ONREADYSTATECHANGE = 'onreadystatechange'; +var $location, defer, channel, port; + +fails(function () { + // Deno throws a ReferenceError on `location` access without `--location` flag + $location = globalThis.location; +}); + +var run = function (id) { + if (hasOwn(queue, id)) { + var fn = queue[id]; + delete queue[id]; + fn(); + } +}; + +var runner = function (id) { + return function () { + run(id); + }; +}; + +var eventListener = function (event) { + run(event.data); +}; + +var globalPostMessageDefer = function (id) { + // old engines have not location.origin + globalThis.postMessage(String(id), $location.protocol + '//' + $location.host); +}; + +// Node.js 0.9+ & IE10+ has setImmediate, otherwise: +if (!set || !clear) { + set = function setImmediate(handler) { + validateArgumentsLength(arguments.length, 1); + var fn = isCallable(handler) ? handler : Function(handler); + var args = arraySlice(arguments, 1); + queue[++counter] = function () { + apply(fn, undefined, args); + }; + defer(counter); + return counter; + }; + clear = function clearImmediate(id) { + delete queue[id]; + }; + // Node.js 0.8- + if (IS_NODE) { + defer = function (id) { + process.nextTick(runner(id)); + }; + // Sphere (JS game engine) Dispatch API + } else if (Dispatch && Dispatch.now) { + defer = function (id) { + Dispatch.now(runner(id)); + }; + // Browsers with MessageChannel, includes WebWorkers + // except iOS - https://github.com/zloirock/core-js/issues/624 + } else if (MessageChannel && !IS_IOS) { + channel = new MessageChannel(); + port = channel.port2; + channel.port1.onmessage = eventListener; + defer = bind(port.postMessage, port); + // Browsers with postMessage, skip WebWorkers + // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' + } else if ( + globalThis.addEventListener && + isCallable(globalThis.postMessage) && + !globalThis.importScripts && + $location && $location.protocol !== 'file:' && + !fails(globalPostMessageDefer) + ) { + defer = globalPostMessageDefer; + globalThis.addEventListener('message', eventListener, false); + // IE8- + } else if (ONREADYSTATECHANGE in createElement('script')) { + defer = function (id) { + html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () { + html.removeChild(this); + run(id); + }; + }; + // Rest old browsers + } else { + defer = function (id) { + setTimeout(runner(id), 0); + }; + } +} + +module.exports = { + set: set, + clear: clear +}; diff --git a/node_modules/core-js/internals/this-number-value.js b/node_modules/core-js/internals/this-number-value.js new file mode 100644 index 0000000..9bd6e3d --- /dev/null +++ b/node_modules/core-js/internals/this-number-value.js @@ -0,0 +1,6 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); + +// `thisNumberValue` abstract operation +// https://tc39.es/ecma262/#sec-thisnumbervalue +module.exports = uncurryThis(1.0.valueOf); diff --git a/node_modules/core-js/internals/to-absolute-index.js b/node_modules/core-js/internals/to-absolute-index.js new file mode 100644 index 0000000..11899b3 --- /dev/null +++ b/node_modules/core-js/internals/to-absolute-index.js @@ -0,0 +1,13 @@ +'use strict'; +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); + +var max = Math.max; +var min = Math.min; + +// Helper for a popular repeating case of the spec: +// Let integer be ? ToInteger(index). +// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). +module.exports = function (index, length) { + var integer = toIntegerOrInfinity(index); + return integer < 0 ? max(integer + length, 0) : min(integer, length); +}; diff --git a/node_modules/core-js/internals/to-big-int.js b/node_modules/core-js/internals/to-big-int.js new file mode 100644 index 0000000..4e36df9 --- /dev/null +++ b/node_modules/core-js/internals/to-big-int.js @@ -0,0 +1,13 @@ +'use strict'; +var toPrimitive = require('../internals/to-primitive'); + +var $TypeError = TypeError; + +// `ToBigInt` abstract operation +// https://tc39.es/ecma262/#sec-tobigint +module.exports = function (argument) { + var prim = toPrimitive(argument, 'number'); + if (typeof prim == 'number') throw new $TypeError("Can't convert number to bigint"); + // eslint-disable-next-line es/no-bigint -- safe + return BigInt(prim); +}; diff --git a/node_modules/core-js/internals/to-index.js b/node_modules/core-js/internals/to-index.js new file mode 100644 index 0000000..6333381 --- /dev/null +++ b/node_modules/core-js/internals/to-index.js @@ -0,0 +1,15 @@ +'use strict'; +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var toLength = require('../internals/to-length'); + +var $RangeError = RangeError; + +// `ToIndex` abstract operation +// https://tc39.es/ecma262/#sec-toindex +module.exports = function (it) { + if (it === undefined) return 0; + var number = toIntegerOrInfinity(it); + var length = toLength(number); + if (number !== length) throw new $RangeError('Wrong length or index'); + return length; +}; diff --git a/node_modules/core-js/internals/to-indexed-object.js b/node_modules/core-js/internals/to-indexed-object.js new file mode 100644 index 0000000..74d66d2 --- /dev/null +++ b/node_modules/core-js/internals/to-indexed-object.js @@ -0,0 +1,8 @@ +'use strict'; +// toObject with fallback for non-array-like ES3 strings +var IndexedObject = require('../internals/indexed-object'); +var requireObjectCoercible = require('../internals/require-object-coercible'); + +module.exports = function (it) { + return IndexedObject(requireObjectCoercible(it)); +}; diff --git a/node_modules/core-js/internals/to-integer-or-infinity.js b/node_modules/core-js/internals/to-integer-or-infinity.js new file mode 100644 index 0000000..8b27797 --- /dev/null +++ b/node_modules/core-js/internals/to-integer-or-infinity.js @@ -0,0 +1,10 @@ +'use strict'; +var trunc = require('../internals/math-trunc'); + +// `ToIntegerOrInfinity` abstract operation +// https://tc39.es/ecma262/#sec-tointegerorinfinity +module.exports = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); +}; diff --git a/node_modules/core-js/internals/to-length.js b/node_modules/core-js/internals/to-length.js new file mode 100644 index 0000000..3166ef5 --- /dev/null +++ b/node_modules/core-js/internals/to-length.js @@ -0,0 +1,11 @@ +'use strict'; +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); + +var min = Math.min; + +// `ToLength` abstract operation +// https://tc39.es/ecma262/#sec-tolength +module.exports = function (argument) { + var len = toIntegerOrInfinity(argument); + return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 +}; diff --git a/node_modules/core-js/internals/to-object.js b/node_modules/core-js/internals/to-object.js new file mode 100644 index 0000000..e5c736a --- /dev/null +++ b/node_modules/core-js/internals/to-object.js @@ -0,0 +1,10 @@ +'use strict'; +var requireObjectCoercible = require('../internals/require-object-coercible'); + +var $Object = Object; + +// `ToObject` abstract operation +// https://tc39.es/ecma262/#sec-toobject +module.exports = function (argument) { + return $Object(requireObjectCoercible(argument)); +}; diff --git a/node_modules/core-js/internals/to-offset.js b/node_modules/core-js/internals/to-offset.js new file mode 100644 index 0000000..7376f6f --- /dev/null +++ b/node_modules/core-js/internals/to-offset.js @@ -0,0 +1,10 @@ +'use strict'; +var toPositiveInteger = require('../internals/to-positive-integer'); + +var $RangeError = RangeError; + +module.exports = function (it, BYTES) { + var offset = toPositiveInteger(it); + if (offset % BYTES) throw new $RangeError('Wrong offset'); + return offset; +}; diff --git a/node_modules/core-js/internals/to-positive-integer.js b/node_modules/core-js/internals/to-positive-integer.js new file mode 100644 index 0000000..5376f51 --- /dev/null +++ b/node_modules/core-js/internals/to-positive-integer.js @@ -0,0 +1,10 @@ +'use strict'; +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); + +var $RangeError = RangeError; + +module.exports = function (it) { + var result = toIntegerOrInfinity(it); + if (result < 0) throw new $RangeError("The argument can't be less than 0"); + return result; +}; diff --git a/node_modules/core-js/internals/to-primitive.js b/node_modules/core-js/internals/to-primitive.js new file mode 100644 index 0000000..a751843 --- /dev/null +++ b/node_modules/core-js/internals/to-primitive.js @@ -0,0 +1,26 @@ +'use strict'; +var call = require('../internals/function-call'); +var isObject = require('../internals/is-object'); +var isSymbol = require('../internals/is-symbol'); +var getMethod = require('../internals/get-method'); +var ordinaryToPrimitive = require('../internals/ordinary-to-primitive'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var $TypeError = TypeError; +var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); + +// `ToPrimitive` abstract operation +// https://tc39.es/ecma262/#sec-toprimitive +module.exports = function (input, pref) { + if (!isObject(input) || isSymbol(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call(exoticToPrim, input, pref); + if (!isObject(result) || isSymbol(result)) return result; + throw new $TypeError("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); +}; diff --git a/node_modules/core-js/internals/to-property-key.js b/node_modules/core-js/internals/to-property-key.js new file mode 100644 index 0000000..f11cf99 --- /dev/null +++ b/node_modules/core-js/internals/to-property-key.js @@ -0,0 +1,10 @@ +'use strict'; +var toPrimitive = require('../internals/to-primitive'); +var isSymbol = require('../internals/is-symbol'); + +// `ToPropertyKey` abstract operation +// https://tc39.es/ecma262/#sec-topropertykey +module.exports = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; +}; diff --git a/node_modules/core-js/internals/to-set-like.js b/node_modules/core-js/internals/to-set-like.js new file mode 100644 index 0000000..dcdbda3 --- /dev/null +++ b/node_modules/core-js/internals/to-set-like.js @@ -0,0 +1,20 @@ +'use strict'; +var getBuiltIn = require('../internals/get-built-in'); +var isCallable = require('../internals/is-callable'); +var isIterable = require('../internals/is-iterable'); +var isObject = require('../internals/is-object'); + +var Set = getBuiltIn('Set'); + +var isSetLike = function (it) { + return isObject(it) + && typeof it.size == 'number' + && isCallable(it.has) + && isCallable(it.keys); +}; + +// fallback old -> new set methods proposal arguments +module.exports = function (it) { + if (isSetLike(it)) return it; + return isIterable(it) ? new Set(it) : it; +}; diff --git a/node_modules/core-js/internals/to-string-tag-support.js b/node_modules/core-js/internals/to-string-tag-support.js new file mode 100644 index 0000000..916a788 --- /dev/null +++ b/node_modules/core-js/internals/to-string-tag-support.js @@ -0,0 +1,9 @@ +'use strict'; +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var test = {}; + +test[TO_STRING_TAG] = 'z'; + +module.exports = String(test) === '[object z]'; diff --git a/node_modules/core-js/internals/to-string.js b/node_modules/core-js/internals/to-string.js new file mode 100644 index 0000000..0b0fae5 --- /dev/null +++ b/node_modules/core-js/internals/to-string.js @@ -0,0 +1,9 @@ +'use strict'; +var classof = require('../internals/classof'); + +var $String = String; + +module.exports = function (argument) { + if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string'); + return $String(argument); +}; diff --git a/node_modules/core-js/internals/to-uint8-clamped.js b/node_modules/core-js/internals/to-uint8-clamped.js new file mode 100644 index 0000000..f4bda19 --- /dev/null +++ b/node_modules/core-js/internals/to-uint8-clamped.js @@ -0,0 +1,7 @@ +'use strict'; +var round = Math.round; + +module.exports = function (it) { + var value = round(it); + return value < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF; +}; diff --git a/node_modules/core-js/internals/try-to-string.js b/node_modules/core-js/internals/try-to-string.js new file mode 100644 index 0000000..8f2357d --- /dev/null +++ b/node_modules/core-js/internals/try-to-string.js @@ -0,0 +1,10 @@ +'use strict'; +var $String = String; + +module.exports = function (argument) { + try { + return $String(argument); + } catch (error) { + return 'Object'; + } +}; diff --git a/node_modules/core-js/internals/typed-array-constructor.js b/node_modules/core-js/internals/typed-array-constructor.js new file mode 100644 index 0000000..b7046a3 --- /dev/null +++ b/node_modules/core-js/internals/typed-array-constructor.js @@ -0,0 +1,236 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var call = require('../internals/function-call'); +var DESCRIPTORS = require('../internals/descriptors'); +var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers'); +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var ArrayBufferModule = require('../internals/array-buffer'); +var anInstance = require('../internals/an-instance'); +var createPropertyDescriptor = require('../internals/create-property-descriptor'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var isIntegralNumber = require('../internals/is-integral-number'); +var toLength = require('../internals/to-length'); +var toIndex = require('../internals/to-index'); +var toOffset = require('../internals/to-offset'); +var toUint8Clamped = require('../internals/to-uint8-clamped'); +var toPropertyKey = require('../internals/to-property-key'); +var hasOwn = require('../internals/has-own-property'); +var classof = require('../internals/classof'); +var isObject = require('../internals/is-object'); +var isSymbol = require('../internals/is-symbol'); +var create = require('../internals/object-create'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var setPrototypeOf = require('../internals/object-set-prototype-of'); +var getOwnPropertyNames = require('../internals/object-get-own-property-names').f; +var typedArrayFrom = require('../internals/typed-array-from'); +var forEach = require('../internals/array-iteration').forEach; +var setSpecies = require('../internals/set-species'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var definePropertyModule = require('../internals/object-define-property'); +var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor'); +var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list'); +var InternalStateModule = require('../internals/internal-state'); +var inheritIfRequired = require('../internals/inherit-if-required'); + +var getInternalState = InternalStateModule.get; +var setInternalState = InternalStateModule.set; +var enforceInternalState = InternalStateModule.enforce; +var nativeDefineProperty = definePropertyModule.f; +var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; +var RangeError = globalThis.RangeError; +var ArrayBuffer = ArrayBufferModule.ArrayBuffer; +var ArrayBufferPrototype = ArrayBuffer.prototype; +var DataView = ArrayBufferModule.DataView; +var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS; +var TYPED_ARRAY_TAG = ArrayBufferViewCore.TYPED_ARRAY_TAG; +var TypedArray = ArrayBufferViewCore.TypedArray; +var TypedArrayPrototype = ArrayBufferViewCore.TypedArrayPrototype; +var isTypedArray = ArrayBufferViewCore.isTypedArray; +var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT'; +var WRONG_LENGTH = 'Wrong length'; + +var addGetter = function (it, key) { + defineBuiltInAccessor(it, key, { + configurable: true, + get: function () { + return getInternalState(this)[key]; + } + }); +}; + +var isArrayBuffer = function (it) { + var klass; + return isPrototypeOf(ArrayBufferPrototype, it) || (klass = classof(it)) === 'ArrayBuffer' || klass === 'SharedArrayBuffer'; +}; + +var isTypedArrayIndex = function (target, key) { + return isTypedArray(target) + && !isSymbol(key) + && key in target + && isIntegralNumber(+key) + && key >= 0; +}; + +var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) { + key = toPropertyKey(key); + return isTypedArrayIndex(target, key) + ? createPropertyDescriptor(2, target[key]) + : nativeGetOwnPropertyDescriptor(target, key); +}; + +var wrappedDefineProperty = function defineProperty(target, key, descriptor) { + key = toPropertyKey(key); + if (isTypedArrayIndex(target, key) + && isObject(descriptor) + && hasOwn(descriptor, 'value') + && !hasOwn(descriptor, 'get') + && !hasOwn(descriptor, 'set') + // TODO: add validation descriptor w/o calling accessors + && !descriptor.configurable + && (!hasOwn(descriptor, 'writable') || descriptor.writable) + && (!hasOwn(descriptor, 'enumerable') || descriptor.enumerable) + ) { + target[key] = descriptor.value; + return target; + } return nativeDefineProperty(target, key, descriptor); +}; + +if (DESCRIPTORS) { + if (!NATIVE_ARRAY_BUFFER_VIEWS) { + getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor; + definePropertyModule.f = wrappedDefineProperty; + addGetter(TypedArrayPrototype, 'buffer'); + addGetter(TypedArrayPrototype, 'byteOffset'); + addGetter(TypedArrayPrototype, 'byteLength'); + addGetter(TypedArrayPrototype, 'length'); + } + + $({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, { + getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor, + defineProperty: wrappedDefineProperty + }); + + module.exports = function (TYPE, wrapper, CLAMPED) { + var BYTES = TYPE.match(/\d+/)[0] / 8; + var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array'; + var GETTER = 'get' + TYPE; + var SETTER = 'set' + TYPE; + var NativeTypedArrayConstructor = globalThis[CONSTRUCTOR_NAME]; + var TypedArrayConstructor = NativeTypedArrayConstructor; + var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype; + var exported = {}; + + var getter = function (that, index) { + var data = getInternalState(that); + return data.view[GETTER](index * BYTES + data.byteOffset, true); + }; + + var setter = function (that, index, value) { + var data = getInternalState(that); + data.view[SETTER](index * BYTES + data.byteOffset, CLAMPED ? toUint8Clamped(value) : value, true); + }; + + var addElement = function (that, index) { + nativeDefineProperty(that, index, { + get: function () { + return getter(this, index); + }, + set: function (value) { + return setter(this, index, value); + }, + enumerable: true + }); + }; + + if (!NATIVE_ARRAY_BUFFER_VIEWS) { + TypedArrayConstructor = wrapper(function (that, data, offset, $length) { + anInstance(that, TypedArrayConstructorPrototype); + var index = 0; + var byteOffset = 0; + var buffer, byteLength, length; + if (!isObject(data)) { + length = toIndex(data); + byteLength = length * BYTES; + buffer = new ArrayBuffer(byteLength); + } else if (isArrayBuffer(data)) { + buffer = data; + byteOffset = toOffset(offset, BYTES); + var $len = data.byteLength; + if ($length === undefined) { + if ($len % BYTES) throw new RangeError(WRONG_LENGTH); + byteLength = $len - byteOffset; + if (byteLength < 0) throw new RangeError(WRONG_LENGTH); + } else { + byteLength = toLength($length) * BYTES; + if (byteLength + byteOffset > $len) throw new RangeError(WRONG_LENGTH); + } + length = byteLength / BYTES; + } else if (isTypedArray(data)) { + return arrayFromConstructorAndList(TypedArrayConstructor, data); + } else { + return call(typedArrayFrom, TypedArrayConstructor, data); + } + setInternalState(that, { + buffer: buffer, + byteOffset: byteOffset, + byteLength: byteLength, + length: length, + view: new DataView(buffer) + }); + while (index < length) addElement(that, index++); + }); + + if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray); + TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype); + } else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) { + TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) { + anInstance(dummy, TypedArrayConstructorPrototype); + return inheritIfRequired(function () { + if (!isObject(data)) return new NativeTypedArrayConstructor(toIndex(data)); + if (isArrayBuffer(data)) return $length !== undefined + ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES), $length) + : typedArrayOffset !== undefined + ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES)) + : new NativeTypedArrayConstructor(data); + if (isTypedArray(data)) return arrayFromConstructorAndList(TypedArrayConstructor, data); + return call(typedArrayFrom, TypedArrayConstructor, data); + }(), dummy, TypedArrayConstructor); + }); + + if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray); + forEach(getOwnPropertyNames(NativeTypedArrayConstructor), function (key) { + if (!(key in TypedArrayConstructor)) { + createNonEnumerableProperty(TypedArrayConstructor, key, NativeTypedArrayConstructor[key]); + } + }); + TypedArrayConstructor.prototype = TypedArrayConstructorPrototype; + } + + if (TypedArrayConstructorPrototype.constructor !== TypedArrayConstructor) { + createNonEnumerableProperty(TypedArrayConstructorPrototype, 'constructor', TypedArrayConstructor); + } + + enforceInternalState(TypedArrayConstructorPrototype).TypedArrayConstructor = TypedArrayConstructor; + + if (TYPED_ARRAY_TAG) { + createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME); + } + + var FORCED = TypedArrayConstructor !== NativeTypedArrayConstructor; + + exported[CONSTRUCTOR_NAME] = TypedArrayConstructor; + + $({ global: true, constructor: true, forced: FORCED, sham: !NATIVE_ARRAY_BUFFER_VIEWS }, exported); + + if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) { + createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES); + } + + if (!(BYTES_PER_ELEMENT in TypedArrayConstructorPrototype)) { + createNonEnumerableProperty(TypedArrayConstructorPrototype, BYTES_PER_ELEMENT, BYTES); + } + + setSpecies(CONSTRUCTOR_NAME); + }; +} else module.exports = function () { /* empty */ }; diff --git a/node_modules/core-js/internals/typed-array-constructors-require-wrappers.js b/node_modules/core-js/internals/typed-array-constructors-require-wrappers.js new file mode 100644 index 0000000..7b170a6 --- /dev/null +++ b/node_modules/core-js/internals/typed-array-constructors-require-wrappers.js @@ -0,0 +1,23 @@ +'use strict'; +/* eslint-disable no-new, sonar/inconsistent-function-call -- required for testing */ +var globalThis = require('../internals/global-this'); +var fails = require('../internals/fails'); +var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration'); +var NATIVE_ARRAY_BUFFER_VIEWS = require('../internals/array-buffer-view-core').NATIVE_ARRAY_BUFFER_VIEWS; + +var ArrayBuffer = globalThis.ArrayBuffer; +var Int8Array = globalThis.Int8Array; + +module.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function () { + Int8Array(1); +}) || !fails(function () { + new Int8Array(-1); +}) || !checkCorrectnessOfIteration(function (iterable) { + new Int8Array(); + new Int8Array(null); + new Int8Array(1.5); + new Int8Array(iterable); +}, true) || fails(function () { + // Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill + return new Int8Array(new ArrayBuffer(2), 1, undefined).length !== 1; +}); diff --git a/node_modules/core-js/internals/typed-array-from-species-and-list.js b/node_modules/core-js/internals/typed-array-from-species-and-list.js new file mode 100644 index 0000000..9417080 --- /dev/null +++ b/node_modules/core-js/internals/typed-array-from-species-and-list.js @@ -0,0 +1,7 @@ +'use strict'; +var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list'); +var typedArraySpeciesConstructor = require('../internals/typed-array-species-constructor'); + +module.exports = function (instance, list) { + return arrayFromConstructorAndList(typedArraySpeciesConstructor(instance), list); +}; diff --git a/node_modules/core-js/internals/typed-array-from.js b/node_modules/core-js/internals/typed-array-from.js new file mode 100644 index 0000000..f9cf1da --- /dev/null +++ b/node_modules/core-js/internals/typed-array-from.js @@ -0,0 +1,42 @@ +'use strict'; +var bind = require('../internals/function-bind-context'); +var call = require('../internals/function-call'); +var aConstructor = require('../internals/a-constructor'); +var toObject = require('../internals/to-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var getIterator = require('../internals/get-iterator'); +var getIteratorMethod = require('../internals/get-iterator-method'); +var isArrayIteratorMethod = require('../internals/is-array-iterator-method'); +var isBigIntArray = require('../internals/is-big-int-array'); +var aTypedArrayConstructor = require('../internals/array-buffer-view-core').aTypedArrayConstructor; +var toBigInt = require('../internals/to-big-int'); + +module.exports = function from(source /* , mapfn, thisArg */) { + var C = aConstructor(this); + var O = toObject(source); + var argumentsLength = arguments.length; + var mapfn = argumentsLength > 1 ? arguments[1] : undefined; + var mapping = mapfn !== undefined; + var iteratorMethod = getIteratorMethod(O); + var i, length, result, thisIsBigIntArray, value, step, iterator, next; + if (iteratorMethod && !isArrayIteratorMethod(iteratorMethod)) { + iterator = getIterator(O, iteratorMethod); + next = iterator.next; + O = []; + while (!(step = call(next, iterator)).done) { + O.push(step.value); + } + } + if (mapping && argumentsLength > 2) { + mapfn = bind(mapfn, arguments[2]); + } + length = lengthOfArrayLike(O); + result = new (aTypedArrayConstructor(C))(length); + thisIsBigIntArray = isBigIntArray(result); + for (i = 0; length > i; i++) { + value = mapping ? mapfn(O[i], i) : O[i]; + // FF30- typed arrays doesn't properly convert objects to typed array values + result[i] = thisIsBigIntArray ? toBigInt(value) : +value; + } + return result; +}; diff --git a/node_modules/core-js/internals/typed-array-species-constructor.js b/node_modules/core-js/internals/typed-array-species-constructor.js new file mode 100644 index 0000000..4e1e235 --- /dev/null +++ b/node_modules/core-js/internals/typed-array-species-constructor.js @@ -0,0 +1,12 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var speciesConstructor = require('../internals/species-constructor'); + +var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor; +var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; + +// a part of `TypedArraySpeciesCreate` abstract operation +// https://tc39.es/ecma262/#typedarray-species-create +module.exports = function (originalArray) { + return aTypedArrayConstructor(speciesConstructor(originalArray, getTypedArrayConstructor(originalArray))); +}; diff --git a/node_modules/core-js/internals/uid.js b/node_modules/core-js/internals/uid.js new file mode 100644 index 0000000..c02c401 --- /dev/null +++ b/node_modules/core-js/internals/uid.js @@ -0,0 +1,10 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); + +var id = 0; +var postfix = Math.random(); +var toString = uncurryThis(1.0.toString); + +module.exports = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); +}; diff --git a/node_modules/core-js/internals/uint8-from-base64.js b/node_modules/core-js/internals/uint8-from-base64.js new file mode 100644 index 0000000..1297e0c --- /dev/null +++ b/node_modules/core-js/internals/uint8-from-base64.js @@ -0,0 +1,156 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this'); +var anObjectOrUndefined = require('../internals/an-object-or-undefined'); +var aString = require('../internals/a-string'); +var hasOwn = require('../internals/has-own-property'); +var base64Map = require('../internals/base64-map'); +var getAlphabetOption = require('../internals/get-alphabet-option'); +var notDetached = require('../internals/array-buffer-not-detached'); + +var base64Alphabet = base64Map.c2i; +var base64UrlAlphabet = base64Map.c2iUrl; + +var SyntaxError = globalThis.SyntaxError; +var TypeError = globalThis.TypeError; +var at = uncurryThis(''.charAt); + +var skipAsciiWhitespace = function (string, index) { + var length = string.length; + for (;index < length; index++) { + var chr = at(string, index); + if (chr !== ' ' && chr !== '\t' && chr !== '\n' && chr !== '\f' && chr !== '\r') break; + } return index; +}; + +var decodeBase64Chunk = function (chunk, alphabet, throwOnExtraBits) { + var chunkLength = chunk.length; + + if (chunkLength < 4) { + chunk += chunkLength === 2 ? 'AA' : 'A'; + } + + var triplet = (alphabet[at(chunk, 0)] << 18) + + (alphabet[at(chunk, 1)] << 12) + + (alphabet[at(chunk, 2)] << 6) + + alphabet[at(chunk, 3)]; + + var chunkBytes = [ + (triplet >> 16) & 255, + (triplet >> 8) & 255, + triplet & 255 + ]; + + if (chunkLength === 2) { + if (throwOnExtraBits && chunkBytes[1] !== 0) { + throw new SyntaxError('Extra bits'); + } + return [chunkBytes[0]]; + } + + if (chunkLength === 3) { + if (throwOnExtraBits && chunkBytes[2] !== 0) { + throw new SyntaxError('Extra bits'); + } + return [chunkBytes[0], chunkBytes[1]]; + } + + return chunkBytes; +}; + +var writeBytes = function (bytes, elements, written) { + var elementsLength = elements.length; + for (var index = 0; index < elementsLength; index++) { + bytes[written + index] = elements[index]; + } + return written + elementsLength; +}; + +/* eslint-disable max-statements, max-depth -- TODO */ +module.exports = function (string, options, into, maxLength) { + aString(string); + anObjectOrUndefined(options); + var alphabet = getAlphabetOption(options) === 'base64' ? base64Alphabet : base64UrlAlphabet; + var lastChunkHandling = options ? options.lastChunkHandling : undefined; + + if (lastChunkHandling === undefined) lastChunkHandling = 'loose'; + + if (lastChunkHandling !== 'loose' && lastChunkHandling !== 'strict' && lastChunkHandling !== 'stop-before-partial') { + throw new TypeError('Incorrect `lastChunkHandling` option'); + } + + if (into) notDetached(into.buffer); + + var bytes = into || []; + var written = 0; + var read = 0; + var chunk = ''; + var index = 0; + + if (maxLength) while (true) { + index = skipAsciiWhitespace(string, index); + if (index === string.length) { + if (chunk.length > 0) { + if (lastChunkHandling === 'stop-before-partial') { + break; + } + if (lastChunkHandling === 'loose') { + if (chunk.length === 1) { + throw new SyntaxError('Malformed padding: exactly one additional character'); + } + written = writeBytes(bytes, decodeBase64Chunk(chunk, alphabet, false), written); + } else { + throw new SyntaxError('Missing padding'); + } + } + read = string.length; + break; + } + var chr = at(string, index); + ++index; + if (chr === '=') { + if (chunk.length < 2) { + throw new SyntaxError('Padding is too early'); + } + index = skipAsciiWhitespace(string, index); + if (chunk.length === 2) { + if (index === string.length) { + if (lastChunkHandling === 'stop-before-partial') { + break; + } + throw new SyntaxError('Malformed padding: only one ='); + } + if (at(string, index) === '=') { + ++index; + index = skipAsciiWhitespace(string, index); + } + } + if (index < string.length) { + throw new SyntaxError('Unexpected character after padding'); + } + written = writeBytes(bytes, decodeBase64Chunk(chunk, alphabet, lastChunkHandling === 'strict'), written); + read = string.length; + break; + } + if (!hasOwn(alphabet, chr)) { + throw new SyntaxError('Unexpected character'); + } + var remainingBytes = maxLength - written; + if (remainingBytes === 1 && chunk.length === 2 || remainingBytes === 2 && chunk.length === 3) { + // special case: we can fit exactly the number of bytes currently represented by chunk, so we were just checking for `=` + break; + } + + chunk += chr; + if (chunk.length === 4) { + written = writeBytes(bytes, decodeBase64Chunk(chunk, alphabet, false), written); + chunk = ''; + read = index; + if (written === maxLength) { + break; + } + } + } + + return { bytes: bytes, read: read, written: written }; +}; diff --git a/node_modules/core-js/internals/uint8-from-hex.js b/node_modules/core-js/internals/uint8-from-hex.js new file mode 100644 index 0000000..fb195c7 --- /dev/null +++ b/node_modules/core-js/internals/uint8-from-hex.js @@ -0,0 +1,26 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this'); + +var Uint8Array = globalThis.Uint8Array; +var SyntaxError = globalThis.SyntaxError; +var parseInt = globalThis.parseInt; +var min = Math.min; +var NOT_HEX = /[^\da-f]/i; +var exec = uncurryThis(NOT_HEX.exec); +var stringSlice = uncurryThis(''.slice); + +module.exports = function (string, into) { + var stringLength = string.length; + if (stringLength % 2 !== 0) throw new SyntaxError('String should be an even number of characters'); + var maxLength = into ? min(into.length, stringLength / 2) : stringLength / 2; + var bytes = into || new Uint8Array(maxLength); + var read = 0; + var written = 0; + while (written < maxLength) { + var hexits = stringSlice(string, read, read += 2); + if (exec(NOT_HEX, hexits)) throw new SyntaxError('String should only contain hex characters'); + bytes[written++] = parseInt(hexits, 16); + } + return { bytes: bytes, read: read }; +}; diff --git a/node_modules/core-js/internals/url-constructor-detection.js b/node_modules/core-js/internals/url-constructor-detection.js new file mode 100644 index 0000000..5a67c99 --- /dev/null +++ b/node_modules/core-js/internals/url-constructor-detection.js @@ -0,0 +1,42 @@ +'use strict'; +var fails = require('../internals/fails'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var DESCRIPTORS = require('../internals/descriptors'); +var IS_PURE = require('../internals/is-pure'); + +var ITERATOR = wellKnownSymbol('iterator'); + +module.exports = !fails(function () { + // eslint-disable-next-line unicorn/relative-url-style -- required for testing + var url = new URL('b?a=1&b=2&c=3', 'https://a'); + var params = url.searchParams; + var params2 = new URLSearchParams('a=1&a=2&b=3'); + var result = ''; + url.pathname = 'c%20d'; + params.forEach(function (value, key) { + params['delete']('b'); + result += key + value; + }); + params2['delete']('a', 2); + // `undefined` case is a Chromium 117 bug + // https://bugs.chromium.org/p/v8/issues/detail?id=14222 + params2['delete']('b', undefined); + return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b'))) + || (!params.size && (IS_PURE || !DESCRIPTORS)) + || !params.sort + || url.href !== 'https://a/c%20d?a=1&c=3' + || params.get('c') !== '3' + || String(new URLSearchParams('?a=1')) !== 'a=1' + || !params[ITERATOR] + // throws in Edge + || new URL('https://a@b').username !== 'a' + || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b' + // not punycoded in Edge + || new URL('https://тест').host !== 'xn--e1aybc' + // not escaped in Chrome 62- + || new URL('https://a#б').hash !== '#%D0%B1' + // fails in Chrome 66- + || result !== 'a1c3' + // throws in Safari + || new URL('https://x', undefined).host !== 'x'; +}); diff --git a/node_modules/core-js/internals/use-symbol-as-uid.js b/node_modules/core-js/internals/use-symbol-as-uid.js new file mode 100644 index 0000000..677b0c9 --- /dev/null +++ b/node_modules/core-js/internals/use-symbol-as-uid.js @@ -0,0 +1,7 @@ +'use strict'; +/* eslint-disable es/no-symbol -- required for testing */ +var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); + +module.exports = NATIVE_SYMBOL + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; diff --git a/node_modules/core-js/internals/v8-prototype-define-bug.js b/node_modules/core-js/internals/v8-prototype-define-bug.js new file mode 100644 index 0000000..278d2bf --- /dev/null +++ b/node_modules/core-js/internals/v8-prototype-define-bug.js @@ -0,0 +1,13 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var fails = require('../internals/fails'); + +// V8 ~ Chrome 36- +// https://bugs.chromium.org/p/v8/issues/detail?id=3334 +module.exports = DESCRIPTORS && fails(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(function () { /* empty */ }, 'prototype', { + value: 42, + writable: false + }).prototype !== 42; +}); diff --git a/node_modules/core-js/internals/validate-arguments-length.js b/node_modules/core-js/internals/validate-arguments-length.js new file mode 100644 index 0000000..b3a67b1 --- /dev/null +++ b/node_modules/core-js/internals/validate-arguments-length.js @@ -0,0 +1,7 @@ +'use strict'; +var $TypeError = TypeError; + +module.exports = function (passed, required) { + if (passed < required) throw new $TypeError('Not enough arguments'); + return passed; +}; diff --git a/node_modules/core-js/internals/weak-map-basic-detection.js b/node_modules/core-js/internals/weak-map-basic-detection.js new file mode 100644 index 0000000..d9072c2 --- /dev/null +++ b/node_modules/core-js/internals/weak-map-basic-detection.js @@ -0,0 +1,7 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var isCallable = require('../internals/is-callable'); + +var WeakMap = globalThis.WeakMap; + +module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap)); diff --git a/node_modules/core-js/internals/weak-map-helpers.js b/node_modules/core-js/internals/weak-map-helpers.js new file mode 100644 index 0000000..a58bc82 --- /dev/null +++ b/node_modules/core-js/internals/weak-map-helpers.js @@ -0,0 +1,14 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); + +// eslint-disable-next-line es/no-weak-map -- safe +var WeakMapPrototype = WeakMap.prototype; + +module.exports = { + // eslint-disable-next-line es/no-weak-map -- safe + WeakMap: WeakMap, + set: uncurryThis(WeakMapPrototype.set), + get: uncurryThis(WeakMapPrototype.get), + has: uncurryThis(WeakMapPrototype.has), + remove: uncurryThis(WeakMapPrototype['delete']) +}; diff --git a/node_modules/core-js/internals/weak-set-helpers.js b/node_modules/core-js/internals/weak-set-helpers.js new file mode 100644 index 0000000..1714de9 --- /dev/null +++ b/node_modules/core-js/internals/weak-set-helpers.js @@ -0,0 +1,13 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); + +// eslint-disable-next-line es/no-weak-set -- safe +var WeakSetPrototype = WeakSet.prototype; + +module.exports = { + // eslint-disable-next-line es/no-weak-set -- safe + WeakSet: WeakSet, + add: uncurryThis(WeakSetPrototype.add), + has: uncurryThis(WeakSetPrototype.has), + remove: uncurryThis(WeakSetPrototype['delete']) +}; diff --git a/node_modules/core-js/internals/well-known-symbol-define.js b/node_modules/core-js/internals/well-known-symbol-define.js new file mode 100644 index 0000000..f17892c --- /dev/null +++ b/node_modules/core-js/internals/well-known-symbol-define.js @@ -0,0 +1,12 @@ +'use strict'; +var path = require('../internals/path'); +var hasOwn = require('../internals/has-own-property'); +var wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped'); +var defineProperty = require('../internals/object-define-property').f; + +module.exports = function (NAME) { + var Symbol = path.Symbol || (path.Symbol = {}); + if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, { + value: wrappedWellKnownSymbolModule.f(NAME) + }); +}; diff --git a/node_modules/core-js/internals/well-known-symbol-wrapped.js b/node_modules/core-js/internals/well-known-symbol-wrapped.js new file mode 100644 index 0000000..41d3b77 --- /dev/null +++ b/node_modules/core-js/internals/well-known-symbol-wrapped.js @@ -0,0 +1,4 @@ +'use strict'; +var wellKnownSymbol = require('../internals/well-known-symbol'); + +exports.f = wellKnownSymbol; diff --git a/node_modules/core-js/internals/well-known-symbol.js b/node_modules/core-js/internals/well-known-symbol.js new file mode 100644 index 0000000..bc94b14 --- /dev/null +++ b/node_modules/core-js/internals/well-known-symbol.js @@ -0,0 +1,19 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var shared = require('../internals/shared'); +var hasOwn = require('../internals/has-own-property'); +var uid = require('../internals/uid'); +var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); +var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid'); + +var Symbol = globalThis.Symbol; +var WellKnownSymbolsStore = shared('wks'); +var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid; + +module.exports = function (name) { + if (!hasOwn(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name) + ? Symbol[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; +}; diff --git a/node_modules/core-js/internals/whitespaces.js b/node_modules/core-js/internals/whitespaces.js new file mode 100644 index 0000000..916b2fe --- /dev/null +++ b/node_modules/core-js/internals/whitespaces.js @@ -0,0 +1,4 @@ +'use strict'; +// a string of all valid unicode whitespaces +module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' + + '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; diff --git a/node_modules/core-js/internals/wrap-error-constructor-with-cause.js b/node_modules/core-js/internals/wrap-error-constructor-with-cause.js new file mode 100644 index 0000000..5431c5b --- /dev/null +++ b/node_modules/core-js/internals/wrap-error-constructor-with-cause.js @@ -0,0 +1,65 @@ +'use strict'; +var getBuiltIn = require('../internals/get-built-in'); +var hasOwn = require('../internals/has-own-property'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var setPrototypeOf = require('../internals/object-set-prototype-of'); +var copyConstructorProperties = require('../internals/copy-constructor-properties'); +var proxyAccessor = require('../internals/proxy-accessor'); +var inheritIfRequired = require('../internals/inherit-if-required'); +var normalizeStringArgument = require('../internals/normalize-string-argument'); +var installErrorCause = require('../internals/install-error-cause'); +var installErrorStack = require('../internals/error-stack-install'); +var DESCRIPTORS = require('../internals/descriptors'); +var IS_PURE = require('../internals/is-pure'); + +module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) { + var STACK_TRACE_LIMIT = 'stackTraceLimit'; + var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1; + var path = FULL_NAME.split('.'); + var ERROR_NAME = path[path.length - 1]; + var OriginalError = getBuiltIn.apply(null, path); + + if (!OriginalError) return; + + var OriginalErrorPrototype = OriginalError.prototype; + + // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006 + if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause; + + if (!FORCED) return OriginalError; + + var BaseError = getBuiltIn('Error'); + + var WrappedError = wrapper(function (a, b) { + var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined); + var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError(); + if (message !== undefined) createNonEnumerableProperty(result, 'message', message); + installErrorStack(result, WrappedError, result.stack, 2); + if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError); + if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]); + return result; + }); + + WrappedError.prototype = OriginalErrorPrototype; + + if (ERROR_NAME !== 'Error') { + if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError); + else copyConstructorProperties(WrappedError, BaseError, { name: true }); + } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) { + proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT); + proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace'); + } + + copyConstructorProperties(WrappedError, OriginalError); + + if (!IS_PURE) try { + // Safari 13- bug: WebAssembly errors does not have a proper `.name` + if (OriginalErrorPrototype.name !== ERROR_NAME) { + createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME); + } + OriginalErrorPrototype.constructor = WrappedError; + } catch (error) { /* empty */ } + + return WrappedError; +}; diff --git a/node_modules/core-js/modules/README.md b/node_modules/core-js/modules/README.md new file mode 100644 index 0000000..0d6b3cb --- /dev/null +++ b/node_modules/core-js/modules/README.md @@ -0,0 +1 @@ +This folder contains implementations of polyfills. It's not recommended to include in your projects directly if you don't completely understand what are you doing. diff --git a/node_modules/core-js/modules/es.aggregate-error.cause.js b/node_modules/core-js/modules/es.aggregate-error.cause.js new file mode 100644 index 0000000..dfc3b38 --- /dev/null +++ b/node_modules/core-js/modules/es.aggregate-error.cause.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var getBuiltIn = require('../internals/get-built-in'); +var apply = require('../internals/function-apply'); +var fails = require('../internals/fails'); +var wrapErrorConstructorWithCause = require('../internals/wrap-error-constructor-with-cause'); + +var AGGREGATE_ERROR = 'AggregateError'; +var $AggregateError = getBuiltIn(AGGREGATE_ERROR); + +var FORCED = !fails(function () { + return $AggregateError([1]).errors[0] !== 1; +}) && fails(function () { + return $AggregateError([1], AGGREGATE_ERROR, { cause: 7 }).cause !== 7; +}); + +// https://tc39.es/ecma262/#sec-aggregate-error +$({ global: true, constructor: true, arity: 2, forced: FORCED }, { + AggregateError: wrapErrorConstructorWithCause(AGGREGATE_ERROR, function (init) { + // eslint-disable-next-line no-unused-vars -- required for functions `.length` + return function AggregateError(errors, message) { return apply(init, this, arguments); }; + }, FORCED, true) +}); diff --git a/node_modules/core-js/modules/es.aggregate-error.constructor.js b/node_modules/core-js/modules/es.aggregate-error.constructor.js new file mode 100644 index 0000000..0d76dd0 --- /dev/null +++ b/node_modules/core-js/modules/es.aggregate-error.constructor.js @@ -0,0 +1,51 @@ +'use strict'; +var $ = require('../internals/export'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); +var setPrototypeOf = require('../internals/object-set-prototype-of'); +var copyConstructorProperties = require('../internals/copy-constructor-properties'); +var create = require('../internals/object-create'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var createPropertyDescriptor = require('../internals/create-property-descriptor'); +var installErrorCause = require('../internals/install-error-cause'); +var installErrorStack = require('../internals/error-stack-install'); +var iterate = require('../internals/iterate'); +var normalizeStringArgument = require('../internals/normalize-string-argument'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var $Error = Error; +var push = [].push; + +var $AggregateError = function AggregateError(errors, message /* , options */) { + var isInstance = isPrototypeOf(AggregateErrorPrototype, this); + var that; + if (setPrototypeOf) { + that = setPrototypeOf(new $Error(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype); + } else { + that = isInstance ? this : create(AggregateErrorPrototype); + createNonEnumerableProperty(that, TO_STRING_TAG, 'Error'); + } + if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message)); + installErrorStack(that, $AggregateError, that.stack, 1); + if (arguments.length > 2) installErrorCause(that, arguments[2]); + var errorsArray = []; + iterate(errors, push, { that: errorsArray }); + createNonEnumerableProperty(that, 'errors', errorsArray); + return that; +}; + +if (setPrototypeOf) setPrototypeOf($AggregateError, $Error); +else copyConstructorProperties($AggregateError, $Error, { name: true }); + +var AggregateErrorPrototype = $AggregateError.prototype = create($Error.prototype, { + constructor: createPropertyDescriptor(1, $AggregateError), + message: createPropertyDescriptor(1, ''), + name: createPropertyDescriptor(1, 'AggregateError') +}); + +// `AggregateError` constructor +// https://tc39.es/ecma262/#sec-aggregate-error-constructor +$({ global: true, constructor: true, arity: 2 }, { + AggregateError: $AggregateError +}); diff --git a/node_modules/core-js/modules/es.aggregate-error.js b/node_modules/core-js/modules/es.aggregate-error.js new file mode 100644 index 0000000..649517e --- /dev/null +++ b/node_modules/core-js/modules/es.aggregate-error.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove this module from `core-js@4` since it's replaced to module below +require('../modules/es.aggregate-error.constructor'); diff --git a/node_modules/core-js/modules/es.array-buffer.constructor.js b/node_modules/core-js/modules/es.array-buffer.constructor.js new file mode 100644 index 0000000..810c906 --- /dev/null +++ b/node_modules/core-js/modules/es.array-buffer.constructor.js @@ -0,0 +1,17 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var arrayBufferModule = require('../internals/array-buffer'); +var setSpecies = require('../internals/set-species'); + +var ARRAY_BUFFER = 'ArrayBuffer'; +var ArrayBuffer = arrayBufferModule[ARRAY_BUFFER]; +var NativeArrayBuffer = globalThis[ARRAY_BUFFER]; + +// `ArrayBuffer` constructor +// https://tc39.es/ecma262/#sec-arraybuffer-constructor +$({ global: true, constructor: true, forced: NativeArrayBuffer !== ArrayBuffer }, { + ArrayBuffer: ArrayBuffer +}); + +setSpecies(ARRAY_BUFFER); diff --git a/node_modules/core-js/modules/es.array-buffer.detached.js b/node_modules/core-js/modules/es.array-buffer.detached.js new file mode 100644 index 0000000..3aa6d9c --- /dev/null +++ b/node_modules/core-js/modules/es.array-buffer.detached.js @@ -0,0 +1,15 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var isDetached = require('../internals/array-buffer-is-detached'); + +var ArrayBufferPrototype = ArrayBuffer.prototype; + +if (DESCRIPTORS && !('detached' in ArrayBufferPrototype)) { + defineBuiltInAccessor(ArrayBufferPrototype, 'detached', { + configurable: true, + get: function detached() { + return isDetached(this); + } + }); +} diff --git a/node_modules/core-js/modules/es.array-buffer.is-view.js b/node_modules/core-js/modules/es.array-buffer.is-view.js new file mode 100644 index 0000000..b83a614 --- /dev/null +++ b/node_modules/core-js/modules/es.array-buffer.is-view.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); + +var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS; + +// `ArrayBuffer.isView` method +// https://tc39.es/ecma262/#sec-arraybuffer.isview +$({ target: 'ArrayBuffer', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, { + isView: ArrayBufferViewCore.isView +}); diff --git a/node_modules/core-js/modules/es.array-buffer.slice.js b/node_modules/core-js/modules/es.array-buffer.slice.js new file mode 100644 index 0000000..52af48c --- /dev/null +++ b/node_modules/core-js/modules/es.array-buffer.slice.js @@ -0,0 +1,40 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); +var fails = require('../internals/fails'); +var ArrayBufferModule = require('../internals/array-buffer'); +var anObject = require('../internals/an-object'); +var toAbsoluteIndex = require('../internals/to-absolute-index'); +var toLength = require('../internals/to-length'); +var speciesConstructor = require('../internals/species-constructor'); + +var ArrayBuffer = ArrayBufferModule.ArrayBuffer; +var DataView = ArrayBufferModule.DataView; +var DataViewPrototype = DataView.prototype; +var nativeArrayBufferSlice = uncurryThis(ArrayBuffer.prototype.slice); +var getUint8 = uncurryThis(DataViewPrototype.getUint8); +var setUint8 = uncurryThis(DataViewPrototype.setUint8); + +var INCORRECT_SLICE = fails(function () { + return !new ArrayBuffer(2).slice(1, undefined).byteLength; +}); + +// `ArrayBuffer.prototype.slice` method +// https://tc39.es/ecma262/#sec-arraybuffer.prototype.slice +$({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, { + slice: function slice(start, end) { + if (nativeArrayBufferSlice && end === undefined) { + return nativeArrayBufferSlice(anObject(this), start); // FF fix + } + var length = anObject(this).byteLength; + var first = toAbsoluteIndex(start, length); + var fin = toAbsoluteIndex(end === undefined ? length : end, length); + var result = new (speciesConstructor(this, ArrayBuffer))(toLength(fin - first)); + var viewSource = new DataView(this); + var viewTarget = new DataView(result); + var index = 0; + while (first < fin) { + setUint8(viewTarget, index++, getUint8(viewSource, first++)); + } return result; + } +}); diff --git a/node_modules/core-js/modules/es.array-buffer.transfer-to-fixed-length.js b/node_modules/core-js/modules/es.array-buffer.transfer-to-fixed-length.js new file mode 100644 index 0000000..55a9f8a --- /dev/null +++ b/node_modules/core-js/modules/es.array-buffer.transfer-to-fixed-length.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var $transfer = require('../internals/array-buffer-transfer'); + +// `ArrayBuffer.prototype.transferToFixedLength` method +// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfertofixedlength +if ($transfer) $({ target: 'ArrayBuffer', proto: true }, { + transferToFixedLength: function transferToFixedLength() { + return $transfer(this, arguments.length ? arguments[0] : undefined, false); + } +}); diff --git a/node_modules/core-js/modules/es.array-buffer.transfer.js b/node_modules/core-js/modules/es.array-buffer.transfer.js new file mode 100644 index 0000000..197658d --- /dev/null +++ b/node_modules/core-js/modules/es.array-buffer.transfer.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var $transfer = require('../internals/array-buffer-transfer'); + +// `ArrayBuffer.prototype.transfer` method +// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfer +if ($transfer) $({ target: 'ArrayBuffer', proto: true }, { + transfer: function transfer() { + return $transfer(this, arguments.length ? arguments[0] : undefined, true); + } +}); diff --git a/node_modules/core-js/modules/es.array.at.js b/node_modules/core-js/modules/es.array.at.js new file mode 100644 index 0000000..965c266 --- /dev/null +++ b/node_modules/core-js/modules/es.array.at.js @@ -0,0 +1,20 @@ +'use strict'; +var $ = require('../internals/export'); +var toObject = require('../internals/to-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var addToUnscopables = require('../internals/add-to-unscopables'); + +// `Array.prototype.at` method +// https://tc39.es/ecma262/#sec-array.prototype.at +$({ target: 'Array', proto: true }, { + at: function at(index) { + var O = toObject(this); + var len = lengthOfArrayLike(O); + var relativeIndex = toIntegerOrInfinity(index); + var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex; + return (k < 0 || k >= len) ? undefined : O[k]; + } +}); + +addToUnscopables('at'); diff --git a/node_modules/core-js/modules/es.array.concat.js b/node_modules/core-js/modules/es.array.concat.js new file mode 100644 index 0000000..2e1a773 --- /dev/null +++ b/node_modules/core-js/modules/es.array.concat.js @@ -0,0 +1,58 @@ +'use strict'; +var $ = require('../internals/export'); +var fails = require('../internals/fails'); +var isArray = require('../internals/is-array'); +var isObject = require('../internals/is-object'); +var toObject = require('../internals/to-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer'); +var createProperty = require('../internals/create-property'); +var arraySpeciesCreate = require('../internals/array-species-create'); +var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var V8_VERSION = require('../internals/environment-v8-version'); + +var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + +// We can't use this feature detection in V8 since it causes +// deoptimization and serious performance degradation +// https://github.com/zloirock/core-js/issues/679 +var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; +}); + +var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); +}; + +var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + +// `Array.prototype.concat` method +// https://tc39.es/ecma262/#sec-array.prototype.concat +// with adding support of @@isConcatSpreadable and @@species +$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } +}); diff --git a/node_modules/core-js/modules/es.array.copy-within.js b/node_modules/core-js/modules/es.array.copy-within.js new file mode 100644 index 0000000..021ca3c --- /dev/null +++ b/node_modules/core-js/modules/es.array.copy-within.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); +var copyWithin = require('../internals/array-copy-within'); +var addToUnscopables = require('../internals/add-to-unscopables'); + +// `Array.prototype.copyWithin` method +// https://tc39.es/ecma262/#sec-array.prototype.copywithin +$({ target: 'Array', proto: true }, { + copyWithin: copyWithin +}); + +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables('copyWithin'); diff --git a/node_modules/core-js/modules/es.array.every.js b/node_modules/core-js/modules/es.array.every.js new file mode 100644 index 0000000..61b526e --- /dev/null +++ b/node_modules/core-js/modules/es.array.every.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var $every = require('../internals/array-iteration').every; +var arrayMethodIsStrict = require('../internals/array-method-is-strict'); + +var STRICT_METHOD = arrayMethodIsStrict('every'); + +// `Array.prototype.every` method +// https://tc39.es/ecma262/#sec-array.prototype.every +$({ target: 'Array', proto: true, forced: !STRICT_METHOD }, { + every: function every(callbackfn /* , thisArg */) { + return $every(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); diff --git a/node_modules/core-js/modules/es.array.fill.js b/node_modules/core-js/modules/es.array.fill.js new file mode 100644 index 0000000..31e640e --- /dev/null +++ b/node_modules/core-js/modules/es.array.fill.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); +var fill = require('../internals/array-fill'); +var addToUnscopables = require('../internals/add-to-unscopables'); + +// `Array.prototype.fill` method +// https://tc39.es/ecma262/#sec-array.prototype.fill +$({ target: 'Array', proto: true }, { + fill: fill +}); + +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables('fill'); diff --git a/node_modules/core-js/modules/es.array.filter.js b/node_modules/core-js/modules/es.array.filter.js new file mode 100644 index 0000000..beb43a5 --- /dev/null +++ b/node_modules/core-js/modules/es.array.filter.js @@ -0,0 +1,15 @@ +'use strict'; +var $ = require('../internals/export'); +var $filter = require('../internals/array-iteration').filter; +var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support'); + +var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter'); + +// `Array.prototype.filter` method +// https://tc39.es/ecma262/#sec-array.prototype.filter +// with adding support of @@species +$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { + filter: function filter(callbackfn /* , thisArg */) { + return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); diff --git a/node_modules/core-js/modules/es.array.find-index.js b/node_modules/core-js/modules/es.array.find-index.js new file mode 100644 index 0000000..ba3fd9f --- /dev/null +++ b/node_modules/core-js/modules/es.array.find-index.js @@ -0,0 +1,22 @@ +'use strict'; +var $ = require('../internals/export'); +var $findIndex = require('../internals/array-iteration').findIndex; +var addToUnscopables = require('../internals/add-to-unscopables'); + +var FIND_INDEX = 'findIndex'; +var SKIPS_HOLES = true; + +// Shouldn't skip holes +// eslint-disable-next-line es/no-array-prototype-findindex -- testing +if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; }); + +// `Array.prototype.findIndex` method +// https://tc39.es/ecma262/#sec-array.prototype.findindex +$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, { + findIndex: function findIndex(callbackfn /* , that = undefined */) { + return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); + +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables(FIND_INDEX); diff --git a/node_modules/core-js/modules/es.array.find-last-index.js b/node_modules/core-js/modules/es.array.find-last-index.js new file mode 100644 index 0000000..82d8984 --- /dev/null +++ b/node_modules/core-js/modules/es.array.find-last-index.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var $findLastIndex = require('../internals/array-iteration-from-last').findLastIndex; +var addToUnscopables = require('../internals/add-to-unscopables'); + +// `Array.prototype.findLastIndex` method +// https://tc39.es/ecma262/#sec-array.prototype.findlastindex +$({ target: 'Array', proto: true }, { + findLastIndex: function findLastIndex(callbackfn /* , that = undefined */) { + return $findLastIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); + +addToUnscopables('findLastIndex'); diff --git a/node_modules/core-js/modules/es.array.find-last.js b/node_modules/core-js/modules/es.array.find-last.js new file mode 100644 index 0000000..479c173 --- /dev/null +++ b/node_modules/core-js/modules/es.array.find-last.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var $findLast = require('../internals/array-iteration-from-last').findLast; +var addToUnscopables = require('../internals/add-to-unscopables'); + +// `Array.prototype.findLast` method +// https://tc39.es/ecma262/#sec-array.prototype.findlast +$({ target: 'Array', proto: true }, { + findLast: function findLast(callbackfn /* , that = undefined */) { + return $findLast(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); + +addToUnscopables('findLast'); diff --git a/node_modules/core-js/modules/es.array.find.js b/node_modules/core-js/modules/es.array.find.js new file mode 100644 index 0000000..f7fab66 --- /dev/null +++ b/node_modules/core-js/modules/es.array.find.js @@ -0,0 +1,22 @@ +'use strict'; +var $ = require('../internals/export'); +var $find = require('../internals/array-iteration').find; +var addToUnscopables = require('../internals/add-to-unscopables'); + +var FIND = 'find'; +var SKIPS_HOLES = true; + +// Shouldn't skip holes +// eslint-disable-next-line es/no-array-prototype-find -- testing +if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; }); + +// `Array.prototype.find` method +// https://tc39.es/ecma262/#sec-array.prototype.find +$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, { + find: function find(callbackfn /* , that = undefined */) { + return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); + +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables(FIND); diff --git a/node_modules/core-js/modules/es.array.flat-map.js b/node_modules/core-js/modules/es.array.flat-map.js new file mode 100644 index 0000000..9b177de --- /dev/null +++ b/node_modules/core-js/modules/es.array.flat-map.js @@ -0,0 +1,21 @@ +'use strict'; +var $ = require('../internals/export'); +var flattenIntoArray = require('../internals/flatten-into-array'); +var aCallable = require('../internals/a-callable'); +var toObject = require('../internals/to-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var arraySpeciesCreate = require('../internals/array-species-create'); + +// `Array.prototype.flatMap` method +// https://tc39.es/ecma262/#sec-array.prototype.flatmap +$({ target: 'Array', proto: true }, { + flatMap: function flatMap(callbackfn /* , thisArg */) { + var O = toObject(this); + var sourceLen = lengthOfArrayLike(O); + var A; + aCallable(callbackfn); + A = arraySpeciesCreate(O, 0); + A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + return A; + } +}); diff --git a/node_modules/core-js/modules/es.array.flat.js b/node_modules/core-js/modules/es.array.flat.js new file mode 100644 index 0000000..146adec --- /dev/null +++ b/node_modules/core-js/modules/es.array.flat.js @@ -0,0 +1,20 @@ +'use strict'; +var $ = require('../internals/export'); +var flattenIntoArray = require('../internals/flatten-into-array'); +var toObject = require('../internals/to-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var arraySpeciesCreate = require('../internals/array-species-create'); + +// `Array.prototype.flat` method +// https://tc39.es/ecma262/#sec-array.prototype.flat +$({ target: 'Array', proto: true }, { + flat: function flat(/* depthArg = 1 */) { + var depthArg = arguments.length ? arguments[0] : undefined; + var O = toObject(this); + var sourceLen = lengthOfArrayLike(O); + var A = arraySpeciesCreate(O, 0); + A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity(depthArg)); + return A; + } +}); diff --git a/node_modules/core-js/modules/es.array.for-each.js b/node_modules/core-js/modules/es.array.for-each.js new file mode 100644 index 0000000..6f45b51 --- /dev/null +++ b/node_modules/core-js/modules/es.array.for-each.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var forEach = require('../internals/array-for-each'); + +// `Array.prototype.forEach` method +// https://tc39.es/ecma262/#sec-array.prototype.foreach +// eslint-disable-next-line es/no-array-prototype-foreach -- safe +$({ target: 'Array', proto: true, forced: [].forEach !== forEach }, { + forEach: forEach +}); diff --git a/node_modules/core-js/modules/es.array.from.js b/node_modules/core-js/modules/es.array.from.js new file mode 100644 index 0000000..0015b09 --- /dev/null +++ b/node_modules/core-js/modules/es.array.from.js @@ -0,0 +1,15 @@ +'use strict'; +var $ = require('../internals/export'); +var from = require('../internals/array-from'); +var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration'); + +var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) { + // eslint-disable-next-line es/no-array-from -- required for testing + Array.from(iterable); +}); + +// `Array.from` method +// https://tc39.es/ecma262/#sec-array.from +$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, { + from: from +}); diff --git a/node_modules/core-js/modules/es.array.includes.js b/node_modules/core-js/modules/es.array.includes.js new file mode 100644 index 0000000..7ada6d9 --- /dev/null +++ b/node_modules/core-js/modules/es.array.includes.js @@ -0,0 +1,22 @@ +'use strict'; +var $ = require('../internals/export'); +var $includes = require('../internals/array-includes').includes; +var fails = require('../internals/fails'); +var addToUnscopables = require('../internals/add-to-unscopables'); + +// FF99+ bug +var BROKEN_ON_SPARSE = fails(function () { + // eslint-disable-next-line es/no-array-prototype-includes -- detection + return !Array(1).includes(); +}); + +// `Array.prototype.includes` method +// https://tc39.es/ecma262/#sec-array.prototype.includes +$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, { + includes: function includes(el /* , fromIndex = 0 */) { + return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); + } +}); + +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables('includes'); diff --git a/node_modules/core-js/modules/es.array.index-of.js b/node_modules/core-js/modules/es.array.index-of.js new file mode 100644 index 0000000..9cca611 --- /dev/null +++ b/node_modules/core-js/modules/es.array.index-of.js @@ -0,0 +1,23 @@ +'use strict'; +/* eslint-disable es/no-array-prototype-indexof -- required for testing */ +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); +var $indexOf = require('../internals/array-includes').indexOf; +var arrayMethodIsStrict = require('../internals/array-method-is-strict'); + +var nativeIndexOf = uncurryThis([].indexOf); + +var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0; +var FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf'); + +// `Array.prototype.indexOf` method +// https://tc39.es/ecma262/#sec-array.prototype.indexof +$({ target: 'Array', proto: true, forced: FORCED }, { + indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { + var fromIndex = arguments.length > 1 ? arguments[1] : undefined; + return NEGATIVE_ZERO + // convert -0 to +0 + ? nativeIndexOf(this, searchElement, fromIndex) || 0 + : $indexOf(this, searchElement, fromIndex); + } +}); diff --git a/node_modules/core-js/modules/es.array.is-array.js b/node_modules/core-js/modules/es.array.is-array.js new file mode 100644 index 0000000..4482427 --- /dev/null +++ b/node_modules/core-js/modules/es.array.is-array.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var isArray = require('../internals/is-array'); + +// `Array.isArray` method +// https://tc39.es/ecma262/#sec-array.isarray +$({ target: 'Array', stat: true }, { + isArray: isArray +}); diff --git a/node_modules/core-js/modules/es.array.iterator.js b/node_modules/core-js/modules/es.array.iterator.js new file mode 100644 index 0000000..3b5af9a --- /dev/null +++ b/node_modules/core-js/modules/es.array.iterator.js @@ -0,0 +1,62 @@ +'use strict'; +var toIndexedObject = require('../internals/to-indexed-object'); +var addToUnscopables = require('../internals/add-to-unscopables'); +var Iterators = require('../internals/iterators'); +var InternalStateModule = require('../internals/internal-state'); +var defineProperty = require('../internals/object-define-property').f; +var defineIterator = require('../internals/iterator-define'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var IS_PURE = require('../internals/is-pure'); +var DESCRIPTORS = require('../internals/descriptors'); + +var ARRAY_ITERATOR = 'Array Iterator'; +var setInternalState = InternalStateModule.set; +var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR); + +// `Array.prototype.entries` method +// https://tc39.es/ecma262/#sec-array.prototype.entries +// `Array.prototype.keys` method +// https://tc39.es/ecma262/#sec-array.prototype.keys +// `Array.prototype.values` method +// https://tc39.es/ecma262/#sec-array.prototype.values +// `Array.prototype[@@iterator]` method +// https://tc39.es/ecma262/#sec-array.prototype-@@iterator +// `CreateArrayIterator` internal method +// https://tc39.es/ecma262/#sec-createarrayiterator +module.exports = defineIterator(Array, 'Array', function (iterated, kind) { + setInternalState(this, { + type: ARRAY_ITERATOR, + target: toIndexedObject(iterated), // target + index: 0, // next index + kind: kind // kind + }); +// `%ArrayIteratorPrototype%.next` method +// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next +}, function () { + var state = getInternalState(this); + var target = state.target; + var index = state.index++; + if (!target || index >= target.length) { + state.target = null; + return createIterResultObject(undefined, true); + } + switch (state.kind) { + case 'keys': return createIterResultObject(index, false); + case 'values': return createIterResultObject(target[index], false); + } return createIterResultObject([index, target[index]], false); +}, 'values'); + +// argumentsList[@@iterator] is %ArrayProto_values% +// https://tc39.es/ecma262/#sec-createunmappedargumentsobject +// https://tc39.es/ecma262/#sec-createmappedargumentsobject +var values = Iterators.Arguments = Iterators.Array; + +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables('keys'); +addToUnscopables('values'); +addToUnscopables('entries'); + +// V8 ~ Chrome 45- bug +if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try { + defineProperty(values, 'name', { value: 'values' }); +} catch (error) { /* empty */ } diff --git a/node_modules/core-js/modules/es.array.join.js b/node_modules/core-js/modules/es.array.join.js new file mode 100644 index 0000000..9f2ebf2 --- /dev/null +++ b/node_modules/core-js/modules/es.array.join.js @@ -0,0 +1,19 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var IndexedObject = require('../internals/indexed-object'); +var toIndexedObject = require('../internals/to-indexed-object'); +var arrayMethodIsStrict = require('../internals/array-method-is-strict'); + +var nativeJoin = uncurryThis([].join); + +var ES3_STRINGS = IndexedObject !== Object; +var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ','); + +// `Array.prototype.join` method +// https://tc39.es/ecma262/#sec-array.prototype.join +$({ target: 'Array', proto: true, forced: FORCED }, { + join: function join(separator) { + return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator); + } +}); diff --git a/node_modules/core-js/modules/es.array.last-index-of.js b/node_modules/core-js/modules/es.array.last-index-of.js new file mode 100644 index 0000000..0f3cfc5 --- /dev/null +++ b/node_modules/core-js/modules/es.array.last-index-of.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var lastIndexOf = require('../internals/array-last-index-of'); + +// `Array.prototype.lastIndexOf` method +// https://tc39.es/ecma262/#sec-array.prototype.lastindexof +// eslint-disable-next-line es/no-array-prototype-lastindexof -- required for testing +$({ target: 'Array', proto: true, forced: lastIndexOf !== [].lastIndexOf }, { + lastIndexOf: lastIndexOf +}); diff --git a/node_modules/core-js/modules/es.array.map.js b/node_modules/core-js/modules/es.array.map.js new file mode 100644 index 0000000..4419a0b --- /dev/null +++ b/node_modules/core-js/modules/es.array.map.js @@ -0,0 +1,15 @@ +'use strict'; +var $ = require('../internals/export'); +var $map = require('../internals/array-iteration').map; +var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support'); + +var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map'); + +// `Array.prototype.map` method +// https://tc39.es/ecma262/#sec-array.prototype.map +// with adding support of @@species +$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { + map: function map(callbackfn /* , thisArg */) { + return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); diff --git a/node_modules/core-js/modules/es.array.of.js b/node_modules/core-js/modules/es.array.of.js new file mode 100644 index 0000000..4dbb234 --- /dev/null +++ b/node_modules/core-js/modules/es.array.of.js @@ -0,0 +1,27 @@ +'use strict'; +var $ = require('../internals/export'); +var fails = require('../internals/fails'); +var isConstructor = require('../internals/is-constructor'); +var createProperty = require('../internals/create-property'); + +var $Array = Array; + +var ISNT_GENERIC = fails(function () { + function F() { /* empty */ } + // eslint-disable-next-line es/no-array-of -- safe + return !($Array.of.call(F) instanceof F); +}); + +// `Array.of` method +// https://tc39.es/ecma262/#sec-array.of +// WebKit Array.of isn't generic +$({ target: 'Array', stat: true, forced: ISNT_GENERIC }, { + of: function of(/* ...args */) { + var index = 0; + var argumentsLength = arguments.length; + var result = new (isConstructor(this) ? this : $Array)(argumentsLength); + while (argumentsLength > index) createProperty(result, index, arguments[index++]); + result.length = argumentsLength; + return result; + } +}); diff --git a/node_modules/core-js/modules/es.array.push.js b/node_modules/core-js/modules/es.array.push.js new file mode 100644 index 0000000..71db976 --- /dev/null +++ b/node_modules/core-js/modules/es.array.push.js @@ -0,0 +1,42 @@ +'use strict'; +var $ = require('../internals/export'); +var toObject = require('../internals/to-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var setArrayLength = require('../internals/array-set-length'); +var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer'); +var fails = require('../internals/fails'); + +var INCORRECT_TO_LENGTH = fails(function () { + return [].push.call({ length: 0x100000000 }, 1) !== 4294967297; +}); + +// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError +// https://bugs.chromium.org/p/v8/issues/detail?id=12681 +var properErrorOnNonWritableLength = function () { + try { + // eslint-disable-next-line es/no-object-defineproperty -- safe + Object.defineProperty([], 'length', { writable: false }).push(); + } catch (error) { + return error instanceof TypeError; + } +}; + +var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength(); + +// `Array.prototype.push` method +// https://tc39.es/ecma262/#sec-array.prototype.push +$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + push: function push(item) { + var O = toObject(this); + var len = lengthOfArrayLike(O); + var argCount = arguments.length; + doesNotExceedSafeInteger(len + argCount); + for (var i = 0; i < argCount; i++) { + O[len] = arguments[i]; + len++; + } + setArrayLength(O, len); + return len; + } +}); diff --git a/node_modules/core-js/modules/es.array.reduce-right.js b/node_modules/core-js/modules/es.array.reduce-right.js new file mode 100644 index 0000000..4950104 --- /dev/null +++ b/node_modules/core-js/modules/es.array.reduce-right.js @@ -0,0 +1,19 @@ +'use strict'; +var $ = require('../internals/export'); +var $reduceRight = require('../internals/array-reduce').right; +var arrayMethodIsStrict = require('../internals/array-method-is-strict'); +var CHROME_VERSION = require('../internals/environment-v8-version'); +var IS_NODE = require('../internals/environment-is-node'); + +// Chrome 80-82 has a critical bug +// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982 +var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83; +var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduceRight'); + +// `Array.prototype.reduceRight` method +// https://tc39.es/ecma262/#sec-array.prototype.reduceright +$({ target: 'Array', proto: true, forced: FORCED }, { + reduceRight: function reduceRight(callbackfn /* , initialValue */) { + return $reduceRight(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined); + } +}); diff --git a/node_modules/core-js/modules/es.array.reduce.js b/node_modules/core-js/modules/es.array.reduce.js new file mode 100644 index 0000000..42a008e --- /dev/null +++ b/node_modules/core-js/modules/es.array.reduce.js @@ -0,0 +1,20 @@ +'use strict'; +var $ = require('../internals/export'); +var $reduce = require('../internals/array-reduce').left; +var arrayMethodIsStrict = require('../internals/array-method-is-strict'); +var CHROME_VERSION = require('../internals/environment-v8-version'); +var IS_NODE = require('../internals/environment-is-node'); + +// Chrome 80-82 has a critical bug +// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982 +var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83; +var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce'); + +// `Array.prototype.reduce` method +// https://tc39.es/ecma262/#sec-array.prototype.reduce +$({ target: 'Array', proto: true, forced: FORCED }, { + reduce: function reduce(callbackfn /* , initialValue */) { + var length = arguments.length; + return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined); + } +}); diff --git a/node_modules/core-js/modules/es.array.reverse.js b/node_modules/core-js/modules/es.array.reverse.js new file mode 100644 index 0000000..7904758 --- /dev/null +++ b/node_modules/core-js/modules/es.array.reverse.js @@ -0,0 +1,19 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var isArray = require('../internals/is-array'); + +var nativeReverse = uncurryThis([].reverse); +var test = [1, 2]; + +// `Array.prototype.reverse` method +// https://tc39.es/ecma262/#sec-array.prototype.reverse +// fix for Safari 12.0 bug +// https://bugs.webkit.org/show_bug.cgi?id=188794 +$({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, { + reverse: function reverse() { + // eslint-disable-next-line no-self-assign -- dirty hack + if (isArray(this)) this.length = this.length; + return nativeReverse(this); + } +}); diff --git a/node_modules/core-js/modules/es.array.slice.js b/node_modules/core-js/modules/es.array.slice.js new file mode 100644 index 0000000..373cab5 --- /dev/null +++ b/node_modules/core-js/modules/es.array.slice.js @@ -0,0 +1,49 @@ +'use strict'; +var $ = require('../internals/export'); +var isArray = require('../internals/is-array'); +var isConstructor = require('../internals/is-constructor'); +var isObject = require('../internals/is-object'); +var toAbsoluteIndex = require('../internals/to-absolute-index'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var toIndexedObject = require('../internals/to-indexed-object'); +var createProperty = require('../internals/create-property'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support'); +var nativeSlice = require('../internals/array-slice'); + +var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice'); + +var SPECIES = wellKnownSymbol('species'); +var $Array = Array; +var max = Math.max; + +// `Array.prototype.slice` method +// https://tc39.es/ecma262/#sec-array.prototype.slice +// fallback for not array-like ES3 strings and DOM objects +$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { + slice: function slice(start, end) { + var O = toIndexedObject(this); + var length = lengthOfArrayLike(O); + var k = toAbsoluteIndex(start, length); + var fin = toAbsoluteIndex(end === undefined ? length : end, length); + // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible + var Constructor, result, n; + if (isArray(O)) { + Constructor = O.constructor; + // cross-realm fallback + if (isConstructor(Constructor) && (Constructor === $Array || isArray(Constructor.prototype))) { + Constructor = undefined; + } else if (isObject(Constructor)) { + Constructor = Constructor[SPECIES]; + if (Constructor === null) Constructor = undefined; + } + if (Constructor === $Array || Constructor === undefined) { + return nativeSlice(O, k, fin); + } + } + result = new (Constructor === undefined ? $Array : Constructor)(max(fin - k, 0)); + for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]); + result.length = n; + return result; + } +}); diff --git a/node_modules/core-js/modules/es.array.some.js b/node_modules/core-js/modules/es.array.some.js new file mode 100644 index 0000000..f1b4462 --- /dev/null +++ b/node_modules/core-js/modules/es.array.some.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var $some = require('../internals/array-iteration').some; +var arrayMethodIsStrict = require('../internals/array-method-is-strict'); + +var STRICT_METHOD = arrayMethodIsStrict('some'); + +// `Array.prototype.some` method +// https://tc39.es/ecma262/#sec-array.prototype.some +$({ target: 'Array', proto: true, forced: !STRICT_METHOD }, { + some: function some(callbackfn /* , thisArg */) { + return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); diff --git a/node_modules/core-js/modules/es.array.sort.js b/node_modules/core-js/modules/es.array.sort.js new file mode 100644 index 0000000..9e9b0fe --- /dev/null +++ b/node_modules/core-js/modules/es.array.sort.js @@ -0,0 +1,106 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var aCallable = require('../internals/a-callable'); +var toObject = require('../internals/to-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var deletePropertyOrThrow = require('../internals/delete-property-or-throw'); +var toString = require('../internals/to-string'); +var fails = require('../internals/fails'); +var internalSort = require('../internals/array-sort'); +var arrayMethodIsStrict = require('../internals/array-method-is-strict'); +var FF = require('../internals/environment-ff-version'); +var IE_OR_EDGE = require('../internals/environment-is-ie-or-edge'); +var V8 = require('../internals/environment-v8-version'); +var WEBKIT = require('../internals/environment-webkit-version'); + +var test = []; +var nativeSort = uncurryThis(test.sort); +var push = uncurryThis(test.push); + +// IE8- +var FAILS_ON_UNDEFINED = fails(function () { + test.sort(undefined); +}); +// V8 bug +var FAILS_ON_NULL = fails(function () { + test.sort(null); +}); +// Old WebKit +var STRICT_METHOD = arrayMethodIsStrict('sort'); + +var STABLE_SORT = !fails(function () { + // feature detection can be too slow, so check engines versions + if (V8) return V8 < 70; + if (FF && FF > 3) return; + if (IE_OR_EDGE) return true; + if (WEBKIT) return WEBKIT < 603; + + var result = ''; + var code, chr, value, index; + + // generate an array with more 512 elements (Chakra and old V8 fails only in this case) + for (code = 65; code < 76; code++) { + chr = String.fromCharCode(code); + + switch (code) { + case 66: case 69: case 70: case 72: value = 3; break; + case 68: case 71: value = 4; break; + default: value = 2; + } + + for (index = 0; index < 47; index++) { + test.push({ k: chr + index, v: value }); + } + } + + test.sort(function (a, b) { return b.v - a.v; }); + + for (index = 0; index < test.length; index++) { + chr = test[index].k.charAt(0); + if (result.charAt(result.length - 1) !== chr) result += chr; + } + + return result !== 'DGBEFHACIJK'; +}); + +var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT; + +var getSortCompare = function (comparefn) { + return function (x, y) { + if (y === undefined) return -1; + if (x === undefined) return 1; + if (comparefn !== undefined) return +comparefn(x, y) || 0; + return toString(x) > toString(y) ? 1 : -1; + }; +}; + +// `Array.prototype.sort` method +// https://tc39.es/ecma262/#sec-array.prototype.sort +$({ target: 'Array', proto: true, forced: FORCED }, { + sort: function sort(comparefn) { + if (comparefn !== undefined) aCallable(comparefn); + + var array = toObject(this); + + if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn); + + var items = []; + var arrayLength = lengthOfArrayLike(array); + var itemsLength, index; + + for (index = 0; index < arrayLength; index++) { + if (index in array) push(items, array[index]); + } + + internalSort(items, getSortCompare(comparefn)); + + itemsLength = lengthOfArrayLike(items); + index = 0; + + while (index < itemsLength) array[index] = items[index++]; + while (index < arrayLength) deletePropertyOrThrow(array, index++); + + return array; + } +}); diff --git a/node_modules/core-js/modules/es.array.species.js b/node_modules/core-js/modules/es.array.species.js new file mode 100644 index 0000000..11ada49 --- /dev/null +++ b/node_modules/core-js/modules/es.array.species.js @@ -0,0 +1,6 @@ +'use strict'; +var setSpecies = require('../internals/set-species'); + +// `Array[@@species]` getter +// https://tc39.es/ecma262/#sec-get-array-@@species +setSpecies('Array'); diff --git a/node_modules/core-js/modules/es.array.splice.js b/node_modules/core-js/modules/es.array.splice.js new file mode 100644 index 0000000..2da6a79 --- /dev/null +++ b/node_modules/core-js/modules/es.array.splice.js @@ -0,0 +1,67 @@ +'use strict'; +var $ = require('../internals/export'); +var toObject = require('../internals/to-object'); +var toAbsoluteIndex = require('../internals/to-absolute-index'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var setArrayLength = require('../internals/array-set-length'); +var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer'); +var arraySpeciesCreate = require('../internals/array-species-create'); +var createProperty = require('../internals/create-property'); +var deletePropertyOrThrow = require('../internals/delete-property-or-throw'); +var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support'); + +var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice'); + +var max = Math.max; +var min = Math.min; + +// `Array.prototype.splice` method +// https://tc39.es/ecma262/#sec-array.prototype.splice +// with adding support of @@species +$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { + splice: function splice(start, deleteCount /* , ...items */) { + var O = toObject(this); + var len = lengthOfArrayLike(O); + var actualStart = toAbsoluteIndex(start, len); + var argumentsLength = arguments.length; + var insertCount, actualDeleteCount, A, k, from, to; + if (argumentsLength === 0) { + insertCount = actualDeleteCount = 0; + } else if (argumentsLength === 1) { + insertCount = 0; + actualDeleteCount = len - actualStart; + } else { + insertCount = argumentsLength - 2; + actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart); + } + doesNotExceedSafeInteger(len + insertCount - actualDeleteCount); + A = arraySpeciesCreate(O, actualDeleteCount); + for (k = 0; k < actualDeleteCount; k++) { + from = actualStart + k; + if (from in O) createProperty(A, k, O[from]); + } + A.length = actualDeleteCount; + if (insertCount < actualDeleteCount) { + for (k = actualStart; k < len - actualDeleteCount; k++) { + from = k + actualDeleteCount; + to = k + insertCount; + if (from in O) O[to] = O[from]; + else deletePropertyOrThrow(O, to); + } + for (k = len; k > len - actualDeleteCount + insertCount; k--) deletePropertyOrThrow(O, k - 1); + } else if (insertCount > actualDeleteCount) { + for (k = len - actualDeleteCount; k > actualStart; k--) { + from = k + actualDeleteCount - 1; + to = k + insertCount - 1; + if (from in O) O[to] = O[from]; + else deletePropertyOrThrow(O, to); + } + } + for (k = 0; k < insertCount; k++) { + O[k + actualStart] = arguments[k + 2]; + } + setArrayLength(O, len - actualDeleteCount + insertCount); + return A; + } +}); diff --git a/node_modules/core-js/modules/es.array.to-reversed.js b/node_modules/core-js/modules/es.array.to-reversed.js new file mode 100644 index 0000000..00c5d0d --- /dev/null +++ b/node_modules/core-js/modules/es.array.to-reversed.js @@ -0,0 +1,17 @@ +'use strict'; +var $ = require('../internals/export'); +var arrayToReversed = require('../internals/array-to-reversed'); +var toIndexedObject = require('../internals/to-indexed-object'); +var addToUnscopables = require('../internals/add-to-unscopables'); + +var $Array = Array; + +// `Array.prototype.toReversed` method +// https://tc39.es/ecma262/#sec-array.prototype.toreversed +$({ target: 'Array', proto: true }, { + toReversed: function toReversed() { + return arrayToReversed(toIndexedObject(this), $Array); + } +}); + +addToUnscopables('toReversed'); diff --git a/node_modules/core-js/modules/es.array.to-sorted.js b/node_modules/core-js/modules/es.array.to-sorted.js new file mode 100644 index 0000000..b3ce478 --- /dev/null +++ b/node_modules/core-js/modules/es.array.to-sorted.js @@ -0,0 +1,24 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var aCallable = require('../internals/a-callable'); +var toIndexedObject = require('../internals/to-indexed-object'); +var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list'); +var getBuiltInPrototypeMethod = require('../internals/get-built-in-prototype-method'); +var addToUnscopables = require('../internals/add-to-unscopables'); + +var $Array = Array; +var sort = uncurryThis(getBuiltInPrototypeMethod('Array', 'sort')); + +// `Array.prototype.toSorted` method +// https://tc39.es/ecma262/#sec-array.prototype.tosorted +$({ target: 'Array', proto: true }, { + toSorted: function toSorted(compareFn) { + if (compareFn !== undefined) aCallable(compareFn); + var O = toIndexedObject(this); + var A = arrayFromConstructorAndList($Array, O); + return sort(A, compareFn); + } +}); + +addToUnscopables('toSorted'); diff --git a/node_modules/core-js/modules/es.array.to-spliced.js b/node_modules/core-js/modules/es.array.to-spliced.js new file mode 100644 index 0000000..cad654e --- /dev/null +++ b/node_modules/core-js/modules/es.array.to-spliced.js @@ -0,0 +1,44 @@ +'use strict'; +var $ = require('../internals/export'); +var addToUnscopables = require('../internals/add-to-unscopables'); +var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var toAbsoluteIndex = require('../internals/to-absolute-index'); +var toIndexedObject = require('../internals/to-indexed-object'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); + +var $Array = Array; +var max = Math.max; +var min = Math.min; + +// `Array.prototype.toSpliced` method +// https://tc39.es/ecma262/#sec-array.prototype.tospliced +$({ target: 'Array', proto: true }, { + toSpliced: function toSpliced(start, deleteCount /* , ...items */) { + var O = toIndexedObject(this); + var len = lengthOfArrayLike(O); + var actualStart = toAbsoluteIndex(start, len); + var argumentsLength = arguments.length; + var k = 0; + var insertCount, actualDeleteCount, newLen, A; + if (argumentsLength === 0) { + insertCount = actualDeleteCount = 0; + } else if (argumentsLength === 1) { + insertCount = 0; + actualDeleteCount = len - actualStart; + } else { + insertCount = argumentsLength - 2; + actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart); + } + newLen = doesNotExceedSafeInteger(len + insertCount - actualDeleteCount); + A = $Array(newLen); + + for (; k < actualStart; k++) A[k] = O[k]; + for (; k < actualStart + insertCount; k++) A[k] = arguments[k - actualStart + 2]; + for (; k < newLen; k++) A[k] = O[k + actualDeleteCount - insertCount]; + + return A; + } +}); + +addToUnscopables('toSpliced'); diff --git a/node_modules/core-js/modules/es.array.unscopables.flat-map.js b/node_modules/core-js/modules/es.array.unscopables.flat-map.js new file mode 100644 index 0000000..788076d --- /dev/null +++ b/node_modules/core-js/modules/es.array.unscopables.flat-map.js @@ -0,0 +1,7 @@ +'use strict'; +// this method was added to unscopables after implementation +// in popular engines, so it's moved to a separate module +var addToUnscopables = require('../internals/add-to-unscopables'); + +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables('flatMap'); diff --git a/node_modules/core-js/modules/es.array.unscopables.flat.js b/node_modules/core-js/modules/es.array.unscopables.flat.js new file mode 100644 index 0000000..4fa66a8 --- /dev/null +++ b/node_modules/core-js/modules/es.array.unscopables.flat.js @@ -0,0 +1,7 @@ +'use strict'; +// this method was added to unscopables after implementation +// in popular engines, so it's moved to a separate module +var addToUnscopables = require('../internals/add-to-unscopables'); + +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables('flat'); diff --git a/node_modules/core-js/modules/es.array.unshift.js b/node_modules/core-js/modules/es.array.unshift.js new file mode 100644 index 0000000..4d31cd8 --- /dev/null +++ b/node_modules/core-js/modules/es.array.unshift.js @@ -0,0 +1,45 @@ +'use strict'; +var $ = require('../internals/export'); +var toObject = require('../internals/to-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var setArrayLength = require('../internals/array-set-length'); +var deletePropertyOrThrow = require('../internals/delete-property-or-throw'); +var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer'); + +// IE8- +var INCORRECT_RESULT = [].unshift(0) !== 1; + +// V8 ~ Chrome < 71 and Safari <= 15.4, FF < 23 throws InternalError +var properErrorOnNonWritableLength = function () { + try { + // eslint-disable-next-line es/no-object-defineproperty -- safe + Object.defineProperty([], 'length', { writable: false }).unshift(); + } catch (error) { + return error instanceof TypeError; + } +}; + +var FORCED = INCORRECT_RESULT || !properErrorOnNonWritableLength(); + +// `Array.prototype.unshift` method +// https://tc39.es/ecma262/#sec-array.prototype.unshift +$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + unshift: function unshift(item) { + var O = toObject(this); + var len = lengthOfArrayLike(O); + var argCount = arguments.length; + if (argCount) { + doesNotExceedSafeInteger(len + argCount); + var k = len; + while (k--) { + var to = k + argCount; + if (k in O) O[to] = O[k]; + else deletePropertyOrThrow(O, to); + } + for (var j = 0; j < argCount; j++) { + O[j] = arguments[j]; + } + } return setArrayLength(O, len + argCount); + } +}); diff --git a/node_modules/core-js/modules/es.array.with.js b/node_modules/core-js/modules/es.array.with.js new file mode 100644 index 0000000..77fd99f --- /dev/null +++ b/node_modules/core-js/modules/es.array.with.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var arrayWith = require('../internals/array-with'); +var toIndexedObject = require('../internals/to-indexed-object'); + +var $Array = Array; + +// `Array.prototype.with` method +// https://tc39.es/ecma262/#sec-array.prototype.with +$({ target: 'Array', proto: true }, { + 'with': function (index, value) { + return arrayWith(toIndexedObject(this), $Array, index, value); + } +}); diff --git a/node_modules/core-js/modules/es.data-view.constructor.js b/node_modules/core-js/modules/es.data-view.constructor.js new file mode 100644 index 0000000..0c33e76 --- /dev/null +++ b/node_modules/core-js/modules/es.data-view.constructor.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var ArrayBufferModule = require('../internals/array-buffer'); +var NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-basic-detection'); + +// `DataView` constructor +// https://tc39.es/ecma262/#sec-dataview-constructor +$({ global: true, constructor: true, forced: !NATIVE_ARRAY_BUFFER }, { + DataView: ArrayBufferModule.DataView +}); diff --git a/node_modules/core-js/modules/es.data-view.js b/node_modules/core-js/modules/es.data-view.js new file mode 100644 index 0000000..9772849 --- /dev/null +++ b/node_modules/core-js/modules/es.data-view.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove this module from `core-js@4` since it's replaced to module below +require('../modules/es.data-view.constructor'); diff --git a/node_modules/core-js/modules/es.date.get-year.js b/node_modules/core-js/modules/es.date.get-year.js new file mode 100644 index 0000000..3558c19 --- /dev/null +++ b/node_modules/core-js/modules/es.date.get-year.js @@ -0,0 +1,20 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var fails = require('../internals/fails'); + +// IE8- non-standard case +var FORCED = fails(function () { + // eslint-disable-next-line es/no-date-prototype-getyear-setyear -- detection + return new Date(16e11).getYear() !== 120; +}); + +var getFullYear = uncurryThis(Date.prototype.getFullYear); + +// `Date.prototype.getYear` method +// https://tc39.es/ecma262/#sec-date.prototype.getyear +$({ target: 'Date', proto: true, forced: FORCED }, { + getYear: function getYear() { + return getFullYear(this) - 1900; + } +}); diff --git a/node_modules/core-js/modules/es.date.now.js b/node_modules/core-js/modules/es.date.now.js new file mode 100644 index 0000000..df018fe --- /dev/null +++ b/node_modules/core-js/modules/es.date.now.js @@ -0,0 +1,15 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); + +var $Date = Date; +var thisTimeValue = uncurryThis($Date.prototype.getTime); + +// `Date.now` method +// https://tc39.es/ecma262/#sec-date.now +$({ target: 'Date', stat: true }, { + now: function now() { + return thisTimeValue(new $Date()); + } +}); diff --git a/node_modules/core-js/modules/es.date.set-year.js b/node_modules/core-js/modules/es.date.set-year.js new file mode 100644 index 0000000..0ee20fc --- /dev/null +++ b/node_modules/core-js/modules/es.date.set-year.js @@ -0,0 +1,20 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); + +var DatePrototype = Date.prototype; +var thisTimeValue = uncurryThis(DatePrototype.getTime); +var setFullYear = uncurryThis(DatePrototype.setFullYear); + +// `Date.prototype.setYear` method +// https://tc39.es/ecma262/#sec-date.prototype.setyear +$({ target: 'Date', proto: true }, { + setYear: function setYear(year) { + // validate + thisTimeValue(this); + var yi = toIntegerOrInfinity(year); + var yyyy = yi >= 0 && yi <= 99 ? yi + 1900 : yi; + return setFullYear(this, yyyy); + } +}); diff --git a/node_modules/core-js/modules/es.date.to-gmt-string.js b/node_modules/core-js/modules/es.date.to-gmt-string.js new file mode 100644 index 0000000..7be854e --- /dev/null +++ b/node_modules/core-js/modules/es.date.to-gmt-string.js @@ -0,0 +1,8 @@ +'use strict'; +var $ = require('../internals/export'); + +// `Date.prototype.toGMTString` method +// https://tc39.es/ecma262/#sec-date.prototype.togmtstring +$({ target: 'Date', proto: true }, { + toGMTString: Date.prototype.toUTCString +}); diff --git a/node_modules/core-js/modules/es.date.to-iso-string.js b/node_modules/core-js/modules/es.date.to-iso-string.js new file mode 100644 index 0000000..d22cd27 --- /dev/null +++ b/node_modules/core-js/modules/es.date.to-iso-string.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var toISOString = require('../internals/date-to-iso-string'); + +// `Date.prototype.toISOString` method +// https://tc39.es/ecma262/#sec-date.prototype.toisostring +// PhantomJS / old WebKit has a broken implementations +$({ target: 'Date', proto: true, forced: Date.prototype.toISOString !== toISOString }, { + toISOString: toISOString +}); diff --git a/node_modules/core-js/modules/es.date.to-json.js b/node_modules/core-js/modules/es.date.to-json.js new file mode 100644 index 0000000..328ee26 --- /dev/null +++ b/node_modules/core-js/modules/es.date.to-json.js @@ -0,0 +1,21 @@ +'use strict'; +var $ = require('../internals/export'); +var fails = require('../internals/fails'); +var toObject = require('../internals/to-object'); +var toPrimitive = require('../internals/to-primitive'); + +var FORCED = fails(function () { + return new Date(NaN).toJSON() !== null + || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1; +}); + +// `Date.prototype.toJSON` method +// https://tc39.es/ecma262/#sec-date.prototype.tojson +$({ target: 'Date', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + toJSON: function toJSON(key) { + var O = toObject(this); + var pv = toPrimitive(O, 'number'); + return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString(); + } +}); diff --git a/node_modules/core-js/modules/es.date.to-primitive.js b/node_modules/core-js/modules/es.date.to-primitive.js new file mode 100644 index 0000000..6e20634 --- /dev/null +++ b/node_modules/core-js/modules/es.date.to-primitive.js @@ -0,0 +1,14 @@ +'use strict'; +var hasOwn = require('../internals/has-own-property'); +var defineBuiltIn = require('../internals/define-built-in'); +var dateToPrimitive = require('../internals/date-to-primitive'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); +var DatePrototype = Date.prototype; + +// `Date.prototype[@@toPrimitive]` method +// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive +if (!hasOwn(DatePrototype, TO_PRIMITIVE)) { + defineBuiltIn(DatePrototype, TO_PRIMITIVE, dateToPrimitive); +} diff --git a/node_modules/core-js/modules/es.date.to-string.js b/node_modules/core-js/modules/es.date.to-string.js new file mode 100644 index 0000000..32e0d52 --- /dev/null +++ b/node_modules/core-js/modules/es.date.to-string.js @@ -0,0 +1,20 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var uncurryThis = require('../internals/function-uncurry-this'); +var defineBuiltIn = require('../internals/define-built-in'); + +var DatePrototype = Date.prototype; +var INVALID_DATE = 'Invalid Date'; +var TO_STRING = 'toString'; +var nativeDateToString = uncurryThis(DatePrototype[TO_STRING]); +var thisTimeValue = uncurryThis(DatePrototype.getTime); + +// `Date.prototype.toString` method +// https://tc39.es/ecma262/#sec-date.prototype.tostring +if (String(new Date(NaN)) !== INVALID_DATE) { + defineBuiltIn(DatePrototype, TO_STRING, function toString() { + var value = thisTimeValue(this); + // eslint-disable-next-line no-self-compare -- NaN check + return value === value ? nativeDateToString(this) : INVALID_DATE; + }); +} diff --git a/node_modules/core-js/modules/es.error.cause.js b/node_modules/core-js/modules/es.error.cause.js new file mode 100644 index 0000000..2e82c21 --- /dev/null +++ b/node_modules/core-js/modules/es.error.cause.js @@ -0,0 +1,58 @@ +'use strict'; +/* eslint-disable no-unused-vars -- required for functions `.length` */ +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var apply = require('../internals/function-apply'); +var wrapErrorConstructorWithCause = require('../internals/wrap-error-constructor-with-cause'); + +var WEB_ASSEMBLY = 'WebAssembly'; +var WebAssembly = globalThis[WEB_ASSEMBLY]; + +// eslint-disable-next-line es/no-error-cause -- feature detection +var FORCED = new Error('e', { cause: 7 }).cause !== 7; + +var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) { + var O = {}; + O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED); + $({ global: true, constructor: true, arity: 1, forced: FORCED }, O); +}; + +var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) { + if (WebAssembly && WebAssembly[ERROR_NAME]) { + var O = {}; + O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED); + $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O); + } +}; + +// https://tc39.es/ecma262/#sec-nativeerror +exportGlobalErrorCauseWrapper('Error', function (init) { + return function Error(message) { return apply(init, this, arguments); }; +}); +exportGlobalErrorCauseWrapper('EvalError', function (init) { + return function EvalError(message) { return apply(init, this, arguments); }; +}); +exportGlobalErrorCauseWrapper('RangeError', function (init) { + return function RangeError(message) { return apply(init, this, arguments); }; +}); +exportGlobalErrorCauseWrapper('ReferenceError', function (init) { + return function ReferenceError(message) { return apply(init, this, arguments); }; +}); +exportGlobalErrorCauseWrapper('SyntaxError', function (init) { + return function SyntaxError(message) { return apply(init, this, arguments); }; +}); +exportGlobalErrorCauseWrapper('TypeError', function (init) { + return function TypeError(message) { return apply(init, this, arguments); }; +}); +exportGlobalErrorCauseWrapper('URIError', function (init) { + return function URIError(message) { return apply(init, this, arguments); }; +}); +exportWebAssemblyErrorCauseWrapper('CompileError', function (init) { + return function CompileError(message) { return apply(init, this, arguments); }; +}); +exportWebAssemblyErrorCauseWrapper('LinkError', function (init) { + return function LinkError(message) { return apply(init, this, arguments); }; +}); +exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) { + return function RuntimeError(message) { return apply(init, this, arguments); }; +}); diff --git a/node_modules/core-js/modules/es.error.to-string.js b/node_modules/core-js/modules/es.error.to-string.js new file mode 100644 index 0000000..490c273 --- /dev/null +++ b/node_modules/core-js/modules/es.error.to-string.js @@ -0,0 +1,11 @@ +'use strict'; +var defineBuiltIn = require('../internals/define-built-in'); +var errorToString = require('../internals/error-to-string'); + +var ErrorPrototype = Error.prototype; + +// `Error.prototype.toString` method fix +// https://tc39.es/ecma262/#sec-error.prototype.tostring +if (ErrorPrototype.toString !== errorToString) { + defineBuiltIn(ErrorPrototype, 'toString', errorToString); +} diff --git a/node_modules/core-js/modules/es.escape.js b/node_modules/core-js/modules/es.escape.js new file mode 100644 index 0000000..20e1b99 --- /dev/null +++ b/node_modules/core-js/modules/es.escape.js @@ -0,0 +1,43 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toString = require('../internals/to-string'); + +var charAt = uncurryThis(''.charAt); +var charCodeAt = uncurryThis(''.charCodeAt); +var exec = uncurryThis(/./.exec); +var numberToString = uncurryThis(1.0.toString); +var toUpperCase = uncurryThis(''.toUpperCase); + +var raw = /[\w*+\-./@]/; + +var hex = function (code, length) { + var result = numberToString(code, 16); + while (result.length < length) result = '0' + result; + return result; +}; + +// `escape` method +// https://tc39.es/ecma262/#sec-escape-string +$({ global: true }, { + escape: function escape(string) { + var str = toString(string); + var result = ''; + var length = str.length; + var index = 0; + var chr, code; + while (index < length) { + chr = charAt(str, index++); + if (exec(raw, chr)) { + result += chr; + } else { + code = charCodeAt(chr, 0); + if (code < 256) { + result += '%' + hex(code, 2); + } else { + result += '%u' + toUpperCase(hex(code, 4)); + } + } + } return result; + } +}); diff --git a/node_modules/core-js/modules/es.function.bind.js b/node_modules/core-js/modules/es.function.bind.js new file mode 100644 index 0000000..f8650c2 --- /dev/null +++ b/node_modules/core-js/modules/es.function.bind.js @@ -0,0 +1,11 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var bind = require('../internals/function-bind'); + +// `Function.prototype.bind` method +// https://tc39.es/ecma262/#sec-function.prototype.bind +// eslint-disable-next-line es/no-function-prototype-bind -- detection +$({ target: 'Function', proto: true, forced: Function.bind !== bind }, { + bind: bind +}); diff --git a/node_modules/core-js/modules/es.function.has-instance.js b/node_modules/core-js/modules/es.function.has-instance.js new file mode 100644 index 0000000..8038eed --- /dev/null +++ b/node_modules/core-js/modules/es.function.has-instance.js @@ -0,0 +1,20 @@ +'use strict'; +var isCallable = require('../internals/is-callable'); +var isObject = require('../internals/is-object'); +var definePropertyModule = require('../internals/object-define-property'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var makeBuiltIn = require('../internals/make-built-in'); + +var HAS_INSTANCE = wellKnownSymbol('hasInstance'); +var FunctionPrototype = Function.prototype; + +// `Function.prototype[@@hasInstance]` method +// https://tc39.es/ecma262/#sec-function.prototype-@@hasinstance +if (!(HAS_INSTANCE in FunctionPrototype)) { + definePropertyModule.f(FunctionPrototype, HAS_INSTANCE, { value: makeBuiltIn(function (O) { + if (!isCallable(this) || !isObject(O)) return false; + var P = this.prototype; + return isObject(P) ? isPrototypeOf(P, O) : O instanceof this; + }, HAS_INSTANCE) }); +} diff --git a/node_modules/core-js/modules/es.function.name.js b/node_modules/core-js/modules/es.function.name.js new file mode 100644 index 0000000..aa833e4 --- /dev/null +++ b/node_modules/core-js/modules/es.function.name.js @@ -0,0 +1,26 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var FUNCTION_NAME_EXISTS = require('../internals/function-name').EXISTS; +var uncurryThis = require('../internals/function-uncurry-this'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); + +var FunctionPrototype = Function.prototype; +var functionToString = uncurryThis(FunctionPrototype.toString); +var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/; +var regExpExec = uncurryThis(nameRE.exec); +var NAME = 'name'; + +// Function instances `.name` property +// https://tc39.es/ecma262/#sec-function-instances-name +if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) { + defineBuiltInAccessor(FunctionPrototype, NAME, { + configurable: true, + get: function () { + try { + return regExpExec(nameRE, functionToString(this))[1]; + } catch (error) { + return ''; + } + } + }); +} diff --git a/node_modules/core-js/modules/es.global-this.js b/node_modules/core-js/modules/es.global-this.js new file mode 100644 index 0000000..9263585 --- /dev/null +++ b/node_modules/core-js/modules/es.global-this.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); + +// `globalThis` object +// https://tc39.es/ecma262/#sec-globalthis +$({ global: true, forced: globalThis.globalThis !== globalThis }, { + globalThis: globalThis +}); diff --git a/node_modules/core-js/modules/es.json.stringify.js b/node_modules/core-js/modules/es.json.stringify.js new file mode 100644 index 0000000..3c62efc --- /dev/null +++ b/node_modules/core-js/modules/es.json.stringify.js @@ -0,0 +1,73 @@ +'use strict'; +var $ = require('../internals/export'); +var getBuiltIn = require('../internals/get-built-in'); +var apply = require('../internals/function-apply'); +var call = require('../internals/function-call'); +var uncurryThis = require('../internals/function-uncurry-this'); +var fails = require('../internals/fails'); +var isCallable = require('../internals/is-callable'); +var isSymbol = require('../internals/is-symbol'); +var arraySlice = require('../internals/array-slice'); +var getReplacerFunction = require('../internals/get-json-replacer-function'); +var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); + +var $String = String; +var $stringify = getBuiltIn('JSON', 'stringify'); +var exec = uncurryThis(/./.exec); +var charAt = uncurryThis(''.charAt); +var charCodeAt = uncurryThis(''.charCodeAt); +var replace = uncurryThis(''.replace); +var numberToString = uncurryThis(1.0.toString); + +var tester = /[\uD800-\uDFFF]/g; +var low = /^[\uD800-\uDBFF]$/; +var hi = /^[\uDC00-\uDFFF]$/; + +var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () { + var symbol = getBuiltIn('Symbol')('stringify detection'); + // MS Edge converts symbol values to JSON as {} + return $stringify([symbol]) !== '[null]' + // WebKit converts symbol values to JSON as null + || $stringify({ a: symbol }) !== '{}' + // V8 throws on boxed symbols + || $stringify(Object(symbol)) !== '{}'; +}); + +// https://github.com/tc39/proposal-well-formed-stringify +var ILL_FORMED_UNICODE = fails(function () { + return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"' + || $stringify('\uDEAD') !== '"\\udead"'; +}); + +var stringifyWithSymbolsFix = function (it, replacer) { + var args = arraySlice(arguments); + var $replacer = getReplacerFunction(replacer); + if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined + args[1] = function (key, value) { + // some old implementations (like WebKit) could pass numbers as keys + if (isCallable($replacer)) value = call($replacer, this, $String(key), value); + if (!isSymbol(value)) return value; + }; + return apply($stringify, null, args); +}; + +var fixIllFormed = function (match, offset, string) { + var prev = charAt(string, offset - 1); + var next = charAt(string, offset + 1); + if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) { + return '\\u' + numberToString(charCodeAt(match, 0), 16); + } return match; +}; + +if ($stringify) { + // `JSON.stringify` method + // https://tc39.es/ecma262/#sec-json.stringify + $({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + stringify: function stringify(it, replacer, space) { + var args = arraySlice(arguments); + var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args); + return ILL_FORMED_UNICODE && typeof result == 'string' ? replace(result, tester, fixIllFormed) : result; + } + }); +} diff --git a/node_modules/core-js/modules/es.json.to-string-tag.js b/node_modules/core-js/modules/es.json.to-string-tag.js new file mode 100644 index 0000000..b886b62 --- /dev/null +++ b/node_modules/core-js/modules/es.json.to-string-tag.js @@ -0,0 +1,7 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var setToStringTag = require('../internals/set-to-string-tag'); + +// JSON[@@toStringTag] property +// https://tc39.es/ecma262/#sec-json-@@tostringtag +setToStringTag(globalThis.JSON, 'JSON', true); diff --git a/node_modules/core-js/modules/es.map.constructor.js b/node_modules/core-js/modules/es.map.constructor.js new file mode 100644 index 0000000..c78dcf6 --- /dev/null +++ b/node_modules/core-js/modules/es.map.constructor.js @@ -0,0 +1,9 @@ +'use strict'; +var collection = require('../internals/collection'); +var collectionStrong = require('../internals/collection-strong'); + +// `Map` constructor +// https://tc39.es/ecma262/#sec-map-objects +collection('Map', function (init) { + return function Map() { return init(this, arguments.length ? arguments[0] : undefined); }; +}, collectionStrong); diff --git a/node_modules/core-js/modules/es.map.group-by.js b/node_modules/core-js/modules/es.map.group-by.js new file mode 100644 index 0000000..2fbfe46 --- /dev/null +++ b/node_modules/core-js/modules/es.map.group-by.js @@ -0,0 +1,38 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var aCallable = require('../internals/a-callable'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var iterate = require('../internals/iterate'); +var MapHelpers = require('../internals/map-helpers'); +var IS_PURE = require('../internals/is-pure'); +var fails = require('../internals/fails'); + +var Map = MapHelpers.Map; +var has = MapHelpers.has; +var get = MapHelpers.get; +var set = MapHelpers.set; +var push = uncurryThis([].push); + +var DOES_NOT_WORK_WITH_PRIMITIVES = IS_PURE || fails(function () { + return Map.groupBy('ab', function (it) { + return it; + }).get('a').length !== 1; +}); + +// `Map.groupBy` method +// https://github.com/tc39/proposal-array-grouping +$({ target: 'Map', stat: true, forced: IS_PURE || DOES_NOT_WORK_WITH_PRIMITIVES }, { + groupBy: function groupBy(items, callbackfn) { + requireObjectCoercible(items); + aCallable(callbackfn); + var map = new Map(); + var k = 0; + iterate(items, function (value) { + var key = callbackfn(value, k++); + if (!has(map, key)) set(map, key, [value]); + else push(get(map, key), value); + }); + return map; + } +}); diff --git a/node_modules/core-js/modules/es.map.js b/node_modules/core-js/modules/es.map.js new file mode 100644 index 0000000..abe2fe5 --- /dev/null +++ b/node_modules/core-js/modules/es.map.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove this module from `core-js@4` since it's replaced to module below +require('../modules/es.map.constructor'); diff --git a/node_modules/core-js/modules/es.math.acosh.js b/node_modules/core-js/modules/es.math.acosh.js new file mode 100644 index 0000000..d49bb77 --- /dev/null +++ b/node_modules/core-js/modules/es.math.acosh.js @@ -0,0 +1,26 @@ +'use strict'; +var $ = require('../internals/export'); +var log1p = require('../internals/math-log1p'); + +// eslint-disable-next-line es/no-math-acosh -- required for testing +var $acosh = Math.acosh; +var log = Math.log; +var sqrt = Math.sqrt; +var LN2 = Math.LN2; + +var FORCED = !$acosh + // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509 + || Math.floor($acosh(Number.MAX_VALUE)) !== 710 + // Tor Browser bug: Math.acosh(Infinity) -> NaN + || $acosh(Infinity) !== Infinity; + +// `Math.acosh` method +// https://tc39.es/ecma262/#sec-math.acosh +$({ target: 'Math', stat: true, forced: FORCED }, { + acosh: function acosh(x) { + var n = +x; + return n < 1 ? NaN : n > 94906265.62425156 + ? log(n) + LN2 + : log1p(n - 1 + sqrt(n - 1) * sqrt(n + 1)); + } +}); diff --git a/node_modules/core-js/modules/es.math.asinh.js b/node_modules/core-js/modules/es.math.asinh.js new file mode 100644 index 0000000..0069392 --- /dev/null +++ b/node_modules/core-js/modules/es.math.asinh.js @@ -0,0 +1,21 @@ +'use strict'; +var $ = require('../internals/export'); + +// eslint-disable-next-line es/no-math-asinh -- required for testing +var $asinh = Math.asinh; +var log = Math.log; +var sqrt = Math.sqrt; + +function asinh(x) { + var n = +x; + return !isFinite(n) || n === 0 ? n : n < 0 ? -asinh(-n) : log(n + sqrt(n * n + 1)); +} + +var FORCED = !($asinh && 1 / $asinh(0) > 0); + +// `Math.asinh` method +// https://tc39.es/ecma262/#sec-math.asinh +// Tor Browser bug: Math.asinh(0) -> -0 +$({ target: 'Math', stat: true, forced: FORCED }, { + asinh: asinh +}); diff --git a/node_modules/core-js/modules/es.math.atanh.js b/node_modules/core-js/modules/es.math.atanh.js new file mode 100644 index 0000000..125a1b7 --- /dev/null +++ b/node_modules/core-js/modules/es.math.atanh.js @@ -0,0 +1,18 @@ +'use strict'; +var $ = require('../internals/export'); + +// eslint-disable-next-line es/no-math-atanh -- required for testing +var $atanh = Math.atanh; +var log = Math.log; + +var FORCED = !($atanh && 1 / $atanh(-0) < 0); + +// `Math.atanh` method +// https://tc39.es/ecma262/#sec-math.atanh +// Tor Browser bug: Math.atanh(-0) -> 0 +$({ target: 'Math', stat: true, forced: FORCED }, { + atanh: function atanh(x) { + var n = +x; + return n === 0 ? n : log((1 + n) / (1 - n)) / 2; + } +}); diff --git a/node_modules/core-js/modules/es.math.cbrt.js b/node_modules/core-js/modules/es.math.cbrt.js new file mode 100644 index 0000000..1c634cf --- /dev/null +++ b/node_modules/core-js/modules/es.math.cbrt.js @@ -0,0 +1,15 @@ +'use strict'; +var $ = require('../internals/export'); +var sign = require('../internals/math-sign'); + +var abs = Math.abs; +var pow = Math.pow; + +// `Math.cbrt` method +// https://tc39.es/ecma262/#sec-math.cbrt +$({ target: 'Math', stat: true }, { + cbrt: function cbrt(x) { + var n = +x; + return sign(n) * pow(abs(n), 1 / 3); + } +}); diff --git a/node_modules/core-js/modules/es.math.clz32.js b/node_modules/core-js/modules/es.math.clz32.js new file mode 100644 index 0000000..65f7ffc --- /dev/null +++ b/node_modules/core-js/modules/es.math.clz32.js @@ -0,0 +1,15 @@ +'use strict'; +var $ = require('../internals/export'); + +var floor = Math.floor; +var log = Math.log; +var LOG2E = Math.LOG2E; + +// `Math.clz32` method +// https://tc39.es/ecma262/#sec-math.clz32 +$({ target: 'Math', stat: true }, { + clz32: function clz32(x) { + var n = x >>> 0; + return n ? 31 - floor(log(n + 0.5) * LOG2E) : 32; + } +}); diff --git a/node_modules/core-js/modules/es.math.cosh.js b/node_modules/core-js/modules/es.math.cosh.js new file mode 100644 index 0000000..6846ead --- /dev/null +++ b/node_modules/core-js/modules/es.math.cosh.js @@ -0,0 +1,19 @@ +'use strict'; +var $ = require('../internals/export'); +var expm1 = require('../internals/math-expm1'); + +// eslint-disable-next-line es/no-math-cosh -- required for testing +var $cosh = Math.cosh; +var abs = Math.abs; +var E = Math.E; + +var FORCED = !$cosh || $cosh(710) === Infinity; + +// `Math.cosh` method +// https://tc39.es/ecma262/#sec-math.cosh +$({ target: 'Math', stat: true, forced: FORCED }, { + cosh: function cosh(x) { + var t = expm1(abs(x) - 1) + 1; + return (t + 1 / (t * E * E)) * (E / 2); + } +}); diff --git a/node_modules/core-js/modules/es.math.expm1.js b/node_modules/core-js/modules/es.math.expm1.js new file mode 100644 index 0000000..cc9f174 --- /dev/null +++ b/node_modules/core-js/modules/es.math.expm1.js @@ -0,0 +1,8 @@ +'use strict'; +var $ = require('../internals/export'); +var expm1 = require('../internals/math-expm1'); + +// `Math.expm1` method +// https://tc39.es/ecma262/#sec-math.expm1 +// eslint-disable-next-line es/no-math-expm1 -- required for testing +$({ target: 'Math', stat: true, forced: expm1 !== Math.expm1 }, { expm1: expm1 }); diff --git a/node_modules/core-js/modules/es.math.fround.js b/node_modules/core-js/modules/es.math.fround.js new file mode 100644 index 0000000..dedce41 --- /dev/null +++ b/node_modules/core-js/modules/es.math.fround.js @@ -0,0 +1,7 @@ +'use strict'; +var $ = require('../internals/export'); +var fround = require('../internals/math-fround'); + +// `Math.fround` method +// https://tc39.es/ecma262/#sec-math.fround +$({ target: 'Math', stat: true }, { fround: fround }); diff --git a/node_modules/core-js/modules/es.math.hypot.js b/node_modules/core-js/modules/es.math.hypot.js new file mode 100644 index 0000000..0c15598 --- /dev/null +++ b/node_modules/core-js/modules/es.math.hypot.js @@ -0,0 +1,36 @@ +'use strict'; +var $ = require('../internals/export'); + +// eslint-disable-next-line es/no-math-hypot -- required for testing +var $hypot = Math.hypot; +var abs = Math.abs; +var sqrt = Math.sqrt; + +// Chrome 77 bug +// https://bugs.chromium.org/p/v8/issues/detail?id=9546 +var FORCED = !!$hypot && $hypot(Infinity, NaN) !== Infinity; + +// `Math.hypot` method +// https://tc39.es/ecma262/#sec-math.hypot +$({ target: 'Math', stat: true, arity: 2, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + hypot: function hypot(value1, value2) { + var sum = 0; + var i = 0; + var aLen = arguments.length; + var larg = 0; + var arg, div; + while (i < aLen) { + arg = abs(arguments[i++]); + if (larg < arg) { + div = larg / arg; + sum = sum * div * div + 1; + larg = arg; + } else if (arg > 0) { + div = arg / larg; + sum += div * div; + } else sum += arg; + } + return larg === Infinity ? Infinity : larg * sqrt(sum); + } +}); diff --git a/node_modules/core-js/modules/es.math.imul.js b/node_modules/core-js/modules/es.math.imul.js new file mode 100644 index 0000000..23e73b6 --- /dev/null +++ b/node_modules/core-js/modules/es.math.imul.js @@ -0,0 +1,24 @@ +'use strict'; +var $ = require('../internals/export'); +var fails = require('../internals/fails'); + +// eslint-disable-next-line es/no-math-imul -- required for testing +var $imul = Math.imul; + +var FORCED = fails(function () { + return $imul(0xFFFFFFFF, 5) !== -5 || $imul.length !== 2; +}); + +// `Math.imul` method +// https://tc39.es/ecma262/#sec-math.imul +// some WebKit versions fails with big numbers, some has wrong arity +$({ target: 'Math', stat: true, forced: FORCED }, { + imul: function imul(x, y) { + var UINT16 = 0xFFFF; + var xn = +x; + var yn = +y; + var xl = UINT16 & xn; + var yl = UINT16 & yn; + return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0); + } +}); diff --git a/node_modules/core-js/modules/es.math.log10.js b/node_modules/core-js/modules/es.math.log10.js new file mode 100644 index 0000000..ebdcea3 --- /dev/null +++ b/node_modules/core-js/modules/es.math.log10.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var log10 = require('../internals/math-log10'); + +// `Math.log10` method +// https://tc39.es/ecma262/#sec-math.log10 +$({ target: 'Math', stat: true }, { + log10: log10 +}); diff --git a/node_modules/core-js/modules/es.math.log1p.js b/node_modules/core-js/modules/es.math.log1p.js new file mode 100644 index 0000000..951bb34 --- /dev/null +++ b/node_modules/core-js/modules/es.math.log1p.js @@ -0,0 +1,7 @@ +'use strict'; +var $ = require('../internals/export'); +var log1p = require('../internals/math-log1p'); + +// `Math.log1p` method +// https://tc39.es/ecma262/#sec-math.log1p +$({ target: 'Math', stat: true }, { log1p: log1p }); diff --git a/node_modules/core-js/modules/es.math.log2.js b/node_modules/core-js/modules/es.math.log2.js new file mode 100644 index 0000000..95cb4f9 --- /dev/null +++ b/node_modules/core-js/modules/es.math.log2.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); + +var log = Math.log; +var LN2 = Math.LN2; + +// `Math.log2` method +// https://tc39.es/ecma262/#sec-math.log2 +$({ target: 'Math', stat: true }, { + log2: function log2(x) { + return log(x) / LN2; + } +}); diff --git a/node_modules/core-js/modules/es.math.sign.js b/node_modules/core-js/modules/es.math.sign.js new file mode 100644 index 0000000..f28f17f --- /dev/null +++ b/node_modules/core-js/modules/es.math.sign.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var sign = require('../internals/math-sign'); + +// `Math.sign` method +// https://tc39.es/ecma262/#sec-math.sign +$({ target: 'Math', stat: true }, { + sign: sign +}); diff --git a/node_modules/core-js/modules/es.math.sinh.js b/node_modules/core-js/modules/es.math.sinh.js new file mode 100644 index 0000000..6e80ba0 --- /dev/null +++ b/node_modules/core-js/modules/es.math.sinh.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var fails = require('../internals/fails'); +var expm1 = require('../internals/math-expm1'); + +var abs = Math.abs; +var exp = Math.exp; +var E = Math.E; + +var FORCED = fails(function () { + // eslint-disable-next-line es/no-math-sinh -- required for testing + return Math.sinh(-2e-17) !== -2e-17; +}); + +// `Math.sinh` method +// https://tc39.es/ecma262/#sec-math.sinh +// V8 near Chromium 38 has a problem with very small numbers +$({ target: 'Math', stat: true, forced: FORCED }, { + sinh: function sinh(x) { + var n = +x; + return abs(n) < 1 ? (expm1(n) - expm1(-n)) / 2 : (exp(n - 1) - exp(-n - 1)) * (E / 2); + } +}); diff --git a/node_modules/core-js/modules/es.math.tanh.js b/node_modules/core-js/modules/es.math.tanh.js new file mode 100644 index 0000000..a93da24 --- /dev/null +++ b/node_modules/core-js/modules/es.math.tanh.js @@ -0,0 +1,16 @@ +'use strict'; +var $ = require('../internals/export'); +var expm1 = require('../internals/math-expm1'); + +var exp = Math.exp; + +// `Math.tanh` method +// https://tc39.es/ecma262/#sec-math.tanh +$({ target: 'Math', stat: true }, { + tanh: function tanh(x) { + var n = +x; + var a = expm1(n); + var b = expm1(-n); + return a === Infinity ? 1 : b === Infinity ? -1 : (a - b) / (exp(n) + exp(-n)); + } +}); diff --git a/node_modules/core-js/modules/es.math.to-string-tag.js b/node_modules/core-js/modules/es.math.to-string-tag.js new file mode 100644 index 0000000..183b9b8 --- /dev/null +++ b/node_modules/core-js/modules/es.math.to-string-tag.js @@ -0,0 +1,6 @@ +'use strict'; +var setToStringTag = require('../internals/set-to-string-tag'); + +// Math[@@toStringTag] property +// https://tc39.es/ecma262/#sec-math-@@tostringtag +setToStringTag(Math, 'Math', true); diff --git a/node_modules/core-js/modules/es.math.trunc.js b/node_modules/core-js/modules/es.math.trunc.js new file mode 100644 index 0000000..68d9921 --- /dev/null +++ b/node_modules/core-js/modules/es.math.trunc.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var trunc = require('../internals/math-trunc'); + +// `Math.trunc` method +// https://tc39.es/ecma262/#sec-math.trunc +$({ target: 'Math', stat: true }, { + trunc: trunc +}); diff --git a/node_modules/core-js/modules/es.number.constructor.js b/node_modules/core-js/modules/es.number.constructor.js new file mode 100644 index 0000000..a7e856c --- /dev/null +++ b/node_modules/core-js/modules/es.number.constructor.js @@ -0,0 +1,115 @@ +'use strict'; +var $ = require('../internals/export'); +var IS_PURE = require('../internals/is-pure'); +var DESCRIPTORS = require('../internals/descriptors'); +var globalThis = require('../internals/global-this'); +var path = require('../internals/path'); +var uncurryThis = require('../internals/function-uncurry-this'); +var isForced = require('../internals/is-forced'); +var hasOwn = require('../internals/has-own-property'); +var inheritIfRequired = require('../internals/inherit-if-required'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var isSymbol = require('../internals/is-symbol'); +var toPrimitive = require('../internals/to-primitive'); +var fails = require('../internals/fails'); +var getOwnPropertyNames = require('../internals/object-get-own-property-names').f; +var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; +var defineProperty = require('../internals/object-define-property').f; +var thisNumberValue = require('../internals/this-number-value'); +var trim = require('../internals/string-trim').trim; + +var NUMBER = 'Number'; +var NativeNumber = globalThis[NUMBER]; +var PureNumberNamespace = path[NUMBER]; +var NumberPrototype = NativeNumber.prototype; +var TypeError = globalThis.TypeError; +var stringSlice = uncurryThis(''.slice); +var charCodeAt = uncurryThis(''.charCodeAt); + +// `ToNumeric` abstract operation +// https://tc39.es/ecma262/#sec-tonumeric +var toNumeric = function (value) { + var primValue = toPrimitive(value, 'number'); + return typeof primValue == 'bigint' ? primValue : toNumber(primValue); +}; + +// `ToNumber` abstract operation +// https://tc39.es/ecma262/#sec-tonumber +var toNumber = function (argument) { + var it = toPrimitive(argument, 'number'); + var first, third, radix, maxCode, digits, length, index, code; + if (isSymbol(it)) throw new TypeError('Cannot convert a Symbol value to a number'); + if (typeof it == 'string' && it.length > 2) { + it = trim(it); + first = charCodeAt(it, 0); + if (first === 43 || first === 45) { + third = charCodeAt(it, 2); + if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix + } else if (first === 48) { + switch (charCodeAt(it, 1)) { + // fast equal of /^0b[01]+$/i + case 66: + case 98: + radix = 2; + maxCode = 49; + break; + // fast equal of /^0o[0-7]+$/i + case 79: + case 111: + radix = 8; + maxCode = 55; + break; + default: + return +it; + } + digits = stringSlice(it, 2); + length = digits.length; + for (index = 0; index < length; index++) { + code = charCodeAt(digits, index); + // parseInt parses a string to a first unavailable symbol + // but ToNumber should return NaN if a string contains unavailable symbols + if (code < 48 || code > maxCode) return NaN; + } return parseInt(digits, radix); + } + } return +it; +}; + +var FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1')); + +var calledWithNew = function (dummy) { + // includes check on 1..constructor(foo) case + return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); }); +}; + +// `Number` constructor +// https://tc39.es/ecma262/#sec-number-constructor +var NumberWrapper = function Number(value) { + var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value)); + return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n; +}; + +NumberWrapper.prototype = NumberPrototype; +if (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper; + +$({ global: true, constructor: true, wrap: true, forced: FORCED }, { + Number: NumberWrapper +}); + +// Use `internal/copy-constructor-properties` helper in `core-js@4` +var copyConstructorProperties = function (target, source) { + for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : ( + // ES3: + 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + + // ES2015 (in case, if modules with ES2015 Number statics required before): + 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + + // ESNext + 'fromString,range' + ).split(','), j = 0, key; keys.length > j; j++) { + if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } +}; + +if (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace); +if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber); diff --git a/node_modules/core-js/modules/es.number.epsilon.js b/node_modules/core-js/modules/es.number.epsilon.js new file mode 100644 index 0000000..30aa42a --- /dev/null +++ b/node_modules/core-js/modules/es.number.epsilon.js @@ -0,0 +1,8 @@ +'use strict'; +var $ = require('../internals/export'); + +// `Number.EPSILON` constant +// https://tc39.es/ecma262/#sec-number.epsilon +$({ target: 'Number', stat: true, nonConfigurable: true, nonWritable: true }, { + EPSILON: Math.pow(2, -52) +}); diff --git a/node_modules/core-js/modules/es.number.is-finite.js b/node_modules/core-js/modules/es.number.is-finite.js new file mode 100644 index 0000000..61e10e7 --- /dev/null +++ b/node_modules/core-js/modules/es.number.is-finite.js @@ -0,0 +1,7 @@ +'use strict'; +var $ = require('../internals/export'); +var numberIsFinite = require('../internals/number-is-finite'); + +// `Number.isFinite` method +// https://tc39.es/ecma262/#sec-number.isfinite +$({ target: 'Number', stat: true }, { isFinite: numberIsFinite }); diff --git a/node_modules/core-js/modules/es.number.is-integer.js b/node_modules/core-js/modules/es.number.is-integer.js new file mode 100644 index 0000000..57620df --- /dev/null +++ b/node_modules/core-js/modules/es.number.is-integer.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var isIntegralNumber = require('../internals/is-integral-number'); + +// `Number.isInteger` method +// https://tc39.es/ecma262/#sec-number.isinteger +$({ target: 'Number', stat: true }, { + isInteger: isIntegralNumber +}); diff --git a/node_modules/core-js/modules/es.number.is-nan.js b/node_modules/core-js/modules/es.number.is-nan.js new file mode 100644 index 0000000..d12d708 --- /dev/null +++ b/node_modules/core-js/modules/es.number.is-nan.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); + +// `Number.isNaN` method +// https://tc39.es/ecma262/#sec-number.isnan +$({ target: 'Number', stat: true }, { + isNaN: function isNaN(number) { + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number; + } +}); diff --git a/node_modules/core-js/modules/es.number.is-safe-integer.js b/node_modules/core-js/modules/es.number.is-safe-integer.js new file mode 100644 index 0000000..5720637 --- /dev/null +++ b/node_modules/core-js/modules/es.number.is-safe-integer.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); +var isIntegralNumber = require('../internals/is-integral-number'); + +var abs = Math.abs; + +// `Number.isSafeInteger` method +// https://tc39.es/ecma262/#sec-number.issafeinteger +$({ target: 'Number', stat: true }, { + isSafeInteger: function isSafeInteger(number) { + return isIntegralNumber(number) && abs(number) <= 0x1FFFFFFFFFFFFF; + } +}); diff --git a/node_modules/core-js/modules/es.number.max-safe-integer.js b/node_modules/core-js/modules/es.number.max-safe-integer.js new file mode 100644 index 0000000..44e1cbb --- /dev/null +++ b/node_modules/core-js/modules/es.number.max-safe-integer.js @@ -0,0 +1,8 @@ +'use strict'; +var $ = require('../internals/export'); + +// `Number.MAX_SAFE_INTEGER` constant +// https://tc39.es/ecma262/#sec-number.max_safe_integer +$({ target: 'Number', stat: true, nonConfigurable: true, nonWritable: true }, { + MAX_SAFE_INTEGER: 0x1FFFFFFFFFFFFF +}); diff --git a/node_modules/core-js/modules/es.number.min-safe-integer.js b/node_modules/core-js/modules/es.number.min-safe-integer.js new file mode 100644 index 0000000..1d6a871 --- /dev/null +++ b/node_modules/core-js/modules/es.number.min-safe-integer.js @@ -0,0 +1,8 @@ +'use strict'; +var $ = require('../internals/export'); + +// `Number.MIN_SAFE_INTEGER` constant +// https://tc39.es/ecma262/#sec-number.min_safe_integer +$({ target: 'Number', stat: true, nonConfigurable: true, nonWritable: true }, { + MIN_SAFE_INTEGER: -0x1FFFFFFFFFFFFF +}); diff --git a/node_modules/core-js/modules/es.number.parse-float.js b/node_modules/core-js/modules/es.number.parse-float.js new file mode 100644 index 0000000..754bed7 --- /dev/null +++ b/node_modules/core-js/modules/es.number.parse-float.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var parseFloat = require('../internals/number-parse-float'); + +// `Number.parseFloat` method +// https://tc39.es/ecma262/#sec-number.parseFloat +// eslint-disable-next-line es/no-number-parsefloat -- required for testing +$({ target: 'Number', stat: true, forced: Number.parseFloat !== parseFloat }, { + parseFloat: parseFloat +}); diff --git a/node_modules/core-js/modules/es.number.parse-int.js b/node_modules/core-js/modules/es.number.parse-int.js new file mode 100644 index 0000000..9cd6813 --- /dev/null +++ b/node_modules/core-js/modules/es.number.parse-int.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var parseInt = require('../internals/number-parse-int'); + +// `Number.parseInt` method +// https://tc39.es/ecma262/#sec-number.parseint +// eslint-disable-next-line es/no-number-parseint -- required for testing +$({ target: 'Number', stat: true, forced: Number.parseInt !== parseInt }, { + parseInt: parseInt +}); diff --git a/node_modules/core-js/modules/es.number.to-exponential.js b/node_modules/core-js/modules/es.number.to-exponential.js new file mode 100644 index 0000000..ed06e0d --- /dev/null +++ b/node_modules/core-js/modules/es.number.to-exponential.js @@ -0,0 +1,98 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var thisNumberValue = require('../internals/this-number-value'); +var $repeat = require('../internals/string-repeat'); +var log10 = require('../internals/math-log10'); +var fails = require('../internals/fails'); + +var $RangeError = RangeError; +var $String = String; +var $isFinite = isFinite; +var abs = Math.abs; +var floor = Math.floor; +var pow = Math.pow; +var round = Math.round; +var nativeToExponential = uncurryThis(1.0.toExponential); +var repeat = uncurryThis($repeat); +var stringSlice = uncurryThis(''.slice); + +// Edge 17- +var ROUNDS_PROPERLY = nativeToExponential(-6.9e-11, 4) === '-6.9000e-11' + // IE11- && Edge 14- + && nativeToExponential(1.255, 2) === '1.25e+0' + // FF86-, V8 ~ Chrome 49-50 + && nativeToExponential(12345, 3) === '1.235e+4' + // FF86-, V8 ~ Chrome 49-50 + && nativeToExponential(25, 0) === '3e+1'; + +// IE8- +var throwsOnInfinityFraction = function () { + return fails(function () { + nativeToExponential(1, Infinity); + }) && fails(function () { + nativeToExponential(1, -Infinity); + }); +}; + +// Safari <11 && FF <50 +var properNonFiniteThisCheck = function () { + return !fails(function () { + nativeToExponential(Infinity, Infinity); + nativeToExponential(NaN, Infinity); + }); +}; + +var FORCED = !ROUNDS_PROPERLY || !throwsOnInfinityFraction() || !properNonFiniteThisCheck(); + +// `Number.prototype.toExponential` method +// https://tc39.es/ecma262/#sec-number.prototype.toexponential +$({ target: 'Number', proto: true, forced: FORCED }, { + toExponential: function toExponential(fractionDigits) { + var x = thisNumberValue(this); + if (fractionDigits === undefined) return nativeToExponential(x); + var f = toIntegerOrInfinity(fractionDigits); + if (!$isFinite(x)) return String(x); + // TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation + if (f < 0 || f > 20) throw new $RangeError('Incorrect fraction digits'); + if (ROUNDS_PROPERLY) return nativeToExponential(x, f); + var s = ''; + var m, e, c, d; + if (x < 0) { + s = '-'; + x = -x; + } + if (x === 0) { + e = 0; + m = repeat('0', f + 1); + } else { + // this block is based on https://gist.github.com/SheetJSDev/1100ad56b9f856c95299ed0e068eea08 + // TODO: improve accuracy with big fraction digits + var l = log10(x); + e = floor(l); + var w = pow(10, e - f); + var n = round(x / w); + if (2 * x >= (2 * n + 1) * w) { + n += 1; + } + if (n >= pow(10, f + 1)) { + n /= 10; + e += 1; + } + m = $String(n); + } + if (f !== 0) { + m = stringSlice(m, 0, 1) + '.' + stringSlice(m, 1); + } + if (e === 0) { + c = '+'; + d = '0'; + } else { + c = e > 0 ? '+' : '-'; + d = $String(abs(e)); + } + m += 'e' + c + d; + return s + m; + } +}); diff --git a/node_modules/core-js/modules/es.number.to-fixed.js b/node_modules/core-js/modules/es.number.to-fixed.js new file mode 100644 index 0000000..2ac36b0 --- /dev/null +++ b/node_modules/core-js/modules/es.number.to-fixed.js @@ -0,0 +1,131 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var thisNumberValue = require('../internals/this-number-value'); +var $repeat = require('../internals/string-repeat'); +var fails = require('../internals/fails'); + +var $RangeError = RangeError; +var $String = String; +var floor = Math.floor; +var repeat = uncurryThis($repeat); +var stringSlice = uncurryThis(''.slice); +var nativeToFixed = uncurryThis(1.0.toFixed); + +var pow = function (x, n, acc) { + return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); +}; + +var log = function (x) { + var n = 0; + var x2 = x; + while (x2 >= 4096) { + n += 12; + x2 /= 4096; + } + while (x2 >= 2) { + n += 1; + x2 /= 2; + } return n; +}; + +var multiply = function (data, n, c) { + var index = -1; + var c2 = c; + while (++index < 6) { + c2 += n * data[index]; + data[index] = c2 % 1e7; + c2 = floor(c2 / 1e7); + } +}; + +var divide = function (data, n) { + var index = 6; + var c = 0; + while (--index >= 0) { + c += data[index]; + data[index] = floor(c / n); + c = (c % n) * 1e7; + } +}; + +var dataToString = function (data) { + var index = 6; + var s = ''; + while (--index >= 0) { + if (s !== '' || index === 0 || data[index] !== 0) { + var t = $String(data[index]); + s = s === '' ? t : s + repeat('0', 7 - t.length) + t; + } + } return s; +}; + +var FORCED = fails(function () { + return nativeToFixed(0.00008, 3) !== '0.000' || + nativeToFixed(0.9, 0) !== '1' || + nativeToFixed(1.255, 2) !== '1.25' || + nativeToFixed(1000000000000000128.0, 0) !== '1000000000000000128'; +}) || !fails(function () { + // V8 ~ Android 4.3- + nativeToFixed({}); +}); + +// `Number.prototype.toFixed` method +// https://tc39.es/ecma262/#sec-number.prototype.tofixed +$({ target: 'Number', proto: true, forced: FORCED }, { + toFixed: function toFixed(fractionDigits) { + var number = thisNumberValue(this); + var fractDigits = toIntegerOrInfinity(fractionDigits); + var data = [0, 0, 0, 0, 0, 0]; + var sign = ''; + var result = '0'; + var e, z, j, k; + + // TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation + if (fractDigits < 0 || fractDigits > 20) throw new $RangeError('Incorrect fraction digits'); + // eslint-disable-next-line no-self-compare -- NaN check + if (number !== number) return 'NaN'; + if (number <= -1e21 || number >= 1e21) return $String(number); + if (number < 0) { + sign = '-'; + number = -number; + } + if (number > 1e-21) { + e = log(number * pow(2, 69, 1)) - 69; + z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1); + z *= 0x10000000000000; + e = 52 - e; + if (e > 0) { + multiply(data, 0, z); + j = fractDigits; + while (j >= 7) { + multiply(data, 1e7, 0); + j -= 7; + } + multiply(data, pow(10, j, 1), 0); + j = e - 1; + while (j >= 23) { + divide(data, 1 << 23); + j -= 23; + } + divide(data, 1 << j); + multiply(data, 1, 1); + divide(data, 2); + result = dataToString(data); + } else { + multiply(data, 0, z); + multiply(data, 1 << -e, 0); + result = dataToString(data) + repeat('0', fractDigits); + } + } + if (fractDigits > 0) { + k = result.length; + result = sign + (k <= fractDigits + ? '0.' + repeat('0', fractDigits - k) + result + : stringSlice(result, 0, k - fractDigits) + '.' + stringSlice(result, k - fractDigits)); + } else { + result = sign + result; + } return result; + } +}); diff --git a/node_modules/core-js/modules/es.number.to-precision.js b/node_modules/core-js/modules/es.number.to-precision.js new file mode 100644 index 0000000..9e49e53 --- /dev/null +++ b/node_modules/core-js/modules/es.number.to-precision.js @@ -0,0 +1,25 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var fails = require('../internals/fails'); +var thisNumberValue = require('../internals/this-number-value'); + +var nativeToPrecision = uncurryThis(1.0.toPrecision); + +var FORCED = fails(function () { + // IE7- + return nativeToPrecision(1, undefined) !== '1'; +}) || !fails(function () { + // V8 ~ Android 4.3- + nativeToPrecision({}); +}); + +// `Number.prototype.toPrecision` method +// https://tc39.es/ecma262/#sec-number.prototype.toprecision +$({ target: 'Number', proto: true, forced: FORCED }, { + toPrecision: function toPrecision(precision) { + return precision === undefined + ? nativeToPrecision(thisNumberValue(this)) + : nativeToPrecision(thisNumberValue(this), precision); + } +}); diff --git a/node_modules/core-js/modules/es.object.assign.js b/node_modules/core-js/modules/es.object.assign.js new file mode 100644 index 0000000..88b1072 --- /dev/null +++ b/node_modules/core-js/modules/es.object.assign.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var assign = require('../internals/object-assign'); + +// `Object.assign` method +// https://tc39.es/ecma262/#sec-object.assign +// eslint-disable-next-line es/no-object-assign -- required for testing +$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, { + assign: assign +}); diff --git a/node_modules/core-js/modules/es.object.create.js b/node_modules/core-js/modules/es.object.create.js new file mode 100644 index 0000000..5522f62 --- /dev/null +++ b/node_modules/core-js/modules/es.object.create.js @@ -0,0 +1,11 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var create = require('../internals/object-create'); + +// `Object.create` method +// https://tc39.es/ecma262/#sec-object.create +$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, { + create: create +}); diff --git a/node_modules/core-js/modules/es.object.define-getter.js b/node_modules/core-js/modules/es.object.define-getter.js new file mode 100644 index 0000000..50fd442 --- /dev/null +++ b/node_modules/core-js/modules/es.object.define-getter.js @@ -0,0 +1,17 @@ +'use strict'; +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var FORCED = require('../internals/object-prototype-accessors-forced'); +var aCallable = require('../internals/a-callable'); +var toObject = require('../internals/to-object'); +var definePropertyModule = require('../internals/object-define-property'); + +// `Object.prototype.__defineGetter__` method +// https://tc39.es/ecma262/#sec-object.prototype.__defineGetter__ +if (DESCRIPTORS) { + $({ target: 'Object', proto: true, forced: FORCED }, { + __defineGetter__: function __defineGetter__(P, getter) { + definePropertyModule.f(toObject(this), P, { get: aCallable(getter), enumerable: true, configurable: true }); + } + }); +} diff --git a/node_modules/core-js/modules/es.object.define-properties.js b/node_modules/core-js/modules/es.object.define-properties.js new file mode 100644 index 0000000..b19cc60 --- /dev/null +++ b/node_modules/core-js/modules/es.object.define-properties.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var defineProperties = require('../internals/object-define-properties').f; + +// `Object.defineProperties` method +// https://tc39.es/ecma262/#sec-object.defineproperties +// eslint-disable-next-line es/no-object-defineproperties -- safe +$({ target: 'Object', stat: true, forced: Object.defineProperties !== defineProperties, sham: !DESCRIPTORS }, { + defineProperties: defineProperties +}); diff --git a/node_modules/core-js/modules/es.object.define-property.js b/node_modules/core-js/modules/es.object.define-property.js new file mode 100644 index 0000000..691c9c4 --- /dev/null +++ b/node_modules/core-js/modules/es.object.define-property.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var defineProperty = require('../internals/object-define-property').f; + +// `Object.defineProperty` method +// https://tc39.es/ecma262/#sec-object.defineproperty +// eslint-disable-next-line es/no-object-defineproperty -- safe +$({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty, sham: !DESCRIPTORS }, { + defineProperty: defineProperty +}); diff --git a/node_modules/core-js/modules/es.object.define-setter.js b/node_modules/core-js/modules/es.object.define-setter.js new file mode 100644 index 0000000..186976f --- /dev/null +++ b/node_modules/core-js/modules/es.object.define-setter.js @@ -0,0 +1,17 @@ +'use strict'; +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var FORCED = require('../internals/object-prototype-accessors-forced'); +var aCallable = require('../internals/a-callable'); +var toObject = require('../internals/to-object'); +var definePropertyModule = require('../internals/object-define-property'); + +// `Object.prototype.__defineSetter__` method +// https://tc39.es/ecma262/#sec-object.prototype.__defineSetter__ +if (DESCRIPTORS) { + $({ target: 'Object', proto: true, forced: FORCED }, { + __defineSetter__: function __defineSetter__(P, setter) { + definePropertyModule.f(toObject(this), P, { set: aCallable(setter), enumerable: true, configurable: true }); + } + }); +} diff --git a/node_modules/core-js/modules/es.object.entries.js b/node_modules/core-js/modules/es.object.entries.js new file mode 100644 index 0000000..41b6ad2 --- /dev/null +++ b/node_modules/core-js/modules/es.object.entries.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var $entries = require('../internals/object-to-array').entries; + +// `Object.entries` method +// https://tc39.es/ecma262/#sec-object.entries +$({ target: 'Object', stat: true }, { + entries: function entries(O) { + return $entries(O); + } +}); diff --git a/node_modules/core-js/modules/es.object.freeze.js b/node_modules/core-js/modules/es.object.freeze.js new file mode 100644 index 0000000..bd48bc7 --- /dev/null +++ b/node_modules/core-js/modules/es.object.freeze.js @@ -0,0 +1,18 @@ +'use strict'; +var $ = require('../internals/export'); +var FREEZING = require('../internals/freezing'); +var fails = require('../internals/fails'); +var isObject = require('../internals/is-object'); +var onFreeze = require('../internals/internal-metadata').onFreeze; + +// eslint-disable-next-line es/no-object-freeze -- safe +var $freeze = Object.freeze; +var FAILS_ON_PRIMITIVES = fails(function () { $freeze(1); }); + +// `Object.freeze` method +// https://tc39.es/ecma262/#sec-object.freeze +$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, { + freeze: function freeze(it) { + return $freeze && isObject(it) ? $freeze(onFreeze(it)) : it; + } +}); diff --git a/node_modules/core-js/modules/es.object.from-entries.js b/node_modules/core-js/modules/es.object.from-entries.js new file mode 100644 index 0000000..12332a8 --- /dev/null +++ b/node_modules/core-js/modules/es.object.from-entries.js @@ -0,0 +1,16 @@ +'use strict'; +var $ = require('../internals/export'); +var iterate = require('../internals/iterate'); +var createProperty = require('../internals/create-property'); + +// `Object.fromEntries` method +// https://github.com/tc39/proposal-object-from-entries +$({ target: 'Object', stat: true }, { + fromEntries: function fromEntries(iterable) { + var obj = {}; + iterate(iterable, function (k, v) { + createProperty(obj, k, v); + }, { AS_ENTRIES: true }); + return obj; + } +}); diff --git a/node_modules/core-js/modules/es.object.get-own-property-descriptor.js b/node_modules/core-js/modules/es.object.get-own-property-descriptor.js new file mode 100644 index 0000000..44606a4 --- /dev/null +++ b/node_modules/core-js/modules/es.object.get-own-property-descriptor.js @@ -0,0 +1,16 @@ +'use strict'; +var $ = require('../internals/export'); +var fails = require('../internals/fails'); +var toIndexedObject = require('../internals/to-indexed-object'); +var nativeGetOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; +var DESCRIPTORS = require('../internals/descriptors'); + +var FORCED = !DESCRIPTORS || fails(function () { nativeGetOwnPropertyDescriptor(1); }); + +// `Object.getOwnPropertyDescriptor` method +// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor +$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, { + getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) { + return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key); + } +}); diff --git a/node_modules/core-js/modules/es.object.get-own-property-descriptors.js b/node_modules/core-js/modules/es.object.get-own-property-descriptors.js new file mode 100644 index 0000000..7c1a22c --- /dev/null +++ b/node_modules/core-js/modules/es.object.get-own-property-descriptors.js @@ -0,0 +1,25 @@ +'use strict'; +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var ownKeys = require('../internals/own-keys'); +var toIndexedObject = require('../internals/to-indexed-object'); +var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor'); +var createProperty = require('../internals/create-property'); + +// `Object.getOwnPropertyDescriptors` method +// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors +$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, { + getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { + var O = toIndexedObject(object); + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + var keys = ownKeys(O); + var result = {}; + var index = 0; + var key, descriptor; + while (keys.length > index) { + descriptor = getOwnPropertyDescriptor(O, key = keys[index++]); + if (descriptor !== undefined) createProperty(result, key, descriptor); + } + return result; + } +}); diff --git a/node_modules/core-js/modules/es.object.get-own-property-names.js b/node_modules/core-js/modules/es.object.get-own-property-names.js new file mode 100644 index 0000000..c076a51 --- /dev/null +++ b/node_modules/core-js/modules/es.object.get-own-property-names.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); +var fails = require('../internals/fails'); +var getOwnPropertyNames = require('../internals/object-get-own-property-names-external').f; + +// eslint-disable-next-line es/no-object-getownpropertynames -- required for testing +var FAILS_ON_PRIMITIVES = fails(function () { return !Object.getOwnPropertyNames(1); }); + +// `Object.getOwnPropertyNames` method +// https://tc39.es/ecma262/#sec-object.getownpropertynames +$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, { + getOwnPropertyNames: getOwnPropertyNames +}); diff --git a/node_modules/core-js/modules/es.object.get-own-property-symbols.js b/node_modules/core-js/modules/es.object.get-own-property-symbols.js new file mode 100644 index 0000000..62ebd30 --- /dev/null +++ b/node_modules/core-js/modules/es.object.get-own-property-symbols.js @@ -0,0 +1,19 @@ +'use strict'; +var $ = require('../internals/export'); +var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); +var fails = require('../internals/fails'); +var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols'); +var toObject = require('../internals/to-object'); + +// V8 ~ Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives +// https://bugs.chromium.org/p/v8/issues/detail?id=3443 +var FORCED = !NATIVE_SYMBOL || fails(function () { getOwnPropertySymbolsModule.f(1); }); + +// `Object.getOwnPropertySymbols` method +// https://tc39.es/ecma262/#sec-object.getownpropertysymbols +$({ target: 'Object', stat: true, forced: FORCED }, { + getOwnPropertySymbols: function getOwnPropertySymbols(it) { + var $getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : []; + } +}); diff --git a/node_modules/core-js/modules/es.object.get-prototype-of.js b/node_modules/core-js/modules/es.object.get-prototype-of.js new file mode 100644 index 0000000..e8b5316 --- /dev/null +++ b/node_modules/core-js/modules/es.object.get-prototype-of.js @@ -0,0 +1,17 @@ +'use strict'; +var $ = require('../internals/export'); +var fails = require('../internals/fails'); +var toObject = require('../internals/to-object'); +var nativeGetPrototypeOf = require('../internals/object-get-prototype-of'); +var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter'); + +var FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); }); + +// `Object.getPrototypeOf` method +// https://tc39.es/ecma262/#sec-object.getprototypeof +$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, { + getPrototypeOf: function getPrototypeOf(it) { + return nativeGetPrototypeOf(toObject(it)); + } +}); + diff --git a/node_modules/core-js/modules/es.object.group-by.js b/node_modules/core-js/modules/es.object.group-by.js new file mode 100644 index 0000000..d3ff4d4 --- /dev/null +++ b/node_modules/core-js/modules/es.object.group-by.js @@ -0,0 +1,39 @@ +'use strict'; +var $ = require('../internals/export'); +var getBuiltIn = require('../internals/get-built-in'); +var uncurryThis = require('../internals/function-uncurry-this'); +var aCallable = require('../internals/a-callable'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var toPropertyKey = require('../internals/to-property-key'); +var iterate = require('../internals/iterate'); +var fails = require('../internals/fails'); + +// eslint-disable-next-line es/no-object-groupby -- testing +var nativeGroupBy = Object.groupBy; +var create = getBuiltIn('Object', 'create'); +var push = uncurryThis([].push); + +var DOES_NOT_WORK_WITH_PRIMITIVES = !nativeGroupBy || fails(function () { + return nativeGroupBy('ab', function (it) { + return it; + }).a.length !== 1; +}); + +// `Object.groupBy` method +// https://github.com/tc39/proposal-array-grouping +$({ target: 'Object', stat: true, forced: DOES_NOT_WORK_WITH_PRIMITIVES }, { + groupBy: function groupBy(items, callbackfn) { + requireObjectCoercible(items); + aCallable(callbackfn); + var obj = create(null); + var k = 0; + iterate(items, function (value) { + var key = toPropertyKey(callbackfn(value, k++)); + // in some IE versions, `hasOwnProperty` returns incorrect result on integer keys + // but since it's a `null` prototype object, we can safely use `in` + if (key in obj) push(obj[key], value); + else obj[key] = [value]; + }); + return obj; + } +}); diff --git a/node_modules/core-js/modules/es.object.has-own.js b/node_modules/core-js/modules/es.object.has-own.js new file mode 100644 index 0000000..0723a80 --- /dev/null +++ b/node_modules/core-js/modules/es.object.has-own.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var hasOwn = require('../internals/has-own-property'); + +// `Object.hasOwn` method +// https://tc39.es/ecma262/#sec-object.hasown +$({ target: 'Object', stat: true }, { + hasOwn: hasOwn +}); diff --git a/node_modules/core-js/modules/es.object.is-extensible.js b/node_modules/core-js/modules/es.object.is-extensible.js new file mode 100644 index 0000000..4b05a29 --- /dev/null +++ b/node_modules/core-js/modules/es.object.is-extensible.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var $isExtensible = require('../internals/object-is-extensible'); + +// `Object.isExtensible` method +// https://tc39.es/ecma262/#sec-object.isextensible +// eslint-disable-next-line es/no-object-isextensible -- safe +$({ target: 'Object', stat: true, forced: Object.isExtensible !== $isExtensible }, { + isExtensible: $isExtensible +}); diff --git a/node_modules/core-js/modules/es.object.is-frozen.js b/node_modules/core-js/modules/es.object.is-frozen.js new file mode 100644 index 0000000..4cd6ddb --- /dev/null +++ b/node_modules/core-js/modules/es.object.is-frozen.js @@ -0,0 +1,21 @@ +'use strict'; +var $ = require('../internals/export'); +var fails = require('../internals/fails'); +var isObject = require('../internals/is-object'); +var classof = require('../internals/classof-raw'); +var ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible'); + +// eslint-disable-next-line es/no-object-isfrozen -- safe +var $isFrozen = Object.isFrozen; + +var FORCED = ARRAY_BUFFER_NON_EXTENSIBLE || fails(function () { $isFrozen(1); }); + +// `Object.isFrozen` method +// https://tc39.es/ecma262/#sec-object.isfrozen +$({ target: 'Object', stat: true, forced: FORCED }, { + isFrozen: function isFrozen(it) { + if (!isObject(it)) return true; + if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) === 'ArrayBuffer') return true; + return $isFrozen ? $isFrozen(it) : false; + } +}); diff --git a/node_modules/core-js/modules/es.object.is-sealed.js b/node_modules/core-js/modules/es.object.is-sealed.js new file mode 100644 index 0000000..cf3a787 --- /dev/null +++ b/node_modules/core-js/modules/es.object.is-sealed.js @@ -0,0 +1,21 @@ +'use strict'; +var $ = require('../internals/export'); +var fails = require('../internals/fails'); +var isObject = require('../internals/is-object'); +var classof = require('../internals/classof-raw'); +var ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible'); + +// eslint-disable-next-line es/no-object-issealed -- safe +var $isSealed = Object.isSealed; + +var FORCED = ARRAY_BUFFER_NON_EXTENSIBLE || fails(function () { $isSealed(1); }); + +// `Object.isSealed` method +// https://tc39.es/ecma262/#sec-object.issealed +$({ target: 'Object', stat: true, forced: FORCED }, { + isSealed: function isSealed(it) { + if (!isObject(it)) return true; + if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) === 'ArrayBuffer') return true; + return $isSealed ? $isSealed(it) : false; + } +}); diff --git a/node_modules/core-js/modules/es.object.is.js b/node_modules/core-js/modules/es.object.is.js new file mode 100644 index 0000000..7478e2d --- /dev/null +++ b/node_modules/core-js/modules/es.object.is.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var is = require('../internals/same-value'); + +// `Object.is` method +// https://tc39.es/ecma262/#sec-object.is +$({ target: 'Object', stat: true }, { + is: is +}); diff --git a/node_modules/core-js/modules/es.object.keys.js b/node_modules/core-js/modules/es.object.keys.js new file mode 100644 index 0000000..92356b7 --- /dev/null +++ b/node_modules/core-js/modules/es.object.keys.js @@ -0,0 +1,15 @@ +'use strict'; +var $ = require('../internals/export'); +var toObject = require('../internals/to-object'); +var nativeKeys = require('../internals/object-keys'); +var fails = require('../internals/fails'); + +var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); }); + +// `Object.keys` method +// https://tc39.es/ecma262/#sec-object.keys +$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, { + keys: function keys(it) { + return nativeKeys(toObject(it)); + } +}); diff --git a/node_modules/core-js/modules/es.object.lookup-getter.js b/node_modules/core-js/modules/es.object.lookup-getter.js new file mode 100644 index 0000000..d7f59fe --- /dev/null +++ b/node_modules/core-js/modules/es.object.lookup-getter.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var FORCED = require('../internals/object-prototype-accessors-forced'); +var toObject = require('../internals/to-object'); +var toPropertyKey = require('../internals/to-property-key'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); +var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; + +// `Object.prototype.__lookupGetter__` method +// https://tc39.es/ecma262/#sec-object.prototype.__lookupGetter__ +if (DESCRIPTORS) { + $({ target: 'Object', proto: true, forced: FORCED }, { + __lookupGetter__: function __lookupGetter__(P) { + var O = toObject(this); + var key = toPropertyKey(P); + var desc; + do { + if (desc = getOwnPropertyDescriptor(O, key)) return desc.get; + } while (O = getPrototypeOf(O)); + } + }); +} diff --git a/node_modules/core-js/modules/es.object.lookup-setter.js b/node_modules/core-js/modules/es.object.lookup-setter.js new file mode 100644 index 0000000..7739713 --- /dev/null +++ b/node_modules/core-js/modules/es.object.lookup-setter.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var FORCED = require('../internals/object-prototype-accessors-forced'); +var toObject = require('../internals/to-object'); +var toPropertyKey = require('../internals/to-property-key'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); +var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; + +// `Object.prototype.__lookupSetter__` method +// https://tc39.es/ecma262/#sec-object.prototype.__lookupSetter__ +if (DESCRIPTORS) { + $({ target: 'Object', proto: true, forced: FORCED }, { + __lookupSetter__: function __lookupSetter__(P) { + var O = toObject(this); + var key = toPropertyKey(P); + var desc; + do { + if (desc = getOwnPropertyDescriptor(O, key)) return desc.set; + } while (O = getPrototypeOf(O)); + } + }); +} diff --git a/node_modules/core-js/modules/es.object.prevent-extensions.js b/node_modules/core-js/modules/es.object.prevent-extensions.js new file mode 100644 index 0000000..0f826f8 --- /dev/null +++ b/node_modules/core-js/modules/es.object.prevent-extensions.js @@ -0,0 +1,18 @@ +'use strict'; +var $ = require('../internals/export'); +var isObject = require('../internals/is-object'); +var onFreeze = require('../internals/internal-metadata').onFreeze; +var FREEZING = require('../internals/freezing'); +var fails = require('../internals/fails'); + +// eslint-disable-next-line es/no-object-preventextensions -- safe +var $preventExtensions = Object.preventExtensions; +var FAILS_ON_PRIMITIVES = fails(function () { $preventExtensions(1); }); + +// `Object.preventExtensions` method +// https://tc39.es/ecma262/#sec-object.preventextensions +$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, { + preventExtensions: function preventExtensions(it) { + return $preventExtensions && isObject(it) ? $preventExtensions(onFreeze(it)) : it; + } +}); diff --git a/node_modules/core-js/modules/es.object.proto.js b/node_modules/core-js/modules/es.object.proto.js new file mode 100644 index 0000000..9954885 --- /dev/null +++ b/node_modules/core-js/modules/es.object.proto.js @@ -0,0 +1,31 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var isObject = require('../internals/is-object'); +var isPossiblePrototype = require('../internals/is-possible-prototype'); +var toObject = require('../internals/to-object'); +var requireObjectCoercible = require('../internals/require-object-coercible'); + +// eslint-disable-next-line es/no-object-getprototypeof -- safe +var getPrototypeOf = Object.getPrototypeOf; +// eslint-disable-next-line es/no-object-setprototypeof -- safe +var setPrototypeOf = Object.setPrototypeOf; +var ObjectPrototype = Object.prototype; +var PROTO = '__proto__'; + +// `Object.prototype.__proto__` accessor +// https://tc39.es/ecma262/#sec-object.prototype.__proto__ +if (DESCRIPTORS && getPrototypeOf && setPrototypeOf && !(PROTO in ObjectPrototype)) try { + defineBuiltInAccessor(ObjectPrototype, PROTO, { + configurable: true, + get: function __proto__() { + return getPrototypeOf(toObject(this)); + }, + set: function __proto__(proto) { + var O = requireObjectCoercible(this); + if (isPossiblePrototype(proto) && isObject(O)) { + setPrototypeOf(O, proto); + } + } + }); +} catch (error) { /* empty */ } diff --git a/node_modules/core-js/modules/es.object.seal.js b/node_modules/core-js/modules/es.object.seal.js new file mode 100644 index 0000000..b77983b --- /dev/null +++ b/node_modules/core-js/modules/es.object.seal.js @@ -0,0 +1,18 @@ +'use strict'; +var $ = require('../internals/export'); +var isObject = require('../internals/is-object'); +var onFreeze = require('../internals/internal-metadata').onFreeze; +var FREEZING = require('../internals/freezing'); +var fails = require('../internals/fails'); + +// eslint-disable-next-line es/no-object-seal -- safe +var $seal = Object.seal; +var FAILS_ON_PRIMITIVES = fails(function () { $seal(1); }); + +// `Object.seal` method +// https://tc39.es/ecma262/#sec-object.seal +$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, { + seal: function seal(it) { + return $seal && isObject(it) ? $seal(onFreeze(it)) : it; + } +}); diff --git a/node_modules/core-js/modules/es.object.set-prototype-of.js b/node_modules/core-js/modules/es.object.set-prototype-of.js new file mode 100644 index 0000000..3d0952e --- /dev/null +++ b/node_modules/core-js/modules/es.object.set-prototype-of.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var setPrototypeOf = require('../internals/object-set-prototype-of'); + +// `Object.setPrototypeOf` method +// https://tc39.es/ecma262/#sec-object.setprototypeof +$({ target: 'Object', stat: true }, { + setPrototypeOf: setPrototypeOf +}); diff --git a/node_modules/core-js/modules/es.object.to-string.js b/node_modules/core-js/modules/es.object.to-string.js new file mode 100644 index 0000000..63253be --- /dev/null +++ b/node_modules/core-js/modules/es.object.to-string.js @@ -0,0 +1,10 @@ +'use strict'; +var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support'); +var defineBuiltIn = require('../internals/define-built-in'); +var toString = require('../internals/object-to-string'); + +// `Object.prototype.toString` method +// https://tc39.es/ecma262/#sec-object.prototype.tostring +if (!TO_STRING_TAG_SUPPORT) { + defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true }); +} diff --git a/node_modules/core-js/modules/es.object.values.js b/node_modules/core-js/modules/es.object.values.js new file mode 100644 index 0000000..e35348e --- /dev/null +++ b/node_modules/core-js/modules/es.object.values.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var $values = require('../internals/object-to-array').values; + +// `Object.values` method +// https://tc39.es/ecma262/#sec-object.values +$({ target: 'Object', stat: true }, { + values: function values(O) { + return $values(O); + } +}); diff --git a/node_modules/core-js/modules/es.parse-float.js b/node_modules/core-js/modules/es.parse-float.js new file mode 100644 index 0000000..109e075 --- /dev/null +++ b/node_modules/core-js/modules/es.parse-float.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var $parseFloat = require('../internals/number-parse-float'); + +// `parseFloat` method +// https://tc39.es/ecma262/#sec-parsefloat-string +$({ global: true, forced: parseFloat !== $parseFloat }, { + parseFloat: $parseFloat +}); diff --git a/node_modules/core-js/modules/es.parse-int.js b/node_modules/core-js/modules/es.parse-int.js new file mode 100644 index 0000000..7422a73 --- /dev/null +++ b/node_modules/core-js/modules/es.parse-int.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var $parseInt = require('../internals/number-parse-int'); + +// `parseInt` method +// https://tc39.es/ecma262/#sec-parseint-string-radix +$({ global: true, forced: parseInt !== $parseInt }, { + parseInt: $parseInt +}); diff --git a/node_modules/core-js/modules/es.promise.all-settled.js b/node_modules/core-js/modules/es.promise.all-settled.js new file mode 100644 index 0000000..73b282a --- /dev/null +++ b/node_modules/core-js/modules/es.promise.all-settled.js @@ -0,0 +1,44 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var newPromiseCapabilityModule = require('../internals/new-promise-capability'); +var perform = require('../internals/perform'); +var iterate = require('../internals/iterate'); +var PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration'); + +// `Promise.allSettled` method +// https://tc39.es/ecma262/#sec-promise.allsettled +$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { + allSettled: function allSettled(iterable) { + var C = this; + var capability = newPromiseCapabilityModule.f(C); + var resolve = capability.resolve; + var reject = capability.reject; + var result = perform(function () { + var promiseResolve = aCallable(C.resolve); + var values = []; + var counter = 0; + var remaining = 1; + iterate(iterable, function (promise) { + var index = counter++; + var alreadyCalled = false; + remaining++; + call(promiseResolve, C, promise).then(function (value) { + if (alreadyCalled) return; + alreadyCalled = true; + values[index] = { status: 'fulfilled', value: value }; + --remaining || resolve(values); + }, function (error) { + if (alreadyCalled) return; + alreadyCalled = true; + values[index] = { status: 'rejected', reason: error }; + --remaining || resolve(values); + }); + }); + --remaining || resolve(values); + }); + if (result.error) reject(result.value); + return capability.promise; + } +}); diff --git a/node_modules/core-js/modules/es.promise.all.js b/node_modules/core-js/modules/es.promise.all.js new file mode 100644 index 0000000..77e81c9 --- /dev/null +++ b/node_modules/core-js/modules/es.promise.all.js @@ -0,0 +1,39 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var newPromiseCapabilityModule = require('../internals/new-promise-capability'); +var perform = require('../internals/perform'); +var iterate = require('../internals/iterate'); +var PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration'); + +// `Promise.all` method +// https://tc39.es/ecma262/#sec-promise.all +$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { + all: function all(iterable) { + var C = this; + var capability = newPromiseCapabilityModule.f(C); + var resolve = capability.resolve; + var reject = capability.reject; + var result = perform(function () { + var $promiseResolve = aCallable(C.resolve); + var values = []; + var counter = 0; + var remaining = 1; + iterate(iterable, function (promise) { + var index = counter++; + var alreadyCalled = false; + remaining++; + call($promiseResolve, C, promise).then(function (value) { + if (alreadyCalled) return; + alreadyCalled = true; + values[index] = value; + --remaining || resolve(values); + }, reject); + }); + --remaining || resolve(values); + }); + if (result.error) reject(result.value); + return capability.promise; + } +}); diff --git a/node_modules/core-js/modules/es.promise.any.js b/node_modules/core-js/modules/es.promise.any.js new file mode 100644 index 0000000..dd92bd7 --- /dev/null +++ b/node_modules/core-js/modules/es.promise.any.js @@ -0,0 +1,48 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var getBuiltIn = require('../internals/get-built-in'); +var newPromiseCapabilityModule = require('../internals/new-promise-capability'); +var perform = require('../internals/perform'); +var iterate = require('../internals/iterate'); +var PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration'); + +var PROMISE_ANY_ERROR = 'No one promise resolved'; + +// `Promise.any` method +// https://tc39.es/ecma262/#sec-promise.any +$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { + any: function any(iterable) { + var C = this; + var AggregateError = getBuiltIn('AggregateError'); + var capability = newPromiseCapabilityModule.f(C); + var resolve = capability.resolve; + var reject = capability.reject; + var result = perform(function () { + var promiseResolve = aCallable(C.resolve); + var errors = []; + var counter = 0; + var remaining = 1; + var alreadyResolved = false; + iterate(iterable, function (promise) { + var index = counter++; + var alreadyRejected = false; + remaining++; + call(promiseResolve, C, promise).then(function (value) { + if (alreadyRejected || alreadyResolved) return; + alreadyResolved = true; + resolve(value); + }, function (error) { + if (alreadyRejected || alreadyResolved) return; + alreadyRejected = true; + errors[index] = error; + --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR)); + }); + }); + --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR)); + }); + if (result.error) reject(result.value); + return capability.promise; + } +}); diff --git a/node_modules/core-js/modules/es.promise.catch.js b/node_modules/core-js/modules/es.promise.catch.js new file mode 100644 index 0000000..c4947fd --- /dev/null +++ b/node_modules/core-js/modules/es.promise.catch.js @@ -0,0 +1,26 @@ +'use strict'; +var $ = require('../internals/export'); +var IS_PURE = require('../internals/is-pure'); +var FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR; +var NativePromiseConstructor = require('../internals/promise-native-constructor'); +var getBuiltIn = require('../internals/get-built-in'); +var isCallable = require('../internals/is-callable'); +var defineBuiltIn = require('../internals/define-built-in'); + +var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; + +// `Promise.prototype.catch` method +// https://tc39.es/ecma262/#sec-promise.prototype.catch +$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, { + 'catch': function (onRejected) { + return this.then(undefined, onRejected); + } +}); + +// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then` +if (!IS_PURE && isCallable(NativePromiseConstructor)) { + var method = getBuiltIn('Promise').prototype['catch']; + if (NativePromisePrototype['catch'] !== method) { + defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true }); + } +} diff --git a/node_modules/core-js/modules/es.promise.constructor.js b/node_modules/core-js/modules/es.promise.constructor.js new file mode 100644 index 0000000..8660190 --- /dev/null +++ b/node_modules/core-js/modules/es.promise.constructor.js @@ -0,0 +1,288 @@ +'use strict'; +var $ = require('../internals/export'); +var IS_PURE = require('../internals/is-pure'); +var IS_NODE = require('../internals/environment-is-node'); +var globalThis = require('../internals/global-this'); +var call = require('../internals/function-call'); +var defineBuiltIn = require('../internals/define-built-in'); +var setPrototypeOf = require('../internals/object-set-prototype-of'); +var setToStringTag = require('../internals/set-to-string-tag'); +var setSpecies = require('../internals/set-species'); +var aCallable = require('../internals/a-callable'); +var isCallable = require('../internals/is-callable'); +var isObject = require('../internals/is-object'); +var anInstance = require('../internals/an-instance'); +var speciesConstructor = require('../internals/species-constructor'); +var task = require('../internals/task').set; +var microtask = require('../internals/microtask'); +var hostReportErrors = require('../internals/host-report-errors'); +var perform = require('../internals/perform'); +var Queue = require('../internals/queue'); +var InternalStateModule = require('../internals/internal-state'); +var NativePromiseConstructor = require('../internals/promise-native-constructor'); +var PromiseConstructorDetection = require('../internals/promise-constructor-detection'); +var newPromiseCapabilityModule = require('../internals/new-promise-capability'); + +var PROMISE = 'Promise'; +var FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR; +var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT; +var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING; +var getInternalPromiseState = InternalStateModule.getterFor(PROMISE); +var setInternalState = InternalStateModule.set; +var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; +var PromiseConstructor = NativePromiseConstructor; +var PromisePrototype = NativePromisePrototype; +var TypeError = globalThis.TypeError; +var document = globalThis.document; +var process = globalThis.process; +var newPromiseCapability = newPromiseCapabilityModule.f; +var newGenericPromiseCapability = newPromiseCapability; + +var DISPATCH_EVENT = !!(document && document.createEvent && globalThis.dispatchEvent); +var UNHANDLED_REJECTION = 'unhandledrejection'; +var REJECTION_HANDLED = 'rejectionhandled'; +var PENDING = 0; +var FULFILLED = 1; +var REJECTED = 2; +var HANDLED = 1; +var UNHANDLED = 2; + +var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen; + +// helpers +var isThenable = function (it) { + var then; + return isObject(it) && isCallable(then = it.then) ? then : false; +}; + +var callReaction = function (reaction, state) { + var value = state.value; + var ok = state.state === FULFILLED; + var handler = ok ? reaction.ok : reaction.fail; + var resolve = reaction.resolve; + var reject = reaction.reject; + var domain = reaction.domain; + var result, then, exited; + try { + if (handler) { + if (!ok) { + if (state.rejection === UNHANDLED) onHandleUnhandled(state); + state.rejection = HANDLED; + } + if (handler === true) result = value; + else { + if (domain) domain.enter(); + result = handler(value); // can throw + if (domain) { + domain.exit(); + exited = true; + } + } + if (result === reaction.promise) { + reject(new TypeError('Promise-chain cycle')); + } else if (then = isThenable(result)) { + call(then, result, resolve, reject); + } else resolve(result); + } else reject(value); + } catch (error) { + if (domain && !exited) domain.exit(); + reject(error); + } +}; + +var notify = function (state, isReject) { + if (state.notified) return; + state.notified = true; + microtask(function () { + var reactions = state.reactions; + var reaction; + while (reaction = reactions.get()) { + callReaction(reaction, state); + } + state.notified = false; + if (isReject && !state.rejection) onUnhandled(state); + }); +}; + +var dispatchEvent = function (name, promise, reason) { + var event, handler; + if (DISPATCH_EVENT) { + event = document.createEvent('Event'); + event.promise = promise; + event.reason = reason; + event.initEvent(name, false, true); + globalThis.dispatchEvent(event); + } else event = { promise: promise, reason: reason }; + if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis['on' + name])) handler(event); + else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason); +}; + +var onUnhandled = function (state) { + call(task, globalThis, function () { + var promise = state.facade; + var value = state.value; + var IS_UNHANDLED = isUnhandled(state); + var result; + if (IS_UNHANDLED) { + result = perform(function () { + if (IS_NODE) { + process.emit('unhandledRejection', value, promise); + } else dispatchEvent(UNHANDLED_REJECTION, promise, value); + }); + // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should + state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED; + if (result.error) throw result.value; + } + }); +}; + +var isUnhandled = function (state) { + return state.rejection !== HANDLED && !state.parent; +}; + +var onHandleUnhandled = function (state) { + call(task, globalThis, function () { + var promise = state.facade; + if (IS_NODE) { + process.emit('rejectionHandled', promise); + } else dispatchEvent(REJECTION_HANDLED, promise, state.value); + }); +}; + +var bind = function (fn, state, unwrap) { + return function (value) { + fn(state, value, unwrap); + }; +}; + +var internalReject = function (state, value, unwrap) { + if (state.done) return; + state.done = true; + if (unwrap) state = unwrap; + state.value = value; + state.state = REJECTED; + notify(state, true); +}; + +var internalResolve = function (state, value, unwrap) { + if (state.done) return; + state.done = true; + if (unwrap) state = unwrap; + try { + if (state.facade === value) throw new TypeError("Promise can't be resolved itself"); + var then = isThenable(value); + if (then) { + microtask(function () { + var wrapper = { done: false }; + try { + call(then, value, + bind(internalResolve, wrapper, state), + bind(internalReject, wrapper, state) + ); + } catch (error) { + internalReject(wrapper, error, state); + } + }); + } else { + state.value = value; + state.state = FULFILLED; + notify(state, false); + } + } catch (error) { + internalReject({ done: false }, error, state); + } +}; + +// constructor polyfill +if (FORCED_PROMISE_CONSTRUCTOR) { + // 25.4.3.1 Promise(executor) + PromiseConstructor = function Promise(executor) { + anInstance(this, PromisePrototype); + aCallable(executor); + call(Internal, this); + var state = getInternalPromiseState(this); + try { + executor(bind(internalResolve, state), bind(internalReject, state)); + } catch (error) { + internalReject(state, error); + } + }; + + PromisePrototype = PromiseConstructor.prototype; + + // eslint-disable-next-line no-unused-vars -- required for `.length` + Internal = function Promise(executor) { + setInternalState(this, { + type: PROMISE, + done: false, + notified: false, + parent: false, + reactions: new Queue(), + rejection: false, + state: PENDING, + value: null + }); + }; + + // `Promise.prototype.then` method + // https://tc39.es/ecma262/#sec-promise.prototype.then + Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) { + var state = getInternalPromiseState(this); + var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor)); + state.parent = true; + reaction.ok = isCallable(onFulfilled) ? onFulfilled : true; + reaction.fail = isCallable(onRejected) && onRejected; + reaction.domain = IS_NODE ? process.domain : undefined; + if (state.state === PENDING) state.reactions.add(reaction); + else microtask(function () { + callReaction(reaction, state); + }); + return reaction.promise; + }); + + OwnPromiseCapability = function () { + var promise = new Internal(); + var state = getInternalPromiseState(promise); + this.promise = promise; + this.resolve = bind(internalResolve, state); + this.reject = bind(internalReject, state); + }; + + newPromiseCapabilityModule.f = newPromiseCapability = function (C) { + return C === PromiseConstructor || C === PromiseWrapper + ? new OwnPromiseCapability(C) + : newGenericPromiseCapability(C); + }; + + if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) { + nativeThen = NativePromisePrototype.then; + + if (!NATIVE_PROMISE_SUBCLASSING) { + // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs + defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) { + var that = this; + return new PromiseConstructor(function (resolve, reject) { + call(nativeThen, that, resolve, reject); + }).then(onFulfilled, onRejected); + // https://github.com/zloirock/core-js/issues/640 + }, { unsafe: true }); + } + + // make `.constructor === Promise` work for native promise-based APIs + try { + delete NativePromisePrototype.constructor; + } catch (error) { /* empty */ } + + // make `instanceof Promise` work for native promise-based APIs + if (setPrototypeOf) { + setPrototypeOf(NativePromisePrototype, PromisePrototype); + } + } +} + +$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, { + Promise: PromiseConstructor +}); + +setToStringTag(PromiseConstructor, PROMISE, false, true); +setSpecies(PROMISE); diff --git a/node_modules/core-js/modules/es.promise.finally.js b/node_modules/core-js/modules/es.promise.finally.js new file mode 100644 index 0000000..d5644b6 --- /dev/null +++ b/node_modules/core-js/modules/es.promise.finally.js @@ -0,0 +1,43 @@ +'use strict'; +var $ = require('../internals/export'); +var IS_PURE = require('../internals/is-pure'); +var NativePromiseConstructor = require('../internals/promise-native-constructor'); +var fails = require('../internals/fails'); +var getBuiltIn = require('../internals/get-built-in'); +var isCallable = require('../internals/is-callable'); +var speciesConstructor = require('../internals/species-constructor'); +var promiseResolve = require('../internals/promise-resolve'); +var defineBuiltIn = require('../internals/define-built-in'); + +var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; + +// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829 +var NON_GENERIC = !!NativePromiseConstructor && fails(function () { + // eslint-disable-next-line unicorn/no-thenable -- required for testing + NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ }); +}); + +// `Promise.prototype.finally` method +// https://tc39.es/ecma262/#sec-promise.prototype.finally +$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, { + 'finally': function (onFinally) { + var C = speciesConstructor(this, getBuiltIn('Promise')); + var isFunction = isCallable(onFinally); + return this.then( + isFunction ? function (x) { + return promiseResolve(C, onFinally()).then(function () { return x; }); + } : onFinally, + isFunction ? function (e) { + return promiseResolve(C, onFinally()).then(function () { throw e; }); + } : onFinally + ); + } +}); + +// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then` +if (!IS_PURE && isCallable(NativePromiseConstructor)) { + var method = getBuiltIn('Promise').prototype['finally']; + if (NativePromisePrototype['finally'] !== method) { + defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true }); + } +} diff --git a/node_modules/core-js/modules/es.promise.js b/node_modules/core-js/modules/es.promise.js new file mode 100644 index 0000000..8606778 --- /dev/null +++ b/node_modules/core-js/modules/es.promise.js @@ -0,0 +1,8 @@ +'use strict'; +// TODO: Remove this module from `core-js@4` since it's split to modules listed below +require('../modules/es.promise.constructor'); +require('../modules/es.promise.all'); +require('../modules/es.promise.catch'); +require('../modules/es.promise.race'); +require('../modules/es.promise.reject'); +require('../modules/es.promise.resolve'); diff --git a/node_modules/core-js/modules/es.promise.race.js b/node_modules/core-js/modules/es.promise.race.js new file mode 100644 index 0000000..2fb470d --- /dev/null +++ b/node_modules/core-js/modules/es.promise.race.js @@ -0,0 +1,26 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var newPromiseCapabilityModule = require('../internals/new-promise-capability'); +var perform = require('../internals/perform'); +var iterate = require('../internals/iterate'); +var PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration'); + +// `Promise.race` method +// https://tc39.es/ecma262/#sec-promise.race +$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { + race: function race(iterable) { + var C = this; + var capability = newPromiseCapabilityModule.f(C); + var reject = capability.reject; + var result = perform(function () { + var $promiseResolve = aCallable(C.resolve); + iterate(iterable, function (promise) { + call($promiseResolve, C, promise).then(capability.resolve, reject); + }); + }); + if (result.error) reject(result.value); + return capability.promise; + } +}); diff --git a/node_modules/core-js/modules/es.promise.reject.js b/node_modules/core-js/modules/es.promise.reject.js new file mode 100644 index 0000000..44e1456 --- /dev/null +++ b/node_modules/core-js/modules/es.promise.reject.js @@ -0,0 +1,15 @@ +'use strict'; +var $ = require('../internals/export'); +var newPromiseCapabilityModule = require('../internals/new-promise-capability'); +var FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR; + +// `Promise.reject` method +// https://tc39.es/ecma262/#sec-promise.reject +$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, { + reject: function reject(r) { + var capability = newPromiseCapabilityModule.f(this); + var capabilityReject = capability.reject; + capabilityReject(r); + return capability.promise; + } +}); diff --git a/node_modules/core-js/modules/es.promise.resolve.js b/node_modules/core-js/modules/es.promise.resolve.js new file mode 100644 index 0000000..f1a0a0e --- /dev/null +++ b/node_modules/core-js/modules/es.promise.resolve.js @@ -0,0 +1,18 @@ +'use strict'; +var $ = require('../internals/export'); +var getBuiltIn = require('../internals/get-built-in'); +var IS_PURE = require('../internals/is-pure'); +var NativePromiseConstructor = require('../internals/promise-native-constructor'); +var FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR; +var promiseResolve = require('../internals/promise-resolve'); + +var PromiseConstructorWrapper = getBuiltIn('Promise'); +var CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR; + +// `Promise.resolve` method +// https://tc39.es/ecma262/#sec-promise.resolve +$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, { + resolve: function resolve(x) { + return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x); + } +}); diff --git a/node_modules/core-js/modules/es.promise.with-resolvers.js b/node_modules/core-js/modules/es.promise.with-resolvers.js new file mode 100644 index 0000000..2dc0f4f --- /dev/null +++ b/node_modules/core-js/modules/es.promise.with-resolvers.js @@ -0,0 +1,16 @@ +'use strict'; +var $ = require('../internals/export'); +var newPromiseCapabilityModule = require('../internals/new-promise-capability'); + +// `Promise.withResolvers` method +// https://github.com/tc39/proposal-promise-with-resolvers +$({ target: 'Promise', stat: true }, { + withResolvers: function withResolvers() { + var promiseCapability = newPromiseCapabilityModule.f(this); + return { + promise: promiseCapability.promise, + resolve: promiseCapability.resolve, + reject: promiseCapability.reject + }; + } +}); diff --git a/node_modules/core-js/modules/es.reflect.apply.js b/node_modules/core-js/modules/es.reflect.apply.js new file mode 100644 index 0000000..2e19c8f --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.apply.js @@ -0,0 +1,20 @@ +'use strict'; +var $ = require('../internals/export'); +var functionApply = require('../internals/function-apply'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var fails = require('../internals/fails'); + +// MS Edge argumentsList argument is optional +var OPTIONAL_ARGUMENTS_LIST = !fails(function () { + // eslint-disable-next-line es/no-reflect -- required for testing + Reflect.apply(function () { /* empty */ }); +}); + +// `Reflect.apply` method +// https://tc39.es/ecma262/#sec-reflect.apply +$({ target: 'Reflect', stat: true, forced: OPTIONAL_ARGUMENTS_LIST }, { + apply: function apply(target, thisArgument, argumentsList) { + return functionApply(aCallable(target), thisArgument, anObject(argumentsList)); + } +}); diff --git a/node_modules/core-js/modules/es.reflect.construct.js b/node_modules/core-js/modules/es.reflect.construct.js new file mode 100644 index 0000000..d2283e3 --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.construct.js @@ -0,0 +1,57 @@ +'use strict'; +var $ = require('../internals/export'); +var getBuiltIn = require('../internals/get-built-in'); +var apply = require('../internals/function-apply'); +var bind = require('../internals/function-bind'); +var aConstructor = require('../internals/a-constructor'); +var anObject = require('../internals/an-object'); +var isObject = require('../internals/is-object'); +var create = require('../internals/object-create'); +var fails = require('../internals/fails'); + +var nativeConstruct = getBuiltIn('Reflect', 'construct'); +var ObjectPrototype = Object.prototype; +var push = [].push; + +// `Reflect.construct` method +// https://tc39.es/ecma262/#sec-reflect.construct +// MS Edge supports only 2 arguments and argumentsList argument is optional +// FF Nightly sets third argument as `new.target`, but does not create `this` from it +var NEW_TARGET_BUG = fails(function () { + function F() { /* empty */ } + return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F); +}); + +var ARGS_BUG = !fails(function () { + nativeConstruct(function () { /* empty */ }); +}); + +var FORCED = NEW_TARGET_BUG || ARGS_BUG; + +$({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, { + construct: function construct(Target, args /* , newTarget */) { + aConstructor(Target); + anObject(args); + var newTarget = arguments.length < 3 ? Target : aConstructor(arguments[2]); + if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget); + if (Target === newTarget) { + // w/o altered newTarget, optimization for 0-4 arguments + switch (args.length) { + case 0: return new Target(); + case 1: return new Target(args[0]); + case 2: return new Target(args[0], args[1]); + case 3: return new Target(args[0], args[1], args[2]); + case 4: return new Target(args[0], args[1], args[2], args[3]); + } + // w/o altered newTarget, lot of arguments case + var $args = [null]; + apply(push, $args, args); + return new (apply(bind, Target, $args))(); + } + // with altered newTarget, not support built-in constructors + var proto = newTarget.prototype; + var instance = create(isObject(proto) ? proto : ObjectPrototype); + var result = apply(Target, instance, args); + return isObject(result) ? result : instance; + } +}); diff --git a/node_modules/core-js/modules/es.reflect.define-property.js b/node_modules/core-js/modules/es.reflect.define-property.js new file mode 100644 index 0000000..c01ee5a --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.define-property.js @@ -0,0 +1,29 @@ +'use strict'; +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var anObject = require('../internals/an-object'); +var toPropertyKey = require('../internals/to-property-key'); +var definePropertyModule = require('../internals/object-define-property'); +var fails = require('../internals/fails'); + +// MS Edge has broken Reflect.defineProperty - throwing instead of returning false +var ERROR_INSTEAD_OF_FALSE = fails(function () { + // eslint-disable-next-line es/no-reflect -- required for testing + Reflect.defineProperty(definePropertyModule.f({}, 1, { value: 1 }), 1, { value: 2 }); +}); + +// `Reflect.defineProperty` method +// https://tc39.es/ecma262/#sec-reflect.defineproperty +$({ target: 'Reflect', stat: true, forced: ERROR_INSTEAD_OF_FALSE, sham: !DESCRIPTORS }, { + defineProperty: function defineProperty(target, propertyKey, attributes) { + anObject(target); + var key = toPropertyKey(propertyKey); + anObject(attributes); + try { + definePropertyModule.f(target, key, attributes); + return true; + } catch (error) { + return false; + } + } +}); diff --git a/node_modules/core-js/modules/es.reflect.delete-property.js b/node_modules/core-js/modules/es.reflect.delete-property.js new file mode 100644 index 0000000..fa9c1e6 --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.delete-property.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); +var anObject = require('../internals/an-object'); +var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; + +// `Reflect.deleteProperty` method +// https://tc39.es/ecma262/#sec-reflect.deleteproperty +$({ target: 'Reflect', stat: true }, { + deleteProperty: function deleteProperty(target, propertyKey) { + var descriptor = getOwnPropertyDescriptor(anObject(target), propertyKey); + return descriptor && !descriptor.configurable ? false : delete target[propertyKey]; + } +}); diff --git a/node_modules/core-js/modules/es.reflect.get-own-property-descriptor.js b/node_modules/core-js/modules/es.reflect.get-own-property-descriptor.js new file mode 100644 index 0000000..2e978bf --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.get-own-property-descriptor.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var anObject = require('../internals/an-object'); +var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor'); + +// `Reflect.getOwnPropertyDescriptor` method +// https://tc39.es/ecma262/#sec-reflect.getownpropertydescriptor +$({ target: 'Reflect', stat: true, sham: !DESCRIPTORS }, { + getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) { + return getOwnPropertyDescriptorModule.f(anObject(target), propertyKey); + } +}); diff --git a/node_modules/core-js/modules/es.reflect.get-prototype-of.js b/node_modules/core-js/modules/es.reflect.get-prototype-of.js new file mode 100644 index 0000000..1fef329 --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.get-prototype-of.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); +var anObject = require('../internals/an-object'); +var objectGetPrototypeOf = require('../internals/object-get-prototype-of'); +var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter'); + +// `Reflect.getPrototypeOf` method +// https://tc39.es/ecma262/#sec-reflect.getprototypeof +$({ target: 'Reflect', stat: true, sham: !CORRECT_PROTOTYPE_GETTER }, { + getPrototypeOf: function getPrototypeOf(target) { + return objectGetPrototypeOf(anObject(target)); + } +}); diff --git a/node_modules/core-js/modules/es.reflect.get.js b/node_modules/core-js/modules/es.reflect.get.js new file mode 100644 index 0000000..e5fc8d1 --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.get.js @@ -0,0 +1,25 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var isObject = require('../internals/is-object'); +var anObject = require('../internals/an-object'); +var isDataDescriptor = require('../internals/is-data-descriptor'); +var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); + +// `Reflect.get` method +// https://tc39.es/ecma262/#sec-reflect.get +function get(target, propertyKey /* , receiver */) { + var receiver = arguments.length < 3 ? target : arguments[2]; + var descriptor, prototype; + if (anObject(target) === receiver) return target[propertyKey]; + descriptor = getOwnPropertyDescriptorModule.f(target, propertyKey); + if (descriptor) return isDataDescriptor(descriptor) + ? descriptor.value + : descriptor.get === undefined ? undefined : call(descriptor.get, receiver); + if (isObject(prototype = getPrototypeOf(target))) return get(prototype, propertyKey, receiver); +} + +$({ target: 'Reflect', stat: true }, { + get: get +}); diff --git a/node_modules/core-js/modules/es.reflect.has.js b/node_modules/core-js/modules/es.reflect.has.js new file mode 100644 index 0000000..5d4a7f2 --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.has.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); + +// `Reflect.has` method +// https://tc39.es/ecma262/#sec-reflect.has +$({ target: 'Reflect', stat: true }, { + has: function has(target, propertyKey) { + return propertyKey in target; + } +}); diff --git a/node_modules/core-js/modules/es.reflect.is-extensible.js b/node_modules/core-js/modules/es.reflect.is-extensible.js new file mode 100644 index 0000000..35480ba --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.is-extensible.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); +var anObject = require('../internals/an-object'); +var $isExtensible = require('../internals/object-is-extensible'); + +// `Reflect.isExtensible` method +// https://tc39.es/ecma262/#sec-reflect.isextensible +$({ target: 'Reflect', stat: true }, { + isExtensible: function isExtensible(target) { + anObject(target); + return $isExtensible(target); + } +}); diff --git a/node_modules/core-js/modules/es.reflect.own-keys.js b/node_modules/core-js/modules/es.reflect.own-keys.js new file mode 100644 index 0000000..1764652 --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.own-keys.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var ownKeys = require('../internals/own-keys'); + +// `Reflect.ownKeys` method +// https://tc39.es/ecma262/#sec-reflect.ownkeys +$({ target: 'Reflect', stat: true }, { + ownKeys: ownKeys +}); diff --git a/node_modules/core-js/modules/es.reflect.prevent-extensions.js b/node_modules/core-js/modules/es.reflect.prevent-extensions.js new file mode 100644 index 0000000..57b298d --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.prevent-extensions.js @@ -0,0 +1,20 @@ +'use strict'; +var $ = require('../internals/export'); +var getBuiltIn = require('../internals/get-built-in'); +var anObject = require('../internals/an-object'); +var FREEZING = require('../internals/freezing'); + +// `Reflect.preventExtensions` method +// https://tc39.es/ecma262/#sec-reflect.preventextensions +$({ target: 'Reflect', stat: true, sham: !FREEZING }, { + preventExtensions: function preventExtensions(target) { + anObject(target); + try { + var objectPreventExtensions = getBuiltIn('Object', 'preventExtensions'); + if (objectPreventExtensions) objectPreventExtensions(target); + return true; + } catch (error) { + return false; + } + } +}); diff --git a/node_modules/core-js/modules/es.reflect.set-prototype-of.js b/node_modules/core-js/modules/es.reflect.set-prototype-of.js new file mode 100644 index 0000000..4b7faff --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.set-prototype-of.js @@ -0,0 +1,20 @@ +'use strict'; +var $ = require('../internals/export'); +var anObject = require('../internals/an-object'); +var aPossiblePrototype = require('../internals/a-possible-prototype'); +var objectSetPrototypeOf = require('../internals/object-set-prototype-of'); + +// `Reflect.setPrototypeOf` method +// https://tc39.es/ecma262/#sec-reflect.setprototypeof +if (objectSetPrototypeOf) $({ target: 'Reflect', stat: true }, { + setPrototypeOf: function setPrototypeOf(target, proto) { + anObject(target); + aPossiblePrototype(proto); + try { + objectSetPrototypeOf(target, proto); + return true; + } catch (error) { + return false; + } + } +}); diff --git a/node_modules/core-js/modules/es.reflect.set.js b/node_modules/core-js/modules/es.reflect.set.js new file mode 100644 index 0000000..5a0d3b1 --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.set.js @@ -0,0 +1,50 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var anObject = require('../internals/an-object'); +var isObject = require('../internals/is-object'); +var isDataDescriptor = require('../internals/is-data-descriptor'); +var fails = require('../internals/fails'); +var definePropertyModule = require('../internals/object-define-property'); +var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); +var createPropertyDescriptor = require('../internals/create-property-descriptor'); + +// `Reflect.set` method +// https://tc39.es/ecma262/#sec-reflect.set +function set(target, propertyKey, V /* , receiver */) { + var receiver = arguments.length < 4 ? target : arguments[3]; + var ownDescriptor = getOwnPropertyDescriptorModule.f(anObject(target), propertyKey); + var existingDescriptor, prototype, setter; + if (!ownDescriptor) { + if (isObject(prototype = getPrototypeOf(target))) { + return set(prototype, propertyKey, V, receiver); + } + ownDescriptor = createPropertyDescriptor(0); + } + if (isDataDescriptor(ownDescriptor)) { + if (ownDescriptor.writable === false || !isObject(receiver)) return false; + if (existingDescriptor = getOwnPropertyDescriptorModule.f(receiver, propertyKey)) { + if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false; + existingDescriptor.value = V; + definePropertyModule.f(receiver, propertyKey, existingDescriptor); + } else definePropertyModule.f(receiver, propertyKey, createPropertyDescriptor(0, V)); + } else { + setter = ownDescriptor.set; + if (setter === undefined) return false; + call(setter, receiver, V); + } return true; +} + +// MS Edge 17-18 Reflect.set allows setting the property to object +// with non-writable property on the prototype +var MS_EDGE_BUG = fails(function () { + var Constructor = function () { /* empty */ }; + var object = definePropertyModule.f(new Constructor(), 'a', { configurable: true }); + // eslint-disable-next-line es/no-reflect -- required for testing + return Reflect.set(Constructor.prototype, 'a', 1, object) !== false; +}); + +$({ target: 'Reflect', stat: true, forced: MS_EDGE_BUG }, { + set: set +}); diff --git a/node_modules/core-js/modules/es.reflect.to-string-tag.js b/node_modules/core-js/modules/es.reflect.to-string-tag.js new file mode 100644 index 0000000..90f12cd --- /dev/null +++ b/node_modules/core-js/modules/es.reflect.to-string-tag.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var setToStringTag = require('../internals/set-to-string-tag'); + +$({ global: true }, { Reflect: {} }); + +// Reflect[@@toStringTag] property +// https://tc39.es/ecma262/#sec-reflect-@@tostringtag +setToStringTag(globalThis.Reflect, 'Reflect', true); diff --git a/node_modules/core-js/modules/es.regexp.constructor.js b/node_modules/core-js/modules/es.regexp.constructor.js new file mode 100644 index 0000000..18750f6 --- /dev/null +++ b/node_modules/core-js/modules/es.regexp.constructor.js @@ -0,0 +1,197 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this'); +var isForced = require('../internals/is-forced'); +var inheritIfRequired = require('../internals/inherit-if-required'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var create = require('../internals/object-create'); +var getOwnPropertyNames = require('../internals/object-get-own-property-names').f; +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var isRegExp = require('../internals/is-regexp'); +var toString = require('../internals/to-string'); +var getRegExpFlags = require('../internals/regexp-get-flags'); +var stickyHelpers = require('../internals/regexp-sticky-helpers'); +var proxyAccessor = require('../internals/proxy-accessor'); +var defineBuiltIn = require('../internals/define-built-in'); +var fails = require('../internals/fails'); +var hasOwn = require('../internals/has-own-property'); +var enforceInternalState = require('../internals/internal-state').enforce; +var setSpecies = require('../internals/set-species'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all'); +var UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg'); + +var MATCH = wellKnownSymbol('match'); +var NativeRegExp = globalThis.RegExp; +var RegExpPrototype = NativeRegExp.prototype; +var SyntaxError = globalThis.SyntaxError; +var exec = uncurryThis(RegExpPrototype.exec); +var charAt = uncurryThis(''.charAt); +var replace = uncurryThis(''.replace); +var stringIndexOf = uncurryThis(''.indexOf); +var stringSlice = uncurryThis(''.slice); +// TODO: Use only proper RegExpIdentifierName +var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/; +var re1 = /a/g; +var re2 = /a/g; + +// "new" should create a new object, old webkit bug +var CORRECT_NEW = new NativeRegExp(re1) !== re1; + +var MISSED_STICKY = stickyHelpers.MISSED_STICKY; +var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y; + +var BASE_FORCED = DESCRIPTORS && + (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails(function () { + re2[MATCH] = false; + // RegExp constructor can alter flags and IsRegExp works correct with @@match + // eslint-disable-next-line sonar/inconsistent-function-call -- required for testing + return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i'; + })); + +var handleDotAll = function (string) { + var length = string.length; + var index = 0; + var result = ''; + var brackets = false; + var chr; + for (; index <= length; index++) { + chr = charAt(string, index); + if (chr === '\\') { + result += chr + charAt(string, ++index); + continue; + } + if (!brackets && chr === '.') { + result += '[\\s\\S]'; + } else { + if (chr === '[') { + brackets = true; + } else if (chr === ']') { + brackets = false; + } result += chr; + } + } return result; +}; + +var handleNCG = function (string) { + var length = string.length; + var index = 0; + var result = ''; + var named = []; + var names = create(null); + var brackets = false; + var ncg = false; + var groupid = 0; + var groupname = ''; + var chr; + for (; index <= length; index++) { + chr = charAt(string, index); + if (chr === '\\') { + chr += charAt(string, ++index); + } else if (chr === ']') { + brackets = false; + } else if (!brackets) switch (true) { + case chr === '[': + brackets = true; + break; + case chr === '(': + result += chr; + // ignore non-capturing groups + if (stringSlice(string, index + 1, index + 3) === '?:') { + continue; + } + if (exec(IS_NCG, stringSlice(string, index + 1))) { + index += 2; + ncg = true; + } + groupid++; + continue; + case chr === '>' && ncg: + if (groupname === '' || hasOwn(names, groupname)) { + throw new SyntaxError('Invalid capture group name'); + } + names[groupname] = true; + named[named.length] = [groupname, groupid]; + ncg = false; + groupname = ''; + continue; + } + if (ncg) groupname += chr; + else result += chr; + } return [result, named]; +}; + +// `RegExp` constructor +// https://tc39.es/ecma262/#sec-regexp-constructor +if (isForced('RegExp', BASE_FORCED)) { + var RegExpWrapper = function RegExp(pattern, flags) { + var thisIsRegExp = isPrototypeOf(RegExpPrototype, this); + var patternIsRegExp = isRegExp(pattern); + var flagsAreUndefined = flags === undefined; + var groups = []; + var rawPattern = pattern; + var rawFlags, dotAll, sticky, handled, result, state; + + if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) { + return pattern; + } + + if (patternIsRegExp || isPrototypeOf(RegExpPrototype, pattern)) { + pattern = pattern.source; + if (flagsAreUndefined) flags = getRegExpFlags(rawPattern); + } + + pattern = pattern === undefined ? '' : toString(pattern); + flags = flags === undefined ? '' : toString(flags); + rawPattern = pattern; + + if (UNSUPPORTED_DOT_ALL && 'dotAll' in re1) { + dotAll = !!flags && stringIndexOf(flags, 's') > -1; + if (dotAll) flags = replace(flags, /s/g, ''); + } + + rawFlags = flags; + + if (MISSED_STICKY && 'sticky' in re1) { + sticky = !!flags && stringIndexOf(flags, 'y') > -1; + if (sticky && UNSUPPORTED_Y) flags = replace(flags, /y/g, ''); + } + + if (UNSUPPORTED_NCG) { + handled = handleNCG(pattern); + pattern = handled[0]; + groups = handled[1]; + } + + result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype, RegExpWrapper); + + if (dotAll || sticky || groups.length) { + state = enforceInternalState(result); + if (dotAll) { + state.dotAll = true; + state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags); + } + if (sticky) state.sticky = true; + if (groups.length) state.groups = groups; + } + + if (pattern !== rawPattern) try { + // fails in old engines, but we have no alternatives for unsupported regex syntax + createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern); + } catch (error) { /* empty */ } + + return result; + }; + + for (var keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index;) { + proxyAccessor(RegExpWrapper, NativeRegExp, keys[index++]); + } + + RegExpPrototype.constructor = RegExpWrapper; + RegExpWrapper.prototype = RegExpPrototype; + defineBuiltIn(globalThis, 'RegExp', RegExpWrapper, { constructor: true }); +} + +// https://tc39.es/ecma262/#sec-get-regexp-@@species +setSpecies('RegExp'); diff --git a/node_modules/core-js/modules/es.regexp.dot-all.js b/node_modules/core-js/modules/es.regexp.dot-all.js new file mode 100644 index 0000000..7ad0f58 --- /dev/null +++ b/node_modules/core-js/modules/es.regexp.dot-all.js @@ -0,0 +1,26 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all'); +var classof = require('../internals/classof-raw'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var getInternalState = require('../internals/internal-state').get; + +var RegExpPrototype = RegExp.prototype; +var $TypeError = TypeError; + +// `RegExp.prototype.dotAll` getter +// https://tc39.es/ecma262/#sec-get-regexp.prototype.dotall +if (DESCRIPTORS && UNSUPPORTED_DOT_ALL) { + defineBuiltInAccessor(RegExpPrototype, 'dotAll', { + configurable: true, + get: function dotAll() { + if (this === RegExpPrototype) return; + // We can't use InternalStateModule.getterFor because + // we don't add metadata for regexps created by a literal. + if (classof(this) === 'RegExp') { + return !!getInternalState(this).dotAll; + } + throw new $TypeError('Incompatible receiver, RegExp required'); + } + }); +} diff --git a/node_modules/core-js/modules/es.regexp.exec.js b/node_modules/core-js/modules/es.regexp.exec.js new file mode 100644 index 0000000..072f2be --- /dev/null +++ b/node_modules/core-js/modules/es.regexp.exec.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var exec = require('../internals/regexp-exec'); + +// `RegExp.prototype.exec` method +// https://tc39.es/ecma262/#sec-regexp.prototype.exec +$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, { + exec: exec +}); diff --git a/node_modules/core-js/modules/es.regexp.flags.js b/node_modules/core-js/modules/es.regexp.flags.js new file mode 100644 index 0000000..167dc23 --- /dev/null +++ b/node_modules/core-js/modules/es.regexp.flags.js @@ -0,0 +1,56 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var DESCRIPTORS = require('../internals/descriptors'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var regExpFlags = require('../internals/regexp-flags'); +var fails = require('../internals/fails'); + +// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError +var RegExp = globalThis.RegExp; +var RegExpPrototype = RegExp.prototype; + +var FORCED = DESCRIPTORS && fails(function () { + var INDICES_SUPPORT = true; + try { + RegExp('.', 'd'); + } catch (error) { + INDICES_SUPPORT = false; + } + + var O = {}; + // modern V8 bug + var calls = ''; + var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy'; + + var addGetter = function (key, chr) { + // eslint-disable-next-line es/no-object-defineproperty -- safe + Object.defineProperty(O, key, { get: function () { + calls += chr; + return true; + } }); + }; + + var pairs = { + dotAll: 's', + global: 'g', + ignoreCase: 'i', + multiline: 'm', + sticky: 'y' + }; + + if (INDICES_SUPPORT) pairs.hasIndices = 'd'; + + for (var key in pairs) addGetter(key, pairs[key]); + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var result = Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call(O); + + return result !== expected || calls !== expected; +}); + +// `RegExp.prototype.flags` getter +// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags +if (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', { + configurable: true, + get: regExpFlags +}); diff --git a/node_modules/core-js/modules/es.regexp.sticky.js b/node_modules/core-js/modules/es.regexp.sticky.js new file mode 100644 index 0000000..7a7d2bd --- /dev/null +++ b/node_modules/core-js/modules/es.regexp.sticky.js @@ -0,0 +1,26 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var MISSED_STICKY = require('../internals/regexp-sticky-helpers').MISSED_STICKY; +var classof = require('../internals/classof-raw'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var getInternalState = require('../internals/internal-state').get; + +var RegExpPrototype = RegExp.prototype; +var $TypeError = TypeError; + +// `RegExp.prototype.sticky` getter +// https://tc39.es/ecma262/#sec-get-regexp.prototype.sticky +if (DESCRIPTORS && MISSED_STICKY) { + defineBuiltInAccessor(RegExpPrototype, 'sticky', { + configurable: true, + get: function sticky() { + if (this === RegExpPrototype) return; + // We can't use InternalStateModule.getterFor because + // we don't add metadata for regexps created by a literal. + if (classof(this) === 'RegExp') { + return !!getInternalState(this).sticky; + } + throw new $TypeError('Incompatible receiver, RegExp required'); + } + }); +} diff --git a/node_modules/core-js/modules/es.regexp.test.js b/node_modules/core-js/modules/es.regexp.test.js new file mode 100644 index 0000000..20daaa0 --- /dev/null +++ b/node_modules/core-js/modules/es.regexp.test.js @@ -0,0 +1,35 @@ +'use strict'; +// TODO: Remove from `core-js@4` since it's moved to entry points +require('../modules/es.regexp.exec'); +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var isCallable = require('../internals/is-callable'); +var anObject = require('../internals/an-object'); +var toString = require('../internals/to-string'); + +var DELEGATES_TO_EXEC = function () { + var execCalled = false; + var re = /[ac]/; + re.exec = function () { + execCalled = true; + return /./.exec.apply(this, arguments); + }; + return re.test('abc') === true && execCalled; +}(); + +var nativeTest = /./.test; + +// `RegExp.prototype.test` method +// https://tc39.es/ecma262/#sec-regexp.prototype.test +$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, { + test: function (S) { + var R = anObject(this); + var string = toString(S); + var exec = R.exec; + if (!isCallable(exec)) return call(nativeTest, R, string); + var result = call(exec, R, string); + if (result === null) return false; + anObject(result); + return true; + } +}); diff --git a/node_modules/core-js/modules/es.regexp.to-string.js b/node_modules/core-js/modules/es.regexp.to-string.js new file mode 100644 index 0000000..05c763e --- /dev/null +++ b/node_modules/core-js/modules/es.regexp.to-string.js @@ -0,0 +1,26 @@ +'use strict'; +var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER; +var defineBuiltIn = require('../internals/define-built-in'); +var anObject = require('../internals/an-object'); +var $toString = require('../internals/to-string'); +var fails = require('../internals/fails'); +var getRegExpFlags = require('../internals/regexp-get-flags'); + +var TO_STRING = 'toString'; +var RegExpPrototype = RegExp.prototype; +var nativeToString = RegExpPrototype[TO_STRING]; + +var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; }); +// FF44- RegExp#toString has a wrong name +var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING; + +// `RegExp.prototype.toString` method +// https://tc39.es/ecma262/#sec-regexp.prototype.tostring +if (NOT_GENERIC || INCORRECT_NAME) { + defineBuiltIn(RegExpPrototype, TO_STRING, function toString() { + var R = anObject(this); + var pattern = $toString(R.source); + var flags = $toString(getRegExpFlags(R)); + return '/' + pattern + '/' + flags; + }, { unsafe: true }); +} diff --git a/node_modules/core-js/modules/es.set.constructor.js b/node_modules/core-js/modules/es.set.constructor.js new file mode 100644 index 0000000..a35ebe1 --- /dev/null +++ b/node_modules/core-js/modules/es.set.constructor.js @@ -0,0 +1,9 @@ +'use strict'; +var collection = require('../internals/collection'); +var collectionStrong = require('../internals/collection-strong'); + +// `Set` constructor +// https://tc39.es/ecma262/#sec-set-objects +collection('Set', function (init) { + return function Set() { return init(this, arguments.length ? arguments[0] : undefined); }; +}, collectionStrong); diff --git a/node_modules/core-js/modules/es.set.difference.v2.js b/node_modules/core-js/modules/es.set.difference.v2.js new file mode 100644 index 0000000..074b391 --- /dev/null +++ b/node_modules/core-js/modules/es.set.difference.v2.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var difference = require('../internals/set-difference'); +var setMethodAcceptSetLike = require('../internals/set-method-accept-set-like'); + +// `Set.prototype.difference` method +// https://github.com/tc39/proposal-set-methods +$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('difference') }, { + difference: difference +}); diff --git a/node_modules/core-js/modules/es.set.intersection.v2.js b/node_modules/core-js/modules/es.set.intersection.v2.js new file mode 100644 index 0000000..226d7ee --- /dev/null +++ b/node_modules/core-js/modules/es.set.intersection.v2.js @@ -0,0 +1,16 @@ +'use strict'; +var $ = require('../internals/export'); +var fails = require('../internals/fails'); +var intersection = require('../internals/set-intersection'); +var setMethodAcceptSetLike = require('../internals/set-method-accept-set-like'); + +var INCORRECT = !setMethodAcceptSetLike('intersection') || fails(function () { + // eslint-disable-next-line es/no-array-from, es/no-set -- testing + return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2'; +}); + +// `Set.prototype.intersection` method +// https://github.com/tc39/proposal-set-methods +$({ target: 'Set', proto: true, real: true, forced: INCORRECT }, { + intersection: intersection +}); diff --git a/node_modules/core-js/modules/es.set.is-disjoint-from.v2.js b/node_modules/core-js/modules/es.set.is-disjoint-from.v2.js new file mode 100644 index 0000000..f9139e4 --- /dev/null +++ b/node_modules/core-js/modules/es.set.is-disjoint-from.v2.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var isDisjointFrom = require('../internals/set-is-disjoint-from'); +var setMethodAcceptSetLike = require('../internals/set-method-accept-set-like'); + +// `Set.prototype.isDisjointFrom` method +// https://github.com/tc39/proposal-set-methods +$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isDisjointFrom') }, { + isDisjointFrom: isDisjointFrom +}); diff --git a/node_modules/core-js/modules/es.set.is-subset-of.v2.js b/node_modules/core-js/modules/es.set.is-subset-of.v2.js new file mode 100644 index 0000000..cbdf60d --- /dev/null +++ b/node_modules/core-js/modules/es.set.is-subset-of.v2.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var isSubsetOf = require('../internals/set-is-subset-of'); +var setMethodAcceptSetLike = require('../internals/set-method-accept-set-like'); + +// `Set.prototype.isSubsetOf` method +// https://github.com/tc39/proposal-set-methods +$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isSubsetOf') }, { + isSubsetOf: isSubsetOf +}); diff --git a/node_modules/core-js/modules/es.set.is-superset-of.v2.js b/node_modules/core-js/modules/es.set.is-superset-of.v2.js new file mode 100644 index 0000000..af2c822 --- /dev/null +++ b/node_modules/core-js/modules/es.set.is-superset-of.v2.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var isSupersetOf = require('../internals/set-is-superset-of'); +var setMethodAcceptSetLike = require('../internals/set-method-accept-set-like'); + +// `Set.prototype.isSupersetOf` method +// https://github.com/tc39/proposal-set-methods +$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isSupersetOf') }, { + isSupersetOf: isSupersetOf +}); diff --git a/node_modules/core-js/modules/es.set.js b/node_modules/core-js/modules/es.set.js new file mode 100644 index 0000000..ff66f70 --- /dev/null +++ b/node_modules/core-js/modules/es.set.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove this module from `core-js@4` since it's replaced to module below +require('../modules/es.set.constructor'); diff --git a/node_modules/core-js/modules/es.set.symmetric-difference.v2.js b/node_modules/core-js/modules/es.set.symmetric-difference.v2.js new file mode 100644 index 0000000..b16890f --- /dev/null +++ b/node_modules/core-js/modules/es.set.symmetric-difference.v2.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var symmetricDifference = require('../internals/set-symmetric-difference'); +var setMethodAcceptSetLike = require('../internals/set-method-accept-set-like'); + +// `Set.prototype.symmetricDifference` method +// https://github.com/tc39/proposal-set-methods +$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('symmetricDifference') }, { + symmetricDifference: symmetricDifference +}); diff --git a/node_modules/core-js/modules/es.set.union.v2.js b/node_modules/core-js/modules/es.set.union.v2.js new file mode 100644 index 0000000..fcfa481 --- /dev/null +++ b/node_modules/core-js/modules/es.set.union.v2.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var union = require('../internals/set-union'); +var setMethodAcceptSetLike = require('../internals/set-method-accept-set-like'); + +// `Set.prototype.union` method +// https://github.com/tc39/proposal-set-methods +$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, { + union: union +}); diff --git a/node_modules/core-js/modules/es.string.anchor.js b/node_modules/core-js/modules/es.string.anchor.js new file mode 100644 index 0000000..9c0f0da --- /dev/null +++ b/node_modules/core-js/modules/es.string.anchor.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var createHTML = require('../internals/create-html'); +var forcedStringHTMLMethod = require('../internals/string-html-forced'); + +// `String.prototype.anchor` method +// https://tc39.es/ecma262/#sec-string.prototype.anchor +$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('anchor') }, { + anchor: function anchor(name) { + return createHTML(this, 'a', 'name', name); + } +}); diff --git a/node_modules/core-js/modules/es.string.at-alternative.js b/node_modules/core-js/modules/es.string.at-alternative.js new file mode 100644 index 0000000..b7b99a7 --- /dev/null +++ b/node_modules/core-js/modules/es.string.at-alternative.js @@ -0,0 +1,26 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var toString = require('../internals/to-string'); +var fails = require('../internals/fails'); + +var charAt = uncurryThis(''.charAt); + +var FORCED = fails(function () { + // eslint-disable-next-line es/no-string-prototype-at -- safe + return '𠮷'.at(-2) !== '\uD842'; +}); + +// `String.prototype.at` method +// https://tc39.es/ecma262/#sec-string.prototype.at +$({ target: 'String', proto: true, forced: FORCED }, { + at: function at(index) { + var S = toString(requireObjectCoercible(this)); + var len = S.length; + var relativeIndex = toIntegerOrInfinity(index); + var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex; + return (k < 0 || k >= len) ? undefined : charAt(S, k); + } +}); diff --git a/node_modules/core-js/modules/es.string.big.js b/node_modules/core-js/modules/es.string.big.js new file mode 100644 index 0000000..478a31c --- /dev/null +++ b/node_modules/core-js/modules/es.string.big.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var createHTML = require('../internals/create-html'); +var forcedStringHTMLMethod = require('../internals/string-html-forced'); + +// `String.prototype.big` method +// https://tc39.es/ecma262/#sec-string.prototype.big +$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('big') }, { + big: function big() { + return createHTML(this, 'big', '', ''); + } +}); diff --git a/node_modules/core-js/modules/es.string.blink.js b/node_modules/core-js/modules/es.string.blink.js new file mode 100644 index 0000000..2599a0f --- /dev/null +++ b/node_modules/core-js/modules/es.string.blink.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var createHTML = require('../internals/create-html'); +var forcedStringHTMLMethod = require('../internals/string-html-forced'); + +// `String.prototype.blink` method +// https://tc39.es/ecma262/#sec-string.prototype.blink +$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('blink') }, { + blink: function blink() { + return createHTML(this, 'blink', '', ''); + } +}); diff --git a/node_modules/core-js/modules/es.string.bold.js b/node_modules/core-js/modules/es.string.bold.js new file mode 100644 index 0000000..ed15e72 --- /dev/null +++ b/node_modules/core-js/modules/es.string.bold.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var createHTML = require('../internals/create-html'); +var forcedStringHTMLMethod = require('../internals/string-html-forced'); + +// `String.prototype.bold` method +// https://tc39.es/ecma262/#sec-string.prototype.bold +$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('bold') }, { + bold: function bold() { + return createHTML(this, 'b', '', ''); + } +}); diff --git a/node_modules/core-js/modules/es.string.code-point-at.js b/node_modules/core-js/modules/es.string.code-point-at.js new file mode 100644 index 0000000..927e413 --- /dev/null +++ b/node_modules/core-js/modules/es.string.code-point-at.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var codeAt = require('../internals/string-multibyte').codeAt; + +// `String.prototype.codePointAt` method +// https://tc39.es/ecma262/#sec-string.prototype.codepointat +$({ target: 'String', proto: true }, { + codePointAt: function codePointAt(pos) { + return codeAt(this, pos); + } +}); diff --git a/node_modules/core-js/modules/es.string.ends-with.js b/node_modules/core-js/modules/es.string.ends-with.js new file mode 100644 index 0000000..04913f8 --- /dev/null +++ b/node_modules/core-js/modules/es.string.ends-with.js @@ -0,0 +1,34 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); +var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; +var toLength = require('../internals/to-length'); +var toString = require('../internals/to-string'); +var notARegExp = require('../internals/not-a-regexp'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic'); +var IS_PURE = require('../internals/is-pure'); + +var slice = uncurryThis(''.slice); +var min = Math.min; + +var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith'); +// https://github.com/zloirock/core-js/pull/702 +var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () { + var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith'); + return descriptor && !descriptor.writable; +}(); + +// `String.prototype.endsWith` method +// https://tc39.es/ecma262/#sec-string.prototype.endswith +$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, { + endsWith: function endsWith(searchString /* , endPosition = @length */) { + var that = toString(requireObjectCoercible(this)); + notARegExp(searchString); + var endPosition = arguments.length > 1 ? arguments[1] : undefined; + var len = that.length; + var end = endPosition === undefined ? len : min(toLength(endPosition), len); + var search = toString(searchString); + return slice(that, end - search.length, end) === search; + } +}); diff --git a/node_modules/core-js/modules/es.string.fixed.js b/node_modules/core-js/modules/es.string.fixed.js new file mode 100644 index 0000000..9f9b87d --- /dev/null +++ b/node_modules/core-js/modules/es.string.fixed.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var createHTML = require('../internals/create-html'); +var forcedStringHTMLMethod = require('../internals/string-html-forced'); + +// `String.prototype.fixed` method +// https://tc39.es/ecma262/#sec-string.prototype.fixed +$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fixed') }, { + fixed: function fixed() { + return createHTML(this, 'tt', '', ''); + } +}); diff --git a/node_modules/core-js/modules/es.string.fontcolor.js b/node_modules/core-js/modules/es.string.fontcolor.js new file mode 100644 index 0000000..f96ebb4 --- /dev/null +++ b/node_modules/core-js/modules/es.string.fontcolor.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var createHTML = require('../internals/create-html'); +var forcedStringHTMLMethod = require('../internals/string-html-forced'); + +// `String.prototype.fontcolor` method +// https://tc39.es/ecma262/#sec-string.prototype.fontcolor +$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fontcolor') }, { + fontcolor: function fontcolor(color) { + return createHTML(this, 'font', 'color', color); + } +}); diff --git a/node_modules/core-js/modules/es.string.fontsize.js b/node_modules/core-js/modules/es.string.fontsize.js new file mode 100644 index 0000000..e576046 --- /dev/null +++ b/node_modules/core-js/modules/es.string.fontsize.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var createHTML = require('../internals/create-html'); +var forcedStringHTMLMethod = require('../internals/string-html-forced'); + +// `String.prototype.fontsize` method +// https://tc39.es/ecma262/#sec-string.prototype.fontsize +$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fontsize') }, { + fontsize: function fontsize(size) { + return createHTML(this, 'font', 'size', size); + } +}); diff --git a/node_modules/core-js/modules/es.string.from-code-point.js b/node_modules/core-js/modules/es.string.from-code-point.js new file mode 100644 index 0000000..112f39a --- /dev/null +++ b/node_modules/core-js/modules/es.string.from-code-point.js @@ -0,0 +1,32 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toAbsoluteIndex = require('../internals/to-absolute-index'); + +var $RangeError = RangeError; +var fromCharCode = String.fromCharCode; +// eslint-disable-next-line es/no-string-fromcodepoint -- required for testing +var $fromCodePoint = String.fromCodePoint; +var join = uncurryThis([].join); + +// length should be 1, old FF problem +var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length !== 1; + +// `String.fromCodePoint` method +// https://tc39.es/ecma262/#sec-string.fromcodepoint +$({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + fromCodePoint: function fromCodePoint(x) { + var elements = []; + var length = arguments.length; + var i = 0; + var code; + while (length > i) { + code = +arguments[i++]; + if (toAbsoluteIndex(code, 0x10FFFF) !== code) throw new $RangeError(code + ' is not a valid code point'); + elements[i] = code < 0x10000 + ? fromCharCode(code) + : fromCharCode(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00); + } return join(elements, ''); + } +}); diff --git a/node_modules/core-js/modules/es.string.includes.js b/node_modules/core-js/modules/es.string.includes.js new file mode 100644 index 0000000..22afdca --- /dev/null +++ b/node_modules/core-js/modules/es.string.includes.js @@ -0,0 +1,21 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var notARegExp = require('../internals/not-a-regexp'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var toString = require('../internals/to-string'); +var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic'); + +var stringIndexOf = uncurryThis(''.indexOf); + +// `String.prototype.includes` method +// https://tc39.es/ecma262/#sec-string.prototype.includes +$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, { + includes: function includes(searchString /* , position = 0 */) { + return !!~stringIndexOf( + toString(requireObjectCoercible(this)), + toString(notARegExp(searchString)), + arguments.length > 1 ? arguments[1] : undefined + ); + } +}); diff --git a/node_modules/core-js/modules/es.string.is-well-formed.js b/node_modules/core-js/modules/es.string.is-well-formed.js new file mode 100644 index 0000000..5fbdfa8 --- /dev/null +++ b/node_modules/core-js/modules/es.string.is-well-formed.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var toString = require('../internals/to-string'); + +var charCodeAt = uncurryThis(''.charCodeAt); + +// `String.prototype.isWellFormed` method +// https://github.com/tc39/proposal-is-usv-string +$({ target: 'String', proto: true }, { + isWellFormed: function isWellFormed() { + var S = toString(requireObjectCoercible(this)); + var length = S.length; + for (var i = 0; i < length; i++) { + var charCode = charCodeAt(S, i); + // single UTF-16 code unit + if ((charCode & 0xF800) !== 0xD800) continue; + // unpaired surrogate + if (charCode >= 0xDC00 || ++i >= length || (charCodeAt(S, i) & 0xFC00) !== 0xDC00) return false; + } return true; + } +}); diff --git a/node_modules/core-js/modules/es.string.italics.js b/node_modules/core-js/modules/es.string.italics.js new file mode 100644 index 0000000..fca5e06 --- /dev/null +++ b/node_modules/core-js/modules/es.string.italics.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var createHTML = require('../internals/create-html'); +var forcedStringHTMLMethod = require('../internals/string-html-forced'); + +// `String.prototype.italics` method +// https://tc39.es/ecma262/#sec-string.prototype.italics +$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('italics') }, { + italics: function italics() { + return createHTML(this, 'i', '', ''); + } +}); diff --git a/node_modules/core-js/modules/es.string.iterator.js b/node_modules/core-js/modules/es.string.iterator.js new file mode 100644 index 0000000..cfd486c --- /dev/null +++ b/node_modules/core-js/modules/es.string.iterator.js @@ -0,0 +1,31 @@ +'use strict'; +var charAt = require('../internals/string-multibyte').charAt; +var toString = require('../internals/to-string'); +var InternalStateModule = require('../internals/internal-state'); +var defineIterator = require('../internals/iterator-define'); +var createIterResultObject = require('../internals/create-iter-result-object'); + +var STRING_ITERATOR = 'String Iterator'; +var setInternalState = InternalStateModule.set; +var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR); + +// `String.prototype[@@iterator]` method +// https://tc39.es/ecma262/#sec-string.prototype-@@iterator +defineIterator(String, 'String', function (iterated) { + setInternalState(this, { + type: STRING_ITERATOR, + string: toString(iterated), + index: 0 + }); +// `%StringIteratorPrototype%.next` method +// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next +}, function next() { + var state = getInternalState(this); + var string = state.string; + var index = state.index; + var point; + if (index >= string.length) return createIterResultObject(undefined, true); + point = charAt(string, index); + state.index += point.length; + return createIterResultObject(point, false); +}); diff --git a/node_modules/core-js/modules/es.string.link.js b/node_modules/core-js/modules/es.string.link.js new file mode 100644 index 0000000..0d12891 --- /dev/null +++ b/node_modules/core-js/modules/es.string.link.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var createHTML = require('../internals/create-html'); +var forcedStringHTMLMethod = require('../internals/string-html-forced'); + +// `String.prototype.link` method +// https://tc39.es/ecma262/#sec-string.prototype.link +$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('link') }, { + link: function link(url) { + return createHTML(this, 'a', 'href', url); + } +}); diff --git a/node_modules/core-js/modules/es.string.match-all.js b/node_modules/core-js/modules/es.string.match-all.js new file mode 100644 index 0000000..3d1cce1 --- /dev/null +++ b/node_modules/core-js/modules/es.string.match-all.js @@ -0,0 +1,102 @@ +'use strict'; +/* eslint-disable es/no-string-prototype-matchall -- safe */ +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); +var createIteratorConstructor = require('../internals/iterator-create-constructor'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var toLength = require('../internals/to-length'); +var toString = require('../internals/to-string'); +var anObject = require('../internals/an-object'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var classof = require('../internals/classof-raw'); +var isRegExp = require('../internals/is-regexp'); +var getRegExpFlags = require('../internals/regexp-get-flags'); +var getMethod = require('../internals/get-method'); +var defineBuiltIn = require('../internals/define-built-in'); +var fails = require('../internals/fails'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var speciesConstructor = require('../internals/species-constructor'); +var advanceStringIndex = require('../internals/advance-string-index'); +var regExpExec = require('../internals/regexp-exec-abstract'); +var InternalStateModule = require('../internals/internal-state'); +var IS_PURE = require('../internals/is-pure'); + +var MATCH_ALL = wellKnownSymbol('matchAll'); +var REGEXP_STRING = 'RegExp String'; +var REGEXP_STRING_ITERATOR = REGEXP_STRING + ' Iterator'; +var setInternalState = InternalStateModule.set; +var getInternalState = InternalStateModule.getterFor(REGEXP_STRING_ITERATOR); +var RegExpPrototype = RegExp.prototype; +var $TypeError = TypeError; +var stringIndexOf = uncurryThis(''.indexOf); +var nativeMatchAll = uncurryThis(''.matchAll); + +var WORKS_WITH_NON_GLOBAL_REGEX = !!nativeMatchAll && !fails(function () { + nativeMatchAll('a', /./); +}); + +var $RegExpStringIterator = createIteratorConstructor(function RegExpStringIterator(regexp, string, $global, fullUnicode) { + setInternalState(this, { + type: REGEXP_STRING_ITERATOR, + regexp: regexp, + string: string, + global: $global, + unicode: fullUnicode, + done: false + }); +}, REGEXP_STRING, function next() { + var state = getInternalState(this); + if (state.done) return createIterResultObject(undefined, true); + var R = state.regexp; + var S = state.string; + var match = regExpExec(R, S); + if (match === null) { + state.done = true; + return createIterResultObject(undefined, true); + } + if (state.global) { + if (toString(match[0]) === '') R.lastIndex = advanceStringIndex(S, toLength(R.lastIndex), state.unicode); + return createIterResultObject(match, false); + } + state.done = true; + return createIterResultObject(match, false); +}); + +var $matchAll = function (string) { + var R = anObject(this); + var S = toString(string); + var C = speciesConstructor(R, RegExp); + var flags = toString(getRegExpFlags(R)); + var matcher, $global, fullUnicode; + matcher = new C(C === RegExp ? R.source : R, flags); + $global = !!~stringIndexOf(flags, 'g'); + fullUnicode = !!~stringIndexOf(flags, 'u'); + matcher.lastIndex = toLength(R.lastIndex); + return new $RegExpStringIterator(matcher, S, $global, fullUnicode); +}; + +// `String.prototype.matchAll` method +// https://tc39.es/ecma262/#sec-string.prototype.matchall +$({ target: 'String', proto: true, forced: WORKS_WITH_NON_GLOBAL_REGEX }, { + matchAll: function matchAll(regexp) { + var O = requireObjectCoercible(this); + var flags, S, matcher, rx; + if (!isNullOrUndefined(regexp)) { + if (isRegExp(regexp)) { + flags = toString(requireObjectCoercible(getRegExpFlags(regexp))); + if (!~stringIndexOf(flags, 'g')) throw new $TypeError('`.matchAll` does not allow non-global regexes'); + } + if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll(O, regexp); + matcher = getMethod(regexp, MATCH_ALL); + if (matcher === undefined && IS_PURE && classof(regexp) === 'RegExp') matcher = $matchAll; + if (matcher) return call(matcher, regexp, O); + } else if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll(O, regexp); + S = toString(O); + rx = new RegExp(regexp, 'g'); + return IS_PURE ? call($matchAll, rx, S) : rx[MATCH_ALL](S); + } +}); + +IS_PURE || MATCH_ALL in RegExpPrototype || defineBuiltIn(RegExpPrototype, MATCH_ALL, $matchAll); diff --git a/node_modules/core-js/modules/es.string.match.js b/node_modules/core-js/modules/es.string.match.js new file mode 100644 index 0000000..354c40f --- /dev/null +++ b/node_modules/core-js/modules/es.string.match.js @@ -0,0 +1,48 @@ +'use strict'; +var call = require('../internals/function-call'); +var fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic'); +var anObject = require('../internals/an-object'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var toLength = require('../internals/to-length'); +var toString = require('../internals/to-string'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var getMethod = require('../internals/get-method'); +var advanceStringIndex = require('../internals/advance-string-index'); +var regExpExec = require('../internals/regexp-exec-abstract'); + +// @@match logic +fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) { + return [ + // `String.prototype.match` method + // https://tc39.es/ecma262/#sec-string.prototype.match + function match(regexp) { + var O = requireObjectCoercible(this); + var matcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, MATCH); + return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O)); + }, + // `RegExp.prototype[@@match]` method + // https://tc39.es/ecma262/#sec-regexp.prototype-@@match + function (string) { + var rx = anObject(this); + var S = toString(string); + var res = maybeCallNative(nativeMatch, rx, S); + + if (res.done) return res.value; + + if (!rx.global) return regExpExec(rx, S); + + var fullUnicode = rx.unicode; + rx.lastIndex = 0; + var A = []; + var n = 0; + var result; + while ((result = regExpExec(rx, S)) !== null) { + var matchStr = toString(result[0]); + A[n] = matchStr; + if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); + n++; + } + return n === 0 ? null : A; + } + ]; +}); diff --git a/node_modules/core-js/modules/es.string.pad-end.js b/node_modules/core-js/modules/es.string.pad-end.js new file mode 100644 index 0000000..f770a85 --- /dev/null +++ b/node_modules/core-js/modules/es.string.pad-end.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var $padEnd = require('../internals/string-pad').end; +var WEBKIT_BUG = require('../internals/string-pad-webkit-bug'); + +// `String.prototype.padEnd` method +// https://tc39.es/ecma262/#sec-string.prototype.padend +$({ target: 'String', proto: true, forced: WEBKIT_BUG }, { + padEnd: function padEnd(maxLength /* , fillString = ' ' */) { + return $padEnd(this, maxLength, arguments.length > 1 ? arguments[1] : undefined); + } +}); diff --git a/node_modules/core-js/modules/es.string.pad-start.js b/node_modules/core-js/modules/es.string.pad-start.js new file mode 100644 index 0000000..d213b46 --- /dev/null +++ b/node_modules/core-js/modules/es.string.pad-start.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var $padStart = require('../internals/string-pad').start; +var WEBKIT_BUG = require('../internals/string-pad-webkit-bug'); + +// `String.prototype.padStart` method +// https://tc39.es/ecma262/#sec-string.prototype.padstart +$({ target: 'String', proto: true, forced: WEBKIT_BUG }, { + padStart: function padStart(maxLength /* , fillString = ' ' */) { + return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined); + } +}); diff --git a/node_modules/core-js/modules/es.string.raw.js b/node_modules/core-js/modules/es.string.raw.js new file mode 100644 index 0000000..65ed7c8 --- /dev/null +++ b/node_modules/core-js/modules/es.string.raw.js @@ -0,0 +1,28 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toIndexedObject = require('../internals/to-indexed-object'); +var toObject = require('../internals/to-object'); +var toString = require('../internals/to-string'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); + +var push = uncurryThis([].push); +var join = uncurryThis([].join); + +// `String.raw` method +// https://tc39.es/ecma262/#sec-string.raw +$({ target: 'String', stat: true }, { + raw: function raw(template) { + var rawTemplate = toIndexedObject(toObject(template).raw); + var literalSegments = lengthOfArrayLike(rawTemplate); + if (!literalSegments) return ''; + var argumentsLength = arguments.length; + var elements = []; + var i = 0; + while (true) { + push(elements, toString(rawTemplate[i++])); + if (i === literalSegments) return join(elements, ''); + if (i < argumentsLength) push(elements, toString(arguments[i])); + } + } +}); diff --git a/node_modules/core-js/modules/es.string.repeat.js b/node_modules/core-js/modules/es.string.repeat.js new file mode 100644 index 0000000..7ec1c2b --- /dev/null +++ b/node_modules/core-js/modules/es.string.repeat.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var repeat = require('../internals/string-repeat'); + +// `String.prototype.repeat` method +// https://tc39.es/ecma262/#sec-string.prototype.repeat +$({ target: 'String', proto: true }, { + repeat: repeat +}); diff --git a/node_modules/core-js/modules/es.string.replace-all.js b/node_modules/core-js/modules/es.string.replace-all.js new file mode 100644 index 0000000..6904d7f --- /dev/null +++ b/node_modules/core-js/modules/es.string.replace-all.js @@ -0,0 +1,61 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var uncurryThis = require('../internals/function-uncurry-this'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var isCallable = require('../internals/is-callable'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var isRegExp = require('../internals/is-regexp'); +var toString = require('../internals/to-string'); +var getMethod = require('../internals/get-method'); +var getRegExpFlags = require('../internals/regexp-get-flags'); +var getSubstitution = require('../internals/get-substitution'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var IS_PURE = require('../internals/is-pure'); + +var REPLACE = wellKnownSymbol('replace'); +var $TypeError = TypeError; +var indexOf = uncurryThis(''.indexOf); +var replace = uncurryThis(''.replace); +var stringSlice = uncurryThis(''.slice); +var max = Math.max; + +// `String.prototype.replaceAll` method +// https://tc39.es/ecma262/#sec-string.prototype.replaceall +$({ target: 'String', proto: true }, { + replaceAll: function replaceAll(searchValue, replaceValue) { + var O = requireObjectCoercible(this); + var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, position, replacement; + var endOfLastMatch = 0; + var result = ''; + if (!isNullOrUndefined(searchValue)) { + IS_REG_EXP = isRegExp(searchValue); + if (IS_REG_EXP) { + flags = toString(requireObjectCoercible(getRegExpFlags(searchValue))); + if (!~indexOf(flags, 'g')) throw new $TypeError('`.replaceAll` does not allow non-global regexes'); + } + replacer = getMethod(searchValue, REPLACE); + if (replacer) return call(replacer, searchValue, O, replaceValue); + if (IS_PURE && IS_REG_EXP) return replace(toString(O), searchValue, replaceValue); + } + string = toString(O); + searchString = toString(searchValue); + functionalReplace = isCallable(replaceValue); + if (!functionalReplace) replaceValue = toString(replaceValue); + searchLength = searchString.length; + advanceBy = max(1, searchLength); + position = indexOf(string, searchString); + while (position !== -1) { + replacement = functionalReplace + ? toString(replaceValue(searchString, position, string)) + : getSubstitution(searchString, string, position, [], undefined, replaceValue); + result += stringSlice(string, endOfLastMatch, position) + replacement; + endOfLastMatch = position + searchLength; + position = position + advanceBy > string.length ? -1 : indexOf(string, searchString, position + advanceBy); + } + if (endOfLastMatch < string.length) { + result += stringSlice(string, endOfLastMatch); + } + return result; + } +}); diff --git a/node_modules/core-js/modules/es.string.replace.js b/node_modules/core-js/modules/es.string.replace.js new file mode 100644 index 0000000..c3b8c65 --- /dev/null +++ b/node_modules/core-js/modules/es.string.replace.js @@ -0,0 +1,142 @@ +'use strict'; +var apply = require('../internals/function-apply'); +var call = require('../internals/function-call'); +var uncurryThis = require('../internals/function-uncurry-this'); +var fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic'); +var fails = require('../internals/fails'); +var anObject = require('../internals/an-object'); +var isCallable = require('../internals/is-callable'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var toLength = require('../internals/to-length'); +var toString = require('../internals/to-string'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var advanceStringIndex = require('../internals/advance-string-index'); +var getMethod = require('../internals/get-method'); +var getSubstitution = require('../internals/get-substitution'); +var regExpExec = require('../internals/regexp-exec-abstract'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var REPLACE = wellKnownSymbol('replace'); +var max = Math.max; +var min = Math.min; +var concat = uncurryThis([].concat); +var push = uncurryThis([].push); +var stringIndexOf = uncurryThis(''.indexOf); +var stringSlice = uncurryThis(''.slice); + +var maybeToString = function (it) { + return it === undefined ? it : String(it); +}; + +// IE <= 11 replaces $0 with the whole match, as if it was $& +// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0 +var REPLACE_KEEPS_$0 = (function () { + // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing + return 'a'.replace(/./, '$0') === '$0'; +})(); + +// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string +var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () { + if (/./[REPLACE]) { + return /./[REPLACE]('a', '$0') === ''; + } + return false; +})(); + +var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { + var re = /./; + re.exec = function () { + var result = []; + result.groups = { a: '7' }; + return result; + }; + // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive + return ''.replace(re, '$') !== '7'; +}); + +// @@replace logic +fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) { + var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0'; + + return [ + // `String.prototype.replace` method + // https://tc39.es/ecma262/#sec-string.prototype.replace + function replace(searchValue, replaceValue) { + var O = requireObjectCoercible(this); + var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE); + return replacer + ? call(replacer, searchValue, O, replaceValue) + : call(nativeReplace, toString(O), searchValue, replaceValue); + }, + // `RegExp.prototype[@@replace]` method + // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace + function (string, replaceValue) { + var rx = anObject(this); + var S = toString(string); + + if ( + typeof replaceValue == 'string' && + stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 && + stringIndexOf(replaceValue, '$<') === -1 + ) { + var res = maybeCallNative(nativeReplace, rx, S, replaceValue); + if (res.done) return res.value; + } + + var functionalReplace = isCallable(replaceValue); + if (!functionalReplace) replaceValue = toString(replaceValue); + + var global = rx.global; + var fullUnicode; + if (global) { + fullUnicode = rx.unicode; + rx.lastIndex = 0; + } + + var results = []; + var result; + while (true) { + result = regExpExec(rx, S); + if (result === null) break; + + push(results, result); + if (!global) break; + + var matchStr = toString(result[0]); + if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); + } + + var accumulatedResult = ''; + var nextSourcePosition = 0; + for (var i = 0; i < results.length; i++) { + result = results[i]; + + var matched = toString(result[0]); + var position = max(min(toIntegerOrInfinity(result.index), S.length), 0); + var captures = []; + var replacement; + // NOTE: This is equivalent to + // captures = result.slice(1).map(maybeToString) + // but for some reason `nativeSlice.call(result, 1, result.length)` (called in + // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and + // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. + for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j])); + var namedCaptures = result.groups; + if (functionalReplace) { + var replacerArgs = concat([matched], captures, position, S); + if (namedCaptures !== undefined) push(replacerArgs, namedCaptures); + replacement = toString(apply(replaceValue, undefined, replacerArgs)); + } else { + replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); + } + if (position >= nextSourcePosition) { + accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement; + nextSourcePosition = position + matched.length; + } + } + + return accumulatedResult + stringSlice(S, nextSourcePosition); + } + ]; +}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE); diff --git a/node_modules/core-js/modules/es.string.search.js b/node_modules/core-js/modules/es.string.search.js new file mode 100644 index 0000000..17bf7ba --- /dev/null +++ b/node_modules/core-js/modules/es.string.search.js @@ -0,0 +1,38 @@ +'use strict'; +var call = require('../internals/function-call'); +var fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic'); +var anObject = require('../internals/an-object'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var sameValue = require('../internals/same-value'); +var toString = require('../internals/to-string'); +var getMethod = require('../internals/get-method'); +var regExpExec = require('../internals/regexp-exec-abstract'); + +// @@search logic +fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) { + return [ + // `String.prototype.search` method + // https://tc39.es/ecma262/#sec-string.prototype.search + function search(regexp) { + var O = requireObjectCoercible(this); + var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH); + return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O)); + }, + // `RegExp.prototype[@@search]` method + // https://tc39.es/ecma262/#sec-regexp.prototype-@@search + function (string) { + var rx = anObject(this); + var S = toString(string); + var res = maybeCallNative(nativeSearch, rx, S); + + if (res.done) return res.value; + + var previousLastIndex = rx.lastIndex; + if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0; + var result = regExpExec(rx, S); + if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex; + return result === null ? -1 : result.index; + } + ]; +}); diff --git a/node_modules/core-js/modules/es.string.small.js b/node_modules/core-js/modules/es.string.small.js new file mode 100644 index 0000000..ab9f665 --- /dev/null +++ b/node_modules/core-js/modules/es.string.small.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var createHTML = require('../internals/create-html'); +var forcedStringHTMLMethod = require('../internals/string-html-forced'); + +// `String.prototype.small` method +// https://tc39.es/ecma262/#sec-string.prototype.small +$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('small') }, { + small: function small() { + return createHTML(this, 'small', '', ''); + } +}); diff --git a/node_modules/core-js/modules/es.string.split.js b/node_modules/core-js/modules/es.string.split.js new file mode 100644 index 0000000..4d76901 --- /dev/null +++ b/node_modules/core-js/modules/es.string.split.js @@ -0,0 +1,111 @@ +'use strict'; +var call = require('../internals/function-call'); +var uncurryThis = require('../internals/function-uncurry-this'); +var fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic'); +var anObject = require('../internals/an-object'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var speciesConstructor = require('../internals/species-constructor'); +var advanceStringIndex = require('../internals/advance-string-index'); +var toLength = require('../internals/to-length'); +var toString = require('../internals/to-string'); +var getMethod = require('../internals/get-method'); +var regExpExec = require('../internals/regexp-exec-abstract'); +var stickyHelpers = require('../internals/regexp-sticky-helpers'); +var fails = require('../internals/fails'); + +var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y; +var MAX_UINT32 = 0xFFFFFFFF; +var min = Math.min; +var push = uncurryThis([].push); +var stringSlice = uncurryThis(''.slice); + +// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec +// Weex JS has frozen built-in prototypes, so use try / catch wrapper +var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () { + // eslint-disable-next-line regexp/no-empty-group -- required for testing + var re = /(?:)/; + var originalExec = re.exec; + re.exec = function () { return originalExec.apply(this, arguments); }; + var result = 'ab'.split(re); + return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b'; +}); + +var BUGGY = 'abbc'.split(/(b)*/)[1] === 'c' || + // eslint-disable-next-line regexp/no-empty-group -- required for testing + 'test'.split(/(?:)/, -1).length !== 4 || + 'ab'.split(/(?:ab)*/).length !== 2 || + '.'.split(/(.?)(.?)/).length !== 4 || + // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing + '.'.split(/()()/).length > 1 || + ''.split(/.?/).length; + +// @@split logic +fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) { + var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) { + return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit); + } : nativeSplit; + + return [ + // `String.prototype.split` method + // https://tc39.es/ecma262/#sec-string.prototype.split + function split(separator, limit) { + var O = requireObjectCoercible(this); + var splitter = isNullOrUndefined(separator) ? undefined : getMethod(separator, SPLIT); + return splitter + ? call(splitter, separator, O, limit) + : call(internalSplit, toString(O), separator, limit); + }, + // `RegExp.prototype[@@split]` method + // https://tc39.es/ecma262/#sec-regexp.prototype-@@split + // + // NOTE: This cannot be properly polyfilled in engines that don't support + // the 'y' flag. + function (string, limit) { + var rx = anObject(this); + var S = toString(string); + + if (!BUGGY) { + var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit); + if (res.done) return res.value; + } + + var C = speciesConstructor(rx, RegExp); + var unicodeMatching = rx.unicode; + var flags = (rx.ignoreCase ? 'i' : '') + + (rx.multiline ? 'm' : '') + + (rx.unicode ? 'u' : '') + + (UNSUPPORTED_Y ? 'g' : 'y'); + // ^(? + rx + ) is needed, in combination with some S slicing, to + // simulate the 'y' flag. + var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags); + var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; + if (lim === 0) return []; + if (S.length === 0) return regExpExec(splitter, S) === null ? [S] : []; + var p = 0; + var q = 0; + var A = []; + while (q < S.length) { + splitter.lastIndex = UNSUPPORTED_Y ? 0 : q; + var z = regExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S); + var e; + if ( + z === null || + (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p + ) { + q = advanceStringIndex(S, q, unicodeMatching); + } else { + push(A, stringSlice(S, p, q)); + if (A.length === lim) return A; + for (var i = 1; i <= z.length - 1; i++) { + push(A, z[i]); + if (A.length === lim) return A; + } + q = p = e; + } + } + push(A, stringSlice(S, p)); + return A; + } + ]; +}, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y); diff --git a/node_modules/core-js/modules/es.string.starts-with.js b/node_modules/core-js/modules/es.string.starts-with.js new file mode 100644 index 0000000..c95bc91 --- /dev/null +++ b/node_modules/core-js/modules/es.string.starts-with.js @@ -0,0 +1,32 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); +var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; +var toLength = require('../internals/to-length'); +var toString = require('../internals/to-string'); +var notARegExp = require('../internals/not-a-regexp'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic'); +var IS_PURE = require('../internals/is-pure'); + +var stringSlice = uncurryThis(''.slice); +var min = Math.min; + +var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith'); +// https://github.com/zloirock/core-js/pull/702 +var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () { + var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith'); + return descriptor && !descriptor.writable; +}(); + +// `String.prototype.startsWith` method +// https://tc39.es/ecma262/#sec-string.prototype.startswith +$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, { + startsWith: function startsWith(searchString /* , position = 0 */) { + var that = toString(requireObjectCoercible(this)); + notARegExp(searchString); + var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length)); + var search = toString(searchString); + return stringSlice(that, index, index + search.length) === search; + } +}); diff --git a/node_modules/core-js/modules/es.string.strike.js b/node_modules/core-js/modules/es.string.strike.js new file mode 100644 index 0000000..f78a222 --- /dev/null +++ b/node_modules/core-js/modules/es.string.strike.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var createHTML = require('../internals/create-html'); +var forcedStringHTMLMethod = require('../internals/string-html-forced'); + +// `String.prototype.strike` method +// https://tc39.es/ecma262/#sec-string.prototype.strike +$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('strike') }, { + strike: function strike() { + return createHTML(this, 'strike', '', ''); + } +}); diff --git a/node_modules/core-js/modules/es.string.sub.js b/node_modules/core-js/modules/es.string.sub.js new file mode 100644 index 0000000..bc62879 --- /dev/null +++ b/node_modules/core-js/modules/es.string.sub.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var createHTML = require('../internals/create-html'); +var forcedStringHTMLMethod = require('../internals/string-html-forced'); + +// `String.prototype.sub` method +// https://tc39.es/ecma262/#sec-string.prototype.sub +$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('sub') }, { + sub: function sub() { + return createHTML(this, 'sub', '', ''); + } +}); diff --git a/node_modules/core-js/modules/es.string.substr.js b/node_modules/core-js/modules/es.string.substr.js new file mode 100644 index 0000000..57595da --- /dev/null +++ b/node_modules/core-js/modules/es.string.substr.js @@ -0,0 +1,30 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var toString = require('../internals/to-string'); + +var stringSlice = uncurryThis(''.slice); +var max = Math.max; +var min = Math.min; + +// eslint-disable-next-line unicorn/prefer-string-slice -- required for testing +var FORCED = !''.substr || 'ab'.substr(-1) !== 'b'; + +// `String.prototype.substr` method +// https://tc39.es/ecma262/#sec-string.prototype.substr +$({ target: 'String', proto: true, forced: FORCED }, { + substr: function substr(start, length) { + var that = toString(requireObjectCoercible(this)); + var size = that.length; + var intStart = toIntegerOrInfinity(start); + var intLength, intEnd; + if (intStart === Infinity) intStart = 0; + if (intStart < 0) intStart = max(size + intStart, 0); + intLength = length === undefined ? size : toIntegerOrInfinity(length); + if (intLength <= 0 || intLength === Infinity) return ''; + intEnd = min(intStart + intLength, size); + return intStart >= intEnd ? '' : stringSlice(that, intStart, intEnd); + } +}); diff --git a/node_modules/core-js/modules/es.string.sup.js b/node_modules/core-js/modules/es.string.sup.js new file mode 100644 index 0000000..6e1e5cb --- /dev/null +++ b/node_modules/core-js/modules/es.string.sup.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var createHTML = require('../internals/create-html'); +var forcedStringHTMLMethod = require('../internals/string-html-forced'); + +// `String.prototype.sup` method +// https://tc39.es/ecma262/#sec-string.prototype.sup +$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('sup') }, { + sup: function sup() { + return createHTML(this, 'sup', '', ''); + } +}); diff --git a/node_modules/core-js/modules/es.string.to-well-formed.js b/node_modules/core-js/modules/es.string.to-well-formed.js new file mode 100644 index 0000000..e20abb2 --- /dev/null +++ b/node_modules/core-js/modules/es.string.to-well-formed.js @@ -0,0 +1,43 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var uncurryThis = require('../internals/function-uncurry-this'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var toString = require('../internals/to-string'); +var fails = require('../internals/fails'); + +var $Array = Array; +var charAt = uncurryThis(''.charAt); +var charCodeAt = uncurryThis(''.charCodeAt); +var join = uncurryThis([].join); +// eslint-disable-next-line es/no-string-prototype-towellformed -- safe +var $toWellFormed = ''.toWellFormed; +var REPLACEMENT_CHARACTER = '\uFFFD'; + +// Safari bug +var TO_STRING_CONVERSION_BUG = $toWellFormed && fails(function () { + return call($toWellFormed, 1) !== '1'; +}); + +// `String.prototype.toWellFormed` method +// https://github.com/tc39/proposal-is-usv-string +$({ target: 'String', proto: true, forced: TO_STRING_CONVERSION_BUG }, { + toWellFormed: function toWellFormed() { + var S = toString(requireObjectCoercible(this)); + if (TO_STRING_CONVERSION_BUG) return call($toWellFormed, S); + var length = S.length; + var result = $Array(length); + for (var i = 0; i < length; i++) { + var charCode = charCodeAt(S, i); + // single UTF-16 code unit + if ((charCode & 0xF800) !== 0xD800) result[i] = charAt(S, i); + // unpaired surrogate + else if (charCode >= 0xDC00 || i + 1 >= length || (charCodeAt(S, i + 1) & 0xFC00) !== 0xDC00) result[i] = REPLACEMENT_CHARACTER; + // surrogate pair + else { + result[i] = charAt(S, i); + result[++i] = charAt(S, i); + } + } return join(result, ''); + } +}); diff --git a/node_modules/core-js/modules/es.string.trim-end.js b/node_modules/core-js/modules/es.string.trim-end.js new file mode 100644 index 0000000..7d218db --- /dev/null +++ b/node_modules/core-js/modules/es.string.trim-end.js @@ -0,0 +1,12 @@ +'use strict'; +// TODO: Remove this line from `core-js@4` +require('../modules/es.string.trim-right'); +var $ = require('../internals/export'); +var trimEnd = require('../internals/string-trim-end'); + +// `String.prototype.trimEnd` method +// https://tc39.es/ecma262/#sec-string.prototype.trimend +// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe +$({ target: 'String', proto: true, name: 'trimEnd', forced: ''.trimEnd !== trimEnd }, { + trimEnd: trimEnd +}); diff --git a/node_modules/core-js/modules/es.string.trim-left.js b/node_modules/core-js/modules/es.string.trim-left.js new file mode 100644 index 0000000..55a38f4 --- /dev/null +++ b/node_modules/core-js/modules/es.string.trim-left.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var trimStart = require('../internals/string-trim-start'); + +// `String.prototype.trimLeft` method +// https://tc39.es/ecma262/#sec-string.prototype.trimleft +// eslint-disable-next-line es/no-string-prototype-trimleft-trimright -- safe +$({ target: 'String', proto: true, name: 'trimStart', forced: ''.trimLeft !== trimStart }, { + trimLeft: trimStart +}); diff --git a/node_modules/core-js/modules/es.string.trim-right.js b/node_modules/core-js/modules/es.string.trim-right.js new file mode 100644 index 0000000..eb33758 --- /dev/null +++ b/node_modules/core-js/modules/es.string.trim-right.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var trimEnd = require('../internals/string-trim-end'); + +// `String.prototype.trimRight` method +// https://tc39.es/ecma262/#sec-string.prototype.trimend +// eslint-disable-next-line es/no-string-prototype-trimleft-trimright -- safe +$({ target: 'String', proto: true, name: 'trimEnd', forced: ''.trimRight !== trimEnd }, { + trimRight: trimEnd +}); diff --git a/node_modules/core-js/modules/es.string.trim-start.js b/node_modules/core-js/modules/es.string.trim-start.js new file mode 100644 index 0000000..c09ce7a --- /dev/null +++ b/node_modules/core-js/modules/es.string.trim-start.js @@ -0,0 +1,12 @@ +'use strict'; +// TODO: Remove this line from `core-js@4` +require('../modules/es.string.trim-left'); +var $ = require('../internals/export'); +var trimStart = require('../internals/string-trim-start'); + +// `String.prototype.trimStart` method +// https://tc39.es/ecma262/#sec-string.prototype.trimstart +// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe +$({ target: 'String', proto: true, name: 'trimStart', forced: ''.trimStart !== trimStart }, { + trimStart: trimStart +}); diff --git a/node_modules/core-js/modules/es.string.trim.js b/node_modules/core-js/modules/es.string.trim.js new file mode 100644 index 0000000..e9cfb4b --- /dev/null +++ b/node_modules/core-js/modules/es.string.trim.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var $trim = require('../internals/string-trim').trim; +var forcedStringTrimMethod = require('../internals/string-trim-forced'); + +// `String.prototype.trim` method +// https://tc39.es/ecma262/#sec-string.prototype.trim +$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, { + trim: function trim() { + return $trim(this); + } +}); diff --git a/node_modules/core-js/modules/es.symbol.async-iterator.js b/node_modules/core-js/modules/es.symbol.async-iterator.js new file mode 100644 index 0000000..40d1930 --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.async-iterator.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.asyncIterator` well-known symbol +// https://tc39.es/ecma262/#sec-symbol.asynciterator +defineWellKnownSymbol('asyncIterator'); diff --git a/node_modules/core-js/modules/es.symbol.constructor.js b/node_modules/core-js/modules/es.symbol.constructor.js new file mode 100644 index 0000000..274e2ef --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.constructor.js @@ -0,0 +1,263 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var call = require('../internals/function-call'); +var uncurryThis = require('../internals/function-uncurry-this'); +var IS_PURE = require('../internals/is-pure'); +var DESCRIPTORS = require('../internals/descriptors'); +var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); +var fails = require('../internals/fails'); +var hasOwn = require('../internals/has-own-property'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var anObject = require('../internals/an-object'); +var toIndexedObject = require('../internals/to-indexed-object'); +var toPropertyKey = require('../internals/to-property-key'); +var $toString = require('../internals/to-string'); +var createPropertyDescriptor = require('../internals/create-property-descriptor'); +var nativeObjectCreate = require('../internals/object-create'); +var objectKeys = require('../internals/object-keys'); +var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names'); +var getOwnPropertyNamesExternal = require('../internals/object-get-own-property-names-external'); +var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols'); +var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor'); +var definePropertyModule = require('../internals/object-define-property'); +var definePropertiesModule = require('../internals/object-define-properties'); +var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable'); +var defineBuiltIn = require('../internals/define-built-in'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var shared = require('../internals/shared'); +var sharedKey = require('../internals/shared-key'); +var hiddenKeys = require('../internals/hidden-keys'); +var uid = require('../internals/uid'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped'); +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); +var defineSymbolToPrimitive = require('../internals/symbol-define-to-primitive'); +var setToStringTag = require('../internals/set-to-string-tag'); +var InternalStateModule = require('../internals/internal-state'); +var $forEach = require('../internals/array-iteration').forEach; + +var HIDDEN = sharedKey('hidden'); +var SYMBOL = 'Symbol'; +var PROTOTYPE = 'prototype'; + +var setInternalState = InternalStateModule.set; +var getInternalState = InternalStateModule.getterFor(SYMBOL); + +var ObjectPrototype = Object[PROTOTYPE]; +var $Symbol = globalThis.Symbol; +var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE]; +var RangeError = globalThis.RangeError; +var TypeError = globalThis.TypeError; +var QObject = globalThis.QObject; +var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; +var nativeDefineProperty = definePropertyModule.f; +var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f; +var nativePropertyIsEnumerable = propertyIsEnumerableModule.f; +var push = uncurryThis([].push); + +var AllSymbols = shared('symbols'); +var ObjectPrototypeSymbols = shared('op-symbols'); +var WellKnownSymbolsStore = shared('wks'); + +// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 +var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; + +// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 +var fallbackDefineProperty = function (O, P, Attributes) { + var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P); + if (ObjectPrototypeDescriptor) delete ObjectPrototype[P]; + nativeDefineProperty(O, P, Attributes); + if (ObjectPrototypeDescriptor && O !== ObjectPrototype) { + nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor); + } +}; + +var setSymbolDescriptor = DESCRIPTORS && fails(function () { + return nativeObjectCreate(nativeDefineProperty({}, 'a', { + get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; } + })).a !== 7; +}) ? fallbackDefineProperty : nativeDefineProperty; + +var wrap = function (tag, description) { + var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype); + setInternalState(symbol, { + type: SYMBOL, + tag: tag, + description: description + }); + if (!DESCRIPTORS) symbol.description = description; + return symbol; +}; + +var $defineProperty = function defineProperty(O, P, Attributes) { + if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes); + anObject(O); + var key = toPropertyKey(P); + anObject(Attributes); + if (hasOwn(AllSymbols, key)) { + if (!Attributes.enumerable) { + if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, nativeObjectCreate(null))); + O[HIDDEN][key] = true; + } else { + if (hasOwn(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false; + Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) }); + } return setSymbolDescriptor(O, key, Attributes); + } return nativeDefineProperty(O, key, Attributes); +}; + +var $defineProperties = function defineProperties(O, Properties) { + anObject(O); + var properties = toIndexedObject(Properties); + var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties)); + $forEach(keys, function (key) { + if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]); + }); + return O; +}; + +var $create = function create(O, Properties) { + return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties); +}; + +var $propertyIsEnumerable = function propertyIsEnumerable(V) { + var P = toPropertyKey(V); + var enumerable = call(nativePropertyIsEnumerable, this, P); + if (this === ObjectPrototype && hasOwn(AllSymbols, P) && !hasOwn(ObjectPrototypeSymbols, P)) return false; + return enumerable || !hasOwn(this, P) || !hasOwn(AllSymbols, P) || hasOwn(this, HIDDEN) && this[HIDDEN][P] + ? enumerable : true; +}; + +var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) { + var it = toIndexedObject(O); + var key = toPropertyKey(P); + if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key)) return; + var descriptor = nativeGetOwnPropertyDescriptor(it, key); + if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) { + descriptor.enumerable = true; + } + return descriptor; +}; + +var $getOwnPropertyNames = function getOwnPropertyNames(O) { + var names = nativeGetOwnPropertyNames(toIndexedObject(O)); + var result = []; + $forEach(names, function (key) { + if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key)) push(result, key); + }); + return result; +}; + +var $getOwnPropertySymbols = function (O) { + var IS_OBJECT_PROTOTYPE = O === ObjectPrototype; + var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O)); + var result = []; + $forEach(names, function (key) { + if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) { + push(result, AllSymbols[key]); + } + }); + return result; +}; + +// `Symbol` constructor +// https://tc39.es/ecma262/#sec-symbol-constructor +if (!NATIVE_SYMBOL) { + $Symbol = function Symbol() { + if (isPrototypeOf(SymbolPrototype, this)) throw new TypeError('Symbol is not a constructor'); + var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]); + var tag = uid(description); + var setter = function (value) { + var $this = this === undefined ? globalThis : this; + if ($this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value); + if (hasOwn($this, HIDDEN) && hasOwn($this[HIDDEN], tag)) $this[HIDDEN][tag] = false; + var descriptor = createPropertyDescriptor(1, value); + try { + setSymbolDescriptor($this, tag, descriptor); + } catch (error) { + if (!(error instanceof RangeError)) throw error; + fallbackDefineProperty($this, tag, descriptor); + } + }; + if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter }); + return wrap(tag, description); + }; + + SymbolPrototype = $Symbol[PROTOTYPE]; + + defineBuiltIn(SymbolPrototype, 'toString', function toString() { + return getInternalState(this).tag; + }); + + defineBuiltIn($Symbol, 'withoutSetter', function (description) { + return wrap(uid(description), description); + }); + + propertyIsEnumerableModule.f = $propertyIsEnumerable; + definePropertyModule.f = $defineProperty; + definePropertiesModule.f = $defineProperties; + getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor; + getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames; + getOwnPropertySymbolsModule.f = $getOwnPropertySymbols; + + wrappedWellKnownSymbolModule.f = function (name) { + return wrap(wellKnownSymbol(name), name); + }; + + if (DESCRIPTORS) { + // https://github.com/tc39/proposal-Symbol-description + defineBuiltInAccessor(SymbolPrototype, 'description', { + configurable: true, + get: function description() { + return getInternalState(this).description; + } + }); + if (!IS_PURE) { + defineBuiltIn(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true }); + } + } +} + +$({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, { + Symbol: $Symbol +}); + +$forEach(objectKeys(WellKnownSymbolsStore), function (name) { + defineWellKnownSymbol(name); +}); + +$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, { + useSetter: function () { USE_SETTER = true; }, + useSimple: function () { USE_SETTER = false; } +}); + +$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, { + // `Object.create` method + // https://tc39.es/ecma262/#sec-object.create + create: $create, + // `Object.defineProperty` method + // https://tc39.es/ecma262/#sec-object.defineproperty + defineProperty: $defineProperty, + // `Object.defineProperties` method + // https://tc39.es/ecma262/#sec-object.defineproperties + defineProperties: $defineProperties, + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors + getOwnPropertyDescriptor: $getOwnPropertyDescriptor +}); + +$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, { + // `Object.getOwnPropertyNames` method + // https://tc39.es/ecma262/#sec-object.getownpropertynames + getOwnPropertyNames: $getOwnPropertyNames +}); + +// `Symbol.prototype[@@toPrimitive]` method +// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive +defineSymbolToPrimitive(); + +// `Symbol.prototype[@@toStringTag]` property +// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag +setToStringTag($Symbol, SYMBOL); + +hiddenKeys[HIDDEN] = true; diff --git a/node_modules/core-js/modules/es.symbol.description.js b/node_modules/core-js/modules/es.symbol.description.js new file mode 100644 index 0000000..d07765e --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.description.js @@ -0,0 +1,60 @@ +// `Symbol.prototype.description` getter +// https://tc39.es/ecma262/#sec-symbol.prototype.description +'use strict'; +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this'); +var hasOwn = require('../internals/has-own-property'); +var isCallable = require('../internals/is-callable'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var toString = require('../internals/to-string'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var copyConstructorProperties = require('../internals/copy-constructor-properties'); + +var NativeSymbol = globalThis.Symbol; +var SymbolPrototype = NativeSymbol && NativeSymbol.prototype; + +if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) || + // Safari 12 bug + NativeSymbol().description !== undefined +)) { + var EmptyStringDescriptionStore = {}; + // wrap Symbol constructor for correct work with undefined description + var SymbolWrapper = function Symbol() { + var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]); + var result = isPrototypeOf(SymbolPrototype, this) + // eslint-disable-next-line sonar/inconsistent-function-call -- ok + ? new NativeSymbol(description) + // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)' + : description === undefined ? NativeSymbol() : NativeSymbol(description); + if (description === '') EmptyStringDescriptionStore[result] = true; + return result; + }; + + copyConstructorProperties(SymbolWrapper, NativeSymbol); + SymbolWrapper.prototype = SymbolPrototype; + SymbolPrototype.constructor = SymbolWrapper; + + var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)'; + var thisSymbolValue = uncurryThis(SymbolPrototype.valueOf); + var symbolDescriptiveString = uncurryThis(SymbolPrototype.toString); + var regexp = /^Symbol\((.*)\)[^)]+$/; + var replace = uncurryThis(''.replace); + var stringSlice = uncurryThis(''.slice); + + defineBuiltInAccessor(SymbolPrototype, 'description', { + configurable: true, + get: function description() { + var symbol = thisSymbolValue(this); + if (hasOwn(EmptyStringDescriptionStore, symbol)) return ''; + var string = symbolDescriptiveString(symbol); + var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1'); + return desc === '' ? undefined : desc; + } + }); + + $({ global: true, constructor: true, forced: true }, { + Symbol: SymbolWrapper + }); +} diff --git a/node_modules/core-js/modules/es.symbol.for.js b/node_modules/core-js/modules/es.symbol.for.js new file mode 100644 index 0000000..e056b6b --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.for.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var getBuiltIn = require('../internals/get-built-in'); +var hasOwn = require('../internals/has-own-property'); +var toString = require('../internals/to-string'); +var shared = require('../internals/shared'); +var NATIVE_SYMBOL_REGISTRY = require('../internals/symbol-registry-detection'); + +var StringToSymbolRegistry = shared('string-to-symbol-registry'); +var SymbolToStringRegistry = shared('symbol-to-string-registry'); + +// `Symbol.for` method +// https://tc39.es/ecma262/#sec-symbol.for +$({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, { + 'for': function (key) { + var string = toString(key); + if (hasOwn(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string]; + var symbol = getBuiltIn('Symbol')(string); + StringToSymbolRegistry[string] = symbol; + SymbolToStringRegistry[symbol] = string; + return symbol; + } +}); diff --git a/node_modules/core-js/modules/es.symbol.has-instance.js b/node_modules/core-js/modules/es.symbol.has-instance.js new file mode 100644 index 0000000..a37c666 --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.has-instance.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.hasInstance` well-known symbol +// https://tc39.es/ecma262/#sec-symbol.hasinstance +defineWellKnownSymbol('hasInstance'); diff --git a/node_modules/core-js/modules/es.symbol.is-concat-spreadable.js b/node_modules/core-js/modules/es.symbol.is-concat-spreadable.js new file mode 100644 index 0000000..f449e79 --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.is-concat-spreadable.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.isConcatSpreadable` well-known symbol +// https://tc39.es/ecma262/#sec-symbol.isconcatspreadable +defineWellKnownSymbol('isConcatSpreadable'); diff --git a/node_modules/core-js/modules/es.symbol.iterator.js b/node_modules/core-js/modules/es.symbol.iterator.js new file mode 100644 index 0000000..545ad97 --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.iterator.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.iterator` well-known symbol +// https://tc39.es/ecma262/#sec-symbol.iterator +defineWellKnownSymbol('iterator'); diff --git a/node_modules/core-js/modules/es.symbol.js b/node_modules/core-js/modules/es.symbol.js new file mode 100644 index 0000000..aaef3c1 --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: Remove this module from `core-js@4` since it's split to modules listed below +require('../modules/es.symbol.constructor'); +require('../modules/es.symbol.for'); +require('../modules/es.symbol.key-for'); +require('../modules/es.json.stringify'); +require('../modules/es.object.get-own-property-symbols'); diff --git a/node_modules/core-js/modules/es.symbol.key-for.js b/node_modules/core-js/modules/es.symbol.key-for.js new file mode 100644 index 0000000..c7f4d25 --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.key-for.js @@ -0,0 +1,18 @@ +'use strict'; +var $ = require('../internals/export'); +var hasOwn = require('../internals/has-own-property'); +var isSymbol = require('../internals/is-symbol'); +var tryToString = require('../internals/try-to-string'); +var shared = require('../internals/shared'); +var NATIVE_SYMBOL_REGISTRY = require('../internals/symbol-registry-detection'); + +var SymbolToStringRegistry = shared('symbol-to-string-registry'); + +// `Symbol.keyFor` method +// https://tc39.es/ecma262/#sec-symbol.keyfor +$({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, { + keyFor: function keyFor(sym) { + if (!isSymbol(sym)) throw new TypeError(tryToString(sym) + ' is not a symbol'); + if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym]; + } +}); diff --git a/node_modules/core-js/modules/es.symbol.match-all.js b/node_modules/core-js/modules/es.symbol.match-all.js new file mode 100644 index 0000000..19a3bd0 --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.match-all.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.matchAll` well-known symbol +// https://tc39.es/ecma262/#sec-symbol.matchall +defineWellKnownSymbol('matchAll'); diff --git a/node_modules/core-js/modules/es.symbol.match.js b/node_modules/core-js/modules/es.symbol.match.js new file mode 100644 index 0000000..4947d02 --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.match.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.match` well-known symbol +// https://tc39.es/ecma262/#sec-symbol.match +defineWellKnownSymbol('match'); diff --git a/node_modules/core-js/modules/es.symbol.replace.js b/node_modules/core-js/modules/es.symbol.replace.js new file mode 100644 index 0000000..7306209 --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.replace.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.replace` well-known symbol +// https://tc39.es/ecma262/#sec-symbol.replace +defineWellKnownSymbol('replace'); diff --git a/node_modules/core-js/modules/es.symbol.search.js b/node_modules/core-js/modules/es.symbol.search.js new file mode 100644 index 0000000..61bdf8a --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.search.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.search` well-known symbol +// https://tc39.es/ecma262/#sec-symbol.search +defineWellKnownSymbol('search'); diff --git a/node_modules/core-js/modules/es.symbol.species.js b/node_modules/core-js/modules/es.symbol.species.js new file mode 100644 index 0000000..67b995c --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.species.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.species` well-known symbol +// https://tc39.es/ecma262/#sec-symbol.species +defineWellKnownSymbol('species'); diff --git a/node_modules/core-js/modules/es.symbol.split.js b/node_modules/core-js/modules/es.symbol.split.js new file mode 100644 index 0000000..926e02c --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.split.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.split` well-known symbol +// https://tc39.es/ecma262/#sec-symbol.split +defineWellKnownSymbol('split'); diff --git a/node_modules/core-js/modules/es.symbol.to-primitive.js b/node_modules/core-js/modules/es.symbol.to-primitive.js new file mode 100644 index 0000000..c263093 --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.to-primitive.js @@ -0,0 +1,11 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); +var defineSymbolToPrimitive = require('../internals/symbol-define-to-primitive'); + +// `Symbol.toPrimitive` well-known symbol +// https://tc39.es/ecma262/#sec-symbol.toprimitive +defineWellKnownSymbol('toPrimitive'); + +// `Symbol.prototype[@@toPrimitive]` method +// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive +defineSymbolToPrimitive(); diff --git a/node_modules/core-js/modules/es.symbol.to-string-tag.js b/node_modules/core-js/modules/es.symbol.to-string-tag.js new file mode 100644 index 0000000..4a09f11 --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.to-string-tag.js @@ -0,0 +1,12 @@ +'use strict'; +var getBuiltIn = require('../internals/get-built-in'); +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); +var setToStringTag = require('../internals/set-to-string-tag'); + +// `Symbol.toStringTag` well-known symbol +// https://tc39.es/ecma262/#sec-symbol.tostringtag +defineWellKnownSymbol('toStringTag'); + +// `Symbol.prototype[@@toStringTag]` property +// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag +setToStringTag(getBuiltIn('Symbol'), 'Symbol'); diff --git a/node_modules/core-js/modules/es.symbol.unscopables.js b/node_modules/core-js/modules/es.symbol.unscopables.js new file mode 100644 index 0000000..e5df05e --- /dev/null +++ b/node_modules/core-js/modules/es.symbol.unscopables.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.unscopables` well-known symbol +// https://tc39.es/ecma262/#sec-symbol.unscopables +defineWellKnownSymbol('unscopables'); diff --git a/node_modules/core-js/modules/es.typed-array.at.js b/node_modules/core-js/modules/es.typed-array.at.js new file mode 100644 index 0000000..c2c2208 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.at.js @@ -0,0 +1,17 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.at` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.at +exportTypedArrayMethod('at', function at(index) { + var O = aTypedArray(this); + var len = lengthOfArrayLike(O); + var relativeIndex = toIntegerOrInfinity(index); + var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex; + return (k < 0 || k >= len) ? undefined : O[k]; +}); diff --git a/node_modules/core-js/modules/es.typed-array.copy-within.js b/node_modules/core-js/modules/es.typed-array.copy-within.js new file mode 100644 index 0000000..ec0baff --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.copy-within.js @@ -0,0 +1,14 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $ArrayCopyWithin = require('../internals/array-copy-within'); + +var u$ArrayCopyWithin = uncurryThis($ArrayCopyWithin); +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.copyWithin` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.copywithin +exportTypedArrayMethod('copyWithin', function copyWithin(target, start /* , end */) { + return u$ArrayCopyWithin(aTypedArray(this), target, start, arguments.length > 2 ? arguments[2] : undefined); +}); diff --git a/node_modules/core-js/modules/es.typed-array.every.js b/node_modules/core-js/modules/es.typed-array.every.js new file mode 100644 index 0000000..625a0c5 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.every.js @@ -0,0 +1,12 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $every = require('../internals/array-iteration').every; + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.every` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.every +exportTypedArrayMethod('every', function every(callbackfn /* , thisArg */) { + return $every(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); +}); diff --git a/node_modules/core-js/modules/es.typed-array.fill.js b/node_modules/core-js/modules/es.typed-array.fill.js new file mode 100644 index 0000000..3fa8a87 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.fill.js @@ -0,0 +1,29 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $fill = require('../internals/array-fill'); +var toBigInt = require('../internals/to-big-int'); +var classof = require('../internals/classof'); +var call = require('../internals/function-call'); +var uncurryThis = require('../internals/function-uncurry-this'); +var fails = require('../internals/fails'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var slice = uncurryThis(''.slice); + +// V8 ~ Chrome < 59, Safari < 14.1, FF < 55, Edge <=18 +var CONVERSION_BUG = fails(function () { + var count = 0; + // eslint-disable-next-line es/no-typed-arrays -- safe + new Int8Array(2).fill({ valueOf: function () { return count++; } }); + return count !== 1; +}); + +// `%TypedArray%.prototype.fill` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.fill +exportTypedArrayMethod('fill', function fill(value /* , start, end */) { + var length = arguments.length; + aTypedArray(this); + var actualValue = slice(classof(this), 0, 3) === 'Big' ? toBigInt(value) : +value; + return call($fill, this, actualValue, length > 1 ? arguments[1] : undefined, length > 2 ? arguments[2] : undefined); +}, CONVERSION_BUG); diff --git a/node_modules/core-js/modules/es.typed-array.filter.js b/node_modules/core-js/modules/es.typed-array.filter.js new file mode 100644 index 0000000..9d22eef --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.filter.js @@ -0,0 +1,14 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $filter = require('../internals/array-iteration').filter; +var fromSpeciesAndList = require('../internals/typed-array-from-species-and-list'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.filter` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.filter +exportTypedArrayMethod('filter', function filter(callbackfn /* , thisArg */) { + var list = $filter(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); + return fromSpeciesAndList(this, list); +}); diff --git a/node_modules/core-js/modules/es.typed-array.find-index.js b/node_modules/core-js/modules/es.typed-array.find-index.js new file mode 100644 index 0000000..b126656 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.find-index.js @@ -0,0 +1,12 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $findIndex = require('../internals/array-iteration').findIndex; + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.findIndex` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findindex +exportTypedArrayMethod('findIndex', function findIndex(predicate /* , thisArg */) { + return $findIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined); +}); diff --git a/node_modules/core-js/modules/es.typed-array.find-last-index.js b/node_modules/core-js/modules/es.typed-array.find-last-index.js new file mode 100644 index 0000000..5e8b501 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.find-last-index.js @@ -0,0 +1,12 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $findLastIndex = require('../internals/array-iteration-from-last').findLastIndex; + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.findLastIndex` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlastindex +exportTypedArrayMethod('findLastIndex', function findLastIndex(predicate /* , thisArg */) { + return $findLastIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined); +}); diff --git a/node_modules/core-js/modules/es.typed-array.find-last.js b/node_modules/core-js/modules/es.typed-array.find-last.js new file mode 100644 index 0000000..2b124cf --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.find-last.js @@ -0,0 +1,12 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $findLast = require('../internals/array-iteration-from-last').findLast; + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.findLast` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlast +exportTypedArrayMethod('findLast', function findLast(predicate /* , thisArg */) { + return $findLast(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined); +}); diff --git a/node_modules/core-js/modules/es.typed-array.find.js b/node_modules/core-js/modules/es.typed-array.find.js new file mode 100644 index 0000000..db7ee3f --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.find.js @@ -0,0 +1,12 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $find = require('../internals/array-iteration').find; + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.find` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.find +exportTypedArrayMethod('find', function find(predicate /* , thisArg */) { + return $find(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined); +}); diff --git a/node_modules/core-js/modules/es.typed-array.float32-array.js b/node_modules/core-js/modules/es.typed-array.float32-array.js new file mode 100644 index 0000000..95b8481 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.float32-array.js @@ -0,0 +1,10 @@ +'use strict'; +var createTypedArrayConstructor = require('../internals/typed-array-constructor'); + +// `Float32Array` constructor +// https://tc39.es/ecma262/#sec-typedarray-objects +createTypedArrayConstructor('Float32', function (init) { + return function Float32Array(data, byteOffset, length) { + return init(this, data, byteOffset, length); + }; +}); diff --git a/node_modules/core-js/modules/es.typed-array.float64-array.js b/node_modules/core-js/modules/es.typed-array.float64-array.js new file mode 100644 index 0000000..da82da2 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.float64-array.js @@ -0,0 +1,10 @@ +'use strict'; +var createTypedArrayConstructor = require('../internals/typed-array-constructor'); + +// `Float64Array` constructor +// https://tc39.es/ecma262/#sec-typedarray-objects +createTypedArrayConstructor('Float64', function (init) { + return function Float64Array(data, byteOffset, length) { + return init(this, data, byteOffset, length); + }; +}); diff --git a/node_modules/core-js/modules/es.typed-array.for-each.js b/node_modules/core-js/modules/es.typed-array.for-each.js new file mode 100644 index 0000000..bc2f28f --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.for-each.js @@ -0,0 +1,12 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $forEach = require('../internals/array-iteration').forEach; + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.forEach` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.foreach +exportTypedArrayMethod('forEach', function forEach(callbackfn /* , thisArg */) { + $forEach(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); +}); diff --git a/node_modules/core-js/modules/es.typed-array.from.js b/node_modules/core-js/modules/es.typed-array.from.js new file mode 100644 index 0000000..79ad0f1 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.from.js @@ -0,0 +1,8 @@ +'use strict'; +var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers'); +var exportTypedArrayStaticMethod = require('../internals/array-buffer-view-core').exportTypedArrayStaticMethod; +var typedArrayFrom = require('../internals/typed-array-from'); + +// `%TypedArray%.from` method +// https://tc39.es/ecma262/#sec-%typedarray%.from +exportTypedArrayStaticMethod('from', typedArrayFrom, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS); diff --git a/node_modules/core-js/modules/es.typed-array.includes.js b/node_modules/core-js/modules/es.typed-array.includes.js new file mode 100644 index 0000000..b465840 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.includes.js @@ -0,0 +1,12 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $includes = require('../internals/array-includes').includes; + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.includes` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.includes +exportTypedArrayMethod('includes', function includes(searchElement /* , fromIndex */) { + return $includes(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); +}); diff --git a/node_modules/core-js/modules/es.typed-array.index-of.js b/node_modules/core-js/modules/es.typed-array.index-of.js new file mode 100644 index 0000000..b369f5c --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.index-of.js @@ -0,0 +1,12 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $indexOf = require('../internals/array-includes').indexOf; + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.indexOf` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.indexof +exportTypedArrayMethod('indexOf', function indexOf(searchElement /* , fromIndex */) { + return $indexOf(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); +}); diff --git a/node_modules/core-js/modules/es.typed-array.int16-array.js b/node_modules/core-js/modules/es.typed-array.int16-array.js new file mode 100644 index 0000000..fe3da1d --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.int16-array.js @@ -0,0 +1,10 @@ +'use strict'; +var createTypedArrayConstructor = require('../internals/typed-array-constructor'); + +// `Int16Array` constructor +// https://tc39.es/ecma262/#sec-typedarray-objects +createTypedArrayConstructor('Int16', function (init) { + return function Int16Array(data, byteOffset, length) { + return init(this, data, byteOffset, length); + }; +}); diff --git a/node_modules/core-js/modules/es.typed-array.int32-array.js b/node_modules/core-js/modules/es.typed-array.int32-array.js new file mode 100644 index 0000000..38afed5 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.int32-array.js @@ -0,0 +1,10 @@ +'use strict'; +var createTypedArrayConstructor = require('../internals/typed-array-constructor'); + +// `Int32Array` constructor +// https://tc39.es/ecma262/#sec-typedarray-objects +createTypedArrayConstructor('Int32', function (init) { + return function Int32Array(data, byteOffset, length) { + return init(this, data, byteOffset, length); + }; +}); diff --git a/node_modules/core-js/modules/es.typed-array.int8-array.js b/node_modules/core-js/modules/es.typed-array.int8-array.js new file mode 100644 index 0000000..dda9bd4 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.int8-array.js @@ -0,0 +1,10 @@ +'use strict'; +var createTypedArrayConstructor = require('../internals/typed-array-constructor'); + +// `Int8Array` constructor +// https://tc39.es/ecma262/#sec-typedarray-objects +createTypedArrayConstructor('Int8', function (init) { + return function Int8Array(data, byteOffset, length) { + return init(this, data, byteOffset, length); + }; +}); diff --git a/node_modules/core-js/modules/es.typed-array.iterator.js b/node_modules/core-js/modules/es.typed-array.iterator.js new file mode 100644 index 0000000..55bdbbc --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.iterator.js @@ -0,0 +1,46 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var fails = require('../internals/fails'); +var uncurryThis = require('../internals/function-uncurry-this'); +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var ArrayIterators = require('../modules/es.array.iterator'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var ITERATOR = wellKnownSymbol('iterator'); +var Uint8Array = globalThis.Uint8Array; +var arrayValues = uncurryThis(ArrayIterators.values); +var arrayKeys = uncurryThis(ArrayIterators.keys); +var arrayEntries = uncurryThis(ArrayIterators.entries); +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var TypedArrayPrototype = Uint8Array && Uint8Array.prototype; + +var GENERIC = !fails(function () { + TypedArrayPrototype[ITERATOR].call([1]); +}); + +var ITERATOR_IS_VALUES = !!TypedArrayPrototype + && TypedArrayPrototype.values + && TypedArrayPrototype[ITERATOR] === TypedArrayPrototype.values + && TypedArrayPrototype.values.name === 'values'; + +var typedArrayValues = function values() { + return arrayValues(aTypedArray(this)); +}; + +// `%TypedArray%.prototype.entries` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.entries +exportTypedArrayMethod('entries', function entries() { + return arrayEntries(aTypedArray(this)); +}, GENERIC); +// `%TypedArray%.prototype.keys` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.keys +exportTypedArrayMethod('keys', function keys() { + return arrayKeys(aTypedArray(this)); +}, GENERIC); +// `%TypedArray%.prototype.values` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.values +exportTypedArrayMethod('values', typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: 'values' }); +// `%TypedArray%.prototype[@@iterator]` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype-@@iterator +exportTypedArrayMethod(ITERATOR, typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: 'values' }); diff --git a/node_modules/core-js/modules/es.typed-array.join.js b/node_modules/core-js/modules/es.typed-array.join.js new file mode 100644 index 0000000..e8e7720 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.join.js @@ -0,0 +1,13 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var uncurryThis = require('../internals/function-uncurry-this'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var $join = uncurryThis([].join); + +// `%TypedArray%.prototype.join` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.join +exportTypedArrayMethod('join', function join(separator) { + return $join(aTypedArray(this), separator); +}); diff --git a/node_modules/core-js/modules/es.typed-array.last-index-of.js b/node_modules/core-js/modules/es.typed-array.last-index-of.js new file mode 100644 index 0000000..89c2fc2 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.last-index-of.js @@ -0,0 +1,14 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var apply = require('../internals/function-apply'); +var $lastIndexOf = require('../internals/array-last-index-of'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.lastIndexOf` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.lastindexof +exportTypedArrayMethod('lastIndexOf', function lastIndexOf(searchElement /* , fromIndex */) { + var length = arguments.length; + return apply($lastIndexOf, aTypedArray(this), length > 1 ? [searchElement, arguments[1]] : [searchElement]); +}); diff --git a/node_modules/core-js/modules/es.typed-array.map.js b/node_modules/core-js/modules/es.typed-array.map.js new file mode 100644 index 0000000..92dd062 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.map.js @@ -0,0 +1,15 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $map = require('../internals/array-iteration').map; +var typedArraySpeciesConstructor = require('../internals/typed-array-species-constructor'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.map` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.map +exportTypedArrayMethod('map', function map(mapfn /* , thisArg */) { + return $map(aTypedArray(this), mapfn, arguments.length > 1 ? arguments[1] : undefined, function (O, length) { + return new (typedArraySpeciesConstructor(O))(length); + }); +}); diff --git a/node_modules/core-js/modules/es.typed-array.of.js b/node_modules/core-js/modules/es.typed-array.of.js new file mode 100644 index 0000000..2c9064b --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.of.js @@ -0,0 +1,16 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers'); + +var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor; +var exportTypedArrayStaticMethod = ArrayBufferViewCore.exportTypedArrayStaticMethod; + +// `%TypedArray%.of` method +// https://tc39.es/ecma262/#sec-%typedarray%.of +exportTypedArrayStaticMethod('of', function of(/* ...items */) { + var index = 0; + var length = arguments.length; + var result = new (aTypedArrayConstructor(this))(length); + while (length > index) result[index] = arguments[index++]; + return result; +}, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS); diff --git a/node_modules/core-js/modules/es.typed-array.reduce-right.js b/node_modules/core-js/modules/es.typed-array.reduce-right.js new file mode 100644 index 0000000..5df1ca1 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.reduce-right.js @@ -0,0 +1,13 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $reduceRight = require('../internals/array-reduce').right; + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.reduceRight` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduceright +exportTypedArrayMethod('reduceRight', function reduceRight(callbackfn /* , initialValue */) { + var length = arguments.length; + return $reduceRight(aTypedArray(this), callbackfn, length, length > 1 ? arguments[1] : undefined); +}); diff --git a/node_modules/core-js/modules/es.typed-array.reduce.js b/node_modules/core-js/modules/es.typed-array.reduce.js new file mode 100644 index 0000000..4a71707 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.reduce.js @@ -0,0 +1,13 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $reduce = require('../internals/array-reduce').left; + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.reduce` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduce +exportTypedArrayMethod('reduce', function reduce(callbackfn /* , initialValue */) { + var length = arguments.length; + return $reduce(aTypedArray(this), callbackfn, length, length > 1 ? arguments[1] : undefined); +}); diff --git a/node_modules/core-js/modules/es.typed-array.reverse.js b/node_modules/core-js/modules/es.typed-array.reverse.js new file mode 100644 index 0000000..4a5a870 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.reverse.js @@ -0,0 +1,21 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var floor = Math.floor; + +// `%TypedArray%.prototype.reverse` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.reverse +exportTypedArrayMethod('reverse', function reverse() { + var that = this; + var length = aTypedArray(that).length; + var middle = floor(length / 2); + var index = 0; + var value; + while (index < middle) { + value = that[index]; + that[index++] = that[--length]; + that[length] = value; + } return that; +}); diff --git a/node_modules/core-js/modules/es.typed-array.set.js b/node_modules/core-js/modules/es.typed-array.set.js new file mode 100644 index 0000000..8248ce2 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.set.js @@ -0,0 +1,44 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var call = require('../internals/function-call'); +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var toOffset = require('../internals/to-offset'); +var toIndexedObject = require('../internals/to-object'); +var fails = require('../internals/fails'); + +var RangeError = globalThis.RangeError; +var Int8Array = globalThis.Int8Array; +var Int8ArrayPrototype = Int8Array && Int8Array.prototype; +var $set = Int8ArrayPrototype && Int8ArrayPrototype.set; +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails(function () { + // eslint-disable-next-line es/no-typed-arrays -- required for testing + var array = new Uint8ClampedArray(2); + call($set, array, { length: 1, 0: 3 }, 1); + return array[1] !== 3; +}); + +// https://bugs.chromium.org/p/v8/issues/detail?id=11294 and other +var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS && fails(function () { + var array = new Int8Array(2); + array.set(1); + array.set('2', 1); + return array[0] !== 0 || array[1] !== 2; +}); + +// `%TypedArray%.prototype.set` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.set +exportTypedArrayMethod('set', function set(arrayLike /* , offset */) { + aTypedArray(this); + var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1); + var src = toIndexedObject(arrayLike); + if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS) return call($set, this, src, offset); + var length = this.length; + var len = lengthOfArrayLike(src); + var index = 0; + if (len + offset > length) throw new RangeError('Wrong length'); + while (index < len) this[offset + index] = src[index++]; +}, !WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG); diff --git a/node_modules/core-js/modules/es.typed-array.slice.js b/node_modules/core-js/modules/es.typed-array.slice.js new file mode 100644 index 0000000..33dc2b9 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.slice.js @@ -0,0 +1,25 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var typedArraySpeciesConstructor = require('../internals/typed-array-species-constructor'); +var fails = require('../internals/fails'); +var arraySlice = require('../internals/array-slice'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +var FORCED = fails(function () { + // eslint-disable-next-line es/no-typed-arrays -- required for testing + new Int8Array(1).slice(); +}); + +// `%TypedArray%.prototype.slice` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.slice +exportTypedArrayMethod('slice', function slice(start, end) { + var list = arraySlice(aTypedArray(this), start, end); + var C = typedArraySpeciesConstructor(this); + var index = 0; + var length = list.length; + var result = new C(length); + while (length > index) result[index] = list[index++]; + return result; +}, FORCED); diff --git a/node_modules/core-js/modules/es.typed-array.some.js b/node_modules/core-js/modules/es.typed-array.some.js new file mode 100644 index 0000000..214115b --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.some.js @@ -0,0 +1,12 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $some = require('../internals/array-iteration').some; + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.some` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.some +exportTypedArrayMethod('some', function some(callbackfn /* , thisArg */) { + return $some(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); +}); diff --git a/node_modules/core-js/modules/es.typed-array.sort.js b/node_modules/core-js/modules/es.typed-array.sort.js new file mode 100644 index 0000000..5fddfb1 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.sort.js @@ -0,0 +1,70 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); +var fails = require('../internals/fails'); +var aCallable = require('../internals/a-callable'); +var internalSort = require('../internals/array-sort'); +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var FF = require('../internals/environment-ff-version'); +var IE_OR_EDGE = require('../internals/environment-is-ie-or-edge'); +var V8 = require('../internals/environment-v8-version'); +var WEBKIT = require('../internals/environment-webkit-version'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var Uint16Array = globalThis.Uint16Array; +var nativeSort = Uint16Array && uncurryThis(Uint16Array.prototype.sort); + +// WebKit +var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort && !(fails(function () { + nativeSort(new Uint16Array(2), null); +}) && fails(function () { + nativeSort(new Uint16Array(2), {}); +})); + +var STABLE_SORT = !!nativeSort && !fails(function () { + // feature detection can be too slow, so check engines versions + if (V8) return V8 < 74; + if (FF) return FF < 67; + if (IE_OR_EDGE) return true; + if (WEBKIT) return WEBKIT < 602; + + var array = new Uint16Array(516); + var expected = Array(516); + var index, mod; + + for (index = 0; index < 516; index++) { + mod = index % 4; + array[index] = 515 - index; + expected[index] = index - 2 * mod + 3; + } + + nativeSort(array, function (a, b) { + return (a / 4 | 0) - (b / 4 | 0); + }); + + for (index = 0; index < 516; index++) { + if (array[index] !== expected[index]) return true; + } +}); + +var getSortCompare = function (comparefn) { + return function (x, y) { + if (comparefn !== undefined) return +comparefn(x, y) || 0; + // eslint-disable-next-line no-self-compare -- NaN check + if (y !== y) return -1; + // eslint-disable-next-line no-self-compare -- NaN check + if (x !== x) return 1; + if (x === 0 && y === 0) return 1 / x > 0 && 1 / y < 0 ? 1 : -1; + return x > y; + }; +}; + +// `%TypedArray%.prototype.sort` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort +exportTypedArrayMethod('sort', function sort(comparefn) { + if (comparefn !== undefined) aCallable(comparefn); + if (STABLE_SORT) return nativeSort(this, comparefn); + + return internalSort(aTypedArray(this), getSortCompare(comparefn)); +}, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS); diff --git a/node_modules/core-js/modules/es.typed-array.subarray.js b/node_modules/core-js/modules/es.typed-array.subarray.js new file mode 100644 index 0000000..f2e1ae5 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.subarray.js @@ -0,0 +1,22 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var toLength = require('../internals/to-length'); +var toAbsoluteIndex = require('../internals/to-absolute-index'); +var typedArraySpeciesConstructor = require('../internals/typed-array-species-constructor'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.subarray` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.subarray +exportTypedArrayMethod('subarray', function subarray(begin, end) { + var O = aTypedArray(this); + var length = O.length; + var beginIndex = toAbsoluteIndex(begin, length); + var C = typedArraySpeciesConstructor(O); + return new C( + O.buffer, + O.byteOffset + beginIndex * O.BYTES_PER_ELEMENT, + toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - beginIndex) + ); +}); diff --git a/node_modules/core-js/modules/es.typed-array.to-locale-string.js b/node_modules/core-js/modules/es.typed-array.to-locale-string.js new file mode 100644 index 0000000..714e50f --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.to-locale-string.js @@ -0,0 +1,32 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var apply = require('../internals/function-apply'); +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var fails = require('../internals/fails'); +var arraySlice = require('../internals/array-slice'); + +var Int8Array = globalThis.Int8Array; +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var $toLocaleString = [].toLocaleString; + +// iOS Safari 6.x fails here +var TO_LOCALE_STRING_BUG = !!Int8Array && fails(function () { + $toLocaleString.call(new Int8Array(1)); +}); + +var FORCED = fails(function () { + return [1, 2].toLocaleString() !== new Int8Array([1, 2]).toLocaleString(); +}) || !fails(function () { + Int8Array.prototype.toLocaleString.call([1, 2]); +}); + +// `%TypedArray%.prototype.toLocaleString` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring +exportTypedArrayMethod('toLocaleString', function toLocaleString() { + return apply( + $toLocaleString, + TO_LOCALE_STRING_BUG ? arraySlice(aTypedArray(this)) : aTypedArray(this), + arraySlice(arguments) + ); +}, FORCED); diff --git a/node_modules/core-js/modules/es.typed-array.to-reversed.js b/node_modules/core-js/modules/es.typed-array.to-reversed.js new file mode 100644 index 0000000..500d44f --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.to-reversed.js @@ -0,0 +1,13 @@ +'use strict'; +var arrayToReversed = require('../internals/array-to-reversed'); +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; + +// `%TypedArray%.prototype.toReversed` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.toreversed +exportTypedArrayMethod('toReversed', function toReversed() { + return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this)); +}); diff --git a/node_modules/core-js/modules/es.typed-array.to-sorted.js b/node_modules/core-js/modules/es.typed-array.to-sorted.js new file mode 100644 index 0000000..09b9afd --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.to-sorted.js @@ -0,0 +1,19 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var uncurryThis = require('../internals/function-uncurry-this'); +var aCallable = require('../internals/a-callable'); +var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var sort = uncurryThis(ArrayBufferViewCore.TypedArrayPrototype.sort); + +// `%TypedArray%.prototype.toSorted` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tosorted +exportTypedArrayMethod('toSorted', function toSorted(compareFn) { + if (compareFn !== undefined) aCallable(compareFn); + var O = aTypedArray(this); + var A = arrayFromConstructorAndList(getTypedArrayConstructor(O), O); + return sort(A, compareFn); +}); diff --git a/node_modules/core-js/modules/es.typed-array.to-string.js b/node_modules/core-js/modules/es.typed-array.to-string.js new file mode 100644 index 0000000..c7b9459 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.to-string.js @@ -0,0 +1,22 @@ +'use strict'; +var exportTypedArrayMethod = require('../internals/array-buffer-view-core').exportTypedArrayMethod; +var fails = require('../internals/fails'); +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this'); + +var Uint8Array = globalThis.Uint8Array; +var Uint8ArrayPrototype = Uint8Array && Uint8Array.prototype || {}; +var arrayToString = [].toString; +var join = uncurryThis([].join); + +if (fails(function () { arrayToString.call({}); })) { + arrayToString = function toString() { + return join(this); + }; +} + +var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString !== arrayToString; + +// `%TypedArray%.prototype.toString` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tostring +exportTypedArrayMethod('toString', arrayToString, IS_NOT_ARRAY_METHOD); diff --git a/node_modules/core-js/modules/es.typed-array.uint16-array.js b/node_modules/core-js/modules/es.typed-array.uint16-array.js new file mode 100644 index 0000000..81750e1 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.uint16-array.js @@ -0,0 +1,10 @@ +'use strict'; +var createTypedArrayConstructor = require('../internals/typed-array-constructor'); + +// `Uint16Array` constructor +// https://tc39.es/ecma262/#sec-typedarray-objects +createTypedArrayConstructor('Uint16', function (init) { + return function Uint16Array(data, byteOffset, length) { + return init(this, data, byteOffset, length); + }; +}); diff --git a/node_modules/core-js/modules/es.typed-array.uint32-array.js b/node_modules/core-js/modules/es.typed-array.uint32-array.js new file mode 100644 index 0000000..eb3e9d1 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.uint32-array.js @@ -0,0 +1,10 @@ +'use strict'; +var createTypedArrayConstructor = require('../internals/typed-array-constructor'); + +// `Uint32Array` constructor +// https://tc39.es/ecma262/#sec-typedarray-objects +createTypedArrayConstructor('Uint32', function (init) { + return function Uint32Array(data, byteOffset, length) { + return init(this, data, byteOffset, length); + }; +}); diff --git a/node_modules/core-js/modules/es.typed-array.uint8-array.js b/node_modules/core-js/modules/es.typed-array.uint8-array.js new file mode 100644 index 0000000..24a1830 --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.uint8-array.js @@ -0,0 +1,10 @@ +'use strict'; +var createTypedArrayConstructor = require('../internals/typed-array-constructor'); + +// `Uint8Array` constructor +// https://tc39.es/ecma262/#sec-typedarray-objects +createTypedArrayConstructor('Uint8', function (init) { + return function Uint8Array(data, byteOffset, length) { + return init(this, data, byteOffset, length); + }; +}); diff --git a/node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js b/node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js new file mode 100644 index 0000000..46103ce --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js @@ -0,0 +1,10 @@ +'use strict'; +var createTypedArrayConstructor = require('../internals/typed-array-constructor'); + +// `Uint8ClampedArray` constructor +// https://tc39.es/ecma262/#sec-typedarray-objects +createTypedArrayConstructor('Uint8', function (init) { + return function Uint8ClampedArray(data, byteOffset, length) { + return init(this, data, byteOffset, length); + }; +}, true); diff --git a/node_modules/core-js/modules/es.typed-array.with.js b/node_modules/core-js/modules/es.typed-array.with.js new file mode 100644 index 0000000..f9e83cd --- /dev/null +++ b/node_modules/core-js/modules/es.typed-array.with.js @@ -0,0 +1,30 @@ +'use strict'; +var arrayWith = require('../internals/array-with'); +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var isBigIntArray = require('../internals/is-big-int-array'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var toBigInt = require('../internals/to-big-int'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +var PROPER_ORDER = !!function () { + try { + // eslint-disable-next-line no-throw-literal, es/no-typed-arrays, es/no-array-prototype-with -- required for testing + new Int8Array(1)['with'](2, { valueOf: function () { throw 8; } }); + } catch (error) { + // some early implementations, like WebKit, does not follow the final semantic + // https://github.com/tc39/proposal-change-array-by-copy/pull/86 + return error === 8; + } +}(); + +// `%TypedArray%.prototype.with` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.with +exportTypedArrayMethod('with', { 'with': function (index, value) { + var O = aTypedArray(this); + var relativeIndex = toIntegerOrInfinity(index); + var actualValue = isBigIntArray(O) ? toBigInt(value) : +value; + return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue); +} }['with'], !PROPER_ORDER); diff --git a/node_modules/core-js/modules/es.unescape.js b/node_modules/core-js/modules/es.unescape.js new file mode 100644 index 0000000..c23b68c --- /dev/null +++ b/node_modules/core-js/modules/es.unescape.js @@ -0,0 +1,45 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toString = require('../internals/to-string'); + +var fromCharCode = String.fromCharCode; +var charAt = uncurryThis(''.charAt); +var exec = uncurryThis(/./.exec); +var stringSlice = uncurryThis(''.slice); + +var hex2 = /^[\da-f]{2}$/i; +var hex4 = /^[\da-f]{4}$/i; + +// `unescape` method +// https://tc39.es/ecma262/#sec-unescape-string +$({ global: true }, { + unescape: function unescape(string) { + var str = toString(string); + var result = ''; + var length = str.length; + var index = 0; + var chr, part; + while (index < length) { + chr = charAt(str, index++); + if (chr === '%') { + if (charAt(str, index) === 'u') { + part = stringSlice(str, index + 1, index + 5); + if (exec(hex4, part)) { + result += fromCharCode(parseInt(part, 16)); + index += 5; + continue; + } + } else { + part = stringSlice(str, index, index + 2); + if (exec(hex2, part)) { + result += fromCharCode(parseInt(part, 16)); + index += 2; + continue; + } + } + } + result += chr; + } return result; + } +}); diff --git a/node_modules/core-js/modules/es.weak-map.constructor.js b/node_modules/core-js/modules/es.weak-map.constructor.js new file mode 100644 index 0000000..d5105e4 --- /dev/null +++ b/node_modules/core-js/modules/es.weak-map.constructor.js @@ -0,0 +1,106 @@ +'use strict'; +var FREEZING = require('../internals/freezing'); +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this'); +var defineBuiltIns = require('../internals/define-built-ins'); +var InternalMetadataModule = require('../internals/internal-metadata'); +var collection = require('../internals/collection'); +var collectionWeak = require('../internals/collection-weak'); +var isObject = require('../internals/is-object'); +var enforceInternalState = require('../internals/internal-state').enforce; +var fails = require('../internals/fails'); +var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection'); + +var $Object = Object; +// eslint-disable-next-line es/no-array-isarray -- safe +var isArray = Array.isArray; +// eslint-disable-next-line es/no-object-isextensible -- safe +var isExtensible = $Object.isExtensible; +// eslint-disable-next-line es/no-object-isfrozen -- safe +var isFrozen = $Object.isFrozen; +// eslint-disable-next-line es/no-object-issealed -- safe +var isSealed = $Object.isSealed; +// eslint-disable-next-line es/no-object-freeze -- safe +var freeze = $Object.freeze; +// eslint-disable-next-line es/no-object-seal -- safe +var seal = $Object.seal; + +var IS_IE11 = !globalThis.ActiveXObject && 'ActiveXObject' in globalThis; +var InternalWeakMap; + +var wrapper = function (init) { + return function WeakMap() { + return init(this, arguments.length ? arguments[0] : undefined); + }; +}; + +// `WeakMap` constructor +// https://tc39.es/ecma262/#sec-weakmap-constructor +var $WeakMap = collection('WeakMap', wrapper, collectionWeak); +var WeakMapPrototype = $WeakMap.prototype; +var nativeSet = uncurryThis(WeakMapPrototype.set); + +// Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them +var hasMSEdgeFreezingBug = function () { + return FREEZING && fails(function () { + var frozenArray = freeze([]); + nativeSet(new $WeakMap(), frozenArray, 1); + return !isFrozen(frozenArray); + }); +}; + +// IE11 WeakMap frozen keys fix +// We can't use feature detection because it crash some old IE builds +// https://github.com/zloirock/core-js/issues/485 +if (NATIVE_WEAK_MAP) if (IS_IE11) { + InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true); + InternalMetadataModule.enable(); + var nativeDelete = uncurryThis(WeakMapPrototype['delete']); + var nativeHas = uncurryThis(WeakMapPrototype.has); + var nativeGet = uncurryThis(WeakMapPrototype.get); + defineBuiltIns(WeakMapPrototype, { + 'delete': function (key) { + if (isObject(key) && !isExtensible(key)) { + var state = enforceInternalState(this); + if (!state.frozen) state.frozen = new InternalWeakMap(); + return nativeDelete(this, key) || state.frozen['delete'](key); + } return nativeDelete(this, key); + }, + has: function has(key) { + if (isObject(key) && !isExtensible(key)) { + var state = enforceInternalState(this); + if (!state.frozen) state.frozen = new InternalWeakMap(); + return nativeHas(this, key) || state.frozen.has(key); + } return nativeHas(this, key); + }, + get: function get(key) { + if (isObject(key) && !isExtensible(key)) { + var state = enforceInternalState(this); + if (!state.frozen) state.frozen = new InternalWeakMap(); + return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key); + } return nativeGet(this, key); + }, + set: function set(key, value) { + if (isObject(key) && !isExtensible(key)) { + var state = enforceInternalState(this); + if (!state.frozen) state.frozen = new InternalWeakMap(); + nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value); + } else nativeSet(this, key, value); + return this; + } + }); +// Chakra Edge frozen keys fix +} else if (hasMSEdgeFreezingBug()) { + defineBuiltIns(WeakMapPrototype, { + set: function set(key, value) { + var arrayIntegrityLevel; + if (isArray(key)) { + if (isFrozen(key)) arrayIntegrityLevel = freeze; + else if (isSealed(key)) arrayIntegrityLevel = seal; + } + nativeSet(this, key, value); + if (arrayIntegrityLevel) arrayIntegrityLevel(key); + return this; + } + }); +} diff --git a/node_modules/core-js/modules/es.weak-map.js b/node_modules/core-js/modules/es.weak-map.js new file mode 100644 index 0000000..d59a49f --- /dev/null +++ b/node_modules/core-js/modules/es.weak-map.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove this module from `core-js@4` since it's replaced to module below +require('../modules/es.weak-map.constructor'); diff --git a/node_modules/core-js/modules/es.weak-set.constructor.js b/node_modules/core-js/modules/es.weak-set.constructor.js new file mode 100644 index 0000000..80d9c34 --- /dev/null +++ b/node_modules/core-js/modules/es.weak-set.constructor.js @@ -0,0 +1,9 @@ +'use strict'; +var collection = require('../internals/collection'); +var collectionWeak = require('../internals/collection-weak'); + +// `WeakSet` constructor +// https://tc39.es/ecma262/#sec-weakset-constructor +collection('WeakSet', function (init) { + return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); }; +}, collectionWeak); diff --git a/node_modules/core-js/modules/es.weak-set.js b/node_modules/core-js/modules/es.weak-set.js new file mode 100644 index 0000000..7d3d93e --- /dev/null +++ b/node_modules/core-js/modules/es.weak-set.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove this module from `core-js@4` since it's replaced to module below +require('../modules/es.weak-set.constructor'); diff --git a/node_modules/core-js/modules/esnext.aggregate-error.js b/node_modules/core-js/modules/esnext.aggregate-error.js new file mode 100644 index 0000000..677193d --- /dev/null +++ b/node_modules/core-js/modules/esnext.aggregate-error.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.aggregate-error'); diff --git a/node_modules/core-js/modules/esnext.array-buffer.detached.js b/node_modules/core-js/modules/esnext.array-buffer.detached.js new file mode 100644 index 0000000..c8db3f0 --- /dev/null +++ b/node_modules/core-js/modules/esnext.array-buffer.detached.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.array-buffer.detached'); diff --git a/node_modules/core-js/modules/esnext.array-buffer.transfer-to-fixed-length.js b/node_modules/core-js/modules/esnext.array-buffer.transfer-to-fixed-length.js new file mode 100644 index 0000000..9bc38eb --- /dev/null +++ b/node_modules/core-js/modules/esnext.array-buffer.transfer-to-fixed-length.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.array-buffer.transfer-to-fixed-length'); diff --git a/node_modules/core-js/modules/esnext.array-buffer.transfer.js b/node_modules/core-js/modules/esnext.array-buffer.transfer.js new file mode 100644 index 0000000..f5f939b --- /dev/null +++ b/node_modules/core-js/modules/esnext.array-buffer.transfer.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.array-buffer.transfer'); diff --git a/node_modules/core-js/modules/esnext.array.at.js b/node_modules/core-js/modules/esnext.array.at.js new file mode 100644 index 0000000..13a671b --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.at.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.array.at'); diff --git a/node_modules/core-js/modules/esnext.array.filter-out.js b/node_modules/core-js/modules/esnext.array.filter-out.js new file mode 100644 index 0000000..fc737f2 --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.filter-out.js @@ -0,0 +1,15 @@ +'use strict'; +// TODO: remove from `core-js@4` +var $ = require('../internals/export'); +var $filterReject = require('../internals/array-iteration').filterReject; +var addToUnscopables = require('../internals/add-to-unscopables'); + +// `Array.prototype.filterOut` method +// https://github.com/tc39/proposal-array-filtering +$({ target: 'Array', proto: true, forced: true }, { + filterOut: function filterOut(callbackfn /* , thisArg */) { + return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); + +addToUnscopables('filterOut'); diff --git a/node_modules/core-js/modules/esnext.array.filter-reject.js b/node_modules/core-js/modules/esnext.array.filter-reject.js new file mode 100644 index 0000000..8a9ee56 --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.filter-reject.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var $filterReject = require('../internals/array-iteration').filterReject; +var addToUnscopables = require('../internals/add-to-unscopables'); + +// `Array.prototype.filterReject` method +// https://github.com/tc39/proposal-array-filtering +$({ target: 'Array', proto: true, forced: true }, { + filterReject: function filterReject(callbackfn /* , thisArg */) { + return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); + +addToUnscopables('filterReject'); diff --git a/node_modules/core-js/modules/esnext.array.find-last-index.js b/node_modules/core-js/modules/esnext.array.find-last-index.js new file mode 100644 index 0000000..bc997fe --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.find-last-index.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.array.find-last-index'); diff --git a/node_modules/core-js/modules/esnext.array.find-last.js b/node_modules/core-js/modules/esnext.array.find-last.js new file mode 100644 index 0000000..04f1cd8 --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.find-last.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.array.find-last'); diff --git a/node_modules/core-js/modules/esnext.array.from-async.js b/node_modules/core-js/modules/esnext.array.from-async.js new file mode 100644 index 0000000..3d48313 --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.from-async.js @@ -0,0 +1,21 @@ +'use strict'; +var $ = require('../internals/export'); +var fromAsync = require('../internals/array-from-async'); +var fails = require('../internals/fails'); + +var nativeFromAsync = Array.fromAsync; +// https://bugs.webkit.org/show_bug.cgi?id=271703 +var INCORRECT_CONSTRUCTURING = !nativeFromAsync || fails(function () { + var counter = 0; + nativeFromAsync.call(function () { + counter++; + return []; + }, { length: 0 }); + return counter !== 1; +}); + +// `Array.fromAsync` method +// https://github.com/tc39/proposal-array-from-async +$({ target: 'Array', stat: true, forced: INCORRECT_CONSTRUCTURING }, { + fromAsync: fromAsync +}); diff --git a/node_modules/core-js/modules/esnext.array.group-by-to-map.js b/node_modules/core-js/modules/esnext.array.group-by-to-map.js new file mode 100644 index 0000000..f2919a2 --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.group-by-to-map.js @@ -0,0 +1,16 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var arrayMethodIsStrict = require('../internals/array-method-is-strict'); +var addToUnscopables = require('../internals/add-to-unscopables'); +var $groupToMap = require('../internals/array-group-to-map'); +var IS_PURE = require('../internals/is-pure'); + +// `Array.prototype.groupByToMap` method +// https://github.com/tc39/proposal-array-grouping +// https://bugs.webkit.org/show_bug.cgi?id=236541 +$({ target: 'Array', proto: true, name: 'groupToMap', forced: IS_PURE || !arrayMethodIsStrict('groupByToMap') }, { + groupByToMap: $groupToMap +}); + +addToUnscopables('groupByToMap'); diff --git a/node_modules/core-js/modules/esnext.array.group-by.js b/node_modules/core-js/modules/esnext.array.group-by.js new file mode 100644 index 0000000..f5b9abf --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.group-by.js @@ -0,0 +1,18 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var $group = require('../internals/array-group'); +var arrayMethodIsStrict = require('../internals/array-method-is-strict'); +var addToUnscopables = require('../internals/add-to-unscopables'); + +// `Array.prototype.groupBy` method +// https://github.com/tc39/proposal-array-grouping +// https://bugs.webkit.org/show_bug.cgi?id=236541 +$({ target: 'Array', proto: true, forced: !arrayMethodIsStrict('groupBy') }, { + groupBy: function groupBy(callbackfn /* , thisArg */) { + var thisArg = arguments.length > 1 ? arguments[1] : undefined; + return $group(this, callbackfn, thisArg); + } +}); + +addToUnscopables('groupBy'); diff --git a/node_modules/core-js/modules/esnext.array.group-to-map.js b/node_modules/core-js/modules/esnext.array.group-to-map.js new file mode 100644 index 0000000..4250264 --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.group-to-map.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); +var addToUnscopables = require('../internals/add-to-unscopables'); +var $groupToMap = require('../internals/array-group-to-map'); +var IS_PURE = require('../internals/is-pure'); + +// `Array.prototype.groupToMap` method +// https://github.com/tc39/proposal-array-grouping +$({ target: 'Array', proto: true, forced: IS_PURE }, { + groupToMap: $groupToMap +}); + +addToUnscopables('groupToMap'); diff --git a/node_modules/core-js/modules/esnext.array.group.js b/node_modules/core-js/modules/esnext.array.group.js new file mode 100644 index 0000000..9afca8c --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.group.js @@ -0,0 +1,15 @@ +'use strict'; +var $ = require('../internals/export'); +var $group = require('../internals/array-group'); +var addToUnscopables = require('../internals/add-to-unscopables'); + +// `Array.prototype.group` method +// https://github.com/tc39/proposal-array-grouping +$({ target: 'Array', proto: true }, { + group: function group(callbackfn /* , thisArg */) { + var thisArg = arguments.length > 1 ? arguments[1] : undefined; + return $group(this, callbackfn, thisArg); + } +}); + +addToUnscopables('group'); diff --git a/node_modules/core-js/modules/esnext.array.is-template-object.js b/node_modules/core-js/modules/esnext.array.is-template-object.js new file mode 100644 index 0000000..0f1a826 --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.is-template-object.js @@ -0,0 +1,29 @@ +'use strict'; +var $ = require('../internals/export'); +var isArray = require('../internals/is-array'); + +// eslint-disable-next-line es/no-object-isfrozen -- safe +var isFrozen = Object.isFrozen; + +var isFrozenStringArray = function (array, allowUndefined) { + if (!isFrozen || !isArray(array) || !isFrozen(array)) return false; + var index = 0; + var length = array.length; + var element; + while (index < length) { + element = array[index++]; + if (!(typeof element == 'string' || (allowUndefined && element === undefined))) { + return false; + } + } return length !== 0; +}; + +// `Array.isTemplateObject` method +// https://github.com/tc39/proposal-array-is-template-object +$({ target: 'Array', stat: true, sham: true, forced: true }, { + isTemplateObject: function isTemplateObject(value) { + if (!isFrozenStringArray(value, true)) return false; + var raw = value.raw; + return raw.length === value.length && isFrozenStringArray(raw, false); + } +}); diff --git a/node_modules/core-js/modules/esnext.array.last-index.js b/node_modules/core-js/modules/esnext.array.last-index.js new file mode 100644 index 0000000..48d4997 --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.last-index.js @@ -0,0 +1,22 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var DESCRIPTORS = require('../internals/descriptors'); +var addToUnscopables = require('../internals/add-to-unscopables'); +var toObject = require('../internals/to-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); + +// `Array.prototype.lastIndex` getter +// https://github.com/keithamus/proposal-array-last +if (DESCRIPTORS) { + defineBuiltInAccessor(Array.prototype, 'lastIndex', { + configurable: true, + get: function lastIndex() { + var O = toObject(this); + var len = lengthOfArrayLike(O); + return len === 0 ? 0 : len - 1; + } + }); + + addToUnscopables('lastIndex'); +} diff --git a/node_modules/core-js/modules/esnext.array.last-item.js b/node_modules/core-js/modules/esnext.array.last-item.js new file mode 100644 index 0000000..c1704cb --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.last-item.js @@ -0,0 +1,27 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var DESCRIPTORS = require('../internals/descriptors'); +var addToUnscopables = require('../internals/add-to-unscopables'); +var toObject = require('../internals/to-object'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); + +// `Array.prototype.lastIndex` accessor +// https://github.com/keithamus/proposal-array-last +if (DESCRIPTORS) { + defineBuiltInAccessor(Array.prototype, 'lastItem', { + configurable: true, + get: function lastItem() { + var O = toObject(this); + var len = lengthOfArrayLike(O); + return len === 0 ? undefined : O[len - 1]; + }, + set: function lastItem(value) { + var O = toObject(this); + var len = lengthOfArrayLike(O); + return O[len === 0 ? 0 : len - 1] = value; + } + }); + + addToUnscopables('lastItem'); +} diff --git a/node_modules/core-js/modules/esnext.array.to-reversed.js b/node_modules/core-js/modules/esnext.array.to-reversed.js new file mode 100644 index 0000000..258a90a --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.to-reversed.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.array.to-reversed'); diff --git a/node_modules/core-js/modules/esnext.array.to-sorted.js b/node_modules/core-js/modules/esnext.array.to-sorted.js new file mode 100644 index 0000000..4ef39e5 --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.to-sorted.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.array.to-sorted'); diff --git a/node_modules/core-js/modules/esnext.array.to-spliced.js b/node_modules/core-js/modules/esnext.array.to-spliced.js new file mode 100644 index 0000000..f8d18fb --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.to-spliced.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.array.to-spliced'); diff --git a/node_modules/core-js/modules/esnext.array.unique-by.js b/node_modules/core-js/modules/esnext.array.unique-by.js new file mode 100644 index 0000000..ea8f4f9 --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.unique-by.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var addToUnscopables = require('../internals/add-to-unscopables'); +var uniqueBy = require('../internals/array-unique-by'); + +// `Array.prototype.uniqueBy` method +// https://github.com/tc39/proposal-array-unique +$({ target: 'Array', proto: true, forced: true }, { + uniqueBy: uniqueBy +}); + +addToUnscopables('uniqueBy'); diff --git a/node_modules/core-js/modules/esnext.array.with.js b/node_modules/core-js/modules/esnext.array.with.js new file mode 100644 index 0000000..a1e20a1 --- /dev/null +++ b/node_modules/core-js/modules/esnext.array.with.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.array.with'); diff --git a/node_modules/core-js/modules/esnext.async-disposable-stack.constructor.js b/node_modules/core-js/modules/esnext.async-disposable-stack.constructor.js new file mode 100644 index 0000000..0b9ca39 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-disposable-stack.constructor.js @@ -0,0 +1,130 @@ +'use strict'; +// https://github.com/tc39/proposal-async-explicit-resource-management +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var getBuiltIn = require('../internals/get-built-in'); +var aCallable = require('../internals/a-callable'); +var anInstance = require('../internals/an-instance'); +var defineBuiltIn = require('../internals/define-built-in'); +var defineBuiltIns = require('../internals/define-built-ins'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var InternalStateModule = require('../internals/internal-state'); +var addDisposableResource = require('../internals/add-disposable-resource'); + +var Promise = getBuiltIn('Promise'); +var SuppressedError = getBuiltIn('SuppressedError'); +var $ReferenceError = ReferenceError; + +var ASYNC_DISPOSE = wellKnownSymbol('asyncDispose'); +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); + +var ASYNC_DISPOSABLE_STACK = 'AsyncDisposableStack'; +var setInternalState = InternalStateModule.set; +var getAsyncDisposableStackInternalState = InternalStateModule.getterFor(ASYNC_DISPOSABLE_STACK); + +var HINT = 'async-dispose'; +var DISPOSED = 'disposed'; +var PENDING = 'pending'; + +var getPendingAsyncDisposableStackInternalState = function (stack) { + var internalState = getAsyncDisposableStackInternalState(stack); + if (internalState.state === DISPOSED) throw new $ReferenceError(ASYNC_DISPOSABLE_STACK + ' already disposed'); + return internalState; +}; + +var $AsyncDisposableStack = function AsyncDisposableStack() { + setInternalState(anInstance(this, AsyncDisposableStackPrototype), { + type: ASYNC_DISPOSABLE_STACK, + state: PENDING, + stack: [] + }); + + if (!DESCRIPTORS) this.disposed = false; +}; + +var AsyncDisposableStackPrototype = $AsyncDisposableStack.prototype; + +defineBuiltIns(AsyncDisposableStackPrototype, { + disposeAsync: function disposeAsync() { + var asyncDisposableStack = this; + return new Promise(function (resolve, reject) { + var internalState = getAsyncDisposableStackInternalState(asyncDisposableStack); + if (internalState.state === DISPOSED) return resolve(undefined); + internalState.state = DISPOSED; + if (!DESCRIPTORS) asyncDisposableStack.disposed = true; + var stack = internalState.stack; + var i = stack.length; + var thrown = false; + var suppressed; + + var handleError = function (result) { + if (thrown) { + suppressed = new SuppressedError(result, suppressed); + } else { + thrown = true; + suppressed = result; + } + + loop(); + }; + + var loop = function () { + if (i) { + var disposeMethod = stack[--i]; + stack[i] = null; + try { + Promise.resolve(disposeMethod()).then(loop, handleError); + } catch (error) { + handleError(error); + } + } else { + internalState.stack = null; + thrown ? reject(suppressed) : resolve(undefined); + } + }; + + loop(); + }); + }, + use: function use(value) { + addDisposableResource(getPendingAsyncDisposableStackInternalState(this), value, HINT); + return value; + }, + adopt: function adopt(value, onDispose) { + var internalState = getPendingAsyncDisposableStackInternalState(this); + aCallable(onDispose); + addDisposableResource(internalState, undefined, HINT, function () { + return onDispose(value); + }); + return value; + }, + defer: function defer(onDispose) { + var internalState = getPendingAsyncDisposableStackInternalState(this); + aCallable(onDispose); + addDisposableResource(internalState, undefined, HINT, onDispose); + }, + move: function move() { + var internalState = getPendingAsyncDisposableStackInternalState(this); + var newAsyncDisposableStack = new $AsyncDisposableStack(); + getAsyncDisposableStackInternalState(newAsyncDisposableStack).stack = internalState.stack; + internalState.stack = []; + internalState.state = DISPOSED; + if (!DESCRIPTORS) this.disposed = true; + return newAsyncDisposableStack; + } +}); + +if (DESCRIPTORS) defineBuiltInAccessor(AsyncDisposableStackPrototype, 'disposed', { + configurable: true, + get: function disposed() { + return getAsyncDisposableStackInternalState(this).state === DISPOSED; + } +}); + +defineBuiltIn(AsyncDisposableStackPrototype, ASYNC_DISPOSE, AsyncDisposableStackPrototype.disposeAsync, { name: 'disposeAsync' }); +defineBuiltIn(AsyncDisposableStackPrototype, TO_STRING_TAG, ASYNC_DISPOSABLE_STACK, { nonWritable: true }); + +$({ global: true, constructor: true }, { + AsyncDisposableStack: $AsyncDisposableStack +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.as-indexed-pairs.js b/node_modules/core-js/modules/esnext.async-iterator.as-indexed-pairs.js new file mode 100644 index 0000000..bd4e3d8 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.as-indexed-pairs.js @@ -0,0 +1,10 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var indexed = require('../internals/async-iterator-indexed'); + +// `AsyncIterator.prototype.asIndexedPairs` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', name: 'indexed', proto: true, real: true, forced: true }, { + asIndexedPairs: indexed +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.async-dispose.js b/node_modules/core-js/modules/esnext.async-iterator.async-dispose.js new file mode 100644 index 0000000..d6c1cd1 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.async-dispose.js @@ -0,0 +1,26 @@ +'use strict'; +// https://github.com/tc39/proposal-async-explicit-resource-management +var call = require('../internals/function-call'); +var defineBuiltIn = require('../internals/define-built-in'); +var getBuiltIn = require('../internals/get-built-in'); +var getMethod = require('../internals/get-method'); +var hasOwn = require('../internals/has-own-property'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var AsyncIteratorPrototype = require('../internals/async-iterator-prototype'); + +var ASYNC_DISPOSE = wellKnownSymbol('asyncDispose'); +var Promise = getBuiltIn('Promise'); + +if (!hasOwn(AsyncIteratorPrototype, ASYNC_DISPOSE)) { + defineBuiltIn(AsyncIteratorPrototype, ASYNC_DISPOSE, function () { + var O = this; + return new Promise(function (resolve, reject) { + var $return = getMethod(O, 'return'); + if ($return) { + Promise.resolve(call($return, O)).then(function () { + resolve(undefined); + }, reject); + } else resolve(undefined); + }); + }); +} diff --git a/node_modules/core-js/modules/esnext.async-iterator.constructor.js b/node_modules/core-js/modules/esnext.async-iterator.constructor.js new file mode 100644 index 0000000..b82b373 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.constructor.js @@ -0,0 +1,34 @@ +'use strict'; +var $ = require('../internals/export'); +var anInstance = require('../internals/an-instance'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var hasOwn = require('../internals/has-own-property'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var AsyncIteratorPrototype = require('../internals/async-iterator-prototype'); +var IS_PURE = require('../internals/is-pure'); + +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); + +var $TypeError = TypeError; + +var AsyncIteratorConstructor = function AsyncIterator() { + anInstance(this, AsyncIteratorPrototype); + if (getPrototypeOf(this) === AsyncIteratorPrototype) throw new $TypeError('Abstract class AsyncIterator not directly constructable'); +}; + +AsyncIteratorConstructor.prototype = AsyncIteratorPrototype; + +if (!hasOwn(AsyncIteratorPrototype, TO_STRING_TAG)) { + createNonEnumerableProperty(AsyncIteratorPrototype, TO_STRING_TAG, 'AsyncIterator'); +} + +if (IS_PURE || !hasOwn(AsyncIteratorPrototype, 'constructor') || AsyncIteratorPrototype.constructor === Object) { + createNonEnumerableProperty(AsyncIteratorPrototype, 'constructor', AsyncIteratorConstructor); +} + +// `AsyncIterator` constructor +// https://github.com/tc39/proposal-async-iterator-helpers +$({ global: true, constructor: true, forced: IS_PURE }, { + AsyncIterator: AsyncIteratorConstructor +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.drop.js b/node_modules/core-js/modules/esnext.async-iterator.drop.js new file mode 100644 index 0000000..f6535ba --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.drop.js @@ -0,0 +1,51 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var notANaN = require('../internals/not-a-nan'); +var toPositiveInteger = require('../internals/to-positive-integer'); +var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var IS_PURE = require('../internals/is-pure'); + +var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { + var state = this; + + return new Promise(function (resolve, reject) { + var doneAndReject = function (error) { + state.done = true; + reject(error); + }; + + var loop = function () { + try { + Promise.resolve(anObject(call(state.next, state.iterator))).then(function (step) { + try { + if (anObject(step).done) { + state.done = true; + resolve(createIterResultObject(undefined, true)); + } else if (state.remaining) { + state.remaining--; + loop(); + } else resolve(createIterResultObject(step.value, false)); + } catch (err) { doneAndReject(err); } + }, doneAndReject); + } catch (error) { doneAndReject(error); } + }; + + loop(); + }); +}); + +// `AsyncIterator.prototype.drop` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { + drop: function drop(limit) { + anObject(this); + var remaining = toPositiveInteger(notANaN(+limit)); + return new AsyncIteratorProxy(getIteratorDirect(this), { + remaining: remaining + }); + } +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.every.js b/node_modules/core-js/modules/esnext.async-iterator.every.js new file mode 100644 index 0000000..f8a7773 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.every.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var $every = require('../internals/async-iterator-iteration').every; + +// `AsyncIterator.prototype.every` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + every: function every(predicate) { + return $every(this, predicate); + } +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.filter.js b/node_modules/core-js/modules/esnext.async-iterator.filter.js new file mode 100644 index 0000000..1455504 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.filter.js @@ -0,0 +1,67 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var isObject = require('../internals/is-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var closeAsyncIteration = require('../internals/async-iterator-close'); +var IS_PURE = require('../internals/is-pure'); + +var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { + var state = this; + var iterator = state.iterator; + var predicate = state.predicate; + + return new Promise(function (resolve, reject) { + var doneAndReject = function (error) { + state.done = true; + reject(error); + }; + + var ifAbruptCloseAsyncIterator = function (error) { + closeAsyncIteration(iterator, doneAndReject, error, doneAndReject); + }; + + var loop = function () { + try { + Promise.resolve(anObject(call(state.next, iterator))).then(function (step) { + try { + if (anObject(step).done) { + state.done = true; + resolve(createIterResultObject(undefined, true)); + } else { + var value = step.value; + try { + var result = predicate(value, state.counter++); + + var handler = function (selected) { + selected ? resolve(createIterResultObject(value, false)) : loop(); + }; + + if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); + else handler(result); + } catch (error3) { ifAbruptCloseAsyncIterator(error3); } + } + } catch (error2) { doneAndReject(error2); } + }, doneAndReject); + } catch (error) { doneAndReject(error); } + }; + + loop(); + }); +}); + +// `AsyncIterator.prototype.filter` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { + filter: function filter(predicate) { + anObject(this); + aCallable(predicate); + return new AsyncIteratorProxy(getIteratorDirect(this), { + predicate: predicate + }); + } +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.find.js b/node_modules/core-js/modules/esnext.async-iterator.find.js new file mode 100644 index 0000000..beb6946 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.find.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var $find = require('../internals/async-iterator-iteration').find; + +// `AsyncIterator.prototype.find` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + find: function find(predicate) { + return $find(this, predicate); + } +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.flat-map.js b/node_modules/core-js/modules/esnext.async-iterator.flat-map.js new file mode 100644 index 0000000..50195b6 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.flat-map.js @@ -0,0 +1,88 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var isObject = require('../internals/is-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var getAsyncIteratorFlattenable = require('../internals/get-async-iterator-flattenable'); +var closeAsyncIteration = require('../internals/async-iterator-close'); +var IS_PURE = require('../internals/is-pure'); + +var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { + var state = this; + var iterator = state.iterator; + var mapper = state.mapper; + + return new Promise(function (resolve, reject) { + var doneAndReject = function (error) { + state.done = true; + reject(error); + }; + + var ifAbruptCloseAsyncIterator = function (error) { + closeAsyncIteration(iterator, doneAndReject, error, doneAndReject); + }; + + var outerLoop = function () { + try { + Promise.resolve(anObject(call(state.next, iterator))).then(function (step) { + try { + if (anObject(step).done) { + state.done = true; + resolve(createIterResultObject(undefined, true)); + } else { + var value = step.value; + try { + var result = mapper(value, state.counter++); + + var handler = function (mapped) { + try { + state.inner = getAsyncIteratorFlattenable(mapped); + innerLoop(); + } catch (error4) { ifAbruptCloseAsyncIterator(error4); } + }; + + if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); + else handler(result); + } catch (error3) { ifAbruptCloseAsyncIterator(error3); } + } + } catch (error2) { doneAndReject(error2); } + }, doneAndReject); + } catch (error) { doneAndReject(error); } + }; + + var innerLoop = function () { + var inner = state.inner; + if (inner) { + try { + Promise.resolve(anObject(call(inner.next, inner.iterator))).then(function (result) { + try { + if (anObject(result).done) { + state.inner = null; + outerLoop(); + } else resolve(createIterResultObject(result.value, false)); + } catch (error1) { ifAbruptCloseAsyncIterator(error1); } + }, ifAbruptCloseAsyncIterator); + } catch (error) { ifAbruptCloseAsyncIterator(error); } + } else outerLoop(); + }; + + innerLoop(); + }); +}); + +// `AsyncIterator.prototype.flaMap` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { + flatMap: function flatMap(mapper) { + anObject(this); + aCallable(mapper); + return new AsyncIteratorProxy(getIteratorDirect(this), { + mapper: mapper, + inner: null + }); + } +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.for-each.js b/node_modules/core-js/modules/esnext.async-iterator.for-each.js new file mode 100644 index 0000000..c56ad13 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.for-each.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var $forEach = require('../internals/async-iterator-iteration').forEach; + +// `AsyncIterator.prototype.forEach` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + forEach: function forEach(fn) { + return $forEach(this, fn); + } +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.from.js b/node_modules/core-js/modules/esnext.async-iterator.from.js new file mode 100644 index 0000000..8eed980 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.from.js @@ -0,0 +1,19 @@ +'use strict'; +var $ = require('../internals/export'); +var toObject = require('../internals/to-object'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var getAsyncIteratorFlattenable = require('../internals/get-async-iterator-flattenable'); +var AsyncIteratorPrototype = require('../internals/async-iterator-prototype'); +var WrapAsyncIterator = require('../internals/async-iterator-wrap'); +var IS_PURE = require('../internals/is-pure'); + +// `AsyncIterator.from` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', stat: true, forced: IS_PURE }, { + from: function from(O) { + var iteratorRecord = getAsyncIteratorFlattenable(typeof O == 'string' ? toObject(O) : O); + return isPrototypeOf(AsyncIteratorPrototype, iteratorRecord.iterator) + ? iteratorRecord.iterator + : new WrapAsyncIterator(iteratorRecord); + } +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.indexed.js b/node_modules/core-js/modules/esnext.async-iterator.indexed.js new file mode 100644 index 0000000..6601822 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.indexed.js @@ -0,0 +1,10 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var indexed = require('../internals/async-iterator-indexed'); + +// `AsyncIterator.prototype.indexed` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { + indexed: indexed +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.map.js b/node_modules/core-js/modules/esnext.async-iterator.map.js new file mode 100644 index 0000000..da1a330 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.map.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var map = require('../internals/async-iterator-map'); +var IS_PURE = require('../internals/is-pure'); + +// `AsyncIterator.prototype.map` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { + map: map +}); + diff --git a/node_modules/core-js/modules/esnext.async-iterator.reduce.js b/node_modules/core-js/modules/esnext.async-iterator.reduce.js new file mode 100644 index 0000000..b417a51 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.reduce.js @@ -0,0 +1,65 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var isObject = require('../internals/is-object'); +var getBuiltIn = require('../internals/get-built-in'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var closeAsyncIteration = require('../internals/async-iterator-close'); + +var Promise = getBuiltIn('Promise'); +var $TypeError = TypeError; + +// `AsyncIterator.prototype.reduce` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + reduce: function reduce(reducer /* , initialValue */) { + anObject(this); + aCallable(reducer); + var record = getIteratorDirect(this); + var iterator = record.iterator; + var next = record.next; + var noInitial = arguments.length < 2; + var accumulator = noInitial ? undefined : arguments[1]; + var counter = 0; + + return new Promise(function (resolve, reject) { + var ifAbruptCloseAsyncIterator = function (error) { + closeAsyncIteration(iterator, reject, error, reject); + }; + + var loop = function () { + try { + Promise.resolve(anObject(call(next, iterator))).then(function (step) { + try { + if (anObject(step).done) { + noInitial ? reject(new $TypeError('Reduce of empty iterator with no initial value')) : resolve(accumulator); + } else { + var value = step.value; + if (noInitial) { + noInitial = false; + accumulator = value; + loop(); + } else try { + var result = reducer(accumulator, value, counter); + + var handler = function ($result) { + accumulator = $result; + loop(); + }; + + if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); + else handler(result); + } catch (error3) { ifAbruptCloseAsyncIterator(error3); } + } + counter++; + } catch (error2) { reject(error2); } + }, reject); + } catch (error) { reject(error); } + }; + + loop(); + }); + } +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.some.js b/node_modules/core-js/modules/esnext.async-iterator.some.js new file mode 100644 index 0000000..1dc324d --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.some.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var $some = require('../internals/async-iterator-iteration').some; + +// `AsyncIterator.prototype.some` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + some: function some(predicate) { + return $some(this, predicate); + } +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.take.js b/node_modules/core-js/modules/esnext.async-iterator.take.js new file mode 100644 index 0000000..977feba --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.take.js @@ -0,0 +1,48 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var notANaN = require('../internals/not-a-nan'); +var toPositiveInteger = require('../internals/to-positive-integer'); +var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var IS_PURE = require('../internals/is-pure'); + +var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { + var state = this; + var iterator = state.iterator; + var returnMethod; + + if (!state.remaining--) { + var resultDone = createIterResultObject(undefined, true); + state.done = true; + returnMethod = iterator['return']; + if (returnMethod !== undefined) { + return Promise.resolve(call(returnMethod, iterator, undefined)).then(function () { + return resultDone; + }); + } + return resultDone; + } return Promise.resolve(call(state.next, iterator)).then(function (step) { + if (anObject(step).done) { + state.done = true; + return createIterResultObject(undefined, true); + } return createIterResultObject(step.value, false); + }).then(null, function (error) { + state.done = true; + throw error; + }); +}); + +// `AsyncIterator.prototype.take` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { + take: function take(limit) { + anObject(this); + var remaining = toPositiveInteger(notANaN(+limit)); + return new AsyncIteratorProxy(getIteratorDirect(this), { + remaining: remaining + }); + } +}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.to-array.js b/node_modules/core-js/modules/esnext.async-iterator.to-array.js new file mode 100644 index 0000000..4476457 --- /dev/null +++ b/node_modules/core-js/modules/esnext.async-iterator.to-array.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var $toArray = require('../internals/async-iterator-iteration').toArray; + +// `AsyncIterator.prototype.toArray` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + toArray: function toArray() { + return $toArray(this, undefined, []); + } +}); diff --git a/node_modules/core-js/modules/esnext.bigint.range.js b/node_modules/core-js/modules/esnext.bigint.range.js new file mode 100644 index 0000000..1e86869 --- /dev/null +++ b/node_modules/core-js/modules/esnext.bigint.range.js @@ -0,0 +1,15 @@ +'use strict'; +/* eslint-disable es/no-bigint -- safe */ +var $ = require('../internals/export'); +var NumericRangeIterator = require('../internals/numeric-range-iterator'); + +// `BigInt.range` method +// https://github.com/tc39/proposal-Number.range +// TODO: Remove from `core-js@4` +if (typeof BigInt == 'function') { + $({ target: 'BigInt', stat: true, forced: true }, { + range: function range(start, end, option) { + return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1)); + } + }); +} diff --git a/node_modules/core-js/modules/esnext.composite-key.js b/node_modules/core-js/modules/esnext.composite-key.js new file mode 100644 index 0000000..5eeacfb --- /dev/null +++ b/node_modules/core-js/modules/esnext.composite-key.js @@ -0,0 +1,20 @@ +'use strict'; +var $ = require('../internals/export'); +var apply = require('../internals/function-apply'); +var getCompositeKeyNode = require('../internals/composite-key'); +var getBuiltIn = require('../internals/get-built-in'); +var create = require('../internals/object-create'); + +var $Object = Object; + +var initializer = function () { + var freeze = getBuiltIn('Object', 'freeze'); + return freeze ? freeze(create(null)) : create(null); +}; + +// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey +$({ global: true, forced: true }, { + compositeKey: function compositeKey() { + return apply(getCompositeKeyNode, $Object, arguments).get('object', initializer); + } +}); diff --git a/node_modules/core-js/modules/esnext.composite-symbol.js b/node_modules/core-js/modules/esnext.composite-symbol.js new file mode 100644 index 0000000..93f5a08 --- /dev/null +++ b/node_modules/core-js/modules/esnext.composite-symbol.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); +var getCompositeKeyNode = require('../internals/composite-key'); +var getBuiltIn = require('../internals/get-built-in'); +var apply = require('../internals/function-apply'); + +// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey +$({ global: true, forced: true }, { + compositeSymbol: function compositeSymbol() { + if (arguments.length === 1 && typeof arguments[0] == 'string') return getBuiltIn('Symbol')['for'](arguments[0]); + return apply(getCompositeKeyNode, null, arguments).get('symbol', getBuiltIn('Symbol')); + } +}); diff --git a/node_modules/core-js/modules/esnext.data-view.get-float16.js b/node_modules/core-js/modules/esnext.data-view.get-float16.js new file mode 100644 index 0000000..eac608c --- /dev/null +++ b/node_modules/core-js/modules/esnext.data-view.get-float16.js @@ -0,0 +1,16 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var unpackIEEE754 = require('../internals/ieee754').unpack; + +// eslint-disable-next-line es/no-typed-arrays -- safe +var getUint16 = uncurryThis(DataView.prototype.getUint16); + +// `DataView.prototype.getFloat16` method +// https://github.com/tc39/proposal-float16array +$({ target: 'DataView', proto: true }, { + getFloat16: function getFloat16(byteOffset /* , littleEndian */) { + var uint16 = getUint16(this, byteOffset, arguments.length > 1 ? arguments[1] : false); + return unpackIEEE754([uint16 & 0xFF, uint16 >> 8 & 0xFF], 10); + } +}); diff --git a/node_modules/core-js/modules/esnext.data-view.get-uint8-clamped.js b/node_modules/core-js/modules/esnext.data-view.get-uint8-clamped.js new file mode 100644 index 0000000..a292082 --- /dev/null +++ b/node_modules/core-js/modules/esnext.data-view.get-uint8-clamped.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); + +// eslint-disable-next-line es/no-typed-arrays -- safe +var getUint8 = uncurryThis(DataView.prototype.getUint8); + +// `DataView.prototype.getUint8Clamped` method +// https://github.com/tc39/proposal-dataview-get-set-uint8clamped +$({ target: 'DataView', proto: true, forced: true }, { + getUint8Clamped: function getUint8Clamped(byteOffset) { + return getUint8(this, byteOffset); + } +}); diff --git a/node_modules/core-js/modules/esnext.data-view.set-float16.js b/node_modules/core-js/modules/esnext.data-view.set-float16.js new file mode 100644 index 0000000..28d0862 --- /dev/null +++ b/node_modules/core-js/modules/esnext.data-view.set-float16.js @@ -0,0 +1,21 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var aDataView = require('../internals/a-data-view'); +var toIndex = require('../internals/to-index'); +var packIEEE754 = require('../internals/ieee754').pack; +var f16round = require('../internals/math-f16round'); + +// eslint-disable-next-line es/no-typed-arrays -- safe +var setUint16 = uncurryThis(DataView.prototype.setUint16); + +// `DataView.prototype.setFloat16` method +// https://github.com/tc39/proposal-float16array +$({ target: 'DataView', proto: true }, { + setFloat16: function setFloat16(byteOffset, value /* , littleEndian */) { + aDataView(this); + var offset = toIndex(byteOffset); + var bytes = packIEEE754(f16round(value), 10, 2); + return setUint16(this, offset, bytes[1] << 8 | bytes[0], arguments.length > 2 ? arguments[2] : false); + } +}); diff --git a/node_modules/core-js/modules/esnext.data-view.set-uint8-clamped.js b/node_modules/core-js/modules/esnext.data-view.set-uint8-clamped.js new file mode 100644 index 0000000..ec60716 --- /dev/null +++ b/node_modules/core-js/modules/esnext.data-view.set-uint8-clamped.js @@ -0,0 +1,19 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var aDataView = require('../internals/a-data-view'); +var toIndex = require('../internals/to-index'); +var toUint8Clamped = require('../internals/to-uint8-clamped'); + +// eslint-disable-next-line es/no-typed-arrays -- safe +var setUint8 = uncurryThis(DataView.prototype.setUint8); + +// `DataView.prototype.setUint8Clamped` method +// https://github.com/tc39/proposal-dataview-get-set-uint8clamped +$({ target: 'DataView', proto: true, forced: true }, { + setUint8Clamped: function setUint8Clamped(byteOffset, value) { + aDataView(this); + var offset = toIndex(byteOffset); + return setUint8(this, offset, toUint8Clamped(value)); + } +}); diff --git a/node_modules/core-js/modules/esnext.disposable-stack.constructor.js b/node_modules/core-js/modules/esnext.disposable-stack.constructor.js new file mode 100644 index 0000000..435e21f --- /dev/null +++ b/node_modules/core-js/modules/esnext.disposable-stack.constructor.js @@ -0,0 +1,114 @@ +'use strict'; +// https://github.com/tc39/proposal-explicit-resource-management +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var getBuiltIn = require('../internals/get-built-in'); +var aCallable = require('../internals/a-callable'); +var anInstance = require('../internals/an-instance'); +var defineBuiltIn = require('../internals/define-built-in'); +var defineBuiltIns = require('../internals/define-built-ins'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var InternalStateModule = require('../internals/internal-state'); +var addDisposableResource = require('../internals/add-disposable-resource'); + +var SuppressedError = getBuiltIn('SuppressedError'); +var $ReferenceError = ReferenceError; + +var DISPOSE = wellKnownSymbol('dispose'); +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); + +var DISPOSABLE_STACK = 'DisposableStack'; +var setInternalState = InternalStateModule.set; +var getDisposableStackInternalState = InternalStateModule.getterFor(DISPOSABLE_STACK); + +var HINT = 'sync-dispose'; +var DISPOSED = 'disposed'; +var PENDING = 'pending'; + +var getPendingDisposableStackInternalState = function (stack) { + var internalState = getDisposableStackInternalState(stack); + if (internalState.state === DISPOSED) throw new $ReferenceError(DISPOSABLE_STACK + ' already disposed'); + return internalState; +}; + +var $DisposableStack = function DisposableStack() { + setInternalState(anInstance(this, DisposableStackPrototype), { + type: DISPOSABLE_STACK, + state: PENDING, + stack: [] + }); + + if (!DESCRIPTORS) this.disposed = false; +}; + +var DisposableStackPrototype = $DisposableStack.prototype; + +defineBuiltIns(DisposableStackPrototype, { + dispose: function dispose() { + var internalState = getDisposableStackInternalState(this); + if (internalState.state === DISPOSED) return; + internalState.state = DISPOSED; + if (!DESCRIPTORS) this.disposed = true; + var stack = internalState.stack; + var i = stack.length; + var thrown = false; + var suppressed; + while (i) { + var disposeMethod = stack[--i]; + stack[i] = null; + try { + disposeMethod(); + } catch (errorResult) { + if (thrown) { + suppressed = new SuppressedError(errorResult, suppressed); + } else { + thrown = true; + suppressed = errorResult; + } + } + } + internalState.stack = null; + if (thrown) throw suppressed; + }, + use: function use(value) { + addDisposableResource(getPendingDisposableStackInternalState(this), value, HINT); + return value; + }, + adopt: function adopt(value, onDispose) { + var internalState = getPendingDisposableStackInternalState(this); + aCallable(onDispose); + addDisposableResource(internalState, undefined, HINT, function () { + onDispose(value); + }); + return value; + }, + defer: function defer(onDispose) { + var internalState = getPendingDisposableStackInternalState(this); + aCallable(onDispose); + addDisposableResource(internalState, undefined, HINT, onDispose); + }, + move: function move() { + var internalState = getPendingDisposableStackInternalState(this); + var newDisposableStack = new $DisposableStack(); + getDisposableStackInternalState(newDisposableStack).stack = internalState.stack; + internalState.stack = []; + internalState.state = DISPOSED; + if (!DESCRIPTORS) this.disposed = true; + return newDisposableStack; + } +}); + +if (DESCRIPTORS) defineBuiltInAccessor(DisposableStackPrototype, 'disposed', { + configurable: true, + get: function disposed() { + return getDisposableStackInternalState(this).state === DISPOSED; + } +}); + +defineBuiltIn(DisposableStackPrototype, DISPOSE, DisposableStackPrototype.dispose, { name: 'dispose' }); +defineBuiltIn(DisposableStackPrototype, TO_STRING_TAG, DISPOSABLE_STACK, { nonWritable: true }); + +$({ global: true, constructor: true }, { + DisposableStack: $DisposableStack +}); diff --git a/node_modules/core-js/modules/esnext.function.demethodize.js b/node_modules/core-js/modules/esnext.function.demethodize.js new file mode 100644 index 0000000..2e17f65 --- /dev/null +++ b/node_modules/core-js/modules/esnext.function.demethodize.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var demethodize = require('../internals/function-demethodize'); + +// `Function.prototype.demethodize` method +// https://github.com/js-choi/proposal-function-demethodize +$({ target: 'Function', proto: true, forced: true }, { + demethodize: demethodize +}); diff --git a/node_modules/core-js/modules/esnext.function.is-callable.js b/node_modules/core-js/modules/esnext.function.is-callable.js new file mode 100644 index 0000000..6dac60c --- /dev/null +++ b/node_modules/core-js/modules/esnext.function.is-callable.js @@ -0,0 +1,30 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var $isCallable = require('../internals/is-callable'); +var inspectSource = require('../internals/inspect-source'); +var hasOwn = require('../internals/has-own-property'); +var DESCRIPTORS = require('../internals/descriptors'); + +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +var classRegExp = /^\s*class\b/; +var exec = uncurryThis(classRegExp.exec); + +var isClassConstructor = function (argument) { + try { + // `Function#toString` throws on some built-it function in some legacy engines + // (for example, `DOMQuad` and similar in FF41-) + if (!DESCRIPTORS || !exec(classRegExp, inspectSource(argument))) return false; + } catch (error) { /* empty */ } + var prototype = getOwnPropertyDescriptor(argument, 'prototype'); + return !!prototype && hasOwn(prototype, 'writable') && !prototype.writable; +}; + +// `Function.isCallable` method +// https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md +$({ target: 'Function', stat: true, sham: true, forced: true }, { + isCallable: function isCallable(argument) { + return $isCallable(argument) && !isClassConstructor(argument); + } +}); diff --git a/node_modules/core-js/modules/esnext.function.is-constructor.js b/node_modules/core-js/modules/esnext.function.is-constructor.js new file mode 100644 index 0000000..5ad81e1 --- /dev/null +++ b/node_modules/core-js/modules/esnext.function.is-constructor.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var isConstructor = require('../internals/is-constructor'); + +// `Function.isConstructor` method +// https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md +$({ target: 'Function', stat: true, forced: true }, { + isConstructor: isConstructor +}); diff --git a/node_modules/core-js/modules/esnext.function.metadata.js b/node_modules/core-js/modules/esnext.function.metadata.js new file mode 100644 index 0000000..58dfa7a --- /dev/null +++ b/node_modules/core-js/modules/esnext.function.metadata.js @@ -0,0 +1,14 @@ +'use strict'; +var wellKnownSymbol = require('../internals/well-known-symbol'); +var defineProperty = require('../internals/object-define-property').f; + +var METADATA = wellKnownSymbol('metadata'); +var FunctionPrototype = Function.prototype; + +// Function.prototype[@@metadata] +// https://github.com/tc39/proposal-decorator-metadata +if (FunctionPrototype[METADATA] === undefined) { + defineProperty(FunctionPrototype, METADATA, { + value: null + }); +} diff --git a/node_modules/core-js/modules/esnext.function.un-this.js b/node_modules/core-js/modules/esnext.function.un-this.js new file mode 100644 index 0000000..020539b --- /dev/null +++ b/node_modules/core-js/modules/esnext.function.un-this.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var demethodize = require('../internals/function-demethodize'); + +// `Function.prototype.unThis` method +// https://github.com/js-choi/proposal-function-demethodize +// TODO: Remove from `core-js@4` +$({ target: 'Function', proto: true, forced: true, name: 'demethodize' }, { + unThis: demethodize +}); diff --git a/node_modules/core-js/modules/esnext.global-this.js b/node_modules/core-js/modules/esnext.global-this.js new file mode 100644 index 0000000..1115dfa --- /dev/null +++ b/node_modules/core-js/modules/esnext.global-this.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.global-this'); diff --git a/node_modules/core-js/modules/esnext.iterator.as-indexed-pairs.js b/node_modules/core-js/modules/esnext.iterator.as-indexed-pairs.js new file mode 100644 index 0000000..6cc3792 --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.as-indexed-pairs.js @@ -0,0 +1,10 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var indexed = require('../internals/iterator-indexed'); + +// `Iterator.prototype.asIndexedPairs` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', name: 'indexed', proto: true, real: true, forced: true }, { + asIndexedPairs: indexed +}); diff --git a/node_modules/core-js/modules/esnext.iterator.constructor.js b/node_modules/core-js/modules/esnext.iterator.constructor.js new file mode 100644 index 0000000..4f3fe75 --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.constructor.js @@ -0,0 +1,65 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var anInstance = require('../internals/an-instance'); +var anObject = require('../internals/an-object'); +var isCallable = require('../internals/is-callable'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var createProperty = require('../internals/create-property'); +var fails = require('../internals/fails'); +var hasOwn = require('../internals/has-own-property'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype; +var DESCRIPTORS = require('../internals/descriptors'); +var IS_PURE = require('../internals/is-pure'); + +var CONSTRUCTOR = 'constructor'; +var ITERATOR = 'Iterator'; +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); + +var $TypeError = TypeError; +var NativeIterator = globalThis[ITERATOR]; + +// FF56- have non-standard global helper `Iterator` +var FORCED = IS_PURE + || !isCallable(NativeIterator) + || NativeIterator.prototype !== IteratorPrototype + // FF44- non-standard `Iterator` passes previous tests + || !fails(function () { NativeIterator({}); }); + +var IteratorConstructor = function Iterator() { + anInstance(this, IteratorPrototype); + if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable'); +}; + +var defineIteratorPrototypeAccessor = function (key, value) { + if (DESCRIPTORS) { + defineBuiltInAccessor(IteratorPrototype, key, { + configurable: true, + get: function () { + return value; + }, + set: function (replacement) { + anObject(this); + if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property"); + if (hasOwn(this, key)) this[key] = replacement; + else createProperty(this, key, replacement); + } + }); + } else IteratorPrototype[key] = value; +}; + +if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR); + +if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) { + defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor); +} + +IteratorConstructor.prototype = IteratorPrototype; + +// `Iterator` constructor +// https://github.com/tc39/proposal-iterator-helpers +$({ global: true, constructor: true, forced: FORCED }, { + Iterator: IteratorConstructor +}); diff --git a/node_modules/core-js/modules/esnext.iterator.dispose.js b/node_modules/core-js/modules/esnext.iterator.dispose.js new file mode 100644 index 0000000..ac463ee --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.dispose.js @@ -0,0 +1,17 @@ +'use strict'; +// https://github.com/tc39/proposal-explicit-resource-management +var call = require('../internals/function-call'); +var defineBuiltIn = require('../internals/define-built-in'); +var getMethod = require('../internals/get-method'); +var hasOwn = require('../internals/has-own-property'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype; + +var DISPOSE = wellKnownSymbol('dispose'); + +if (!hasOwn(IteratorPrototype, DISPOSE)) { + defineBuiltIn(IteratorPrototype, DISPOSE, function () { + var $return = getMethod(this, 'return'); + if ($return) call($return, this); + }); +} diff --git a/node_modules/core-js/modules/esnext.iterator.drop.js b/node_modules/core-js/modules/esnext.iterator.drop.js new file mode 100644 index 0000000..3e7a093 --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.drop.js @@ -0,0 +1,36 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var notANaN = require('../internals/not-a-nan'); +var toPositiveInteger = require('../internals/to-positive-integer'); +var createIteratorProxy = require('../internals/iterator-create-proxy'); +var IS_PURE = require('../internals/is-pure'); + +var IteratorProxy = createIteratorProxy(function () { + var iterator = this.iterator; + var next = this.next; + var result, done; + while (this.remaining) { + this.remaining--; + result = anObject(call(next, iterator)); + done = this.done = !!result.done; + if (done) return; + } + result = anObject(call(next, iterator)); + done = this.done = !!result.done; + if (!done) return result.value; +}); + +// `Iterator.prototype.drop` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { + drop: function drop(limit) { + anObject(this); + var remaining = toPositiveInteger(notANaN(+limit)); + return new IteratorProxy(getIteratorDirect(this), { + remaining: remaining + }); + } +}); diff --git a/node_modules/core-js/modules/esnext.iterator.every.js b/node_modules/core-js/modules/esnext.iterator.every.js new file mode 100644 index 0000000..32f470e --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.every.js @@ -0,0 +1,20 @@ +'use strict'; +var $ = require('../internals/export'); +var iterate = require('../internals/iterate'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); + +// `Iterator.prototype.every` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { + every: function every(predicate) { + anObject(this); + aCallable(predicate); + var record = getIteratorDirect(this); + var counter = 0; + return !iterate(record, function (value, stop) { + if (!predicate(value, counter++)) return stop(); + }, { IS_RECORD: true, INTERRUPTED: true }).stopped; + } +}); diff --git a/node_modules/core-js/modules/esnext.iterator.filter.js b/node_modules/core-js/modules/esnext.iterator.filter.js new file mode 100644 index 0000000..981d68d --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.filter.js @@ -0,0 +1,35 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var createIteratorProxy = require('../internals/iterator-create-proxy'); +var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing'); +var IS_PURE = require('../internals/is-pure'); + +var IteratorProxy = createIteratorProxy(function () { + var iterator = this.iterator; + var predicate = this.predicate; + var next = this.next; + var result, done, value; + while (true) { + result = anObject(call(next, iterator)); + done = this.done = !!result.done; + if (done) return; + value = result.value; + if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value; + } +}); + +// `Iterator.prototype.filter` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { + filter: function filter(predicate) { + anObject(this); + aCallable(predicate); + return new IteratorProxy(getIteratorDirect(this), { + predicate: predicate + }); + } +}); diff --git a/node_modules/core-js/modules/esnext.iterator.find.js b/node_modules/core-js/modules/esnext.iterator.find.js new file mode 100644 index 0000000..37a717b --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.find.js @@ -0,0 +1,20 @@ +'use strict'; +var $ = require('../internals/export'); +var iterate = require('../internals/iterate'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); + +// `Iterator.prototype.find` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { + find: function find(predicate) { + anObject(this); + aCallable(predicate); + var record = getIteratorDirect(this); + var counter = 0; + return iterate(record, function (value, stop) { + if (predicate(value, counter++)) return stop(value); + }, { IS_RECORD: true, INTERRUPTED: true }).result; + } +}); diff --git a/node_modules/core-js/modules/esnext.iterator.flat-map.js b/node_modules/core-js/modules/esnext.iterator.flat-map.js new file mode 100644 index 0000000..3e616ec --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.flat-map.js @@ -0,0 +1,45 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var getIteratorFlattenable = require('../internals/get-iterator-flattenable'); +var createIteratorProxy = require('../internals/iterator-create-proxy'); +var iteratorClose = require('../internals/iterator-close'); +var IS_PURE = require('../internals/is-pure'); + +var IteratorProxy = createIteratorProxy(function () { + var iterator = this.iterator; + var mapper = this.mapper; + var result, inner; + + while (true) { + if (inner = this.inner) try { + result = anObject(call(inner.next, inner.iterator)); + if (!result.done) return result.value; + this.inner = null; + } catch (error) { iteratorClose(iterator, 'throw', error); } + + result = anObject(call(this.next, iterator)); + + if (this.done = !!result.done) return; + + try { + this.inner = getIteratorFlattenable(mapper(result.value, this.counter++), false); + } catch (error) { iteratorClose(iterator, 'throw', error); } + } +}); + +// `Iterator.prototype.flatMap` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { + flatMap: function flatMap(mapper) { + anObject(this); + aCallable(mapper); + return new IteratorProxy(getIteratorDirect(this), { + mapper: mapper, + inner: null + }); + } +}); diff --git a/node_modules/core-js/modules/esnext.iterator.for-each.js b/node_modules/core-js/modules/esnext.iterator.for-each.js new file mode 100644 index 0000000..6fa7bc0 --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.for-each.js @@ -0,0 +1,20 @@ +'use strict'; +var $ = require('../internals/export'); +var iterate = require('../internals/iterate'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); + +// `Iterator.prototype.forEach` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { + forEach: function forEach(fn) { + anObject(this); + aCallable(fn); + var record = getIteratorDirect(this); + var counter = 0; + iterate(record, function (value) { + fn(value, counter++); + }, { IS_RECORD: true }); + } +}); diff --git a/node_modules/core-js/modules/esnext.iterator.from.js b/node_modules/core-js/modules/esnext.iterator.from.js new file mode 100644 index 0000000..323db55 --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.from.js @@ -0,0 +1,24 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var toObject = require('../internals/to-object'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype; +var createIteratorProxy = require('../internals/iterator-create-proxy'); +var getIteratorFlattenable = require('../internals/get-iterator-flattenable'); +var IS_PURE = require('../internals/is-pure'); + +var IteratorProxy = createIteratorProxy(function () { + return call(this.next, this.iterator); +}, true); + +// `Iterator.from` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', stat: true, forced: IS_PURE }, { + from: function from(O) { + var iteratorRecord = getIteratorFlattenable(typeof O == 'string' ? toObject(O) : O, true); + return isPrototypeOf(IteratorPrototype, iteratorRecord.iterator) + ? iteratorRecord.iterator + : new IteratorProxy(iteratorRecord); + } +}); diff --git a/node_modules/core-js/modules/esnext.iterator.indexed.js b/node_modules/core-js/modules/esnext.iterator.indexed.js new file mode 100644 index 0000000..3d44a3c --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.indexed.js @@ -0,0 +1,10 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var indexed = require('../internals/iterator-indexed'); + +// `Iterator.prototype.indexed` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true, forced: true }, { + indexed: indexed +}); diff --git a/node_modules/core-js/modules/esnext.iterator.map.js b/node_modules/core-js/modules/esnext.iterator.map.js new file mode 100644 index 0000000..1204e67 --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.map.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var map = require('../internals/iterator-map'); +var IS_PURE = require('../internals/is-pure'); + +// `Iterator.prototype.map` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { + map: map +}); diff --git a/node_modules/core-js/modules/esnext.iterator.range.js b/node_modules/core-js/modules/esnext.iterator.range.js new file mode 100644 index 0000000..876940b --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.range.js @@ -0,0 +1,16 @@ +'use strict'; +/* eslint-disable es/no-bigint -- safe */ +var $ = require('../internals/export'); +var NumericRangeIterator = require('../internals/numeric-range-iterator'); + +var $TypeError = TypeError; + +// `Iterator.range` method +// https://github.com/tc39/proposal-Number.range +$({ target: 'Iterator', stat: true, forced: true }, { + range: function range(start, end, option) { + if (typeof start == 'number') return new NumericRangeIterator(start, end, option, 'number', 0, 1); + if (typeof start == 'bigint') return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1)); + throw new $TypeError('Incorrect Iterator.range arguments'); + } +}); diff --git a/node_modules/core-js/modules/esnext.iterator.reduce.js b/node_modules/core-js/modules/esnext.iterator.reduce.js new file mode 100644 index 0000000..6516a4b --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.reduce.js @@ -0,0 +1,32 @@ +'use strict'; +var $ = require('../internals/export'); +var iterate = require('../internals/iterate'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); + +var $TypeError = TypeError; + +// `Iterator.prototype.reduce` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { + reduce: function reduce(reducer /* , initialValue */) { + anObject(this); + aCallable(reducer); + var record = getIteratorDirect(this); + var noInitial = arguments.length < 2; + var accumulator = noInitial ? undefined : arguments[1]; + var counter = 0; + iterate(record, function (value) { + if (noInitial) { + noInitial = false; + accumulator = value; + } else { + accumulator = reducer(accumulator, value, counter); + } + counter++; + }, { IS_RECORD: true }); + if (noInitial) throw new $TypeError('Reduce of empty iterator with no initial value'); + return accumulator; + } +}); diff --git a/node_modules/core-js/modules/esnext.iterator.some.js b/node_modules/core-js/modules/esnext.iterator.some.js new file mode 100644 index 0000000..7d44549 --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.some.js @@ -0,0 +1,20 @@ +'use strict'; +var $ = require('../internals/export'); +var iterate = require('../internals/iterate'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); + +// `Iterator.prototype.some` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { + some: function some(predicate) { + anObject(this); + aCallable(predicate); + var record = getIteratorDirect(this); + var counter = 0; + return iterate(record, function (value, stop) { + if (predicate(value, counter++)) return stop(); + }, { IS_RECORD: true, INTERRUPTED: true }).stopped; + } +}); diff --git a/node_modules/core-js/modules/esnext.iterator.take.js b/node_modules/core-js/modules/esnext.iterator.take.js new file mode 100644 index 0000000..b2c9302 --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.take.js @@ -0,0 +1,33 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var anObject = require('../internals/an-object'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var notANaN = require('../internals/not-a-nan'); +var toPositiveInteger = require('../internals/to-positive-integer'); +var createIteratorProxy = require('../internals/iterator-create-proxy'); +var iteratorClose = require('../internals/iterator-close'); +var IS_PURE = require('../internals/is-pure'); + +var IteratorProxy = createIteratorProxy(function () { + var iterator = this.iterator; + if (!this.remaining--) { + this.done = true; + return iteratorClose(iterator, 'normal', undefined); + } + var result = anObject(call(this.next, iterator)); + var done = this.done = !!result.done; + if (!done) return result.value; +}); + +// `Iterator.prototype.take` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { + take: function take(limit) { + anObject(this); + var remaining = toPositiveInteger(notANaN(+limit)); + return new IteratorProxy(getIteratorDirect(this), { + remaining: remaining + }); + } +}); diff --git a/node_modules/core-js/modules/esnext.iterator.to-array.js b/node_modules/core-js/modules/esnext.iterator.to-array.js new file mode 100644 index 0000000..e34c35b --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.to-array.js @@ -0,0 +1,17 @@ +'use strict'; +var $ = require('../internals/export'); +var anObject = require('../internals/an-object'); +var iterate = require('../internals/iterate'); +var getIteratorDirect = require('../internals/get-iterator-direct'); + +var push = [].push; + +// `Iterator.prototype.toArray` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { + toArray: function toArray() { + var result = []; + iterate(getIteratorDirect(anObject(this)), push, { that: result, IS_RECORD: true }); + return result; + } +}); diff --git a/node_modules/core-js/modules/esnext.iterator.to-async.js b/node_modules/core-js/modules/esnext.iterator.to-async.js new file mode 100644 index 0000000..fa7ee2e --- /dev/null +++ b/node_modules/core-js/modules/esnext.iterator.to-async.js @@ -0,0 +1,15 @@ +'use strict'; +var $ = require('../internals/export'); +var anObject = require('../internals/an-object'); +var AsyncFromSyncIterator = require('../internals/async-from-sync-iterator'); +var WrapAsyncIterator = require('../internals/async-iterator-wrap'); +var getIteratorDirect = require('../internals/get-iterator-direct'); +var IS_PURE = require('../internals/is-pure'); + +// `Iterator.prototype.toAsync` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { + toAsync: function toAsync() { + return new WrapAsyncIterator(getIteratorDirect(new AsyncFromSyncIterator(getIteratorDirect(anObject(this))))); + } +}); diff --git a/node_modules/core-js/modules/esnext.json.is-raw-json.js b/node_modules/core-js/modules/esnext.json.is-raw-json.js new file mode 100644 index 0000000..2fbc950 --- /dev/null +++ b/node_modules/core-js/modules/esnext.json.is-raw-json.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var NATIVE_RAW_JSON = require('../internals/native-raw-json'); +var isRawJSON = require('../internals/is-raw-json'); + +// `JSON.parse` method +// https://tc39.es/proposal-json-parse-with-source/#sec-json.israwjson +// https://github.com/tc39/proposal-json-parse-with-source +$({ target: 'JSON', stat: true, forced: !NATIVE_RAW_JSON }, { + isRawJSON: isRawJSON +}); diff --git a/node_modules/core-js/modules/esnext.json.parse.js b/node_modules/core-js/modules/esnext.json.parse.js new file mode 100644 index 0000000..c51aa7f --- /dev/null +++ b/node_modules/core-js/modules/esnext.json.parse.js @@ -0,0 +1,251 @@ +'use strict'; +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var globalThis = require('../internals/global-this'); +var getBuiltIn = require('../internals/get-built-in'); +var uncurryThis = require('../internals/function-uncurry-this'); +var call = require('../internals/function-call'); +var isCallable = require('../internals/is-callable'); +var isObject = require('../internals/is-object'); +var isArray = require('../internals/is-array'); +var hasOwn = require('../internals/has-own-property'); +var toString = require('../internals/to-string'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var createProperty = require('../internals/create-property'); +var fails = require('../internals/fails'); +var parseJSONString = require('../internals/parse-json-string'); +var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); + +var JSON = globalThis.JSON; +var Number = globalThis.Number; +var SyntaxError = globalThis.SyntaxError; +var nativeParse = JSON && JSON.parse; +var enumerableOwnProperties = getBuiltIn('Object', 'keys'); +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +var at = uncurryThis(''.charAt); +var slice = uncurryThis(''.slice); +var exec = uncurryThis(/./.exec); +var push = uncurryThis([].push); + +var IS_DIGIT = /^\d$/; +var IS_NON_ZERO_DIGIT = /^[1-9]$/; +var IS_NUMBER_START = /^[\d-]$/; +var IS_WHITESPACE = /^[\t\n\r ]$/; + +var PRIMITIVE = 0; +var OBJECT = 1; + +var $parse = function (source, reviver) { + source = toString(source); + var context = new Context(source, 0, ''); + var root = context.parse(); + var value = root.value; + var endIndex = context.skip(IS_WHITESPACE, root.end); + if (endIndex < source.length) { + throw new SyntaxError('Unexpected extra character: "' + at(source, endIndex) + '" after the parsed data at: ' + endIndex); + } + return isCallable(reviver) ? internalize({ '': value }, '', reviver, root) : value; +}; + +var internalize = function (holder, name, reviver, node) { + var val = holder[name]; + var unmodified = node && val === node.value; + var context = unmodified && typeof node.source == 'string' ? { source: node.source } : {}; + var elementRecordsLen, keys, len, i, P; + if (isObject(val)) { + var nodeIsArray = isArray(val); + var nodes = unmodified ? node.nodes : nodeIsArray ? [] : {}; + if (nodeIsArray) { + elementRecordsLen = nodes.length; + len = lengthOfArrayLike(val); + for (i = 0; i < len; i++) { + internalizeProperty(val, i, internalize(val, '' + i, reviver, i < elementRecordsLen ? nodes[i] : undefined)); + } + } else { + keys = enumerableOwnProperties(val); + len = lengthOfArrayLike(keys); + for (i = 0; i < len; i++) { + P = keys[i]; + internalizeProperty(val, P, internalize(val, P, reviver, hasOwn(nodes, P) ? nodes[P] : undefined)); + } + } + } + return call(reviver, holder, name, val, context); +}; + +var internalizeProperty = function (object, key, value) { + if (DESCRIPTORS) { + var descriptor = getOwnPropertyDescriptor(object, key); + if (descriptor && !descriptor.configurable) return; + } + if (value === undefined) delete object[key]; + else createProperty(object, key, value); +}; + +var Node = function (value, end, source, nodes) { + this.value = value; + this.end = end; + this.source = source; + this.nodes = nodes; +}; + +var Context = function (source, index) { + this.source = source; + this.index = index; +}; + +// https://www.json.org/json-en.html +Context.prototype = { + fork: function (nextIndex) { + return new Context(this.source, nextIndex); + }, + parse: function () { + var source = this.source; + var i = this.skip(IS_WHITESPACE, this.index); + var fork = this.fork(i); + var chr = at(source, i); + if (exec(IS_NUMBER_START, chr)) return fork.number(); + switch (chr) { + case '{': + return fork.object(); + case '[': + return fork.array(); + case '"': + return fork.string(); + case 't': + return fork.keyword(true); + case 'f': + return fork.keyword(false); + case 'n': + return fork.keyword(null); + } throw new SyntaxError('Unexpected character: "' + chr + '" at: ' + i); + }, + node: function (type, value, start, end, nodes) { + return new Node(value, end, type ? null : slice(this.source, start, end), nodes); + }, + object: function () { + var source = this.source; + var i = this.index + 1; + var expectKeypair = false; + var object = {}; + var nodes = {}; + while (i < source.length) { + i = this.until(['"', '}'], i); + if (at(source, i) === '}' && !expectKeypair) { + i++; + break; + } + // Parsing the key + var result = this.fork(i).string(); + var key = result.value; + i = result.end; + i = this.until([':'], i) + 1; + // Parsing value + i = this.skip(IS_WHITESPACE, i); + result = this.fork(i).parse(); + createProperty(nodes, key, result); + createProperty(object, key, result.value); + i = this.until([',', '}'], result.end); + var chr = at(source, i); + if (chr === ',') { + expectKeypair = true; + i++; + } else if (chr === '}') { + i++; + break; + } + } + return this.node(OBJECT, object, this.index, i, nodes); + }, + array: function () { + var source = this.source; + var i = this.index + 1; + var expectElement = false; + var array = []; + var nodes = []; + while (i < source.length) { + i = this.skip(IS_WHITESPACE, i); + if (at(source, i) === ']' && !expectElement) { + i++; + break; + } + var result = this.fork(i).parse(); + push(nodes, result); + push(array, result.value); + i = this.until([',', ']'], result.end); + if (at(source, i) === ',') { + expectElement = true; + i++; + } else if (at(source, i) === ']') { + i++; + break; + } + } + return this.node(OBJECT, array, this.index, i, nodes); + }, + string: function () { + var index = this.index; + var parsed = parseJSONString(this.source, this.index + 1); + return this.node(PRIMITIVE, parsed.value, index, parsed.end); + }, + number: function () { + var source = this.source; + var startIndex = this.index; + var i = startIndex; + if (at(source, i) === '-') i++; + if (at(source, i) === '0') i++; + else if (exec(IS_NON_ZERO_DIGIT, at(source, i))) i = this.skip(IS_DIGIT, i + 1); + else throw new SyntaxError('Failed to parse number at: ' + i); + if (at(source, i) === '.') i = this.skip(IS_DIGIT, i + 1); + if (at(source, i) === 'e' || at(source, i) === 'E') { + i++; + if (at(source, i) === '+' || at(source, i) === '-') i++; + var exponentStartIndex = i; + i = this.skip(IS_DIGIT, i); + if (exponentStartIndex === i) throw new SyntaxError("Failed to parse number's exponent value at: " + i); + } + return this.node(PRIMITIVE, Number(slice(source, startIndex, i)), startIndex, i); + }, + keyword: function (value) { + var keyword = '' + value; + var index = this.index; + var endIndex = index + keyword.length; + if (slice(this.source, index, endIndex) !== keyword) throw new SyntaxError('Failed to parse value at: ' + index); + return this.node(PRIMITIVE, value, index, endIndex); + }, + skip: function (regex, i) { + var source = this.source; + for (; i < source.length; i++) if (!exec(regex, at(source, i))) break; + return i; + }, + until: function (array, i) { + i = this.skip(IS_WHITESPACE, i); + var chr = at(this.source, i); + for (var j = 0; j < array.length; j++) if (array[j] === chr) return i; + throw new SyntaxError('Unexpected character: "' + chr + '" at: ' + i); + } +}; + +var NO_SOURCE_SUPPORT = fails(function () { + var unsafeInt = '9007199254740993'; + var source; + nativeParse(unsafeInt, function (key, value, context) { + source = context.source; + }); + return source !== unsafeInt; +}); + +var PROPER_BASE_PARSE = NATIVE_SYMBOL && !fails(function () { + // Safari 9 bug + return 1 / nativeParse('-0 \t') !== -Infinity; +}); + +// `JSON.parse` method +// https://tc39.es/ecma262/#sec-json.parse +// https://github.com/tc39/proposal-json-parse-with-source +$({ target: 'JSON', stat: true, forced: NO_SOURCE_SUPPORT }, { + parse: function parse(text, reviver) { + return PROPER_BASE_PARSE && !isCallable(reviver) ? nativeParse(text) : $parse(text, reviver); + } +}); diff --git a/node_modules/core-js/modules/esnext.json.raw-json.js b/node_modules/core-js/modules/esnext.json.raw-json.js new file mode 100644 index 0000000..34d8734 --- /dev/null +++ b/node_modules/core-js/modules/esnext.json.raw-json.js @@ -0,0 +1,86 @@ +'use strict'; +var $ = require('../internals/export'); +var FREEZING = require('../internals/freezing'); +var NATIVE_RAW_JSON = require('../internals/native-raw-json'); +var getBuiltIn = require('../internals/get-built-in'); +var call = require('../internals/function-call'); +var uncurryThis = require('../internals/function-uncurry-this'); +var isCallable = require('../internals/is-callable'); +var isRawJSON = require('../internals/is-raw-json'); +var toString = require('../internals/to-string'); +var createProperty = require('../internals/create-property'); +var parseJSONString = require('../internals/parse-json-string'); +var getReplacerFunction = require('../internals/get-json-replacer-function'); +var uid = require('../internals/uid'); +var setInternalState = require('../internals/internal-state').set; + +var $String = String; +var $SyntaxError = SyntaxError; +var parse = getBuiltIn('JSON', 'parse'); +var $stringify = getBuiltIn('JSON', 'stringify'); +var create = getBuiltIn('Object', 'create'); +var freeze = getBuiltIn('Object', 'freeze'); +var at = uncurryThis(''.charAt); +var slice = uncurryThis(''.slice); +var push = uncurryThis([].push); + +var MARK = uid(); +var MARK_LENGTH = MARK.length; +var ERROR_MESSAGE = 'Unacceptable as raw JSON'; + +var isWhitespace = function (it) { + return it === ' ' || it === '\t' || it === '\n' || it === '\r'; +}; + +// `JSON.parse` method +// https://tc39.es/proposal-json-parse-with-source/#sec-json.israwjson +// https://github.com/tc39/proposal-json-parse-with-source +$({ target: 'JSON', stat: true, forced: !NATIVE_RAW_JSON }, { + rawJSON: function rawJSON(text) { + var jsonString = toString(text); + if (jsonString === '' || isWhitespace(at(jsonString, 0)) || isWhitespace(at(jsonString, jsonString.length - 1))) { + throw new $SyntaxError(ERROR_MESSAGE); + } + var parsed = parse(jsonString); + if (typeof parsed == 'object' && parsed !== null) throw new $SyntaxError(ERROR_MESSAGE); + var obj = create(null); + setInternalState(obj, { type: 'RawJSON' }); + createProperty(obj, 'rawJSON', jsonString); + return FREEZING ? freeze(obj) : obj; + } +}); + +// `JSON.stringify` method +// https://tc39.es/ecma262/#sec-json.stringify +// https://github.com/tc39/proposal-json-parse-with-source +if ($stringify) $({ target: 'JSON', stat: true, arity: 3, forced: !NATIVE_RAW_JSON }, { + stringify: function stringify(text, replacer, space) { + var replacerFunction = getReplacerFunction(replacer); + var rawStrings = []; + + var json = $stringify(text, function (key, value) { + // some old implementations (like WebKit) could pass numbers as keys + var v = isCallable(replacerFunction) ? call(replacerFunction, this, $String(key), value) : value; + return isRawJSON(v) ? MARK + (push(rawStrings, v.rawJSON) - 1) : v; + }, space); + + if (typeof json != 'string') return json; + + var result = ''; + var length = json.length; + + for (var i = 0; i < length; i++) { + var chr = at(json, i); + if (chr === '"') { + var end = parseJSONString(json, ++i).end - 1; + var string = slice(json, i, end); + result += slice(string, 0, MARK_LENGTH) === MARK + ? rawStrings[slice(string, MARK_LENGTH)] + : '"' + string + '"'; + i = end; + } else result += chr; + } + + return result; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.delete-all.js b/node_modules/core-js/modules/esnext.map.delete-all.js new file mode 100644 index 0000000..5a0d242 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.delete-all.js @@ -0,0 +1,18 @@ +'use strict'; +var $ = require('../internals/export'); +var aMap = require('../internals/a-map'); +var remove = require('../internals/map-helpers').remove; + +// `Map.prototype.deleteAll` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', proto: true, real: true, forced: true }, { + deleteAll: function deleteAll(/* ...elements */) { + var collection = aMap(this); + var allDeleted = true; + var wasDeleted; + for (var k = 0, len = arguments.length; k < len; k++) { + wasDeleted = remove(collection, arguments[k]); + allDeleted = allDeleted && wasDeleted; + } return !!allDeleted; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.emplace.js b/node_modules/core-js/modules/esnext.map.emplace.js new file mode 100644 index 0000000..24fe86e --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.emplace.js @@ -0,0 +1,27 @@ +'use strict'; +var $ = require('../internals/export'); +var aMap = require('../internals/a-map'); +var MapHelpers = require('../internals/map-helpers'); + +var get = MapHelpers.get; +var has = MapHelpers.has; +var set = MapHelpers.set; + +// `Map.prototype.emplace` method +// https://github.com/tc39/proposal-upsert +$({ target: 'Map', proto: true, real: true, forced: true }, { + emplace: function emplace(key, handler) { + var map = aMap(this); + var value, inserted; + if (has(map, key)) { + value = get(map, key); + if ('update' in handler) { + value = handler.update(value, key, map); + set(map, key, value); + } return value; + } + inserted = handler.insert(key, map); + set(map, key, inserted); + return inserted; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.every.js b/node_modules/core-js/modules/esnext.map.every.js new file mode 100644 index 0000000..85264c7 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.every.js @@ -0,0 +1,17 @@ +'use strict'; +var $ = require('../internals/export'); +var bind = require('../internals/function-bind-context'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); + +// `Map.prototype.every` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', proto: true, real: true, forced: true }, { + every: function every(callbackfn /* , thisArg */) { + var map = aMap(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + return iterate(map, function (value, key) { + if (!boundFunction(value, key, map)) return false; + }, true) !== false; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.filter.js b/node_modules/core-js/modules/esnext.map.filter.js new file mode 100644 index 0000000..67ffe5c --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.filter.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var bind = require('../internals/function-bind-context'); +var aMap = require('../internals/a-map'); +var MapHelpers = require('../internals/map-helpers'); +var iterate = require('../internals/map-iterate'); + +var Map = MapHelpers.Map; +var set = MapHelpers.set; + +// `Map.prototype.filter` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', proto: true, real: true, forced: true }, { + filter: function filter(callbackfn /* , thisArg */) { + var map = aMap(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var newMap = new Map(); + iterate(map, function (value, key) { + if (boundFunction(value, key, map)) set(newMap, key, value); + }); + return newMap; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.find-key.js b/node_modules/core-js/modules/esnext.map.find-key.js new file mode 100644 index 0000000..c3779a8 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.find-key.js @@ -0,0 +1,18 @@ +'use strict'; +var $ = require('../internals/export'); +var bind = require('../internals/function-bind-context'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); + +// `Map.prototype.findKey` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', proto: true, real: true, forced: true }, { + findKey: function findKey(callbackfn /* , thisArg */) { + var map = aMap(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var result = iterate(map, function (value, key) { + if (boundFunction(value, key, map)) return { key: key }; + }, true); + return result && result.key; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.find.js b/node_modules/core-js/modules/esnext.map.find.js new file mode 100644 index 0000000..ca1f0f9 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.find.js @@ -0,0 +1,18 @@ +'use strict'; +var $ = require('../internals/export'); +var bind = require('../internals/function-bind-context'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); + +// `Map.prototype.find` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', proto: true, real: true, forced: true }, { + find: function find(callbackfn /* , thisArg */) { + var map = aMap(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var result = iterate(map, function (value, key) { + if (boundFunction(value, key, map)) return { value: value }; + }, true); + return result && result.value; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.from.js b/node_modules/core-js/modules/esnext.map.from.js new file mode 100644 index 0000000..2d916b2 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.from.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var MapHelpers = require('../internals/map-helpers'); +var createCollectionFrom = require('../internals/collection-from'); + +// `Map.from` method +// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from +$({ target: 'Map', stat: true, forced: true }, { + from: createCollectionFrom(MapHelpers.Map, MapHelpers.set, true) +}); diff --git a/node_modules/core-js/modules/esnext.map.group-by.js b/node_modules/core-js/modules/esnext.map.group-by.js new file mode 100644 index 0000000..116b89a --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.group-by.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.map.group-by'); diff --git a/node_modules/core-js/modules/esnext.map.includes.js b/node_modules/core-js/modules/esnext.map.includes.js new file mode 100644 index 0000000..14b51ab --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.includes.js @@ -0,0 +1,15 @@ +'use strict'; +var $ = require('../internals/export'); +var sameValueZero = require('../internals/same-value-zero'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); + +// `Map.prototype.includes` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', proto: true, real: true, forced: true }, { + includes: function includes(searchElement) { + return iterate(aMap(this), function (value) { + if (sameValueZero(value, searchElement)) return true; + }, true) === true; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.key-by.js b/node_modules/core-js/modules/esnext.map.key-by.js new file mode 100644 index 0000000..67933b5 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.key-by.js @@ -0,0 +1,22 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var iterate = require('../internals/iterate'); +var isCallable = require('../internals/is-callable'); +var aCallable = require('../internals/a-callable'); +var Map = require('../internals/map-helpers').Map; + +// `Map.keyBy` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', stat: true, forced: true }, { + keyBy: function keyBy(iterable, keyDerivative) { + var C = isCallable(this) ? this : Map; + var newMap = new C(); + aCallable(keyDerivative); + var setter = aCallable(newMap.set); + iterate(iterable, function (element) { + call(setter, newMap, keyDerivative(element), element); + }); + return newMap; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.key-of.js b/node_modules/core-js/modules/esnext.map.key-of.js new file mode 100644 index 0000000..07d5d18 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.key-of.js @@ -0,0 +1,15 @@ +'use strict'; +var $ = require('../internals/export'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); + +// `Map.prototype.keyOf` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', proto: true, real: true, forced: true }, { + keyOf: function keyOf(searchElement) { + var result = iterate(aMap(this), function (value, key) { + if (value === searchElement) return { key: key }; + }, true); + return result && result.key; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.map-keys.js b/node_modules/core-js/modules/esnext.map.map-keys.js new file mode 100644 index 0000000..dcb1ea8 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.map-keys.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var bind = require('../internals/function-bind-context'); +var aMap = require('../internals/a-map'); +var MapHelpers = require('../internals/map-helpers'); +var iterate = require('../internals/map-iterate'); + +var Map = MapHelpers.Map; +var set = MapHelpers.set; + +// `Map.prototype.mapKeys` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', proto: true, real: true, forced: true }, { + mapKeys: function mapKeys(callbackfn /* , thisArg */) { + var map = aMap(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var newMap = new Map(); + iterate(map, function (value, key) { + set(newMap, boundFunction(value, key, map), value); + }); + return newMap; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.map-values.js b/node_modules/core-js/modules/esnext.map.map-values.js new file mode 100644 index 0000000..e10f42b --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.map-values.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var bind = require('../internals/function-bind-context'); +var aMap = require('../internals/a-map'); +var MapHelpers = require('../internals/map-helpers'); +var iterate = require('../internals/map-iterate'); + +var Map = MapHelpers.Map; +var set = MapHelpers.set; + +// `Map.prototype.mapValues` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', proto: true, real: true, forced: true }, { + mapValues: function mapValues(callbackfn /* , thisArg */) { + var map = aMap(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var newMap = new Map(); + iterate(map, function (value, key) { + set(newMap, key, boundFunction(value, key, map)); + }); + return newMap; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.merge.js b/node_modules/core-js/modules/esnext.map.merge.js new file mode 100644 index 0000000..d2174f8 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.merge.js @@ -0,0 +1,22 @@ +'use strict'; +var $ = require('../internals/export'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/iterate'); +var set = require('../internals/map-helpers').set; + +// `Map.prototype.merge` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', proto: true, real: true, arity: 1, forced: true }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + merge: function merge(iterable /* ...iterables */) { + var map = aMap(this); + var argumentsLength = arguments.length; + var i = 0; + while (i < argumentsLength) { + iterate(arguments[i++], function (key, value) { + set(map, key, value); + }, { AS_ENTRIES: true }); + } + return map; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.of.js b/node_modules/core-js/modules/esnext.map.of.js new file mode 100644 index 0000000..5fc111e --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.of.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var MapHelpers = require('../internals/map-helpers'); +var createCollectionOf = require('../internals/collection-of'); + +// `Map.of` method +// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of +$({ target: 'Map', stat: true, forced: true }, { + of: createCollectionOf(MapHelpers.Map, MapHelpers.set, true) +}); diff --git a/node_modules/core-js/modules/esnext.map.reduce.js b/node_modules/core-js/modules/esnext.map.reduce.js new file mode 100644 index 0000000..1067337 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.reduce.js @@ -0,0 +1,28 @@ +'use strict'; +var $ = require('../internals/export'); +var aCallable = require('../internals/a-callable'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); + +var $TypeError = TypeError; + +// `Map.prototype.reduce` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', proto: true, real: true, forced: true }, { + reduce: function reduce(callbackfn /* , initialValue */) { + var map = aMap(this); + var noInitial = arguments.length < 2; + var accumulator = noInitial ? undefined : arguments[1]; + aCallable(callbackfn); + iterate(map, function (value, key) { + if (noInitial) { + noInitial = false; + accumulator = value; + } else { + accumulator = callbackfn(accumulator, value, key, map); + } + }); + if (noInitial) throw new $TypeError('Reduce of empty map with no initial value'); + return accumulator; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.some.js b/node_modules/core-js/modules/esnext.map.some.js new file mode 100644 index 0000000..c3d6421 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.some.js @@ -0,0 +1,17 @@ +'use strict'; +var $ = require('../internals/export'); +var bind = require('../internals/function-bind-context'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); + +// `Map.prototype.some` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', proto: true, real: true, forced: true }, { + some: function some(callbackfn /* , thisArg */) { + var map = aMap(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + return iterate(map, function (value, key) { + if (boundFunction(value, key, map)) return true; + }, true) === true; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.update-or-insert.js b/node_modules/core-js/modules/esnext.map.update-or-insert.js new file mode 100644 index 0000000..0500321 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.update-or-insert.js @@ -0,0 +1,10 @@ +'use strict'; +// TODO: remove from `core-js@4` +var $ = require('../internals/export'); +var upsert = require('../internals/map-upsert'); + +// `Map.prototype.updateOrInsert` method (replaced by `Map.prototype.emplace`) +// https://github.com/thumbsupep/proposal-upsert +$({ target: 'Map', proto: true, real: true, name: 'upsert', forced: true }, { + updateOrInsert: upsert +}); diff --git a/node_modules/core-js/modules/esnext.map.update.js b/node_modules/core-js/modules/esnext.map.update.js new file mode 100644 index 0000000..a112f71 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.update.js @@ -0,0 +1,27 @@ +'use strict'; +var $ = require('../internals/export'); +var aCallable = require('../internals/a-callable'); +var aMap = require('../internals/a-map'); +var MapHelpers = require('../internals/map-helpers'); + +var $TypeError = TypeError; +var get = MapHelpers.get; +var has = MapHelpers.has; +var set = MapHelpers.set; + +// `Map.prototype.update` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Map', proto: true, real: true, forced: true }, { + update: function update(key, callback /* , thunk */) { + var map = aMap(this); + var length = arguments.length; + aCallable(callback); + var isPresentInMap = has(map, key); + if (!isPresentInMap && length < 3) { + throw new $TypeError('Updating absent value'); + } + var value = isPresentInMap ? get(map, key) : aCallable(length > 2 ? arguments[2] : undefined)(key, map); + set(map, key, callback(value, key, map)); + return map; + } +}); diff --git a/node_modules/core-js/modules/esnext.map.upsert.js b/node_modules/core-js/modules/esnext.map.upsert.js new file mode 100644 index 0000000..10d9ad8 --- /dev/null +++ b/node_modules/core-js/modules/esnext.map.upsert.js @@ -0,0 +1,10 @@ +'use strict'; +// TODO: remove from `core-js@4` +var $ = require('../internals/export'); +var upsert = require('../internals/map-upsert'); + +// `Map.prototype.upsert` method (replaced by `Map.prototype.emplace`) +// https://github.com/thumbsupep/proposal-upsert +$({ target: 'Map', proto: true, real: true, forced: true }, { + upsert: upsert +}); diff --git a/node_modules/core-js/modules/esnext.math.clamp.js b/node_modules/core-js/modules/esnext.math.clamp.js new file mode 100644 index 0000000..49a3d30 --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.clamp.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); + +var min = Math.min; +var max = Math.max; + +// `Math.clamp` method +// https://rwaldron.github.io/proposal-math-extensions/ +$({ target: 'Math', stat: true, forced: true }, { + clamp: function clamp(x, lower, upper) { + return min(upper, max(lower, x)); + } +}); diff --git a/node_modules/core-js/modules/esnext.math.deg-per-rad.js b/node_modules/core-js/modules/esnext.math.deg-per-rad.js new file mode 100644 index 0000000..2b1d8c4 --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.deg-per-rad.js @@ -0,0 +1,8 @@ +'use strict'; +var $ = require('../internals/export'); + +// `Math.DEG_PER_RAD` constant +// https://rwaldron.github.io/proposal-math-extensions/ +$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true }, { + DEG_PER_RAD: Math.PI / 180 +}); diff --git a/node_modules/core-js/modules/esnext.math.degrees.js b/node_modules/core-js/modules/esnext.math.degrees.js new file mode 100644 index 0000000..aa21ad7 --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.degrees.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); + +var RAD_PER_DEG = 180 / Math.PI; + +// `Math.degrees` method +// https://rwaldron.github.io/proposal-math-extensions/ +$({ target: 'Math', stat: true, forced: true }, { + degrees: function degrees(radians) { + return radians * RAD_PER_DEG; + } +}); diff --git a/node_modules/core-js/modules/esnext.math.f16round.js b/node_modules/core-js/modules/esnext.math.f16round.js new file mode 100644 index 0000000..09a3e01 --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.f16round.js @@ -0,0 +1,7 @@ +'use strict'; +var $ = require('../internals/export'); +var f16round = require('../internals/math-f16round'); + +// `Math.f16round` method +// https://github.com/tc39/proposal-float16array +$({ target: 'Math', stat: true }, { f16round: f16round }); diff --git a/node_modules/core-js/modules/esnext.math.fscale.js b/node_modules/core-js/modules/esnext.math.fscale.js new file mode 100644 index 0000000..d9767c5 --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.fscale.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); + +var scale = require('../internals/math-scale'); +var fround = require('../internals/math-fround'); + +// `Math.fscale` method +// https://rwaldron.github.io/proposal-math-extensions/ +$({ target: 'Math', stat: true, forced: true }, { + fscale: function fscale(x, inLow, inHigh, outLow, outHigh) { + return fround(scale(x, inLow, inHigh, outLow, outHigh)); + } +}); diff --git a/node_modules/core-js/modules/esnext.math.iaddh.js b/node_modules/core-js/modules/esnext.math.iaddh.js new file mode 100644 index 0000000..f446d88 --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.iaddh.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); + +// `Math.iaddh` method +// https://gist.github.com/BrendanEich/4294d5c212a6d2254703 +// TODO: Remove from `core-js@4` +$({ target: 'Math', stat: true, forced: true }, { + iaddh: function iaddh(x0, x1, y0, y1) { + var $x0 = x0 >>> 0; + var $x1 = x1 >>> 0; + var $y0 = y0 >>> 0; + return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>> 31) | 0; + } +}); diff --git a/node_modules/core-js/modules/esnext.math.imulh.js b/node_modules/core-js/modules/esnext.math.imulh.js new file mode 100644 index 0000000..b3c8ad6 --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.imulh.js @@ -0,0 +1,19 @@ +'use strict'; +var $ = require('../internals/export'); + +// `Math.imulh` method +// https://gist.github.com/BrendanEich/4294d5c212a6d2254703 +// TODO: Remove from `core-js@4` +$({ target: 'Math', stat: true, forced: true }, { + imulh: function imulh(u, v) { + var UINT16 = 0xFFFF; + var $u = +u; + var $v = +v; + var u0 = $u & UINT16; + var v0 = $v & UINT16; + var u1 = $u >> 16; + var v1 = $v >> 16; + var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16); + return u1 * v1 + (t >> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >> 16); + } +}); diff --git a/node_modules/core-js/modules/esnext.math.isubh.js b/node_modules/core-js/modules/esnext.math.isubh.js new file mode 100644 index 0000000..92674e5 --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.isubh.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); + +// `Math.isubh` method +// https://gist.github.com/BrendanEich/4294d5c212a6d2254703 +// TODO: Remove from `core-js@4` +$({ target: 'Math', stat: true, forced: true }, { + isubh: function isubh(x0, x1, y0, y1) { + var $x0 = x0 >>> 0; + var $x1 = x1 >>> 0; + var $y0 = y0 >>> 0; + return $x1 - (y1 >>> 0) - ((~$x0 & $y0 | ~($x0 ^ $y0) & $x0 - $y0 >>> 0) >>> 31) | 0; + } +}); diff --git a/node_modules/core-js/modules/esnext.math.rad-per-deg.js b/node_modules/core-js/modules/esnext.math.rad-per-deg.js new file mode 100644 index 0000000..ea50751 --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.rad-per-deg.js @@ -0,0 +1,8 @@ +'use strict'; +var $ = require('../internals/export'); + +// `Math.RAD_PER_DEG` constant +// https://rwaldron.github.io/proposal-math-extensions/ +$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true }, { + RAD_PER_DEG: 180 / Math.PI +}); diff --git a/node_modules/core-js/modules/esnext.math.radians.js b/node_modules/core-js/modules/esnext.math.radians.js new file mode 100644 index 0000000..ea62271 --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.radians.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); + +var DEG_PER_RAD = Math.PI / 180; + +// `Math.radians` method +// https://rwaldron.github.io/proposal-math-extensions/ +$({ target: 'Math', stat: true, forced: true }, { + radians: function radians(degrees) { + return degrees * DEG_PER_RAD; + } +}); diff --git a/node_modules/core-js/modules/esnext.math.scale.js b/node_modules/core-js/modules/esnext.math.scale.js new file mode 100644 index 0000000..be0b6c4 --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.scale.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var scale = require('../internals/math-scale'); + +// `Math.scale` method +// https://rwaldron.github.io/proposal-math-extensions/ +$({ target: 'Math', stat: true, forced: true }, { + scale: scale +}); diff --git a/node_modules/core-js/modules/esnext.math.seeded-prng.js b/node_modules/core-js/modules/esnext.math.seeded-prng.js new file mode 100644 index 0000000..3ca520d --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.seeded-prng.js @@ -0,0 +1,36 @@ +'use strict'; +var $ = require('../internals/export'); +var anObject = require('../internals/an-object'); +var numberIsFinite = require('../internals/number-is-finite'); +var createIteratorConstructor = require('../internals/iterator-create-constructor'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var InternalStateModule = require('../internals/internal-state'); + +var SEEDED_RANDOM = 'Seeded Random'; +var SEEDED_RANDOM_GENERATOR = SEEDED_RANDOM + ' Generator'; +var SEED_TYPE_ERROR = 'Math.seededPRNG() argument should have a "seed" field with a finite value.'; +var setInternalState = InternalStateModule.set; +var getInternalState = InternalStateModule.getterFor(SEEDED_RANDOM_GENERATOR); +var $TypeError = TypeError; + +var $SeededRandomGenerator = createIteratorConstructor(function SeededRandomGenerator(seed) { + setInternalState(this, { + type: SEEDED_RANDOM_GENERATOR, + seed: seed % 2147483647 + }); +}, SEEDED_RANDOM, function next() { + var state = getInternalState(this); + var seed = state.seed = (state.seed * 1103515245 + 12345) % 2147483647; + return createIterResultObject((seed & 1073741823) / 1073741823, false); +}); + +// `Math.seededPRNG` method +// https://github.com/tc39/proposal-seeded-random +// based on https://github.com/tc39/proposal-seeded-random/blob/78b8258835b57fc2100d076151ab506bc3202ae6/demo.html +$({ target: 'Math', stat: true, forced: true }, { + seededPRNG: function seededPRNG(it) { + var seed = anObject(it).seed; + if (!numberIsFinite(seed)) throw new $TypeError(SEED_TYPE_ERROR); + return new $SeededRandomGenerator(seed); + } +}); diff --git a/node_modules/core-js/modules/esnext.math.signbit.js b/node_modules/core-js/modules/esnext.math.signbit.js new file mode 100644 index 0000000..1d4cad0 --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.signbit.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); + +// `Math.signbit` method +// https://github.com/tc39/proposal-Math.signbit +$({ target: 'Math', stat: true, forced: true }, { + signbit: function signbit(x) { + var n = +x; + // eslint-disable-next-line no-self-compare -- NaN check + return n === n && n === 0 ? 1 / n === -Infinity : n < 0; + } +}); diff --git a/node_modules/core-js/modules/esnext.math.sum-precise.js b/node_modules/core-js/modules/esnext.math.sum-precise.js new file mode 100644 index 0000000..cf6aa69 --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.sum-precise.js @@ -0,0 +1,151 @@ +'use strict'; +// based on Shewchuk's algorithm for exactly floating point addition +// adapted from https://github.com/tc39/proposal-math-sum/blob/3513d58323a1ae25560e8700aa5294500c6c9287/polyfill/polyfill.mjs +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var iterate = require('../internals/iterate'); + +var $RangeError = RangeError; +var $TypeError = TypeError; +var $Infinity = Infinity; +var $NaN = NaN; +var abs = Math.abs; +var pow = Math.pow; +var push = uncurryThis([].push); + +var POW_2_1023 = pow(2, 1023); +var MAX_SAFE_INTEGER = pow(2, 53) - 1; // 2 ** 53 - 1 === 9007199254740992 +var MAX_DOUBLE = Number.MAX_VALUE; // 2 ** 1024 - 2 ** (1023 - 52) === 1.79769313486231570815e+308 +var MAX_ULP = pow(2, 971); // 2 ** (1023 - 52) === 1.99584030953471981166e+292 + +var NOT_A_NUMBER = {}; +var MINUS_INFINITY = {}; +var PLUS_INFINITY = {}; +var MINUS_ZERO = {}; +var FINITE = {}; + +// prerequisite: abs(x) >= abs(y) +var twosum = function (x, y) { + var hi = x + y; + var lo = y - (hi - x); + return { hi: hi, lo: lo }; +}; + +// `Math.sumPrecise` method +// https://github.com/tc39/proposal-math-sum +$({ target: 'Math', stat: true, forced: true }, { + // eslint-disable-next-line max-statements -- ok + sumPrecise: function sumPrecise(items) { + var numbers = []; + var count = 0; + var state = MINUS_ZERO; + + iterate(items, function (n) { + if (++count >= MAX_SAFE_INTEGER) throw new $RangeError('Maximum allowed index exceeded'); + if (typeof n != 'number') throw new $TypeError('Value is not a number'); + if (state !== NOT_A_NUMBER) { + // eslint-disable-next-line no-self-compare -- NaN check + if (n !== n) state = NOT_A_NUMBER; + else if (n === $Infinity) state = state === MINUS_INFINITY ? NOT_A_NUMBER : PLUS_INFINITY; + else if (n === -$Infinity) state = state === PLUS_INFINITY ? NOT_A_NUMBER : MINUS_INFINITY; + else if ((n !== 0 || (1 / n) === $Infinity) && (state === MINUS_ZERO || state === FINITE)) { + state = FINITE; + push(numbers, n); + } + } + }); + + switch (state) { + case NOT_A_NUMBER: return $NaN; + case MINUS_INFINITY: return -$Infinity; + case PLUS_INFINITY: return $Infinity; + case MINUS_ZERO: return -0; + } + + var partials = []; + var overflow = 0; // conceptually 2 ** 1024 times this value; the final partial is biased by this amount + var x, y, sum, hi, lo, tmp; + + for (var i = 0; i < numbers.length; i++) { + x = numbers[i]; + var actuallyUsedPartials = 0; + for (var j = 0; j < partials.length; j++) { + y = partials[j]; + if (abs(x) < abs(y)) { + tmp = x; + x = y; + y = tmp; + } + sum = twosum(x, y); + hi = sum.hi; + lo = sum.lo; + if (abs(hi) === $Infinity) { + var sign = hi === $Infinity ? 1 : -1; + overflow += sign; + + x = (x - (sign * POW_2_1023)) - (sign * POW_2_1023); + if (abs(x) < abs(y)) { + tmp = x; + x = y; + y = tmp; + } + sum = twosum(x, y); + hi = sum.hi; + lo = sum.lo; + } + if (lo !== 0) partials[actuallyUsedPartials++] = lo; + x = hi; + } + partials.length = actuallyUsedPartials; + if (x !== 0) push(partials, x); + } + + // compute the exact sum of partials, stopping once we lose precision + var n = partials.length - 1; + hi = 0; + lo = 0; + + if (overflow !== 0) { + var next = n >= 0 ? partials[n] : 0; + n--; + if (abs(overflow) > 1 || (overflow > 0 && next > 0) || (overflow < 0 && next < 0)) { + return overflow > 0 ? $Infinity : -$Infinity; + } + // here we actually have to do the arithmetic + // drop a factor of 2 so we can do it without overflow + // assert(abs(overflow) === 1) + sum = twosum(overflow * POW_2_1023, next / 2); + hi = sum.hi; + lo = sum.lo; + lo *= 2; + if (abs(2 * hi) === $Infinity) { + // rounding to the maximum value + if (hi > 0) { + return (hi === POW_2_1023 && lo === -(MAX_ULP / 2) && n >= 0 && partials[n] < 0) ? MAX_DOUBLE : $Infinity; + } return (hi === -POW_2_1023 && lo === (MAX_ULP / 2) && n >= 0 && partials[n] > 0) ? -MAX_DOUBLE : -$Infinity; + } + + if (lo !== 0) { + partials[++n] = lo; + lo = 0; + } + + hi *= 2; + } + + while (n >= 0) { + sum = twosum(hi, partials[n--]); + hi = sum.hi; + lo = sum.lo; + if (lo !== 0) break; + } + + if (n >= 0 && ((lo < 0 && partials[n] < 0) || (lo > 0 && partials[n] > 0))) { + y = lo * 2; + x = hi + y; + if (y === x - hi) hi = x; + } + + return hi; + } +}); diff --git a/node_modules/core-js/modules/esnext.math.umulh.js b/node_modules/core-js/modules/esnext.math.umulh.js new file mode 100644 index 0000000..db995ce --- /dev/null +++ b/node_modules/core-js/modules/esnext.math.umulh.js @@ -0,0 +1,19 @@ +'use strict'; +var $ = require('../internals/export'); + +// `Math.umulh` method +// https://gist.github.com/BrendanEich/4294d5c212a6d2254703 +// TODO: Remove from `core-js@4` +$({ target: 'Math', stat: true, forced: true }, { + umulh: function umulh(u, v) { + var UINT16 = 0xFFFF; + var $u = +u; + var $v = +v; + var u0 = $u & UINT16; + var v0 = $v & UINT16; + var u1 = $u >>> 16; + var v1 = $v >>> 16; + var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16); + return u1 * v1 + (t >>> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >>> 16); + } +}); diff --git a/node_modules/core-js/modules/esnext.number.from-string.js b/node_modules/core-js/modules/esnext.number.from-string.js new file mode 100644 index 0000000..f3851ae --- /dev/null +++ b/node_modules/core-js/modules/esnext.number.from-string.js @@ -0,0 +1,41 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); + +var INVALID_NUMBER_REPRESENTATION = 'Invalid number representation'; +var INVALID_RADIX = 'Invalid radix'; +var $RangeError = RangeError; +var $SyntaxError = SyntaxError; +var $TypeError = TypeError; +var $parseInt = parseInt; +var pow = Math.pow; +var valid = /^[\d.a-z]+$/; +var charAt = uncurryThis(''.charAt); +var exec = uncurryThis(valid.exec); +var numberToString = uncurryThis(1.0.toString); +var stringSlice = uncurryThis(''.slice); +var split = uncurryThis(''.split); + +// `Number.fromString` method +// https://github.com/tc39/proposal-number-fromstring +$({ target: 'Number', stat: true, forced: true }, { + fromString: function fromString(string, radix) { + var sign = 1; + if (typeof string != 'string') throw new $TypeError(INVALID_NUMBER_REPRESENTATION); + if (!string.length) throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION); + if (charAt(string, 0) === '-') { + sign = -1; + string = stringSlice(string, 1); + if (!string.length) throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION); + } + var R = radix === undefined ? 10 : toIntegerOrInfinity(radix); + if (R < 2 || R > 36) throw new $RangeError(INVALID_RADIX); + if (!exec(valid, string)) throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION); + var parts = split(string, '.'); + var mathNum = $parseInt(parts[0], R); + if (parts.length > 1) mathNum += $parseInt(parts[1], R) / pow(R, parts[1].length); + if (R === 10 && numberToString(mathNum, R) !== string) throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION); + return sign * mathNum; + } +}); diff --git a/node_modules/core-js/modules/esnext.number.range.js b/node_modules/core-js/modules/esnext.number.range.js new file mode 100644 index 0000000..5f44694 --- /dev/null +++ b/node_modules/core-js/modules/esnext.number.range.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var NumericRangeIterator = require('../internals/numeric-range-iterator'); + +// `Number.range` method +// https://github.com/tc39/proposal-Number.range +// TODO: Remove from `core-js@4` +$({ target: 'Number', stat: true, forced: true }, { + range: function range(start, end, option) { + return new NumericRangeIterator(start, end, option, 'number', 0, 1); + } +}); diff --git a/node_modules/core-js/modules/esnext.object.group-by.js b/node_modules/core-js/modules/esnext.object.group-by.js new file mode 100644 index 0000000..80845bc --- /dev/null +++ b/node_modules/core-js/modules/esnext.object.group-by.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.object.group-by'); diff --git a/node_modules/core-js/modules/esnext.object.has-own.js b/node_modules/core-js/modules/esnext.object.has-own.js new file mode 100644 index 0000000..12bf558 --- /dev/null +++ b/node_modules/core-js/modules/esnext.object.has-own.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.object.has-own'); diff --git a/node_modules/core-js/modules/esnext.object.iterate-entries.js b/node_modules/core-js/modules/esnext.object.iterate-entries.js new file mode 100644 index 0000000..f93b684 --- /dev/null +++ b/node_modules/core-js/modules/esnext.object.iterate-entries.js @@ -0,0 +1,12 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var ObjectIterator = require('../internals/object-iterator'); + +// `Object.iterateEntries` method +// https://github.com/tc39/proposal-object-iteration +$({ target: 'Object', stat: true, forced: true }, { + iterateEntries: function iterateEntries(object) { + return new ObjectIterator(object, 'entries'); + } +}); diff --git a/node_modules/core-js/modules/esnext.object.iterate-keys.js b/node_modules/core-js/modules/esnext.object.iterate-keys.js new file mode 100644 index 0000000..41e5de9 --- /dev/null +++ b/node_modules/core-js/modules/esnext.object.iterate-keys.js @@ -0,0 +1,12 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var ObjectIterator = require('../internals/object-iterator'); + +// `Object.iterateKeys` method +// https://github.com/tc39/proposal-object-iteration +$({ target: 'Object', stat: true, forced: true }, { + iterateKeys: function iterateKeys(object) { + return new ObjectIterator(object, 'keys'); + } +}); diff --git a/node_modules/core-js/modules/esnext.object.iterate-values.js b/node_modules/core-js/modules/esnext.object.iterate-values.js new file mode 100644 index 0000000..490abc8 --- /dev/null +++ b/node_modules/core-js/modules/esnext.object.iterate-values.js @@ -0,0 +1,12 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var ObjectIterator = require('../internals/object-iterator'); + +// `Object.iterateValues` method +// https://github.com/tc39/proposal-object-iteration +$({ target: 'Object', stat: true, forced: true }, { + iterateValues: function iterateValues(object) { + return new ObjectIterator(object, 'values'); + } +}); diff --git a/node_modules/core-js/modules/esnext.observable.constructor.js b/node_modules/core-js/modules/esnext.observable.constructor.js new file mode 100644 index 0000000..47761a7 --- /dev/null +++ b/node_modules/core-js/modules/esnext.observable.constructor.js @@ -0,0 +1,187 @@ +'use strict'; +// https://github.com/tc39/proposal-observable +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var DESCRIPTORS = require('../internals/descriptors'); +var setSpecies = require('../internals/set-species'); +var aCallable = require('../internals/a-callable'); +var anObject = require('../internals/an-object'); +var anInstance = require('../internals/an-instance'); +var isCallable = require('../internals/is-callable'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var isObject = require('../internals/is-object'); +var getMethod = require('../internals/get-method'); +var defineBuiltIn = require('../internals/define-built-in'); +var defineBuiltIns = require('../internals/define-built-ins'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var hostReportErrors = require('../internals/host-report-errors'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var InternalStateModule = require('../internals/internal-state'); + +var $$OBSERVABLE = wellKnownSymbol('observable'); +var OBSERVABLE = 'Observable'; +var SUBSCRIPTION = 'Subscription'; +var SUBSCRIPTION_OBSERVER = 'SubscriptionObserver'; +var getterFor = InternalStateModule.getterFor; +var setInternalState = InternalStateModule.set; +var getObservableInternalState = getterFor(OBSERVABLE); +var getSubscriptionInternalState = getterFor(SUBSCRIPTION); +var getSubscriptionObserverInternalState = getterFor(SUBSCRIPTION_OBSERVER); + +var SubscriptionState = function (observer) { + this.observer = anObject(observer); + this.cleanup = null; + this.subscriptionObserver = null; +}; + +SubscriptionState.prototype = { + type: SUBSCRIPTION, + clean: function () { + var cleanup = this.cleanup; + if (cleanup) { + this.cleanup = null; + try { + cleanup(); + } catch (error) { + hostReportErrors(error); + } + } + }, + close: function () { + if (!DESCRIPTORS) { + var subscription = this.facade; + var subscriptionObserver = this.subscriptionObserver; + subscription.closed = true; + if (subscriptionObserver) subscriptionObserver.closed = true; + } this.observer = null; + }, + isClosed: function () { + return this.observer === null; + } +}; + +var Subscription = function (observer, subscriber) { + var subscriptionState = setInternalState(this, new SubscriptionState(observer)); + var start; + if (!DESCRIPTORS) this.closed = false; + try { + if (start = getMethod(observer, 'start')) call(start, observer, this); + } catch (error) { + hostReportErrors(error); + } + if (subscriptionState.isClosed()) return; + var subscriptionObserver = subscriptionState.subscriptionObserver = new SubscriptionObserver(subscriptionState); + try { + var cleanup = subscriber(subscriptionObserver); + var subscription = cleanup; + if (!isNullOrUndefined(cleanup)) subscriptionState.cleanup = isCallable(cleanup.unsubscribe) + ? function () { subscription.unsubscribe(); } + : aCallable(cleanup); + } catch (error) { + subscriptionObserver.error(error); + return; + } if (subscriptionState.isClosed()) subscriptionState.clean(); +}; + +Subscription.prototype = defineBuiltIns({}, { + unsubscribe: function unsubscribe() { + var subscriptionState = getSubscriptionInternalState(this); + if (!subscriptionState.isClosed()) { + subscriptionState.close(); + subscriptionState.clean(); + } + } +}); + +if (DESCRIPTORS) defineBuiltInAccessor(Subscription.prototype, 'closed', { + configurable: true, + get: function closed() { + return getSubscriptionInternalState(this).isClosed(); + } +}); + +var SubscriptionObserver = function (subscriptionState) { + setInternalState(this, { + type: SUBSCRIPTION_OBSERVER, + subscriptionState: subscriptionState + }); + if (!DESCRIPTORS) this.closed = false; +}; + +SubscriptionObserver.prototype = defineBuiltIns({}, { + next: function next(value) { + var subscriptionState = getSubscriptionObserverInternalState(this).subscriptionState; + if (!subscriptionState.isClosed()) { + var observer = subscriptionState.observer; + try { + var nextMethod = getMethod(observer, 'next'); + if (nextMethod) call(nextMethod, observer, value); + } catch (error) { + hostReportErrors(error); + } + } + }, + error: function error(value) { + var subscriptionState = getSubscriptionObserverInternalState(this).subscriptionState; + if (!subscriptionState.isClosed()) { + var observer = subscriptionState.observer; + subscriptionState.close(); + try { + var errorMethod = getMethod(observer, 'error'); + if (errorMethod) call(errorMethod, observer, value); + else hostReportErrors(value); + } catch (err) { + hostReportErrors(err); + } subscriptionState.clean(); + } + }, + complete: function complete() { + var subscriptionState = getSubscriptionObserverInternalState(this).subscriptionState; + if (!subscriptionState.isClosed()) { + var observer = subscriptionState.observer; + subscriptionState.close(); + try { + var completeMethod = getMethod(observer, 'complete'); + if (completeMethod) call(completeMethod, observer); + } catch (error) { + hostReportErrors(error); + } subscriptionState.clean(); + } + } +}); + +if (DESCRIPTORS) defineBuiltInAccessor(SubscriptionObserver.prototype, 'closed', { + configurable: true, + get: function closed() { + return getSubscriptionObserverInternalState(this).subscriptionState.isClosed(); + } +}); + +var $Observable = function Observable(subscriber) { + anInstance(this, ObservablePrototype); + setInternalState(this, { + type: OBSERVABLE, + subscriber: aCallable(subscriber) + }); +}; + +var ObservablePrototype = $Observable.prototype; + +defineBuiltIns(ObservablePrototype, { + subscribe: function subscribe(observer) { + var length = arguments.length; + return new Subscription(isCallable(observer) ? { + next: observer, + error: length > 1 ? arguments[1] : undefined, + complete: length > 2 ? arguments[2] : undefined + } : isObject(observer) ? observer : {}, getObservableInternalState(this).subscriber); + } +}); + +defineBuiltIn(ObservablePrototype, $$OBSERVABLE, function () { return this; }); + +$({ global: true, constructor: true, forced: true }, { + Observable: $Observable +}); + +setSpecies(OBSERVABLE); diff --git a/node_modules/core-js/modules/esnext.observable.from.js b/node_modules/core-js/modules/esnext.observable.from.js new file mode 100644 index 0000000..e1f81c1 --- /dev/null +++ b/node_modules/core-js/modules/esnext.observable.from.js @@ -0,0 +1,35 @@ +'use strict'; +var $ = require('../internals/export'); +var getBuiltIn = require('../internals/get-built-in'); +var call = require('../internals/function-call'); +var anObject = require('../internals/an-object'); +var isConstructor = require('../internals/is-constructor'); +var getIterator = require('../internals/get-iterator'); +var getMethod = require('../internals/get-method'); +var iterate = require('../internals/iterate'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var $$OBSERVABLE = wellKnownSymbol('observable'); + +// `Observable.from` method +// https://github.com/tc39/proposal-observable +$({ target: 'Observable', stat: true, forced: true }, { + from: function from(x) { + var C = isConstructor(this) ? this : getBuiltIn('Observable'); + var observableMethod = getMethod(anObject(x), $$OBSERVABLE); + if (observableMethod) { + var observable = anObject(call(observableMethod, x)); + return observable.constructor === C ? observable : new C(function (observer) { + return observable.subscribe(observer); + }); + } + var iterator = getIterator(x); + return new C(function (observer) { + iterate(iterator, function (it, stop) { + observer.next(it); + if (observer.closed) return stop(); + }, { IS_ITERATOR: true, INTERRUPTED: true }); + observer.complete(); + }); + } +}); diff --git a/node_modules/core-js/modules/esnext.observable.js b/node_modules/core-js/modules/esnext.observable.js new file mode 100644 index 0000000..7f37b46 --- /dev/null +++ b/node_modules/core-js/modules/esnext.observable.js @@ -0,0 +1,5 @@ +'use strict'; +// TODO: Remove this module from `core-js@4` since it's split to modules listed below +require('../modules/esnext.observable.constructor'); +require('../modules/esnext.observable.from'); +require('../modules/esnext.observable.of'); diff --git a/node_modules/core-js/modules/esnext.observable.of.js b/node_modules/core-js/modules/esnext.observable.of.js new file mode 100644 index 0000000..3082f04 --- /dev/null +++ b/node_modules/core-js/modules/esnext.observable.of.js @@ -0,0 +1,24 @@ +'use strict'; +var $ = require('../internals/export'); +var getBuiltIn = require('../internals/get-built-in'); +var isConstructor = require('../internals/is-constructor'); + +var Array = getBuiltIn('Array'); + +// `Observable.of` method +// https://github.com/tc39/proposal-observable +$({ target: 'Observable', stat: true, forced: true }, { + of: function of() { + var C = isConstructor(this) ? this : getBuiltIn('Observable'); + var length = arguments.length; + var items = Array(length); + var index = 0; + while (index < length) items[index] = arguments[index++]; + return new C(function (observer) { + for (var i = 0; i < length; i++) { + observer.next(items[i]); + if (observer.closed) return; + } observer.complete(); + }); + } +}); diff --git a/node_modules/core-js/modules/esnext.promise.all-settled.js b/node_modules/core-js/modules/esnext.promise.all-settled.js new file mode 100644 index 0000000..d7ba53d --- /dev/null +++ b/node_modules/core-js/modules/esnext.promise.all-settled.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.promise.all-settled.js'); diff --git a/node_modules/core-js/modules/esnext.promise.any.js b/node_modules/core-js/modules/esnext.promise.any.js new file mode 100644 index 0000000..b50dede --- /dev/null +++ b/node_modules/core-js/modules/esnext.promise.any.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.promise.any'); diff --git a/node_modules/core-js/modules/esnext.promise.try.js b/node_modules/core-js/modules/esnext.promise.try.js new file mode 100644 index 0000000..c2e2be3 --- /dev/null +++ b/node_modules/core-js/modules/esnext.promise.try.js @@ -0,0 +1,33 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var apply = require('../internals/function-apply'); +var slice = require('../internals/array-slice'); +var newPromiseCapabilityModule = require('../internals/new-promise-capability'); +var aCallable = require('../internals/a-callable'); +var perform = require('../internals/perform'); + +var Promise = globalThis.Promise; + +var ACCEPT_ARGUMENTS = false; +// Avoiding the use of polyfills of the previous iteration of this proposal +// that does not accept arguments of the callback +var FORCED = !Promise || !Promise['try'] || perform(function () { + Promise['try'](function (argument) { + ACCEPT_ARGUMENTS = argument === 8; + }, 8); +}).error || !ACCEPT_ARGUMENTS; + +// `Promise.try` method +// https://github.com/tc39/proposal-promise-try +$({ target: 'Promise', stat: true, forced: FORCED }, { + 'try': function (callbackfn /* , ...args */) { + var args = arguments.length > 1 ? slice(arguments, 1) : []; + var promiseCapability = newPromiseCapabilityModule.f(this); + var result = perform(function () { + return apply(aCallable(callbackfn), undefined, args); + }); + (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value); + return promiseCapability.promise; + } +}); diff --git a/node_modules/core-js/modules/esnext.promise.with-resolvers.js b/node_modules/core-js/modules/esnext.promise.with-resolvers.js new file mode 100644 index 0000000..1a34a66 --- /dev/null +++ b/node_modules/core-js/modules/esnext.promise.with-resolvers.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.promise.with-resolvers'); diff --git a/node_modules/core-js/modules/esnext.reflect.define-metadata.js b/node_modules/core-js/modules/esnext.reflect.define-metadata.js new file mode 100644 index 0000000..8ace9f4 --- /dev/null +++ b/node_modules/core-js/modules/esnext.reflect.define-metadata.js @@ -0,0 +1,17 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var ReflectMetadataModule = require('../internals/reflect-metadata'); +var anObject = require('../internals/an-object'); + +var toMetadataKey = ReflectMetadataModule.toKey; +var ordinaryDefineOwnMetadata = ReflectMetadataModule.set; + +// `Reflect.defineMetadata` method +// https://github.com/rbuckton/reflect-metadata +$({ target: 'Reflect', stat: true }, { + defineMetadata: function defineMetadata(metadataKey, metadataValue, target /* , targetKey */) { + var targetKey = arguments.length < 4 ? undefined : toMetadataKey(arguments[3]); + ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), targetKey); + } +}); diff --git a/node_modules/core-js/modules/esnext.reflect.delete-metadata.js b/node_modules/core-js/modules/esnext.reflect.delete-metadata.js new file mode 100644 index 0000000..13ba13d --- /dev/null +++ b/node_modules/core-js/modules/esnext.reflect.delete-metadata.js @@ -0,0 +1,22 @@ +'use strict'; +var $ = require('../internals/export'); +var ReflectMetadataModule = require('../internals/reflect-metadata'); +var anObject = require('../internals/an-object'); + +var toMetadataKey = ReflectMetadataModule.toKey; +var getOrCreateMetadataMap = ReflectMetadataModule.getMap; +var store = ReflectMetadataModule.store; + +// `Reflect.deleteMetadata` method +// https://github.com/rbuckton/reflect-metadata +$({ target: 'Reflect', stat: true }, { + deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) { + var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]); + var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false); + if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false; + if (metadataMap.size) return true; + var targetMetadata = store.get(target); + targetMetadata['delete'](targetKey); + return !!targetMetadata.size || store['delete'](target); + } +}); diff --git a/node_modules/core-js/modules/esnext.reflect.get-metadata-keys.js b/node_modules/core-js/modules/esnext.reflect.get-metadata-keys.js new file mode 100644 index 0000000..34fad84 --- /dev/null +++ b/node_modules/core-js/modules/esnext.reflect.get-metadata-keys.js @@ -0,0 +1,30 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var ReflectMetadataModule = require('../internals/reflect-metadata'); +var anObject = require('../internals/an-object'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); +var $arrayUniqueBy = require('../internals/array-unique-by'); + +var arrayUniqueBy = uncurryThis($arrayUniqueBy); +var concat = uncurryThis([].concat); +var ordinaryOwnMetadataKeys = ReflectMetadataModule.keys; +var toMetadataKey = ReflectMetadataModule.toKey; + +var ordinaryMetadataKeys = function (O, P) { + var oKeys = ordinaryOwnMetadataKeys(O, P); + var parent = getPrototypeOf(O); + if (parent === null) return oKeys; + var pKeys = ordinaryMetadataKeys(parent, P); + return pKeys.length ? oKeys.length ? arrayUniqueBy(concat(oKeys, pKeys)) : pKeys : oKeys; +}; + +// `Reflect.getMetadataKeys` method +// https://github.com/rbuckton/reflect-metadata +$({ target: 'Reflect', stat: true }, { + getMetadataKeys: function getMetadataKeys(target /* , targetKey */) { + var targetKey = arguments.length < 2 ? undefined : toMetadataKey(arguments[1]); + return ordinaryMetadataKeys(anObject(target), targetKey); + } +}); diff --git a/node_modules/core-js/modules/esnext.reflect.get-metadata.js b/node_modules/core-js/modules/esnext.reflect.get-metadata.js new file mode 100644 index 0000000..7258252 --- /dev/null +++ b/node_modules/core-js/modules/esnext.reflect.get-metadata.js @@ -0,0 +1,26 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var ReflectMetadataModule = require('../internals/reflect-metadata'); +var anObject = require('../internals/an-object'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); + +var ordinaryHasOwnMetadata = ReflectMetadataModule.has; +var ordinaryGetOwnMetadata = ReflectMetadataModule.get; +var toMetadataKey = ReflectMetadataModule.toKey; + +var ordinaryGetMetadata = function (MetadataKey, O, P) { + var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P); + if (hasOwn) return ordinaryGetOwnMetadata(MetadataKey, O, P); + var parent = getPrototypeOf(O); + return parent !== null ? ordinaryGetMetadata(MetadataKey, parent, P) : undefined; +}; + +// `Reflect.getMetadata` method +// https://github.com/rbuckton/reflect-metadata +$({ target: 'Reflect', stat: true }, { + getMetadata: function getMetadata(metadataKey, target /* , targetKey */) { + var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]); + return ordinaryGetMetadata(metadataKey, anObject(target), targetKey); + } +}); diff --git a/node_modules/core-js/modules/esnext.reflect.get-own-metadata-keys.js b/node_modules/core-js/modules/esnext.reflect.get-own-metadata-keys.js new file mode 100644 index 0000000..3b44e0f --- /dev/null +++ b/node_modules/core-js/modules/esnext.reflect.get-own-metadata-keys.js @@ -0,0 +1,17 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var ReflectMetadataModule = require('../internals/reflect-metadata'); +var anObject = require('../internals/an-object'); + +var ordinaryOwnMetadataKeys = ReflectMetadataModule.keys; +var toMetadataKey = ReflectMetadataModule.toKey; + +// `Reflect.getOwnMetadataKeys` method +// https://github.com/rbuckton/reflect-metadata +$({ target: 'Reflect', stat: true }, { + getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) { + var targetKey = arguments.length < 2 ? undefined : toMetadataKey(arguments[1]); + return ordinaryOwnMetadataKeys(anObject(target), targetKey); + } +}); diff --git a/node_modules/core-js/modules/esnext.reflect.get-own-metadata.js b/node_modules/core-js/modules/esnext.reflect.get-own-metadata.js new file mode 100644 index 0000000..e1f62fc --- /dev/null +++ b/node_modules/core-js/modules/esnext.reflect.get-own-metadata.js @@ -0,0 +1,17 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var ReflectMetadataModule = require('../internals/reflect-metadata'); +var anObject = require('../internals/an-object'); + +var ordinaryGetOwnMetadata = ReflectMetadataModule.get; +var toMetadataKey = ReflectMetadataModule.toKey; + +// `Reflect.getOwnMetadata` method +// https://github.com/rbuckton/reflect-metadata +$({ target: 'Reflect', stat: true }, { + getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) { + var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]); + return ordinaryGetOwnMetadata(metadataKey, anObject(target), targetKey); + } +}); diff --git a/node_modules/core-js/modules/esnext.reflect.has-metadata.js b/node_modules/core-js/modules/esnext.reflect.has-metadata.js new file mode 100644 index 0000000..26ce256 --- /dev/null +++ b/node_modules/core-js/modules/esnext.reflect.has-metadata.js @@ -0,0 +1,25 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var ReflectMetadataModule = require('../internals/reflect-metadata'); +var anObject = require('../internals/an-object'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); + +var ordinaryHasOwnMetadata = ReflectMetadataModule.has; +var toMetadataKey = ReflectMetadataModule.toKey; + +var ordinaryHasMetadata = function (MetadataKey, O, P) { + var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P); + if (hasOwn) return true; + var parent = getPrototypeOf(O); + return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false; +}; + +// `Reflect.hasMetadata` method +// https://github.com/rbuckton/reflect-metadata +$({ target: 'Reflect', stat: true }, { + hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) { + var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]); + return ordinaryHasMetadata(metadataKey, anObject(target), targetKey); + } +}); diff --git a/node_modules/core-js/modules/esnext.reflect.has-own-metadata.js b/node_modules/core-js/modules/esnext.reflect.has-own-metadata.js new file mode 100644 index 0000000..5e38885 --- /dev/null +++ b/node_modules/core-js/modules/esnext.reflect.has-own-metadata.js @@ -0,0 +1,17 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var ReflectMetadataModule = require('../internals/reflect-metadata'); +var anObject = require('../internals/an-object'); + +var ordinaryHasOwnMetadata = ReflectMetadataModule.has; +var toMetadataKey = ReflectMetadataModule.toKey; + +// `Reflect.hasOwnMetadata` method +// https://github.com/rbuckton/reflect-metadata +$({ target: 'Reflect', stat: true }, { + hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) { + var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]); + return ordinaryHasOwnMetadata(metadataKey, anObject(target), targetKey); + } +}); diff --git a/node_modules/core-js/modules/esnext.reflect.metadata.js b/node_modules/core-js/modules/esnext.reflect.metadata.js new file mode 100644 index 0000000..5d98d03 --- /dev/null +++ b/node_modules/core-js/modules/esnext.reflect.metadata.js @@ -0,0 +1,17 @@ +'use strict'; +var $ = require('../internals/export'); +var ReflectMetadataModule = require('../internals/reflect-metadata'); +var anObject = require('../internals/an-object'); + +var toMetadataKey = ReflectMetadataModule.toKey; +var ordinaryDefineOwnMetadata = ReflectMetadataModule.set; + +// `Reflect.metadata` method +// https://github.com/rbuckton/reflect-metadata +$({ target: 'Reflect', stat: true }, { + metadata: function metadata(metadataKey, metadataValue) { + return function decorator(target, key) { + ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetadataKey(key)); + }; + } +}); diff --git a/node_modules/core-js/modules/esnext.regexp.escape.js b/node_modules/core-js/modules/esnext.regexp.escape.js new file mode 100644 index 0000000..31af8a2 --- /dev/null +++ b/node_modules/core-js/modules/esnext.regexp.escape.js @@ -0,0 +1,70 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var aString = require('../internals/a-string'); +var hasOwn = require('../internals/has-own-property'); +var padStart = require('../internals/string-pad').start; +var WHITESPACES = require('../internals/whitespaces'); + +var $Array = Array; +var $escape = RegExp.escape; +var charAt = uncurryThis(''.charAt); +var charCodeAt = uncurryThis(''.charCodeAt); +var numberToString = uncurryThis(1.1.toString); +var join = uncurryThis([].join); +var FIRST_DIGIT_OR_ASCII = /^[0-9a-z]/i; +var SYNTAX_SOLIDUS = /^[$()*+./?[\\\]^{|}]/; +var OTHER_PUNCTUATORS_AND_WHITESPACES = RegExp('^[!"#%&\',\\-:;<=>@`~' + WHITESPACES + ']'); +var exec = uncurryThis(FIRST_DIGIT_OR_ASCII.exec); + +var ControlEscape = { + '\u0009': 't', + '\u000A': 'n', + '\u000B': 'v', + '\u000C': 'f', + '\u000D': 'r' +}; + +var escapeChar = function (chr) { + var hex = numberToString(charCodeAt(chr, 0), 16); + return hex.length < 3 ? '\\x' + padStart(hex, 2, '0') : '\\u' + padStart(hex, 4, '0'); +}; + +// Avoiding the use of polyfills of the previous iteration of this proposal +var FORCED = !$escape || $escape('ab') !== '\\x61b'; + +// `RegExp.escape` method +// https://github.com/tc39/proposal-regex-escaping +$({ target: 'RegExp', stat: true, forced: FORCED }, { + escape: function escape(S) { + aString(S); + var length = S.length; + var result = $Array(length); + + for (var i = 0; i < length; i++) { + var chr = charAt(S, i); + if (i === 0 && exec(FIRST_DIGIT_OR_ASCII, chr)) { + result[i] = escapeChar(chr); + } else if (hasOwn(ControlEscape, chr)) { + result[i] = '\\' + ControlEscape[chr]; + } else if (exec(SYNTAX_SOLIDUS, chr)) { + result[i] = '\\' + chr; + } else if (exec(OTHER_PUNCTUATORS_AND_WHITESPACES, chr)) { + result[i] = escapeChar(chr); + } else { + var charCode = charCodeAt(chr, 0); + // single UTF-16 code unit + if ((charCode & 0xF800) !== 0xD800) result[i] = chr; + // unpaired surrogate + else if (charCode >= 0xDC00 || i + 1 >= length || (charCodeAt(S, i + 1) & 0xFC00) !== 0xDC00) result[i] = escapeChar(chr); + // surrogate pair + else { + result[i] = chr; + result[++i] = charAt(S, i); + } + } + } + + return join(result, ''); + } +}); diff --git a/node_modules/core-js/modules/esnext.set.add-all.js b/node_modules/core-js/modules/esnext.set.add-all.js new file mode 100644 index 0000000..d168fbe --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.add-all.js @@ -0,0 +1,15 @@ +'use strict'; +var $ = require('../internals/export'); +var aSet = require('../internals/a-set'); +var add = require('../internals/set-helpers').add; + +// `Set.prototype.addAll` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Set', proto: true, real: true, forced: true }, { + addAll: function addAll(/* ...elements */) { + var set = aSet(this); + for (var k = 0, len = arguments.length; k < len; k++) { + add(set, arguments[k]); + } return set; + } +}); diff --git a/node_modules/core-js/modules/esnext.set.delete-all.js b/node_modules/core-js/modules/esnext.set.delete-all.js new file mode 100644 index 0000000..cbba874 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.delete-all.js @@ -0,0 +1,18 @@ +'use strict'; +var $ = require('../internals/export'); +var aSet = require('../internals/a-set'); +var remove = require('../internals/set-helpers').remove; + +// `Set.prototype.deleteAll` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Set', proto: true, real: true, forced: true }, { + deleteAll: function deleteAll(/* ...elements */) { + var collection = aSet(this); + var allDeleted = true; + var wasDeleted; + for (var k = 0, len = arguments.length; k < len; k++) { + wasDeleted = remove(collection, arguments[k]); + allDeleted = allDeleted && wasDeleted; + } return !!allDeleted; + } +}); diff --git a/node_modules/core-js/modules/esnext.set.difference.js b/node_modules/core-js/modules/esnext.set.difference.js new file mode 100644 index 0000000..d2a4008 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.difference.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var toSetLike = require('../internals/to-set-like'); +var $difference = require('../internals/set-difference'); + +// `Set.prototype.difference` method +// https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` +$({ target: 'Set', proto: true, real: true, forced: true }, { + difference: function difference(other) { + return call($difference, this, toSetLike(other)); + } +}); diff --git a/node_modules/core-js/modules/esnext.set.difference.v2.js b/node_modules/core-js/modules/esnext.set.difference.v2.js new file mode 100644 index 0000000..4fe7c7d --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.difference.v2.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.set.difference.v2'); diff --git a/node_modules/core-js/modules/esnext.set.every.js b/node_modules/core-js/modules/esnext.set.every.js new file mode 100644 index 0000000..999c6be --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.every.js @@ -0,0 +1,17 @@ +'use strict'; +var $ = require('../internals/export'); +var bind = require('../internals/function-bind-context'); +var aSet = require('../internals/a-set'); +var iterate = require('../internals/set-iterate'); + +// `Set.prototype.every` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Set', proto: true, real: true, forced: true }, { + every: function every(callbackfn /* , thisArg */) { + var set = aSet(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + return iterate(set, function (value) { + if (!boundFunction(value, value, set)) return false; + }, true) !== false; + } +}); diff --git a/node_modules/core-js/modules/esnext.set.filter.js b/node_modules/core-js/modules/esnext.set.filter.js new file mode 100644 index 0000000..84e1dac --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.filter.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var bind = require('../internals/function-bind-context'); +var aSet = require('../internals/a-set'); +var SetHelpers = require('../internals/set-helpers'); +var iterate = require('../internals/set-iterate'); + +var Set = SetHelpers.Set; +var add = SetHelpers.add; + +// `Set.prototype.filter` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Set', proto: true, real: true, forced: true }, { + filter: function filter(callbackfn /* , thisArg */) { + var set = aSet(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var newSet = new Set(); + iterate(set, function (value) { + if (boundFunction(value, value, set)) add(newSet, value); + }); + return newSet; + } +}); diff --git a/node_modules/core-js/modules/esnext.set.find.js b/node_modules/core-js/modules/esnext.set.find.js new file mode 100644 index 0000000..ae18ca7 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.find.js @@ -0,0 +1,18 @@ +'use strict'; +var $ = require('../internals/export'); +var bind = require('../internals/function-bind-context'); +var aSet = require('../internals/a-set'); +var iterate = require('../internals/set-iterate'); + +// `Set.prototype.find` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Set', proto: true, real: true, forced: true }, { + find: function find(callbackfn /* , thisArg */) { + var set = aSet(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var result = iterate(set, function (value) { + if (boundFunction(value, value, set)) return { value: value }; + }, true); + return result && result.value; + } +}); diff --git a/node_modules/core-js/modules/esnext.set.from.js b/node_modules/core-js/modules/esnext.set.from.js new file mode 100644 index 0000000..1704a4b --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.from.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var SetHelpers = require('../internals/set-helpers'); +var createCollectionFrom = require('../internals/collection-from'); + +// `Set.from` method +// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from +$({ target: 'Set', stat: true, forced: true }, { + from: createCollectionFrom(SetHelpers.Set, SetHelpers.add, false) +}); diff --git a/node_modules/core-js/modules/esnext.set.intersection.js b/node_modules/core-js/modules/esnext.set.intersection.js new file mode 100644 index 0000000..fed2c43 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.intersection.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var toSetLike = require('../internals/to-set-like'); +var $intersection = require('../internals/set-intersection'); + +// `Set.prototype.intersection` method +// https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` +$({ target: 'Set', proto: true, real: true, forced: true }, { + intersection: function intersection(other) { + return call($intersection, this, toSetLike(other)); + } +}); diff --git a/node_modules/core-js/modules/esnext.set.intersection.v2.js b/node_modules/core-js/modules/esnext.set.intersection.v2.js new file mode 100644 index 0000000..c417a81 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.intersection.v2.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.set.intersection.v2'); diff --git a/node_modules/core-js/modules/esnext.set.is-disjoint-from.js b/node_modules/core-js/modules/esnext.set.is-disjoint-from.js new file mode 100644 index 0000000..bec2b23 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.is-disjoint-from.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var toSetLike = require('../internals/to-set-like'); +var $isDisjointFrom = require('../internals/set-is-disjoint-from'); + +// `Set.prototype.isDisjointFrom` method +// https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` +$({ target: 'Set', proto: true, real: true, forced: true }, { + isDisjointFrom: function isDisjointFrom(other) { + return call($isDisjointFrom, this, toSetLike(other)); + } +}); diff --git a/node_modules/core-js/modules/esnext.set.is-disjoint-from.v2.js b/node_modules/core-js/modules/esnext.set.is-disjoint-from.v2.js new file mode 100644 index 0000000..1aec2f8 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.is-disjoint-from.v2.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.set.is-disjoint-from.v2'); diff --git a/node_modules/core-js/modules/esnext.set.is-subset-of.js b/node_modules/core-js/modules/esnext.set.is-subset-of.js new file mode 100644 index 0000000..7b30e93 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.is-subset-of.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var toSetLike = require('../internals/to-set-like'); +var $isSubsetOf = require('../internals/set-is-subset-of'); + +// `Set.prototype.isSubsetOf` method +// https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` +$({ target: 'Set', proto: true, real: true, forced: true }, { + isSubsetOf: function isSubsetOf(other) { + return call($isSubsetOf, this, toSetLike(other)); + } +}); diff --git a/node_modules/core-js/modules/esnext.set.is-subset-of.v2.js b/node_modules/core-js/modules/esnext.set.is-subset-of.v2.js new file mode 100644 index 0000000..a89f266 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.is-subset-of.v2.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.set.is-subset-of.v2'); diff --git a/node_modules/core-js/modules/esnext.set.is-superset-of.js b/node_modules/core-js/modules/esnext.set.is-superset-of.js new file mode 100644 index 0000000..4325085 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.is-superset-of.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var toSetLike = require('../internals/to-set-like'); +var $isSupersetOf = require('../internals/set-is-superset-of'); + +// `Set.prototype.isSupersetOf` method +// https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` +$({ target: 'Set', proto: true, real: true, forced: true }, { + isSupersetOf: function isSupersetOf(other) { + return call($isSupersetOf, this, toSetLike(other)); + } +}); diff --git a/node_modules/core-js/modules/esnext.set.is-superset-of.v2.js b/node_modules/core-js/modules/esnext.set.is-superset-of.v2.js new file mode 100644 index 0000000..c539c66 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.is-superset-of.v2.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.set.is-superset-of.v2'); diff --git a/node_modules/core-js/modules/esnext.set.join.js b/node_modules/core-js/modules/esnext.set.join.js new file mode 100644 index 0000000..4f7a62a --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.join.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); +var aSet = require('../internals/a-set'); +var iterate = require('../internals/set-iterate'); +var toString = require('../internals/to-string'); + +var arrayJoin = uncurryThis([].join); +var push = uncurryThis([].push); + +// `Set.prototype.join` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Set', proto: true, real: true, forced: true }, { + join: function join(separator) { + var set = aSet(this); + var sep = separator === undefined ? ',' : toString(separator); + var array = []; + iterate(set, function (value) { + push(array, value); + }); + return arrayJoin(array, sep); + } +}); diff --git a/node_modules/core-js/modules/esnext.set.map.js b/node_modules/core-js/modules/esnext.set.map.js new file mode 100644 index 0000000..2eea3de --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.map.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var bind = require('../internals/function-bind-context'); +var aSet = require('../internals/a-set'); +var SetHelpers = require('../internals/set-helpers'); +var iterate = require('../internals/set-iterate'); + +var Set = SetHelpers.Set; +var add = SetHelpers.add; + +// `Set.prototype.map` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Set', proto: true, real: true, forced: true }, { + map: function map(callbackfn /* , thisArg */) { + var set = aSet(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var newSet = new Set(); + iterate(set, function (value) { + add(newSet, boundFunction(value, value, set)); + }); + return newSet; + } +}); diff --git a/node_modules/core-js/modules/esnext.set.of.js b/node_modules/core-js/modules/esnext.set.of.js new file mode 100644 index 0000000..a1a5424 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.of.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var SetHelpers = require('../internals/set-helpers'); +var createCollectionOf = require('../internals/collection-of'); + +// `Set.of` method +// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of +$({ target: 'Set', stat: true, forced: true }, { + of: createCollectionOf(SetHelpers.Set, SetHelpers.add, false) +}); diff --git a/node_modules/core-js/modules/esnext.set.reduce.js b/node_modules/core-js/modules/esnext.set.reduce.js new file mode 100644 index 0000000..988af32 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.reduce.js @@ -0,0 +1,28 @@ +'use strict'; +var $ = require('../internals/export'); +var aCallable = require('../internals/a-callable'); +var aSet = require('../internals/a-set'); +var iterate = require('../internals/set-iterate'); + +var $TypeError = TypeError; + +// `Set.prototype.reduce` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Set', proto: true, real: true, forced: true }, { + reduce: function reduce(callbackfn /* , initialValue */) { + var set = aSet(this); + var noInitial = arguments.length < 2; + var accumulator = noInitial ? undefined : arguments[1]; + aCallable(callbackfn); + iterate(set, function (value) { + if (noInitial) { + noInitial = false; + accumulator = value; + } else { + accumulator = callbackfn(accumulator, value, value, set); + } + }); + if (noInitial) throw new $TypeError('Reduce of empty set with no initial value'); + return accumulator; + } +}); diff --git a/node_modules/core-js/modules/esnext.set.some.js b/node_modules/core-js/modules/esnext.set.some.js new file mode 100644 index 0000000..ab86d1c --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.some.js @@ -0,0 +1,17 @@ +'use strict'; +var $ = require('../internals/export'); +var bind = require('../internals/function-bind-context'); +var aSet = require('../internals/a-set'); +var iterate = require('../internals/set-iterate'); + +// `Set.prototype.some` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'Set', proto: true, real: true, forced: true }, { + some: function some(callbackfn /* , thisArg */) { + var set = aSet(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + return iterate(set, function (value) { + if (boundFunction(value, value, set)) return true; + }, true) === true; + } +}); diff --git a/node_modules/core-js/modules/esnext.set.symmetric-difference.js b/node_modules/core-js/modules/esnext.set.symmetric-difference.js new file mode 100644 index 0000000..fa697f0 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.symmetric-difference.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var toSetLike = require('../internals/to-set-like'); +var $symmetricDifference = require('../internals/set-symmetric-difference'); + +// `Set.prototype.symmetricDifference` method +// https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` +$({ target: 'Set', proto: true, real: true, forced: true }, { + symmetricDifference: function symmetricDifference(other) { + return call($symmetricDifference, this, toSetLike(other)); + } +}); diff --git a/node_modules/core-js/modules/esnext.set.symmetric-difference.v2.js b/node_modules/core-js/modules/esnext.set.symmetric-difference.v2.js new file mode 100644 index 0000000..0d1f18a --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.symmetric-difference.v2.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.set.symmetric-difference.v2'); diff --git a/node_modules/core-js/modules/esnext.set.union.js b/node_modules/core-js/modules/esnext.set.union.js new file mode 100644 index 0000000..0ff0696 --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.union.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); +var toSetLike = require('../internals/to-set-like'); +var $union = require('../internals/set-union'); + +// `Set.prototype.union` method +// https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` +$({ target: 'Set', proto: true, real: true, forced: true }, { + union: function union(other) { + return call($union, this, toSetLike(other)); + } +}); diff --git a/node_modules/core-js/modules/esnext.set.union.v2.js b/node_modules/core-js/modules/esnext.set.union.v2.js new file mode 100644 index 0000000..cd5c93f --- /dev/null +++ b/node_modules/core-js/modules/esnext.set.union.v2.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.set.union.v2'); diff --git a/node_modules/core-js/modules/esnext.string.at-alternative.js b/node_modules/core-js/modules/esnext.string.at-alternative.js new file mode 100644 index 0000000..50bc7d1 --- /dev/null +++ b/node_modules/core-js/modules/esnext.string.at-alternative.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.string.at-alternative'); diff --git a/node_modules/core-js/modules/esnext.string.at.js b/node_modules/core-js/modules/esnext.string.at.js new file mode 100644 index 0000000..88d4c95 --- /dev/null +++ b/node_modules/core-js/modules/esnext.string.at.js @@ -0,0 +1,19 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var $ = require('../internals/export'); +var charAt = require('../internals/string-multibyte').charAt; +var requireObjectCoercible = require('../internals/require-object-coercible'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var toString = require('../internals/to-string'); + +// `String.prototype.at` method +// https://github.com/mathiasbynens/String.prototype.at +$({ target: 'String', proto: true, forced: true }, { + at: function at(index) { + var S = toString(requireObjectCoercible(this)); + var len = S.length; + var relativeIndex = toIntegerOrInfinity(index); + var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex; + return (k < 0 || k >= len) ? undefined : charAt(S, k); + } +}); diff --git a/node_modules/core-js/modules/esnext.string.code-points.js b/node_modules/core-js/modules/esnext.string.code-points.js new file mode 100644 index 0000000..68720f4 --- /dev/null +++ b/node_modules/core-js/modules/esnext.string.code-points.js @@ -0,0 +1,40 @@ +'use strict'; +var $ = require('../internals/export'); +var createIteratorConstructor = require('../internals/iterator-create-constructor'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var requireObjectCoercible = require('../internals/require-object-coercible'); +var toString = require('../internals/to-string'); +var InternalStateModule = require('../internals/internal-state'); +var StringMultibyteModule = require('../internals/string-multibyte'); + +var codeAt = StringMultibyteModule.codeAt; +var charAt = StringMultibyteModule.charAt; +var STRING_ITERATOR = 'String Iterator'; +var setInternalState = InternalStateModule.set; +var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR); + +// TODO: unify with String#@@iterator +var $StringIterator = createIteratorConstructor(function StringIterator(string) { + setInternalState(this, { + type: STRING_ITERATOR, + string: string, + index: 0 + }); +}, 'String', function next() { + var state = getInternalState(this); + var string = state.string; + var index = state.index; + var point; + if (index >= string.length) return createIterResultObject(undefined, true); + point = charAt(string, index); + state.index += point.length; + return createIterResultObject({ codePoint: codeAt(point, 0), position: index }, false); +}); + +// `String.prototype.codePoints` method +// https://github.com/tc39/proposal-string-prototype-codepoints +$({ target: 'String', proto: true, forced: true }, { + codePoints: function codePoints() { + return new $StringIterator(toString(requireObjectCoercible(this))); + } +}); diff --git a/node_modules/core-js/modules/esnext.string.cooked.js b/node_modules/core-js/modules/esnext.string.cooked.js new file mode 100644 index 0000000..68c7e0a --- /dev/null +++ b/node_modules/core-js/modules/esnext.string.cooked.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var cooked = require('../internals/string-cooked'); + +// `String.cooked` method +// https://github.com/tc39/proposal-string-cooked +$({ target: 'String', stat: true, forced: true }, { + cooked: cooked +}); diff --git a/node_modules/core-js/modules/esnext.string.dedent.js b/node_modules/core-js/modules/esnext.string.dedent.js new file mode 100644 index 0000000..0f6f928 --- /dev/null +++ b/node_modules/core-js/modules/esnext.string.dedent.js @@ -0,0 +1,153 @@ +'use strict'; +var FREEZING = require('../internals/freezing'); +var $ = require('../internals/export'); +var makeBuiltIn = require('../internals/make-built-in'); +var uncurryThis = require('../internals/function-uncurry-this'); +var apply = require('../internals/function-apply'); +var anObject = require('../internals/an-object'); +var toObject = require('../internals/to-object'); +var isCallable = require('../internals/is-callable'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var defineProperty = require('../internals/object-define-property').f; +var createArrayFromList = require('../internals/array-slice'); +var WeakMapHelpers = require('../internals/weak-map-helpers'); +var cooked = require('../internals/string-cooked'); +var parse = require('../internals/string-parse'); +var whitespaces = require('../internals/whitespaces'); + +var DedentMap = new WeakMapHelpers.WeakMap(); +var weakMapGet = WeakMapHelpers.get; +var weakMapHas = WeakMapHelpers.has; +var weakMapSet = WeakMapHelpers.set; + +var $Array = Array; +var $TypeError = TypeError; +// eslint-disable-next-line es/no-object-freeze -- safe +var freeze = Object.freeze || Object; +// eslint-disable-next-line es/no-object-isfrozen -- safe +var isFrozen = Object.isFrozen; +var min = Math.min; +var charAt = uncurryThis(''.charAt); +var stringSlice = uncurryThis(''.slice); +var split = uncurryThis(''.split); +var exec = uncurryThis(/./.exec); + +var NEW_LINE = /([\n\u2028\u2029]|\r\n?)/g; +var LEADING_WHITESPACE = RegExp('^[' + whitespaces + ']*'); +var NON_WHITESPACE = RegExp('[^' + whitespaces + ']'); +var INVALID_TAG = 'Invalid tag'; +var INVALID_OPENING_LINE = 'Invalid opening line'; +var INVALID_CLOSING_LINE = 'Invalid closing line'; + +var dedentTemplateStringsArray = function (template) { + var rawInput = template.raw; + // https://github.com/tc39/proposal-string-dedent/issues/75 + if (FREEZING && !isFrozen(rawInput)) throw new $TypeError('Raw template should be frozen'); + if (weakMapHas(DedentMap, rawInput)) return weakMapGet(DedentMap, rawInput); + var raw = dedentStringsArray(rawInput); + var cookedArr = cookStrings(raw); + defineProperty(cookedArr, 'raw', { + value: freeze(raw) + }); + freeze(cookedArr); + weakMapSet(DedentMap, rawInput, cookedArr); + return cookedArr; +}; + +var dedentStringsArray = function (template) { + var t = toObject(template); + var length = lengthOfArrayLike(t); + var blocks = $Array(length); + var dedented = $Array(length); + var i = 0; + var lines, common, quasi, k; + + if (!length) throw new $TypeError(INVALID_TAG); + + for (; i < length; i++) { + var element = t[i]; + if (typeof element == 'string') blocks[i] = split(element, NEW_LINE); + else throw new $TypeError(INVALID_TAG); + } + + for (i = 0; i < length; i++) { + var lastSplit = i + 1 === length; + lines = blocks[i]; + if (i === 0) { + if (lines.length === 1 || lines[0].length > 0) { + throw new $TypeError(INVALID_OPENING_LINE); + } + lines[1] = ''; + } + if (lastSplit) { + if (lines.length === 1 || exec(NON_WHITESPACE, lines[lines.length - 1])) { + throw new $TypeError(INVALID_CLOSING_LINE); + } + lines[lines.length - 2] = ''; + lines[lines.length - 1] = ''; + } + // eslint-disable-next-line sonar/no-redundant-assignments -- false positive, https://github.com/SonarSource/SonarJS/issues/4767 + for (var j = 2; j < lines.length; j += 2) { + var text = lines[j]; + var lineContainsTemplateExpression = j + 1 === lines.length && !lastSplit; + var leading = exec(LEADING_WHITESPACE, text)[0]; + if (!lineContainsTemplateExpression && leading.length === text.length) { + lines[j] = ''; + continue; + } + common = commonLeadingIndentation(leading, common); + } + } + + var count = common ? common.length : 0; + + for (i = 0; i < length; i++) { + lines = blocks[i]; + quasi = lines[0]; + k = 1; + for (; k < lines.length; k += 2) { + quasi += lines[k] + stringSlice(lines[k + 1], count); + } + dedented[i] = quasi; + } + + return dedented; +}; + +var commonLeadingIndentation = function (a, b) { + if (b === undefined || a === b) return a; + var i = 0; + for (var len = min(a.length, b.length); i < len; i++) { + if (charAt(a, i) !== charAt(b, i)) break; + } + return stringSlice(a, 0, i); +}; + +var cookStrings = function (raw) { + var i = 0; + var length = raw.length; + var result = $Array(length); + for (; i < length; i++) { + result[i] = parse(raw[i]); + } return result; +}; + +var makeDedentTag = function (tag) { + return makeBuiltIn(function (template /* , ...substitutions */) { + var args = createArrayFromList(arguments); + args[0] = dedentTemplateStringsArray(anObject(template)); + return apply(tag, this, args); + }, ''); +}; + +var cookedDedentTag = makeDedentTag(cooked); + +// `String.dedent` method +// https://github.com/tc39/proposal-string-dedent +$({ target: 'String', stat: true, forced: true }, { + dedent: function dedent(templateOrFn /* , ...substitutions */) { + anObject(templateOrFn); + if (isCallable(templateOrFn)) return makeDedentTag(templateOrFn); + return apply(cookedDedentTag, this, arguments); + } +}); diff --git a/node_modules/core-js/modules/esnext.string.is-well-formed.js b/node_modules/core-js/modules/esnext.string.is-well-formed.js new file mode 100644 index 0000000..f6205b4 --- /dev/null +++ b/node_modules/core-js/modules/esnext.string.is-well-formed.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.string.is-well-formed'); diff --git a/node_modules/core-js/modules/esnext.string.match-all.js b/node_modules/core-js/modules/esnext.string.match-all.js new file mode 100644 index 0000000..420374c --- /dev/null +++ b/node_modules/core-js/modules/esnext.string.match-all.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.string.match-all'); diff --git a/node_modules/core-js/modules/esnext.string.replace-all.js b/node_modules/core-js/modules/esnext.string.replace-all.js new file mode 100644 index 0000000..74d6117 --- /dev/null +++ b/node_modules/core-js/modules/esnext.string.replace-all.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.string.replace-all'); diff --git a/node_modules/core-js/modules/esnext.string.to-well-formed.js b/node_modules/core-js/modules/esnext.string.to-well-formed.js new file mode 100644 index 0000000..4fcdcf2 --- /dev/null +++ b/node_modules/core-js/modules/esnext.string.to-well-formed.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.string.to-well-formed'); diff --git a/node_modules/core-js/modules/esnext.suppressed-error.constructor.js b/node_modules/core-js/modules/esnext.suppressed-error.constructor.js new file mode 100644 index 0000000..f1f57e9 --- /dev/null +++ b/node_modules/core-js/modules/esnext.suppressed-error.constructor.js @@ -0,0 +1,64 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); +var getPrototypeOf = require('../internals/object-get-prototype-of'); +var setPrototypeOf = require('../internals/object-set-prototype-of'); +var copyConstructorProperties = require('../internals/copy-constructor-properties'); +var create = require('../internals/object-create'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var createPropertyDescriptor = require('../internals/create-property-descriptor'); +var installErrorStack = require('../internals/error-stack-install'); +var normalizeStringArgument = require('../internals/normalize-string-argument'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var fails = require('../internals/fails'); +var IS_PURE = require('../internals/is-pure'); + +var NativeSuppressedError = globalThis.SuppressedError; +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var $Error = Error; + +// https://github.com/oven-sh/bun/issues/9282 +var WRONG_ARITY = !!NativeSuppressedError && NativeSuppressedError.length !== 3; + +// https://github.com/oven-sh/bun/issues/9283 +var EXTRA_ARGS_SUPPORT = !!NativeSuppressedError && fails(function () { + return new NativeSuppressedError(1, 2, 3, { cause: 4 }).cause === 4; +}); + +var PATCH = WRONG_ARITY || EXTRA_ARGS_SUPPORT; + +var $SuppressedError = function SuppressedError(error, suppressed, message) { + var isInstance = isPrototypeOf(SuppressedErrorPrototype, this); + var that; + if (setPrototypeOf) { + that = PATCH && (!isInstance || getPrototypeOf(this) === SuppressedErrorPrototype) + ? new NativeSuppressedError() + : setPrototypeOf(new $Error(), isInstance ? getPrototypeOf(this) : SuppressedErrorPrototype); + } else { + that = isInstance ? this : create(SuppressedErrorPrototype); + createNonEnumerableProperty(that, TO_STRING_TAG, 'Error'); + } + if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message)); + installErrorStack(that, $SuppressedError, that.stack, 1); + createNonEnumerableProperty(that, 'error', error); + createNonEnumerableProperty(that, 'suppressed', suppressed); + return that; +}; + +if (setPrototypeOf) setPrototypeOf($SuppressedError, $Error); +else copyConstructorProperties($SuppressedError, $Error, { name: true }); + +var SuppressedErrorPrototype = $SuppressedError.prototype = PATCH ? NativeSuppressedError.prototype : create($Error.prototype, { + constructor: createPropertyDescriptor(1, $SuppressedError), + message: createPropertyDescriptor(1, ''), + name: createPropertyDescriptor(1, 'SuppressedError') +}); + +if (PATCH && !IS_PURE) SuppressedErrorPrototype.constructor = $SuppressedError; + +// `SuppressedError` constructor +// https://github.com/tc39/proposal-explicit-resource-management +$({ global: true, constructor: true, arity: 3, forced: PATCH }, { + SuppressedError: $SuppressedError +}); diff --git a/node_modules/core-js/modules/esnext.symbol.async-dispose.js b/node_modules/core-js/modules/esnext.symbol.async-dispose.js new file mode 100644 index 0000000..76d7ede --- /dev/null +++ b/node_modules/core-js/modules/esnext.symbol.async-dispose.js @@ -0,0 +1,21 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); +var defineProperty = require('../internals/object-define-property').f; +var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; + +var Symbol = globalThis.Symbol; + +// `Symbol.asyncDispose` well-known symbol +// https://github.com/tc39/proposal-async-explicit-resource-management +defineWellKnownSymbol('asyncDispose'); + +if (Symbol) { + var descriptor = getOwnPropertyDescriptor(Symbol, 'asyncDispose'); + // workaround of NodeJS 20.4 bug + // https://github.com/nodejs/node/issues/48699 + // and incorrect descriptor from some transpilers and userland helpers + if (descriptor.enumerable && descriptor.configurable && descriptor.writable) { + defineProperty(Symbol, 'asyncDispose', { value: descriptor.value, enumerable: false, configurable: false, writable: false }); + } +} diff --git a/node_modules/core-js/modules/esnext.symbol.custom-matcher.js b/node_modules/core-js/modules/esnext.symbol.custom-matcher.js new file mode 100644 index 0000000..0950470 --- /dev/null +++ b/node_modules/core-js/modules/esnext.symbol.custom-matcher.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.customMatcher` well-known symbol +// https://github.com/tc39/proposal-pattern-matching +defineWellKnownSymbol('customMatcher'); diff --git a/node_modules/core-js/modules/esnext.symbol.dispose.js b/node_modules/core-js/modules/esnext.symbol.dispose.js new file mode 100644 index 0000000..4cae30c --- /dev/null +++ b/node_modules/core-js/modules/esnext.symbol.dispose.js @@ -0,0 +1,21 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); +var defineProperty = require('../internals/object-define-property').f; +var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; + +var Symbol = globalThis.Symbol; + +// `Symbol.dispose` well-known symbol +// https://github.com/tc39/proposal-explicit-resource-management +defineWellKnownSymbol('dispose'); + +if (Symbol) { + var descriptor = getOwnPropertyDescriptor(Symbol, 'dispose'); + // workaround of NodeJS 20.4 bug + // https://github.com/nodejs/node/issues/48699 + // and incorrect descriptor from some transpilers and userland helpers + if (descriptor.enumerable && descriptor.configurable && descriptor.writable) { + defineProperty(Symbol, 'dispose', { value: descriptor.value, enumerable: false, configurable: false, writable: false }); + } +} diff --git a/node_modules/core-js/modules/esnext.symbol.is-registered-symbol.js b/node_modules/core-js/modules/esnext.symbol.is-registered-symbol.js new file mode 100644 index 0000000..5cd5c20 --- /dev/null +++ b/node_modules/core-js/modules/esnext.symbol.is-registered-symbol.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var isRegisteredSymbol = require('../internals/symbol-is-registered'); + +// `Symbol.isRegisteredSymbol` method +// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol +$({ target: 'Symbol', stat: true }, { + isRegisteredSymbol: isRegisteredSymbol +}); diff --git a/node_modules/core-js/modules/esnext.symbol.is-registered.js b/node_modules/core-js/modules/esnext.symbol.is-registered.js new file mode 100644 index 0000000..777c972 --- /dev/null +++ b/node_modules/core-js/modules/esnext.symbol.is-registered.js @@ -0,0 +1,9 @@ +'use strict'; +var $ = require('../internals/export'); +var isRegisteredSymbol = require('../internals/symbol-is-registered'); + +// `Symbol.isRegistered` method +// obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol +$({ target: 'Symbol', stat: true, name: 'isRegisteredSymbol' }, { + isRegistered: isRegisteredSymbol +}); diff --git a/node_modules/core-js/modules/esnext.symbol.is-well-known-symbol.js b/node_modules/core-js/modules/esnext.symbol.is-well-known-symbol.js new file mode 100644 index 0000000..8663e05 --- /dev/null +++ b/node_modules/core-js/modules/esnext.symbol.is-well-known-symbol.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var isWellKnownSymbol = require('../internals/symbol-is-well-known'); + +// `Symbol.isWellKnownSymbol` method +// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol +// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected +$({ target: 'Symbol', stat: true, forced: true }, { + isWellKnownSymbol: isWellKnownSymbol +}); diff --git a/node_modules/core-js/modules/esnext.symbol.is-well-known.js b/node_modules/core-js/modules/esnext.symbol.is-well-known.js new file mode 100644 index 0000000..6c0e000 --- /dev/null +++ b/node_modules/core-js/modules/esnext.symbol.is-well-known.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var isWellKnownSymbol = require('../internals/symbol-is-well-known'); + +// `Symbol.isWellKnown` method +// obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol +// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected +$({ target: 'Symbol', stat: true, name: 'isWellKnownSymbol', forced: true }, { + isWellKnown: isWellKnownSymbol +}); diff --git a/node_modules/core-js/modules/esnext.symbol.matcher.js b/node_modules/core-js/modules/esnext.symbol.matcher.js new file mode 100644 index 0000000..ec224ae --- /dev/null +++ b/node_modules/core-js/modules/esnext.symbol.matcher.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.matcher` well-known symbol +// https://github.com/tc39/proposal-pattern-matching +defineWellKnownSymbol('matcher'); diff --git a/node_modules/core-js/modules/esnext.symbol.metadata-key.js b/node_modules/core-js/modules/esnext.symbol.metadata-key.js new file mode 100644 index 0000000..f0435c6 --- /dev/null +++ b/node_modules/core-js/modules/esnext.symbol.metadata-key.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.metadataKey` well-known symbol +// https://github.com/tc39/proposal-decorator-metadata +defineWellKnownSymbol('metadataKey'); diff --git a/node_modules/core-js/modules/esnext.symbol.metadata.js b/node_modules/core-js/modules/esnext.symbol.metadata.js new file mode 100644 index 0000000..182c936 --- /dev/null +++ b/node_modules/core-js/modules/esnext.symbol.metadata.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.metadata` well-known symbol +// https://github.com/tc39/proposal-decorators +defineWellKnownSymbol('metadata'); diff --git a/node_modules/core-js/modules/esnext.symbol.observable.js b/node_modules/core-js/modules/esnext.symbol.observable.js new file mode 100644 index 0000000..100044d --- /dev/null +++ b/node_modules/core-js/modules/esnext.symbol.observable.js @@ -0,0 +1,6 @@ +'use strict'; +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.observable` well-known symbol +// https://github.com/tc39/proposal-observable +defineWellKnownSymbol('observable'); diff --git a/node_modules/core-js/modules/esnext.symbol.pattern-match.js b/node_modules/core-js/modules/esnext.symbol.pattern-match.js new file mode 100644 index 0000000..bd58723 --- /dev/null +++ b/node_modules/core-js/modules/esnext.symbol.pattern-match.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: remove from `core-js@4` +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +// `Symbol.patternMatch` well-known symbol +// https://github.com/tc39/proposal-pattern-matching +defineWellKnownSymbol('patternMatch'); diff --git a/node_modules/core-js/modules/esnext.symbol.replace-all.js b/node_modules/core-js/modules/esnext.symbol.replace-all.js new file mode 100644 index 0000000..1bd2e1b --- /dev/null +++ b/node_modules/core-js/modules/esnext.symbol.replace-all.js @@ -0,0 +1,5 @@ +'use strict'; +// TODO: remove from `core-js@4` +var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); + +defineWellKnownSymbol('replaceAll'); diff --git a/node_modules/core-js/modules/esnext.typed-array.at.js b/node_modules/core-js/modules/esnext.typed-array.at.js new file mode 100644 index 0000000..e9d808c --- /dev/null +++ b/node_modules/core-js/modules/esnext.typed-array.at.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.typed-array.at'); diff --git a/node_modules/core-js/modules/esnext.typed-array.filter-out.js b/node_modules/core-js/modules/esnext.typed-array.filter-out.js new file mode 100644 index 0000000..deb9230 --- /dev/null +++ b/node_modules/core-js/modules/esnext.typed-array.filter-out.js @@ -0,0 +1,15 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $filterReject = require('../internals/array-iteration').filterReject; +var fromSpeciesAndList = require('../internals/typed-array-from-species-and-list'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.filterOut` method +// https://github.com/tc39/proposal-array-filtering +exportTypedArrayMethod('filterOut', function filterOut(callbackfn /* , thisArg */) { + var list = $filterReject(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); + return fromSpeciesAndList(this, list); +}, true); diff --git a/node_modules/core-js/modules/esnext.typed-array.filter-reject.js b/node_modules/core-js/modules/esnext.typed-array.filter-reject.js new file mode 100644 index 0000000..ed3375f --- /dev/null +++ b/node_modules/core-js/modules/esnext.typed-array.filter-reject.js @@ -0,0 +1,14 @@ +'use strict'; +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $filterReject = require('../internals/array-iteration').filterReject; +var fromSpeciesAndList = require('../internals/typed-array-from-species-and-list'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.filterReject` method +// https://github.com/tc39/proposal-array-filtering +exportTypedArrayMethod('filterReject', function filterReject(callbackfn /* , thisArg */) { + var list = $filterReject(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); + return fromSpeciesAndList(this, list); +}, true); diff --git a/node_modules/core-js/modules/esnext.typed-array.find-last-index.js b/node_modules/core-js/modules/esnext.typed-array.find-last-index.js new file mode 100644 index 0000000..9b35fb3 --- /dev/null +++ b/node_modules/core-js/modules/esnext.typed-array.find-last-index.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.typed-array.find-last-index'); diff --git a/node_modules/core-js/modules/esnext.typed-array.find-last.js b/node_modules/core-js/modules/esnext.typed-array.find-last.js new file mode 100644 index 0000000..ed44d53 --- /dev/null +++ b/node_modules/core-js/modules/esnext.typed-array.find-last.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.typed-array.find-last'); diff --git a/node_modules/core-js/modules/esnext.typed-array.from-async.js b/node_modules/core-js/modules/esnext.typed-array.from-async.js new file mode 100644 index 0000000..64c57d7 --- /dev/null +++ b/node_modules/core-js/modules/esnext.typed-array.from-async.js @@ -0,0 +1,25 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var getBuiltIn = require('../internals/get-built-in'); +var aConstructor = require('../internals/a-constructor'); +var arrayFromAsync = require('../internals/array-from-async'); +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list'); + +var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor; +var exportTypedArrayStaticMethod = ArrayBufferViewCore.exportTypedArrayStaticMethod; + +// `%TypedArray%.fromAsync` method +// https://github.com/tc39/proposal-array-from-async +exportTypedArrayStaticMethod('fromAsync', function fromAsync(asyncItems /* , mapfn = undefined, thisArg = undefined */) { + var C = this; + var argumentsLength = arguments.length; + var mapfn = argumentsLength > 1 ? arguments[1] : undefined; + var thisArg = argumentsLength > 2 ? arguments[2] : undefined; + return new (getBuiltIn('Promise'))(function (resolve) { + aConstructor(C); + resolve(arrayFromAsync(asyncItems, mapfn, thisArg)); + }).then(function (list) { + return arrayFromConstructorAndList(aTypedArrayConstructor(C), list); + }); +}, true); diff --git a/node_modules/core-js/modules/esnext.typed-array.group-by.js b/node_modules/core-js/modules/esnext.typed-array.group-by.js new file mode 100644 index 0000000..c180bc2 --- /dev/null +++ b/node_modules/core-js/modules/esnext.typed-array.group-by.js @@ -0,0 +1,15 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var $group = require('../internals/array-group'); +var typedArraySpeciesConstructor = require('../internals/typed-array-species-constructor'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.groupBy` method +// https://github.com/tc39/proposal-array-grouping +exportTypedArrayMethod('groupBy', function groupBy(callbackfn /* , thisArg */) { + var thisArg = arguments.length > 1 ? arguments[1] : undefined; + return $group(aTypedArray(this), callbackfn, thisArg, typedArraySpeciesConstructor); +}, true); diff --git a/node_modules/core-js/modules/esnext.typed-array.to-reversed.js b/node_modules/core-js/modules/esnext.typed-array.to-reversed.js new file mode 100644 index 0000000..ba5bcd5 --- /dev/null +++ b/node_modules/core-js/modules/esnext.typed-array.to-reversed.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.typed-array.to-reversed'); diff --git a/node_modules/core-js/modules/esnext.typed-array.to-sorted.js b/node_modules/core-js/modules/esnext.typed-array.to-sorted.js new file mode 100644 index 0000000..c38f3b8 --- /dev/null +++ b/node_modules/core-js/modules/esnext.typed-array.to-sorted.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.typed-array.to-sorted'); diff --git a/node_modules/core-js/modules/esnext.typed-array.to-spliced.js b/node_modules/core-js/modules/esnext.typed-array.to-spliced.js new file mode 100644 index 0000000..9ed5450 --- /dev/null +++ b/node_modules/core-js/modules/esnext.typed-array.to-spliced.js @@ -0,0 +1,68 @@ +'use strict'; +// TODO: Remove from `core-js@4` +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var isBigIntArray = require('../internals/is-big-int-array'); +var toAbsoluteIndex = require('../internals/to-absolute-index'); +var toBigInt = require('../internals/to-big-int'); +var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); +var fails = require('../internals/fails'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var max = Math.max; +var min = Math.min; + +// some early implementations, like WebKit, does not follow the final semantic +var PROPER_ORDER = !fails(function () { + // eslint-disable-next-line es/no-typed-arrays -- required for testing + var array = new Int8Array([1]); + + var spliced = array.toSpliced(1, 0, { + valueOf: function () { + array[0] = 2; + return 3; + } + }); + + return spliced[0] !== 2 || spliced[1] !== 3; +}); + +// `%TypedArray%.prototype.toSpliced` method +// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toSpliced +exportTypedArrayMethod('toSpliced', function toSpliced(start, deleteCount /* , ...items */) { + var O = aTypedArray(this); + var C = getTypedArrayConstructor(O); + var len = lengthOfArrayLike(O); + var actualStart = toAbsoluteIndex(start, len); + var argumentsLength = arguments.length; + var k = 0; + var insertCount, actualDeleteCount, thisIsBigIntArray, convertedItems, value, newLen, A; + if (argumentsLength === 0) { + insertCount = actualDeleteCount = 0; + } else if (argumentsLength === 1) { + insertCount = 0; + actualDeleteCount = len - actualStart; + } else { + actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart); + insertCount = argumentsLength - 2; + if (insertCount) { + convertedItems = new C(insertCount); + thisIsBigIntArray = isBigIntArray(convertedItems); + for (var i = 2; i < argumentsLength; i++) { + value = arguments[i]; + // FF30- typed arrays doesn't properly convert objects to typed array values + convertedItems[i - 2] = thisIsBigIntArray ? toBigInt(value) : +value; + } + } + } + newLen = len + insertCount - actualDeleteCount; + A = new C(newLen); + + for (; k < actualStart; k++) A[k] = O[k]; + for (; k < actualStart + insertCount; k++) A[k] = convertedItems[k - actualStart]; + for (; k < newLen; k++) A[k] = O[k + actualDeleteCount - insertCount]; + + return A; +}, !PROPER_ORDER); diff --git a/node_modules/core-js/modules/esnext.typed-array.unique-by.js b/node_modules/core-js/modules/esnext.typed-array.unique-by.js new file mode 100644 index 0000000..4a99e6d --- /dev/null +++ b/node_modules/core-js/modules/esnext.typed-array.unique-by.js @@ -0,0 +1,17 @@ +'use strict'; +var uncurryThis = require('../internals/function-uncurry-this'); +var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list'); +var $arrayUniqueBy = require('../internals/array-unique-by'); + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var arrayUniqueBy = uncurryThis($arrayUniqueBy); + +// `%TypedArray%.prototype.uniqueBy` method +// https://github.com/tc39/proposal-array-unique +exportTypedArrayMethod('uniqueBy', function uniqueBy(resolver) { + aTypedArray(this); + return arrayFromConstructorAndList(getTypedArrayConstructor(this), arrayUniqueBy(this, resolver)); +}, true); diff --git a/node_modules/core-js/modules/esnext.typed-array.with.js b/node_modules/core-js/modules/esnext.typed-array.with.js new file mode 100644 index 0000000..14bc75c --- /dev/null +++ b/node_modules/core-js/modules/esnext.typed-array.with.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove from `core-js@4` +require('../modules/es.typed-array.with'); diff --git a/node_modules/core-js/modules/esnext.uint8-array.from-base64.js b/node_modules/core-js/modules/esnext.uint8-array.from-base64.js new file mode 100644 index 0000000..1dfc859 --- /dev/null +++ b/node_modules/core-js/modules/esnext.uint8-array.from-base64.js @@ -0,0 +1,16 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list'); +var $fromBase64 = require('../internals/uint8-from-base64'); + +var Uint8Array = globalThis.Uint8Array; + +// `Uint8Array.fromBase64` method +// https://github.com/tc39/proposal-arraybuffer-base64 +if (Uint8Array) $({ target: 'Uint8Array', stat: true }, { + fromBase64: function fromBase64(string /* , options */) { + var result = $fromBase64(string, arguments.length > 1 ? arguments[1] : undefined, null, 0x1FFFFFFFFFFFFF); + return arrayFromConstructorAndList(Uint8Array, result.bytes); + } +}); diff --git a/node_modules/core-js/modules/esnext.uint8-array.from-hex.js b/node_modules/core-js/modules/esnext.uint8-array.from-hex.js new file mode 100644 index 0000000..036f3a8 --- /dev/null +++ b/node_modules/core-js/modules/esnext.uint8-array.from-hex.js @@ -0,0 +1,13 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var aString = require('../internals/a-string'); +var $fromHex = require('../internals/uint8-from-hex'); + +// `Uint8Array.fromHex` method +// https://github.com/tc39/proposal-arraybuffer-base64 +if (globalThis.Uint8Array) $({ target: 'Uint8Array', stat: true }, { + fromHex: function fromHex(string) { + return $fromHex(aString(string)).bytes; + } +}); diff --git a/node_modules/core-js/modules/esnext.uint8-array.set-from-base64.js b/node_modules/core-js/modules/esnext.uint8-array.set-from-base64.js new file mode 100644 index 0000000..976fcb1 --- /dev/null +++ b/node_modules/core-js/modules/esnext.uint8-array.set-from-base64.js @@ -0,0 +1,19 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var $fromBase64 = require('../internals/uint8-from-base64'); +var anUint8Array = require('../internals/an-uint8-array'); + +var Uint8Array = globalThis.Uint8Array; + +// `Uint8Array.prototype.setFromBase64` method +// https://github.com/tc39/proposal-arraybuffer-base64 +if (Uint8Array) $({ target: 'Uint8Array', proto: true }, { + setFromBase64: function setFromBase64(string /* , options */) { + anUint8Array(this); + + var result = $fromBase64(string, arguments.length > 1 ? arguments[1] : undefined, this, this.length); + + return { read: result.read, written: result.written }; + } +}); diff --git a/node_modules/core-js/modules/esnext.uint8-array.set-from-hex.js b/node_modules/core-js/modules/esnext.uint8-array.set-from-hex.js new file mode 100644 index 0000000..29f5420 --- /dev/null +++ b/node_modules/core-js/modules/esnext.uint8-array.set-from-hex.js @@ -0,0 +1,19 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var aString = require('../internals/a-string'); +var anUint8Array = require('../internals/an-uint8-array'); +var notDetached = require('../internals/array-buffer-not-detached'); +var $fromHex = require('../internals/uint8-from-hex'); + +// `Uint8Array.prototype.setFromHex` method +// https://github.com/tc39/proposal-arraybuffer-base64 +if (globalThis.Uint8Array) $({ target: 'Uint8Array', proto: true }, { + setFromHex: function setFromHex(string) { + anUint8Array(this); + aString(string); + notDetached(this.buffer); + var read = $fromHex(string, this).read; + return { read: read, written: read / 2 }; + } +}); diff --git a/node_modules/core-js/modules/esnext.uint8-array.to-base64.js b/node_modules/core-js/modules/esnext.uint8-array.to-base64.js new file mode 100644 index 0000000..e7426e3 --- /dev/null +++ b/node_modules/core-js/modules/esnext.uint8-array.to-base64.js @@ -0,0 +1,49 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this'); +var anObjectOrUndefined = require('../internals/an-object-or-undefined'); +var anUint8Array = require('../internals/an-uint8-array'); +var notDetached = require('../internals/array-buffer-not-detached'); +var base64Map = require('../internals/base64-map'); +var getAlphabetOption = require('../internals/get-alphabet-option'); + +var base64Alphabet = base64Map.i2c; +var base64UrlAlphabet = base64Map.i2cUrl; + +var charAt = uncurryThis(''.charAt); + +// `Uint8Array.prototype.toBase64` method +// https://github.com/tc39/proposal-arraybuffer-base64 +if (globalThis.Uint8Array) $({ target: 'Uint8Array', proto: true }, { + toBase64: function toBase64(/* options */) { + var array = anUint8Array(this); + var options = arguments.length ? anObjectOrUndefined(arguments[0]) : undefined; + var alphabet = getAlphabetOption(options) === 'base64' ? base64Alphabet : base64UrlAlphabet; + var omitPadding = !!options && !!options.omitPadding; + notDetached(this.buffer); + + var result = ''; + var i = 0; + var length = array.length; + var triplet; + + var at = function (shift) { + return charAt(alphabet, (triplet >> (6 * shift)) & 63); + }; + + for (; i + 2 < length; i += 3) { + triplet = (array[i] << 16) + (array[i + 1] << 8) + array[i + 2]; + result += at(3) + at(2) + at(1) + at(0); + } + if (i + 2 === length) { + triplet = (array[i] << 16) + (array[i + 1] << 8); + result += at(3) + at(2) + at(1) + (omitPadding ? '' : '='); + } else if (i + 1 === length) { + triplet = array[i] << 16; + result += at(3) + at(2) + (omitPadding ? '' : '=='); + } + + return result; + } +}); diff --git a/node_modules/core-js/modules/esnext.uint8-array.to-hex.js b/node_modules/core-js/modules/esnext.uint8-array.to-hex.js new file mode 100644 index 0000000..e023ad0 --- /dev/null +++ b/node_modules/core-js/modules/esnext.uint8-array.to-hex.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var uncurryThis = require('../internals/function-uncurry-this'); +var anUint8Array = require('../internals/an-uint8-array'); +var notDetached = require('../internals/array-buffer-not-detached'); + +var numberToString = uncurryThis(1.0.toString); + +// `Uint8Array.prototype.toHex` method +// https://github.com/tc39/proposal-arraybuffer-base64 +if (globalThis.Uint8Array) $({ target: 'Uint8Array', proto: true }, { + toHex: function toHex() { + anUint8Array(this); + notDetached(this.buffer); + var result = ''; + for (var i = 0, length = this.length; i < length; i++) { + var hex = numberToString(this[i], 16); + result += hex.length === 1 ? '0' + hex : hex; + } + return result; + } +}); diff --git a/node_modules/core-js/modules/esnext.weak-map.delete-all.js b/node_modules/core-js/modules/esnext.weak-map.delete-all.js new file mode 100644 index 0000000..7d83a4a --- /dev/null +++ b/node_modules/core-js/modules/esnext.weak-map.delete-all.js @@ -0,0 +1,18 @@ +'use strict'; +var $ = require('../internals/export'); +var aWeakMap = require('../internals/a-weak-map'); +var remove = require('../internals/weak-map-helpers').remove; + +// `WeakMap.prototype.deleteAll` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'WeakMap', proto: true, real: true, forced: true }, { + deleteAll: function deleteAll(/* ...elements */) { + var collection = aWeakMap(this); + var allDeleted = true; + var wasDeleted; + for (var k = 0, len = arguments.length; k < len; k++) { + wasDeleted = remove(collection, arguments[k]); + allDeleted = allDeleted && wasDeleted; + } return !!allDeleted; + } +}); diff --git a/node_modules/core-js/modules/esnext.weak-map.emplace.js b/node_modules/core-js/modules/esnext.weak-map.emplace.js new file mode 100644 index 0000000..9050c15 --- /dev/null +++ b/node_modules/core-js/modules/esnext.weak-map.emplace.js @@ -0,0 +1,27 @@ +'use strict'; +var $ = require('../internals/export'); +var aWeakMap = require('../internals/a-weak-map'); +var WeakMapHelpers = require('../internals/weak-map-helpers'); + +var get = WeakMapHelpers.get; +var has = WeakMapHelpers.has; +var set = WeakMapHelpers.set; + +// `WeakMap.prototype.emplace` method +// https://github.com/tc39/proposal-upsert +$({ target: 'WeakMap', proto: true, real: true, forced: true }, { + emplace: function emplace(key, handler) { + var map = aWeakMap(this); + var value, inserted; + if (has(map, key)) { + value = get(map, key); + if ('update' in handler) { + value = handler.update(value, key, map); + set(map, key, value); + } return value; + } + inserted = handler.insert(key, map); + set(map, key, inserted); + return inserted; + } +}); diff --git a/node_modules/core-js/modules/esnext.weak-map.from.js b/node_modules/core-js/modules/esnext.weak-map.from.js new file mode 100644 index 0000000..a14b008 --- /dev/null +++ b/node_modules/core-js/modules/esnext.weak-map.from.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var WeakMapHelpers = require('../internals/weak-map-helpers'); +var createCollectionFrom = require('../internals/collection-from'); + +// `WeakMap.from` method +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from +$({ target: 'WeakMap', stat: true, forced: true }, { + from: createCollectionFrom(WeakMapHelpers.WeakMap, WeakMapHelpers.set, true) +}); diff --git a/node_modules/core-js/modules/esnext.weak-map.of.js b/node_modules/core-js/modules/esnext.weak-map.of.js new file mode 100644 index 0000000..e411172 --- /dev/null +++ b/node_modules/core-js/modules/esnext.weak-map.of.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var WeakMapHelpers = require('../internals/weak-map-helpers'); +var createCollectionOf = require('../internals/collection-of'); + +// `WeakMap.of` method +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of +$({ target: 'WeakMap', stat: true, forced: true }, { + of: createCollectionOf(WeakMapHelpers.WeakMap, WeakMapHelpers.set, true) +}); diff --git a/node_modules/core-js/modules/esnext.weak-map.upsert.js b/node_modules/core-js/modules/esnext.weak-map.upsert.js new file mode 100644 index 0000000..ddef2d8 --- /dev/null +++ b/node_modules/core-js/modules/esnext.weak-map.upsert.js @@ -0,0 +1,10 @@ +'use strict'; +// TODO: remove from `core-js@4` +var $ = require('../internals/export'); +var upsert = require('../internals/map-upsert'); + +// `WeakMap.prototype.upsert` method (replaced by `WeakMap.prototype.emplace`) +// https://github.com/tc39/proposal-upsert +$({ target: 'WeakMap', proto: true, real: true, forced: true }, { + upsert: upsert +}); diff --git a/node_modules/core-js/modules/esnext.weak-set.add-all.js b/node_modules/core-js/modules/esnext.weak-set.add-all.js new file mode 100644 index 0000000..3880c70 --- /dev/null +++ b/node_modules/core-js/modules/esnext.weak-set.add-all.js @@ -0,0 +1,15 @@ +'use strict'; +var $ = require('../internals/export'); +var aWeakSet = require('../internals/a-weak-set'); +var add = require('../internals/weak-set-helpers').add; + +// `WeakSet.prototype.addAll` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'WeakSet', proto: true, real: true, forced: true }, { + addAll: function addAll(/* ...elements */) { + var set = aWeakSet(this); + for (var k = 0, len = arguments.length; k < len; k++) { + add(set, arguments[k]); + } return set; + } +}); diff --git a/node_modules/core-js/modules/esnext.weak-set.delete-all.js b/node_modules/core-js/modules/esnext.weak-set.delete-all.js new file mode 100644 index 0000000..a3913ac --- /dev/null +++ b/node_modules/core-js/modules/esnext.weak-set.delete-all.js @@ -0,0 +1,18 @@ +'use strict'; +var $ = require('../internals/export'); +var aWeakSet = require('../internals/a-weak-set'); +var remove = require('../internals/weak-set-helpers').remove; + +// `WeakSet.prototype.deleteAll` method +// https://github.com/tc39/proposal-collection-methods +$({ target: 'WeakSet', proto: true, real: true, forced: true }, { + deleteAll: function deleteAll(/* ...elements */) { + var collection = aWeakSet(this); + var allDeleted = true; + var wasDeleted; + for (var k = 0, len = arguments.length; k < len; k++) { + wasDeleted = remove(collection, arguments[k]); + allDeleted = allDeleted && wasDeleted; + } return !!allDeleted; + } +}); diff --git a/node_modules/core-js/modules/esnext.weak-set.from.js b/node_modules/core-js/modules/esnext.weak-set.from.js new file mode 100644 index 0000000..a2143e1 --- /dev/null +++ b/node_modules/core-js/modules/esnext.weak-set.from.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var WeakSetHelpers = require('../internals/weak-set-helpers'); +var createCollectionFrom = require('../internals/collection-from'); + +// `WeakSet.from` method +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from +$({ target: 'WeakSet', stat: true, forced: true }, { + from: createCollectionFrom(WeakSetHelpers.WeakSet, WeakSetHelpers.add, false) +}); diff --git a/node_modules/core-js/modules/esnext.weak-set.of.js b/node_modules/core-js/modules/esnext.weak-set.of.js new file mode 100644 index 0000000..92cfd49 --- /dev/null +++ b/node_modules/core-js/modules/esnext.weak-set.of.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var WeakSetHelpers = require('../internals/weak-set-helpers'); +var createCollectionOf = require('../internals/collection-of'); + +// `WeakSet.of` method +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of +$({ target: 'WeakSet', stat: true, forced: true }, { + of: createCollectionOf(WeakSetHelpers.WeakSet, WeakSetHelpers.add, false) +}); diff --git a/node_modules/core-js/modules/web.atob.js b/node_modules/core-js/modules/web.atob.js new file mode 100644 index 0000000..c3221c6 --- /dev/null +++ b/node_modules/core-js/modules/web.atob.js @@ -0,0 +1,67 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var getBuiltIn = require('../internals/get-built-in'); +var uncurryThis = require('../internals/function-uncurry-this'); +var call = require('../internals/function-call'); +var fails = require('../internals/fails'); +var toString = require('../internals/to-string'); +var validateArgumentsLength = require('../internals/validate-arguments-length'); +var c2i = require('../internals/base64-map').c2i; + +var disallowed = /[^\d+/a-z]/i; +var whitespaces = /[\t\n\f\r ]+/g; +var finalEq = /[=]{1,2}$/; + +var $atob = getBuiltIn('atob'); +var fromCharCode = String.fromCharCode; +var charAt = uncurryThis(''.charAt); +var replace = uncurryThis(''.replace); +var exec = uncurryThis(disallowed.exec); + +var BASIC = !!$atob && !fails(function () { + return $atob('aGk=') !== 'hi'; +}); + +var NO_SPACES_IGNORE = BASIC && fails(function () { + return $atob(' ') !== ''; +}); + +var NO_ENCODING_CHECK = BASIC && !fails(function () { + $atob('a'); +}); + +var NO_ARG_RECEIVING_CHECK = BASIC && !fails(function () { + $atob(); +}); + +var WRONG_ARITY = BASIC && $atob.length !== 1; + +var FORCED = !BASIC || NO_SPACES_IGNORE || NO_ENCODING_CHECK || NO_ARG_RECEIVING_CHECK || WRONG_ARITY; + +// `atob` method +// https://html.spec.whatwg.org/multipage/webappapis.html#dom-atob +$({ global: true, bind: true, enumerable: true, forced: FORCED }, { + atob: function atob(data) { + validateArgumentsLength(arguments.length, 1); + // `webpack` dev server bug on IE global methods - use call(fn, global, ...) + if (BASIC && !NO_SPACES_IGNORE && !NO_ENCODING_CHECK) return call($atob, globalThis, data); + var string = replace(toString(data), whitespaces, ''); + var output = ''; + var position = 0; + var bc = 0; + var length, chr, bs; + if (string.length % 4 === 0) { + string = replace(string, finalEq, ''); + } + length = string.length; + if (length % 4 === 1 || exec(disallowed, string)) { + throw new (getBuiltIn('DOMException'))('The string is not correctly encoded', 'InvalidCharacterError'); + } + while (position < length) { + chr = charAt(string, position++); + bs = bc % 4 ? bs * 64 + c2i[chr] : c2i[chr]; + if (bc++ % 4) output += fromCharCode(255 & bs >> (-2 * bc & 6)); + } return output; + } +}); diff --git a/node_modules/core-js/modules/web.btoa.js b/node_modules/core-js/modules/web.btoa.js new file mode 100644 index 0000000..b8bda16 --- /dev/null +++ b/node_modules/core-js/modules/web.btoa.js @@ -0,0 +1,51 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var getBuiltIn = require('../internals/get-built-in'); +var uncurryThis = require('../internals/function-uncurry-this'); +var call = require('../internals/function-call'); +var fails = require('../internals/fails'); +var toString = require('../internals/to-string'); +var validateArgumentsLength = require('../internals/validate-arguments-length'); +var i2c = require('../internals/base64-map').i2c; + +var $btoa = getBuiltIn('btoa'); +var charAt = uncurryThis(''.charAt); +var charCodeAt = uncurryThis(''.charCodeAt); + +var BASIC = !!$btoa && !fails(function () { + return $btoa('hi') !== 'aGk='; +}); + +var NO_ARG_RECEIVING_CHECK = BASIC && !fails(function () { + $btoa(); +}); + +var WRONG_ARG_CONVERSION = BASIC && fails(function () { + return $btoa(null) !== 'bnVsbA=='; +}); + +var WRONG_ARITY = BASIC && $btoa.length !== 1; + +// `btoa` method +// https://html.spec.whatwg.org/multipage/webappapis.html#dom-btoa +$({ global: true, bind: true, enumerable: true, forced: !BASIC || NO_ARG_RECEIVING_CHECK || WRONG_ARG_CONVERSION || WRONG_ARITY }, { + btoa: function btoa(data) { + validateArgumentsLength(arguments.length, 1); + // `webpack` dev server bug on IE global methods - use call(fn, global, ...) + if (BASIC) return call($btoa, globalThis, toString(data)); + var string = toString(data); + var output = ''; + var position = 0; + var map = i2c; + var block, charCode; + while (charAt(string, position) || (map = '=', position % 1)) { + charCode = charCodeAt(string, position += 3 / 4); + if (charCode > 0xFF) { + throw new (getBuiltIn('DOMException'))('The string contains characters outside of the Latin1 range', 'InvalidCharacterError'); + } + block = block << 8 | charCode; + output += charAt(map, 63 & block >> 8 - position % 1 * 8); + } return output; + } +}); diff --git a/node_modules/core-js/modules/web.clear-immediate.js b/node_modules/core-js/modules/web.clear-immediate.js new file mode 100644 index 0000000..e2d8eb5 --- /dev/null +++ b/node_modules/core-js/modules/web.clear-immediate.js @@ -0,0 +1,10 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var clearImmediate = require('../internals/task').clear; + +// `clearImmediate` method +// http://w3c.github.io/setImmediate/#si-clearImmediate +$({ global: true, bind: true, enumerable: true, forced: globalThis.clearImmediate !== clearImmediate }, { + clearImmediate: clearImmediate +}); diff --git a/node_modules/core-js/modules/web.dom-collections.for-each.js b/node_modules/core-js/modules/web.dom-collections.for-each.js new file mode 100644 index 0000000..bbbdef2 --- /dev/null +++ b/node_modules/core-js/modules/web.dom-collections.for-each.js @@ -0,0 +1,23 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var DOMIterables = require('../internals/dom-iterables'); +var DOMTokenListPrototype = require('../internals/dom-token-list-prototype'); +var forEach = require('../internals/array-for-each'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); + +var handlePrototype = function (CollectionPrototype) { + // some Chrome versions have non-configurable methods on DOMTokenList + if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try { + createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach); + } catch (error) { + CollectionPrototype.forEach = forEach; + } +}; + +for (var COLLECTION_NAME in DOMIterables) { + if (DOMIterables[COLLECTION_NAME]) { + handlePrototype(globalThis[COLLECTION_NAME] && globalThis[COLLECTION_NAME].prototype); + } +} + +handlePrototype(DOMTokenListPrototype); diff --git a/node_modules/core-js/modules/web.dom-collections.iterator.js b/node_modules/core-js/modules/web.dom-collections.iterator.js new file mode 100644 index 0000000..882a828 --- /dev/null +++ b/node_modules/core-js/modules/web.dom-collections.iterator.js @@ -0,0 +1,37 @@ +'use strict'; +var globalThis = require('../internals/global-this'); +var DOMIterables = require('../internals/dom-iterables'); +var DOMTokenListPrototype = require('../internals/dom-token-list-prototype'); +var ArrayIteratorMethods = require('../modules/es.array.iterator'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var setToStringTag = require('../internals/set-to-string-tag'); +var wellKnownSymbol = require('../internals/well-known-symbol'); + +var ITERATOR = wellKnownSymbol('iterator'); +var ArrayValues = ArrayIteratorMethods.values; + +var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) { + if (CollectionPrototype) { + // some Chrome versions have non-configurable methods on DOMTokenList + if (CollectionPrototype[ITERATOR] !== ArrayValues) try { + createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues); + } catch (error) { + CollectionPrototype[ITERATOR] = ArrayValues; + } + setToStringTag(CollectionPrototype, COLLECTION_NAME, true); + if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) { + // some Chrome versions have non-configurable methods on DOMTokenList + if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try { + createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]); + } catch (error) { + CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME]; + } + } + } +}; + +for (var COLLECTION_NAME in DOMIterables) { + handlePrototype(globalThis[COLLECTION_NAME] && globalThis[COLLECTION_NAME].prototype, COLLECTION_NAME); +} + +handlePrototype(DOMTokenListPrototype, 'DOMTokenList'); diff --git a/node_modules/core-js/modules/web.dom-exception.constructor.js b/node_modules/core-js/modules/web.dom-exception.constructor.js new file mode 100644 index 0000000..f5cf6aa --- /dev/null +++ b/node_modules/core-js/modules/web.dom-exception.constructor.js @@ -0,0 +1,145 @@ +'use strict'; +var $ = require('../internals/export'); +var getBuiltIn = require('../internals/get-built-in'); +var getBuiltInNodeModule = require('../internals/get-built-in-node-module'); +var fails = require('../internals/fails'); +var create = require('../internals/object-create'); +var createPropertyDescriptor = require('../internals/create-property-descriptor'); +var defineProperty = require('../internals/object-define-property').f; +var defineBuiltIn = require('../internals/define-built-in'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var hasOwn = require('../internals/has-own-property'); +var anInstance = require('../internals/an-instance'); +var anObject = require('../internals/an-object'); +var errorToString = require('../internals/error-to-string'); +var normalizeStringArgument = require('../internals/normalize-string-argument'); +var DOMExceptionConstants = require('../internals/dom-exception-constants'); +var clearErrorStack = require('../internals/error-stack-clear'); +var InternalStateModule = require('../internals/internal-state'); +var DESCRIPTORS = require('../internals/descriptors'); +var IS_PURE = require('../internals/is-pure'); + +var DOM_EXCEPTION = 'DOMException'; +var DATA_CLONE_ERR = 'DATA_CLONE_ERR'; +var Error = getBuiltIn('Error'); +// NodeJS < 17.0 does not expose `DOMException` to global +var NativeDOMException = getBuiltIn(DOM_EXCEPTION) || (function () { + try { + // NodeJS < 15.0 does not expose `MessageChannel` to global + var MessageChannel = getBuiltIn('MessageChannel') || getBuiltInNodeModule('worker_threads').MessageChannel; + // eslint-disable-next-line es/no-weak-map, unicorn/require-post-message-target-origin -- safe + new MessageChannel().port1.postMessage(new WeakMap()); + } catch (error) { + if (error.name === DATA_CLONE_ERR && error.code === 25) return error.constructor; + } +})(); +var NativeDOMExceptionPrototype = NativeDOMException && NativeDOMException.prototype; +var ErrorPrototype = Error.prototype; +var setInternalState = InternalStateModule.set; +var getInternalState = InternalStateModule.getterFor(DOM_EXCEPTION); +var HAS_STACK = 'stack' in new Error(DOM_EXCEPTION); + +var codeFor = function (name) { + return hasOwn(DOMExceptionConstants, name) && DOMExceptionConstants[name].m ? DOMExceptionConstants[name].c : 0; +}; + +var $DOMException = function DOMException() { + anInstance(this, DOMExceptionPrototype); + var argumentsLength = arguments.length; + var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]); + var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error'); + var code = codeFor(name); + setInternalState(this, { + type: DOM_EXCEPTION, + name: name, + message: message, + code: code + }); + if (!DESCRIPTORS) { + this.name = name; + this.message = message; + this.code = code; + } + if (HAS_STACK) { + var error = new Error(message); + error.name = DOM_EXCEPTION; + defineProperty(this, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1))); + } +}; + +var DOMExceptionPrototype = $DOMException.prototype = create(ErrorPrototype); + +var createGetterDescriptor = function (get) { + return { enumerable: true, configurable: true, get: get }; +}; + +var getterFor = function (key) { + return createGetterDescriptor(function () { + return getInternalState(this)[key]; + }); +}; + +if (DESCRIPTORS) { + // `DOMException.prototype.code` getter + defineBuiltInAccessor(DOMExceptionPrototype, 'code', getterFor('code')); + // `DOMException.prototype.message` getter + defineBuiltInAccessor(DOMExceptionPrototype, 'message', getterFor('message')); + // `DOMException.prototype.name` getter + defineBuiltInAccessor(DOMExceptionPrototype, 'name', getterFor('name')); +} + +defineProperty(DOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, $DOMException)); + +// FF36- DOMException is a function, but can't be constructed +var INCORRECT_CONSTRUCTOR = fails(function () { + return !(new NativeDOMException() instanceof Error); +}); + +// Safari 10.1 / Chrome 32- / IE8- DOMException.prototype.toString bugs +var INCORRECT_TO_STRING = INCORRECT_CONSTRUCTOR || fails(function () { + return ErrorPrototype.toString !== errorToString || String(new NativeDOMException(1, 2)) !== '2: 1'; +}); + +// Deno 1.6.3- DOMException.prototype.code just missed +var INCORRECT_CODE = INCORRECT_CONSTRUCTOR || fails(function () { + return new NativeDOMException(1, 'DataCloneError').code !== 25; +}); + +// Deno 1.6.3- DOMException constants just missed +var MISSED_CONSTANTS = INCORRECT_CONSTRUCTOR + || NativeDOMException[DATA_CLONE_ERR] !== 25 + || NativeDOMExceptionPrototype[DATA_CLONE_ERR] !== 25; + +var FORCED_CONSTRUCTOR = IS_PURE ? INCORRECT_TO_STRING || INCORRECT_CODE || MISSED_CONSTANTS : INCORRECT_CONSTRUCTOR; + +// `DOMException` constructor +// https://webidl.spec.whatwg.org/#idl-DOMException +$({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR }, { + DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException +}); + +var PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION); +var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype; + +if (INCORRECT_TO_STRING && (IS_PURE || NativeDOMException === PolyfilledDOMException)) { + defineBuiltIn(PolyfilledDOMExceptionPrototype, 'toString', errorToString); +} + +if (INCORRECT_CODE && DESCRIPTORS && NativeDOMException === PolyfilledDOMException) { + defineBuiltInAccessor(PolyfilledDOMExceptionPrototype, 'code', createGetterDescriptor(function () { + return codeFor(anObject(this).name); + })); +} + +// `DOMException` constants +for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) { + var constant = DOMExceptionConstants[key]; + var constantName = constant.s; + var descriptor = createPropertyDescriptor(6, constant.c); + if (!hasOwn(PolyfilledDOMException, constantName)) { + defineProperty(PolyfilledDOMException, constantName, descriptor); + } + if (!hasOwn(PolyfilledDOMExceptionPrototype, constantName)) { + defineProperty(PolyfilledDOMExceptionPrototype, constantName, descriptor); + } +} diff --git a/node_modules/core-js/modules/web.dom-exception.stack.js b/node_modules/core-js/modules/web.dom-exception.stack.js new file mode 100644 index 0000000..f166de3 --- /dev/null +++ b/node_modules/core-js/modules/web.dom-exception.stack.js @@ -0,0 +1,68 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var getBuiltIn = require('../internals/get-built-in'); +var createPropertyDescriptor = require('../internals/create-property-descriptor'); +var defineProperty = require('../internals/object-define-property').f; +var hasOwn = require('../internals/has-own-property'); +var anInstance = require('../internals/an-instance'); +var inheritIfRequired = require('../internals/inherit-if-required'); +var normalizeStringArgument = require('../internals/normalize-string-argument'); +var DOMExceptionConstants = require('../internals/dom-exception-constants'); +var clearErrorStack = require('../internals/error-stack-clear'); +var DESCRIPTORS = require('../internals/descriptors'); +var IS_PURE = require('../internals/is-pure'); + +var DOM_EXCEPTION = 'DOMException'; +var Error = getBuiltIn('Error'); +var NativeDOMException = getBuiltIn(DOM_EXCEPTION); + +var $DOMException = function DOMException() { + anInstance(this, DOMExceptionPrototype); + var argumentsLength = arguments.length; + var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]); + var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error'); + var that = new NativeDOMException(message, name); + var error = new Error(message); + error.name = DOM_EXCEPTION; + defineProperty(that, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1))); + inheritIfRequired(that, this, $DOMException); + return that; +}; + +var DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype; + +var ERROR_HAS_STACK = 'stack' in new Error(DOM_EXCEPTION); +var DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2); + +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(globalThis, DOM_EXCEPTION); + +// Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it +// https://github.com/Jarred-Sumner/bun/issues/399 +var BUGGY_DESCRIPTOR = !!descriptor && !(descriptor.writable && descriptor.configurable); + +var FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_HAS_STACK; + +// `DOMException` constructor patch for `.stack` where it's required +// https://webidl.spec.whatwg.org/#es-DOMException-specialness +$({ global: true, constructor: true, forced: IS_PURE || FORCED_CONSTRUCTOR }, { // TODO: fix export logic + DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException +}); + +var PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION); +var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype; + +if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) { + if (!IS_PURE) { + defineProperty(PolyfilledDOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, PolyfilledDOMException)); + } + + for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) { + var constant = DOMExceptionConstants[key]; + var constantName = constant.s; + if (!hasOwn(PolyfilledDOMException, constantName)) { + defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c)); + } + } +} diff --git a/node_modules/core-js/modules/web.dom-exception.to-string-tag.js b/node_modules/core-js/modules/web.dom-exception.to-string-tag.js new file mode 100644 index 0000000..f53c6d5 --- /dev/null +++ b/node_modules/core-js/modules/web.dom-exception.to-string-tag.js @@ -0,0 +1,8 @@ +'use strict'; +var getBuiltIn = require('../internals/get-built-in'); +var setToStringTag = require('../internals/set-to-string-tag'); + +var DOM_EXCEPTION = 'DOMException'; + +// `DOMException.prototype[@@toStringTag]` property +setToStringTag(getBuiltIn(DOM_EXCEPTION), DOM_EXCEPTION); diff --git a/node_modules/core-js/modules/web.immediate.js b/node_modules/core-js/modules/web.immediate.js new file mode 100644 index 0000000..170a00e --- /dev/null +++ b/node_modules/core-js/modules/web.immediate.js @@ -0,0 +1,4 @@ +'use strict'; +// TODO: Remove this module from `core-js@4` since it's split to modules listed below +require('../modules/web.clear-immediate'); +require('../modules/web.set-immediate'); diff --git a/node_modules/core-js/modules/web.queue-microtask.js b/node_modules/core-js/modules/web.queue-microtask.js new file mode 100644 index 0000000..d34de67 --- /dev/null +++ b/node_modules/core-js/modules/web.queue-microtask.js @@ -0,0 +1,25 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var microtask = require('../internals/microtask'); +var aCallable = require('../internals/a-callable'); +var validateArgumentsLength = require('../internals/validate-arguments-length'); +var fails = require('../internals/fails'); +var DESCRIPTORS = require('../internals/descriptors'); + +// Bun ~ 1.0.30 bug +// https://github.com/oven-sh/bun/issues/9249 +var WRONG_ARITY = fails(function () { + // getOwnPropertyDescriptor for prevent experimental warning in Node 11 + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + return DESCRIPTORS && Object.getOwnPropertyDescriptor(globalThis, 'queueMicrotask').value.length !== 1; +}); + +// `queueMicrotask` method +// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-queuemicrotask +$({ global: true, enumerable: true, dontCallGetSet: true, forced: WRONG_ARITY }, { + queueMicrotask: function queueMicrotask(fn) { + validateArgumentsLength(arguments.length, 1); + microtask(aCallable(fn)); + } +}); diff --git a/node_modules/core-js/modules/web.self.js b/node_modules/core-js/modules/web.self.js new file mode 100644 index 0000000..f409cc0 --- /dev/null +++ b/node_modules/core-js/modules/web.self.js @@ -0,0 +1,41 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var DESCRIPTORS = require('../internals/descriptors'); + +var $TypeError = TypeError; +// eslint-disable-next-line es/no-object-defineproperty -- safe +var defineProperty = Object.defineProperty; +var INCORRECT_VALUE = globalThis.self !== globalThis; + +// `self` getter +// https://html.spec.whatwg.org/multipage/window-object.html#dom-self +try { + if (DESCRIPTORS) { + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var descriptor = Object.getOwnPropertyDescriptor(globalThis, 'self'); + // some engines have `self`, but with incorrect descriptor + // https://github.com/denoland/deno/issues/15765 + if (INCORRECT_VALUE || !descriptor || !descriptor.get || !descriptor.enumerable) { + defineBuiltInAccessor(globalThis, 'self', { + get: function self() { + return globalThis; + }, + set: function self(value) { + if (this !== globalThis) throw new $TypeError('Illegal invocation'); + defineProperty(globalThis, 'self', { + value: value, + writable: true, + configurable: true, + enumerable: true + }); + }, + configurable: true, + enumerable: true + }); + } + } else $({ global: true, simple: true, forced: INCORRECT_VALUE }, { + self: globalThis + }); +} catch (error) { /* empty */ } diff --git a/node_modules/core-js/modules/web.set-immediate.js b/node_modules/core-js/modules/web.set-immediate.js new file mode 100644 index 0000000..8aa3dc8 --- /dev/null +++ b/node_modules/core-js/modules/web.set-immediate.js @@ -0,0 +1,14 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var setTask = require('../internals/task').set; +var schedulersFix = require('../internals/schedulers-fix'); + +// https://github.com/oven-sh/bun/issues/1633 +var setImmediate = globalThis.setImmediate ? schedulersFix(setTask, false) : setTask; + +// `setImmediate` method +// http://w3c.github.io/setImmediate/#si-setImmediate +$({ global: true, bind: true, enumerable: true, forced: globalThis.setImmediate !== setImmediate }, { + setImmediate: setImmediate +}); diff --git a/node_modules/core-js/modules/web.set-interval.js b/node_modules/core-js/modules/web.set-interval.js new file mode 100644 index 0000000..d0b6bb7 --- /dev/null +++ b/node_modules/core-js/modules/web.set-interval.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var schedulersFix = require('../internals/schedulers-fix'); + +var setInterval = schedulersFix(globalThis.setInterval, true); + +// Bun / IE9- setInterval additional parameters fix +// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval +$({ global: true, bind: true, forced: globalThis.setInterval !== setInterval }, { + setInterval: setInterval +}); diff --git a/node_modules/core-js/modules/web.set-timeout.js b/node_modules/core-js/modules/web.set-timeout.js new file mode 100644 index 0000000..3b054ae --- /dev/null +++ b/node_modules/core-js/modules/web.set-timeout.js @@ -0,0 +1,12 @@ +'use strict'; +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var schedulersFix = require('../internals/schedulers-fix'); + +var setTimeout = schedulersFix(globalThis.setTimeout, true); + +// Bun / IE9- setTimeout additional parameters fix +// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout +$({ global: true, bind: true, forced: globalThis.setTimeout !== setTimeout }, { + setTimeout: setTimeout +}); diff --git a/node_modules/core-js/modules/web.structured-clone.js b/node_modules/core-js/modules/web.structured-clone.js new file mode 100644 index 0000000..95ee571 --- /dev/null +++ b/node_modules/core-js/modules/web.structured-clone.js @@ -0,0 +1,531 @@ +'use strict'; +var IS_PURE = require('../internals/is-pure'); +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var getBuiltIn = require('../internals/get-built-in'); +var uncurryThis = require('../internals/function-uncurry-this'); +var fails = require('../internals/fails'); +var uid = require('../internals/uid'); +var isCallable = require('../internals/is-callable'); +var isConstructor = require('../internals/is-constructor'); +var isNullOrUndefined = require('../internals/is-null-or-undefined'); +var isObject = require('../internals/is-object'); +var isSymbol = require('../internals/is-symbol'); +var iterate = require('../internals/iterate'); +var anObject = require('../internals/an-object'); +var classof = require('../internals/classof'); +var hasOwn = require('../internals/has-own-property'); +var createProperty = require('../internals/create-property'); +var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); +var lengthOfArrayLike = require('../internals/length-of-array-like'); +var validateArgumentsLength = require('../internals/validate-arguments-length'); +var getRegExpFlags = require('../internals/regexp-get-flags'); +var MapHelpers = require('../internals/map-helpers'); +var SetHelpers = require('../internals/set-helpers'); +var setIterate = require('../internals/set-iterate'); +var detachTransferable = require('../internals/detach-transferable'); +var ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable'); +var PROPER_STRUCTURED_CLONE_TRANSFER = require('../internals/structured-clone-proper-transfer'); + +var Object = globalThis.Object; +var Array = globalThis.Array; +var Date = globalThis.Date; +var Error = globalThis.Error; +var TypeError = globalThis.TypeError; +var PerformanceMark = globalThis.PerformanceMark; +var DOMException = getBuiltIn('DOMException'); +var Map = MapHelpers.Map; +var mapHas = MapHelpers.has; +var mapGet = MapHelpers.get; +var mapSet = MapHelpers.set; +var Set = SetHelpers.Set; +var setAdd = SetHelpers.add; +var setHas = SetHelpers.has; +var objectKeys = getBuiltIn('Object', 'keys'); +var push = uncurryThis([].push); +var thisBooleanValue = uncurryThis(true.valueOf); +var thisNumberValue = uncurryThis(1.0.valueOf); +var thisStringValue = uncurryThis(''.valueOf); +var thisTimeValue = uncurryThis(Date.prototype.getTime); +var PERFORMANCE_MARK = uid('structuredClone'); +var DATA_CLONE_ERROR = 'DataCloneError'; +var TRANSFERRING = 'Transferring'; + +var checkBasicSemantic = function (structuredCloneImplementation) { + return !fails(function () { + var set1 = new globalThis.Set([7]); + var set2 = structuredCloneImplementation(set1); + var number = structuredCloneImplementation(Object(7)); + return set2 === set1 || !set2.has(7) || !isObject(number) || +number !== 7; + }) && structuredCloneImplementation; +}; + +var checkErrorsCloning = function (structuredCloneImplementation, $Error) { + return !fails(function () { + var error = new $Error(); + var test = structuredCloneImplementation({ a: error, b: error }); + return !(test && test.a === test.b && test.a instanceof $Error && test.a.stack === error.stack); + }); +}; + +// https://github.com/whatwg/html/pull/5749 +var checkNewErrorsCloningSemantic = function (structuredCloneImplementation) { + return !fails(function () { + var test = structuredCloneImplementation(new globalThis.AggregateError([1], PERFORMANCE_MARK, { cause: 3 })); + return test.name !== 'AggregateError' || test.errors[0] !== 1 || test.message !== PERFORMANCE_MARK || test.cause !== 3; + }); +}; + +// FF94+, Safari 15.4+, Chrome 98+, NodeJS 17.0+, Deno 1.13+ +// FF<103 and Safari implementations can't clone errors +// https://bugzilla.mozilla.org/show_bug.cgi?id=1556604 +// FF103 can clone errors, but `.stack` of clone is an empty string +// https://bugzilla.mozilla.org/show_bug.cgi?id=1778762 +// FF104+ fixed it on usual errors, but not on DOMExceptions +// https://bugzilla.mozilla.org/show_bug.cgi?id=1777321 +// Chrome <102 returns `null` if cloned object contains multiple references to one error +// https://bugs.chromium.org/p/v8/issues/detail?id=12542 +// NodeJS implementation can't clone DOMExceptions +// https://github.com/nodejs/node/issues/41038 +// only FF103+ supports new (html/5749) error cloning semantic +var nativeStructuredClone = globalThis.structuredClone; + +var FORCED_REPLACEMENT = IS_PURE + || !checkErrorsCloning(nativeStructuredClone, Error) + || !checkErrorsCloning(nativeStructuredClone, DOMException) + || !checkNewErrorsCloningSemantic(nativeStructuredClone); + +// Chrome 82+, Safari 14.1+, Deno 1.11+ +// Chrome 78-81 implementation swaps `.name` and `.message` of cloned `DOMException` +// Chrome returns `null` if cloned object contains multiple references to one error +// Safari 14.1 implementation doesn't clone some `RegExp` flags, so requires a workaround +// Safari implementation can't clone errors +// Deno 1.2-1.10 implementations too naive +// NodeJS 16.0+ does not have `PerformanceMark` constructor +// NodeJS <17.2 structured cloning implementation from `performance.mark` is too naive +// and can't clone, for example, `RegExp` or some boxed primitives +// https://github.com/nodejs/node/issues/40840 +// no one of those implementations supports new (html/5749) error cloning semantic +var structuredCloneFromMark = !nativeStructuredClone && checkBasicSemantic(function (value) { + return new PerformanceMark(PERFORMANCE_MARK, { detail: value }).detail; +}); + +var nativeRestrictedStructuredClone = checkBasicSemantic(nativeStructuredClone) || structuredCloneFromMark; + +var throwUncloneable = function (type) { + throw new DOMException('Uncloneable type: ' + type, DATA_CLONE_ERROR); +}; + +var throwUnpolyfillable = function (type, action) { + throw new DOMException((action || 'Cloning') + ' of ' + type + ' cannot be properly polyfilled in this engine', DATA_CLONE_ERROR); +}; + +var tryNativeRestrictedStructuredClone = function (value, type) { + if (!nativeRestrictedStructuredClone) throwUnpolyfillable(type); + return nativeRestrictedStructuredClone(value); +}; + +var createDataTransfer = function () { + var dataTransfer; + try { + dataTransfer = new globalThis.DataTransfer(); + } catch (error) { + try { + dataTransfer = new globalThis.ClipboardEvent('').clipboardData; + } catch (error2) { /* empty */ } + } + return dataTransfer && dataTransfer.items && dataTransfer.files ? dataTransfer : null; +}; + +var cloneBuffer = function (value, map, $type) { + if (mapHas(map, value)) return mapGet(map, value); + + var type = $type || classof(value); + var clone, length, options, source, target, i; + + if (type === 'SharedArrayBuffer') { + if (nativeRestrictedStructuredClone) clone = nativeRestrictedStructuredClone(value); + // SharedArrayBuffer should use shared memory, we can't polyfill it, so return the original + else clone = value; + } else { + var DataView = globalThis.DataView; + + // `ArrayBuffer#slice` is not available in IE10 + // `ArrayBuffer#slice` and `DataView` are not available in old FF + if (!DataView && !isCallable(value.slice)) throwUnpolyfillable('ArrayBuffer'); + // detached buffers throws in `DataView` and `.slice` + try { + if (isCallable(value.slice) && !value.resizable) { + clone = value.slice(0); + } else { + length = value.byteLength; + options = 'maxByteLength' in value ? { maxByteLength: value.maxByteLength } : undefined; + // eslint-disable-next-line es/no-resizable-and-growable-arraybuffers -- safe + clone = new ArrayBuffer(length, options); + source = new DataView(value); + target = new DataView(clone); + for (i = 0; i < length; i++) { + target.setUint8(i, source.getUint8(i)); + } + } + } catch (error) { + throw new DOMException('ArrayBuffer is detached', DATA_CLONE_ERROR); + } + } + + mapSet(map, value, clone); + + return clone; +}; + +var cloneView = function (value, type, offset, length, map) { + var C = globalThis[type]; + // in some old engines like Safari 9, typeof C is 'object' + // on Uint8ClampedArray or some other constructors + if (!isObject(C)) throwUnpolyfillable(type); + return new C(cloneBuffer(value.buffer, map), offset, length); +}; + +var structuredCloneInternal = function (value, map) { + if (isSymbol(value)) throwUncloneable('Symbol'); + if (!isObject(value)) return value; + // effectively preserves circular references + if (map) { + if (mapHas(map, value)) return mapGet(map, value); + } else map = new Map(); + + var type = classof(value); + var C, name, cloned, dataTransfer, i, length, keys, key; + + switch (type) { + case 'Array': + cloned = Array(lengthOfArrayLike(value)); + break; + case 'Object': + cloned = {}; + break; + case 'Map': + cloned = new Map(); + break; + case 'Set': + cloned = new Set(); + break; + case 'RegExp': + // in this block because of a Safari 14.1 bug + // old FF does not clone regexes passed to the constructor, so get the source and flags directly + cloned = new RegExp(value.source, getRegExpFlags(value)); + break; + case 'Error': + name = value.name; + switch (name) { + case 'AggregateError': + cloned = new (getBuiltIn(name))([]); + break; + case 'EvalError': + case 'RangeError': + case 'ReferenceError': + case 'SuppressedError': + case 'SyntaxError': + case 'TypeError': + case 'URIError': + cloned = new (getBuiltIn(name))(); + break; + case 'CompileError': + case 'LinkError': + case 'RuntimeError': + cloned = new (getBuiltIn('WebAssembly', name))(); + break; + default: + cloned = new Error(); + } + break; + case 'DOMException': + cloned = new DOMException(value.message, value.name); + break; + case 'ArrayBuffer': + case 'SharedArrayBuffer': + cloned = cloneBuffer(value, map, type); + break; + case 'DataView': + case 'Int8Array': + case 'Uint8Array': + case 'Uint8ClampedArray': + case 'Int16Array': + case 'Uint16Array': + case 'Int32Array': + case 'Uint32Array': + case 'Float16Array': + case 'Float32Array': + case 'Float64Array': + case 'BigInt64Array': + case 'BigUint64Array': + length = type === 'DataView' ? value.byteLength : value.length; + cloned = cloneView(value, type, value.byteOffset, length, map); + break; + case 'DOMQuad': + try { + cloned = new DOMQuad( + structuredCloneInternal(value.p1, map), + structuredCloneInternal(value.p2, map), + structuredCloneInternal(value.p3, map), + structuredCloneInternal(value.p4, map) + ); + } catch (error) { + cloned = tryNativeRestrictedStructuredClone(value, type); + } + break; + case 'File': + if (nativeRestrictedStructuredClone) try { + cloned = nativeRestrictedStructuredClone(value); + // NodeJS 20.0.0 bug, https://github.com/nodejs/node/issues/47612 + if (classof(cloned) !== type) cloned = undefined; + } catch (error) { /* empty */ } + if (!cloned) try { + cloned = new File([value], value.name, value); + } catch (error) { /* empty */ } + if (!cloned) throwUnpolyfillable(type); + break; + case 'FileList': + dataTransfer = createDataTransfer(); + if (dataTransfer) { + for (i = 0, length = lengthOfArrayLike(value); i < length; i++) { + dataTransfer.items.add(structuredCloneInternal(value[i], map)); + } + cloned = dataTransfer.files; + } else cloned = tryNativeRestrictedStructuredClone(value, type); + break; + case 'ImageData': + // Safari 9 ImageData is a constructor, but typeof ImageData is 'object' + try { + cloned = new ImageData( + structuredCloneInternal(value.data, map), + value.width, + value.height, + { colorSpace: value.colorSpace } + ); + } catch (error) { + cloned = tryNativeRestrictedStructuredClone(value, type); + } break; + default: + if (nativeRestrictedStructuredClone) { + cloned = nativeRestrictedStructuredClone(value); + } else switch (type) { + case 'BigInt': + // can be a 3rd party polyfill + cloned = Object(value.valueOf()); + break; + case 'Boolean': + cloned = Object(thisBooleanValue(value)); + break; + case 'Number': + cloned = Object(thisNumberValue(value)); + break; + case 'String': + cloned = Object(thisStringValue(value)); + break; + case 'Date': + cloned = new Date(thisTimeValue(value)); + break; + case 'Blob': + try { + cloned = value.slice(0, value.size, value.type); + } catch (error) { + throwUnpolyfillable(type); + } break; + case 'DOMPoint': + case 'DOMPointReadOnly': + C = globalThis[type]; + try { + cloned = C.fromPoint + ? C.fromPoint(value) + : new C(value.x, value.y, value.z, value.w); + } catch (error) { + throwUnpolyfillable(type); + } break; + case 'DOMRect': + case 'DOMRectReadOnly': + C = globalThis[type]; + try { + cloned = C.fromRect + ? C.fromRect(value) + : new C(value.x, value.y, value.width, value.height); + } catch (error) { + throwUnpolyfillable(type); + } break; + case 'DOMMatrix': + case 'DOMMatrixReadOnly': + C = globalThis[type]; + try { + cloned = C.fromMatrix + ? C.fromMatrix(value) + : new C(value); + } catch (error) { + throwUnpolyfillable(type); + } break; + case 'AudioData': + case 'VideoFrame': + if (!isCallable(value.clone)) throwUnpolyfillable(type); + try { + cloned = value.clone(); + } catch (error) { + throwUncloneable(type); + } break; + case 'CropTarget': + case 'CryptoKey': + case 'FileSystemDirectoryHandle': + case 'FileSystemFileHandle': + case 'FileSystemHandle': + case 'GPUCompilationInfo': + case 'GPUCompilationMessage': + case 'ImageBitmap': + case 'RTCCertificate': + case 'WebAssembly.Module': + throwUnpolyfillable(type); + // break omitted + default: + throwUncloneable(type); + } + } + + mapSet(map, value, cloned); + + switch (type) { + case 'Array': + case 'Object': + keys = objectKeys(value); + for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) { + key = keys[i]; + createProperty(cloned, key, structuredCloneInternal(value[key], map)); + } break; + case 'Map': + value.forEach(function (v, k) { + mapSet(cloned, structuredCloneInternal(k, map), structuredCloneInternal(v, map)); + }); + break; + case 'Set': + value.forEach(function (v) { + setAdd(cloned, structuredCloneInternal(v, map)); + }); + break; + case 'Error': + createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map)); + if (hasOwn(value, 'cause')) { + createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map)); + } + if (name === 'AggregateError') { + cloned.errors = structuredCloneInternal(value.errors, map); + } else if (name === 'SuppressedError') { + cloned.error = structuredCloneInternal(value.error, map); + cloned.suppressed = structuredCloneInternal(value.suppressed, map); + } // break omitted + case 'DOMException': + if (ERROR_STACK_INSTALLABLE) { + createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map)); + } + } + + return cloned; +}; + +var tryToTransfer = function (rawTransfer, map) { + if (!isObject(rawTransfer)) throw new TypeError('Transfer option cannot be converted to a sequence'); + + var transfer = []; + + iterate(rawTransfer, function (value) { + push(transfer, anObject(value)); + }); + + var i = 0; + var length = lengthOfArrayLike(transfer); + var buffers = new Set(); + var value, type, C, transferred, canvas, context; + + while (i < length) { + value = transfer[i++]; + + type = classof(value); + + if (type === 'ArrayBuffer' ? setHas(buffers, value) : mapHas(map, value)) { + throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR); + } + + if (type === 'ArrayBuffer') { + setAdd(buffers, value); + continue; + } + + if (PROPER_STRUCTURED_CLONE_TRANSFER) { + transferred = nativeStructuredClone(value, { transfer: [value] }); + } else switch (type) { + case 'ImageBitmap': + C = globalThis.OffscreenCanvas; + if (!isConstructor(C)) throwUnpolyfillable(type, TRANSFERRING); + try { + canvas = new C(value.width, value.height); + context = canvas.getContext('bitmaprenderer'); + context.transferFromImageBitmap(value); + transferred = canvas.transferToImageBitmap(); + } catch (error) { /* empty */ } + break; + case 'AudioData': + case 'VideoFrame': + if (!isCallable(value.clone) || !isCallable(value.close)) throwUnpolyfillable(type, TRANSFERRING); + try { + transferred = value.clone(); + value.close(); + } catch (error) { /* empty */ } + break; + case 'MediaSourceHandle': + case 'MessagePort': + case 'OffscreenCanvas': + case 'ReadableStream': + case 'TransformStream': + case 'WritableStream': + throwUnpolyfillable(type, TRANSFERRING); + } + + if (transferred === undefined) throw new DOMException('This object cannot be transferred: ' + type, DATA_CLONE_ERROR); + + mapSet(map, value, transferred); + } + + return buffers; +}; + +var detachBuffers = function (buffers) { + setIterate(buffers, function (buffer) { + if (PROPER_STRUCTURED_CLONE_TRANSFER) { + nativeRestrictedStructuredClone(buffer, { transfer: [buffer] }); + } else if (isCallable(buffer.transfer)) { + buffer.transfer(); + } else if (detachTransferable) { + detachTransferable(buffer); + } else { + throwUnpolyfillable('ArrayBuffer', TRANSFERRING); + } + }); +}; + +// `structuredClone` method +// https://html.spec.whatwg.org/multipage/structured-data.html#dom-structuredclone +$({ global: true, enumerable: true, sham: !PROPER_STRUCTURED_CLONE_TRANSFER, forced: FORCED_REPLACEMENT }, { + structuredClone: function structuredClone(value /* , { transfer } */) { + var options = validateArgumentsLength(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject(arguments[1]) : undefined; + var transfer = options ? options.transfer : undefined; + var map, buffers; + + if (transfer !== undefined) { + map = new Map(); + buffers = tryToTransfer(transfer, map); + } + + var clone = structuredCloneInternal(value, map); + + // since of an issue with cloning views of transferred buffers, we a forced to detach them later + // https://github.com/zloirock/core-js/issues/1265 + if (buffers) detachBuffers(buffers); + + return clone; + } +}); diff --git a/node_modules/core-js/modules/web.timers.js b/node_modules/core-js/modules/web.timers.js new file mode 100644 index 0000000..b787686 --- /dev/null +++ b/node_modules/core-js/modules/web.timers.js @@ -0,0 +1,4 @@ +'use strict'; +// TODO: Remove this module from `core-js@4` since it's split to modules listed below +require('../modules/web.set-interval'); +require('../modules/web.set-timeout'); diff --git a/node_modules/core-js/modules/web.url-search-params.constructor.js b/node_modules/core-js/modules/web.url-search-params.constructor.js new file mode 100644 index 0000000..e5a249c --- /dev/null +++ b/node_modules/core-js/modules/web.url-search-params.constructor.js @@ -0,0 +1,511 @@ +'use strict'; +// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` +require('../modules/es.array.iterator'); +require('../modules/es.string.from-code-point'); +var $ = require('../internals/export'); +var globalThis = require('../internals/global-this'); +var safeGetBuiltIn = require('../internals/safe-get-built-in'); +var getBuiltIn = require('../internals/get-built-in'); +var call = require('../internals/function-call'); +var uncurryThis = require('../internals/function-uncurry-this'); +var DESCRIPTORS = require('../internals/descriptors'); +var USE_NATIVE_URL = require('../internals/url-constructor-detection'); +var defineBuiltIn = require('../internals/define-built-in'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var defineBuiltIns = require('../internals/define-built-ins'); +var setToStringTag = require('../internals/set-to-string-tag'); +var createIteratorConstructor = require('../internals/iterator-create-constructor'); +var InternalStateModule = require('../internals/internal-state'); +var anInstance = require('../internals/an-instance'); +var isCallable = require('../internals/is-callable'); +var hasOwn = require('../internals/has-own-property'); +var bind = require('../internals/function-bind-context'); +var classof = require('../internals/classof'); +var anObject = require('../internals/an-object'); +var isObject = require('../internals/is-object'); +var $toString = require('../internals/to-string'); +var create = require('../internals/object-create'); +var createPropertyDescriptor = require('../internals/create-property-descriptor'); +var getIterator = require('../internals/get-iterator'); +var getIteratorMethod = require('../internals/get-iterator-method'); +var createIterResultObject = require('../internals/create-iter-result-object'); +var validateArgumentsLength = require('../internals/validate-arguments-length'); +var wellKnownSymbol = require('../internals/well-known-symbol'); +var arraySort = require('../internals/array-sort'); + +var ITERATOR = wellKnownSymbol('iterator'); +var URL_SEARCH_PARAMS = 'URLSearchParams'; +var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator'; +var setInternalState = InternalStateModule.set; +var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS); +var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR); + +var nativeFetch = safeGetBuiltIn('fetch'); +var NativeRequest = safeGetBuiltIn('Request'); +var Headers = safeGetBuiltIn('Headers'); +var RequestPrototype = NativeRequest && NativeRequest.prototype; +var HeadersPrototype = Headers && Headers.prototype; +var TypeError = globalThis.TypeError; +var encodeURIComponent = globalThis.encodeURIComponent; +var fromCharCode = String.fromCharCode; +var fromCodePoint = getBuiltIn('String', 'fromCodePoint'); +var $parseInt = parseInt; +var charAt = uncurryThis(''.charAt); +var join = uncurryThis([].join); +var push = uncurryThis([].push); +var replace = uncurryThis(''.replace); +var shift = uncurryThis([].shift); +var splice = uncurryThis([].splice); +var split = uncurryThis(''.split); +var stringSlice = uncurryThis(''.slice); +var exec = uncurryThis(/./.exec); + +var plus = /\+/g; +var FALLBACK_REPLACER = '\uFFFD'; +var VALID_HEX = /^[0-9a-f]+$/i; + +var parseHexOctet = function (string, start) { + var substr = stringSlice(string, start, start + 2); + if (!exec(VALID_HEX, substr)) return NaN; + + return $parseInt(substr, 16); +}; + +var getLeadingOnes = function (octet) { + var count = 0; + for (var mask = 0x80; mask > 0 && (octet & mask) !== 0; mask >>= 1) { + count++; + } + return count; +}; + +var utf8Decode = function (octets) { + var codePoint = null; + + switch (octets.length) { + case 1: + codePoint = octets[0]; + break; + case 2: + codePoint = (octets[0] & 0x1F) << 6 | (octets[1] & 0x3F); + break; + case 3: + codePoint = (octets[0] & 0x0F) << 12 | (octets[1] & 0x3F) << 6 | (octets[2] & 0x3F); + break; + case 4: + codePoint = (octets[0] & 0x07) << 18 | (octets[1] & 0x3F) << 12 | (octets[2] & 0x3F) << 6 | (octets[3] & 0x3F); + break; + } + + return codePoint > 0x10FFFF ? null : codePoint; +}; + +var decode = function (input) { + input = replace(input, plus, ' '); + var length = input.length; + var result = ''; + var i = 0; + + while (i < length) { + var decodedChar = charAt(input, i); + + if (decodedChar === '%') { + if (charAt(input, i + 1) === '%' || i + 3 > length) { + result += '%'; + i++; + continue; + } + + var octet = parseHexOctet(input, i + 1); + + // eslint-disable-next-line no-self-compare -- NaN check + if (octet !== octet) { + result += decodedChar; + i++; + continue; + } + + i += 2; + var byteSequenceLength = getLeadingOnes(octet); + + if (byteSequenceLength === 0) { + decodedChar = fromCharCode(octet); + } else { + if (byteSequenceLength === 1 || byteSequenceLength > 4) { + result += FALLBACK_REPLACER; + i++; + continue; + } + + var octets = [octet]; + var sequenceIndex = 1; + + while (sequenceIndex < byteSequenceLength) { + i++; + if (i + 3 > length || charAt(input, i) !== '%') break; + + var nextByte = parseHexOctet(input, i + 1); + + // eslint-disable-next-line no-self-compare -- NaN check + if (nextByte !== nextByte) { + i += 3; + break; + } + if (nextByte > 191 || nextByte < 128) break; + + push(octets, nextByte); + i += 2; + sequenceIndex++; + } + + if (octets.length !== byteSequenceLength) { + result += FALLBACK_REPLACER; + continue; + } + + var codePoint = utf8Decode(octets); + if (codePoint === null) { + result += FALLBACK_REPLACER; + } else { + decodedChar = fromCodePoint(codePoint); + } + } + } + + result += decodedChar; + i++; + } + + return result; +}; + +var find = /[!'()~]|%20/g; + +var replacements = { + '!': '%21', + "'": '%27', + '(': '%28', + ')': '%29', + '~': '%7E', + '%20': '+' +}; + +var replacer = function (match) { + return replacements[match]; +}; + +var serialize = function (it) { + return replace(encodeURIComponent(it), find, replacer); +}; + +var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) { + setInternalState(this, { + type: URL_SEARCH_PARAMS_ITERATOR, + target: getInternalParamsState(params).entries, + index: 0, + kind: kind + }); +}, URL_SEARCH_PARAMS, function next() { + var state = getInternalIteratorState(this); + var target = state.target; + var index = state.index++; + if (!target || index >= target.length) { + state.target = null; + return createIterResultObject(undefined, true); + } + var entry = target[index]; + switch (state.kind) { + case 'keys': return createIterResultObject(entry.key, false); + case 'values': return createIterResultObject(entry.value, false); + } return createIterResultObject([entry.key, entry.value], false); +}, true); + +var URLSearchParamsState = function (init) { + this.entries = []; + this.url = null; + + if (init !== undefined) { + if (isObject(init)) this.parseObject(init); + else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init)); + } +}; + +URLSearchParamsState.prototype = { + type: URL_SEARCH_PARAMS, + bindURL: function (url) { + this.url = url; + this.update(); + }, + parseObject: function (object) { + var entries = this.entries; + var iteratorMethod = getIteratorMethod(object); + var iterator, next, step, entryIterator, entryNext, first, second; + + if (iteratorMethod) { + iterator = getIterator(object, iteratorMethod); + next = iterator.next; + while (!(step = call(next, iterator)).done) { + entryIterator = getIterator(anObject(step.value)); + entryNext = entryIterator.next; + if ( + (first = call(entryNext, entryIterator)).done || + (second = call(entryNext, entryIterator)).done || + !call(entryNext, entryIterator).done + ) throw new TypeError('Expected sequence with length 2'); + push(entries, { key: $toString(first.value), value: $toString(second.value) }); + } + } else for (var key in object) if (hasOwn(object, key)) { + push(entries, { key: key, value: $toString(object[key]) }); + } + }, + parseQuery: function (query) { + if (query) { + var entries = this.entries; + var attributes = split(query, '&'); + var index = 0; + var attribute, entry; + while (index < attributes.length) { + attribute = attributes[index++]; + if (attribute.length) { + entry = split(attribute, '='); + push(entries, { + key: decode(shift(entry)), + value: decode(join(entry, '=')) + }); + } + } + } + }, + serialize: function () { + var entries = this.entries; + var result = []; + var index = 0; + var entry; + while (index < entries.length) { + entry = entries[index++]; + push(result, serialize(entry.key) + '=' + serialize(entry.value)); + } return join(result, '&'); + }, + update: function () { + this.entries.length = 0; + this.parseQuery(this.url.query); + }, + updateURL: function () { + if (this.url) this.url.update(); + } +}; + +// `URLSearchParams` constructor +// https://url.spec.whatwg.org/#interface-urlsearchparams +var URLSearchParamsConstructor = function URLSearchParams(/* init */) { + anInstance(this, URLSearchParamsPrototype); + var init = arguments.length > 0 ? arguments[0] : undefined; + var state = setInternalState(this, new URLSearchParamsState(init)); + if (!DESCRIPTORS) this.size = state.entries.length; +}; + +var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype; + +defineBuiltIns(URLSearchParamsPrototype, { + // `URLSearchParams.prototype.append` method + // https://url.spec.whatwg.org/#dom-urlsearchparams-append + append: function append(name, value) { + var state = getInternalParamsState(this); + validateArgumentsLength(arguments.length, 2); + push(state.entries, { key: $toString(name), value: $toString(value) }); + if (!DESCRIPTORS) this.length++; + state.updateURL(); + }, + // `URLSearchParams.prototype.delete` method + // https://url.spec.whatwg.org/#dom-urlsearchparams-delete + 'delete': function (name /* , value */) { + var state = getInternalParamsState(this); + var length = validateArgumentsLength(arguments.length, 1); + var entries = state.entries; + var key = $toString(name); + var $value = length < 2 ? undefined : arguments[1]; + var value = $value === undefined ? $value : $toString($value); + var index = 0; + while (index < entries.length) { + var entry = entries[index]; + if (entry.key === key && (value === undefined || entry.value === value)) { + splice(entries, index, 1); + if (value !== undefined) break; + } else index++; + } + if (!DESCRIPTORS) this.size = entries.length; + state.updateURL(); + }, + // `URLSearchParams.prototype.get` method + // https://url.spec.whatwg.org/#dom-urlsearchparams-get + get: function get(name) { + var entries = getInternalParamsState(this).entries; + validateArgumentsLength(arguments.length, 1); + var key = $toString(name); + var index = 0; + for (; index < entries.length; index++) { + if (entries[index].key === key) return entries[index].value; + } + return null; + }, + // `URLSearchParams.prototype.getAll` method + // https://url.spec.whatwg.org/#dom-urlsearchparams-getall + getAll: function getAll(name) { + var entries = getInternalParamsState(this).entries; + validateArgumentsLength(arguments.length, 1); + var key = $toString(name); + var result = []; + var index = 0; + for (; index < entries.length; index++) { + if (entries[index].key === key) push(result, entries[index].value); + } + return result; + }, + // `URLSearchParams.prototype.has` method + // https://url.spec.whatwg.org/#dom-urlsearchparams-has + has: function has(name /* , value */) { + var entries = getInternalParamsState(this).entries; + var length = validateArgumentsLength(arguments.length, 1); + var key = $toString(name); + var $value = length < 2 ? undefined : arguments[1]; + var value = $value === undefined ? $value : $toString($value); + var index = 0; + while (index < entries.length) { + var entry = entries[index++]; + if (entry.key === key && (value === undefined || entry.value === value)) return true; + } + return false; + }, + // `URLSearchParams.prototype.set` method + // https://url.spec.whatwg.org/#dom-urlsearchparams-set + set: function set(name, value) { + var state = getInternalParamsState(this); + validateArgumentsLength(arguments.length, 1); + var entries = state.entries; + var found = false; + var key = $toString(name); + var val = $toString(value); + var index = 0; + var entry; + for (; index < entries.length; index++) { + entry = entries[index]; + if (entry.key === key) { + if (found) splice(entries, index--, 1); + else { + found = true; + entry.value = val; + } + } + } + if (!found) push(entries, { key: key, value: val }); + if (!DESCRIPTORS) this.size = entries.length; + state.updateURL(); + }, + // `URLSearchParams.prototype.sort` method + // https://url.spec.whatwg.org/#dom-urlsearchparams-sort + sort: function sort() { + var state = getInternalParamsState(this); + arraySort(state.entries, function (a, b) { + return a.key > b.key ? 1 : -1; + }); + state.updateURL(); + }, + // `URLSearchParams.prototype.forEach` method + forEach: function forEach(callback /* , thisArg */) { + var entries = getInternalParamsState(this).entries; + var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined); + var index = 0; + var entry; + while (index < entries.length) { + entry = entries[index++]; + boundFunction(entry.value, entry.key, this); + } + }, + // `URLSearchParams.prototype.keys` method + keys: function keys() { + return new URLSearchParamsIterator(this, 'keys'); + }, + // `URLSearchParams.prototype.values` method + values: function values() { + return new URLSearchParamsIterator(this, 'values'); + }, + // `URLSearchParams.prototype.entries` method + entries: function entries() { + return new URLSearchParamsIterator(this, 'entries'); + } +}, { enumerable: true }); + +// `URLSearchParams.prototype[@@iterator]` method +defineBuiltIn(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' }); + +// `URLSearchParams.prototype.toString` method +// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior +defineBuiltIn(URLSearchParamsPrototype, 'toString', function toString() { + return getInternalParamsState(this).serialize(); +}, { enumerable: true }); + +// `URLSearchParams.prototype.size` getter +// https://github.com/whatwg/url/pull/734 +if (DESCRIPTORS) defineBuiltInAccessor(URLSearchParamsPrototype, 'size', { + get: function size() { + return getInternalParamsState(this).entries.length; + }, + configurable: true, + enumerable: true +}); + +setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS); + +$({ global: true, constructor: true, forced: !USE_NATIVE_URL }, { + URLSearchParams: URLSearchParamsConstructor +}); + +// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams` +if (!USE_NATIVE_URL && isCallable(Headers)) { + var headersHas = uncurryThis(HeadersPrototype.has); + var headersSet = uncurryThis(HeadersPrototype.set); + + var wrapRequestOptions = function (init) { + if (isObject(init)) { + var body = init.body; + var headers; + if (classof(body) === URL_SEARCH_PARAMS) { + headers = init.headers ? new Headers(init.headers) : new Headers(); + if (!headersHas(headers, 'content-type')) { + headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); + } + return create(init, { + body: createPropertyDescriptor(0, $toString(body)), + headers: createPropertyDescriptor(0, headers) + }); + } + } return init; + }; + + if (isCallable(nativeFetch)) { + $({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, { + fetch: function fetch(input /* , init */) { + return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {}); + } + }); + } + + if (isCallable(NativeRequest)) { + var RequestConstructor = function Request(input /* , init */) { + anInstance(this, RequestPrototype); + return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {}); + }; + + RequestPrototype.constructor = RequestConstructor; + RequestConstructor.prototype = RequestPrototype; + + $({ global: true, constructor: true, dontCallGetSet: true, forced: true }, { + Request: RequestConstructor + }); + } +} + +module.exports = { + URLSearchParams: URLSearchParamsConstructor, + getState: getInternalParamsState +}; diff --git a/node_modules/core-js/modules/web.url-search-params.delete.js b/node_modules/core-js/modules/web.url-search-params.delete.js new file mode 100644 index 0000000..0d8023a --- /dev/null +++ b/node_modules/core-js/modules/web.url-search-params.delete.js @@ -0,0 +1,49 @@ +'use strict'; +var defineBuiltIn = require('../internals/define-built-in'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toString = require('../internals/to-string'); +var validateArgumentsLength = require('../internals/validate-arguments-length'); + +var $URLSearchParams = URLSearchParams; +var URLSearchParamsPrototype = $URLSearchParams.prototype; +var append = uncurryThis(URLSearchParamsPrototype.append); +var $delete = uncurryThis(URLSearchParamsPrototype['delete']); +var forEach = uncurryThis(URLSearchParamsPrototype.forEach); +var push = uncurryThis([].push); +var params = new $URLSearchParams('a=1&a=2&b=3'); + +params['delete']('a', 1); +// `undefined` case is a Chromium 117 bug +// https://bugs.chromium.org/p/v8/issues/detail?id=14222 +params['delete']('b', undefined); + +if (params + '' !== 'a=2') { + defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) { + var length = arguments.length; + var $value = length < 2 ? undefined : arguments[1]; + if (length && $value === undefined) return $delete(this, name); + var entries = []; + forEach(this, function (v, k) { // also validates `this` + push(entries, { key: k, value: v }); + }); + validateArgumentsLength(length, 1); + var key = toString(name); + var value = toString($value); + var index = 0; + var dindex = 0; + var found = false; + var entriesLength = entries.length; + var entry; + while (index < entriesLength) { + entry = entries[index++]; + if (found || entry.key === key) { + found = true; + $delete(this, entry.key); + } else dindex++; + } + while (dindex < entriesLength) { + entry = entries[dindex++]; + if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value); + } + }, { enumerable: true, unsafe: true }); +} diff --git a/node_modules/core-js/modules/web.url-search-params.has.js b/node_modules/core-js/modules/web.url-search-params.has.js new file mode 100644 index 0000000..46f6a2d --- /dev/null +++ b/node_modules/core-js/modules/web.url-search-params.has.js @@ -0,0 +1,28 @@ +'use strict'; +var defineBuiltIn = require('../internals/define-built-in'); +var uncurryThis = require('../internals/function-uncurry-this'); +var toString = require('../internals/to-string'); +var validateArgumentsLength = require('../internals/validate-arguments-length'); + +var $URLSearchParams = URLSearchParams; +var URLSearchParamsPrototype = $URLSearchParams.prototype; +var getAll = uncurryThis(URLSearchParamsPrototype.getAll); +var $has = uncurryThis(URLSearchParamsPrototype.has); +var params = new $URLSearchParams('a=1'); + +// `undefined` case is a Chromium 117 bug +// https://bugs.chromium.org/p/v8/issues/detail?id=14222 +if (params.has('a', 2) || !params.has('a', undefined)) { + defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) { + var length = arguments.length; + var $value = length < 2 ? undefined : arguments[1]; + if (length && $value === undefined) return $has(this, name); + var values = getAll(this, name); // also validates `this` + validateArgumentsLength(length, 1); + var value = toString($value); + var index = 0; + while (index < values.length) { + if (values[index++] === value) return true; + } return false; + }, { enumerable: true, unsafe: true }); +} diff --git a/node_modules/core-js/modules/web.url-search-params.js b/node_modules/core-js/modules/web.url-search-params.js new file mode 100644 index 0000000..5ebea93 --- /dev/null +++ b/node_modules/core-js/modules/web.url-search-params.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove this module from `core-js@4` since it's replaced to module below +require('../modules/web.url-search-params.constructor'); diff --git a/node_modules/core-js/modules/web.url-search-params.size.js b/node_modules/core-js/modules/web.url-search-params.size.js new file mode 100644 index 0000000..65ab25d --- /dev/null +++ b/node_modules/core-js/modules/web.url-search-params.size.js @@ -0,0 +1,21 @@ +'use strict'; +var DESCRIPTORS = require('../internals/descriptors'); +var uncurryThis = require('../internals/function-uncurry-this'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); + +var URLSearchParamsPrototype = URLSearchParams.prototype; +var forEach = uncurryThis(URLSearchParamsPrototype.forEach); + +// `URLSearchParams.prototype.size` getter +// https://github.com/whatwg/url/pull/734 +if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) { + defineBuiltInAccessor(URLSearchParamsPrototype, 'size', { + get: function size() { + var count = 0; + forEach(this, function () { count++; }); + return count; + }, + configurable: true, + enumerable: true + }); +} diff --git a/node_modules/core-js/modules/web.url.can-parse.js b/node_modules/core-js/modules/web.url.can-parse.js new file mode 100644 index 0000000..bf7a96f --- /dev/null +++ b/node_modules/core-js/modules/web.url.can-parse.js @@ -0,0 +1,36 @@ +'use strict'; +var $ = require('../internals/export'); +var getBuiltIn = require('../internals/get-built-in'); +var fails = require('../internals/fails'); +var validateArgumentsLength = require('../internals/validate-arguments-length'); +var toString = require('../internals/to-string'); +var USE_NATIVE_URL = require('../internals/url-constructor-detection'); + +var URL = getBuiltIn('URL'); + +// https://github.com/nodejs/node/issues/47505 +// https://github.com/denoland/deno/issues/18893 +var THROWS_WITHOUT_ARGUMENTS = USE_NATIVE_URL && fails(function () { + URL.canParse(); +}); + +// Bun ~ 1.0.30 bug +// https://github.com/oven-sh/bun/issues/9250 +var WRONG_ARITY = fails(function () { + return URL.canParse.length !== 1; +}); + +// `URL.canParse` method +// https://url.spec.whatwg.org/#dom-url-canparse +$({ target: 'URL', stat: true, forced: !THROWS_WITHOUT_ARGUMENTS || WRONG_ARITY }, { + canParse: function canParse(url) { + var length = validateArgumentsLength(arguments.length, 1); + var urlString = toString(url); + var base = length < 2 || arguments[1] === undefined ? undefined : toString(arguments[1]); + try { + return !!new URL(urlString, base); + } catch (error) { + return false; + } + } +}); diff --git a/node_modules/core-js/modules/web.url.constructor.js b/node_modules/core-js/modules/web.url.constructor.js new file mode 100644 index 0000000..2a31ff0 --- /dev/null +++ b/node_modules/core-js/modules/web.url.constructor.js @@ -0,0 +1,1050 @@ +'use strict'; +// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` +require('../modules/es.string.iterator'); +var $ = require('../internals/export'); +var DESCRIPTORS = require('../internals/descriptors'); +var USE_NATIVE_URL = require('../internals/url-constructor-detection'); +var globalThis = require('../internals/global-this'); +var bind = require('../internals/function-bind-context'); +var uncurryThis = require('../internals/function-uncurry-this'); +var defineBuiltIn = require('../internals/define-built-in'); +var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); +var anInstance = require('../internals/an-instance'); +var hasOwn = require('../internals/has-own-property'); +var assign = require('../internals/object-assign'); +var arrayFrom = require('../internals/array-from'); +var arraySlice = require('../internals/array-slice'); +var codeAt = require('../internals/string-multibyte').codeAt; +var toASCII = require('../internals/string-punycode-to-ascii'); +var $toString = require('../internals/to-string'); +var setToStringTag = require('../internals/set-to-string-tag'); +var validateArgumentsLength = require('../internals/validate-arguments-length'); +var URLSearchParamsModule = require('../modules/web.url-search-params.constructor'); +var InternalStateModule = require('../internals/internal-state'); + +var setInternalState = InternalStateModule.set; +var getInternalURLState = InternalStateModule.getterFor('URL'); +var URLSearchParams = URLSearchParamsModule.URLSearchParams; +var getInternalSearchParamsState = URLSearchParamsModule.getState; + +var NativeURL = globalThis.URL; +var TypeError = globalThis.TypeError; +var parseInt = globalThis.parseInt; +var floor = Math.floor; +var pow = Math.pow; +var charAt = uncurryThis(''.charAt); +var exec = uncurryThis(/./.exec); +var join = uncurryThis([].join); +var numberToString = uncurryThis(1.0.toString); +var pop = uncurryThis([].pop); +var push = uncurryThis([].push); +var replace = uncurryThis(''.replace); +var shift = uncurryThis([].shift); +var split = uncurryThis(''.split); +var stringSlice = uncurryThis(''.slice); +var toLowerCase = uncurryThis(''.toLowerCase); +var unshift = uncurryThis([].unshift); + +var INVALID_AUTHORITY = 'Invalid authority'; +var INVALID_SCHEME = 'Invalid scheme'; +var INVALID_HOST = 'Invalid host'; +var INVALID_PORT = 'Invalid port'; + +var ALPHA = /[a-z]/i; +// eslint-disable-next-line regexp/no-obscure-range -- safe +var ALPHANUMERIC = /[\d+-.a-z]/i; +var DIGIT = /\d/; +var HEX_START = /^0x/i; +var OCT = /^[0-7]+$/; +var DEC = /^\d+$/; +var HEX = /^[\da-f]+$/i; +/* eslint-disable regexp/no-control-character -- safe */ +var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/; +var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/; +var LEADING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+/; +var TRAILING_C0_CONTROL_OR_SPACE = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/; +var TAB_AND_NEW_LINE = /[\t\n\r]/g; +/* eslint-enable regexp/no-control-character -- safe */ +var EOF; + +// https://url.spec.whatwg.org/#ipv4-number-parser +var parseIPv4 = function (input) { + var parts = split(input, '.'); + var partsLength, numbers, index, part, radix, number, ipv4; + if (parts.length && parts[parts.length - 1] === '') { + parts.length--; + } + partsLength = parts.length; + if (partsLength > 4) return input; + numbers = []; + for (index = 0; index < partsLength; index++) { + part = parts[index]; + if (part === '') return input; + radix = 10; + if (part.length > 1 && charAt(part, 0) === '0') { + radix = exec(HEX_START, part) ? 16 : 8; + part = stringSlice(part, radix === 8 ? 1 : 2); + } + if (part === '') { + number = 0; + } else { + if (!exec(radix === 10 ? DEC : radix === 8 ? OCT : HEX, part)) return input; + number = parseInt(part, radix); + } + push(numbers, number); + } + for (index = 0; index < partsLength; index++) { + number = numbers[index]; + if (index === partsLength - 1) { + if (number >= pow(256, 5 - partsLength)) return null; + } else if (number > 255) return null; + } + ipv4 = pop(numbers); + for (index = 0; index < numbers.length; index++) { + ipv4 += numbers[index] * pow(256, 3 - index); + } + return ipv4; +}; + +// https://url.spec.whatwg.org/#concept-ipv6-parser +// eslint-disable-next-line max-statements -- TODO +var parseIPv6 = function (input) { + var address = [0, 0, 0, 0, 0, 0, 0, 0]; + var pieceIndex = 0; + var compress = null; + var pointer = 0; + var value, length, numbersSeen, ipv4Piece, number, swaps, swap; + + var chr = function () { + return charAt(input, pointer); + }; + + if (chr() === ':') { + if (charAt(input, 1) !== ':') return; + pointer += 2; + pieceIndex++; + compress = pieceIndex; + } + while (chr()) { + if (pieceIndex === 8) return; + if (chr() === ':') { + if (compress !== null) return; + pointer++; + pieceIndex++; + compress = pieceIndex; + continue; + } + value = length = 0; + while (length < 4 && exec(HEX, chr())) { + value = value * 16 + parseInt(chr(), 16); + pointer++; + length++; + } + if (chr() === '.') { + if (length === 0) return; + pointer -= length; + if (pieceIndex > 6) return; + numbersSeen = 0; + while (chr()) { + ipv4Piece = null; + if (numbersSeen > 0) { + if (chr() === '.' && numbersSeen < 4) pointer++; + else return; + } + if (!exec(DIGIT, chr())) return; + while (exec(DIGIT, chr())) { + number = parseInt(chr(), 10); + if (ipv4Piece === null) ipv4Piece = number; + else if (ipv4Piece === 0) return; + else ipv4Piece = ipv4Piece * 10 + number; + if (ipv4Piece > 255) return; + pointer++; + } + address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece; + numbersSeen++; + if (numbersSeen === 2 || numbersSeen === 4) pieceIndex++; + } + if (numbersSeen !== 4) return; + break; + } else if (chr() === ':') { + pointer++; + if (!chr()) return; + } else if (chr()) return; + address[pieceIndex++] = value; + } + if (compress !== null) { + swaps = pieceIndex - compress; + pieceIndex = 7; + while (pieceIndex !== 0 && swaps > 0) { + swap = address[pieceIndex]; + address[pieceIndex--] = address[compress + swaps - 1]; + address[compress + --swaps] = swap; + } + } else if (pieceIndex !== 8) return; + return address; +}; + +var findLongestZeroSequence = function (ipv6) { + var maxIndex = null; + var maxLength = 1; + var currStart = null; + var currLength = 0; + var index = 0; + for (; index < 8; index++) { + if (ipv6[index] !== 0) { + if (currLength > maxLength) { + maxIndex = currStart; + maxLength = currLength; + } + currStart = null; + currLength = 0; + } else { + if (currStart === null) currStart = index; + ++currLength; + } + } + return currLength > maxLength ? currStart : maxIndex; +}; + +// https://url.spec.whatwg.org/#host-serializing +var serializeHost = function (host) { + var result, index, compress, ignore0; + + // ipv4 + if (typeof host == 'number') { + result = []; + for (index = 0; index < 4; index++) { + unshift(result, host % 256); + host = floor(host / 256); + } + return join(result, '.'); + } + + // ipv6 + if (typeof host == 'object') { + result = ''; + compress = findLongestZeroSequence(host); + for (index = 0; index < 8; index++) { + if (ignore0 && host[index] === 0) continue; + if (ignore0) ignore0 = false; + if (compress === index) { + result += index ? ':' : '::'; + ignore0 = true; + } else { + result += numberToString(host[index], 16); + if (index < 7) result += ':'; + } + } + return '[' + result + ']'; + } + + return host; +}; + +var C0ControlPercentEncodeSet = {}; +var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, { + ' ': 1, '"': 1, '<': 1, '>': 1, '`': 1 +}); +var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, { + '#': 1, '?': 1, '{': 1, '}': 1 +}); +var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, { + '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1 +}); + +var percentEncode = function (chr, set) { + var code = codeAt(chr, 0); + return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr); +}; + +// https://url.spec.whatwg.org/#special-scheme +var specialSchemes = { + ftp: 21, + file: null, + http: 80, + https: 443, + ws: 80, + wss: 443 +}; + +// https://url.spec.whatwg.org/#windows-drive-letter +var isWindowsDriveLetter = function (string, normalized) { + var second; + return string.length === 2 && exec(ALPHA, charAt(string, 0)) + && ((second = charAt(string, 1)) === ':' || (!normalized && second === '|')); +}; + +// https://url.spec.whatwg.org/#start-with-a-windows-drive-letter +var startsWithWindowsDriveLetter = function (string) { + var third; + return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && ( + string.length === 2 || + ((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#') + ); +}; + +// https://url.spec.whatwg.org/#single-dot-path-segment +var isSingleDot = function (segment) { + return segment === '.' || toLowerCase(segment) === '%2e'; +}; + +// https://url.spec.whatwg.org/#double-dot-path-segment +var isDoubleDot = function (segment) { + segment = toLowerCase(segment); + return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e'; +}; + +// States: +var SCHEME_START = {}; +var SCHEME = {}; +var NO_SCHEME = {}; +var SPECIAL_RELATIVE_OR_AUTHORITY = {}; +var PATH_OR_AUTHORITY = {}; +var RELATIVE = {}; +var RELATIVE_SLASH = {}; +var SPECIAL_AUTHORITY_SLASHES = {}; +var SPECIAL_AUTHORITY_IGNORE_SLASHES = {}; +var AUTHORITY = {}; +var HOST = {}; +var HOSTNAME = {}; +var PORT = {}; +var FILE = {}; +var FILE_SLASH = {}; +var FILE_HOST = {}; +var PATH_START = {}; +var PATH = {}; +var CANNOT_BE_A_BASE_URL_PATH = {}; +var QUERY = {}; +var FRAGMENT = {}; + +var URLState = function (url, isBase, base) { + var urlString = $toString(url); + var baseState, failure, searchParams; + if (isBase) { + failure = this.parse(urlString); + if (failure) throw new TypeError(failure); + this.searchParams = null; + } else { + if (base !== undefined) baseState = new URLState(base, true); + failure = this.parse(urlString, null, baseState); + if (failure) throw new TypeError(failure); + searchParams = getInternalSearchParamsState(new URLSearchParams()); + searchParams.bindURL(this); + this.searchParams = searchParams; + } +}; + +URLState.prototype = { + type: 'URL', + // https://url.spec.whatwg.org/#url-parsing + // eslint-disable-next-line max-statements -- TODO + parse: function (input, stateOverride, base) { + var url = this; + var state = stateOverride || SCHEME_START; + var pointer = 0; + var buffer = ''; + var seenAt = false; + var seenBracket = false; + var seenPasswordToken = false; + var codePoints, chr, bufferCodePoints, failure; + + input = $toString(input); + + if (!stateOverride) { + url.scheme = ''; + url.username = ''; + url.password = ''; + url.host = null; + url.port = null; + url.path = []; + url.query = null; + url.fragment = null; + url.cannotBeABaseURL = false; + input = replace(input, LEADING_C0_CONTROL_OR_SPACE, ''); + input = replace(input, TRAILING_C0_CONTROL_OR_SPACE, '$1'); + } + + input = replace(input, TAB_AND_NEW_LINE, ''); + + codePoints = arrayFrom(input); + + while (pointer <= codePoints.length) { + chr = codePoints[pointer]; + switch (state) { + case SCHEME_START: + if (chr && exec(ALPHA, chr)) { + buffer += toLowerCase(chr); + state = SCHEME; + } else if (!stateOverride) { + state = NO_SCHEME; + continue; + } else return INVALID_SCHEME; + break; + + case SCHEME: + if (chr && (exec(ALPHANUMERIC, chr) || chr === '+' || chr === '-' || chr === '.')) { + buffer += toLowerCase(chr); + } else if (chr === ':') { + if (stateOverride && ( + (url.isSpecial() !== hasOwn(specialSchemes, buffer)) || + (buffer === 'file' && (url.includesCredentials() || url.port !== null)) || + (url.scheme === 'file' && !url.host) + )) return; + url.scheme = buffer; + if (stateOverride) { + if (url.isSpecial() && specialSchemes[url.scheme] === url.port) url.port = null; + return; + } + buffer = ''; + if (url.scheme === 'file') { + state = FILE; + } else if (url.isSpecial() && base && base.scheme === url.scheme) { + state = SPECIAL_RELATIVE_OR_AUTHORITY; + } else if (url.isSpecial()) { + state = SPECIAL_AUTHORITY_SLASHES; + } else if (codePoints[pointer + 1] === '/') { + state = PATH_OR_AUTHORITY; + pointer++; + } else { + url.cannotBeABaseURL = true; + push(url.path, ''); + state = CANNOT_BE_A_BASE_URL_PATH; + } + } else if (!stateOverride) { + buffer = ''; + state = NO_SCHEME; + pointer = 0; + continue; + } else return INVALID_SCHEME; + break; + + case NO_SCHEME: + if (!base || (base.cannotBeABaseURL && chr !== '#')) return INVALID_SCHEME; + if (base.cannotBeABaseURL && chr === '#') { + url.scheme = base.scheme; + url.path = arraySlice(base.path); + url.query = base.query; + url.fragment = ''; + url.cannotBeABaseURL = true; + state = FRAGMENT; + break; + } + state = base.scheme === 'file' ? FILE : RELATIVE; + continue; + + case SPECIAL_RELATIVE_OR_AUTHORITY: + if (chr === '/' && codePoints[pointer + 1] === '/') { + state = SPECIAL_AUTHORITY_IGNORE_SLASHES; + pointer++; + } else { + state = RELATIVE; + continue; + } break; + + case PATH_OR_AUTHORITY: + if (chr === '/') { + state = AUTHORITY; + break; + } else { + state = PATH; + continue; + } + + case RELATIVE: + url.scheme = base.scheme; + if (chr === EOF) { + url.username = base.username; + url.password = base.password; + url.host = base.host; + url.port = base.port; + url.path = arraySlice(base.path); + url.query = base.query; + } else if (chr === '/' || (chr === '\\' && url.isSpecial())) { + state = RELATIVE_SLASH; + } else if (chr === '?') { + url.username = base.username; + url.password = base.password; + url.host = base.host; + url.port = base.port; + url.path = arraySlice(base.path); + url.query = ''; + state = QUERY; + } else if (chr === '#') { + url.username = base.username; + url.password = base.password; + url.host = base.host; + url.port = base.port; + url.path = arraySlice(base.path); + url.query = base.query; + url.fragment = ''; + state = FRAGMENT; + } else { + url.username = base.username; + url.password = base.password; + url.host = base.host; + url.port = base.port; + url.path = arraySlice(base.path); + url.path.length--; + state = PATH; + continue; + } break; + + case RELATIVE_SLASH: + if (url.isSpecial() && (chr === '/' || chr === '\\')) { + state = SPECIAL_AUTHORITY_IGNORE_SLASHES; + } else if (chr === '/') { + state = AUTHORITY; + } else { + url.username = base.username; + url.password = base.password; + url.host = base.host; + url.port = base.port; + state = PATH; + continue; + } break; + + case SPECIAL_AUTHORITY_SLASHES: + state = SPECIAL_AUTHORITY_IGNORE_SLASHES; + if (chr !== '/' || charAt(buffer, pointer + 1) !== '/') continue; + pointer++; + break; + + case SPECIAL_AUTHORITY_IGNORE_SLASHES: + if (chr !== '/' && chr !== '\\') { + state = AUTHORITY; + continue; + } break; + + case AUTHORITY: + if (chr === '@') { + if (seenAt) buffer = '%40' + buffer; + seenAt = true; + bufferCodePoints = arrayFrom(buffer); + for (var i = 0; i < bufferCodePoints.length; i++) { + var codePoint = bufferCodePoints[i]; + if (codePoint === ':' && !seenPasswordToken) { + seenPasswordToken = true; + continue; + } + var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet); + if (seenPasswordToken) url.password += encodedCodePoints; + else url.username += encodedCodePoints; + } + buffer = ''; + } else if ( + chr === EOF || chr === '/' || chr === '?' || chr === '#' || + (chr === '\\' && url.isSpecial()) + ) { + if (seenAt && buffer === '') return INVALID_AUTHORITY; + pointer -= arrayFrom(buffer).length + 1; + buffer = ''; + state = HOST; + } else buffer += chr; + break; + + case HOST: + case HOSTNAME: + if (stateOverride && url.scheme === 'file') { + state = FILE_HOST; + continue; + } else if (chr === ':' && !seenBracket) { + if (buffer === '') return INVALID_HOST; + failure = url.parseHost(buffer); + if (failure) return failure; + buffer = ''; + state = PORT; + if (stateOverride === HOSTNAME) return; + } else if ( + chr === EOF || chr === '/' || chr === '?' || chr === '#' || + (chr === '\\' && url.isSpecial()) + ) { + if (url.isSpecial() && buffer === '') return INVALID_HOST; + if (stateOverride && buffer === '' && (url.includesCredentials() || url.port !== null)) return; + failure = url.parseHost(buffer); + if (failure) return failure; + buffer = ''; + state = PATH_START; + if (stateOverride) return; + continue; + } else { + if (chr === '[') seenBracket = true; + else if (chr === ']') seenBracket = false; + buffer += chr; + } break; + + case PORT: + if (exec(DIGIT, chr)) { + buffer += chr; + } else if ( + chr === EOF || chr === '/' || chr === '?' || chr === '#' || + (chr === '\\' && url.isSpecial()) || + stateOverride + ) { + if (buffer !== '') { + var port = parseInt(buffer, 10); + if (port > 0xFFFF) return INVALID_PORT; + url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port; + buffer = ''; + } + if (stateOverride) return; + state = PATH_START; + continue; + } else return INVALID_PORT; + break; + + case FILE: + url.scheme = 'file'; + if (chr === '/' || chr === '\\') state = FILE_SLASH; + else if (base && base.scheme === 'file') { + switch (chr) { + case EOF: + url.host = base.host; + url.path = arraySlice(base.path); + url.query = base.query; + break; + case '?': + url.host = base.host; + url.path = arraySlice(base.path); + url.query = ''; + state = QUERY; + break; + case '#': + url.host = base.host; + url.path = arraySlice(base.path); + url.query = base.query; + url.fragment = ''; + state = FRAGMENT; + break; + default: + if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) { + url.host = base.host; + url.path = arraySlice(base.path); + url.shortenPath(); + } + state = PATH; + continue; + } + } else { + state = PATH; + continue; + } break; + + case FILE_SLASH: + if (chr === '/' || chr === '\\') { + state = FILE_HOST; + break; + } + if (base && base.scheme === 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) { + if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]); + else url.host = base.host; + } + state = PATH; + continue; + + case FILE_HOST: + if (chr === EOF || chr === '/' || chr === '\\' || chr === '?' || chr === '#') { + if (!stateOverride && isWindowsDriveLetter(buffer)) { + state = PATH; + } else if (buffer === '') { + url.host = ''; + if (stateOverride) return; + state = PATH_START; + } else { + failure = url.parseHost(buffer); + if (failure) return failure; + if (url.host === 'localhost') url.host = ''; + if (stateOverride) return; + buffer = ''; + state = PATH_START; + } continue; + } else buffer += chr; + break; + + case PATH_START: + if (url.isSpecial()) { + state = PATH; + if (chr !== '/' && chr !== '\\') continue; + } else if (!stateOverride && chr === '?') { + url.query = ''; + state = QUERY; + } else if (!stateOverride && chr === '#') { + url.fragment = ''; + state = FRAGMENT; + } else if (chr !== EOF) { + state = PATH; + if (chr !== '/') continue; + } break; + + case PATH: + if ( + chr === EOF || chr === '/' || + (chr === '\\' && url.isSpecial()) || + (!stateOverride && (chr === '?' || chr === '#')) + ) { + if (isDoubleDot(buffer)) { + url.shortenPath(); + if (chr !== '/' && !(chr === '\\' && url.isSpecial())) { + push(url.path, ''); + } + } else if (isSingleDot(buffer)) { + if (chr !== '/' && !(chr === '\\' && url.isSpecial())) { + push(url.path, ''); + } + } else { + if (url.scheme === 'file' && !url.path.length && isWindowsDriveLetter(buffer)) { + if (url.host) url.host = ''; + buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter + } + push(url.path, buffer); + } + buffer = ''; + if (url.scheme === 'file' && (chr === EOF || chr === '?' || chr === '#')) { + while (url.path.length > 1 && url.path[0] === '') { + shift(url.path); + } + } + if (chr === '?') { + url.query = ''; + state = QUERY; + } else if (chr === '#') { + url.fragment = ''; + state = FRAGMENT; + } + } else { + buffer += percentEncode(chr, pathPercentEncodeSet); + } break; + + case CANNOT_BE_A_BASE_URL_PATH: + if (chr === '?') { + url.query = ''; + state = QUERY; + } else if (chr === '#') { + url.fragment = ''; + state = FRAGMENT; + } else if (chr !== EOF) { + url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet); + } break; + + case QUERY: + if (!stateOverride && chr === '#') { + url.fragment = ''; + state = FRAGMENT; + } else if (chr !== EOF) { + if (chr === "'" && url.isSpecial()) url.query += '%27'; + else if (chr === '#') url.query += '%23'; + else url.query += percentEncode(chr, C0ControlPercentEncodeSet); + } break; + + case FRAGMENT: + if (chr !== EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet); + break; + } + + pointer++; + } + }, + // https://url.spec.whatwg.org/#host-parsing + parseHost: function (input) { + var result, codePoints, index; + if (charAt(input, 0) === '[') { + if (charAt(input, input.length - 1) !== ']') return INVALID_HOST; + result = parseIPv6(stringSlice(input, 1, -1)); + if (!result) return INVALID_HOST; + this.host = result; + // opaque host + } else if (!this.isSpecial()) { + if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input)) return INVALID_HOST; + result = ''; + codePoints = arrayFrom(input); + for (index = 0; index < codePoints.length; index++) { + result += percentEncode(codePoints[index], C0ControlPercentEncodeSet); + } + this.host = result; + } else { + input = toASCII(input); + if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST; + result = parseIPv4(input); + if (result === null) return INVALID_HOST; + this.host = result; + } + }, + // https://url.spec.whatwg.org/#cannot-have-a-username-password-port + cannotHaveUsernamePasswordPort: function () { + return !this.host || this.cannotBeABaseURL || this.scheme === 'file'; + }, + // https://url.spec.whatwg.org/#include-credentials + includesCredentials: function () { + return this.username !== '' || this.password !== ''; + }, + // https://url.spec.whatwg.org/#is-special + isSpecial: function () { + return hasOwn(specialSchemes, this.scheme); + }, + // https://url.spec.whatwg.org/#shorten-a-urls-path + shortenPath: function () { + var path = this.path; + var pathSize = path.length; + if (pathSize && (this.scheme !== 'file' || pathSize !== 1 || !isWindowsDriveLetter(path[0], true))) { + path.length--; + } + }, + // https://url.spec.whatwg.org/#concept-url-serializer + serialize: function () { + var url = this; + var scheme = url.scheme; + var username = url.username; + var password = url.password; + var host = url.host; + var port = url.port; + var path = url.path; + var query = url.query; + var fragment = url.fragment; + var output = scheme + ':'; + if (host !== null) { + output += '//'; + if (url.includesCredentials()) { + output += username + (password ? ':' + password : '') + '@'; + } + output += serializeHost(host); + if (port !== null) output += ':' + port; + } else if (scheme === 'file') output += '//'; + output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : ''; + if (query !== null) output += '?' + query; + if (fragment !== null) output += '#' + fragment; + return output; + }, + // https://url.spec.whatwg.org/#dom-url-href + setHref: function (href) { + var failure = this.parse(href); + if (failure) throw new TypeError(failure); + this.searchParams.update(); + }, + // https://url.spec.whatwg.org/#dom-url-origin + getOrigin: function () { + var scheme = this.scheme; + var port = this.port; + if (scheme === 'blob') try { + return new URLConstructor(scheme.path[0]).origin; + } catch (error) { + return 'null'; + } + if (scheme === 'file' || !this.isSpecial()) return 'null'; + return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : ''); + }, + // https://url.spec.whatwg.org/#dom-url-protocol + getProtocol: function () { + return this.scheme + ':'; + }, + setProtocol: function (protocol) { + this.parse($toString(protocol) + ':', SCHEME_START); + }, + // https://url.spec.whatwg.org/#dom-url-username + getUsername: function () { + return this.username; + }, + setUsername: function (username) { + var codePoints = arrayFrom($toString(username)); + if (this.cannotHaveUsernamePasswordPort()) return; + this.username = ''; + for (var i = 0; i < codePoints.length; i++) { + this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet); + } + }, + // https://url.spec.whatwg.org/#dom-url-password + getPassword: function () { + return this.password; + }, + setPassword: function (password) { + var codePoints = arrayFrom($toString(password)); + if (this.cannotHaveUsernamePasswordPort()) return; + this.password = ''; + for (var i = 0; i < codePoints.length; i++) { + this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet); + } + }, + // https://url.spec.whatwg.org/#dom-url-host + getHost: function () { + var host = this.host; + var port = this.port; + return host === null ? '' + : port === null ? serializeHost(host) + : serializeHost(host) + ':' + port; + }, + setHost: function (host) { + if (this.cannotBeABaseURL) return; + this.parse(host, HOST); + }, + // https://url.spec.whatwg.org/#dom-url-hostname + getHostname: function () { + var host = this.host; + return host === null ? '' : serializeHost(host); + }, + setHostname: function (hostname) { + if (this.cannotBeABaseURL) return; + this.parse(hostname, HOSTNAME); + }, + // https://url.spec.whatwg.org/#dom-url-port + getPort: function () { + var port = this.port; + return port === null ? '' : $toString(port); + }, + setPort: function (port) { + if (this.cannotHaveUsernamePasswordPort()) return; + port = $toString(port); + if (port === '') this.port = null; + else this.parse(port, PORT); + }, + // https://url.spec.whatwg.org/#dom-url-pathname + getPathname: function () { + var path = this.path; + return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : ''; + }, + setPathname: function (pathname) { + if (this.cannotBeABaseURL) return; + this.path = []; + this.parse(pathname, PATH_START); + }, + // https://url.spec.whatwg.org/#dom-url-search + getSearch: function () { + var query = this.query; + return query ? '?' + query : ''; + }, + setSearch: function (search) { + search = $toString(search); + if (search === '') { + this.query = null; + } else { + if (charAt(search, 0) === '?') search = stringSlice(search, 1); + this.query = ''; + this.parse(search, QUERY); + } + this.searchParams.update(); + }, + // https://url.spec.whatwg.org/#dom-url-searchparams + getSearchParams: function () { + return this.searchParams.facade; + }, + // https://url.spec.whatwg.org/#dom-url-hash + getHash: function () { + var fragment = this.fragment; + return fragment ? '#' + fragment : ''; + }, + setHash: function (hash) { + hash = $toString(hash); + if (hash === '') { + this.fragment = null; + return; + } + if (charAt(hash, 0) === '#') hash = stringSlice(hash, 1); + this.fragment = ''; + this.parse(hash, FRAGMENT); + }, + update: function () { + this.query = this.searchParams.serialize() || null; + } +}; + +// `URL` constructor +// https://url.spec.whatwg.org/#url-class +var URLConstructor = function URL(url /* , base */) { + var that = anInstance(this, URLPrototype); + var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined; + var state = setInternalState(that, new URLState(url, false, base)); + if (!DESCRIPTORS) { + that.href = state.serialize(); + that.origin = state.getOrigin(); + that.protocol = state.getProtocol(); + that.username = state.getUsername(); + that.password = state.getPassword(); + that.host = state.getHost(); + that.hostname = state.getHostname(); + that.port = state.getPort(); + that.pathname = state.getPathname(); + that.search = state.getSearch(); + that.searchParams = state.getSearchParams(); + that.hash = state.getHash(); + } +}; + +var URLPrototype = URLConstructor.prototype; + +var accessorDescriptor = function (getter, setter) { + return { + get: function () { + return getInternalURLState(this)[getter](); + }, + set: setter && function (value) { + return getInternalURLState(this)[setter](value); + }, + configurable: true, + enumerable: true + }; +}; + +if (DESCRIPTORS) { + // `URL.prototype.href` accessors pair + // https://url.spec.whatwg.org/#dom-url-href + defineBuiltInAccessor(URLPrototype, 'href', accessorDescriptor('serialize', 'setHref')); + // `URL.prototype.origin` getter + // https://url.spec.whatwg.org/#dom-url-origin + defineBuiltInAccessor(URLPrototype, 'origin', accessorDescriptor('getOrigin')); + // `URL.prototype.protocol` accessors pair + // https://url.spec.whatwg.org/#dom-url-protocol + defineBuiltInAccessor(URLPrototype, 'protocol', accessorDescriptor('getProtocol', 'setProtocol')); + // `URL.prototype.username` accessors pair + // https://url.spec.whatwg.org/#dom-url-username + defineBuiltInAccessor(URLPrototype, 'username', accessorDescriptor('getUsername', 'setUsername')); + // `URL.prototype.password` accessors pair + // https://url.spec.whatwg.org/#dom-url-password + defineBuiltInAccessor(URLPrototype, 'password', accessorDescriptor('getPassword', 'setPassword')); + // `URL.prototype.host` accessors pair + // https://url.spec.whatwg.org/#dom-url-host + defineBuiltInAccessor(URLPrototype, 'host', accessorDescriptor('getHost', 'setHost')); + // `URL.prototype.hostname` accessors pair + // https://url.spec.whatwg.org/#dom-url-hostname + defineBuiltInAccessor(URLPrototype, 'hostname', accessorDescriptor('getHostname', 'setHostname')); + // `URL.prototype.port` accessors pair + // https://url.spec.whatwg.org/#dom-url-port + defineBuiltInAccessor(URLPrototype, 'port', accessorDescriptor('getPort', 'setPort')); + // `URL.prototype.pathname` accessors pair + // https://url.spec.whatwg.org/#dom-url-pathname + defineBuiltInAccessor(URLPrototype, 'pathname', accessorDescriptor('getPathname', 'setPathname')); + // `URL.prototype.search` accessors pair + // https://url.spec.whatwg.org/#dom-url-search + defineBuiltInAccessor(URLPrototype, 'search', accessorDescriptor('getSearch', 'setSearch')); + // `URL.prototype.searchParams` getter + // https://url.spec.whatwg.org/#dom-url-searchparams + defineBuiltInAccessor(URLPrototype, 'searchParams', accessorDescriptor('getSearchParams')); + // `URL.prototype.hash` accessors pair + // https://url.spec.whatwg.org/#dom-url-hash + defineBuiltInAccessor(URLPrototype, 'hash', accessorDescriptor('getHash', 'setHash')); +} + +// `URL.prototype.toJSON` method +// https://url.spec.whatwg.org/#dom-url-tojson +defineBuiltIn(URLPrototype, 'toJSON', function toJSON() { + return getInternalURLState(this).serialize(); +}, { enumerable: true }); + +// `URL.prototype.toString` method +// https://url.spec.whatwg.org/#URL-stringification-behavior +defineBuiltIn(URLPrototype, 'toString', function toString() { + return getInternalURLState(this).serialize(); +}, { enumerable: true }); + +if (NativeURL) { + var nativeCreateObjectURL = NativeURL.createObjectURL; + var nativeRevokeObjectURL = NativeURL.revokeObjectURL; + // `URL.createObjectURL` method + // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL + if (nativeCreateObjectURL) defineBuiltIn(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL)); + // `URL.revokeObjectURL` method + // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL + if (nativeRevokeObjectURL) defineBuiltIn(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL)); +} + +setToStringTag(URLConstructor, 'URL'); + +$({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, { + URL: URLConstructor +}); diff --git a/node_modules/core-js/modules/web.url.js b/node_modules/core-js/modules/web.url.js new file mode 100644 index 0000000..5ec16d1 --- /dev/null +++ b/node_modules/core-js/modules/web.url.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove this module from `core-js@4` since it's replaced to module below +require('../modules/web.url.constructor'); diff --git a/node_modules/core-js/modules/web.url.parse.js b/node_modules/core-js/modules/web.url.parse.js new file mode 100644 index 0000000..1a89d6f --- /dev/null +++ b/node_modules/core-js/modules/web.url.parse.js @@ -0,0 +1,23 @@ +'use strict'; +var $ = require('../internals/export'); +var getBuiltIn = require('../internals/get-built-in'); +var validateArgumentsLength = require('../internals/validate-arguments-length'); +var toString = require('../internals/to-string'); +var USE_NATIVE_URL = require('../internals/url-constructor-detection'); + +var URL = getBuiltIn('URL'); + +// `URL.parse` method +// https://url.spec.whatwg.org/#dom-url-canparse +$({ target: 'URL', stat: true, forced: !USE_NATIVE_URL }, { + parse: function parse(url) { + var length = validateArgumentsLength(arguments.length, 1); + var urlString = toString(url); + var base = length < 2 || arguments[1] === undefined ? undefined : toString(arguments[1]); + try { + return new URL(urlString, base); + } catch (error) { + return null; + } + } +}); diff --git a/node_modules/core-js/modules/web.url.to-json.js b/node_modules/core-js/modules/web.url.to-json.js new file mode 100644 index 0000000..f4f41c3 --- /dev/null +++ b/node_modules/core-js/modules/web.url.to-json.js @@ -0,0 +1,11 @@ +'use strict'; +var $ = require('../internals/export'); +var call = require('../internals/function-call'); + +// `URL.prototype.toJSON` method +// https://url.spec.whatwg.org/#dom-url-tojson +$({ target: 'URL', proto: true, enumerable: true }, { + toJSON: function toJSON() { + return call(URL.prototype.toString, this); + } +}); diff --git a/node_modules/core-js/package.json b/node_modules/core-js/package.json new file mode 100644 index 0000000..e2e431a --- /dev/null +++ b/node_modules/core-js/package.json @@ -0,0 +1,73 @@ +{ + "name": "core-js", + "version": "3.38.1", + "type": "commonjs", + "description": "Standard library", + "keywords": [ + "ES3", + "ES5", + "ES6", + "ES7", + "ES2015", + "ES2016", + "ES2017", + "ES2018", + "ES2019", + "ES2020", + "ES2021", + "ES2022", + "ES2023", + "ES2024", + "ECMAScript 3", + "ECMAScript 5", + "ECMAScript 6", + "ECMAScript 7", + "ECMAScript 2015", + "ECMAScript 2016", + "ECMAScript 2017", + "ECMAScript 2018", + "ECMAScript 2019", + "ECMAScript 2020", + "ECMAScript 2021", + "ECMAScript 2022", + "ECMAScript 2023", + "ECMAScript 2024", + "Map", + "Set", + "WeakMap", + "WeakSet", + "TypedArray", + "Promise", + "Observable", + "Symbol", + "Iterator", + "AsyncIterator", + "URL", + "URLSearchParams", + "queueMicrotask", + "setImmediate", + "structuredClone", + "polyfill", + "ponyfill", + "shim" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/zloirock/core-js.git", + "directory": "packages/core-js" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + }, + "license": "MIT", + "author": { + "name": "Denis Pushkarev", + "email": "zloirock@zloirock.ru", + "url": "http://zloirock.ru" + }, + "main": "index.js", + "scripts": { + "postinstall": "node -e \"try{require('./postinstall')}catch(e){}\"" + } +} diff --git a/node_modules/core-js/postinstall.js b/node_modules/core-js/postinstall.js new file mode 100644 index 0000000..a75132c --- /dev/null +++ b/node_modules/core-js/postinstall.js @@ -0,0 +1,62 @@ +'use strict'; +/* eslint-disable node/no-sync -- avoiding overcomplicating */ +/* eslint-disable unicorn/prefer-node-protocol -- ancient env possible */ +var fs = require('fs'); +var os = require('os'); +var path = require('path'); + +var env = process.env; +var ADBLOCK = is(env.ADBLOCK); +var COLOR = is(env.npm_config_color); +var DISABLE_OPENCOLLECTIVE = is(env.DISABLE_OPENCOLLECTIVE); +var SILENT = ['silent', 'error', 'warn'].indexOf(env.npm_config_loglevel) !== -1; +var OPEN_SOURCE_CONTRIBUTOR = is(env.OPEN_SOURCE_CONTRIBUTOR); +var MINUTE = 60 * 1000; + +// you could add a PR with an env variable for your CI detection +var CI = [ + 'BUILD_NUMBER', + 'CI', + 'CONTINUOUS_INTEGRATION', + 'DRONE', + 'RUN_ID' +].some(function (it) { return is(env[it]); }); + +var BANNER = '\u001B[96mThank you for using core-js (\u001B[94m https://github.com/zloirock/core-js \u001B[96m) for polyfilling JavaScript standard library!\u001B[0m\n\n' + + '\u001B[96mThe project needs your help! Please consider supporting core-js:\u001B[0m\n' + + '\u001B[96m>\u001B[94m https://opencollective.com/core-js \u001B[0m\n' + + '\u001B[96m>\u001B[94m https://patreon.com/zloirock \u001B[0m\n' + + '\u001B[96m>\u001B[94m https://boosty.to/zloirock \u001B[0m\n' + + '\u001B[96m>\u001B[94m bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz \u001B[0m\n\n' + + '\u001B[96mI highly recommend reading this:\u001B[94m https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md \u001B[96m\u001B[0m\n'; + +function is(it) { + return !!it && it !== '0' && it !== 'false'; +} + +function isBannerRequired() { + if (ADBLOCK || CI || DISABLE_OPENCOLLECTIVE || SILENT || OPEN_SOURCE_CONTRIBUTOR) return false; + var file = path.join(os.tmpdir(), 'core-js-banners'); + var banners = []; + try { + var DELTA = Date.now() - fs.statSync(file).mtime; + if (DELTA >= 0 && DELTA < MINUTE * 3) { + banners = JSON.parse(fs.readFileSync(file)); + if (banners.indexOf(BANNER) !== -1) return false; + } + } catch (error) { + banners = []; + } + try { + banners.push(BANNER); + fs.writeFileSync(file, JSON.stringify(banners), 'utf8'); + } catch (error) { /* empty */ } + return true; +} + +function showBanner() { + // eslint-disable-next-line no-console, regexp/no-control-character -- output + console.log(COLOR ? BANNER : BANNER.replace(/\u001B\[\d+m/g, '')); +} + +if (isBannerRequired()) showBanner(); diff --git a/node_modules/core-js/proposals/accessible-object-hasownproperty.js b/node_modules/core-js/proposals/accessible-object-hasownproperty.js new file mode 100644 index 0000000..aad0988 --- /dev/null +++ b/node_modules/core-js/proposals/accessible-object-hasownproperty.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-accessible-object-hasownproperty +require('../modules/esnext.object.has-own'); diff --git a/node_modules/core-js/proposals/array-buffer-base64.js b/node_modules/core-js/proposals/array-buffer-base64.js new file mode 100644 index 0000000..e461688 --- /dev/null +++ b/node_modules/core-js/proposals/array-buffer-base64.js @@ -0,0 +1,8 @@ +'use strict'; +// https://github.com/tc39/proposal-arraybuffer-base64 +require('../modules/esnext.uint8-array.from-base64'); +require('../modules/esnext.uint8-array.from-hex'); +require('../modules/esnext.uint8-array.set-from-base64'); +require('../modules/esnext.uint8-array.set-from-hex'); +require('../modules/esnext.uint8-array.to-base64'); +require('../modules/esnext.uint8-array.to-hex'); diff --git a/node_modules/core-js/proposals/array-buffer-transfer.js b/node_modules/core-js/proposals/array-buffer-transfer.js new file mode 100644 index 0000000..409da3d --- /dev/null +++ b/node_modules/core-js/proposals/array-buffer-transfer.js @@ -0,0 +1,5 @@ +'use strict'; +// https://github.com/tc39/proposal-arraybuffer-transfer +require('../modules/esnext.array-buffer.detached'); +require('../modules/esnext.array-buffer.transfer'); +require('../modules/esnext.array-buffer.transfer-to-fixed-length'); diff --git a/node_modules/core-js/proposals/array-filtering-stage-1.js b/node_modules/core-js/proposals/array-filtering-stage-1.js new file mode 100644 index 0000000..de07b81 --- /dev/null +++ b/node_modules/core-js/proposals/array-filtering-stage-1.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-array-filtering +require('../modules/esnext.array.filter-reject'); +require('../modules/esnext.typed-array.filter-reject'); diff --git a/node_modules/core-js/proposals/array-filtering.js b/node_modules/core-js/proposals/array-filtering.js new file mode 100644 index 0000000..624b1a9 --- /dev/null +++ b/node_modules/core-js/proposals/array-filtering.js @@ -0,0 +1,8 @@ +'use strict'; +// https://github.com/tc39/proposal-array-filtering +// TODO: Remove from `core-js@4` +require('../modules/esnext.array.filter-out'); +require('../modules/esnext.array.filter-reject'); +// TODO: Remove from `core-js@4` +require('../modules/esnext.typed-array.filter-out'); +require('../modules/esnext.typed-array.filter-reject'); diff --git a/node_modules/core-js/proposals/array-find-from-last.js b/node_modules/core-js/proposals/array-find-from-last.js new file mode 100644 index 0000000..a60804b --- /dev/null +++ b/node_modules/core-js/proposals/array-find-from-last.js @@ -0,0 +1,6 @@ +'use strict'; +// https://github.com/tc39/proposal-array-find-from-last/ +require('../modules/esnext.array.find-last'); +require('../modules/esnext.array.find-last-index'); +require('../modules/esnext.typed-array.find-last'); +require('../modules/esnext.typed-array.find-last-index'); diff --git a/node_modules/core-js/proposals/array-flat-map.js b/node_modules/core-js/proposals/array-flat-map.js new file mode 100644 index 0000000..bd56314 --- /dev/null +++ b/node_modules/core-js/proposals/array-flat-map.js @@ -0,0 +1,6 @@ +'use strict'; +// https://github.com/tc39/proposal-flatMap +require('../modules/es.array.flat'); +require('../modules/es.array.flat-map'); +require('../modules/es.array.unscopables.flat'); +require('../modules/es.array.unscopables.flat-map'); diff --git a/node_modules/core-js/proposals/array-from-async-stage-2.js b/node_modules/core-js/proposals/array-from-async-stage-2.js new file mode 100644 index 0000000..70264ee --- /dev/null +++ b/node_modules/core-js/proposals/array-from-async-stage-2.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-array-from-async +require('../modules/esnext.array.from-async'); diff --git a/node_modules/core-js/proposals/array-from-async.js b/node_modules/core-js/proposals/array-from-async.js new file mode 100644 index 0000000..bf4f543 --- /dev/null +++ b/node_modules/core-js/proposals/array-from-async.js @@ -0,0 +1,5 @@ +'use strict'; +// https://github.com/tc39/proposal-array-from-async +require('../modules/esnext.array.from-async'); +// TODO: Remove from `core-js@4` +require('../modules/esnext.typed-array.from-async'); diff --git a/node_modules/core-js/proposals/array-grouping-stage-3-2.js b/node_modules/core-js/proposals/array-grouping-stage-3-2.js new file mode 100644 index 0000000..b4bc742 --- /dev/null +++ b/node_modules/core-js/proposals/array-grouping-stage-3-2.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-array-grouping +require('../modules/esnext.array.group'); +require('../modules/esnext.array.group-to-map'); diff --git a/node_modules/core-js/proposals/array-grouping-stage-3.js b/node_modules/core-js/proposals/array-grouping-stage-3.js new file mode 100644 index 0000000..338c26e --- /dev/null +++ b/node_modules/core-js/proposals/array-grouping-stage-3.js @@ -0,0 +1,5 @@ +'use strict'; +// https://github.com/tc39/proposal-array-grouping +// TODO: Remove from `core-js@4` +require('../modules/esnext.array.group-by'); +require('../modules/esnext.array.group-by-to-map'); diff --git a/node_modules/core-js/proposals/array-grouping-v2.js b/node_modules/core-js/proposals/array-grouping-v2.js new file mode 100644 index 0000000..6cca419 --- /dev/null +++ b/node_modules/core-js/proposals/array-grouping-v2.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-array-grouping +require('../modules/esnext.map.group-by'); +require('../modules/esnext.object.group-by'); diff --git a/node_modules/core-js/proposals/array-grouping.js b/node_modules/core-js/proposals/array-grouping.js new file mode 100644 index 0000000..8ee49a0 --- /dev/null +++ b/node_modules/core-js/proposals/array-grouping.js @@ -0,0 +1,6 @@ +'use strict'; +// https://github.com/tc39/proposal-array-grouping +require('../modules/esnext.array.group-by'); +require('../modules/esnext.array.group-by-to-map'); +// TODO: Remove from `core-js@4` +require('../modules/esnext.typed-array.group-by'); diff --git a/node_modules/core-js/proposals/array-includes.js b/node_modules/core-js/proposals/array-includes.js new file mode 100644 index 0000000..7c2726d --- /dev/null +++ b/node_modules/core-js/proposals/array-includes.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-Array.prototype.includes +require('../modules/es.array.includes'); +require('../modules/es.typed-array.includes'); diff --git a/node_modules/core-js/proposals/array-is-template-object.js b/node_modules/core-js/proposals/array-is-template-object.js new file mode 100644 index 0000000..3864d4c --- /dev/null +++ b/node_modules/core-js/proposals/array-is-template-object.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-array-is-template-object +require('../modules/esnext.array.is-template-object'); diff --git a/node_modules/core-js/proposals/array-last.js b/node_modules/core-js/proposals/array-last.js new file mode 100644 index 0000000..7d5015e --- /dev/null +++ b/node_modules/core-js/proposals/array-last.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-array-last +require('../modules/esnext.array.last-index'); +require('../modules/esnext.array.last-item'); diff --git a/node_modules/core-js/proposals/array-unique.js b/node_modules/core-js/proposals/array-unique.js new file mode 100644 index 0000000..d854af0 --- /dev/null +++ b/node_modules/core-js/proposals/array-unique.js @@ -0,0 +1,5 @@ +'use strict'; +// https://github.com/tc39/proposal-array-unique +require('../modules/es.map'); +require('../modules/esnext.array.unique-by'); +require('../modules/esnext.typed-array.unique-by'); diff --git a/node_modules/core-js/proposals/async-explicit-resource-management.js b/node_modules/core-js/proposals/async-explicit-resource-management.js new file mode 100644 index 0000000..3d2a651 --- /dev/null +++ b/node_modules/core-js/proposals/async-explicit-resource-management.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: Remove from `core-js@4` +// https://github.com/tc39/proposal-async-explicit-resource-management +require('../modules/esnext.suppressed-error.constructor'); +require('../modules/esnext.async-disposable-stack.constructor'); +require('../modules/esnext.async-iterator.async-dispose'); +require('../modules/esnext.symbol.async-dispose'); diff --git a/node_modules/core-js/proposals/async-iteration.js b/node_modules/core-js/proposals/async-iteration.js new file mode 100644 index 0000000..085dbfb --- /dev/null +++ b/node_modules/core-js/proposals/async-iteration.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-async-iteration +require('../modules/es.symbol.async-iterator'); diff --git a/node_modules/core-js/proposals/async-iterator-helpers.js b/node_modules/core-js/proposals/async-iterator-helpers.js new file mode 100644 index 0000000..2231433 --- /dev/null +++ b/node_modules/core-js/proposals/async-iterator-helpers.js @@ -0,0 +1,16 @@ +'use strict'; +// https://github.com/tc39/proposal-async-iterator-helpers +require('../modules/esnext.async-iterator.constructor'); +require('../modules/esnext.async-iterator.drop'); +require('../modules/esnext.async-iterator.every'); +require('../modules/esnext.async-iterator.filter'); +require('../modules/esnext.async-iterator.find'); +require('../modules/esnext.async-iterator.flat-map'); +require('../modules/esnext.async-iterator.for-each'); +require('../modules/esnext.async-iterator.from'); +require('../modules/esnext.async-iterator.map'); +require('../modules/esnext.async-iterator.reduce'); +require('../modules/esnext.async-iterator.some'); +require('../modules/esnext.async-iterator.take'); +require('../modules/esnext.async-iterator.to-array'); +require('../modules/esnext.iterator.to-async'); diff --git a/node_modules/core-js/proposals/change-array-by-copy-stage-4.js b/node_modules/core-js/proposals/change-array-by-copy-stage-4.js new file mode 100644 index 0000000..d93aa8a --- /dev/null +++ b/node_modules/core-js/proposals/change-array-by-copy-stage-4.js @@ -0,0 +1,9 @@ +'use strict'; +// https://github.com/tc39/proposal-change-array-by-copy +require('../modules/esnext.array.to-reversed'); +require('../modules/esnext.array.to-sorted'); +require('../modules/esnext.array.to-spliced'); +require('../modules/esnext.array.with'); +require('../modules/esnext.typed-array.to-reversed'); +require('../modules/esnext.typed-array.to-sorted'); +require('../modules/esnext.typed-array.with'); diff --git a/node_modules/core-js/proposals/change-array-by-copy.js b/node_modules/core-js/proposals/change-array-by-copy.js new file mode 100644 index 0000000..02188ee --- /dev/null +++ b/node_modules/core-js/proposals/change-array-by-copy.js @@ -0,0 +1,11 @@ +'use strict'; +// https://github.com/tc39/proposal-change-array-by-copy +require('../modules/esnext.array.to-reversed'); +require('../modules/esnext.array.to-sorted'); +require('../modules/esnext.array.to-spliced'); +require('../modules/esnext.array.with'); +require('../modules/esnext.typed-array.to-reversed'); +require('../modules/esnext.typed-array.to-sorted'); +// TODO: Remove from `core-js@4` +require('../modules/esnext.typed-array.to-spliced'); +require('../modules/esnext.typed-array.with'); diff --git a/node_modules/core-js/proposals/collection-methods.js b/node_modules/core-js/proposals/collection-methods.js new file mode 100644 index 0000000..32a82f6 --- /dev/null +++ b/node_modules/core-js/proposals/collection-methods.js @@ -0,0 +1,29 @@ +'use strict'; +// https://github.com/tc39/proposal-collection-methods +require('../modules/esnext.map.group-by'); +require('../modules/esnext.map.key-by'); +require('../modules/esnext.map.delete-all'); +require('../modules/esnext.map.every'); +require('../modules/esnext.map.filter'); +require('../modules/esnext.map.find'); +require('../modules/esnext.map.find-key'); +require('../modules/esnext.map.includes'); +require('../modules/esnext.map.key-of'); +require('../modules/esnext.map.map-keys'); +require('../modules/esnext.map.map-values'); +require('../modules/esnext.map.merge'); +require('../modules/esnext.map.reduce'); +require('../modules/esnext.map.some'); +require('../modules/esnext.map.update'); +require('../modules/esnext.set.add-all'); +require('../modules/esnext.set.delete-all'); +require('../modules/esnext.set.every'); +require('../modules/esnext.set.filter'); +require('../modules/esnext.set.find'); +require('../modules/esnext.set.join'); +require('../modules/esnext.set.map'); +require('../modules/esnext.set.reduce'); +require('../modules/esnext.set.some'); +require('../modules/esnext.weak-map.delete-all'); +require('../modules/esnext.weak-set.add-all'); +require('../modules/esnext.weak-set.delete-all'); diff --git a/node_modules/core-js/proposals/collection-of-from.js b/node_modules/core-js/proposals/collection-of-from.js new file mode 100644 index 0000000..6fbf7e3 --- /dev/null +++ b/node_modules/core-js/proposals/collection-of-from.js @@ -0,0 +1,10 @@ +'use strict'; +// https://github.com/tc39/proposal-setmap-offrom +require('../modules/esnext.map.from'); +require('../modules/esnext.map.of'); +require('../modules/esnext.set.from'); +require('../modules/esnext.set.of'); +require('../modules/esnext.weak-map.from'); +require('../modules/esnext.weak-map.of'); +require('../modules/esnext.weak-set.from'); +require('../modules/esnext.weak-set.of'); diff --git a/node_modules/core-js/proposals/data-view-get-set-uint8-clamped.js b/node_modules/core-js/proposals/data-view-get-set-uint8-clamped.js new file mode 100644 index 0000000..065b283 --- /dev/null +++ b/node_modules/core-js/proposals/data-view-get-set-uint8-clamped.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-dataview-get-set-uint8clamped +require('../modules/esnext.data-view.get-uint8-clamped'); +require('../modules/esnext.data-view.set-uint8-clamped'); diff --git a/node_modules/core-js/proposals/decorator-metadata-v2.js b/node_modules/core-js/proposals/decorator-metadata-v2.js new file mode 100644 index 0000000..e0a26c2 --- /dev/null +++ b/node_modules/core-js/proposals/decorator-metadata-v2.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-decorator-metadata +require('../modules/esnext.function.metadata'); +require('../modules/esnext.symbol.metadata'); diff --git a/node_modules/core-js/proposals/decorator-metadata.js b/node_modules/core-js/proposals/decorator-metadata.js new file mode 100644 index 0000000..2cc3395 --- /dev/null +++ b/node_modules/core-js/proposals/decorator-metadata.js @@ -0,0 +1,4 @@ +'use strict'; +// TODO: Remove from `core-js@4` +// https://github.com/tc39/proposal-decorator-metadata +require('../modules/esnext.symbol.metadata-key'); diff --git a/node_modules/core-js/proposals/decorators.js b/node_modules/core-js/proposals/decorators.js new file mode 100644 index 0000000..9e52ad2 --- /dev/null +++ b/node_modules/core-js/proposals/decorators.js @@ -0,0 +1,4 @@ +'use strict'; +// TODO: Remove from `core-js@4` +// https://github.com/tc39/proposal-decorators +require('../modules/esnext.symbol.metadata'); diff --git a/node_modules/core-js/proposals/efficient-64-bit-arithmetic.js b/node_modules/core-js/proposals/efficient-64-bit-arithmetic.js new file mode 100644 index 0000000..f9af133 --- /dev/null +++ b/node_modules/core-js/proposals/efficient-64-bit-arithmetic.js @@ -0,0 +1,7 @@ +'use strict'; +// TODO: remove from `core-js@4` as withdrawn +// https://gist.github.com/BrendanEich/4294d5c212a6d2254703 +require('../modules/esnext.math.iaddh'); +require('../modules/esnext.math.isubh'); +require('../modules/esnext.math.imulh'); +require('../modules/esnext.math.umulh'); diff --git a/node_modules/core-js/proposals/error-cause.js b/node_modules/core-js/proposals/error-cause.js new file mode 100644 index 0000000..16dd020 --- /dev/null +++ b/node_modules/core-js/proposals/error-cause.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-error-cause +require('../modules/es.error.cause'); +require('../modules/es.aggregate-error.cause'); diff --git a/node_modules/core-js/proposals/explicit-resource-management.js b/node_modules/core-js/proposals/explicit-resource-management.js new file mode 100644 index 0000000..08b7338 --- /dev/null +++ b/node_modules/core-js/proposals/explicit-resource-management.js @@ -0,0 +1,9 @@ +'use strict'; +// https://github.com/tc39/proposal-explicit-resource-management +require('../modules/esnext.suppressed-error.constructor'); +require('../modules/esnext.async-disposable-stack.constructor'); +require('../modules/esnext.async-iterator.async-dispose'); +require('../modules/esnext.disposable-stack.constructor'); +require('../modules/esnext.iterator.dispose'); +require('../modules/esnext.symbol.async-dispose'); +require('../modules/esnext.symbol.dispose'); diff --git a/node_modules/core-js/proposals/extractors.js b/node_modules/core-js/proposals/extractors.js new file mode 100644 index 0000000..abda3a8 --- /dev/null +++ b/node_modules/core-js/proposals/extractors.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-extractors +require('../modules/esnext.symbol.custom-matcher'); diff --git a/node_modules/core-js/proposals/float16.js b/node_modules/core-js/proposals/float16.js new file mode 100644 index 0000000..ac43dac --- /dev/null +++ b/node_modules/core-js/proposals/float16.js @@ -0,0 +1,5 @@ +'use strict'; +// https://github.com/tc39/proposal-float16array +require('../modules/esnext.data-view.get-float16'); +require('../modules/esnext.data-view.set-float16'); +require('../modules/esnext.math.f16round'); diff --git a/node_modules/core-js/proposals/function-demethodize.js b/node_modules/core-js/proposals/function-demethodize.js new file mode 100644 index 0000000..6276099 --- /dev/null +++ b/node_modules/core-js/proposals/function-demethodize.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/js-choi/proposal-function-demethodize +require('../modules/esnext.function.demethodize'); diff --git a/node_modules/core-js/proposals/function-is-callable-is-constructor.js b/node_modules/core-js/proposals/function-is-callable-is-constructor.js new file mode 100644 index 0000000..888ddd0 --- /dev/null +++ b/node_modules/core-js/proposals/function-is-callable-is-constructor.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md +require('../modules/esnext.function.is-callable'); +require('../modules/esnext.function.is-constructor'); diff --git a/node_modules/core-js/proposals/function-un-this.js b/node_modules/core-js/proposals/function-un-this.js new file mode 100644 index 0000000..88cb32d --- /dev/null +++ b/node_modules/core-js/proposals/function-un-this.js @@ -0,0 +1,4 @@ +'use strict'; +// TODO: Remove from `core-js@4` +// https://github.com/js-choi/proposal-function-un-this +require('../modules/esnext.function.un-this'); diff --git a/node_modules/core-js/proposals/global-this.js b/node_modules/core-js/proposals/global-this.js new file mode 100644 index 0000000..aa3a210 --- /dev/null +++ b/node_modules/core-js/proposals/global-this.js @@ -0,0 +1,6 @@ +'use strict'; +// https://github.com/tc39/proposal-global +require('../modules/esnext.global-this'); +var globalThis = require('../internals/global-this'); + +module.exports = globalThis; diff --git a/node_modules/core-js/proposals/index.js b/node_modules/core-js/proposals/index.js new file mode 100644 index 0000000..c470dae --- /dev/null +++ b/node_modules/core-js/proposals/index.js @@ -0,0 +1,3 @@ +'use strict'; +// TODO: Remove this entry from `core-js@4` +require('../stage'); diff --git a/node_modules/core-js/proposals/iterator-helpers-stage-3-2.js b/node_modules/core-js/proposals/iterator-helpers-stage-3-2.js new file mode 100644 index 0000000..39d9b1d --- /dev/null +++ b/node_modules/core-js/proposals/iterator-helpers-stage-3-2.js @@ -0,0 +1,15 @@ +'use strict'; +// https://github.com/tc39/proposal-iterator-helpers +require('../modules/esnext.iterator.constructor'); +require('../modules/esnext.iterator.drop'); +require('../modules/esnext.iterator.every'); +require('../modules/esnext.iterator.filter'); +require('../modules/esnext.iterator.find'); +require('../modules/esnext.iterator.flat-map'); +require('../modules/esnext.iterator.for-each'); +require('../modules/esnext.iterator.from'); +require('../modules/esnext.iterator.map'); +require('../modules/esnext.iterator.reduce'); +require('../modules/esnext.iterator.some'); +require('../modules/esnext.iterator.take'); +require('../modules/esnext.iterator.to-array'); diff --git a/node_modules/core-js/proposals/iterator-helpers-stage-3.js b/node_modules/core-js/proposals/iterator-helpers-stage-3.js new file mode 100644 index 0000000..dff419e --- /dev/null +++ b/node_modules/core-js/proposals/iterator-helpers-stage-3.js @@ -0,0 +1,29 @@ +'use strict'; +// https://github.com/tc39/proposal-iterator-helpers +require('../modules/esnext.async-iterator.constructor'); +require('../modules/esnext.async-iterator.drop'); +require('../modules/esnext.async-iterator.every'); +require('../modules/esnext.async-iterator.filter'); +require('../modules/esnext.async-iterator.find'); +require('../modules/esnext.async-iterator.flat-map'); +require('../modules/esnext.async-iterator.for-each'); +require('../modules/esnext.async-iterator.from'); +require('../modules/esnext.async-iterator.map'); +require('../modules/esnext.async-iterator.reduce'); +require('../modules/esnext.async-iterator.some'); +require('../modules/esnext.async-iterator.take'); +require('../modules/esnext.async-iterator.to-array'); +require('../modules/esnext.iterator.constructor'); +require('../modules/esnext.iterator.drop'); +require('../modules/esnext.iterator.every'); +require('../modules/esnext.iterator.filter'); +require('../modules/esnext.iterator.find'); +require('../modules/esnext.iterator.flat-map'); +require('../modules/esnext.iterator.for-each'); +require('../modules/esnext.iterator.from'); +require('../modules/esnext.iterator.map'); +require('../modules/esnext.iterator.reduce'); +require('../modules/esnext.iterator.some'); +require('../modules/esnext.iterator.take'); +require('../modules/esnext.iterator.to-array'); +require('../modules/esnext.iterator.to-async'); diff --git a/node_modules/core-js/proposals/iterator-helpers.js b/node_modules/core-js/proposals/iterator-helpers.js new file mode 100644 index 0000000..4dc46a2 --- /dev/null +++ b/node_modules/core-js/proposals/iterator-helpers.js @@ -0,0 +1,8 @@ +'use strict'; +// TODO: remove from `core-js@4` +// https://github.com/tc39/proposal-iterator-helpers +require('./iterator-helpers-stage-3'); +require('../modules/esnext.async-iterator.as-indexed-pairs'); +require('../modules/esnext.async-iterator.indexed'); +require('../modules/esnext.iterator.as-indexed-pairs'); +require('../modules/esnext.iterator.indexed'); diff --git a/node_modules/core-js/proposals/iterator-range.js b/node_modules/core-js/proposals/iterator-range.js new file mode 100644 index 0000000..b1e6b5d --- /dev/null +++ b/node_modules/core-js/proposals/iterator-range.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-Number.range +require('../modules/esnext.iterator.constructor'); +require('../modules/esnext.iterator.range'); diff --git a/node_modules/core-js/proposals/json-parse-with-source.js b/node_modules/core-js/proposals/json-parse-with-source.js new file mode 100644 index 0000000..c4b8316 --- /dev/null +++ b/node_modules/core-js/proposals/json-parse-with-source.js @@ -0,0 +1,5 @@ +'use strict'; +// https://github.com/tc39/proposal-json-parse-with-source +require('../modules/esnext.json.is-raw-json'); +require('../modules/esnext.json.parse'); +require('../modules/esnext.json.raw-json'); diff --git a/node_modules/core-js/proposals/keys-composition.js b/node_modules/core-js/proposals/keys-composition.js new file mode 100644 index 0000000..076c342 --- /dev/null +++ b/node_modules/core-js/proposals/keys-composition.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey +require('../modules/esnext.composite-key'); +require('../modules/esnext.composite-symbol'); diff --git a/node_modules/core-js/proposals/map-update-or-insert.js b/node_modules/core-js/proposals/map-update-or-insert.js new file mode 100644 index 0000000..7fb6925 --- /dev/null +++ b/node_modules/core-js/proposals/map-update-or-insert.js @@ -0,0 +1,4 @@ +'use strict'; +// TODO: remove from `core-js@4` +// https://github.com/tc39/proposal-upsert +require('./map-upsert'); diff --git a/node_modules/core-js/proposals/map-upsert-stage-2.js b/node_modules/core-js/proposals/map-upsert-stage-2.js new file mode 100644 index 0000000..d316686 --- /dev/null +++ b/node_modules/core-js/proposals/map-upsert-stage-2.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-upsert +require('../modules/esnext.map.emplace'); +require('../modules/esnext.weak-map.emplace'); diff --git a/node_modules/core-js/proposals/map-upsert.js b/node_modules/core-js/proposals/map-upsert.js new file mode 100644 index 0000000..8d9e84d --- /dev/null +++ b/node_modules/core-js/proposals/map-upsert.js @@ -0,0 +1,10 @@ +'use strict'; +// https://github.com/tc39/proposal-upsert +require('../modules/esnext.map.emplace'); +// TODO: remove from `core-js@4` +require('../modules/esnext.map.update-or-insert'); +// TODO: remove from `core-js@4` +require('../modules/esnext.map.upsert'); +require('../modules/esnext.weak-map.emplace'); +// TODO: remove from `core-js@4` +require('../modules/esnext.weak-map.upsert'); diff --git a/node_modules/core-js/proposals/math-extensions.js b/node_modules/core-js/proposals/math-extensions.js new file mode 100644 index 0000000..fddf107 --- /dev/null +++ b/node_modules/core-js/proposals/math-extensions.js @@ -0,0 +1,9 @@ +'use strict'; +// https://github.com/rwaldron/proposal-math-extensions +require('../modules/esnext.math.clamp'); +require('../modules/esnext.math.deg-per-rad'); +require('../modules/esnext.math.degrees'); +require('../modules/esnext.math.fscale'); +require('../modules/esnext.math.rad-per-deg'); +require('../modules/esnext.math.radians'); +require('../modules/esnext.math.scale'); diff --git a/node_modules/core-js/proposals/math-signbit.js b/node_modules/core-js/proposals/math-signbit.js new file mode 100644 index 0000000..62d74d0 --- /dev/null +++ b/node_modules/core-js/proposals/math-signbit.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-Math.signbit +require('../modules/esnext.math.signbit'); diff --git a/node_modules/core-js/proposals/math-sum.js b/node_modules/core-js/proposals/math-sum.js new file mode 100644 index 0000000..bdd165d --- /dev/null +++ b/node_modules/core-js/proposals/math-sum.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-math-sum +require('../modules/esnext.math.sum-precise'); diff --git a/node_modules/core-js/proposals/number-from-string.js b/node_modules/core-js/proposals/number-from-string.js new file mode 100644 index 0000000..d574422 --- /dev/null +++ b/node_modules/core-js/proposals/number-from-string.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-number-fromstring +require('../modules/esnext.number.from-string'); diff --git a/node_modules/core-js/proposals/number-range.js b/node_modules/core-js/proposals/number-range.js new file mode 100644 index 0000000..6483292 --- /dev/null +++ b/node_modules/core-js/proposals/number-range.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-Number.range +require('../modules/esnext.bigint.range'); +require('../modules/esnext.number.range'); diff --git a/node_modules/core-js/proposals/object-from-entries.js b/node_modules/core-js/proposals/object-from-entries.js new file mode 100644 index 0000000..b9ea7e1 --- /dev/null +++ b/node_modules/core-js/proposals/object-from-entries.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-object-from-entries +require('../modules/es.object.from-entries'); diff --git a/node_modules/core-js/proposals/object-getownpropertydescriptors.js b/node_modules/core-js/proposals/object-getownpropertydescriptors.js new file mode 100644 index 0000000..121cae6 --- /dev/null +++ b/node_modules/core-js/proposals/object-getownpropertydescriptors.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-object-getownpropertydescriptors +require('../modules/es.object.get-own-property-descriptors'); diff --git a/node_modules/core-js/proposals/object-iteration.js b/node_modules/core-js/proposals/object-iteration.js new file mode 100644 index 0000000..5d40602 --- /dev/null +++ b/node_modules/core-js/proposals/object-iteration.js @@ -0,0 +1,6 @@ +'use strict'; +// TODO: remove from `core-js@4` as withdrawn +// https://github.com/tc39/proposal-object-iteration +require('../modules/esnext.object.iterate-entries'); +require('../modules/esnext.object.iterate-keys'); +require('../modules/esnext.object.iterate-values'); diff --git a/node_modules/core-js/proposals/object-values-entries.js b/node_modules/core-js/proposals/object-values-entries.js new file mode 100644 index 0000000..f37e303 --- /dev/null +++ b/node_modules/core-js/proposals/object-values-entries.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-object-values-entries +require('../modules/es.object.entries'); +require('../modules/es.object.values'); diff --git a/node_modules/core-js/proposals/observable.js b/node_modules/core-js/proposals/observable.js new file mode 100644 index 0000000..0dcee84 --- /dev/null +++ b/node_modules/core-js/proposals/observable.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-observable +require('../modules/esnext.observable'); +require('../modules/esnext.symbol.observable'); diff --git a/node_modules/core-js/proposals/pattern-matching-v2.js b/node_modules/core-js/proposals/pattern-matching-v2.js new file mode 100644 index 0000000..726cd21 --- /dev/null +++ b/node_modules/core-js/proposals/pattern-matching-v2.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-pattern-matching +require('../modules/esnext.symbol.custom-matcher'); diff --git a/node_modules/core-js/proposals/pattern-matching.js b/node_modules/core-js/proposals/pattern-matching.js new file mode 100644 index 0000000..0da79cd --- /dev/null +++ b/node_modules/core-js/proposals/pattern-matching.js @@ -0,0 +1,5 @@ +'use strict'; +// https://github.com/tc39/proposal-pattern-matching +require('../modules/esnext.symbol.matcher'); +// TODO: remove from `core-js@4` +require('../modules/esnext.symbol.pattern-match'); diff --git a/node_modules/core-js/proposals/promise-all-settled.js b/node_modules/core-js/proposals/promise-all-settled.js new file mode 100644 index 0000000..4e5f41a --- /dev/null +++ b/node_modules/core-js/proposals/promise-all-settled.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-promise-allSettled +require('../modules/esnext.promise.all-settled'); diff --git a/node_modules/core-js/proposals/promise-any.js b/node_modules/core-js/proposals/promise-any.js new file mode 100644 index 0000000..3ed7f7c --- /dev/null +++ b/node_modules/core-js/proposals/promise-any.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-promise-any +require('../modules/esnext.aggregate-error'); +require('../modules/esnext.promise.any'); diff --git a/node_modules/core-js/proposals/promise-finally.js b/node_modules/core-js/proposals/promise-finally.js new file mode 100644 index 0000000..7da1723 --- /dev/null +++ b/node_modules/core-js/proposals/promise-finally.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-promise-finally +require('../modules/es.promise.finally'); diff --git a/node_modules/core-js/proposals/promise-try.js b/node_modules/core-js/proposals/promise-try.js new file mode 100644 index 0000000..d061146 --- /dev/null +++ b/node_modules/core-js/proposals/promise-try.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-promise-try +require('../modules/esnext.promise.try'); diff --git a/node_modules/core-js/proposals/promise-with-resolvers.js b/node_modules/core-js/proposals/promise-with-resolvers.js new file mode 100644 index 0000000..38c71e5 --- /dev/null +++ b/node_modules/core-js/proposals/promise-with-resolvers.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-promise-with-resolvers +require('../modules/esnext.promise.with-resolvers'); diff --git a/node_modules/core-js/proposals/reflect-metadata.js b/node_modules/core-js/proposals/reflect-metadata.js new file mode 100644 index 0000000..dfc7592 --- /dev/null +++ b/node_modules/core-js/proposals/reflect-metadata.js @@ -0,0 +1,11 @@ +'use strict'; +// https://github.com/rbuckton/reflect-metadata +require('../modules/esnext.reflect.define-metadata'); +require('../modules/esnext.reflect.delete-metadata'); +require('../modules/esnext.reflect.get-metadata'); +require('../modules/esnext.reflect.get-metadata-keys'); +require('../modules/esnext.reflect.get-own-metadata'); +require('../modules/esnext.reflect.get-own-metadata-keys'); +require('../modules/esnext.reflect.has-metadata'); +require('../modules/esnext.reflect.has-own-metadata'); +require('../modules/esnext.reflect.metadata'); diff --git a/node_modules/core-js/proposals/regexp-dotall-flag.js b/node_modules/core-js/proposals/regexp-dotall-flag.js new file mode 100644 index 0000000..60d50d1 --- /dev/null +++ b/node_modules/core-js/proposals/regexp-dotall-flag.js @@ -0,0 +1,6 @@ +'use strict'; +// https://github.com/tc39/proposal-regexp-dotall-flag +require('../modules/es.regexp.constructor'); +require('../modules/es.regexp.dot-all'); +require('../modules/es.regexp.exec'); +require('../modules/es.regexp.flags'); diff --git a/node_modules/core-js/proposals/regexp-escaping.js b/node_modules/core-js/proposals/regexp-escaping.js new file mode 100644 index 0000000..d77c2ca --- /dev/null +++ b/node_modules/core-js/proposals/regexp-escaping.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-regex-escaping +require('../modules/esnext.regexp.escape'); diff --git a/node_modules/core-js/proposals/regexp-named-groups.js b/node_modules/core-js/proposals/regexp-named-groups.js new file mode 100644 index 0000000..8c52b57 --- /dev/null +++ b/node_modules/core-js/proposals/regexp-named-groups.js @@ -0,0 +1,5 @@ +'use strict'; +// https://github.com/tc39/proposal-regexp-named-groups +require('../modules/es.regexp.constructor'); +require('../modules/es.regexp.exec'); +require('../modules/es.string.replace'); diff --git a/node_modules/core-js/proposals/relative-indexing-method.js b/node_modules/core-js/proposals/relative-indexing-method.js new file mode 100644 index 0000000..640d014 --- /dev/null +++ b/node_modules/core-js/proposals/relative-indexing-method.js @@ -0,0 +1,5 @@ +'use strict'; +// https://github.com/tc39/proposal-relative-indexing-method +require('../modules/es.string.at-alternative'); +require('../modules/esnext.array.at'); +require('../modules/esnext.typed-array.at'); diff --git a/node_modules/core-js/proposals/seeded-random.js b/node_modules/core-js/proposals/seeded-random.js new file mode 100644 index 0000000..fa0a581 --- /dev/null +++ b/node_modules/core-js/proposals/seeded-random.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-seeded-random +require('../modules/esnext.math.seeded-prng'); diff --git a/node_modules/core-js/proposals/set-methods-v2.js b/node_modules/core-js/proposals/set-methods-v2.js new file mode 100644 index 0000000..048708f --- /dev/null +++ b/node_modules/core-js/proposals/set-methods-v2.js @@ -0,0 +1,9 @@ +'use strict'; +// https://github.com/tc39/proposal-set-methods +require('../modules/esnext.set.difference.v2'); +require('../modules/esnext.set.intersection.v2'); +require('../modules/esnext.set.is-disjoint-from.v2'); +require('../modules/esnext.set.is-subset-of.v2'); +require('../modules/esnext.set.is-superset-of.v2'); +require('../modules/esnext.set.union.v2'); +require('../modules/esnext.set.symmetric-difference.v2'); diff --git a/node_modules/core-js/proposals/set-methods.js b/node_modules/core-js/proposals/set-methods.js new file mode 100644 index 0000000..951f7e9 --- /dev/null +++ b/node_modules/core-js/proposals/set-methods.js @@ -0,0 +1,17 @@ +'use strict'; +// https://github.com/tc39/proposal-set-methods +require('../modules/esnext.set.difference.v2'); +require('../modules/esnext.set.intersection.v2'); +require('../modules/esnext.set.is-disjoint-from.v2'); +require('../modules/esnext.set.is-subset-of.v2'); +require('../modules/esnext.set.is-superset-of.v2'); +require('../modules/esnext.set.union.v2'); +require('../modules/esnext.set.symmetric-difference.v2'); +// TODO: Obsolete versions, remove from `core-js@4` +require('../modules/esnext.set.difference'); +require('../modules/esnext.set.intersection'); +require('../modules/esnext.set.is-disjoint-from'); +require('../modules/esnext.set.is-subset-of'); +require('../modules/esnext.set.is-superset-of'); +require('../modules/esnext.set.union'); +require('../modules/esnext.set.symmetric-difference'); diff --git a/node_modules/core-js/proposals/string-at.js b/node_modules/core-js/proposals/string-at.js new file mode 100644 index 0000000..bf57aab --- /dev/null +++ b/node_modules/core-js/proposals/string-at.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/mathiasbynens/String.prototype.at +require('../modules/esnext.string.at'); diff --git a/node_modules/core-js/proposals/string-code-points.js b/node_modules/core-js/proposals/string-code-points.js new file mode 100644 index 0000000..937a104 --- /dev/null +++ b/node_modules/core-js/proposals/string-code-points.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-string-prototype-codepoints +require('../modules/esnext.string.code-points'); diff --git a/node_modules/core-js/proposals/string-cooked.js b/node_modules/core-js/proposals/string-cooked.js new file mode 100644 index 0000000..00872b8 --- /dev/null +++ b/node_modules/core-js/proposals/string-cooked.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/bathos/proposal-string-cooked +require('../modules/esnext.string.cooked'); diff --git a/node_modules/core-js/proposals/string-dedent.js b/node_modules/core-js/proposals/string-dedent.js new file mode 100644 index 0000000..b857c35 --- /dev/null +++ b/node_modules/core-js/proposals/string-dedent.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-string-dedent +require('../modules/esnext.string.dedent'); diff --git a/node_modules/core-js/proposals/string-left-right-trim.js b/node_modules/core-js/proposals/string-left-right-trim.js new file mode 100644 index 0000000..daef2b6 --- /dev/null +++ b/node_modules/core-js/proposals/string-left-right-trim.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-string-left-right-trim +require('../modules/es.string.trim-start'); +require('../modules/es.string.trim-end'); diff --git a/node_modules/core-js/proposals/string-match-all.js b/node_modules/core-js/proposals/string-match-all.js new file mode 100644 index 0000000..36dab4f --- /dev/null +++ b/node_modules/core-js/proposals/string-match-all.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-string-matchall +require('../modules/esnext.string.match-all'); diff --git a/node_modules/core-js/proposals/string-padding.js b/node_modules/core-js/proposals/string-padding.js new file mode 100644 index 0000000..435429e --- /dev/null +++ b/node_modules/core-js/proposals/string-padding.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-string-pad-start-end +require('../modules/es.string.pad-end'); +require('../modules/es.string.pad-start'); diff --git a/node_modules/core-js/proposals/string-replace-all-stage-4.js b/node_modules/core-js/proposals/string-replace-all-stage-4.js new file mode 100644 index 0000000..ab7d05b --- /dev/null +++ b/node_modules/core-js/proposals/string-replace-all-stage-4.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-string-replaceall +require('../modules/esnext.string.replace-all'); diff --git a/node_modules/core-js/proposals/string-replace-all.js b/node_modules/core-js/proposals/string-replace-all.js new file mode 100644 index 0000000..6ad7e75 --- /dev/null +++ b/node_modules/core-js/proposals/string-replace-all.js @@ -0,0 +1,5 @@ +'use strict'; +// https://github.com/tc39/proposal-string-replaceall +require('../modules/esnext.string.replace-all'); +// TODO: remove from `core-js@4` +require('../modules/esnext.symbol.replace-all'); diff --git a/node_modules/core-js/proposals/symbol-description.js b/node_modules/core-js/proposals/symbol-description.js new file mode 100644 index 0000000..e5bf674 --- /dev/null +++ b/node_modules/core-js/proposals/symbol-description.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-Symbol-description +require('../modules/es.symbol.description'); diff --git a/node_modules/core-js/proposals/symbol-predicates-v2.js b/node_modules/core-js/proposals/symbol-predicates-v2.js new file mode 100644 index 0000000..5bd3ce5 --- /dev/null +++ b/node_modules/core-js/proposals/symbol-predicates-v2.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-symbol-predicates +require('../modules/esnext.symbol.is-registered-symbol'); +require('../modules/esnext.symbol.is-well-known-symbol'); diff --git a/node_modules/core-js/proposals/symbol-predicates.js b/node_modules/core-js/proposals/symbol-predicates.js new file mode 100644 index 0000000..2776b84 --- /dev/null +++ b/node_modules/core-js/proposals/symbol-predicates.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-symbol-predicates +require('../modules/esnext.symbol.is-registered'); +require('../modules/esnext.symbol.is-well-known'); diff --git a/node_modules/core-js/proposals/url.js b/node_modules/core-js/proposals/url.js new file mode 100644 index 0000000..2f12fde --- /dev/null +++ b/node_modules/core-js/proposals/url.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/jasnell/proposal-url +require('../web/url'); diff --git a/node_modules/core-js/proposals/using-statement.js b/node_modules/core-js/proposals/using-statement.js new file mode 100644 index 0000000..b85b28d --- /dev/null +++ b/node_modules/core-js/proposals/using-statement.js @@ -0,0 +1,5 @@ +'use strict'; +// TODO: Renamed, remove from `core-js@4` +// https://github.com/tc39/proposal-explicit-resource-management +require('../modules/esnext.symbol.async-dispose'); +require('../modules/esnext.symbol.dispose'); diff --git a/node_modules/core-js/proposals/well-formed-stringify.js b/node_modules/core-js/proposals/well-formed-stringify.js new file mode 100644 index 0000000..53a5f99 --- /dev/null +++ b/node_modules/core-js/proposals/well-formed-stringify.js @@ -0,0 +1,3 @@ +'use strict'; +// https://github.com/tc39/proposal-well-formed-stringify +require('../modules/es.json.stringify'); diff --git a/node_modules/core-js/proposals/well-formed-unicode-strings.js b/node_modules/core-js/proposals/well-formed-unicode-strings.js new file mode 100644 index 0000000..bdbaec8 --- /dev/null +++ b/node_modules/core-js/proposals/well-formed-unicode-strings.js @@ -0,0 +1,4 @@ +'use strict'; +// https://github.com/tc39/proposal-is-usv-string +require('../modules/esnext.string.is-well-formed'); +require('../modules/esnext.string.to-well-formed'); diff --git a/node_modules/core-js/stable/README.md b/node_modules/core-js/stable/README.md new file mode 100644 index 0000000..903150c --- /dev/null +++ b/node_modules/core-js/stable/README.md @@ -0,0 +1 @@ +This folder contains entry points for all stable `core-js` features with dependencies. It's the recommended way for usage only required features. diff --git a/node_modules/core-js/stable/aggregate-error.js b/node_modules/core-js/stable/aggregate-error.js new file mode 100644 index 0000000..2a6c436 --- /dev/null +++ b/node_modules/core-js/stable/aggregate-error.js @@ -0,0 +1,8 @@ +'use strict'; +// TODO: remove from `core-js@4` +require('../modules/esnext.aggregate-error'); + +var parent = require('../es/aggregate-error'); +require('../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array-buffer/constructor.js b/node_modules/core-js/stable/array-buffer/constructor.js new file mode 100644 index 0000000..b412c94 --- /dev/null +++ b/node_modules/core-js/stable/array-buffer/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array-buffer/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array-buffer/detached.js b/node_modules/core-js/stable/array-buffer/detached.js new file mode 100644 index 0000000..ad4679d --- /dev/null +++ b/node_modules/core-js/stable/array-buffer/detached.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array-buffer/detached'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array-buffer/index.js b/node_modules/core-js/stable/array-buffer/index.js new file mode 100644 index 0000000..ffda1ee --- /dev/null +++ b/node_modules/core-js/stable/array-buffer/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array-buffer'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array-buffer/is-view.js b/node_modules/core-js/stable/array-buffer/is-view.js new file mode 100644 index 0000000..8fa117c --- /dev/null +++ b/node_modules/core-js/stable/array-buffer/is-view.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array-buffer/is-view'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array-buffer/slice.js b/node_modules/core-js/stable/array-buffer/slice.js new file mode 100644 index 0000000..524f086 --- /dev/null +++ b/node_modules/core-js/stable/array-buffer/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array-buffer/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array-buffer/transfer-to-fixed-length.js b/node_modules/core-js/stable/array-buffer/transfer-to-fixed-length.js new file mode 100644 index 0000000..4e183bd --- /dev/null +++ b/node_modules/core-js/stable/array-buffer/transfer-to-fixed-length.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array-buffer/transfer-to-fixed-length'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array-buffer/transfer.js b/node_modules/core-js/stable/array-buffer/transfer.js new file mode 100644 index 0000000..cca11f3 --- /dev/null +++ b/node_modules/core-js/stable/array-buffer/transfer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array-buffer/transfer'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/at.js b/node_modules/core-js/stable/array/at.js new file mode 100644 index 0000000..aff713b --- /dev/null +++ b/node_modules/core-js/stable/array/at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/at'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/concat.js b/node_modules/core-js/stable/array/concat.js new file mode 100644 index 0000000..a7eccba --- /dev/null +++ b/node_modules/core-js/stable/array/concat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/concat'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/copy-within.js b/node_modules/core-js/stable/array/copy-within.js new file mode 100644 index 0000000..7d3440e --- /dev/null +++ b/node_modules/core-js/stable/array/copy-within.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/copy-within'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/entries.js b/node_modules/core-js/stable/array/entries.js new file mode 100644 index 0000000..e9bde39 --- /dev/null +++ b/node_modules/core-js/stable/array/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/every.js b/node_modules/core-js/stable/array/every.js new file mode 100644 index 0000000..52c255d --- /dev/null +++ b/node_modules/core-js/stable/array/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/every'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/fill.js b/node_modules/core-js/stable/array/fill.js new file mode 100644 index 0000000..5e9a2bf --- /dev/null +++ b/node_modules/core-js/stable/array/fill.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/fill'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/filter.js b/node_modules/core-js/stable/array/filter.js new file mode 100644 index 0000000..24a6dc9 --- /dev/null +++ b/node_modules/core-js/stable/array/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/find-index.js b/node_modules/core-js/stable/array/find-index.js new file mode 100644 index 0000000..67f63ab --- /dev/null +++ b/node_modules/core-js/stable/array/find-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/find-index'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/find-last-index.js b/node_modules/core-js/stable/array/find-last-index.js new file mode 100644 index 0000000..4cc07ac --- /dev/null +++ b/node_modules/core-js/stable/array/find-last-index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../es/array/find-last-index'); diff --git a/node_modules/core-js/stable/array/find-last.js b/node_modules/core-js/stable/array/find-last.js new file mode 100644 index 0000000..9399401 --- /dev/null +++ b/node_modules/core-js/stable/array/find-last.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../es/array/find-last'); diff --git a/node_modules/core-js/stable/array/find.js b/node_modules/core-js/stable/array/find.js new file mode 100644 index 0000000..a749978 --- /dev/null +++ b/node_modules/core-js/stable/array/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/find'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/flat-map.js b/node_modules/core-js/stable/array/flat-map.js new file mode 100644 index 0000000..b2cd230 --- /dev/null +++ b/node_modules/core-js/stable/array/flat-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/flat-map'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/flat.js b/node_modules/core-js/stable/array/flat.js new file mode 100644 index 0000000..65870c4 --- /dev/null +++ b/node_modules/core-js/stable/array/flat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/flat'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/for-each.js b/node_modules/core-js/stable/array/for-each.js new file mode 100644 index 0000000..fbe9619 --- /dev/null +++ b/node_modules/core-js/stable/array/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/from.js b/node_modules/core-js/stable/array/from.js new file mode 100644 index 0000000..9d4ee90 --- /dev/null +++ b/node_modules/core-js/stable/array/from.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/from'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/includes.js b/node_modules/core-js/stable/array/includes.js new file mode 100644 index 0000000..030648a --- /dev/null +++ b/node_modules/core-js/stable/array/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/index-of.js b/node_modules/core-js/stable/array/index-of.js new file mode 100644 index 0000000..65da295 --- /dev/null +++ b/node_modules/core-js/stable/array/index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/index.js b/node_modules/core-js/stable/array/index.js new file mode 100644 index 0000000..01a0083 --- /dev/null +++ b/node_modules/core-js/stable/array/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/is-array.js b/node_modules/core-js/stable/array/is-array.js new file mode 100644 index 0000000..7e5207e --- /dev/null +++ b/node_modules/core-js/stable/array/is-array.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/is-array'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/iterator.js b/node_modules/core-js/stable/array/iterator.js new file mode 100644 index 0000000..75e4a95 --- /dev/null +++ b/node_modules/core-js/stable/array/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/join.js b/node_modules/core-js/stable/array/join.js new file mode 100644 index 0000000..3df704b --- /dev/null +++ b/node_modules/core-js/stable/array/join.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/join'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/keys.js b/node_modules/core-js/stable/array/keys.js new file mode 100644 index 0000000..21c0d4b --- /dev/null +++ b/node_modules/core-js/stable/array/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/last-index-of.js b/node_modules/core-js/stable/array/last-index-of.js new file mode 100644 index 0000000..4b1e9ce --- /dev/null +++ b/node_modules/core-js/stable/array/last-index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/last-index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/map.js b/node_modules/core-js/stable/array/map.js new file mode 100644 index 0000000..2ca8b31 --- /dev/null +++ b/node_modules/core-js/stable/array/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/map'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/of.js b/node_modules/core-js/stable/array/of.js new file mode 100644 index 0000000..12c7922 --- /dev/null +++ b/node_modules/core-js/stable/array/of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/push.js b/node_modules/core-js/stable/array/push.js new file mode 100644 index 0000000..b64c62c --- /dev/null +++ b/node_modules/core-js/stable/array/push.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/push'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/reduce-right.js b/node_modules/core-js/stable/array/reduce-right.js new file mode 100644 index 0000000..e820251 --- /dev/null +++ b/node_modules/core-js/stable/array/reduce-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/reduce-right'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/reduce.js b/node_modules/core-js/stable/array/reduce.js new file mode 100644 index 0000000..d612f42 --- /dev/null +++ b/node_modules/core-js/stable/array/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/reverse.js b/node_modules/core-js/stable/array/reverse.js new file mode 100644 index 0000000..1b26236 --- /dev/null +++ b/node_modules/core-js/stable/array/reverse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/reverse'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/slice.js b/node_modules/core-js/stable/array/slice.js new file mode 100644 index 0000000..77cb872 --- /dev/null +++ b/node_modules/core-js/stable/array/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/some.js b/node_modules/core-js/stable/array/some.js new file mode 100644 index 0000000..ee3d4de --- /dev/null +++ b/node_modules/core-js/stable/array/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/some'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/sort.js b/node_modules/core-js/stable/array/sort.js new file mode 100644 index 0000000..14f8937 --- /dev/null +++ b/node_modules/core-js/stable/array/sort.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/sort'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/splice.js b/node_modules/core-js/stable/array/splice.js new file mode 100644 index 0000000..4743a4e --- /dev/null +++ b/node_modules/core-js/stable/array/splice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/splice'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/to-reversed.js b/node_modules/core-js/stable/array/to-reversed.js new file mode 100644 index 0000000..b92ed50 --- /dev/null +++ b/node_modules/core-js/stable/array/to-reversed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/to-reversed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/to-sorted.js b/node_modules/core-js/stable/array/to-sorted.js new file mode 100644 index 0000000..ecbb86f --- /dev/null +++ b/node_modules/core-js/stable/array/to-sorted.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/to-sorted'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/to-spliced.js b/node_modules/core-js/stable/array/to-spliced.js new file mode 100644 index 0000000..b1846a9 --- /dev/null +++ b/node_modules/core-js/stable/array/to-spliced.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/to-spliced'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/unshift.js b/node_modules/core-js/stable/array/unshift.js new file mode 100644 index 0000000..7053319 --- /dev/null +++ b/node_modules/core-js/stable/array/unshift.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/unshift'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/values.js b/node_modules/core-js/stable/array/values.js new file mode 100644 index 0000000..a9d6417 --- /dev/null +++ b/node_modules/core-js/stable/array/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/values'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/at.js b/node_modules/core-js/stable/array/virtual/at.js new file mode 100644 index 0000000..13832e0 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/at'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/concat.js b/node_modules/core-js/stable/array/virtual/concat.js new file mode 100644 index 0000000..6a0b094 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/concat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/concat'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/copy-within.js b/node_modules/core-js/stable/array/virtual/copy-within.js new file mode 100644 index 0000000..6ab25de --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/copy-within.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/copy-within'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/entries.js b/node_modules/core-js/stable/array/virtual/entries.js new file mode 100644 index 0000000..a3b0a70 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/every.js b/node_modules/core-js/stable/array/virtual/every.js new file mode 100644 index 0000000..f37d7f8 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/every'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/fill.js b/node_modules/core-js/stable/array/virtual/fill.js new file mode 100644 index 0000000..74103a5 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/fill.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/fill'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/filter.js b/node_modules/core-js/stable/array/virtual/filter.js new file mode 100644 index 0000000..74c0e77 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/find-index.js b/node_modules/core-js/stable/array/virtual/find-index.js new file mode 100644 index 0000000..9aed40a --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/find-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/find-index'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/find-last-index.js b/node_modules/core-js/stable/array/virtual/find-last-index.js new file mode 100644 index 0000000..ba04a17 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/find-last-index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../es/array/virtual/find-last-index'); diff --git a/node_modules/core-js/stable/array/virtual/find-last.js b/node_modules/core-js/stable/array/virtual/find-last.js new file mode 100644 index 0000000..6b546a6 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/find-last.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../../es/array/virtual/find-last'); diff --git a/node_modules/core-js/stable/array/virtual/find.js b/node_modules/core-js/stable/array/virtual/find.js new file mode 100644 index 0000000..147252a --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/find'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/flat-map.js b/node_modules/core-js/stable/array/virtual/flat-map.js new file mode 100644 index 0000000..864845a --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/flat-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/flat-map'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/flat.js b/node_modules/core-js/stable/array/virtual/flat.js new file mode 100644 index 0000000..bdebf7c --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/flat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/flat'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/for-each.js b/node_modules/core-js/stable/array/virtual/for-each.js new file mode 100644 index 0000000..16abca8 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/includes.js b/node_modules/core-js/stable/array/virtual/includes.js new file mode 100644 index 0000000..f16ee63 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/index-of.js b/node_modules/core-js/stable/array/virtual/index-of.js new file mode 100644 index 0000000..2bfb9ba --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/index.js b/node_modules/core-js/stable/array/virtual/index.js new file mode 100644 index 0000000..7cab826 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/iterator.js b/node_modules/core-js/stable/array/virtual/iterator.js new file mode 100644 index 0000000..7fb71e3 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/join.js b/node_modules/core-js/stable/array/virtual/join.js new file mode 100644 index 0000000..c10586d --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/join.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/join'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/keys.js b/node_modules/core-js/stable/array/virtual/keys.js new file mode 100644 index 0000000..b7dee23 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/last-index-of.js b/node_modules/core-js/stable/array/virtual/last-index-of.js new file mode 100644 index 0000000..2bc914f --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/last-index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/last-index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/map.js b/node_modules/core-js/stable/array/virtual/map.js new file mode 100644 index 0000000..5821a11 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/map'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/push.js b/node_modules/core-js/stable/array/virtual/push.js new file mode 100644 index 0000000..7b975d3 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/push.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/push'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/reduce-right.js b/node_modules/core-js/stable/array/virtual/reduce-right.js new file mode 100644 index 0000000..2d7c7d6 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/reduce-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/reduce-right'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/reduce.js b/node_modules/core-js/stable/array/virtual/reduce.js new file mode 100644 index 0000000..270a067 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/reverse.js b/node_modules/core-js/stable/array/virtual/reverse.js new file mode 100644 index 0000000..cede168 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/reverse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/reverse'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/slice.js b/node_modules/core-js/stable/array/virtual/slice.js new file mode 100644 index 0000000..c19788c --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/some.js b/node_modules/core-js/stable/array/virtual/some.js new file mode 100644 index 0000000..26375fe --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/some'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/sort.js b/node_modules/core-js/stable/array/virtual/sort.js new file mode 100644 index 0000000..5ef50be --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/sort.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/sort'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/splice.js b/node_modules/core-js/stable/array/virtual/splice.js new file mode 100644 index 0000000..c763b29 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/splice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/splice'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/to-reversed.js b/node_modules/core-js/stable/array/virtual/to-reversed.js new file mode 100644 index 0000000..f09f2eb --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/to-reversed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/to-reversed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/to-sorted.js b/node_modules/core-js/stable/array/virtual/to-sorted.js new file mode 100644 index 0000000..affc20c --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/to-sorted.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/to-sorted'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/to-spliced.js b/node_modules/core-js/stable/array/virtual/to-spliced.js new file mode 100644 index 0000000..5426ebe --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/to-spliced.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/to-spliced'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/unshift.js b/node_modules/core-js/stable/array/virtual/unshift.js new file mode 100644 index 0000000..d6c95cd --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/unshift.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/unshift'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/values.js b/node_modules/core-js/stable/array/virtual/values.js new file mode 100644 index 0000000..616ecc3 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/values'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/virtual/with.js b/node_modules/core-js/stable/array/virtual/with.js new file mode 100644 index 0000000..8b14f21 --- /dev/null +++ b/node_modules/core-js/stable/array/virtual/with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/array/virtual/with'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/array/with.js b/node_modules/core-js/stable/array/with.js new file mode 100644 index 0000000..14df0c9 --- /dev/null +++ b/node_modules/core-js/stable/array/with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/array/with'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/atob.js b/node_modules/core-js/stable/atob.js new file mode 100644 index 0000000..a7b40aa --- /dev/null +++ b/node_modules/core-js/stable/atob.js @@ -0,0 +1,10 @@ +'use strict'; +require('../modules/es.error.to-string'); +require('../modules/es.object.to-string'); +require('../modules/web.atob'); +require('../modules/web.dom-exception.constructor'); +require('../modules/web.dom-exception.stack'); +require('../modules/web.dom-exception.to-string-tag'); +var path = require('../internals/path'); + +module.exports = path.atob; diff --git a/node_modules/core-js/stable/btoa.js b/node_modules/core-js/stable/btoa.js new file mode 100644 index 0000000..91cf24a --- /dev/null +++ b/node_modules/core-js/stable/btoa.js @@ -0,0 +1,10 @@ +'use strict'; +require('../modules/es.error.to-string'); +require('../modules/es.object.to-string'); +require('../modules/web.btoa'); +require('../modules/web.dom-exception.constructor'); +require('../modules/web.dom-exception.stack'); +require('../modules/web.dom-exception.to-string-tag'); +var path = require('../internals/path'); + +module.exports = path.btoa; diff --git a/node_modules/core-js/stable/clear-immediate.js b/node_modules/core-js/stable/clear-immediate.js new file mode 100644 index 0000000..8735f36 --- /dev/null +++ b/node_modules/core-js/stable/clear-immediate.js @@ -0,0 +1,5 @@ +'use strict'; +require('../modules/web.immediate'); +var path = require('../internals/path'); + +module.exports = path.clearImmediate; diff --git a/node_modules/core-js/stable/data-view/index.js b/node_modules/core-js/stable/data-view/index.js new file mode 100644 index 0000000..b7c595c --- /dev/null +++ b/node_modules/core-js/stable/data-view/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/data-view'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/date/get-year.js b/node_modules/core-js/stable/date/get-year.js new file mode 100644 index 0000000..b8831fe --- /dev/null +++ b/node_modules/core-js/stable/date/get-year.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/date/get-year'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/date/index.js b/node_modules/core-js/stable/date/index.js new file mode 100644 index 0000000..a4101f7 --- /dev/null +++ b/node_modules/core-js/stable/date/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/date'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/date/now.js b/node_modules/core-js/stable/date/now.js new file mode 100644 index 0000000..2b54054 --- /dev/null +++ b/node_modules/core-js/stable/date/now.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/date/now'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/date/set-year.js b/node_modules/core-js/stable/date/set-year.js new file mode 100644 index 0000000..56c7ba9 --- /dev/null +++ b/node_modules/core-js/stable/date/set-year.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/date/set-year'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/date/to-gmt-string.js b/node_modules/core-js/stable/date/to-gmt-string.js new file mode 100644 index 0000000..ecff2fa --- /dev/null +++ b/node_modules/core-js/stable/date/to-gmt-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/date/to-gmt-string'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/date/to-iso-string.js b/node_modules/core-js/stable/date/to-iso-string.js new file mode 100644 index 0000000..daae0fa --- /dev/null +++ b/node_modules/core-js/stable/date/to-iso-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/date/to-iso-string'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/date/to-json.js b/node_modules/core-js/stable/date/to-json.js new file mode 100644 index 0000000..9fb0ab7 --- /dev/null +++ b/node_modules/core-js/stable/date/to-json.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/date/to-json'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/date/to-primitive.js b/node_modules/core-js/stable/date/to-primitive.js new file mode 100644 index 0000000..bbd6d11 --- /dev/null +++ b/node_modules/core-js/stable/date/to-primitive.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/date/to-primitive'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/date/to-string.js b/node_modules/core-js/stable/date/to-string.js new file mode 100644 index 0000000..65fcdf6 --- /dev/null +++ b/node_modules/core-js/stable/date/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/date/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/dom-collections/for-each.js b/node_modules/core-js/stable/dom-collections/for-each.js new file mode 100644 index 0000000..3cffa65 --- /dev/null +++ b/node_modules/core-js/stable/dom-collections/for-each.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/web.dom-collections.for-each'); + +var parent = require('../../internals/array-for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/dom-collections/index.js b/node_modules/core-js/stable/dom-collections/index.js new file mode 100644 index 0000000..5436ac5 --- /dev/null +++ b/node_modules/core-js/stable/dom-collections/index.js @@ -0,0 +1,14 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/web.dom-collections.for-each'); +require('../../modules/web.dom-collections.iterator'); +var ArrayIterators = require('../../modules/es.array.iterator'); +var forEach = require('../../internals/array-for-each'); + +module.exports = { + keys: ArrayIterators.keys, + values: ArrayIterators.values, + entries: ArrayIterators.entries, + iterator: ArrayIterators.values, + forEach: forEach +}; diff --git a/node_modules/core-js/stable/dom-collections/iterator.js b/node_modules/core-js/stable/dom-collections/iterator.js new file mode 100644 index 0000000..63582f0 --- /dev/null +++ b/node_modules/core-js/stable/dom-collections/iterator.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/es.object.to-string'); +require('../../modules/web.dom-collections.iterator'); +var entryUnbind = require('../../internals/entry-unbind'); + +module.exports = entryUnbind('Array', 'values'); diff --git a/node_modules/core-js/stable/dom-exception/constructor.js b/node_modules/core-js/stable/dom-exception/constructor.js new file mode 100644 index 0000000..f014fe9 --- /dev/null +++ b/node_modules/core-js/stable/dom-exception/constructor.js @@ -0,0 +1,7 @@ +'use strict'; +require('../../modules/es.error.to-string'); +require('../../modules/web.dom-exception.constructor'); +require('../../modules/web.dom-exception.stack'); +var path = require('../../internals/path'); + +module.exports = path.DOMException; diff --git a/node_modules/core-js/stable/dom-exception/index.js b/node_modules/core-js/stable/dom-exception/index.js new file mode 100644 index 0000000..f187f84 --- /dev/null +++ b/node_modules/core-js/stable/dom-exception/index.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es.error.to-string'); +require('../../modules/web.dom-exception.constructor'); +require('../../modules/web.dom-exception.stack'); +require('../../modules/web.dom-exception.to-string-tag'); +var path = require('../../internals/path'); + +module.exports = path.DOMException; diff --git a/node_modules/core-js/stable/dom-exception/to-string-tag.js b/node_modules/core-js/stable/dom-exception/to-string-tag.js new file mode 100644 index 0000000..5856e65 --- /dev/null +++ b/node_modules/core-js/stable/dom-exception/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/web.dom-exception.to-string-tag'); + +module.exports = 'DOMException'; diff --git a/node_modules/core-js/stable/error/constructor.js b/node_modules/core-js/stable/error/constructor.js new file mode 100644 index 0000000..761efd3 --- /dev/null +++ b/node_modules/core-js/stable/error/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/error/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/error/index.js b/node_modules/core-js/stable/error/index.js new file mode 100644 index 0000000..87d3e24 --- /dev/null +++ b/node_modules/core-js/stable/error/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/error'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/error/to-string.js b/node_modules/core-js/stable/error/to-string.js new file mode 100644 index 0000000..5fe958f --- /dev/null +++ b/node_modules/core-js/stable/error/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/error/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/escape.js b/node_modules/core-js/stable/escape.js new file mode 100644 index 0000000..008bb6d --- /dev/null +++ b/node_modules/core-js/stable/escape.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../es/escape'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/function/bind.js b/node_modules/core-js/stable/function/bind.js new file mode 100644 index 0000000..de54f8a --- /dev/null +++ b/node_modules/core-js/stable/function/bind.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/function/bind'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/function/has-instance.js b/node_modules/core-js/stable/function/has-instance.js new file mode 100644 index 0000000..3eb2212 --- /dev/null +++ b/node_modules/core-js/stable/function/has-instance.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/function/has-instance'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/function/index.js b/node_modules/core-js/stable/function/index.js new file mode 100644 index 0000000..dcb9d34 --- /dev/null +++ b/node_modules/core-js/stable/function/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/function'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/function/name.js b/node_modules/core-js/stable/function/name.js new file mode 100644 index 0000000..11db255 --- /dev/null +++ b/node_modules/core-js/stable/function/name.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/function/name'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/function/virtual/bind.js b/node_modules/core-js/stable/function/virtual/bind.js new file mode 100644 index 0000000..1dde33d --- /dev/null +++ b/node_modules/core-js/stable/function/virtual/bind.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/function/virtual/bind'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/function/virtual/index.js b/node_modules/core-js/stable/function/virtual/index.js new file mode 100644 index 0000000..ee7a38c --- /dev/null +++ b/node_modules/core-js/stable/function/virtual/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/function/virtual'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/get-iterator-method.js b/node_modules/core-js/stable/get-iterator-method.js new file mode 100644 index 0000000..8ec6189 --- /dev/null +++ b/node_modules/core-js/stable/get-iterator-method.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../es/get-iterator-method'); +require('../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/get-iterator.js b/node_modules/core-js/stable/get-iterator.js new file mode 100644 index 0000000..e91de84 --- /dev/null +++ b/node_modules/core-js/stable/get-iterator.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../es/get-iterator'); +require('../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/global-this.js b/node_modules/core-js/stable/global-this.js new file mode 100644 index 0000000..2c4ca75 --- /dev/null +++ b/node_modules/core-js/stable/global-this.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../es/global-this'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/index.js b/node_modules/core-js/stable/index.js new file mode 100644 index 0000000..f6b5d09 --- /dev/null +++ b/node_modules/core-js/stable/index.js @@ -0,0 +1,278 @@ +'use strict'; +require('../modules/es.symbol'); +require('../modules/es.symbol.description'); +require('../modules/es.symbol.async-iterator'); +require('../modules/es.symbol.has-instance'); +require('../modules/es.symbol.is-concat-spreadable'); +require('../modules/es.symbol.iterator'); +require('../modules/es.symbol.match'); +require('../modules/es.symbol.match-all'); +require('../modules/es.symbol.replace'); +require('../modules/es.symbol.search'); +require('../modules/es.symbol.species'); +require('../modules/es.symbol.split'); +require('../modules/es.symbol.to-primitive'); +require('../modules/es.symbol.to-string-tag'); +require('../modules/es.symbol.unscopables'); +require('../modules/es.error.cause'); +require('../modules/es.error.to-string'); +require('../modules/es.aggregate-error'); +require('../modules/es.aggregate-error.cause'); +require('../modules/es.array.at'); +require('../modules/es.array.concat'); +require('../modules/es.array.copy-within'); +require('../modules/es.array.every'); +require('../modules/es.array.fill'); +require('../modules/es.array.filter'); +require('../modules/es.array.find'); +require('../modules/es.array.find-index'); +require('../modules/es.array.find-last'); +require('../modules/es.array.find-last-index'); +require('../modules/es.array.flat'); +require('../modules/es.array.flat-map'); +require('../modules/es.array.for-each'); +require('../modules/es.array.from'); +require('../modules/es.array.includes'); +require('../modules/es.array.index-of'); +require('../modules/es.array.is-array'); +require('../modules/es.array.iterator'); +require('../modules/es.array.join'); +require('../modules/es.array.last-index-of'); +require('../modules/es.array.map'); +require('../modules/es.array.of'); +require('../modules/es.array.push'); +require('../modules/es.array.reduce'); +require('../modules/es.array.reduce-right'); +require('../modules/es.array.reverse'); +require('../modules/es.array.slice'); +require('../modules/es.array.some'); +require('../modules/es.array.sort'); +require('../modules/es.array.species'); +require('../modules/es.array.splice'); +require('../modules/es.array.to-reversed'); +require('../modules/es.array.to-sorted'); +require('../modules/es.array.to-spliced'); +require('../modules/es.array.unscopables.flat'); +require('../modules/es.array.unscopables.flat-map'); +require('../modules/es.array.unshift'); +require('../modules/es.array.with'); +require('../modules/es.array-buffer.constructor'); +require('../modules/es.array-buffer.is-view'); +require('../modules/es.array-buffer.slice'); +require('../modules/es.data-view'); +require('../modules/es.array-buffer.detached'); +require('../modules/es.array-buffer.transfer'); +require('../modules/es.array-buffer.transfer-to-fixed-length'); +require('../modules/es.date.get-year'); +require('../modules/es.date.now'); +require('../modules/es.date.set-year'); +require('../modules/es.date.to-gmt-string'); +require('../modules/es.date.to-iso-string'); +require('../modules/es.date.to-json'); +require('../modules/es.date.to-primitive'); +require('../modules/es.date.to-string'); +require('../modules/es.escape'); +require('../modules/es.function.bind'); +require('../modules/es.function.has-instance'); +require('../modules/es.function.name'); +require('../modules/es.global-this'); +require('../modules/es.json.stringify'); +require('../modules/es.json.to-string-tag'); +require('../modules/es.map'); +require('../modules/es.map.group-by'); +require('../modules/es.math.acosh'); +require('../modules/es.math.asinh'); +require('../modules/es.math.atanh'); +require('../modules/es.math.cbrt'); +require('../modules/es.math.clz32'); +require('../modules/es.math.cosh'); +require('../modules/es.math.expm1'); +require('../modules/es.math.fround'); +require('../modules/es.math.hypot'); +require('../modules/es.math.imul'); +require('../modules/es.math.log10'); +require('../modules/es.math.log1p'); +require('../modules/es.math.log2'); +require('../modules/es.math.sign'); +require('../modules/es.math.sinh'); +require('../modules/es.math.tanh'); +require('../modules/es.math.to-string-tag'); +require('../modules/es.math.trunc'); +require('../modules/es.number.constructor'); +require('../modules/es.number.epsilon'); +require('../modules/es.number.is-finite'); +require('../modules/es.number.is-integer'); +require('../modules/es.number.is-nan'); +require('../modules/es.number.is-safe-integer'); +require('../modules/es.number.max-safe-integer'); +require('../modules/es.number.min-safe-integer'); +require('../modules/es.number.parse-float'); +require('../modules/es.number.parse-int'); +require('../modules/es.number.to-exponential'); +require('../modules/es.number.to-fixed'); +require('../modules/es.number.to-precision'); +require('../modules/es.object.assign'); +require('../modules/es.object.create'); +require('../modules/es.object.define-getter'); +require('../modules/es.object.define-properties'); +require('../modules/es.object.define-property'); +require('../modules/es.object.define-setter'); +require('../modules/es.object.entries'); +require('../modules/es.object.freeze'); +require('../modules/es.object.from-entries'); +require('../modules/es.object.get-own-property-descriptor'); +require('../modules/es.object.get-own-property-descriptors'); +require('../modules/es.object.get-own-property-names'); +require('../modules/es.object.get-prototype-of'); +require('../modules/es.object.group-by'); +require('../modules/es.object.has-own'); +require('../modules/es.object.is'); +require('../modules/es.object.is-extensible'); +require('../modules/es.object.is-frozen'); +require('../modules/es.object.is-sealed'); +require('../modules/es.object.keys'); +require('../modules/es.object.lookup-getter'); +require('../modules/es.object.lookup-setter'); +require('../modules/es.object.prevent-extensions'); +require('../modules/es.object.proto'); +require('../modules/es.object.seal'); +require('../modules/es.object.set-prototype-of'); +require('../modules/es.object.to-string'); +require('../modules/es.object.values'); +require('../modules/es.parse-float'); +require('../modules/es.parse-int'); +require('../modules/es.promise'); +require('../modules/es.promise.all-settled'); +require('../modules/es.promise.any'); +require('../modules/es.promise.finally'); +require('../modules/es.promise.with-resolvers'); +require('../modules/es.reflect.apply'); +require('../modules/es.reflect.construct'); +require('../modules/es.reflect.define-property'); +require('../modules/es.reflect.delete-property'); +require('../modules/es.reflect.get'); +require('../modules/es.reflect.get-own-property-descriptor'); +require('../modules/es.reflect.get-prototype-of'); +require('../modules/es.reflect.has'); +require('../modules/es.reflect.is-extensible'); +require('../modules/es.reflect.own-keys'); +require('../modules/es.reflect.prevent-extensions'); +require('../modules/es.reflect.set'); +require('../modules/es.reflect.set-prototype-of'); +require('../modules/es.reflect.to-string-tag'); +require('../modules/es.regexp.constructor'); +require('../modules/es.regexp.dot-all'); +require('../modules/es.regexp.exec'); +require('../modules/es.regexp.flags'); +require('../modules/es.regexp.sticky'); +require('../modules/es.regexp.test'); +require('../modules/es.regexp.to-string'); +require('../modules/es.set'); +require('../modules/es.set.difference.v2'); +require('../modules/es.set.intersection.v2'); +require('../modules/es.set.is-disjoint-from.v2'); +require('../modules/es.set.is-subset-of.v2'); +require('../modules/es.set.is-superset-of.v2'); +require('../modules/es.set.symmetric-difference.v2'); +require('../modules/es.set.union.v2'); +require('../modules/es.string.at-alternative'); +require('../modules/es.string.code-point-at'); +require('../modules/es.string.ends-with'); +require('../modules/es.string.from-code-point'); +require('../modules/es.string.includes'); +require('../modules/es.string.is-well-formed'); +require('../modules/es.string.iterator'); +require('../modules/es.string.match'); +require('../modules/es.string.match-all'); +require('../modules/es.string.pad-end'); +require('../modules/es.string.pad-start'); +require('../modules/es.string.raw'); +require('../modules/es.string.repeat'); +require('../modules/es.string.replace'); +require('../modules/es.string.replace-all'); +require('../modules/es.string.search'); +require('../modules/es.string.split'); +require('../modules/es.string.starts-with'); +require('../modules/es.string.substr'); +require('../modules/es.string.to-well-formed'); +require('../modules/es.string.trim'); +require('../modules/es.string.trim-end'); +require('../modules/es.string.trim-start'); +require('../modules/es.string.anchor'); +require('../modules/es.string.big'); +require('../modules/es.string.blink'); +require('../modules/es.string.bold'); +require('../modules/es.string.fixed'); +require('../modules/es.string.fontcolor'); +require('../modules/es.string.fontsize'); +require('../modules/es.string.italics'); +require('../modules/es.string.link'); +require('../modules/es.string.small'); +require('../modules/es.string.strike'); +require('../modules/es.string.sub'); +require('../modules/es.string.sup'); +require('../modules/es.typed-array.float32-array'); +require('../modules/es.typed-array.float64-array'); +require('../modules/es.typed-array.int8-array'); +require('../modules/es.typed-array.int16-array'); +require('../modules/es.typed-array.int32-array'); +require('../modules/es.typed-array.uint8-array'); +require('../modules/es.typed-array.uint8-clamped-array'); +require('../modules/es.typed-array.uint16-array'); +require('../modules/es.typed-array.uint32-array'); +require('../modules/es.typed-array.at'); +require('../modules/es.typed-array.copy-within'); +require('../modules/es.typed-array.every'); +require('../modules/es.typed-array.fill'); +require('../modules/es.typed-array.filter'); +require('../modules/es.typed-array.find'); +require('../modules/es.typed-array.find-index'); +require('../modules/es.typed-array.find-last'); +require('../modules/es.typed-array.find-last-index'); +require('../modules/es.typed-array.for-each'); +require('../modules/es.typed-array.from'); +require('../modules/es.typed-array.includes'); +require('../modules/es.typed-array.index-of'); +require('../modules/es.typed-array.iterator'); +require('../modules/es.typed-array.join'); +require('../modules/es.typed-array.last-index-of'); +require('../modules/es.typed-array.map'); +require('../modules/es.typed-array.of'); +require('../modules/es.typed-array.reduce'); +require('../modules/es.typed-array.reduce-right'); +require('../modules/es.typed-array.reverse'); +require('../modules/es.typed-array.set'); +require('../modules/es.typed-array.slice'); +require('../modules/es.typed-array.some'); +require('../modules/es.typed-array.sort'); +require('../modules/es.typed-array.subarray'); +require('../modules/es.typed-array.to-locale-string'); +require('../modules/es.typed-array.to-reversed'); +require('../modules/es.typed-array.to-sorted'); +require('../modules/es.typed-array.to-string'); +require('../modules/es.typed-array.with'); +require('../modules/es.unescape'); +require('../modules/es.weak-map'); +require('../modules/es.weak-set'); +require('../modules/web.atob'); +require('../modules/web.btoa'); +require('../modules/web.dom-collections.for-each'); +require('../modules/web.dom-collections.iterator'); +require('../modules/web.dom-exception.constructor'); +require('../modules/web.dom-exception.stack'); +require('../modules/web.dom-exception.to-string-tag'); +require('../modules/web.immediate'); +require('../modules/web.queue-microtask'); +require('../modules/web.self'); +require('../modules/web.structured-clone'); +require('../modules/web.timers'); +require('../modules/web.url'); +require('../modules/web.url.can-parse'); +require('../modules/web.url.parse'); +require('../modules/web.url.to-json'); +require('../modules/web.url-search-params'); +require('../modules/web.url-search-params.delete'); +require('../modules/web.url-search-params.has'); +require('../modules/web.url-search-params.size'); + +module.exports = require('../internals/path'); diff --git a/node_modules/core-js/stable/instance/at.js b/node_modules/core-js/stable/instance/at.js new file mode 100644 index 0000000..745048c --- /dev/null +++ b/node_modules/core-js/stable/instance/at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/at'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/bind.js b/node_modules/core-js/stable/instance/bind.js new file mode 100644 index 0000000..ad5f7e0 --- /dev/null +++ b/node_modules/core-js/stable/instance/bind.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/bind'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/code-point-at.js b/node_modules/core-js/stable/instance/code-point-at.js new file mode 100644 index 0000000..a2edf41 --- /dev/null +++ b/node_modules/core-js/stable/instance/code-point-at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/code-point-at'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/concat.js b/node_modules/core-js/stable/instance/concat.js new file mode 100644 index 0000000..d098728 --- /dev/null +++ b/node_modules/core-js/stable/instance/concat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/concat'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/copy-within.js b/node_modules/core-js/stable/instance/copy-within.js new file mode 100644 index 0000000..ee3ba24 --- /dev/null +++ b/node_modules/core-js/stable/instance/copy-within.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/copy-within'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/ends-with.js b/node_modules/core-js/stable/instance/ends-with.js new file mode 100644 index 0000000..ff366c1 --- /dev/null +++ b/node_modules/core-js/stable/instance/ends-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/ends-with'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/entries.js b/node_modules/core-js/stable/instance/entries.js new file mode 100644 index 0000000..0a9918d --- /dev/null +++ b/node_modules/core-js/stable/instance/entries.js @@ -0,0 +1,19 @@ +'use strict'; +require('../../modules/web.dom-collections.iterator'); +var classof = require('../../internals/classof'); +var hasOwn = require('../../internals/has-own-property'); +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/entries'); + +var ArrayPrototype = Array.prototype; + +var DOMIterables = { + DOMTokenList: true, + NodeList: true +}; + +module.exports = function (it) { + var own = it.entries; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.entries) + || hasOwn(DOMIterables, classof(it)) ? method : own; +}; diff --git a/node_modules/core-js/stable/instance/every.js b/node_modules/core-js/stable/instance/every.js new file mode 100644 index 0000000..b3c7ace --- /dev/null +++ b/node_modules/core-js/stable/instance/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/every'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/fill.js b/node_modules/core-js/stable/instance/fill.js new file mode 100644 index 0000000..768cf75 --- /dev/null +++ b/node_modules/core-js/stable/instance/fill.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/fill'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/filter.js b/node_modules/core-js/stable/instance/filter.js new file mode 100644 index 0000000..914f6c8 --- /dev/null +++ b/node_modules/core-js/stable/instance/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/find-index.js b/node_modules/core-js/stable/instance/find-index.js new file mode 100644 index 0000000..3e4410e --- /dev/null +++ b/node_modules/core-js/stable/instance/find-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/find-index'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/find-last-index.js b/node_modules/core-js/stable/instance/find-last-index.js new file mode 100644 index 0000000..4c87c6f --- /dev/null +++ b/node_modules/core-js/stable/instance/find-last-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/find-last-index'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/find-last.js b/node_modules/core-js/stable/instance/find-last.js new file mode 100644 index 0000000..95ab0b6 --- /dev/null +++ b/node_modules/core-js/stable/instance/find-last.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/find-last'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/find.js b/node_modules/core-js/stable/instance/find.js new file mode 100644 index 0000000..ce67ff5 --- /dev/null +++ b/node_modules/core-js/stable/instance/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/find'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/flags.js b/node_modules/core-js/stable/instance/flags.js new file mode 100644 index 0000000..012b83d --- /dev/null +++ b/node_modules/core-js/stable/instance/flags.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/flags'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/flat-map.js b/node_modules/core-js/stable/instance/flat-map.js new file mode 100644 index 0000000..89aaac8 --- /dev/null +++ b/node_modules/core-js/stable/instance/flat-map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/flat-map'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/flat.js b/node_modules/core-js/stable/instance/flat.js new file mode 100644 index 0000000..8acc0fb --- /dev/null +++ b/node_modules/core-js/stable/instance/flat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/flat'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/for-each.js b/node_modules/core-js/stable/instance/for-each.js new file mode 100644 index 0000000..0ed3cae --- /dev/null +++ b/node_modules/core-js/stable/instance/for-each.js @@ -0,0 +1,19 @@ +'use strict'; +var classof = require('../../internals/classof'); +var hasOwn = require('../../internals/has-own-property'); +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/for-each'); +require('../../modules/web.dom-collections.for-each'); + +var ArrayPrototype = Array.prototype; + +var DOMIterables = { + DOMTokenList: true, + NodeList: true +}; + +module.exports = function (it) { + var own = it.forEach; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.forEach) + || hasOwn(DOMIterables, classof(it)) ? method : own; +}; diff --git a/node_modules/core-js/stable/instance/includes.js b/node_modules/core-js/stable/instance/includes.js new file mode 100644 index 0000000..45283f2 --- /dev/null +++ b/node_modules/core-js/stable/instance/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/index-of.js b/node_modules/core-js/stable/instance/index-of.js new file mode 100644 index 0000000..89c0daf --- /dev/null +++ b/node_modules/core-js/stable/instance/index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/is-well-formed.js b/node_modules/core-js/stable/instance/is-well-formed.js new file mode 100644 index 0000000..292abd9 --- /dev/null +++ b/node_modules/core-js/stable/instance/is-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/is-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/keys.js b/node_modules/core-js/stable/instance/keys.js new file mode 100644 index 0000000..4c00406 --- /dev/null +++ b/node_modules/core-js/stable/instance/keys.js @@ -0,0 +1,19 @@ +'use strict'; +require('../../modules/web.dom-collections.iterator'); +var classof = require('../../internals/classof'); +var hasOwn = require('../../internals/has-own-property'); +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/keys'); + +var ArrayPrototype = Array.prototype; + +var DOMIterables = { + DOMTokenList: true, + NodeList: true +}; + +module.exports = function (it) { + var own = it.keys; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.keys) + || hasOwn(DOMIterables, classof(it)) ? method : own; +}; diff --git a/node_modules/core-js/stable/instance/last-index-of.js b/node_modules/core-js/stable/instance/last-index-of.js new file mode 100644 index 0000000..f14f8c1 --- /dev/null +++ b/node_modules/core-js/stable/instance/last-index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/last-index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/map.js b/node_modules/core-js/stable/instance/map.js new file mode 100644 index 0000000..1b521b0 --- /dev/null +++ b/node_modules/core-js/stable/instance/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/map'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/match-all.js b/node_modules/core-js/stable/instance/match-all.js new file mode 100644 index 0000000..28e68ae --- /dev/null +++ b/node_modules/core-js/stable/instance/match-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/match-all'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/pad-end.js b/node_modules/core-js/stable/instance/pad-end.js new file mode 100644 index 0000000..d0b4870 --- /dev/null +++ b/node_modules/core-js/stable/instance/pad-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/pad-end'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/pad-start.js b/node_modules/core-js/stable/instance/pad-start.js new file mode 100644 index 0000000..d41f8f0 --- /dev/null +++ b/node_modules/core-js/stable/instance/pad-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/pad-start'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/push.js b/node_modules/core-js/stable/instance/push.js new file mode 100644 index 0000000..674250a --- /dev/null +++ b/node_modules/core-js/stable/instance/push.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/push'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/reduce-right.js b/node_modules/core-js/stable/instance/reduce-right.js new file mode 100644 index 0000000..fd485df --- /dev/null +++ b/node_modules/core-js/stable/instance/reduce-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/reduce-right'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/reduce.js b/node_modules/core-js/stable/instance/reduce.js new file mode 100644 index 0000000..02f72cb --- /dev/null +++ b/node_modules/core-js/stable/instance/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/repeat.js b/node_modules/core-js/stable/instance/repeat.js new file mode 100644 index 0000000..8105699 --- /dev/null +++ b/node_modules/core-js/stable/instance/repeat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/repeat'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/replace-all.js b/node_modules/core-js/stable/instance/replace-all.js new file mode 100644 index 0000000..a1fcbb0 --- /dev/null +++ b/node_modules/core-js/stable/instance/replace-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/replace-all'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/reverse.js b/node_modules/core-js/stable/instance/reverse.js new file mode 100644 index 0000000..622325a --- /dev/null +++ b/node_modules/core-js/stable/instance/reverse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/reverse'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/slice.js b/node_modules/core-js/stable/instance/slice.js new file mode 100644 index 0000000..d264907 --- /dev/null +++ b/node_modules/core-js/stable/instance/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/some.js b/node_modules/core-js/stable/instance/some.js new file mode 100644 index 0000000..4578f7f --- /dev/null +++ b/node_modules/core-js/stable/instance/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/some'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/sort.js b/node_modules/core-js/stable/instance/sort.js new file mode 100644 index 0000000..214fa8f --- /dev/null +++ b/node_modules/core-js/stable/instance/sort.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/sort'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/splice.js b/node_modules/core-js/stable/instance/splice.js new file mode 100644 index 0000000..9f97f89 --- /dev/null +++ b/node_modules/core-js/stable/instance/splice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/splice'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/starts-with.js b/node_modules/core-js/stable/instance/starts-with.js new file mode 100644 index 0000000..907985d --- /dev/null +++ b/node_modules/core-js/stable/instance/starts-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/starts-with'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/to-reversed.js b/node_modules/core-js/stable/instance/to-reversed.js new file mode 100644 index 0000000..7464291 --- /dev/null +++ b/node_modules/core-js/stable/instance/to-reversed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/to-reversed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/to-sorted.js b/node_modules/core-js/stable/instance/to-sorted.js new file mode 100644 index 0000000..d4d8ca7 --- /dev/null +++ b/node_modules/core-js/stable/instance/to-sorted.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/to-sorted'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/to-spliced.js b/node_modules/core-js/stable/instance/to-spliced.js new file mode 100644 index 0000000..68a32bd --- /dev/null +++ b/node_modules/core-js/stable/instance/to-spliced.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/to-spliced'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/to-well-formed.js b/node_modules/core-js/stable/instance/to-well-formed.js new file mode 100644 index 0000000..a3177e3 --- /dev/null +++ b/node_modules/core-js/stable/instance/to-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/to-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/trim-end.js b/node_modules/core-js/stable/instance/trim-end.js new file mode 100644 index 0000000..e16a862 --- /dev/null +++ b/node_modules/core-js/stable/instance/trim-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/trim-end'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/trim-left.js b/node_modules/core-js/stable/instance/trim-left.js new file mode 100644 index 0000000..3d60632 --- /dev/null +++ b/node_modules/core-js/stable/instance/trim-left.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/trim-left'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/trim-right.js b/node_modules/core-js/stable/instance/trim-right.js new file mode 100644 index 0000000..ad81d59 --- /dev/null +++ b/node_modules/core-js/stable/instance/trim-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/trim-right'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/trim-start.js b/node_modules/core-js/stable/instance/trim-start.js new file mode 100644 index 0000000..7877fbe --- /dev/null +++ b/node_modules/core-js/stable/instance/trim-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/trim-start'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/trim.js b/node_modules/core-js/stable/instance/trim.js new file mode 100644 index 0000000..008afe4 --- /dev/null +++ b/node_modules/core-js/stable/instance/trim.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/trim'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/unshift.js b/node_modules/core-js/stable/instance/unshift.js new file mode 100644 index 0000000..178cfc9 --- /dev/null +++ b/node_modules/core-js/stable/instance/unshift.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/unshift'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/instance/values.js b/node_modules/core-js/stable/instance/values.js new file mode 100644 index 0000000..0ef7685 --- /dev/null +++ b/node_modules/core-js/stable/instance/values.js @@ -0,0 +1,19 @@ +'use strict'; +require('../../modules/web.dom-collections.iterator'); +var classof = require('../../internals/classof'); +var hasOwn = require('../../internals/has-own-property'); +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/values'); + +var ArrayPrototype = Array.prototype; + +var DOMIterables = { + DOMTokenList: true, + NodeList: true +}; + +module.exports = function (it) { + var own = it.values; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.values) + || hasOwn(DOMIterables, classof(it)) ? method : own; +}; diff --git a/node_modules/core-js/stable/instance/with.js b/node_modules/core-js/stable/instance/with.js new file mode 100644 index 0000000..1994520 --- /dev/null +++ b/node_modules/core-js/stable/instance/with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/instance/with'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/is-iterable.js b/node_modules/core-js/stable/is-iterable.js new file mode 100644 index 0000000..8b5315a --- /dev/null +++ b/node_modules/core-js/stable/is-iterable.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../es/is-iterable'); +require('../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/json/index.js b/node_modules/core-js/stable/json/index.js new file mode 100644 index 0000000..8cd8376 --- /dev/null +++ b/node_modules/core-js/stable/json/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/json'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/json/stringify.js b/node_modules/core-js/stable/json/stringify.js new file mode 100644 index 0000000..ef87865 --- /dev/null +++ b/node_modules/core-js/stable/json/stringify.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/json/stringify'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/json/to-string-tag.js b/node_modules/core-js/stable/json/to-string-tag.js new file mode 100644 index 0000000..d2c991a --- /dev/null +++ b/node_modules/core-js/stable/json/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/json/to-string-tag'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/map/group-by.js b/node_modules/core-js/stable/map/group-by.js new file mode 100644 index 0000000..c7d22f0 --- /dev/null +++ b/node_modules/core-js/stable/map/group-by.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/map/group-by'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/map/index.js b/node_modules/core-js/stable/map/index.js new file mode 100644 index 0000000..e10edd6 --- /dev/null +++ b/node_modules/core-js/stable/map/index.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/map'); +require('../../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/acosh.js b/node_modules/core-js/stable/math/acosh.js new file mode 100644 index 0000000..a9206ca --- /dev/null +++ b/node_modules/core-js/stable/math/acosh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/acosh'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/asinh.js b/node_modules/core-js/stable/math/asinh.js new file mode 100644 index 0000000..c9fe44e --- /dev/null +++ b/node_modules/core-js/stable/math/asinh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/asinh'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/atanh.js b/node_modules/core-js/stable/math/atanh.js new file mode 100644 index 0000000..47e6b33 --- /dev/null +++ b/node_modules/core-js/stable/math/atanh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/atanh'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/cbrt.js b/node_modules/core-js/stable/math/cbrt.js new file mode 100644 index 0000000..ae5c1af --- /dev/null +++ b/node_modules/core-js/stable/math/cbrt.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/cbrt'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/clz32.js b/node_modules/core-js/stable/math/clz32.js new file mode 100644 index 0000000..d6add6b --- /dev/null +++ b/node_modules/core-js/stable/math/clz32.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/clz32'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/cosh.js b/node_modules/core-js/stable/math/cosh.js new file mode 100644 index 0000000..b54b366 --- /dev/null +++ b/node_modules/core-js/stable/math/cosh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/cosh'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/expm1.js b/node_modules/core-js/stable/math/expm1.js new file mode 100644 index 0000000..b3fdc6d --- /dev/null +++ b/node_modules/core-js/stable/math/expm1.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/expm1'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/fround.js b/node_modules/core-js/stable/math/fround.js new file mode 100644 index 0000000..8399b9e --- /dev/null +++ b/node_modules/core-js/stable/math/fround.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/fround'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/hypot.js b/node_modules/core-js/stable/math/hypot.js new file mode 100644 index 0000000..f26138c --- /dev/null +++ b/node_modules/core-js/stable/math/hypot.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/hypot'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/imul.js b/node_modules/core-js/stable/math/imul.js new file mode 100644 index 0000000..5302d3b --- /dev/null +++ b/node_modules/core-js/stable/math/imul.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/imul'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/index.js b/node_modules/core-js/stable/math/index.js new file mode 100644 index 0000000..370efca --- /dev/null +++ b/node_modules/core-js/stable/math/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/log10.js b/node_modules/core-js/stable/math/log10.js new file mode 100644 index 0000000..68e82b2 --- /dev/null +++ b/node_modules/core-js/stable/math/log10.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/log10'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/log1p.js b/node_modules/core-js/stable/math/log1p.js new file mode 100644 index 0000000..f24450a --- /dev/null +++ b/node_modules/core-js/stable/math/log1p.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/log1p'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/log2.js b/node_modules/core-js/stable/math/log2.js new file mode 100644 index 0000000..264193a --- /dev/null +++ b/node_modules/core-js/stable/math/log2.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/log2'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/sign.js b/node_modules/core-js/stable/math/sign.js new file mode 100644 index 0000000..7ff2658 --- /dev/null +++ b/node_modules/core-js/stable/math/sign.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/sign'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/sinh.js b/node_modules/core-js/stable/math/sinh.js new file mode 100644 index 0000000..9b426d4 --- /dev/null +++ b/node_modules/core-js/stable/math/sinh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/sinh'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/tanh.js b/node_modules/core-js/stable/math/tanh.js new file mode 100644 index 0000000..00dd5b7 --- /dev/null +++ b/node_modules/core-js/stable/math/tanh.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/tanh'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/to-string-tag.js b/node_modules/core-js/stable/math/to-string-tag.js new file mode 100644 index 0000000..89d59d3 --- /dev/null +++ b/node_modules/core-js/stable/math/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/to-string-tag'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/math/trunc.js b/node_modules/core-js/stable/math/trunc.js new file mode 100644 index 0000000..3fc8041 --- /dev/null +++ b/node_modules/core-js/stable/math/trunc.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/math/trunc'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/constructor.js b/node_modules/core-js/stable/number/constructor.js new file mode 100644 index 0000000..faf98bb --- /dev/null +++ b/node_modules/core-js/stable/number/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/epsilon.js b/node_modules/core-js/stable/number/epsilon.js new file mode 100644 index 0000000..70fc56c --- /dev/null +++ b/node_modules/core-js/stable/number/epsilon.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number/epsilon'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/index.js b/node_modules/core-js/stable/number/index.js new file mode 100644 index 0000000..c38e52d --- /dev/null +++ b/node_modules/core-js/stable/number/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/is-finite.js b/node_modules/core-js/stable/number/is-finite.js new file mode 100644 index 0000000..f2641df --- /dev/null +++ b/node_modules/core-js/stable/number/is-finite.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number/is-finite'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/is-integer.js b/node_modules/core-js/stable/number/is-integer.js new file mode 100644 index 0000000..2727681 --- /dev/null +++ b/node_modules/core-js/stable/number/is-integer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number/is-integer'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/is-nan.js b/node_modules/core-js/stable/number/is-nan.js new file mode 100644 index 0000000..a2755ce --- /dev/null +++ b/node_modules/core-js/stable/number/is-nan.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number/is-nan'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/is-safe-integer.js b/node_modules/core-js/stable/number/is-safe-integer.js new file mode 100644 index 0000000..e230ff7 --- /dev/null +++ b/node_modules/core-js/stable/number/is-safe-integer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number/is-safe-integer'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/max-safe-integer.js b/node_modules/core-js/stable/number/max-safe-integer.js new file mode 100644 index 0000000..3615661 --- /dev/null +++ b/node_modules/core-js/stable/number/max-safe-integer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number/max-safe-integer'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/min-safe-integer.js b/node_modules/core-js/stable/number/min-safe-integer.js new file mode 100644 index 0000000..3f0e6cf --- /dev/null +++ b/node_modules/core-js/stable/number/min-safe-integer.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number/min-safe-integer'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/parse-float.js b/node_modules/core-js/stable/number/parse-float.js new file mode 100644 index 0000000..8557796 --- /dev/null +++ b/node_modules/core-js/stable/number/parse-float.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number/parse-float'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/parse-int.js b/node_modules/core-js/stable/number/parse-int.js new file mode 100644 index 0000000..41f3f3a --- /dev/null +++ b/node_modules/core-js/stable/number/parse-int.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number/parse-int'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/to-exponential.js b/node_modules/core-js/stable/number/to-exponential.js new file mode 100644 index 0000000..e3a3d9f --- /dev/null +++ b/node_modules/core-js/stable/number/to-exponential.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number/to-exponential'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/to-fixed.js b/node_modules/core-js/stable/number/to-fixed.js new file mode 100644 index 0000000..dcf510b --- /dev/null +++ b/node_modules/core-js/stable/number/to-fixed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number/to-fixed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/to-precision.js b/node_modules/core-js/stable/number/to-precision.js new file mode 100644 index 0000000..7a7df4d --- /dev/null +++ b/node_modules/core-js/stable/number/to-precision.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/number/to-precision'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/virtual/index.js b/node_modules/core-js/stable/number/virtual/index.js new file mode 100644 index 0000000..66b1779 --- /dev/null +++ b/node_modules/core-js/stable/number/virtual/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/number/virtual'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/virtual/to-exponential.js b/node_modules/core-js/stable/number/virtual/to-exponential.js new file mode 100644 index 0000000..8fecaf2 --- /dev/null +++ b/node_modules/core-js/stable/number/virtual/to-exponential.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/number/virtual/to-exponential'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/virtual/to-fixed.js b/node_modules/core-js/stable/number/virtual/to-fixed.js new file mode 100644 index 0000000..3631cff --- /dev/null +++ b/node_modules/core-js/stable/number/virtual/to-fixed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/number/virtual/to-fixed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/number/virtual/to-precision.js b/node_modules/core-js/stable/number/virtual/to-precision.js new file mode 100644 index 0000000..59d30cd --- /dev/null +++ b/node_modules/core-js/stable/number/virtual/to-precision.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/number/virtual/to-precision'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/assign.js b/node_modules/core-js/stable/object/assign.js new file mode 100644 index 0000000..e180c76 --- /dev/null +++ b/node_modules/core-js/stable/object/assign.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/assign'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/create.js b/node_modules/core-js/stable/object/create.js new file mode 100644 index 0000000..6ca3097 --- /dev/null +++ b/node_modules/core-js/stable/object/create.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/create'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/define-getter.js b/node_modules/core-js/stable/object/define-getter.js new file mode 100644 index 0000000..aaee507 --- /dev/null +++ b/node_modules/core-js/stable/object/define-getter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/define-getter'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/define-properties.js b/node_modules/core-js/stable/object/define-properties.js new file mode 100644 index 0000000..6754c3b --- /dev/null +++ b/node_modules/core-js/stable/object/define-properties.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/define-properties'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/define-property.js b/node_modules/core-js/stable/object/define-property.js new file mode 100644 index 0000000..56f11d9 --- /dev/null +++ b/node_modules/core-js/stable/object/define-property.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/define-property'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/define-setter.js b/node_modules/core-js/stable/object/define-setter.js new file mode 100644 index 0000000..04e8c37 --- /dev/null +++ b/node_modules/core-js/stable/object/define-setter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/define-setter'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/entries.js b/node_modules/core-js/stable/object/entries.js new file mode 100644 index 0000000..5e98513 --- /dev/null +++ b/node_modules/core-js/stable/object/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/freeze.js b/node_modules/core-js/stable/object/freeze.js new file mode 100644 index 0000000..0fec058 --- /dev/null +++ b/node_modules/core-js/stable/object/freeze.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/freeze'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/from-entries.js b/node_modules/core-js/stable/object/from-entries.js new file mode 100644 index 0000000..633b68c --- /dev/null +++ b/node_modules/core-js/stable/object/from-entries.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/object/from-entries'); +require('../../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/get-own-property-descriptor.js b/node_modules/core-js/stable/object/get-own-property-descriptor.js new file mode 100644 index 0000000..49e9903 --- /dev/null +++ b/node_modules/core-js/stable/object/get-own-property-descriptor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/get-own-property-descriptor'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/get-own-property-descriptors.js b/node_modules/core-js/stable/object/get-own-property-descriptors.js new file mode 100644 index 0000000..081f759 --- /dev/null +++ b/node_modules/core-js/stable/object/get-own-property-descriptors.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/get-own-property-descriptors'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/get-own-property-names.js b/node_modules/core-js/stable/object/get-own-property-names.js new file mode 100644 index 0000000..fcec1fd --- /dev/null +++ b/node_modules/core-js/stable/object/get-own-property-names.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/get-own-property-names'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/get-own-property-symbols.js b/node_modules/core-js/stable/object/get-own-property-symbols.js new file mode 100644 index 0000000..1585fdc --- /dev/null +++ b/node_modules/core-js/stable/object/get-own-property-symbols.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/get-own-property-symbols'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/get-prototype-of.js b/node_modules/core-js/stable/object/get-prototype-of.js new file mode 100644 index 0000000..46bfd2d --- /dev/null +++ b/node_modules/core-js/stable/object/get-prototype-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/get-prototype-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/group-by.js b/node_modules/core-js/stable/object/group-by.js new file mode 100644 index 0000000..c6163a5 --- /dev/null +++ b/node_modules/core-js/stable/object/group-by.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/group-by'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/has-own.js b/node_modules/core-js/stable/object/has-own.js new file mode 100644 index 0000000..dd2002d --- /dev/null +++ b/node_modules/core-js/stable/object/has-own.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/has-own'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/index.js b/node_modules/core-js/stable/object/index.js new file mode 100644 index 0000000..bd849dc --- /dev/null +++ b/node_modules/core-js/stable/object/index.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/object'); +require('../../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/is-extensible.js b/node_modules/core-js/stable/object/is-extensible.js new file mode 100644 index 0000000..f7de1a4 --- /dev/null +++ b/node_modules/core-js/stable/object/is-extensible.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/is-extensible'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/is-frozen.js b/node_modules/core-js/stable/object/is-frozen.js new file mode 100644 index 0000000..39a4493 --- /dev/null +++ b/node_modules/core-js/stable/object/is-frozen.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/is-frozen'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/is-sealed.js b/node_modules/core-js/stable/object/is-sealed.js new file mode 100644 index 0000000..3be1ca9 --- /dev/null +++ b/node_modules/core-js/stable/object/is-sealed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/is-sealed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/is.js b/node_modules/core-js/stable/object/is.js new file mode 100644 index 0000000..5aebdf8 --- /dev/null +++ b/node_modules/core-js/stable/object/is.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/is'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/keys.js b/node_modules/core-js/stable/object/keys.js new file mode 100644 index 0000000..74e942e --- /dev/null +++ b/node_modules/core-js/stable/object/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/lookup-getter.js b/node_modules/core-js/stable/object/lookup-getter.js new file mode 100644 index 0000000..ae21d75 --- /dev/null +++ b/node_modules/core-js/stable/object/lookup-getter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/lookup-getter'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/lookup-setter.js b/node_modules/core-js/stable/object/lookup-setter.js new file mode 100644 index 0000000..c015585 --- /dev/null +++ b/node_modules/core-js/stable/object/lookup-setter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/lookup-setter'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/prevent-extensions.js b/node_modules/core-js/stable/object/prevent-extensions.js new file mode 100644 index 0000000..a673c7c --- /dev/null +++ b/node_modules/core-js/stable/object/prevent-extensions.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/prevent-extensions'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/proto.js b/node_modules/core-js/stable/object/proto.js new file mode 100644 index 0000000..8c9f1b8 --- /dev/null +++ b/node_modules/core-js/stable/object/proto.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/proto'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/seal.js b/node_modules/core-js/stable/object/seal.js new file mode 100644 index 0000000..87755d3 --- /dev/null +++ b/node_modules/core-js/stable/object/seal.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/seal'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/set-prototype-of.js b/node_modules/core-js/stable/object/set-prototype-of.js new file mode 100644 index 0000000..cb5a173 --- /dev/null +++ b/node_modules/core-js/stable/object/set-prototype-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/set-prototype-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/to-string.js b/node_modules/core-js/stable/object/to-string.js new file mode 100644 index 0000000..a8d0abd --- /dev/null +++ b/node_modules/core-js/stable/object/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/object/values.js b/node_modules/core-js/stable/object/values.js new file mode 100644 index 0000000..3052e58 --- /dev/null +++ b/node_modules/core-js/stable/object/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/object/values'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/parse-float.js b/node_modules/core-js/stable/parse-float.js new file mode 100644 index 0000000..2b0eae0 --- /dev/null +++ b/node_modules/core-js/stable/parse-float.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../es/parse-float'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/parse-int.js b/node_modules/core-js/stable/parse-int.js new file mode 100644 index 0000000..d8c07fd --- /dev/null +++ b/node_modules/core-js/stable/parse-int.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../es/parse-int'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/promise/all-settled.js b/node_modules/core-js/stable/promise/all-settled.js new file mode 100644 index 0000000..d1e211b --- /dev/null +++ b/node_modules/core-js/stable/promise/all-settled.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/promise/all-settled'); +require('../../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/promise/any.js b/node_modules/core-js/stable/promise/any.js new file mode 100644 index 0000000..63482c8 --- /dev/null +++ b/node_modules/core-js/stable/promise/any.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/promise/any'); +require('../../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/promise/finally.js b/node_modules/core-js/stable/promise/finally.js new file mode 100644 index 0000000..25a5f2c --- /dev/null +++ b/node_modules/core-js/stable/promise/finally.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/promise/finally'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/promise/index.js b/node_modules/core-js/stable/promise/index.js new file mode 100644 index 0000000..cc69685 --- /dev/null +++ b/node_modules/core-js/stable/promise/index.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/promise'); +require('../../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/promise/with-resolvers.js b/node_modules/core-js/stable/promise/with-resolvers.js new file mode 100644 index 0000000..5ea677d --- /dev/null +++ b/node_modules/core-js/stable/promise/with-resolvers.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/promise/with-resolvers'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/queue-microtask.js b/node_modules/core-js/stable/queue-microtask.js new file mode 100644 index 0000000..9d07e2e --- /dev/null +++ b/node_modules/core-js/stable/queue-microtask.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../web/queue-microtask'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/apply.js b/node_modules/core-js/stable/reflect/apply.js new file mode 100644 index 0000000..94994e3 --- /dev/null +++ b/node_modules/core-js/stable/reflect/apply.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect/apply'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/construct.js b/node_modules/core-js/stable/reflect/construct.js new file mode 100644 index 0000000..72f669d --- /dev/null +++ b/node_modules/core-js/stable/reflect/construct.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect/construct'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/define-property.js b/node_modules/core-js/stable/reflect/define-property.js new file mode 100644 index 0000000..f98593a --- /dev/null +++ b/node_modules/core-js/stable/reflect/define-property.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect/define-property'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/delete-property.js b/node_modules/core-js/stable/reflect/delete-property.js new file mode 100644 index 0000000..1bd3f86 --- /dev/null +++ b/node_modules/core-js/stable/reflect/delete-property.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect/delete-property'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/get-own-property-descriptor.js b/node_modules/core-js/stable/reflect/get-own-property-descriptor.js new file mode 100644 index 0000000..96cd6d9 --- /dev/null +++ b/node_modules/core-js/stable/reflect/get-own-property-descriptor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect/get-own-property-descriptor'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/get-prototype-of.js b/node_modules/core-js/stable/reflect/get-prototype-of.js new file mode 100644 index 0000000..ae5fa57 --- /dev/null +++ b/node_modules/core-js/stable/reflect/get-prototype-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect/get-prototype-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/get.js b/node_modules/core-js/stable/reflect/get.js new file mode 100644 index 0000000..a342e12 --- /dev/null +++ b/node_modules/core-js/stable/reflect/get.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect/get'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/has.js b/node_modules/core-js/stable/reflect/has.js new file mode 100644 index 0000000..fcbf333 --- /dev/null +++ b/node_modules/core-js/stable/reflect/has.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect/has'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/index.js b/node_modules/core-js/stable/reflect/index.js new file mode 100644 index 0000000..c8cb648 --- /dev/null +++ b/node_modules/core-js/stable/reflect/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/is-extensible.js b/node_modules/core-js/stable/reflect/is-extensible.js new file mode 100644 index 0000000..3c76f43 --- /dev/null +++ b/node_modules/core-js/stable/reflect/is-extensible.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect/is-extensible'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/own-keys.js b/node_modules/core-js/stable/reflect/own-keys.js new file mode 100644 index 0000000..3c01f78 --- /dev/null +++ b/node_modules/core-js/stable/reflect/own-keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect/own-keys'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/prevent-extensions.js b/node_modules/core-js/stable/reflect/prevent-extensions.js new file mode 100644 index 0000000..9869cc8 --- /dev/null +++ b/node_modules/core-js/stable/reflect/prevent-extensions.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect/prevent-extensions'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/set-prototype-of.js b/node_modules/core-js/stable/reflect/set-prototype-of.js new file mode 100644 index 0000000..3db7ab7 --- /dev/null +++ b/node_modules/core-js/stable/reflect/set-prototype-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect/set-prototype-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/set.js b/node_modules/core-js/stable/reflect/set.js new file mode 100644 index 0000000..894287b --- /dev/null +++ b/node_modules/core-js/stable/reflect/set.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/reflect/set'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/reflect/to-string-tag.js b/node_modules/core-js/stable/reflect/to-string-tag.js new file mode 100644 index 0000000..3908aff --- /dev/null +++ b/node_modules/core-js/stable/reflect/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +require('../../modules/es.reflect.to-string-tag'); + +module.exports = 'Reflect'; diff --git a/node_modules/core-js/stable/regexp/constructor.js b/node_modules/core-js/stable/regexp/constructor.js new file mode 100644 index 0000000..fc090d0 --- /dev/null +++ b/node_modules/core-js/stable/regexp/constructor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/regexp/constructor'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/regexp/dot-all.js b/node_modules/core-js/stable/regexp/dot-all.js new file mode 100644 index 0000000..ea55b60 --- /dev/null +++ b/node_modules/core-js/stable/regexp/dot-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/regexp/dot-all'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/regexp/flags.js b/node_modules/core-js/stable/regexp/flags.js new file mode 100644 index 0000000..780fac2 --- /dev/null +++ b/node_modules/core-js/stable/regexp/flags.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/regexp/flags'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/regexp/index.js b/node_modules/core-js/stable/regexp/index.js new file mode 100644 index 0000000..72e616c --- /dev/null +++ b/node_modules/core-js/stable/regexp/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/regexp'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/regexp/match.js b/node_modules/core-js/stable/regexp/match.js new file mode 100644 index 0000000..f7d5d0d --- /dev/null +++ b/node_modules/core-js/stable/regexp/match.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/regexp/match'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/regexp/replace.js b/node_modules/core-js/stable/regexp/replace.js new file mode 100644 index 0000000..0775092 --- /dev/null +++ b/node_modules/core-js/stable/regexp/replace.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/regexp/replace'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/regexp/search.js b/node_modules/core-js/stable/regexp/search.js new file mode 100644 index 0000000..f4fb6b7 --- /dev/null +++ b/node_modules/core-js/stable/regexp/search.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/regexp/search'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/regexp/split.js b/node_modules/core-js/stable/regexp/split.js new file mode 100644 index 0000000..4dda86a --- /dev/null +++ b/node_modules/core-js/stable/regexp/split.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/regexp/split'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/regexp/sticky.js b/node_modules/core-js/stable/regexp/sticky.js new file mode 100644 index 0000000..7897bd6 --- /dev/null +++ b/node_modules/core-js/stable/regexp/sticky.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/regexp/sticky'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/regexp/test.js b/node_modules/core-js/stable/regexp/test.js new file mode 100644 index 0000000..2fbef7b --- /dev/null +++ b/node_modules/core-js/stable/regexp/test.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/regexp/test'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/regexp/to-string.js b/node_modules/core-js/stable/regexp/to-string.js new file mode 100644 index 0000000..edf2c0e --- /dev/null +++ b/node_modules/core-js/stable/regexp/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/regexp/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/self.js b/node_modules/core-js/stable/self.js new file mode 100644 index 0000000..b4850ee --- /dev/null +++ b/node_modules/core-js/stable/self.js @@ -0,0 +1,5 @@ +'use strict'; +require('../modules/web.self'); +var path = require('../internals/path'); + +module.exports = path.self; diff --git a/node_modules/core-js/stable/set-immediate.js b/node_modules/core-js/stable/set-immediate.js new file mode 100644 index 0000000..379b982 --- /dev/null +++ b/node_modules/core-js/stable/set-immediate.js @@ -0,0 +1,5 @@ +'use strict'; +require('../modules/web.immediate'); +var path = require('../internals/path'); + +module.exports = path.setImmediate; diff --git a/node_modules/core-js/stable/set-interval.js b/node_modules/core-js/stable/set-interval.js new file mode 100644 index 0000000..b49aca5 --- /dev/null +++ b/node_modules/core-js/stable/set-interval.js @@ -0,0 +1,5 @@ +'use strict'; +require('../modules/web.timers'); +var path = require('../internals/path'); + +module.exports = path.setInterval; diff --git a/node_modules/core-js/stable/set-timeout.js b/node_modules/core-js/stable/set-timeout.js new file mode 100644 index 0000000..e178923 --- /dev/null +++ b/node_modules/core-js/stable/set-timeout.js @@ -0,0 +1,5 @@ +'use strict'; +require('../modules/web.timers'); +var path = require('../internals/path'); + +module.exports = path.setTimeout; diff --git a/node_modules/core-js/stable/set/difference.js b/node_modules/core-js/stable/set/difference.js new file mode 100644 index 0000000..c988091 --- /dev/null +++ b/node_modules/core-js/stable/set/difference.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/set/difference'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/set/index.js b/node_modules/core-js/stable/set/index.js new file mode 100644 index 0000000..b7e35e4 --- /dev/null +++ b/node_modules/core-js/stable/set/index.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/set'); +require('../../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/set/intersection.js b/node_modules/core-js/stable/set/intersection.js new file mode 100644 index 0000000..5791c5b --- /dev/null +++ b/node_modules/core-js/stable/set/intersection.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/set/intersection'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/set/is-disjoint-from.js b/node_modules/core-js/stable/set/is-disjoint-from.js new file mode 100644 index 0000000..fa25662 --- /dev/null +++ b/node_modules/core-js/stable/set/is-disjoint-from.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/set/is-disjoint-from'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/set/is-subset-of.js b/node_modules/core-js/stable/set/is-subset-of.js new file mode 100644 index 0000000..3983499 --- /dev/null +++ b/node_modules/core-js/stable/set/is-subset-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/set/is-subset-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/set/is-superset-of.js b/node_modules/core-js/stable/set/is-superset-of.js new file mode 100644 index 0000000..c0cddad --- /dev/null +++ b/node_modules/core-js/stable/set/is-superset-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/set/is-superset-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/set/symmetric-difference.js b/node_modules/core-js/stable/set/symmetric-difference.js new file mode 100644 index 0000000..ab6b27b --- /dev/null +++ b/node_modules/core-js/stable/set/symmetric-difference.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/set/symmetric-difference'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/set/union.js b/node_modules/core-js/stable/set/union.js new file mode 100644 index 0000000..5d7ece2 --- /dev/null +++ b/node_modules/core-js/stable/set/union.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/set/union'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/anchor.js b/node_modules/core-js/stable/string/anchor.js new file mode 100644 index 0000000..a17713c --- /dev/null +++ b/node_modules/core-js/stable/string/anchor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/anchor'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/at.js b/node_modules/core-js/stable/string/at.js new file mode 100644 index 0000000..9caf17d --- /dev/null +++ b/node_modules/core-js/stable/string/at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/at'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/big.js b/node_modules/core-js/stable/string/big.js new file mode 100644 index 0000000..9a0c1c6 --- /dev/null +++ b/node_modules/core-js/stable/string/big.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/big'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/blink.js b/node_modules/core-js/stable/string/blink.js new file mode 100644 index 0000000..d2b74b3 --- /dev/null +++ b/node_modules/core-js/stable/string/blink.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/blink'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/bold.js b/node_modules/core-js/stable/string/bold.js new file mode 100644 index 0000000..e2ca678 --- /dev/null +++ b/node_modules/core-js/stable/string/bold.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/bold'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/code-point-at.js b/node_modules/core-js/stable/string/code-point-at.js new file mode 100644 index 0000000..8c2d5bb --- /dev/null +++ b/node_modules/core-js/stable/string/code-point-at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/code-point-at'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/ends-with.js b/node_modules/core-js/stable/string/ends-with.js new file mode 100644 index 0000000..f1c1778 --- /dev/null +++ b/node_modules/core-js/stable/string/ends-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/ends-with'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/fixed.js b/node_modules/core-js/stable/string/fixed.js new file mode 100644 index 0000000..b07f2d3 --- /dev/null +++ b/node_modules/core-js/stable/string/fixed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/fixed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/fontcolor.js b/node_modules/core-js/stable/string/fontcolor.js new file mode 100644 index 0000000..781fd1e --- /dev/null +++ b/node_modules/core-js/stable/string/fontcolor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/fontcolor'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/fontsize.js b/node_modules/core-js/stable/string/fontsize.js new file mode 100644 index 0000000..a5e976a --- /dev/null +++ b/node_modules/core-js/stable/string/fontsize.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/fontsize'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/from-code-point.js b/node_modules/core-js/stable/string/from-code-point.js new file mode 100644 index 0000000..3b51dff --- /dev/null +++ b/node_modules/core-js/stable/string/from-code-point.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/from-code-point'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/includes.js b/node_modules/core-js/stable/string/includes.js new file mode 100644 index 0000000..88b14c5 --- /dev/null +++ b/node_modules/core-js/stable/string/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/index.js b/node_modules/core-js/stable/string/index.js new file mode 100644 index 0000000..af1bcb2 --- /dev/null +++ b/node_modules/core-js/stable/string/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/is-well-formed.js b/node_modules/core-js/stable/string/is-well-formed.js new file mode 100644 index 0000000..35ba752 --- /dev/null +++ b/node_modules/core-js/stable/string/is-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/is-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/italics.js b/node_modules/core-js/stable/string/italics.js new file mode 100644 index 0000000..e3c669f --- /dev/null +++ b/node_modules/core-js/stable/string/italics.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/italics'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/iterator.js b/node_modules/core-js/stable/string/iterator.js new file mode 100644 index 0000000..1fcf858 --- /dev/null +++ b/node_modules/core-js/stable/string/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/link.js b/node_modules/core-js/stable/string/link.js new file mode 100644 index 0000000..920ce95 --- /dev/null +++ b/node_modules/core-js/stable/string/link.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/link'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/match-all.js b/node_modules/core-js/stable/string/match-all.js new file mode 100644 index 0000000..74e2588 --- /dev/null +++ b/node_modules/core-js/stable/string/match-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/match-all'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/match.js b/node_modules/core-js/stable/string/match.js new file mode 100644 index 0000000..d0c495a --- /dev/null +++ b/node_modules/core-js/stable/string/match.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/match'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/pad-end.js b/node_modules/core-js/stable/string/pad-end.js new file mode 100644 index 0000000..b0b9123 --- /dev/null +++ b/node_modules/core-js/stable/string/pad-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/pad-end'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/pad-start.js b/node_modules/core-js/stable/string/pad-start.js new file mode 100644 index 0000000..cb83bd5 --- /dev/null +++ b/node_modules/core-js/stable/string/pad-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/pad-start'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/raw.js b/node_modules/core-js/stable/string/raw.js new file mode 100644 index 0000000..dbba130 --- /dev/null +++ b/node_modules/core-js/stable/string/raw.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/raw'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/repeat.js b/node_modules/core-js/stable/string/repeat.js new file mode 100644 index 0000000..e1aedfc --- /dev/null +++ b/node_modules/core-js/stable/string/repeat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/repeat'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/replace-all.js b/node_modules/core-js/stable/string/replace-all.js new file mode 100644 index 0000000..8885550 --- /dev/null +++ b/node_modules/core-js/stable/string/replace-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/replace-all'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/replace.js b/node_modules/core-js/stable/string/replace.js new file mode 100644 index 0000000..d30fbeb --- /dev/null +++ b/node_modules/core-js/stable/string/replace.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/replace'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/search.js b/node_modules/core-js/stable/string/search.js new file mode 100644 index 0000000..fab8643 --- /dev/null +++ b/node_modules/core-js/stable/string/search.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/search'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/small.js b/node_modules/core-js/stable/string/small.js new file mode 100644 index 0000000..9ce14b6 --- /dev/null +++ b/node_modules/core-js/stable/string/small.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/small'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/split.js b/node_modules/core-js/stable/string/split.js new file mode 100644 index 0000000..82e7ce2 --- /dev/null +++ b/node_modules/core-js/stable/string/split.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/split'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/starts-with.js b/node_modules/core-js/stable/string/starts-with.js new file mode 100644 index 0000000..78c1716 --- /dev/null +++ b/node_modules/core-js/stable/string/starts-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/starts-with'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/strike.js b/node_modules/core-js/stable/string/strike.js new file mode 100644 index 0000000..1bb8b81 --- /dev/null +++ b/node_modules/core-js/stable/string/strike.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/strike'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/sub.js b/node_modules/core-js/stable/string/sub.js new file mode 100644 index 0000000..12a57a3 --- /dev/null +++ b/node_modules/core-js/stable/string/sub.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/sub'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/substr.js b/node_modules/core-js/stable/string/substr.js new file mode 100644 index 0000000..7c7fe2d --- /dev/null +++ b/node_modules/core-js/stable/string/substr.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/substr'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/sup.js b/node_modules/core-js/stable/string/sup.js new file mode 100644 index 0000000..e68750a --- /dev/null +++ b/node_modules/core-js/stable/string/sup.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/sup'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/to-well-formed.js b/node_modules/core-js/stable/string/to-well-formed.js new file mode 100644 index 0000000..6193ba7 --- /dev/null +++ b/node_modules/core-js/stable/string/to-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/to-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/trim-end.js b/node_modules/core-js/stable/string/trim-end.js new file mode 100644 index 0000000..1088705 --- /dev/null +++ b/node_modules/core-js/stable/string/trim-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/trim-end'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/trim-left.js b/node_modules/core-js/stable/string/trim-left.js new file mode 100644 index 0000000..1909d02 --- /dev/null +++ b/node_modules/core-js/stable/string/trim-left.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/trim-left'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/trim-right.js b/node_modules/core-js/stable/string/trim-right.js new file mode 100644 index 0000000..37aa068 --- /dev/null +++ b/node_modules/core-js/stable/string/trim-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/trim-right'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/trim-start.js b/node_modules/core-js/stable/string/trim-start.js new file mode 100644 index 0000000..47b5d42 --- /dev/null +++ b/node_modules/core-js/stable/string/trim-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/trim-start'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/trim.js b/node_modules/core-js/stable/string/trim.js new file mode 100644 index 0000000..6db2e8f --- /dev/null +++ b/node_modules/core-js/stable/string/trim.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/string/trim'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/anchor.js b/node_modules/core-js/stable/string/virtual/anchor.js new file mode 100644 index 0000000..867aaa1 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/anchor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/anchor'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/at.js b/node_modules/core-js/stable/string/virtual/at.js new file mode 100644 index 0000000..f0b8c65 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/at'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/big.js b/node_modules/core-js/stable/string/virtual/big.js new file mode 100644 index 0000000..1874027 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/big.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/big'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/blink.js b/node_modules/core-js/stable/string/virtual/blink.js new file mode 100644 index 0000000..acd2a76 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/blink.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/blink'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/bold.js b/node_modules/core-js/stable/string/virtual/bold.js new file mode 100644 index 0000000..e86a6dd --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/bold.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/bold'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/code-point-at.js b/node_modules/core-js/stable/string/virtual/code-point-at.js new file mode 100644 index 0000000..af25c5b --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/code-point-at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/code-point-at'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/ends-with.js b/node_modules/core-js/stable/string/virtual/ends-with.js new file mode 100644 index 0000000..1410d8d --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/ends-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/ends-with'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/fixed.js b/node_modules/core-js/stable/string/virtual/fixed.js new file mode 100644 index 0000000..747f4a2 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/fixed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/fixed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/fontcolor.js b/node_modules/core-js/stable/string/virtual/fontcolor.js new file mode 100644 index 0000000..b34881a --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/fontcolor.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/fontcolor'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/fontsize.js b/node_modules/core-js/stable/string/virtual/fontsize.js new file mode 100644 index 0000000..a8de306 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/fontsize.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/fontsize'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/includes.js b/node_modules/core-js/stable/string/virtual/includes.js new file mode 100644 index 0000000..82d2a8f --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/index.js b/node_modules/core-js/stable/string/virtual/index.js new file mode 100644 index 0000000..17e0666 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/is-well-formed.js b/node_modules/core-js/stable/string/virtual/is-well-formed.js new file mode 100644 index 0000000..ca3313f --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/is-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/is-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/italics.js b/node_modules/core-js/stable/string/virtual/italics.js new file mode 100644 index 0000000..9652df0 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/italics.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/italics'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/iterator.js b/node_modules/core-js/stable/string/virtual/iterator.js new file mode 100644 index 0000000..56dab13 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/link.js b/node_modules/core-js/stable/string/virtual/link.js new file mode 100644 index 0000000..133c425 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/link.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/link'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/match-all.js b/node_modules/core-js/stable/string/virtual/match-all.js new file mode 100644 index 0000000..7211492 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/match-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/match-all'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/pad-end.js b/node_modules/core-js/stable/string/virtual/pad-end.js new file mode 100644 index 0000000..bef7418 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/pad-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/pad-end'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/pad-start.js b/node_modules/core-js/stable/string/virtual/pad-start.js new file mode 100644 index 0000000..1b112d5 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/pad-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/pad-start'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/repeat.js b/node_modules/core-js/stable/string/virtual/repeat.js new file mode 100644 index 0000000..3c5bf61 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/repeat.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/repeat'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/replace-all.js b/node_modules/core-js/stable/string/virtual/replace-all.js new file mode 100644 index 0000000..0c8be0d --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/replace-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/replace-all'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/small.js b/node_modules/core-js/stable/string/virtual/small.js new file mode 100644 index 0000000..34c5020 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/small.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/small'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/starts-with.js b/node_modules/core-js/stable/string/virtual/starts-with.js new file mode 100644 index 0000000..81bd97d --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/starts-with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/starts-with'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/strike.js b/node_modules/core-js/stable/string/virtual/strike.js new file mode 100644 index 0000000..2238ef5 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/strike.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/strike'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/sub.js b/node_modules/core-js/stable/string/virtual/sub.js new file mode 100644 index 0000000..b6f2a5a --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/sub.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/sub'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/substr.js b/node_modules/core-js/stable/string/virtual/substr.js new file mode 100644 index 0000000..a3dafd3 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/substr.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/substr'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/sup.js b/node_modules/core-js/stable/string/virtual/sup.js new file mode 100644 index 0000000..9968018 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/sup.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/sup'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/to-well-formed.js b/node_modules/core-js/stable/string/virtual/to-well-formed.js new file mode 100644 index 0000000..31f54f7 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/to-well-formed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/to-well-formed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/trim-end.js b/node_modules/core-js/stable/string/virtual/trim-end.js new file mode 100644 index 0000000..3f3d22c --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/trim-end.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/trim-end'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/trim-left.js b/node_modules/core-js/stable/string/virtual/trim-left.js new file mode 100644 index 0000000..b44db43 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/trim-left.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/trim-left'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/trim-right.js b/node_modules/core-js/stable/string/virtual/trim-right.js new file mode 100644 index 0000000..d6ed8fe --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/trim-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/trim-right'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/trim-start.js b/node_modules/core-js/stable/string/virtual/trim-start.js new file mode 100644 index 0000000..869c237 --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/trim-start.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/trim-start'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/string/virtual/trim.js b/node_modules/core-js/stable/string/virtual/trim.js new file mode 100644 index 0000000..218155a --- /dev/null +++ b/node_modules/core-js/stable/string/virtual/trim.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../../es/string/virtual/trim'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/structured-clone.js b/node_modules/core-js/stable/structured-clone.js new file mode 100644 index 0000000..3c877c0 --- /dev/null +++ b/node_modules/core-js/stable/structured-clone.js @@ -0,0 +1,14 @@ +'use strict'; +require('../modules/es.error.to-string'); +require('../modules/es.array.iterator'); +require('../modules/es.object.keys'); +require('../modules/es.object.to-string'); +require('../modules/es.map'); +require('../modules/es.set'); +require('../modules/web.dom-exception.constructor'); +require('../modules/web.dom-exception.stack'); +require('../modules/web.dom-exception.to-string-tag'); +require('../modules/web.structured-clone'); +var path = require('../internals/path'); + +module.exports = path.structuredClone; diff --git a/node_modules/core-js/stable/symbol/async-iterator.js b/node_modules/core-js/stable/symbol/async-iterator.js new file mode 100644 index 0000000..0b51219 --- /dev/null +++ b/node_modules/core-js/stable/symbol/async-iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/async-iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/description.js b/node_modules/core-js/stable/symbol/description.js new file mode 100644 index 0000000..299f557 --- /dev/null +++ b/node_modules/core-js/stable/symbol/description.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/description'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/for.js b/node_modules/core-js/stable/symbol/for.js new file mode 100644 index 0000000..ce0ec94 --- /dev/null +++ b/node_modules/core-js/stable/symbol/for.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/for'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/has-instance.js b/node_modules/core-js/stable/symbol/has-instance.js new file mode 100644 index 0000000..4f3b9fd --- /dev/null +++ b/node_modules/core-js/stable/symbol/has-instance.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/has-instance'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/index.js b/node_modules/core-js/stable/symbol/index.js new file mode 100644 index 0000000..297807a --- /dev/null +++ b/node_modules/core-js/stable/symbol/index.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/symbol'); +require('../../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/is-concat-spreadable.js b/node_modules/core-js/stable/symbol/is-concat-spreadable.js new file mode 100644 index 0000000..342f839 --- /dev/null +++ b/node_modules/core-js/stable/symbol/is-concat-spreadable.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/is-concat-spreadable'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/iterator.js b/node_modules/core-js/stable/symbol/iterator.js new file mode 100644 index 0000000..61fdcd1 --- /dev/null +++ b/node_modules/core-js/stable/symbol/iterator.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/symbol/iterator'); +require('../../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/key-for.js b/node_modules/core-js/stable/symbol/key-for.js new file mode 100644 index 0000000..8c0a245 --- /dev/null +++ b/node_modules/core-js/stable/symbol/key-for.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/key-for'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/match-all.js b/node_modules/core-js/stable/symbol/match-all.js new file mode 100644 index 0000000..2b3e792 --- /dev/null +++ b/node_modules/core-js/stable/symbol/match-all.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/match-all'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/match.js b/node_modules/core-js/stable/symbol/match.js new file mode 100644 index 0000000..5771ecc --- /dev/null +++ b/node_modules/core-js/stable/symbol/match.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/match'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/replace.js b/node_modules/core-js/stable/symbol/replace.js new file mode 100644 index 0000000..32de402 --- /dev/null +++ b/node_modules/core-js/stable/symbol/replace.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/replace'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/search.js b/node_modules/core-js/stable/symbol/search.js new file mode 100644 index 0000000..33f7af2 --- /dev/null +++ b/node_modules/core-js/stable/symbol/search.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/search'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/species.js b/node_modules/core-js/stable/symbol/species.js new file mode 100644 index 0000000..1993f38 --- /dev/null +++ b/node_modules/core-js/stable/symbol/species.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/species'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/split.js b/node_modules/core-js/stable/symbol/split.js new file mode 100644 index 0000000..36591f5 --- /dev/null +++ b/node_modules/core-js/stable/symbol/split.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/split'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/to-primitive.js b/node_modules/core-js/stable/symbol/to-primitive.js new file mode 100644 index 0000000..0ff90d1 --- /dev/null +++ b/node_modules/core-js/stable/symbol/to-primitive.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/to-primitive'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/to-string-tag.js b/node_modules/core-js/stable/symbol/to-string-tag.js new file mode 100644 index 0000000..07743c3 --- /dev/null +++ b/node_modules/core-js/stable/symbol/to-string-tag.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/to-string-tag'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/symbol/unscopables.js b/node_modules/core-js/stable/symbol/unscopables.js new file mode 100644 index 0000000..a9a1e9b --- /dev/null +++ b/node_modules/core-js/stable/symbol/unscopables.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/symbol/unscopables'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/at.js b/node_modules/core-js/stable/typed-array/at.js new file mode 100644 index 0000000..c37f9a5 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/at.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/at'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/copy-within.js b/node_modules/core-js/stable/typed-array/copy-within.js new file mode 100644 index 0000000..5475894 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/copy-within.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/copy-within'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/entries.js b/node_modules/core-js/stable/typed-array/entries.js new file mode 100644 index 0000000..5840f90 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/entries.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/entries'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/every.js b/node_modules/core-js/stable/typed-array/every.js new file mode 100644 index 0000000..6e35c97 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/every.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/every'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/fill.js b/node_modules/core-js/stable/typed-array/fill.js new file mode 100644 index 0000000..ae1b3b7 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/fill.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/fill'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/filter.js b/node_modules/core-js/stable/typed-array/filter.js new file mode 100644 index 0000000..bd128d3 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/filter.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/filter'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/find-index.js b/node_modules/core-js/stable/typed-array/find-index.js new file mode 100644 index 0000000..d5a65c9 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/find-index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/find-index'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/find-last-index.js b/node_modules/core-js/stable/typed-array/find-last-index.js new file mode 100644 index 0000000..8c05205 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/find-last-index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../es/typed-array/find-last-index'); diff --git a/node_modules/core-js/stable/typed-array/find-last.js b/node_modules/core-js/stable/typed-array/find-last.js new file mode 100644 index 0000000..2ed4274 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/find-last.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('../../es/typed-array/find-last'); diff --git a/node_modules/core-js/stable/typed-array/find.js b/node_modules/core-js/stable/typed-array/find.js new file mode 100644 index 0000000..f0f958b --- /dev/null +++ b/node_modules/core-js/stable/typed-array/find.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/find'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/float32-array.js b/node_modules/core-js/stable/typed-array/float32-array.js new file mode 100644 index 0000000..8452ba9 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/float32-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/typed-array/float32-array'); +require('../../stable/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/float64-array.js b/node_modules/core-js/stable/typed-array/float64-array.js new file mode 100644 index 0000000..311dd18 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/float64-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/typed-array/float64-array'); +require('../../stable/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/for-each.js b/node_modules/core-js/stable/typed-array/for-each.js new file mode 100644 index 0000000..4461c21 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/for-each.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/for-each'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/from.js b/node_modules/core-js/stable/typed-array/from.js new file mode 100644 index 0000000..a4ed37e --- /dev/null +++ b/node_modules/core-js/stable/typed-array/from.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/from'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/includes.js b/node_modules/core-js/stable/typed-array/includes.js new file mode 100644 index 0000000..4725ca7 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/includes.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/includes'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/index-of.js b/node_modules/core-js/stable/typed-array/index-of.js new file mode 100644 index 0000000..0b8a574 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/index.js b/node_modules/core-js/stable/typed-array/index.js new file mode 100644 index 0000000..8f49ed3 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/int16-array.js b/node_modules/core-js/stable/typed-array/int16-array.js new file mode 100644 index 0000000..5bab609 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/int16-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/typed-array/int16-array'); +require('../../stable/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/int32-array.js b/node_modules/core-js/stable/typed-array/int32-array.js new file mode 100644 index 0000000..881fc4e --- /dev/null +++ b/node_modules/core-js/stable/typed-array/int32-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/typed-array/int32-array'); +require('../../stable/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/int8-array.js b/node_modules/core-js/stable/typed-array/int8-array.js new file mode 100644 index 0000000..eb56ff3 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/int8-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/typed-array/int8-array'); +require('../../stable/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/iterator.js b/node_modules/core-js/stable/typed-array/iterator.js new file mode 100644 index 0000000..3adf194 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/iterator.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/join.js b/node_modules/core-js/stable/typed-array/join.js new file mode 100644 index 0000000..98bfd71 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/join.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/join'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/keys.js b/node_modules/core-js/stable/typed-array/keys.js new file mode 100644 index 0000000..698af2e --- /dev/null +++ b/node_modules/core-js/stable/typed-array/keys.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/keys'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/last-index-of.js b/node_modules/core-js/stable/typed-array/last-index-of.js new file mode 100644 index 0000000..6bb68b7 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/last-index-of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/last-index-of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/map.js b/node_modules/core-js/stable/typed-array/map.js new file mode 100644 index 0000000..60c2682 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/map.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/map'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/methods.js b/node_modules/core-js/stable/typed-array/methods.js new file mode 100644 index 0000000..1ce1707 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/methods.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/of.js b/node_modules/core-js/stable/typed-array/of.js new file mode 100644 index 0000000..f5b8853 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/of.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/of'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/reduce-right.js b/node_modules/core-js/stable/typed-array/reduce-right.js new file mode 100644 index 0000000..a1bb8ff --- /dev/null +++ b/node_modules/core-js/stable/typed-array/reduce-right.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/reduce-right'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/reduce.js b/node_modules/core-js/stable/typed-array/reduce.js new file mode 100644 index 0000000..ce08877 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/reduce.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/reduce'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/reverse.js b/node_modules/core-js/stable/typed-array/reverse.js new file mode 100644 index 0000000..27c5ea3 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/reverse.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/reverse'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/set.js b/node_modules/core-js/stable/typed-array/set.js new file mode 100644 index 0000000..26c09de --- /dev/null +++ b/node_modules/core-js/stable/typed-array/set.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/set'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/slice.js b/node_modules/core-js/stable/typed-array/slice.js new file mode 100644 index 0000000..62da77b --- /dev/null +++ b/node_modules/core-js/stable/typed-array/slice.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/slice'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/some.js b/node_modules/core-js/stable/typed-array/some.js new file mode 100644 index 0000000..7b996b4 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/some.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/some'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/sort.js b/node_modules/core-js/stable/typed-array/sort.js new file mode 100644 index 0000000..2d479a6 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/sort.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/sort'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/subarray.js b/node_modules/core-js/stable/typed-array/subarray.js new file mode 100644 index 0000000..a1e2bab --- /dev/null +++ b/node_modules/core-js/stable/typed-array/subarray.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/subarray'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/to-locale-string.js b/node_modules/core-js/stable/typed-array/to-locale-string.js new file mode 100644 index 0000000..7a2a01c --- /dev/null +++ b/node_modules/core-js/stable/typed-array/to-locale-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/to-locale-string'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/to-reversed.js b/node_modules/core-js/stable/typed-array/to-reversed.js new file mode 100644 index 0000000..1fb1fdb --- /dev/null +++ b/node_modules/core-js/stable/typed-array/to-reversed.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/to-reversed'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/to-sorted.js b/node_modules/core-js/stable/typed-array/to-sorted.js new file mode 100644 index 0000000..12ea8b1 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/to-sorted.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/to-sorted'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/to-string.js b/node_modules/core-js/stable/typed-array/to-string.js new file mode 100644 index 0000000..37af503 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/to-string.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/to-string'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/uint16-array.js b/node_modules/core-js/stable/typed-array/uint16-array.js new file mode 100644 index 0000000..4fc2f5a --- /dev/null +++ b/node_modules/core-js/stable/typed-array/uint16-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/typed-array/uint16-array'); +require('../../stable/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/uint32-array.js b/node_modules/core-js/stable/typed-array/uint32-array.js new file mode 100644 index 0000000..0146afb --- /dev/null +++ b/node_modules/core-js/stable/typed-array/uint32-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/typed-array/uint32-array'); +require('../../stable/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/uint8-array.js b/node_modules/core-js/stable/typed-array/uint8-array.js new file mode 100644 index 0000000..66f1552 --- /dev/null +++ b/node_modules/core-js/stable/typed-array/uint8-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/typed-array/uint8-array'); +require('../../stable/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/uint8-clamped-array.js b/node_modules/core-js/stable/typed-array/uint8-clamped-array.js new file mode 100644 index 0000000..5b88f7f --- /dev/null +++ b/node_modules/core-js/stable/typed-array/uint8-clamped-array.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/typed-array/uint8-clamped-array'); +require('../../stable/typed-array/methods'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/values.js b/node_modules/core-js/stable/typed-array/values.js new file mode 100644 index 0000000..457c07a --- /dev/null +++ b/node_modules/core-js/stable/typed-array/values.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/values'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/typed-array/with.js b/node_modules/core-js/stable/typed-array/with.js new file mode 100644 index 0000000..5784c0f --- /dev/null +++ b/node_modules/core-js/stable/typed-array/with.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../es/typed-array/with'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/unescape.js b/node_modules/core-js/stable/unescape.js new file mode 100644 index 0000000..7fa0f43 --- /dev/null +++ b/node_modules/core-js/stable/unescape.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../es/unescape'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/url-search-params/index.js b/node_modules/core-js/stable/url-search-params/index.js new file mode 100644 index 0000000..df53189 --- /dev/null +++ b/node_modules/core-js/stable/url-search-params/index.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../web/url-search-params'); +require('../../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/url/can-parse.js b/node_modules/core-js/stable/url/can-parse.js new file mode 100644 index 0000000..161f22f --- /dev/null +++ b/node_modules/core-js/stable/url/can-parse.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/web.url'); +require('../../modules/web.url.can-parse'); +var path = require('../../internals/path'); + +module.exports = path.URL.canParse; diff --git a/node_modules/core-js/stable/url/index.js b/node_modules/core-js/stable/url/index.js new file mode 100644 index 0000000..a391cf3 --- /dev/null +++ b/node_modules/core-js/stable/url/index.js @@ -0,0 +1,4 @@ +'use strict'; +var parent = require('../../web/url'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/url/parse.js b/node_modules/core-js/stable/url/parse.js new file mode 100644 index 0000000..d0fdfe0 --- /dev/null +++ b/node_modules/core-js/stable/url/parse.js @@ -0,0 +1,6 @@ +'use strict'; +require('../../modules/web.url'); +require('../../modules/web.url.parse'); +var path = require('../../internals/path'); + +module.exports = path.URL.parse; diff --git a/node_modules/core-js/stable/url/to-json.js b/node_modules/core-js/stable/url/to-json.js new file mode 100644 index 0000000..5ac6f4c --- /dev/null +++ b/node_modules/core-js/stable/url/to-json.js @@ -0,0 +1,2 @@ +'use strict'; +require('../../modules/web.url.to-json'); diff --git a/node_modules/core-js/stable/weak-map/index.js b/node_modules/core-js/stable/weak-map/index.js new file mode 100644 index 0000000..606700d --- /dev/null +++ b/node_modules/core-js/stable/weak-map/index.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/weak-map'); +require('../../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stable/weak-set/index.js b/node_modules/core-js/stable/weak-set/index.js new file mode 100644 index 0000000..6510f04 --- /dev/null +++ b/node_modules/core-js/stable/weak-set/index.js @@ -0,0 +1,5 @@ +'use strict'; +var parent = require('../../es/weak-set'); +require('../../modules/web.dom-collections.iterator'); + +module.exports = parent; diff --git a/node_modules/core-js/stage/0.js b/node_modules/core-js/stage/0.js new file mode 100644 index 0000000..888b810 --- /dev/null +++ b/node_modules/core-js/stage/0.js @@ -0,0 +1,13 @@ +'use strict'; +var parent = require('./1'); + +require('../proposals/efficient-64-bit-arithmetic'); +require('../proposals/function-demethodize'); +require('../proposals/function-is-callable-is-constructor'); +require('../proposals/string-at'); +require('../proposals/url'); +// TODO: Obsolete versions, remove from `core-js@4`: +require('../proposals/array-filtering'); +require('../proposals/function-un-this'); + +module.exports = parent; diff --git a/node_modules/core-js/stage/1.js b/node_modules/core-js/stage/1.js new file mode 100644 index 0000000..4f59dad --- /dev/null +++ b/node_modules/core-js/stage/1.js @@ -0,0 +1,28 @@ +'use strict'; +var parent = require('./2'); + +require('../proposals/array-filtering-stage-1'); +require('../proposals/array-last'); +require('../proposals/array-unique'); +require('../proposals/collection-methods'); +require('../proposals/collection-of-from'); +require('../proposals/data-view-get-set-uint8-clamped'); +require('../proposals/extractors'); +require('../proposals/keys-composition'); +require('../proposals/math-extensions'); +require('../proposals/math-signbit'); +require('../proposals/number-from-string'); +require('../proposals/object-iteration'); +require('../proposals/observable'); +require('../proposals/pattern-matching-v2'); +require('../proposals/seeded-random'); +require('../proposals/string-code-points'); +require('../proposals/string-cooked'); +// TODO: Obsolete versions, remove from `core-js@4`: +require('../proposals/array-from-async'); +require('../proposals/map-upsert'); +require('../proposals/number-range'); +require('../proposals/pattern-matching'); +require('../proposals/string-replace-all'); + +module.exports = parent; diff --git a/node_modules/core-js/stage/2.7.js b/node_modules/core-js/stage/2.7.js new file mode 100644 index 0000000..e43be1f --- /dev/null +++ b/node_modules/core-js/stage/2.7.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('./3'); + +require('../proposals/math-sum'); + +module.exports = parent; diff --git a/node_modules/core-js/stage/2.js b/node_modules/core-js/stage/2.js new file mode 100644 index 0000000..b2dd9d4 --- /dev/null +++ b/node_modules/core-js/stage/2.js @@ -0,0 +1,20 @@ +'use strict'; +var parent = require('./2.7'); + +require('../proposals/array-is-template-object'); +require('../proposals/async-iterator-helpers'); +require('../proposals/iterator-range'); +require('../proposals/map-upsert-stage-2'); +require('../proposals/string-dedent'); +require('../proposals/symbol-predicates-v2'); +// TODO: Obsolete versions, remove from `core-js@4` +require('../proposals/array-grouping'); +require('../proposals/async-explicit-resource-management'); +require('../proposals/decorators'); +require('../proposals/decorator-metadata'); +require('../proposals/iterator-helpers'); +require('../proposals/set-methods'); +require('../proposals/symbol-predicates'); +require('../proposals/using-statement'); + +module.exports = parent; diff --git a/node_modules/core-js/stage/3.js b/node_modules/core-js/stage/3.js new file mode 100644 index 0000000..f6c5a3f --- /dev/null +++ b/node_modules/core-js/stage/3.js @@ -0,0 +1,19 @@ +'use strict'; +var parent = require('./4'); + +require('../proposals/array-buffer-base64'); +require('../proposals/array-from-async-stage-2'); +require('../proposals/decorator-metadata-v2'); +require('../proposals/explicit-resource-management'); +require('../proposals/float16'); +require('../proposals/iterator-helpers-stage-3-2'); +require('../proposals/json-parse-with-source'); +require('../proposals/promise-try'); +require('../proposals/regexp-escaping'); +// TODO: Obsolete versions, remove from `core-js@4` +require('../proposals/array-grouping-stage-3'); +require('../proposals/array-grouping-stage-3-2'); +require('../proposals/change-array-by-copy'); +require('../proposals/iterator-helpers-stage-3'); + +module.exports = parent; diff --git a/node_modules/core-js/stage/4.js b/node_modules/core-js/stage/4.js new file mode 100644 index 0000000..f1c922a --- /dev/null +++ b/node_modules/core-js/stage/4.js @@ -0,0 +1,21 @@ +'use strict'; +// TODO: Remove this entry from `core-js@4` +require('../proposals/accessible-object-hasownproperty'); +require('../proposals/array-buffer-transfer'); +require('../proposals/array-find-from-last'); +require('../proposals/array-grouping-v2'); +require('../proposals/change-array-by-copy-stage-4'); +// require('../proposals/error-cause'); +require('../proposals/global-this'); +require('../proposals/promise-all-settled'); +require('../proposals/promise-any'); +require('../proposals/promise-with-resolvers'); +require('../proposals/relative-indexing-method'); +require('../proposals/set-methods-v2'); +require('../proposals/string-match-all'); +require('../proposals/string-replace-all-stage-4'); +require('../proposals/well-formed-unicode-strings'); + +var path = require('../internals/path'); + +module.exports = path; diff --git a/node_modules/core-js/stage/README.md b/node_modules/core-js/stage/README.md new file mode 100644 index 0000000..e64ccfb --- /dev/null +++ b/node_modules/core-js/stage/README.md @@ -0,0 +1 @@ +This folder contains entry points for [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals) with dependencies. diff --git a/node_modules/core-js/stage/index.js b/node_modules/core-js/stage/index.js new file mode 100644 index 0000000..c1a27ed --- /dev/null +++ b/node_modules/core-js/stage/index.js @@ -0,0 +1,4 @@ +'use strict'; +var proposals = require('./pre'); + +module.exports = proposals; diff --git a/node_modules/core-js/stage/pre.js b/node_modules/core-js/stage/pre.js new file mode 100644 index 0000000..0f22311 --- /dev/null +++ b/node_modules/core-js/stage/pre.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('./0'); + +require('../proposals/reflect-metadata'); + +module.exports = parent; diff --git a/node_modules/core-js/web/README.md b/node_modules/core-js/web/README.md new file mode 100644 index 0000000..76c8c16 --- /dev/null +++ b/node_modules/core-js/web/README.md @@ -0,0 +1 @@ +This folder contains entry points for features from [WHATWG / W3C](https://github.com/zloirock/core-js#web-standards) with dependencies. diff --git a/node_modules/core-js/web/dom-collections.js b/node_modules/core-js/web/dom-collections.js new file mode 100644 index 0000000..6551d7a --- /dev/null +++ b/node_modules/core-js/web/dom-collections.js @@ -0,0 +1,6 @@ +'use strict'; +require('../modules/web.dom-collections.for-each'); +require('../modules/web.dom-collections.iterator'); +var path = require('../internals/path'); + +module.exports = path; diff --git a/node_modules/core-js/web/dom-exception.js b/node_modules/core-js/web/dom-exception.js new file mode 100644 index 0000000..7c1658a --- /dev/null +++ b/node_modules/core-js/web/dom-exception.js @@ -0,0 +1,8 @@ +'use strict'; +require('../modules/es.error.to-string'); +require('../modules/web.dom-exception.constructor'); +require('../modules/web.dom-exception.stack'); +require('../modules/web.dom-exception.to-string-tag'); +var path = require('../internals/path'); + +module.exports = path.DOMException; diff --git a/node_modules/core-js/web/immediate.js b/node_modules/core-js/web/immediate.js new file mode 100644 index 0000000..3154cd9 --- /dev/null +++ b/node_modules/core-js/web/immediate.js @@ -0,0 +1,5 @@ +'use strict'; +require('../modules/web.immediate'); +var path = require('../internals/path'); + +module.exports = path; diff --git a/node_modules/core-js/web/index.js b/node_modules/core-js/web/index.js new file mode 100644 index 0000000..d0a6f4e --- /dev/null +++ b/node_modules/core-js/web/index.js @@ -0,0 +1,24 @@ +'use strict'; +require('../modules/web.atob'); +require('../modules/web.btoa'); +require('../modules/web.dom-collections.for-each'); +require('../modules/web.dom-collections.iterator'); +require('../modules/web.dom-exception.constructor'); +require('../modules/web.dom-exception.stack'); +require('../modules/web.dom-exception.to-string-tag'); +require('../modules/web.immediate'); +require('../modules/web.queue-microtask'); +require('../modules/web.self'); +require('../modules/web.structured-clone'); +require('../modules/web.timers'); +require('../modules/web.url'); +require('../modules/web.url.can-parse'); +require('../modules/web.url.parse'); +require('../modules/web.url.to-json'); +require('../modules/web.url-search-params'); +require('../modules/web.url-search-params.delete'); +require('../modules/web.url-search-params.has'); +require('../modules/web.url-search-params.size'); +var path = require('../internals/path'); + +module.exports = path; diff --git a/node_modules/core-js/web/queue-microtask.js b/node_modules/core-js/web/queue-microtask.js new file mode 100644 index 0000000..87552e7 --- /dev/null +++ b/node_modules/core-js/web/queue-microtask.js @@ -0,0 +1,5 @@ +'use strict'; +require('../modules/web.queue-microtask'); +var path = require('../internals/path'); + +module.exports = path.queueMicrotask; diff --git a/node_modules/core-js/web/structured-clone.js b/node_modules/core-js/web/structured-clone.js new file mode 100644 index 0000000..a58caf0 --- /dev/null +++ b/node_modules/core-js/web/structured-clone.js @@ -0,0 +1,9 @@ +'use strict'; +require('../modules/es.array.iterator'); +require('../modules/es.object.to-string'); +require('../modules/es.map'); +require('../modules/es.set'); +require('../modules/web.structured-clone'); +var path = require('../internals/path'); + +module.exports = path.structuredClone; diff --git a/node_modules/core-js/web/timers.js b/node_modules/core-js/web/timers.js new file mode 100644 index 0000000..2e6e766 --- /dev/null +++ b/node_modules/core-js/web/timers.js @@ -0,0 +1,5 @@ +'use strict'; +require('../modules/web.timers'); +var path = require('../internals/path'); + +module.exports = path; diff --git a/node_modules/core-js/web/url-search-params.js b/node_modules/core-js/web/url-search-params.js new file mode 100644 index 0000000..4f3127e --- /dev/null +++ b/node_modules/core-js/web/url-search-params.js @@ -0,0 +1,8 @@ +'use strict'; +require('../modules/web.url-search-params'); +require('../modules/web.url-search-params.delete'); +require('../modules/web.url-search-params.has'); +require('../modules/web.url-search-params.size'); +var path = require('../internals/path'); + +module.exports = path.URLSearchParams; diff --git a/node_modules/core-js/web/url.js b/node_modules/core-js/web/url.js new file mode 100644 index 0000000..8f5616d --- /dev/null +++ b/node_modules/core-js/web/url.js @@ -0,0 +1,9 @@ +'use strict'; +require('./url-search-params'); +require('../modules/web.url'); +require('../modules/web.url.can-parse'); +require('../modules/web.url.parse'); +require('../modules/web.url.to-json'); +var path = require('../internals/path'); + +module.exports = path.URL; diff --git a/node_modules/fast-glob/LICENSE b/node_modules/fast-glob/LICENSE new file mode 100644 index 0000000..65a9994 --- /dev/null +++ b/node_modules/fast-glob/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Denis Malinochkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/fast-glob/README.md b/node_modules/fast-glob/README.md new file mode 100644 index 0000000..62d5cb7 --- /dev/null +++ b/node_modules/fast-glob/README.md @@ -0,0 +1,830 @@ +# fast-glob + +> It's a very fast and efficient [glob][glob_definition] library for [Node.js][node_js]. + +This package provides methods for traversing the file system and returning pathnames that matched a defined set of a specified pattern according to the rules used by the Unix Bash shell with some simplifications, meanwhile results are returned in **arbitrary order**. Quick, simple, effective. + +## Table of Contents + +
+Details + +* [Highlights](#highlights) +* [Old and modern mode](#old-and-modern-mode) +* [Pattern syntax](#pattern-syntax) + * [Basic syntax](#basic-syntax) + * [Advanced syntax](#advanced-syntax) +* [Installation](#installation) +* [API](#api) + * [Asynchronous](#asynchronous) + * [Synchronous](#synchronous) + * [Stream](#stream) + * [patterns](#patterns) + * [[options]](#options) + * [Helpers](#helpers) + * [generateTasks](#generatetaskspatterns-options) + * [isDynamicPattern](#isdynamicpatternpattern-options) + * [escapePath](#escapepathpath) + * [convertPathToPattern](#convertpathtopatternpath) +* [Options](#options-3) + * [Common](#common) + * [concurrency](#concurrency) + * [cwd](#cwd) + * [deep](#deep) + * [followSymbolicLinks](#followsymboliclinks) + * [fs](#fs) + * [ignore](#ignore) + * [suppressErrors](#suppresserrors) + * [throwErrorOnBrokenSymbolicLink](#throwerroronbrokensymboliclink) + * [Output control](#output-control) + * [absolute](#absolute) + * [markDirectories](#markdirectories) + * [objectMode](#objectmode) + * [onlyDirectories](#onlydirectories) + * [onlyFiles](#onlyfiles) + * [stats](#stats) + * [unique](#unique) + * [Matching control](#matching-control) + * [braceExpansion](#braceexpansion) + * [caseSensitiveMatch](#casesensitivematch) + * [dot](#dot) + * [extglob](#extglob) + * [globstar](#globstar) + * [baseNameMatch](#basenamematch) +* [FAQ](#faq) + * [What is a static or dynamic pattern?](#what-is-a-static-or-dynamic-pattern) + * [How to write patterns on Windows?](#how-to-write-patterns-on-windows) + * [Why are parentheses match wrong?](#why-are-parentheses-match-wrong) + * [How to exclude directory from reading?](#how-to-exclude-directory-from-reading) + * [How to use UNC path?](#how-to-use-unc-path) + * [Compatible with `node-glob`?](#compatible-with-node-glob) +* [Benchmarks](#benchmarks) + * [Server](#server) + * [Nettop](#nettop) +* [Changelog](#changelog) +* [License](#license) + +
+ +## Highlights + +* Fast. Probably the fastest. +* Supports multiple and negative patterns. +* Synchronous, Promise and Stream API. +* Object mode. Can return more than just strings. +* Error-tolerant. + +## Old and modern mode + +This package works in two modes, depending on the environment in which it is used. + +* **Old mode**. Node.js below 10.10 or when the [`stats`](#stats) option is *enabled*. +* **Modern mode**. Node.js 10.10+ and the [`stats`](#stats) option is *disabled*. + +The modern mode is faster. Learn more about the [internal mechanism][nodelib_fs_scandir_old_and_modern_modern]. + +## Pattern syntax + +> :warning: Always use forward-slashes in glob expressions (patterns and [`ignore`](#ignore) option). Use backslashes for escaping characters. + +There is more than one form of syntax: basic and advanced. Below is a brief overview of the supported features. Also pay attention to our [FAQ](#faq). + +> :book: This package uses [`micromatch`][micromatch] as a library for pattern matching. + +### Basic syntax + +* An asterisk (`*`) — matches everything except slashes (path separators), hidden files (names starting with `.`). +* A double star or globstar (`**`) — matches zero or more directories. +* Question mark (`?`) – matches any single character except slashes (path separators). +* Sequence (`[seq]`) — matches any character in sequence. + +> :book: A few additional words about the [basic matching behavior][picomatch_matching_behavior]. + +Some examples: + +* `src/**/*.js` — matches all files in the `src` directory (any level of nesting) that have the `.js` extension. +* `src/*.??` — matches all files in the `src` directory (only first level of nesting) that have a two-character extension. +* `file-[01].js` — matches files: `file-0.js`, `file-1.js`. + +### Advanced syntax + +* [Escapes characters][micromatch_backslashes] (`\\`) — matching special characters (`$^*+?()[]`) as literals. +* [POSIX character classes][picomatch_posix_brackets] (`[[:digit:]]`). +* [Extended globs][micromatch_extglobs] (`?(pattern-list)`). +* [Bash style brace expansions][micromatch_braces] (`{}`). +* [Regexp character classes][micromatch_regex_character_classes] (`[1-5]`). +* [Regex groups][regular_expressions_brackets] (`(a|b)`). + +> :book: A few additional words about the [advanced matching behavior][micromatch_extended_globbing]. + +Some examples: + +* `src/**/*.{css,scss}` — matches all files in the `src` directory (any level of nesting) that have the `.css` or `.scss` extension. +* `file-[[:digit:]].js` — matches files: `file-0.js`, `file-1.js`, …, `file-9.js`. +* `file-{1..3}.js` — matches files: `file-1.js`, `file-2.js`, `file-3.js`. +* `file-(1|2)` — matches files: `file-1.js`, `file-2.js`. + +## Installation + +```console +npm install fast-glob +``` + +## API + +### Asynchronous + +```js +fg(patterns, [options]) +fg.async(patterns, [options]) +fg.glob(patterns, [options]) +``` + +Returns a `Promise` with an array of matching entries. + +```js +const fg = require('fast-glob'); + +const entries = await fg(['.editorconfig', '**/index.js'], { dot: true }); + +// ['.editorconfig', 'services/index.js'] +``` + +### Synchronous + +```js +fg.sync(patterns, [options]) +fg.globSync(patterns, [options]) +``` + +Returns an array of matching entries. + +```js +const fg = require('fast-glob'); + +const entries = fg.sync(['.editorconfig', '**/index.js'], { dot: true }); + +// ['.editorconfig', 'services/index.js'] +``` + +### Stream + +```js +fg.stream(patterns, [options]) +fg.globStream(patterns, [options]) +``` + +Returns a [`ReadableStream`][node_js_stream_readable_streams] when the `data` event will be emitted with matching entry. + +```js +const fg = require('fast-glob'); + +const stream = fg.stream(['.editorconfig', '**/index.js'], { dot: true }); + +for await (const entry of stream) { + // .editorconfig + // services/index.js +} +``` + +#### patterns + +* Required: `true` +* Type: `string | string[]` + +Any correct pattern(s). + +> :1234: [Pattern syntax](#pattern-syntax) +> +> :warning: This package does not respect the order of patterns. First, all the negative patterns are applied, and only then the positive patterns. If you want to get a certain order of records, use sorting or split calls. + +#### [options] + +* Required: `false` +* Type: [`Options`](#options-3) + +See [Options](#options-3) section. + +### Helpers + +#### `generateTasks(patterns, [options])` + +Returns the internal representation of patterns ([`Task`](./src/managers/tasks.ts) is a combining patterns by base directory). + +```js +fg.generateTasks('*'); + +[{ + base: '.', // Parent directory for all patterns inside this task + dynamic: true, // Dynamic or static patterns are in this task + patterns: ['*'], + positive: ['*'], + negative: [] +}] +``` + +##### patterns + +* Required: `true` +* Type: `string | string[]` + +Any correct pattern(s). + +##### [options] + +* Required: `false` +* Type: [`Options`](#options-3) + +See [Options](#options-3) section. + +#### `isDynamicPattern(pattern, [options])` + +Returns `true` if the passed pattern is a dynamic pattern. + +> :1234: [What is a static or dynamic pattern?](#what-is-a-static-or-dynamic-pattern) + +```js +fg.isDynamicPattern('*'); // true +fg.isDynamicPattern('abc'); // false +``` + +##### pattern + +* Required: `true` +* Type: `string` + +Any correct pattern. + +##### [options] + +* Required: `false` +* Type: [`Options`](#options-3) + +See [Options](#options-3) section. + +#### `escapePath(path)` + +Returns the path with escaped special characters depending on the platform. + +* Posix: + * `*?|(){}[]`; + * `!` at the beginning of line; + * `@+!` before the opening parenthesis; + * `\\` before non-special characters; +* Windows: + * `(){}[]` + * `!` at the beginning of line; + * `@+!` before the opening parenthesis; + * Characters like `*?|` cannot be used in the path ([windows_naming_conventions][windows_naming_conventions]), so they will not be escaped; + +```js +fg.escapePath('!abc'); +// \\!abc +fg.escapePath('[OpenSource] mrmlnc – fast-glob (Deluxe Edition) 2014') + '/*.flac' +// \\[OpenSource\\] mrmlnc – fast-glob \\(Deluxe Edition\\) 2014/*.flac + +fg.posix.escapePath('C:\\Program Files (x86)\\**\\*'); +// C:\\\\Program Files \\(x86\\)\\*\\*\\* +fg.win32.escapePath('C:\\Program Files (x86)\\**\\*'); +// Windows: C:\\Program Files \\(x86\\)\\**\\* +``` + +#### `convertPathToPattern(path)` + +Converts a path to a pattern depending on the platform, including special character escaping. + +* Posix. Works similarly to the `fg.posix.escapePath` method. +* Windows. Works similarly to the `fg.win32.escapePath` method, additionally converting backslashes to forward slashes in cases where they are not escape characters (`!()+@{}[]`). + +```js +fg.convertPathToPattern('[OpenSource] mrmlnc – fast-glob (Deluxe Edition) 2014') + '/*.flac'; +// \\[OpenSource\\] mrmlnc – fast-glob \\(Deluxe Edition\\) 2014/*.flac + +fg.convertPathToPattern('C:/Program Files (x86)/**/*'); +// Posix: C:/Program Files \\(x86\\)/\\*\\*/\\* +// Windows: C:/Program Files \\(x86\\)/**/* + +fg.convertPathToPattern('C:\\Program Files (x86)\\**\\*'); +// Posix: C:\\\\Program Files \\(x86\\)\\*\\*\\* +// Windows: C:/Program Files \\(x86\\)/**/* + +fg.posix.convertPathToPattern('\\\\?\\c:\\Program Files (x86)') + '/**/*'; +// Posix: \\\\\\?\\\\c:\\\\Program Files \\(x86\\)/**/* (broken pattern) +fg.win32.convertPathToPattern('\\\\?\\c:\\Program Files (x86)') + '/**/*'; +// Windows: //?/c:/Program Files \\(x86\\)/**/* +``` + +## Options + +### Common options + +#### concurrency + +* Type: `number` +* Default: `os.cpus().length` + +Specifies the maximum number of concurrent requests from a reader to read directories. + +> :book: The higher the number, the higher the performance and load on the file system. If you want to read in quiet mode, set the value to a comfortable number or `1`. + +
+ +More details + +In Node, there are [two types of threads][nodejs_thread_pool]: Event Loop (code) and a Thread Pool (fs, dns, …). The thread pool size controlled by the `UV_THREADPOOL_SIZE` environment variable. Its default size is 4 ([documentation][libuv_thread_pool]). The pool is one for all tasks within a single Node process. + +Any code can make 4 real concurrent accesses to the file system. The rest of the FS requests will wait in the queue. + +> :book: Each new instance of FG in the same Node process will use the same Thread pool. + +But this package also has the `concurrency` option. This option allows you to control the number of concurrent accesses to the FS at the package level. By default, this package has a value equal to the number of cores available for the current Node process. This allows you to set a value smaller than the pool size (`concurrency: 1`) or, conversely, to prepare tasks for the pool queue more quickly (`concurrency: Number.POSITIVE_INFINITY`). + +So, in fact, this package can **only make 4 concurrent requests to the FS**. You can increase this value by using an environment variable (`UV_THREADPOOL_SIZE`), but in practice this does not give a multiple advantage. + +
+ +#### cwd + +* Type: `string` +* Default: `process.cwd()` + +The current working directory in which to search. + +#### deep + +* Type: `number` +* Default: `Infinity` + +Specifies the maximum depth of a read directory relative to the start directory. + +For example, you have the following tree: + +```js +dir/ +└── one/ // 1 + └── two/ // 2 + └── file.js // 3 +``` + +```js +// With base directory +fg.sync('dir/**', { onlyFiles: false, deep: 1 }); // ['dir/one'] +fg.sync('dir/**', { onlyFiles: false, deep: 2 }); // ['dir/one', 'dir/one/two'] + +// With cwd option +fg.sync('**', { onlyFiles: false, cwd: 'dir', deep: 1 }); // ['one'] +fg.sync('**', { onlyFiles: false, cwd: 'dir', deep: 2 }); // ['one', 'one/two'] +``` + +> :book: If you specify a pattern with some base directory, this directory will not participate in the calculation of the depth of the found directories. Think of it as a [`cwd`](#cwd) option. + +#### followSymbolicLinks + +* Type: `boolean` +* Default: `true` + +Indicates whether to traverse descendants of symbolic link directories when expanding `**` patterns. + +> :book: Note that this option does not affect the base directory of the pattern. For example, if `./a` is a symlink to directory `./b` and you specified `['./a**', './b/**']` patterns, then directory `./a` will still be read. + +> :book: If the [`stats`](#stats) option is specified, the information about the symbolic link (`fs.lstat`) will be replaced with information about the entry (`fs.stat`) behind it. + +#### fs + +* Type: `FileSystemAdapter` +* Default: `fs.*` + +Custom implementation of methods for working with the file system. + +```ts +export interface FileSystemAdapter { + lstat?: typeof fs.lstat; + stat?: typeof fs.stat; + lstatSync?: typeof fs.lstatSync; + statSync?: typeof fs.statSync; + readdir?: typeof fs.readdir; + readdirSync?: typeof fs.readdirSync; +} +``` + +#### ignore + +* Type: `string[]` +* Default: `[]` + +An array of glob patterns to exclude matches. This is an alternative way to use negative patterns. + +```js +dir/ +├── package-lock.json +└── package.json +``` + +```js +fg.sync(['*.json', '!package-lock.json']); // ['package.json'] +fg.sync('*.json', { ignore: ['package-lock.json'] }); // ['package.json'] +``` + +#### suppressErrors + +* Type: `boolean` +* Default: `false` + +By default this package suppress only `ENOENT` errors. Set to `true` to suppress any error. + +> :book: Can be useful when the directory has entries with a special level of access. + +#### throwErrorOnBrokenSymbolicLink + +* Type: `boolean` +* Default: `false` + +Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`. + +> :book: This option has no effect on errors when reading the symbolic link directory. + +### Output control + +#### absolute + +* Type: `boolean` +* Default: `false` + +Return the absolute path for entries. + +```js +fg.sync('*.js', { absolute: false }); // ['index.js'] +fg.sync('*.js', { absolute: true }); // ['/home/user/index.js'] +``` + +> :book: This option is required if you want to use negative patterns with absolute path, for example, `!${__dirname}/*.js`. + +#### markDirectories + +* Type: `boolean` +* Default: `false` + +Mark the directory path with the final slash. + +```js +fg.sync('*', { onlyFiles: false, markDirectories: false }); // ['index.js', 'controllers'] +fg.sync('*', { onlyFiles: false, markDirectories: true }); // ['index.js', 'controllers/'] +``` + +#### objectMode + +* Type: `boolean` +* Default: `false` + +Returns objects (instead of strings) describing entries. + +```js +fg.sync('*', { objectMode: false }); // ['src/index.js'] +fg.sync('*', { objectMode: true }); // [{ name: 'index.js', path: 'src/index.js', dirent: }] +``` + +The object has the following fields: + +* name (`string`) — the last part of the path (basename) +* path (`string`) — full path relative to the pattern base directory +* dirent ([`fs.Dirent`][node_js_fs_class_fs_dirent]) — instance of `fs.Dirent` + +> :book: An object is an internal representation of entry, so getting it does not affect performance. + +#### onlyDirectories + +* Type: `boolean` +* Default: `false` + +Return only directories. + +```js +fg.sync('*', { onlyDirectories: false }); // ['index.js', 'src'] +fg.sync('*', { onlyDirectories: true }); // ['src'] +``` + +> :book: If `true`, the [`onlyFiles`](#onlyfiles) option is automatically `false`. + +#### onlyFiles + +* Type: `boolean` +* Default: `true` + +Return only files. + +```js +fg.sync('*', { onlyFiles: false }); // ['index.js', 'src'] +fg.sync('*', { onlyFiles: true }); // ['index.js'] +``` + +#### stats + +* Type: `boolean` +* Default: `false` + +Enables an [object mode](#objectmode) with an additional field: + +* stats ([`fs.Stats`][node_js_fs_class_fs_stats]) — instance of `fs.Stats` + +```js +fg.sync('*', { stats: false }); // ['src/index.js'] +fg.sync('*', { stats: true }); // [{ name: 'index.js', path: 'src/index.js', dirent: , stats: }] +``` + +> :book: Returns `fs.stat` instead of `fs.lstat` for symbolic links when the [`followSymbolicLinks`](#followsymboliclinks) option is specified. +> +> :warning: Unlike [object mode](#objectmode) this mode requires additional calls to the file system. On average, this mode is slower at least twice. See [old and modern mode](#old-and-modern-mode) for more details. + +#### unique + +* Type: `boolean` +* Default: `true` + +Ensures that the returned entries are unique. + +```js +fg.sync(['*.json', 'package.json'], { unique: false }); // ['package.json', 'package.json'] +fg.sync(['*.json', 'package.json'], { unique: true }); // ['package.json'] +``` + +If `true` and similar entries are found, the result is the first found. + +### Matching control + +#### braceExpansion + +* Type: `boolean` +* Default: `true` + +Enables Bash-like brace expansion. + +> :1234: [Syntax description][bash_hackers_syntax_expansion_brace] or more [detailed description][micromatch_braces]. + +```js +dir/ +├── abd +├── acd +└── a{b,c}d +``` + +```js +fg.sync('a{b,c}d', { braceExpansion: false }); // ['a{b,c}d'] +fg.sync('a{b,c}d', { braceExpansion: true }); // ['abd', 'acd'] +``` + +#### caseSensitiveMatch + +* Type: `boolean` +* Default: `true` + +Enables a [case-sensitive][wikipedia_case_sensitivity] mode for matching files. + +```js +dir/ +├── file.txt +└── File.txt +``` + +```js +fg.sync('file.txt', { caseSensitiveMatch: false }); // ['file.txt', 'File.txt'] +fg.sync('file.txt', { caseSensitiveMatch: true }); // ['file.txt'] +``` + +#### dot + +* Type: `boolean` +* Default: `false` + +Allow patterns to match entries that begin with a period (`.`). + +> :book: Note that an explicit dot in a portion of the pattern will always match dot files. + +```js +dir/ +├── .editorconfig +└── package.json +``` + +```js +fg.sync('*', { dot: false }); // ['package.json'] +fg.sync('*', { dot: true }); // ['.editorconfig', 'package.json'] +``` + +#### extglob + +* Type: `boolean` +* Default: `true` + +Enables Bash-like `extglob` functionality. + +> :1234: [Syntax description][micromatch_extglobs]. + +```js +dir/ +├── README.md +└── package.json +``` + +```js +fg.sync('*.+(json|md)', { extglob: false }); // [] +fg.sync('*.+(json|md)', { extglob: true }); // ['README.md', 'package.json'] +``` + +#### globstar + +* Type: `boolean` +* Default: `true` + +Enables recursively repeats a pattern containing `**`. If `false`, `**` behaves exactly like `*`. + +```js +dir/ +└── a + └── b +``` + +```js +fg.sync('**', { onlyFiles: false, globstar: false }); // ['a'] +fg.sync('**', { onlyFiles: false, globstar: true }); // ['a', 'a/b'] +``` + +#### baseNameMatch + +* Type: `boolean` +* Default: `false` + +If set to `true`, then patterns without slashes will be matched against the basename of the path if it contains slashes. + +```js +dir/ +└── one/ + └── file.md +``` + +```js +fg.sync('*.md', { baseNameMatch: false }); // [] +fg.sync('*.md', { baseNameMatch: true }); // ['one/file.md'] +``` + +## FAQ + +## What is a static or dynamic pattern? + +All patterns can be divided into two types: + +* **static**. A pattern is considered static if it can be used to get an entry on the file system without using matching mechanisms. For example, the `file.js` pattern is a static pattern because we can just verify that it exists on the file system. +* **dynamic**. A pattern is considered dynamic if it cannot be used directly to find occurrences without using a matching mechanisms. For example, the `*` pattern is a dynamic pattern because we cannot use this pattern directly. + +A pattern is considered dynamic if it contains the following characters (`…` — any characters or their absence) or options: + +* The [`caseSensitiveMatch`](#casesensitivematch) option is disabled +* `\\` (the escape character) +* `*`, `?`, `!` (at the beginning of line) +* `[…]` +* `(…|…)` +* `@(…)`, `!(…)`, `*(…)`, `?(…)`, `+(…)` (respects the [`extglob`](#extglob) option) +* `{…,…}`, `{…..…}` (respects the [`braceExpansion`](#braceexpansion) option) + +## How to write patterns on Windows? + +Always use forward-slashes in glob expressions (patterns and [`ignore`](#ignore) option). Use backslashes for escaping characters. With the [`cwd`](#cwd) option use a convenient format. + +**Bad** + +```ts +[ + 'directory\\*', + path.join(process.cwd(), '**') +] +``` + +**Good** + +```ts +[ + 'directory/*', + fg.convertPathToPattern(process.cwd()) + '/**' +] +``` + +> :book: Use the [`.convertPathToPattern`](#convertpathtopatternpath) package to convert Windows-style path to a Unix-style path. + +Read more about [matching with backslashes][micromatch_backslashes]. + +## Why are parentheses match wrong? + +```js +dir/ +└── (special-*file).txt +``` + +```js +fg.sync(['(special-*file).txt']) // [] +``` + +Refers to Bash. You need to escape special characters: + +```js +fg.sync(['\\(special-*file\\).txt']) // ['(special-*file).txt'] +``` + +Read more about [matching special characters as literals][picomatch_matching_special_characters_as_literals]. Or use the [`.escapePath`](#escapepathpath). + +## How to exclude directory from reading? + +You can use a negative pattern like this: `!**/node_modules` or `!**/node_modules/**`. Also you can use [`ignore`](#ignore) option. Just look at the example below. + +```js +first/ +├── file.md +└── second/ + └── file.txt +``` + +If you don't want to read the `second` directory, you must write the following pattern: `!**/second` or `!**/second/**`. + +```js +fg.sync(['**/*.md', '!**/second']); // ['first/file.md'] +fg.sync(['**/*.md'], { ignore: ['**/second/**'] }); // ['first/file.md'] +``` + +> :warning: When you write `!**/second/**/*` it means that the directory will be **read**, but all the entries will not be included in the results. + +You have to understand that if you write the pattern to exclude directories, then the directory will not be read under any circumstances. + +## How to use UNC path? + +You cannot use [Uniform Naming Convention (UNC)][unc_path] paths as patterns (due to syntax) directly, but you can use them as [`cwd`](#cwd) directory or use the `fg.convertPathToPattern` method. + +```ts +// cwd +fg.sync('*', { cwd: '\\\\?\\C:\\Python27' /* or //?/C:/Python27 */ }); +fg.sync('Python27/*', { cwd: '\\\\?\\C:\\' /* or //?/C:/ */ }); + +// .convertPathToPattern +fg.sync(fg.convertPathToPattern('\\\\?\\c:\\Python27') + '/*'); +``` + +## Compatible with `node-glob`? + +| node-glob | fast-glob | +| :----------: | :-------: | +| `cwd` | [`cwd`](#cwd) | +| `root` | – | +| `dot` | [`dot`](#dot) | +| `nomount` | – | +| `mark` | [`markDirectories`](#markdirectories) | +| `nosort` | – | +| `nounique` | [`unique`](#unique) | +| `nobrace` | [`braceExpansion`](#braceexpansion) | +| `noglobstar` | [`globstar`](#globstar) | +| `noext` | [`extglob`](#extglob) | +| `nocase` | [`caseSensitiveMatch`](#casesensitivematch) | +| `matchBase` | [`baseNameMatch`](#basenamematch) | +| `nodir` | [`onlyFiles`](#onlyfiles) | +| `ignore` | [`ignore`](#ignore) | +| `follow` | [`followSymbolicLinks`](#followsymboliclinks) | +| `realpath` | – | +| `absolute` | [`absolute`](#absolute) | + +## Benchmarks + +You can see results [here](https://github.com/mrmlnc/fast-glob/actions/workflows/benchmark.yml?query=branch%3Amaster) for every commit into the `main` branch. + +* **Product benchmark** – comparison with the main competitors. +* **Regress benchmark** – regression between the current version and the version from the npm registry. + +## Changelog + +See the [Releases section of our GitHub project][github_releases] for changelog for each release version. + +## License + +This software is released under the terms of the MIT license. + +[bash_hackers_syntax_expansion_brace]: https://wiki.bash-hackers.org/syntax/expansion/brace +[github_releases]: https://github.com/mrmlnc/fast-glob/releases +[glob_definition]: https://en.wikipedia.org/wiki/Glob_(programming) +[glob_linux_man]: http://man7.org/linux/man-pages/man3/glob.3.html +[micromatch_backslashes]: https://github.com/micromatch/micromatch#backslashes +[micromatch_braces]: https://github.com/micromatch/braces +[micromatch_extended_globbing]: https://github.com/micromatch/micromatch#extended-globbing +[micromatch_extglobs]: https://github.com/micromatch/micromatch#extglobs +[micromatch_regex_character_classes]: https://github.com/micromatch/micromatch#regex-character-classes +[micromatch]: https://github.com/micromatch/micromatch +[node_js_fs_class_fs_dirent]: https://nodejs.org/api/fs.html#fs_class_fs_dirent +[node_js_fs_class_fs_stats]: https://nodejs.org/api/fs.html#fs_class_fs_stats +[node_js_stream_readable_streams]: https://nodejs.org/api/stream.html#stream_readable_streams +[node_js]: https://nodejs.org/en +[nodelib_fs_scandir_old_and_modern_modern]: https://github.com/nodelib/nodelib/blob/master/packages/fs/fs.scandir/README.md#old-and-modern-mode +[npm_normalize_path]: https://www.npmjs.com/package/normalize-path +[npm_unixify]: https://www.npmjs.com/package/unixify +[picomatch_matching_behavior]: https://github.com/micromatch/picomatch#matching-behavior-vs-bash +[picomatch_matching_special_characters_as_literals]: https://github.com/micromatch/picomatch#matching-special-characters-as-literals +[picomatch_posix_brackets]: https://github.com/micromatch/picomatch#posix-brackets +[regular_expressions_brackets]: https://www.regular-expressions.info/brackets.html +[unc_path]: https://learn.microsoft.com/openspecs/windows_protocols/ms-dtyp/62e862f4-2a51-452e-8eeb-dc4ff5ee33cc +[wikipedia_case_sensitivity]: https://en.wikipedia.org/wiki/Case_sensitivity +[nodejs_thread_pool]: https://nodejs.org/en/docs/guides/dont-block-the-event-loop +[libuv_thread_pool]: http://docs.libuv.org/en/v1.x/threadpool.html +[windows_naming_conventions]: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions diff --git a/node_modules/fast-glob/out/index.d.ts b/node_modules/fast-glob/out/index.d.ts new file mode 100644 index 0000000..46823bb --- /dev/null +++ b/node_modules/fast-glob/out/index.d.ts @@ -0,0 +1,40 @@ +/// +import * as taskManager from './managers/tasks'; +import { Options as OptionsInternal } from './settings'; +import { Entry as EntryInternal, FileSystemAdapter as FileSystemAdapterInternal, Pattern as PatternInternal } from './types'; +type EntryObjectModePredicate = { + [TKey in keyof Pick]-?: true; +}; +type EntryStatsPredicate = { + [TKey in keyof Pick]-?: true; +}; +type EntryObjectPredicate = EntryObjectModePredicate | EntryStatsPredicate; +declare function FastGlob(source: PatternInternal | PatternInternal[], options: OptionsInternal & EntryObjectPredicate): Promise; +declare function FastGlob(source: PatternInternal | PatternInternal[], options?: OptionsInternal): Promise; +declare namespace FastGlob { + type Options = OptionsInternal; + type Entry = EntryInternal; + type Task = taskManager.Task; + type Pattern = PatternInternal; + type FileSystemAdapter = FileSystemAdapterInternal; + const glob: typeof FastGlob; + const globSync: typeof sync; + const globStream: typeof stream; + const async: typeof FastGlob; + function sync(source: PatternInternal | PatternInternal[], options: OptionsInternal & EntryObjectPredicate): EntryInternal[]; + function sync(source: PatternInternal | PatternInternal[], options?: OptionsInternal): string[]; + function stream(source: PatternInternal | PatternInternal[], options?: OptionsInternal): NodeJS.ReadableStream; + function generateTasks(source: PatternInternal | PatternInternal[], options?: OptionsInternal): Task[]; + function isDynamicPattern(source: PatternInternal, options?: OptionsInternal): boolean; + function escapePath(source: string): PatternInternal; + function convertPathToPattern(source: string): PatternInternal; + namespace posix { + function escapePath(source: string): PatternInternal; + function convertPathToPattern(source: string): PatternInternal; + } + namespace win32 { + function escapePath(source: string): PatternInternal; + function convertPathToPattern(source: string): PatternInternal; + } +} +export = FastGlob; diff --git a/node_modules/fast-glob/out/index.js b/node_modules/fast-glob/out/index.js new file mode 100644 index 0000000..90365d4 --- /dev/null +++ b/node_modules/fast-glob/out/index.js @@ -0,0 +1,102 @@ +"use strict"; +const taskManager = require("./managers/tasks"); +const async_1 = require("./providers/async"); +const stream_1 = require("./providers/stream"); +const sync_1 = require("./providers/sync"); +const settings_1 = require("./settings"); +const utils = require("./utils"); +async function FastGlob(source, options) { + assertPatternsInput(source); + const works = getWorks(source, async_1.default, options); + const result = await Promise.all(works); + return utils.array.flatten(result); +} +// https://github.com/typescript-eslint/typescript-eslint/issues/60 +// eslint-disable-next-line no-redeclare +(function (FastGlob) { + FastGlob.glob = FastGlob; + FastGlob.globSync = sync; + FastGlob.globStream = stream; + FastGlob.async = FastGlob; + function sync(source, options) { + assertPatternsInput(source); + const works = getWorks(source, sync_1.default, options); + return utils.array.flatten(works); + } + FastGlob.sync = sync; + function stream(source, options) { + assertPatternsInput(source); + const works = getWorks(source, stream_1.default, options); + /** + * The stream returned by the provider cannot work with an asynchronous iterator. + * To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams. + * This affects performance (+25%). I don't see best solution right now. + */ + return utils.stream.merge(works); + } + FastGlob.stream = stream; + function generateTasks(source, options) { + assertPatternsInput(source); + const patterns = [].concat(source); + const settings = new settings_1.default(options); + return taskManager.generate(patterns, settings); + } + FastGlob.generateTasks = generateTasks; + function isDynamicPattern(source, options) { + assertPatternsInput(source); + const settings = new settings_1.default(options); + return utils.pattern.isDynamicPattern(source, settings); + } + FastGlob.isDynamicPattern = isDynamicPattern; + function escapePath(source) { + assertPatternsInput(source); + return utils.path.escape(source); + } + FastGlob.escapePath = escapePath; + function convertPathToPattern(source) { + assertPatternsInput(source); + return utils.path.convertPathToPattern(source); + } + FastGlob.convertPathToPattern = convertPathToPattern; + let posix; + (function (posix) { + function escapePath(source) { + assertPatternsInput(source); + return utils.path.escapePosixPath(source); + } + posix.escapePath = escapePath; + function convertPathToPattern(source) { + assertPatternsInput(source); + return utils.path.convertPosixPathToPattern(source); + } + posix.convertPathToPattern = convertPathToPattern; + })(posix = FastGlob.posix || (FastGlob.posix = {})); + let win32; + (function (win32) { + function escapePath(source) { + assertPatternsInput(source); + return utils.path.escapeWindowsPath(source); + } + win32.escapePath = escapePath; + function convertPathToPattern(source) { + assertPatternsInput(source); + return utils.path.convertWindowsPathToPattern(source); + } + win32.convertPathToPattern = convertPathToPattern; + })(win32 = FastGlob.win32 || (FastGlob.win32 = {})); +})(FastGlob || (FastGlob = {})); +function getWorks(source, _Provider, options) { + const patterns = [].concat(source); + const settings = new settings_1.default(options); + const tasks = taskManager.generate(patterns, settings); + const provider = new _Provider(settings); + return tasks.map(provider.read, provider); +} +function assertPatternsInput(input) { + const source = [].concat(input); + const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item)); + if (!isValidSource) { + throw new TypeError('Patterns must be a string (non empty) or an array of strings'); + } +} +module.exports = FastGlob; diff --git a/node_modules/fast-glob/out/managers/tasks.d.ts b/node_modules/fast-glob/out/managers/tasks.d.ts new file mode 100644 index 0000000..59d2c42 --- /dev/null +++ b/node_modules/fast-glob/out/managers/tasks.d.ts @@ -0,0 +1,22 @@ +import Settings from '../settings'; +import { Pattern, PatternsGroup } from '../types'; +export type Task = { + base: string; + dynamic: boolean; + patterns: Pattern[]; + positive: Pattern[]; + negative: Pattern[]; +}; +export declare function generate(input: Pattern[], settings: Settings): Task[]; +/** + * Returns tasks grouped by basic pattern directories. + * + * Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately. + * This is necessary because directory traversal starts at the base directory and goes deeper. + */ +export declare function convertPatternsToTasks(positive: Pattern[], negative: Pattern[], dynamic: boolean): Task[]; +export declare function getPositivePatterns(patterns: Pattern[]): Pattern[]; +export declare function getNegativePatternsAsPositive(patterns: Pattern[], ignore: Pattern[]): Pattern[]; +export declare function groupPatternsByBaseDirectory(patterns: Pattern[]): PatternsGroup; +export declare function convertPatternGroupsToTasks(positive: PatternsGroup, negative: Pattern[], dynamic: boolean): Task[]; +export declare function convertPatternGroupToTask(base: string, positive: Pattern[], negative: Pattern[], dynamic: boolean): Task; diff --git a/node_modules/fast-glob/out/managers/tasks.js b/node_modules/fast-glob/out/managers/tasks.js new file mode 100644 index 0000000..335a765 --- /dev/null +++ b/node_modules/fast-glob/out/managers/tasks.js @@ -0,0 +1,110 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0; +const utils = require("../utils"); +function generate(input, settings) { + const patterns = processPatterns(input, settings); + const ignore = processPatterns(settings.ignore, settings); + const positivePatterns = getPositivePatterns(patterns); + const negativePatterns = getNegativePatternsAsPositive(patterns, ignore); + const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings)); + const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings)); + const staticTasks = convertPatternsToTasks(staticPatterns, negativePatterns, /* dynamic */ false); + const dynamicTasks = convertPatternsToTasks(dynamicPatterns, negativePatterns, /* dynamic */ true); + return staticTasks.concat(dynamicTasks); +} +exports.generate = generate; +function processPatterns(input, settings) { + let patterns = input; + /** + * The original pattern like `{,*,**,a/*}` can lead to problems checking the depth when matching entry + * and some problems with the micromatch package (see fast-glob issues: #365, #394). + * + * To solve this problem, we expand all patterns containing brace expansion. This can lead to a slight slowdown + * in matching in the case of a large set of patterns after expansion. + */ + if (settings.braceExpansion) { + patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns); + } + /** + * If the `baseNameMatch` option is enabled, we must add globstar to patterns, so that they can be used + * at any nesting level. + * + * We do this here, because otherwise we have to complicate the filtering logic. For example, we need to change + * the pattern in the filter before creating a regular expression. There is no need to change the patterns + * in the application. Only on the input. + */ + if (settings.baseNameMatch) { + patterns = patterns.map((pattern) => pattern.includes('/') ? pattern : `**/${pattern}`); + } + /** + * This method also removes duplicate slashes that may have been in the pattern or formed as a result of expansion. + */ + return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern)); +} +/** + * Returns tasks grouped by basic pattern directories. + * + * Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately. + * This is necessary because directory traversal starts at the base directory and goes deeper. + */ +function convertPatternsToTasks(positive, negative, dynamic) { + const tasks = []; + const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive); + const patternsInsideCurrentDirectory = utils.pattern.getPatternsInsideCurrentDirectory(positive); + const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory); + const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory); + tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic)); + /* + * For the sake of reducing future accesses to the file system, we merge all tasks within the current directory + * into a global task, if at least one pattern refers to the root (`.`). In this case, the global task covers the rest. + */ + if ('.' in insideCurrentDirectoryGroup) { + tasks.push(convertPatternGroupToTask('.', patternsInsideCurrentDirectory, negative, dynamic)); + } + else { + tasks.push(...convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic)); + } + return tasks; +} +exports.convertPatternsToTasks = convertPatternsToTasks; +function getPositivePatterns(patterns) { + return utils.pattern.getPositivePatterns(patterns); +} +exports.getPositivePatterns = getPositivePatterns; +function getNegativePatternsAsPositive(patterns, ignore) { + const negative = utils.pattern.getNegativePatterns(patterns).concat(ignore); + const positive = negative.map(utils.pattern.convertToPositivePattern); + return positive; +} +exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive; +function groupPatternsByBaseDirectory(patterns) { + const group = {}; + return patterns.reduce((collection, pattern) => { + const base = utils.pattern.getBaseDirectory(pattern); + if (base in collection) { + collection[base].push(pattern); + } + else { + collection[base] = [pattern]; + } + return collection; + }, group); +} +exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory; +function convertPatternGroupsToTasks(positive, negative, dynamic) { + return Object.keys(positive).map((base) => { + return convertPatternGroupToTask(base, positive[base], negative, dynamic); + }); +} +exports.convertPatternGroupsToTasks = convertPatternGroupsToTasks; +function convertPatternGroupToTask(base, positive, negative, dynamic) { + return { + dynamic, + positive, + negative, + base, + patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern)) + }; +} +exports.convertPatternGroupToTask = convertPatternGroupToTask; diff --git a/node_modules/fast-glob/out/providers/async.d.ts b/node_modules/fast-glob/out/providers/async.d.ts new file mode 100644 index 0000000..2742616 --- /dev/null +++ b/node_modules/fast-glob/out/providers/async.d.ts @@ -0,0 +1,9 @@ +import { Task } from '../managers/tasks'; +import { Entry, EntryItem, ReaderOptions } from '../types'; +import ReaderAsync from '../readers/async'; +import Provider from './provider'; +export default class ProviderAsync extends Provider> { + protected _reader: ReaderAsync; + read(task: Task): Promise; + api(root: string, task: Task, options: ReaderOptions): Promise; +} diff --git a/node_modules/fast-glob/out/providers/async.js b/node_modules/fast-glob/out/providers/async.js new file mode 100644 index 0000000..0c5286e --- /dev/null +++ b/node_modules/fast-glob/out/providers/async.js @@ -0,0 +1,23 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const async_1 = require("../readers/async"); +const provider_1 = require("./provider"); +class ProviderAsync extends provider_1.default { + constructor() { + super(...arguments); + this._reader = new async_1.default(this._settings); + } + async read(task) { + const root = this._getRootDirectory(task); + const options = this._getReaderOptions(task); + const entries = await this.api(root, task, options); + return entries.map((entry) => options.transform(entry)); + } + api(root, task, options) { + if (task.dynamic) { + return this._reader.dynamic(root, options); + } + return this._reader.static(task.patterns, options); + } +} +exports.default = ProviderAsync; diff --git a/node_modules/fast-glob/out/providers/filters/deep.d.ts b/node_modules/fast-glob/out/providers/filters/deep.d.ts new file mode 100644 index 0000000..377fab8 --- /dev/null +++ b/node_modules/fast-glob/out/providers/filters/deep.d.ts @@ -0,0 +1,16 @@ +import { MicromatchOptions, EntryFilterFunction, Pattern } from '../../types'; +import Settings from '../../settings'; +export default class DeepFilter { + private readonly _settings; + private readonly _micromatchOptions; + constructor(_settings: Settings, _micromatchOptions: MicromatchOptions); + getFilter(basePath: string, positive: Pattern[], negative: Pattern[]): EntryFilterFunction; + private _getMatcher; + private _getNegativePatternsRe; + private _filter; + private _isSkippedByDeep; + private _getEntryLevel; + private _isSkippedSymbolicLink; + private _isSkippedByPositivePatterns; + private _isSkippedByNegativePatterns; +} diff --git a/node_modules/fast-glob/out/providers/filters/deep.js b/node_modules/fast-glob/out/providers/filters/deep.js new file mode 100644 index 0000000..644bf41 --- /dev/null +++ b/node_modules/fast-glob/out/providers/filters/deep.js @@ -0,0 +1,62 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils = require("../../utils"); +const partial_1 = require("../matchers/partial"); +class DeepFilter { + constructor(_settings, _micromatchOptions) { + this._settings = _settings; + this._micromatchOptions = _micromatchOptions; + } + getFilter(basePath, positive, negative) { + const matcher = this._getMatcher(positive); + const negativeRe = this._getNegativePatternsRe(negative); + return (entry) => this._filter(basePath, entry, matcher, negativeRe); + } + _getMatcher(patterns) { + return new partial_1.default(patterns, this._settings, this._micromatchOptions); + } + _getNegativePatternsRe(patterns) { + const affectDepthOfReadingPatterns = patterns.filter(utils.pattern.isAffectDepthOfReadingPattern); + return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions); + } + _filter(basePath, entry, matcher, negativeRe) { + if (this._isSkippedByDeep(basePath, entry.path)) { + return false; + } + if (this._isSkippedSymbolicLink(entry)) { + return false; + } + const filepath = utils.path.removeLeadingDotSegment(entry.path); + if (this._isSkippedByPositivePatterns(filepath, matcher)) { + return false; + } + return this._isSkippedByNegativePatterns(filepath, negativeRe); + } + _isSkippedByDeep(basePath, entryPath) { + /** + * Avoid unnecessary depth calculations when it doesn't matter. + */ + if (this._settings.deep === Infinity) { + return false; + } + return this._getEntryLevel(basePath, entryPath) >= this._settings.deep; + } + _getEntryLevel(basePath, entryPath) { + const entryPathDepth = entryPath.split('/').length; + if (basePath === '') { + return entryPathDepth; + } + const basePathDepth = basePath.split('/').length; + return entryPathDepth - basePathDepth; + } + _isSkippedSymbolicLink(entry) { + return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink(); + } + _isSkippedByPositivePatterns(entryPath, matcher) { + return !this._settings.baseNameMatch && !matcher.match(entryPath); + } + _isSkippedByNegativePatterns(entryPath, patternsRe) { + return !utils.pattern.matchAny(entryPath, patternsRe); + } +} +exports.default = DeepFilter; diff --git a/node_modules/fast-glob/out/providers/filters/entry.d.ts b/node_modules/fast-glob/out/providers/filters/entry.d.ts new file mode 100644 index 0000000..ee71281 --- /dev/null +++ b/node_modules/fast-glob/out/providers/filters/entry.d.ts @@ -0,0 +1,16 @@ +import Settings from '../../settings'; +import { EntryFilterFunction, MicromatchOptions, Pattern } from '../../types'; +export default class EntryFilter { + private readonly _settings; + private readonly _micromatchOptions; + readonly index: Map; + constructor(_settings: Settings, _micromatchOptions: MicromatchOptions); + getFilter(positive: Pattern[], negative: Pattern[]): EntryFilterFunction; + private _filter; + private _isDuplicateEntry; + private _createIndexRecord; + private _onlyFileFilter; + private _onlyDirectoryFilter; + private _isSkippedByAbsoluteNegativePatterns; + private _isMatchToPatterns; +} diff --git a/node_modules/fast-glob/out/providers/filters/entry.js b/node_modules/fast-glob/out/providers/filters/entry.js new file mode 100644 index 0000000..361a7b4 --- /dev/null +++ b/node_modules/fast-glob/out/providers/filters/entry.js @@ -0,0 +1,63 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils = require("../../utils"); +class EntryFilter { + constructor(_settings, _micromatchOptions) { + this._settings = _settings; + this._micromatchOptions = _micromatchOptions; + this.index = new Map(); + } + getFilter(positive, negative) { + const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions); + const negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })); + return (entry) => this._filter(entry, positiveRe, negativeRe); + } + _filter(entry, positiveRe, negativeRe) { + const filepath = utils.path.removeLeadingDotSegment(entry.path); + if (this._settings.unique && this._isDuplicateEntry(filepath)) { + return false; + } + if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) { + return false; + } + if (this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe)) { + return false; + } + const isDirectory = entry.dirent.isDirectory(); + const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory); + if (this._settings.unique && isMatched) { + this._createIndexRecord(filepath); + } + return isMatched; + } + _isDuplicateEntry(filepath) { + return this.index.has(filepath); + } + _createIndexRecord(filepath) { + this.index.set(filepath, undefined); + } + _onlyFileFilter(entry) { + return this._settings.onlyFiles && !entry.dirent.isFile(); + } + _onlyDirectoryFilter(entry) { + return this._settings.onlyDirectories && !entry.dirent.isDirectory(); + } + _isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) { + if (!this._settings.absolute) { + return false; + } + const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath); + return utils.pattern.matchAny(fullpath, patternsRe); + } + _isMatchToPatterns(filepath, patternsRe, isDirectory) { + // Trying to match files and directories by patterns. + const isMatched = utils.pattern.matchAny(filepath, patternsRe); + // A pattern with a trailling slash can be used for directory matching. + // To apply such pattern, we need to add a tralling slash to the path. + if (!isMatched && isDirectory) { + return utils.pattern.matchAny(filepath + '/', patternsRe); + } + return isMatched; + } +} +exports.default = EntryFilter; diff --git a/node_modules/fast-glob/out/providers/filters/error.d.ts b/node_modules/fast-glob/out/providers/filters/error.d.ts new file mode 100644 index 0000000..170eb25 --- /dev/null +++ b/node_modules/fast-glob/out/providers/filters/error.d.ts @@ -0,0 +1,8 @@ +import Settings from '../../settings'; +import { ErrorFilterFunction } from '../../types'; +export default class ErrorFilter { + private readonly _settings; + constructor(_settings: Settings); + getFilter(): ErrorFilterFunction; + private _isNonFatalError; +} diff --git a/node_modules/fast-glob/out/providers/filters/error.js b/node_modules/fast-glob/out/providers/filters/error.js new file mode 100644 index 0000000..1c6f241 --- /dev/null +++ b/node_modules/fast-glob/out/providers/filters/error.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils = require("../../utils"); +class ErrorFilter { + constructor(_settings) { + this._settings = _settings; + } + getFilter() { + return (error) => this._isNonFatalError(error); + } + _isNonFatalError(error) { + return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors; + } +} +exports.default = ErrorFilter; diff --git a/node_modules/fast-glob/out/providers/matchers/matcher.d.ts b/node_modules/fast-glob/out/providers/matchers/matcher.d.ts new file mode 100644 index 0000000..d04c232 --- /dev/null +++ b/node_modules/fast-glob/out/providers/matchers/matcher.d.ts @@ -0,0 +1,33 @@ +import { Pattern, MicromatchOptions, PatternRe } from '../../types'; +import Settings from '../../settings'; +export type PatternSegment = StaticPatternSegment | DynamicPatternSegment; +type StaticPatternSegment = { + dynamic: false; + pattern: Pattern; +}; +type DynamicPatternSegment = { + dynamic: true; + pattern: Pattern; + patternRe: PatternRe; +}; +export type PatternSection = PatternSegment[]; +export type PatternInfo = { + /** + * Indicates that the pattern has a globstar (more than a single section). + */ + complete: boolean; + pattern: Pattern; + segments: PatternSegment[]; + sections: PatternSection[]; +}; +export default abstract class Matcher { + private readonly _patterns; + private readonly _settings; + private readonly _micromatchOptions; + protected readonly _storage: PatternInfo[]; + constructor(_patterns: Pattern[], _settings: Settings, _micromatchOptions: MicromatchOptions); + private _fillStorage; + private _getPatternSegments; + private _splitSegmentsIntoSections; +} +export {}; diff --git a/node_modules/fast-glob/out/providers/matchers/matcher.js b/node_modules/fast-glob/out/providers/matchers/matcher.js new file mode 100644 index 0000000..eae67c9 --- /dev/null +++ b/node_modules/fast-glob/out/providers/matchers/matcher.js @@ -0,0 +1,45 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils = require("../../utils"); +class Matcher { + constructor(_patterns, _settings, _micromatchOptions) { + this._patterns = _patterns; + this._settings = _settings; + this._micromatchOptions = _micromatchOptions; + this._storage = []; + this._fillStorage(); + } + _fillStorage() { + for (const pattern of this._patterns) { + const segments = this._getPatternSegments(pattern); + const sections = this._splitSegmentsIntoSections(segments); + this._storage.push({ + complete: sections.length <= 1, + pattern, + segments, + sections + }); + } + } + _getPatternSegments(pattern) { + const parts = utils.pattern.getPatternParts(pattern, this._micromatchOptions); + return parts.map((part) => { + const dynamic = utils.pattern.isDynamicPattern(part, this._settings); + if (!dynamic) { + return { + dynamic: false, + pattern: part + }; + } + return { + dynamic: true, + pattern: part, + patternRe: utils.pattern.makeRe(part, this._micromatchOptions) + }; + }); + } + _splitSegmentsIntoSections(segments) { + return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern)); + } +} +exports.default = Matcher; diff --git a/node_modules/fast-glob/out/providers/matchers/partial.d.ts b/node_modules/fast-glob/out/providers/matchers/partial.d.ts new file mode 100644 index 0000000..91520f6 --- /dev/null +++ b/node_modules/fast-glob/out/providers/matchers/partial.d.ts @@ -0,0 +1,4 @@ +import Matcher from './matcher'; +export default class PartialMatcher extends Matcher { + match(filepath: string): boolean; +} diff --git a/node_modules/fast-glob/out/providers/matchers/partial.js b/node_modules/fast-glob/out/providers/matchers/partial.js new file mode 100644 index 0000000..1dfffeb --- /dev/null +++ b/node_modules/fast-glob/out/providers/matchers/partial.js @@ -0,0 +1,38 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const matcher_1 = require("./matcher"); +class PartialMatcher extends matcher_1.default { + match(filepath) { + const parts = filepath.split('/'); + const levels = parts.length; + const patterns = this._storage.filter((info) => !info.complete || info.segments.length > levels); + for (const pattern of patterns) { + const section = pattern.sections[0]; + /** + * In this case, the pattern has a globstar and we must read all directories unconditionally, + * but only if the level has reached the end of the first group. + * + * fixtures/{a,b}/** + * ^ true/false ^ always true + */ + if (!pattern.complete && levels > section.length) { + return true; + } + const match = parts.every((part, index) => { + const segment = pattern.segments[index]; + if (segment.dynamic && segment.patternRe.test(part)) { + return true; + } + if (!segment.dynamic && segment.pattern === part) { + return true; + } + return false; + }); + if (match) { + return true; + } + } + return false; + } +} +exports.default = PartialMatcher; diff --git a/node_modules/fast-glob/out/providers/provider.d.ts b/node_modules/fast-glob/out/providers/provider.d.ts new file mode 100644 index 0000000..1053460 --- /dev/null +++ b/node_modules/fast-glob/out/providers/provider.d.ts @@ -0,0 +1,19 @@ +import { Task } from '../managers/tasks'; +import Settings from '../settings'; +import { MicromatchOptions, ReaderOptions } from '../types'; +import DeepFilter from './filters/deep'; +import EntryFilter from './filters/entry'; +import ErrorFilter from './filters/error'; +import EntryTransformer from './transformers/entry'; +export default abstract class Provider { + protected readonly _settings: Settings; + readonly errorFilter: ErrorFilter; + readonly entryFilter: EntryFilter; + readonly deepFilter: DeepFilter; + readonly entryTransformer: EntryTransformer; + constructor(_settings: Settings); + abstract read(_task: Task): T; + protected _getRootDirectory(task: Task): string; + protected _getReaderOptions(task: Task): ReaderOptions; + protected _getMicromatchOptions(): MicromatchOptions; +} diff --git a/node_modules/fast-glob/out/providers/provider.js b/node_modules/fast-glob/out/providers/provider.js new file mode 100644 index 0000000..da88ee0 --- /dev/null +++ b/node_modules/fast-glob/out/providers/provider.js @@ -0,0 +1,48 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const path = require("path"); +const deep_1 = require("./filters/deep"); +const entry_1 = require("./filters/entry"); +const error_1 = require("./filters/error"); +const entry_2 = require("./transformers/entry"); +class Provider { + constructor(_settings) { + this._settings = _settings; + this.errorFilter = new error_1.default(this._settings); + this.entryFilter = new entry_1.default(this._settings, this._getMicromatchOptions()); + this.deepFilter = new deep_1.default(this._settings, this._getMicromatchOptions()); + this.entryTransformer = new entry_2.default(this._settings); + } + _getRootDirectory(task) { + return path.resolve(this._settings.cwd, task.base); + } + _getReaderOptions(task) { + const basePath = task.base === '.' ? '' : task.base; + return { + basePath, + pathSegmentSeparator: '/', + concurrency: this._settings.concurrency, + deepFilter: this.deepFilter.getFilter(basePath, task.positive, task.negative), + entryFilter: this.entryFilter.getFilter(task.positive, task.negative), + errorFilter: this.errorFilter.getFilter(), + followSymbolicLinks: this._settings.followSymbolicLinks, + fs: this._settings.fs, + stats: this._settings.stats, + throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink, + transform: this.entryTransformer.getTransformer() + }; + } + _getMicromatchOptions() { + return { + dot: this._settings.dot, + matchBase: this._settings.baseNameMatch, + nobrace: !this._settings.braceExpansion, + nocase: !this._settings.caseSensitiveMatch, + noext: !this._settings.extglob, + noglobstar: !this._settings.globstar, + posix: true, + strictSlashes: false + }; + } +} +exports.default = Provider; diff --git a/node_modules/fast-glob/out/providers/stream.d.ts b/node_modules/fast-glob/out/providers/stream.d.ts new file mode 100644 index 0000000..3d02a1f --- /dev/null +++ b/node_modules/fast-glob/out/providers/stream.d.ts @@ -0,0 +1,11 @@ +/// +import { Readable } from 'stream'; +import { Task } from '../managers/tasks'; +import ReaderStream from '../readers/stream'; +import { ReaderOptions } from '../types'; +import Provider from './provider'; +export default class ProviderStream extends Provider { + protected _reader: ReaderStream; + read(task: Task): Readable; + api(root: string, task: Task, options: ReaderOptions): Readable; +} diff --git a/node_modules/fast-glob/out/providers/stream.js b/node_modules/fast-glob/out/providers/stream.js new file mode 100644 index 0000000..85da62e --- /dev/null +++ b/node_modules/fast-glob/out/providers/stream.js @@ -0,0 +1,31 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const stream_1 = require("stream"); +const stream_2 = require("../readers/stream"); +const provider_1 = require("./provider"); +class ProviderStream extends provider_1.default { + constructor() { + super(...arguments); + this._reader = new stream_2.default(this._settings); + } + read(task) { + const root = this._getRootDirectory(task); + const options = this._getReaderOptions(task); + const source = this.api(root, task, options); + const destination = new stream_1.Readable({ objectMode: true, read: () => { } }); + source + .once('error', (error) => destination.emit('error', error)) + .on('data', (entry) => destination.emit('data', options.transform(entry))) + .once('end', () => destination.emit('end')); + destination + .once('close', () => source.destroy()); + return destination; + } + api(root, task, options) { + if (task.dynamic) { + return this._reader.dynamic(root, options); + } + return this._reader.static(task.patterns, options); + } +} +exports.default = ProviderStream; diff --git a/node_modules/fast-glob/out/providers/sync.d.ts b/node_modules/fast-glob/out/providers/sync.d.ts new file mode 100644 index 0000000..9c0fe1e --- /dev/null +++ b/node_modules/fast-glob/out/providers/sync.d.ts @@ -0,0 +1,9 @@ +import { Task } from '../managers/tasks'; +import ReaderSync from '../readers/sync'; +import { Entry, EntryItem, ReaderOptions } from '../types'; +import Provider from './provider'; +export default class ProviderSync extends Provider { + protected _reader: ReaderSync; + read(task: Task): EntryItem[]; + api(root: string, task: Task, options: ReaderOptions): Entry[]; +} diff --git a/node_modules/fast-glob/out/providers/sync.js b/node_modules/fast-glob/out/providers/sync.js new file mode 100644 index 0000000..d70aa1b --- /dev/null +++ b/node_modules/fast-glob/out/providers/sync.js @@ -0,0 +1,23 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const sync_1 = require("../readers/sync"); +const provider_1 = require("./provider"); +class ProviderSync extends provider_1.default { + constructor() { + super(...arguments); + this._reader = new sync_1.default(this._settings); + } + read(task) { + const root = this._getRootDirectory(task); + const options = this._getReaderOptions(task); + const entries = this.api(root, task, options); + return entries.map(options.transform); + } + api(root, task, options) { + if (task.dynamic) { + return this._reader.dynamic(root, options); + } + return this._reader.static(task.patterns, options); + } +} +exports.default = ProviderSync; diff --git a/node_modules/fast-glob/out/providers/transformers/entry.d.ts b/node_modules/fast-glob/out/providers/transformers/entry.d.ts new file mode 100644 index 0000000..e9b85fa --- /dev/null +++ b/node_modules/fast-glob/out/providers/transformers/entry.d.ts @@ -0,0 +1,8 @@ +import Settings from '../../settings'; +import { EntryTransformerFunction } from '../../types'; +export default class EntryTransformer { + private readonly _settings; + constructor(_settings: Settings); + getTransformer(): EntryTransformerFunction; + private _transform; +} diff --git a/node_modules/fast-glob/out/providers/transformers/entry.js b/node_modules/fast-glob/out/providers/transformers/entry.js new file mode 100644 index 0000000..d11903c --- /dev/null +++ b/node_modules/fast-glob/out/providers/transformers/entry.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils = require("../../utils"); +class EntryTransformer { + constructor(_settings) { + this._settings = _settings; + } + getTransformer() { + return (entry) => this._transform(entry); + } + _transform(entry) { + let filepath = entry.path; + if (this._settings.absolute) { + filepath = utils.path.makeAbsolute(this._settings.cwd, filepath); + filepath = utils.path.unixify(filepath); + } + if (this._settings.markDirectories && entry.dirent.isDirectory()) { + filepath += '/'; + } + if (!this._settings.objectMode) { + return filepath; + } + return Object.assign(Object.assign({}, entry), { path: filepath }); + } +} +exports.default = EntryTransformer; diff --git a/node_modules/fast-glob/out/readers/async.d.ts b/node_modules/fast-glob/out/readers/async.d.ts new file mode 100644 index 0000000..fbca428 --- /dev/null +++ b/node_modules/fast-glob/out/readers/async.d.ts @@ -0,0 +1,10 @@ +import * as fsWalk from '@nodelib/fs.walk'; +import { Entry, ReaderOptions, Pattern } from '../types'; +import Reader from './reader'; +import ReaderStream from './stream'; +export default class ReaderAsync extends Reader> { + protected _walkAsync: typeof fsWalk.walk; + protected _readerStream: ReaderStream; + dynamic(root: string, options: ReaderOptions): Promise; + static(patterns: Pattern[], options: ReaderOptions): Promise; +} diff --git a/node_modules/fast-glob/out/readers/async.js b/node_modules/fast-glob/out/readers/async.js new file mode 100644 index 0000000..d024145 --- /dev/null +++ b/node_modules/fast-glob/out/readers/async.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fsWalk = require("@nodelib/fs.walk"); +const reader_1 = require("./reader"); +const stream_1 = require("./stream"); +class ReaderAsync extends reader_1.default { + constructor() { + super(...arguments); + this._walkAsync = fsWalk.walk; + this._readerStream = new stream_1.default(this._settings); + } + dynamic(root, options) { + return new Promise((resolve, reject) => { + this._walkAsync(root, options, (error, entries) => { + if (error === null) { + resolve(entries); + } + else { + reject(error); + } + }); + }); + } + async static(patterns, options) { + const entries = []; + const stream = this._readerStream.static(patterns, options); + // After #235, replace it with an asynchronous iterator. + return new Promise((resolve, reject) => { + stream.once('error', reject); + stream.on('data', (entry) => entries.push(entry)); + stream.once('end', () => resolve(entries)); + }); + } +} +exports.default = ReaderAsync; diff --git a/node_modules/fast-glob/out/readers/reader.d.ts b/node_modules/fast-glob/out/readers/reader.d.ts new file mode 100644 index 0000000..2af16b6 --- /dev/null +++ b/node_modules/fast-glob/out/readers/reader.d.ts @@ -0,0 +1,15 @@ +/// +import * as fs from 'fs'; +import * as fsStat from '@nodelib/fs.stat'; +import Settings from '../settings'; +import { Entry, ErrnoException, Pattern, ReaderOptions } from '../types'; +export default abstract class Reader { + protected readonly _settings: Settings; + protected readonly _fsStatSettings: fsStat.Settings; + constructor(_settings: Settings); + abstract dynamic(root: string, options: ReaderOptions): T; + abstract static(patterns: Pattern[], options: ReaderOptions): T; + protected _getFullEntryPath(filepath: string): string; + protected _makeEntry(stats: fs.Stats, pattern: Pattern): Entry; + protected _isFatalError(error: ErrnoException): boolean; +} diff --git a/node_modules/fast-glob/out/readers/reader.js b/node_modules/fast-glob/out/readers/reader.js new file mode 100644 index 0000000..7b40255 --- /dev/null +++ b/node_modules/fast-glob/out/readers/reader.js @@ -0,0 +1,33 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const path = require("path"); +const fsStat = require("@nodelib/fs.stat"); +const utils = require("../utils"); +class Reader { + constructor(_settings) { + this._settings = _settings; + this._fsStatSettings = new fsStat.Settings({ + followSymbolicLink: this._settings.followSymbolicLinks, + fs: this._settings.fs, + throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks + }); + } + _getFullEntryPath(filepath) { + return path.resolve(this._settings.cwd, filepath); + } + _makeEntry(stats, pattern) { + const entry = { + name: pattern, + path: pattern, + dirent: utils.fs.createDirentFromStats(pattern, stats) + }; + if (this._settings.stats) { + entry.stats = stats; + } + return entry; + } + _isFatalError(error) { + return !utils.errno.isEnoentCodeError(error) && !this._settings.suppressErrors; + } +} +exports.default = Reader; diff --git a/node_modules/fast-glob/out/readers/stream.d.ts b/node_modules/fast-glob/out/readers/stream.d.ts new file mode 100644 index 0000000..1c74cac --- /dev/null +++ b/node_modules/fast-glob/out/readers/stream.d.ts @@ -0,0 +1,14 @@ +/// +import { Readable } from 'stream'; +import * as fsStat from '@nodelib/fs.stat'; +import * as fsWalk from '@nodelib/fs.walk'; +import { Pattern, ReaderOptions } from '../types'; +import Reader from './reader'; +export default class ReaderStream extends Reader { + protected _walkStream: typeof fsWalk.walkStream; + protected _stat: typeof fsStat.stat; + dynamic(root: string, options: ReaderOptions): Readable; + static(patterns: Pattern[], options: ReaderOptions): Readable; + private _getEntry; + private _getStat; +} diff --git a/node_modules/fast-glob/out/readers/stream.js b/node_modules/fast-glob/out/readers/stream.js new file mode 100644 index 0000000..317c6d5 --- /dev/null +++ b/node_modules/fast-glob/out/readers/stream.js @@ -0,0 +1,55 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const stream_1 = require("stream"); +const fsStat = require("@nodelib/fs.stat"); +const fsWalk = require("@nodelib/fs.walk"); +const reader_1 = require("./reader"); +class ReaderStream extends reader_1.default { + constructor() { + super(...arguments); + this._walkStream = fsWalk.walkStream; + this._stat = fsStat.stat; + } + dynamic(root, options) { + return this._walkStream(root, options); + } + static(patterns, options) { + const filepaths = patterns.map(this._getFullEntryPath, this); + const stream = new stream_1.PassThrough({ objectMode: true }); + stream._write = (index, _enc, done) => { + return this._getEntry(filepaths[index], patterns[index], options) + .then((entry) => { + if (entry !== null && options.entryFilter(entry)) { + stream.push(entry); + } + if (index === filepaths.length - 1) { + stream.end(); + } + done(); + }) + .catch(done); + }; + for (let i = 0; i < filepaths.length; i++) { + stream.write(i); + } + return stream; + } + _getEntry(filepath, pattern, options) { + return this._getStat(filepath) + .then((stats) => this._makeEntry(stats, pattern)) + .catch((error) => { + if (options.errorFilter(error)) { + return null; + } + throw error; + }); + } + _getStat(filepath) { + return new Promise((resolve, reject) => { + this._stat(filepath, this._fsStatSettings, (error, stats) => { + return error === null ? resolve(stats) : reject(error); + }); + }); + } +} +exports.default = ReaderStream; diff --git a/node_modules/fast-glob/out/readers/sync.d.ts b/node_modules/fast-glob/out/readers/sync.d.ts new file mode 100644 index 0000000..c96ffee --- /dev/null +++ b/node_modules/fast-glob/out/readers/sync.d.ts @@ -0,0 +1,12 @@ +import * as fsStat from '@nodelib/fs.stat'; +import * as fsWalk from '@nodelib/fs.walk'; +import { Entry, Pattern, ReaderOptions } from '../types'; +import Reader from './reader'; +export default class ReaderSync extends Reader { + protected _walkSync: typeof fsWalk.walkSync; + protected _statSync: typeof fsStat.statSync; + dynamic(root: string, options: ReaderOptions): Entry[]; + static(patterns: Pattern[], options: ReaderOptions): Entry[]; + private _getEntry; + private _getStat; +} diff --git a/node_modules/fast-glob/out/readers/sync.js b/node_modules/fast-glob/out/readers/sync.js new file mode 100644 index 0000000..4704d65 --- /dev/null +++ b/node_modules/fast-glob/out/readers/sync.js @@ -0,0 +1,43 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fsStat = require("@nodelib/fs.stat"); +const fsWalk = require("@nodelib/fs.walk"); +const reader_1 = require("./reader"); +class ReaderSync extends reader_1.default { + constructor() { + super(...arguments); + this._walkSync = fsWalk.walkSync; + this._statSync = fsStat.statSync; + } + dynamic(root, options) { + return this._walkSync(root, options); + } + static(patterns, options) { + const entries = []; + for (const pattern of patterns) { + const filepath = this._getFullEntryPath(pattern); + const entry = this._getEntry(filepath, pattern, options); + if (entry === null || !options.entryFilter(entry)) { + continue; + } + entries.push(entry); + } + return entries; + } + _getEntry(filepath, pattern, options) { + try { + const stats = this._getStat(filepath); + return this._makeEntry(stats, pattern); + } + catch (error) { + if (options.errorFilter(error)) { + return null; + } + throw error; + } + } + _getStat(filepath) { + return this._statSync(filepath, this._fsStatSettings); + } +} +exports.default = ReaderSync; diff --git a/node_modules/fast-glob/out/settings.d.ts b/node_modules/fast-glob/out/settings.d.ts new file mode 100644 index 0000000..76a74f8 --- /dev/null +++ b/node_modules/fast-glob/out/settings.d.ts @@ -0,0 +1,164 @@ +import { FileSystemAdapter, Pattern } from './types'; +export declare const DEFAULT_FILE_SYSTEM_ADAPTER: FileSystemAdapter; +export type Options = { + /** + * Return the absolute path for entries. + * + * @default false + */ + absolute?: boolean; + /** + * If set to `true`, then patterns without slashes will be matched against + * the basename of the path if it contains slashes. + * + * @default false + */ + baseNameMatch?: boolean; + /** + * Enables Bash-like brace expansion. + * + * @default true + */ + braceExpansion?: boolean; + /** + * Enables a case-sensitive mode for matching files. + * + * @default true + */ + caseSensitiveMatch?: boolean; + /** + * Specifies the maximum number of concurrent requests from a reader to read + * directories. + * + * @default os.cpus().length + */ + concurrency?: number; + /** + * The current working directory in which to search. + * + * @default process.cwd() + */ + cwd?: string; + /** + * Specifies the maximum depth of a read directory relative to the start + * directory. + * + * @default Infinity + */ + deep?: number; + /** + * Allow patterns to match entries that begin with a period (`.`). + * + * @default false + */ + dot?: boolean; + /** + * Enables Bash-like `extglob` functionality. + * + * @default true + */ + extglob?: boolean; + /** + * Indicates whether to traverse descendants of symbolic link directories. + * + * @default true + */ + followSymbolicLinks?: boolean; + /** + * Custom implementation of methods for working with the file system. + * + * @default fs.* + */ + fs?: Partial; + /** + * Enables recursively repeats a pattern containing `**`. + * If `false`, `**` behaves exactly like `*`. + * + * @default true + */ + globstar?: boolean; + /** + * An array of glob patterns to exclude matches. + * This is an alternative way to use negative patterns. + * + * @default [] + */ + ignore?: Pattern[]; + /** + * Mark the directory path with the final slash. + * + * @default false + */ + markDirectories?: boolean; + /** + * Returns objects (instead of strings) describing entries. + * + * @default false + */ + objectMode?: boolean; + /** + * Return only directories. + * + * @default false + */ + onlyDirectories?: boolean; + /** + * Return only files. + * + * @default true + */ + onlyFiles?: boolean; + /** + * Enables an object mode (`objectMode`) with an additional `stats` field. + * + * @default false + */ + stats?: boolean; + /** + * By default this package suppress only `ENOENT` errors. + * Set to `true` to suppress any error. + * + * @default false + */ + suppressErrors?: boolean; + /** + * Throw an error when symbolic link is broken if `true` or safely + * return `lstat` call if `false`. + * + * @default false + */ + throwErrorOnBrokenSymbolicLink?: boolean; + /** + * Ensures that the returned entries are unique. + * + * @default true + */ + unique?: boolean; +}; +export default class Settings { + private readonly _options; + readonly absolute: boolean; + readonly baseNameMatch: boolean; + readonly braceExpansion: boolean; + readonly caseSensitiveMatch: boolean; + readonly concurrency: number; + readonly cwd: string; + readonly deep: number; + readonly dot: boolean; + readonly extglob: boolean; + readonly followSymbolicLinks: boolean; + readonly fs: FileSystemAdapter; + readonly globstar: boolean; + readonly ignore: Pattern[]; + readonly markDirectories: boolean; + readonly objectMode: boolean; + readonly onlyDirectories: boolean; + readonly onlyFiles: boolean; + readonly stats: boolean; + readonly suppressErrors: boolean; + readonly throwErrorOnBrokenSymbolicLink: boolean; + readonly unique: boolean; + constructor(_options?: Options); + private _getValue; + private _getFileSystemMethods; +} diff --git a/node_modules/fast-glob/out/settings.js b/node_modules/fast-glob/out/settings.js new file mode 100644 index 0000000..23f916c --- /dev/null +++ b/node_modules/fast-glob/out/settings.js @@ -0,0 +1,59 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0; +const fs = require("fs"); +const os = require("os"); +/** + * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero. + * https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107 + */ +const CPU_COUNT = Math.max(os.cpus().length, 1); +exports.DEFAULT_FILE_SYSTEM_ADAPTER = { + lstat: fs.lstat, + lstatSync: fs.lstatSync, + stat: fs.stat, + statSync: fs.statSync, + readdir: fs.readdir, + readdirSync: fs.readdirSync +}; +class Settings { + constructor(_options = {}) { + this._options = _options; + this.absolute = this._getValue(this._options.absolute, false); + this.baseNameMatch = this._getValue(this._options.baseNameMatch, false); + this.braceExpansion = this._getValue(this._options.braceExpansion, true); + this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, true); + this.concurrency = this._getValue(this._options.concurrency, CPU_COUNT); + this.cwd = this._getValue(this._options.cwd, process.cwd()); + this.deep = this._getValue(this._options.deep, Infinity); + this.dot = this._getValue(this._options.dot, false); + this.extglob = this._getValue(this._options.extglob, true); + this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, true); + this.fs = this._getFileSystemMethods(this._options.fs); + this.globstar = this._getValue(this._options.globstar, true); + this.ignore = this._getValue(this._options.ignore, []); + this.markDirectories = this._getValue(this._options.markDirectories, false); + this.objectMode = this._getValue(this._options.objectMode, false); + this.onlyDirectories = this._getValue(this._options.onlyDirectories, false); + this.onlyFiles = this._getValue(this._options.onlyFiles, true); + this.stats = this._getValue(this._options.stats, false); + this.suppressErrors = this._getValue(this._options.suppressErrors, false); + this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, false); + this.unique = this._getValue(this._options.unique, true); + if (this.onlyDirectories) { + this.onlyFiles = false; + } + if (this.stats) { + this.objectMode = true; + } + // Remove the cast to the array in the next major (#404). + this.ignore = [].concat(this.ignore); + } + _getValue(option, value) { + return option === undefined ? value : option; + } + _getFileSystemMethods(methods = {}) { + return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods); + } +} +exports.default = Settings; diff --git a/node_modules/fast-glob/out/types/index.d.ts b/node_modules/fast-glob/out/types/index.d.ts new file mode 100644 index 0000000..6506caf --- /dev/null +++ b/node_modules/fast-glob/out/types/index.d.ts @@ -0,0 +1,31 @@ +/// +import * as fsWalk from '@nodelib/fs.walk'; +export type ErrnoException = NodeJS.ErrnoException; +export type Entry = fsWalk.Entry; +export type EntryItem = string | Entry; +export type Pattern = string; +export type PatternRe = RegExp; +export type PatternsGroup = Record; +export type ReaderOptions = fsWalk.Options & { + transform(entry: Entry): EntryItem; + deepFilter: DeepFilterFunction; + entryFilter: EntryFilterFunction; + errorFilter: ErrorFilterFunction; + fs: FileSystemAdapter; + stats: boolean; +}; +export type ErrorFilterFunction = fsWalk.ErrorFilterFunction; +export type EntryFilterFunction = fsWalk.EntryFilterFunction; +export type DeepFilterFunction = fsWalk.DeepFilterFunction; +export type EntryTransformerFunction = (entry: Entry) => EntryItem; +export type MicromatchOptions = { + dot?: boolean; + matchBase?: boolean; + nobrace?: boolean; + nocase?: boolean; + noext?: boolean; + noglobstar?: boolean; + posix?: boolean; + strictSlashes?: boolean; +}; +export type FileSystemAdapter = fsWalk.FileSystemAdapter; diff --git a/node_modules/fast-glob/out/types/index.js b/node_modules/fast-glob/out/types/index.js new file mode 100644 index 0000000..c8ad2e5 --- /dev/null +++ b/node_modules/fast-glob/out/types/index.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/fast-glob/out/utils/array.d.ts b/node_modules/fast-glob/out/utils/array.d.ts new file mode 100644 index 0000000..98e7325 --- /dev/null +++ b/node_modules/fast-glob/out/utils/array.d.ts @@ -0,0 +1,2 @@ +export declare function flatten(items: T[][]): T[]; +export declare function splitWhen(items: T[], predicate: (item: T) => boolean): T[][]; diff --git a/node_modules/fast-glob/out/utils/array.js b/node_modules/fast-glob/out/utils/array.js new file mode 100644 index 0000000..50c406e --- /dev/null +++ b/node_modules/fast-glob/out/utils/array.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.splitWhen = exports.flatten = void 0; +function flatten(items) { + return items.reduce((collection, item) => [].concat(collection, item), []); +} +exports.flatten = flatten; +function splitWhen(items, predicate) { + const result = [[]]; + let groupIndex = 0; + for (const item of items) { + if (predicate(item)) { + groupIndex++; + result[groupIndex] = []; + } + else { + result[groupIndex].push(item); + } + } + return result; +} +exports.splitWhen = splitWhen; diff --git a/node_modules/fast-glob/out/utils/errno.d.ts b/node_modules/fast-glob/out/utils/errno.d.ts new file mode 100644 index 0000000..1c08d3b --- /dev/null +++ b/node_modules/fast-glob/out/utils/errno.d.ts @@ -0,0 +1,2 @@ +import { ErrnoException } from '../types'; +export declare function isEnoentCodeError(error: ErrnoException): boolean; diff --git a/node_modules/fast-glob/out/utils/errno.js b/node_modules/fast-glob/out/utils/errno.js new file mode 100644 index 0000000..f0bd801 --- /dev/null +++ b/node_modules/fast-glob/out/utils/errno.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isEnoentCodeError = void 0; +function isEnoentCodeError(error) { + return error.code === 'ENOENT'; +} +exports.isEnoentCodeError = isEnoentCodeError; diff --git a/node_modules/fast-glob/out/utils/fs.d.ts b/node_modules/fast-glob/out/utils/fs.d.ts new file mode 100644 index 0000000..64c61ce --- /dev/null +++ b/node_modules/fast-glob/out/utils/fs.d.ts @@ -0,0 +1,4 @@ +/// +import * as fs from 'fs'; +import { Dirent } from '@nodelib/fs.walk'; +export declare function createDirentFromStats(name: string, stats: fs.Stats): Dirent; diff --git a/node_modules/fast-glob/out/utils/fs.js b/node_modules/fast-glob/out/utils/fs.js new file mode 100644 index 0000000..ace7c74 --- /dev/null +++ b/node_modules/fast-glob/out/utils/fs.js @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDirentFromStats = void 0; +class DirentFromStats { + constructor(name, stats) { + this.name = name; + this.isBlockDevice = stats.isBlockDevice.bind(stats); + this.isCharacterDevice = stats.isCharacterDevice.bind(stats); + this.isDirectory = stats.isDirectory.bind(stats); + this.isFIFO = stats.isFIFO.bind(stats); + this.isFile = stats.isFile.bind(stats); + this.isSocket = stats.isSocket.bind(stats); + this.isSymbolicLink = stats.isSymbolicLink.bind(stats); + } +} +function createDirentFromStats(name, stats) { + return new DirentFromStats(name, stats); +} +exports.createDirentFromStats = createDirentFromStats; diff --git a/node_modules/fast-glob/out/utils/index.d.ts b/node_modules/fast-glob/out/utils/index.d.ts new file mode 100644 index 0000000..f634cad --- /dev/null +++ b/node_modules/fast-glob/out/utils/index.d.ts @@ -0,0 +1,8 @@ +import * as array from './array'; +import * as errno from './errno'; +import * as fs from './fs'; +import * as path from './path'; +import * as pattern from './pattern'; +import * as stream from './stream'; +import * as string from './string'; +export { array, errno, fs, path, pattern, stream, string }; diff --git a/node_modules/fast-glob/out/utils/index.js b/node_modules/fast-glob/out/utils/index.js new file mode 100644 index 0000000..0f92c16 --- /dev/null +++ b/node_modules/fast-glob/out/utils/index.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0; +const array = require("./array"); +exports.array = array; +const errno = require("./errno"); +exports.errno = errno; +const fs = require("./fs"); +exports.fs = fs; +const path = require("./path"); +exports.path = path; +const pattern = require("./pattern"); +exports.pattern = pattern; +const stream = require("./stream"); +exports.stream = stream; +const string = require("./string"); +exports.string = string; diff --git a/node_modules/fast-glob/out/utils/path.d.ts b/node_modules/fast-glob/out/utils/path.d.ts new file mode 100644 index 0000000..0b13f4b --- /dev/null +++ b/node_modules/fast-glob/out/utils/path.d.ts @@ -0,0 +1,13 @@ +import { Pattern } from '../types'; +/** + * Designed to work only with simple paths: `dir\\file`. + */ +export declare function unixify(filepath: string): string; +export declare function makeAbsolute(cwd: string, filepath: string): string; +export declare function removeLeadingDotSegment(entry: string): string; +export declare const escape: typeof escapeWindowsPath; +export declare function escapeWindowsPath(pattern: Pattern): Pattern; +export declare function escapePosixPath(pattern: Pattern): Pattern; +export declare const convertPathToPattern: typeof convertWindowsPathToPattern; +export declare function convertWindowsPathToPattern(filepath: string): Pattern; +export declare function convertPosixPathToPattern(filepath: string): Pattern; diff --git a/node_modules/fast-glob/out/utils/path.js b/node_modules/fast-glob/out/utils/path.js new file mode 100644 index 0000000..7b53b39 --- /dev/null +++ b/node_modules/fast-glob/out/utils/path.js @@ -0,0 +1,68 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0; +const os = require("os"); +const path = require("path"); +const IS_WINDOWS_PLATFORM = os.platform() === 'win32'; +const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; // ./ or .\\ +/** + * All non-escaped special characters. + * Posix: ()*?[]{|}, !+@ before (, ! at the beginning, \\ before non-special characters. + * Windows: (){}[], !+@ before (, ! at the beginning. + */ +const POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g; +const WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g; +/** + * The device path (\\.\ or \\?\). + * https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#dos-device-paths + */ +const DOS_DEVICE_PATH_RE = /^\\\\([.?])/; +/** + * All backslashes except those escaping special characters. + * Windows: !()+@{} + * https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions + */ +const WINDOWS_BACKSLASHES_RE = /\\(?![!()+@[\]{}])/g; +/** + * Designed to work only with simple paths: `dir\\file`. + */ +function unixify(filepath) { + return filepath.replace(/\\/g, '/'); +} +exports.unixify = unixify; +function makeAbsolute(cwd, filepath) { + return path.resolve(cwd, filepath); +} +exports.makeAbsolute = makeAbsolute; +function removeLeadingDotSegment(entry) { + // We do not use `startsWith` because this is 10x slower than current implementation for some cases. + // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with + if (entry.charAt(0) === '.') { + const secondCharactery = entry.charAt(1); + if (secondCharactery === '/' || secondCharactery === '\\') { + return entry.slice(LEADING_DOT_SEGMENT_CHARACTERS_COUNT); + } + } + return entry; +} +exports.removeLeadingDotSegment = removeLeadingDotSegment; +exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath; +function escapeWindowsPath(pattern) { + return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, '\\$2'); +} +exports.escapeWindowsPath = escapeWindowsPath; +function escapePosixPath(pattern) { + return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, '\\$2'); +} +exports.escapePosixPath = escapePosixPath; +exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern; +function convertWindowsPathToPattern(filepath) { + return escapeWindowsPath(filepath) + .replace(DOS_DEVICE_PATH_RE, '//$1') + .replace(WINDOWS_BACKSLASHES_RE, '/'); +} +exports.convertWindowsPathToPattern = convertWindowsPathToPattern; +function convertPosixPathToPattern(filepath) { + return escapePosixPath(filepath); +} +exports.convertPosixPathToPattern = convertPosixPathToPattern; diff --git a/node_modules/fast-glob/out/utils/pattern.d.ts b/node_modules/fast-glob/out/utils/pattern.d.ts new file mode 100644 index 0000000..e7ff07b --- /dev/null +++ b/node_modules/fast-glob/out/utils/pattern.d.ts @@ -0,0 +1,47 @@ +import { MicromatchOptions, Pattern, PatternRe } from '../types'; +type PatternTypeOptions = { + braceExpansion?: boolean; + caseSensitiveMatch?: boolean; + extglob?: boolean; +}; +export declare function isStaticPattern(pattern: Pattern, options?: PatternTypeOptions): boolean; +export declare function isDynamicPattern(pattern: Pattern, options?: PatternTypeOptions): boolean; +export declare function convertToPositivePattern(pattern: Pattern): Pattern; +export declare function convertToNegativePattern(pattern: Pattern): Pattern; +export declare function isNegativePattern(pattern: Pattern): boolean; +export declare function isPositivePattern(pattern: Pattern): boolean; +export declare function getNegativePatterns(patterns: Pattern[]): Pattern[]; +export declare function getPositivePatterns(patterns: Pattern[]): Pattern[]; +/** + * Returns patterns that can be applied inside the current directory. + * + * @example + * // ['./*', '*', 'a/*'] + * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*']) + */ +export declare function getPatternsInsideCurrentDirectory(patterns: Pattern[]): Pattern[]; +/** + * Returns patterns to be expanded relative to (outside) the current directory. + * + * @example + * // ['../*', './../*'] + * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*']) + */ +export declare function getPatternsOutsideCurrentDirectory(patterns: Pattern[]): Pattern[]; +export declare function isPatternRelatedToParentDirectory(pattern: Pattern): boolean; +export declare function getBaseDirectory(pattern: Pattern): string; +export declare function hasGlobStar(pattern: Pattern): boolean; +export declare function endsWithSlashGlobStar(pattern: Pattern): boolean; +export declare function isAffectDepthOfReadingPattern(pattern: Pattern): boolean; +export declare function expandPatternsWithBraceExpansion(patterns: Pattern[]): Pattern[]; +export declare function expandBraceExpansion(pattern: Pattern): Pattern[]; +export declare function getPatternParts(pattern: Pattern, options: MicromatchOptions): Pattern[]; +export declare function makeRe(pattern: Pattern, options: MicromatchOptions): PatternRe; +export declare function convertPatternsToRe(patterns: Pattern[], options: MicromatchOptions): PatternRe[]; +export declare function matchAny(entry: string, patternsRe: PatternRe[]): boolean; +/** + * This package only works with forward slashes as a path separator. + * Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes. + */ +export declare function removeDuplicateSlashes(pattern: string): string; +export {}; diff --git a/node_modules/fast-glob/out/utils/pattern.js b/node_modules/fast-glob/out/utils/pattern.js new file mode 100644 index 0000000..d7d4e91 --- /dev/null +++ b/node_modules/fast-glob/out/utils/pattern.js @@ -0,0 +1,188 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0; +const path = require("path"); +const globParent = require("glob-parent"); +const micromatch = require("micromatch"); +const GLOBSTAR = '**'; +const ESCAPE_SYMBOL = '\\'; +const COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/; +const REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[[^[]*]/; +const REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/; +const GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/; +const BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./; +/** + * Matches a sequence of two or more consecutive slashes, excluding the first two slashes at the beginning of the string. + * The latter is due to the presence of the device path at the beginning of the UNC path. + */ +const DOUBLE_SLASH_RE = /(?!^)\/{2,}/g; +function isStaticPattern(pattern, options = {}) { + return !isDynamicPattern(pattern, options); +} +exports.isStaticPattern = isStaticPattern; +function isDynamicPattern(pattern, options = {}) { + /** + * A special case with an empty string is necessary for matching patterns that start with a forward slash. + * An empty string cannot be a dynamic pattern. + * For example, the pattern `/lib/*` will be spread into parts: '', 'lib', '*'. + */ + if (pattern === '') { + return false; + } + /** + * When the `caseSensitiveMatch` option is disabled, all patterns must be marked as dynamic, because we cannot check + * filepath directly (without read directory). + */ + if (options.caseSensitiveMatch === false || pattern.includes(ESCAPE_SYMBOL)) { + return true; + } + if (COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern)) { + return true; + } + if (options.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) { + return true; + } + if (options.braceExpansion !== false && hasBraceExpansion(pattern)) { + return true; + } + return false; +} +exports.isDynamicPattern = isDynamicPattern; +function hasBraceExpansion(pattern) { + const openingBraceIndex = pattern.indexOf('{'); + if (openingBraceIndex === -1) { + return false; + } + const closingBraceIndex = pattern.indexOf('}', openingBraceIndex + 1); + if (closingBraceIndex === -1) { + return false; + } + const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex); + return BRACE_EXPANSION_SEPARATORS_RE.test(braceContent); +} +function convertToPositivePattern(pattern) { + return isNegativePattern(pattern) ? pattern.slice(1) : pattern; +} +exports.convertToPositivePattern = convertToPositivePattern; +function convertToNegativePattern(pattern) { + return '!' + pattern; +} +exports.convertToNegativePattern = convertToNegativePattern; +function isNegativePattern(pattern) { + return pattern.startsWith('!') && pattern[1] !== '('; +} +exports.isNegativePattern = isNegativePattern; +function isPositivePattern(pattern) { + return !isNegativePattern(pattern); +} +exports.isPositivePattern = isPositivePattern; +function getNegativePatterns(patterns) { + return patterns.filter(isNegativePattern); +} +exports.getNegativePatterns = getNegativePatterns; +function getPositivePatterns(patterns) { + return patterns.filter(isPositivePattern); +} +exports.getPositivePatterns = getPositivePatterns; +/** + * Returns patterns that can be applied inside the current directory. + * + * @example + * // ['./*', '*', 'a/*'] + * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*']) + */ +function getPatternsInsideCurrentDirectory(patterns) { + return patterns.filter((pattern) => !isPatternRelatedToParentDirectory(pattern)); +} +exports.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory; +/** + * Returns patterns to be expanded relative to (outside) the current directory. + * + * @example + * // ['../*', './../*'] + * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*']) + */ +function getPatternsOutsideCurrentDirectory(patterns) { + return patterns.filter(isPatternRelatedToParentDirectory); +} +exports.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory; +function isPatternRelatedToParentDirectory(pattern) { + return pattern.startsWith('..') || pattern.startsWith('./..'); +} +exports.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory; +function getBaseDirectory(pattern) { + return globParent(pattern, { flipBackslashes: false }); +} +exports.getBaseDirectory = getBaseDirectory; +function hasGlobStar(pattern) { + return pattern.includes(GLOBSTAR); +} +exports.hasGlobStar = hasGlobStar; +function endsWithSlashGlobStar(pattern) { + return pattern.endsWith('/' + GLOBSTAR); +} +exports.endsWithSlashGlobStar = endsWithSlashGlobStar; +function isAffectDepthOfReadingPattern(pattern) { + const basename = path.basename(pattern); + return endsWithSlashGlobStar(pattern) || isStaticPattern(basename); +} +exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern; +function expandPatternsWithBraceExpansion(patterns) { + return patterns.reduce((collection, pattern) => { + return collection.concat(expandBraceExpansion(pattern)); + }, []); +} +exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion; +function expandBraceExpansion(pattern) { + const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true }); + /** + * Sort the patterns by length so that the same depth patterns are processed side by side. + * `a/{b,}/{c,}/*` – `['a///*', 'a/b//*', 'a//c/*', 'a/b/c/*']` + */ + patterns.sort((a, b) => a.length - b.length); + /** + * Micromatch can return an empty string in the case of patterns like `{a,}`. + */ + return patterns.filter((pattern) => pattern !== ''); +} +exports.expandBraceExpansion = expandBraceExpansion; +function getPatternParts(pattern, options) { + let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options), { parts: true })); + /** + * The scan method returns an empty array in some cases. + * See micromatch/picomatch#58 for more details. + */ + if (parts.length === 0) { + parts = [pattern]; + } + /** + * The scan method does not return an empty part for the pattern with a forward slash. + * This is another part of micromatch/picomatch#58. + */ + if (parts[0].startsWith('/')) { + parts[0] = parts[0].slice(1); + parts.unshift(''); + } + return parts; +} +exports.getPatternParts = getPatternParts; +function makeRe(pattern, options) { + return micromatch.makeRe(pattern, options); +} +exports.makeRe = makeRe; +function convertPatternsToRe(patterns, options) { + return patterns.map((pattern) => makeRe(pattern, options)); +} +exports.convertPatternsToRe = convertPatternsToRe; +function matchAny(entry, patternsRe) { + return patternsRe.some((patternRe) => patternRe.test(entry)); +} +exports.matchAny = matchAny; +/** + * This package only works with forward slashes as a path separator. + * Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes. + */ +function removeDuplicateSlashes(pattern) { + return pattern.replace(DOUBLE_SLASH_RE, '/'); +} +exports.removeDuplicateSlashes = removeDuplicateSlashes; diff --git a/node_modules/fast-glob/out/utils/stream.d.ts b/node_modules/fast-glob/out/utils/stream.d.ts new file mode 100644 index 0000000..4daf913 --- /dev/null +++ b/node_modules/fast-glob/out/utils/stream.d.ts @@ -0,0 +1,4 @@ +/// +/// +import { Readable } from 'stream'; +export declare function merge(streams: Readable[]): NodeJS.ReadableStream; diff --git a/node_modules/fast-glob/out/utils/stream.js b/node_modules/fast-glob/out/utils/stream.js new file mode 100644 index 0000000..b32028c --- /dev/null +++ b/node_modules/fast-glob/out/utils/stream.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.merge = void 0; +const merge2 = require("merge2"); +function merge(streams) { + const mergedStream = merge2(streams); + streams.forEach((stream) => { + stream.once('error', (error) => mergedStream.emit('error', error)); + }); + mergedStream.once('close', () => propagateCloseEventToSources(streams)); + mergedStream.once('end', () => propagateCloseEventToSources(streams)); + return mergedStream; +} +exports.merge = merge; +function propagateCloseEventToSources(streams) { + streams.forEach((stream) => stream.emit('close')); +} diff --git a/node_modules/fast-glob/out/utils/string.d.ts b/node_modules/fast-glob/out/utils/string.d.ts new file mode 100644 index 0000000..c884735 --- /dev/null +++ b/node_modules/fast-glob/out/utils/string.d.ts @@ -0,0 +1,2 @@ +export declare function isString(input: unknown): input is string; +export declare function isEmpty(input: string): boolean; diff --git a/node_modules/fast-glob/out/utils/string.js b/node_modules/fast-glob/out/utils/string.js new file mode 100644 index 0000000..76e7ea5 --- /dev/null +++ b/node_modules/fast-glob/out/utils/string.js @@ -0,0 +1,11 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isEmpty = exports.isString = void 0; +function isString(input) { + return typeof input === 'string'; +} +exports.isString = isString; +function isEmpty(input) { + return input === ''; +} +exports.isEmpty = isEmpty; diff --git a/node_modules/fast-glob/package.json b/node_modules/fast-glob/package.json new file mode 100644 index 0000000..770cc6e --- /dev/null +++ b/node_modules/fast-glob/package.json @@ -0,0 +1,81 @@ +{ + "name": "fast-glob", + "version": "3.3.2", + "description": "It's a very fast and efficient glob library for Node.js", + "license": "MIT", + "repository": "mrmlnc/fast-glob", + "author": { + "name": "Denis Malinochkin", + "url": "https://mrmlnc.com" + }, + "engines": { + "node": ">=8.6.0" + }, + "main": "out/index.js", + "typings": "out/index.d.ts", + "files": [ + "out", + "!out/{benchmark,tests}", + "!out/**/*.map", + "!out/**/*.spec.*" + ], + "keywords": [ + "glob", + "patterns", + "fast", + "implementation" + ], + "devDependencies": { + "@nodelib/fs.macchiato": "^1.0.1", + "@types/glob-parent": "^5.1.0", + "@types/merge2": "^1.1.4", + "@types/micromatch": "^4.0.0", + "@types/mocha": "^5.2.7", + "@types/node": "^14.18.53", + "@types/picomatch": "^2.3.0", + "@types/sinon": "^7.5.0", + "bencho": "^0.1.1", + "eslint": "^6.5.1", + "eslint-config-mrmlnc": "^1.1.0", + "execa": "^7.1.1", + "fast-glob": "^3.0.4", + "fdir": "^6.0.1", + "glob": "^10.0.0", + "hereby": "^1.8.1", + "mocha": "^6.2.1", + "rimraf": "^5.0.0", + "sinon": "^7.5.0", + "snap-shot-it": "^7.9.10", + "typescript": "^4.9.5" + }, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "scripts": { + "clean": "rimraf out", + "lint": "eslint \"src/**/*.ts\" --cache", + "compile": "tsc", + "test": "mocha \"out/**/*.spec.js\" -s 0", + "test:e2e": "mocha \"out/**/*.e2e.js\" -s 0", + "test:e2e:sync": "mocha \"out/**/*.e2e.js\" -s 0 --grep \"\\(sync\\)\"", + "test:e2e:async": "mocha \"out/**/*.e2e.js\" -s 0 --grep \"\\(async\\)\"", + "test:e2e:stream": "mocha \"out/**/*.e2e.js\" -s 0 --grep \"\\(stream\\)\"", + "build": "npm run clean && npm run compile && npm run lint && npm test", + "watch": "npm run clean && npm run compile -- --sourceMap --watch", + "bench:async": "npm run bench:product:async && npm run bench:regression:async", + "bench:stream": "npm run bench:product:stream && npm run bench:regression:stream", + "bench:sync": "npm run bench:product:sync && npm run bench:regression:sync", + "bench:product": "npm run bench:product:async && npm run bench:product:sync && npm run bench:product:stream", + "bench:product:async": "hereby bench:product:async", + "bench:product:sync": "hereby bench:product:sync", + "bench:product:stream": "hereby bench:product:stream", + "bench:regression": "npm run bench:regression:async && npm run bench:regression:sync && npm run bench:regression:stream", + "bench:regression:async": "hereby bench:regression:async", + "bench:regression:sync": "hereby bench:regression:sync", + "bench:regression:stream": "hereby bench:regression:stream" + } +} diff --git a/node_modules/fastq/.github/dependabot.yml b/node_modules/fastq/.github/dependabot.yml new file mode 100644 index 0000000..7e7cbe1 --- /dev/null +++ b/node_modules/fastq/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: +- package-ecosystem: npm + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 + ignore: + - dependency-name: standard + versions: + - 16.0.3 diff --git a/node_modules/fastq/.github/workflows/ci.yml b/node_modules/fastq/.github/workflows/ci.yml new file mode 100644 index 0000000..69521c4 --- /dev/null +++ b/node_modules/fastq/.github/workflows/ci.yml @@ -0,0 +1,75 @@ +name: ci + +on: [push, pull_request] + +jobs: + legacy: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: ['0.10', '0.12', 4.x, 6.x, 8.x] + + steps: + - uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install + run: | + npm install --production && npm install tape + + - name: Run tests + run: | + npm run legacy + + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 13.x, 14.x, 15.x, 16.x, 18.x, 20.x] + + steps: + - uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install + run: | + npm install + + - name: Run tests + run: | + npm run test + + types: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Install + run: | + npm install + + - name: Run types tests + run: | + npm run typescript diff --git a/node_modules/fastq/LICENSE b/node_modules/fastq/LICENSE new file mode 100644 index 0000000..27c7bb4 --- /dev/null +++ b/node_modules/fastq/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) 2015-2020, Matteo Collina + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/fastq/README.md b/node_modules/fastq/README.md new file mode 100644 index 0000000..af5feee --- /dev/null +++ b/node_modules/fastq/README.md @@ -0,0 +1,306 @@ +# fastq + +![ci][ci-url] +[![npm version][npm-badge]][npm-url] + +Fast, in memory work queue. + +Benchmarks (1 million tasks): + +* setImmediate: 812ms +* fastq: 854ms +* async.queue: 1298ms +* neoAsync.queue: 1249ms + +Obtained on node 12.16.1, on a dedicated server. + +If you need zero-overhead series function call, check out +[fastseries](http://npm.im/fastseries). For zero-overhead parallel +function call, check out [fastparallel](http://npm.im/fastparallel). + +[![js-standard-style](https://raw.githubusercontent.com/feross/standard/master/badge.png)](https://github.com/feross/standard) + + *
Installation + * Usage + * API + * Licence & copyright + +## Install + +`npm i fastq --save` + +## Usage (callback API) + +```js +'use strict' + +const queue = require('fastq')(worker, 1) + +queue.push(42, function (err, result) { + if (err) { throw err } + console.log('the result is', result) +}) + +function worker (arg, cb) { + cb(null, arg * 2) +} +``` + +## Usage (promise API) + +```js +const queue = require('fastq').promise(worker, 1) + +async function worker (arg) { + return arg * 2 +} + +async function run () { + const result = await queue.push(42) + console.log('the result is', result) +} + +run() +``` + +### Setting "this" + +```js +'use strict' + +const that = { hello: 'world' } +const queue = require('fastq')(that, worker, 1) + +queue.push(42, function (err, result) { + if (err) { throw err } + console.log(this) + console.log('the result is', result) +}) + +function worker (arg, cb) { + console.log(this) + cb(null, arg * 2) +} +``` + +### Using with TypeScript (callback API) + +```ts +'use strict' + +import * as fastq from "fastq"; +import type { queue, done } from "fastq"; + +type Task = { + id: number +} + +const q: queue = fastq(worker, 1) + +q.push({ id: 42}) + +function worker (arg: Task, cb: done) { + console.log(arg.id) + cb(null) +} +``` + +### Using with TypeScript (promise API) + +```ts +'use strict' + +import * as fastq from "fastq"; +import type { queueAsPromised } from "fastq"; + +type Task = { + id: number +} + +const q: queueAsPromised = fastq.promise(asyncWorker, 1) + +q.push({ id: 42}).catch((err) => console.error(err)) + +async function asyncWorker (arg: Task): Promise { + // No need for a try-catch block, fastq handles errors automatically + console.log(arg.id) +} +``` + +## API + +* fastqueue() +* queue#push() +* queue#unshift() +* queue#pause() +* queue#resume() +* queue#idle() +* queue#length() +* queue#getQueue() +* queue#kill() +* queue#killAndDrain() +* queue#error() +* queue#concurrency +* queue#drain +* queue#empty +* queue#saturated +* fastqueue.promise() + +------------------------------------------------------- + +### fastqueue([that], worker, concurrency) + +Creates a new queue. + +Arguments: + +* `that`, optional context of the `worker` function. +* `worker`, worker function, it would be called with `that` as `this`, + if that is specified. +* `concurrency`, number of concurrent tasks that could be executed in + parallel. + +------------------------------------------------------- + +### queue.push(task, done) + +Add a task at the end of the queue. `done(err, result)` will be called +when the task was processed. + +------------------------------------------------------- + +### queue.unshift(task, done) + +Add a task at the beginning of the queue. `done(err, result)` will be called +when the task was processed. + +------------------------------------------------------- + +### queue.pause() + +Pause the processing of tasks. Currently worked tasks are not +stopped. + +------------------------------------------------------- + +### queue.resume() + +Resume the processing of tasks. + +------------------------------------------------------- + +### queue.idle() + +Returns `false` if there are tasks being processed or waiting to be processed. +`true` otherwise. + +------------------------------------------------------- + +### queue.length() + +Returns the number of tasks waiting to be processed (in the queue). + +------------------------------------------------------- + +### queue.getQueue() + +Returns all the tasks be processed (in the queue). Returns empty array when there are no tasks + +------------------------------------------------------- + +### queue.kill() + +Removes all tasks waiting to be processed, and reset `drain` to an empty +function. + +------------------------------------------------------- + +### queue.killAndDrain() + +Same than `kill` but the `drain` function will be called before reset to empty. + +------------------------------------------------------- + +### queue.error(handler) + +Set a global error handler. `handler(err, task)` will be called +each time a task is completed, `err` will be not null if the task has thrown an error. + +------------------------------------------------------- + +### queue.concurrency + +Property that returns the number of concurrent tasks that could be executed in +parallel. It can be altered at runtime. + +------------------------------------------------------- + +### queue.drain + +Function that will be called when the last +item from the queue has been processed by a worker. +It can be altered at runtime. + +------------------------------------------------------- + +### queue.empty + +Function that will be called when the last +item from the queue has been assigned to a worker. +It can be altered at runtime. + +------------------------------------------------------- + +### queue.saturated + +Function that will be called when the queue hits the concurrency +limit. +It can be altered at runtime. + +------------------------------------------------------- + +### fastqueue.promise([that], worker(arg), concurrency) + +Creates a new queue with `Promise` apis. It also offers all the methods +and properties of the object returned by [`fastqueue`](#fastqueue) with the modified +[`push`](#pushPromise) and [`unshift`](#unshiftPromise) methods. + +Node v10+ is required to use the promisified version. + +Arguments: +* `that`, optional context of the `worker` function. +* `worker`, worker function, it would be called with `that` as `this`, + if that is specified. It MUST return a `Promise`. +* `concurrency`, number of concurrent tasks that could be executed in + parallel. + + +#### queue.push(task) => Promise + +Add a task at the end of the queue. The returned `Promise` will be fulfilled (rejected) +when the task is completed successfully (unsuccessfully). + +This promise could be ignored as it will not lead to a `'unhandledRejection'`. + + +#### queue.unshift(task) => Promise + +Add a task at the beginning of the queue. The returned `Promise` will be fulfilled (rejected) +when the task is completed successfully (unsuccessfully). + +This promise could be ignored as it will not lead to a `'unhandledRejection'`. + + +#### queue.drained() => Promise + +Wait for the queue to be drained. The returned `Promise` will be resolved when all tasks in the queue have been processed by a worker. + +This promise could be ignored as it will not lead to a `'unhandledRejection'`. + +## License + +ISC + +[ci-url]: https://github.com/mcollina/fastq/workflows/ci/badge.svg +[npm-badge]: https://badge.fury.io/js/fastq.svg +[npm-url]: https://badge.fury.io/js/fastq diff --git a/node_modules/fastq/bench.js b/node_modules/fastq/bench.js new file mode 100644 index 0000000..4eaa829 --- /dev/null +++ b/node_modules/fastq/bench.js @@ -0,0 +1,66 @@ +'use strict' + +const max = 1000000 +const fastqueue = require('./')(worker, 1) +const { promisify } = require('util') +const immediate = promisify(setImmediate) +const qPromise = require('./').promise(immediate, 1) +const async = require('async') +const neo = require('neo-async') +const asyncqueue = async.queue(worker, 1) +const neoqueue = neo.queue(worker, 1) + +function bench (func, done) { + const key = max + '*' + func.name + let count = -1 + + console.time(key) + end() + + function end () { + if (++count < max) { + func(end) + } else { + console.timeEnd(key) + if (done) { + done() + } + } + } +} + +function benchFastQ (done) { + fastqueue.push(42, done) +} + +function benchAsyncQueue (done) { + asyncqueue.push(42, done) +} + +function benchNeoQueue (done) { + neoqueue.push(42, done) +} + +function worker (arg, cb) { + setImmediate(cb) +} + +function benchSetImmediate (cb) { + worker(42, cb) +} + +function benchFastQPromise (done) { + qPromise.push(42).then(function () { done() }, done) +} + +function runBench (done) { + async.eachSeries([ + benchSetImmediate, + benchFastQ, + benchNeoQueue, + benchAsyncQueue, + benchFastQPromise + ], bench, done) +} + +runBench(runBench) diff --git a/node_modules/fastq/example.js b/node_modules/fastq/example.js new file mode 100644 index 0000000..665fdc8 --- /dev/null +++ b/node_modules/fastq/example.js @@ -0,0 +1,14 @@ +'use strict' + +/* eslint-disable no-var */ + +var queue = require('./')(worker, 1) + +queue.push(42, function (err, result) { + if (err) { throw err } + console.log('the result is', result) +}) + +function worker (arg, cb) { + cb(null, 42 * 2) +} diff --git a/node_modules/fastq/example.mjs b/node_modules/fastq/example.mjs new file mode 100644 index 0000000..81be789 --- /dev/null +++ b/node_modules/fastq/example.mjs @@ -0,0 +1,11 @@ +import { promise as queueAsPromised } from './queue.js' + +/* eslint-disable */ + +const queue = queueAsPromised(worker, 1) + +console.log('the result is', await queue.push(42)) + +async function worker (arg) { + return 42 * 2 +} diff --git a/node_modules/fastq/index.d.ts b/node_modules/fastq/index.d.ts new file mode 100644 index 0000000..327f399 --- /dev/null +++ b/node_modules/fastq/index.d.ts @@ -0,0 +1,38 @@ +declare function fastq(context: C, worker: fastq.worker, concurrency: number): fastq.queue +declare function fastq(worker: fastq.worker, concurrency: number): fastq.queue + +declare namespace fastq { + type worker = (this: C, task: T, cb: fastq.done) => void + type asyncWorker = (this: C, task: T) => Promise + type done = (err: Error | null, result?: R) => void + type errorHandler = (err: Error, task: T) => void + + interface queue { + push(task: T, done?: done): void + unshift(task: T, done?: done): void + pause(): any + resume(): any + running(): number + idle(): boolean + length(): number + getQueue(): T[] + kill(): any + killAndDrain(): any + error(handler: errorHandler): void + concurrency: number + drain(): any + empty: () => void + saturated: () => void + } + + interface queueAsPromised extends queue { + push(task: T): Promise + unshift(task: T): Promise + drained(): Promise + } + + function promise(context: C, worker: fastq.asyncWorker, concurrency: number): fastq.queueAsPromised + function promise(worker: fastq.asyncWorker, concurrency: number): fastq.queueAsPromised +} + +export = fastq diff --git a/node_modules/fastq/package.json b/node_modules/fastq/package.json new file mode 100644 index 0000000..44655bc --- /dev/null +++ b/node_modules/fastq/package.json @@ -0,0 +1,53 @@ +{ + "name": "fastq", + "version": "1.17.1", + "description": "Fast, in memory work queue", + "main": "queue.js", + "scripts": { + "lint": "standard --verbose | snazzy", + "unit": "nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test/test.js test/promise.js", + "coverage": "nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js test/promise.js", + "test:report": "npm run lint && npm run unit:report", + "test": "npm run lint && npm run unit", + "typescript": "tsc --project ./test/tsconfig.json", + "legacy": "tape test/test.js" + }, + "pre-commit": [ + "test", + "typescript" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/mcollina/fastq.git" + }, + "keywords": [ + "fast", + "queue", + "async", + "worker" + ], + "author": "Matteo Collina ", + "license": "ISC", + "bugs": { + "url": "https://github.com/mcollina/fastq/issues" + }, + "homepage": "https://github.com/mcollina/fastq#readme", + "devDependencies": { + "async": "^3.1.0", + "neo-async": "^2.6.1", + "nyc": "^15.0.0", + "pre-commit": "^1.2.2", + "snazzy": "^9.0.0", + "standard": "^16.0.0", + "tape": "^5.0.0", + "typescript": "^5.0.4" + }, + "dependencies": { + "reusify": "^1.0.4" + }, + "standard": { + "ignore": [ + "example.mjs" + ] + } +} diff --git a/node_modules/fastq/queue.js b/node_modules/fastq/queue.js new file mode 100644 index 0000000..a9d0fa9 --- /dev/null +++ b/node_modules/fastq/queue.js @@ -0,0 +1,311 @@ +'use strict' + +/* eslint-disable no-var */ + +var reusify = require('reusify') + +function fastqueue (context, worker, _concurrency) { + if (typeof context === 'function') { + _concurrency = worker + worker = context + context = null + } + + if (!(_concurrency >= 1)) { + throw new Error('fastqueue concurrency must be equal to or greater than 1') + } + + var cache = reusify(Task) + var queueHead = null + var queueTail = null + var _running = 0 + var errorHandler = null + + var self = { + push: push, + drain: noop, + saturated: noop, + pause: pause, + paused: false, + + get concurrency () { + return _concurrency + }, + set concurrency (value) { + if (!(value >= 1)) { + throw new Error('fastqueue concurrency must be equal to or greater than 1') + } + _concurrency = value + + if (self.paused) return + for (; queueHead && _running < _concurrency;) { + _running++ + release() + } + }, + + running: running, + resume: resume, + idle: idle, + length: length, + getQueue: getQueue, + unshift: unshift, + empty: noop, + kill: kill, + killAndDrain: killAndDrain, + error: error + } + + return self + + function running () { + return _running + } + + function pause () { + self.paused = true + } + + function length () { + var current = queueHead + var counter = 0 + + while (current) { + current = current.next + counter++ + } + + return counter + } + + function getQueue () { + var current = queueHead + var tasks = [] + + while (current) { + tasks.push(current.value) + current = current.next + } + + return tasks + } + + function resume () { + if (!self.paused) return + self.paused = false + if (queueHead === null) { + _running++ + release() + return + } + for (; queueHead && _running < _concurrency;) { + _running++ + release() + } + } + + function idle () { + return _running === 0 && self.length() === 0 + } + + function push (value, done) { + var current = cache.get() + + current.context = context + current.release = release + current.value = value + current.callback = done || noop + current.errorHandler = errorHandler + + if (_running >= _concurrency || self.paused) { + if (queueTail) { + queueTail.next = current + queueTail = current + } else { + queueHead = current + queueTail = current + self.saturated() + } + } else { + _running++ + worker.call(context, current.value, current.worked) + } + } + + function unshift (value, done) { + var current = cache.get() + + current.context = context + current.release = release + current.value = value + current.callback = done || noop + current.errorHandler = errorHandler + + if (_running >= _concurrency || self.paused) { + if (queueHead) { + current.next = queueHead + queueHead = current + } else { + queueHead = current + queueTail = current + self.saturated() + } + } else { + _running++ + worker.call(context, current.value, current.worked) + } + } + + function release (holder) { + if (holder) { + cache.release(holder) + } + var next = queueHead + if (next && _running <= _concurrency) { + if (!self.paused) { + if (queueTail === queueHead) { + queueTail = null + } + queueHead = next.next + next.next = null + worker.call(context, next.value, next.worked) + if (queueTail === null) { + self.empty() + } + } else { + _running-- + } + } else if (--_running === 0) { + self.drain() + } + } + + function kill () { + queueHead = null + queueTail = null + self.drain = noop + } + + function killAndDrain () { + queueHead = null + queueTail = null + self.drain() + self.drain = noop + } + + function error (handler) { + errorHandler = handler + } +} + +function noop () {} + +function Task () { + this.value = null + this.callback = noop + this.next = null + this.release = noop + this.context = null + this.errorHandler = null + + var self = this + + this.worked = function worked (err, result) { + var callback = self.callback + var errorHandler = self.errorHandler + var val = self.value + self.value = null + self.callback = noop + if (self.errorHandler) { + errorHandler(err, val) + } + callback.call(self.context, err, result) + self.release(self) + } +} + +function queueAsPromised (context, worker, _concurrency) { + if (typeof context === 'function') { + _concurrency = worker + worker = context + context = null + } + + function asyncWrapper (arg, cb) { + worker.call(this, arg) + .then(function (res) { + cb(null, res) + }, cb) + } + + var queue = fastqueue(context, asyncWrapper, _concurrency) + + var pushCb = queue.push + var unshiftCb = queue.unshift + + queue.push = push + queue.unshift = unshift + queue.drained = drained + + return queue + + function push (value) { + var p = new Promise(function (resolve, reject) { + pushCb(value, function (err, result) { + if (err) { + reject(err) + return + } + resolve(result) + }) + }) + + // Let's fork the promise chain to + // make the error bubble up to the user but + // not lead to a unhandledRejection + p.catch(noop) + + return p + } + + function unshift (value) { + var p = new Promise(function (resolve, reject) { + unshiftCb(value, function (err, result) { + if (err) { + reject(err) + return + } + resolve(result) + }) + }) + + // Let's fork the promise chain to + // make the error bubble up to the user but + // not lead to a unhandledRejection + p.catch(noop) + + return p + } + + function drained () { + if (queue.idle()) { + return new Promise(function (resolve) { + resolve() + }) + } + + var previousDrain = queue.drain + + var p = new Promise(function (resolve) { + queue.drain = function () { + previousDrain() + resolve() + } + }) + + return p + } +} + +module.exports = fastqueue +module.exports.promise = queueAsPromised diff --git a/node_modules/fastq/test/example.ts b/node_modules/fastq/test/example.ts new file mode 100644 index 0000000..a47d441 --- /dev/null +++ b/node_modules/fastq/test/example.ts @@ -0,0 +1,83 @@ +import * as fastq from '../' +import { promise as queueAsPromised } from '../' + +// Basic example + +const queue = fastq(worker, 1) + +queue.push('world', (err, result) => { + if (err) throw err + console.log('the result is', result) +}) + +queue.push('push without cb') + +queue.concurrency + +queue.drain() + +queue.empty = () => undefined + +console.log('the queue tasks are', queue.getQueue()) + +queue.idle() + +queue.kill() + +queue.killAndDrain() + +queue.length + +queue.pause() + +queue.resume() + +queue.running() + +queue.saturated = () => undefined + +queue.unshift('world', (err, result) => { + if (err) throw err + console.log('the result is', result) +}) + +queue.unshift('unshift without cb') + +function worker(task: any, cb: fastq.done) { + cb(null, 'hello ' + task) +} + +// Generics example + +interface GenericsContext { + base: number; +} + +const genericsQueue = fastq({ base: 6 }, genericsWorker, 1) + +genericsQueue.push(7, (err, done) => { + if (err) throw err + console.log('the result is', done) +}) + +genericsQueue.unshift(7, (err, done) => { + if (err) throw err + console.log('the result is', done) +}) + +function genericsWorker(this: GenericsContext, task: number, cb: fastq.done) { + cb(null, 'the meaning of life is ' + (this.base * task)) +} + +const queue2 = queueAsPromised(asyncWorker, 1) + +async function asyncWorker(task: any) { + return 'hello ' + task +} + +async function run () { + await queue.push(42) + await queue.unshift(42) +} + +run() diff --git a/node_modules/fastq/test/promise.js b/node_modules/fastq/test/promise.js new file mode 100644 index 0000000..fe014ff --- /dev/null +++ b/node_modules/fastq/test/promise.js @@ -0,0 +1,248 @@ +'use strict' + +const test = require('tape') +const buildQueue = require('../').promise +const { promisify } = require('util') +const sleep = promisify(setTimeout) +const immediate = promisify(setImmediate) + +test('concurrency', function (t) { + t.plan(2) + t.throws(buildQueue.bind(null, worker, 0)) + t.doesNotThrow(buildQueue.bind(null, worker, 1)) + + async function worker (arg) { + return true + } +}) + +test('worker execution', async function (t) { + const queue = buildQueue(worker, 1) + + const result = await queue.push(42) + + t.equal(result, true, 'result matches') + + async function worker (arg) { + t.equal(arg, 42) + return true + } +}) + +test('limit', async function (t) { + const queue = buildQueue(worker, 1) + + const [res1, res2] = await Promise.all([queue.push(10), queue.push(0)]) + t.equal(res1, 10, 'the result matches') + t.equal(res2, 0, 'the result matches') + + async function worker (arg) { + await sleep(arg) + return arg + } +}) + +test('multiple executions', async function (t) { + const queue = buildQueue(worker, 1) + const toExec = [1, 2, 3, 4, 5] + const expected = ['a', 'b', 'c', 'd', 'e'] + let count = 0 + + await Promise.all(toExec.map(async function (task, i) { + const result = await queue.push(task) + t.equal(result, expected[i], 'the result matches') + })) + + async function worker (arg) { + t.equal(arg, toExec[count], 'arg matches') + return expected[count++] + } +}) + +test('drained', async function (t) { + const queue = buildQueue(worker, 2) + + const toExec = new Array(10).fill(10) + let count = 0 + + async function worker (arg) { + await sleep(arg) + count++ + } + + toExec.forEach(function (i) { + queue.push(i) + }) + + await queue.drained() + + t.equal(count, toExec.length) + + toExec.forEach(function (i) { + queue.push(i) + }) + + await queue.drained() + + t.equal(count, toExec.length * 2) +}) + +test('drained with exception should not throw', async function (t) { + const queue = buildQueue(worker, 2) + + const toExec = new Array(10).fill(10) + + async function worker () { + throw new Error('foo') + } + + toExec.forEach(function (i) { + queue.push(i) + }) + + await queue.drained() +}) + +test('drained with drain function', async function (t) { + let drainCalled = false + const queue = buildQueue(worker, 2) + + queue.drain = function () { + drainCalled = true + } + + const toExec = new Array(10).fill(10) + let count = 0 + + async function worker (arg) { + await sleep(arg) + count++ + } + + toExec.forEach(function () { + queue.push() + }) + + await queue.drained() + + t.equal(count, toExec.length) + t.equal(drainCalled, true) +}) + +test('drained while idle should resolve', async function (t) { + const queue = buildQueue(worker, 2) + + async function worker (arg) { + await sleep(arg) + } + + await queue.drained() +}) + +test('drained while idle should not call the drain function', async function (t) { + let drainCalled = false + const queue = buildQueue(worker, 2) + + queue.drain = function () { + drainCalled = true + } + + async function worker (arg) { + await sleep(arg) + } + + await queue.drained() + + t.equal(drainCalled, false) +}) + +test('set this', async function (t) { + t.plan(1) + const that = {} + const queue = buildQueue(that, worker, 1) + + await queue.push(42) + + async function worker (arg) { + t.equal(this, that, 'this matches') + } +}) + +test('unshift', async function (t) { + const queue = buildQueue(worker, 1) + const expected = [1, 2, 3, 4] + + await Promise.all([ + queue.push(1), + queue.push(4), + queue.unshift(3), + queue.unshift(2) + ]) + + t.is(expected.length, 0) + + async function worker (arg) { + t.equal(expected.shift(), arg, 'tasks come in order') + } +}) + +test('push with worker throwing error', async function (t) { + t.plan(5) + const q = buildQueue(async function (task, cb) { + throw new Error('test error') + }, 1) + q.error(function (err, task) { + t.ok(err instanceof Error, 'global error handler should catch the error') + t.match(err.message, /test error/, 'error message should be "test error"') + t.equal(task, 42, 'The task executed should be passed') + }) + try { + await q.push(42) + } catch (err) { + t.ok(err instanceof Error, 'push callback should catch the error') + t.match(err.message, /test error/, 'error message should be "test error"') + } +}) + +test('unshift with worker throwing error', async function (t) { + t.plan(2) + const q = buildQueue(async function (task, cb) { + throw new Error('test error') + }, 1) + try { + await q.unshift(42) + } catch (err) { + t.ok(err instanceof Error, 'push callback should catch the error') + t.match(err.message, /test error/, 'error message should be "test error"') + } +}) + +test('no unhandledRejection (push)', async function (t) { + function handleRejection () { + t.fail('unhandledRejection') + } + process.once('unhandledRejection', handleRejection) + const q = buildQueue(async function (task, cb) { + throw new Error('test error') + }, 1) + + q.push(42) + + await immediate() + process.removeListener('unhandledRejection', handleRejection) +}) + +test('no unhandledRejection (unshift)', async function (t) { + function handleRejection () { + t.fail('unhandledRejection') + } + process.once('unhandledRejection', handleRejection) + const q = buildQueue(async function (task, cb) { + throw new Error('test error') + }, 1) + + q.unshift(42) + + await immediate() + process.removeListener('unhandledRejection', handleRejection) +}) diff --git a/node_modules/fastq/test/test.js b/node_modules/fastq/test/test.js new file mode 100644 index 0000000..ceed7a7 --- /dev/null +++ b/node_modules/fastq/test/test.js @@ -0,0 +1,642 @@ +'use strict' + +/* eslint-disable no-var */ + +var test = require('tape') +var buildQueue = require('../') + +test('concurrency', function (t) { + t.plan(6) + t.throws(buildQueue.bind(null, worker, 0)) + t.throws(buildQueue.bind(null, worker, NaN)) + t.doesNotThrow(buildQueue.bind(null, worker, 1)) + + var queue = buildQueue(worker, 1) + t.throws(function () { + queue.concurrency = 0 + }) + t.throws(function () { + queue.concurrency = NaN + }) + t.doesNotThrow(function () { + queue.concurrency = 2 + }) + + function worker (arg, cb) { + cb(null, true) + } +}) + +test('worker execution', function (t) { + t.plan(3) + + var queue = buildQueue(worker, 1) + + queue.push(42, function (err, result) { + t.error(err, 'no error') + t.equal(result, true, 'result matches') + }) + + function worker (arg, cb) { + t.equal(arg, 42) + cb(null, true) + } +}) + +test('limit', function (t) { + t.plan(4) + + var expected = [10, 0] + var queue = buildQueue(worker, 1) + + queue.push(10, result) + queue.push(0, result) + + function result (err, arg) { + t.error(err, 'no error') + t.equal(arg, expected.shift(), 'the result matches') + } + + function worker (arg, cb) { + setTimeout(cb, arg, null, arg) + } +}) + +test('multiple executions', function (t) { + t.plan(15) + + var queue = buildQueue(worker, 1) + var toExec = [1, 2, 3, 4, 5] + var count = 0 + + toExec.forEach(function (task) { + queue.push(task, done) + }) + + function done (err, result) { + t.error(err, 'no error') + t.equal(result, toExec[count - 1], 'the result matches') + } + + function worker (arg, cb) { + t.equal(arg, toExec[count], 'arg matches') + count++ + setImmediate(cb, null, arg) + } +}) + +test('multiple executions, one after another', function (t) { + t.plan(15) + + var queue = buildQueue(worker, 1) + var toExec = [1, 2, 3, 4, 5] + var count = 0 + + queue.push(toExec[0], done) + + function done (err, result) { + t.error(err, 'no error') + t.equal(result, toExec[count - 1], 'the result matches') + if (count < toExec.length) { + queue.push(toExec[count], done) + } + } + + function worker (arg, cb) { + t.equal(arg, toExec[count], 'arg matches') + count++ + setImmediate(cb, null, arg) + } +}) + +test('set this', function (t) { + t.plan(3) + + var that = {} + var queue = buildQueue(that, worker, 1) + + queue.push(42, function (err, result) { + t.error(err, 'no error') + t.equal(this, that, 'this matches') + }) + + function worker (arg, cb) { + t.equal(this, that, 'this matches') + cb(null, true) + } +}) + +test('drain', function (t) { + t.plan(4) + + var queue = buildQueue(worker, 1) + var worked = false + + queue.push(42, function (err, result) { + t.error(err, 'no error') + t.equal(result, true, 'result matches') + }) + + queue.drain = function () { + t.equal(true, worked, 'drained') + } + + function worker (arg, cb) { + t.equal(arg, 42) + worked = true + setImmediate(cb, null, true) + } +}) + +test('pause && resume', function (t) { + t.plan(13) + + var queue = buildQueue(worker, 1) + var worked = false + var expected = [42, 24] + + t.notOk(queue.paused, 'it should not be paused') + + queue.pause() + + queue.push(42, function (err, result) { + t.error(err, 'no error') + t.equal(result, true, 'result matches') + }) + + queue.push(24, function (err, result) { + t.error(err, 'no error') + t.equal(result, true, 'result matches') + }) + + t.notOk(worked, 'it should be paused') + t.ok(queue.paused, 'it should be paused') + + queue.resume() + queue.pause() + queue.resume() + queue.resume() // second resume is a no-op + + function worker (arg, cb) { + t.notOk(queue.paused, 'it should not be paused') + t.ok(queue.running() <= queue.concurrency, 'should respect the concurrency') + t.equal(arg, expected.shift()) + worked = true + process.nextTick(function () { cb(null, true) }) + } +}) + +test('pause in flight && resume', function (t) { + t.plan(16) + + var queue = buildQueue(worker, 1) + var expected = [42, 24, 12] + + t.notOk(queue.paused, 'it should not be paused') + + queue.push(42, function (err, result) { + t.error(err, 'no error') + t.equal(result, true, 'result matches') + t.ok(queue.paused, 'it should be paused') + process.nextTick(function () { + queue.resume() + queue.pause() + queue.resume() + }) + }) + + queue.push(24, function (err, result) { + t.error(err, 'no error') + t.equal(result, true, 'result matches') + t.notOk(queue.paused, 'it should not be paused') + }) + + queue.push(12, function (err, result) { + t.error(err, 'no error') + t.equal(result, true, 'result matches') + t.notOk(queue.paused, 'it should not be paused') + }) + + queue.pause() + + function worker (arg, cb) { + t.ok(queue.running() <= queue.concurrency, 'should respect the concurrency') + t.equal(arg, expected.shift()) + process.nextTick(function () { cb(null, true) }) + } +}) + +test('altering concurrency', function (t) { + t.plan(24) + + var queue = buildQueue(worker, 1) + + queue.push(24, workDone) + queue.push(24, workDone) + queue.push(24, workDone) + + queue.pause() + + queue.concurrency = 3 // concurrency changes are ignored while paused + queue.concurrency = 2 + + queue.resume() + + t.equal(queue.running(), 2, '2 jobs running') + + queue.concurrency = 3 + + t.equal(queue.running(), 3, '3 jobs running') + + queue.concurrency = 1 + + t.equal(queue.running(), 3, '3 jobs running') // running jobs can't be killed + + queue.push(24, workDone) + queue.push(24, workDone) + queue.push(24, workDone) + queue.push(24, workDone) + + function workDone (err, result) { + t.error(err, 'no error') + t.equal(result, true, 'result matches') + } + + function worker (arg, cb) { + t.ok(queue.running() <= queue.concurrency, 'should respect the concurrency') + setImmediate(function () { + cb(null, true) + }) + } +}) + +test('idle()', function (t) { + t.plan(12) + + var queue = buildQueue(worker, 1) + + t.ok(queue.idle(), 'queue is idle') + + queue.push(42, function (err, result) { + t.error(err, 'no error') + t.equal(result, true, 'result matches') + t.notOk(queue.idle(), 'queue is not idle') + }) + + queue.push(42, function (err, result) { + t.error(err, 'no error') + t.equal(result, true, 'result matches') + // it will go idle after executing this function + setImmediate(function () { + t.ok(queue.idle(), 'queue is now idle') + }) + }) + + t.notOk(queue.idle(), 'queue is not idle') + + function worker (arg, cb) { + t.notOk(queue.idle(), 'queue is not idle') + t.equal(arg, 42) + setImmediate(cb, null, true) + } +}) + +test('saturated', function (t) { + t.plan(9) + + var queue = buildQueue(worker, 1) + var preworked = 0 + var worked = 0 + + queue.saturated = function () { + t.pass('saturated') + t.equal(preworked, 1, 'started 1 task') + t.equal(worked, 0, 'worked zero task') + } + + queue.push(42, done) + queue.push(42, done) + + function done (err, result) { + t.error(err, 'no error') + t.equal(result, true, 'result matches') + } + + function worker (arg, cb) { + t.equal(arg, 42) + preworked++ + setImmediate(function () { + worked++ + cb(null, true) + }) + } +}) + +test('length', function (t) { + t.plan(7) + + var queue = buildQueue(worker, 1) + + t.equal(queue.length(), 0, 'nothing waiting') + queue.push(42, done) + t.equal(queue.length(), 0, 'nothing waiting') + queue.push(42, done) + t.equal(queue.length(), 1, 'one task waiting') + queue.push(42, done) + t.equal(queue.length(), 2, 'two tasks waiting') + + function done (err, result) { + t.error(err, 'no error') + } + + function worker (arg, cb) { + setImmediate(function () { + cb(null, true) + }) + } +}) + +test('getQueue', function (t) { + t.plan(10) + + var queue = buildQueue(worker, 1) + + t.equal(queue.getQueue().length, 0, 'nothing waiting') + queue.push(42, done) + t.equal(queue.getQueue().length, 0, 'nothing waiting') + queue.push(42, done) + t.equal(queue.getQueue().length, 1, 'one task waiting') + t.equal(queue.getQueue()[0], 42, 'should be equal') + queue.push(43, done) + t.equal(queue.getQueue().length, 2, 'two tasks waiting') + t.equal(queue.getQueue()[0], 42, 'should be equal') + t.equal(queue.getQueue()[1], 43, 'should be equal') + + function done (err, result) { + t.error(err, 'no error') + } + + function worker (arg, cb) { + setImmediate(function () { + cb(null, true) + }) + } +}) + +test('unshift', function (t) { + t.plan(8) + + var queue = buildQueue(worker, 1) + var expected = [1, 2, 3, 4] + + queue.push(1, done) + queue.push(4, done) + queue.unshift(3, done) + queue.unshift(2, done) + + function done (err, result) { + t.error(err, 'no error') + } + + function worker (arg, cb) { + t.equal(expected.shift(), arg, 'tasks come in order') + setImmediate(function () { + cb(null, true) + }) + } +}) + +test('unshift && empty', function (t) { + t.plan(2) + + var queue = buildQueue(worker, 1) + var completed = false + + queue.pause() + + queue.empty = function () { + t.notOk(completed, 'the task has not completed yet') + } + + queue.unshift(1, done) + + queue.resume() + + function done (err, result) { + completed = true + t.error(err, 'no error') + } + + function worker (arg, cb) { + setImmediate(function () { + cb(null, true) + }) + } +}) + +test('push && empty', function (t) { + t.plan(2) + + var queue = buildQueue(worker, 1) + var completed = false + + queue.pause() + + queue.empty = function () { + t.notOk(completed, 'the task has not completed yet') + } + + queue.push(1, done) + + queue.resume() + + function done (err, result) { + completed = true + t.error(err, 'no error') + } + + function worker (arg, cb) { + setImmediate(function () { + cb(null, true) + }) + } +}) + +test('kill', function (t) { + t.plan(5) + + var queue = buildQueue(worker, 1) + var expected = [1] + + var predrain = queue.drain + + queue.drain = function drain () { + t.fail('drain should never be called') + } + + queue.push(1, done) + queue.push(4, done) + queue.unshift(3, done) + queue.unshift(2, done) + queue.kill() + + function done (err, result) { + t.error(err, 'no error') + setImmediate(function () { + t.equal(queue.length(), 0, 'no queued tasks') + t.equal(queue.running(), 0, 'no running tasks') + t.equal(queue.drain, predrain, 'drain is back to default') + }) + } + + function worker (arg, cb) { + t.equal(expected.shift(), arg, 'tasks come in order') + setImmediate(function () { + cb(null, true) + }) + } +}) + +test('killAndDrain', function (t) { + t.plan(6) + + var queue = buildQueue(worker, 1) + var expected = [1] + + var predrain = queue.drain + + queue.drain = function drain () { + t.pass('drain has been called') + } + + queue.push(1, done) + queue.push(4, done) + queue.unshift(3, done) + queue.unshift(2, done) + queue.killAndDrain() + + function done (err, result) { + t.error(err, 'no error') + setImmediate(function () { + t.equal(queue.length(), 0, 'no queued tasks') + t.equal(queue.running(), 0, 'no running tasks') + t.equal(queue.drain, predrain, 'drain is back to default') + }) + } + + function worker (arg, cb) { + t.equal(expected.shift(), arg, 'tasks come in order') + setImmediate(function () { + cb(null, true) + }) + } +}) + +test('pause && idle', function (t) { + t.plan(11) + + var queue = buildQueue(worker, 1) + var worked = false + + t.notOk(queue.paused, 'it should not be paused') + t.ok(queue.idle(), 'should be idle') + + queue.pause() + + queue.push(42, function (err, result) { + t.error(err, 'no error') + t.equal(result, true, 'result matches') + }) + + t.notOk(worked, 'it should be paused') + t.ok(queue.paused, 'it should be paused') + t.notOk(queue.idle(), 'should not be idle') + + queue.resume() + + t.notOk(queue.paused, 'it should not be paused') + t.notOk(queue.idle(), 'it should not be idle') + + function worker (arg, cb) { + t.equal(arg, 42) + worked = true + process.nextTick(cb.bind(null, null, true)) + process.nextTick(function () { + t.ok(queue.idle(), 'is should be idle') + }) + } +}) + +test('push without cb', function (t) { + t.plan(1) + + var queue = buildQueue(worker, 1) + + queue.push(42) + + function worker (arg, cb) { + t.equal(arg, 42) + cb() + } +}) + +test('unshift without cb', function (t) { + t.plan(1) + + var queue = buildQueue(worker, 1) + + queue.unshift(42) + + function worker (arg, cb) { + t.equal(arg, 42) + cb() + } +}) + +test('push with worker throwing error', function (t) { + t.plan(5) + var q = buildQueue(function (task, cb) { + cb(new Error('test error'), null) + }, 1) + q.error(function (err, task) { + t.ok(err instanceof Error, 'global error handler should catch the error') + t.match(err.message, /test error/, 'error message should be "test error"') + t.equal(task, 42, 'The task executed should be passed') + }) + q.push(42, function (err) { + t.ok(err instanceof Error, 'push callback should catch the error') + t.match(err.message, /test error/, 'error message should be "test error"') + }) +}) + +test('unshift with worker throwing error', function (t) { + t.plan(5) + var q = buildQueue(function (task, cb) { + cb(new Error('test error'), null) + }, 1) + q.error(function (err, task) { + t.ok(err instanceof Error, 'global error handler should catch the error') + t.match(err.message, /test error/, 'error message should be "test error"') + t.equal(task, 42, 'The task executed should be passed') + }) + q.unshift(42, function (err) { + t.ok(err instanceof Error, 'unshift callback should catch the error') + t.match(err.message, /test error/, 'error message should be "test error"') + }) +}) + +test('pause/resume should trigger drain event', function (t) { + t.plan(1) + + var queue = buildQueue(worker, 1) + queue.pause() + queue.drain = function () { + t.pass('drain should be called') + } + + function worker (arg, cb) { + cb(null, true) + } + + queue.resume() +}) diff --git a/node_modules/fastq/test/tsconfig.json b/node_modules/fastq/test/tsconfig.json new file mode 100644 index 0000000..66e16e9 --- /dev/null +++ b/node_modules/fastq/test/tsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "target": "es6", + "module": "commonjs", + "noEmit": true, + "strict": true + }, + "files": [ + "./example.ts" + ] +} diff --git a/node_modules/fill-range/LICENSE b/node_modules/fill-range/LICENSE new file mode 100644 index 0000000..9af4a67 --- /dev/null +++ b/node_modules/fill-range/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-present, Jon Schlinkert. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/fill-range/README.md b/node_modules/fill-range/README.md new file mode 100644 index 0000000..8d756fe --- /dev/null +++ b/node_modules/fill-range/README.md @@ -0,0 +1,237 @@ +# fill-range [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/fill-range.svg?style=flat)](https://www.npmjs.com/package/fill-range) [![NPM monthly downloads](https://img.shields.io/npm/dm/fill-range.svg?style=flat)](https://npmjs.org/package/fill-range) [![NPM total downloads](https://img.shields.io/npm/dt/fill-range.svg?style=flat)](https://npmjs.org/package/fill-range) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/fill-range.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/fill-range) + +> Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex` + +Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. + +## Install + +Install with [npm](https://www.npmjs.com/): + +```sh +$ npm install --save fill-range +``` + +## Usage + +Expands numbers and letters, optionally using a `step` as the last argument. _(Numbers may be defined as JavaScript numbers or strings)_. + +```js +const fill = require('fill-range'); +// fill(from, to[, step, options]); + +console.log(fill('1', '10')); //=> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] +console.log(fill('1', '10', { toRegex: true })); //=> [1-9]|10 +``` + +**Params** + +* `from`: **{String|Number}** the number or letter to start with +* `to`: **{String|Number}** the number or letter to end with +* `step`: **{String|Number|Object|Function}** Optionally pass a [step](#optionsstep) to use. +* `options`: **{Object|Function}**: See all available [options](#options) + +## Examples + +By default, an array of values is returned. + +**Alphabetical ranges** + +```js +console.log(fill('a', 'e')); //=> ['a', 'b', 'c', 'd', 'e'] +console.log(fill('A', 'E')); //=> [ 'A', 'B', 'C', 'D', 'E' ] +``` + +**Numerical ranges** + +Numbers can be defined as actual numbers or strings. + +```js +console.log(fill(1, 5)); //=> [ 1, 2, 3, 4, 5 ] +console.log(fill('1', '5')); //=> [ 1, 2, 3, 4, 5 ] +``` + +**Negative ranges** + +Numbers can be defined as actual numbers or strings. + +```js +console.log(fill('-5', '-1')); //=> [ '-5', '-4', '-3', '-2', '-1' ] +console.log(fill('-5', '5')); //=> [ '-5', '-4', '-3', '-2', '-1', '0', '1', '2', '3', '4', '5' ] +``` + +**Steps (increments)** + +```js +// numerical ranges with increments +console.log(fill('0', '25', 4)); //=> [ '0', '4', '8', '12', '16', '20', '24' ] +console.log(fill('0', '25', 5)); //=> [ '0', '5', '10', '15', '20', '25' ] +console.log(fill('0', '25', 6)); //=> [ '0', '6', '12', '18', '24' ] + +// alphabetical ranges with increments +console.log(fill('a', 'z', 4)); //=> [ 'a', 'e', 'i', 'm', 'q', 'u', 'y' ] +console.log(fill('a', 'z', 5)); //=> [ 'a', 'f', 'k', 'p', 'u', 'z' ] +console.log(fill('a', 'z', 6)); //=> [ 'a', 'g', 'm', 's', 'y' ] +``` + +## Options + +### options.step + +**Type**: `number` (formatted as a string or number) + +**Default**: `undefined` + +**Description**: The increment to use for the range. Can be used with letters or numbers. + +**Example(s)** + +```js +// numbers +console.log(fill('1', '10', 2)); //=> [ '1', '3', '5', '7', '9' ] +console.log(fill('1', '10', 3)); //=> [ '1', '4', '7', '10' ] +console.log(fill('1', '10', 4)); //=> [ '1', '5', '9' ] + +// letters +console.log(fill('a', 'z', 5)); //=> [ 'a', 'f', 'k', 'p', 'u', 'z' ] +console.log(fill('a', 'z', 7)); //=> [ 'a', 'h', 'o', 'v' ] +console.log(fill('a', 'z', 9)); //=> [ 'a', 'j', 's' ] +``` + +### options.strictRanges + +**Type**: `boolean` + +**Default**: `false` + +**Description**: By default, `null` is returned when an invalid range is passed. Enable this option to throw a `RangeError` on invalid ranges. + +**Example(s)** + +The following are all invalid: + +```js +fill('1.1', '2'); // decimals not supported in ranges +fill('a', '2'); // incompatible range values +fill(1, 10, 'foo'); // invalid "step" argument +``` + +### options.stringify + +**Type**: `boolean` + +**Default**: `undefined` + +**Description**: Cast all returned values to strings. By default, integers are returned as numbers. + +**Example(s)** + +```js +console.log(fill(1, 5)); //=> [ 1, 2, 3, 4, 5 ] +console.log(fill(1, 5, { stringify: true })); //=> [ '1', '2', '3', '4', '5' ] +``` + +### options.toRegex + +**Type**: `boolean` + +**Default**: `undefined` + +**Description**: Create a regex-compatible source string, instead of expanding values to an array. + +**Example(s)** + +```js +// alphabetical range +console.log(fill('a', 'e', { toRegex: true })); //=> '[a-e]' +// alphabetical with step +console.log(fill('a', 'z', 3, { toRegex: true })); //=> 'a|d|g|j|m|p|s|v|y' +// numerical range +console.log(fill('1', '100', { toRegex: true })); //=> '[1-9]|[1-9][0-9]|100' +// numerical range with zero padding +console.log(fill('000001', '100000', { toRegex: true })); +//=> '0{5}[1-9]|0{4}[1-9][0-9]|0{3}[1-9][0-9]{2}|0{2}[1-9][0-9]{3}|0[1-9][0-9]{4}|100000' +``` + +### options.transform + +**Type**: `function` + +**Default**: `undefined` + +**Description**: Customize each value in the returned array (or [string](#optionstoRegex)). _(you can also pass this function as the last argument to `fill()`)_. + +**Example(s)** + +```js +// add zero padding +console.log(fill(1, 5, value => String(value).padStart(4, '0'))); +//=> ['0001', '0002', '0003', '0004', '0005'] +``` + +## About + +
+Contributing + +Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). + +
+ +
+Running Tests + +Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: + +```sh +$ npm install && npm test +``` + +
+ +
+Building docs + +_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ + +To generate the readme, run the following command: + +```sh +$ npm install -g verbose/verb#dev verb-generate-readme && verb +``` + +
+ +### Contributors + +| **Commits** | **Contributor** | +| --- | --- | +| 116 | [jonschlinkert](https://github.com/jonschlinkert) | +| 4 | [paulmillr](https://github.com/paulmillr) | +| 2 | [realityking](https://github.com/realityking) | +| 2 | [bluelovers](https://github.com/bluelovers) | +| 1 | [edorivai](https://github.com/edorivai) | +| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | + +### Author + +**Jon Schlinkert** + +* [GitHub Profile](https://github.com/jonschlinkert) +* [Twitter Profile](https://twitter.com/jonschlinkert) +* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) + +Please consider supporting me on Patreon, or [start your own Patreon page](https://patreon.com/invite/bxpbvm)! + + + + + +### License + +Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). +Released under the [MIT License](LICENSE). + +*** + +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 08, 2019._ \ No newline at end of file diff --git a/node_modules/fill-range/index.js b/node_modules/fill-range/index.js new file mode 100644 index 0000000..ddb212e --- /dev/null +++ b/node_modules/fill-range/index.js @@ -0,0 +1,248 @@ +/*! + * fill-range + * + * Copyright (c) 2014-present, Jon Schlinkert. + * Licensed under the MIT License. + */ + +'use strict'; + +const util = require('util'); +const toRegexRange = require('to-regex-range'); + +const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val); + +const transform = toNumber => { + return value => toNumber === true ? Number(value) : String(value); +}; + +const isValidValue = value => { + return typeof value === 'number' || (typeof value === 'string' && value !== ''); +}; + +const isNumber = num => Number.isInteger(+num); + +const zeros = input => { + let value = `${input}`; + let index = -1; + if (value[0] === '-') value = value.slice(1); + if (value === '0') return false; + while (value[++index] === '0'); + return index > 0; +}; + +const stringify = (start, end, options) => { + if (typeof start === 'string' || typeof end === 'string') { + return true; + } + return options.stringify === true; +}; + +const pad = (input, maxLength, toNumber) => { + if (maxLength > 0) { + let dash = input[0] === '-' ? '-' : ''; + if (dash) input = input.slice(1); + input = (dash + input.padStart(dash ? maxLength - 1 : maxLength, '0')); + } + if (toNumber === false) { + return String(input); + } + return input; +}; + +const toMaxLen = (input, maxLength) => { + let negative = input[0] === '-' ? '-' : ''; + if (negative) { + input = input.slice(1); + maxLength--; + } + while (input.length < maxLength) input = '0' + input; + return negative ? ('-' + input) : input; +}; + +const toSequence = (parts, options, maxLen) => { + parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); + parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); + + let prefix = options.capture ? '' : '?:'; + let positives = ''; + let negatives = ''; + let result; + + if (parts.positives.length) { + positives = parts.positives.map(v => toMaxLen(String(v), maxLen)).join('|'); + } + + if (parts.negatives.length) { + negatives = `-(${prefix}${parts.negatives.map(v => toMaxLen(String(v), maxLen)).join('|')})`; + } + + if (positives && negatives) { + result = `${positives}|${negatives}`; + } else { + result = positives || negatives; + } + + if (options.wrap) { + return `(${prefix}${result})`; + } + + return result; +}; + +const toRange = (a, b, isNumbers, options) => { + if (isNumbers) { + return toRegexRange(a, b, { wrap: false, ...options }); + } + + let start = String.fromCharCode(a); + if (a === b) return start; + + let stop = String.fromCharCode(b); + return `[${start}-${stop}]`; +}; + +const toRegex = (start, end, options) => { + if (Array.isArray(start)) { + let wrap = options.wrap === true; + let prefix = options.capture ? '' : '?:'; + return wrap ? `(${prefix}${start.join('|')})` : start.join('|'); + } + return toRegexRange(start, end, options); +}; + +const rangeError = (...args) => { + return new RangeError('Invalid range arguments: ' + util.inspect(...args)); +}; + +const invalidRange = (start, end, options) => { + if (options.strictRanges === true) throw rangeError([start, end]); + return []; +}; + +const invalidStep = (step, options) => { + if (options.strictRanges === true) { + throw new TypeError(`Expected step "${step}" to be a number`); + } + return []; +}; + +const fillNumbers = (start, end, step = 1, options = {}) => { + let a = Number(start); + let b = Number(end); + + if (!Number.isInteger(a) || !Number.isInteger(b)) { + if (options.strictRanges === true) throw rangeError([start, end]); + return []; + } + + // fix negative zero + if (a === 0) a = 0; + if (b === 0) b = 0; + + let descending = a > b; + let startString = String(start); + let endString = String(end); + let stepString = String(step); + step = Math.max(Math.abs(step), 1); + + let padded = zeros(startString) || zeros(endString) || zeros(stepString); + let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0; + let toNumber = padded === false && stringify(start, end, options) === false; + let format = options.transform || transform(toNumber); + + if (options.toRegex && step === 1) { + return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options); + } + + let parts = { negatives: [], positives: [] }; + let push = num => parts[num < 0 ? 'negatives' : 'positives'].push(Math.abs(num)); + let range = []; + let index = 0; + + while (descending ? a >= b : a <= b) { + if (options.toRegex === true && step > 1) { + push(a); + } else { + range.push(pad(format(a, index), maxLen, toNumber)); + } + a = descending ? a - step : a + step; + index++; + } + + if (options.toRegex === true) { + return step > 1 + ? toSequence(parts, options, maxLen) + : toRegex(range, null, { wrap: false, ...options }); + } + + return range; +}; + +const fillLetters = (start, end, step = 1, options = {}) => { + if ((!isNumber(start) && start.length > 1) || (!isNumber(end) && end.length > 1)) { + return invalidRange(start, end, options); + } + + let format = options.transform || (val => String.fromCharCode(val)); + let a = `${start}`.charCodeAt(0); + let b = `${end}`.charCodeAt(0); + + let descending = a > b; + let min = Math.min(a, b); + let max = Math.max(a, b); + + if (options.toRegex && step === 1) { + return toRange(min, max, false, options); + } + + let range = []; + let index = 0; + + while (descending ? a >= b : a <= b) { + range.push(format(a, index)); + a = descending ? a - step : a + step; + index++; + } + + if (options.toRegex === true) { + return toRegex(range, null, { wrap: false, options }); + } + + return range; +}; + +const fill = (start, end, step, options = {}) => { + if (end == null && isValidValue(start)) { + return [start]; + } + + if (!isValidValue(start) || !isValidValue(end)) { + return invalidRange(start, end, options); + } + + if (typeof step === 'function') { + return fill(start, end, 1, { transform: step }); + } + + if (isObject(step)) { + return fill(start, end, 0, step); + } + + let opts = { ...options }; + if (opts.capture === true) opts.wrap = true; + step = step || opts.step || 1; + + if (!isNumber(step)) { + if (step != null && !isObject(step)) return invalidStep(step, opts); + return fill(start, end, 1, step); + } + + if (isNumber(start) && isNumber(end)) { + return fillNumbers(start, end, step, opts); + } + + return fillLetters(start, end, Math.max(Math.abs(step), 1), opts); +}; + +module.exports = fill; diff --git a/node_modules/fill-range/package.json b/node_modules/fill-range/package.json new file mode 100644 index 0000000..582357f --- /dev/null +++ b/node_modules/fill-range/package.json @@ -0,0 +1,74 @@ +{ + "name": "fill-range", + "description": "Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`", + "version": "7.1.1", + "homepage": "https://github.com/jonschlinkert/fill-range", + "author": "Jon Schlinkert (https://github.com/jonschlinkert)", + "contributors": [ + "Edo Rivai (edo.rivai.nl)", + "Jon Schlinkert (http://twitter.com/jonschlinkert)", + "Paul Miller (paulmillr.com)", + "Rouven Weßling (www.rouvenwessling.de)", + "(https://github.com/wtgtybhertgeghgtwtg)" + ], + "repository": "jonschlinkert/fill-range", + "bugs": { + "url": "https://github.com/jonschlinkert/fill-range/issues" + }, + "license": "MIT", + "files": [ + "index.js" + ], + "main": "index.js", + "engines": { + "node": ">=8" + }, + "scripts": { + "lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .", + "mocha": "mocha --reporter dot", + "test": "npm run lint && npm run mocha", + "test:ci": "npm run test:cover", + "test:cover": "nyc npm run mocha" + }, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "devDependencies": { + "gulp-format-md": "^2.0.0", + "mocha": "^6.1.1", + "nyc": "^15.1.0" + }, + "keywords": [ + "alpha", + "alphabetical", + "array", + "bash", + "brace", + "expand", + "expansion", + "fill", + "glob", + "match", + "matches", + "matching", + "number", + "numerical", + "range", + "ranges", + "regex", + "sh" + ], + "verb": { + "toc": false, + "layout": "default", + "tasks": [ + "readme" + ], + "plugins": [ + "gulp-format-md" + ], + "lint": { + "reflinks": true + } + } +} diff --git a/node_modules/glob-parent/CHANGELOG.md b/node_modules/glob-parent/CHANGELOG.md new file mode 100644 index 0000000..fb9de96 --- /dev/null +++ b/node_modules/glob-parent/CHANGELOG.md @@ -0,0 +1,110 @@ +### [5.1.2](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2) (2021-03-06) + + +### Bug Fixes + +* eliminate ReDoS ([#36](https://github.com/gulpjs/glob-parent/issues/36)) ([f923116](https://github.com/gulpjs/glob-parent/commit/f9231168b0041fea3f8f954b3cceb56269fc6366)) + +### [5.1.1](https://github.com/gulpjs/glob-parent/compare/v5.1.0...v5.1.1) (2021-01-27) + + +### Bug Fixes + +* unescape exclamation mark ([#26](https://github.com/gulpjs/glob-parent/issues/26)) ([a98874f](https://github.com/gulpjs/glob-parent/commit/a98874f1a59e407f4fb1beb0db4efa8392da60bb)) + +## [5.1.0](https://github.com/gulpjs/glob-parent/compare/v5.0.0...v5.1.0) (2021-01-27) + + +### Features + +* add `flipBackslashes` option to disable auto conversion of slashes (closes [#24](https://github.com/gulpjs/glob-parent/issues/24)) ([#25](https://github.com/gulpjs/glob-parent/issues/25)) ([eecf91d](https://github.com/gulpjs/glob-parent/commit/eecf91d5e3834ed78aee39c4eaaae654d76b87b3)) + +## [5.0.0](https://github.com/gulpjs/glob-parent/compare/v4.0.0...v5.0.0) (2021-01-27) + + +### ⚠ BREAKING CHANGES + +* Drop support for node <6 & bump dependencies + +### Miscellaneous Chores + +* Drop support for node <6 & bump dependencies ([896c0c0](https://github.com/gulpjs/glob-parent/commit/896c0c00b4e7362f60b96e7fc295ae929245255a)) + +## [4.0.0](https://github.com/gulpjs/glob-parent/compare/v3.1.0...v4.0.0) (2021-01-27) + + +### ⚠ BREAKING CHANGES + +* question marks are valid path characters on Windows so avoid flagging as a glob when alone +* Update is-glob dependency + +### Features + +* hoist regexps and strings for performance gains ([4a80667](https://github.com/gulpjs/glob-parent/commit/4a80667c69355c76a572a5892b0f133c8e1f457e)) +* question marks are valid path characters on Windows so avoid flagging as a glob when alone ([2a551dd](https://github.com/gulpjs/glob-parent/commit/2a551dd0dc3235e78bf3c94843d4107072d17841)) +* Update is-glob dependency ([e41fcd8](https://github.com/gulpjs/glob-parent/commit/e41fcd895d1f7bc617dba45c9d935a7949b9c281)) + +## [3.1.0](https://github.com/gulpjs/glob-parent/compare/v3.0.1...v3.1.0) (2021-01-27) + + +### Features + +* allow basic win32 backslash use ([272afa5](https://github.com/gulpjs/glob-parent/commit/272afa5fd070fc0f796386a5993d4ee4a846988b)) +* handle extglobs (parentheses) containing separators ([7db1bdb](https://github.com/gulpjs/glob-parent/commit/7db1bdb0756e55fd14619e8ce31aa31b17b117fd)) +* new approach to braces/brackets handling ([8269bd8](https://github.com/gulpjs/glob-parent/commit/8269bd89290d99fac9395a354fb56fdcdb80f0be)) +* pre-process braces/brackets sections ([9ef8a87](https://github.com/gulpjs/glob-parent/commit/9ef8a87f66b1a43d0591e7a8e4fc5a18415ee388)) +* preserve escaped brace/bracket at end of string ([8cfb0ba](https://github.com/gulpjs/glob-parent/commit/8cfb0ba84202d51571340dcbaf61b79d16a26c76)) + + +### Bug Fixes + +* trailing escaped square brackets ([99ec9fe](https://github.com/gulpjs/glob-parent/commit/99ec9fecc60ee488ded20a94dd4f18b4f55c4ccf)) + +### [3.0.1](https://github.com/gulpjs/glob-parent/compare/v3.0.0...v3.0.1) (2021-01-27) + + +### Features + +* use path-dirname ponyfill ([cdbea5f](https://github.com/gulpjs/glob-parent/commit/cdbea5f32a58a54e001a75ddd7c0fccd4776aacc)) + + +### Bug Fixes + +* unescape glob-escaped dirnames on output ([598c533](https://github.com/gulpjs/glob-parent/commit/598c533bdf49c1428bc063aa9b8db40c5a86b030)) + +## [3.0.0](https://github.com/gulpjs/glob-parent/compare/v2.0.0...v3.0.0) (2021-01-27) + + +### ⚠ BREAKING CHANGES + +* update is-glob dependency + +### Features + +* update is-glob dependency ([5c5f8ef](https://github.com/gulpjs/glob-parent/commit/5c5f8efcee362a8e7638cf8220666acd8784f6bd)) + +## [2.0.0](https://github.com/gulpjs/glob-parent/compare/v1.3.0...v2.0.0) (2021-01-27) + + +### Features + +* move up to dirname regardless of glob characters ([f97fb83](https://github.com/gulpjs/glob-parent/commit/f97fb83be2e0a9fc8d3b760e789d2ecadd6aa0c2)) + +## [1.3.0](https://github.com/gulpjs/glob-parent/compare/v1.2.0...v1.3.0) (2021-01-27) + +## [1.2.0](https://github.com/gulpjs/glob-parent/compare/v1.1.0...v1.2.0) (2021-01-27) + + +### Reverts + +* feat: make regex test strings smaller ([dc80fa9](https://github.com/gulpjs/glob-parent/commit/dc80fa9658dca20549cfeba44bbd37d5246fcce0)) + +## [1.1.0](https://github.com/gulpjs/glob-parent/compare/v1.0.0...v1.1.0) (2021-01-27) + + +### Features + +* make regex test strings smaller ([cd83220](https://github.com/gulpjs/glob-parent/commit/cd832208638f45169f986d80fcf66e401f35d233)) + +## 1.0.0 (2021-01-27) + diff --git a/node_modules/glob-parent/LICENSE b/node_modules/glob-parent/LICENSE new file mode 100644 index 0000000..63222d7 --- /dev/null +++ b/node_modules/glob-parent/LICENSE @@ -0,0 +1,15 @@ +The ISC License + +Copyright (c) 2015, 2019 Elan Shanker + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/glob-parent/README.md b/node_modules/glob-parent/README.md new file mode 100644 index 0000000..36a2793 --- /dev/null +++ b/node_modules/glob-parent/README.md @@ -0,0 +1,137 @@ +

+ + + +

+ +# glob-parent + +[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url] + +Extract the non-magic parent path from a glob string. + +## Usage + +```js +var globParent = require('glob-parent'); + +globParent('path/to/*.js'); // 'path/to' +globParent('/root/path/to/*.js'); // '/root/path/to' +globParent('/*.js'); // '/' +globParent('*.js'); // '.' +globParent('**/*.js'); // '.' +globParent('path/{to,from}'); // 'path' +globParent('path/!(to|from)'); // 'path' +globParent('path/?(to|from)'); // 'path' +globParent('path/+(to|from)'); // 'path' +globParent('path/*(to|from)'); // 'path' +globParent('path/@(to|from)'); // 'path' +globParent('path/**/*'); // 'path' + +// if provided a non-glob path, returns the nearest dir +globParent('path/foo/bar.js'); // 'path/foo' +globParent('path/foo/'); // 'path/foo' +globParent('path/foo'); // 'path' (see issue #3 for details) +``` + +## API + +### `globParent(maybeGlobString, [options])` + +Takes a string and returns the part of the path before the glob begins. Be aware of Escaping rules and Limitations below. + +#### options + +```js +{ + // Disables the automatic conversion of slashes for Windows + flipBackslashes: true +} +``` + +## Escaping + +The following characters have special significance in glob patterns and must be escaped if you want them to be treated as regular path characters: + +- `?` (question mark) unless used as a path segment alone +- `*` (asterisk) +- `|` (pipe) +- `(` (opening parenthesis) +- `)` (closing parenthesis) +- `{` (opening curly brace) +- `}` (closing curly brace) +- `[` (opening bracket) +- `]` (closing bracket) + +**Example** + +```js +globParent('foo/[bar]/') // 'foo' +globParent('foo/\\[bar]/') // 'foo/[bar]' +``` + +## Limitations + +### Braces & Brackets +This library attempts a quick and imperfect method of determining which path +parts have glob magic without fully parsing/lexing the pattern. There are some +advanced use cases that can trip it up, such as nested braces where the outer +pair is escaped and the inner one contains a path separator. If you find +yourself in the unlikely circumstance of being affected by this or need to +ensure higher-fidelity glob handling in your library, it is recommended that you +pre-process your input with [expand-braces] and/or [expand-brackets]. + +### Windows +Backslashes are not valid path separators for globs. If a path with backslashes +is provided anyway, for simple cases, glob-parent will replace the path +separator for you and return the non-glob parent path (now with +forward-slashes, which are still valid as Windows path separators). + +This cannot be used in conjunction with escape characters. + +```js +// BAD +globParent('C:\\Program Files \\(x86\\)\\*.ext') // 'C:/Program Files /(x86/)' + +// GOOD +globParent('C:/Program Files\\(x86\\)/*.ext') // 'C:/Program Files (x86)' +``` + +If you are using escape characters for a pattern without path parts (i.e. +relative to `cwd`), prefix with `./` to avoid confusing glob-parent. + +```js +// BAD +globParent('foo \\[bar]') // 'foo ' +globParent('foo \\[bar]*') // 'foo ' + +// GOOD +globParent('./foo \\[bar]') // 'foo [bar]' +globParent('./foo \\[bar]*') // '.' +``` + +## License + +ISC + +[expand-braces]: https://github.com/jonschlinkert/expand-braces +[expand-brackets]: https://github.com/jonschlinkert/expand-brackets + +[downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg +[npm-url]: https://www.npmjs.com/package/glob-parent +[npm-image]: https://img.shields.io/npm/v/glob-parent.svg + +[azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=2&branchName=master +[azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/glob-parent?branchName=master + +[travis-url]: https://travis-ci.org/gulpjs/glob-parent +[travis-image]: https://img.shields.io/travis/gulpjs/glob-parent.svg?label=travis-ci + +[appveyor-url]: https://ci.appveyor.com/project/gulpjs/glob-parent +[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/glob-parent.svg?label=appveyor + +[coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent +[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg + +[gitter-url]: https://gitter.im/gulpjs/gulp +[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg diff --git a/node_modules/glob-parent/index.js b/node_modules/glob-parent/index.js new file mode 100644 index 0000000..09e257e --- /dev/null +++ b/node_modules/glob-parent/index.js @@ -0,0 +1,42 @@ +'use strict'; + +var isGlob = require('is-glob'); +var pathPosixDirname = require('path').posix.dirname; +var isWin32 = require('os').platform() === 'win32'; + +var slash = '/'; +var backslash = /\\/g; +var enclosure = /[\{\[].*[\}\]]$/; +var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/; +var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g; + +/** + * @param {string} str + * @param {Object} opts + * @param {boolean} [opts.flipBackslashes=true] + * @returns {string} + */ +module.exports = function globParent(str, opts) { + var options = Object.assign({ flipBackslashes: true }, opts); + + // flip windows path separators + if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) { + str = str.replace(backslash, slash); + } + + // special case for strings ending in enclosure containing path separator + if (enclosure.test(str)) { + str += slash; + } + + // preserves full path in case of trailing path separator + str += 'a'; + + // remove path parts that are globby + do { + str = pathPosixDirname(str); + } while (isGlob(str) || globby.test(str)); + + // remove escape chars and return result + return str.replace(escaped, '$1'); +}; diff --git a/node_modules/glob-parent/package.json b/node_modules/glob-parent/package.json new file mode 100644 index 0000000..125c971 --- /dev/null +++ b/node_modules/glob-parent/package.json @@ -0,0 +1,48 @@ +{ + "name": "glob-parent", + "version": "5.1.2", + "description": "Extract the non-magic parent path from a glob string.", + "author": "Gulp Team (https://gulpjs.com/)", + "contributors": [ + "Elan Shanker (https://github.com/es128)", + "Blaine Bublitz " + ], + "repository": "gulpjs/glob-parent", + "license": "ISC", + "engines": { + "node": ">= 6" + }, + "main": "index.js", + "files": [ + "LICENSE", + "index.js" + ], + "scripts": { + "lint": "eslint .", + "pretest": "npm run lint", + "test": "nyc mocha --async-only", + "azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit", + "coveralls": "nyc report --reporter=text-lcov | coveralls" + }, + "dependencies": { + "is-glob": "^4.0.1" + }, + "devDependencies": { + "coveralls": "^3.0.11", + "eslint": "^2.13.1", + "eslint-config-gulp": "^3.0.1", + "expect": "^1.20.2", + "mocha": "^6.0.2", + "nyc": "^13.3.0" + }, + "keywords": [ + "glob", + "parent", + "strip", + "path", + "dirname", + "directory", + "base", + "wildcard" + ] +} diff --git a/node_modules/is-extglob/LICENSE b/node_modules/is-extglob/LICENSE new file mode 100644 index 0000000..842218c --- /dev/null +++ b/node_modules/is-extglob/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-2016, Jon Schlinkert + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/is-extglob/README.md b/node_modules/is-extglob/README.md new file mode 100644 index 0000000..0416af5 --- /dev/null +++ b/node_modules/is-extglob/README.md @@ -0,0 +1,107 @@ +# is-extglob [![NPM version](https://img.shields.io/npm/v/is-extglob.svg?style=flat)](https://www.npmjs.com/package/is-extglob) [![NPM downloads](https://img.shields.io/npm/dm/is-extglob.svg?style=flat)](https://npmjs.org/package/is-extglob) [![Build Status](https://img.shields.io/travis/jonschlinkert/is-extglob.svg?style=flat)](https://travis-ci.org/jonschlinkert/is-extglob) + +> Returns true if a string has an extglob. + +## Install + +Install with [npm](https://www.npmjs.com/): + +```sh +$ npm install --save is-extglob +``` + +## Usage + +```js +var isExtglob = require('is-extglob'); +``` + +**True** + +```js +isExtglob('?(abc)'); +isExtglob('@(abc)'); +isExtglob('!(abc)'); +isExtglob('*(abc)'); +isExtglob('+(abc)'); +``` + +**False** + +Escaped extglobs: + +```js +isExtglob('\\?(abc)'); +isExtglob('\\@(abc)'); +isExtglob('\\!(abc)'); +isExtglob('\\*(abc)'); +isExtglob('\\+(abc)'); +``` + +Everything else... + +```js +isExtglob('foo.js'); +isExtglob('!foo.js'); +isExtglob('*.js'); +isExtglob('**/abc.js'); +isExtglob('abc/*.js'); +isExtglob('abc/(aaa|bbb).js'); +isExtglob('abc/[a-z].js'); +isExtglob('abc/{a,b}.js'); +isExtglob('abc/?.js'); +isExtglob('abc.js'); +isExtglob('abc/def/ghi.js'); +``` + +## History + +**v2.0** + +Adds support for escaping. Escaped exglobs no longer return true. + +## About + +### Related projects + +* [has-glob](https://www.npmjs.com/package/has-glob): Returns `true` if an array has a glob pattern. | [homepage](https://github.com/jonschlinkert/has-glob "Returns `true` if an array has a glob pattern.") +* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet") +* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | [homepage](https://github.com/jonschlinkert/micromatch "Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.") + +### Contributing + +Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). + +### Building docs + +_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ + +To generate the readme and API documentation with [verb](https://github.com/verbose/verb): + +```sh +$ npm install -g verb verb-generate-readme && verb +``` + +### Running tests + +Install dev dependencies: + +```sh +$ npm install -d && npm test +``` + +### Author + +**Jon Schlinkert** + +* [github/jonschlinkert](https://github.com/jonschlinkert) +* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) + +### License + +Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). +Released under the [MIT license](https://github.com/jonschlinkert/is-extglob/blob/master/LICENSE). + +*** + +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.31, on October 12, 2016._ \ No newline at end of file diff --git a/node_modules/is-extglob/index.js b/node_modules/is-extglob/index.js new file mode 100644 index 0000000..c1d986f --- /dev/null +++ b/node_modules/is-extglob/index.js @@ -0,0 +1,20 @@ +/*! + * is-extglob + * + * Copyright (c) 2014-2016, Jon Schlinkert. + * Licensed under the MIT License. + */ + +module.exports = function isExtglob(str) { + if (typeof str !== 'string' || str === '') { + return false; + } + + var match; + while ((match = /(\\).|([@?!+*]\(.*\))/g.exec(str))) { + if (match[2]) return true; + str = str.slice(match.index + match[0].length); + } + + return false; +}; diff --git a/node_modules/is-extglob/package.json b/node_modules/is-extglob/package.json new file mode 100644 index 0000000..7a90836 --- /dev/null +++ b/node_modules/is-extglob/package.json @@ -0,0 +1,69 @@ +{ + "name": "is-extglob", + "description": "Returns true if a string has an extglob.", + "version": "2.1.1", + "homepage": "https://github.com/jonschlinkert/is-extglob", + "author": "Jon Schlinkert (https://github.com/jonschlinkert)", + "repository": "jonschlinkert/is-extglob", + "bugs": { + "url": "https://github.com/jonschlinkert/is-extglob/issues" + }, + "license": "MIT", + "files": [ + "index.js" + ], + "main": "index.js", + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "test": "mocha" + }, + "devDependencies": { + "gulp-format-md": "^0.1.10", + "mocha": "^3.0.2" + }, + "keywords": [ + "bash", + "braces", + "check", + "exec", + "expression", + "extglob", + "glob", + "globbing", + "globstar", + "is", + "match", + "matches", + "pattern", + "regex", + "regular", + "string", + "test" + ], + "verb": { + "toc": false, + "layout": "default", + "tasks": [ + "readme" + ], + "plugins": [ + "gulp-format-md" + ], + "related": { + "list": [ + "has-glob", + "is-glob", + "micromatch" + ] + }, + "reflinks": [ + "verb", + "verb-generate-readme" + ], + "lint": { + "reflinks": true + } + } +} diff --git a/node_modules/is-glob/LICENSE b/node_modules/is-glob/LICENSE new file mode 100644 index 0000000..3f2eca1 --- /dev/null +++ b/node_modules/is-glob/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-2017, Jon Schlinkert. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/is-glob/README.md b/node_modules/is-glob/README.md new file mode 100644 index 0000000..740724b --- /dev/null +++ b/node_modules/is-glob/README.md @@ -0,0 +1,206 @@ +# is-glob [![NPM version](https://img.shields.io/npm/v/is-glob.svg?style=flat)](https://www.npmjs.com/package/is-glob) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-glob.svg?style=flat)](https://npmjs.org/package/is-glob) [![NPM total downloads](https://img.shields.io/npm/dt/is-glob.svg?style=flat)](https://npmjs.org/package/is-glob) [![Build Status](https://img.shields.io/github/workflow/status/micromatch/is-glob/dev)](https://github.com/micromatch/is-glob/actions) + +> Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience. + +Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. + +## Install + +Install with [npm](https://www.npmjs.com/): + +```sh +$ npm install --save is-glob +``` + +You might also be interested in [is-valid-glob](https://github.com/jonschlinkert/is-valid-glob) and [has-glob](https://github.com/jonschlinkert/has-glob). + +## Usage + +```js +var isGlob = require('is-glob'); +``` + +### Default behavior + +**True** + +Patterns that have glob characters or regex patterns will return `true`: + +```js +isGlob('!foo.js'); +isGlob('*.js'); +isGlob('**/abc.js'); +isGlob('abc/*.js'); +isGlob('abc/(aaa|bbb).js'); +isGlob('abc/[a-z].js'); +isGlob('abc/{a,b}.js'); +//=> true +``` + +Extglobs + +```js +isGlob('abc/@(a).js'); +isGlob('abc/!(a).js'); +isGlob('abc/+(a).js'); +isGlob('abc/*(a).js'); +isGlob('abc/?(a).js'); +//=> true +``` + +**False** + +Escaped globs or extglobs return `false`: + +```js +isGlob('abc/\\@(a).js'); +isGlob('abc/\\!(a).js'); +isGlob('abc/\\+(a).js'); +isGlob('abc/\\*(a).js'); +isGlob('abc/\\?(a).js'); +isGlob('\\!foo.js'); +isGlob('\\*.js'); +isGlob('\\*\\*/abc.js'); +isGlob('abc/\\*.js'); +isGlob('abc/\\(aaa|bbb).js'); +isGlob('abc/\\[a-z].js'); +isGlob('abc/\\{a,b}.js'); +//=> false +``` + +Patterns that do not have glob patterns return `false`: + +```js +isGlob('abc.js'); +isGlob('abc/def/ghi.js'); +isGlob('foo.js'); +isGlob('abc/@.js'); +isGlob('abc/+.js'); +isGlob('abc/?.js'); +isGlob(); +isGlob(null); +//=> false +``` + +Arrays are also `false` (If you want to check if an array has a glob pattern, use [has-glob](https://github.com/jonschlinkert/has-glob)): + +```js +isGlob(['**/*.js']); +isGlob(['foo.js']); +//=> false +``` + +### Option strict + +When `options.strict === false` the behavior is less strict in determining if a pattern is a glob. Meaning that +some patterns that would return `false` may return `true`. This is done so that matching libraries like [micromatch](https://github.com/micromatch/micromatch) have a chance at determining if the pattern is a glob or not. + +**True** + +Patterns that have glob characters or regex patterns will return `true`: + +```js +isGlob('!foo.js', {strict: false}); +isGlob('*.js', {strict: false}); +isGlob('**/abc.js', {strict: false}); +isGlob('abc/*.js', {strict: false}); +isGlob('abc/(aaa|bbb).js', {strict: false}); +isGlob('abc/[a-z].js', {strict: false}); +isGlob('abc/{a,b}.js', {strict: false}); +//=> true +``` + +Extglobs + +```js +isGlob('abc/@(a).js', {strict: false}); +isGlob('abc/!(a).js', {strict: false}); +isGlob('abc/+(a).js', {strict: false}); +isGlob('abc/*(a).js', {strict: false}); +isGlob('abc/?(a).js', {strict: false}); +//=> true +``` + +**False** + +Escaped globs or extglobs return `false`: + +```js +isGlob('\\!foo.js', {strict: false}); +isGlob('\\*.js', {strict: false}); +isGlob('\\*\\*/abc.js', {strict: false}); +isGlob('abc/\\*.js', {strict: false}); +isGlob('abc/\\(aaa|bbb).js', {strict: false}); +isGlob('abc/\\[a-z].js', {strict: false}); +isGlob('abc/\\{a,b}.js', {strict: false}); +//=> false +``` + +## About + +
+Contributing + +Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). + +
+ +
+Running Tests + +Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: + +```sh +$ npm install && npm test +``` + +
+ +
+Building docs + +_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ + +To generate the readme, run the following command: + +```sh +$ npm install -g verbose/verb#dev verb-generate-readme && verb +``` + +
+ +### Related projects + +You might also be interested in these projects: + +* [assemble](https://www.npmjs.com/package/assemble): Get the rocks out of your socks! Assemble makes you fast at creating web projects… [more](https://github.com/assemble/assemble) | [homepage](https://github.com/assemble/assemble "Get the rocks out of your socks! Assemble makes you fast at creating web projects. Assemble is used by thousands of projects for rapid prototyping, creating themes, scaffolds, boilerplates, e-books, UI components, API documentation, blogs, building websit") +* [base](https://www.npmjs.com/package/base): Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks | [homepage](https://github.com/node-base/base "Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks") +* [update](https://www.npmjs.com/package/update): Be scalable! Update is a new, open source developer framework and CLI for automating updates… [more](https://github.com/update/update) | [homepage](https://github.com/update/update "Be scalable! Update is a new, open source developer framework and CLI for automating updates of any kind in code projects.") +* [verb](https://www.npmjs.com/package/verb): Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… [more](https://github.com/verbose/verb) | [homepage](https://github.com/verbose/verb "Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used on hundreds of projects of all sizes to generate everything from API docs to readmes.") + +### Contributors + +| **Commits** | **Contributor** | +| --- | --- | +| 47 | [jonschlinkert](https://github.com/jonschlinkert) | +| 5 | [doowb](https://github.com/doowb) | +| 1 | [phated](https://github.com/phated) | +| 1 | [danhper](https://github.com/danhper) | +| 1 | [paulmillr](https://github.com/paulmillr) | + +### Author + +**Jon Schlinkert** + +* [GitHub Profile](https://github.com/jonschlinkert) +* [Twitter Profile](https://twitter.com/jonschlinkert) +* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) + +### License + +Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). +Released under the [MIT License](LICENSE). + +*** + +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on March 27, 2019._ \ No newline at end of file diff --git a/node_modules/is-glob/index.js b/node_modules/is-glob/index.js new file mode 100644 index 0000000..620f563 --- /dev/null +++ b/node_modules/is-glob/index.js @@ -0,0 +1,150 @@ +/*! + * is-glob + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ + +var isExtglob = require('is-extglob'); +var chars = { '{': '}', '(': ')', '[': ']'}; +var strictCheck = function(str) { + if (str[0] === '!') { + return true; + } + var index = 0; + var pipeIndex = -2; + var closeSquareIndex = -2; + var closeCurlyIndex = -2; + var closeParenIndex = -2; + var backSlashIndex = -2; + while (index < str.length) { + if (str[index] === '*') { + return true; + } + + if (str[index + 1] === '?' && /[\].+)]/.test(str[index])) { + return true; + } + + if (closeSquareIndex !== -1 && str[index] === '[' && str[index + 1] !== ']') { + if (closeSquareIndex < index) { + closeSquareIndex = str.indexOf(']', index); + } + if (closeSquareIndex > index) { + if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) { + return true; + } + backSlashIndex = str.indexOf('\\', index); + if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) { + return true; + } + } + } + + if (closeCurlyIndex !== -1 && str[index] === '{' && str[index + 1] !== '}') { + closeCurlyIndex = str.indexOf('}', index); + if (closeCurlyIndex > index) { + backSlashIndex = str.indexOf('\\', index); + if (backSlashIndex === -1 || backSlashIndex > closeCurlyIndex) { + return true; + } + } + } + + if (closeParenIndex !== -1 && str[index] === '(' && str[index + 1] === '?' && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ')') { + closeParenIndex = str.indexOf(')', index); + if (closeParenIndex > index) { + backSlashIndex = str.indexOf('\\', index); + if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) { + return true; + } + } + } + + if (pipeIndex !== -1 && str[index] === '(' && str[index + 1] !== '|') { + if (pipeIndex < index) { + pipeIndex = str.indexOf('|', index); + } + if (pipeIndex !== -1 && str[pipeIndex + 1] !== ')') { + closeParenIndex = str.indexOf(')', pipeIndex); + if (closeParenIndex > pipeIndex) { + backSlashIndex = str.indexOf('\\', pipeIndex); + if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) { + return true; + } + } + } + } + + if (str[index] === '\\') { + var open = str[index + 1]; + index += 2; + var close = chars[open]; + + if (close) { + var n = str.indexOf(close, index); + if (n !== -1) { + index = n + 1; + } + } + + if (str[index] === '!') { + return true; + } + } else { + index++; + } + } + return false; +}; + +var relaxedCheck = function(str) { + if (str[0] === '!') { + return true; + } + var index = 0; + while (index < str.length) { + if (/[*?{}()[\]]/.test(str[index])) { + return true; + } + + if (str[index] === '\\') { + var open = str[index + 1]; + index += 2; + var close = chars[open]; + + if (close) { + var n = str.indexOf(close, index); + if (n !== -1) { + index = n + 1; + } + } + + if (str[index] === '!') { + return true; + } + } else { + index++; + } + } + return false; +}; + +module.exports = function isGlob(str, options) { + if (typeof str !== 'string' || str === '') { + return false; + } + + if (isExtglob(str)) { + return true; + } + + var check = strictCheck; + + // optionally relax check + if (options && options.strict === false) { + check = relaxedCheck; + } + + return check(str); +}; diff --git a/node_modules/is-glob/package.json b/node_modules/is-glob/package.json new file mode 100644 index 0000000..858af03 --- /dev/null +++ b/node_modules/is-glob/package.json @@ -0,0 +1,81 @@ +{ + "name": "is-glob", + "description": "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.", + "version": "4.0.3", + "homepage": "https://github.com/micromatch/is-glob", + "author": "Jon Schlinkert (https://github.com/jonschlinkert)", + "contributors": [ + "Brian Woodward (https://twitter.com/doowb)", + "Daniel Perez (https://tuvistavie.com)", + "Jon Schlinkert (http://twitter.com/jonschlinkert)" + ], + "repository": "micromatch/is-glob", + "bugs": { + "url": "https://github.com/micromatch/is-glob/issues" + }, + "license": "MIT", + "files": [ + "index.js" + ], + "main": "index.js", + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "test": "mocha && node benchmark.js" + }, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "devDependencies": { + "gulp-format-md": "^0.1.10", + "mocha": "^3.0.2" + }, + "keywords": [ + "bash", + "braces", + "check", + "exec", + "expression", + "extglob", + "glob", + "globbing", + "globstar", + "is", + "match", + "matches", + "pattern", + "regex", + "regular", + "string", + "test" + ], + "verb": { + "layout": "default", + "plugins": [ + "gulp-format-md" + ], + "related": { + "list": [ + "assemble", + "base", + "update", + "verb" + ] + }, + "reflinks": [ + "assemble", + "bach", + "base", + "composer", + "gulp", + "has-glob", + "is-valid-glob", + "micromatch", + "npm", + "scaffold", + "verb", + "vinyl" + ] + } +} diff --git a/node_modules/is-number/LICENSE b/node_modules/is-number/LICENSE new file mode 100644 index 0000000..9af4a67 --- /dev/null +++ b/node_modules/is-number/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-present, Jon Schlinkert. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/is-number/README.md b/node_modules/is-number/README.md new file mode 100644 index 0000000..eb8149e --- /dev/null +++ b/node_modules/is-number/README.md @@ -0,0 +1,187 @@ +# is-number [![NPM version](https://img.shields.io/npm/v/is-number.svg?style=flat)](https://www.npmjs.com/package/is-number) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-number.svg?style=flat)](https://npmjs.org/package/is-number) [![NPM total downloads](https://img.shields.io/npm/dt/is-number.svg?style=flat)](https://npmjs.org/package/is-number) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-number.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-number) + +> Returns true if the value is a finite number. + +Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. + +## Install + +Install with [npm](https://www.npmjs.com/): + +```sh +$ npm install --save is-number +``` + +## Why is this needed? + +In JavaScript, it's not always as straightforward as it should be to reliably check if a value is a number. It's common for devs to use `+`, `-`, or `Number()` to cast a string value to a number (for example, when values are returned from user input, regex matches, parsers, etc). But there are many non-intuitive edge cases that yield unexpected results: + +```js +console.log(+[]); //=> 0 +console.log(+''); //=> 0 +console.log(+' '); //=> 0 +console.log(typeof NaN); //=> 'number' +``` + +This library offers a performant way to smooth out edge cases like these. + +## Usage + +```js +const isNumber = require('is-number'); +``` + +See the [tests](./test.js) for more examples. + +### true + +```js +isNumber(5e3); // true +isNumber(0xff); // true +isNumber(-1.1); // true +isNumber(0); // true +isNumber(1); // true +isNumber(1.1); // true +isNumber(10); // true +isNumber(10.10); // true +isNumber(100); // true +isNumber('-1.1'); // true +isNumber('0'); // true +isNumber('012'); // true +isNumber('0xff'); // true +isNumber('1'); // true +isNumber('1.1'); // true +isNumber('10'); // true +isNumber('10.10'); // true +isNumber('100'); // true +isNumber('5e3'); // true +isNumber(parseInt('012')); // true +isNumber(parseFloat('012')); // true +``` + +### False + +Everything else is false, as you would expect: + +```js +isNumber(Infinity); // false +isNumber(NaN); // false +isNumber(null); // false +isNumber(undefined); // false +isNumber(''); // false +isNumber(' '); // false +isNumber('foo'); // false +isNumber([1]); // false +isNumber([]); // false +isNumber(function () {}); // false +isNumber({}); // false +``` + +## Release history + +### 7.0.0 + +* Refactor. Now uses `.isFinite` if it exists. +* Performance is about the same as v6.0 when the value is a string or number. But it's now 3x-4x faster when the value is not a string or number. + +### 6.0.0 + +* Optimizations, thanks to @benaadams. + +### 5.0.0 + +**Breaking changes** + +* removed support for `instanceof Number` and `instanceof String` + +## Benchmarks + +As with all benchmarks, take these with a grain of salt. See the [benchmarks](./benchmark/index.js) for more detail. + +``` +# all +v7.0 x 413,222 ops/sec ±2.02% (86 runs sampled) +v6.0 x 111,061 ops/sec ±1.29% (85 runs sampled) +parseFloat x 317,596 ops/sec ±1.36% (86 runs sampled) +fastest is 'v7.0' + +# string +v7.0 x 3,054,496 ops/sec ±1.05% (89 runs sampled) +v6.0 x 2,957,781 ops/sec ±0.98% (88 runs sampled) +parseFloat x 3,071,060 ops/sec ±1.13% (88 runs sampled) +fastest is 'parseFloat,v7.0' + +# number +v7.0 x 3,146,895 ops/sec ±0.89% (89 runs sampled) +v6.0 x 3,214,038 ops/sec ±1.07% (89 runs sampled) +parseFloat x 3,077,588 ops/sec ±1.07% (87 runs sampled) +fastest is 'v6.0' +``` + +## About + +
+Contributing + +Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). + +
+ +
+Running Tests + +Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: + +```sh +$ npm install && npm test +``` + +
+ +
+Building docs + +_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ + +To generate the readme, run the following command: + +```sh +$ npm install -g verbose/verb#dev verb-generate-readme && verb +``` + +
+ +### Related projects + +You might also be interested in these projects: + +* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object "Returns true if an object was created by the `Object` constructor.") +* [is-primitive](https://www.npmjs.com/package/is-primitive): Returns `true` if the value is a primitive. | [homepage](https://github.com/jonschlinkert/is-primitive "Returns `true` if the value is a primitive. ") +* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.") +* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.") + +### Contributors + +| **Commits** | **Contributor** | +| --- | --- | +| 49 | [jonschlinkert](https://github.com/jonschlinkert) | +| 5 | [charlike-old](https://github.com/charlike-old) | +| 1 | [benaadams](https://github.com/benaadams) | +| 1 | [realityking](https://github.com/realityking) | + +### Author + +**Jon Schlinkert** + +* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) +* [GitHub Profile](https://github.com/jonschlinkert) +* [Twitter Profile](https://twitter.com/jonschlinkert) + +### License + +Copyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert). +Released under the [MIT License](LICENSE). + +*** + +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 15, 2018._ \ No newline at end of file diff --git a/node_modules/is-number/index.js b/node_modules/is-number/index.js new file mode 100644 index 0000000..27f19b7 --- /dev/null +++ b/node_modules/is-number/index.js @@ -0,0 +1,18 @@ +/*! + * is-number + * + * Copyright (c) 2014-present, Jon Schlinkert. + * Released under the MIT License. + */ + +'use strict'; + +module.exports = function(num) { + if (typeof num === 'number') { + return num - num === 0; + } + if (typeof num === 'string' && num.trim() !== '') { + return Number.isFinite ? Number.isFinite(+num) : isFinite(+num); + } + return false; +}; diff --git a/node_modules/is-number/package.json b/node_modules/is-number/package.json new file mode 100644 index 0000000..3715072 --- /dev/null +++ b/node_modules/is-number/package.json @@ -0,0 +1,82 @@ +{ + "name": "is-number", + "description": "Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.", + "version": "7.0.0", + "homepage": "https://github.com/jonschlinkert/is-number", + "author": "Jon Schlinkert (https://github.com/jonschlinkert)", + "contributors": [ + "Jon Schlinkert (http://twitter.com/jonschlinkert)", + "Olsten Larck (https://i.am.charlike.online)", + "Rouven Weßling (www.rouvenwessling.de)" + ], + "repository": "jonschlinkert/is-number", + "bugs": { + "url": "https://github.com/jonschlinkert/is-number/issues" + }, + "license": "MIT", + "files": [ + "index.js" + ], + "main": "index.js", + "engines": { + "node": ">=0.12.0" + }, + "scripts": { + "test": "mocha" + }, + "devDependencies": { + "ansi": "^0.3.1", + "benchmark": "^2.1.4", + "gulp-format-md": "^1.0.0", + "mocha": "^3.5.3" + }, + "keywords": [ + "cast", + "check", + "coerce", + "coercion", + "finite", + "integer", + "is", + "isnan", + "is-nan", + "is-num", + "is-number", + "isnumber", + "isfinite", + "istype", + "kind", + "math", + "nan", + "num", + "number", + "numeric", + "parseFloat", + "parseInt", + "test", + "type", + "typeof", + "value" + ], + "verb": { + "toc": false, + "layout": "default", + "tasks": [ + "readme" + ], + "related": { + "list": [ + "is-plain-object", + "is-primitive", + "isobject", + "kind-of" + ] + }, + "plugins": [ + "gulp-format-md" + ], + "lint": { + "reflinks": true + } + } +} diff --git a/node_modules/lodash/LICENSE b/node_modules/lodash/LICENSE new file mode 100644 index 0000000..77c42f1 --- /dev/null +++ b/node_modules/lodash/LICENSE @@ -0,0 +1,47 @@ +Copyright OpenJS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. diff --git a/node_modules/lodash/README.md b/node_modules/lodash/README.md new file mode 100644 index 0000000..3ab1a05 --- /dev/null +++ b/node_modules/lodash/README.md @@ -0,0 +1,39 @@ +# lodash v4.17.21 + +The [Lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules. + +## Installation + +Using npm: +```shell +$ npm i -g npm +$ npm i --save lodash +``` + +In Node.js: +```js +// Load the full build. +var _ = require('lodash'); +// Load the core build. +var _ = require('lodash/core'); +// Load the FP build for immutable auto-curried iteratee-first data-last methods. +var fp = require('lodash/fp'); + +// Load method categories. +var array = require('lodash/array'); +var object = require('lodash/fp/object'); + +// Cherry-pick methods for smaller browserify/rollup/webpack bundles. +var at = require('lodash/at'); +var curryN = require('lodash/fp/curryN'); +``` + +See the [package source](https://github.com/lodash/lodash/tree/4.17.21-npm) for more details. + +**Note:**
+Install [n_](https://www.npmjs.com/package/n_) for Lodash use in the Node.js < 6 REPL. + +## Support + +Tested in Chrome 74-75, Firefox 66-67, IE 11, Edge 18, Safari 11-12, & Node.js 8-12.
+Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available. diff --git a/node_modules/lodash/_DataView.js b/node_modules/lodash/_DataView.js new file mode 100644 index 0000000..ac2d57c --- /dev/null +++ b/node_modules/lodash/_DataView.js @@ -0,0 +1,7 @@ +var getNative = require('./_getNative'), + root = require('./_root'); + +/* Built-in method references that are verified to be native. */ +var DataView = getNative(root, 'DataView'); + +module.exports = DataView; diff --git a/node_modules/lodash/_Hash.js b/node_modules/lodash/_Hash.js new file mode 100644 index 0000000..b504fe3 --- /dev/null +++ b/node_modules/lodash/_Hash.js @@ -0,0 +1,32 @@ +var hashClear = require('./_hashClear'), + hashDelete = require('./_hashDelete'), + hashGet = require('./_hashGet'), + hashHas = require('./_hashHas'), + hashSet = require('./_hashSet'); + +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +// Add methods to `Hash`. +Hash.prototype.clear = hashClear; +Hash.prototype['delete'] = hashDelete; +Hash.prototype.get = hashGet; +Hash.prototype.has = hashHas; +Hash.prototype.set = hashSet; + +module.exports = Hash; diff --git a/node_modules/lodash/_LazyWrapper.js b/node_modules/lodash/_LazyWrapper.js new file mode 100644 index 0000000..81786c7 --- /dev/null +++ b/node_modules/lodash/_LazyWrapper.js @@ -0,0 +1,28 @@ +var baseCreate = require('./_baseCreate'), + baseLodash = require('./_baseLodash'); + +/** Used as references for the maximum length and index of an array. */ +var MAX_ARRAY_LENGTH = 4294967295; + +/** + * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation. + * + * @private + * @constructor + * @param {*} value The value to wrap. + */ +function LazyWrapper(value) { + this.__wrapped__ = value; + this.__actions__ = []; + this.__dir__ = 1; + this.__filtered__ = false; + this.__iteratees__ = []; + this.__takeCount__ = MAX_ARRAY_LENGTH; + this.__views__ = []; +} + +// Ensure `LazyWrapper` is an instance of `baseLodash`. +LazyWrapper.prototype = baseCreate(baseLodash.prototype); +LazyWrapper.prototype.constructor = LazyWrapper; + +module.exports = LazyWrapper; diff --git a/node_modules/lodash/_ListCache.js b/node_modules/lodash/_ListCache.js new file mode 100644 index 0000000..26895c3 --- /dev/null +++ b/node_modules/lodash/_ListCache.js @@ -0,0 +1,32 @@ +var listCacheClear = require('./_listCacheClear'), + listCacheDelete = require('./_listCacheDelete'), + listCacheGet = require('./_listCacheGet'), + listCacheHas = require('./_listCacheHas'), + listCacheSet = require('./_listCacheSet'); + +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +// Add methods to `ListCache`. +ListCache.prototype.clear = listCacheClear; +ListCache.prototype['delete'] = listCacheDelete; +ListCache.prototype.get = listCacheGet; +ListCache.prototype.has = listCacheHas; +ListCache.prototype.set = listCacheSet; + +module.exports = ListCache; diff --git a/node_modules/lodash/_LodashWrapper.js b/node_modules/lodash/_LodashWrapper.js new file mode 100644 index 0000000..c1e4d9d --- /dev/null +++ b/node_modules/lodash/_LodashWrapper.js @@ -0,0 +1,22 @@ +var baseCreate = require('./_baseCreate'), + baseLodash = require('./_baseLodash'); + +/** + * The base constructor for creating `lodash` wrapper objects. + * + * @private + * @param {*} value The value to wrap. + * @param {boolean} [chainAll] Enable explicit method chain sequences. + */ +function LodashWrapper(value, chainAll) { + this.__wrapped__ = value; + this.__actions__ = []; + this.__chain__ = !!chainAll; + this.__index__ = 0; + this.__values__ = undefined; +} + +LodashWrapper.prototype = baseCreate(baseLodash.prototype); +LodashWrapper.prototype.constructor = LodashWrapper; + +module.exports = LodashWrapper; diff --git a/node_modules/lodash/_Map.js b/node_modules/lodash/_Map.js new file mode 100644 index 0000000..b73f29a --- /dev/null +++ b/node_modules/lodash/_Map.js @@ -0,0 +1,7 @@ +var getNative = require('./_getNative'), + root = require('./_root'); + +/* Built-in method references that are verified to be native. */ +var Map = getNative(root, 'Map'); + +module.exports = Map; diff --git a/node_modules/lodash/_MapCache.js b/node_modules/lodash/_MapCache.js new file mode 100644 index 0000000..4a4eea7 --- /dev/null +++ b/node_modules/lodash/_MapCache.js @@ -0,0 +1,32 @@ +var mapCacheClear = require('./_mapCacheClear'), + mapCacheDelete = require('./_mapCacheDelete'), + mapCacheGet = require('./_mapCacheGet'), + mapCacheHas = require('./_mapCacheHas'), + mapCacheSet = require('./_mapCacheSet'); + +/** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function MapCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +// Add methods to `MapCache`. +MapCache.prototype.clear = mapCacheClear; +MapCache.prototype['delete'] = mapCacheDelete; +MapCache.prototype.get = mapCacheGet; +MapCache.prototype.has = mapCacheHas; +MapCache.prototype.set = mapCacheSet; + +module.exports = MapCache; diff --git a/node_modules/lodash/_Promise.js b/node_modules/lodash/_Promise.js new file mode 100644 index 0000000..247b9e1 --- /dev/null +++ b/node_modules/lodash/_Promise.js @@ -0,0 +1,7 @@ +var getNative = require('./_getNative'), + root = require('./_root'); + +/* Built-in method references that are verified to be native. */ +var Promise = getNative(root, 'Promise'); + +module.exports = Promise; diff --git a/node_modules/lodash/_Set.js b/node_modules/lodash/_Set.js new file mode 100644 index 0000000..b3c8dcb --- /dev/null +++ b/node_modules/lodash/_Set.js @@ -0,0 +1,7 @@ +var getNative = require('./_getNative'), + root = require('./_root'); + +/* Built-in method references that are verified to be native. */ +var Set = getNative(root, 'Set'); + +module.exports = Set; diff --git a/node_modules/lodash/_SetCache.js b/node_modules/lodash/_SetCache.js new file mode 100644 index 0000000..6468b06 --- /dev/null +++ b/node_modules/lodash/_SetCache.js @@ -0,0 +1,27 @@ +var MapCache = require('./_MapCache'), + setCacheAdd = require('./_setCacheAdd'), + setCacheHas = require('./_setCacheHas'); + +/** + * + * Creates an array cache object to store unique values. + * + * @private + * @constructor + * @param {Array} [values] The values to cache. + */ +function SetCache(values) { + var index = -1, + length = values == null ? 0 : values.length; + + this.__data__ = new MapCache; + while (++index < length) { + this.add(values[index]); + } +} + +// Add methods to `SetCache`. +SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; +SetCache.prototype.has = setCacheHas; + +module.exports = SetCache; diff --git a/node_modules/lodash/_Stack.js b/node_modules/lodash/_Stack.js new file mode 100644 index 0000000..80b2cf1 --- /dev/null +++ b/node_modules/lodash/_Stack.js @@ -0,0 +1,27 @@ +var ListCache = require('./_ListCache'), + stackClear = require('./_stackClear'), + stackDelete = require('./_stackDelete'), + stackGet = require('./_stackGet'), + stackHas = require('./_stackHas'), + stackSet = require('./_stackSet'); + +/** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; +} + +// Add methods to `Stack`. +Stack.prototype.clear = stackClear; +Stack.prototype['delete'] = stackDelete; +Stack.prototype.get = stackGet; +Stack.prototype.has = stackHas; +Stack.prototype.set = stackSet; + +module.exports = Stack; diff --git a/node_modules/lodash/_Symbol.js b/node_modules/lodash/_Symbol.js new file mode 100644 index 0000000..a013f7c --- /dev/null +++ b/node_modules/lodash/_Symbol.js @@ -0,0 +1,6 @@ +var root = require('./_root'); + +/** Built-in value references. */ +var Symbol = root.Symbol; + +module.exports = Symbol; diff --git a/node_modules/lodash/_Uint8Array.js b/node_modules/lodash/_Uint8Array.js new file mode 100644 index 0000000..2fb30e1 --- /dev/null +++ b/node_modules/lodash/_Uint8Array.js @@ -0,0 +1,6 @@ +var root = require('./_root'); + +/** Built-in value references. */ +var Uint8Array = root.Uint8Array; + +module.exports = Uint8Array; diff --git a/node_modules/lodash/_WeakMap.js b/node_modules/lodash/_WeakMap.js new file mode 100644 index 0000000..567f86c --- /dev/null +++ b/node_modules/lodash/_WeakMap.js @@ -0,0 +1,7 @@ +var getNative = require('./_getNative'), + root = require('./_root'); + +/* Built-in method references that are verified to be native. */ +var WeakMap = getNative(root, 'WeakMap'); + +module.exports = WeakMap; diff --git a/node_modules/lodash/_apply.js b/node_modules/lodash/_apply.js new file mode 100644 index 0000000..36436dd --- /dev/null +++ b/node_modules/lodash/_apply.js @@ -0,0 +1,21 @@ +/** + * A faster alternative to `Function#apply`, this function invokes `func` + * with the `this` binding of `thisArg` and the arguments of `args`. + * + * @private + * @param {Function} func The function to invoke. + * @param {*} thisArg The `this` binding of `func`. + * @param {Array} args The arguments to invoke `func` with. + * @returns {*} Returns the result of `func`. + */ +function apply(func, thisArg, args) { + switch (args.length) { + case 0: return func.call(thisArg); + case 1: return func.call(thisArg, args[0]); + case 2: return func.call(thisArg, args[0], args[1]); + case 3: return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); +} + +module.exports = apply; diff --git a/node_modules/lodash/_arrayAggregator.js b/node_modules/lodash/_arrayAggregator.js new file mode 100644 index 0000000..d96c3ca --- /dev/null +++ b/node_modules/lodash/_arrayAggregator.js @@ -0,0 +1,22 @@ +/** + * A specialized version of `baseAggregator` for arrays. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} setter The function to set `accumulator` values. + * @param {Function} iteratee The iteratee to transform keys. + * @param {Object} accumulator The initial aggregated object. + * @returns {Function} Returns `accumulator`. + */ +function arrayAggregator(array, setter, iteratee, accumulator) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + var value = array[index]; + setter(accumulator, value, iteratee(value), array); + } + return accumulator; +} + +module.exports = arrayAggregator; diff --git a/node_modules/lodash/_arrayEach.js b/node_modules/lodash/_arrayEach.js new file mode 100644 index 0000000..2c5f579 --- /dev/null +++ b/node_modules/lodash/_arrayEach.js @@ -0,0 +1,22 @@ +/** + * A specialized version of `_.forEach` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns `array`. + */ +function arrayEach(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (iteratee(array[index], index, array) === false) { + break; + } + } + return array; +} + +module.exports = arrayEach; diff --git a/node_modules/lodash/_arrayEachRight.js b/node_modules/lodash/_arrayEachRight.js new file mode 100644 index 0000000..976ca5c --- /dev/null +++ b/node_modules/lodash/_arrayEachRight.js @@ -0,0 +1,21 @@ +/** + * A specialized version of `_.forEachRight` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns `array`. + */ +function arrayEachRight(array, iteratee) { + var length = array == null ? 0 : array.length; + + while (length--) { + if (iteratee(array[length], length, array) === false) { + break; + } + } + return array; +} + +module.exports = arrayEachRight; diff --git a/node_modules/lodash/_arrayEvery.js b/node_modules/lodash/_arrayEvery.js new file mode 100644 index 0000000..e26a918 --- /dev/null +++ b/node_modules/lodash/_arrayEvery.js @@ -0,0 +1,23 @@ +/** + * A specialized version of `_.every` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false`. + */ +function arrayEvery(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (!predicate(array[index], index, array)) { + return false; + } + } + return true; +} + +module.exports = arrayEvery; diff --git a/node_modules/lodash/_arrayFilter.js b/node_modules/lodash/_arrayFilter.js new file mode 100644 index 0000000..75ea254 --- /dev/null +++ b/node_modules/lodash/_arrayFilter.js @@ -0,0 +1,25 @@ +/** + * A specialized version of `_.filter` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ +function arrayFilter(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + if (predicate(value, index, array)) { + result[resIndex++] = value; + } + } + return result; +} + +module.exports = arrayFilter; diff --git a/node_modules/lodash/_arrayIncludes.js b/node_modules/lodash/_arrayIncludes.js new file mode 100644 index 0000000..3737a6d --- /dev/null +++ b/node_modules/lodash/_arrayIncludes.js @@ -0,0 +1,17 @@ +var baseIndexOf = require('./_baseIndexOf'); + +/** + * A specialized version of `_.includes` for arrays without support for + * specifying an index to search from. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludes(array, value) { + var length = array == null ? 0 : array.length; + return !!length && baseIndexOf(array, value, 0) > -1; +} + +module.exports = arrayIncludes; diff --git a/node_modules/lodash/_arrayIncludesWith.js b/node_modules/lodash/_arrayIncludesWith.js new file mode 100644 index 0000000..235fd97 --- /dev/null +++ b/node_modules/lodash/_arrayIncludesWith.js @@ -0,0 +1,22 @@ +/** + * This function is like `arrayIncludes` except that it accepts a comparator. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @param {Function} comparator The comparator invoked per element. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludesWith(array, value, comparator) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (comparator(value, array[index])) { + return true; + } + } + return false; +} + +module.exports = arrayIncludesWith; diff --git a/node_modules/lodash/_arrayLikeKeys.js b/node_modules/lodash/_arrayLikeKeys.js new file mode 100644 index 0000000..b2ec9ce --- /dev/null +++ b/node_modules/lodash/_arrayLikeKeys.js @@ -0,0 +1,49 @@ +var baseTimes = require('./_baseTimes'), + isArguments = require('./isArguments'), + isArray = require('./isArray'), + isBuffer = require('./isBuffer'), + isIndex = require('./_isIndex'), + isTypedArray = require('./isTypedArray'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ +function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), + isArg = !isArr && isArguments(value), + isBuff = !isArr && !isArg && isBuffer(value), + isType = !isArr && !isArg && !isBuff && isTypedArray(value), + skipIndexes = isArr || isArg || isBuff || isType, + result = skipIndexes ? baseTimes(value.length, String) : [], + length = result.length; + + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && + !(skipIndexes && ( + // Safari 9 has enumerable `arguments.length` in strict mode. + key == 'length' || + // Node.js 0.10 has enumerable non-index properties on buffers. + (isBuff && (key == 'offset' || key == 'parent')) || + // PhantomJS 2 has enumerable non-index properties on typed arrays. + (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || + // Skip index properties. + isIndex(key, length) + ))) { + result.push(key); + } + } + return result; +} + +module.exports = arrayLikeKeys; diff --git a/node_modules/lodash/_arrayMap.js b/node_modules/lodash/_arrayMap.js new file mode 100644 index 0000000..22b2246 --- /dev/null +++ b/node_modules/lodash/_arrayMap.js @@ -0,0 +1,21 @@ +/** + * A specialized version of `_.map` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ +function arrayMap(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length, + result = Array(length); + + while (++index < length) { + result[index] = iteratee(array[index], index, array); + } + return result; +} + +module.exports = arrayMap; diff --git a/node_modules/lodash/_arrayPush.js b/node_modules/lodash/_arrayPush.js new file mode 100644 index 0000000..7d742b3 --- /dev/null +++ b/node_modules/lodash/_arrayPush.js @@ -0,0 +1,20 @@ +/** + * Appends the elements of `values` to `array`. + * + * @private + * @param {Array} array The array to modify. + * @param {Array} values The values to append. + * @returns {Array} Returns `array`. + */ +function arrayPush(array, values) { + var index = -1, + length = values.length, + offset = array.length; + + while (++index < length) { + array[offset + index] = values[index]; + } + return array; +} + +module.exports = arrayPush; diff --git a/node_modules/lodash/_arrayReduce.js b/node_modules/lodash/_arrayReduce.js new file mode 100644 index 0000000..de8b79b --- /dev/null +++ b/node_modules/lodash/_arrayReduce.js @@ -0,0 +1,26 @@ +/** + * A specialized version of `_.reduce` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @param {boolean} [initAccum] Specify using the first element of `array` as + * the initial value. + * @returns {*} Returns the accumulated value. + */ +function arrayReduce(array, iteratee, accumulator, initAccum) { + var index = -1, + length = array == null ? 0 : array.length; + + if (initAccum && length) { + accumulator = array[++index]; + } + while (++index < length) { + accumulator = iteratee(accumulator, array[index], index, array); + } + return accumulator; +} + +module.exports = arrayReduce; diff --git a/node_modules/lodash/_arrayReduceRight.js b/node_modules/lodash/_arrayReduceRight.js new file mode 100644 index 0000000..22d8976 --- /dev/null +++ b/node_modules/lodash/_arrayReduceRight.js @@ -0,0 +1,24 @@ +/** + * A specialized version of `_.reduceRight` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @param {boolean} [initAccum] Specify using the last element of `array` as + * the initial value. + * @returns {*} Returns the accumulated value. + */ +function arrayReduceRight(array, iteratee, accumulator, initAccum) { + var length = array == null ? 0 : array.length; + if (initAccum && length) { + accumulator = array[--length]; + } + while (length--) { + accumulator = iteratee(accumulator, array[length], length, array); + } + return accumulator; +} + +module.exports = arrayReduceRight; diff --git a/node_modules/lodash/_arraySample.js b/node_modules/lodash/_arraySample.js new file mode 100644 index 0000000..fcab010 --- /dev/null +++ b/node_modules/lodash/_arraySample.js @@ -0,0 +1,15 @@ +var baseRandom = require('./_baseRandom'); + +/** + * A specialized version of `_.sample` for arrays. + * + * @private + * @param {Array} array The array to sample. + * @returns {*} Returns the random element. + */ +function arraySample(array) { + var length = array.length; + return length ? array[baseRandom(0, length - 1)] : undefined; +} + +module.exports = arraySample; diff --git a/node_modules/lodash/_arraySampleSize.js b/node_modules/lodash/_arraySampleSize.js new file mode 100644 index 0000000..8c7e364 --- /dev/null +++ b/node_modules/lodash/_arraySampleSize.js @@ -0,0 +1,17 @@ +var baseClamp = require('./_baseClamp'), + copyArray = require('./_copyArray'), + shuffleSelf = require('./_shuffleSelf'); + +/** + * A specialized version of `_.sampleSize` for arrays. + * + * @private + * @param {Array} array The array to sample. + * @param {number} n The number of elements to sample. + * @returns {Array} Returns the random elements. + */ +function arraySampleSize(array, n) { + return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); +} + +module.exports = arraySampleSize; diff --git a/node_modules/lodash/_arrayShuffle.js b/node_modules/lodash/_arrayShuffle.js new file mode 100644 index 0000000..46313a3 --- /dev/null +++ b/node_modules/lodash/_arrayShuffle.js @@ -0,0 +1,15 @@ +var copyArray = require('./_copyArray'), + shuffleSelf = require('./_shuffleSelf'); + +/** + * A specialized version of `_.shuffle` for arrays. + * + * @private + * @param {Array} array The array to shuffle. + * @returns {Array} Returns the new shuffled array. + */ +function arrayShuffle(array) { + return shuffleSelf(copyArray(array)); +} + +module.exports = arrayShuffle; diff --git a/node_modules/lodash/_arraySome.js b/node_modules/lodash/_arraySome.js new file mode 100644 index 0000000..6fd02fd --- /dev/null +++ b/node_modules/lodash/_arraySome.js @@ -0,0 +1,23 @@ +/** + * A specialized version of `_.some` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ +function arraySome(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (predicate(array[index], index, array)) { + return true; + } + } + return false; +} + +module.exports = arraySome; diff --git a/node_modules/lodash/_asciiSize.js b/node_modules/lodash/_asciiSize.js new file mode 100644 index 0000000..11d29c3 --- /dev/null +++ b/node_modules/lodash/_asciiSize.js @@ -0,0 +1,12 @@ +var baseProperty = require('./_baseProperty'); + +/** + * Gets the size of an ASCII `string`. + * + * @private + * @param {string} string The string inspect. + * @returns {number} Returns the string size. + */ +var asciiSize = baseProperty('length'); + +module.exports = asciiSize; diff --git a/node_modules/lodash/_asciiToArray.js b/node_modules/lodash/_asciiToArray.js new file mode 100644 index 0000000..8e3dd5b --- /dev/null +++ b/node_modules/lodash/_asciiToArray.js @@ -0,0 +1,12 @@ +/** + * Converts an ASCII `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function asciiToArray(string) { + return string.split(''); +} + +module.exports = asciiToArray; diff --git a/node_modules/lodash/_asciiWords.js b/node_modules/lodash/_asciiWords.js new file mode 100644 index 0000000..d765f0f --- /dev/null +++ b/node_modules/lodash/_asciiWords.js @@ -0,0 +1,15 @@ +/** Used to match words composed of alphanumeric characters. */ +var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; + +/** + * Splits an ASCII `string` into an array of its words. + * + * @private + * @param {string} The string to inspect. + * @returns {Array} Returns the words of `string`. + */ +function asciiWords(string) { + return string.match(reAsciiWord) || []; +} + +module.exports = asciiWords; diff --git a/node_modules/lodash/_assignMergeValue.js b/node_modules/lodash/_assignMergeValue.js new file mode 100644 index 0000000..cb1185e --- /dev/null +++ b/node_modules/lodash/_assignMergeValue.js @@ -0,0 +1,20 @@ +var baseAssignValue = require('./_baseAssignValue'), + eq = require('./eq'); + +/** + * This function is like `assignValue` except that it doesn't assign + * `undefined` values. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ +function assignMergeValue(object, key, value) { + if ((value !== undefined && !eq(object[key], value)) || + (value === undefined && !(key in object))) { + baseAssignValue(object, key, value); + } +} + +module.exports = assignMergeValue; diff --git a/node_modules/lodash/_assignValue.js b/node_modules/lodash/_assignValue.js new file mode 100644 index 0000000..4083957 --- /dev/null +++ b/node_modules/lodash/_assignValue.js @@ -0,0 +1,28 @@ +var baseAssignValue = require('./_baseAssignValue'), + eq = require('./eq'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Assigns `value` to `key` of `object` if the existing value is not equivalent + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ +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); + } +} + +module.exports = assignValue; diff --git a/node_modules/lodash/_assocIndexOf.js b/node_modules/lodash/_assocIndexOf.js new file mode 100644 index 0000000..5b77a2b --- /dev/null +++ b/node_modules/lodash/_assocIndexOf.js @@ -0,0 +1,21 @@ +var eq = require('./eq'); + +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; +} + +module.exports = assocIndexOf; diff --git a/node_modules/lodash/_baseAggregator.js b/node_modules/lodash/_baseAggregator.js new file mode 100644 index 0000000..4bc9e91 --- /dev/null +++ b/node_modules/lodash/_baseAggregator.js @@ -0,0 +1,21 @@ +var baseEach = require('./_baseEach'); + +/** + * Aggregates elements of `collection` on `accumulator` with keys transformed + * by `iteratee` and values set by `setter`. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} setter The function to set `accumulator` values. + * @param {Function} iteratee The iteratee to transform keys. + * @param {Object} accumulator The initial aggregated object. + * @returns {Function} Returns `accumulator`. + */ +function baseAggregator(collection, setter, iteratee, accumulator) { + baseEach(collection, function(value, key, collection) { + setter(accumulator, value, iteratee(value), collection); + }); + return accumulator; +} + +module.exports = baseAggregator; diff --git a/node_modules/lodash/_baseAssign.js b/node_modules/lodash/_baseAssign.js new file mode 100644 index 0000000..e5c4a1a --- /dev/null +++ b/node_modules/lodash/_baseAssign.js @@ -0,0 +1,17 @@ +var copyObject = require('./_copyObject'), + keys = require('./keys'); + +/** + * The base implementation of `_.assign` without support for multiple sources + * or `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. + */ +function baseAssign(object, source) { + return object && copyObject(source, keys(source), object); +} + +module.exports = baseAssign; diff --git a/node_modules/lodash/_baseAssignIn.js b/node_modules/lodash/_baseAssignIn.js new file mode 100644 index 0000000..6624f90 --- /dev/null +++ b/node_modules/lodash/_baseAssignIn.js @@ -0,0 +1,17 @@ +var copyObject = require('./_copyObject'), + keysIn = require('./keysIn'); + +/** + * The base implementation of `_.assignIn` without support for multiple sources + * or `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. + */ +function baseAssignIn(object, source) { + return object && copyObject(source, keysIn(source), object); +} + +module.exports = baseAssignIn; diff --git a/node_modules/lodash/_baseAssignValue.js b/node_modules/lodash/_baseAssignValue.js new file mode 100644 index 0000000..d6f66ef --- /dev/null +++ b/node_modules/lodash/_baseAssignValue.js @@ -0,0 +1,25 @@ +var defineProperty = require('./_defineProperty'); + +/** + * The base implementation of `assignValue` and `assignMergeValue` without + * value checks. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ +function baseAssignValue(object, key, value) { + if (key == '__proto__' && defineProperty) { + defineProperty(object, key, { + 'configurable': true, + 'enumerable': true, + 'value': value, + 'writable': true + }); + } else { + object[key] = value; + } +} + +module.exports = baseAssignValue; diff --git a/node_modules/lodash/_baseAt.js b/node_modules/lodash/_baseAt.js new file mode 100644 index 0000000..90e4237 --- /dev/null +++ b/node_modules/lodash/_baseAt.js @@ -0,0 +1,23 @@ +var get = require('./get'); + +/** + * The base implementation of `_.at` without support for individual paths. + * + * @private + * @param {Object} object The object to iterate over. + * @param {string[]} paths The property paths to pick. + * @returns {Array} Returns the picked elements. + */ +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; +} + +module.exports = baseAt; diff --git a/node_modules/lodash/_baseClamp.js b/node_modules/lodash/_baseClamp.js new file mode 100644 index 0000000..a1c5692 --- /dev/null +++ b/node_modules/lodash/_baseClamp.js @@ -0,0 +1,22 @@ +/** + * The base implementation of `_.clamp` which doesn't coerce arguments. + * + * @private + * @param {number} number The number to clamp. + * @param {number} [lower] The lower bound. + * @param {number} upper The upper bound. + * @returns {number} Returns the clamped number. + */ +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; +} + +module.exports = baseClamp; diff --git a/node_modules/lodash/_baseClone.js b/node_modules/lodash/_baseClone.js new file mode 100644 index 0000000..69f8705 --- /dev/null +++ b/node_modules/lodash/_baseClone.js @@ -0,0 +1,166 @@ +var Stack = require('./_Stack'), + arrayEach = require('./_arrayEach'), + assignValue = require('./_assignValue'), + baseAssign = require('./_baseAssign'), + baseAssignIn = require('./_baseAssignIn'), + cloneBuffer = require('./_cloneBuffer'), + copyArray = require('./_copyArray'), + copySymbols = require('./_copySymbols'), + copySymbolsIn = require('./_copySymbolsIn'), + getAllKeys = require('./_getAllKeys'), + getAllKeysIn = require('./_getAllKeysIn'), + getTag = require('./_getTag'), + initCloneArray = require('./_initCloneArray'), + initCloneByTag = require('./_initCloneByTag'), + initCloneObject = require('./_initCloneObject'), + isArray = require('./isArray'), + isBuffer = require('./isBuffer'), + isMap = require('./isMap'), + isObject = require('./isObject'), + isSet = require('./isSet'), + keys = require('./keys'), + keysIn = require('./keysIn'); + +/** Used to compose bitmasks for cloning. */ +var CLONE_DEEP_FLAG = 1, + CLONE_FLAT_FLAG = 2, + CLONE_SYMBOLS_FLAG = 4; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + mapTag = '[object Map]', + numberTag = '[object Number]', + objectTag = '[object Object]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]', + weakMapTag = '[object WeakMap]'; + +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 identify `toStringTag` values supported by `_.clone`. */ +var cloneableTags = {}; +cloneableTags[argsTag] = cloneableTags[arrayTag] = +cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = +cloneableTags[boolTag] = cloneableTags[dateTag] = +cloneableTags[float32Tag] = cloneableTags[float64Tag] = +cloneableTags[int8Tag] = cloneableTags[int16Tag] = +cloneableTags[int32Tag] = cloneableTags[mapTag] = +cloneableTags[numberTag] = cloneableTags[objectTag] = +cloneableTags[regexpTag] = cloneableTags[setTag] = +cloneableTags[stringTag] = cloneableTags[symbolTag] = +cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = +cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; +cloneableTags[errorTag] = cloneableTags[funcTag] = +cloneableTags[weakMapTag] = false; + +/** + * The base implementation of `_.clone` and `_.cloneDeep` which tracks + * traversed objects. + * + * @private + * @param {*} value The value to clone. + * @param {boolean} bitmask The bitmask flags. + * 1 - Deep clone + * 2 - Flatten inherited properties + * 4 - Clone symbols + * @param {Function} [customizer] The function to customize cloning. + * @param {string} [key] The key of `value`. + * @param {Object} [object] The parent object of `value`. + * @param {Object} [stack] Tracks traversed objects and their clone counterparts. + * @returns {*} Returns the cloned value. + */ +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. + 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). + assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); + }); + return result; +} + +module.exports = baseClone; diff --git a/node_modules/lodash/_baseConforms.js b/node_modules/lodash/_baseConforms.js new file mode 100644 index 0000000..947e20d --- /dev/null +++ b/node_modules/lodash/_baseConforms.js @@ -0,0 +1,18 @@ +var baseConformsTo = require('./_baseConformsTo'), + keys = require('./keys'); + +/** + * The base implementation of `_.conforms` which doesn't clone `source`. + * + * @private + * @param {Object} source The object of property predicates to conform to. + * @returns {Function} Returns the new spec function. + */ +function baseConforms(source) { + var props = keys(source); + return function(object) { + return baseConformsTo(object, source, props); + }; +} + +module.exports = baseConforms; diff --git a/node_modules/lodash/_baseConformsTo.js b/node_modules/lodash/_baseConformsTo.js new file mode 100644 index 0000000..e449cb8 --- /dev/null +++ b/node_modules/lodash/_baseConformsTo.js @@ -0,0 +1,27 @@ +/** + * The base implementation of `_.conformsTo` which accepts `props` to check. + * + * @private + * @param {Object} object The object to inspect. + * @param {Object} source The object of property predicates to conform to. + * @returns {boolean} Returns `true` if `object` conforms, else `false`. + */ +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; +} + +module.exports = baseConformsTo; diff --git a/node_modules/lodash/_baseCreate.js b/node_modules/lodash/_baseCreate.js new file mode 100644 index 0000000..ffa6a52 --- /dev/null +++ b/node_modules/lodash/_baseCreate.js @@ -0,0 +1,30 @@ +var isObject = require('./isObject'); + +/** Built-in value references. */ +var objectCreate = Object.create; + +/** + * The base implementation of `_.create` without support for assigning + * properties to the created object. + * + * @private + * @param {Object} proto The object to inherit from. + * @returns {Object} Returns the new object. + */ +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; + }; +}()); + +module.exports = baseCreate; diff --git a/node_modules/lodash/_baseDelay.js b/node_modules/lodash/_baseDelay.js new file mode 100644 index 0000000..1486d69 --- /dev/null +++ b/node_modules/lodash/_baseDelay.js @@ -0,0 +1,21 @@ +/** Error message constants. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/** + * The base implementation of `_.delay` and `_.defer` which accepts `args` + * to provide to `func`. + * + * @private + * @param {Function} func The function to delay. + * @param {number} wait The number of milliseconds to delay invocation. + * @param {Array} args The arguments to provide to `func`. + * @returns {number|Object} Returns the timer id or timeout object. + */ +function baseDelay(func, wait, args) { + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + return setTimeout(function() { func.apply(undefined, args); }, wait); +} + +module.exports = baseDelay; diff --git a/node_modules/lodash/_baseDifference.js b/node_modules/lodash/_baseDifference.js new file mode 100644 index 0000000..343ac19 --- /dev/null +++ b/node_modules/lodash/_baseDifference.js @@ -0,0 +1,67 @@ +var SetCache = require('./_SetCache'), + arrayIncludes = require('./_arrayIncludes'), + arrayIncludesWith = require('./_arrayIncludesWith'), + arrayMap = require('./_arrayMap'), + baseUnary = require('./_baseUnary'), + cacheHas = require('./_cacheHas'); + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** + * The base implementation of methods like `_.difference` without support + * for excluding multiple arrays or iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Array} values The values to exclude. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of filtered values. + */ +function baseDifference(array, values, iteratee, comparator) { + var index = -1, + includes = arrayIncludes, + isCommon = true, + length = array.length, + result = [], + valuesLength = values.length; + + if (!length) { + return result; + } + if (iteratee) { + values = arrayMap(values, baseUnary(iteratee)); + } + if (comparator) { + includes = arrayIncludesWith; + isCommon = false; + } + else if (values.length >= LARGE_ARRAY_SIZE) { + includes = cacheHas; + isCommon = false; + values = new SetCache(values); + } + outer: + while (++index < length) { + var value = array[index], + computed = iteratee == null ? value : iteratee(value); + + value = (comparator || value !== 0) ? value : 0; + if (isCommon && computed === computed) { + var valuesIndex = valuesLength; + while (valuesIndex--) { + if (values[valuesIndex] === computed) { + continue outer; + } + } + result.push(value); + } + else if (!includes(values, computed, comparator)) { + result.push(value); + } + } + return result; +} + +module.exports = baseDifference; diff --git a/node_modules/lodash/_baseEach.js b/node_modules/lodash/_baseEach.js new file mode 100644 index 0000000..512c067 --- /dev/null +++ b/node_modules/lodash/_baseEach.js @@ -0,0 +1,14 @@ +var baseForOwn = require('./_baseForOwn'), + createBaseEach = require('./_createBaseEach'); + +/** + * The base implementation of `_.forEach` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + */ +var baseEach = createBaseEach(baseForOwn); + +module.exports = baseEach; diff --git a/node_modules/lodash/_baseEachRight.js b/node_modules/lodash/_baseEachRight.js new file mode 100644 index 0000000..0a8feec --- /dev/null +++ b/node_modules/lodash/_baseEachRight.js @@ -0,0 +1,14 @@ +var baseForOwnRight = require('./_baseForOwnRight'), + createBaseEach = require('./_createBaseEach'); + +/** + * The base implementation of `_.forEachRight` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + */ +var baseEachRight = createBaseEach(baseForOwnRight, true); + +module.exports = baseEachRight; diff --git a/node_modules/lodash/_baseEvery.js b/node_modules/lodash/_baseEvery.js new file mode 100644 index 0000000..fa52f7b --- /dev/null +++ b/node_modules/lodash/_baseEvery.js @@ -0,0 +1,21 @@ +var baseEach = require('./_baseEach'); + +/** + * The base implementation of `_.every` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false` + */ +function baseEvery(collection, predicate) { + var result = true; + baseEach(collection, function(value, index, collection) { + result = !!predicate(value, index, collection); + return result; + }); + return result; +} + +module.exports = baseEvery; diff --git a/node_modules/lodash/_baseExtremum.js b/node_modules/lodash/_baseExtremum.js new file mode 100644 index 0000000..9d6aa77 --- /dev/null +++ b/node_modules/lodash/_baseExtremum.js @@ -0,0 +1,32 @@ +var isSymbol = require('./isSymbol'); + +/** + * The base implementation of methods like `_.max` and `_.min` which accepts a + * `comparator` to determine the extremum value. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The iteratee invoked per iteration. + * @param {Function} comparator The comparator used to compare values. + * @returns {*} Returns the extremum value. + */ +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 + ? (current === current && !isSymbol(current)) + : comparator(current, computed) + )) { + var computed = current, + result = value; + } + } + return result; +} + +module.exports = baseExtremum; diff --git a/node_modules/lodash/_baseFill.js b/node_modules/lodash/_baseFill.js new file mode 100644 index 0000000..46ef9c7 --- /dev/null +++ b/node_modules/lodash/_baseFill.js @@ -0,0 +1,32 @@ +var toInteger = require('./toInteger'), + toLength = require('./toLength'); + +/** + * The base implementation of `_.fill` without an iteratee call guard. + * + * @private + * @param {Array} array The array to fill. + * @param {*} value The value to fill `array` with. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns `array`. + */ +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; +} + +module.exports = baseFill; diff --git a/node_modules/lodash/_baseFilter.js b/node_modules/lodash/_baseFilter.js new file mode 100644 index 0000000..4678477 --- /dev/null +++ b/node_modules/lodash/_baseFilter.js @@ -0,0 +1,21 @@ +var baseEach = require('./_baseEach'); + +/** + * The base implementation of `_.filter` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ +function baseFilter(collection, predicate) { + var result = []; + baseEach(collection, function(value, index, collection) { + if (predicate(value, index, collection)) { + result.push(value); + } + }); + return result; +} + +module.exports = baseFilter; diff --git a/node_modules/lodash/_baseFindIndex.js b/node_modules/lodash/_baseFindIndex.js new file mode 100644 index 0000000..e3f5d8a --- /dev/null +++ b/node_modules/lodash/_baseFindIndex.js @@ -0,0 +1,24 @@ +/** + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} predicate The function invoked per iteration. + * @param {number} fromIndex The index to search from. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseFindIndex(array, predicate, fromIndex, fromRight) { + var length = array.length, + index = fromIndex + (fromRight ? 1 : -1); + + while ((fromRight ? index-- : ++index < length)) { + if (predicate(array[index], index, array)) { + return index; + } + } + return -1; +} + +module.exports = baseFindIndex; diff --git a/node_modules/lodash/_baseFindKey.js b/node_modules/lodash/_baseFindKey.js new file mode 100644 index 0000000..2e430f3 --- /dev/null +++ b/node_modules/lodash/_baseFindKey.js @@ -0,0 +1,23 @@ +/** + * The base implementation of methods like `_.findKey` and `_.findLastKey`, + * without support for iteratee shorthands, which iterates over `collection` + * using `eachFunc`. + * + * @private + * @param {Array|Object} collection The collection to inspect. + * @param {Function} predicate The function invoked per iteration. + * @param {Function} eachFunc The function to iterate over `collection`. + * @returns {*} Returns the found element or its key, else `undefined`. + */ +function baseFindKey(collection, predicate, eachFunc) { + var result; + eachFunc(collection, function(value, key, collection) { + if (predicate(value, key, collection)) { + result = key; + return false; + } + }); + return result; +} + +module.exports = baseFindKey; diff --git a/node_modules/lodash/_baseFlatten.js b/node_modules/lodash/_baseFlatten.js new file mode 100644 index 0000000..4b1e009 --- /dev/null +++ b/node_modules/lodash/_baseFlatten.js @@ -0,0 +1,38 @@ +var arrayPush = require('./_arrayPush'), + isFlattenable = require('./_isFlattenable'); + +/** + * The base implementation of `_.flatten` with support for restricting flattening. + * + * @private + * @param {Array} array The array to flatten. + * @param {number} depth The maximum recursion depth. + * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. + * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. + * @param {Array} [result=[]] The initial result value. + * @returns {Array} Returns the new flattened array. + */ +function baseFlatten(array, depth, predicate, isStrict, result) { + var index = -1, + length = array.length; + + predicate || (predicate = isFlattenable); + result || (result = []); + + while (++index < length) { + var value = array[index]; + if (depth > 0 && predicate(value)) { + if (depth > 1) { + // Recursively flatten arrays (susceptible to call stack limits). + baseFlatten(value, depth - 1, predicate, isStrict, result); + } else { + arrayPush(result, value); + } + } else if (!isStrict) { + result[result.length] = value; + } + } + return result; +} + +module.exports = baseFlatten; diff --git a/node_modules/lodash/_baseFor.js b/node_modules/lodash/_baseFor.js new file mode 100644 index 0000000..d946590 --- /dev/null +++ b/node_modules/lodash/_baseFor.js @@ -0,0 +1,16 @@ +var createBaseFor = require('./_createBaseFor'); + +/** + * The base implementation of `baseForOwn` which iterates over `object` + * properties returned by `keysFunc` and invokes `iteratee` for each property. + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ +var baseFor = createBaseFor(); + +module.exports = baseFor; diff --git a/node_modules/lodash/_baseForOwn.js b/node_modules/lodash/_baseForOwn.js new file mode 100644 index 0000000..503d523 --- /dev/null +++ b/node_modules/lodash/_baseForOwn.js @@ -0,0 +1,16 @@ +var baseFor = require('./_baseFor'), + keys = require('./keys'); + +/** + * The base implementation of `_.forOwn` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ +function baseForOwn(object, iteratee) { + return object && baseFor(object, iteratee, keys); +} + +module.exports = baseForOwn; diff --git a/node_modules/lodash/_baseForOwnRight.js b/node_modules/lodash/_baseForOwnRight.js new file mode 100644 index 0000000..a4b10e6 --- /dev/null +++ b/node_modules/lodash/_baseForOwnRight.js @@ -0,0 +1,16 @@ +var baseForRight = require('./_baseForRight'), + keys = require('./keys'); + +/** + * The base implementation of `_.forOwnRight` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ +function baseForOwnRight(object, iteratee) { + return object && baseForRight(object, iteratee, keys); +} + +module.exports = baseForOwnRight; diff --git a/node_modules/lodash/_baseForRight.js b/node_modules/lodash/_baseForRight.js new file mode 100644 index 0000000..32842cd --- /dev/null +++ b/node_modules/lodash/_baseForRight.js @@ -0,0 +1,15 @@ +var createBaseFor = require('./_createBaseFor'); + +/** + * This function is like `baseFor` except that it iterates over properties + * in the opposite order. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ +var baseForRight = createBaseFor(true); + +module.exports = baseForRight; diff --git a/node_modules/lodash/_baseFunctions.js b/node_modules/lodash/_baseFunctions.js new file mode 100644 index 0000000..d23bc9b --- /dev/null +++ b/node_modules/lodash/_baseFunctions.js @@ -0,0 +1,19 @@ +var arrayFilter = require('./_arrayFilter'), + isFunction = require('./isFunction'); + +/** + * The base implementation of `_.functions` which creates an array of + * `object` function property names filtered from `props`. + * + * @private + * @param {Object} object The object to inspect. + * @param {Array} props The property names to filter. + * @returns {Array} Returns the function names. + */ +function baseFunctions(object, props) { + return arrayFilter(props, function(key) { + return isFunction(object[key]); + }); +} + +module.exports = baseFunctions; diff --git a/node_modules/lodash/_baseGet.js b/node_modules/lodash/_baseGet.js new file mode 100644 index 0000000..a194913 --- /dev/null +++ b/node_modules/lodash/_baseGet.js @@ -0,0 +1,24 @@ +var castPath = require('./_castPath'), + toKey = require('./_toKey'); + +/** + * The base implementation of `_.get` without support for default values. + * + * @private + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to get. + * @returns {*} Returns the resolved value. + */ +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; +} + +module.exports = baseGet; diff --git a/node_modules/lodash/_baseGetAllKeys.js b/node_modules/lodash/_baseGetAllKeys.js new file mode 100644 index 0000000..8ad204e --- /dev/null +++ b/node_modules/lodash/_baseGetAllKeys.js @@ -0,0 +1,20 @@ +var arrayPush = require('./_arrayPush'), + isArray = require('./isArray'); + +/** + * The base implementation of `getAllKeys` and `getAllKeysIn` which uses + * `keysFunc` and `symbolsFunc` to get the enumerable property names and + * symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Function} keysFunc The function to get the keys of `object`. + * @param {Function} symbolsFunc The function to get the symbols of `object`. + * @returns {Array} Returns the array of property names and symbols. + */ +function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); +} + +module.exports = baseGetAllKeys; diff --git a/node_modules/lodash/_baseGetTag.js b/node_modules/lodash/_baseGetTag.js new file mode 100644 index 0000000..b927ccc --- /dev/null +++ b/node_modules/lodash/_baseGetTag.js @@ -0,0 +1,28 @@ +var Symbol = require('./_Symbol'), + getRawTag = require('./_getRawTag'), + objectToString = require('./_objectToString'); + +/** `Object#toString` result references. */ +var nullTag = '[object Null]', + undefinedTag = '[object Undefined]'; + +/** Built-in value references. */ +var symToStringTag = Symbol ? Symbol.toStringTag : undefined; + +/** + * The base implementation of `getTag` without fallbacks for buggy environments. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ +function baseGetTag(value) { + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + return (symToStringTag && symToStringTag in Object(value)) + ? getRawTag(value) + : objectToString(value); +} + +module.exports = baseGetTag; diff --git a/node_modules/lodash/_baseGt.js b/node_modules/lodash/_baseGt.js new file mode 100644 index 0000000..502d273 --- /dev/null +++ b/node_modules/lodash/_baseGt.js @@ -0,0 +1,14 @@ +/** + * The base implementation of `_.gt` which doesn't coerce arguments. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is greater than `other`, + * else `false`. + */ +function baseGt(value, other) { + return value > other; +} + +module.exports = baseGt; diff --git a/node_modules/lodash/_baseHas.js b/node_modules/lodash/_baseHas.js new file mode 100644 index 0000000..1b73032 --- /dev/null +++ b/node_modules/lodash/_baseHas.js @@ -0,0 +1,19 @@ +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * The base implementation of `_.has` without support for deep paths. + * + * @private + * @param {Object} [object] The object to query. + * @param {Array|string} key The key to check. + * @returns {boolean} Returns `true` if `key` exists, else `false`. + */ +function baseHas(object, key) { + return object != null && hasOwnProperty.call(object, key); +} + +module.exports = baseHas; diff --git a/node_modules/lodash/_baseHasIn.js b/node_modules/lodash/_baseHasIn.js new file mode 100644 index 0000000..2e0d042 --- /dev/null +++ b/node_modules/lodash/_baseHasIn.js @@ -0,0 +1,13 @@ +/** + * The base implementation of `_.hasIn` without support for deep paths. + * + * @private + * @param {Object} [object] The object to query. + * @param {Array|string} key The key to check. + * @returns {boolean} Returns `true` if `key` exists, else `false`. + */ +function baseHasIn(object, key) { + return object != null && key in Object(object); +} + +module.exports = baseHasIn; diff --git a/node_modules/lodash/_baseInRange.js b/node_modules/lodash/_baseInRange.js new file mode 100644 index 0000000..ec95666 --- /dev/null +++ b/node_modules/lodash/_baseInRange.js @@ -0,0 +1,18 @@ +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max, + nativeMin = Math.min; + +/** + * The base implementation of `_.inRange` which doesn't coerce arguments. + * + * @private + * @param {number} number The number to check. + * @param {number} start The start of the range. + * @param {number} end The end of the range. + * @returns {boolean} Returns `true` if `number` is in the range, else `false`. + */ +function baseInRange(number, start, end) { + return number >= nativeMin(start, end) && number < nativeMax(start, end); +} + +module.exports = baseInRange; diff --git a/node_modules/lodash/_baseIndexOf.js b/node_modules/lodash/_baseIndexOf.js new file mode 100644 index 0000000..167e706 --- /dev/null +++ b/node_modules/lodash/_baseIndexOf.js @@ -0,0 +1,20 @@ +var baseFindIndex = require('./_baseFindIndex'), + baseIsNaN = require('./_baseIsNaN'), + strictIndexOf = require('./_strictIndexOf'); + +/** + * The base implementation of `_.indexOf` without `fromIndex` bounds checks. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseIndexOf(array, value, fromIndex) { + return value === value + ? strictIndexOf(array, value, fromIndex) + : baseFindIndex(array, baseIsNaN, fromIndex); +} + +module.exports = baseIndexOf; diff --git a/node_modules/lodash/_baseIndexOfWith.js b/node_modules/lodash/_baseIndexOfWith.js new file mode 100644 index 0000000..f815fe0 --- /dev/null +++ b/node_modules/lodash/_baseIndexOfWith.js @@ -0,0 +1,23 @@ +/** + * This function is like `baseIndexOf` except that it accepts a comparator. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @param {Function} comparator The comparator invoked per element. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseIndexOfWith(array, value, fromIndex, comparator) { + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (comparator(array[index], value)) { + return index; + } + } + return -1; +} + +module.exports = baseIndexOfWith; diff --git a/node_modules/lodash/_baseIntersection.js b/node_modules/lodash/_baseIntersection.js new file mode 100644 index 0000000..c1d250c --- /dev/null +++ b/node_modules/lodash/_baseIntersection.js @@ -0,0 +1,74 @@ +var SetCache = require('./_SetCache'), + arrayIncludes = require('./_arrayIncludes'), + arrayIncludesWith = require('./_arrayIncludesWith'), + arrayMap = require('./_arrayMap'), + baseUnary = require('./_baseUnary'), + cacheHas = require('./_cacheHas'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMin = Math.min; + +/** + * The base implementation of methods like `_.intersection`, without support + * for iteratee shorthands, that accepts an array of arrays to inspect. + * + * @private + * @param {Array} arrays The arrays to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of shared values. + */ +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; +} + +module.exports = baseIntersection; diff --git a/node_modules/lodash/_baseInverter.js b/node_modules/lodash/_baseInverter.js new file mode 100644 index 0000000..fbc337f --- /dev/null +++ b/node_modules/lodash/_baseInverter.js @@ -0,0 +1,21 @@ +var baseForOwn = require('./_baseForOwn'); + +/** + * The base implementation of `_.invert` and `_.invertBy` which inverts + * `object` with values transformed by `iteratee` and set by `setter`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} setter The function to set `accumulator` values. + * @param {Function} iteratee The iteratee to transform values. + * @param {Object} accumulator The initial inverted object. + * @returns {Function} Returns `accumulator`. + */ +function baseInverter(object, setter, iteratee, accumulator) { + baseForOwn(object, function(value, key, object) { + setter(accumulator, iteratee(value), key, object); + }); + return accumulator; +} + +module.exports = baseInverter; diff --git a/node_modules/lodash/_baseInvoke.js b/node_modules/lodash/_baseInvoke.js new file mode 100644 index 0000000..49bcf3c --- /dev/null +++ b/node_modules/lodash/_baseInvoke.js @@ -0,0 +1,24 @@ +var apply = require('./_apply'), + castPath = require('./_castPath'), + last = require('./last'), + parent = require('./_parent'), + toKey = require('./_toKey'); + +/** + * The base implementation of `_.invoke` without support for individual + * method arguments. + * + * @private + * @param {Object} object The object to query. + * @param {Array|string} path The path of the method to invoke. + * @param {Array} args The arguments to invoke the method with. + * @returns {*} Returns the result of the invoked method. + */ +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); +} + +module.exports = baseInvoke; diff --git a/node_modules/lodash/_baseIsArguments.js b/node_modules/lodash/_baseIsArguments.js new file mode 100644 index 0000000..b3562cc --- /dev/null +++ b/node_modules/lodash/_baseIsArguments.js @@ -0,0 +1,18 @@ +var baseGetTag = require('./_baseGetTag'), + isObjectLike = require('./isObjectLike'); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]'; + +/** + * The base implementation of `_.isArguments`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + */ +function baseIsArguments(value) { + return isObjectLike(value) && baseGetTag(value) == argsTag; +} + +module.exports = baseIsArguments; diff --git a/node_modules/lodash/_baseIsArrayBuffer.js b/node_modules/lodash/_baseIsArrayBuffer.js new file mode 100644 index 0000000..a2c4f30 --- /dev/null +++ b/node_modules/lodash/_baseIsArrayBuffer.js @@ -0,0 +1,17 @@ +var baseGetTag = require('./_baseGetTag'), + isObjectLike = require('./isObjectLike'); + +var arrayBufferTag = '[object ArrayBuffer]'; + +/** + * The base implementation of `_.isArrayBuffer` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. + */ +function baseIsArrayBuffer(value) { + return isObjectLike(value) && baseGetTag(value) == arrayBufferTag; +} + +module.exports = baseIsArrayBuffer; diff --git a/node_modules/lodash/_baseIsDate.js b/node_modules/lodash/_baseIsDate.js new file mode 100644 index 0000000..ba67c78 --- /dev/null +++ b/node_modules/lodash/_baseIsDate.js @@ -0,0 +1,18 @@ +var baseGetTag = require('./_baseGetTag'), + isObjectLike = require('./isObjectLike'); + +/** `Object#toString` result references. */ +var dateTag = '[object Date]'; + +/** + * The base implementation of `_.isDate` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a date object, else `false`. + */ +function baseIsDate(value) { + return isObjectLike(value) && baseGetTag(value) == dateTag; +} + +module.exports = baseIsDate; diff --git a/node_modules/lodash/_baseIsEqual.js b/node_modules/lodash/_baseIsEqual.js new file mode 100644 index 0000000..00a68a4 --- /dev/null +++ b/node_modules/lodash/_baseIsEqual.js @@ -0,0 +1,28 @@ +var baseIsEqualDeep = require('./_baseIsEqualDeep'), + isObjectLike = require('./isObjectLike'); + +/** + * The base implementation of `_.isEqual` which supports partial comparisons + * and tracks traversed objects. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {boolean} bitmask The bitmask flags. + * 1 - Unordered comparison + * 2 - Partial comparison + * @param {Function} [customizer] The function to customize comparisons. + * @param {Object} [stack] Tracks traversed `value` and `other` objects. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + */ +function baseIsEqual(value, other, bitmask, customizer, stack) { + if (value === other) { + return true; + } + if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { + return value !== value && other !== other; + } + return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); +} + +module.exports = baseIsEqual; diff --git a/node_modules/lodash/_baseIsEqualDeep.js b/node_modules/lodash/_baseIsEqualDeep.js new file mode 100644 index 0000000..e3cfd6a --- /dev/null +++ b/node_modules/lodash/_baseIsEqualDeep.js @@ -0,0 +1,83 @@ +var Stack = require('./_Stack'), + equalArrays = require('./_equalArrays'), + equalByTag = require('./_equalByTag'), + equalObjects = require('./_equalObjects'), + getTag = require('./_getTag'), + isArray = require('./isArray'), + isBuffer = require('./isBuffer'), + isTypedArray = require('./isTypedArray'); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + objectTag = '[object Object]'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * A specialized version of `baseIsEqual` for arrays and objects which performs + * deep comparisons and tracks traversed objects enabling objects with circular + * references to be compared. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} [stack] Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { + var objIsArr = isArray(object), + othIsArr = isArray(other), + objTag = objIsArr ? arrayTag : getTag(object), + othTag = othIsArr ? arrayTag : getTag(other); + + objTag = objTag == argsTag ? objectTag : objTag; + othTag = othTag == argsTag ? objectTag : othTag; + + var objIsObj = objTag == objectTag, + othIsObj = othTag == objectTag, + isSameTag = objTag == othTag; + + if (isSameTag && isBuffer(object)) { + if (!isBuffer(other)) { + return false; + } + objIsArr = true; + objIsObj = false; + } + if (isSameTag && !objIsObj) { + stack || (stack = new Stack); + return (objIsArr || isTypedArray(object)) + ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) + : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); + } + if (!(bitmask & COMPARE_PARTIAL_FLAG)) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), + othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); + + if (objIsWrapped || othIsWrapped) { + var objUnwrapped = objIsWrapped ? object.value() : object, + othUnwrapped = othIsWrapped ? other.value() : other; + + stack || (stack = new Stack); + return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); + } + } + if (!isSameTag) { + return false; + } + stack || (stack = new Stack); + return equalObjects(object, other, bitmask, customizer, equalFunc, stack); +} + +module.exports = baseIsEqualDeep; diff --git a/node_modules/lodash/_baseIsMap.js b/node_modules/lodash/_baseIsMap.js new file mode 100644 index 0000000..02a4021 --- /dev/null +++ b/node_modules/lodash/_baseIsMap.js @@ -0,0 +1,18 @@ +var getTag = require('./_getTag'), + isObjectLike = require('./isObjectLike'); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]'; + +/** + * The base implementation of `_.isMap` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. + */ +function baseIsMap(value) { + return isObjectLike(value) && getTag(value) == mapTag; +} + +module.exports = baseIsMap; diff --git a/node_modules/lodash/_baseIsMatch.js b/node_modules/lodash/_baseIsMatch.js new file mode 100644 index 0000000..72494be --- /dev/null +++ b/node_modules/lodash/_baseIsMatch.js @@ -0,0 +1,62 @@ +var Stack = require('./_Stack'), + baseIsEqual = require('./_baseIsEqual'); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** + * The base implementation of `_.isMatch` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to inspect. + * @param {Object} source The object of property values to match. + * @param {Array} matchData The property names, values, and compare flags to match. + * @param {Function} [customizer] The function to customize comparisons. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. + */ +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; +} + +module.exports = baseIsMatch; diff --git a/node_modules/lodash/_baseIsNaN.js b/node_modules/lodash/_baseIsNaN.js new file mode 100644 index 0000000..316f1eb --- /dev/null +++ b/node_modules/lodash/_baseIsNaN.js @@ -0,0 +1,12 @@ +/** + * The base implementation of `_.isNaN` without support for number objects. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + */ +function baseIsNaN(value) { + return value !== value; +} + +module.exports = baseIsNaN; diff --git a/node_modules/lodash/_baseIsNative.js b/node_modules/lodash/_baseIsNative.js new file mode 100644 index 0000000..8702330 --- /dev/null +++ b/node_modules/lodash/_baseIsNative.js @@ -0,0 +1,47 @@ +var isFunction = require('./isFunction'), + isMasked = require('./_isMasked'), + isObject = require('./isObject'), + toSource = require('./_toSource'); + +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; + +/** Used for built-in method references. */ +var funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Used to detect if a method is native. */ +var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' +); + +/** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ +function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); +} + +module.exports = baseIsNative; diff --git a/node_modules/lodash/_baseIsRegExp.js b/node_modules/lodash/_baseIsRegExp.js new file mode 100644 index 0000000..6cd7c1a --- /dev/null +++ b/node_modules/lodash/_baseIsRegExp.js @@ -0,0 +1,18 @@ +var baseGetTag = require('./_baseGetTag'), + isObjectLike = require('./isObjectLike'); + +/** `Object#toString` result references. */ +var regexpTag = '[object RegExp]'; + +/** + * The base implementation of `_.isRegExp` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. + */ +function baseIsRegExp(value) { + return isObjectLike(value) && baseGetTag(value) == regexpTag; +} + +module.exports = baseIsRegExp; diff --git a/node_modules/lodash/_baseIsSet.js b/node_modules/lodash/_baseIsSet.js new file mode 100644 index 0000000..6dee367 --- /dev/null +++ b/node_modules/lodash/_baseIsSet.js @@ -0,0 +1,18 @@ +var getTag = require('./_getTag'), + isObjectLike = require('./isObjectLike'); + +/** `Object#toString` result references. */ +var setTag = '[object Set]'; + +/** + * The base implementation of `_.isSet` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. + */ +function baseIsSet(value) { + return isObjectLike(value) && getTag(value) == setTag; +} + +module.exports = baseIsSet; diff --git a/node_modules/lodash/_baseIsTypedArray.js b/node_modules/lodash/_baseIsTypedArray.js new file mode 100644 index 0000000..1edb32f --- /dev/null +++ b/node_modules/lodash/_baseIsTypedArray.js @@ -0,0 +1,60 @@ +var baseGetTag = require('./_baseGetTag'), + isLength = require('./isLength'), + isObjectLike = require('./isObjectLike'); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + mapTag = '[object Map]', + numberTag = '[object Number]', + objectTag = '[object Object]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + weakMapTag = '[object WeakMap]'; + +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 identify `toStringTag` values of typed arrays. */ +var typedArrayTags = {}; +typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = +typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = +typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = +typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = +typedArrayTags[uint32Tag] = true; +typedArrayTags[argsTag] = typedArrayTags[arrayTag] = +typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = +typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = +typedArrayTags[errorTag] = typedArrayTags[funcTag] = +typedArrayTags[mapTag] = typedArrayTags[numberTag] = +typedArrayTags[objectTag] = typedArrayTags[regexpTag] = +typedArrayTags[setTag] = typedArrayTags[stringTag] = +typedArrayTags[weakMapTag] = false; + +/** + * The base implementation of `_.isTypedArray` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + */ +function baseIsTypedArray(value) { + return isObjectLike(value) && + isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; +} + +module.exports = baseIsTypedArray; diff --git a/node_modules/lodash/_baseIteratee.js b/node_modules/lodash/_baseIteratee.js new file mode 100644 index 0000000..995c257 --- /dev/null +++ b/node_modules/lodash/_baseIteratee.js @@ -0,0 +1,31 @@ +var baseMatches = require('./_baseMatches'), + baseMatchesProperty = require('./_baseMatchesProperty'), + identity = require('./identity'), + isArray = require('./isArray'), + property = require('./property'); + +/** + * The base implementation of `_.iteratee`. + * + * @private + * @param {*} [value=_.identity] The value to convert to an iteratee. + * @returns {Function} Returns the iteratee. + */ +function baseIteratee(value) { + // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. + // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. + if (typeof value == 'function') { + return value; + } + if (value == null) { + return identity; + } + if (typeof value == 'object') { + return isArray(value) + ? baseMatchesProperty(value[0], value[1]) + : baseMatches(value); + } + return property(value); +} + +module.exports = baseIteratee; diff --git a/node_modules/lodash/_baseKeys.js b/node_modules/lodash/_baseKeys.js new file mode 100644 index 0000000..45e9e6f --- /dev/null +++ b/node_modules/lodash/_baseKeys.js @@ -0,0 +1,30 @@ +var isPrototype = require('./_isPrototype'), + nativeKeys = require('./_nativeKeys'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != 'constructor') { + result.push(key); + } + } + return result; +} + +module.exports = baseKeys; diff --git a/node_modules/lodash/_baseKeysIn.js b/node_modules/lodash/_baseKeysIn.js new file mode 100644 index 0000000..ea8a0a1 --- /dev/null +++ b/node_modules/lodash/_baseKeysIn.js @@ -0,0 +1,33 @@ +var isObject = require('./isObject'), + isPrototype = require('./_isPrototype'), + nativeKeysIn = require('./_nativeKeysIn'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function baseKeysIn(object) { + if (!isObject(object)) { + return nativeKeysIn(object); + } + var isProto = isPrototype(object), + result = []; + + for (var key in object) { + if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } + } + return result; +} + +module.exports = baseKeysIn; diff --git a/node_modules/lodash/_baseLodash.js b/node_modules/lodash/_baseLodash.js new file mode 100644 index 0000000..f76c790 --- /dev/null +++ b/node_modules/lodash/_baseLodash.js @@ -0,0 +1,10 @@ +/** + * The function whose prototype chain sequence wrappers inherit from. + * + * @private + */ +function baseLodash() { + // No operation performed. +} + +module.exports = baseLodash; diff --git a/node_modules/lodash/_baseLt.js b/node_modules/lodash/_baseLt.js new file mode 100644 index 0000000..8674d29 --- /dev/null +++ b/node_modules/lodash/_baseLt.js @@ -0,0 +1,14 @@ +/** + * The base implementation of `_.lt` which doesn't coerce arguments. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is less than `other`, + * else `false`. + */ +function baseLt(value, other) { + return value < other; +} + +module.exports = baseLt; diff --git a/node_modules/lodash/_baseMap.js b/node_modules/lodash/_baseMap.js new file mode 100644 index 0000000..0bf5cea --- /dev/null +++ b/node_modules/lodash/_baseMap.js @@ -0,0 +1,22 @@ +var baseEach = require('./_baseEach'), + isArrayLike = require('./isArrayLike'); + +/** + * The base implementation of `_.map` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ +function baseMap(collection, iteratee) { + var index = -1, + result = isArrayLike(collection) ? Array(collection.length) : []; + + baseEach(collection, function(value, key, collection) { + result[++index] = iteratee(value, key, collection); + }); + return result; +} + +module.exports = baseMap; diff --git a/node_modules/lodash/_baseMatches.js b/node_modules/lodash/_baseMatches.js new file mode 100644 index 0000000..e56582a --- /dev/null +++ b/node_modules/lodash/_baseMatches.js @@ -0,0 +1,22 @@ +var baseIsMatch = require('./_baseIsMatch'), + getMatchData = require('./_getMatchData'), + matchesStrictComparable = require('./_matchesStrictComparable'); + +/** + * The base implementation of `_.matches` which doesn't clone `source`. + * + * @private + * @param {Object} source The object of property values to match. + * @returns {Function} Returns the new spec function. + */ +function baseMatches(source) { + var matchData = getMatchData(source); + if (matchData.length == 1 && matchData[0][2]) { + return matchesStrictComparable(matchData[0][0], matchData[0][1]); + } + return function(object) { + return object === source || baseIsMatch(object, source, matchData); + }; +} + +module.exports = baseMatches; diff --git a/node_modules/lodash/_baseMatchesProperty.js b/node_modules/lodash/_baseMatchesProperty.js new file mode 100644 index 0000000..24afd89 --- /dev/null +++ b/node_modules/lodash/_baseMatchesProperty.js @@ -0,0 +1,33 @@ +var baseIsEqual = require('./_baseIsEqual'), + get = require('./get'), + hasIn = require('./hasIn'), + isKey = require('./_isKey'), + isStrictComparable = require('./_isStrictComparable'), + matchesStrictComparable = require('./_matchesStrictComparable'), + toKey = require('./_toKey'); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** + * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. + * + * @private + * @param {string} path The path of the property to get. + * @param {*} srcValue The value to match. + * @returns {Function} Returns the new spec function. + */ +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); + }; +} + +module.exports = baseMatchesProperty; diff --git a/node_modules/lodash/_baseMean.js b/node_modules/lodash/_baseMean.js new file mode 100644 index 0000000..fa9e00a --- /dev/null +++ b/node_modules/lodash/_baseMean.js @@ -0,0 +1,20 @@ +var baseSum = require('./_baseSum'); + +/** Used as references for various `Number` constants. */ +var NAN = 0 / 0; + +/** + * The base implementation of `_.mean` and `_.meanBy` without support for + * iteratee shorthands. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {number} Returns the mean. + */ +function baseMean(array, iteratee) { + var length = array == null ? 0 : array.length; + return length ? (baseSum(array, iteratee) / length) : NAN; +} + +module.exports = baseMean; diff --git a/node_modules/lodash/_baseMerge.js b/node_modules/lodash/_baseMerge.js new file mode 100644 index 0000000..c98b5eb --- /dev/null +++ b/node_modules/lodash/_baseMerge.js @@ -0,0 +1,42 @@ +var Stack = require('./_Stack'), + assignMergeValue = require('./_assignMergeValue'), + baseFor = require('./_baseFor'), + baseMergeDeep = require('./_baseMergeDeep'), + isObject = require('./isObject'), + keysIn = require('./keysIn'), + safeGet = require('./_safeGet'); + +/** + * The base implementation of `_.merge` without support for multiple sources. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @param {number} srcIndex The index of `source`. + * @param {Function} [customizer] The function to customize merged values. + * @param {Object} [stack] Tracks traversed source values and their merged + * counterparts. + */ +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); +} + +module.exports = baseMerge; diff --git a/node_modules/lodash/_baseMergeDeep.js b/node_modules/lodash/_baseMergeDeep.js new file mode 100644 index 0000000..4679e8d --- /dev/null +++ b/node_modules/lodash/_baseMergeDeep.js @@ -0,0 +1,94 @@ +var assignMergeValue = require('./_assignMergeValue'), + cloneBuffer = require('./_cloneBuffer'), + cloneTypedArray = require('./_cloneTypedArray'), + copyArray = require('./_copyArray'), + initCloneObject = require('./_initCloneObject'), + isArguments = require('./isArguments'), + isArray = require('./isArray'), + isArrayLikeObject = require('./isArrayLikeObject'), + isBuffer = require('./isBuffer'), + isFunction = require('./isFunction'), + isObject = require('./isObject'), + isPlainObject = require('./isPlainObject'), + isTypedArray = require('./isTypedArray'), + safeGet = require('./_safeGet'), + toPlainObject = require('./toPlainObject'); + +/** + * A specialized version of `baseMerge` for arrays and objects which performs + * deep merges and tracks traversed objects enabling objects with circular + * references to be merged. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @param {string} key The key of the value to merge. + * @param {number} srcIndex The index of `source`. + * @param {Function} mergeFunc The function to merge values. + * @param {Function} [customizer] The function to customize assigned values. + * @param {Object} [stack] Tracks traversed source values and their merged + * counterparts. + */ +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). + stack.set(srcValue, newValue); + mergeFunc(newValue, srcValue, srcIndex, customizer, stack); + stack['delete'](srcValue); + } + assignMergeValue(object, key, newValue); +} + +module.exports = baseMergeDeep; diff --git a/node_modules/lodash/_baseNth.js b/node_modules/lodash/_baseNth.js new file mode 100644 index 0000000..0403c2a --- /dev/null +++ b/node_modules/lodash/_baseNth.js @@ -0,0 +1,20 @@ +var isIndex = require('./_isIndex'); + +/** + * The base implementation of `_.nth` which doesn't coerce arguments. + * + * @private + * @param {Array} array The array to query. + * @param {number} n The index of the element to return. + * @returns {*} Returns the nth element of `array`. + */ +function baseNth(array, n) { + var length = array.length; + if (!length) { + return; + } + n += n < 0 ? length : 0; + return isIndex(n, length) ? array[n] : undefined; +} + +module.exports = baseNth; diff --git a/node_modules/lodash/_baseOrderBy.js b/node_modules/lodash/_baseOrderBy.js new file mode 100644 index 0000000..775a017 --- /dev/null +++ b/node_modules/lodash/_baseOrderBy.js @@ -0,0 +1,49 @@ +var arrayMap = require('./_arrayMap'), + baseGet = require('./_baseGet'), + baseIteratee = require('./_baseIteratee'), + baseMap = require('./_baseMap'), + baseSortBy = require('./_baseSortBy'), + baseUnary = require('./_baseUnary'), + compareMultiple = require('./_compareMultiple'), + identity = require('./identity'), + isArray = require('./isArray'); + +/** + * The base implementation of `_.orderBy` without param guards. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by. + * @param {string[]} orders The sort orders of `iteratees`. + * @returns {Array} Returns the new sorted array. + */ +function baseOrderBy(collection, iteratees, orders) { + if (iteratees.length) { + iteratees = arrayMap(iteratees, function(iteratee) { + if (isArray(iteratee)) { + return function(value) { + return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee); + } + } + return iteratee; + }); + } else { + iteratees = [identity]; + } + + var index = -1; + iteratees = arrayMap(iteratees, baseUnary(baseIteratee)); + + var result = baseMap(collection, function(value, key, collection) { + var criteria = arrayMap(iteratees, function(iteratee) { + return iteratee(value); + }); + return { 'criteria': criteria, 'index': ++index, 'value': value }; + }); + + return baseSortBy(result, function(object, other) { + return compareMultiple(object, other, orders); + }); +} + +module.exports = baseOrderBy; diff --git a/node_modules/lodash/_basePick.js b/node_modules/lodash/_basePick.js new file mode 100644 index 0000000..09b458a --- /dev/null +++ b/node_modules/lodash/_basePick.js @@ -0,0 +1,19 @@ +var basePickBy = require('./_basePickBy'), + hasIn = require('./hasIn'); + +/** + * The base implementation of `_.pick` without support for individual + * property identifiers. + * + * @private + * @param {Object} object The source object. + * @param {string[]} paths The property paths to pick. + * @returns {Object} Returns the new object. + */ +function basePick(object, paths) { + return basePickBy(object, paths, function(value, path) { + return hasIn(object, path); + }); +} + +module.exports = basePick; diff --git a/node_modules/lodash/_basePickBy.js b/node_modules/lodash/_basePickBy.js new file mode 100644 index 0000000..85be68c --- /dev/null +++ b/node_modules/lodash/_basePickBy.js @@ -0,0 +1,30 @@ +var baseGet = require('./_baseGet'), + baseSet = require('./_baseSet'), + castPath = require('./_castPath'); + +/** + * The base implementation of `_.pickBy` without support for iteratee shorthands. + * + * @private + * @param {Object} object The source object. + * @param {string[]} paths The property paths to pick. + * @param {Function} predicate The function invoked per property. + * @returns {Object} Returns the new object. + */ +function basePickBy(object, paths, predicate) { + var index = -1, + length = paths.length, + result = {}; + + while (++index < length) { + var path = paths[index], + value = baseGet(object, path); + + if (predicate(value, path)) { + baseSet(result, castPath(path, object), value); + } + } + return result; +} + +module.exports = basePickBy; diff --git a/node_modules/lodash/_baseProperty.js b/node_modules/lodash/_baseProperty.js new file mode 100644 index 0000000..496281e --- /dev/null +++ b/node_modules/lodash/_baseProperty.js @@ -0,0 +1,14 @@ +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new accessor function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + +module.exports = baseProperty; diff --git a/node_modules/lodash/_basePropertyDeep.js b/node_modules/lodash/_basePropertyDeep.js new file mode 100644 index 0000000..1e5aae5 --- /dev/null +++ b/node_modules/lodash/_basePropertyDeep.js @@ -0,0 +1,16 @@ +var baseGet = require('./_baseGet'); + +/** + * A specialized version of `baseProperty` which supports deep paths. + * + * @private + * @param {Array|string} path The path of the property to get. + * @returns {Function} Returns the new accessor function. + */ +function basePropertyDeep(path) { + return function(object) { + return baseGet(object, path); + }; +} + +module.exports = basePropertyDeep; diff --git a/node_modules/lodash/_basePropertyOf.js b/node_modules/lodash/_basePropertyOf.js new file mode 100644 index 0000000..4617399 --- /dev/null +++ b/node_modules/lodash/_basePropertyOf.js @@ -0,0 +1,14 @@ +/** + * The base implementation of `_.propertyOf` without support for deep paths. + * + * @private + * @param {Object} object The object to query. + * @returns {Function} Returns the new accessor function. + */ +function basePropertyOf(object) { + return function(key) { + return object == null ? undefined : object[key]; + }; +} + +module.exports = basePropertyOf; diff --git a/node_modules/lodash/_basePullAll.js b/node_modules/lodash/_basePullAll.js new file mode 100644 index 0000000..305720e --- /dev/null +++ b/node_modules/lodash/_basePullAll.js @@ -0,0 +1,51 @@ +var arrayMap = require('./_arrayMap'), + baseIndexOf = require('./_baseIndexOf'), + baseIndexOfWith = require('./_baseIndexOfWith'), + baseUnary = require('./_baseUnary'), + copyArray = require('./_copyArray'); + +/** Used for built-in method references. */ +var arrayProto = Array.prototype; + +/** Built-in value references. */ +var splice = arrayProto.splice; + +/** + * The base implementation of `_.pullAllBy` without support for iteratee + * shorthands. + * + * @private + * @param {Array} array The array to modify. + * @param {Array} values The values to remove. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns `array`. + */ +function basePullAll(array, values, iteratee, comparator) { + var indexOf = comparator ? baseIndexOfWith : baseIndexOf, + index = -1, + length = values.length, + seen = array; + + if (array === values) { + values = copyArray(values); + } + if (iteratee) { + seen = arrayMap(array, baseUnary(iteratee)); + } + while (++index < length) { + var fromIndex = 0, + value = values[index], + computed = iteratee ? iteratee(value) : value; + + while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) { + if (seen !== array) { + splice.call(seen, fromIndex, 1); + } + splice.call(array, fromIndex, 1); + } + } + return array; +} + +module.exports = basePullAll; diff --git a/node_modules/lodash/_basePullAt.js b/node_modules/lodash/_basePullAt.js new file mode 100644 index 0000000..c3e9e71 --- /dev/null +++ b/node_modules/lodash/_basePullAt.js @@ -0,0 +1,37 @@ +var baseUnset = require('./_baseUnset'), + isIndex = require('./_isIndex'); + +/** Used for built-in method references. */ +var arrayProto = Array.prototype; + +/** Built-in value references. */ +var splice = arrayProto.splice; + +/** + * The base implementation of `_.pullAt` without support for individual + * indexes or capturing the removed elements. + * + * @private + * @param {Array} array The array to modify. + * @param {number[]} indexes The indexes of elements to remove. + * @returns {Array} Returns `array`. + */ +function basePullAt(array, indexes) { + var length = array ? indexes.length : 0, + lastIndex = length - 1; + + while (length--) { + var index = indexes[length]; + if (length == lastIndex || index !== previous) { + var previous = index; + if (isIndex(index)) { + splice.call(array, index, 1); + } else { + baseUnset(array, index); + } + } + } + return array; +} + +module.exports = basePullAt; diff --git a/node_modules/lodash/_baseRandom.js b/node_modules/lodash/_baseRandom.js new file mode 100644 index 0000000..94f76a7 --- /dev/null +++ b/node_modules/lodash/_baseRandom.js @@ -0,0 +1,18 @@ +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeFloor = Math.floor, + nativeRandom = Math.random; + +/** + * The base implementation of `_.random` without support for returning + * floating-point numbers. + * + * @private + * @param {number} lower The lower bound. + * @param {number} upper The upper bound. + * @returns {number} Returns the random number. + */ +function baseRandom(lower, upper) { + return lower + nativeFloor(nativeRandom() * (upper - lower + 1)); +} + +module.exports = baseRandom; diff --git a/node_modules/lodash/_baseRange.js b/node_modules/lodash/_baseRange.js new file mode 100644 index 0000000..0fb8e41 --- /dev/null +++ b/node_modules/lodash/_baseRange.js @@ -0,0 +1,28 @@ +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeCeil = Math.ceil, + nativeMax = Math.max; + +/** + * The base implementation of `_.range` and `_.rangeRight` which doesn't + * coerce arguments. + * + * @private + * @param {number} start The start of the range. + * @param {number} end The end of the range. + * @param {number} step The value to increment or decrement by. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Array} Returns the range of numbers. + */ +function baseRange(start, end, step, fromRight) { + var index = -1, + length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), + result = Array(length); + + while (length--) { + result[fromRight ? length : ++index] = start; + start += step; + } + return result; +} + +module.exports = baseRange; diff --git a/node_modules/lodash/_baseReduce.js b/node_modules/lodash/_baseReduce.js new file mode 100644 index 0000000..5a1f8b5 --- /dev/null +++ b/node_modules/lodash/_baseReduce.js @@ -0,0 +1,23 @@ +/** + * The base implementation of `_.reduce` and `_.reduceRight`, without support + * for iteratee shorthands, which iterates over `collection` using `eachFunc`. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} accumulator The initial value. + * @param {boolean} initAccum Specify using the first or last element of + * `collection` as the initial value. + * @param {Function} eachFunc The function to iterate over `collection`. + * @returns {*} Returns the accumulated value. + */ +function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { + eachFunc(collection, function(value, index, collection) { + accumulator = initAccum + ? (initAccum = false, value) + : iteratee(accumulator, value, index, collection); + }); + return accumulator; +} + +module.exports = baseReduce; diff --git a/node_modules/lodash/_baseRepeat.js b/node_modules/lodash/_baseRepeat.js new file mode 100644 index 0000000..ee44c31 --- /dev/null +++ b/node_modules/lodash/_baseRepeat.js @@ -0,0 +1,35 @@ +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeFloor = Math.floor; + +/** + * The base implementation of `_.repeat` which doesn't coerce arguments. + * + * @private + * @param {string} string The string to repeat. + * @param {number} n The number of times to repeat the string. + * @returns {string} Returns the repeated string. + */ +function baseRepeat(string, n) { + var result = ''; + if (!string || n < 1 || n > MAX_SAFE_INTEGER) { + return result; + } + // Leverage the exponentiation by squaring algorithm for a faster repeat. + // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details. + do { + if (n % 2) { + result += string; + } + n = nativeFloor(n / 2); + if (n) { + string += string; + } + } while (n); + + return result; +} + +module.exports = baseRepeat; diff --git a/node_modules/lodash/_baseRest.js b/node_modules/lodash/_baseRest.js new file mode 100644 index 0000000..d0dc4bd --- /dev/null +++ b/node_modules/lodash/_baseRest.js @@ -0,0 +1,17 @@ +var identity = require('./identity'), + overRest = require('./_overRest'), + setToString = require('./_setToString'); + +/** + * The base implementation of `_.rest` which doesn't validate or coerce arguments. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + */ +function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + ''); +} + +module.exports = baseRest; diff --git a/node_modules/lodash/_baseSample.js b/node_modules/lodash/_baseSample.js new file mode 100644 index 0000000..58582b9 --- /dev/null +++ b/node_modules/lodash/_baseSample.js @@ -0,0 +1,15 @@ +var arraySample = require('./_arraySample'), + values = require('./values'); + +/** + * The base implementation of `_.sample`. + * + * @private + * @param {Array|Object} collection The collection to sample. + * @returns {*} Returns the random element. + */ +function baseSample(collection) { + return arraySample(values(collection)); +} + +module.exports = baseSample; diff --git a/node_modules/lodash/_baseSampleSize.js b/node_modules/lodash/_baseSampleSize.js new file mode 100644 index 0000000..5c90ec5 --- /dev/null +++ b/node_modules/lodash/_baseSampleSize.js @@ -0,0 +1,18 @@ +var baseClamp = require('./_baseClamp'), + shuffleSelf = require('./_shuffleSelf'), + values = require('./values'); + +/** + * The base implementation of `_.sampleSize` without param guards. + * + * @private + * @param {Array|Object} collection The collection to sample. + * @param {number} n The number of elements to sample. + * @returns {Array} Returns the random elements. + */ +function baseSampleSize(collection, n) { + var array = values(collection); + return shuffleSelf(array, baseClamp(n, 0, array.length)); +} + +module.exports = baseSampleSize; diff --git a/node_modules/lodash/_baseSet.js b/node_modules/lodash/_baseSet.js new file mode 100644 index 0000000..99f4fbf --- /dev/null +++ b/node_modules/lodash/_baseSet.js @@ -0,0 +1,51 @@ +var assignValue = require('./_assignValue'), + castPath = require('./_castPath'), + isIndex = require('./_isIndex'), + isObject = require('./isObject'), + toKey = require('./_toKey'); + +/** + * The base implementation of `_.set`. + * + * @private + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {*} value The value to set. + * @param {Function} [customizer] The function to customize path creation. + * @returns {Object} Returns `object`. + */ +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; +} + +module.exports = baseSet; diff --git a/node_modules/lodash/_baseSetData.js b/node_modules/lodash/_baseSetData.js new file mode 100644 index 0000000..c409947 --- /dev/null +++ b/node_modules/lodash/_baseSetData.js @@ -0,0 +1,17 @@ +var identity = require('./identity'), + metaMap = require('./_metaMap'); + +/** + * The base implementation of `setData` without support for hot loop shorting. + * + * @private + * @param {Function} func The function to associate metadata with. + * @param {*} data The metadata. + * @returns {Function} Returns `func`. + */ +var baseSetData = !metaMap ? identity : function(func, data) { + metaMap.set(func, data); + return func; +}; + +module.exports = baseSetData; diff --git a/node_modules/lodash/_baseSetToString.js b/node_modules/lodash/_baseSetToString.js new file mode 100644 index 0000000..89eaca3 --- /dev/null +++ b/node_modules/lodash/_baseSetToString.js @@ -0,0 +1,22 @@ +var constant = require('./constant'), + defineProperty = require('./_defineProperty'), + identity = require('./identity'); + +/** + * The base implementation of `setToString` without support for hot loop shorting. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ +var baseSetToString = !defineProperty ? identity : function(func, string) { + return defineProperty(func, 'toString', { + 'configurable': true, + 'enumerable': false, + 'value': constant(string), + 'writable': true + }); +}; + +module.exports = baseSetToString; diff --git a/node_modules/lodash/_baseShuffle.js b/node_modules/lodash/_baseShuffle.js new file mode 100644 index 0000000..023077a --- /dev/null +++ b/node_modules/lodash/_baseShuffle.js @@ -0,0 +1,15 @@ +var shuffleSelf = require('./_shuffleSelf'), + values = require('./values'); + +/** + * The base implementation of `_.shuffle`. + * + * @private + * @param {Array|Object} collection The collection to shuffle. + * @returns {Array} Returns the new shuffled array. + */ +function baseShuffle(collection) { + return shuffleSelf(values(collection)); +} + +module.exports = baseShuffle; diff --git a/node_modules/lodash/_baseSlice.js b/node_modules/lodash/_baseSlice.js new file mode 100644 index 0000000..786f6c9 --- /dev/null +++ b/node_modules/lodash/_baseSlice.js @@ -0,0 +1,31 @@ +/** + * The base implementation of `_.slice` without an iteratee call guard. + * + * @private + * @param {Array} array The array to slice. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the slice of `array`. + */ +function baseSlice(array, start, end) { + var index = -1, + length = array.length; + + if (start < 0) { + start = -start > length ? 0 : (length + start); + } + end = end > length ? length : end; + if (end < 0) { + end += length; + } + length = start > end ? 0 : ((end - start) >>> 0); + start >>>= 0; + + var result = Array(length); + while (++index < length) { + result[index] = array[index + start]; + } + return result; +} + +module.exports = baseSlice; diff --git a/node_modules/lodash/_baseSome.js b/node_modules/lodash/_baseSome.js new file mode 100644 index 0000000..58f3f44 --- /dev/null +++ b/node_modules/lodash/_baseSome.js @@ -0,0 +1,22 @@ +var baseEach = require('./_baseEach'); + +/** + * The base implementation of `_.some` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ +function baseSome(collection, predicate) { + var result; + + baseEach(collection, function(value, index, collection) { + result = predicate(value, index, collection); + return !result; + }); + return !!result; +} + +module.exports = baseSome; diff --git a/node_modules/lodash/_baseSortBy.js b/node_modules/lodash/_baseSortBy.js new file mode 100644 index 0000000..a25c92e --- /dev/null +++ b/node_modules/lodash/_baseSortBy.js @@ -0,0 +1,21 @@ +/** + * The base implementation of `_.sortBy` which uses `comparer` to define the + * sort order of `array` and replaces criteria objects with their corresponding + * values. + * + * @private + * @param {Array} array The array to sort. + * @param {Function} comparer The function to define sort order. + * @returns {Array} Returns `array`. + */ +function baseSortBy(array, comparer) { + var length = array.length; + + array.sort(comparer); + while (length--) { + array[length] = array[length].value; + } + return array; +} + +module.exports = baseSortBy; diff --git a/node_modules/lodash/_baseSortedIndex.js b/node_modules/lodash/_baseSortedIndex.js new file mode 100644 index 0000000..638c366 --- /dev/null +++ b/node_modules/lodash/_baseSortedIndex.js @@ -0,0 +1,42 @@ +var baseSortedIndexBy = require('./_baseSortedIndexBy'), + identity = require('./identity'), + isSymbol = require('./isSymbol'); + +/** Used as references for the maximum length and index of an array. */ +var MAX_ARRAY_LENGTH = 4294967295, + HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; + +/** + * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which + * performs a binary search of `array` to determine the index at which `value` + * should be inserted into `array` in order to maintain its sort order. + * + * @private + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @param {boolean} [retHighest] Specify returning the highest qualified index. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. + */ +function baseSortedIndex(array, value, retHighest) { + var low = 0, + high = array == null ? low : array.length; + + if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) { + while (low < high) { + var mid = (low + high) >>> 1, + computed = array[mid]; + + if (computed !== null && !isSymbol(computed) && + (retHighest ? (computed <= value) : (computed < value))) { + low = mid + 1; + } else { + high = mid; + } + } + return high; + } + return baseSortedIndexBy(array, value, identity, retHighest); +} + +module.exports = baseSortedIndex; diff --git a/node_modules/lodash/_baseSortedIndexBy.js b/node_modules/lodash/_baseSortedIndexBy.js new file mode 100644 index 0000000..c247b37 --- /dev/null +++ b/node_modules/lodash/_baseSortedIndexBy.js @@ -0,0 +1,67 @@ +var isSymbol = require('./isSymbol'); + +/** Used as references for the maximum length and index of an array. */ +var MAX_ARRAY_LENGTH = 4294967295, + MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeFloor = Math.floor, + nativeMin = Math.min; + +/** + * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy` + * which invokes `iteratee` for `value` and each element of `array` to compute + * their sort ranking. The iteratee is invoked with one argument; (value). + * + * @private + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @param {Function} iteratee The iteratee invoked per element. + * @param {boolean} [retHighest] Specify returning the highest qualified index. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. + */ +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); +} + +module.exports = baseSortedIndexBy; diff --git a/node_modules/lodash/_baseSortedUniq.js b/node_modules/lodash/_baseSortedUniq.js new file mode 100644 index 0000000..802159a --- /dev/null +++ b/node_modules/lodash/_baseSortedUniq.js @@ -0,0 +1,30 @@ +var eq = require('./eq'); + +/** + * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without + * support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @returns {Array} Returns the new duplicate free array. + */ +function baseSortedUniq(array, iteratee) { + var index = -1, + length = array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index], + computed = iteratee ? iteratee(value) : value; + + if (!index || !eq(computed, seen)) { + var seen = computed; + result[resIndex++] = value === 0 ? 0 : value; + } + } + return result; +} + +module.exports = baseSortedUniq; diff --git a/node_modules/lodash/_baseSum.js b/node_modules/lodash/_baseSum.js new file mode 100644 index 0000000..a9e84c1 --- /dev/null +++ b/node_modules/lodash/_baseSum.js @@ -0,0 +1,24 @@ +/** + * The base implementation of `_.sum` and `_.sumBy` without support for + * iteratee shorthands. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {number} Returns the sum. + */ +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; +} + +module.exports = baseSum; diff --git a/node_modules/lodash/_baseTimes.js b/node_modules/lodash/_baseTimes.js new file mode 100644 index 0000000..0603fc3 --- /dev/null +++ b/node_modules/lodash/_baseTimes.js @@ -0,0 +1,20 @@ +/** + * The base implementation of `_.times` without support for iteratee shorthands + * or max array length checks. + * + * @private + * @param {number} n The number of times to invoke `iteratee`. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the array of results. + */ +function baseTimes(n, iteratee) { + var index = -1, + result = Array(n); + + while (++index < n) { + result[index] = iteratee(index); + } + return result; +} + +module.exports = baseTimes; diff --git a/node_modules/lodash/_baseToNumber.js b/node_modules/lodash/_baseToNumber.js new file mode 100644 index 0000000..04859f3 --- /dev/null +++ b/node_modules/lodash/_baseToNumber.js @@ -0,0 +1,24 @@ +var isSymbol = require('./isSymbol'); + +/** Used as references for various `Number` constants. */ +var NAN = 0 / 0; + +/** + * The base implementation of `_.toNumber` which doesn't ensure correct + * conversions of binary, hexadecimal, or octal string values. + * + * @private + * @param {*} value The value to process. + * @returns {number} Returns the number. + */ +function baseToNumber(value) { + if (typeof value == 'number') { + return value; + } + if (isSymbol(value)) { + return NAN; + } + return +value; +} + +module.exports = baseToNumber; diff --git a/node_modules/lodash/_baseToPairs.js b/node_modules/lodash/_baseToPairs.js new file mode 100644 index 0000000..bff1991 --- /dev/null +++ b/node_modules/lodash/_baseToPairs.js @@ -0,0 +1,18 @@ +var arrayMap = require('./_arrayMap'); + +/** + * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array + * of key-value pairs for `object` corresponding to the property names of `props`. + * + * @private + * @param {Object} object The object to query. + * @param {Array} props The property names to get values for. + * @returns {Object} Returns the key-value pairs. + */ +function baseToPairs(object, props) { + return arrayMap(props, function(key) { + return [key, object[key]]; + }); +} + +module.exports = baseToPairs; diff --git a/node_modules/lodash/_baseToString.js b/node_modules/lodash/_baseToString.js new file mode 100644 index 0000000..ada6ad2 --- /dev/null +++ b/node_modules/lodash/_baseToString.js @@ -0,0 +1,37 @@ +var Symbol = require('./_Symbol'), + arrayMap = require('./_arrayMap'), + isArray = require('./isArray'), + isSymbol = require('./isSymbol'); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolToString = symbolProto ? symbolProto.toString : undefined; + +/** + * The base implementation of `_.toString` which doesn't convert nullish + * values to empty strings. + * + * @private + * @param {*} value The value to process. + * @returns {string} Returns the string. + */ +function baseToString(value) { + // Exit early for strings to avoid a performance hit in some environments. + if (typeof value == 'string') { + return value; + } + if (isArray(value)) { + // Recursively convert values (susceptible to call stack limits). + return arrayMap(value, baseToString) + ''; + } + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ''; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; +} + +module.exports = baseToString; diff --git a/node_modules/lodash/_baseTrim.js b/node_modules/lodash/_baseTrim.js new file mode 100644 index 0000000..3e2797d --- /dev/null +++ b/node_modules/lodash/_baseTrim.js @@ -0,0 +1,19 @@ +var trimmedEndIndex = require('./_trimmedEndIndex'); + +/** Used to match leading whitespace. */ +var reTrimStart = /^\s+/; + +/** + * The base implementation of `_.trim`. + * + * @private + * @param {string} string The string to trim. + * @returns {string} Returns the trimmed string. + */ +function baseTrim(string) { + return string + ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '') + : string; +} + +module.exports = baseTrim; diff --git a/node_modules/lodash/_baseUnary.js b/node_modules/lodash/_baseUnary.js new file mode 100644 index 0000000..98639e9 --- /dev/null +++ b/node_modules/lodash/_baseUnary.js @@ -0,0 +1,14 @@ +/** + * The base implementation of `_.unary` without support for storing metadata. + * + * @private + * @param {Function} func The function to cap arguments for. + * @returns {Function} Returns the new capped function. + */ +function baseUnary(func) { + return function(value) { + return func(value); + }; +} + +module.exports = baseUnary; diff --git a/node_modules/lodash/_baseUniq.js b/node_modules/lodash/_baseUniq.js new file mode 100644 index 0000000..aea459d --- /dev/null +++ b/node_modules/lodash/_baseUniq.js @@ -0,0 +1,72 @@ +var SetCache = require('./_SetCache'), + arrayIncludes = require('./_arrayIncludes'), + arrayIncludesWith = require('./_arrayIncludesWith'), + cacheHas = require('./_cacheHas'), + createSet = require('./_createSet'), + setToArray = require('./_setToArray'); + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** + * The base implementation of `_.uniqBy` without support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new duplicate free array. + */ +function baseUniq(array, iteratee, comparator) { + var index = -1, + includes = arrayIncludes, + length = array.length, + isCommon = true, + result = [], + seen = result; + + if (comparator) { + isCommon = false; + includes = arrayIncludesWith; + } + else if (length >= LARGE_ARRAY_SIZE) { + var set = iteratee ? null : createSet(array); + if (set) { + return setToArray(set); + } + isCommon = false; + includes = cacheHas; + seen = new SetCache; + } + else { + seen = iteratee ? [] : result; + } + outer: + while (++index < length) { + var value = array[index], + computed = iteratee ? iteratee(value) : value; + + value = (comparator || value !== 0) ? value : 0; + if (isCommon && computed === computed) { + var seenIndex = seen.length; + while (seenIndex--) { + if (seen[seenIndex] === computed) { + continue outer; + } + } + if (iteratee) { + seen.push(computed); + } + result.push(value); + } + else if (!includes(seen, computed, comparator)) { + if (seen !== result) { + seen.push(computed); + } + result.push(value); + } + } + return result; +} + +module.exports = baseUniq; diff --git a/node_modules/lodash/_baseUnset.js b/node_modules/lodash/_baseUnset.js new file mode 100644 index 0000000..eefc6e3 --- /dev/null +++ b/node_modules/lodash/_baseUnset.js @@ -0,0 +1,20 @@ +var castPath = require('./_castPath'), + last = require('./last'), + parent = require('./_parent'), + toKey = require('./_toKey'); + +/** + * The base implementation of `_.unset`. + * + * @private + * @param {Object} object The object to modify. + * @param {Array|string} path The property path to unset. + * @returns {boolean} Returns `true` if the property is deleted, else `false`. + */ +function baseUnset(object, path) { + path = castPath(path, object); + object = parent(object, path); + return object == null || delete object[toKey(last(path))]; +} + +module.exports = baseUnset; diff --git a/node_modules/lodash/_baseUpdate.js b/node_modules/lodash/_baseUpdate.js new file mode 100644 index 0000000..92a6237 --- /dev/null +++ b/node_modules/lodash/_baseUpdate.js @@ -0,0 +1,18 @@ +var baseGet = require('./_baseGet'), + baseSet = require('./_baseSet'); + +/** + * The base implementation of `_.update`. + * + * @private + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to update. + * @param {Function} updater The function to produce the updated value. + * @param {Function} [customizer] The function to customize path creation. + * @returns {Object} Returns `object`. + */ +function baseUpdate(object, path, updater, customizer) { + return baseSet(object, path, updater(baseGet(object, path)), customizer); +} + +module.exports = baseUpdate; diff --git a/node_modules/lodash/_baseValues.js b/node_modules/lodash/_baseValues.js new file mode 100644 index 0000000..b95faad --- /dev/null +++ b/node_modules/lodash/_baseValues.js @@ -0,0 +1,19 @@ +var arrayMap = require('./_arrayMap'); + +/** + * The base implementation of `_.values` and `_.valuesIn` which creates an + * array of `object` property values corresponding to the property names + * of `props`. + * + * @private + * @param {Object} object The object to query. + * @param {Array} props The property names to get values for. + * @returns {Object} Returns the array of property values. + */ +function baseValues(object, props) { + return arrayMap(props, function(key) { + return object[key]; + }); +} + +module.exports = baseValues; diff --git a/node_modules/lodash/_baseWhile.js b/node_modules/lodash/_baseWhile.js new file mode 100644 index 0000000..07eac61 --- /dev/null +++ b/node_modules/lodash/_baseWhile.js @@ -0,0 +1,26 @@ +var baseSlice = require('./_baseSlice'); + +/** + * The base implementation of methods like `_.dropWhile` and `_.takeWhile` + * without support for iteratee shorthands. + * + * @private + * @param {Array} array The array to query. + * @param {Function} predicate The function invoked per iteration. + * @param {boolean} [isDrop] Specify dropping elements instead of taking them. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Array} Returns the slice of `array`. + */ +function baseWhile(array, predicate, isDrop, fromRight) { + var length = array.length, + index = fromRight ? length : -1; + + while ((fromRight ? index-- : ++index < length) && + predicate(array[index], index, array)) {} + + return isDrop + ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length)) + : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index)); +} + +module.exports = baseWhile; diff --git a/node_modules/lodash/_baseWrapperValue.js b/node_modules/lodash/_baseWrapperValue.js new file mode 100644 index 0000000..443e0df --- /dev/null +++ b/node_modules/lodash/_baseWrapperValue.js @@ -0,0 +1,25 @@ +var LazyWrapper = require('./_LazyWrapper'), + arrayPush = require('./_arrayPush'), + arrayReduce = require('./_arrayReduce'); + +/** + * The base implementation of `wrapperValue` which returns the result of + * performing a sequence of actions on the unwrapped `value`, where each + * successive action is supplied the return value of the previous. + * + * @private + * @param {*} value The unwrapped value. + * @param {Array} actions Actions to perform to resolve the unwrapped value. + * @returns {*} Returns the resolved value. + */ +function baseWrapperValue(value, actions) { + var result = value; + if (result instanceof LazyWrapper) { + result = result.value(); + } + return arrayReduce(actions, function(result, action) { + return action.func.apply(action.thisArg, arrayPush([result], action.args)); + }, result); +} + +module.exports = baseWrapperValue; diff --git a/node_modules/lodash/_baseXor.js b/node_modules/lodash/_baseXor.js new file mode 100644 index 0000000..8e69338 --- /dev/null +++ b/node_modules/lodash/_baseXor.js @@ -0,0 +1,36 @@ +var baseDifference = require('./_baseDifference'), + baseFlatten = require('./_baseFlatten'), + baseUniq = require('./_baseUniq'); + +/** + * The base implementation of methods like `_.xor`, without support for + * iteratee shorthands, that accepts an array of arrays to inspect. + * + * @private + * @param {Array} arrays The arrays to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of values. + */ +function baseXor(arrays, iteratee, comparator) { + var length = arrays.length; + if (length < 2) { + return length ? baseUniq(arrays[0]) : []; + } + var index = -1, + result = Array(length); + + while (++index < length) { + var array = arrays[index], + othIndex = -1; + + while (++othIndex < length) { + if (othIndex != index) { + result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator); + } + } + } + return baseUniq(baseFlatten(result, 1), iteratee, comparator); +} + +module.exports = baseXor; diff --git a/node_modules/lodash/_baseZipObject.js b/node_modules/lodash/_baseZipObject.js new file mode 100644 index 0000000..401f85b --- /dev/null +++ b/node_modules/lodash/_baseZipObject.js @@ -0,0 +1,23 @@ +/** + * This base implementation of `_.zipObject` which assigns values using `assignFunc`. + * + * @private + * @param {Array} props The property identifiers. + * @param {Array} values The property values. + * @param {Function} assignFunc The function to assign values. + * @returns {Object} Returns the new object. + */ +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; +} + +module.exports = baseZipObject; diff --git a/node_modules/lodash/_cacheHas.js b/node_modules/lodash/_cacheHas.js new file mode 100644 index 0000000..2dec892 --- /dev/null +++ b/node_modules/lodash/_cacheHas.js @@ -0,0 +1,13 @@ +/** + * Checks if a `cache` value for `key` exists. + * + * @private + * @param {Object} cache The cache to query. + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function cacheHas(cache, key) { + return cache.has(key); +} + +module.exports = cacheHas; diff --git a/node_modules/lodash/_castArrayLikeObject.js b/node_modules/lodash/_castArrayLikeObject.js new file mode 100644 index 0000000..92c75fa --- /dev/null +++ b/node_modules/lodash/_castArrayLikeObject.js @@ -0,0 +1,14 @@ +var isArrayLikeObject = require('./isArrayLikeObject'); + +/** + * Casts `value` to an empty array if it's not an array like object. + * + * @private + * @param {*} value The value to inspect. + * @returns {Array|Object} Returns the cast array-like object. + */ +function castArrayLikeObject(value) { + return isArrayLikeObject(value) ? value : []; +} + +module.exports = castArrayLikeObject; diff --git a/node_modules/lodash/_castFunction.js b/node_modules/lodash/_castFunction.js new file mode 100644 index 0000000..98c91ae --- /dev/null +++ b/node_modules/lodash/_castFunction.js @@ -0,0 +1,14 @@ +var identity = require('./identity'); + +/** + * Casts `value` to `identity` if it's not a function. + * + * @private + * @param {*} value The value to inspect. + * @returns {Function} Returns cast function. + */ +function castFunction(value) { + return typeof value == 'function' ? value : identity; +} + +module.exports = castFunction; diff --git a/node_modules/lodash/_castPath.js b/node_modules/lodash/_castPath.js new file mode 100644 index 0000000..017e4c1 --- /dev/null +++ b/node_modules/lodash/_castPath.js @@ -0,0 +1,21 @@ +var isArray = require('./isArray'), + isKey = require('./_isKey'), + stringToPath = require('./_stringToPath'), + toString = require('./toString'); + +/** + * Casts `value` to a path array if it's not one. + * + * @private + * @param {*} value The value to inspect. + * @param {Object} [object] The object to query keys on. + * @returns {Array} Returns the cast property path array. + */ +function castPath(value, object) { + if (isArray(value)) { + return value; + } + return isKey(value, object) ? [value] : stringToPath(toString(value)); +} + +module.exports = castPath; diff --git a/node_modules/lodash/_castRest.js b/node_modules/lodash/_castRest.js new file mode 100644 index 0000000..213c66f --- /dev/null +++ b/node_modules/lodash/_castRest.js @@ -0,0 +1,14 @@ +var baseRest = require('./_baseRest'); + +/** + * A `baseRest` alias which can be replaced with `identity` by module + * replacement plugins. + * + * @private + * @type {Function} + * @param {Function} func The function to apply a rest parameter to. + * @returns {Function} Returns the new function. + */ +var castRest = baseRest; + +module.exports = castRest; diff --git a/node_modules/lodash/_castSlice.js b/node_modules/lodash/_castSlice.js new file mode 100644 index 0000000..071faeb --- /dev/null +++ b/node_modules/lodash/_castSlice.js @@ -0,0 +1,18 @@ +var baseSlice = require('./_baseSlice'); + +/** + * Casts `array` to a slice if it's needed. + * + * @private + * @param {Array} array The array to inspect. + * @param {number} start The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the cast slice. + */ +function castSlice(array, start, end) { + var length = array.length; + end = end === undefined ? length : end; + return (!start && end >= length) ? array : baseSlice(array, start, end); +} + +module.exports = castSlice; diff --git a/node_modules/lodash/_charsEndIndex.js b/node_modules/lodash/_charsEndIndex.js new file mode 100644 index 0000000..07908ff --- /dev/null +++ b/node_modules/lodash/_charsEndIndex.js @@ -0,0 +1,19 @@ +var baseIndexOf = require('./_baseIndexOf'); + +/** + * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol + * that is not found in the character symbols. + * + * @private + * @param {Array} strSymbols The string symbols to inspect. + * @param {Array} chrSymbols The character symbols to find. + * @returns {number} Returns the index of the last unmatched string symbol. + */ +function charsEndIndex(strSymbols, chrSymbols) { + var index = strSymbols.length; + + while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {} + return index; +} + +module.exports = charsEndIndex; diff --git a/node_modules/lodash/_charsStartIndex.js b/node_modules/lodash/_charsStartIndex.js new file mode 100644 index 0000000..b17afd2 --- /dev/null +++ b/node_modules/lodash/_charsStartIndex.js @@ -0,0 +1,20 @@ +var baseIndexOf = require('./_baseIndexOf'); + +/** + * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol + * that is not found in the character symbols. + * + * @private + * @param {Array} strSymbols The string symbols to inspect. + * @param {Array} chrSymbols The character symbols to find. + * @returns {number} Returns the index of the first unmatched string symbol. + */ +function charsStartIndex(strSymbols, chrSymbols) { + var index = -1, + length = strSymbols.length; + + while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {} + return index; +} + +module.exports = charsStartIndex; diff --git a/node_modules/lodash/_cloneArrayBuffer.js b/node_modules/lodash/_cloneArrayBuffer.js new file mode 100644 index 0000000..c3d8f6e --- /dev/null +++ b/node_modules/lodash/_cloneArrayBuffer.js @@ -0,0 +1,16 @@ +var Uint8Array = require('./_Uint8Array'); + +/** + * Creates a clone of `arrayBuffer`. + * + * @private + * @param {ArrayBuffer} arrayBuffer The array buffer to clone. + * @returns {ArrayBuffer} Returns the cloned array buffer. + */ +function cloneArrayBuffer(arrayBuffer) { + var result = new arrayBuffer.constructor(arrayBuffer.byteLength); + new Uint8Array(result).set(new Uint8Array(arrayBuffer)); + return result; +} + +module.exports = cloneArrayBuffer; diff --git a/node_modules/lodash/_cloneBuffer.js b/node_modules/lodash/_cloneBuffer.js new file mode 100644 index 0000000..27c4810 --- /dev/null +++ b/node_modules/lodash/_cloneBuffer.js @@ -0,0 +1,35 @@ +var root = require('./_root'); + +/** Detect free variable `exports`. */ +var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; + +/** Detect free variable `module`. */ +var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports = freeModule && freeModule.exports === freeExports; + +/** Built-in value references. */ +var Buffer = moduleExports ? root.Buffer : undefined, + allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined; + +/** + * Creates a clone of `buffer`. + * + * @private + * @param {Buffer} buffer The buffer to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Buffer} Returns the cloned buffer. + */ +function cloneBuffer(buffer, isDeep) { + if (isDeep) { + return buffer.slice(); + } + var length = buffer.length, + result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); + + buffer.copy(result); + return result; +} + +module.exports = cloneBuffer; diff --git a/node_modules/lodash/_cloneDataView.js b/node_modules/lodash/_cloneDataView.js new file mode 100644 index 0000000..9c9b7b0 --- /dev/null +++ b/node_modules/lodash/_cloneDataView.js @@ -0,0 +1,16 @@ +var cloneArrayBuffer = require('./_cloneArrayBuffer'); + +/** + * Creates a clone of `dataView`. + * + * @private + * @param {Object} dataView The data view to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned data view. + */ +function cloneDataView(dataView, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; + return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); +} + +module.exports = cloneDataView; diff --git a/node_modules/lodash/_cloneRegExp.js b/node_modules/lodash/_cloneRegExp.js new file mode 100644 index 0000000..64a30df --- /dev/null +++ b/node_modules/lodash/_cloneRegExp.js @@ -0,0 +1,17 @@ +/** Used to match `RegExp` flags from their coerced string values. */ +var reFlags = /\w*$/; + +/** + * Creates a clone of `regexp`. + * + * @private + * @param {Object} regexp The regexp to clone. + * @returns {Object} Returns the cloned regexp. + */ +function cloneRegExp(regexp) { + var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); + result.lastIndex = regexp.lastIndex; + return result; +} + +module.exports = cloneRegExp; diff --git a/node_modules/lodash/_cloneSymbol.js b/node_modules/lodash/_cloneSymbol.js new file mode 100644 index 0000000..bede39f --- /dev/null +++ b/node_modules/lodash/_cloneSymbol.js @@ -0,0 +1,18 @@ +var Symbol = require('./_Symbol'); + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; + +/** + * Creates a clone of the `symbol` object. + * + * @private + * @param {Object} symbol The symbol object to clone. + * @returns {Object} Returns the cloned symbol object. + */ +function cloneSymbol(symbol) { + return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; +} + +module.exports = cloneSymbol; diff --git a/node_modules/lodash/_cloneTypedArray.js b/node_modules/lodash/_cloneTypedArray.js new file mode 100644 index 0000000..7aad84d --- /dev/null +++ b/node_modules/lodash/_cloneTypedArray.js @@ -0,0 +1,16 @@ +var cloneArrayBuffer = require('./_cloneArrayBuffer'); + +/** + * Creates a clone of `typedArray`. + * + * @private + * @param {Object} typedArray The typed array to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned typed array. + */ +function cloneTypedArray(typedArray, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; + return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); +} + +module.exports = cloneTypedArray; diff --git a/node_modules/lodash/_compareAscending.js b/node_modules/lodash/_compareAscending.js new file mode 100644 index 0000000..8dc2791 --- /dev/null +++ b/node_modules/lodash/_compareAscending.js @@ -0,0 +1,41 @@ +var isSymbol = require('./isSymbol'); + +/** + * Compares values to sort them in ascending order. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {number} Returns the sort order indicator for `value`. + */ +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; +} + +module.exports = compareAscending; diff --git a/node_modules/lodash/_compareMultiple.js b/node_modules/lodash/_compareMultiple.js new file mode 100644 index 0000000..ad61f0f --- /dev/null +++ b/node_modules/lodash/_compareMultiple.js @@ -0,0 +1,44 @@ +var compareAscending = require('./_compareAscending'); + +/** + * Used by `_.orderBy` to compare multiple properties of a value to another + * and stable sort them. + * + * If `orders` is unspecified, all values are sorted in ascending order. Otherwise, + * specify an order of "desc" for descending or "asc" for ascending sort order + * of corresponding values. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {boolean[]|string[]} orders The order to sort by for each property. + * @returns {number} Returns the sort order indicator for `object`. + */ +function compareMultiple(object, other, orders) { + var index = -1, + objCriteria = object.criteria, + othCriteria = other.criteria, + length = objCriteria.length, + ordersLength = orders.length; + + while (++index < length) { + var result = compareAscending(objCriteria[index], othCriteria[index]); + if (result) { + if (index >= ordersLength) { + return result; + } + var order = orders[index]; + return result * (order == 'desc' ? -1 : 1); + } + } + // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications + // that causes it, under certain circumstances, to provide the same value for + // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247 + // for more details. + // + // This also ensures a stable sort in V8 and other engines. + // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details. + return object.index - other.index; +} + +module.exports = compareMultiple; diff --git a/node_modules/lodash/_composeArgs.js b/node_modules/lodash/_composeArgs.js new file mode 100644 index 0000000..1ce40f4 --- /dev/null +++ b/node_modules/lodash/_composeArgs.js @@ -0,0 +1,39 @@ +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * Creates an array that is the composition of partially applied arguments, + * placeholders, and provided arguments into a single array of arguments. + * + * @private + * @param {Array} args The provided arguments. + * @param {Array} partials The arguments to prepend to those provided. + * @param {Array} holders The `partials` placeholder indexes. + * @params {boolean} [isCurried] Specify composing for a curried function. + * @returns {Array} Returns the new array of composed arguments. + */ +function composeArgs(args, partials, holders, isCurried) { + var argsIndex = -1, + argsLength = args.length, + holdersLength = holders.length, + leftIndex = -1, + leftLength = partials.length, + rangeLength = nativeMax(argsLength - holdersLength, 0), + result = Array(leftLength + rangeLength), + isUncurried = !isCurried; + + while (++leftIndex < leftLength) { + result[leftIndex] = partials[leftIndex]; + } + while (++argsIndex < holdersLength) { + if (isUncurried || argsIndex < argsLength) { + result[holders[argsIndex]] = args[argsIndex]; + } + } + while (rangeLength--) { + result[leftIndex++] = args[argsIndex++]; + } + return result; +} + +module.exports = composeArgs; diff --git a/node_modules/lodash/_composeArgsRight.js b/node_modules/lodash/_composeArgsRight.js new file mode 100644 index 0000000..8dc588d --- /dev/null +++ b/node_modules/lodash/_composeArgsRight.js @@ -0,0 +1,41 @@ +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * This function is like `composeArgs` except that the arguments composition + * is tailored for `_.partialRight`. + * + * @private + * @param {Array} args The provided arguments. + * @param {Array} partials The arguments to append to those provided. + * @param {Array} holders The `partials` placeholder indexes. + * @params {boolean} [isCurried] Specify composing for a curried function. + * @returns {Array} Returns the new array of composed arguments. + */ +function composeArgsRight(args, partials, holders, isCurried) { + var argsIndex = -1, + argsLength = args.length, + holdersIndex = -1, + holdersLength = holders.length, + rightIndex = -1, + rightLength = partials.length, + rangeLength = nativeMax(argsLength - holdersLength, 0), + result = Array(rangeLength + rightLength), + isUncurried = !isCurried; + + while (++argsIndex < rangeLength) { + result[argsIndex] = args[argsIndex]; + } + var offset = argsIndex; + while (++rightIndex < rightLength) { + result[offset + rightIndex] = partials[rightIndex]; + } + while (++holdersIndex < holdersLength) { + if (isUncurried || argsIndex < argsLength) { + result[offset + holders[holdersIndex]] = args[argsIndex++]; + } + } + return result; +} + +module.exports = composeArgsRight; diff --git a/node_modules/lodash/_copyArray.js b/node_modules/lodash/_copyArray.js new file mode 100644 index 0000000..cd94d5d --- /dev/null +++ b/node_modules/lodash/_copyArray.js @@ -0,0 +1,20 @@ +/** + * Copies the values of `source` to `array`. + * + * @private + * @param {Array} source The array to copy values from. + * @param {Array} [array=[]] The array to copy values to. + * @returns {Array} Returns `array`. + */ +function copyArray(source, array) { + var index = -1, + length = source.length; + + array || (array = Array(length)); + while (++index < length) { + array[index] = source[index]; + } + return array; +} + +module.exports = copyArray; diff --git a/node_modules/lodash/_copyObject.js b/node_modules/lodash/_copyObject.js new file mode 100644 index 0000000..2f2a5c2 --- /dev/null +++ b/node_modules/lodash/_copyObject.js @@ -0,0 +1,40 @@ +var assignValue = require('./_assignValue'), + baseAssignValue = require('./_baseAssignValue'); + +/** + * Copies properties of `source` to `object`. + * + * @private + * @param {Object} source The object to copy properties from. + * @param {Array} props The property identifiers to copy. + * @param {Object} [object={}] The object to copy properties to. + * @param {Function} [customizer] The function to customize copied values. + * @returns {Object} Returns `object`. + */ +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; +} + +module.exports = copyObject; diff --git a/node_modules/lodash/_copySymbols.js b/node_modules/lodash/_copySymbols.js new file mode 100644 index 0000000..c35944a --- /dev/null +++ b/node_modules/lodash/_copySymbols.js @@ -0,0 +1,16 @@ +var copyObject = require('./_copyObject'), + getSymbols = require('./_getSymbols'); + +/** + * Copies own symbols of `source` to `object`. + * + * @private + * @param {Object} source The object to copy symbols from. + * @param {Object} [object={}] The object to copy symbols to. + * @returns {Object} Returns `object`. + */ +function copySymbols(source, object) { + return copyObject(source, getSymbols(source), object); +} + +module.exports = copySymbols; diff --git a/node_modules/lodash/_copySymbolsIn.js b/node_modules/lodash/_copySymbolsIn.js new file mode 100644 index 0000000..fdf20a7 --- /dev/null +++ b/node_modules/lodash/_copySymbolsIn.js @@ -0,0 +1,16 @@ +var copyObject = require('./_copyObject'), + getSymbolsIn = require('./_getSymbolsIn'); + +/** + * Copies own and inherited symbols of `source` to `object`. + * + * @private + * @param {Object} source The object to copy symbols from. + * @param {Object} [object={}] The object to copy symbols to. + * @returns {Object} Returns `object`. + */ +function copySymbolsIn(source, object) { + return copyObject(source, getSymbolsIn(source), object); +} + +module.exports = copySymbolsIn; diff --git a/node_modules/lodash/_coreJsData.js b/node_modules/lodash/_coreJsData.js new file mode 100644 index 0000000..f8e5b4e --- /dev/null +++ b/node_modules/lodash/_coreJsData.js @@ -0,0 +1,6 @@ +var root = require('./_root'); + +/** Used to detect overreaching core-js shims. */ +var coreJsData = root['__core-js_shared__']; + +module.exports = coreJsData; diff --git a/node_modules/lodash/_countHolders.js b/node_modules/lodash/_countHolders.js new file mode 100644 index 0000000..718fcda --- /dev/null +++ b/node_modules/lodash/_countHolders.js @@ -0,0 +1,21 @@ +/** + * Gets the number of `placeholder` occurrences in `array`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} placeholder The placeholder to search for. + * @returns {number} Returns the placeholder count. + */ +function countHolders(array, placeholder) { + var length = array.length, + result = 0; + + while (length--) { + if (array[length] === placeholder) { + ++result; + } + } + return result; +} + +module.exports = countHolders; diff --git a/node_modules/lodash/_createAggregator.js b/node_modules/lodash/_createAggregator.js new file mode 100644 index 0000000..0be42c4 --- /dev/null +++ b/node_modules/lodash/_createAggregator.js @@ -0,0 +1,23 @@ +var arrayAggregator = require('./_arrayAggregator'), + baseAggregator = require('./_baseAggregator'), + baseIteratee = require('./_baseIteratee'), + isArray = require('./isArray'); + +/** + * Creates a function like `_.groupBy`. + * + * @private + * @param {Function} setter The function to set accumulator values. + * @param {Function} [initializer] The accumulator object initializer. + * @returns {Function} Returns the new aggregator function. + */ +function createAggregator(setter, initializer) { + return function(collection, iteratee) { + var func = isArray(collection) ? arrayAggregator : baseAggregator, + accumulator = initializer ? initializer() : {}; + + return func(collection, setter, baseIteratee(iteratee, 2), accumulator); + }; +} + +module.exports = createAggregator; diff --git a/node_modules/lodash/_createAssigner.js b/node_modules/lodash/_createAssigner.js new file mode 100644 index 0000000..1f904c5 --- /dev/null +++ b/node_modules/lodash/_createAssigner.js @@ -0,0 +1,37 @@ +var baseRest = require('./_baseRest'), + isIterateeCall = require('./_isIterateeCall'); + +/** + * Creates a function like `_.assign`. + * + * @private + * @param {Function} assigner The function to assign values. + * @returns {Function} Returns the new assigner function. + */ +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; + }); +} + +module.exports = createAssigner; diff --git a/node_modules/lodash/_createBaseEach.js b/node_modules/lodash/_createBaseEach.js new file mode 100644 index 0000000..d24fdd1 --- /dev/null +++ b/node_modules/lodash/_createBaseEach.js @@ -0,0 +1,32 @@ +var isArrayLike = require('./isArrayLike'); + +/** + * Creates a `baseEach` or `baseEachRight` function. + * + * @private + * @param {Function} eachFunc The function to iterate over a collection. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseEach(eachFunc, fromRight) { + return function(collection, iteratee) { + if (collection == null) { + return collection; + } + if (!isArrayLike(collection)) { + return eachFunc(collection, iteratee); + } + var length = collection.length, + index = fromRight ? length : -1, + iterable = Object(collection); + + while ((fromRight ? index-- : ++index < length)) { + if (iteratee(iterable[index], index, iterable) === false) { + break; + } + } + return collection; + }; +} + +module.exports = createBaseEach; diff --git a/node_modules/lodash/_createBaseFor.js b/node_modules/lodash/_createBaseFor.js new file mode 100644 index 0000000..94cbf29 --- /dev/null +++ b/node_modules/lodash/_createBaseFor.js @@ -0,0 +1,25 @@ +/** + * Creates a base function for methods like `_.forIn` and `_.forOwn`. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, + iterable = Object(object), + props = keysFunc(object), + length = props.length; + + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; +} + +module.exports = createBaseFor; diff --git a/node_modules/lodash/_createBind.js b/node_modules/lodash/_createBind.js new file mode 100644 index 0000000..07cb99f --- /dev/null +++ b/node_modules/lodash/_createBind.js @@ -0,0 +1,28 @@ +var createCtor = require('./_createCtor'), + root = require('./_root'); + +/** Used to compose bitmasks for function metadata. */ +var WRAP_BIND_FLAG = 1; + +/** + * Creates a function that wraps `func` to invoke it with the optional `this` + * binding of `thisArg`. + * + * @private + * @param {Function} func The function to wrap. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @param {*} [thisArg] The `this` binding of `func`. + * @returns {Function} Returns the new wrapped function. + */ +function createBind(func, bitmask, thisArg) { + var isBind = bitmask & WRAP_BIND_FLAG, + Ctor = createCtor(func); + + function wrapper() { + var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; + return fn.apply(isBind ? thisArg : this, arguments); + } + return wrapper; +} + +module.exports = createBind; diff --git a/node_modules/lodash/_createCaseFirst.js b/node_modules/lodash/_createCaseFirst.js new file mode 100644 index 0000000..fe8ea48 --- /dev/null +++ b/node_modules/lodash/_createCaseFirst.js @@ -0,0 +1,33 @@ +var castSlice = require('./_castSlice'), + hasUnicode = require('./_hasUnicode'), + stringToArray = require('./_stringToArray'), + toString = require('./toString'); + +/** + * Creates a function like `_.lowerFirst`. + * + * @private + * @param {string} methodName The name of the `String` case method to use. + * @returns {Function} Returns the new case function. + */ +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; + }; +} + +module.exports = createCaseFirst; diff --git a/node_modules/lodash/_createCompounder.js b/node_modules/lodash/_createCompounder.js new file mode 100644 index 0000000..8d4cee2 --- /dev/null +++ b/node_modules/lodash/_createCompounder.js @@ -0,0 +1,24 @@ +var arrayReduce = require('./_arrayReduce'), + deburr = require('./deburr'), + words = require('./words'); + +/** Used to compose unicode capture groups. */ +var rsApos = "['\u2019]"; + +/** Used to match apostrophes. */ +var reApos = RegExp(rsApos, 'g'); + +/** + * Creates a function like `_.camelCase`. + * + * @private + * @param {Function} callback The function to combine each word. + * @returns {Function} Returns the new compounder function. + */ +function createCompounder(callback) { + return function(string) { + return arrayReduce(words(deburr(string).replace(reApos, '')), callback, ''); + }; +} + +module.exports = createCompounder; diff --git a/node_modules/lodash/_createCtor.js b/node_modules/lodash/_createCtor.js new file mode 100644 index 0000000..9047aa5 --- /dev/null +++ b/node_modules/lodash/_createCtor.js @@ -0,0 +1,37 @@ +var baseCreate = require('./_baseCreate'), + isObject = require('./isObject'); + +/** + * Creates a function that produces an instance of `Ctor` regardless of + * whether it was invoked as part of a `new` expression or by `call` or `apply`. + * + * @private + * @param {Function} Ctor The constructor to wrap. + * @returns {Function} Returns the new wrapped function. + */ +function createCtor(Ctor) { + return function() { + // Use a `switch` statement to work with class constructors. See + // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist + // for more details. + var args = arguments; + switch (args.length) { + case 0: return new Ctor; + case 1: return new Ctor(args[0]); + case 2: return new Ctor(args[0], args[1]); + case 3: return new Ctor(args[0], args[1], args[2]); + case 4: return new Ctor(args[0], args[1], args[2], args[3]); + case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]); + case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]); + case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); + } + var thisBinding = baseCreate(Ctor.prototype), + result = Ctor.apply(thisBinding, args); + + // Mimic the constructor's `return` behavior. + // See https://es5.github.io/#x13.2.2 for more details. + return isObject(result) ? result : thisBinding; + }; +} + +module.exports = createCtor; diff --git a/node_modules/lodash/_createCurry.js b/node_modules/lodash/_createCurry.js new file mode 100644 index 0000000..f06c2cd --- /dev/null +++ b/node_modules/lodash/_createCurry.js @@ -0,0 +1,46 @@ +var apply = require('./_apply'), + createCtor = require('./_createCtor'), + createHybrid = require('./_createHybrid'), + createRecurry = require('./_createRecurry'), + getHolder = require('./_getHolder'), + replaceHolders = require('./_replaceHolders'), + root = require('./_root'); + +/** + * Creates a function that wraps `func` to enable currying. + * + * @private + * @param {Function} func The function to wrap. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @param {number} arity The arity of `func`. + * @returns {Function} Returns the new wrapped function. + */ +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; +} + +module.exports = createCurry; diff --git a/node_modules/lodash/_createFind.js b/node_modules/lodash/_createFind.js new file mode 100644 index 0000000..8859ff8 --- /dev/null +++ b/node_modules/lodash/_createFind.js @@ -0,0 +1,25 @@ +var baseIteratee = require('./_baseIteratee'), + isArrayLike = require('./isArrayLike'), + keys = require('./keys'); + +/** + * Creates a `_.find` or `_.findLast` function. + * + * @private + * @param {Function} findIndexFunc The function to find the collection index. + * @returns {Function} Returns the new find function. + */ +function createFind(findIndexFunc) { + return function(collection, predicate, fromIndex) { + var iterable = Object(collection); + if (!isArrayLike(collection)) { + var iteratee = baseIteratee(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; + }; +} + +module.exports = createFind; diff --git a/node_modules/lodash/_createFlow.js b/node_modules/lodash/_createFlow.js new file mode 100644 index 0000000..baaddbf --- /dev/null +++ b/node_modules/lodash/_createFlow.js @@ -0,0 +1,78 @@ +var LodashWrapper = require('./_LodashWrapper'), + flatRest = require('./_flatRest'), + getData = require('./_getData'), + getFuncName = require('./_getFuncName'), + isArray = require('./isArray'), + isLaziable = require('./_isLaziable'); + +/** Error message constants. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/** Used to compose bitmasks for function metadata. */ +var WRAP_CURRY_FLAG = 8, + WRAP_PARTIAL_FLAG = 32, + WRAP_ARY_FLAG = 128, + WRAP_REARG_FLAG = 256; + +/** + * Creates a `_.flow` or `_.flowRight` function. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new flow function. + */ +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; + }; + }); +} + +module.exports = createFlow; diff --git a/node_modules/lodash/_createHybrid.js b/node_modules/lodash/_createHybrid.js new file mode 100644 index 0000000..b671bd1 --- /dev/null +++ b/node_modules/lodash/_createHybrid.js @@ -0,0 +1,92 @@ +var composeArgs = require('./_composeArgs'), + composeArgsRight = require('./_composeArgsRight'), + countHolders = require('./_countHolders'), + createCtor = require('./_createCtor'), + createRecurry = require('./_createRecurry'), + getHolder = require('./_getHolder'), + reorder = require('./_reorder'), + replaceHolders = require('./_replaceHolders'), + root = require('./_root'); + +/** Used to compose bitmasks for function metadata. */ +var WRAP_BIND_FLAG = 1, + WRAP_BIND_KEY_FLAG = 2, + WRAP_CURRY_FLAG = 8, + WRAP_CURRY_RIGHT_FLAG = 16, + WRAP_ARY_FLAG = 128, + WRAP_FLIP_FLAG = 512; + +/** + * Creates a function that wraps `func` to invoke it with optional `this` + * binding of `thisArg`, partial application, and currying. + * + * @private + * @param {Function|string} func The function or method name to wrap. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @param {*} [thisArg] The `this` binding of `func`. + * @param {Array} [partials] The arguments to prepend to those provided to + * the new function. + * @param {Array} [holders] The `partials` placeholder indexes. + * @param {Array} [partialsRight] The arguments to append to those provided + * to the new function. + * @param {Array} [holdersRight] The `partialsRight` placeholder indexes. + * @param {Array} [argPos] The argument positions of the new function. + * @param {number} [ary] The arity cap of `func`. + * @param {number} [arity] The arity of `func`. + * @returns {Function} Returns the new wrapped function. + */ +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; +} + +module.exports = createHybrid; diff --git a/node_modules/lodash/_createInverter.js b/node_modules/lodash/_createInverter.js new file mode 100644 index 0000000..6c0c562 --- /dev/null +++ b/node_modules/lodash/_createInverter.js @@ -0,0 +1,17 @@ +var baseInverter = require('./_baseInverter'); + +/** + * Creates a function like `_.invertBy`. + * + * @private + * @param {Function} setter The function to set accumulator values. + * @param {Function} toIteratee The function to resolve iteratees. + * @returns {Function} Returns the new inverter function. + */ +function createInverter(setter, toIteratee) { + return function(object, iteratee) { + return baseInverter(object, setter, toIteratee(iteratee), {}); + }; +} + +module.exports = createInverter; diff --git a/node_modules/lodash/_createMathOperation.js b/node_modules/lodash/_createMathOperation.js new file mode 100644 index 0000000..f1e238a --- /dev/null +++ b/node_modules/lodash/_createMathOperation.js @@ -0,0 +1,38 @@ +var baseToNumber = require('./_baseToNumber'), + baseToString = require('./_baseToString'); + +/** + * Creates a function that performs a mathematical operation on two values. + * + * @private + * @param {Function} operator The function to perform the operation. + * @param {number} [defaultValue] The value used for `undefined` arguments. + * @returns {Function} Returns the new mathematical operation function. + */ +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; + }; +} + +module.exports = createMathOperation; diff --git a/node_modules/lodash/_createOver.js b/node_modules/lodash/_createOver.js new file mode 100644 index 0000000..3b94551 --- /dev/null +++ b/node_modules/lodash/_createOver.js @@ -0,0 +1,27 @@ +var apply = require('./_apply'), + arrayMap = require('./_arrayMap'), + baseIteratee = require('./_baseIteratee'), + baseRest = require('./_baseRest'), + baseUnary = require('./_baseUnary'), + flatRest = require('./_flatRest'); + +/** + * Creates a function like `_.over`. + * + * @private + * @param {Function} arrayFunc The function to iterate over iteratees. + * @returns {Function} Returns the new over function. + */ +function createOver(arrayFunc) { + return flatRest(function(iteratees) { + iteratees = arrayMap(iteratees, baseUnary(baseIteratee)); + return baseRest(function(args) { + var thisArg = this; + return arrayFunc(iteratees, function(iteratee) { + return apply(iteratee, thisArg, args); + }); + }); + }); +} + +module.exports = createOver; diff --git a/node_modules/lodash/_createPadding.js b/node_modules/lodash/_createPadding.js new file mode 100644 index 0000000..2124612 --- /dev/null +++ b/node_modules/lodash/_createPadding.js @@ -0,0 +1,33 @@ +var baseRepeat = require('./_baseRepeat'), + baseToString = require('./_baseToString'), + castSlice = require('./_castSlice'), + hasUnicode = require('./_hasUnicode'), + stringSize = require('./_stringSize'), + stringToArray = require('./_stringToArray'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeCeil = Math.ceil; + +/** + * Creates the padding for `string` based on `length`. The `chars` string + * is truncated if the number of characters exceeds `length`. + * + * @private + * @param {number} length The padding length. + * @param {string} [chars=' '] The string used as padding. + * @returns {string} Returns the padding for `string`. + */ +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); +} + +module.exports = createPadding; diff --git a/node_modules/lodash/_createPartial.js b/node_modules/lodash/_createPartial.js new file mode 100644 index 0000000..e16c248 --- /dev/null +++ b/node_modules/lodash/_createPartial.js @@ -0,0 +1,43 @@ +var apply = require('./_apply'), + createCtor = require('./_createCtor'), + root = require('./_root'); + +/** Used to compose bitmasks for function metadata. */ +var WRAP_BIND_FLAG = 1; + +/** + * Creates a function that wraps `func` to invoke it with the `this` binding + * of `thisArg` and `partials` prepended to the arguments it receives. + * + * @private + * @param {Function} func The function to wrap. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @param {*} thisArg The `this` binding of `func`. + * @param {Array} partials The arguments to prepend to those provided to + * the new function. + * @returns {Function} Returns the new wrapped function. + */ +function createPartial(func, bitmask, thisArg, partials) { + var isBind = bitmask & WRAP_BIND_FLAG, + Ctor = createCtor(func); + + function wrapper() { + var argsIndex = -1, + argsLength = arguments.length, + leftIndex = -1, + leftLength = partials.length, + args = Array(leftLength + argsLength), + fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; + + while (++leftIndex < leftLength) { + args[leftIndex] = partials[leftIndex]; + } + while (argsLength--) { + args[leftIndex++] = arguments[++argsIndex]; + } + return apply(fn, isBind ? thisArg : this, args); + } + return wrapper; +} + +module.exports = createPartial; diff --git a/node_modules/lodash/_createRange.js b/node_modules/lodash/_createRange.js new file mode 100644 index 0000000..9f52c77 --- /dev/null +++ b/node_modules/lodash/_createRange.js @@ -0,0 +1,30 @@ +var baseRange = require('./_baseRange'), + isIterateeCall = require('./_isIterateeCall'), + toFinite = require('./toFinite'); + +/** + * Creates a `_.range` or `_.rangeRight` function. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new range function. + */ +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. + 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); + }; +} + +module.exports = createRange; diff --git a/node_modules/lodash/_createRecurry.js b/node_modules/lodash/_createRecurry.js new file mode 100644 index 0000000..eb29fb2 --- /dev/null +++ b/node_modules/lodash/_createRecurry.js @@ -0,0 +1,56 @@ +var isLaziable = require('./_isLaziable'), + setData = require('./_setData'), + setWrapToString = require('./_setWrapToString'); + +/** 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_PARTIAL_FLAG = 32, + WRAP_PARTIAL_RIGHT_FLAG = 64; + +/** + * Creates a function that wraps `func` to continue currying. + * + * @private + * @param {Function} func The function to wrap. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @param {Function} wrapFunc The function to create the `func` wrapper. + * @param {*} placeholder The placeholder value. + * @param {*} [thisArg] The `this` binding of `func`. + * @param {Array} [partials] The arguments to prepend to those provided to + * the new function. + * @param {Array} [holders] The `partials` placeholder indexes. + * @param {Array} [argPos] The argument positions of the new function. + * @param {number} [ary] The arity cap of `func`. + * @param {number} [arity] The arity of `func`. + * @returns {Function} Returns the new wrapped function. + */ +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 &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG); + } + 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); +} + +module.exports = createRecurry; diff --git a/node_modules/lodash/_createRelationalOperation.js b/node_modules/lodash/_createRelationalOperation.js new file mode 100644 index 0000000..a17c6b5 --- /dev/null +++ b/node_modules/lodash/_createRelationalOperation.js @@ -0,0 +1,20 @@ +var toNumber = require('./toNumber'); + +/** + * Creates a function that performs a relational operation on two values. + * + * @private + * @param {Function} operator The function to perform the operation. + * @returns {Function} Returns the new relational operation function. + */ +function createRelationalOperation(operator) { + return function(value, other) { + if (!(typeof value == 'string' && typeof other == 'string')) { + value = toNumber(value); + other = toNumber(other); + } + return operator(value, other); + }; +} + +module.exports = createRelationalOperation; diff --git a/node_modules/lodash/_createRound.js b/node_modules/lodash/_createRound.js new file mode 100644 index 0000000..88be5df --- /dev/null +++ b/node_modules/lodash/_createRound.js @@ -0,0 +1,35 @@ +var root = require('./_root'), + toInteger = require('./toInteger'), + toNumber = require('./toNumber'), + toString = require('./toString'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeIsFinite = root.isFinite, + nativeMin = Math.min; + +/** + * Creates a function like `_.round`. + * + * @private + * @param {string} methodName The name of the `Math` method to use when rounding. + * @returns {Function} Returns the new round function. + */ +function createRound(methodName) { + var func = Math[methodName]; + return function(number, precision) { + number = toNumber(number); + precision = precision == null ? 0 : nativeMin(toInteger(precision), 292); + if (precision && nativeIsFinite(number)) { + // Shift with exponential notation to avoid floating-point issues. + // See [MDN](https://mdn.io/round#Examples) for more details. + var pair = (toString(number) + 'e').split('e'), + value = func(pair[0] + 'e' + (+pair[1] + precision)); + + pair = (toString(value) + 'e').split('e'); + return +(pair[0] + 'e' + (+pair[1] - precision)); + } + return func(number); + }; +} + +module.exports = createRound; diff --git a/node_modules/lodash/_createSet.js b/node_modules/lodash/_createSet.js new file mode 100644 index 0000000..0f644ee --- /dev/null +++ b/node_modules/lodash/_createSet.js @@ -0,0 +1,19 @@ +var Set = require('./_Set'), + noop = require('./noop'), + setToArray = require('./_setToArray'); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** + * Creates a set object of `values`. + * + * @private + * @param {Array} values The values to add to the set. + * @returns {Object} Returns the new set. + */ +var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) { + return new Set(values); +}; + +module.exports = createSet; diff --git a/node_modules/lodash/_createToPairs.js b/node_modules/lodash/_createToPairs.js new file mode 100644 index 0000000..568417a --- /dev/null +++ b/node_modules/lodash/_createToPairs.js @@ -0,0 +1,30 @@ +var baseToPairs = require('./_baseToPairs'), + getTag = require('./_getTag'), + mapToArray = require('./_mapToArray'), + setToPairs = require('./_setToPairs'); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]', + setTag = '[object Set]'; + +/** + * Creates a `_.toPairs` or `_.toPairsIn` function. + * + * @private + * @param {Function} keysFunc The function to get the keys of a given object. + * @returns {Function} Returns the new pairs function. + */ +function createToPairs(keysFunc) { + return function(object) { + var tag = getTag(object); + if (tag == mapTag) { + return mapToArray(object); + } + if (tag == setTag) { + return setToPairs(object); + } + return baseToPairs(object, keysFunc(object)); + }; +} + +module.exports = createToPairs; diff --git a/node_modules/lodash/_createWrap.js b/node_modules/lodash/_createWrap.js new file mode 100644 index 0000000..33f0633 --- /dev/null +++ b/node_modules/lodash/_createWrap.js @@ -0,0 +1,106 @@ +var baseSetData = require('./_baseSetData'), + createBind = require('./_createBind'), + createCurry = require('./_createCurry'), + createHybrid = require('./_createHybrid'), + createPartial = require('./_createPartial'), + getData = require('./_getData'), + mergeData = require('./_mergeData'), + setData = require('./_setData'), + setWrapToString = require('./_setWrapToString'), + toInteger = require('./toInteger'); + +/** Error message constants. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/** Used to compose bitmasks for function metadata. */ +var WRAP_BIND_FLAG = 1, + WRAP_BIND_KEY_FLAG = 2, + WRAP_CURRY_FLAG = 8, + WRAP_CURRY_RIGHT_FLAG = 16, + WRAP_PARTIAL_FLAG = 32, + WRAP_PARTIAL_RIGHT_FLAG = 64; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * Creates a function that either curries or invokes `func` with optional + * `this` binding and partially applied arguments. + * + * @private + * @param {Function|string} func The function or method name to wrap. + * @param {number} bitmask The bitmask flags. + * 1 - `_.bind` + * 2 - `_.bindKey` + * 4 - `_.curry` or `_.curryRight` of a bound function + * 8 - `_.curry` + * 16 - `_.curryRight` + * 32 - `_.partial` + * 64 - `_.partialRight` + * 128 - `_.rearg` + * 256 - `_.ary` + * 512 - `_.flip` + * @param {*} [thisArg] The `this` binding of `func`. + * @param {Array} [partials] The arguments to be partially applied. + * @param {Array} [holders] The `partials` placeholder indexes. + * @param {Array} [argPos] The argument positions of the new function. + * @param {number} [ary] The arity cap of `func`. + * @param {number} [arity] The arity of `func`. + * @returns {Function} Returns the new wrapped function. + */ +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 &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG); + 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 &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG); + } + 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); +} + +module.exports = createWrap; diff --git a/node_modules/lodash/_customDefaultsAssignIn.js b/node_modules/lodash/_customDefaultsAssignIn.js new file mode 100644 index 0000000..1f49e6f --- /dev/null +++ b/node_modules/lodash/_customDefaultsAssignIn.js @@ -0,0 +1,29 @@ +var eq = require('./eq'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used by `_.defaults` to customize its `_.assignIn` use to assign properties + * of source objects to the destination object for all destination properties + * that resolve to `undefined`. + * + * @private + * @param {*} objValue The destination value. + * @param {*} srcValue The source value. + * @param {string} key The key of the property to assign. + * @param {Object} object The parent object of `objValue`. + * @returns {*} Returns the value to assign. + */ +function customDefaultsAssignIn(objValue, srcValue, key, object) { + if (objValue === undefined || + (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) { + return srcValue; + } + return objValue; +} + +module.exports = customDefaultsAssignIn; diff --git a/node_modules/lodash/_customDefaultsMerge.js b/node_modules/lodash/_customDefaultsMerge.js new file mode 100644 index 0000000..4cab317 --- /dev/null +++ b/node_modules/lodash/_customDefaultsMerge.js @@ -0,0 +1,28 @@ +var baseMerge = require('./_baseMerge'), + isObject = require('./isObject'); + +/** + * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source + * objects into destination objects that are passed thru. + * + * @private + * @param {*} objValue The destination value. + * @param {*} srcValue The source value. + * @param {string} key The key of the property to merge. + * @param {Object} object The parent object of `objValue`. + * @param {Object} source The parent object of `srcValue`. + * @param {Object} [stack] Tracks traversed source values and their merged + * counterparts. + * @returns {*} Returns the value to assign. + */ +function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { + if (isObject(objValue) && isObject(srcValue)) { + // Recursively merge objects and arrays (susceptible to call stack limits). + stack.set(srcValue, objValue); + baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack); + stack['delete'](srcValue); + } + return objValue; +} + +module.exports = customDefaultsMerge; diff --git a/node_modules/lodash/_customOmitClone.js b/node_modules/lodash/_customOmitClone.js new file mode 100644 index 0000000..968db2e --- /dev/null +++ b/node_modules/lodash/_customOmitClone.js @@ -0,0 +1,16 @@ +var isPlainObject = require('./isPlainObject'); + +/** + * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain + * objects. + * + * @private + * @param {*} value The value to inspect. + * @param {string} key The key of the property to inspect. + * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`. + */ +function customOmitClone(value) { + return isPlainObject(value) ? undefined : value; +} + +module.exports = customOmitClone; diff --git a/node_modules/lodash/_deburrLetter.js b/node_modules/lodash/_deburrLetter.js new file mode 100644 index 0000000..3e531ed --- /dev/null +++ b/node_modules/lodash/_deburrLetter.js @@ -0,0 +1,71 @@ +var basePropertyOf = require('./_basePropertyOf'); + +/** Used to map Latin Unicode letters to basic Latin letters. */ +var deburredLetters = { + // Latin-1 Supplement block. + '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A', + '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a', + '\xc7': 'C', '\xe7': 'c', + '\xd0': 'D', '\xf0': 'd', + '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E', + '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e', + '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I', + '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i', + '\xd1': 'N', '\xf1': 'n', + '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O', + '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o', + '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U', + '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u', + '\xdd': 'Y', '\xfd': 'y', '\xff': 'y', + '\xc6': 'Ae', '\xe6': 'ae', + '\xde': 'Th', '\xfe': 'th', + '\xdf': 'ss', + // Latin Extended-A block. + '\u0100': 'A', '\u0102': 'A', '\u0104': 'A', + '\u0101': 'a', '\u0103': 'a', '\u0105': 'a', + '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C', + '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c', + '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd', + '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E', + '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e', + '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G', + '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g', + '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h', + '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I', + '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i', + '\u0134': 'J', '\u0135': 'j', + '\u0136': 'K', '\u0137': 'k', '\u0138': 'k', + '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L', + '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l', + '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N', + '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n', + '\u014c': 'O', '\u014e': 'O', '\u0150': 'O', + '\u014d': 'o', '\u014f': 'o', '\u0151': 'o', + '\u0154': 'R', '\u0156': 'R', '\u0158': 'R', + '\u0155': 'r', '\u0157': 'r', '\u0159': 'r', + '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S', + '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's', + '\u0162': 'T', '\u0164': 'T', '\u0166': 'T', + '\u0163': 't', '\u0165': 't', '\u0167': 't', + '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U', + '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u', + '\u0174': 'W', '\u0175': 'w', + '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y', + '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z', + '\u017a': 'z', '\u017c': 'z', '\u017e': 'z', + '\u0132': 'IJ', '\u0133': 'ij', + '\u0152': 'Oe', '\u0153': 'oe', + '\u0149': "'n", '\u017f': 's' +}; + +/** + * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A + * letters to basic Latin letters. + * + * @private + * @param {string} letter The matched letter to deburr. + * @returns {string} Returns the deburred letter. + */ +var deburrLetter = basePropertyOf(deburredLetters); + +module.exports = deburrLetter; diff --git a/node_modules/lodash/_defineProperty.js b/node_modules/lodash/_defineProperty.js new file mode 100644 index 0000000..b6116d9 --- /dev/null +++ b/node_modules/lodash/_defineProperty.js @@ -0,0 +1,11 @@ +var getNative = require('./_getNative'); + +var defineProperty = (function() { + try { + var func = getNative(Object, 'defineProperty'); + func({}, '', {}); + return func; + } catch (e) {} +}()); + +module.exports = defineProperty; diff --git a/node_modules/lodash/_equalArrays.js b/node_modules/lodash/_equalArrays.js new file mode 100644 index 0000000..824228c --- /dev/null +++ b/node_modules/lodash/_equalArrays.js @@ -0,0 +1,84 @@ +var SetCache = require('./_SetCache'), + arraySome = require('./_arraySome'), + cacheHas = require('./_cacheHas'); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** + * A specialized version of `baseIsEqualDeep` for arrays with support for + * partial deep comparisons. + * + * @private + * @param {Array} array The array to compare. + * @param {Array} other The other array to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `array` and `other` objects. + * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. + */ +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. + 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. + 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). + 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; +} + +module.exports = equalArrays; diff --git a/node_modules/lodash/_equalByTag.js b/node_modules/lodash/_equalByTag.js new file mode 100644 index 0000000..71919e8 --- /dev/null +++ b/node_modules/lodash/_equalByTag.js @@ -0,0 +1,112 @@ +var Symbol = require('./_Symbol'), + Uint8Array = require('./_Uint8Array'), + eq = require('./eq'), + equalArrays = require('./_equalArrays'), + mapToArray = require('./_mapToArray'), + setToArray = require('./_setToArray'); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** `Object#toString` result references. */ +var boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + mapTag = '[object Map]', + numberTag = '[object Number]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]'; + +var arrayBufferTag = '[object ArrayBuffer]', + dataViewTag = '[object DataView]'; + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; + +/** + * A specialized version of `baseIsEqualDeep` for comparing objects of + * the same `toStringTag`. + * + * **Note:** This function only supports comparing values with tags of + * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {string} tag The `toStringTag` of the objects to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { + switch (tag) { + case dataViewTag: + if ((object.byteLength != other.byteLength) || + (object.byteOffset != other.byteOffset)) { + return false; + } + object = object.buffer; + other = other.buffer; + + case arrayBufferTag: + if ((object.byteLength != other.byteLength) || + !equalFunc(new Uint8Array(object), new Uint8Array(other))) { + return false; + } + return true; + + case boolTag: + case dateTag: + case numberTag: + // Coerce booleans to `1` or `0` and dates to milliseconds. + // Invalid dates are coerced to `NaN`. + return eq(+object, +other); + + case errorTag: + return object.name == other.name && object.message == other.message; + + case regexpTag: + case stringTag: + // Coerce regexes to strings and treat strings, primitives and objects, + // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring + // for more details. + return object == (other + ''); + + case mapTag: + var convert = mapToArray; + + case setTag: + var isPartial = bitmask & COMPARE_PARTIAL_FLAG; + convert || (convert = setToArray); + + if (object.size != other.size && !isPartial) { + return false; + } + // Assume cyclic values are equal. + var stacked = stack.get(object); + if (stacked) { + return stacked == other; + } + bitmask |= COMPARE_UNORDERED_FLAG; + + // Recursively compare objects (susceptible to call stack limits). + stack.set(object, other); + var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); + stack['delete'](object); + return result; + + case symbolTag: + if (symbolValueOf) { + return symbolValueOf.call(object) == symbolValueOf.call(other); + } + } + return false; +} + +module.exports = equalByTag; diff --git a/node_modules/lodash/_equalObjects.js b/node_modules/lodash/_equalObjects.js new file mode 100644 index 0000000..cdaacd2 --- /dev/null +++ b/node_modules/lodash/_equalObjects.js @@ -0,0 +1,90 @@ +var getAllKeys = require('./_getAllKeys'); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * A specialized version of `baseIsEqualDeep` for objects with support for + * partial deep comparisons. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +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. + 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). + 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. + 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; +} + +module.exports = equalObjects; diff --git a/node_modules/lodash/_escapeHtmlChar.js b/node_modules/lodash/_escapeHtmlChar.js new file mode 100644 index 0000000..7ca68ee --- /dev/null +++ b/node_modules/lodash/_escapeHtmlChar.js @@ -0,0 +1,21 @@ +var basePropertyOf = require('./_basePropertyOf'); + +/** Used to map characters to HTML entities. */ +var htmlEscapes = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''' +}; + +/** + * Used by `_.escape` to convert characters to HTML entities. + * + * @private + * @param {string} chr The matched character to escape. + * @returns {string} Returns the escaped character. + */ +var escapeHtmlChar = basePropertyOf(htmlEscapes); + +module.exports = escapeHtmlChar; diff --git a/node_modules/lodash/_escapeStringChar.js b/node_modules/lodash/_escapeStringChar.js new file mode 100644 index 0000000..44eca96 --- /dev/null +++ b/node_modules/lodash/_escapeStringChar.js @@ -0,0 +1,22 @@ +/** Used to escape characters for inclusion in compiled string literals. */ +var stringEscapes = { + '\\': '\\', + "'": "'", + '\n': 'n', + '\r': 'r', + '\u2028': 'u2028', + '\u2029': 'u2029' +}; + +/** + * Used by `_.template` to escape characters for inclusion in compiled string literals. + * + * @private + * @param {string} chr The matched character to escape. + * @returns {string} Returns the escaped character. + */ +function escapeStringChar(chr) { + return '\\' + stringEscapes[chr]; +} + +module.exports = escapeStringChar; diff --git a/node_modules/lodash/_flatRest.js b/node_modules/lodash/_flatRest.js new file mode 100644 index 0000000..94ab6cc --- /dev/null +++ b/node_modules/lodash/_flatRest.js @@ -0,0 +1,16 @@ +var flatten = require('./flatten'), + overRest = require('./_overRest'), + setToString = require('./_setToString'); + +/** + * A specialized version of `baseRest` which flattens the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @returns {Function} Returns the new function. + */ +function flatRest(func) { + return setToString(overRest(func, undefined, flatten), func + ''); +} + +module.exports = flatRest; diff --git a/node_modules/lodash/_freeGlobal.js b/node_modules/lodash/_freeGlobal.js new file mode 100644 index 0000000..bbec998 --- /dev/null +++ b/node_modules/lodash/_freeGlobal.js @@ -0,0 +1,4 @@ +/** Detect free variable `global` from Node.js. */ +var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + +module.exports = freeGlobal; diff --git a/node_modules/lodash/_getAllKeys.js b/node_modules/lodash/_getAllKeys.js new file mode 100644 index 0000000..a9ce699 --- /dev/null +++ b/node_modules/lodash/_getAllKeys.js @@ -0,0 +1,16 @@ +var baseGetAllKeys = require('./_baseGetAllKeys'), + getSymbols = require('./_getSymbols'), + keys = require('./keys'); + +/** + * Creates an array of own enumerable property names and symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names and symbols. + */ +function getAllKeys(object) { + return baseGetAllKeys(object, keys, getSymbols); +} + +module.exports = getAllKeys; diff --git a/node_modules/lodash/_getAllKeysIn.js b/node_modules/lodash/_getAllKeysIn.js new file mode 100644 index 0000000..1b46678 --- /dev/null +++ b/node_modules/lodash/_getAllKeysIn.js @@ -0,0 +1,17 @@ +var baseGetAllKeys = require('./_baseGetAllKeys'), + getSymbolsIn = require('./_getSymbolsIn'), + keysIn = require('./keysIn'); + +/** + * Creates an array of own and inherited enumerable property names and + * symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names and symbols. + */ +function getAllKeysIn(object) { + return baseGetAllKeys(object, keysIn, getSymbolsIn); +} + +module.exports = getAllKeysIn; diff --git a/node_modules/lodash/_getData.js b/node_modules/lodash/_getData.js new file mode 100644 index 0000000..a1fe7b7 --- /dev/null +++ b/node_modules/lodash/_getData.js @@ -0,0 +1,15 @@ +var metaMap = require('./_metaMap'), + noop = require('./noop'); + +/** + * Gets metadata for `func`. + * + * @private + * @param {Function} func The function to query. + * @returns {*} Returns the metadata for `func`. + */ +var getData = !metaMap ? noop : function(func) { + return metaMap.get(func); +}; + +module.exports = getData; diff --git a/node_modules/lodash/_getFuncName.js b/node_modules/lodash/_getFuncName.js new file mode 100644 index 0000000..21e15b3 --- /dev/null +++ b/node_modules/lodash/_getFuncName.js @@ -0,0 +1,31 @@ +var realNames = require('./_realNames'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Gets the name of `func`. + * + * @private + * @param {Function} func The function to query. + * @returns {string} Returns the function name. + */ +function getFuncName(func) { + var result = (func.name + ''), + array = realNames[result], + length = hasOwnProperty.call(realNames, result) ? array.length : 0; + + while (length--) { + var data = array[length], + otherFunc = data.func; + if (otherFunc == null || otherFunc == func) { + return data.name; + } + } + return result; +} + +module.exports = getFuncName; diff --git a/node_modules/lodash/_getHolder.js b/node_modules/lodash/_getHolder.js new file mode 100644 index 0000000..65e94b5 --- /dev/null +++ b/node_modules/lodash/_getHolder.js @@ -0,0 +1,13 @@ +/** + * Gets the argument placeholder value for `func`. + * + * @private + * @param {Function} func The function to inspect. + * @returns {*} Returns the placeholder value. + */ +function getHolder(func) { + var object = func; + return object.placeholder; +} + +module.exports = getHolder; diff --git a/node_modules/lodash/_getMapData.js b/node_modules/lodash/_getMapData.js new file mode 100644 index 0000000..17f6303 --- /dev/null +++ b/node_modules/lodash/_getMapData.js @@ -0,0 +1,18 @@ +var isKeyable = require('./_isKeyable'); + +/** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ +function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; +} + +module.exports = getMapData; diff --git a/node_modules/lodash/_getMatchData.js b/node_modules/lodash/_getMatchData.js new file mode 100644 index 0000000..2cc70f9 --- /dev/null +++ b/node_modules/lodash/_getMatchData.js @@ -0,0 +1,24 @@ +var isStrictComparable = require('./_isStrictComparable'), + keys = require('./keys'); + +/** + * Gets the property names, values, and compare flags of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the match data of `object`. + */ +function getMatchData(object) { + var result = keys(object), + length = result.length; + + while (length--) { + var key = result[length], + value = object[key]; + + result[length] = [key, value, isStrictComparable(value)]; + } + return result; +} + +module.exports = getMatchData; diff --git a/node_modules/lodash/_getNative.js b/node_modules/lodash/_getNative.js new file mode 100644 index 0000000..97a622b --- /dev/null +++ b/node_modules/lodash/_getNative.js @@ -0,0 +1,17 @@ +var baseIsNative = require('./_baseIsNative'), + getValue = require('./_getValue'); + +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; +} + +module.exports = getNative; diff --git a/node_modules/lodash/_getPrototype.js b/node_modules/lodash/_getPrototype.js new file mode 100644 index 0000000..e808612 --- /dev/null +++ b/node_modules/lodash/_getPrototype.js @@ -0,0 +1,6 @@ +var overArg = require('./_overArg'); + +/** Built-in value references. */ +var getPrototype = overArg(Object.getPrototypeOf, Object); + +module.exports = getPrototype; diff --git a/node_modules/lodash/_getRawTag.js b/node_modules/lodash/_getRawTag.js new file mode 100644 index 0000000..49a95c9 --- /dev/null +++ b/node_modules/lodash/_getRawTag.js @@ -0,0 +1,46 @@ +var Symbol = require('./_Symbol'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** Built-in value references. */ +var symToStringTag = Symbol ? Symbol.toStringTag : undefined; + +/** + * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the raw `toStringTag`. + */ +function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), + tag = value[symToStringTag]; + + try { + value[symToStringTag] = undefined; + var unmasked = true; + } catch (e) {} + + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } + } + return result; +} + +module.exports = getRawTag; diff --git a/node_modules/lodash/_getSymbols.js b/node_modules/lodash/_getSymbols.js new file mode 100644 index 0000000..7d6eafe --- /dev/null +++ b/node_modules/lodash/_getSymbols.js @@ -0,0 +1,30 @@ +var arrayFilter = require('./_arrayFilter'), + stubArray = require('./stubArray'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeGetSymbols = Object.getOwnPropertySymbols; + +/** + * Creates an array of the own enumerable symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. + */ +var getSymbols = !nativeGetSymbols ? stubArray : function(object) { + if (object == null) { + return []; + } + object = Object(object); + return arrayFilter(nativeGetSymbols(object), function(symbol) { + return propertyIsEnumerable.call(object, symbol); + }); +}; + +module.exports = getSymbols; diff --git a/node_modules/lodash/_getSymbolsIn.js b/node_modules/lodash/_getSymbolsIn.js new file mode 100644 index 0000000..cec0855 --- /dev/null +++ b/node_modules/lodash/_getSymbolsIn.js @@ -0,0 +1,25 @@ +var arrayPush = require('./_arrayPush'), + getPrototype = require('./_getPrototype'), + getSymbols = require('./_getSymbols'), + stubArray = require('./stubArray'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeGetSymbols = Object.getOwnPropertySymbols; + +/** + * Creates an array of the own and inherited enumerable symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. + */ +var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { + var result = []; + while (object) { + arrayPush(result, getSymbols(object)); + object = getPrototype(object); + } + return result; +}; + +module.exports = getSymbolsIn; diff --git a/node_modules/lodash/_getTag.js b/node_modules/lodash/_getTag.js new file mode 100644 index 0000000..deaf89d --- /dev/null +++ b/node_modules/lodash/_getTag.js @@ -0,0 +1,58 @@ +var DataView = require('./_DataView'), + Map = require('./_Map'), + Promise = require('./_Promise'), + Set = require('./_Set'), + WeakMap = require('./_WeakMap'), + baseGetTag = require('./_baseGetTag'), + toSource = require('./_toSource'); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]', + objectTag = '[object Object]', + promiseTag = '[object Promise]', + setTag = '[object Set]', + weakMapTag = '[object WeakMap]'; + +var dataViewTag = '[object DataView]'; + +/** Used to detect maps, sets, and weakmaps. */ +var dataViewCtorString = toSource(DataView), + mapCtorString = toSource(Map), + promiseCtorString = toSource(Promise), + setCtorString = toSource(Set), + weakMapCtorString = toSource(WeakMap); + +/** + * Gets the `toStringTag` of `value`. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ +var getTag = baseGetTag; + +// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. +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; + }; +} + +module.exports = getTag; diff --git a/node_modules/lodash/_getValue.js b/node_modules/lodash/_getValue.js new file mode 100644 index 0000000..5f7d773 --- /dev/null +++ b/node_modules/lodash/_getValue.js @@ -0,0 +1,13 @@ +/** + * Gets the value at `key` of `object`. + * + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ +function getValue(object, key) { + return object == null ? undefined : object[key]; +} + +module.exports = getValue; diff --git a/node_modules/lodash/_getView.js b/node_modules/lodash/_getView.js new file mode 100644 index 0000000..df1e5d4 --- /dev/null +++ b/node_modules/lodash/_getView.js @@ -0,0 +1,33 @@ +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max, + nativeMin = Math.min; + +/** + * Gets the view, applying any `transforms` to the `start` and `end` positions. + * + * @private + * @param {number} start The start of the view. + * @param {number} end The end of the view. + * @param {Array} transforms The transformations to apply to the view. + * @returns {Object} Returns an object containing the `start` and `end` + * positions of the view. + */ +function getView(start, end, transforms) { + var index = -1, + length = transforms.length; + + while (++index < length) { + var data = transforms[index], + size = data.size; + + switch (data.type) { + case 'drop': start += size; break; + case 'dropRight': end -= size; break; + case 'take': end = nativeMin(end, start + size); break; + case 'takeRight': start = nativeMax(start, end - size); break; + } + } + return { 'start': start, 'end': end }; +} + +module.exports = getView; diff --git a/node_modules/lodash/_getWrapDetails.js b/node_modules/lodash/_getWrapDetails.js new file mode 100644 index 0000000..3bcc6e4 --- /dev/null +++ b/node_modules/lodash/_getWrapDetails.js @@ -0,0 +1,17 @@ +/** Used to match wrap detail comments. */ +var reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, + reSplitDetails = /,? & /; + +/** + * Extracts wrapper details from the `source` body comment. + * + * @private + * @param {string} source The source to inspect. + * @returns {Array} Returns the wrapper details. + */ +function getWrapDetails(source) { + var match = source.match(reWrapDetails); + return match ? match[1].split(reSplitDetails) : []; +} + +module.exports = getWrapDetails; diff --git a/node_modules/lodash/_hasPath.js b/node_modules/lodash/_hasPath.js new file mode 100644 index 0000000..93dbde1 --- /dev/null +++ b/node_modules/lodash/_hasPath.js @@ -0,0 +1,39 @@ +var castPath = require('./_castPath'), + isArguments = require('./isArguments'), + isArray = require('./isArray'), + isIndex = require('./_isIndex'), + isLength = require('./isLength'), + toKey = require('./_toKey'); + +/** + * Checks if `path` exists on `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @param {Function} hasFunc The function to check properties. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + */ +function hasPath(object, path, hasFunc) { + path = castPath(path, object); + + var index = -1, + length = path.length, + result = false; + + while (++index < length) { + var key = toKey(path[index]); + if (!(result = object != null && hasFunc(object, key))) { + break; + } + object = object[key]; + } + if (result || ++index != length) { + return result; + } + length = object == null ? 0 : object.length; + return !!length && isLength(length) && isIndex(key, length) && + (isArray(object) || isArguments(object)); +} + +module.exports = hasPath; diff --git a/node_modules/lodash/_hasUnicode.js b/node_modules/lodash/_hasUnicode.js new file mode 100644 index 0000000..cb6ca15 --- /dev/null +++ b/node_modules/lodash/_hasUnicode.js @@ -0,0 +1,26 @@ +/** Used to compose unicode character classes. */ +var rsAstralRange = '\\ud800-\\udfff', + rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, + rsVarRange = '\\ufe0e\\ufe0f'; + +/** Used to compose unicode capture groups. */ +var rsZWJ = '\\u200d'; + +/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ +var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']'); + +/** + * Checks if `string` contains Unicode symbols. + * + * @private + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a symbol is found, else `false`. + */ +function hasUnicode(string) { + return reHasUnicode.test(string); +} + +module.exports = hasUnicode; diff --git a/node_modules/lodash/_hasUnicodeWord.js b/node_modules/lodash/_hasUnicodeWord.js new file mode 100644 index 0000000..95d52c4 --- /dev/null +++ b/node_modules/lodash/_hasUnicodeWord.js @@ -0,0 +1,15 @@ +/** Used to detect strings that need a more robust regexp to match words. */ +var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; + +/** + * Checks if `string` contains a word composed of Unicode symbols. + * + * @private + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a word is found, else `false`. + */ +function hasUnicodeWord(string) { + return reHasUnicodeWord.test(string); +} + +module.exports = hasUnicodeWord; diff --git a/node_modules/lodash/_hashClear.js b/node_modules/lodash/_hashClear.js new file mode 100644 index 0000000..5d4b70c --- /dev/null +++ b/node_modules/lodash/_hashClear.js @@ -0,0 +1,15 @@ +var nativeCreate = require('./_nativeCreate'); + +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; +} + +module.exports = hashClear; diff --git a/node_modules/lodash/_hashDelete.js b/node_modules/lodash/_hashDelete.js new file mode 100644 index 0000000..ea9dabf --- /dev/null +++ b/node_modules/lodash/_hashDelete.js @@ -0,0 +1,17 @@ +/** + * Removes `key` and its value from the hash. + * + * @private + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; +} + +module.exports = hashDelete; diff --git a/node_modules/lodash/_hashGet.js b/node_modules/lodash/_hashGet.js new file mode 100644 index 0000000..1fc2f34 --- /dev/null +++ b/node_modules/lodash/_hashGet.js @@ -0,0 +1,30 @@ +var nativeCreate = require('./_nativeCreate'); + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +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; +} + +module.exports = hashGet; diff --git a/node_modules/lodash/_hashHas.js b/node_modules/lodash/_hashHas.js new file mode 100644 index 0000000..281a551 --- /dev/null +++ b/node_modules/lodash/_hashHas.js @@ -0,0 +1,23 @@ +var nativeCreate = require('./_nativeCreate'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas(key) { + var data = this.__data__; + return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); +} + +module.exports = hashHas; diff --git a/node_modules/lodash/_hashSet.js b/node_modules/lodash/_hashSet.js new file mode 100644 index 0000000..e105528 --- /dev/null +++ b/node_modules/lodash/_hashSet.js @@ -0,0 +1,23 @@ +var nativeCreate = require('./_nativeCreate'); + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +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; +} + +module.exports = hashSet; diff --git a/node_modules/lodash/_initCloneArray.js b/node_modules/lodash/_initCloneArray.js new file mode 100644 index 0000000..078c15a --- /dev/null +++ b/node_modules/lodash/_initCloneArray.js @@ -0,0 +1,26 @@ +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Initializes an array clone. + * + * @private + * @param {Array} array The array to clone. + * @returns {Array} Returns the initialized clone. + */ +function initCloneArray(array) { + var length = array.length, + result = new array.constructor(length); + + // Add properties assigned by `RegExp#exec`. + if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { + result.index = array.index; + result.input = array.input; + } + return result; +} + +module.exports = initCloneArray; diff --git a/node_modules/lodash/_initCloneByTag.js b/node_modules/lodash/_initCloneByTag.js new file mode 100644 index 0000000..f69a008 --- /dev/null +++ b/node_modules/lodash/_initCloneByTag.js @@ -0,0 +1,77 @@ +var cloneArrayBuffer = require('./_cloneArrayBuffer'), + cloneDataView = require('./_cloneDataView'), + cloneRegExp = require('./_cloneRegExp'), + cloneSymbol = require('./_cloneSymbol'), + cloneTypedArray = require('./_cloneTypedArray'); + +/** `Object#toString` result references. */ +var boolTag = '[object Boolean]', + dateTag = '[object Date]', + mapTag = '[object Map]', + numberTag = '[object Number]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]'; + +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]'; + +/** + * Initializes an object clone based on its `toStringTag`. + * + * **Note:** This function only supports cloning values with tags of + * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. + * + * @private + * @param {Object} object The object to clone. + * @param {string} tag The `toStringTag` of the object to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the initialized clone. + */ +function initCloneByTag(object, tag, isDeep) { + var Ctor = object.constructor; + switch (tag) { + case arrayBufferTag: + return cloneArrayBuffer(object); + + case boolTag: + case dateTag: + return new Ctor(+object); + + case dataViewTag: + return cloneDataView(object, isDeep); + + case float32Tag: case float64Tag: + case int8Tag: case int16Tag: case int32Tag: + case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: + return cloneTypedArray(object, isDeep); + + case mapTag: + return new Ctor; + + case numberTag: + case stringTag: + return new Ctor(object); + + case regexpTag: + return cloneRegExp(object); + + case setTag: + return new Ctor; + + case symbolTag: + return cloneSymbol(object); + } +} + +module.exports = initCloneByTag; diff --git a/node_modules/lodash/_initCloneObject.js b/node_modules/lodash/_initCloneObject.js new file mode 100644 index 0000000..5a13e64 --- /dev/null +++ b/node_modules/lodash/_initCloneObject.js @@ -0,0 +1,18 @@ +var baseCreate = require('./_baseCreate'), + getPrototype = require('./_getPrototype'), + isPrototype = require('./_isPrototype'); + +/** + * Initializes an object clone. + * + * @private + * @param {Object} object The object to clone. + * @returns {Object} Returns the initialized clone. + */ +function initCloneObject(object) { + return (typeof object.constructor == 'function' && !isPrototype(object)) + ? baseCreate(getPrototype(object)) + : {}; +} + +module.exports = initCloneObject; diff --git a/node_modules/lodash/_insertWrapDetails.js b/node_modules/lodash/_insertWrapDetails.js new file mode 100644 index 0000000..e790808 --- /dev/null +++ b/node_modules/lodash/_insertWrapDetails.js @@ -0,0 +1,23 @@ +/** Used to match wrap detail comments. */ +var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/; + +/** + * Inserts wrapper `details` in a comment at the top of the `source` body. + * + * @private + * @param {string} source The source to modify. + * @returns {Array} details The details to insert. + * @returns {string} Returns the modified source. + */ +function insertWrapDetails(source, details) { + var length = details.length; + if (!length) { + return source; + } + var lastIndex = length - 1; + details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex]; + details = details.join(length > 2 ? ', ' : ' '); + return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n'); +} + +module.exports = insertWrapDetails; diff --git a/node_modules/lodash/_isFlattenable.js b/node_modules/lodash/_isFlattenable.js new file mode 100644 index 0000000..4cc2c24 --- /dev/null +++ b/node_modules/lodash/_isFlattenable.js @@ -0,0 +1,20 @@ +var Symbol = require('./_Symbol'), + isArguments = require('./isArguments'), + isArray = require('./isArray'); + +/** Built-in value references. */ +var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; + +/** + * Checks if `value` is a flattenable `arguments` object or array. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. + */ +function isFlattenable(value) { + return isArray(value) || isArguments(value) || + !!(spreadableSymbol && value && value[spreadableSymbol]); +} + +module.exports = isFlattenable; diff --git a/node_modules/lodash/_isIndex.js b/node_modules/lodash/_isIndex.js new file mode 100644 index 0000000..061cd39 --- /dev/null +++ b/node_modules/lodash/_isIndex.js @@ -0,0 +1,25 @@ +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** Used to detect unsigned integer values. */ +var reIsUint = /^(?:0|[1-9]\d*)$/; + +/** + * Checks if `value` is a valid array-like index. + * + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. + */ +function isIndex(value, length) { + var type = typeof value; + length = length == null ? MAX_SAFE_INTEGER : length; + + return !!length && + (type == 'number' || + (type != 'symbol' && reIsUint.test(value))) && + (value > -1 && value % 1 == 0 && value < length); +} + +module.exports = isIndex; diff --git a/node_modules/lodash/_isIterateeCall.js b/node_modules/lodash/_isIterateeCall.js new file mode 100644 index 0000000..a0bb5a9 --- /dev/null +++ b/node_modules/lodash/_isIterateeCall.js @@ -0,0 +1,30 @@ +var eq = require('./eq'), + isArrayLike = require('./isArrayLike'), + isIndex = require('./_isIndex'), + isObject = require('./isObject'); + +/** + * Checks if the given arguments are from an iteratee call. + * + * @private + * @param {*} value The potential iteratee value argument. + * @param {*} index The potential iteratee index or key argument. + * @param {*} object The potential iteratee object argument. + * @returns {boolean} Returns `true` if the arguments are from an iteratee call, + * else `false`. + */ +function isIterateeCall(value, index, object) { + if (!isObject(object)) { + return false; + } + var type = typeof index; + if (type == 'number' + ? (isArrayLike(object) && isIndex(index, object.length)) + : (type == 'string' && index in object) + ) { + return eq(object[index], value); + } + return false; +} + +module.exports = isIterateeCall; diff --git a/node_modules/lodash/_isKey.js b/node_modules/lodash/_isKey.js new file mode 100644 index 0000000..ff08b06 --- /dev/null +++ b/node_modules/lodash/_isKey.js @@ -0,0 +1,29 @@ +var isArray = require('./isArray'), + isSymbol = require('./isSymbol'); + +/** Used to match property names within property paths. */ +var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + reIsPlainProp = /^\w*$/; + +/** + * Checks if `value` is a property name and not a property path. + * + * @private + * @param {*} value The value to check. + * @param {Object} [object] The object to query keys on. + * @returns {boolean} Returns `true` if `value` is a property name, else `false`. + */ +function isKey(value, object) { + if (isArray(value)) { + return false; + } + var type = typeof value; + if (type == 'number' || type == 'symbol' || type == 'boolean' || + value == null || isSymbol(value)) { + return true; + } + return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || + (object != null && value in Object(object)); +} + +module.exports = isKey; diff --git a/node_modules/lodash/_isKeyable.js b/node_modules/lodash/_isKeyable.js new file mode 100644 index 0000000..39f1828 --- /dev/null +++ b/node_modules/lodash/_isKeyable.js @@ -0,0 +1,15 @@ +/** + * Checks if `value` is suitable for use as unique object key. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. + */ +function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); +} + +module.exports = isKeyable; diff --git a/node_modules/lodash/_isLaziable.js b/node_modules/lodash/_isLaziable.js new file mode 100644 index 0000000..a57c4f2 --- /dev/null +++ b/node_modules/lodash/_isLaziable.js @@ -0,0 +1,28 @@ +var LazyWrapper = require('./_LazyWrapper'), + getData = require('./_getData'), + getFuncName = require('./_getFuncName'), + lodash = require('./wrapperLodash'); + +/** + * Checks if `func` has a lazy counterpart. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` has a lazy counterpart, + * else `false`. + */ +function isLaziable(func) { + var funcName = getFuncName(func), + other = lodash[funcName]; + + if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) { + return false; + } + if (func === other) { + return true; + } + var data = getData(other); + return !!data && func === data[0]; +} + +module.exports = isLaziable; diff --git a/node_modules/lodash/_isMaskable.js b/node_modules/lodash/_isMaskable.js new file mode 100644 index 0000000..eb98d09 --- /dev/null +++ b/node_modules/lodash/_isMaskable.js @@ -0,0 +1,14 @@ +var coreJsData = require('./_coreJsData'), + isFunction = require('./isFunction'), + stubFalse = require('./stubFalse'); + +/** + * Checks if `func` is capable of being masked. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `func` is maskable, else `false`. + */ +var isMaskable = coreJsData ? isFunction : stubFalse; + +module.exports = isMaskable; diff --git a/node_modules/lodash/_isMasked.js b/node_modules/lodash/_isMasked.js new file mode 100644 index 0000000..4b0f21b --- /dev/null +++ b/node_modules/lodash/_isMasked.js @@ -0,0 +1,20 @@ +var coreJsData = require('./_coreJsData'); + +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; +}()); + +/** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ +function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); +} + +module.exports = isMasked; diff --git a/node_modules/lodash/_isPrototype.js b/node_modules/lodash/_isPrototype.js new file mode 100644 index 0000000..0f29498 --- /dev/null +++ b/node_modules/lodash/_isPrototype.js @@ -0,0 +1,18 @@ +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Checks if `value` is likely a prototype object. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. + */ +function isPrototype(value) { + var Ctor = value && value.constructor, + proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; + + return value === proto; +} + +module.exports = isPrototype; diff --git a/node_modules/lodash/_isStrictComparable.js b/node_modules/lodash/_isStrictComparable.js new file mode 100644 index 0000000..b59f40b --- /dev/null +++ b/node_modules/lodash/_isStrictComparable.js @@ -0,0 +1,15 @@ +var isObject = require('./isObject'); + +/** + * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` if suitable for strict + * equality comparisons, else `false`. + */ +function isStrictComparable(value) { + return value === value && !isObject(value); +} + +module.exports = isStrictComparable; diff --git a/node_modules/lodash/_iteratorToArray.js b/node_modules/lodash/_iteratorToArray.js new file mode 100644 index 0000000..4768566 --- /dev/null +++ b/node_modules/lodash/_iteratorToArray.js @@ -0,0 +1,18 @@ +/** + * Converts `iterator` to an array. + * + * @private + * @param {Object} iterator The iterator to convert. + * @returns {Array} Returns the converted array. + */ +function iteratorToArray(iterator) { + var data, + result = []; + + while (!(data = iterator.next()).done) { + result.push(data.value); + } + return result; +} + +module.exports = iteratorToArray; diff --git a/node_modules/lodash/_lazyClone.js b/node_modules/lodash/_lazyClone.js new file mode 100644 index 0000000..d8a51f8 --- /dev/null +++ b/node_modules/lodash/_lazyClone.js @@ -0,0 +1,23 @@ +var LazyWrapper = require('./_LazyWrapper'), + copyArray = require('./_copyArray'); + +/** + * Creates a clone of the lazy wrapper object. + * + * @private + * @name clone + * @memberOf LazyWrapper + * @returns {Object} Returns the cloned `LazyWrapper` object. + */ +function lazyClone() { + var result = new LazyWrapper(this.__wrapped__); + result.__actions__ = copyArray(this.__actions__); + result.__dir__ = this.__dir__; + result.__filtered__ = this.__filtered__; + result.__iteratees__ = copyArray(this.__iteratees__); + result.__takeCount__ = this.__takeCount__; + result.__views__ = copyArray(this.__views__); + return result; +} + +module.exports = lazyClone; diff --git a/node_modules/lodash/_lazyReverse.js b/node_modules/lodash/_lazyReverse.js new file mode 100644 index 0000000..c5b5219 --- /dev/null +++ b/node_modules/lodash/_lazyReverse.js @@ -0,0 +1,23 @@ +var LazyWrapper = require('./_LazyWrapper'); + +/** + * Reverses the direction of lazy iteration. + * + * @private + * @name reverse + * @memberOf LazyWrapper + * @returns {Object} Returns the new reversed `LazyWrapper` object. + */ +function lazyReverse() { + if (this.__filtered__) { + var result = new LazyWrapper(this); + result.__dir__ = -1; + result.__filtered__ = true; + } else { + result = this.clone(); + result.__dir__ *= -1; + } + return result; +} + +module.exports = lazyReverse; diff --git a/node_modules/lodash/_lazyValue.js b/node_modules/lodash/_lazyValue.js new file mode 100644 index 0000000..371ca8d --- /dev/null +++ b/node_modules/lodash/_lazyValue.js @@ -0,0 +1,69 @@ +var baseWrapperValue = require('./_baseWrapperValue'), + getView = require('./_getView'), + isArray = require('./isArray'); + +/** Used to indicate the type of lazy iteratees. */ +var LAZY_FILTER_FLAG = 1, + LAZY_MAP_FLAG = 2; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMin = Math.min; + +/** + * Extracts the unwrapped value from its lazy wrapper. + * + * @private + * @name value + * @memberOf LazyWrapper + * @returns {*} Returns the unwrapped value. + */ +function lazyValue() { + var array = this.__wrapped__.value(), + dir = this.__dir__, + isArr = isArray(array), + isRight = dir < 0, + arrLength = isArr ? array.length : 0, + view = getView(0, arrLength, this.__views__), + start = view.start, + end = view.end, + length = end - start, + index = isRight ? end : (start - 1), + iteratees = this.__iteratees__, + iterLength = iteratees.length, + resIndex = 0, + takeCount = nativeMin(length, this.__takeCount__); + + if (!isArr || (!isRight && arrLength == length && takeCount == length)) { + return baseWrapperValue(array, this.__actions__); + } + var result = []; + + outer: + while (length-- && resIndex < takeCount) { + index += dir; + + var iterIndex = -1, + value = array[index]; + + while (++iterIndex < iterLength) { + var data = iteratees[iterIndex], + iteratee = data.iteratee, + type = data.type, + computed = iteratee(value); + + if (type == LAZY_MAP_FLAG) { + value = computed; + } else if (!computed) { + if (type == LAZY_FILTER_FLAG) { + continue outer; + } else { + break outer; + } + } + } + result[resIndex++] = value; + } + return result; +} + +module.exports = lazyValue; diff --git a/node_modules/lodash/_listCacheClear.js b/node_modules/lodash/_listCacheClear.js new file mode 100644 index 0000000..acbe39a --- /dev/null +++ b/node_modules/lodash/_listCacheClear.js @@ -0,0 +1,13 @@ +/** + * Removes all key-value entries from the list cache. + * + * @private + * @name clear + * @memberOf ListCache + */ +function listCacheClear() { + this.__data__ = []; + this.size = 0; +} + +module.exports = listCacheClear; diff --git a/node_modules/lodash/_listCacheDelete.js b/node_modules/lodash/_listCacheDelete.js new file mode 100644 index 0000000..b1384ad --- /dev/null +++ b/node_modules/lodash/_listCacheDelete.js @@ -0,0 +1,35 @@ +var assocIndexOf = require('./_assocIndexOf'); + +/** Used for built-in method references. */ +var arrayProto = Array.prototype; + +/** Built-in value references. */ +var splice = arrayProto.splice; + +/** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; +} + +module.exports = listCacheDelete; diff --git a/node_modules/lodash/_listCacheGet.js b/node_modules/lodash/_listCacheGet.js new file mode 100644 index 0000000..f8192fc --- /dev/null +++ b/node_modules/lodash/_listCacheGet.js @@ -0,0 +1,19 @@ +var assocIndexOf = require('./_assocIndexOf'); + +/** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; +} + +module.exports = listCacheGet; diff --git a/node_modules/lodash/_listCacheHas.js b/node_modules/lodash/_listCacheHas.js new file mode 100644 index 0000000..2adf671 --- /dev/null +++ b/node_modules/lodash/_listCacheHas.js @@ -0,0 +1,16 @@ +var assocIndexOf = require('./_assocIndexOf'); + +/** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; +} + +module.exports = listCacheHas; diff --git a/node_modules/lodash/_listCacheSet.js b/node_modules/lodash/_listCacheSet.js new file mode 100644 index 0000000..5855c95 --- /dev/null +++ b/node_modules/lodash/_listCacheSet.js @@ -0,0 +1,26 @@ +var assocIndexOf = require('./_assocIndexOf'); + +/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ +function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; +} + +module.exports = listCacheSet; diff --git a/node_modules/lodash/_mapCacheClear.js b/node_modules/lodash/_mapCacheClear.js new file mode 100644 index 0000000..bc9ca20 --- /dev/null +++ b/node_modules/lodash/_mapCacheClear.js @@ -0,0 +1,21 @@ +var Hash = require('./_Hash'), + ListCache = require('./_ListCache'), + Map = require('./_Map'); + +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; +} + +module.exports = mapCacheClear; diff --git a/node_modules/lodash/_mapCacheDelete.js b/node_modules/lodash/_mapCacheDelete.js new file mode 100644 index 0000000..946ca3c --- /dev/null +++ b/node_modules/lodash/_mapCacheDelete.js @@ -0,0 +1,18 @@ +var getMapData = require('./_getMapData'); + +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete(key) { + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; +} + +module.exports = mapCacheDelete; diff --git a/node_modules/lodash/_mapCacheGet.js b/node_modules/lodash/_mapCacheGet.js new file mode 100644 index 0000000..f29f55c --- /dev/null +++ b/node_modules/lodash/_mapCacheGet.js @@ -0,0 +1,16 @@ +var getMapData = require('./_getMapData'); + +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet(key) { + return getMapData(this, key).get(key); +} + +module.exports = mapCacheGet; diff --git a/node_modules/lodash/_mapCacheHas.js b/node_modules/lodash/_mapCacheHas.js new file mode 100644 index 0000000..a1214c0 --- /dev/null +++ b/node_modules/lodash/_mapCacheHas.js @@ -0,0 +1,16 @@ +var getMapData = require('./_getMapData'); + +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas(key) { + return getMapData(this, key).has(key); +} + +module.exports = mapCacheHas; diff --git a/node_modules/lodash/_mapCacheSet.js b/node_modules/lodash/_mapCacheSet.js new file mode 100644 index 0000000..7346849 --- /dev/null +++ b/node_modules/lodash/_mapCacheSet.js @@ -0,0 +1,22 @@ +var getMapData = require('./_getMapData'); + +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; + + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; +} + +module.exports = mapCacheSet; diff --git a/node_modules/lodash/_mapToArray.js b/node_modules/lodash/_mapToArray.js new file mode 100644 index 0000000..fe3dd53 --- /dev/null +++ b/node_modules/lodash/_mapToArray.js @@ -0,0 +1,18 @@ +/** + * Converts `map` to its key-value pairs. + * + * @private + * @param {Object} map The map to convert. + * @returns {Array} Returns the key-value pairs. + */ +function mapToArray(map) { + var index = -1, + result = Array(map.size); + + map.forEach(function(value, key) { + result[++index] = [key, value]; + }); + return result; +} + +module.exports = mapToArray; diff --git a/node_modules/lodash/_matchesStrictComparable.js b/node_modules/lodash/_matchesStrictComparable.js new file mode 100644 index 0000000..f608af9 --- /dev/null +++ b/node_modules/lodash/_matchesStrictComparable.js @@ -0,0 +1,20 @@ +/** + * A specialized version of `matchesProperty` for source values suitable + * for strict equality comparisons, i.e. `===`. + * + * @private + * @param {string} key The key of the property to get. + * @param {*} srcValue The value to match. + * @returns {Function} Returns the new spec function. + */ +function matchesStrictComparable(key, srcValue) { + return function(object) { + if (object == null) { + return false; + } + return object[key] === srcValue && + (srcValue !== undefined || (key in Object(object))); + }; +} + +module.exports = matchesStrictComparable; diff --git a/node_modules/lodash/_memoizeCapped.js b/node_modules/lodash/_memoizeCapped.js new file mode 100644 index 0000000..7f71c8f --- /dev/null +++ b/node_modules/lodash/_memoizeCapped.js @@ -0,0 +1,26 @@ +var memoize = require('./memoize'); + +/** Used as the maximum memoize cache size. */ +var MAX_MEMOIZE_SIZE = 500; + +/** + * A specialized version of `_.memoize` which clears the memoized function's + * cache when it exceeds `MAX_MEMOIZE_SIZE`. + * + * @private + * @param {Function} func The function to have its output memoized. + * @returns {Function} Returns the new memoized function. + */ +function memoizeCapped(func) { + var result = memoize(func, function(key) { + if (cache.size === MAX_MEMOIZE_SIZE) { + cache.clear(); + } + return key; + }); + + var cache = result.cache; + return result; +} + +module.exports = memoizeCapped; diff --git a/node_modules/lodash/_mergeData.js b/node_modules/lodash/_mergeData.js new file mode 100644 index 0000000..cb570f9 --- /dev/null +++ b/node_modules/lodash/_mergeData.js @@ -0,0 +1,90 @@ +var composeArgs = require('./_composeArgs'), + composeArgsRight = require('./_composeArgsRight'), + replaceHolders = require('./_replaceHolders'); + +/** Used as the internal argument placeholder. */ +var PLACEHOLDER = '__lodash_placeholder__'; + +/** 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_ARY_FLAG = 128, + WRAP_REARG_FLAG = 256; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMin = Math.min; + +/** + * Merges the function metadata of `source` into `data`. + * + * Merging metadata reduces the number of wrappers used to invoke a function. + * This is possible because methods like `_.bind`, `_.curry`, and `_.partial` + * may be applied regardless of execution order. Methods like `_.ary` and + * `_.rearg` modify function arguments, making the order in which they are + * executed important, preventing the merging of metadata. However, we make + * an exception for a safe combined case where curried functions have `_.ary` + * and or `_.rearg` applied. + * + * @private + * @param {Array} data The destination metadata. + * @param {Array} source The source metadata. + * @returns {Array} Returns `data`. + */ +function mergeData(data, source) { + var bitmask = data[1], + srcBitmask = source[1], + newBitmask = bitmask | srcBitmask, + isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG); + + var isCombo = + ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) || + ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) || + ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG)); + + // Exit early if metadata can't be merged. + if (!(isCommon || isCombo)) { + return data; + } + // Use source `thisArg` if available. + if (srcBitmask & WRAP_BIND_FLAG) { + data[2] = source[2]; + // Set when currying a bound function. + newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG; + } + // Compose partial arguments. + var value = source[3]; + if (value) { + var partials = data[3]; + data[3] = partials ? composeArgs(partials, value, source[4]) : value; + data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4]; + } + // Compose partial right arguments. + value = source[5]; + if (value) { + partials = data[5]; + data[5] = partials ? composeArgsRight(partials, value, source[6]) : value; + data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6]; + } + // Use source `argPos` if available. + value = source[7]; + if (value) { + data[7] = value; + } + // Use source `ary` if it's smaller. + if (srcBitmask & WRAP_ARY_FLAG) { + data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); + } + // Use source `arity` if one is not provided. + if (data[9] == null) { + data[9] = source[9]; + } + // Use source `func` and merge bitmasks. + data[0] = source[0]; + data[1] = newBitmask; + + return data; +} + +module.exports = mergeData; diff --git a/node_modules/lodash/_metaMap.js b/node_modules/lodash/_metaMap.js new file mode 100644 index 0000000..0157a0b --- /dev/null +++ b/node_modules/lodash/_metaMap.js @@ -0,0 +1,6 @@ +var WeakMap = require('./_WeakMap'); + +/** Used to store function metadata. */ +var metaMap = WeakMap && new WeakMap; + +module.exports = metaMap; diff --git a/node_modules/lodash/_nativeCreate.js b/node_modules/lodash/_nativeCreate.js new file mode 100644 index 0000000..c7aede8 --- /dev/null +++ b/node_modules/lodash/_nativeCreate.js @@ -0,0 +1,6 @@ +var getNative = require('./_getNative'); + +/* Built-in method references that are verified to be native. */ +var nativeCreate = getNative(Object, 'create'); + +module.exports = nativeCreate; diff --git a/node_modules/lodash/_nativeKeys.js b/node_modules/lodash/_nativeKeys.js new file mode 100644 index 0000000..479a104 --- /dev/null +++ b/node_modules/lodash/_nativeKeys.js @@ -0,0 +1,6 @@ +var overArg = require('./_overArg'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeKeys = overArg(Object.keys, Object); + +module.exports = nativeKeys; diff --git a/node_modules/lodash/_nativeKeysIn.js b/node_modules/lodash/_nativeKeysIn.js new file mode 100644 index 0000000..00ee505 --- /dev/null +++ b/node_modules/lodash/_nativeKeysIn.js @@ -0,0 +1,20 @@ +/** + * This function is like + * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * except that it includes inherited enumerable properties. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; +} + +module.exports = nativeKeysIn; diff --git a/node_modules/lodash/_nodeUtil.js b/node_modules/lodash/_nodeUtil.js new file mode 100644 index 0000000..983d78f --- /dev/null +++ b/node_modules/lodash/_nodeUtil.js @@ -0,0 +1,30 @@ +var freeGlobal = require('./_freeGlobal'); + +/** Detect free variable `exports`. */ +var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; + +/** Detect free variable `module`. */ +var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports = freeModule && freeModule.exports === freeExports; + +/** Detect free variable `process` from Node.js. */ +var freeProcess = moduleExports && freeGlobal.process; + +/** Used to access faster Node.js helpers. */ +var nodeUtil = (function() { + try { + // Use `util.types` for Node.js 10+. + var types = freeModule && freeModule.require && freeModule.require('util').types; + + if (types) { + return types; + } + + // Legacy `process.binding('util')` for Node.js < 10. + return freeProcess && freeProcess.binding && freeProcess.binding('util'); + } catch (e) {} +}()); + +module.exports = nodeUtil; diff --git a/node_modules/lodash/_objectToString.js b/node_modules/lodash/_objectToString.js new file mode 100644 index 0000000..c614ec0 --- /dev/null +++ b/node_modules/lodash/_objectToString.js @@ -0,0 +1,22 @@ +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** + * Converts `value` to a string using `Object.prototype.toString`. + * + * @private + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + */ +function objectToString(value) { + return nativeObjectToString.call(value); +} + +module.exports = objectToString; diff --git a/node_modules/lodash/_overArg.js b/node_modules/lodash/_overArg.js new file mode 100644 index 0000000..651c5c5 --- /dev/null +++ b/node_modules/lodash/_overArg.js @@ -0,0 +1,15 @@ +/** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ +function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; +} + +module.exports = overArg; diff --git a/node_modules/lodash/_overRest.js b/node_modules/lodash/_overRest.js new file mode 100644 index 0000000..c7cdef3 --- /dev/null +++ b/node_modules/lodash/_overRest.js @@ -0,0 +1,36 @@ +var apply = require('./_apply'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * A specialized version of `baseRest` which transforms the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @param {Function} transform The rest array transform. + * @returns {Function} Returns the new function. + */ +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); + }; +} + +module.exports = overRest; diff --git a/node_modules/lodash/_parent.js b/node_modules/lodash/_parent.js new file mode 100644 index 0000000..f174328 --- /dev/null +++ b/node_modules/lodash/_parent.js @@ -0,0 +1,16 @@ +var baseGet = require('./_baseGet'), + baseSlice = require('./_baseSlice'); + +/** + * Gets the parent value at `path` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Array} path The path to get the parent value of. + * @returns {*} Returns the parent value. + */ +function parent(object, path) { + return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1)); +} + +module.exports = parent; diff --git a/node_modules/lodash/_reEscape.js b/node_modules/lodash/_reEscape.js new file mode 100644 index 0000000..7f47eda --- /dev/null +++ b/node_modules/lodash/_reEscape.js @@ -0,0 +1,4 @@ +/** Used to match template delimiters. */ +var reEscape = /<%-([\s\S]+?)%>/g; + +module.exports = reEscape; diff --git a/node_modules/lodash/_reEvaluate.js b/node_modules/lodash/_reEvaluate.js new file mode 100644 index 0000000..6adfc31 --- /dev/null +++ b/node_modules/lodash/_reEvaluate.js @@ -0,0 +1,4 @@ +/** Used to match template delimiters. */ +var reEvaluate = /<%([\s\S]+?)%>/g; + +module.exports = reEvaluate; diff --git a/node_modules/lodash/_reInterpolate.js b/node_modules/lodash/_reInterpolate.js new file mode 100644 index 0000000..d02ff0b --- /dev/null +++ b/node_modules/lodash/_reInterpolate.js @@ -0,0 +1,4 @@ +/** Used to match template delimiters. */ +var reInterpolate = /<%=([\s\S]+?)%>/g; + +module.exports = reInterpolate; diff --git a/node_modules/lodash/_realNames.js b/node_modules/lodash/_realNames.js new file mode 100644 index 0000000..aa0d529 --- /dev/null +++ b/node_modules/lodash/_realNames.js @@ -0,0 +1,4 @@ +/** Used to lookup unminified function names. */ +var realNames = {}; + +module.exports = realNames; diff --git a/node_modules/lodash/_reorder.js b/node_modules/lodash/_reorder.js new file mode 100644 index 0000000..a3502b0 --- /dev/null +++ b/node_modules/lodash/_reorder.js @@ -0,0 +1,29 @@ +var copyArray = require('./_copyArray'), + isIndex = require('./_isIndex'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMin = Math.min; + +/** + * Reorder `array` according to the specified indexes where the element at + * the first index is assigned as the first element, the element at + * the second index is assigned as the second element, and so on. + * + * @private + * @param {Array} array The array to reorder. + * @param {Array} indexes The arranged array indexes. + * @returns {Array} Returns `array`. + */ +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; +} + +module.exports = reorder; diff --git a/node_modules/lodash/_replaceHolders.js b/node_modules/lodash/_replaceHolders.js new file mode 100644 index 0000000..74360ec --- /dev/null +++ b/node_modules/lodash/_replaceHolders.js @@ -0,0 +1,29 @@ +/** Used as the internal argument placeholder. */ +var PLACEHOLDER = '__lodash_placeholder__'; + +/** + * Replaces all `placeholder` elements in `array` with an internal placeholder + * and returns an array of their indexes. + * + * @private + * @param {Array} array The array to modify. + * @param {*} placeholder The placeholder to replace. + * @returns {Array} Returns the new array of placeholder indexes. + */ +function replaceHolders(array, placeholder) { + var index = -1, + length = array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + if (value === placeholder || value === PLACEHOLDER) { + array[index] = PLACEHOLDER; + result[resIndex++] = index; + } + } + return result; +} + +module.exports = replaceHolders; diff --git a/node_modules/lodash/_root.js b/node_modules/lodash/_root.js new file mode 100644 index 0000000..d2852be --- /dev/null +++ b/node_modules/lodash/_root.js @@ -0,0 +1,9 @@ +var freeGlobal = require('./_freeGlobal'); + +/** Detect free variable `self`. */ +var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + +/** Used as a reference to the global object. */ +var root = freeGlobal || freeSelf || Function('return this')(); + +module.exports = root; diff --git a/node_modules/lodash/_safeGet.js b/node_modules/lodash/_safeGet.js new file mode 100644 index 0000000..b070897 --- /dev/null +++ b/node_modules/lodash/_safeGet.js @@ -0,0 +1,21 @@ +/** + * Gets the value at `key`, unless `key` is "__proto__" or "constructor". + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ +function safeGet(object, key) { + if (key === 'constructor' && typeof object[key] === 'function') { + return; + } + + if (key == '__proto__') { + return; + } + + return object[key]; +} + +module.exports = safeGet; diff --git a/node_modules/lodash/_setCacheAdd.js b/node_modules/lodash/_setCacheAdd.js new file mode 100644 index 0000000..1081a74 --- /dev/null +++ b/node_modules/lodash/_setCacheAdd.js @@ -0,0 +1,19 @@ +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** + * Adds `value` to the array cache. + * + * @private + * @name add + * @memberOf SetCache + * @alias push + * @param {*} value The value to cache. + * @returns {Object} Returns the cache instance. + */ +function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + return this; +} + +module.exports = setCacheAdd; diff --git a/node_modules/lodash/_setCacheHas.js b/node_modules/lodash/_setCacheHas.js new file mode 100644 index 0000000..9a49255 --- /dev/null +++ b/node_modules/lodash/_setCacheHas.js @@ -0,0 +1,14 @@ +/** + * Checks if `value` is in the array cache. + * + * @private + * @name has + * @memberOf SetCache + * @param {*} value The value to search for. + * @returns {number} Returns `true` if `value` is found, else `false`. + */ +function setCacheHas(value) { + return this.__data__.has(value); +} + +module.exports = setCacheHas; diff --git a/node_modules/lodash/_setData.js b/node_modules/lodash/_setData.js new file mode 100644 index 0000000..e5cf3eb --- /dev/null +++ b/node_modules/lodash/_setData.js @@ -0,0 +1,20 @@ +var baseSetData = require('./_baseSetData'), + shortOut = require('./_shortOut'); + +/** + * Sets metadata for `func`. + * + * **Note:** If this function becomes hot, i.e. is invoked a lot in a short + * period of time, it will trip its breaker and transition to an identity + * function to avoid garbage collection pauses in V8. See + * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070) + * for more details. + * + * @private + * @param {Function} func The function to associate metadata with. + * @param {*} data The metadata. + * @returns {Function} Returns `func`. + */ +var setData = shortOut(baseSetData); + +module.exports = setData; diff --git a/node_modules/lodash/_setToArray.js b/node_modules/lodash/_setToArray.js new file mode 100644 index 0000000..b87f074 --- /dev/null +++ b/node_modules/lodash/_setToArray.js @@ -0,0 +1,18 @@ +/** + * Converts `set` to an array of its values. + * + * @private + * @param {Object} set The set to convert. + * @returns {Array} Returns the values. + */ +function setToArray(set) { + var index = -1, + result = Array(set.size); + + set.forEach(function(value) { + result[++index] = value; + }); + return result; +} + +module.exports = setToArray; diff --git a/node_modules/lodash/_setToPairs.js b/node_modules/lodash/_setToPairs.js new file mode 100644 index 0000000..36ad37a --- /dev/null +++ b/node_modules/lodash/_setToPairs.js @@ -0,0 +1,18 @@ +/** + * Converts `set` to its value-value pairs. + * + * @private + * @param {Object} set The set to convert. + * @returns {Array} Returns the value-value pairs. + */ +function setToPairs(set) { + var index = -1, + result = Array(set.size); + + set.forEach(function(value) { + result[++index] = [value, value]; + }); + return result; +} + +module.exports = setToPairs; diff --git a/node_modules/lodash/_setToString.js b/node_modules/lodash/_setToString.js new file mode 100644 index 0000000..6ca8419 --- /dev/null +++ b/node_modules/lodash/_setToString.js @@ -0,0 +1,14 @@ +var baseSetToString = require('./_baseSetToString'), + shortOut = require('./_shortOut'); + +/** + * Sets the `toString` method of `func` to return `string`. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ +var setToString = shortOut(baseSetToString); + +module.exports = setToString; diff --git a/node_modules/lodash/_setWrapToString.js b/node_modules/lodash/_setWrapToString.js new file mode 100644 index 0000000..decdc44 --- /dev/null +++ b/node_modules/lodash/_setWrapToString.js @@ -0,0 +1,21 @@ +var getWrapDetails = require('./_getWrapDetails'), + insertWrapDetails = require('./_insertWrapDetails'), + setToString = require('./_setToString'), + updateWrapDetails = require('./_updateWrapDetails'); + +/** + * Sets the `toString` method of `wrapper` to mimic the source of `reference` + * with wrapper details in a comment at the top of the source body. + * + * @private + * @param {Function} wrapper The function to modify. + * @param {Function} reference The reference function. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @returns {Function} Returns `wrapper`. + */ +function setWrapToString(wrapper, reference, bitmask) { + var source = (reference + ''); + return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); +} + +module.exports = setWrapToString; diff --git a/node_modules/lodash/_shortOut.js b/node_modules/lodash/_shortOut.js new file mode 100644 index 0000000..3300a07 --- /dev/null +++ b/node_modules/lodash/_shortOut.js @@ -0,0 +1,37 @@ +/** Used to detect hot functions by number of calls within a span of milliseconds. */ +var HOT_COUNT = 800, + HOT_SPAN = 16; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeNow = Date.now; + +/** + * Creates a function that'll short out and invoke `identity` instead + * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` + * milliseconds. + * + * @private + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new shortable function. + */ +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); + }; +} + +module.exports = shortOut; diff --git a/node_modules/lodash/_shuffleSelf.js b/node_modules/lodash/_shuffleSelf.js new file mode 100644 index 0000000..8bcc4f5 --- /dev/null +++ b/node_modules/lodash/_shuffleSelf.js @@ -0,0 +1,28 @@ +var baseRandom = require('./_baseRandom'); + +/** + * A specialized version of `_.shuffle` which mutates and sets the size of `array`. + * + * @private + * @param {Array} array The array to shuffle. + * @param {number} [size=array.length] The size of `array`. + * @returns {Array} Returns `array`. + */ +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; +} + +module.exports = shuffleSelf; diff --git a/node_modules/lodash/_stackClear.js b/node_modules/lodash/_stackClear.js new file mode 100644 index 0000000..ce8e5a9 --- /dev/null +++ b/node_modules/lodash/_stackClear.js @@ -0,0 +1,15 @@ +var ListCache = require('./_ListCache'); + +/** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ +function stackClear() { + this.__data__ = new ListCache; + this.size = 0; +} + +module.exports = stackClear; diff --git a/node_modules/lodash/_stackDelete.js b/node_modules/lodash/_stackDelete.js new file mode 100644 index 0000000..ff9887a --- /dev/null +++ b/node_modules/lodash/_stackDelete.js @@ -0,0 +1,18 @@ +/** + * Removes `key` and its value from the stack. + * + * @private + * @name delete + * @memberOf Stack + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function stackDelete(key) { + var data = this.__data__, + result = data['delete'](key); + + this.size = data.size; + return result; +} + +module.exports = stackDelete; diff --git a/node_modules/lodash/_stackGet.js b/node_modules/lodash/_stackGet.js new file mode 100644 index 0000000..1cdf004 --- /dev/null +++ b/node_modules/lodash/_stackGet.js @@ -0,0 +1,14 @@ +/** + * Gets the stack value for `key`. + * + * @private + * @name get + * @memberOf Stack + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function stackGet(key) { + return this.__data__.get(key); +} + +module.exports = stackGet; diff --git a/node_modules/lodash/_stackHas.js b/node_modules/lodash/_stackHas.js new file mode 100644 index 0000000..16a3ad1 --- /dev/null +++ b/node_modules/lodash/_stackHas.js @@ -0,0 +1,14 @@ +/** + * Checks if a stack value for `key` exists. + * + * @private + * @name has + * @memberOf Stack + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function stackHas(key) { + return this.__data__.has(key); +} + +module.exports = stackHas; diff --git a/node_modules/lodash/_stackSet.js b/node_modules/lodash/_stackSet.js new file mode 100644 index 0000000..b790ac5 --- /dev/null +++ b/node_modules/lodash/_stackSet.js @@ -0,0 +1,34 @@ +var ListCache = require('./_ListCache'), + Map = require('./_Map'), + MapCache = require('./_MapCache'); + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ +function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; +} + +module.exports = stackSet; diff --git a/node_modules/lodash/_strictIndexOf.js b/node_modules/lodash/_strictIndexOf.js new file mode 100644 index 0000000..0486a49 --- /dev/null +++ b/node_modules/lodash/_strictIndexOf.js @@ -0,0 +1,23 @@ +/** + * A specialized version of `_.indexOf` which performs strict equality + * comparisons of values, i.e. `===`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function strictIndexOf(array, value, fromIndex) { + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; +} + +module.exports = strictIndexOf; diff --git a/node_modules/lodash/_strictLastIndexOf.js b/node_modules/lodash/_strictLastIndexOf.js new file mode 100644 index 0000000..d7310dc --- /dev/null +++ b/node_modules/lodash/_strictLastIndexOf.js @@ -0,0 +1,21 @@ +/** + * A specialized version of `_.lastIndexOf` which performs strict equality + * comparisons of values, i.e. `===`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function strictLastIndexOf(array, value, fromIndex) { + var index = fromIndex + 1; + while (index--) { + if (array[index] === value) { + return index; + } + } + return index; +} + +module.exports = strictLastIndexOf; diff --git a/node_modules/lodash/_stringSize.js b/node_modules/lodash/_stringSize.js new file mode 100644 index 0000000..17ef462 --- /dev/null +++ b/node_modules/lodash/_stringSize.js @@ -0,0 +1,18 @@ +var asciiSize = require('./_asciiSize'), + hasUnicode = require('./_hasUnicode'), + unicodeSize = require('./_unicodeSize'); + +/** + * Gets the number of symbols in `string`. + * + * @private + * @param {string} string The string to inspect. + * @returns {number} Returns the string size. + */ +function stringSize(string) { + return hasUnicode(string) + ? unicodeSize(string) + : asciiSize(string); +} + +module.exports = stringSize; diff --git a/node_modules/lodash/_stringToArray.js b/node_modules/lodash/_stringToArray.js new file mode 100644 index 0000000..d161158 --- /dev/null +++ b/node_modules/lodash/_stringToArray.js @@ -0,0 +1,18 @@ +var asciiToArray = require('./_asciiToArray'), + hasUnicode = require('./_hasUnicode'), + unicodeToArray = require('./_unicodeToArray'); + +/** + * Converts `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function stringToArray(string) { + return hasUnicode(string) + ? unicodeToArray(string) + : asciiToArray(string); +} + +module.exports = stringToArray; diff --git a/node_modules/lodash/_stringToPath.js b/node_modules/lodash/_stringToPath.js new file mode 100644 index 0000000..8f39f8a --- /dev/null +++ b/node_modules/lodash/_stringToPath.js @@ -0,0 +1,27 @@ +var memoizeCapped = require('./_memoizeCapped'); + +/** Used to match property names within property paths. */ +var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; + +/** Used to match backslashes in property paths. */ +var reEscapeChar = /\\(\\)?/g; + +/** + * Converts `string` to a property path array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the property path array. + */ +var stringToPath = memoizeCapped(function(string) { + var result = []; + if (string.charCodeAt(0) === 46 /* . */) { + result.push(''); + } + string.replace(rePropName, function(match, number, quote, subString) { + result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); + }); + return result; +}); + +module.exports = stringToPath; diff --git a/node_modules/lodash/_toKey.js b/node_modules/lodash/_toKey.js new file mode 100644 index 0000000..c6d645c --- /dev/null +++ b/node_modules/lodash/_toKey.js @@ -0,0 +1,21 @@ +var isSymbol = require('./isSymbol'); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** + * Converts `value` to a string key if it's not a string or symbol. + * + * @private + * @param {*} value The value to inspect. + * @returns {string|symbol} Returns the key. + */ +function toKey(value) { + if (typeof value == 'string' || isSymbol(value)) { + return value; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; +} + +module.exports = toKey; diff --git a/node_modules/lodash/_toSource.js b/node_modules/lodash/_toSource.js new file mode 100644 index 0000000..a020b38 --- /dev/null +++ b/node_modules/lodash/_toSource.js @@ -0,0 +1,26 @@ +/** Used for built-in method references. */ +var funcProto = Function.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** + * Converts `func` to its source code. + * + * @private + * @param {Function} func The function to convert. + * @returns {string} Returns the source code. + */ +function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return (func + ''); + } catch (e) {} + } + return ''; +} + +module.exports = toSource; diff --git a/node_modules/lodash/_trimmedEndIndex.js b/node_modules/lodash/_trimmedEndIndex.js new file mode 100644 index 0000000..139439a --- /dev/null +++ b/node_modules/lodash/_trimmedEndIndex.js @@ -0,0 +1,19 @@ +/** Used to match a single whitespace character. */ +var reWhitespace = /\s/; + +/** + * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace + * character of `string`. + * + * @private + * @param {string} string The string to inspect. + * @returns {number} Returns the index of the last non-whitespace character. + */ +function trimmedEndIndex(string) { + var index = string.length; + + while (index-- && reWhitespace.test(string.charAt(index))) {} + return index; +} + +module.exports = trimmedEndIndex; diff --git a/node_modules/lodash/_unescapeHtmlChar.js b/node_modules/lodash/_unescapeHtmlChar.js new file mode 100644 index 0000000..a71fecb --- /dev/null +++ b/node_modules/lodash/_unescapeHtmlChar.js @@ -0,0 +1,21 @@ +var basePropertyOf = require('./_basePropertyOf'); + +/** Used to map HTML entities to characters. */ +var htmlUnescapes = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + ''': "'" +}; + +/** + * Used by `_.unescape` to convert HTML entities to characters. + * + * @private + * @param {string} chr The matched character to unescape. + * @returns {string} Returns the unescaped character. + */ +var unescapeHtmlChar = basePropertyOf(htmlUnescapes); + +module.exports = unescapeHtmlChar; diff --git a/node_modules/lodash/_unicodeSize.js b/node_modules/lodash/_unicodeSize.js new file mode 100644 index 0000000..68137ec --- /dev/null +++ b/node_modules/lodash/_unicodeSize.js @@ -0,0 +1,44 @@ +/** Used to compose unicode character classes. */ +var rsAstralRange = '\\ud800-\\udfff', + rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, + rsVarRange = '\\ufe0e\\ufe0f'; + +/** Used to compose unicode capture groups. */ +var rsAstral = '[' + rsAstralRange + ']', + rsCombo = '[' + rsComboRange + ']', + rsFitz = '\\ud83c[\\udffb-\\udfff]', + rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')', + rsNonAstral = '[^' + rsAstralRange + ']', + rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', + rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', + rsZWJ = '\\u200d'; + +/** Used to compose unicode regexes. */ +var reOptMod = rsModifier + '?', + rsOptVar = '[' + rsVarRange + ']?', + rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*', + rsSeq = rsOptVar + reOptMod + rsOptJoin, + rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; + +/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ +var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); + +/** + * Gets the size of a Unicode `string`. + * + * @private + * @param {string} string The string inspect. + * @returns {number} Returns the string size. + */ +function unicodeSize(string) { + var result = reUnicode.lastIndex = 0; + while (reUnicode.test(string)) { + ++result; + } + return result; +} + +module.exports = unicodeSize; diff --git a/node_modules/lodash/_unicodeToArray.js b/node_modules/lodash/_unicodeToArray.js new file mode 100644 index 0000000..2a725c0 --- /dev/null +++ b/node_modules/lodash/_unicodeToArray.js @@ -0,0 +1,40 @@ +/** Used to compose unicode character classes. */ +var rsAstralRange = '\\ud800-\\udfff', + rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, + rsVarRange = '\\ufe0e\\ufe0f'; + +/** Used to compose unicode capture groups. */ +var rsAstral = '[' + rsAstralRange + ']', + rsCombo = '[' + rsComboRange + ']', + rsFitz = '\\ud83c[\\udffb-\\udfff]', + rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')', + rsNonAstral = '[^' + rsAstralRange + ']', + rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', + rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', + rsZWJ = '\\u200d'; + +/** Used to compose unicode regexes. */ +var reOptMod = rsModifier + '?', + rsOptVar = '[' + rsVarRange + ']?', + rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*', + rsSeq = rsOptVar + reOptMod + rsOptJoin, + rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; + +/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ +var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); + +/** + * Converts a Unicode `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function unicodeToArray(string) { + return string.match(reUnicode) || []; +} + +module.exports = unicodeToArray; diff --git a/node_modules/lodash/_unicodeWords.js b/node_modules/lodash/_unicodeWords.js new file mode 100644 index 0000000..e72e6e0 --- /dev/null +++ b/node_modules/lodash/_unicodeWords.js @@ -0,0 +1,69 @@ +/** Used to compose unicode character classes. */ +var rsAstralRange = '\\ud800-\\udfff', + rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, + rsDingbatRange = '\\u2700-\\u27bf', + rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff', + rsMathOpRange = '\\xac\\xb1\\xd7\\xf7', + rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf', + rsPunctuationRange = '\\u2000-\\u206f', + rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000', + rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde', + rsVarRange = '\\ufe0e\\ufe0f', + rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; + +/** Used to compose unicode capture groups. */ +var rsApos = "['\u2019]", + rsBreak = '[' + rsBreakRange + ']', + rsCombo = '[' + rsComboRange + ']', + rsDigits = '\\d+', + rsDingbat = '[' + rsDingbatRange + ']', + rsLower = '[' + rsLowerRange + ']', + rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']', + rsFitz = '\\ud83c[\\udffb-\\udfff]', + rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')', + rsNonAstral = '[^' + rsAstralRange + ']', + rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', + rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', + rsUpper = '[' + rsUpperRange + ']', + rsZWJ = '\\u200d'; + +/** Used to compose unicode regexes. */ +var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')', + rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')', + rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?', + rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?', + reOptMod = rsModifier + '?', + rsOptVar = '[' + rsVarRange + ']?', + rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*', + rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])', + rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])', + rsSeq = rsOptVar + reOptMod + rsOptJoin, + rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq; + +/** Used to match complex or compound words. */ +var reUnicodeWord = RegExp([ + rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', + rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')', + rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower, + rsUpper + '+' + rsOptContrUpper, + rsOrdUpper, + rsOrdLower, + rsDigits, + rsEmoji +].join('|'), 'g'); + +/** + * Splits a Unicode `string` into an array of its words. + * + * @private + * @param {string} The string to inspect. + * @returns {Array} Returns the words of `string`. + */ +function unicodeWords(string) { + return string.match(reUnicodeWord) || []; +} + +module.exports = unicodeWords; diff --git a/node_modules/lodash/_updateWrapDetails.js b/node_modules/lodash/_updateWrapDetails.js new file mode 100644 index 0000000..8759fbd --- /dev/null +++ b/node_modules/lodash/_updateWrapDetails.js @@ -0,0 +1,46 @@ +var arrayEach = require('./_arrayEach'), + arrayIncludes = require('./_arrayIncludes'); + +/** Used to compose bitmasks for function metadata. */ +var WRAP_BIND_FLAG = 1, + WRAP_BIND_KEY_FLAG = 2, + 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 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] +]; + +/** + * Updates wrapper `details` based on `bitmask` flags. + * + * @private + * @returns {Array} details The details to modify. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @returns {Array} Returns `details`. + */ +function updateWrapDetails(details, bitmask) { + arrayEach(wrapFlags, function(pair) { + var value = '_.' + pair[0]; + if ((bitmask & pair[1]) && !arrayIncludes(details, value)) { + details.push(value); + } + }); + return details.sort(); +} + +module.exports = updateWrapDetails; diff --git a/node_modules/lodash/_wrapperClone.js b/node_modules/lodash/_wrapperClone.js new file mode 100644 index 0000000..7bb58a2 --- /dev/null +++ b/node_modules/lodash/_wrapperClone.js @@ -0,0 +1,23 @@ +var LazyWrapper = require('./_LazyWrapper'), + LodashWrapper = require('./_LodashWrapper'), + copyArray = require('./_copyArray'); + +/** + * Creates a clone of `wrapper`. + * + * @private + * @param {Object} wrapper The wrapper to clone. + * @returns {Object} Returns the cloned wrapper. + */ +function wrapperClone(wrapper) { + if (wrapper instanceof LazyWrapper) { + return wrapper.clone(); + } + var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__); + result.__actions__ = copyArray(wrapper.__actions__); + result.__index__ = wrapper.__index__; + result.__values__ = wrapper.__values__; + return result; +} + +module.exports = wrapperClone; diff --git a/node_modules/lodash/add.js b/node_modules/lodash/add.js new file mode 100644 index 0000000..f069515 --- /dev/null +++ b/node_modules/lodash/add.js @@ -0,0 +1,22 @@ +var createMathOperation = require('./_createMathOperation'); + +/** + * Adds two numbers. + * + * @static + * @memberOf _ + * @since 3.4.0 + * @category Math + * @param {number} augend The first number in an addition. + * @param {number} addend The second number in an addition. + * @returns {number} Returns the total. + * @example + * + * _.add(6, 4); + * // => 10 + */ +var add = createMathOperation(function(augend, addend) { + return augend + addend; +}, 0); + +module.exports = add; diff --git a/node_modules/lodash/after.js b/node_modules/lodash/after.js new file mode 100644 index 0000000..3900c97 --- /dev/null +++ b/node_modules/lodash/after.js @@ -0,0 +1,42 @@ +var toInteger = require('./toInteger'); + +/** Error message constants. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/** + * The opposite of `_.before`; this method creates a function that invokes + * `func` once it's called `n` or more times. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {number} n The number of calls before `func` is invoked. + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new restricted function. + * @example + * + * var saves = ['profile', 'settings']; + * + * var done = _.after(saves.length, function() { + * console.log('done saving!'); + * }); + * + * _.forEach(saves, function(type) { + * asyncSave({ 'type': type, 'complete': done }); + * }); + * // => Logs 'done saving!' after the two async saves have completed. + */ +function after(n, func) { + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + n = toInteger(n); + return function() { + if (--n < 1) { + return func.apply(this, arguments); + } + }; +} + +module.exports = after; diff --git a/node_modules/lodash/array.js b/node_modules/lodash/array.js new file mode 100644 index 0000000..af688d3 --- /dev/null +++ b/node_modules/lodash/array.js @@ -0,0 +1,67 @@ +module.exports = { + 'chunk': require('./chunk'), + 'compact': require('./compact'), + 'concat': require('./concat'), + 'difference': require('./difference'), + 'differenceBy': require('./differenceBy'), + 'differenceWith': require('./differenceWith'), + 'drop': require('./drop'), + 'dropRight': require('./dropRight'), + 'dropRightWhile': require('./dropRightWhile'), + 'dropWhile': require('./dropWhile'), + 'fill': require('./fill'), + 'findIndex': require('./findIndex'), + 'findLastIndex': require('./findLastIndex'), + 'first': require('./first'), + 'flatten': require('./flatten'), + 'flattenDeep': require('./flattenDeep'), + 'flattenDepth': require('./flattenDepth'), + 'fromPairs': require('./fromPairs'), + 'head': require('./head'), + 'indexOf': require('./indexOf'), + 'initial': require('./initial'), + 'intersection': require('./intersection'), + 'intersectionBy': require('./intersectionBy'), + 'intersectionWith': require('./intersectionWith'), + 'join': require('./join'), + 'last': require('./last'), + 'lastIndexOf': require('./lastIndexOf'), + 'nth': require('./nth'), + 'pull': require('./pull'), + 'pullAll': require('./pullAll'), + 'pullAllBy': require('./pullAllBy'), + 'pullAllWith': require('./pullAllWith'), + 'pullAt': require('./pullAt'), + 'remove': require('./remove'), + 'reverse': require('./reverse'), + 'slice': require('./slice'), + 'sortedIndex': require('./sortedIndex'), + 'sortedIndexBy': require('./sortedIndexBy'), + 'sortedIndexOf': require('./sortedIndexOf'), + 'sortedLastIndex': require('./sortedLastIndex'), + 'sortedLastIndexBy': require('./sortedLastIndexBy'), + 'sortedLastIndexOf': require('./sortedLastIndexOf'), + 'sortedUniq': require('./sortedUniq'), + 'sortedUniqBy': require('./sortedUniqBy'), + 'tail': require('./tail'), + 'take': require('./take'), + 'takeRight': require('./takeRight'), + 'takeRightWhile': require('./takeRightWhile'), + 'takeWhile': require('./takeWhile'), + 'union': require('./union'), + 'unionBy': require('./unionBy'), + 'unionWith': require('./unionWith'), + 'uniq': require('./uniq'), + 'uniqBy': require('./uniqBy'), + 'uniqWith': require('./uniqWith'), + 'unzip': require('./unzip'), + 'unzipWith': require('./unzipWith'), + 'without': require('./without'), + 'xor': require('./xor'), + 'xorBy': require('./xorBy'), + 'xorWith': require('./xorWith'), + 'zip': require('./zip'), + 'zipObject': require('./zipObject'), + 'zipObjectDeep': require('./zipObjectDeep'), + 'zipWith': require('./zipWith') +}; diff --git a/node_modules/lodash/ary.js b/node_modules/lodash/ary.js new file mode 100644 index 0000000..70c87d0 --- /dev/null +++ b/node_modules/lodash/ary.js @@ -0,0 +1,29 @@ +var createWrap = require('./_createWrap'); + +/** Used to compose bitmasks for function metadata. */ +var WRAP_ARY_FLAG = 128; + +/** + * Creates a function that invokes `func`, with up to `n` arguments, + * ignoring any additional arguments. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {Function} func The function to cap arguments for. + * @param {number} [n=func.length] The arity cap. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Function} Returns the new capped function. + * @example + * + * _.map(['6', '8', '10'], _.ary(parseInt, 1)); + * // => [6, 8, 10] + */ +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); +} + +module.exports = ary; diff --git a/node_modules/lodash/assign.js b/node_modules/lodash/assign.js new file mode 100644 index 0000000..909db26 --- /dev/null +++ b/node_modules/lodash/assign.js @@ -0,0 +1,58 @@ +var assignValue = require('./_assignValue'), + copyObject = require('./_copyObject'), + createAssigner = require('./_createAssigner'), + isArrayLike = require('./isArrayLike'), + isPrototype = require('./_isPrototype'), + keys = require('./keys'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Assigns own enumerable string keyed properties of source objects to the + * destination object. Source objects are applied from left to right. + * Subsequent sources overwrite property assignments of previous sources. + * + * **Note:** This method mutates `object` and is loosely based on + * [`Object.assign`](https://mdn.io/Object/assign). + * + * @static + * @memberOf _ + * @since 0.10.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.assignIn + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * function Bar() { + * this.c = 3; + * } + * + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; + * + * _.assign({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'c': 3 } + */ +var assign = createAssigner(function(object, source) { + if (isPrototype(source) || isArrayLike(source)) { + copyObject(source, keys(source), object); + return; + } + for (var key in source) { + if (hasOwnProperty.call(source, key)) { + assignValue(object, key, source[key]); + } + } +}); + +module.exports = assign; diff --git a/node_modules/lodash/assignIn.js b/node_modules/lodash/assignIn.js new file mode 100644 index 0000000..e663473 --- /dev/null +++ b/node_modules/lodash/assignIn.js @@ -0,0 +1,40 @@ +var copyObject = require('./_copyObject'), + createAssigner = require('./_createAssigner'), + keysIn = require('./keysIn'); + +/** + * This method is like `_.assign` except that it iterates over own and + * inherited source properties. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @alias extend + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.assign + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * function Bar() { + * this.c = 3; + * } + * + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; + * + * _.assignIn({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 } + */ +var assignIn = createAssigner(function(object, source) { + copyObject(source, keysIn(source), object); +}); + +module.exports = assignIn; diff --git a/node_modules/lodash/assignInWith.js b/node_modules/lodash/assignInWith.js new file mode 100644 index 0000000..68fcc0b --- /dev/null +++ b/node_modules/lodash/assignInWith.js @@ -0,0 +1,38 @@ +var copyObject = require('./_copyObject'), + createAssigner = require('./_createAssigner'), + keysIn = require('./keysIn'); + +/** + * This method is like `_.assignIn` except that it accepts `customizer` + * which is invoked to produce the assigned values. If `customizer` returns + * `undefined`, assignment is handled by the method instead. The `customizer` + * is invoked with five arguments: (objValue, srcValue, key, object, source). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @alias extendWith + * @category Object + * @param {Object} object The destination object. + * @param {...Object} sources The source objects. + * @param {Function} [customizer] The function to customize assigned values. + * @returns {Object} Returns `object`. + * @see _.assignWith + * @example + * + * function customizer(objValue, srcValue) { + * return _.isUndefined(objValue) ? srcValue : objValue; + * } + * + * var defaults = _.partialRight(_.assignInWith, customizer); + * + * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */ +var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { + copyObject(source, keysIn(source), object, customizer); +}); + +module.exports = assignInWith; diff --git a/node_modules/lodash/assignWith.js b/node_modules/lodash/assignWith.js new file mode 100644 index 0000000..7dc6c76 --- /dev/null +++ b/node_modules/lodash/assignWith.js @@ -0,0 +1,37 @@ +var copyObject = require('./_copyObject'), + createAssigner = require('./_createAssigner'), + keys = require('./keys'); + +/** + * This method is like `_.assign` except that it accepts `customizer` + * which is invoked to produce the assigned values. If `customizer` returns + * `undefined`, assignment is handled by the method instead. The `customizer` + * is invoked with five arguments: (objValue, srcValue, key, object, source). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} sources The source objects. + * @param {Function} [customizer] The function to customize assigned values. + * @returns {Object} Returns `object`. + * @see _.assignInWith + * @example + * + * function customizer(objValue, srcValue) { + * return _.isUndefined(objValue) ? srcValue : objValue; + * } + * + * var defaults = _.partialRight(_.assignWith, customizer); + * + * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */ +var assignWith = createAssigner(function(object, source, srcIndex, customizer) { + copyObject(source, keys(source), object, customizer); +}); + +module.exports = assignWith; diff --git a/node_modules/lodash/at.js b/node_modules/lodash/at.js new file mode 100644 index 0000000..781ee9e --- /dev/null +++ b/node_modules/lodash/at.js @@ -0,0 +1,23 @@ +var baseAt = require('./_baseAt'), + flatRest = require('./_flatRest'); + +/** + * Creates an array of values corresponding to `paths` of `object`. + * + * @static + * @memberOf _ + * @since 1.0.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {...(string|string[])} [paths] The property paths to pick. + * @returns {Array} Returns the picked values. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] }; + * + * _.at(object, ['a[0].b.c', 'a[1]']); + * // => [3, 4] + */ +var at = flatRest(baseAt); + +module.exports = at; diff --git a/node_modules/lodash/attempt.js b/node_modules/lodash/attempt.js new file mode 100644 index 0000000..624d015 --- /dev/null +++ b/node_modules/lodash/attempt.js @@ -0,0 +1,35 @@ +var apply = require('./_apply'), + baseRest = require('./_baseRest'), + isError = require('./isError'); + +/** + * Attempts to invoke `func`, returning either the result or the caught error + * object. Any additional arguments are provided to `func` when it's invoked. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Util + * @param {Function} func The function to attempt. + * @param {...*} [args] The arguments to invoke `func` with. + * @returns {*} Returns the `func` result or error object. + * @example + * + * // Avoid throwing errors for invalid selectors. + * var elements = _.attempt(function(selector) { + * return document.querySelectorAll(selector); + * }, '>_>'); + * + * if (_.isError(elements)) { + * elements = []; + * } + */ +var attempt = baseRest(function(func, args) { + try { + return apply(func, undefined, args); + } catch (e) { + return isError(e) ? e : new Error(e); + } +}); + +module.exports = attempt; diff --git a/node_modules/lodash/before.js b/node_modules/lodash/before.js new file mode 100644 index 0000000..a3e0a16 --- /dev/null +++ b/node_modules/lodash/before.js @@ -0,0 +1,40 @@ +var toInteger = require('./toInteger'); + +/** Error message constants. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/** + * Creates a function that invokes `func`, with the `this` binding and arguments + * of the created function, while it's called less than `n` times. Subsequent + * calls to the created function return the result of the last `func` invocation. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {number} n The number of calls at which `func` is no longer invoked. + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new restricted function. + * @example + * + * jQuery(element).on('click', _.before(5, addContactToList)); + * // => Allows adding up to 4 contacts to the list. + */ +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; + }; +} + +module.exports = before; diff --git a/node_modules/lodash/bind.js b/node_modules/lodash/bind.js new file mode 100644 index 0000000..b1076e9 --- /dev/null +++ b/node_modules/lodash/bind.js @@ -0,0 +1,57 @@ +var baseRest = require('./_baseRest'), + createWrap = require('./_createWrap'), + getHolder = require('./_getHolder'), + replaceHolders = require('./_replaceHolders'); + +/** Used to compose bitmasks for function metadata. */ +var WRAP_BIND_FLAG = 1, + WRAP_PARTIAL_FLAG = 32; + +/** + * Creates a function that invokes `func` with the `this` binding of `thisArg` + * and `partials` prepended to the arguments it receives. + * + * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds, + * may be used as a placeholder for partially applied arguments. + * + * **Note:** Unlike native `Function#bind`, this method doesn't set the "length" + * property of bound functions. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to bind. + * @param {*} thisArg The `this` binding of `func`. + * @param {...*} [partials] The arguments to be partially applied. + * @returns {Function} Returns the new bound function. + * @example + * + * function greet(greeting, punctuation) { + * return greeting + ' ' + this.user + punctuation; + * } + * + * var object = { 'user': 'fred' }; + * + * var bound = _.bind(greet, object, 'hi'); + * bound('!'); + * // => 'hi fred!' + * + * // Bound with placeholders. + * var bound = _.bind(greet, object, _, '!'); + * bound('hi'); + * // => 'hi fred!' + */ +var bind = baseRest(function(func, thisArg, partials) { + var bitmask = WRAP_BIND_FLAG; + if (partials.length) { + var holders = replaceHolders(partials, getHolder(bind)); + bitmask |= WRAP_PARTIAL_FLAG; + } + return createWrap(func, bitmask, thisArg, partials, holders); +}); + +// Assign default placeholders. +bind.placeholder = {}; + +module.exports = bind; diff --git a/node_modules/lodash/bindAll.js b/node_modules/lodash/bindAll.js new file mode 100644 index 0000000..a35706d --- /dev/null +++ b/node_modules/lodash/bindAll.js @@ -0,0 +1,41 @@ +var arrayEach = require('./_arrayEach'), + baseAssignValue = require('./_baseAssignValue'), + bind = require('./bind'), + flatRest = require('./_flatRest'), + toKey = require('./_toKey'); + +/** + * Binds methods of an object to the object itself, overwriting the existing + * method. + * + * **Note:** This method doesn't set the "length" property of bound functions. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @param {Object} object The object to bind and assign the bound methods to. + * @param {...(string|string[])} methodNames The object method names to bind. + * @returns {Object} Returns `object`. + * @example + * + * var view = { + * 'label': 'docs', + * 'click': function() { + * console.log('clicked ' + this.label); + * } + * }; + * + * _.bindAll(view, ['click']); + * jQuery(element).on('click', view.click); + * // => Logs 'clicked docs' when clicked. + */ +var bindAll = flatRest(function(object, methodNames) { + arrayEach(methodNames, function(key) { + key = toKey(key); + baseAssignValue(object, key, bind(object[key], object)); + }); + return object; +}); + +module.exports = bindAll; diff --git a/node_modules/lodash/bindKey.js b/node_modules/lodash/bindKey.js new file mode 100644 index 0000000..f7fd64c --- /dev/null +++ b/node_modules/lodash/bindKey.js @@ -0,0 +1,68 @@ +var baseRest = require('./_baseRest'), + createWrap = require('./_createWrap'), + getHolder = require('./_getHolder'), + replaceHolders = require('./_replaceHolders'); + +/** Used to compose bitmasks for function metadata. */ +var WRAP_BIND_FLAG = 1, + WRAP_BIND_KEY_FLAG = 2, + WRAP_PARTIAL_FLAG = 32; + +/** + * Creates a function that invokes the method at `object[key]` with `partials` + * prepended to the arguments it receives. + * + * This method differs from `_.bind` by allowing bound functions to reference + * methods that may be redefined or don't yet exist. See + * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern) + * for more details. + * + * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic + * builds, may be used as a placeholder for partially applied arguments. + * + * @static + * @memberOf _ + * @since 0.10.0 + * @category Function + * @param {Object} object The object to invoke the method on. + * @param {string} key The key of the method. + * @param {...*} [partials] The arguments to be partially applied. + * @returns {Function} Returns the new bound function. + * @example + * + * var object = { + * 'user': 'fred', + * 'greet': function(greeting, punctuation) { + * return greeting + ' ' + this.user + punctuation; + * } + * }; + * + * var bound = _.bindKey(object, 'greet', 'hi'); + * bound('!'); + * // => 'hi fred!' + * + * object.greet = function(greeting, punctuation) { + * return greeting + 'ya ' + this.user + punctuation; + * }; + * + * bound('!'); + * // => 'hiya fred!' + * + * // Bound with placeholders. + * var bound = _.bindKey(object, 'greet', _, '!'); + * bound('hi'); + * // => 'hiya fred!' + */ +var bindKey = baseRest(function(object, key, partials) { + var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG; + if (partials.length) { + var holders = replaceHolders(partials, getHolder(bindKey)); + bitmask |= WRAP_PARTIAL_FLAG; + } + return createWrap(key, bitmask, object, partials, holders); +}); + +// Assign default placeholders. +bindKey.placeholder = {}; + +module.exports = bindKey; diff --git a/node_modules/lodash/camelCase.js b/node_modules/lodash/camelCase.js new file mode 100644 index 0000000..d7390de --- /dev/null +++ b/node_modules/lodash/camelCase.js @@ -0,0 +1,29 @@ +var capitalize = require('./capitalize'), + createCompounder = require('./_createCompounder'); + +/** + * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the camel cased string. + * @example + * + * _.camelCase('Foo Bar'); + * // => 'fooBar' + * + * _.camelCase('--foo-bar--'); + * // => 'fooBar' + * + * _.camelCase('__FOO_BAR__'); + * // => 'fooBar' + */ +var camelCase = createCompounder(function(result, word, index) { + word = word.toLowerCase(); + return result + (index ? capitalize(word) : word); +}); + +module.exports = camelCase; diff --git a/node_modules/lodash/capitalize.js b/node_modules/lodash/capitalize.js new file mode 100644 index 0000000..3e1600e --- /dev/null +++ b/node_modules/lodash/capitalize.js @@ -0,0 +1,23 @@ +var toString = require('./toString'), + upperFirst = require('./upperFirst'); + +/** + * Converts the first character of `string` to upper case and the remaining + * to lower case. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to capitalize. + * @returns {string} Returns the capitalized string. + * @example + * + * _.capitalize('FRED'); + * // => 'Fred' + */ +function capitalize(string) { + return upperFirst(toString(string).toLowerCase()); +} + +module.exports = capitalize; diff --git a/node_modules/lodash/castArray.js b/node_modules/lodash/castArray.js new file mode 100644 index 0000000..e470bdb --- /dev/null +++ b/node_modules/lodash/castArray.js @@ -0,0 +1,44 @@ +var isArray = require('./isArray'); + +/** + * Casts `value` as an array if it's not one. + * + * @static + * @memberOf _ + * @since 4.4.0 + * @category Lang + * @param {*} value The value to inspect. + * @returns {Array} Returns the cast array. + * @example + * + * _.castArray(1); + * // => [1] + * + * _.castArray({ 'a': 1 }); + * // => [{ 'a': 1 }] + * + * _.castArray('abc'); + * // => ['abc'] + * + * _.castArray(null); + * // => [null] + * + * _.castArray(undefined); + * // => [undefined] + * + * _.castArray(); + * // => [] + * + * var array = [1, 2, 3]; + * console.log(_.castArray(array) === array); + * // => true + */ +function castArray() { + if (!arguments.length) { + return []; + } + var value = arguments[0]; + return isArray(value) ? value : [value]; +} + +module.exports = castArray; diff --git a/node_modules/lodash/ceil.js b/node_modules/lodash/ceil.js new file mode 100644 index 0000000..56c8722 --- /dev/null +++ b/node_modules/lodash/ceil.js @@ -0,0 +1,26 @@ +var createRound = require('./_createRound'); + +/** + * Computes `number` rounded up to `precision`. + * + * @static + * @memberOf _ + * @since 3.10.0 + * @category Math + * @param {number} number The number to round up. + * @param {number} [precision=0] The precision to round up to. + * @returns {number} Returns the rounded up number. + * @example + * + * _.ceil(4.006); + * // => 5 + * + * _.ceil(6.004, 2); + * // => 6.01 + * + * _.ceil(6040, -2); + * // => 6100 + */ +var ceil = createRound('ceil'); + +module.exports = ceil; diff --git a/node_modules/lodash/chain.js b/node_modules/lodash/chain.js new file mode 100644 index 0000000..f6cd647 --- /dev/null +++ b/node_modules/lodash/chain.js @@ -0,0 +1,38 @@ +var lodash = require('./wrapperLodash'); + +/** + * Creates a `lodash` wrapper instance that wraps `value` with explicit method + * chain sequences enabled. The result of such sequences must be unwrapped + * with `_#value`. + * + * @static + * @memberOf _ + * @since 1.3.0 + * @category Seq + * @param {*} value The value to wrap. + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 40 }, + * { 'user': 'pebbles', 'age': 1 } + * ]; + * + * var youngest = _ + * .chain(users) + * .sortBy('age') + * .map(function(o) { + * return o.user + ' is ' + o.age; + * }) + * .head() + * .value(); + * // => 'pebbles is 1' + */ +function chain(value) { + var result = lodash(value); + result.__chain__ = true; + return result; +} + +module.exports = chain; diff --git a/node_modules/lodash/chunk.js b/node_modules/lodash/chunk.js new file mode 100644 index 0000000..5b562fe --- /dev/null +++ b/node_modules/lodash/chunk.js @@ -0,0 +1,50 @@ +var baseSlice = require('./_baseSlice'), + isIterateeCall = require('./_isIterateeCall'), + toInteger = require('./toInteger'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeCeil = Math.ceil, + nativeMax = Math.max; + +/** + * Creates an array of elements split into groups the length of `size`. + * If `array` can't be split evenly, the final chunk will be the remaining + * elements. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to process. + * @param {number} [size=1] The length of each chunk + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the new array of chunks. + * @example + * + * _.chunk(['a', 'b', 'c', 'd'], 2); + * // => [['a', 'b'], ['c', 'd']] + * + * _.chunk(['a', 'b', 'c', 'd'], 3); + * // => [['a', 'b', 'c'], ['d']] + */ +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; +} + +module.exports = chunk; diff --git a/node_modules/lodash/clamp.js b/node_modules/lodash/clamp.js new file mode 100644 index 0000000..91a72c9 --- /dev/null +++ b/node_modules/lodash/clamp.js @@ -0,0 +1,39 @@ +var baseClamp = require('./_baseClamp'), + toNumber = require('./toNumber'); + +/** + * Clamps `number` within the inclusive `lower` and `upper` bounds. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Number + * @param {number} number The number to clamp. + * @param {number} [lower] The lower bound. + * @param {number} upper The upper bound. + * @returns {number} Returns the clamped number. + * @example + * + * _.clamp(-10, -5, 5); + * // => -5 + * + * _.clamp(10, -5, 5); + * // => 5 + */ +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); +} + +module.exports = clamp; diff --git a/node_modules/lodash/clone.js b/node_modules/lodash/clone.js new file mode 100644 index 0000000..dd439d6 --- /dev/null +++ b/node_modules/lodash/clone.js @@ -0,0 +1,36 @@ +var baseClone = require('./_baseClone'); + +/** Used to compose bitmasks for cloning. */ +var CLONE_SYMBOLS_FLAG = 4; + +/** + * Creates a shallow clone of `value`. + * + * **Note:** This method is loosely based on the + * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm) + * and supports cloning arrays, array buffers, booleans, date objects, maps, + * numbers, `Object` objects, regexes, sets, strings, symbols, and typed + * arrays. The own enumerable properties of `arguments` objects are cloned + * as plain objects. An empty object is returned for uncloneable values such + * as error objects, functions, DOM nodes, and WeakMaps. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to clone. + * @returns {*} Returns the cloned value. + * @see _.cloneDeep + * @example + * + * var objects = [{ 'a': 1 }, { 'b': 2 }]; + * + * var shallow = _.clone(objects); + * console.log(shallow[0] === objects[0]); + * // => true + */ +function clone(value) { + return baseClone(value, CLONE_SYMBOLS_FLAG); +} + +module.exports = clone; diff --git a/node_modules/lodash/cloneDeep.js b/node_modules/lodash/cloneDeep.js new file mode 100644 index 0000000..4425fbe --- /dev/null +++ b/node_modules/lodash/cloneDeep.js @@ -0,0 +1,29 @@ +var baseClone = require('./_baseClone'); + +/** Used to compose bitmasks for cloning. */ +var CLONE_DEEP_FLAG = 1, + CLONE_SYMBOLS_FLAG = 4; + +/** + * This method is like `_.clone` except that it recursively clones `value`. + * + * @static + * @memberOf _ + * @since 1.0.0 + * @category Lang + * @param {*} value The value to recursively clone. + * @returns {*} Returns the deep cloned value. + * @see _.clone + * @example + * + * var objects = [{ 'a': 1 }, { 'b': 2 }]; + * + * var deep = _.cloneDeep(objects); + * console.log(deep[0] === objects[0]); + * // => false + */ +function cloneDeep(value) { + return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); +} + +module.exports = cloneDeep; diff --git a/node_modules/lodash/cloneDeepWith.js b/node_modules/lodash/cloneDeepWith.js new file mode 100644 index 0000000..fd9c6c0 --- /dev/null +++ b/node_modules/lodash/cloneDeepWith.js @@ -0,0 +1,40 @@ +var baseClone = require('./_baseClone'); + +/** Used to compose bitmasks for cloning. */ +var CLONE_DEEP_FLAG = 1, + CLONE_SYMBOLS_FLAG = 4; + +/** + * This method is like `_.cloneWith` except that it recursively clones `value`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to recursively clone. + * @param {Function} [customizer] The function to customize cloning. + * @returns {*} Returns the deep cloned value. + * @see _.cloneWith + * @example + * + * function customizer(value) { + * if (_.isElement(value)) { + * return value.cloneNode(true); + * } + * } + * + * var el = _.cloneDeepWith(document.body, customizer); + * + * console.log(el === document.body); + * // => false + * console.log(el.nodeName); + * // => 'BODY' + * console.log(el.childNodes.length); + * // => 20 + */ +function cloneDeepWith(value, customizer) { + customizer = typeof customizer == 'function' ? customizer : undefined; + return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer); +} + +module.exports = cloneDeepWith; diff --git a/node_modules/lodash/cloneWith.js b/node_modules/lodash/cloneWith.js new file mode 100644 index 0000000..d2f4e75 --- /dev/null +++ b/node_modules/lodash/cloneWith.js @@ -0,0 +1,42 @@ +var baseClone = require('./_baseClone'); + +/** Used to compose bitmasks for cloning. */ +var CLONE_SYMBOLS_FLAG = 4; + +/** + * This method is like `_.clone` except that it accepts `customizer` which + * is invoked to produce the cloned value. If `customizer` returns `undefined`, + * cloning is handled by the method instead. The `customizer` is invoked with + * up to four arguments; (value [, index|key, object, stack]). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to clone. + * @param {Function} [customizer] The function to customize cloning. + * @returns {*} Returns the cloned value. + * @see _.cloneDeepWith + * @example + * + * function customizer(value) { + * if (_.isElement(value)) { + * return value.cloneNode(false); + * } + * } + * + * var el = _.cloneWith(document.body, customizer); + * + * console.log(el === document.body); + * // => false + * console.log(el.nodeName); + * // => 'BODY' + * console.log(el.childNodes.length); + * // => 0 + */ +function cloneWith(value, customizer) { + customizer = typeof customizer == 'function' ? customizer : undefined; + return baseClone(value, CLONE_SYMBOLS_FLAG, customizer); +} + +module.exports = cloneWith; diff --git a/node_modules/lodash/collection.js b/node_modules/lodash/collection.js new file mode 100644 index 0000000..77fe837 --- /dev/null +++ b/node_modules/lodash/collection.js @@ -0,0 +1,30 @@ +module.exports = { + 'countBy': require('./countBy'), + 'each': require('./each'), + 'eachRight': require('./eachRight'), + 'every': require('./every'), + 'filter': require('./filter'), + 'find': require('./find'), + 'findLast': require('./findLast'), + 'flatMap': require('./flatMap'), + 'flatMapDeep': require('./flatMapDeep'), + 'flatMapDepth': require('./flatMapDepth'), + 'forEach': require('./forEach'), + 'forEachRight': require('./forEachRight'), + 'groupBy': require('./groupBy'), + 'includes': require('./includes'), + 'invokeMap': require('./invokeMap'), + 'keyBy': require('./keyBy'), + 'map': require('./map'), + 'orderBy': require('./orderBy'), + 'partition': require('./partition'), + 'reduce': require('./reduce'), + 'reduceRight': require('./reduceRight'), + 'reject': require('./reject'), + 'sample': require('./sample'), + 'sampleSize': require('./sampleSize'), + 'shuffle': require('./shuffle'), + 'size': require('./size'), + 'some': require('./some'), + 'sortBy': require('./sortBy') +}; diff --git a/node_modules/lodash/commit.js b/node_modules/lodash/commit.js new file mode 100644 index 0000000..fe4db71 --- /dev/null +++ b/node_modules/lodash/commit.js @@ -0,0 +1,33 @@ +var LodashWrapper = require('./_LodashWrapper'); + +/** + * Executes the chain sequence and returns the wrapped result. + * + * @name commit + * @memberOf _ + * @since 3.2.0 + * @category Seq + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var array = [1, 2]; + * var wrapped = _(array).push(3); + * + * console.log(array); + * // => [1, 2] + * + * wrapped = wrapped.commit(); + * console.log(array); + * // => [1, 2, 3] + * + * wrapped.last(); + * // => 3 + * + * console.log(array); + * // => [1, 2, 3] + */ +function wrapperCommit() { + return new LodashWrapper(this.value(), this.__chain__); +} + +module.exports = wrapperCommit; diff --git a/node_modules/lodash/compact.js b/node_modules/lodash/compact.js new file mode 100644 index 0000000..031fab4 --- /dev/null +++ b/node_modules/lodash/compact.js @@ -0,0 +1,31 @@ +/** + * Creates an array with all falsey values removed. The values `false`, `null`, + * `0`, `""`, `undefined`, and `NaN` are falsey. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to compact. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * _.compact([0, 1, false, 2, '', 3]); + * // => [1, 2, 3] + */ +function compact(array) { + var index = -1, + length = array == null ? 0 : array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + if (value) { + result[resIndex++] = value; + } + } + return result; +} + +module.exports = compact; diff --git a/node_modules/lodash/concat.js b/node_modules/lodash/concat.js new file mode 100644 index 0000000..1da48a4 --- /dev/null +++ b/node_modules/lodash/concat.js @@ -0,0 +1,43 @@ +var arrayPush = require('./_arrayPush'), + baseFlatten = require('./_baseFlatten'), + copyArray = require('./_copyArray'), + isArray = require('./isArray'); + +/** + * Creates a new array concatenating `array` with any additional arrays + * and/or values. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to concatenate. + * @param {...*} [values] The values to concatenate. + * @returns {Array} Returns the new concatenated array. + * @example + * + * var array = [1]; + * var other = _.concat(array, 2, [3], [[4]]); + * + * console.log(other); + * // => [1, 2, 3, [4]] + * + * console.log(array); + * // => [1] + */ +function concat() { + var length = arguments.length; + if (!length) { + return []; + } + var args = Array(length - 1), + array = arguments[0], + index = length; + + while (index--) { + args[index - 1] = arguments[index]; + } + return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)); +} + +module.exports = concat; diff --git a/node_modules/lodash/cond.js b/node_modules/lodash/cond.js new file mode 100644 index 0000000..6455598 --- /dev/null +++ b/node_modules/lodash/cond.js @@ -0,0 +1,60 @@ +var apply = require('./_apply'), + arrayMap = require('./_arrayMap'), + baseIteratee = require('./_baseIteratee'), + baseRest = require('./_baseRest'); + +/** Error message constants. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/** + * Creates a function that iterates over `pairs` and invokes the corresponding + * function of the first predicate to return truthy. The predicate-function + * pairs are invoked with the `this` binding and arguments of the created + * function. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Util + * @param {Array} pairs The predicate-function pairs. + * @returns {Function} Returns the new composite function. + * @example + * + * var func = _.cond([ + * [_.matches({ 'a': 1 }), _.constant('matches A')], + * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')], + * [_.stubTrue, _.constant('no match')] + * ]); + * + * func({ 'a': 1, 'b': 2 }); + * // => 'matches A' + * + * func({ 'a': 0, 'b': 1 }); + * // => 'matches B' + * + * func({ 'a': '1', 'b': '2' }); + * // => 'no match' + */ +function cond(pairs) { + var length = pairs == null ? 0 : pairs.length, + toIteratee = baseIteratee; + + pairs = !length ? [] : arrayMap(pairs, function(pair) { + if (typeof pair[1] != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + return [toIteratee(pair[0]), pair[1]]; + }); + + return baseRest(function(args) { + var index = -1; + while (++index < length) { + var pair = pairs[index]; + if (apply(pair[0], this, args)) { + return apply(pair[1], this, args); + } + } + }); +} + +module.exports = cond; diff --git a/node_modules/lodash/conforms.js b/node_modules/lodash/conforms.js new file mode 100644 index 0000000..5501a94 --- /dev/null +++ b/node_modules/lodash/conforms.js @@ -0,0 +1,35 @@ +var baseClone = require('./_baseClone'), + baseConforms = require('./_baseConforms'); + +/** Used to compose bitmasks for cloning. */ +var CLONE_DEEP_FLAG = 1; + +/** + * Creates a function that invokes the predicate properties of `source` with + * the corresponding property values of a given object, returning `true` if + * all predicates return truthy, else `false`. + * + * **Note:** The created function is equivalent to `_.conformsTo` with + * `source` partially applied. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Util + * @param {Object} source The object of property predicates to conform to. + * @returns {Function} Returns the new spec function. + * @example + * + * var objects = [ + * { 'a': 2, 'b': 1 }, + * { 'a': 1, 'b': 2 } + * ]; + * + * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } })); + * // => [{ 'a': 1, 'b': 2 }] + */ +function conforms(source) { + return baseConforms(baseClone(source, CLONE_DEEP_FLAG)); +} + +module.exports = conforms; diff --git a/node_modules/lodash/conformsTo.js b/node_modules/lodash/conformsTo.js new file mode 100644 index 0000000..b8a93eb --- /dev/null +++ b/node_modules/lodash/conformsTo.js @@ -0,0 +1,32 @@ +var baseConformsTo = require('./_baseConformsTo'), + keys = require('./keys'); + +/** + * Checks if `object` conforms to `source` by invoking the predicate + * properties of `source` with the corresponding property values of `object`. + * + * **Note:** This method is equivalent to `_.conforms` when `source` is + * partially applied. + * + * @static + * @memberOf _ + * @since 4.14.0 + * @category Lang + * @param {Object} object The object to inspect. + * @param {Object} source The object of property predicates to conform to. + * @returns {boolean} Returns `true` if `object` conforms, else `false`. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * + * _.conformsTo(object, { 'b': function(n) { return n > 1; } }); + * // => true + * + * _.conformsTo(object, { 'b': function(n) { return n > 2; } }); + * // => false + */ +function conformsTo(object, source) { + return source == null || baseConformsTo(object, source, keys(source)); +} + +module.exports = conformsTo; diff --git a/node_modules/lodash/constant.js b/node_modules/lodash/constant.js new file mode 100644 index 0000000..655ece3 --- /dev/null +++ b/node_modules/lodash/constant.js @@ -0,0 +1,26 @@ +/** + * Creates a function that returns `value`. + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Util + * @param {*} value The value to return from the new function. + * @returns {Function} Returns the new constant function. + * @example + * + * var objects = _.times(2, _.constant({ 'a': 1 })); + * + * console.log(objects); + * // => [{ 'a': 1 }, { 'a': 1 }] + * + * console.log(objects[0] === objects[1]); + * // => true + */ +function constant(value) { + return function() { + return value; + }; +} + +module.exports = constant; diff --git a/node_modules/lodash/core.js b/node_modules/lodash/core.js new file mode 100644 index 0000000..be1d567 --- /dev/null +++ b/node_modules/lodash/core.js @@ -0,0 +1,3877 @@ +/** + * @license + * Lodash (Custom Build) + * Build: `lodash core -o ./dist/lodash.core.js` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ +;(function() { + + /** Used as a safe reference for `undefined` in pre-ES5 environments. */ + var undefined; + + /** Used as the semantic version number. */ + var VERSION = '4.17.21'; + + /** Error message constants. */ + var FUNC_ERROR_TEXT = 'Expected a function'; + + /** 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_PARTIAL_FLAG = 32; + + /** Used as references for various `Number` constants. */ + var INFINITY = 1 / 0, + MAX_SAFE_INTEGER = 9007199254740991; + + /** `Object#toString` result references. */ + var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + asyncTag = '[object AsyncFunction]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + numberTag = '[object Number]', + objectTag = '[object Object]', + proxyTag = '[object Proxy]', + regexpTag = '[object RegExp]', + stringTag = '[object String]'; + + /** Used to match HTML entities and HTML characters. */ + var reUnescapedHtml = /[&<>"']/g, + reHasUnescapedHtml = RegExp(reUnescapedHtml.source); + + /** Used to detect unsigned integer values. */ + var reIsUint = /^(?:0|[1-9]\d*)$/; + + /** Used to map characters to HTML entities. */ + var htmlEscapes = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''' + }; + + /** Detect free variable `global` from Node.js. */ + var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + + /** Detect free variable `self`. */ + var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + + /** Used as a reference to the global object. */ + var root = freeGlobal || freeSelf || Function('return this')(); + + /** Detect free variable `exports`. */ + var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; + + /** Detect free variable `module`. */ + var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + + /*--------------------------------------------------------------------------*/ + + /** + * Appends the elements of `values` to `array`. + * + * @private + * @param {Array} array The array to modify. + * @param {Array} values The values to append. + * @returns {Array} Returns `array`. + */ + function arrayPush(array, values) { + array.push.apply(array, values); + return array; + } + + /** + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} predicate The function invoked per iteration. + * @param {number} fromIndex The index to search from. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function baseFindIndex(array, predicate, fromIndex, fromRight) { + var length = array.length, + index = fromIndex + (fromRight ? 1 : -1); + + while ((fromRight ? index-- : ++index < length)) { + if (predicate(array[index], index, array)) { + return index; + } + } + return -1; + } + + /** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new accessor function. + */ + function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; + } + + /** + * The base implementation of `_.propertyOf` without support for deep paths. + * + * @private + * @param {Object} object The object to query. + * @returns {Function} Returns the new accessor function. + */ + function basePropertyOf(object) { + return function(key) { + return object == null ? undefined : object[key]; + }; + } + + /** + * The base implementation of `_.reduce` and `_.reduceRight`, without support + * for iteratee shorthands, which iterates over `collection` using `eachFunc`. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} accumulator The initial value. + * @param {boolean} initAccum Specify using the first or last element of + * `collection` as the initial value. + * @param {Function} eachFunc The function to iterate over `collection`. + * @returns {*} Returns the accumulated value. + */ + function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { + eachFunc(collection, function(value, index, collection) { + accumulator = initAccum + ? (initAccum = false, value) + : iteratee(accumulator, value, index, collection); + }); + return accumulator; + } + + /** + * The base implementation of `_.values` and `_.valuesIn` which creates an + * array of `object` property values corresponding to the property names + * of `props`. + * + * @private + * @param {Object} object The object to query. + * @param {Array} props The property names to get values for. + * @returns {Object} Returns the array of property values. + */ + function baseValues(object, props) { + return baseMap(props, function(key) { + return object[key]; + }); + } + + /** + * Used by `_.escape` to convert characters to HTML entities. + * + * @private + * @param {string} chr The matched character to escape. + * @returns {string} Returns the escaped character. + */ + var escapeHtmlChar = basePropertyOf(htmlEscapes); + + /** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ + function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; + } + + /*--------------------------------------------------------------------------*/ + + /** Used for built-in method references. */ + var arrayProto = Array.prototype, + objectProto = Object.prototype; + + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; + + /** Used to generate unique IDs. */ + var idCounter = 0; + + /** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ + var nativeObjectToString = objectProto.toString; + + /** Used to restore the original `_` reference in `_.noConflict`. */ + var oldDash = root._; + + /** Built-in value references. */ + var objectCreate = Object.create, + propertyIsEnumerable = objectProto.propertyIsEnumerable; + + /* Built-in method references for those with the same name as other `lodash` methods. */ + var nativeIsFinite = root.isFinite, + nativeKeys = overArg(Object.keys, Object), + nativeMax = Math.max; + + /*------------------------------------------------------------------------*/ + + /** + * Creates a `lodash` object which wraps `value` to enable implicit method + * chain sequences. Methods that operate on and return arrays, collections, + * and functions can be chained together. Methods that retrieve a single value + * or may return a primitive value will automatically end the chain sequence + * and return the unwrapped value. Otherwise, the value must be unwrapped + * with `_#value`. + * + * Explicit chain sequences, which must be unwrapped with `_#value`, may be + * enabled using `_.chain`. + * + * The execution of chained methods is lazy, that is, it's deferred until + * `_#value` is implicitly or explicitly called. + * + * Lazy evaluation allows several methods to support shortcut fusion. + * Shortcut fusion is an optimization to merge iteratee calls; this avoids + * the creation of intermediate arrays and can greatly reduce the number of + * iteratee executions. Sections of a chain sequence qualify for shortcut + * fusion if the section is applied to an array and iteratees accept only + * one argument. The heuristic for whether a section qualifies for shortcut + * fusion is subject to change. + * + * Chaining is supported in custom builds as long as the `_#value` method is + * directly or indirectly included in the build. + * + * In addition to lodash methods, wrappers have `Array` and `String` methods. + * + * The wrapper `Array` methods are: + * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift` + * + * The wrapper `String` methods are: + * `replace` and `split` + * + * The wrapper methods that support shortcut fusion are: + * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`, + * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`, + * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray` + * + * The chainable wrapper methods are: + * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`, + * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`, + * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`, + * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`, + * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`, + * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`, + * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`, + * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`, + * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`, + * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`, + * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`, + * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`, + * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`, + * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`, + * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`, + * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`, + * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`, + * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`, + * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`, + * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`, + * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`, + * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`, + * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`, + * `zipObject`, `zipObjectDeep`, and `zipWith` + * + * The wrapper methods that are **not** chainable by default are: + * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`, + * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`, + * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`, + * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`, + * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`, + * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`, + * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`, + * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, + * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`, + * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`, + * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`, + * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`, + * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`, + * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`, + * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`, + * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`, + * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`, + * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`, + * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`, + * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`, + * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`, + * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`, + * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`, + * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`, + * `upperFirst`, `value`, and `words` + * + * @name _ + * @constructor + * @category Seq + * @param {*} value The value to wrap in a `lodash` instance. + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * function square(n) { + * return n * n; + * } + * + * var wrapped = _([1, 2, 3]); + * + * // Returns an unwrapped value. + * wrapped.reduce(_.add); + * // => 6 + * + * // Returns a wrapped value. + * var squares = wrapped.map(square); + * + * _.isArray(squares); + * // => false + * + * _.isArray(squares.value()); + * // => true + */ + function lodash(value) { + return value instanceof LodashWrapper + ? value + : new LodashWrapper(value); + } + + /** + * The base implementation of `_.create` without support for assigning + * properties to the created object. + * + * @private + * @param {Object} proto The object to inherit from. + * @returns {Object} Returns the new object. + */ + 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; + }; + }()); + + /** + * The base constructor for creating `lodash` wrapper objects. + * + * @private + * @param {*} value The value to wrap. + * @param {boolean} [chainAll] Enable explicit method chain sequences. + */ + function LodashWrapper(value, chainAll) { + this.__wrapped__ = value; + this.__actions__ = []; + this.__chain__ = !!chainAll; + } + + LodashWrapper.prototype = baseCreate(lodash.prototype); + LodashWrapper.prototype.constructor = LodashWrapper; + + /*------------------------------------------------------------------------*/ + + /** + * Assigns `value` to `key` of `object` if the existing value is not equivalent + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ + 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); + } + } + + /** + * The base implementation of `assignValue` and `assignMergeValue` without + * value checks. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ + function baseAssignValue(object, key, value) { + object[key] = value; + } + + /** + * The base implementation of `_.delay` and `_.defer` which accepts `args` + * to provide to `func`. + * + * @private + * @param {Function} func The function to delay. + * @param {number} wait The number of milliseconds to delay invocation. + * @param {Array} args The arguments to provide to `func`. + * @returns {number|Object} Returns the timer id or timeout object. + */ + function baseDelay(func, wait, args) { + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + return setTimeout(function() { func.apply(undefined, args); }, wait); + } + + /** + * The base implementation of `_.forEach` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + */ + var baseEach = createBaseEach(baseForOwn); + + /** + * The base implementation of `_.every` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false` + */ + function baseEvery(collection, predicate) { + var result = true; + baseEach(collection, function(value, index, collection) { + result = !!predicate(value, index, collection); + return result; + }); + return result; + } + + /** + * The base implementation of methods like `_.max` and `_.min` which accepts a + * `comparator` to determine the extremum value. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The iteratee invoked per iteration. + * @param {Function} comparator The comparator used to compare values. + * @returns {*} Returns the extremum value. + */ + 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 + ? (current === current && !false) + : comparator(current, computed) + )) { + var computed = current, + result = value; + } + } + return result; + } + + /** + * The base implementation of `_.filter` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ + function baseFilter(collection, predicate) { + var result = []; + baseEach(collection, function(value, index, collection) { + if (predicate(value, index, collection)) { + result.push(value); + } + }); + return result; + } + + /** + * The base implementation of `_.flatten` with support for restricting flattening. + * + * @private + * @param {Array} array The array to flatten. + * @param {number} depth The maximum recursion depth. + * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. + * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. + * @param {Array} [result=[]] The initial result value. + * @returns {Array} Returns the new flattened array. + */ + function baseFlatten(array, depth, predicate, isStrict, result) { + var index = -1, + length = array.length; + + predicate || (predicate = isFlattenable); + result || (result = []); + + while (++index < length) { + var value = array[index]; + if (depth > 0 && predicate(value)) { + if (depth > 1) { + // Recursively flatten arrays (susceptible to call stack limits). + baseFlatten(value, depth - 1, predicate, isStrict, result); + } else { + arrayPush(result, value); + } + } else if (!isStrict) { + result[result.length] = value; + } + } + return result; + } + + /** + * The base implementation of `baseForOwn` which iterates over `object` + * properties returned by `keysFunc` and invokes `iteratee` for each property. + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ + var baseFor = createBaseFor(); + + /** + * The base implementation of `_.forOwn` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ + function baseForOwn(object, iteratee) { + return object && baseFor(object, iteratee, keys); + } + + /** + * The base implementation of `_.functions` which creates an array of + * `object` function property names filtered from `props`. + * + * @private + * @param {Object} object The object to inspect. + * @param {Array} props The property names to filter. + * @returns {Array} Returns the function names. + */ + function baseFunctions(object, props) { + return baseFilter(props, function(key) { + return isFunction(object[key]); + }); + } + + /** + * The base implementation of `getTag` without fallbacks for buggy environments. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ + function baseGetTag(value) { + return objectToString(value); + } + + /** + * The base implementation of `_.gt` which doesn't coerce arguments. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is greater than `other`, + * else `false`. + */ + function baseGt(value, other) { + return value > other; + } + + /** + * The base implementation of `_.isArguments`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + */ + var baseIsArguments = noop; + + /** + * The base implementation of `_.isDate` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a date object, else `false`. + */ + function baseIsDate(value) { + return isObjectLike(value) && baseGetTag(value) == dateTag; + } + + /** + * The base implementation of `_.isEqual` which supports partial comparisons + * and tracks traversed objects. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {boolean} bitmask The bitmask flags. + * 1 - Unordered comparison + * 2 - Partial comparison + * @param {Function} [customizer] The function to customize comparisons. + * @param {Object} [stack] Tracks traversed `value` and `other` objects. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + */ + function baseIsEqual(value, other, bitmask, customizer, stack) { + if (value === other) { + return true; + } + if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { + return value !== value && other !== other; + } + return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); + } + + /** + * A specialized version of `baseIsEqual` for arrays and objects which performs + * deep comparisons and tracks traversed objects enabling objects with circular + * references to be compared. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} [stack] Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ + function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { + var objIsArr = isArray(object), + othIsArr = isArray(other), + objTag = objIsArr ? arrayTag : baseGetTag(object), + othTag = othIsArr ? arrayTag : baseGetTag(other); + + objTag = objTag == argsTag ? objectTag : objTag; + othTag = othTag == argsTag ? objectTag : othTag; + + var objIsObj = objTag == objectTag, + othIsObj = othTag == objectTag, + isSameTag = objTag == othTag; + + stack || (stack = []); + var objStack = find(stack, function(entry) { + return entry[0] == object; + }); + var othStack = find(stack, function(entry) { + return entry[0] == other; + }); + if (objStack && othStack) { + return objStack[1] == other; + } + stack.push([object, other]); + stack.push([other, object]); + if (isSameTag && !objIsObj) { + var result = (objIsArr) + ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) + : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); + stack.pop(); + return result; + } + if (!(bitmask & COMPARE_PARTIAL_FLAG)) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), + othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); + + if (objIsWrapped || othIsWrapped) { + var objUnwrapped = objIsWrapped ? object.value() : object, + othUnwrapped = othIsWrapped ? other.value() : other; + + var result = equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); + stack.pop(); + return result; + } + } + if (!isSameTag) { + return false; + } + var result = equalObjects(object, other, bitmask, customizer, equalFunc, stack); + stack.pop(); + return result; + } + + /** + * The base implementation of `_.isRegExp` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. + */ + function baseIsRegExp(value) { + return isObjectLike(value) && baseGetTag(value) == regexpTag; + } + + /** + * The base implementation of `_.iteratee`. + * + * @private + * @param {*} [value=_.identity] The value to convert to an iteratee. + * @returns {Function} Returns the iteratee. + */ + function baseIteratee(func) { + if (typeof func == 'function') { + return func; + } + if (func == null) { + return identity; + } + return (typeof func == 'object' ? baseMatches : baseProperty)(func); + } + + /** + * The base implementation of `_.lt` which doesn't coerce arguments. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is less than `other`, + * else `false`. + */ + function baseLt(value, other) { + return value < other; + } + + /** + * The base implementation of `_.map` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ + function baseMap(collection, iteratee) { + var index = -1, + result = isArrayLike(collection) ? Array(collection.length) : []; + + baseEach(collection, function(value, key, collection) { + result[++index] = iteratee(value, key, collection); + }); + return result; + } + + /** + * The base implementation of `_.matches` which doesn't clone `source`. + * + * @private + * @param {Object} source The object of property values to match. + * @returns {Function} Returns the new spec function. + */ + function baseMatches(source) { + var props = nativeKeys(source); + return function(object) { + var length = props.length; + if (object == null) { + return !length; + } + object = Object(object); + while (length--) { + var key = props[length]; + if (!(key in object && + baseIsEqual(source[key], object[key], COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG) + )) { + return false; + } + } + return true; + }; + } + + /** + * The base implementation of `_.pick` without support for individual + * property identifiers. + * + * @private + * @param {Object} object The source object. + * @param {string[]} paths The property paths to pick. + * @returns {Object} Returns the new object. + */ + function basePick(object, props) { + object = Object(object); + return reduce(props, function(result, key) { + if (key in object) { + result[key] = object[key]; + } + return result; + }, {}); + } + + /** + * The base implementation of `_.rest` which doesn't validate or coerce arguments. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + */ + function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + ''); + } + + /** + * The base implementation of `_.slice` without an iteratee call guard. + * + * @private + * @param {Array} array The array to slice. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the slice of `array`. + */ + function baseSlice(array, start, end) { + var index = -1, + length = array.length; + + if (start < 0) { + start = -start > length ? 0 : (length + start); + } + end = end > length ? length : end; + if (end < 0) { + end += length; + } + length = start > end ? 0 : ((end - start) >>> 0); + start >>>= 0; + + var result = Array(length); + while (++index < length) { + result[index] = array[index + start]; + } + return result; + } + + /** + * Copies the values of `source` to `array`. + * + * @private + * @param {Array} source The array to copy values from. + * @param {Array} [array=[]] The array to copy values to. + * @returns {Array} Returns `array`. + */ + function copyArray(source) { + return baseSlice(source, 0, source.length); + } + + /** + * The base implementation of `_.some` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ + function baseSome(collection, predicate) { + var result; + + baseEach(collection, function(value, index, collection) { + result = predicate(value, index, collection); + return !result; + }); + return !!result; + } + + /** + * The base implementation of `wrapperValue` which returns the result of + * performing a sequence of actions on the unwrapped `value`, where each + * successive action is supplied the return value of the previous. + * + * @private + * @param {*} value The unwrapped value. + * @param {Array} actions Actions to perform to resolve the unwrapped value. + * @returns {*} Returns the resolved value. + */ + function baseWrapperValue(value, actions) { + var result = value; + return reduce(actions, function(result, action) { + return action.func.apply(action.thisArg, arrayPush([result], action.args)); + }, result); + } + + /** + * Compares values to sort them in ascending order. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {number} Returns the sort order indicator for `value`. + */ + function compareAscending(value, other) { + if (value !== other) { + var valIsDefined = value !== undefined, + valIsNull = value === null, + valIsReflexive = value === value, + valIsSymbol = false; + + var othIsDefined = other !== undefined, + othIsNull = other === null, + othIsReflexive = other === other, + othIsSymbol = false; + + 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; + } + + /** + * Copies properties of `source` to `object`. + * + * @private + * @param {Object} source The object to copy properties from. + * @param {Array} props The property identifiers to copy. + * @param {Object} [object={}] The object to copy properties to. + * @param {Function} [customizer] The function to customize copied values. + * @returns {Object} Returns `object`. + */ + 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; + } + + /** + * Creates a function like `_.assign`. + * + * @private + * @param {Function} assigner The function to assign values. + * @returns {Function} Returns the new assigner function. + */ + function createAssigner(assigner) { + return baseRest(function(object, sources) { + var index = -1, + length = sources.length, + customizer = length > 1 ? sources[length - 1] : undefined; + + customizer = (assigner.length > 3 && typeof customizer == 'function') + ? (length--, customizer) + : undefined; + + object = Object(object); + while (++index < length) { + var source = sources[index]; + if (source) { + assigner(object, source, index, customizer); + } + } + return object; + }); + } + + /** + * Creates a `baseEach` or `baseEachRight` function. + * + * @private + * @param {Function} eachFunc The function to iterate over a collection. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ + function createBaseEach(eachFunc, fromRight) { + return function(collection, iteratee) { + if (collection == null) { + return collection; + } + if (!isArrayLike(collection)) { + return eachFunc(collection, iteratee); + } + var length = collection.length, + index = fromRight ? length : -1, + iterable = Object(collection); + + while ((fromRight ? index-- : ++index < length)) { + if (iteratee(iterable[index], index, iterable) === false) { + break; + } + } + return collection; + }; + } + + /** + * Creates a base function for methods like `_.forIn` and `_.forOwn`. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ + function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, + iterable = Object(object), + props = keysFunc(object), + length = props.length; + + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; + } + + /** + * Creates a function that produces an instance of `Ctor` regardless of + * whether it was invoked as part of a `new` expression or by `call` or `apply`. + * + * @private + * @param {Function} Ctor The constructor to wrap. + * @returns {Function} Returns the new wrapped function. + */ + function createCtor(Ctor) { + return function() { + // Use a `switch` statement to work with class constructors. See + // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist + // for more details. + var args = arguments; + var thisBinding = baseCreate(Ctor.prototype), + result = Ctor.apply(thisBinding, args); + + // Mimic the constructor's `return` behavior. + // See https://es5.github.io/#x13.2.2 for more details. + return isObject(result) ? result : thisBinding; + }; + } + + /** + * Creates a `_.find` or `_.findLast` function. + * + * @private + * @param {Function} findIndexFunc The function to find the collection index. + * @returns {Function} Returns the new find function. + */ + function createFind(findIndexFunc) { + return function(collection, predicate, fromIndex) { + var iterable = Object(collection); + if (!isArrayLike(collection)) { + var iteratee = baseIteratee(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; + }; + } + + /** + * Creates a function that wraps `func` to invoke it with the `this` binding + * of `thisArg` and `partials` prepended to the arguments it receives. + * + * @private + * @param {Function} func The function to wrap. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @param {*} thisArg The `this` binding of `func`. + * @param {Array} partials The arguments to prepend to those provided to + * the new function. + * @returns {Function} Returns the new wrapped function. + */ + function createPartial(func, bitmask, thisArg, partials) { + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + var isBind = bitmask & WRAP_BIND_FLAG, + Ctor = createCtor(func); + + function wrapper() { + var argsIndex = -1, + argsLength = arguments.length, + leftIndex = -1, + leftLength = partials.length, + args = Array(leftLength + argsLength), + fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; + + while (++leftIndex < leftLength) { + args[leftIndex] = partials[leftIndex]; + } + while (argsLength--) { + args[leftIndex++] = arguments[++argsIndex]; + } + return fn.apply(isBind ? thisArg : this, args); + } + return wrapper; + } + + /** + * A specialized version of `baseIsEqualDeep` for arrays with support for + * partial deep comparisons. + * + * @private + * @param {Array} array The array to compare. + * @param {Array} other The other array to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `array` and `other` objects. + * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. + */ + 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. + 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) ? [] : undefined; + + // Ignore non-index properties. + while (++index < arrLength) { + var arrValue = array[index], + othValue = other[index]; + + var compared; + if (compared !== undefined) { + if (compared) { + continue; + } + result = false; + break; + } + // Recursively compare arrays (susceptible to call stack limits). + if (seen) { + if (!baseSome(other, function(othValue, othIndex) { + if (!indexOf(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; + } + } + return result; + } + + /** + * A specialized version of `baseIsEqualDeep` for comparing objects of + * the same `toStringTag`. + * + * **Note:** This function only supports comparing values with tags of + * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {string} tag The `toStringTag` of the objects to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ + function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { + switch (tag) { + + case boolTag: + case dateTag: + case numberTag: + // Coerce booleans to `1` or `0` and dates to milliseconds. + // Invalid dates are coerced to `NaN`. + return eq(+object, +other); + + case errorTag: + return object.name == other.name && object.message == other.message; + + case regexpTag: + case stringTag: + // Coerce regexes to strings and treat strings, primitives and objects, + // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring + // for more details. + return object == (other + ''); + + } + return false; + } + + /** + * A specialized version of `baseIsEqualDeep` for objects with support for + * partial deep comparisons. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ + function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, + objProps = keys(object), + objLength = objProps.length, + othProps = keys(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. + var objStacked = stack.get(object); + var othStacked = stack.get(other); + if (objStacked && othStacked) { + return objStacked == other && othStacked == object; + } + var result = true; + + var skipCtor = isPartial; + while (++index < objLength) { + key = objProps[index]; + var objValue = object[key], + othValue = other[key]; + + var compared; + // Recursively compare objects (susceptible to call stack limits). + 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. + if (objCtor != othCtor && + ('constructor' in object && 'constructor' in other) && + !(typeof objCtor == 'function' && objCtor instanceof objCtor && + typeof othCtor == 'function' && othCtor instanceof othCtor)) { + result = false; + } + } + return result; + } + + /** + * A specialized version of `baseRest` which flattens the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @returns {Function} Returns the new function. + */ + function flatRest(func) { + return setToString(overRest(func, undefined, flatten), func + ''); + } + + /** + * Checks if `value` is a flattenable `arguments` object or array. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. + */ + function isFlattenable(value) { + return isArray(value) || isArguments(value); + } + + /** + * Checks if `value` is a valid array-like index. + * + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. + */ + function isIndex(value, length) { + var type = typeof value; + length = length == null ? MAX_SAFE_INTEGER : length; + + return !!length && + (type == 'number' || + (type != 'symbol' && reIsUint.test(value))) && + (value > -1 && value % 1 == 0 && value < length); + } + + /** + * Checks if the given arguments are from an iteratee call. + * + * @private + * @param {*} value The potential iteratee value argument. + * @param {*} index The potential iteratee index or key argument. + * @param {*} object The potential iteratee object argument. + * @returns {boolean} Returns `true` if the arguments are from an iteratee call, + * else `false`. + */ + function isIterateeCall(value, index, object) { + if (!isObject(object)) { + return false; + } + var type = typeof index; + if (type == 'number' + ? (isArrayLike(object) && isIndex(index, object.length)) + : (type == 'string' && index in object) + ) { + return eq(object[index], value); + } + return false; + } + + /** + * This function is like + * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * except that it includes inherited enumerable properties. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ + function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; + } + + /** + * Converts `value` to a string using `Object.prototype.toString`. + * + * @private + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + */ + function objectToString(value) { + return nativeObjectToString.call(value); + } + + /** + * A specialized version of `baseRest` which transforms the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @param {Function} transform The rest array transform. + * @returns {Function} Returns the new function. + */ + 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 func.apply(this, otherArgs); + }; + } + + /** + * Sets the `toString` method of `func` to return `string`. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ + var setToString = identity; + + /*------------------------------------------------------------------------*/ + + /** + * Creates an array with all falsey values removed. The values `false`, `null`, + * `0`, `""`, `undefined`, and `NaN` are falsey. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to compact. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * _.compact([0, 1, false, 2, '', 3]); + * // => [1, 2, 3] + */ + function compact(array) { + return baseFilter(array, Boolean); + } + + /** + * Creates a new array concatenating `array` with any additional arrays + * and/or values. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to concatenate. + * @param {...*} [values] The values to concatenate. + * @returns {Array} Returns the new concatenated array. + * @example + * + * var array = [1]; + * var other = _.concat(array, 2, [3], [[4]]); + * + * console.log(other); + * // => [1, 2, 3, [4]] + * + * console.log(array); + * // => [1] + */ + function concat() { + var length = arguments.length; + if (!length) { + return []; + } + var args = Array(length - 1), + array = arguments[0], + index = length; + + while (index--) { + args[index - 1] = arguments[index]; + } + return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)); + } + + /** + * This method is like `_.find` except that it returns the index of the first + * element `predicate` returns truthy for instead of the element itself. + * + * @static + * @memberOf _ + * @since 1.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=0] The index to search from. + * @returns {number} Returns the index of the found element, else `-1`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': false }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': true } + * ]; + * + * _.findIndex(users, function(o) { return o.user == 'barney'; }); + * // => 0 + * + * // The `_.matches` iteratee shorthand. + * _.findIndex(users, { 'user': 'fred', 'active': false }); + * // => 1 + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findIndex(users, ['active', false]); + * // => 0 + * + * // The `_.property` iteratee shorthand. + * _.findIndex(users, 'active'); + * // => 2 + */ + function findIndex(array, predicate, fromIndex) { + var length = array == null ? 0 : array.length; + if (!length) { + return -1; + } + var index = fromIndex == null ? 0 : toInteger(fromIndex); + if (index < 0) { + index = nativeMax(length + index, 0); + } + return baseFindIndex(array, baseIteratee(predicate, 3), index); + } + + /** + * Flattens `array` a single level deep. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to flatten. + * @returns {Array} Returns the new flattened array. + * @example + * + * _.flatten([1, [2, [3, [4]], 5]]); + * // => [1, 2, [3, [4]], 5] + */ + function flatten(array) { + var length = array == null ? 0 : array.length; + return length ? baseFlatten(array, 1) : []; + } + + /** + * Recursively flattens `array`. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to flatten. + * @returns {Array} Returns the new flattened array. + * @example + * + * _.flattenDeep([1, [2, [3, [4]], 5]]); + * // => [1, 2, 3, 4, 5] + */ + function flattenDeep(array) { + var length = array == null ? 0 : array.length; + return length ? baseFlatten(array, INFINITY) : []; + } + + /** + * Gets the first element of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @alias first + * @category Array + * @param {Array} array The array to query. + * @returns {*} Returns the first element of `array`. + * @example + * + * _.head([1, 2, 3]); + * // => 1 + * + * _.head([]); + * // => undefined + */ + function head(array) { + return (array && array.length) ? array[0] : undefined; + } + + /** + * Gets the index at which the first occurrence of `value` is found in `array` + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. If `fromIndex` is negative, it's used as the + * offset from the end of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=0] The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + * @example + * + * _.indexOf([1, 2, 1, 2], 2); + * // => 1 + * + * // Search from the `fromIndex`. + * _.indexOf([1, 2, 1, 2], 2, 2); + * // => 3 + */ + function indexOf(array, value, fromIndex) { + var length = array == null ? 0 : array.length; + if (typeof fromIndex == 'number') { + fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : fromIndex; + } else { + fromIndex = 0; + } + var index = (fromIndex || 0) - 1, + isReflexive = value === value; + + while (++index < length) { + var other = array[index]; + if ((isReflexive ? other === value : other !== other)) { + return index; + } + } + return -1; + } + + /** + * Gets the last element of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to query. + * @returns {*} Returns the last element of `array`. + * @example + * + * _.last([1, 2, 3]); + * // => 3 + */ + function last(array) { + var length = array == null ? 0 : array.length; + return length ? array[length - 1] : undefined; + } + + /** + * Creates a slice of `array` from `start` up to, but not including, `end`. + * + * **Note:** This method is used instead of + * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are + * returned. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to slice. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the slice of `array`. + */ + function slice(array, start, end) { + var length = array == null ? 0 : array.length; + start = start == null ? 0 : +start; + end = end === undefined ? length : +end; + return length ? baseSlice(array, start, end) : []; + } + + /*------------------------------------------------------------------------*/ + + /** + * Creates a `lodash` wrapper instance that wraps `value` with explicit method + * chain sequences enabled. The result of such sequences must be unwrapped + * with `_#value`. + * + * @static + * @memberOf _ + * @since 1.3.0 + * @category Seq + * @param {*} value The value to wrap. + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 40 }, + * { 'user': 'pebbles', 'age': 1 } + * ]; + * + * var youngest = _ + * .chain(users) + * .sortBy('age') + * .map(function(o) { + * return o.user + ' is ' + o.age; + * }) + * .head() + * .value(); + * // => 'pebbles is 1' + */ + function chain(value) { + var result = lodash(value); + result.__chain__ = true; + return result; + } + + /** + * This method invokes `interceptor` and returns `value`. The interceptor + * is invoked with one argument; (value). The purpose of this method is to + * "tap into" a method chain sequence in order to modify intermediate results. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Seq + * @param {*} value The value to provide to `interceptor`. + * @param {Function} interceptor The function to invoke. + * @returns {*} Returns `value`. + * @example + * + * _([1, 2, 3]) + * .tap(function(array) { + * // Mutate input array. + * array.pop(); + * }) + * .reverse() + * .value(); + * // => [2, 1] + */ + function tap(value, interceptor) { + interceptor(value); + return value; + } + + /** + * This method is like `_.tap` except that it returns the result of `interceptor`. + * The purpose of this method is to "pass thru" values replacing intermediate + * results in a method chain sequence. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Seq + * @param {*} value The value to provide to `interceptor`. + * @param {Function} interceptor The function to invoke. + * @returns {*} Returns the result of `interceptor`. + * @example + * + * _(' abc ') + * .chain() + * .trim() + * .thru(function(value) { + * return [value]; + * }) + * .value(); + * // => ['abc'] + */ + function thru(value, interceptor) { + return interceptor(value); + } + + /** + * Creates a `lodash` wrapper instance with explicit method chain sequences enabled. + * + * @name chain + * @memberOf _ + * @since 0.1.0 + * @category Seq + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 40 } + * ]; + * + * // A sequence without explicit chaining. + * _(users).head(); + * // => { 'user': 'barney', 'age': 36 } + * + * // A sequence with explicit chaining. + * _(users) + * .chain() + * .head() + * .pick('user') + * .value(); + * // => { 'user': 'barney' } + */ + function wrapperChain() { + return chain(this); + } + + /** + * Executes the chain sequence to resolve the unwrapped value. + * + * @name value + * @memberOf _ + * @since 0.1.0 + * @alias toJSON, valueOf + * @category Seq + * @returns {*} Returns the resolved unwrapped value. + * @example + * + * _([1, 2, 3]).value(); + * // => [1, 2, 3] + */ + function wrapperValue() { + return baseWrapperValue(this.__wrapped__, this.__actions__); + } + + /*------------------------------------------------------------------------*/ + + /** + * Checks if `predicate` returns truthy for **all** elements of `collection`. + * Iteration is stopped once `predicate` returns falsey. The predicate is + * invoked with three arguments: (value, index|key, collection). + * + * **Note:** This method returns `true` for + * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because + * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of + * elements of empty collections. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false`. + * @example + * + * _.every([true, 1, null, 'yes'], Boolean); + * // => false + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': false }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * // The `_.matches` iteratee shorthand. + * _.every(users, { 'user': 'barney', 'active': false }); + * // => false + * + * // The `_.matchesProperty` iteratee shorthand. + * _.every(users, ['active', false]); + * // => true + * + * // The `_.property` iteratee shorthand. + * _.every(users, 'active'); + * // => false + */ + function every(collection, predicate, guard) { + predicate = guard ? undefined : predicate; + return baseEvery(collection, baseIteratee(predicate)); + } + + /** + * Iterates over elements of `collection`, returning an array of all elements + * `predicate` returns truthy for. The predicate is invoked with three + * arguments: (value, index|key, collection). + * + * **Note:** Unlike `_.remove`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + * @see _.reject + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * _.filter(users, function(o) { return !o.active; }); + * // => objects for ['fred'] + * + * // The `_.matches` iteratee shorthand. + * _.filter(users, { 'age': 36, 'active': true }); + * // => objects for ['barney'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.filter(users, ['active', false]); + * // => objects for ['fred'] + * + * // The `_.property` iteratee shorthand. + * _.filter(users, 'active'); + * // => objects for ['barney'] + * + * // Combining several predicates using `_.overEvery` or `_.overSome`. + * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]])); + * // => objects for ['fred', 'barney'] + */ + function filter(collection, predicate) { + return baseFilter(collection, baseIteratee(predicate)); + } + + /** + * Iterates over elements of `collection`, returning the first element + * `predicate` returns truthy for. The predicate is invoked with three + * arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=0] The index to search from. + * @returns {*} Returns the matched element, else `undefined`. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false }, + * { 'user': 'pebbles', 'age': 1, 'active': true } + * ]; + * + * _.find(users, function(o) { return o.age < 40; }); + * // => object for 'barney' + * + * // The `_.matches` iteratee shorthand. + * _.find(users, { 'age': 1, 'active': true }); + * // => object for 'pebbles' + * + * // The `_.matchesProperty` iteratee shorthand. + * _.find(users, ['active', false]); + * // => object for 'fred' + * + * // The `_.property` iteratee shorthand. + * _.find(users, 'active'); + * // => object for 'barney' + */ + var find = createFind(findIndex); + + /** + * Iterates over elements of `collection` and invokes `iteratee` for each element. + * The iteratee is invoked with three arguments: (value, index|key, collection). + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * **Note:** As with other "Collections" methods, objects with a "length" + * property are iterated like arrays. To avoid this behavior use `_.forIn` + * or `_.forOwn` for object iteration. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @alias each + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + * @see _.forEachRight + * @example + * + * _.forEach([1, 2], function(value) { + * console.log(value); + * }); + * // => Logs `1` then `2`. + * + * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) { + * console.log(key); + * }); + * // => Logs 'a' then 'b' (iteration order is not guaranteed). + */ + function forEach(collection, iteratee) { + return baseEach(collection, baseIteratee(iteratee)); + } + + /** + * Creates an array of values by running each element in `collection` thru + * `iteratee`. The iteratee is invoked with three arguments: + * (value, index|key, collection). + * + * Many lodash methods are guarded to work as iteratees for methods like + * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`. + * + * The guarded methods are: + * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`, + * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`, + * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`, + * `template`, `trim`, `trimEnd`, `trimStart`, and `words` + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + * @example + * + * function square(n) { + * return n * n; + * } + * + * _.map([4, 8], square); + * // => [16, 64] + * + * _.map({ 'a': 4, 'b': 8 }, square); + * // => [16, 64] (iteration order is not guaranteed) + * + * var users = [ + * { 'user': 'barney' }, + * { 'user': 'fred' } + * ]; + * + * // The `_.property` iteratee shorthand. + * _.map(users, 'user'); + * // => ['barney', 'fred'] + */ + function map(collection, iteratee) { + return baseMap(collection, baseIteratee(iteratee)); + } + + /** + * Reduces `collection` to a value which is the accumulated result of running + * each element in `collection` thru `iteratee`, where each successive + * invocation is supplied the return value of the previous. If `accumulator` + * is not given, the first element of `collection` is used as the initial + * value. The iteratee is invoked with four arguments: + * (accumulator, value, index|key, collection). + * + * Many lodash methods are guarded to work as iteratees for methods like + * `_.reduce`, `_.reduceRight`, and `_.transform`. + * + * The guarded methods are: + * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`, + * and `sortBy` + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @returns {*} Returns the accumulated value. + * @see _.reduceRight + * @example + * + * _.reduce([1, 2], function(sum, n) { + * return sum + n; + * }, 0); + * // => 3 + * + * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { + * (result[value] || (result[value] = [])).push(key); + * return result; + * }, {}); + * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed) + */ + function reduce(collection, iteratee, accumulator) { + return baseReduce(collection, baseIteratee(iteratee), accumulator, arguments.length < 3, baseEach); + } + + /** + * Gets the size of `collection` by returning its length for array-like + * values or the number of own enumerable string keyed properties for objects. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object|string} collection The collection to inspect. + * @returns {number} Returns the collection size. + * @example + * + * _.size([1, 2, 3]); + * // => 3 + * + * _.size({ 'a': 1, 'b': 2 }); + * // => 2 + * + * _.size('pebbles'); + * // => 7 + */ + function size(collection) { + if (collection == null) { + return 0; + } + collection = isArrayLike(collection) ? collection : nativeKeys(collection); + return collection.length; + } + + /** + * Checks if `predicate` returns truthy for **any** element of `collection`. + * Iteration is stopped once `predicate` returns truthy. The predicate is + * invoked with three arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + * @example + * + * _.some([null, 0, 'yes', false], Boolean); + * // => true + * + * var users = [ + * { 'user': 'barney', 'active': true }, + * { 'user': 'fred', 'active': false } + * ]; + * + * // The `_.matches` iteratee shorthand. + * _.some(users, { 'user': 'barney', 'active': false }); + * // => false + * + * // The `_.matchesProperty` iteratee shorthand. + * _.some(users, ['active', false]); + * // => true + * + * // The `_.property` iteratee shorthand. + * _.some(users, 'active'); + * // => true + */ + function some(collection, predicate, guard) { + predicate = guard ? undefined : predicate; + return baseSome(collection, baseIteratee(predicate)); + } + + /** + * Creates an array of elements, sorted in ascending order by the results of + * running each element in a collection thru each iteratee. This method + * performs a stable sort, that is, it preserves the original sort order of + * equal elements. The iteratees are invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {...(Function|Function[])} [iteratees=[_.identity]] + * The iteratees to sort by. + * @returns {Array} Returns the new sorted array. + * @example + * + * var users = [ + * { 'user': 'fred', 'age': 48 }, + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 30 }, + * { 'user': 'barney', 'age': 34 } + * ]; + * + * _.sortBy(users, [function(o) { return o.user; }]); + * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]] + * + * _.sortBy(users, ['user', 'age']); + * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]] + */ + function sortBy(collection, iteratee) { + var index = 0; + iteratee = baseIteratee(iteratee); + + return baseMap(baseMap(collection, function(value, key, collection) { + return { 'value': value, 'index': index++, 'criteria': iteratee(value, key, collection) }; + }).sort(function(object, other) { + return compareAscending(object.criteria, other.criteria) || (object.index - other.index); + }), baseProperty('value')); + } + + /*------------------------------------------------------------------------*/ + + /** + * Creates a function that invokes `func`, with the `this` binding and arguments + * of the created function, while it's called less than `n` times. Subsequent + * calls to the created function return the result of the last `func` invocation. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {number} n The number of calls at which `func` is no longer invoked. + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new restricted function. + * @example + * + * jQuery(element).on('click', _.before(5, addContactToList)); + * // => Allows adding up to 4 contacts to the list. + */ + 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; + }; + } + + /** + * Creates a function that invokes `func` with the `this` binding of `thisArg` + * and `partials` prepended to the arguments it receives. + * + * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds, + * may be used as a placeholder for partially applied arguments. + * + * **Note:** Unlike native `Function#bind`, this method doesn't set the "length" + * property of bound functions. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to bind. + * @param {*} thisArg The `this` binding of `func`. + * @param {...*} [partials] The arguments to be partially applied. + * @returns {Function} Returns the new bound function. + * @example + * + * function greet(greeting, punctuation) { + * return greeting + ' ' + this.user + punctuation; + * } + * + * var object = { 'user': 'fred' }; + * + * var bound = _.bind(greet, object, 'hi'); + * bound('!'); + * // => 'hi fred!' + * + * // Bound with placeholders. + * var bound = _.bind(greet, object, _, '!'); + * bound('hi'); + * // => 'hi fred!' + */ + var bind = baseRest(function(func, thisArg, partials) { + return createPartial(func, WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG, thisArg, partials); + }); + + /** + * Defers invoking the `func` until the current call stack has cleared. Any + * additional arguments are provided to `func` when it's invoked. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to defer. + * @param {...*} [args] The arguments to invoke `func` with. + * @returns {number} Returns the timer id. + * @example + * + * _.defer(function(text) { + * console.log(text); + * }, 'deferred'); + * // => Logs 'deferred' after one millisecond. + */ + var defer = baseRest(function(func, args) { + return baseDelay(func, 1, args); + }); + + /** + * Invokes `func` after `wait` milliseconds. Any additional arguments are + * provided to `func` when it's invoked. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to delay. + * @param {number} wait The number of milliseconds to delay invocation. + * @param {...*} [args] The arguments to invoke `func` with. + * @returns {number} Returns the timer id. + * @example + * + * _.delay(function(text) { + * console.log(text); + * }, 1000, 'later'); + * // => Logs 'later' after one second. + */ + var delay = baseRest(function(func, wait, args) { + return baseDelay(func, toNumber(wait) || 0, args); + }); + + /** + * Creates a function that negates the result of the predicate `func`. The + * `func` predicate is invoked with the `this` binding and arguments of the + * created function. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {Function} predicate The predicate to negate. + * @returns {Function} Returns the new negated function. + * @example + * + * function isEven(n) { + * return n % 2 == 0; + * } + * + * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven)); + * // => [1, 3, 5] + */ + function negate(predicate) { + if (typeof predicate != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + return function() { + var args = arguments; + return !predicate.apply(this, args); + }; + } + + /** + * Creates a function that is restricted to invoking `func` once. Repeat calls + * to the function return the value of the first invocation. The `func` is + * invoked with the `this` binding and arguments of the created function. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new restricted function. + * @example + * + * var initialize = _.once(createApplication); + * initialize(); + * initialize(); + * // => `createApplication` is invoked once + */ + function once(func) { + return before(2, func); + } + + /*------------------------------------------------------------------------*/ + + /** + * Creates a shallow clone of `value`. + * + * **Note:** This method is loosely based on the + * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm) + * and supports cloning arrays, array buffers, booleans, date objects, maps, + * numbers, `Object` objects, regexes, sets, strings, symbols, and typed + * arrays. The own enumerable properties of `arguments` objects are cloned + * as plain objects. An empty object is returned for uncloneable values such + * as error objects, functions, DOM nodes, and WeakMaps. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to clone. + * @returns {*} Returns the cloned value. + * @see _.cloneDeep + * @example + * + * var objects = [{ 'a': 1 }, { 'b': 2 }]; + * + * var shallow = _.clone(objects); + * console.log(shallow[0] === objects[0]); + * // => true + */ + function clone(value) { + if (!isObject(value)) { + return value; + } + return isArray(value) ? copyArray(value) : copyObject(value, nativeKeys(value)); + } + + /** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ + function eq(value, other) { + return value === other || (value !== value && other !== other); + } + + /** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ + var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && + !propertyIsEnumerable.call(value, 'callee'); + }; + + /** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ + var isArray = Array.isArray; + + /** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */ + function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); + } + + /** + * Checks if `value` is classified as a boolean primitive or object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a boolean, else `false`. + * @example + * + * _.isBoolean(false); + * // => true + * + * _.isBoolean(null); + * // => false + */ + function isBoolean(value) { + return value === true || value === false || + (isObjectLike(value) && baseGetTag(value) == boolTag); + } + + /** + * Checks if `value` is classified as a `Date` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a date object, else `false`. + * @example + * + * _.isDate(new Date); + * // => true + * + * _.isDate('Mon April 23 2012'); + * // => false + */ + var isDate = baseIsDate; + + /** + * Checks if `value` is an empty object, collection, map, or set. + * + * Objects are considered empty if they have no own enumerable string keyed + * properties. + * + * Array-like values such as `arguments` objects, arrays, buffers, strings, or + * jQuery-like collections are considered empty if they have a `length` of `0`. + * Similarly, maps and sets are considered empty if they have a `size` of `0`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is empty, else `false`. + * @example + * + * _.isEmpty(null); + * // => true + * + * _.isEmpty(true); + * // => true + * + * _.isEmpty(1); + * // => true + * + * _.isEmpty([1, 2, 3]); + * // => false + * + * _.isEmpty({ 'a': 1 }); + * // => false + */ + function isEmpty(value) { + if (isArrayLike(value) && + (isArray(value) || isString(value) || + isFunction(value.splice) || isArguments(value))) { + return !value.length; + } + return !nativeKeys(value).length; + } + + /** + * Performs a deep comparison between two values to determine if they are + * equivalent. + * + * **Note:** This method supports comparing arrays, array buffers, booleans, + * date objects, error objects, maps, numbers, `Object` objects, regexes, + * sets, strings, symbols, and typed arrays. `Object` objects are compared + * by their own, not inherited, enumerable properties. Functions and DOM + * nodes are compared by strict equality, i.e. `===`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.isEqual(object, other); + * // => true + * + * object === other; + * // => false + */ + function isEqual(value, other) { + return baseIsEqual(value, other); + } + + /** + * Checks if `value` is a finite primitive number. + * + * **Note:** This method is based on + * [`Number.isFinite`](https://mdn.io/Number/isFinite). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a finite number, else `false`. + * @example + * + * _.isFinite(3); + * // => true + * + * _.isFinite(Number.MIN_VALUE); + * // => true + * + * _.isFinite(Infinity); + * // => false + * + * _.isFinite('3'); + * // => false + */ + function isFinite(value) { + return typeof value == 'number' && nativeIsFinite(value); + } + + /** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ + function isFunction(value) { + if (!isObject(value)) { + return false; + } + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 9 which returns 'object' for typed arrays and other constructors. + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; + } + + /** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */ + function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; + } + + /** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ + function isObject(value) { + var type = typeof value; + return value != null && (type == 'object' || type == 'function'); + } + + /** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ + function isObjectLike(value) { + return value != null && typeof value == 'object'; + } + + /** + * Checks if `value` is `NaN`. + * + * **Note:** This method is based on + * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as + * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for + * `undefined` and other non-number values. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + * @example + * + * _.isNaN(NaN); + * // => true + * + * _.isNaN(new Number(NaN)); + * // => true + * + * isNaN(undefined); + * // => true + * + * _.isNaN(undefined); + * // => false + */ + function isNaN(value) { + // An `NaN` primitive is the only value that is not equal to itself. + // Perform the `toStringTag` check first to avoid errors with some + // ActiveX objects in IE. + return isNumber(value) && value != +value; + } + + /** + * Checks if `value` is `null`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `null`, else `false`. + * @example + * + * _.isNull(null); + * // => true + * + * _.isNull(void 0); + * // => false + */ + function isNull(value) { + return value === null; + } + + /** + * Checks if `value` is classified as a `Number` primitive or object. + * + * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are + * classified as numbers, use the `_.isFinite` method. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a number, else `false`. + * @example + * + * _.isNumber(3); + * // => true + * + * _.isNumber(Number.MIN_VALUE); + * // => true + * + * _.isNumber(Infinity); + * // => true + * + * _.isNumber('3'); + * // => false + */ + function isNumber(value) { + return typeof value == 'number' || + (isObjectLike(value) && baseGetTag(value) == numberTag); + } + + /** + * Checks if `value` is classified as a `RegExp` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. + * @example + * + * _.isRegExp(/abc/); + * // => true + * + * _.isRegExp('/abc/'); + * // => false + */ + var isRegExp = baseIsRegExp; + + /** + * Checks if `value` is classified as a `String` primitive or object. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a string, else `false`. + * @example + * + * _.isString('abc'); + * // => true + * + * _.isString(1); + * // => false + */ + function isString(value) { + return typeof value == 'string' || + (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag); + } + + /** + * Checks if `value` is `undefined`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`. + * @example + * + * _.isUndefined(void 0); + * // => true + * + * _.isUndefined(null); + * // => false + */ + function isUndefined(value) { + return value === undefined; + } + + /** + * Converts `value` to an array. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to convert. + * @returns {Array} Returns the converted array. + * @example + * + * _.toArray({ 'a': 1, 'b': 2 }); + * // => [1, 2] + * + * _.toArray('abc'); + * // => ['a', 'b', 'c'] + * + * _.toArray(1); + * // => [] + * + * _.toArray(null); + * // => [] + */ + function toArray(value) { + if (!isArrayLike(value)) { + return values(value); + } + return value.length ? copyArray(value) : []; + } + + /** + * Converts `value` to an integer. + * + * **Note:** This method is loosely based on + * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toInteger(3.2); + * // => 3 + * + * _.toInteger(Number.MIN_VALUE); + * // => 0 + * + * _.toInteger(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toInteger('3.2'); + * // => 3 + */ + var toInteger = Number; + + /** + * Converts `value` to a number. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {number} Returns the number. + * @example + * + * _.toNumber(3.2); + * // => 3.2 + * + * _.toNumber(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toNumber(Infinity); + * // => Infinity + * + * _.toNumber('3.2'); + * // => 3.2 + */ + var toNumber = Number; + + /** + * Converts `value` to a string. An empty string is returned for `null` + * and `undefined` values. The sign of `-0` is preserved. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.toString(null); + * // => '' + * + * _.toString(-0); + * // => '-0' + * + * _.toString([1, 2, 3]); + * // => '1,2,3' + */ + function toString(value) { + if (typeof value == 'string') { + return value; + } + return value == null ? '' : (value + ''); + } + + /*------------------------------------------------------------------------*/ + + /** + * Assigns own enumerable string keyed properties of source objects to the + * destination object. Source objects are applied from left to right. + * Subsequent sources overwrite property assignments of previous sources. + * + * **Note:** This method mutates `object` and is loosely based on + * [`Object.assign`](https://mdn.io/Object/assign). + * + * @static + * @memberOf _ + * @since 0.10.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.assignIn + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * function Bar() { + * this.c = 3; + * } + * + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; + * + * _.assign({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'c': 3 } + */ + var assign = createAssigner(function(object, source) { + copyObject(source, nativeKeys(source), object); + }); + + /** + * This method is like `_.assign` except that it iterates over own and + * inherited source properties. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @alias extend + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.assign + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * function Bar() { + * this.c = 3; + * } + * + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; + * + * _.assignIn({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 } + */ + var assignIn = createAssigner(function(object, source) { + copyObject(source, nativeKeysIn(source), object); + }); + + /** + * Creates an object that inherits from the `prototype` object. If a + * `properties` object is given, its own enumerable string keyed properties + * are assigned to the created object. + * + * @static + * @memberOf _ + * @since 2.3.0 + * @category Object + * @param {Object} prototype The object to inherit from. + * @param {Object} [properties] The properties to assign to the object. + * @returns {Object} Returns the new object. + * @example + * + * function Shape() { + * this.x = 0; + * this.y = 0; + * } + * + * function Circle() { + * Shape.call(this); + * } + * + * Circle.prototype = _.create(Shape.prototype, { + * 'constructor': Circle + * }); + * + * var circle = new Circle; + * circle instanceof Circle; + * // => true + * + * circle instanceof Shape; + * // => true + */ + function create(prototype, properties) { + var result = baseCreate(prototype); + return properties == null ? result : assign(result, properties); + } + + /** + * Assigns own and inherited enumerable string keyed properties of source + * objects to the destination object for all destination properties that + * resolve to `undefined`. Source objects are applied from left to right. + * Once a property is set, additional values of the same property are ignored. + * + * **Note:** This method mutates `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.defaultsDeep + * @example + * + * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */ + 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; + }); + + /** + * Checks if `path` is a direct property of `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + * @example + * + * var object = { 'a': { 'b': 2 } }; + * var other = _.create({ 'a': _.create({ 'b': 2 }) }); + * + * _.has(object, 'a'); + * // => true + * + * _.has(object, 'a.b'); + * // => true + * + * _.has(object, ['a', 'b']); + * // => true + * + * _.has(other, 'a'); + * // => false + */ + function has(object, path) { + return object != null && hasOwnProperty.call(object, path); + } + + /** + * Creates an array of the own enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. See the + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * for more details. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keys(new Foo); + * // => ['a', 'b'] (iteration order is not guaranteed) + * + * _.keys('hi'); + * // => ['0', '1'] + */ + var keys = nativeKeys; + + /** + * Creates an array of the own and inherited enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keysIn(new Foo); + * // => ['a', 'b', 'c'] (iteration order is not guaranteed) + */ + var keysIn = nativeKeysIn; + + /** + * Creates an object composed of the picked `object` properties. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The source object. + * @param {...(string|string[])} [paths] The property paths to pick. + * @returns {Object} Returns the new object. + * @example + * + * var object = { 'a': 1, 'b': '2', 'c': 3 }; + * + * _.pick(object, ['a', 'c']); + * // => { 'a': 1, 'c': 3 } + */ + var pick = flatRest(function(object, paths) { + return object == null ? {} : basePick(object, paths); + }); + + /** + * This method is like `_.get` except that if the resolved value is a + * function it's invoked with the `this` binding of its parent object and + * its result is returned. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to resolve. + * @param {*} [defaultValue] The value returned for `undefined` resolved values. + * @returns {*} Returns the resolved value. + * @example + * + * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] }; + * + * _.result(object, 'a[0].b.c1'); + * // => 3 + * + * _.result(object, 'a[0].b.c2'); + * // => 4 + * + * _.result(object, 'a[0].b.c3', 'default'); + * // => 'default' + * + * _.result(object, 'a[0].b.c3', _.constant('default')); + * // => 'default' + */ + function result(object, path, defaultValue) { + var value = object == null ? undefined : object[path]; + if (value === undefined) { + value = defaultValue; + } + return isFunction(value) ? value.call(object) : value; + } + + /** + * Creates an array of the own enumerable string keyed property values of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property values. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.values(new Foo); + * // => [1, 2] (iteration order is not guaranteed) + * + * _.values('hi'); + * // => ['h', 'i'] + */ + function values(object) { + return object == null ? [] : baseValues(object, keys(object)); + } + + /*------------------------------------------------------------------------*/ + + /** + * Converts the characters "&", "<", ">", '"', and "'" in `string` to their + * corresponding HTML entities. + * + * **Note:** No other characters are escaped. To escape additional + * characters use a third-party library like [_he_](https://mths.be/he). + * + * Though the ">" character is escaped for symmetry, characters like + * ">" and "/" don't need escaping in HTML and have no special meaning + * unless they're part of a tag or unquoted attribute value. See + * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands) + * (under "semi-related fun fact") for more details. + * + * When working with HTML you should always + * [quote attribute values](http://wonko.com/post/html-escaping) to reduce + * XSS vectors. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category String + * @param {string} [string=''] The string to escape. + * @returns {string} Returns the escaped string. + * @example + * + * _.escape('fred, barney, & pebbles'); + * // => 'fred, barney, & pebbles' + */ + function escape(string) { + string = toString(string); + return (string && reHasUnescapedHtml.test(string)) + ? string.replace(reUnescapedHtml, escapeHtmlChar) + : string; + } + + /*------------------------------------------------------------------------*/ + + /** + * This method returns the first argument it receives. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @param {*} value Any value. + * @returns {*} Returns `value`. + * @example + * + * var object = { 'a': 1 }; + * + * console.log(_.identity(object) === object); + * // => true + */ + function identity(value) { + return value; + } + + /** + * Creates a function that invokes `func` with the arguments of the created + * function. If `func` is a property name, the created function returns the + * property value for a given element. If `func` is an array or object, the + * created function returns `true` for elements that contain the equivalent + * source properties, otherwise it returns `false`. + * + * @static + * @since 4.0.0 + * @memberOf _ + * @category Util + * @param {*} [func=_.identity] The value to convert to a callback. + * @returns {Function} Returns the callback. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * // The `_.matches` iteratee shorthand. + * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true })); + * // => [{ 'user': 'barney', 'age': 36, 'active': true }] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.filter(users, _.iteratee(['user', 'fred'])); + * // => [{ 'user': 'fred', 'age': 40 }] + * + * // The `_.property` iteratee shorthand. + * _.map(users, _.iteratee('user')); + * // => ['barney', 'fred'] + * + * // Create custom iteratee shorthands. + * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) { + * return !_.isRegExp(func) ? iteratee(func) : function(string) { + * return func.test(string); + * }; + * }); + * + * _.filter(['abc', 'def'], /ef/); + * // => ['def'] + */ + var iteratee = baseIteratee; + + /** + * Creates a function that performs a partial deep comparison between a given + * object and `source`, returning `true` if the given object has equivalent + * property values, else `false`. + * + * **Note:** The created function is equivalent to `_.isMatch` with `source` + * partially applied. + * + * Partial comparisons will match empty array and empty object `source` + * values against any array or object value, respectively. See `_.isEqual` + * for a list of supported value comparisons. + * + * **Note:** Multiple values can be checked by combining several matchers + * using `_.overSome` + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Util + * @param {Object} source The object of property values to match. + * @returns {Function} Returns the new spec function. + * @example + * + * var objects = [ + * { 'a': 1, 'b': 2, 'c': 3 }, + * { 'a': 4, 'b': 5, 'c': 6 } + * ]; + * + * _.filter(objects, _.matches({ 'a': 4, 'c': 6 })); + * // => [{ 'a': 4, 'b': 5, 'c': 6 }] + * + * // Checking for several possible values + * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })])); + * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }] + */ + function matches(source) { + return baseMatches(assign({}, source)); + } + + /** + * Adds all own enumerable string keyed function properties of a source + * object to the destination object. If `object` is a function, then methods + * are added to its prototype as well. + * + * **Note:** Use `_.runInContext` to create a pristine `lodash` function to + * avoid conflicts caused by modifying the original. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @param {Function|Object} [object=lodash] The destination object. + * @param {Object} source The object of functions to add. + * @param {Object} [options={}] The options object. + * @param {boolean} [options.chain=true] Specify whether mixins are chainable. + * @returns {Function|Object} Returns `object`. + * @example + * + * function vowels(string) { + * return _.filter(string, function(v) { + * return /[aeiou]/i.test(v); + * }); + * } + * + * _.mixin({ 'vowels': vowels }); + * _.vowels('fred'); + * // => ['e'] + * + * _('fred').vowels().value(); + * // => ['e'] + * + * _.mixin({ 'vowels': vowels }, { 'chain': false }); + * _('fred').vowels(); + * // => ['e'] + */ + function mixin(object, source, options) { + var props = keys(source), + methodNames = baseFunctions(source, props); + + if (options == null && + !(isObject(source) && (methodNames.length || !props.length))) { + options = source; + source = object; + object = this; + methodNames = baseFunctions(source, keys(source)); + } + var chain = !(isObject(options) && 'chain' in options) || !!options.chain, + isFunc = isFunction(object); + + baseEach(methodNames, function(methodName) { + var func = source[methodName]; + object[methodName] = func; + if (isFunc) { + object.prototype[methodName] = function() { + var chainAll = this.__chain__; + if (chain || chainAll) { + var result = object(this.__wrapped__), + actions = result.__actions__ = copyArray(this.__actions__); + + actions.push({ 'func': func, 'args': arguments, 'thisArg': object }); + result.__chain__ = chainAll; + return result; + } + return func.apply(object, arrayPush([this.value()], arguments)); + }; + } + }); + + return object; + } + + /** + * Reverts the `_` variable to its previous value and returns a reference to + * the `lodash` function. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @returns {Function} Returns the `lodash` function. + * @example + * + * var lodash = _.noConflict(); + */ + function noConflict() { + if (root._ === this) { + root._ = oldDash; + } + return this; + } + + /** + * This method returns `undefined`. + * + * @static + * @memberOf _ + * @since 2.3.0 + * @category Util + * @example + * + * _.times(2, _.noop); + * // => [undefined, undefined] + */ + function noop() { + // No operation performed. + } + + /** + * Generates a unique ID. If `prefix` is given, the ID is appended to it. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @param {string} [prefix=''] The value to prefix the ID with. + * @returns {string} Returns the unique ID. + * @example + * + * _.uniqueId('contact_'); + * // => 'contact_104' + * + * _.uniqueId(); + * // => '105' + */ + function uniqueId(prefix) { + var id = ++idCounter; + return toString(prefix) + id; + } + + /*------------------------------------------------------------------------*/ + + /** + * Computes the maximum value of `array`. If `array` is empty or falsey, + * `undefined` is returned. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Math + * @param {Array} array The array to iterate over. + * @returns {*} Returns the maximum value. + * @example + * + * _.max([4, 2, 8, 6]); + * // => 8 + * + * _.max([]); + * // => undefined + */ + function max(array) { + return (array && array.length) + ? baseExtremum(array, identity, baseGt) + : undefined; + } + + /** + * Computes the minimum value of `array`. If `array` is empty or falsey, + * `undefined` is returned. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Math + * @param {Array} array The array to iterate over. + * @returns {*} Returns the minimum value. + * @example + * + * _.min([4, 2, 8, 6]); + * // => 2 + * + * _.min([]); + * // => undefined + */ + function min(array) { + return (array && array.length) + ? baseExtremum(array, identity, baseLt) + : undefined; + } + + /*------------------------------------------------------------------------*/ + + // Add methods that return wrapped values in chain sequences. + lodash.assignIn = assignIn; + lodash.before = before; + lodash.bind = bind; + lodash.chain = chain; + lodash.compact = compact; + lodash.concat = concat; + lodash.create = create; + lodash.defaults = defaults; + lodash.defer = defer; + lodash.delay = delay; + lodash.filter = filter; + lodash.flatten = flatten; + lodash.flattenDeep = flattenDeep; + lodash.iteratee = iteratee; + lodash.keys = keys; + lodash.map = map; + lodash.matches = matches; + lodash.mixin = mixin; + lodash.negate = negate; + lodash.once = once; + lodash.pick = pick; + lodash.slice = slice; + lodash.sortBy = sortBy; + lodash.tap = tap; + lodash.thru = thru; + lodash.toArray = toArray; + lodash.values = values; + + // Add aliases. + lodash.extend = assignIn; + + // Add methods to `lodash.prototype`. + mixin(lodash, lodash); + + /*------------------------------------------------------------------------*/ + + // Add methods that return unwrapped values in chain sequences. + lodash.clone = clone; + lodash.escape = escape; + lodash.every = every; + lodash.find = find; + lodash.forEach = forEach; + lodash.has = has; + lodash.head = head; + lodash.identity = identity; + lodash.indexOf = indexOf; + lodash.isArguments = isArguments; + lodash.isArray = isArray; + lodash.isBoolean = isBoolean; + lodash.isDate = isDate; + lodash.isEmpty = isEmpty; + lodash.isEqual = isEqual; + lodash.isFinite = isFinite; + lodash.isFunction = isFunction; + lodash.isNaN = isNaN; + lodash.isNull = isNull; + lodash.isNumber = isNumber; + lodash.isObject = isObject; + lodash.isRegExp = isRegExp; + lodash.isString = isString; + lodash.isUndefined = isUndefined; + lodash.last = last; + lodash.max = max; + lodash.min = min; + lodash.noConflict = noConflict; + lodash.noop = noop; + lodash.reduce = reduce; + lodash.result = result; + lodash.size = size; + lodash.some = some; + lodash.uniqueId = uniqueId; + + // Add aliases. + lodash.each = forEach; + lodash.first = head; + + mixin(lodash, (function() { + var source = {}; + baseForOwn(lodash, function(func, methodName) { + if (!hasOwnProperty.call(lodash.prototype, methodName)) { + source[methodName] = func; + } + }); + return source; + }()), { 'chain': false }); + + /*------------------------------------------------------------------------*/ + + /** + * The semantic version number. + * + * @static + * @memberOf _ + * @type {string} + */ + lodash.VERSION = VERSION; + + // Add `Array` methods to `lodash.prototype`. + baseEach(['pop', 'join', 'replace', 'reverse', 'split', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) { + var func = (/^(?:replace|split)$/.test(methodName) ? String.prototype : arrayProto)[methodName], + chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru', + retUnwrapped = /^(?:pop|join|replace|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); + }); + }; + }); + + // Add chain sequence methods to the `lodash` wrapper. + lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue; + + /*--------------------------------------------------------------------------*/ + + // Some AMD build optimizers, like r.js, check for condition patterns like: + if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { + // Expose Lodash on the global object to prevent errors when Lodash is + // loaded by a script tag in the presence of an AMD loader. + // See http://requirejs.org/docs/errors.html#mismatch for more details. + // Use `_.noConflict` to remove Lodash from the global object. + root._ = lodash; + + // Define as an anonymous module so, through path mapping, it can be + // referenced as the "underscore" module. + define(function() { + return lodash; + }); + } + // Check for `exports` after `define` in case a build optimizer adds it. + else if (freeModule) { + // Export for Node.js. + (freeModule.exports = lodash)._ = lodash; + // Export for CommonJS support. + freeExports._ = lodash; + } + else { + // Export to the global object. + root._ = lodash; + } +}.call(this)); diff --git a/node_modules/lodash/core.min.js b/node_modules/lodash/core.min.js new file mode 100644 index 0000000..e425e4d --- /dev/null +++ b/node_modules/lodash/core.min.js @@ -0,0 +1,29 @@ +/** + * @license + * Lodash (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE + * Build: `lodash core -o ./dist/lodash.core.js` + */ +;(function(){function n(n){return H(n)&&pn.call(n,"callee")&&!yn.call(n,"callee")}function t(n,t){return n.push.apply(n,t),n}function r(n){return function(t){return null==t?Z:t[n]}}function e(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function u(n,t){return j(t,function(t){return n[t]})}function o(n){return n instanceof i?n:new i(n)}function i(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function c(n,t,r){if(typeof n!="function")throw new TypeError("Expected a function"); +return setTimeout(function(){n.apply(Z,r)},t)}function f(n,t){var r=true;return mn(n,function(n,e,u){return r=!!t(n,e,u)}),r}function a(n,t,r){for(var e=-1,u=n.length;++et}function b(n,t,r,e,u){return n===t||(null==n||null==t||!H(n)&&!H(t)?n!==n&&t!==t:y(n,t,r,e,b,u))}function y(n,t,r,e,u,o){var i=Nn(n),c=Nn(t),f=i?"[object Array]":hn.call(n),a=c?"[object Array]":hn.call(t),f="[object Arguments]"==f?"[object Object]":f,a="[object Arguments]"==a?"[object Object]":a,l="[object Object]"==f,c="[object Object]"==a,a=f==a;o||(o=[]);var p=An(o,function(t){return t[0]==n}),s=An(o,function(n){ +return n[0]==t});if(p&&s)return p[1]==t;if(o.push([n,t]),o.push([t,n]),a&&!l){if(i)r=T(n,t,r,e,u,o);else n:{switch(f){case"[object Boolean]":case"[object Date]":case"[object Number]":r=J(+n,+t);break n;case"[object Error]":r=n.name==t.name&&n.message==t.message;break n;case"[object RegExp]":case"[object String]":r=n==t+"";break n}r=false}return o.pop(),r}return 1&r||(i=l&&pn.call(n,"__wrapped__"),f=c&&pn.call(t,"__wrapped__"),!i&&!f)?!!a&&(r=B(n,t,r,e,u,o),o.pop(),r):(i=i?n.value():n,f=f?t.value():t, +r=u(i,f,r,e,o),o.pop(),r)}function g(n){return typeof n=="function"?n:null==n?X:(typeof n=="object"?d:r)(n)}function _(n,t){return nt&&(t=-t>u?0:u+t),r=r>u?u:r,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Array(u);++ei))return false;var c=o.get(n),f=o.get(t);if(c&&f)return c==t&&f==n;for(var c=-1,f=true,a=2&r?[]:Z;++cr?jn(e+r,0):r:0,r=(r||0)-1;for(var u=t===t;++rarguments.length,mn); +}function G(n,t){var r;if(typeof t!="function")throw new TypeError("Expected a function");return n=Fn(n),function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=Z),r}}function J(n,t){return n===t||n!==n&&t!==t}function M(n){var t;return(t=null!=n)&&(t=n.length,t=typeof t=="number"&&-1=t),t&&!U(n)}function U(n){return!!V(n)&&(n=hn.call(n),"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n)}function V(n){var t=typeof n; +return null!=n&&("object"==t||"function"==t)}function H(n){return null!=n&&typeof n=="object"}function K(n){return typeof n=="number"||H(n)&&"[object Number]"==hn.call(n)}function L(n){return typeof n=="string"||!Nn(n)&&H(n)&&"[object String]"==hn.call(n)}function Q(n){return typeof n=="string"?n:null==n?"":n+""}function W(n){return null==n?[]:u(n,Dn(n))}function X(n){return n}function Y(n,r,e){var u=Dn(r),o=h(r,u);null!=e||V(r)&&(o.length||!u.length)||(e=r,r=n,n=this,o=h(r,Dn(r)));var i=!(V(e)&&"chain"in e&&!e.chain),c=U(n); +return mn(o,function(e){var u=r[e];n[e]=u,c&&(n.prototype[e]=function(){var r=this.__chain__;if(i||r){var e=n(this.__wrapped__);return(e.__actions__=A(this.__actions__)).push({func:u,args:arguments,thisArg:n}),e.__chain__=r,e}return u.apply(n,t([this.value()],arguments))})}),n}var Z,nn=1/0,tn=/[&<>"']/g,rn=RegExp(tn.source),en=/^(?:0|[1-9]\d*)$/,un=typeof self=="object"&&self&&self.Object===Object&&self,on=typeof global=="object"&&global&&global.Object===Object&&global||un||Function("return this")(),cn=(un=typeof exports=="object"&&exports&&!exports.nodeType&&exports)&&typeof module=="object"&&module&&!module.nodeType&&module,fn=function(n){ +return function(t){return null==n?Z:n[t]}}({"&":"&","<":"<",">":">",'"':""","'":"'"}),an=Array.prototype,ln=Object.prototype,pn=ln.hasOwnProperty,sn=0,hn=ln.toString,vn=on._,bn=Object.create,yn=ln.propertyIsEnumerable,gn=on.isFinite,_n=function(n,t){return function(r){return n(t(r))}}(Object.keys,Object),jn=Math.max,dn=function(){function n(){}return function(t){return V(t)?bn?bn(t):(n.prototype=t,t=new n,n.prototype=Z,t):{}}}();i.prototype=dn(o.prototype),i.prototype.constructor=i; +var mn=function(n,t){return function(r,e){if(null==r)return r;if(!M(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Object(r);(t?o--:++or&&(r=jn(e+r,0));n:{for(t=g(t),e=n.length,r+=-1;++re||o&&c&&a||!u&&a||!i){r=1;break n}if(!o&&r { '4': 1, '6': 2 } + * + * // The `_.property` iteratee shorthand. + * _.countBy(['one', 'two', 'three'], 'length'); + * // => { '3': 2, '5': 1 } + */ +var countBy = createAggregator(function(result, value, key) { + if (hasOwnProperty.call(result, key)) { + ++result[key]; + } else { + baseAssignValue(result, key, 1); + } +}); + +module.exports = countBy; diff --git a/node_modules/lodash/create.js b/node_modules/lodash/create.js new file mode 100644 index 0000000..919edb8 --- /dev/null +++ b/node_modules/lodash/create.js @@ -0,0 +1,43 @@ +var baseAssign = require('./_baseAssign'), + baseCreate = require('./_baseCreate'); + +/** + * Creates an object that inherits from the `prototype` object. If a + * `properties` object is given, its own enumerable string keyed properties + * are assigned to the created object. + * + * @static + * @memberOf _ + * @since 2.3.0 + * @category Object + * @param {Object} prototype The object to inherit from. + * @param {Object} [properties] The properties to assign to the object. + * @returns {Object} Returns the new object. + * @example + * + * function Shape() { + * this.x = 0; + * this.y = 0; + * } + * + * function Circle() { + * Shape.call(this); + * } + * + * Circle.prototype = _.create(Shape.prototype, { + * 'constructor': Circle + * }); + * + * var circle = new Circle; + * circle instanceof Circle; + * // => true + * + * circle instanceof Shape; + * // => true + */ +function create(prototype, properties) { + var result = baseCreate(prototype); + return properties == null ? result : baseAssign(result, properties); +} + +module.exports = create; diff --git a/node_modules/lodash/curry.js b/node_modules/lodash/curry.js new file mode 100644 index 0000000..918db1a --- /dev/null +++ b/node_modules/lodash/curry.js @@ -0,0 +1,57 @@ +var createWrap = require('./_createWrap'); + +/** Used to compose bitmasks for function metadata. */ +var WRAP_CURRY_FLAG = 8; + +/** + * Creates a function that accepts arguments of `func` and either invokes + * `func` returning its result, if at least `arity` number of arguments have + * been provided, or returns a function that accepts the remaining `func` + * arguments, and so on. The arity of `func` may be specified if `func.length` + * is not sufficient. + * + * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds, + * may be used as a placeholder for provided arguments. + * + * **Note:** This method doesn't set the "length" property of curried functions. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Function + * @param {Function} func The function to curry. + * @param {number} [arity=func.length] The arity of `func`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Function} Returns the new curried function. + * @example + * + * var abc = function(a, b, c) { + * return [a, b, c]; + * }; + * + * var curried = _.curry(abc); + * + * curried(1)(2)(3); + * // => [1, 2, 3] + * + * curried(1, 2)(3); + * // => [1, 2, 3] + * + * curried(1, 2, 3); + * // => [1, 2, 3] + * + * // Curried with placeholders. + * curried(1)(_, 3)(2); + * // => [1, 2, 3] + */ +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; +} + +// Assign default placeholders. +curry.placeholder = {}; + +module.exports = curry; diff --git a/node_modules/lodash/curryRight.js b/node_modules/lodash/curryRight.js new file mode 100644 index 0000000..c85b6f3 --- /dev/null +++ b/node_modules/lodash/curryRight.js @@ -0,0 +1,54 @@ +var createWrap = require('./_createWrap'); + +/** Used to compose bitmasks for function metadata. */ +var WRAP_CURRY_RIGHT_FLAG = 16; + +/** + * This method is like `_.curry` except that arguments are applied to `func` + * in the manner of `_.partialRight` instead of `_.partial`. + * + * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic + * builds, may be used as a placeholder for provided arguments. + * + * **Note:** This method doesn't set the "length" property of curried functions. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {Function} func The function to curry. + * @param {number} [arity=func.length] The arity of `func`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Function} Returns the new curried function. + * @example + * + * var abc = function(a, b, c) { + * return [a, b, c]; + * }; + * + * var curried = _.curryRight(abc); + * + * curried(3)(2)(1); + * // => [1, 2, 3] + * + * curried(2, 3)(1); + * // => [1, 2, 3] + * + * curried(1, 2, 3); + * // => [1, 2, 3] + * + * // Curried with placeholders. + * curried(3)(1, _)(2); + * // => [1, 2, 3] + */ +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; +} + +// Assign default placeholders. +curryRight.placeholder = {}; + +module.exports = curryRight; diff --git a/node_modules/lodash/date.js b/node_modules/lodash/date.js new file mode 100644 index 0000000..cbf5b41 --- /dev/null +++ b/node_modules/lodash/date.js @@ -0,0 +1,3 @@ +module.exports = { + 'now': require('./now') +}; diff --git a/node_modules/lodash/debounce.js b/node_modules/lodash/debounce.js new file mode 100644 index 0000000..8f751d5 --- /dev/null +++ b/node_modules/lodash/debounce.js @@ -0,0 +1,191 @@ +var isObject = require('./isObject'), + now = require('./now'), + toNumber = require('./toNumber'); + +/** Error message constants. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max, + nativeMin = Math.min; + +/** + * Creates a debounced function that delays invoking `func` until after `wait` + * milliseconds have elapsed since the last time the debounced function was + * invoked. The debounced function comes with a `cancel` method to cancel + * delayed `func` invocations and a `flush` method to immediately invoke them. + * Provide `options` to indicate whether `func` should be invoked on the + * leading and/or trailing edge of the `wait` timeout. The `func` is invoked + * with the last arguments provided to the debounced function. Subsequent + * calls to the debounced function return the result of the last `func` + * invocation. + * + * **Note:** If `leading` and `trailing` options are `true`, `func` is + * invoked on the trailing edge of the timeout only if the debounced function + * is invoked more than once during the `wait` timeout. + * + * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred + * until to the next tick, similar to `setTimeout` with a timeout of `0`. + * + * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) + * for details over the differences between `_.debounce` and `_.throttle`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to debounce. + * @param {number} [wait=0] The number of milliseconds to delay. + * @param {Object} [options={}] The options object. + * @param {boolean} [options.leading=false] + * Specify invoking on the leading edge of the timeout. + * @param {number} [options.maxWait] + * The maximum time `func` is allowed to be delayed before it's invoked. + * @param {boolean} [options.trailing=true] + * Specify invoking on the trailing edge of the timeout. + * @returns {Function} Returns the new debounced function. + * @example + * + * // Avoid costly calculations while the window size is in flux. + * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); + * + * // Invoke `sendMail` when clicked, debouncing subsequent calls. + * jQuery(element).on('click', _.debounce(sendMail, 300, { + * 'leading': true, + * 'trailing': false + * })); + * + * // Ensure `batchLog` is invoked once after 1 second of debounced calls. + * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 }); + * var source = new EventSource('/stream'); + * jQuery(source).on('message', debounced); + * + * // Cancel the trailing debounced invocation. + * jQuery(window).on('popstate', debounced.cancel); + */ +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. + lastInvokeTime = time; + // Start the timer for the trailing edge. + timerId = setTimeout(timerExpired, wait); + // Invoke the leading edge. + 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 + // trailing edge, the system time has gone backwards and we're treating + // it as the trailing edge, or we've hit the `maxWait` limit. + return (lastCallTime === undefined || (timeSinceLastCall >= wait) || + (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait)); + } + + function timerExpired() { + var time = now(); + if (shouldInvoke(time)) { + return trailingEdge(time); + } + // Restart the timer. + timerId = setTimeout(timerExpired, remainingWait(time)); + } + + function trailingEdge(time) { + timerId = undefined; + + // Only invoke if we have `lastArgs` which means `func` has been + // debounced at least once. + 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. + 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; +} + +module.exports = debounce; diff --git a/node_modules/lodash/deburr.js b/node_modules/lodash/deburr.js new file mode 100644 index 0000000..f85e314 --- /dev/null +++ b/node_modules/lodash/deburr.js @@ -0,0 +1,45 @@ +var deburrLetter = require('./_deburrLetter'), + toString = require('./toString'); + +/** Used to match Latin Unicode letters (excluding mathematical operators). */ +var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; + +/** Used to compose unicode character classes. */ +var rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange; + +/** Used to compose unicode capture groups. */ +var rsCombo = '[' + rsComboRange + ']'; + +/** + * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and + * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols). + */ +var reComboMark = RegExp(rsCombo, 'g'); + +/** + * Deburrs `string` by converting + * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) + * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A) + * letters to basic Latin letters and removing + * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to deburr. + * @returns {string} Returns the deburred string. + * @example + * + * _.deburr('déjà vu'); + * // => 'deja vu' + */ +function deburr(string) { + string = toString(string); + return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ''); +} + +module.exports = deburr; diff --git a/node_modules/lodash/defaultTo.js b/node_modules/lodash/defaultTo.js new file mode 100644 index 0000000..5b33359 --- /dev/null +++ b/node_modules/lodash/defaultTo.js @@ -0,0 +1,25 @@ +/** + * Checks `value` to determine whether a default value should be returned in + * its place. The `defaultValue` is returned if `value` is `NaN`, `null`, + * or `undefined`. + * + * @static + * @memberOf _ + * @since 4.14.0 + * @category Util + * @param {*} value The value to check. + * @param {*} defaultValue The default value. + * @returns {*} Returns the resolved value. + * @example + * + * _.defaultTo(1, 10); + * // => 1 + * + * _.defaultTo(undefined, 10); + * // => 10 + */ +function defaultTo(value, defaultValue) { + return (value == null || value !== value) ? defaultValue : value; +} + +module.exports = defaultTo; diff --git a/node_modules/lodash/defaults.js b/node_modules/lodash/defaults.js new file mode 100644 index 0000000..c74df04 --- /dev/null +++ b/node_modules/lodash/defaults.js @@ -0,0 +1,64 @@ +var baseRest = require('./_baseRest'), + eq = require('./eq'), + isIterateeCall = require('./_isIterateeCall'), + keysIn = require('./keysIn'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Assigns own and inherited enumerable string keyed properties of source + * objects to the destination object for all destination properties that + * resolve to `undefined`. Source objects are applied from left to right. + * Once a property is set, additional values of the same property are ignored. + * + * **Note:** This method mutates `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.defaultsDeep + * @example + * + * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */ +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; +}); + +module.exports = defaults; diff --git a/node_modules/lodash/defaultsDeep.js b/node_modules/lodash/defaultsDeep.js new file mode 100644 index 0000000..9b5fa3e --- /dev/null +++ b/node_modules/lodash/defaultsDeep.js @@ -0,0 +1,30 @@ +var apply = require('./_apply'), + baseRest = require('./_baseRest'), + customDefaultsMerge = require('./_customDefaultsMerge'), + mergeWith = require('./mergeWith'); + +/** + * This method is like `_.defaults` except that it recursively assigns + * default properties. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 3.10.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.defaults + * @example + * + * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); + * // => { 'a': { 'b': 2, 'c': 3 } } + */ +var defaultsDeep = baseRest(function(args) { + args.push(undefined, customDefaultsMerge); + return apply(mergeWith, undefined, args); +}); + +module.exports = defaultsDeep; diff --git a/node_modules/lodash/defer.js b/node_modules/lodash/defer.js new file mode 100644 index 0000000..f6d6c6f --- /dev/null +++ b/node_modules/lodash/defer.js @@ -0,0 +1,26 @@ +var baseDelay = require('./_baseDelay'), + baseRest = require('./_baseRest'); + +/** + * Defers invoking the `func` until the current call stack has cleared. Any + * additional arguments are provided to `func` when it's invoked. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to defer. + * @param {...*} [args] The arguments to invoke `func` with. + * @returns {number} Returns the timer id. + * @example + * + * _.defer(function(text) { + * console.log(text); + * }, 'deferred'); + * // => Logs 'deferred' after one millisecond. + */ +var defer = baseRest(function(func, args) { + return baseDelay(func, 1, args); +}); + +module.exports = defer; diff --git a/node_modules/lodash/delay.js b/node_modules/lodash/delay.js new file mode 100644 index 0000000..bd55479 --- /dev/null +++ b/node_modules/lodash/delay.js @@ -0,0 +1,28 @@ +var baseDelay = require('./_baseDelay'), + baseRest = require('./_baseRest'), + toNumber = require('./toNumber'); + +/** + * Invokes `func` after `wait` milliseconds. Any additional arguments are + * provided to `func` when it's invoked. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to delay. + * @param {number} wait The number of milliseconds to delay invocation. + * @param {...*} [args] The arguments to invoke `func` with. + * @returns {number} Returns the timer id. + * @example + * + * _.delay(function(text) { + * console.log(text); + * }, 1000, 'later'); + * // => Logs 'later' after one second. + */ +var delay = baseRest(function(func, wait, args) { + return baseDelay(func, toNumber(wait) || 0, args); +}); + +module.exports = delay; diff --git a/node_modules/lodash/difference.js b/node_modules/lodash/difference.js new file mode 100644 index 0000000..fa28bb3 --- /dev/null +++ b/node_modules/lodash/difference.js @@ -0,0 +1,33 @@ +var baseDifference = require('./_baseDifference'), + baseFlatten = require('./_baseFlatten'), + baseRest = require('./_baseRest'), + isArrayLikeObject = require('./isArrayLikeObject'); + +/** + * Creates an array of `array` values not included in the other given arrays + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. The order and references of result values are + * determined by the first array. + * + * **Note:** Unlike `_.pullAll`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...Array} [values] The values to exclude. + * @returns {Array} Returns the new array of filtered values. + * @see _.without, _.xor + * @example + * + * _.difference([2, 1], [2, 3]); + * // => [1] + */ +var difference = baseRest(function(array, values) { + return isArrayLikeObject(array) + ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) + : []; +}); + +module.exports = difference; diff --git a/node_modules/lodash/differenceBy.js b/node_modules/lodash/differenceBy.js new file mode 100644 index 0000000..2cd63e7 --- /dev/null +++ b/node_modules/lodash/differenceBy.js @@ -0,0 +1,44 @@ +var baseDifference = require('./_baseDifference'), + baseFlatten = require('./_baseFlatten'), + baseIteratee = require('./_baseIteratee'), + baseRest = require('./_baseRest'), + isArrayLikeObject = require('./isArrayLikeObject'), + last = require('./last'); + +/** + * This method is like `_.difference` except that it accepts `iteratee` which + * is invoked for each element of `array` and `values` to generate the criterion + * by which they're compared. The order and references of result values are + * determined by the first array. The iteratee is invoked with one argument: + * (value). + * + * **Note:** Unlike `_.pullAllBy`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...Array} [values] The values to exclude. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor); + * // => [1.2] + * + * // The `_.property` iteratee shorthand. + * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x'); + * // => [{ 'x': 2 }] + */ +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), baseIteratee(iteratee, 2)) + : []; +}); + +module.exports = differenceBy; diff --git a/node_modules/lodash/differenceWith.js b/node_modules/lodash/differenceWith.js new file mode 100644 index 0000000..c0233f4 --- /dev/null +++ b/node_modules/lodash/differenceWith.js @@ -0,0 +1,40 @@ +var baseDifference = require('./_baseDifference'), + baseFlatten = require('./_baseFlatten'), + baseRest = require('./_baseRest'), + isArrayLikeObject = require('./isArrayLikeObject'), + last = require('./last'); + +/** + * This method is like `_.difference` except that it accepts `comparator` + * which is invoked to compare elements of `array` to `values`. The order and + * references of result values are determined by the first array. The comparator + * is invoked with two arguments: (arrVal, othVal). + * + * **Note:** Unlike `_.pullAllWith`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...Array} [values] The values to exclude. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; + * + * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual); + * // => [{ 'x': 2, 'y': 1 }] + */ +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) + : []; +}); + +module.exports = differenceWith; diff --git a/node_modules/lodash/divide.js b/node_modules/lodash/divide.js new file mode 100644 index 0000000..8cae0cd --- /dev/null +++ b/node_modules/lodash/divide.js @@ -0,0 +1,22 @@ +var createMathOperation = require('./_createMathOperation'); + +/** + * Divide two numbers. + * + * @static + * @memberOf _ + * @since 4.7.0 + * @category Math + * @param {number} dividend The first number in a division. + * @param {number} divisor The second number in a division. + * @returns {number} Returns the quotient. + * @example + * + * _.divide(6, 4); + * // => 1.5 + */ +var divide = createMathOperation(function(dividend, divisor) { + return dividend / divisor; +}, 1); + +module.exports = divide; diff --git a/node_modules/lodash/drop.js b/node_modules/lodash/drop.js new file mode 100644 index 0000000..d5c3cba --- /dev/null +++ b/node_modules/lodash/drop.js @@ -0,0 +1,38 @@ +var baseSlice = require('./_baseSlice'), + toInteger = require('./toInteger'); + +/** + * Creates a slice of `array` with `n` elements dropped from the beginning. + * + * @static + * @memberOf _ + * @since 0.5.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=1] The number of elements to drop. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.drop([1, 2, 3]); + * // => [2, 3] + * + * _.drop([1, 2, 3], 2); + * // => [3] + * + * _.drop([1, 2, 3], 5); + * // => [] + * + * _.drop([1, 2, 3], 0); + * // => [1, 2, 3] + */ +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); +} + +module.exports = drop; diff --git a/node_modules/lodash/dropRight.js b/node_modules/lodash/dropRight.js new file mode 100644 index 0000000..441fe99 --- /dev/null +++ b/node_modules/lodash/dropRight.js @@ -0,0 +1,39 @@ +var baseSlice = require('./_baseSlice'), + toInteger = require('./toInteger'); + +/** + * Creates a slice of `array` with `n` elements dropped from the end. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=1] The number of elements to drop. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.dropRight([1, 2, 3]); + * // => [1, 2] + * + * _.dropRight([1, 2, 3], 2); + * // => [1] + * + * _.dropRight([1, 2, 3], 5); + * // => [] + * + * _.dropRight([1, 2, 3], 0); + * // => [1, 2, 3] + */ +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); +} + +module.exports = dropRight; diff --git a/node_modules/lodash/dropRightWhile.js b/node_modules/lodash/dropRightWhile.js new file mode 100644 index 0000000..9ad36a0 --- /dev/null +++ b/node_modules/lodash/dropRightWhile.js @@ -0,0 +1,45 @@ +var baseIteratee = require('./_baseIteratee'), + baseWhile = require('./_baseWhile'); + +/** + * Creates a slice of `array` excluding elements dropped from the end. + * Elements are dropped until `predicate` returns falsey. The predicate is + * invoked with three arguments: (value, index, array). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the slice of `array`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': true }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': false } + * ]; + * + * _.dropRightWhile(users, function(o) { return !o.active; }); + * // => objects for ['barney'] + * + * // The `_.matches` iteratee shorthand. + * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false }); + * // => objects for ['barney', 'fred'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.dropRightWhile(users, ['active', false]); + * // => objects for ['barney'] + * + * // The `_.property` iteratee shorthand. + * _.dropRightWhile(users, 'active'); + * // => objects for ['barney', 'fred', 'pebbles'] + */ +function dropRightWhile(array, predicate) { + return (array && array.length) + ? baseWhile(array, baseIteratee(predicate, 3), true, true) + : []; +} + +module.exports = dropRightWhile; diff --git a/node_modules/lodash/dropWhile.js b/node_modules/lodash/dropWhile.js new file mode 100644 index 0000000..903ef56 --- /dev/null +++ b/node_modules/lodash/dropWhile.js @@ -0,0 +1,45 @@ +var baseIteratee = require('./_baseIteratee'), + baseWhile = require('./_baseWhile'); + +/** + * Creates a slice of `array` excluding elements dropped from the beginning. + * Elements are dropped until `predicate` returns falsey. The predicate is + * invoked with three arguments: (value, index, array). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the slice of `array`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': false }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': true } + * ]; + * + * _.dropWhile(users, function(o) { return !o.active; }); + * // => objects for ['pebbles'] + * + * // The `_.matches` iteratee shorthand. + * _.dropWhile(users, { 'user': 'barney', 'active': false }); + * // => objects for ['fred', 'pebbles'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.dropWhile(users, ['active', false]); + * // => objects for ['pebbles'] + * + * // The `_.property` iteratee shorthand. + * _.dropWhile(users, 'active'); + * // => objects for ['barney', 'fred', 'pebbles'] + */ +function dropWhile(array, predicate) { + return (array && array.length) + ? baseWhile(array, baseIteratee(predicate, 3), true) + : []; +} + +module.exports = dropWhile; diff --git a/node_modules/lodash/each.js b/node_modules/lodash/each.js new file mode 100644 index 0000000..8800f42 --- /dev/null +++ b/node_modules/lodash/each.js @@ -0,0 +1 @@ +module.exports = require('./forEach'); diff --git a/node_modules/lodash/eachRight.js b/node_modules/lodash/eachRight.js new file mode 100644 index 0000000..3252b2a --- /dev/null +++ b/node_modules/lodash/eachRight.js @@ -0,0 +1 @@ +module.exports = require('./forEachRight'); diff --git a/node_modules/lodash/endsWith.js b/node_modules/lodash/endsWith.js new file mode 100644 index 0000000..76fc866 --- /dev/null +++ b/node_modules/lodash/endsWith.js @@ -0,0 +1,43 @@ +var baseClamp = require('./_baseClamp'), + baseToString = require('./_baseToString'), + toInteger = require('./toInteger'), + toString = require('./toString'); + +/** + * Checks if `string` ends with the given target string. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to inspect. + * @param {string} [target] The string to search for. + * @param {number} [position=string.length] The position to search up to. + * @returns {boolean} Returns `true` if `string` ends with `target`, + * else `false`. + * @example + * + * _.endsWith('abc', 'c'); + * // => true + * + * _.endsWith('abc', 'b'); + * // => false + * + * _.endsWith('abc', 'b', 2); + * // => true + */ +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; +} + +module.exports = endsWith; diff --git a/node_modules/lodash/entries.js b/node_modules/lodash/entries.js new file mode 100644 index 0000000..7a88df2 --- /dev/null +++ b/node_modules/lodash/entries.js @@ -0,0 +1 @@ +module.exports = require('./toPairs'); diff --git a/node_modules/lodash/entriesIn.js b/node_modules/lodash/entriesIn.js new file mode 100644 index 0000000..f6c6331 --- /dev/null +++ b/node_modules/lodash/entriesIn.js @@ -0,0 +1 @@ +module.exports = require('./toPairsIn'); diff --git a/node_modules/lodash/eq.js b/node_modules/lodash/eq.js new file mode 100644 index 0000000..a940688 --- /dev/null +++ b/node_modules/lodash/eq.js @@ -0,0 +1,37 @@ +/** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ +function eq(value, other) { + return value === other || (value !== value && other !== other); +} + +module.exports = eq; diff --git a/node_modules/lodash/escape.js b/node_modules/lodash/escape.js new file mode 100644 index 0000000..9247e00 --- /dev/null +++ b/node_modules/lodash/escape.js @@ -0,0 +1,43 @@ +var escapeHtmlChar = require('./_escapeHtmlChar'), + toString = require('./toString'); + +/** Used to match HTML entities and HTML characters. */ +var reUnescapedHtml = /[&<>"']/g, + reHasUnescapedHtml = RegExp(reUnescapedHtml.source); + +/** + * Converts the characters "&", "<", ">", '"', and "'" in `string` to their + * corresponding HTML entities. + * + * **Note:** No other characters are escaped. To escape additional + * characters use a third-party library like [_he_](https://mths.be/he). + * + * Though the ">" character is escaped for symmetry, characters like + * ">" and "/" don't need escaping in HTML and have no special meaning + * unless they're part of a tag or unquoted attribute value. See + * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands) + * (under "semi-related fun fact") for more details. + * + * When working with HTML you should always + * [quote attribute values](http://wonko.com/post/html-escaping) to reduce + * XSS vectors. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category String + * @param {string} [string=''] The string to escape. + * @returns {string} Returns the escaped string. + * @example + * + * _.escape('fred, barney, & pebbles'); + * // => 'fred, barney, & pebbles' + */ +function escape(string) { + string = toString(string); + return (string && reHasUnescapedHtml.test(string)) + ? string.replace(reUnescapedHtml, escapeHtmlChar) + : string; +} + +module.exports = escape; diff --git a/node_modules/lodash/escapeRegExp.js b/node_modules/lodash/escapeRegExp.js new file mode 100644 index 0000000..0a58c69 --- /dev/null +++ b/node_modules/lodash/escapeRegExp.js @@ -0,0 +1,32 @@ +var toString = require('./toString'); + +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, + reHasRegExpChar = RegExp(reRegExpChar.source); + +/** + * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+", + * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to escape. + * @returns {string} Returns the escaped string. + * @example + * + * _.escapeRegExp('[lodash](https://lodash.com/)'); + * // => '\[lodash\]\(https://lodash\.com/\)' + */ +function escapeRegExp(string) { + string = toString(string); + return (string && reHasRegExpChar.test(string)) + ? string.replace(reRegExpChar, '\\$&') + : string; +} + +module.exports = escapeRegExp; diff --git a/node_modules/lodash/every.js b/node_modules/lodash/every.js new file mode 100644 index 0000000..25080da --- /dev/null +++ b/node_modules/lodash/every.js @@ -0,0 +1,56 @@ +var arrayEvery = require('./_arrayEvery'), + baseEvery = require('./_baseEvery'), + baseIteratee = require('./_baseIteratee'), + isArray = require('./isArray'), + isIterateeCall = require('./_isIterateeCall'); + +/** + * Checks if `predicate` returns truthy for **all** elements of `collection`. + * Iteration is stopped once `predicate` returns falsey. The predicate is + * invoked with three arguments: (value, index|key, collection). + * + * **Note:** This method returns `true` for + * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because + * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of + * elements of empty collections. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false`. + * @example + * + * _.every([true, 1, null, 'yes'], Boolean); + * // => false + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': false }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * // The `_.matches` iteratee shorthand. + * _.every(users, { 'user': 'barney', 'active': false }); + * // => false + * + * // The `_.matchesProperty` iteratee shorthand. + * _.every(users, ['active', false]); + * // => true + * + * // The `_.property` iteratee shorthand. + * _.every(users, 'active'); + * // => false + */ +function every(collection, predicate, guard) { + var func = isArray(collection) ? arrayEvery : baseEvery; + if (guard && isIterateeCall(collection, predicate, guard)) { + predicate = undefined; + } + return func(collection, baseIteratee(predicate, 3)); +} + +module.exports = every; diff --git a/node_modules/lodash/extend.js b/node_modules/lodash/extend.js new file mode 100644 index 0000000..e00166c --- /dev/null +++ b/node_modules/lodash/extend.js @@ -0,0 +1 @@ +module.exports = require('./assignIn'); diff --git a/node_modules/lodash/extendWith.js b/node_modules/lodash/extendWith.js new file mode 100644 index 0000000..dbdcb3b --- /dev/null +++ b/node_modules/lodash/extendWith.js @@ -0,0 +1 @@ +module.exports = require('./assignInWith'); diff --git a/node_modules/lodash/fill.js b/node_modules/lodash/fill.js new file mode 100644 index 0000000..ae13aa1 --- /dev/null +++ b/node_modules/lodash/fill.js @@ -0,0 +1,45 @@ +var baseFill = require('./_baseFill'), + isIterateeCall = require('./_isIterateeCall'); + +/** + * Fills elements of `array` with `value` from `start` up to, but not + * including, `end`. + * + * **Note:** This method mutates `array`. + * + * @static + * @memberOf _ + * @since 3.2.0 + * @category Array + * @param {Array} array The array to fill. + * @param {*} value The value to fill `array` with. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns `array`. + * @example + * + * var array = [1, 2, 3]; + * + * _.fill(array, 'a'); + * console.log(array); + * // => ['a', 'a', 'a'] + * + * _.fill(Array(3), 2); + * // => [2, 2, 2] + * + * _.fill([4, 6, 8, 10], '*', 1, 3); + * // => [4, '*', '*', 10] + */ +function fill(array, value, start, end) { + var length = array == null ? 0 : array.length; + if (!length) { + return []; + } + if (start && typeof start != 'number' && isIterateeCall(array, value, start)) { + start = 0; + end = length; + } + return baseFill(array, value, start, end); +} + +module.exports = fill; diff --git a/node_modules/lodash/filter.js b/node_modules/lodash/filter.js new file mode 100644 index 0000000..89e0c8c --- /dev/null +++ b/node_modules/lodash/filter.js @@ -0,0 +1,52 @@ +var arrayFilter = require('./_arrayFilter'), + baseFilter = require('./_baseFilter'), + baseIteratee = require('./_baseIteratee'), + isArray = require('./isArray'); + +/** + * Iterates over elements of `collection`, returning an array of all elements + * `predicate` returns truthy for. The predicate is invoked with three + * arguments: (value, index|key, collection). + * + * **Note:** Unlike `_.remove`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + * @see _.reject + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * _.filter(users, function(o) { return !o.active; }); + * // => objects for ['fred'] + * + * // The `_.matches` iteratee shorthand. + * _.filter(users, { 'age': 36, 'active': true }); + * // => objects for ['barney'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.filter(users, ['active', false]); + * // => objects for ['fred'] + * + * // The `_.property` iteratee shorthand. + * _.filter(users, 'active'); + * // => objects for ['barney'] + * + * // Combining several predicates using `_.overEvery` or `_.overSome`. + * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]])); + * // => objects for ['fred', 'barney'] + */ +function filter(collection, predicate) { + var func = isArray(collection) ? arrayFilter : baseFilter; + return func(collection, baseIteratee(predicate, 3)); +} + +module.exports = filter; diff --git a/node_modules/lodash/find.js b/node_modules/lodash/find.js new file mode 100644 index 0000000..de732cc --- /dev/null +++ b/node_modules/lodash/find.js @@ -0,0 +1,42 @@ +var createFind = require('./_createFind'), + findIndex = require('./findIndex'); + +/** + * Iterates over elements of `collection`, returning the first element + * `predicate` returns truthy for. The predicate is invoked with three + * arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=0] The index to search from. + * @returns {*} Returns the matched element, else `undefined`. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false }, + * { 'user': 'pebbles', 'age': 1, 'active': true } + * ]; + * + * _.find(users, function(o) { return o.age < 40; }); + * // => object for 'barney' + * + * // The `_.matches` iteratee shorthand. + * _.find(users, { 'age': 1, 'active': true }); + * // => object for 'pebbles' + * + * // The `_.matchesProperty` iteratee shorthand. + * _.find(users, ['active', false]); + * // => object for 'fred' + * + * // The `_.property` iteratee shorthand. + * _.find(users, 'active'); + * // => object for 'barney' + */ +var find = createFind(findIndex); + +module.exports = find; diff --git a/node_modules/lodash/findIndex.js b/node_modules/lodash/findIndex.js new file mode 100644 index 0000000..4689069 --- /dev/null +++ b/node_modules/lodash/findIndex.js @@ -0,0 +1,55 @@ +var baseFindIndex = require('./_baseFindIndex'), + baseIteratee = require('./_baseIteratee'), + toInteger = require('./toInteger'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * This method is like `_.find` except that it returns the index of the first + * element `predicate` returns truthy for instead of the element itself. + * + * @static + * @memberOf _ + * @since 1.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=0] The index to search from. + * @returns {number} Returns the index of the found element, else `-1`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': false }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': true } + * ]; + * + * _.findIndex(users, function(o) { return o.user == 'barney'; }); + * // => 0 + * + * // The `_.matches` iteratee shorthand. + * _.findIndex(users, { 'user': 'fred', 'active': false }); + * // => 1 + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findIndex(users, ['active', false]); + * // => 0 + * + * // The `_.property` iteratee shorthand. + * _.findIndex(users, 'active'); + * // => 2 + */ +function findIndex(array, predicate, fromIndex) { + var length = array == null ? 0 : array.length; + if (!length) { + return -1; + } + var index = fromIndex == null ? 0 : toInteger(fromIndex); + if (index < 0) { + index = nativeMax(length + index, 0); + } + return baseFindIndex(array, baseIteratee(predicate, 3), index); +} + +module.exports = findIndex; diff --git a/node_modules/lodash/findKey.js b/node_modules/lodash/findKey.js new file mode 100644 index 0000000..cac0248 --- /dev/null +++ b/node_modules/lodash/findKey.js @@ -0,0 +1,44 @@ +var baseFindKey = require('./_baseFindKey'), + baseForOwn = require('./_baseForOwn'), + baseIteratee = require('./_baseIteratee'); + +/** + * This method is like `_.find` except that it returns the key of the first + * element `predicate` returns truthy for instead of the element itself. + * + * @static + * @memberOf _ + * @since 1.1.0 + * @category Object + * @param {Object} object The object to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {string|undefined} Returns the key of the matched element, + * else `undefined`. + * @example + * + * var users = { + * 'barney': { 'age': 36, 'active': true }, + * 'fred': { 'age': 40, 'active': false }, + * 'pebbles': { 'age': 1, 'active': true } + * }; + * + * _.findKey(users, function(o) { return o.age < 40; }); + * // => 'barney' (iteration order is not guaranteed) + * + * // The `_.matches` iteratee shorthand. + * _.findKey(users, { 'age': 1, 'active': true }); + * // => 'pebbles' + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findKey(users, ['active', false]); + * // => 'fred' + * + * // The `_.property` iteratee shorthand. + * _.findKey(users, 'active'); + * // => 'barney' + */ +function findKey(object, predicate) { + return baseFindKey(object, baseIteratee(predicate, 3), baseForOwn); +} + +module.exports = findKey; diff --git a/node_modules/lodash/findLast.js b/node_modules/lodash/findLast.js new file mode 100644 index 0000000..70b4271 --- /dev/null +++ b/node_modules/lodash/findLast.js @@ -0,0 +1,25 @@ +var createFind = require('./_createFind'), + findLastIndex = require('./findLastIndex'); + +/** + * This method is like `_.find` except that it iterates over elements of + * `collection` from right to left. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Collection + * @param {Array|Object} collection The collection to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=collection.length-1] The index to search from. + * @returns {*} Returns the matched element, else `undefined`. + * @example + * + * _.findLast([1, 2, 3, 4], function(n) { + * return n % 2 == 1; + * }); + * // => 3 + */ +var findLast = createFind(findLastIndex); + +module.exports = findLast; diff --git a/node_modules/lodash/findLastIndex.js b/node_modules/lodash/findLastIndex.js new file mode 100644 index 0000000..7da3431 --- /dev/null +++ b/node_modules/lodash/findLastIndex.js @@ -0,0 +1,59 @@ +var baseFindIndex = require('./_baseFindIndex'), + baseIteratee = require('./_baseIteratee'), + toInteger = require('./toInteger'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max, + nativeMin = Math.min; + +/** + * This method is like `_.findIndex` except that it iterates over elements + * of `collection` from right to left. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=array.length-1] The index to search from. + * @returns {number} Returns the index of the found element, else `-1`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': true }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': false } + * ]; + * + * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; }); + * // => 2 + * + * // The `_.matches` iteratee shorthand. + * _.findLastIndex(users, { 'user': 'barney', 'active': true }); + * // => 0 + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findLastIndex(users, ['active', false]); + * // => 2 + * + * // The `_.property` iteratee shorthand. + * _.findLastIndex(users, 'active'); + * // => 0 + */ +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, baseIteratee(predicate, 3), index, true); +} + +module.exports = findLastIndex; diff --git a/node_modules/lodash/findLastKey.js b/node_modules/lodash/findLastKey.js new file mode 100644 index 0000000..66fb9fb --- /dev/null +++ b/node_modules/lodash/findLastKey.js @@ -0,0 +1,44 @@ +var baseFindKey = require('./_baseFindKey'), + baseForOwnRight = require('./_baseForOwnRight'), + baseIteratee = require('./_baseIteratee'); + +/** + * This method is like `_.findKey` except that it iterates over elements of + * a collection in the opposite order. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Object + * @param {Object} object The object to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {string|undefined} Returns the key of the matched element, + * else `undefined`. + * @example + * + * var users = { + * 'barney': { 'age': 36, 'active': true }, + * 'fred': { 'age': 40, 'active': false }, + * 'pebbles': { 'age': 1, 'active': true } + * }; + * + * _.findLastKey(users, function(o) { return o.age < 40; }); + * // => returns 'pebbles' assuming `_.findKey` returns 'barney' + * + * // The `_.matches` iteratee shorthand. + * _.findLastKey(users, { 'age': 36, 'active': true }); + * // => 'barney' + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findLastKey(users, ['active', false]); + * // => 'fred' + * + * // The `_.property` iteratee shorthand. + * _.findLastKey(users, 'active'); + * // => 'pebbles' + */ +function findLastKey(object, predicate) { + return baseFindKey(object, baseIteratee(predicate, 3), baseForOwnRight); +} + +module.exports = findLastKey; diff --git a/node_modules/lodash/first.js b/node_modules/lodash/first.js new file mode 100644 index 0000000..53f4ad1 --- /dev/null +++ b/node_modules/lodash/first.js @@ -0,0 +1 @@ +module.exports = require('./head'); diff --git a/node_modules/lodash/flake.lock b/node_modules/lodash/flake.lock new file mode 100644 index 0000000..dd03252 --- /dev/null +++ b/node_modules/lodash/flake.lock @@ -0,0 +1,40 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1613582597, + "narHash": "sha256-6LvipIvFuhyorHpUqK3HjySC5Y6gshXHFBhU9EJ4DoM=", + "path": "/nix/store/srvplqq673sqd9vyfhyc5w1p88y1gfm4-source", + "rev": "6b1057b452c55bb3b463f0d7055bc4ec3fd1f381", + "type": "path" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "utils": "utils" + } + }, + "utils": { + "locked": { + "lastModified": 1610051610, + "narHash": "sha256-U9rPz/usA1/Aohhk7Cmc2gBrEEKRzcW4nwPWMPwja4Y=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "3982c9903e93927c2164caa727cd3f6a0e6d14cc", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/node_modules/lodash/flake.nix b/node_modules/lodash/flake.nix new file mode 100644 index 0000000..15a451c --- /dev/null +++ b/node_modules/lodash/flake.nix @@ -0,0 +1,20 @@ +{ + inputs = { + utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, utils }: + utils.lib.eachDefaultSystem (system: + let + pkgs = nixpkgs.legacyPackages."${system}"; + in rec { + devShell = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + yarn + nodejs-14_x + nodePackages.typescript-language-server + nodePackages.eslint + ]; + }; + }); +} diff --git a/node_modules/lodash/flatMap.js b/node_modules/lodash/flatMap.js new file mode 100644 index 0000000..e668506 --- /dev/null +++ b/node_modules/lodash/flatMap.js @@ -0,0 +1,29 @@ +var baseFlatten = require('./_baseFlatten'), + map = require('./map'); + +/** + * Creates a flattened array of values by running each element in `collection` + * thru `iteratee` and flattening the mapped results. The iteratee is invoked + * with three arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new flattened array. + * @example + * + * function duplicate(n) { + * return [n, n]; + * } + * + * _.flatMap([1, 2], duplicate); + * // => [1, 1, 2, 2] + */ +function flatMap(collection, iteratee) { + return baseFlatten(map(collection, iteratee), 1); +} + +module.exports = flatMap; diff --git a/node_modules/lodash/flatMapDeep.js b/node_modules/lodash/flatMapDeep.js new file mode 100644 index 0000000..4653d60 --- /dev/null +++ b/node_modules/lodash/flatMapDeep.js @@ -0,0 +1,31 @@ +var baseFlatten = require('./_baseFlatten'), + map = require('./map'); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** + * This method is like `_.flatMap` except that it recursively flattens the + * mapped results. + * + * @static + * @memberOf _ + * @since 4.7.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new flattened array. + * @example + * + * function duplicate(n) { + * return [[[n, n]]]; + * } + * + * _.flatMapDeep([1, 2], duplicate); + * // => [1, 1, 2, 2] + */ +function flatMapDeep(collection, iteratee) { + return baseFlatten(map(collection, iteratee), INFINITY); +} + +module.exports = flatMapDeep; diff --git a/node_modules/lodash/flatMapDepth.js b/node_modules/lodash/flatMapDepth.js new file mode 100644 index 0000000..6d72005 --- /dev/null +++ b/node_modules/lodash/flatMapDepth.js @@ -0,0 +1,31 @@ +var baseFlatten = require('./_baseFlatten'), + map = require('./map'), + toInteger = require('./toInteger'); + +/** + * This method is like `_.flatMap` except that it recursively flattens the + * mapped results up to `depth` times. + * + * @static + * @memberOf _ + * @since 4.7.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {number} [depth=1] The maximum recursion depth. + * @returns {Array} Returns the new flattened array. + * @example + * + * function duplicate(n) { + * return [[[n, n]]]; + * } + * + * _.flatMapDepth([1, 2], duplicate, 2); + * // => [[1, 1], [2, 2]] + */ +function flatMapDepth(collection, iteratee, depth) { + depth = depth === undefined ? 1 : toInteger(depth); + return baseFlatten(map(collection, iteratee), depth); +} + +module.exports = flatMapDepth; diff --git a/node_modules/lodash/flatten.js b/node_modules/lodash/flatten.js new file mode 100644 index 0000000..3f09f7f --- /dev/null +++ b/node_modules/lodash/flatten.js @@ -0,0 +1,22 @@ +var baseFlatten = require('./_baseFlatten'); + +/** + * Flattens `array` a single level deep. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to flatten. + * @returns {Array} Returns the new flattened array. + * @example + * + * _.flatten([1, [2, [3, [4]], 5]]); + * // => [1, 2, [3, [4]], 5] + */ +function flatten(array) { + var length = array == null ? 0 : array.length; + return length ? baseFlatten(array, 1) : []; +} + +module.exports = flatten; diff --git a/node_modules/lodash/flattenDeep.js b/node_modules/lodash/flattenDeep.js new file mode 100644 index 0000000..8ad585c --- /dev/null +++ b/node_modules/lodash/flattenDeep.js @@ -0,0 +1,25 @@ +var baseFlatten = require('./_baseFlatten'); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** + * Recursively flattens `array`. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to flatten. + * @returns {Array} Returns the new flattened array. + * @example + * + * _.flattenDeep([1, [2, [3, [4]], 5]]); + * // => [1, 2, 3, 4, 5] + */ +function flattenDeep(array) { + var length = array == null ? 0 : array.length; + return length ? baseFlatten(array, INFINITY) : []; +} + +module.exports = flattenDeep; diff --git a/node_modules/lodash/flattenDepth.js b/node_modules/lodash/flattenDepth.js new file mode 100644 index 0000000..441fdcc --- /dev/null +++ b/node_modules/lodash/flattenDepth.js @@ -0,0 +1,33 @@ +var baseFlatten = require('./_baseFlatten'), + toInteger = require('./toInteger'); + +/** + * Recursively flatten `array` up to `depth` times. + * + * @static + * @memberOf _ + * @since 4.4.0 + * @category Array + * @param {Array} array The array to flatten. + * @param {number} [depth=1] The maximum recursion depth. + * @returns {Array} Returns the new flattened array. + * @example + * + * var array = [1, [2, [3, [4]], 5]]; + * + * _.flattenDepth(array, 1); + * // => [1, 2, [3, [4]], 5] + * + * _.flattenDepth(array, 2); + * // => [1, 2, 3, [4], 5] + */ +function flattenDepth(array, depth) { + var length = array == null ? 0 : array.length; + if (!length) { + return []; + } + depth = depth === undefined ? 1 : toInteger(depth); + return baseFlatten(array, depth); +} + +module.exports = flattenDepth; diff --git a/node_modules/lodash/flip.js b/node_modules/lodash/flip.js new file mode 100644 index 0000000..c28dd78 --- /dev/null +++ b/node_modules/lodash/flip.js @@ -0,0 +1,28 @@ +var createWrap = require('./_createWrap'); + +/** Used to compose bitmasks for function metadata. */ +var WRAP_FLIP_FLAG = 512; + +/** + * Creates a function that invokes `func` with arguments reversed. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Function + * @param {Function} func The function to flip arguments for. + * @returns {Function} Returns the new flipped function. + * @example + * + * var flipped = _.flip(function() { + * return _.toArray(arguments); + * }); + * + * flipped('a', 'b', 'c', 'd'); + * // => ['d', 'c', 'b', 'a'] + */ +function flip(func) { + return createWrap(func, WRAP_FLIP_FLAG); +} + +module.exports = flip; diff --git a/node_modules/lodash/floor.js b/node_modules/lodash/floor.js new file mode 100644 index 0000000..ab6dfa2 --- /dev/null +++ b/node_modules/lodash/floor.js @@ -0,0 +1,26 @@ +var createRound = require('./_createRound'); + +/** + * Computes `number` rounded down to `precision`. + * + * @static + * @memberOf _ + * @since 3.10.0 + * @category Math + * @param {number} number The number to round down. + * @param {number} [precision=0] The precision to round down to. + * @returns {number} Returns the rounded down number. + * @example + * + * _.floor(4.006); + * // => 4 + * + * _.floor(0.046, 2); + * // => 0.04 + * + * _.floor(4060, -2); + * // => 4000 + */ +var floor = createRound('floor'); + +module.exports = floor; diff --git a/node_modules/lodash/flow.js b/node_modules/lodash/flow.js new file mode 100644 index 0000000..74b6b62 --- /dev/null +++ b/node_modules/lodash/flow.js @@ -0,0 +1,27 @@ +var createFlow = require('./_createFlow'); + +/** + * Creates a function that returns the result of invoking the given functions + * with the `this` binding of the created function, where each successive + * invocation is supplied the return value of the previous. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Util + * @param {...(Function|Function[])} [funcs] The functions to invoke. + * @returns {Function} Returns the new composite function. + * @see _.flowRight + * @example + * + * function square(n) { + * return n * n; + * } + * + * var addSquare = _.flow([_.add, square]); + * addSquare(1, 2); + * // => 9 + */ +var flow = createFlow(); + +module.exports = flow; diff --git a/node_modules/lodash/flowRight.js b/node_modules/lodash/flowRight.js new file mode 100644 index 0000000..1146141 --- /dev/null +++ b/node_modules/lodash/flowRight.js @@ -0,0 +1,26 @@ +var createFlow = require('./_createFlow'); + +/** + * This method is like `_.flow` except that it creates a function that + * invokes the given functions from right to left. + * + * @static + * @since 3.0.0 + * @memberOf _ + * @category Util + * @param {...(Function|Function[])} [funcs] The functions to invoke. + * @returns {Function} Returns the new composite function. + * @see _.flow + * @example + * + * function square(n) { + * return n * n; + * } + * + * var addSquare = _.flowRight([square, _.add]); + * addSquare(1, 2); + * // => 9 + */ +var flowRight = createFlow(true); + +module.exports = flowRight; diff --git a/node_modules/lodash/forEach.js b/node_modules/lodash/forEach.js new file mode 100644 index 0000000..c64eaa7 --- /dev/null +++ b/node_modules/lodash/forEach.js @@ -0,0 +1,41 @@ +var arrayEach = require('./_arrayEach'), + baseEach = require('./_baseEach'), + castFunction = require('./_castFunction'), + isArray = require('./isArray'); + +/** + * Iterates over elements of `collection` and invokes `iteratee` for each element. + * The iteratee is invoked with three arguments: (value, index|key, collection). + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * **Note:** As with other "Collections" methods, objects with a "length" + * property are iterated like arrays. To avoid this behavior use `_.forIn` + * or `_.forOwn` for object iteration. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @alias each + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + * @see _.forEachRight + * @example + * + * _.forEach([1, 2], function(value) { + * console.log(value); + * }); + * // => Logs `1` then `2`. + * + * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) { + * console.log(key); + * }); + * // => Logs 'a' then 'b' (iteration order is not guaranteed). + */ +function forEach(collection, iteratee) { + var func = isArray(collection) ? arrayEach : baseEach; + return func(collection, castFunction(iteratee)); +} + +module.exports = forEach; diff --git a/node_modules/lodash/forEachRight.js b/node_modules/lodash/forEachRight.js new file mode 100644 index 0000000..7390eba --- /dev/null +++ b/node_modules/lodash/forEachRight.js @@ -0,0 +1,31 @@ +var arrayEachRight = require('./_arrayEachRight'), + baseEachRight = require('./_baseEachRight'), + castFunction = require('./_castFunction'), + isArray = require('./isArray'); + +/** + * This method is like `_.forEach` except that it iterates over elements of + * `collection` from right to left. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @alias eachRight + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + * @see _.forEach + * @example + * + * _.forEachRight([1, 2], function(value) { + * console.log(value); + * }); + * // => Logs `2` then `1`. + */ +function forEachRight(collection, iteratee) { + var func = isArray(collection) ? arrayEachRight : baseEachRight; + return func(collection, castFunction(iteratee)); +} + +module.exports = forEachRight; diff --git a/node_modules/lodash/forIn.js b/node_modules/lodash/forIn.js new file mode 100644 index 0000000..583a596 --- /dev/null +++ b/node_modules/lodash/forIn.js @@ -0,0 +1,39 @@ +var baseFor = require('./_baseFor'), + castFunction = require('./_castFunction'), + keysIn = require('./keysIn'); + +/** + * Iterates over own and inherited enumerable string keyed properties of an + * object and invokes `iteratee` for each property. The iteratee is invoked + * with three arguments: (value, key, object). Iteratee functions may exit + * iteration early by explicitly returning `false`. + * + * @static + * @memberOf _ + * @since 0.3.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns `object`. + * @see _.forInRight + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.forIn(new Foo, function(value, key) { + * console.log(key); + * }); + * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed). + */ +function forIn(object, iteratee) { + return object == null + ? object + : baseFor(object, castFunction(iteratee), keysIn); +} + +module.exports = forIn; diff --git a/node_modules/lodash/forInRight.js b/node_modules/lodash/forInRight.js new file mode 100644 index 0000000..4aedf58 --- /dev/null +++ b/node_modules/lodash/forInRight.js @@ -0,0 +1,37 @@ +var baseForRight = require('./_baseForRight'), + castFunction = require('./_castFunction'), + keysIn = require('./keysIn'); + +/** + * This method is like `_.forIn` except that it iterates over properties of + * `object` in the opposite order. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns `object`. + * @see _.forIn + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.forInRight(new Foo, function(value, key) { + * console.log(key); + * }); + * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'. + */ +function forInRight(object, iteratee) { + return object == null + ? object + : baseForRight(object, castFunction(iteratee), keysIn); +} + +module.exports = forInRight; diff --git a/node_modules/lodash/forOwn.js b/node_modules/lodash/forOwn.js new file mode 100644 index 0000000..94eed84 --- /dev/null +++ b/node_modules/lodash/forOwn.js @@ -0,0 +1,36 @@ +var baseForOwn = require('./_baseForOwn'), + castFunction = require('./_castFunction'); + +/** + * Iterates over own enumerable string keyed properties of an object and + * invokes `iteratee` for each property. The iteratee is invoked with three + * arguments: (value, key, object). Iteratee functions may exit iteration + * early by explicitly returning `false`. + * + * @static + * @memberOf _ + * @since 0.3.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns `object`. + * @see _.forOwnRight + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.forOwn(new Foo, function(value, key) { + * console.log(key); + * }); + * // => Logs 'a' then 'b' (iteration order is not guaranteed). + */ +function forOwn(object, iteratee) { + return object && baseForOwn(object, castFunction(iteratee)); +} + +module.exports = forOwn; diff --git a/node_modules/lodash/forOwnRight.js b/node_modules/lodash/forOwnRight.js new file mode 100644 index 0000000..86f338f --- /dev/null +++ b/node_modules/lodash/forOwnRight.js @@ -0,0 +1,34 @@ +var baseForOwnRight = require('./_baseForOwnRight'), + castFunction = require('./_castFunction'); + +/** + * This method is like `_.forOwn` except that it iterates over properties of + * `object` in the opposite order. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns `object`. + * @see _.forOwn + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.forOwnRight(new Foo, function(value, key) { + * console.log(key); + * }); + * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'. + */ +function forOwnRight(object, iteratee) { + return object && baseForOwnRight(object, castFunction(iteratee)); +} + +module.exports = forOwnRight; diff --git a/node_modules/lodash/fp.js b/node_modules/lodash/fp.js new file mode 100644 index 0000000..e372dbb --- /dev/null +++ b/node_modules/lodash/fp.js @@ -0,0 +1,2 @@ +var _ = require('./lodash.min').runInContext(); +module.exports = require('./fp/_baseConvert')(_, _); diff --git a/node_modules/lodash/fp/F.js b/node_modules/lodash/fp/F.js new file mode 100644 index 0000000..a05a63a --- /dev/null +++ b/node_modules/lodash/fp/F.js @@ -0,0 +1 @@ +module.exports = require('./stubFalse'); diff --git a/node_modules/lodash/fp/T.js b/node_modules/lodash/fp/T.js new file mode 100644 index 0000000..e2ba8ea --- /dev/null +++ b/node_modules/lodash/fp/T.js @@ -0,0 +1 @@ +module.exports = require('./stubTrue'); diff --git a/node_modules/lodash/fp/__.js b/node_modules/lodash/fp/__.js new file mode 100644 index 0000000..4af98de --- /dev/null +++ b/node_modules/lodash/fp/__.js @@ -0,0 +1 @@ +module.exports = require('./placeholder'); diff --git a/node_modules/lodash/fp/_baseConvert.js b/node_modules/lodash/fp/_baseConvert.js new file mode 100644 index 0000000..9baf8e1 --- /dev/null +++ b/node_modules/lodash/fp/_baseConvert.js @@ -0,0 +1,569 @@ +var mapping = require('./_mapping'), + fallbackHolder = require('./placeholder'); + +/** Built-in value reference. */ +var push = Array.prototype.push; + +/** + * Creates a function, with an arity of `n`, that invokes `func` with the + * arguments it receives. + * + * @private + * @param {Function} func The function to wrap. + * @param {number} n The arity of the new function. + * @returns {Function} Returns the new function. + */ +function baseArity(func, n) { + return n == 2 + ? function(a, b) { return func.apply(undefined, arguments); } + : function(a) { return func.apply(undefined, arguments); }; +} + +/** + * Creates a function that invokes `func`, with up to `n` arguments, ignoring + * any additional arguments. + * + * @private + * @param {Function} func The function to cap arguments for. + * @param {number} n The arity cap. + * @returns {Function} Returns the new function. + */ +function baseAry(func, n) { + return n == 2 + ? function(a, b) { return func(a, b); } + : function(a) { return func(a); }; +} + +/** + * Creates a clone of `array`. + * + * @private + * @param {Array} array The array to clone. + * @returns {Array} Returns the cloned array. + */ +function cloneArray(array) { + var length = array ? array.length : 0, + result = Array(length); + + while (length--) { + result[length] = array[length]; + } + return result; +} + +/** + * Creates a function that clones a given object using the assignment `func`. + * + * @private + * @param {Function} func The assignment function. + * @returns {Function} Returns the new cloner function. + */ +function createCloner(func) { + return function(object) { + return func({}, object); + }; +} + +/** + * A specialized version of `_.spread` which flattens the spread array into + * the arguments of the invoked `func`. + * + * @private + * @param {Function} func The function to spread arguments over. + * @param {number} start The start position of the spread. + * @returns {Function} Returns the new function. + */ +function flatSpread(func, start) { + return function() { + var length = arguments.length, + lastIndex = length - 1, + args = Array(length); + + while (length--) { + args[length] = arguments[length]; + } + var array = args[start], + otherArgs = args.slice(0, start); + + if (array) { + push.apply(otherArgs, array); + } + if (start != lastIndex) { + push.apply(otherArgs, args.slice(start + 1)); + } + return func.apply(this, otherArgs); + }; +} + +/** + * Creates a function that wraps `func` and uses `cloner` to clone the first + * argument it receives. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} cloner The function to clone arguments. + * @returns {Function} Returns the new immutable function. + */ +function wrapImmutable(func, cloner) { + return function() { + var length = arguments.length; + if (!length) { + return; + } + var args = Array(length); + while (length--) { + args[length] = arguments[length]; + } + var result = args[0] = cloner.apply(undefined, args); + func.apply(undefined, args); + return result; + }; +} + +/** + * The base implementation of `convert` which accepts a `util` object of methods + * required to perform conversions. + * + * @param {Object} util The util object. + * @param {string} name The name of the function to convert. + * @param {Function} func The function to convert. + * @param {Object} [options] The options object. + * @param {boolean} [options.cap=true] Specify capping iteratee arguments. + * @param {boolean} [options.curry=true] Specify currying. + * @param {boolean} [options.fixed=true] Specify fixed arity. + * @param {boolean} [options.immutable=true] Specify immutable operations. + * @param {boolean} [options.rearg=true] Specify rearranging arguments. + * @returns {Function|Object} Returns the converted function or object. + */ +function baseConvert(util, name, func, options) { + var isLib = typeof name == 'function', + isObj = name === Object(name); + + if (isObj) { + options = func; + func = name; + name = undefined; + } + if (func == null) { + throw new TypeError; + } + options || (options = {}); + + var config = { + 'cap': 'cap' in options ? options.cap : true, + 'curry': 'curry' in options ? options.curry : true, + 'fixed': 'fixed' in options ? options.fixed : true, + 'immutable': 'immutable' in options ? options.immutable : true, + 'rearg': 'rearg' in options ? options.rearg : true + }; + + var defaultHolder = isLib ? func : fallbackHolder, + forceCurry = ('curry' in options) && options.curry, + forceFixed = ('fixed' in options) && options.fixed, + forceRearg = ('rearg' in options) && options.rearg, + pristine = isLib ? func.runInContext() : undefined; + + var helpers = isLib ? func : { + 'ary': util.ary, + 'assign': util.assign, + 'clone': util.clone, + 'curry': util.curry, + 'forEach': util.forEach, + 'isArray': util.isArray, + 'isError': util.isError, + 'isFunction': util.isFunction, + 'isWeakMap': util.isWeakMap, + 'iteratee': util.iteratee, + 'keys': util.keys, + 'rearg': util.rearg, + 'toInteger': util.toInteger, + 'toPath': util.toPath + }; + + var ary = helpers.ary, + assign = helpers.assign, + clone = helpers.clone, + curry = helpers.curry, + each = helpers.forEach, + isArray = helpers.isArray, + isError = helpers.isError, + isFunction = helpers.isFunction, + isWeakMap = helpers.isWeakMap, + keys = helpers.keys, + rearg = helpers.rearg, + toInteger = helpers.toInteger, + toPath = helpers.toPath; + + var aryMethodKeys = keys(mapping.aryMethod); + + var wrappers = { + 'castArray': function(castArray) { + return function() { + var value = arguments[0]; + return isArray(value) + ? castArray(cloneArray(value)) + : castArray.apply(undefined, arguments); + }; + }, + 'iteratee': function(iteratee) { + return function() { + var func = arguments[0], + arity = arguments[1], + result = iteratee(func, arity), + length = result.length; + + if (config.cap && typeof arity == 'number') { + arity = arity > 2 ? (arity - 2) : 1; + return (length && length <= arity) ? result : baseAry(result, arity); + } + return result; + }; + }, + 'mixin': function(mixin) { + return function(source) { + var func = this; + if (!isFunction(func)) { + return mixin(func, Object(source)); + } + var pairs = []; + each(keys(source), function(key) { + if (isFunction(source[key])) { + pairs.push([key, func.prototype[key]]); + } + }); + + mixin(func, Object(source)); + + each(pairs, function(pair) { + var value = pair[1]; + if (isFunction(value)) { + func.prototype[pair[0]] = value; + } else { + delete func.prototype[pair[0]]; + } + }); + return func; + }; + }, + 'nthArg': function(nthArg) { + return function(n) { + var arity = n < 0 ? 1 : (toInteger(n) + 1); + return curry(nthArg(n), arity); + }; + }, + 'rearg': function(rearg) { + return function(func, indexes) { + var arity = indexes ? indexes.length : 0; + return curry(rearg(func, indexes), arity); + }; + }, + 'runInContext': function(runInContext) { + return function(context) { + return baseConvert(util, runInContext(context), options); + }; + } + }; + + /*--------------------------------------------------------------------------*/ + + /** + * Casts `func` to a function with an arity capped iteratee if needed. + * + * @private + * @param {string} name The name of the function to inspect. + * @param {Function} func The function to inspect. + * @returns {Function} Returns the cast function. + */ + function castCap(name, func) { + if (config.cap) { + var indexes = mapping.iterateeRearg[name]; + if (indexes) { + return iterateeRearg(func, indexes); + } + var n = !isLib && mapping.iterateeAry[name]; + if (n) { + return iterateeAry(func, n); + } + } + return func; + } + + /** + * Casts `func` to a curried function if needed. + * + * @private + * @param {string} name The name of the function to inspect. + * @param {Function} func The function to inspect. + * @param {number} n The arity of `func`. + * @returns {Function} Returns the cast function. + */ + function castCurry(name, func, n) { + return (forceCurry || (config.curry && n > 1)) + ? curry(func, n) + : func; + } + + /** + * Casts `func` to a fixed arity function if needed. + * + * @private + * @param {string} name The name of the function to inspect. + * @param {Function} func The function to inspect. + * @param {number} n The arity cap. + * @returns {Function} Returns the cast function. + */ + function castFixed(name, func, n) { + if (config.fixed && (forceFixed || !mapping.skipFixed[name])) { + var data = mapping.methodSpread[name], + start = data && data.start; + + return start === undefined ? ary(func, n) : flatSpread(func, start); + } + return func; + } + + /** + * Casts `func` to an rearged function if needed. + * + * @private + * @param {string} name The name of the function to inspect. + * @param {Function} func The function to inspect. + * @param {number} n The arity of `func`. + * @returns {Function} Returns the cast function. + */ + function castRearg(name, func, n) { + return (config.rearg && n > 1 && (forceRearg || !mapping.skipRearg[name])) + ? rearg(func, mapping.methodRearg[name] || mapping.aryRearg[n]) + : func; + } + + /** + * Creates a clone of `object` by `path`. + * + * @private + * @param {Object} object The object to clone. + * @param {Array|string} path The path to clone by. + * @returns {Object} Returns the cloned object. + */ + function cloneByPath(object, path) { + path = toPath(path); + + var index = -1, + length = path.length, + lastIndex = length - 1, + result = clone(Object(object)), + nested = result; + + while (nested != null && ++index < length) { + var key = path[index], + value = nested[key]; + + if (value != null && + !(isFunction(value) || isError(value) || isWeakMap(value))) { + nested[key] = clone(index == lastIndex ? value : Object(value)); + } + nested = nested[key]; + } + return result; + } + + /** + * Converts `lodash` to an immutable auto-curried iteratee-first data-last + * version with conversion `options` applied. + * + * @param {Object} [options] The options object. See `baseConvert` for more details. + * @returns {Function} Returns the converted `lodash`. + */ + function convertLib(options) { + return _.runInContext.convert(options)(undefined); + } + + /** + * Create a converter function for `func` of `name`. + * + * @param {string} name The name of the function to convert. + * @param {Function} func The function to convert. + * @returns {Function} Returns the new converter function. + */ + function createConverter(name, func) { + var realName = mapping.aliasToReal[name] || name, + methodName = mapping.remap[realName] || realName, + oldOptions = options; + + return function(options) { + var newUtil = isLib ? pristine : helpers, + newFunc = isLib ? pristine[methodName] : func, + newOptions = assign(assign({}, oldOptions), options); + + return baseConvert(newUtil, realName, newFunc, newOptions); + }; + } + + /** + * Creates a function that wraps `func` to invoke its iteratee, with up to `n` + * arguments, ignoring any additional arguments. + * + * @private + * @param {Function} func The function to cap iteratee arguments for. + * @param {number} n The arity cap. + * @returns {Function} Returns the new function. + */ + function iterateeAry(func, n) { + return overArg(func, function(func) { + return typeof func == 'function' ? baseAry(func, n) : func; + }); + } + + /** + * Creates a function that wraps `func` to invoke its iteratee with arguments + * arranged according to the specified `indexes` where the argument value at + * the first index is provided as the first argument, the argument value at + * the second index is provided as the second argument, and so on. + * + * @private + * @param {Function} func The function to rearrange iteratee arguments for. + * @param {number[]} indexes The arranged argument indexes. + * @returns {Function} Returns the new function. + */ + function iterateeRearg(func, indexes) { + return overArg(func, function(func) { + var n = indexes.length; + return baseArity(rearg(baseAry(func, n), indexes), n); + }); + } + + /** + * Creates a function that invokes `func` with its first argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ + function overArg(func, transform) { + return function() { + var length = arguments.length; + if (!length) { + return func(); + } + var args = Array(length); + while (length--) { + args[length] = arguments[length]; + } + var index = config.rearg ? 0 : (length - 1); + args[index] = transform(args[index]); + return func.apply(undefined, args); + }; + } + + /** + * Creates a function that wraps `func` and applys the conversions + * rules by `name`. + * + * @private + * @param {string} name The name of the function to wrap. + * @param {Function} func The function to wrap. + * @returns {Function} Returns the converted function. + */ + function wrap(name, func, placeholder) { + var result, + realName = mapping.aliasToReal[name] || name, + wrapped = func, + wrapper = wrappers[realName]; + + if (wrapper) { + wrapped = wrapper(func); + } + else if (config.immutable) { + if (mapping.mutate.array[realName]) { + wrapped = wrapImmutable(func, cloneArray); + } + else if (mapping.mutate.object[realName]) { + wrapped = wrapImmutable(func, createCloner(func)); + } + else if (mapping.mutate.set[realName]) { + wrapped = wrapImmutable(func, cloneByPath); + } + } + each(aryMethodKeys, function(aryKey) { + each(mapping.aryMethod[aryKey], function(otherName) { + if (realName == otherName) { + var data = mapping.methodSpread[realName], + afterRearg = data && data.afterRearg; + + result = afterRearg + ? castFixed(realName, castRearg(realName, wrapped, aryKey), aryKey) + : castRearg(realName, castFixed(realName, wrapped, aryKey), aryKey); + + result = castCap(realName, result); + result = castCurry(realName, result, aryKey); + return false; + } + }); + return !result; + }); + + result || (result = wrapped); + if (result == func) { + result = forceCurry ? curry(result, 1) : function() { + return func.apply(this, arguments); + }; + } + result.convert = createConverter(realName, func); + result.placeholder = func.placeholder = placeholder; + + return result; + } + + /*--------------------------------------------------------------------------*/ + + if (!isObj) { + return wrap(name, func, defaultHolder); + } + var _ = func; + + // Convert methods by ary cap. + var pairs = []; + each(aryMethodKeys, function(aryKey) { + each(mapping.aryMethod[aryKey], function(key) { + var func = _[mapping.remap[key] || key]; + if (func) { + pairs.push([key, wrap(key, func, _)]); + } + }); + }); + + // Convert remaining methods. + each(keys(_), function(key) { + var func = _[key]; + if (typeof func == 'function') { + var length = pairs.length; + while (length--) { + if (pairs[length][0] == key) { + return; + } + } + func.convert = createConverter(key, func); + pairs.push([key, func]); + } + }); + + // Assign to `_` leaving `_.prototype` unchanged to allow chaining. + each(pairs, function(pair) { + _[pair[0]] = pair[1]; + }); + + _.convert = convertLib; + _.placeholder = _; + + // Assign aliases. + each(keys(_), function(key) { + each(mapping.realToAlias[key] || [], function(alias) { + _[alias] = _[key]; + }); + }); + + return _; +} + +module.exports = baseConvert; diff --git a/node_modules/lodash/fp/_convertBrowser.js b/node_modules/lodash/fp/_convertBrowser.js new file mode 100644 index 0000000..bde030d --- /dev/null +++ b/node_modules/lodash/fp/_convertBrowser.js @@ -0,0 +1,18 @@ +var baseConvert = require('./_baseConvert'); + +/** + * Converts `lodash` to an immutable auto-curried iteratee-first data-last + * version with conversion `options` applied. + * + * @param {Function} lodash The lodash function to convert. + * @param {Object} [options] The options object. See `baseConvert` for more details. + * @returns {Function} Returns the converted `lodash`. + */ +function browserConvert(lodash, options) { + return baseConvert(lodash, lodash, options); +} + +if (typeof _ == 'function' && typeof _.runInContext == 'function') { + _ = browserConvert(_.runInContext()); +} +module.exports = browserConvert; diff --git a/node_modules/lodash/fp/_falseOptions.js b/node_modules/lodash/fp/_falseOptions.js new file mode 100644 index 0000000..773235e --- /dev/null +++ b/node_modules/lodash/fp/_falseOptions.js @@ -0,0 +1,7 @@ +module.exports = { + 'cap': false, + 'curry': false, + 'fixed': false, + 'immutable': false, + 'rearg': false +}; diff --git a/node_modules/lodash/fp/_mapping.js b/node_modules/lodash/fp/_mapping.js new file mode 100644 index 0000000..a642ec0 --- /dev/null +++ b/node_modules/lodash/fp/_mapping.js @@ -0,0 +1,358 @@ +/** Used to map aliases to their real names. */ +exports.aliasToReal = { + + // Lodash aliases. + 'each': 'forEach', + 'eachRight': 'forEachRight', + 'entries': 'toPairs', + 'entriesIn': 'toPairsIn', + 'extend': 'assignIn', + 'extendAll': 'assignInAll', + 'extendAllWith': 'assignInAllWith', + 'extendWith': 'assignInWith', + 'first': 'head', + + // Methods that are curried variants of others. + 'conforms': 'conformsTo', + 'matches': 'isMatch', + 'property': 'get', + + // Ramda aliases. + '__': 'placeholder', + 'F': 'stubFalse', + 'T': 'stubTrue', + 'all': 'every', + 'allPass': 'overEvery', + 'always': 'constant', + 'any': 'some', + 'anyPass': 'overSome', + 'apply': 'spread', + 'assoc': 'set', + 'assocPath': 'set', + 'complement': 'negate', + 'compose': 'flowRight', + 'contains': 'includes', + 'dissoc': 'unset', + 'dissocPath': 'unset', + 'dropLast': 'dropRight', + 'dropLastWhile': 'dropRightWhile', + 'equals': 'isEqual', + 'identical': 'eq', + 'indexBy': 'keyBy', + 'init': 'initial', + 'invertObj': 'invert', + 'juxt': 'over', + 'omitAll': 'omit', + 'nAry': 'ary', + 'path': 'get', + 'pathEq': 'matchesProperty', + 'pathOr': 'getOr', + 'paths': 'at', + 'pickAll': 'pick', + 'pipe': 'flow', + 'pluck': 'map', + 'prop': 'get', + 'propEq': 'matchesProperty', + 'propOr': 'getOr', + 'props': 'at', + 'symmetricDifference': 'xor', + 'symmetricDifferenceBy': 'xorBy', + 'symmetricDifferenceWith': 'xorWith', + 'takeLast': 'takeRight', + 'takeLastWhile': 'takeRightWhile', + 'unapply': 'rest', + 'unnest': 'flatten', + 'useWith': 'overArgs', + 'where': 'conformsTo', + 'whereEq': 'isMatch', + 'zipObj': 'zipObject' +}; + +/** Used to map ary to method names. */ +exports.aryMethod = { + '1': [ + 'assignAll', 'assignInAll', 'attempt', 'castArray', 'ceil', 'create', + 'curry', 'curryRight', 'defaultsAll', 'defaultsDeepAll', 'floor', 'flow', + 'flowRight', 'fromPairs', 'invert', 'iteratee', 'memoize', 'method', 'mergeAll', + 'methodOf', 'mixin', 'nthArg', 'over', 'overEvery', 'overSome','rest', 'reverse', + 'round', 'runInContext', 'spread', 'template', 'trim', 'trimEnd', 'trimStart', + 'uniqueId', 'words', 'zipAll' + ], + '2': [ + 'add', 'after', 'ary', 'assign', 'assignAllWith', 'assignIn', 'assignInAllWith', + 'at', 'before', 'bind', 'bindAll', 'bindKey', 'chunk', 'cloneDeepWith', + 'cloneWith', 'concat', 'conformsTo', 'countBy', 'curryN', 'curryRightN', + 'debounce', 'defaults', 'defaultsDeep', 'defaultTo', 'delay', 'difference', + 'divide', 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith', 'eq', + 'every', 'filter', 'find', 'findIndex', 'findKey', 'findLast', 'findLastIndex', + 'findLastKey', 'flatMap', 'flatMapDeep', 'flattenDepth', 'forEach', + 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight', 'get', + 'groupBy', 'gt', 'gte', 'has', 'hasIn', 'includes', 'indexOf', 'intersection', + 'invertBy', 'invoke', 'invokeMap', 'isEqual', 'isMatch', 'join', 'keyBy', + 'lastIndexOf', 'lt', 'lte', 'map', 'mapKeys', 'mapValues', 'matchesProperty', + 'maxBy', 'meanBy', 'merge', 'mergeAllWith', 'minBy', 'multiply', 'nth', 'omit', + 'omitBy', 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt', 'partial', + 'partialRight', 'partition', 'pick', 'pickBy', 'propertyOf', 'pull', 'pullAll', + 'pullAt', 'random', 'range', 'rangeRight', 'rearg', 'reject', 'remove', + 'repeat', 'restFrom', 'result', 'sampleSize', 'some', 'sortBy', 'sortedIndex', + 'sortedIndexOf', 'sortedLastIndex', 'sortedLastIndexOf', 'sortedUniqBy', + 'split', 'spreadFrom', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight', + 'takeRightWhile', 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'trimChars', + 'trimCharsEnd', 'trimCharsStart', 'truncate', 'union', 'uniqBy', 'uniqWith', + 'unset', 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject', + 'zipObjectDeep' + ], + '3': [ + 'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith', + 'findFrom', 'findIndexFrom', 'findLastFrom', 'findLastIndexFrom', 'getOr', + 'includesFrom', 'indexOfFrom', 'inRange', 'intersectionBy', 'intersectionWith', + 'invokeArgs', 'invokeArgsMap', 'isEqualWith', 'isMatchWith', 'flatMapDepth', + 'lastIndexOfFrom', 'mergeWith', 'orderBy', 'padChars', 'padCharsEnd', + 'padCharsStart', 'pullAllBy', 'pullAllWith', 'rangeStep', 'rangeStepRight', + 'reduce', 'reduceRight', 'replace', 'set', 'slice', 'sortedIndexBy', + 'sortedLastIndexBy', 'transform', 'unionBy', 'unionWith', 'update', 'xorBy', + 'xorWith', 'zipWith' + ], + '4': [ + 'fill', 'setWith', 'updateWith' + ] +}; + +/** Used to map ary to rearg configs. */ +exports.aryRearg = { + '2': [1, 0], + '3': [2, 0, 1], + '4': [3, 2, 0, 1] +}; + +/** Used to map method names to their iteratee ary. */ +exports.iterateeAry = { + 'dropRightWhile': 1, + 'dropWhile': 1, + 'every': 1, + 'filter': 1, + 'find': 1, + 'findFrom': 1, + 'findIndex': 1, + 'findIndexFrom': 1, + 'findKey': 1, + 'findLast': 1, + 'findLastFrom': 1, + 'findLastIndex': 1, + 'findLastIndexFrom': 1, + 'findLastKey': 1, + 'flatMap': 1, + 'flatMapDeep': 1, + 'flatMapDepth': 1, + 'forEach': 1, + 'forEachRight': 1, + 'forIn': 1, + 'forInRight': 1, + 'forOwn': 1, + 'forOwnRight': 1, + 'map': 1, + 'mapKeys': 1, + 'mapValues': 1, + 'partition': 1, + 'reduce': 2, + 'reduceRight': 2, + 'reject': 1, + 'remove': 1, + 'some': 1, + 'takeRightWhile': 1, + 'takeWhile': 1, + 'times': 1, + 'transform': 2 +}; + +/** Used to map method names to iteratee rearg configs. */ +exports.iterateeRearg = { + 'mapKeys': [1], + 'reduceRight': [1, 0] +}; + +/** Used to map method names to rearg configs. */ +exports.methodRearg = { + 'assignInAllWith': [1, 0], + 'assignInWith': [1, 2, 0], + 'assignAllWith': [1, 0], + 'assignWith': [1, 2, 0], + 'differenceBy': [1, 2, 0], + 'differenceWith': [1, 2, 0], + 'getOr': [2, 1, 0], + 'intersectionBy': [1, 2, 0], + 'intersectionWith': [1, 2, 0], + 'isEqualWith': [1, 2, 0], + 'isMatchWith': [2, 1, 0], + 'mergeAllWith': [1, 0], + 'mergeWith': [1, 2, 0], + 'padChars': [2, 1, 0], + 'padCharsEnd': [2, 1, 0], + 'padCharsStart': [2, 1, 0], + 'pullAllBy': [2, 1, 0], + 'pullAllWith': [2, 1, 0], + 'rangeStep': [1, 2, 0], + 'rangeStepRight': [1, 2, 0], + 'setWith': [3, 1, 2, 0], + 'sortedIndexBy': [2, 1, 0], + 'sortedLastIndexBy': [2, 1, 0], + 'unionBy': [1, 2, 0], + 'unionWith': [1, 2, 0], + 'updateWith': [3, 1, 2, 0], + 'xorBy': [1, 2, 0], + 'xorWith': [1, 2, 0], + 'zipWith': [1, 2, 0] +}; + +/** Used to map method names to spread configs. */ +exports.methodSpread = { + 'assignAll': { 'start': 0 }, + 'assignAllWith': { 'start': 0 }, + 'assignInAll': { 'start': 0 }, + 'assignInAllWith': { 'start': 0 }, + 'defaultsAll': { 'start': 0 }, + 'defaultsDeepAll': { 'start': 0 }, + 'invokeArgs': { 'start': 2 }, + 'invokeArgsMap': { 'start': 2 }, + 'mergeAll': { 'start': 0 }, + 'mergeAllWith': { 'start': 0 }, + 'partial': { 'start': 1 }, + 'partialRight': { 'start': 1 }, + 'without': { 'start': 1 }, + 'zipAll': { 'start': 0 } +}; + +/** Used to identify methods which mutate arrays or objects. */ +exports.mutate = { + 'array': { + 'fill': true, + 'pull': true, + 'pullAll': true, + 'pullAllBy': true, + 'pullAllWith': true, + 'pullAt': true, + 'remove': true, + 'reverse': true + }, + 'object': { + 'assign': true, + 'assignAll': true, + 'assignAllWith': true, + 'assignIn': true, + 'assignInAll': true, + 'assignInAllWith': true, + 'assignInWith': true, + 'assignWith': true, + 'defaults': true, + 'defaultsAll': true, + 'defaultsDeep': true, + 'defaultsDeepAll': true, + 'merge': true, + 'mergeAll': true, + 'mergeAllWith': true, + 'mergeWith': true, + }, + 'set': { + 'set': true, + 'setWith': true, + 'unset': true, + 'update': true, + 'updateWith': true + } +}; + +/** Used to map real names to their aliases. */ +exports.realToAlias = (function() { + var hasOwnProperty = Object.prototype.hasOwnProperty, + object = exports.aliasToReal, + result = {}; + + for (var key in object) { + var value = object[key]; + if (hasOwnProperty.call(result, value)) { + result[value].push(key); + } else { + result[value] = [key]; + } + } + return result; +}()); + +/** Used to map method names to other names. */ +exports.remap = { + 'assignAll': 'assign', + 'assignAllWith': 'assignWith', + 'assignInAll': 'assignIn', + 'assignInAllWith': 'assignInWith', + 'curryN': 'curry', + 'curryRightN': 'curryRight', + 'defaultsAll': 'defaults', + 'defaultsDeepAll': 'defaultsDeep', + 'findFrom': 'find', + 'findIndexFrom': 'findIndex', + 'findLastFrom': 'findLast', + 'findLastIndexFrom': 'findLastIndex', + 'getOr': 'get', + 'includesFrom': 'includes', + 'indexOfFrom': 'indexOf', + 'invokeArgs': 'invoke', + 'invokeArgsMap': 'invokeMap', + 'lastIndexOfFrom': 'lastIndexOf', + 'mergeAll': 'merge', + 'mergeAllWith': 'mergeWith', + 'padChars': 'pad', + 'padCharsEnd': 'padEnd', + 'padCharsStart': 'padStart', + 'propertyOf': 'get', + 'rangeStep': 'range', + 'rangeStepRight': 'rangeRight', + 'restFrom': 'rest', + 'spreadFrom': 'spread', + 'trimChars': 'trim', + 'trimCharsEnd': 'trimEnd', + 'trimCharsStart': 'trimStart', + 'zipAll': 'zip' +}; + +/** Used to track methods that skip fixing their arity. */ +exports.skipFixed = { + 'castArray': true, + 'flow': true, + 'flowRight': true, + 'iteratee': true, + 'mixin': true, + 'rearg': true, + 'runInContext': true +}; + +/** Used to track methods that skip rearranging arguments. */ +exports.skipRearg = { + 'add': true, + 'assign': true, + 'assignIn': true, + 'bind': true, + 'bindKey': true, + 'concat': true, + 'difference': true, + 'divide': true, + 'eq': true, + 'gt': true, + 'gte': true, + 'isEqual': true, + 'lt': true, + 'lte': true, + 'matchesProperty': true, + 'merge': true, + 'multiply': true, + 'overArgs': true, + 'partial': true, + 'partialRight': true, + 'propertyOf': true, + 'random': true, + 'range': true, + 'rangeRight': true, + 'subtract': true, + 'zip': true, + 'zipObject': true, + 'zipObjectDeep': true +}; diff --git a/node_modules/lodash/fp/_util.js b/node_modules/lodash/fp/_util.js new file mode 100644 index 0000000..1dbf36f --- /dev/null +++ b/node_modules/lodash/fp/_util.js @@ -0,0 +1,16 @@ +module.exports = { + 'ary': require('../ary'), + 'assign': require('../_baseAssign'), + 'clone': require('../clone'), + 'curry': require('../curry'), + 'forEach': require('../_arrayEach'), + 'isArray': require('../isArray'), + 'isError': require('../isError'), + 'isFunction': require('../isFunction'), + 'isWeakMap': require('../isWeakMap'), + 'iteratee': require('../iteratee'), + 'keys': require('../_baseKeys'), + 'rearg': require('../rearg'), + 'toInteger': require('../toInteger'), + 'toPath': require('../toPath') +}; diff --git a/node_modules/lodash/fp/add.js b/node_modules/lodash/fp/add.js new file mode 100644 index 0000000..816eeec --- /dev/null +++ b/node_modules/lodash/fp/add.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('add', require('../add')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/after.js b/node_modules/lodash/fp/after.js new file mode 100644 index 0000000..21a0167 --- /dev/null +++ b/node_modules/lodash/fp/after.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('after', require('../after')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/all.js b/node_modules/lodash/fp/all.js new file mode 100644 index 0000000..d0839f7 --- /dev/null +++ b/node_modules/lodash/fp/all.js @@ -0,0 +1 @@ +module.exports = require('./every'); diff --git a/node_modules/lodash/fp/allPass.js b/node_modules/lodash/fp/allPass.js new file mode 100644 index 0000000..79b73ef --- /dev/null +++ b/node_modules/lodash/fp/allPass.js @@ -0,0 +1 @@ +module.exports = require('./overEvery'); diff --git a/node_modules/lodash/fp/always.js b/node_modules/lodash/fp/always.js new file mode 100644 index 0000000..9887703 --- /dev/null +++ b/node_modules/lodash/fp/always.js @@ -0,0 +1 @@ +module.exports = require('./constant'); diff --git a/node_modules/lodash/fp/any.js b/node_modules/lodash/fp/any.js new file mode 100644 index 0000000..900ac25 --- /dev/null +++ b/node_modules/lodash/fp/any.js @@ -0,0 +1 @@ +module.exports = require('./some'); diff --git a/node_modules/lodash/fp/anyPass.js b/node_modules/lodash/fp/anyPass.js new file mode 100644 index 0000000..2774ab3 --- /dev/null +++ b/node_modules/lodash/fp/anyPass.js @@ -0,0 +1 @@ +module.exports = require('./overSome'); diff --git a/node_modules/lodash/fp/apply.js b/node_modules/lodash/fp/apply.js new file mode 100644 index 0000000..2b75712 --- /dev/null +++ b/node_modules/lodash/fp/apply.js @@ -0,0 +1 @@ +module.exports = require('./spread'); diff --git a/node_modules/lodash/fp/array.js b/node_modules/lodash/fp/array.js new file mode 100644 index 0000000..fe939c2 --- /dev/null +++ b/node_modules/lodash/fp/array.js @@ -0,0 +1,2 @@ +var convert = require('./convert'); +module.exports = convert(require('../array')); diff --git a/node_modules/lodash/fp/ary.js b/node_modules/lodash/fp/ary.js new file mode 100644 index 0000000..8edf187 --- /dev/null +++ b/node_modules/lodash/fp/ary.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('ary', require('../ary')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/assign.js b/node_modules/lodash/fp/assign.js new file mode 100644 index 0000000..23f47af --- /dev/null +++ b/node_modules/lodash/fp/assign.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('assign', require('../assign')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/assignAll.js b/node_modules/lodash/fp/assignAll.js new file mode 100644 index 0000000..b1d36c7 --- /dev/null +++ b/node_modules/lodash/fp/assignAll.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('assignAll', require('../assign')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/assignAllWith.js b/node_modules/lodash/fp/assignAllWith.js new file mode 100644 index 0000000..21e836e --- /dev/null +++ b/node_modules/lodash/fp/assignAllWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('assignAllWith', require('../assignWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/assignIn.js b/node_modules/lodash/fp/assignIn.js new file mode 100644 index 0000000..6e7c65f --- /dev/null +++ b/node_modules/lodash/fp/assignIn.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('assignIn', require('../assignIn')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/assignInAll.js b/node_modules/lodash/fp/assignInAll.js new file mode 100644 index 0000000..7ba75db --- /dev/null +++ b/node_modules/lodash/fp/assignInAll.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('assignInAll', require('../assignIn')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/assignInAllWith.js b/node_modules/lodash/fp/assignInAllWith.js new file mode 100644 index 0000000..e766903 --- /dev/null +++ b/node_modules/lodash/fp/assignInAllWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('assignInAllWith', require('../assignInWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/assignInWith.js b/node_modules/lodash/fp/assignInWith.js new file mode 100644 index 0000000..acb5923 --- /dev/null +++ b/node_modules/lodash/fp/assignInWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('assignInWith', require('../assignInWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/assignWith.js b/node_modules/lodash/fp/assignWith.js new file mode 100644 index 0000000..eb92521 --- /dev/null +++ b/node_modules/lodash/fp/assignWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('assignWith', require('../assignWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/assoc.js b/node_modules/lodash/fp/assoc.js new file mode 100644 index 0000000..7648820 --- /dev/null +++ b/node_modules/lodash/fp/assoc.js @@ -0,0 +1 @@ +module.exports = require('./set'); diff --git a/node_modules/lodash/fp/assocPath.js b/node_modules/lodash/fp/assocPath.js new file mode 100644 index 0000000..7648820 --- /dev/null +++ b/node_modules/lodash/fp/assocPath.js @@ -0,0 +1 @@ +module.exports = require('./set'); diff --git a/node_modules/lodash/fp/at.js b/node_modules/lodash/fp/at.js new file mode 100644 index 0000000..cc39d25 --- /dev/null +++ b/node_modules/lodash/fp/at.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('at', require('../at')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/attempt.js b/node_modules/lodash/fp/attempt.js new file mode 100644 index 0000000..26ca42e --- /dev/null +++ b/node_modules/lodash/fp/attempt.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('attempt', require('../attempt')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/before.js b/node_modules/lodash/fp/before.js new file mode 100644 index 0000000..7a2de65 --- /dev/null +++ b/node_modules/lodash/fp/before.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('before', require('../before')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/bind.js b/node_modules/lodash/fp/bind.js new file mode 100644 index 0000000..5cbe4f3 --- /dev/null +++ b/node_modules/lodash/fp/bind.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('bind', require('../bind')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/bindAll.js b/node_modules/lodash/fp/bindAll.js new file mode 100644 index 0000000..6b4a4a0 --- /dev/null +++ b/node_modules/lodash/fp/bindAll.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('bindAll', require('../bindAll')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/bindKey.js b/node_modules/lodash/fp/bindKey.js new file mode 100644 index 0000000..6a46c6b --- /dev/null +++ b/node_modules/lodash/fp/bindKey.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('bindKey', require('../bindKey')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/camelCase.js b/node_modules/lodash/fp/camelCase.js new file mode 100644 index 0000000..87b77b4 --- /dev/null +++ b/node_modules/lodash/fp/camelCase.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('camelCase', require('../camelCase'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/capitalize.js b/node_modules/lodash/fp/capitalize.js new file mode 100644 index 0000000..cac74e1 --- /dev/null +++ b/node_modules/lodash/fp/capitalize.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('capitalize', require('../capitalize'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/castArray.js b/node_modules/lodash/fp/castArray.js new file mode 100644 index 0000000..8681c09 --- /dev/null +++ b/node_modules/lodash/fp/castArray.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('castArray', require('../castArray')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/ceil.js b/node_modules/lodash/fp/ceil.js new file mode 100644 index 0000000..f416b72 --- /dev/null +++ b/node_modules/lodash/fp/ceil.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('ceil', require('../ceil')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/chain.js b/node_modules/lodash/fp/chain.js new file mode 100644 index 0000000..604fe39 --- /dev/null +++ b/node_modules/lodash/fp/chain.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('chain', require('../chain'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/chunk.js b/node_modules/lodash/fp/chunk.js new file mode 100644 index 0000000..871ab08 --- /dev/null +++ b/node_modules/lodash/fp/chunk.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('chunk', require('../chunk')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/clamp.js b/node_modules/lodash/fp/clamp.js new file mode 100644 index 0000000..3b06c01 --- /dev/null +++ b/node_modules/lodash/fp/clamp.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('clamp', require('../clamp')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/clone.js b/node_modules/lodash/fp/clone.js new file mode 100644 index 0000000..cadb59c --- /dev/null +++ b/node_modules/lodash/fp/clone.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('clone', require('../clone'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/cloneDeep.js b/node_modules/lodash/fp/cloneDeep.js new file mode 100644 index 0000000..a6107aa --- /dev/null +++ b/node_modules/lodash/fp/cloneDeep.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('cloneDeep', require('../cloneDeep'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/cloneDeepWith.js b/node_modules/lodash/fp/cloneDeepWith.js new file mode 100644 index 0000000..6f01e44 --- /dev/null +++ b/node_modules/lodash/fp/cloneDeepWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('cloneDeepWith', require('../cloneDeepWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/cloneWith.js b/node_modules/lodash/fp/cloneWith.js new file mode 100644 index 0000000..aa88578 --- /dev/null +++ b/node_modules/lodash/fp/cloneWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('cloneWith', require('../cloneWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/collection.js b/node_modules/lodash/fp/collection.js new file mode 100644 index 0000000..fc8b328 --- /dev/null +++ b/node_modules/lodash/fp/collection.js @@ -0,0 +1,2 @@ +var convert = require('./convert'); +module.exports = convert(require('../collection')); diff --git a/node_modules/lodash/fp/commit.js b/node_modules/lodash/fp/commit.js new file mode 100644 index 0000000..130a894 --- /dev/null +++ b/node_modules/lodash/fp/commit.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('commit', require('../commit'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/compact.js b/node_modules/lodash/fp/compact.js new file mode 100644 index 0000000..ce8f7a1 --- /dev/null +++ b/node_modules/lodash/fp/compact.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('compact', require('../compact'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/complement.js b/node_modules/lodash/fp/complement.js new file mode 100644 index 0000000..93eb462 --- /dev/null +++ b/node_modules/lodash/fp/complement.js @@ -0,0 +1 @@ +module.exports = require('./negate'); diff --git a/node_modules/lodash/fp/compose.js b/node_modules/lodash/fp/compose.js new file mode 100644 index 0000000..1954e94 --- /dev/null +++ b/node_modules/lodash/fp/compose.js @@ -0,0 +1 @@ +module.exports = require('./flowRight'); diff --git a/node_modules/lodash/fp/concat.js b/node_modules/lodash/fp/concat.js new file mode 100644 index 0000000..e59346a --- /dev/null +++ b/node_modules/lodash/fp/concat.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('concat', require('../concat')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/cond.js b/node_modules/lodash/fp/cond.js new file mode 100644 index 0000000..6a0120e --- /dev/null +++ b/node_modules/lodash/fp/cond.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('cond', require('../cond'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/conforms.js b/node_modules/lodash/fp/conforms.js new file mode 100644 index 0000000..3247f64 --- /dev/null +++ b/node_modules/lodash/fp/conforms.js @@ -0,0 +1 @@ +module.exports = require('./conformsTo'); diff --git a/node_modules/lodash/fp/conformsTo.js b/node_modules/lodash/fp/conformsTo.js new file mode 100644 index 0000000..aa7f41e --- /dev/null +++ b/node_modules/lodash/fp/conformsTo.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('conformsTo', require('../conformsTo')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/constant.js b/node_modules/lodash/fp/constant.js new file mode 100644 index 0000000..9e406fc --- /dev/null +++ b/node_modules/lodash/fp/constant.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('constant', require('../constant'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/contains.js b/node_modules/lodash/fp/contains.js new file mode 100644 index 0000000..594722a --- /dev/null +++ b/node_modules/lodash/fp/contains.js @@ -0,0 +1 @@ +module.exports = require('./includes'); diff --git a/node_modules/lodash/fp/convert.js b/node_modules/lodash/fp/convert.js new file mode 100644 index 0000000..4795dc4 --- /dev/null +++ b/node_modules/lodash/fp/convert.js @@ -0,0 +1,18 @@ +var baseConvert = require('./_baseConvert'), + util = require('./_util'); + +/** + * Converts `func` of `name` to an immutable auto-curried iteratee-first data-last + * version with conversion `options` applied. If `name` is an object its methods + * will be converted. + * + * @param {string} name The name of the function to wrap. + * @param {Function} [func] The function to wrap. + * @param {Object} [options] The options object. See `baseConvert` for more details. + * @returns {Function|Object} Returns the converted function or object. + */ +function convert(name, func, options) { + return baseConvert(util, name, func, options); +} + +module.exports = convert; diff --git a/node_modules/lodash/fp/countBy.js b/node_modules/lodash/fp/countBy.js new file mode 100644 index 0000000..dfa4643 --- /dev/null +++ b/node_modules/lodash/fp/countBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('countBy', require('../countBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/create.js b/node_modules/lodash/fp/create.js new file mode 100644 index 0000000..752025f --- /dev/null +++ b/node_modules/lodash/fp/create.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('create', require('../create')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/curry.js b/node_modules/lodash/fp/curry.js new file mode 100644 index 0000000..b0b4168 --- /dev/null +++ b/node_modules/lodash/fp/curry.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('curry', require('../curry')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/curryN.js b/node_modules/lodash/fp/curryN.js new file mode 100644 index 0000000..2ae7d00 --- /dev/null +++ b/node_modules/lodash/fp/curryN.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('curryN', require('../curry')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/curryRight.js b/node_modules/lodash/fp/curryRight.js new file mode 100644 index 0000000..cb619eb --- /dev/null +++ b/node_modules/lodash/fp/curryRight.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('curryRight', require('../curryRight')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/curryRightN.js b/node_modules/lodash/fp/curryRightN.js new file mode 100644 index 0000000..2495afc --- /dev/null +++ b/node_modules/lodash/fp/curryRightN.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('curryRightN', require('../curryRight')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/date.js b/node_modules/lodash/fp/date.js new file mode 100644 index 0000000..82cb952 --- /dev/null +++ b/node_modules/lodash/fp/date.js @@ -0,0 +1,2 @@ +var convert = require('./convert'); +module.exports = convert(require('../date')); diff --git a/node_modules/lodash/fp/debounce.js b/node_modules/lodash/fp/debounce.js new file mode 100644 index 0000000..2612229 --- /dev/null +++ b/node_modules/lodash/fp/debounce.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('debounce', require('../debounce')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/deburr.js b/node_modules/lodash/fp/deburr.js new file mode 100644 index 0000000..96463ab --- /dev/null +++ b/node_modules/lodash/fp/deburr.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('deburr', require('../deburr'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/defaultTo.js b/node_modules/lodash/fp/defaultTo.js new file mode 100644 index 0000000..d6b52a4 --- /dev/null +++ b/node_modules/lodash/fp/defaultTo.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('defaultTo', require('../defaultTo')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/defaults.js b/node_modules/lodash/fp/defaults.js new file mode 100644 index 0000000..e1a8e6e --- /dev/null +++ b/node_modules/lodash/fp/defaults.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('defaults', require('../defaults')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/defaultsAll.js b/node_modules/lodash/fp/defaultsAll.js new file mode 100644 index 0000000..238fcc3 --- /dev/null +++ b/node_modules/lodash/fp/defaultsAll.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('defaultsAll', require('../defaults')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/defaultsDeep.js b/node_modules/lodash/fp/defaultsDeep.js new file mode 100644 index 0000000..1f172ff --- /dev/null +++ b/node_modules/lodash/fp/defaultsDeep.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('defaultsDeep', require('../defaultsDeep')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/defaultsDeepAll.js b/node_modules/lodash/fp/defaultsDeepAll.js new file mode 100644 index 0000000..6835f2f --- /dev/null +++ b/node_modules/lodash/fp/defaultsDeepAll.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('defaultsDeepAll', require('../defaultsDeep')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/defer.js b/node_modules/lodash/fp/defer.js new file mode 100644 index 0000000..ec7990f --- /dev/null +++ b/node_modules/lodash/fp/defer.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('defer', require('../defer'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/delay.js b/node_modules/lodash/fp/delay.js new file mode 100644 index 0000000..556dbd5 --- /dev/null +++ b/node_modules/lodash/fp/delay.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('delay', require('../delay')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/difference.js b/node_modules/lodash/fp/difference.js new file mode 100644 index 0000000..2d03765 --- /dev/null +++ b/node_modules/lodash/fp/difference.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('difference', require('../difference')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/differenceBy.js b/node_modules/lodash/fp/differenceBy.js new file mode 100644 index 0000000..2f91491 --- /dev/null +++ b/node_modules/lodash/fp/differenceBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('differenceBy', require('../differenceBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/differenceWith.js b/node_modules/lodash/fp/differenceWith.js new file mode 100644 index 0000000..bcf5ad2 --- /dev/null +++ b/node_modules/lodash/fp/differenceWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('differenceWith', require('../differenceWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/dissoc.js b/node_modules/lodash/fp/dissoc.js new file mode 100644 index 0000000..7ec7be1 --- /dev/null +++ b/node_modules/lodash/fp/dissoc.js @@ -0,0 +1 @@ +module.exports = require('./unset'); diff --git a/node_modules/lodash/fp/dissocPath.js b/node_modules/lodash/fp/dissocPath.js new file mode 100644 index 0000000..7ec7be1 --- /dev/null +++ b/node_modules/lodash/fp/dissocPath.js @@ -0,0 +1 @@ +module.exports = require('./unset'); diff --git a/node_modules/lodash/fp/divide.js b/node_modules/lodash/fp/divide.js new file mode 100644 index 0000000..82048c5 --- /dev/null +++ b/node_modules/lodash/fp/divide.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('divide', require('../divide')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/drop.js b/node_modules/lodash/fp/drop.js new file mode 100644 index 0000000..2fa9b4f --- /dev/null +++ b/node_modules/lodash/fp/drop.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('drop', require('../drop')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/dropLast.js b/node_modules/lodash/fp/dropLast.js new file mode 100644 index 0000000..174e525 --- /dev/null +++ b/node_modules/lodash/fp/dropLast.js @@ -0,0 +1 @@ +module.exports = require('./dropRight'); diff --git a/node_modules/lodash/fp/dropLastWhile.js b/node_modules/lodash/fp/dropLastWhile.js new file mode 100644 index 0000000..be2a9d2 --- /dev/null +++ b/node_modules/lodash/fp/dropLastWhile.js @@ -0,0 +1 @@ +module.exports = require('./dropRightWhile'); diff --git a/node_modules/lodash/fp/dropRight.js b/node_modules/lodash/fp/dropRight.js new file mode 100644 index 0000000..e98881f --- /dev/null +++ b/node_modules/lodash/fp/dropRight.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('dropRight', require('../dropRight')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/dropRightWhile.js b/node_modules/lodash/fp/dropRightWhile.js new file mode 100644 index 0000000..cacaa70 --- /dev/null +++ b/node_modules/lodash/fp/dropRightWhile.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('dropRightWhile', require('../dropRightWhile')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/dropWhile.js b/node_modules/lodash/fp/dropWhile.js new file mode 100644 index 0000000..285f864 --- /dev/null +++ b/node_modules/lodash/fp/dropWhile.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('dropWhile', require('../dropWhile')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/each.js b/node_modules/lodash/fp/each.js new file mode 100644 index 0000000..8800f42 --- /dev/null +++ b/node_modules/lodash/fp/each.js @@ -0,0 +1 @@ +module.exports = require('./forEach'); diff --git a/node_modules/lodash/fp/eachRight.js b/node_modules/lodash/fp/eachRight.js new file mode 100644 index 0000000..3252b2a --- /dev/null +++ b/node_modules/lodash/fp/eachRight.js @@ -0,0 +1 @@ +module.exports = require('./forEachRight'); diff --git a/node_modules/lodash/fp/endsWith.js b/node_modules/lodash/fp/endsWith.js new file mode 100644 index 0000000..17dc2a4 --- /dev/null +++ b/node_modules/lodash/fp/endsWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('endsWith', require('../endsWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/entries.js b/node_modules/lodash/fp/entries.js new file mode 100644 index 0000000..7a88df2 --- /dev/null +++ b/node_modules/lodash/fp/entries.js @@ -0,0 +1 @@ +module.exports = require('./toPairs'); diff --git a/node_modules/lodash/fp/entriesIn.js b/node_modules/lodash/fp/entriesIn.js new file mode 100644 index 0000000..f6c6331 --- /dev/null +++ b/node_modules/lodash/fp/entriesIn.js @@ -0,0 +1 @@ +module.exports = require('./toPairsIn'); diff --git a/node_modules/lodash/fp/eq.js b/node_modules/lodash/fp/eq.js new file mode 100644 index 0000000..9a3d21b --- /dev/null +++ b/node_modules/lodash/fp/eq.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('eq', require('../eq')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/equals.js b/node_modules/lodash/fp/equals.js new file mode 100644 index 0000000..e6a5ce0 --- /dev/null +++ b/node_modules/lodash/fp/equals.js @@ -0,0 +1 @@ +module.exports = require('./isEqual'); diff --git a/node_modules/lodash/fp/escape.js b/node_modules/lodash/fp/escape.js new file mode 100644 index 0000000..52c1fbb --- /dev/null +++ b/node_modules/lodash/fp/escape.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('escape', require('../escape'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/escapeRegExp.js b/node_modules/lodash/fp/escapeRegExp.js new file mode 100644 index 0000000..369b2ef --- /dev/null +++ b/node_modules/lodash/fp/escapeRegExp.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('escapeRegExp', require('../escapeRegExp'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/every.js b/node_modules/lodash/fp/every.js new file mode 100644 index 0000000..95c2776 --- /dev/null +++ b/node_modules/lodash/fp/every.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('every', require('../every')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/extend.js b/node_modules/lodash/fp/extend.js new file mode 100644 index 0000000..e00166c --- /dev/null +++ b/node_modules/lodash/fp/extend.js @@ -0,0 +1 @@ +module.exports = require('./assignIn'); diff --git a/node_modules/lodash/fp/extendAll.js b/node_modules/lodash/fp/extendAll.js new file mode 100644 index 0000000..cc55b64 --- /dev/null +++ b/node_modules/lodash/fp/extendAll.js @@ -0,0 +1 @@ +module.exports = require('./assignInAll'); diff --git a/node_modules/lodash/fp/extendAllWith.js b/node_modules/lodash/fp/extendAllWith.js new file mode 100644 index 0000000..6679d20 --- /dev/null +++ b/node_modules/lodash/fp/extendAllWith.js @@ -0,0 +1 @@ +module.exports = require('./assignInAllWith'); diff --git a/node_modules/lodash/fp/extendWith.js b/node_modules/lodash/fp/extendWith.js new file mode 100644 index 0000000..dbdcb3b --- /dev/null +++ b/node_modules/lodash/fp/extendWith.js @@ -0,0 +1 @@ +module.exports = require('./assignInWith'); diff --git a/node_modules/lodash/fp/fill.js b/node_modules/lodash/fp/fill.js new file mode 100644 index 0000000..b2d47e8 --- /dev/null +++ b/node_modules/lodash/fp/fill.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('fill', require('../fill')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/filter.js b/node_modules/lodash/fp/filter.js new file mode 100644 index 0000000..796d501 --- /dev/null +++ b/node_modules/lodash/fp/filter.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('filter', require('../filter')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/find.js b/node_modules/lodash/fp/find.js new file mode 100644 index 0000000..f805d33 --- /dev/null +++ b/node_modules/lodash/fp/find.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('find', require('../find')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/findFrom.js b/node_modules/lodash/fp/findFrom.js new file mode 100644 index 0000000..da8275e --- /dev/null +++ b/node_modules/lodash/fp/findFrom.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('findFrom', require('../find')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/findIndex.js b/node_modules/lodash/fp/findIndex.js new file mode 100644 index 0000000..8c15fd1 --- /dev/null +++ b/node_modules/lodash/fp/findIndex.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('findIndex', require('../findIndex')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/findIndexFrom.js b/node_modules/lodash/fp/findIndexFrom.js new file mode 100644 index 0000000..32e98cb --- /dev/null +++ b/node_modules/lodash/fp/findIndexFrom.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('findIndexFrom', require('../findIndex')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/findKey.js b/node_modules/lodash/fp/findKey.js new file mode 100644 index 0000000..475bcfa --- /dev/null +++ b/node_modules/lodash/fp/findKey.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('findKey', require('../findKey')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/findLast.js b/node_modules/lodash/fp/findLast.js new file mode 100644 index 0000000..093fe94 --- /dev/null +++ b/node_modules/lodash/fp/findLast.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('findLast', require('../findLast')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/findLastFrom.js b/node_modules/lodash/fp/findLastFrom.js new file mode 100644 index 0000000..76c38fb --- /dev/null +++ b/node_modules/lodash/fp/findLastFrom.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('findLastFrom', require('../findLast')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/findLastIndex.js b/node_modules/lodash/fp/findLastIndex.js new file mode 100644 index 0000000..36986df --- /dev/null +++ b/node_modules/lodash/fp/findLastIndex.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('findLastIndex', require('../findLastIndex')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/findLastIndexFrom.js b/node_modules/lodash/fp/findLastIndexFrom.js new file mode 100644 index 0000000..34c8176 --- /dev/null +++ b/node_modules/lodash/fp/findLastIndexFrom.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('findLastIndexFrom', require('../findLastIndex')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/findLastKey.js b/node_modules/lodash/fp/findLastKey.js new file mode 100644 index 0000000..5f81b60 --- /dev/null +++ b/node_modules/lodash/fp/findLastKey.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('findLastKey', require('../findLastKey')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/first.js b/node_modules/lodash/fp/first.js new file mode 100644 index 0000000..53f4ad1 --- /dev/null +++ b/node_modules/lodash/fp/first.js @@ -0,0 +1 @@ +module.exports = require('./head'); diff --git a/node_modules/lodash/fp/flatMap.js b/node_modules/lodash/fp/flatMap.js new file mode 100644 index 0000000..d01dc4d --- /dev/null +++ b/node_modules/lodash/fp/flatMap.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('flatMap', require('../flatMap')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/flatMapDeep.js b/node_modules/lodash/fp/flatMapDeep.js new file mode 100644 index 0000000..569c42e --- /dev/null +++ b/node_modules/lodash/fp/flatMapDeep.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('flatMapDeep', require('../flatMapDeep')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/flatMapDepth.js b/node_modules/lodash/fp/flatMapDepth.js new file mode 100644 index 0000000..6eb68fd --- /dev/null +++ b/node_modules/lodash/fp/flatMapDepth.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('flatMapDepth', require('../flatMapDepth')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/flatten.js b/node_modules/lodash/fp/flatten.js new file mode 100644 index 0000000..30425d8 --- /dev/null +++ b/node_modules/lodash/fp/flatten.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('flatten', require('../flatten'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/flattenDeep.js b/node_modules/lodash/fp/flattenDeep.js new file mode 100644 index 0000000..aed5db2 --- /dev/null +++ b/node_modules/lodash/fp/flattenDeep.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('flattenDeep', require('../flattenDeep'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/flattenDepth.js b/node_modules/lodash/fp/flattenDepth.js new file mode 100644 index 0000000..ad65e37 --- /dev/null +++ b/node_modules/lodash/fp/flattenDepth.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('flattenDepth', require('../flattenDepth')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/flip.js b/node_modules/lodash/fp/flip.js new file mode 100644 index 0000000..0547e7b --- /dev/null +++ b/node_modules/lodash/fp/flip.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('flip', require('../flip'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/floor.js b/node_modules/lodash/fp/floor.js new file mode 100644 index 0000000..a6cf335 --- /dev/null +++ b/node_modules/lodash/fp/floor.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('floor', require('../floor')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/flow.js b/node_modules/lodash/fp/flow.js new file mode 100644 index 0000000..cd83677 --- /dev/null +++ b/node_modules/lodash/fp/flow.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('flow', require('../flow')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/flowRight.js b/node_modules/lodash/fp/flowRight.js new file mode 100644 index 0000000..972a5b9 --- /dev/null +++ b/node_modules/lodash/fp/flowRight.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('flowRight', require('../flowRight')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/forEach.js b/node_modules/lodash/fp/forEach.js new file mode 100644 index 0000000..2f49452 --- /dev/null +++ b/node_modules/lodash/fp/forEach.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('forEach', require('../forEach')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/forEachRight.js b/node_modules/lodash/fp/forEachRight.js new file mode 100644 index 0000000..3ff9733 --- /dev/null +++ b/node_modules/lodash/fp/forEachRight.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('forEachRight', require('../forEachRight')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/forIn.js b/node_modules/lodash/fp/forIn.js new file mode 100644 index 0000000..9341749 --- /dev/null +++ b/node_modules/lodash/fp/forIn.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('forIn', require('../forIn')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/forInRight.js b/node_modules/lodash/fp/forInRight.js new file mode 100644 index 0000000..cecf8bb --- /dev/null +++ b/node_modules/lodash/fp/forInRight.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('forInRight', require('../forInRight')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/forOwn.js b/node_modules/lodash/fp/forOwn.js new file mode 100644 index 0000000..246449e --- /dev/null +++ b/node_modules/lodash/fp/forOwn.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('forOwn', require('../forOwn')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/forOwnRight.js b/node_modules/lodash/fp/forOwnRight.js new file mode 100644 index 0000000..c5e826e --- /dev/null +++ b/node_modules/lodash/fp/forOwnRight.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('forOwnRight', require('../forOwnRight')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/fromPairs.js b/node_modules/lodash/fp/fromPairs.js new file mode 100644 index 0000000..f8cc596 --- /dev/null +++ b/node_modules/lodash/fp/fromPairs.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('fromPairs', require('../fromPairs')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/function.js b/node_modules/lodash/fp/function.js new file mode 100644 index 0000000..dfe69b1 --- /dev/null +++ b/node_modules/lodash/fp/function.js @@ -0,0 +1,2 @@ +var convert = require('./convert'); +module.exports = convert(require('../function')); diff --git a/node_modules/lodash/fp/functions.js b/node_modules/lodash/fp/functions.js new file mode 100644 index 0000000..09d1bb1 --- /dev/null +++ b/node_modules/lodash/fp/functions.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('functions', require('../functions'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/functionsIn.js b/node_modules/lodash/fp/functionsIn.js new file mode 100644 index 0000000..2cfeb83 --- /dev/null +++ b/node_modules/lodash/fp/functionsIn.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('functionsIn', require('../functionsIn'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/get.js b/node_modules/lodash/fp/get.js new file mode 100644 index 0000000..6d3a328 --- /dev/null +++ b/node_modules/lodash/fp/get.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('get', require('../get')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/getOr.js b/node_modules/lodash/fp/getOr.js new file mode 100644 index 0000000..7dbf771 --- /dev/null +++ b/node_modules/lodash/fp/getOr.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('getOr', require('../get')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/groupBy.js b/node_modules/lodash/fp/groupBy.js new file mode 100644 index 0000000..fc0bc78 --- /dev/null +++ b/node_modules/lodash/fp/groupBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('groupBy', require('../groupBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/gt.js b/node_modules/lodash/fp/gt.js new file mode 100644 index 0000000..9e57c80 --- /dev/null +++ b/node_modules/lodash/fp/gt.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('gt', require('../gt')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/gte.js b/node_modules/lodash/fp/gte.js new file mode 100644 index 0000000..4584786 --- /dev/null +++ b/node_modules/lodash/fp/gte.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('gte', require('../gte')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/has.js b/node_modules/lodash/fp/has.js new file mode 100644 index 0000000..b901298 --- /dev/null +++ b/node_modules/lodash/fp/has.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('has', require('../has')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/hasIn.js b/node_modules/lodash/fp/hasIn.js new file mode 100644 index 0000000..b3c3d1a --- /dev/null +++ b/node_modules/lodash/fp/hasIn.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('hasIn', require('../hasIn')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/head.js b/node_modules/lodash/fp/head.js new file mode 100644 index 0000000..2694f0a --- /dev/null +++ b/node_modules/lodash/fp/head.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('head', require('../head'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/identical.js b/node_modules/lodash/fp/identical.js new file mode 100644 index 0000000..85563f4 --- /dev/null +++ b/node_modules/lodash/fp/identical.js @@ -0,0 +1 @@ +module.exports = require('./eq'); diff --git a/node_modules/lodash/fp/identity.js b/node_modules/lodash/fp/identity.js new file mode 100644 index 0000000..096415a --- /dev/null +++ b/node_modules/lodash/fp/identity.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('identity', require('../identity'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/inRange.js b/node_modules/lodash/fp/inRange.js new file mode 100644 index 0000000..202d940 --- /dev/null +++ b/node_modules/lodash/fp/inRange.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('inRange', require('../inRange')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/includes.js b/node_modules/lodash/fp/includes.js new file mode 100644 index 0000000..1146780 --- /dev/null +++ b/node_modules/lodash/fp/includes.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('includes', require('../includes')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/includesFrom.js b/node_modules/lodash/fp/includesFrom.js new file mode 100644 index 0000000..683afdb --- /dev/null +++ b/node_modules/lodash/fp/includesFrom.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('includesFrom', require('../includes')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/indexBy.js b/node_modules/lodash/fp/indexBy.js new file mode 100644 index 0000000..7e64bc0 --- /dev/null +++ b/node_modules/lodash/fp/indexBy.js @@ -0,0 +1 @@ +module.exports = require('./keyBy'); diff --git a/node_modules/lodash/fp/indexOf.js b/node_modules/lodash/fp/indexOf.js new file mode 100644 index 0000000..524658e --- /dev/null +++ b/node_modules/lodash/fp/indexOf.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('indexOf', require('../indexOf')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/indexOfFrom.js b/node_modules/lodash/fp/indexOfFrom.js new file mode 100644 index 0000000..d99c822 --- /dev/null +++ b/node_modules/lodash/fp/indexOfFrom.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('indexOfFrom', require('../indexOf')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/init.js b/node_modules/lodash/fp/init.js new file mode 100644 index 0000000..2f88d8b --- /dev/null +++ b/node_modules/lodash/fp/init.js @@ -0,0 +1 @@ +module.exports = require('./initial'); diff --git a/node_modules/lodash/fp/initial.js b/node_modules/lodash/fp/initial.js new file mode 100644 index 0000000..b732ba0 --- /dev/null +++ b/node_modules/lodash/fp/initial.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('initial', require('../initial'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/intersection.js b/node_modules/lodash/fp/intersection.js new file mode 100644 index 0000000..52936d5 --- /dev/null +++ b/node_modules/lodash/fp/intersection.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('intersection', require('../intersection')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/intersectionBy.js b/node_modules/lodash/fp/intersectionBy.js new file mode 100644 index 0000000..72629f2 --- /dev/null +++ b/node_modules/lodash/fp/intersectionBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('intersectionBy', require('../intersectionBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/intersectionWith.js b/node_modules/lodash/fp/intersectionWith.js new file mode 100644 index 0000000..e064f40 --- /dev/null +++ b/node_modules/lodash/fp/intersectionWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('intersectionWith', require('../intersectionWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/invert.js b/node_modules/lodash/fp/invert.js new file mode 100644 index 0000000..2d5d1f0 --- /dev/null +++ b/node_modules/lodash/fp/invert.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('invert', require('../invert')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/invertBy.js b/node_modules/lodash/fp/invertBy.js new file mode 100644 index 0000000..63ca97e --- /dev/null +++ b/node_modules/lodash/fp/invertBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('invertBy', require('../invertBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/invertObj.js b/node_modules/lodash/fp/invertObj.js new file mode 100644 index 0000000..f1d842e --- /dev/null +++ b/node_modules/lodash/fp/invertObj.js @@ -0,0 +1 @@ +module.exports = require('./invert'); diff --git a/node_modules/lodash/fp/invoke.js b/node_modules/lodash/fp/invoke.js new file mode 100644 index 0000000..fcf17f0 --- /dev/null +++ b/node_modules/lodash/fp/invoke.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('invoke', require('../invoke')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/invokeArgs.js b/node_modules/lodash/fp/invokeArgs.js new file mode 100644 index 0000000..d3f2953 --- /dev/null +++ b/node_modules/lodash/fp/invokeArgs.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('invokeArgs', require('../invoke')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/invokeArgsMap.js b/node_modules/lodash/fp/invokeArgsMap.js new file mode 100644 index 0000000..eaa9f84 --- /dev/null +++ b/node_modules/lodash/fp/invokeArgsMap.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('invokeArgsMap', require('../invokeMap')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/invokeMap.js b/node_modules/lodash/fp/invokeMap.js new file mode 100644 index 0000000..6515fd7 --- /dev/null +++ b/node_modules/lodash/fp/invokeMap.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('invokeMap', require('../invokeMap')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isArguments.js b/node_modules/lodash/fp/isArguments.js new file mode 100644 index 0000000..1d93c9e --- /dev/null +++ b/node_modules/lodash/fp/isArguments.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isArguments', require('../isArguments'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isArray.js b/node_modules/lodash/fp/isArray.js new file mode 100644 index 0000000..ba7ade8 --- /dev/null +++ b/node_modules/lodash/fp/isArray.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isArray', require('../isArray'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isArrayBuffer.js b/node_modules/lodash/fp/isArrayBuffer.js new file mode 100644 index 0000000..5088513 --- /dev/null +++ b/node_modules/lodash/fp/isArrayBuffer.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isArrayBuffer', require('../isArrayBuffer'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isArrayLike.js b/node_modules/lodash/fp/isArrayLike.js new file mode 100644 index 0000000..8f1856b --- /dev/null +++ b/node_modules/lodash/fp/isArrayLike.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isArrayLike', require('../isArrayLike'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isArrayLikeObject.js b/node_modules/lodash/fp/isArrayLikeObject.js new file mode 100644 index 0000000..2108498 --- /dev/null +++ b/node_modules/lodash/fp/isArrayLikeObject.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isArrayLikeObject', require('../isArrayLikeObject'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isBoolean.js b/node_modules/lodash/fp/isBoolean.js new file mode 100644 index 0000000..9339f75 --- /dev/null +++ b/node_modules/lodash/fp/isBoolean.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isBoolean', require('../isBoolean'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isBuffer.js b/node_modules/lodash/fp/isBuffer.js new file mode 100644 index 0000000..e60b123 --- /dev/null +++ b/node_modules/lodash/fp/isBuffer.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isBuffer', require('../isBuffer'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isDate.js b/node_modules/lodash/fp/isDate.js new file mode 100644 index 0000000..dc41d08 --- /dev/null +++ b/node_modules/lodash/fp/isDate.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isDate', require('../isDate'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isElement.js b/node_modules/lodash/fp/isElement.js new file mode 100644 index 0000000..18ee039 --- /dev/null +++ b/node_modules/lodash/fp/isElement.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isElement', require('../isElement'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isEmpty.js b/node_modules/lodash/fp/isEmpty.js new file mode 100644 index 0000000..0f4ae84 --- /dev/null +++ b/node_modules/lodash/fp/isEmpty.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isEmpty', require('../isEmpty'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isEqual.js b/node_modules/lodash/fp/isEqual.js new file mode 100644 index 0000000..4138386 --- /dev/null +++ b/node_modules/lodash/fp/isEqual.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isEqual', require('../isEqual')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isEqualWith.js b/node_modules/lodash/fp/isEqualWith.js new file mode 100644 index 0000000..029ff5c --- /dev/null +++ b/node_modules/lodash/fp/isEqualWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isEqualWith', require('../isEqualWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isError.js b/node_modules/lodash/fp/isError.js new file mode 100644 index 0000000..3dfd81c --- /dev/null +++ b/node_modules/lodash/fp/isError.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isError', require('../isError'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isFinite.js b/node_modules/lodash/fp/isFinite.js new file mode 100644 index 0000000..0b647b8 --- /dev/null +++ b/node_modules/lodash/fp/isFinite.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isFinite', require('../isFinite'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isFunction.js b/node_modules/lodash/fp/isFunction.js new file mode 100644 index 0000000..ff8e5c4 --- /dev/null +++ b/node_modules/lodash/fp/isFunction.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isFunction', require('../isFunction'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isInteger.js b/node_modules/lodash/fp/isInteger.js new file mode 100644 index 0000000..67af4ff --- /dev/null +++ b/node_modules/lodash/fp/isInteger.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isInteger', require('../isInteger'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isLength.js b/node_modules/lodash/fp/isLength.js new file mode 100644 index 0000000..fc101c5 --- /dev/null +++ b/node_modules/lodash/fp/isLength.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isLength', require('../isLength'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isMap.js b/node_modules/lodash/fp/isMap.js new file mode 100644 index 0000000..a209aa6 --- /dev/null +++ b/node_modules/lodash/fp/isMap.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isMap', require('../isMap'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isMatch.js b/node_modules/lodash/fp/isMatch.js new file mode 100644 index 0000000..6264ca1 --- /dev/null +++ b/node_modules/lodash/fp/isMatch.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isMatch', require('../isMatch')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isMatchWith.js b/node_modules/lodash/fp/isMatchWith.js new file mode 100644 index 0000000..d95f319 --- /dev/null +++ b/node_modules/lodash/fp/isMatchWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isMatchWith', require('../isMatchWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isNaN.js b/node_modules/lodash/fp/isNaN.js new file mode 100644 index 0000000..66a978f --- /dev/null +++ b/node_modules/lodash/fp/isNaN.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isNaN', require('../isNaN'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isNative.js b/node_modules/lodash/fp/isNative.js new file mode 100644 index 0000000..3d775ba --- /dev/null +++ b/node_modules/lodash/fp/isNative.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isNative', require('../isNative'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isNil.js b/node_modules/lodash/fp/isNil.js new file mode 100644 index 0000000..5952c02 --- /dev/null +++ b/node_modules/lodash/fp/isNil.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isNil', require('../isNil'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isNull.js b/node_modules/lodash/fp/isNull.js new file mode 100644 index 0000000..f201a35 --- /dev/null +++ b/node_modules/lodash/fp/isNull.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isNull', require('../isNull'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isNumber.js b/node_modules/lodash/fp/isNumber.js new file mode 100644 index 0000000..a2b5fa0 --- /dev/null +++ b/node_modules/lodash/fp/isNumber.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isNumber', require('../isNumber'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isObject.js b/node_modules/lodash/fp/isObject.js new file mode 100644 index 0000000..231ace0 --- /dev/null +++ b/node_modules/lodash/fp/isObject.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isObject', require('../isObject'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isObjectLike.js b/node_modules/lodash/fp/isObjectLike.js new file mode 100644 index 0000000..f16082e --- /dev/null +++ b/node_modules/lodash/fp/isObjectLike.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isObjectLike', require('../isObjectLike'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isPlainObject.js b/node_modules/lodash/fp/isPlainObject.js new file mode 100644 index 0000000..b5bea90 --- /dev/null +++ b/node_modules/lodash/fp/isPlainObject.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isPlainObject', require('../isPlainObject'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isRegExp.js b/node_modules/lodash/fp/isRegExp.js new file mode 100644 index 0000000..12a1a3d --- /dev/null +++ b/node_modules/lodash/fp/isRegExp.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isRegExp', require('../isRegExp'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isSafeInteger.js b/node_modules/lodash/fp/isSafeInteger.js new file mode 100644 index 0000000..7230f55 --- /dev/null +++ b/node_modules/lodash/fp/isSafeInteger.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isSafeInteger', require('../isSafeInteger'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isSet.js b/node_modules/lodash/fp/isSet.js new file mode 100644 index 0000000..35c01f6 --- /dev/null +++ b/node_modules/lodash/fp/isSet.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isSet', require('../isSet'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isString.js b/node_modules/lodash/fp/isString.js new file mode 100644 index 0000000..1fd0679 --- /dev/null +++ b/node_modules/lodash/fp/isString.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isString', require('../isString'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isSymbol.js b/node_modules/lodash/fp/isSymbol.js new file mode 100644 index 0000000..3867695 --- /dev/null +++ b/node_modules/lodash/fp/isSymbol.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isSymbol', require('../isSymbol'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isTypedArray.js b/node_modules/lodash/fp/isTypedArray.js new file mode 100644 index 0000000..8567953 --- /dev/null +++ b/node_modules/lodash/fp/isTypedArray.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isTypedArray', require('../isTypedArray'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isUndefined.js b/node_modules/lodash/fp/isUndefined.js new file mode 100644 index 0000000..ddbca31 --- /dev/null +++ b/node_modules/lodash/fp/isUndefined.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isUndefined', require('../isUndefined'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isWeakMap.js b/node_modules/lodash/fp/isWeakMap.js new file mode 100644 index 0000000..ef60c61 --- /dev/null +++ b/node_modules/lodash/fp/isWeakMap.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isWeakMap', require('../isWeakMap'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/isWeakSet.js b/node_modules/lodash/fp/isWeakSet.js new file mode 100644 index 0000000..c99bfaa --- /dev/null +++ b/node_modules/lodash/fp/isWeakSet.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('isWeakSet', require('../isWeakSet'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/iteratee.js b/node_modules/lodash/fp/iteratee.js new file mode 100644 index 0000000..9f0f717 --- /dev/null +++ b/node_modules/lodash/fp/iteratee.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('iteratee', require('../iteratee')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/join.js b/node_modules/lodash/fp/join.js new file mode 100644 index 0000000..a220e00 --- /dev/null +++ b/node_modules/lodash/fp/join.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('join', require('../join')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/juxt.js b/node_modules/lodash/fp/juxt.js new file mode 100644 index 0000000..f71e04e --- /dev/null +++ b/node_modules/lodash/fp/juxt.js @@ -0,0 +1 @@ +module.exports = require('./over'); diff --git a/node_modules/lodash/fp/kebabCase.js b/node_modules/lodash/fp/kebabCase.js new file mode 100644 index 0000000..60737f1 --- /dev/null +++ b/node_modules/lodash/fp/kebabCase.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('kebabCase', require('../kebabCase'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/keyBy.js b/node_modules/lodash/fp/keyBy.js new file mode 100644 index 0000000..9a6a85d --- /dev/null +++ b/node_modules/lodash/fp/keyBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('keyBy', require('../keyBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/keys.js b/node_modules/lodash/fp/keys.js new file mode 100644 index 0000000..e12bb07 --- /dev/null +++ b/node_modules/lodash/fp/keys.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('keys', require('../keys'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/keysIn.js b/node_modules/lodash/fp/keysIn.js new file mode 100644 index 0000000..f3eb36a --- /dev/null +++ b/node_modules/lodash/fp/keysIn.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('keysIn', require('../keysIn'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/lang.js b/node_modules/lodash/fp/lang.js new file mode 100644 index 0000000..08cc9c1 --- /dev/null +++ b/node_modules/lodash/fp/lang.js @@ -0,0 +1,2 @@ +var convert = require('./convert'); +module.exports = convert(require('../lang')); diff --git a/node_modules/lodash/fp/last.js b/node_modules/lodash/fp/last.js new file mode 100644 index 0000000..0f71699 --- /dev/null +++ b/node_modules/lodash/fp/last.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('last', require('../last'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/lastIndexOf.js b/node_modules/lodash/fp/lastIndexOf.js new file mode 100644 index 0000000..ddf39c3 --- /dev/null +++ b/node_modules/lodash/fp/lastIndexOf.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('lastIndexOf', require('../lastIndexOf')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/lastIndexOfFrom.js b/node_modules/lodash/fp/lastIndexOfFrom.js new file mode 100644 index 0000000..1ff6a0b --- /dev/null +++ b/node_modules/lodash/fp/lastIndexOfFrom.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('lastIndexOfFrom', require('../lastIndexOf')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/lowerCase.js b/node_modules/lodash/fp/lowerCase.js new file mode 100644 index 0000000..ea64bc1 --- /dev/null +++ b/node_modules/lodash/fp/lowerCase.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('lowerCase', require('../lowerCase'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/lowerFirst.js b/node_modules/lodash/fp/lowerFirst.js new file mode 100644 index 0000000..539720a --- /dev/null +++ b/node_modules/lodash/fp/lowerFirst.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('lowerFirst', require('../lowerFirst'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/lt.js b/node_modules/lodash/fp/lt.js new file mode 100644 index 0000000..a31d21e --- /dev/null +++ b/node_modules/lodash/fp/lt.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('lt', require('../lt')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/lte.js b/node_modules/lodash/fp/lte.js new file mode 100644 index 0000000..d795d10 --- /dev/null +++ b/node_modules/lodash/fp/lte.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('lte', require('../lte')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/map.js b/node_modules/lodash/fp/map.js new file mode 100644 index 0000000..cf98794 --- /dev/null +++ b/node_modules/lodash/fp/map.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('map', require('../map')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/mapKeys.js b/node_modules/lodash/fp/mapKeys.js new file mode 100644 index 0000000..1684587 --- /dev/null +++ b/node_modules/lodash/fp/mapKeys.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('mapKeys', require('../mapKeys')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/mapValues.js b/node_modules/lodash/fp/mapValues.js new file mode 100644 index 0000000..4004972 --- /dev/null +++ b/node_modules/lodash/fp/mapValues.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('mapValues', require('../mapValues')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/matches.js b/node_modules/lodash/fp/matches.js new file mode 100644 index 0000000..29d1e1e --- /dev/null +++ b/node_modules/lodash/fp/matches.js @@ -0,0 +1 @@ +module.exports = require('./isMatch'); diff --git a/node_modules/lodash/fp/matchesProperty.js b/node_modules/lodash/fp/matchesProperty.js new file mode 100644 index 0000000..4575bd2 --- /dev/null +++ b/node_modules/lodash/fp/matchesProperty.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('matchesProperty', require('../matchesProperty')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/math.js b/node_modules/lodash/fp/math.js new file mode 100644 index 0000000..e8f50f7 --- /dev/null +++ b/node_modules/lodash/fp/math.js @@ -0,0 +1,2 @@ +var convert = require('./convert'); +module.exports = convert(require('../math')); diff --git a/node_modules/lodash/fp/max.js b/node_modules/lodash/fp/max.js new file mode 100644 index 0000000..a66acac --- /dev/null +++ b/node_modules/lodash/fp/max.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('max', require('../max'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/maxBy.js b/node_modules/lodash/fp/maxBy.js new file mode 100644 index 0000000..d083fd6 --- /dev/null +++ b/node_modules/lodash/fp/maxBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('maxBy', require('../maxBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/mean.js b/node_modules/lodash/fp/mean.js new file mode 100644 index 0000000..3117246 --- /dev/null +++ b/node_modules/lodash/fp/mean.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('mean', require('../mean'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/meanBy.js b/node_modules/lodash/fp/meanBy.js new file mode 100644 index 0000000..556f25e --- /dev/null +++ b/node_modules/lodash/fp/meanBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('meanBy', require('../meanBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/memoize.js b/node_modules/lodash/fp/memoize.js new file mode 100644 index 0000000..638eec6 --- /dev/null +++ b/node_modules/lodash/fp/memoize.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('memoize', require('../memoize')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/merge.js b/node_modules/lodash/fp/merge.js new file mode 100644 index 0000000..ac66add --- /dev/null +++ b/node_modules/lodash/fp/merge.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('merge', require('../merge')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/mergeAll.js b/node_modules/lodash/fp/mergeAll.js new file mode 100644 index 0000000..a3674d6 --- /dev/null +++ b/node_modules/lodash/fp/mergeAll.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('mergeAll', require('../merge')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/mergeAllWith.js b/node_modules/lodash/fp/mergeAllWith.js new file mode 100644 index 0000000..4bd4206 --- /dev/null +++ b/node_modules/lodash/fp/mergeAllWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('mergeAllWith', require('../mergeWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/mergeWith.js b/node_modules/lodash/fp/mergeWith.js new file mode 100644 index 0000000..00d44d5 --- /dev/null +++ b/node_modules/lodash/fp/mergeWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('mergeWith', require('../mergeWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/method.js b/node_modules/lodash/fp/method.js new file mode 100644 index 0000000..f4060c6 --- /dev/null +++ b/node_modules/lodash/fp/method.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('method', require('../method')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/methodOf.js b/node_modules/lodash/fp/methodOf.js new file mode 100644 index 0000000..6139905 --- /dev/null +++ b/node_modules/lodash/fp/methodOf.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('methodOf', require('../methodOf')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/min.js b/node_modules/lodash/fp/min.js new file mode 100644 index 0000000..d12c6b4 --- /dev/null +++ b/node_modules/lodash/fp/min.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('min', require('../min'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/minBy.js b/node_modules/lodash/fp/minBy.js new file mode 100644 index 0000000..fdb9e24 --- /dev/null +++ b/node_modules/lodash/fp/minBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('minBy', require('../minBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/mixin.js b/node_modules/lodash/fp/mixin.js new file mode 100644 index 0000000..332e6fb --- /dev/null +++ b/node_modules/lodash/fp/mixin.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('mixin', require('../mixin')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/multiply.js b/node_modules/lodash/fp/multiply.js new file mode 100644 index 0000000..4dcf0b0 --- /dev/null +++ b/node_modules/lodash/fp/multiply.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('multiply', require('../multiply')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/nAry.js b/node_modules/lodash/fp/nAry.js new file mode 100644 index 0000000..f262a76 --- /dev/null +++ b/node_modules/lodash/fp/nAry.js @@ -0,0 +1 @@ +module.exports = require('./ary'); diff --git a/node_modules/lodash/fp/negate.js b/node_modules/lodash/fp/negate.js new file mode 100644 index 0000000..8b6dc7c --- /dev/null +++ b/node_modules/lodash/fp/negate.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('negate', require('../negate'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/next.js b/node_modules/lodash/fp/next.js new file mode 100644 index 0000000..140155e --- /dev/null +++ b/node_modules/lodash/fp/next.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('next', require('../next'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/noop.js b/node_modules/lodash/fp/noop.js new file mode 100644 index 0000000..b9e32cc --- /dev/null +++ b/node_modules/lodash/fp/noop.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('noop', require('../noop'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/now.js b/node_modules/lodash/fp/now.js new file mode 100644 index 0000000..6de2068 --- /dev/null +++ b/node_modules/lodash/fp/now.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('now', require('../now'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/nth.js b/node_modules/lodash/fp/nth.js new file mode 100644 index 0000000..da4fda7 --- /dev/null +++ b/node_modules/lodash/fp/nth.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('nth', require('../nth')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/nthArg.js b/node_modules/lodash/fp/nthArg.js new file mode 100644 index 0000000..fce3165 --- /dev/null +++ b/node_modules/lodash/fp/nthArg.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('nthArg', require('../nthArg')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/number.js b/node_modules/lodash/fp/number.js new file mode 100644 index 0000000..5c10b88 --- /dev/null +++ b/node_modules/lodash/fp/number.js @@ -0,0 +1,2 @@ +var convert = require('./convert'); +module.exports = convert(require('../number')); diff --git a/node_modules/lodash/fp/object.js b/node_modules/lodash/fp/object.js new file mode 100644 index 0000000..ae39a13 --- /dev/null +++ b/node_modules/lodash/fp/object.js @@ -0,0 +1,2 @@ +var convert = require('./convert'); +module.exports = convert(require('../object')); diff --git a/node_modules/lodash/fp/omit.js b/node_modules/lodash/fp/omit.js new file mode 100644 index 0000000..fd68529 --- /dev/null +++ b/node_modules/lodash/fp/omit.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('omit', require('../omit')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/omitAll.js b/node_modules/lodash/fp/omitAll.js new file mode 100644 index 0000000..144cf4b --- /dev/null +++ b/node_modules/lodash/fp/omitAll.js @@ -0,0 +1 @@ +module.exports = require('./omit'); diff --git a/node_modules/lodash/fp/omitBy.js b/node_modules/lodash/fp/omitBy.js new file mode 100644 index 0000000..90df738 --- /dev/null +++ b/node_modules/lodash/fp/omitBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('omitBy', require('../omitBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/once.js b/node_modules/lodash/fp/once.js new file mode 100644 index 0000000..f8f0a5c --- /dev/null +++ b/node_modules/lodash/fp/once.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('once', require('../once'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/orderBy.js b/node_modules/lodash/fp/orderBy.js new file mode 100644 index 0000000..848e210 --- /dev/null +++ b/node_modules/lodash/fp/orderBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('orderBy', require('../orderBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/over.js b/node_modules/lodash/fp/over.js new file mode 100644 index 0000000..01eba7b --- /dev/null +++ b/node_modules/lodash/fp/over.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('over', require('../over')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/overArgs.js b/node_modules/lodash/fp/overArgs.js new file mode 100644 index 0000000..738556f --- /dev/null +++ b/node_modules/lodash/fp/overArgs.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('overArgs', require('../overArgs')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/overEvery.js b/node_modules/lodash/fp/overEvery.js new file mode 100644 index 0000000..9f5a032 --- /dev/null +++ b/node_modules/lodash/fp/overEvery.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('overEvery', require('../overEvery')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/overSome.js b/node_modules/lodash/fp/overSome.js new file mode 100644 index 0000000..15939d5 --- /dev/null +++ b/node_modules/lodash/fp/overSome.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('overSome', require('../overSome')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/pad.js b/node_modules/lodash/fp/pad.js new file mode 100644 index 0000000..f1dea4a --- /dev/null +++ b/node_modules/lodash/fp/pad.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('pad', require('../pad')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/padChars.js b/node_modules/lodash/fp/padChars.js new file mode 100644 index 0000000..d6e0804 --- /dev/null +++ b/node_modules/lodash/fp/padChars.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('padChars', require('../pad')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/padCharsEnd.js b/node_modules/lodash/fp/padCharsEnd.js new file mode 100644 index 0000000..d4ab79a --- /dev/null +++ b/node_modules/lodash/fp/padCharsEnd.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('padCharsEnd', require('../padEnd')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/padCharsStart.js b/node_modules/lodash/fp/padCharsStart.js new file mode 100644 index 0000000..a08a300 --- /dev/null +++ b/node_modules/lodash/fp/padCharsStart.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('padCharsStart', require('../padStart')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/padEnd.js b/node_modules/lodash/fp/padEnd.js new file mode 100644 index 0000000..a8522ec --- /dev/null +++ b/node_modules/lodash/fp/padEnd.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('padEnd', require('../padEnd')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/padStart.js b/node_modules/lodash/fp/padStart.js new file mode 100644 index 0000000..f4ca79d --- /dev/null +++ b/node_modules/lodash/fp/padStart.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('padStart', require('../padStart')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/parseInt.js b/node_modules/lodash/fp/parseInt.js new file mode 100644 index 0000000..27314cc --- /dev/null +++ b/node_modules/lodash/fp/parseInt.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('parseInt', require('../parseInt')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/partial.js b/node_modules/lodash/fp/partial.js new file mode 100644 index 0000000..5d46015 --- /dev/null +++ b/node_modules/lodash/fp/partial.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('partial', require('../partial')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/partialRight.js b/node_modules/lodash/fp/partialRight.js new file mode 100644 index 0000000..7f05fed --- /dev/null +++ b/node_modules/lodash/fp/partialRight.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('partialRight', require('../partialRight')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/partition.js b/node_modules/lodash/fp/partition.js new file mode 100644 index 0000000..2ebcacc --- /dev/null +++ b/node_modules/lodash/fp/partition.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('partition', require('../partition')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/path.js b/node_modules/lodash/fp/path.js new file mode 100644 index 0000000..b29cfb2 --- /dev/null +++ b/node_modules/lodash/fp/path.js @@ -0,0 +1 @@ +module.exports = require('./get'); diff --git a/node_modules/lodash/fp/pathEq.js b/node_modules/lodash/fp/pathEq.js new file mode 100644 index 0000000..36c027a --- /dev/null +++ b/node_modules/lodash/fp/pathEq.js @@ -0,0 +1 @@ +module.exports = require('./matchesProperty'); diff --git a/node_modules/lodash/fp/pathOr.js b/node_modules/lodash/fp/pathOr.js new file mode 100644 index 0000000..4ab5820 --- /dev/null +++ b/node_modules/lodash/fp/pathOr.js @@ -0,0 +1 @@ +module.exports = require('./getOr'); diff --git a/node_modules/lodash/fp/paths.js b/node_modules/lodash/fp/paths.js new file mode 100644 index 0000000..1eb7950 --- /dev/null +++ b/node_modules/lodash/fp/paths.js @@ -0,0 +1 @@ +module.exports = require('./at'); diff --git a/node_modules/lodash/fp/pick.js b/node_modules/lodash/fp/pick.js new file mode 100644 index 0000000..197393d --- /dev/null +++ b/node_modules/lodash/fp/pick.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('pick', require('../pick')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/pickAll.js b/node_modules/lodash/fp/pickAll.js new file mode 100644 index 0000000..a8ecd46 --- /dev/null +++ b/node_modules/lodash/fp/pickAll.js @@ -0,0 +1 @@ +module.exports = require('./pick'); diff --git a/node_modules/lodash/fp/pickBy.js b/node_modules/lodash/fp/pickBy.js new file mode 100644 index 0000000..d832d16 --- /dev/null +++ b/node_modules/lodash/fp/pickBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('pickBy', require('../pickBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/pipe.js b/node_modules/lodash/fp/pipe.js new file mode 100644 index 0000000..b2e1e2c --- /dev/null +++ b/node_modules/lodash/fp/pipe.js @@ -0,0 +1 @@ +module.exports = require('./flow'); diff --git a/node_modules/lodash/fp/placeholder.js b/node_modules/lodash/fp/placeholder.js new file mode 100644 index 0000000..1ce1739 --- /dev/null +++ b/node_modules/lodash/fp/placeholder.js @@ -0,0 +1,6 @@ +/** + * The default argument placeholder value for methods. + * + * @type {Object} + */ +module.exports = {}; diff --git a/node_modules/lodash/fp/plant.js b/node_modules/lodash/fp/plant.js new file mode 100644 index 0000000..eca8f32 --- /dev/null +++ b/node_modules/lodash/fp/plant.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('plant', require('../plant'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/pluck.js b/node_modules/lodash/fp/pluck.js new file mode 100644 index 0000000..0d1e1ab --- /dev/null +++ b/node_modules/lodash/fp/pluck.js @@ -0,0 +1 @@ +module.exports = require('./map'); diff --git a/node_modules/lodash/fp/prop.js b/node_modules/lodash/fp/prop.js new file mode 100644 index 0000000..b29cfb2 --- /dev/null +++ b/node_modules/lodash/fp/prop.js @@ -0,0 +1 @@ +module.exports = require('./get'); diff --git a/node_modules/lodash/fp/propEq.js b/node_modules/lodash/fp/propEq.js new file mode 100644 index 0000000..36c027a --- /dev/null +++ b/node_modules/lodash/fp/propEq.js @@ -0,0 +1 @@ +module.exports = require('./matchesProperty'); diff --git a/node_modules/lodash/fp/propOr.js b/node_modules/lodash/fp/propOr.js new file mode 100644 index 0000000..4ab5820 --- /dev/null +++ b/node_modules/lodash/fp/propOr.js @@ -0,0 +1 @@ +module.exports = require('./getOr'); diff --git a/node_modules/lodash/fp/property.js b/node_modules/lodash/fp/property.js new file mode 100644 index 0000000..b29cfb2 --- /dev/null +++ b/node_modules/lodash/fp/property.js @@ -0,0 +1 @@ +module.exports = require('./get'); diff --git a/node_modules/lodash/fp/propertyOf.js b/node_modules/lodash/fp/propertyOf.js new file mode 100644 index 0000000..f6273ee --- /dev/null +++ b/node_modules/lodash/fp/propertyOf.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('propertyOf', require('../get')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/props.js b/node_modules/lodash/fp/props.js new file mode 100644 index 0000000..1eb7950 --- /dev/null +++ b/node_modules/lodash/fp/props.js @@ -0,0 +1 @@ +module.exports = require('./at'); diff --git a/node_modules/lodash/fp/pull.js b/node_modules/lodash/fp/pull.js new file mode 100644 index 0000000..8d7084f --- /dev/null +++ b/node_modules/lodash/fp/pull.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('pull', require('../pull')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/pullAll.js b/node_modules/lodash/fp/pullAll.js new file mode 100644 index 0000000..98d5c9a --- /dev/null +++ b/node_modules/lodash/fp/pullAll.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('pullAll', require('../pullAll')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/pullAllBy.js b/node_modules/lodash/fp/pullAllBy.js new file mode 100644 index 0000000..876bc3b --- /dev/null +++ b/node_modules/lodash/fp/pullAllBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('pullAllBy', require('../pullAllBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/pullAllWith.js b/node_modules/lodash/fp/pullAllWith.js new file mode 100644 index 0000000..f71ba4d --- /dev/null +++ b/node_modules/lodash/fp/pullAllWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('pullAllWith', require('../pullAllWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/pullAt.js b/node_modules/lodash/fp/pullAt.js new file mode 100644 index 0000000..e8b3bb6 --- /dev/null +++ b/node_modules/lodash/fp/pullAt.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('pullAt', require('../pullAt')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/random.js b/node_modules/lodash/fp/random.js new file mode 100644 index 0000000..99d852e --- /dev/null +++ b/node_modules/lodash/fp/random.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('random', require('../random')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/range.js b/node_modules/lodash/fp/range.js new file mode 100644 index 0000000..a6bb591 --- /dev/null +++ b/node_modules/lodash/fp/range.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('range', require('../range')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/rangeRight.js b/node_modules/lodash/fp/rangeRight.js new file mode 100644 index 0000000..fdb712f --- /dev/null +++ b/node_modules/lodash/fp/rangeRight.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('rangeRight', require('../rangeRight')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/rangeStep.js b/node_modules/lodash/fp/rangeStep.js new file mode 100644 index 0000000..d72dfc2 --- /dev/null +++ b/node_modules/lodash/fp/rangeStep.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('rangeStep', require('../range')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/rangeStepRight.js b/node_modules/lodash/fp/rangeStepRight.js new file mode 100644 index 0000000..8b2a67b --- /dev/null +++ b/node_modules/lodash/fp/rangeStepRight.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('rangeStepRight', require('../rangeRight')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/rearg.js b/node_modules/lodash/fp/rearg.js new file mode 100644 index 0000000..678e02a --- /dev/null +++ b/node_modules/lodash/fp/rearg.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('rearg', require('../rearg')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/reduce.js b/node_modules/lodash/fp/reduce.js new file mode 100644 index 0000000..4cef0a0 --- /dev/null +++ b/node_modules/lodash/fp/reduce.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('reduce', require('../reduce')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/reduceRight.js b/node_modules/lodash/fp/reduceRight.js new file mode 100644 index 0000000..caf5bb5 --- /dev/null +++ b/node_modules/lodash/fp/reduceRight.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('reduceRight', require('../reduceRight')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/reject.js b/node_modules/lodash/fp/reject.js new file mode 100644 index 0000000..c163273 --- /dev/null +++ b/node_modules/lodash/fp/reject.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('reject', require('../reject')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/remove.js b/node_modules/lodash/fp/remove.js new file mode 100644 index 0000000..e9d1327 --- /dev/null +++ b/node_modules/lodash/fp/remove.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('remove', require('../remove')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/repeat.js b/node_modules/lodash/fp/repeat.js new file mode 100644 index 0000000..08470f2 --- /dev/null +++ b/node_modules/lodash/fp/repeat.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('repeat', require('../repeat')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/replace.js b/node_modules/lodash/fp/replace.js new file mode 100644 index 0000000..2227db6 --- /dev/null +++ b/node_modules/lodash/fp/replace.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('replace', require('../replace')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/rest.js b/node_modules/lodash/fp/rest.js new file mode 100644 index 0000000..c1f3d64 --- /dev/null +++ b/node_modules/lodash/fp/rest.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('rest', require('../rest')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/restFrom.js b/node_modules/lodash/fp/restFrom.js new file mode 100644 index 0000000..714e42b --- /dev/null +++ b/node_modules/lodash/fp/restFrom.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('restFrom', require('../rest')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/result.js b/node_modules/lodash/fp/result.js new file mode 100644 index 0000000..f86ce07 --- /dev/null +++ b/node_modules/lodash/fp/result.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('result', require('../result')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/reverse.js b/node_modules/lodash/fp/reverse.js new file mode 100644 index 0000000..07c9f5e --- /dev/null +++ b/node_modules/lodash/fp/reverse.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('reverse', require('../reverse')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/round.js b/node_modules/lodash/fp/round.js new file mode 100644 index 0000000..4c0e5c8 --- /dev/null +++ b/node_modules/lodash/fp/round.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('round', require('../round')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/sample.js b/node_modules/lodash/fp/sample.js new file mode 100644 index 0000000..6bea125 --- /dev/null +++ b/node_modules/lodash/fp/sample.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('sample', require('../sample'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/sampleSize.js b/node_modules/lodash/fp/sampleSize.js new file mode 100644 index 0000000..359ed6f --- /dev/null +++ b/node_modules/lodash/fp/sampleSize.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('sampleSize', require('../sampleSize')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/seq.js b/node_modules/lodash/fp/seq.js new file mode 100644 index 0000000..d8f42b0 --- /dev/null +++ b/node_modules/lodash/fp/seq.js @@ -0,0 +1,2 @@ +var convert = require('./convert'); +module.exports = convert(require('../seq')); diff --git a/node_modules/lodash/fp/set.js b/node_modules/lodash/fp/set.js new file mode 100644 index 0000000..0b56a56 --- /dev/null +++ b/node_modules/lodash/fp/set.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('set', require('../set')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/setWith.js b/node_modules/lodash/fp/setWith.js new file mode 100644 index 0000000..0b58495 --- /dev/null +++ b/node_modules/lodash/fp/setWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('setWith', require('../setWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/shuffle.js b/node_modules/lodash/fp/shuffle.js new file mode 100644 index 0000000..aa3a1ca --- /dev/null +++ b/node_modules/lodash/fp/shuffle.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('shuffle', require('../shuffle'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/size.js b/node_modules/lodash/fp/size.js new file mode 100644 index 0000000..7490136 --- /dev/null +++ b/node_modules/lodash/fp/size.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('size', require('../size'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/slice.js b/node_modules/lodash/fp/slice.js new file mode 100644 index 0000000..15945d3 --- /dev/null +++ b/node_modules/lodash/fp/slice.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('slice', require('../slice')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/snakeCase.js b/node_modules/lodash/fp/snakeCase.js new file mode 100644 index 0000000..a0ff780 --- /dev/null +++ b/node_modules/lodash/fp/snakeCase.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('snakeCase', require('../snakeCase'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/some.js b/node_modules/lodash/fp/some.js new file mode 100644 index 0000000..a4fa2d0 --- /dev/null +++ b/node_modules/lodash/fp/some.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('some', require('../some')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/sortBy.js b/node_modules/lodash/fp/sortBy.js new file mode 100644 index 0000000..e0790ad --- /dev/null +++ b/node_modules/lodash/fp/sortBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('sortBy', require('../sortBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/sortedIndex.js b/node_modules/lodash/fp/sortedIndex.js new file mode 100644 index 0000000..364a054 --- /dev/null +++ b/node_modules/lodash/fp/sortedIndex.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('sortedIndex', require('../sortedIndex')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/sortedIndexBy.js b/node_modules/lodash/fp/sortedIndexBy.js new file mode 100644 index 0000000..9593dbd --- /dev/null +++ b/node_modules/lodash/fp/sortedIndexBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('sortedIndexBy', require('../sortedIndexBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/sortedIndexOf.js b/node_modules/lodash/fp/sortedIndexOf.js new file mode 100644 index 0000000..c9084ca --- /dev/null +++ b/node_modules/lodash/fp/sortedIndexOf.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('sortedIndexOf', require('../sortedIndexOf')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/sortedLastIndex.js b/node_modules/lodash/fp/sortedLastIndex.js new file mode 100644 index 0000000..47fe241 --- /dev/null +++ b/node_modules/lodash/fp/sortedLastIndex.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('sortedLastIndex', require('../sortedLastIndex')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/sortedLastIndexBy.js b/node_modules/lodash/fp/sortedLastIndexBy.js new file mode 100644 index 0000000..0f9a347 --- /dev/null +++ b/node_modules/lodash/fp/sortedLastIndexBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('sortedLastIndexBy', require('../sortedLastIndexBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/sortedLastIndexOf.js b/node_modules/lodash/fp/sortedLastIndexOf.js new file mode 100644 index 0000000..0d4d932 --- /dev/null +++ b/node_modules/lodash/fp/sortedLastIndexOf.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('sortedLastIndexOf', require('../sortedLastIndexOf')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/sortedUniq.js b/node_modules/lodash/fp/sortedUniq.js new file mode 100644 index 0000000..882d283 --- /dev/null +++ b/node_modules/lodash/fp/sortedUniq.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('sortedUniq', require('../sortedUniq'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/sortedUniqBy.js b/node_modules/lodash/fp/sortedUniqBy.js new file mode 100644 index 0000000..033db91 --- /dev/null +++ b/node_modules/lodash/fp/sortedUniqBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('sortedUniqBy', require('../sortedUniqBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/split.js b/node_modules/lodash/fp/split.js new file mode 100644 index 0000000..14de1a7 --- /dev/null +++ b/node_modules/lodash/fp/split.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('split', require('../split')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/spread.js b/node_modules/lodash/fp/spread.js new file mode 100644 index 0000000..2d11b70 --- /dev/null +++ b/node_modules/lodash/fp/spread.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('spread', require('../spread')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/spreadFrom.js b/node_modules/lodash/fp/spreadFrom.js new file mode 100644 index 0000000..0b630df --- /dev/null +++ b/node_modules/lodash/fp/spreadFrom.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('spreadFrom', require('../spread')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/startCase.js b/node_modules/lodash/fp/startCase.js new file mode 100644 index 0000000..ada98c9 --- /dev/null +++ b/node_modules/lodash/fp/startCase.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('startCase', require('../startCase'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/startsWith.js b/node_modules/lodash/fp/startsWith.js new file mode 100644 index 0000000..985e2f2 --- /dev/null +++ b/node_modules/lodash/fp/startsWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('startsWith', require('../startsWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/string.js b/node_modules/lodash/fp/string.js new file mode 100644 index 0000000..773b037 --- /dev/null +++ b/node_modules/lodash/fp/string.js @@ -0,0 +1,2 @@ +var convert = require('./convert'); +module.exports = convert(require('../string')); diff --git a/node_modules/lodash/fp/stubArray.js b/node_modules/lodash/fp/stubArray.js new file mode 100644 index 0000000..cd604cb --- /dev/null +++ b/node_modules/lodash/fp/stubArray.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('stubArray', require('../stubArray'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/stubFalse.js b/node_modules/lodash/fp/stubFalse.js new file mode 100644 index 0000000..3296664 --- /dev/null +++ b/node_modules/lodash/fp/stubFalse.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('stubFalse', require('../stubFalse'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/stubObject.js b/node_modules/lodash/fp/stubObject.js new file mode 100644 index 0000000..c6c8ec4 --- /dev/null +++ b/node_modules/lodash/fp/stubObject.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('stubObject', require('../stubObject'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/stubString.js b/node_modules/lodash/fp/stubString.js new file mode 100644 index 0000000..701051e --- /dev/null +++ b/node_modules/lodash/fp/stubString.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('stubString', require('../stubString'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/stubTrue.js b/node_modules/lodash/fp/stubTrue.js new file mode 100644 index 0000000..9249082 --- /dev/null +++ b/node_modules/lodash/fp/stubTrue.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('stubTrue', require('../stubTrue'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/subtract.js b/node_modules/lodash/fp/subtract.js new file mode 100644 index 0000000..d32b16d --- /dev/null +++ b/node_modules/lodash/fp/subtract.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('subtract', require('../subtract')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/sum.js b/node_modules/lodash/fp/sum.js new file mode 100644 index 0000000..5cce12b --- /dev/null +++ b/node_modules/lodash/fp/sum.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('sum', require('../sum'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/sumBy.js b/node_modules/lodash/fp/sumBy.js new file mode 100644 index 0000000..c882656 --- /dev/null +++ b/node_modules/lodash/fp/sumBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('sumBy', require('../sumBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/symmetricDifference.js b/node_modules/lodash/fp/symmetricDifference.js new file mode 100644 index 0000000..78c16ad --- /dev/null +++ b/node_modules/lodash/fp/symmetricDifference.js @@ -0,0 +1 @@ +module.exports = require('./xor'); diff --git a/node_modules/lodash/fp/symmetricDifferenceBy.js b/node_modules/lodash/fp/symmetricDifferenceBy.js new file mode 100644 index 0000000..298fc7f --- /dev/null +++ b/node_modules/lodash/fp/symmetricDifferenceBy.js @@ -0,0 +1 @@ +module.exports = require('./xorBy'); diff --git a/node_modules/lodash/fp/symmetricDifferenceWith.js b/node_modules/lodash/fp/symmetricDifferenceWith.js new file mode 100644 index 0000000..70bc6fa --- /dev/null +++ b/node_modules/lodash/fp/symmetricDifferenceWith.js @@ -0,0 +1 @@ +module.exports = require('./xorWith'); diff --git a/node_modules/lodash/fp/tail.js b/node_modules/lodash/fp/tail.js new file mode 100644 index 0000000..f122f0a --- /dev/null +++ b/node_modules/lodash/fp/tail.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('tail', require('../tail'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/take.js b/node_modules/lodash/fp/take.js new file mode 100644 index 0000000..9af98a7 --- /dev/null +++ b/node_modules/lodash/fp/take.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('take', require('../take')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/takeLast.js b/node_modules/lodash/fp/takeLast.js new file mode 100644 index 0000000..e98c84a --- /dev/null +++ b/node_modules/lodash/fp/takeLast.js @@ -0,0 +1 @@ +module.exports = require('./takeRight'); diff --git a/node_modules/lodash/fp/takeLastWhile.js b/node_modules/lodash/fp/takeLastWhile.js new file mode 100644 index 0000000..5367968 --- /dev/null +++ b/node_modules/lodash/fp/takeLastWhile.js @@ -0,0 +1 @@ +module.exports = require('./takeRightWhile'); diff --git a/node_modules/lodash/fp/takeRight.js b/node_modules/lodash/fp/takeRight.js new file mode 100644 index 0000000..b82950a --- /dev/null +++ b/node_modules/lodash/fp/takeRight.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('takeRight', require('../takeRight')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/takeRightWhile.js b/node_modules/lodash/fp/takeRightWhile.js new file mode 100644 index 0000000..8ffb0a2 --- /dev/null +++ b/node_modules/lodash/fp/takeRightWhile.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('takeRightWhile', require('../takeRightWhile')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/takeWhile.js b/node_modules/lodash/fp/takeWhile.js new file mode 100644 index 0000000..2813664 --- /dev/null +++ b/node_modules/lodash/fp/takeWhile.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('takeWhile', require('../takeWhile')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/tap.js b/node_modules/lodash/fp/tap.js new file mode 100644 index 0000000..d33ad6e --- /dev/null +++ b/node_modules/lodash/fp/tap.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('tap', require('../tap')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/template.js b/node_modules/lodash/fp/template.js new file mode 100644 index 0000000..74857e1 --- /dev/null +++ b/node_modules/lodash/fp/template.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('template', require('../template')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/templateSettings.js b/node_modules/lodash/fp/templateSettings.js new file mode 100644 index 0000000..7bcc0a8 --- /dev/null +++ b/node_modules/lodash/fp/templateSettings.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('templateSettings', require('../templateSettings'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/throttle.js b/node_modules/lodash/fp/throttle.js new file mode 100644 index 0000000..77fff14 --- /dev/null +++ b/node_modules/lodash/fp/throttle.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('throttle', require('../throttle')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/thru.js b/node_modules/lodash/fp/thru.js new file mode 100644 index 0000000..d42b3b1 --- /dev/null +++ b/node_modules/lodash/fp/thru.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('thru', require('../thru')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/times.js b/node_modules/lodash/fp/times.js new file mode 100644 index 0000000..0dab06d --- /dev/null +++ b/node_modules/lodash/fp/times.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('times', require('../times')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toArray.js b/node_modules/lodash/fp/toArray.js new file mode 100644 index 0000000..f0c360a --- /dev/null +++ b/node_modules/lodash/fp/toArray.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toArray', require('../toArray'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toFinite.js b/node_modules/lodash/fp/toFinite.js new file mode 100644 index 0000000..3a47687 --- /dev/null +++ b/node_modules/lodash/fp/toFinite.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toFinite', require('../toFinite'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toInteger.js b/node_modules/lodash/fp/toInteger.js new file mode 100644 index 0000000..e0af6a7 --- /dev/null +++ b/node_modules/lodash/fp/toInteger.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toInteger', require('../toInteger'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toIterator.js b/node_modules/lodash/fp/toIterator.js new file mode 100644 index 0000000..65e6baa --- /dev/null +++ b/node_modules/lodash/fp/toIterator.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toIterator', require('../toIterator'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toJSON.js b/node_modules/lodash/fp/toJSON.js new file mode 100644 index 0000000..2d718d0 --- /dev/null +++ b/node_modules/lodash/fp/toJSON.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toJSON', require('../toJSON'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toLength.js b/node_modules/lodash/fp/toLength.js new file mode 100644 index 0000000..b97cdd9 --- /dev/null +++ b/node_modules/lodash/fp/toLength.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toLength', require('../toLength'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toLower.js b/node_modules/lodash/fp/toLower.js new file mode 100644 index 0000000..616ef36 --- /dev/null +++ b/node_modules/lodash/fp/toLower.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toLower', require('../toLower'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toNumber.js b/node_modules/lodash/fp/toNumber.js new file mode 100644 index 0000000..d0c6f4d --- /dev/null +++ b/node_modules/lodash/fp/toNumber.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toNumber', require('../toNumber'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toPairs.js b/node_modules/lodash/fp/toPairs.js new file mode 100644 index 0000000..af78378 --- /dev/null +++ b/node_modules/lodash/fp/toPairs.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toPairs', require('../toPairs'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toPairsIn.js b/node_modules/lodash/fp/toPairsIn.js new file mode 100644 index 0000000..66504ab --- /dev/null +++ b/node_modules/lodash/fp/toPairsIn.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toPairsIn', require('../toPairsIn'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toPath.js b/node_modules/lodash/fp/toPath.js new file mode 100644 index 0000000..b4d5e50 --- /dev/null +++ b/node_modules/lodash/fp/toPath.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toPath', require('../toPath'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toPlainObject.js b/node_modules/lodash/fp/toPlainObject.js new file mode 100644 index 0000000..278bb86 --- /dev/null +++ b/node_modules/lodash/fp/toPlainObject.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toPlainObject', require('../toPlainObject'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toSafeInteger.js b/node_modules/lodash/fp/toSafeInteger.js new file mode 100644 index 0000000..367a26f --- /dev/null +++ b/node_modules/lodash/fp/toSafeInteger.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toSafeInteger', require('../toSafeInteger'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toString.js b/node_modules/lodash/fp/toString.js new file mode 100644 index 0000000..cec4f8e --- /dev/null +++ b/node_modules/lodash/fp/toString.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toString', require('../toString'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/toUpper.js b/node_modules/lodash/fp/toUpper.js new file mode 100644 index 0000000..54f9a56 --- /dev/null +++ b/node_modules/lodash/fp/toUpper.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('toUpper', require('../toUpper'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/transform.js b/node_modules/lodash/fp/transform.js new file mode 100644 index 0000000..759d088 --- /dev/null +++ b/node_modules/lodash/fp/transform.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('transform', require('../transform')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/trim.js b/node_modules/lodash/fp/trim.js new file mode 100644 index 0000000..e6319a7 --- /dev/null +++ b/node_modules/lodash/fp/trim.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('trim', require('../trim')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/trimChars.js b/node_modules/lodash/fp/trimChars.js new file mode 100644 index 0000000..c9294de --- /dev/null +++ b/node_modules/lodash/fp/trimChars.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('trimChars', require('../trim')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/trimCharsEnd.js b/node_modules/lodash/fp/trimCharsEnd.js new file mode 100644 index 0000000..284bc2f --- /dev/null +++ b/node_modules/lodash/fp/trimCharsEnd.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('trimCharsEnd', require('../trimEnd')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/trimCharsStart.js b/node_modules/lodash/fp/trimCharsStart.js new file mode 100644 index 0000000..ff0ee65 --- /dev/null +++ b/node_modules/lodash/fp/trimCharsStart.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('trimCharsStart', require('../trimStart')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/trimEnd.js b/node_modules/lodash/fp/trimEnd.js new file mode 100644 index 0000000..7190880 --- /dev/null +++ b/node_modules/lodash/fp/trimEnd.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('trimEnd', require('../trimEnd')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/trimStart.js b/node_modules/lodash/fp/trimStart.js new file mode 100644 index 0000000..fda902c --- /dev/null +++ b/node_modules/lodash/fp/trimStart.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('trimStart', require('../trimStart')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/truncate.js b/node_modules/lodash/fp/truncate.js new file mode 100644 index 0000000..d265c1d --- /dev/null +++ b/node_modules/lodash/fp/truncate.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('truncate', require('../truncate')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/unapply.js b/node_modules/lodash/fp/unapply.js new file mode 100644 index 0000000..c5dfe77 --- /dev/null +++ b/node_modules/lodash/fp/unapply.js @@ -0,0 +1 @@ +module.exports = require('./rest'); diff --git a/node_modules/lodash/fp/unary.js b/node_modules/lodash/fp/unary.js new file mode 100644 index 0000000..286c945 --- /dev/null +++ b/node_modules/lodash/fp/unary.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('unary', require('../unary'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/unescape.js b/node_modules/lodash/fp/unescape.js new file mode 100644 index 0000000..fddcb46 --- /dev/null +++ b/node_modules/lodash/fp/unescape.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('unescape', require('../unescape'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/union.js b/node_modules/lodash/fp/union.js new file mode 100644 index 0000000..ef8228d --- /dev/null +++ b/node_modules/lodash/fp/union.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('union', require('../union')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/unionBy.js b/node_modules/lodash/fp/unionBy.js new file mode 100644 index 0000000..603687a --- /dev/null +++ b/node_modules/lodash/fp/unionBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('unionBy', require('../unionBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/unionWith.js b/node_modules/lodash/fp/unionWith.js new file mode 100644 index 0000000..65bb3a7 --- /dev/null +++ b/node_modules/lodash/fp/unionWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('unionWith', require('../unionWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/uniq.js b/node_modules/lodash/fp/uniq.js new file mode 100644 index 0000000..bc18524 --- /dev/null +++ b/node_modules/lodash/fp/uniq.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('uniq', require('../uniq'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/uniqBy.js b/node_modules/lodash/fp/uniqBy.js new file mode 100644 index 0000000..634c6a8 --- /dev/null +++ b/node_modules/lodash/fp/uniqBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('uniqBy', require('../uniqBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/uniqWith.js b/node_modules/lodash/fp/uniqWith.js new file mode 100644 index 0000000..0ec601a --- /dev/null +++ b/node_modules/lodash/fp/uniqWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('uniqWith', require('../uniqWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/uniqueId.js b/node_modules/lodash/fp/uniqueId.js new file mode 100644 index 0000000..aa8fc2f --- /dev/null +++ b/node_modules/lodash/fp/uniqueId.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('uniqueId', require('../uniqueId')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/unnest.js b/node_modules/lodash/fp/unnest.js new file mode 100644 index 0000000..5d34060 --- /dev/null +++ b/node_modules/lodash/fp/unnest.js @@ -0,0 +1 @@ +module.exports = require('./flatten'); diff --git a/node_modules/lodash/fp/unset.js b/node_modules/lodash/fp/unset.js new file mode 100644 index 0000000..ea203a0 --- /dev/null +++ b/node_modules/lodash/fp/unset.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('unset', require('../unset')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/unzip.js b/node_modules/lodash/fp/unzip.js new file mode 100644 index 0000000..cc364b3 --- /dev/null +++ b/node_modules/lodash/fp/unzip.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('unzip', require('../unzip'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/unzipWith.js b/node_modules/lodash/fp/unzipWith.js new file mode 100644 index 0000000..182eaa1 --- /dev/null +++ b/node_modules/lodash/fp/unzipWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('unzipWith', require('../unzipWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/update.js b/node_modules/lodash/fp/update.js new file mode 100644 index 0000000..b8ce2cc --- /dev/null +++ b/node_modules/lodash/fp/update.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('update', require('../update')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/updateWith.js b/node_modules/lodash/fp/updateWith.js new file mode 100644 index 0000000..d5e8282 --- /dev/null +++ b/node_modules/lodash/fp/updateWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('updateWith', require('../updateWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/upperCase.js b/node_modules/lodash/fp/upperCase.js new file mode 100644 index 0000000..c886f20 --- /dev/null +++ b/node_modules/lodash/fp/upperCase.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('upperCase', require('../upperCase'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/upperFirst.js b/node_modules/lodash/fp/upperFirst.js new file mode 100644 index 0000000..d8c04df --- /dev/null +++ b/node_modules/lodash/fp/upperFirst.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('upperFirst', require('../upperFirst'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/useWith.js b/node_modules/lodash/fp/useWith.js new file mode 100644 index 0000000..d8b3df5 --- /dev/null +++ b/node_modules/lodash/fp/useWith.js @@ -0,0 +1 @@ +module.exports = require('./overArgs'); diff --git a/node_modules/lodash/fp/util.js b/node_modules/lodash/fp/util.js new file mode 100644 index 0000000..18c00ba --- /dev/null +++ b/node_modules/lodash/fp/util.js @@ -0,0 +1,2 @@ +var convert = require('./convert'); +module.exports = convert(require('../util')); diff --git a/node_modules/lodash/fp/value.js b/node_modules/lodash/fp/value.js new file mode 100644 index 0000000..555eec7 --- /dev/null +++ b/node_modules/lodash/fp/value.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('value', require('../value'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/valueOf.js b/node_modules/lodash/fp/valueOf.js new file mode 100644 index 0000000..f968807 --- /dev/null +++ b/node_modules/lodash/fp/valueOf.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('valueOf', require('../valueOf'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/values.js b/node_modules/lodash/fp/values.js new file mode 100644 index 0000000..2dfc561 --- /dev/null +++ b/node_modules/lodash/fp/values.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('values', require('../values'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/valuesIn.js b/node_modules/lodash/fp/valuesIn.js new file mode 100644 index 0000000..a1b2bb8 --- /dev/null +++ b/node_modules/lodash/fp/valuesIn.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('valuesIn', require('../valuesIn'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/where.js b/node_modules/lodash/fp/where.js new file mode 100644 index 0000000..3247f64 --- /dev/null +++ b/node_modules/lodash/fp/where.js @@ -0,0 +1 @@ +module.exports = require('./conformsTo'); diff --git a/node_modules/lodash/fp/whereEq.js b/node_modules/lodash/fp/whereEq.js new file mode 100644 index 0000000..29d1e1e --- /dev/null +++ b/node_modules/lodash/fp/whereEq.js @@ -0,0 +1 @@ +module.exports = require('./isMatch'); diff --git a/node_modules/lodash/fp/without.js b/node_modules/lodash/fp/without.js new file mode 100644 index 0000000..bad9e12 --- /dev/null +++ b/node_modules/lodash/fp/without.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('without', require('../without')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/words.js b/node_modules/lodash/fp/words.js new file mode 100644 index 0000000..4a90141 --- /dev/null +++ b/node_modules/lodash/fp/words.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('words', require('../words')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/wrap.js b/node_modules/lodash/fp/wrap.js new file mode 100644 index 0000000..e93bd8a --- /dev/null +++ b/node_modules/lodash/fp/wrap.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('wrap', require('../wrap')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/wrapperAt.js b/node_modules/lodash/fp/wrapperAt.js new file mode 100644 index 0000000..8f0a310 --- /dev/null +++ b/node_modules/lodash/fp/wrapperAt.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('wrapperAt', require('../wrapperAt'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/wrapperChain.js b/node_modules/lodash/fp/wrapperChain.js new file mode 100644 index 0000000..2a48ea2 --- /dev/null +++ b/node_modules/lodash/fp/wrapperChain.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('wrapperChain', require('../wrapperChain'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/wrapperLodash.js b/node_modules/lodash/fp/wrapperLodash.js new file mode 100644 index 0000000..a7162d0 --- /dev/null +++ b/node_modules/lodash/fp/wrapperLodash.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('wrapperLodash', require('../wrapperLodash'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/wrapperReverse.js b/node_modules/lodash/fp/wrapperReverse.js new file mode 100644 index 0000000..e1481aa --- /dev/null +++ b/node_modules/lodash/fp/wrapperReverse.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('wrapperReverse', require('../wrapperReverse'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/wrapperValue.js b/node_modules/lodash/fp/wrapperValue.js new file mode 100644 index 0000000..8eb9112 --- /dev/null +++ b/node_modules/lodash/fp/wrapperValue.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('wrapperValue', require('../wrapperValue'), require('./_falseOptions')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/xor.js b/node_modules/lodash/fp/xor.js new file mode 100644 index 0000000..29e2819 --- /dev/null +++ b/node_modules/lodash/fp/xor.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('xor', require('../xor')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/xorBy.js b/node_modules/lodash/fp/xorBy.js new file mode 100644 index 0000000..b355686 --- /dev/null +++ b/node_modules/lodash/fp/xorBy.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('xorBy', require('../xorBy')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/xorWith.js b/node_modules/lodash/fp/xorWith.js new file mode 100644 index 0000000..8e05739 --- /dev/null +++ b/node_modules/lodash/fp/xorWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('xorWith', require('../xorWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/zip.js b/node_modules/lodash/fp/zip.js new file mode 100644 index 0000000..69e147a --- /dev/null +++ b/node_modules/lodash/fp/zip.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('zip', require('../zip')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/zipAll.js b/node_modules/lodash/fp/zipAll.js new file mode 100644 index 0000000..efa8ccb --- /dev/null +++ b/node_modules/lodash/fp/zipAll.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('zipAll', require('../zip')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/zipObj.js b/node_modules/lodash/fp/zipObj.js new file mode 100644 index 0000000..f4a3453 --- /dev/null +++ b/node_modules/lodash/fp/zipObj.js @@ -0,0 +1 @@ +module.exports = require('./zipObject'); diff --git a/node_modules/lodash/fp/zipObject.js b/node_modules/lodash/fp/zipObject.js new file mode 100644 index 0000000..462dbb6 --- /dev/null +++ b/node_modules/lodash/fp/zipObject.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('zipObject', require('../zipObject')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/zipObjectDeep.js b/node_modules/lodash/fp/zipObjectDeep.js new file mode 100644 index 0000000..53a5d33 --- /dev/null +++ b/node_modules/lodash/fp/zipObjectDeep.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('zipObjectDeep', require('../zipObjectDeep')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fp/zipWith.js b/node_modules/lodash/fp/zipWith.js new file mode 100644 index 0000000..c5cf9e2 --- /dev/null +++ b/node_modules/lodash/fp/zipWith.js @@ -0,0 +1,5 @@ +var convert = require('./convert'), + func = convert('zipWith', require('../zipWith')); + +func.placeholder = require('./placeholder'); +module.exports = func; diff --git a/node_modules/lodash/fromPairs.js b/node_modules/lodash/fromPairs.js new file mode 100644 index 0000000..ee7940d --- /dev/null +++ b/node_modules/lodash/fromPairs.js @@ -0,0 +1,28 @@ +/** + * The inverse of `_.toPairs`; this method returns an object composed + * from key-value `pairs`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} pairs The key-value pairs. + * @returns {Object} Returns the new object. + * @example + * + * _.fromPairs([['a', 1], ['b', 2]]); + * // => { 'a': 1, 'b': 2 } + */ +function fromPairs(pairs) { + var index = -1, + length = pairs == null ? 0 : pairs.length, + result = {}; + + while (++index < length) { + var pair = pairs[index]; + result[pair[0]] = pair[1]; + } + return result; +} + +module.exports = fromPairs; diff --git a/node_modules/lodash/function.js b/node_modules/lodash/function.js new file mode 100644 index 0000000..b0fc6d9 --- /dev/null +++ b/node_modules/lodash/function.js @@ -0,0 +1,25 @@ +module.exports = { + 'after': require('./after'), + 'ary': require('./ary'), + 'before': require('./before'), + 'bind': require('./bind'), + 'bindKey': require('./bindKey'), + 'curry': require('./curry'), + 'curryRight': require('./curryRight'), + 'debounce': require('./debounce'), + 'defer': require('./defer'), + 'delay': require('./delay'), + 'flip': require('./flip'), + 'memoize': require('./memoize'), + 'negate': require('./negate'), + 'once': require('./once'), + 'overArgs': require('./overArgs'), + 'partial': require('./partial'), + 'partialRight': require('./partialRight'), + 'rearg': require('./rearg'), + 'rest': require('./rest'), + 'spread': require('./spread'), + 'throttle': require('./throttle'), + 'unary': require('./unary'), + 'wrap': require('./wrap') +}; diff --git a/node_modules/lodash/functions.js b/node_modules/lodash/functions.js new file mode 100644 index 0000000..9722928 --- /dev/null +++ b/node_modules/lodash/functions.js @@ -0,0 +1,31 @@ +var baseFunctions = require('./_baseFunctions'), + keys = require('./keys'); + +/** + * Creates an array of function property names from own enumerable properties + * of `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to inspect. + * @returns {Array} Returns the function names. + * @see _.functionsIn + * @example + * + * function Foo() { + * this.a = _.constant('a'); + * this.b = _.constant('b'); + * } + * + * Foo.prototype.c = _.constant('c'); + * + * _.functions(new Foo); + * // => ['a', 'b'] + */ +function functions(object) { + return object == null ? [] : baseFunctions(object, keys(object)); +} + +module.exports = functions; diff --git a/node_modules/lodash/functionsIn.js b/node_modules/lodash/functionsIn.js new file mode 100644 index 0000000..f00345d --- /dev/null +++ b/node_modules/lodash/functionsIn.js @@ -0,0 +1,31 @@ +var baseFunctions = require('./_baseFunctions'), + keysIn = require('./keysIn'); + +/** + * Creates an array of function property names from own and inherited + * enumerable properties of `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to inspect. + * @returns {Array} Returns the function names. + * @see _.functions + * @example + * + * function Foo() { + * this.a = _.constant('a'); + * this.b = _.constant('b'); + * } + * + * Foo.prototype.c = _.constant('c'); + * + * _.functionsIn(new Foo); + * // => ['a', 'b', 'c'] + */ +function functionsIn(object) { + return object == null ? [] : baseFunctions(object, keysIn(object)); +} + +module.exports = functionsIn; diff --git a/node_modules/lodash/get.js b/node_modules/lodash/get.js new file mode 100644 index 0000000..8805ff9 --- /dev/null +++ b/node_modules/lodash/get.js @@ -0,0 +1,33 @@ +var baseGet = require('./_baseGet'); + +/** + * Gets the value at `path` of `object`. If the resolved value is + * `undefined`, the `defaultValue` is returned in its place. + * + * @static + * @memberOf _ + * @since 3.7.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to get. + * @param {*} [defaultValue] The value returned for `undefined` resolved values. + * @returns {*} Returns the resolved value. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }] }; + * + * _.get(object, 'a[0].b.c'); + * // => 3 + * + * _.get(object, ['a', '0', 'b', 'c']); + * // => 3 + * + * _.get(object, 'a.b.c', 'default'); + * // => 'default' + */ +function get(object, path, defaultValue) { + var result = object == null ? undefined : baseGet(object, path); + return result === undefined ? defaultValue : result; +} + +module.exports = get; diff --git a/node_modules/lodash/groupBy.js b/node_modules/lodash/groupBy.js new file mode 100644 index 0000000..babf4f6 --- /dev/null +++ b/node_modules/lodash/groupBy.js @@ -0,0 +1,41 @@ +var baseAssignValue = require('./_baseAssignValue'), + createAggregator = require('./_createAggregator'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Creates an object composed of keys generated from the results of running + * each element of `collection` thru `iteratee`. The order of grouped values + * is determined by the order they occur in `collection`. The corresponding + * value of each key is an array of elements responsible for generating the + * key. The iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. + * @returns {Object} Returns the composed aggregate object. + * @example + * + * _.groupBy([6.1, 4.2, 6.3], Math.floor); + * // => { '4': [4.2], '6': [6.1, 6.3] } + * + * // The `_.property` iteratee shorthand. + * _.groupBy(['one', 'two', 'three'], 'length'); + * // => { '3': ['one', 'two'], '5': ['three'] } + */ +var groupBy = createAggregator(function(result, value, key) { + if (hasOwnProperty.call(result, key)) { + result[key].push(value); + } else { + baseAssignValue(result, key, [value]); + } +}); + +module.exports = groupBy; diff --git a/node_modules/lodash/gt.js b/node_modules/lodash/gt.js new file mode 100644 index 0000000..3a66282 --- /dev/null +++ b/node_modules/lodash/gt.js @@ -0,0 +1,29 @@ +var baseGt = require('./_baseGt'), + createRelationalOperation = require('./_createRelationalOperation'); + +/** + * Checks if `value` is greater than `other`. + * + * @static + * @memberOf _ + * @since 3.9.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is greater than `other`, + * else `false`. + * @see _.lt + * @example + * + * _.gt(3, 1); + * // => true + * + * _.gt(3, 3); + * // => false + * + * _.gt(1, 3); + * // => false + */ +var gt = createRelationalOperation(baseGt); + +module.exports = gt; diff --git a/node_modules/lodash/gte.js b/node_modules/lodash/gte.js new file mode 100644 index 0000000..4180a68 --- /dev/null +++ b/node_modules/lodash/gte.js @@ -0,0 +1,30 @@ +var createRelationalOperation = require('./_createRelationalOperation'); + +/** + * Checks if `value` is greater than or equal to `other`. + * + * @static + * @memberOf _ + * @since 3.9.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is greater than or equal to + * `other`, else `false`. + * @see _.lte + * @example + * + * _.gte(3, 1); + * // => true + * + * _.gte(3, 3); + * // => true + * + * _.gte(1, 3); + * // => false + */ +var gte = createRelationalOperation(function(value, other) { + return value >= other; +}); + +module.exports = gte; diff --git a/node_modules/lodash/has.js b/node_modules/lodash/has.js new file mode 100644 index 0000000..34df55e --- /dev/null +++ b/node_modules/lodash/has.js @@ -0,0 +1,35 @@ +var baseHas = require('./_baseHas'), + hasPath = require('./_hasPath'); + +/** + * Checks if `path` is a direct property of `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + * @example + * + * var object = { 'a': { 'b': 2 } }; + * var other = _.create({ 'a': _.create({ 'b': 2 }) }); + * + * _.has(object, 'a'); + * // => true + * + * _.has(object, 'a.b'); + * // => true + * + * _.has(object, ['a', 'b']); + * // => true + * + * _.has(other, 'a'); + * // => false + */ +function has(object, path) { + return object != null && hasPath(object, path, baseHas); +} + +module.exports = has; diff --git a/node_modules/lodash/hasIn.js b/node_modules/lodash/hasIn.js new file mode 100644 index 0000000..06a3686 --- /dev/null +++ b/node_modules/lodash/hasIn.js @@ -0,0 +1,34 @@ +var baseHasIn = require('./_baseHasIn'), + hasPath = require('./_hasPath'); + +/** + * Checks if `path` is a direct or inherited property of `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + * @example + * + * var object = _.create({ 'a': _.create({ 'b': 2 }) }); + * + * _.hasIn(object, 'a'); + * // => true + * + * _.hasIn(object, 'a.b'); + * // => true + * + * _.hasIn(object, ['a', 'b']); + * // => true + * + * _.hasIn(object, 'b'); + * // => false + */ +function hasIn(object, path) { + return object != null && hasPath(object, path, baseHasIn); +} + +module.exports = hasIn; diff --git a/node_modules/lodash/head.js b/node_modules/lodash/head.js new file mode 100644 index 0000000..dee9d1f --- /dev/null +++ b/node_modules/lodash/head.js @@ -0,0 +1,23 @@ +/** + * Gets the first element of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @alias first + * @category Array + * @param {Array} array The array to query. + * @returns {*} Returns the first element of `array`. + * @example + * + * _.head([1, 2, 3]); + * // => 1 + * + * _.head([]); + * // => undefined + */ +function head(array) { + return (array && array.length) ? array[0] : undefined; +} + +module.exports = head; diff --git a/node_modules/lodash/identity.js b/node_modules/lodash/identity.js new file mode 100644 index 0000000..2d5d963 --- /dev/null +++ b/node_modules/lodash/identity.js @@ -0,0 +1,21 @@ +/** + * This method returns the first argument it receives. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @param {*} value Any value. + * @returns {*} Returns `value`. + * @example + * + * var object = { 'a': 1 }; + * + * console.log(_.identity(object) === object); + * // => true + */ +function identity(value) { + return value; +} + +module.exports = identity; diff --git a/node_modules/lodash/inRange.js b/node_modules/lodash/inRange.js new file mode 100644 index 0000000..f20728d --- /dev/null +++ b/node_modules/lodash/inRange.js @@ -0,0 +1,55 @@ +var baseInRange = require('./_baseInRange'), + toFinite = require('./toFinite'), + toNumber = require('./toNumber'); + +/** + * Checks if `n` is between `start` and up to, but not including, `end`. If + * `end` is not specified, it's set to `start` with `start` then set to `0`. + * If `start` is greater than `end` the params are swapped to support + * negative ranges. + * + * @static + * @memberOf _ + * @since 3.3.0 + * @category Number + * @param {number} number The number to check. + * @param {number} [start=0] The start of the range. + * @param {number} end The end of the range. + * @returns {boolean} Returns `true` if `number` is in the range, else `false`. + * @see _.range, _.rangeRight + * @example + * + * _.inRange(3, 2, 4); + * // => true + * + * _.inRange(4, 8); + * // => true + * + * _.inRange(4, 2); + * // => false + * + * _.inRange(2, 2); + * // => false + * + * _.inRange(1.2, 2); + * // => true + * + * _.inRange(5.2, 4); + * // => false + * + * _.inRange(-3, -2, -6); + * // => true + */ +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); +} + +module.exports = inRange; diff --git a/node_modules/lodash/includes.js b/node_modules/lodash/includes.js new file mode 100644 index 0000000..ae0deed --- /dev/null +++ b/node_modules/lodash/includes.js @@ -0,0 +1,53 @@ +var baseIndexOf = require('./_baseIndexOf'), + isArrayLike = require('./isArrayLike'), + isString = require('./isString'), + toInteger = require('./toInteger'), + values = require('./values'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * Checks if `value` is in `collection`. If `collection` is a string, it's + * checked for a substring of `value`, otherwise + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * is used for equality comparisons. If `fromIndex` is negative, it's used as + * the offset from the end of `collection`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object|string} collection The collection to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=0] The index to search from. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. + * @returns {boolean} Returns `true` if `value` is found, else `false`. + * @example + * + * _.includes([1, 2, 3], 1); + * // => true + * + * _.includes([1, 2, 3], 1, 2); + * // => false + * + * _.includes({ 'a': 1, 'b': 2 }, 1); + * // => true + * + * _.includes('abcd', 'bc'); + * // => true + */ +function includes(collection, value, fromIndex, guard) { + collection = isArrayLike(collection) ? collection : values(collection); + fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0; + + var length = collection.length; + if (fromIndex < 0) { + fromIndex = nativeMax(length + fromIndex, 0); + } + return isString(collection) + ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1) + : (!!length && baseIndexOf(collection, value, fromIndex) > -1); +} + +module.exports = includes; diff --git a/node_modules/lodash/index.js b/node_modules/lodash/index.js new file mode 100644 index 0000000..5d063e2 --- /dev/null +++ b/node_modules/lodash/index.js @@ -0,0 +1 @@ +module.exports = require('./lodash'); \ No newline at end of file diff --git a/node_modules/lodash/indexOf.js b/node_modules/lodash/indexOf.js new file mode 100644 index 0000000..3c644af --- /dev/null +++ b/node_modules/lodash/indexOf.js @@ -0,0 +1,42 @@ +var baseIndexOf = require('./_baseIndexOf'), + toInteger = require('./toInteger'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * Gets the index at which the first occurrence of `value` is found in `array` + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. If `fromIndex` is negative, it's used as the + * offset from the end of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=0] The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + * @example + * + * _.indexOf([1, 2, 1, 2], 2); + * // => 1 + * + * // Search from the `fromIndex`. + * _.indexOf([1, 2, 1, 2], 2, 2); + * // => 3 + */ +function indexOf(array, value, fromIndex) { + var length = array == null ? 0 : array.length; + if (!length) { + return -1; + } + var index = fromIndex == null ? 0 : toInteger(fromIndex); + if (index < 0) { + index = nativeMax(length + index, 0); + } + return baseIndexOf(array, value, index); +} + +module.exports = indexOf; diff --git a/node_modules/lodash/initial.js b/node_modules/lodash/initial.js new file mode 100644 index 0000000..f47fc50 --- /dev/null +++ b/node_modules/lodash/initial.js @@ -0,0 +1,22 @@ +var baseSlice = require('./_baseSlice'); + +/** + * Gets all but the last element of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to query. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.initial([1, 2, 3]); + * // => [1, 2] + */ +function initial(array) { + var length = array == null ? 0 : array.length; + return length ? baseSlice(array, 0, -1) : []; +} + +module.exports = initial; diff --git a/node_modules/lodash/intersection.js b/node_modules/lodash/intersection.js new file mode 100644 index 0000000..a94c135 --- /dev/null +++ b/node_modules/lodash/intersection.js @@ -0,0 +1,30 @@ +var arrayMap = require('./_arrayMap'), + baseIntersection = require('./_baseIntersection'), + baseRest = require('./_baseRest'), + castArrayLikeObject = require('./_castArrayLikeObject'); + +/** + * Creates an array of unique values that are included in all given arrays + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. The order and references of result values are + * determined by the first array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @returns {Array} Returns the new array of intersecting values. + * @example + * + * _.intersection([2, 1], [2, 3]); + * // => [2] + */ +var intersection = baseRest(function(arrays) { + var mapped = arrayMap(arrays, castArrayLikeObject); + return (mapped.length && mapped[0] === arrays[0]) + ? baseIntersection(mapped) + : []; +}); + +module.exports = intersection; diff --git a/node_modules/lodash/intersectionBy.js b/node_modules/lodash/intersectionBy.js new file mode 100644 index 0000000..31461aa --- /dev/null +++ b/node_modules/lodash/intersectionBy.js @@ -0,0 +1,45 @@ +var arrayMap = require('./_arrayMap'), + baseIntersection = require('./_baseIntersection'), + baseIteratee = require('./_baseIteratee'), + baseRest = require('./_baseRest'), + castArrayLikeObject = require('./_castArrayLikeObject'), + last = require('./last'); + +/** + * This method is like `_.intersection` except that it accepts `iteratee` + * which is invoked for each element of each `arrays` to generate the criterion + * by which they're compared. The order and references of result values are + * determined by the first array. The iteratee is invoked with one argument: + * (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new array of intersecting values. + * @example + * + * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); + * // => [2.1] + * + * // The `_.property` iteratee shorthand. + * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); + * // => [{ 'x': 1 }] + */ +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, baseIteratee(iteratee, 2)) + : []; +}); + +module.exports = intersectionBy; diff --git a/node_modules/lodash/intersectionWith.js b/node_modules/lodash/intersectionWith.js new file mode 100644 index 0000000..63cabfa --- /dev/null +++ b/node_modules/lodash/intersectionWith.js @@ -0,0 +1,41 @@ +var arrayMap = require('./_arrayMap'), + baseIntersection = require('./_baseIntersection'), + baseRest = require('./_baseRest'), + castArrayLikeObject = require('./_castArrayLikeObject'), + last = require('./last'); + +/** + * This method is like `_.intersection` except that it accepts `comparator` + * which is invoked to compare elements of `arrays`. The order and references + * of result values are determined by the first array. The comparator is + * invoked with two arguments: (arrVal, othVal). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of intersecting values. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; + * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; + * + * _.intersectionWith(objects, others, _.isEqual); + * // => [{ 'x': 1, 'y': 2 }] + */ +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) + : []; +}); + +module.exports = intersectionWith; diff --git a/node_modules/lodash/invert.js b/node_modules/lodash/invert.js new file mode 100644 index 0000000..8c47950 --- /dev/null +++ b/node_modules/lodash/invert.js @@ -0,0 +1,42 @@ +var constant = require('./constant'), + createInverter = require('./_createInverter'), + identity = require('./identity'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** + * Creates an object composed of the inverted keys and values of `object`. + * If `object` contains duplicate values, subsequent values overwrite + * property assignments of previous values. + * + * @static + * @memberOf _ + * @since 0.7.0 + * @category Object + * @param {Object} object The object to invert. + * @returns {Object} Returns the new inverted object. + * @example + * + * var object = { 'a': 1, 'b': 2, 'c': 1 }; + * + * _.invert(object); + * // => { '1': 'c', '2': 'b' } + */ +var invert = createInverter(function(result, value, key) { + if (value != null && + typeof value.toString != 'function') { + value = nativeObjectToString.call(value); + } + + result[value] = key; +}, constant(identity)); + +module.exports = invert; diff --git a/node_modules/lodash/invertBy.js b/node_modules/lodash/invertBy.js new file mode 100644 index 0000000..3f4f7e5 --- /dev/null +++ b/node_modules/lodash/invertBy.js @@ -0,0 +1,56 @@ +var baseIteratee = require('./_baseIteratee'), + createInverter = require('./_createInverter'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** + * This method is like `_.invert` except that the inverted object is generated + * from the results of running each element of `object` thru `iteratee`. The + * corresponding inverted value of each inverted key is an array of keys + * responsible for generating the inverted value. The iteratee is invoked + * with one argument: (value). + * + * @static + * @memberOf _ + * @since 4.1.0 + * @category Object + * @param {Object} object The object to invert. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Object} Returns the new inverted object. + * @example + * + * var object = { 'a': 1, 'b': 2, 'c': 1 }; + * + * _.invertBy(object); + * // => { '1': ['a', 'c'], '2': ['b'] } + * + * _.invertBy(object, function(value) { + * return 'group' + value; + * }); + * // => { 'group1': ['a', 'c'], 'group2': ['b'] } + */ +var invertBy = createInverter(function(result, value, key) { + if (value != null && + typeof value.toString != 'function') { + value = nativeObjectToString.call(value); + } + + if (hasOwnProperty.call(result, value)) { + result[value].push(key); + } else { + result[value] = [key]; + } +}, baseIteratee); + +module.exports = invertBy; diff --git a/node_modules/lodash/invoke.js b/node_modules/lodash/invoke.js new file mode 100644 index 0000000..97d51eb --- /dev/null +++ b/node_modules/lodash/invoke.js @@ -0,0 +1,24 @@ +var baseInvoke = require('./_baseInvoke'), + baseRest = require('./_baseRest'); + +/** + * Invokes the method at `path` of `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path of the method to invoke. + * @param {...*} [args] The arguments to invoke the method with. + * @returns {*} Returns the result of the invoked method. + * @example + * + * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] }; + * + * _.invoke(object, 'a[0].b.c.slice', 1, 3); + * // => [2, 3] + */ +var invoke = baseRest(baseInvoke); + +module.exports = invoke; diff --git a/node_modules/lodash/invokeMap.js b/node_modules/lodash/invokeMap.js new file mode 100644 index 0000000..8da5126 --- /dev/null +++ b/node_modules/lodash/invokeMap.js @@ -0,0 +1,41 @@ +var apply = require('./_apply'), + baseEach = require('./_baseEach'), + baseInvoke = require('./_baseInvoke'), + baseRest = require('./_baseRest'), + isArrayLike = require('./isArrayLike'); + +/** + * Invokes the method at `path` of each element in `collection`, returning + * an array of the results of each invoked method. Any additional arguments + * are provided to each invoked method. If `path` is a function, it's invoked + * for, and `this` bound to, each element in `collection`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Array|Function|string} path The path of the method to invoke or + * the function invoked per iteration. + * @param {...*} [args] The arguments to invoke each method with. + * @returns {Array} Returns the array of results. + * @example + * + * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort'); + * // => [[1, 5, 7], [1, 2, 3]] + * + * _.invokeMap([123, 456], String.prototype.split, ''); + * // => [['1', '2', '3'], ['4', '5', '6']] + */ +var invokeMap = baseRest(function(collection, path, args) { + var index = -1, + isFunc = typeof path == 'function', + result = isArrayLike(collection) ? Array(collection.length) : []; + + baseEach(collection, function(value) { + result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args); + }); + return result; +}); + +module.exports = invokeMap; diff --git a/node_modules/lodash/isArguments.js b/node_modules/lodash/isArguments.js new file mode 100644 index 0000000..8b9ed66 --- /dev/null +++ b/node_modules/lodash/isArguments.js @@ -0,0 +1,36 @@ +var baseIsArguments = require('./_baseIsArguments'), + isObjectLike = require('./isObjectLike'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + +/** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ +var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && + !propertyIsEnumerable.call(value, 'callee'); +}; + +module.exports = isArguments; diff --git a/node_modules/lodash/isArray.js b/node_modules/lodash/isArray.js new file mode 100644 index 0000000..88ab55f --- /dev/null +++ b/node_modules/lodash/isArray.js @@ -0,0 +1,26 @@ +/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ +var isArray = Array.isArray; + +module.exports = isArray; diff --git a/node_modules/lodash/isArrayBuffer.js b/node_modules/lodash/isArrayBuffer.js new file mode 100644 index 0000000..12904a6 --- /dev/null +++ b/node_modules/lodash/isArrayBuffer.js @@ -0,0 +1,27 @@ +var baseIsArrayBuffer = require('./_baseIsArrayBuffer'), + baseUnary = require('./_baseUnary'), + nodeUtil = require('./_nodeUtil'); + +/* Node.js helper references. */ +var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer; + +/** + * Checks if `value` is classified as an `ArrayBuffer` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. + * @example + * + * _.isArrayBuffer(new ArrayBuffer(2)); + * // => true + * + * _.isArrayBuffer(new Array(2)); + * // => false + */ +var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer; + +module.exports = isArrayBuffer; diff --git a/node_modules/lodash/isArrayLike.js b/node_modules/lodash/isArrayLike.js new file mode 100644 index 0000000..0f96680 --- /dev/null +++ b/node_modules/lodash/isArrayLike.js @@ -0,0 +1,33 @@ +var isFunction = require('./isFunction'), + isLength = require('./isLength'); + +/** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */ +function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); +} + +module.exports = isArrayLike; diff --git a/node_modules/lodash/isArrayLikeObject.js b/node_modules/lodash/isArrayLikeObject.js new file mode 100644 index 0000000..6c4812a --- /dev/null +++ b/node_modules/lodash/isArrayLikeObject.js @@ -0,0 +1,33 @@ +var isArrayLike = require('./isArrayLike'), + isObjectLike = require('./isObjectLike'); + +/** + * This method is like `_.isArrayLike` except that it also checks if `value` + * is an object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array-like object, + * else `false`. + * @example + * + * _.isArrayLikeObject([1, 2, 3]); + * // => true + * + * _.isArrayLikeObject(document.body.children); + * // => true + * + * _.isArrayLikeObject('abc'); + * // => false + * + * _.isArrayLikeObject(_.noop); + * // => false + */ +function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); +} + +module.exports = isArrayLikeObject; diff --git a/node_modules/lodash/isBoolean.js b/node_modules/lodash/isBoolean.js new file mode 100644 index 0000000..a43ed4b --- /dev/null +++ b/node_modules/lodash/isBoolean.js @@ -0,0 +1,29 @@ +var baseGetTag = require('./_baseGetTag'), + isObjectLike = require('./isObjectLike'); + +/** `Object#toString` result references. */ +var boolTag = '[object Boolean]'; + +/** + * Checks if `value` is classified as a boolean primitive or object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a boolean, else `false`. + * @example + * + * _.isBoolean(false); + * // => true + * + * _.isBoolean(null); + * // => false + */ +function isBoolean(value) { + return value === true || value === false || + (isObjectLike(value) && baseGetTag(value) == boolTag); +} + +module.exports = isBoolean; diff --git a/node_modules/lodash/isBuffer.js b/node_modules/lodash/isBuffer.js new file mode 100644 index 0000000..c103cc7 --- /dev/null +++ b/node_modules/lodash/isBuffer.js @@ -0,0 +1,38 @@ +var root = require('./_root'), + stubFalse = require('./stubFalse'); + +/** Detect free variable `exports`. */ +var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; + +/** Detect free variable `module`. */ +var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports = freeModule && freeModule.exports === freeExports; + +/** Built-in value references. */ +var Buffer = moduleExports ? root.Buffer : undefined; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; + +/** + * Checks if `value` is a buffer. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. + * @example + * + * _.isBuffer(new Buffer(2)); + * // => true + * + * _.isBuffer(new Uint8Array(2)); + * // => false + */ +var isBuffer = nativeIsBuffer || stubFalse; + +module.exports = isBuffer; diff --git a/node_modules/lodash/isDate.js b/node_modules/lodash/isDate.js new file mode 100644 index 0000000..7f0209f --- /dev/null +++ b/node_modules/lodash/isDate.js @@ -0,0 +1,27 @@ +var baseIsDate = require('./_baseIsDate'), + baseUnary = require('./_baseUnary'), + nodeUtil = require('./_nodeUtil'); + +/* Node.js helper references. */ +var nodeIsDate = nodeUtil && nodeUtil.isDate; + +/** + * Checks if `value` is classified as a `Date` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a date object, else `false`. + * @example + * + * _.isDate(new Date); + * // => true + * + * _.isDate('Mon April 23 2012'); + * // => false + */ +var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; + +module.exports = isDate; diff --git a/node_modules/lodash/isElement.js b/node_modules/lodash/isElement.js new file mode 100644 index 0000000..76ae29c --- /dev/null +++ b/node_modules/lodash/isElement.js @@ -0,0 +1,25 @@ +var isObjectLike = require('./isObjectLike'), + isPlainObject = require('./isPlainObject'); + +/** + * Checks if `value` is likely a DOM element. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`. + * @example + * + * _.isElement(document.body); + * // => true + * + * _.isElement(''); + * // => false + */ +function isElement(value) { + return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value); +} + +module.exports = isElement; diff --git a/node_modules/lodash/isEmpty.js b/node_modules/lodash/isEmpty.js new file mode 100644 index 0000000..3597294 --- /dev/null +++ b/node_modules/lodash/isEmpty.js @@ -0,0 +1,77 @@ +var baseKeys = require('./_baseKeys'), + getTag = require('./_getTag'), + isArguments = require('./isArguments'), + isArray = require('./isArray'), + isArrayLike = require('./isArrayLike'), + isBuffer = require('./isBuffer'), + isPrototype = require('./_isPrototype'), + isTypedArray = require('./isTypedArray'); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]', + setTag = '[object Set]'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Checks if `value` is an empty object, collection, map, or set. + * + * Objects are considered empty if they have no own enumerable string keyed + * properties. + * + * Array-like values such as `arguments` objects, arrays, buffers, strings, or + * jQuery-like collections are considered empty if they have a `length` of `0`. + * Similarly, maps and sets are considered empty if they have a `size` of `0`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is empty, else `false`. + * @example + * + * _.isEmpty(null); + * // => true + * + * _.isEmpty(true); + * // => true + * + * _.isEmpty(1); + * // => true + * + * _.isEmpty([1, 2, 3]); + * // => false + * + * _.isEmpty({ 'a': 1 }); + * // => false + */ +function isEmpty(value) { + if (value == null) { + return true; + } + if (isArrayLike(value) && + (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || + isBuffer(value) || isTypedArray(value) || isArguments(value))) { + return !value.length; + } + var tag = getTag(value); + if (tag == mapTag || tag == setTag) { + return !value.size; + } + if (isPrototype(value)) { + return !baseKeys(value).length; + } + for (var key in value) { + if (hasOwnProperty.call(value, key)) { + return false; + } + } + return true; +} + +module.exports = isEmpty; diff --git a/node_modules/lodash/isEqual.js b/node_modules/lodash/isEqual.js new file mode 100644 index 0000000..5e23e76 --- /dev/null +++ b/node_modules/lodash/isEqual.js @@ -0,0 +1,35 @@ +var baseIsEqual = require('./_baseIsEqual'); + +/** + * Performs a deep comparison between two values to determine if they are + * equivalent. + * + * **Note:** This method supports comparing arrays, array buffers, booleans, + * date objects, error objects, maps, numbers, `Object` objects, regexes, + * sets, strings, symbols, and typed arrays. `Object` objects are compared + * by their own, not inherited, enumerable properties. Functions and DOM + * nodes are compared by strict equality, i.e. `===`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.isEqual(object, other); + * // => true + * + * object === other; + * // => false + */ +function isEqual(value, other) { + return baseIsEqual(value, other); +} + +module.exports = isEqual; diff --git a/node_modules/lodash/isEqualWith.js b/node_modules/lodash/isEqualWith.js new file mode 100644 index 0000000..21bdc7f --- /dev/null +++ b/node_modules/lodash/isEqualWith.js @@ -0,0 +1,41 @@ +var baseIsEqual = require('./_baseIsEqual'); + +/** + * This method is like `_.isEqual` except that it accepts `customizer` which + * is invoked to compare values. If `customizer` returns `undefined`, comparisons + * are handled by the method instead. The `customizer` is invoked with up to + * six arguments: (objValue, othValue [, index|key, object, other, stack]). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {Function} [customizer] The function to customize comparisons. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * function isGreeting(value) { + * return /^h(?:i|ello)$/.test(value); + * } + * + * function customizer(objValue, othValue) { + * if (isGreeting(objValue) && isGreeting(othValue)) { + * return true; + * } + * } + * + * var array = ['hello', 'goodbye']; + * var other = ['hi', 'goodbye']; + * + * _.isEqualWith(array, other, customizer); + * // => true + */ +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; +} + +module.exports = isEqualWith; diff --git a/node_modules/lodash/isError.js b/node_modules/lodash/isError.js new file mode 100644 index 0000000..b4f41e0 --- /dev/null +++ b/node_modules/lodash/isError.js @@ -0,0 +1,36 @@ +var baseGetTag = require('./_baseGetTag'), + isObjectLike = require('./isObjectLike'), + isPlainObject = require('./isPlainObject'); + +/** `Object#toString` result references. */ +var domExcTag = '[object DOMException]', + errorTag = '[object Error]'; + +/** + * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`, + * `SyntaxError`, `TypeError`, or `URIError` object. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an error object, else `false`. + * @example + * + * _.isError(new Error); + * // => true + * + * _.isError(Error); + * // => false + */ +function isError(value) { + if (!isObjectLike(value)) { + return false; + } + var tag = baseGetTag(value); + return tag == errorTag || tag == domExcTag || + (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value)); +} + +module.exports = isError; diff --git a/node_modules/lodash/isFinite.js b/node_modules/lodash/isFinite.js new file mode 100644 index 0000000..601842b --- /dev/null +++ b/node_modules/lodash/isFinite.js @@ -0,0 +1,36 @@ +var root = require('./_root'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeIsFinite = root.isFinite; + +/** + * Checks if `value` is a finite primitive number. + * + * **Note:** This method is based on + * [`Number.isFinite`](https://mdn.io/Number/isFinite). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a finite number, else `false`. + * @example + * + * _.isFinite(3); + * // => true + * + * _.isFinite(Number.MIN_VALUE); + * // => true + * + * _.isFinite(Infinity); + * // => false + * + * _.isFinite('3'); + * // => false + */ +function isFinite(value) { + return typeof value == 'number' && nativeIsFinite(value); +} + +module.exports = isFinite; diff --git a/node_modules/lodash/isFunction.js b/node_modules/lodash/isFunction.js new file mode 100644 index 0000000..907a8cd --- /dev/null +++ b/node_modules/lodash/isFunction.js @@ -0,0 +1,37 @@ +var baseGetTag = require('./_baseGetTag'), + isObject = require('./isObject'); + +/** `Object#toString` result references. */ +var asyncTag = '[object AsyncFunction]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + proxyTag = '[object Proxy]'; + +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + if (!isObject(value)) { + return false; + } + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 9 which returns 'object' for typed arrays and other constructors. + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; +} + +module.exports = isFunction; diff --git a/node_modules/lodash/isInteger.js b/node_modules/lodash/isInteger.js new file mode 100644 index 0000000..66aa87d --- /dev/null +++ b/node_modules/lodash/isInteger.js @@ -0,0 +1,33 @@ +var toInteger = require('./toInteger'); + +/** + * Checks if `value` is an integer. + * + * **Note:** This method is based on + * [`Number.isInteger`](https://mdn.io/Number/isInteger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an integer, else `false`. + * @example + * + * _.isInteger(3); + * // => true + * + * _.isInteger(Number.MIN_VALUE); + * // => false + * + * _.isInteger(Infinity); + * // => false + * + * _.isInteger('3'); + * // => false + */ +function isInteger(value) { + return typeof value == 'number' && value == toInteger(value); +} + +module.exports = isInteger; diff --git a/node_modules/lodash/isLength.js b/node_modules/lodash/isLength.js new file mode 100644 index 0000000..3a95caa --- /dev/null +++ b/node_modules/lodash/isLength.js @@ -0,0 +1,35 @@ +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */ +function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; +} + +module.exports = isLength; diff --git a/node_modules/lodash/isMap.js b/node_modules/lodash/isMap.js new file mode 100644 index 0000000..44f8517 --- /dev/null +++ b/node_modules/lodash/isMap.js @@ -0,0 +1,27 @@ +var baseIsMap = require('./_baseIsMap'), + baseUnary = require('./_baseUnary'), + nodeUtil = require('./_nodeUtil'); + +/* Node.js helper references. */ +var nodeIsMap = nodeUtil && nodeUtil.isMap; + +/** + * Checks if `value` is classified as a `Map` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. + * @example + * + * _.isMap(new Map); + * // => true + * + * _.isMap(new WeakMap); + * // => false + */ +var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; + +module.exports = isMap; diff --git a/node_modules/lodash/isMatch.js b/node_modules/lodash/isMatch.js new file mode 100644 index 0000000..9773a18 --- /dev/null +++ b/node_modules/lodash/isMatch.js @@ -0,0 +1,36 @@ +var baseIsMatch = require('./_baseIsMatch'), + getMatchData = require('./_getMatchData'); + +/** + * Performs a partial deep comparison between `object` and `source` to + * determine if `object` contains equivalent property values. + * + * **Note:** This method is equivalent to `_.matches` when `source` is + * partially applied. + * + * Partial comparisons will match empty array and empty object `source` + * values against any array or object value, respectively. See `_.isEqual` + * for a list of supported value comparisons. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {Object} object The object to inspect. + * @param {Object} source The object of property values to match. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * + * _.isMatch(object, { 'b': 2 }); + * // => true + * + * _.isMatch(object, { 'b': 1 }); + * // => false + */ +function isMatch(object, source) { + return object === source || baseIsMatch(object, source, getMatchData(source)); +} + +module.exports = isMatch; diff --git a/node_modules/lodash/isMatchWith.js b/node_modules/lodash/isMatchWith.js new file mode 100644 index 0000000..187b6a6 --- /dev/null +++ b/node_modules/lodash/isMatchWith.js @@ -0,0 +1,41 @@ +var baseIsMatch = require('./_baseIsMatch'), + getMatchData = require('./_getMatchData'); + +/** + * This method is like `_.isMatch` except that it accepts `customizer` which + * is invoked to compare values. If `customizer` returns `undefined`, comparisons + * are handled by the method instead. The `customizer` is invoked with five + * arguments: (objValue, srcValue, index|key, object, source). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {Object} object The object to inspect. + * @param {Object} source The object of property values to match. + * @param {Function} [customizer] The function to customize comparisons. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. + * @example + * + * function isGreeting(value) { + * return /^h(?:i|ello)$/.test(value); + * } + * + * function customizer(objValue, srcValue) { + * if (isGreeting(objValue) && isGreeting(srcValue)) { + * return true; + * } + * } + * + * var object = { 'greeting': 'hello' }; + * var source = { 'greeting': 'hi' }; + * + * _.isMatchWith(object, source, customizer); + * // => true + */ +function isMatchWith(object, source, customizer) { + customizer = typeof customizer == 'function' ? customizer : undefined; + return baseIsMatch(object, source, getMatchData(source), customizer); +} + +module.exports = isMatchWith; diff --git a/node_modules/lodash/isNaN.js b/node_modules/lodash/isNaN.js new file mode 100644 index 0000000..7d0d783 --- /dev/null +++ b/node_modules/lodash/isNaN.js @@ -0,0 +1,38 @@ +var isNumber = require('./isNumber'); + +/** + * Checks if `value` is `NaN`. + * + * **Note:** This method is based on + * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as + * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for + * `undefined` and other non-number values. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + * @example + * + * _.isNaN(NaN); + * // => true + * + * _.isNaN(new Number(NaN)); + * // => true + * + * isNaN(undefined); + * // => true + * + * _.isNaN(undefined); + * // => false + */ +function isNaN(value) { + // An `NaN` primitive is the only value that is not equal to itself. + // Perform the `toStringTag` check first to avoid errors with some + // ActiveX objects in IE. + return isNumber(value) && value != +value; +} + +module.exports = isNaN; diff --git a/node_modules/lodash/isNative.js b/node_modules/lodash/isNative.js new file mode 100644 index 0000000..f0cb8d5 --- /dev/null +++ b/node_modules/lodash/isNative.js @@ -0,0 +1,40 @@ +var baseIsNative = require('./_baseIsNative'), + isMaskable = require('./_isMaskable'); + +/** Error message constants. */ +var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.'; + +/** + * Checks if `value` is a pristine native function. + * + * **Note:** This method can't reliably detect native functions in the presence + * of the core-js package because core-js circumvents this kind of detection. + * Despite multiple requests, the core-js maintainer has made it clear: any + * attempt to fix the detection will be obstructed. As a result, we're left + * with little choice but to throw an error. Unfortunately, this also affects + * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill), + * which rely on core-js. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + * @example + * + * _.isNative(Array.prototype.push); + * // => true + * + * _.isNative(_); + * // => false + */ +function isNative(value) { + if (isMaskable(value)) { + throw new Error(CORE_ERROR_TEXT); + } + return baseIsNative(value); +} + +module.exports = isNative; diff --git a/node_modules/lodash/isNil.js b/node_modules/lodash/isNil.js new file mode 100644 index 0000000..79f0505 --- /dev/null +++ b/node_modules/lodash/isNil.js @@ -0,0 +1,25 @@ +/** + * Checks if `value` is `null` or `undefined`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is nullish, else `false`. + * @example + * + * _.isNil(null); + * // => true + * + * _.isNil(void 0); + * // => true + * + * _.isNil(NaN); + * // => false + */ +function isNil(value) { + return value == null; +} + +module.exports = isNil; diff --git a/node_modules/lodash/isNull.js b/node_modules/lodash/isNull.js new file mode 100644 index 0000000..c0a374d --- /dev/null +++ b/node_modules/lodash/isNull.js @@ -0,0 +1,22 @@ +/** + * Checks if `value` is `null`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `null`, else `false`. + * @example + * + * _.isNull(null); + * // => true + * + * _.isNull(void 0); + * // => false + */ +function isNull(value) { + return value === null; +} + +module.exports = isNull; diff --git a/node_modules/lodash/isNumber.js b/node_modules/lodash/isNumber.js new file mode 100644 index 0000000..cd34ee4 --- /dev/null +++ b/node_modules/lodash/isNumber.js @@ -0,0 +1,38 @@ +var baseGetTag = require('./_baseGetTag'), + isObjectLike = require('./isObjectLike'); + +/** `Object#toString` result references. */ +var numberTag = '[object Number]'; + +/** + * Checks if `value` is classified as a `Number` primitive or object. + * + * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are + * classified as numbers, use the `_.isFinite` method. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a number, else `false`. + * @example + * + * _.isNumber(3); + * // => true + * + * _.isNumber(Number.MIN_VALUE); + * // => true + * + * _.isNumber(Infinity); + * // => true + * + * _.isNumber('3'); + * // => false + */ +function isNumber(value) { + return typeof value == 'number' || + (isObjectLike(value) && baseGetTag(value) == numberTag); +} + +module.exports = isNumber; diff --git a/node_modules/lodash/isObject.js b/node_modules/lodash/isObject.js new file mode 100644 index 0000000..1dc8939 --- /dev/null +++ b/node_modules/lodash/isObject.js @@ -0,0 +1,31 @@ +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return value != null && (type == 'object' || type == 'function'); +} + +module.exports = isObject; diff --git a/node_modules/lodash/isObjectLike.js b/node_modules/lodash/isObjectLike.js new file mode 100644 index 0000000..301716b --- /dev/null +++ b/node_modules/lodash/isObjectLike.js @@ -0,0 +1,29 @@ +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return value != null && typeof value == 'object'; +} + +module.exports = isObjectLike; diff --git a/node_modules/lodash/isPlainObject.js b/node_modules/lodash/isPlainObject.js new file mode 100644 index 0000000..2387373 --- /dev/null +++ b/node_modules/lodash/isPlainObject.js @@ -0,0 +1,62 @@ +var baseGetTag = require('./_baseGetTag'), + getPrototype = require('./_getPrototype'), + isObjectLike = require('./isObjectLike'); + +/** `Object#toString` result references. */ +var objectTag = '[object Object]'; + +/** Used for built-in method references. */ +var funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Used to infer the `Object` constructor. */ +var objectCtorString = funcToString.call(Object); + +/** + * Checks if `value` is a plain object, that is, an object created by the + * `Object` constructor or one with a `[[Prototype]]` of `null`. + * + * @static + * @memberOf _ + * @since 0.8.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * _.isPlainObject(new Foo); + * // => false + * + * _.isPlainObject([1, 2, 3]); + * // => false + * + * _.isPlainObject({ 'x': 0, 'y': 0 }); + * // => true + * + * _.isPlainObject(Object.create(null)); + * // => true + */ +function isPlainObject(value) { + if (!isObjectLike(value) || baseGetTag(value) != objectTag) { + return false; + } + var proto = getPrototype(value); + if (proto === null) { + return true; + } + var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; + return typeof Ctor == 'function' && Ctor instanceof Ctor && + funcToString.call(Ctor) == objectCtorString; +} + +module.exports = isPlainObject; diff --git a/node_modules/lodash/isRegExp.js b/node_modules/lodash/isRegExp.js new file mode 100644 index 0000000..76c9b6e --- /dev/null +++ b/node_modules/lodash/isRegExp.js @@ -0,0 +1,27 @@ +var baseIsRegExp = require('./_baseIsRegExp'), + baseUnary = require('./_baseUnary'), + nodeUtil = require('./_nodeUtil'); + +/* Node.js helper references. */ +var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp; + +/** + * Checks if `value` is classified as a `RegExp` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. + * @example + * + * _.isRegExp(/abc/); + * // => true + * + * _.isRegExp('/abc/'); + * // => false + */ +var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; + +module.exports = isRegExp; diff --git a/node_modules/lodash/isSafeInteger.js b/node_modules/lodash/isSafeInteger.js new file mode 100644 index 0000000..2a48526 --- /dev/null +++ b/node_modules/lodash/isSafeInteger.js @@ -0,0 +1,37 @@ +var isInteger = require('./isInteger'); + +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** + * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754 + * double precision number which isn't the result of a rounded unsafe integer. + * + * **Note:** This method is based on + * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`. + * @example + * + * _.isSafeInteger(3); + * // => true + * + * _.isSafeInteger(Number.MIN_VALUE); + * // => false + * + * _.isSafeInteger(Infinity); + * // => false + * + * _.isSafeInteger('3'); + * // => false + */ +function isSafeInteger(value) { + return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER; +} + +module.exports = isSafeInteger; diff --git a/node_modules/lodash/isSet.js b/node_modules/lodash/isSet.js new file mode 100644 index 0000000..ab88bdf --- /dev/null +++ b/node_modules/lodash/isSet.js @@ -0,0 +1,27 @@ +var baseIsSet = require('./_baseIsSet'), + baseUnary = require('./_baseUnary'), + nodeUtil = require('./_nodeUtil'); + +/* Node.js helper references. */ +var nodeIsSet = nodeUtil && nodeUtil.isSet; + +/** + * Checks if `value` is classified as a `Set` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. + * @example + * + * _.isSet(new Set); + * // => true + * + * _.isSet(new WeakSet); + * // => false + */ +var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; + +module.exports = isSet; diff --git a/node_modules/lodash/isString.js b/node_modules/lodash/isString.js new file mode 100644 index 0000000..627eb9c --- /dev/null +++ b/node_modules/lodash/isString.js @@ -0,0 +1,30 @@ +var baseGetTag = require('./_baseGetTag'), + isArray = require('./isArray'), + isObjectLike = require('./isObjectLike'); + +/** `Object#toString` result references. */ +var stringTag = '[object String]'; + +/** + * Checks if `value` is classified as a `String` primitive or object. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a string, else `false`. + * @example + * + * _.isString('abc'); + * // => true + * + * _.isString(1); + * // => false + */ +function isString(value) { + return typeof value == 'string' || + (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag); +} + +module.exports = isString; diff --git a/node_modules/lodash/isSymbol.js b/node_modules/lodash/isSymbol.js new file mode 100644 index 0000000..dfb60b9 --- /dev/null +++ b/node_modules/lodash/isSymbol.js @@ -0,0 +1,29 @@ +var baseGetTag = require('./_baseGetTag'), + isObjectLike = require('./isObjectLike'); + +/** `Object#toString` result references. */ +var symbolTag = '[object Symbol]'; + +/** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ +function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && baseGetTag(value) == symbolTag); +} + +module.exports = isSymbol; diff --git a/node_modules/lodash/isTypedArray.js b/node_modules/lodash/isTypedArray.js new file mode 100644 index 0000000..da3f8dd --- /dev/null +++ b/node_modules/lodash/isTypedArray.js @@ -0,0 +1,27 @@ +var baseIsTypedArray = require('./_baseIsTypedArray'), + baseUnary = require('./_baseUnary'), + nodeUtil = require('./_nodeUtil'); + +/* Node.js helper references. */ +var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; + +/** + * Checks if `value` is classified as a typed array. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + * @example + * + * _.isTypedArray(new Uint8Array); + * // => true + * + * _.isTypedArray([]); + * // => false + */ +var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + +module.exports = isTypedArray; diff --git a/node_modules/lodash/isUndefined.js b/node_modules/lodash/isUndefined.js new file mode 100644 index 0000000..377d121 --- /dev/null +++ b/node_modules/lodash/isUndefined.js @@ -0,0 +1,22 @@ +/** + * Checks if `value` is `undefined`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`. + * @example + * + * _.isUndefined(void 0); + * // => true + * + * _.isUndefined(null); + * // => false + */ +function isUndefined(value) { + return value === undefined; +} + +module.exports = isUndefined; diff --git a/node_modules/lodash/isWeakMap.js b/node_modules/lodash/isWeakMap.js new file mode 100644 index 0000000..8d36f66 --- /dev/null +++ b/node_modules/lodash/isWeakMap.js @@ -0,0 +1,28 @@ +var getTag = require('./_getTag'), + isObjectLike = require('./isObjectLike'); + +/** `Object#toString` result references. */ +var weakMapTag = '[object WeakMap]'; + +/** + * Checks if `value` is classified as a `WeakMap` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a weak map, else `false`. + * @example + * + * _.isWeakMap(new WeakMap); + * // => true + * + * _.isWeakMap(new Map); + * // => false + */ +function isWeakMap(value) { + return isObjectLike(value) && getTag(value) == weakMapTag; +} + +module.exports = isWeakMap; diff --git a/node_modules/lodash/isWeakSet.js b/node_modules/lodash/isWeakSet.js new file mode 100644 index 0000000..e628b26 --- /dev/null +++ b/node_modules/lodash/isWeakSet.js @@ -0,0 +1,28 @@ +var baseGetTag = require('./_baseGetTag'), + isObjectLike = require('./isObjectLike'); + +/** `Object#toString` result references. */ +var weakSetTag = '[object WeakSet]'; + +/** + * Checks if `value` is classified as a `WeakSet` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a weak set, else `false`. + * @example + * + * _.isWeakSet(new WeakSet); + * // => true + * + * _.isWeakSet(new Set); + * // => false + */ +function isWeakSet(value) { + return isObjectLike(value) && baseGetTag(value) == weakSetTag; +} + +module.exports = isWeakSet; diff --git a/node_modules/lodash/iteratee.js b/node_modules/lodash/iteratee.js new file mode 100644 index 0000000..61b73a8 --- /dev/null +++ b/node_modules/lodash/iteratee.js @@ -0,0 +1,53 @@ +var baseClone = require('./_baseClone'), + baseIteratee = require('./_baseIteratee'); + +/** Used to compose bitmasks for cloning. */ +var CLONE_DEEP_FLAG = 1; + +/** + * Creates a function that invokes `func` with the arguments of the created + * function. If `func` is a property name, the created function returns the + * property value for a given element. If `func` is an array or object, the + * created function returns `true` for elements that contain the equivalent + * source properties, otherwise it returns `false`. + * + * @static + * @since 4.0.0 + * @memberOf _ + * @category Util + * @param {*} [func=_.identity] The value to convert to a callback. + * @returns {Function} Returns the callback. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * // The `_.matches` iteratee shorthand. + * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true })); + * // => [{ 'user': 'barney', 'age': 36, 'active': true }] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.filter(users, _.iteratee(['user', 'fred'])); + * // => [{ 'user': 'fred', 'age': 40 }] + * + * // The `_.property` iteratee shorthand. + * _.map(users, _.iteratee('user')); + * // => ['barney', 'fred'] + * + * // Create custom iteratee shorthands. + * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) { + * return !_.isRegExp(func) ? iteratee(func) : function(string) { + * return func.test(string); + * }; + * }); + * + * _.filter(['abc', 'def'], /ef/); + * // => ['def'] + */ +function iteratee(func) { + return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG)); +} + +module.exports = iteratee; diff --git a/node_modules/lodash/join.js b/node_modules/lodash/join.js new file mode 100644 index 0000000..45de079 --- /dev/null +++ b/node_modules/lodash/join.js @@ -0,0 +1,26 @@ +/** Used for built-in method references. */ +var arrayProto = Array.prototype; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeJoin = arrayProto.join; + +/** + * Converts all elements in `array` into a string separated by `separator`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to convert. + * @param {string} [separator=','] The element separator. + * @returns {string} Returns the joined string. + * @example + * + * _.join(['a', 'b', 'c'], '~'); + * // => 'a~b~c' + */ +function join(array, separator) { + return array == null ? '' : nativeJoin.call(array, separator); +} + +module.exports = join; diff --git a/node_modules/lodash/kebabCase.js b/node_modules/lodash/kebabCase.js new file mode 100644 index 0000000..8a52be6 --- /dev/null +++ b/node_modules/lodash/kebabCase.js @@ -0,0 +1,28 @@ +var createCompounder = require('./_createCompounder'); + +/** + * Converts `string` to + * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the kebab cased string. + * @example + * + * _.kebabCase('Foo Bar'); + * // => 'foo-bar' + * + * _.kebabCase('fooBar'); + * // => 'foo-bar' + * + * _.kebabCase('__FOO_BAR__'); + * // => 'foo-bar' + */ +var kebabCase = createCompounder(function(result, word, index) { + return result + (index ? '-' : '') + word.toLowerCase(); +}); + +module.exports = kebabCase; diff --git a/node_modules/lodash/keyBy.js b/node_modules/lodash/keyBy.js new file mode 100644 index 0000000..acc007a --- /dev/null +++ b/node_modules/lodash/keyBy.js @@ -0,0 +1,36 @@ +var baseAssignValue = require('./_baseAssignValue'), + createAggregator = require('./_createAggregator'); + +/** + * Creates an object composed of keys generated from the results of running + * each element of `collection` thru `iteratee`. The corresponding value of + * each key is the last element responsible for generating the key. The + * iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. + * @returns {Object} Returns the composed aggregate object. + * @example + * + * var array = [ + * { 'dir': 'left', 'code': 97 }, + * { 'dir': 'right', 'code': 100 } + * ]; + * + * _.keyBy(array, function(o) { + * return String.fromCharCode(o.code); + * }); + * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } } + * + * _.keyBy(array, 'dir'); + * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } } + */ +var keyBy = createAggregator(function(result, value, key) { + baseAssignValue(result, key, value); +}); + +module.exports = keyBy; diff --git a/node_modules/lodash/keys.js b/node_modules/lodash/keys.js new file mode 100644 index 0000000..d143c71 --- /dev/null +++ b/node_modules/lodash/keys.js @@ -0,0 +1,37 @@ +var arrayLikeKeys = require('./_arrayLikeKeys'), + baseKeys = require('./_baseKeys'), + isArrayLike = require('./isArrayLike'); + +/** + * Creates an array of the own enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. See the + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * for more details. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keys(new Foo); + * // => ['a', 'b'] (iteration order is not guaranteed) + * + * _.keys('hi'); + * // => ['0', '1'] + */ +function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); +} + +module.exports = keys; diff --git a/node_modules/lodash/keysIn.js b/node_modules/lodash/keysIn.js new file mode 100644 index 0000000..a62308f --- /dev/null +++ b/node_modules/lodash/keysIn.js @@ -0,0 +1,32 @@ +var arrayLikeKeys = require('./_arrayLikeKeys'), + baseKeysIn = require('./_baseKeysIn'), + isArrayLike = require('./isArrayLike'); + +/** + * Creates an array of the own and inherited enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keysIn(new Foo); + * // => ['a', 'b', 'c'] (iteration order is not guaranteed) + */ +function keysIn(object) { + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); +} + +module.exports = keysIn; diff --git a/node_modules/lodash/lang.js b/node_modules/lodash/lang.js new file mode 100644 index 0000000..a396216 --- /dev/null +++ b/node_modules/lodash/lang.js @@ -0,0 +1,58 @@ +module.exports = { + 'castArray': require('./castArray'), + 'clone': require('./clone'), + 'cloneDeep': require('./cloneDeep'), + 'cloneDeepWith': require('./cloneDeepWith'), + 'cloneWith': require('./cloneWith'), + 'conformsTo': require('./conformsTo'), + 'eq': require('./eq'), + 'gt': require('./gt'), + 'gte': require('./gte'), + 'isArguments': require('./isArguments'), + 'isArray': require('./isArray'), + 'isArrayBuffer': require('./isArrayBuffer'), + 'isArrayLike': require('./isArrayLike'), + 'isArrayLikeObject': require('./isArrayLikeObject'), + 'isBoolean': require('./isBoolean'), + 'isBuffer': require('./isBuffer'), + 'isDate': require('./isDate'), + 'isElement': require('./isElement'), + 'isEmpty': require('./isEmpty'), + 'isEqual': require('./isEqual'), + 'isEqualWith': require('./isEqualWith'), + 'isError': require('./isError'), + 'isFinite': require('./isFinite'), + 'isFunction': require('./isFunction'), + 'isInteger': require('./isInteger'), + 'isLength': require('./isLength'), + 'isMap': require('./isMap'), + 'isMatch': require('./isMatch'), + 'isMatchWith': require('./isMatchWith'), + 'isNaN': require('./isNaN'), + 'isNative': require('./isNative'), + 'isNil': require('./isNil'), + 'isNull': require('./isNull'), + 'isNumber': require('./isNumber'), + 'isObject': require('./isObject'), + 'isObjectLike': require('./isObjectLike'), + 'isPlainObject': require('./isPlainObject'), + 'isRegExp': require('./isRegExp'), + 'isSafeInteger': require('./isSafeInteger'), + 'isSet': require('./isSet'), + 'isString': require('./isString'), + 'isSymbol': require('./isSymbol'), + 'isTypedArray': require('./isTypedArray'), + 'isUndefined': require('./isUndefined'), + 'isWeakMap': require('./isWeakMap'), + 'isWeakSet': require('./isWeakSet'), + 'lt': require('./lt'), + 'lte': require('./lte'), + 'toArray': require('./toArray'), + 'toFinite': require('./toFinite'), + 'toInteger': require('./toInteger'), + 'toLength': require('./toLength'), + 'toNumber': require('./toNumber'), + 'toPlainObject': require('./toPlainObject'), + 'toSafeInteger': require('./toSafeInteger'), + 'toString': require('./toString') +}; diff --git a/node_modules/lodash/last.js b/node_modules/lodash/last.js new file mode 100644 index 0000000..cad1eaf --- /dev/null +++ b/node_modules/lodash/last.js @@ -0,0 +1,20 @@ +/** + * Gets the last element of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to query. + * @returns {*} Returns the last element of `array`. + * @example + * + * _.last([1, 2, 3]); + * // => 3 + */ +function last(array) { + var length = array == null ? 0 : array.length; + return length ? array[length - 1] : undefined; +} + +module.exports = last; diff --git a/node_modules/lodash/lastIndexOf.js b/node_modules/lodash/lastIndexOf.js new file mode 100644 index 0000000..dabfb61 --- /dev/null +++ b/node_modules/lodash/lastIndexOf.js @@ -0,0 +1,46 @@ +var baseFindIndex = require('./_baseFindIndex'), + baseIsNaN = require('./_baseIsNaN'), + strictLastIndexOf = require('./_strictLastIndexOf'), + toInteger = require('./toInteger'); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max, + nativeMin = Math.min; + +/** + * This method is like `_.indexOf` except that it iterates over elements of + * `array` from right to left. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=array.length-1] The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + * @example + * + * _.lastIndexOf([1, 2, 1, 2], 2); + * // => 3 + * + * // Search from the `fromIndex`. + * _.lastIndexOf([1, 2, 1, 2], 2, 2); + * // => 1 + */ +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); +} + +module.exports = lastIndexOf; diff --git a/node_modules/lodash/lodash.js b/node_modules/lodash/lodash.js new file mode 100644 index 0000000..4131e93 --- /dev/null +++ b/node_modules/lodash/lodash.js @@ -0,0 +1,17209 @@ +/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ +;(function() { + + /** Used as a safe reference for `undefined` in pre-ES5 environments. */ + var undefined; + + /** Used as the semantic version number. */ + var VERSION = '4.17.21'; + + /** 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`'; + + /** 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; + + /** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ + 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; + + /** + * Used to validate the `validate` option in `_.template` variable. + * + * Forbids characters which could potentially change the meaning of the function argument definition: + * - "()," (modification of function parameters) + * - "=" (default value) + * - "[]{}" (destructuring of function parameters) + * - "/" (beginning of a comment) + * - whitespace + */ + var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/; + + /** Used to match backslashes in property paths. */ + var reEscapeChar = /\\(\\)?/g; + + /** + * Used to match + * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components). + */ + var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; + + /** Used to match `RegExp` flags from their coerced string values. */ + var reFlags = /\w*$/; + + /** Used to detect bad signed hexadecimal string values. */ + var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + + /** Used to detect binary string values. */ + var reIsBinary = /^0b[01]+$/i; + + /** Used to detect host constructors (Safari). */ + var reIsHostCtor = /^\[object .+?Constructor\]$/; + + /** Used to detect octal string values. */ + var reIsOctal = /^0o[0-7]+$/i; + + /** Used to detect unsigned integer values. */ + var reIsUint = /^(?:0|[1-9]\d*)$/; + + /** Used to match Latin Unicode letters (excluding mathematical operators). */ + var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; + + /** Used to ensure capturing order of template delimiters. */ + var reNoMatch = /($^)/; + + /** Used to match unescaped characters in compiled string literals. */ + var reUnescapedString = /['\n\r\u2028\u2029\\]/g; + + /** Used to compose unicode character classes. */ + var rsAstralRange = '\\ud800-\\udfff', + rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, + rsDingbatRange = '\\u2700-\\u27bf', + rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff', + rsMathOpRange = '\\xac\\xb1\\xd7\\xf7', + rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf', + rsPunctuationRange = '\\u2000-\\u206f', + rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000', + rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde', + rsVarRange = '\\ufe0e\\ufe0f', + rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; + + /** Used to compose unicode capture groups. */ + var rsApos = "['\u2019]", + rsAstral = '[' + rsAstralRange + ']', + rsBreak = '[' + rsBreakRange + ']', + rsCombo = '[' + rsComboRange + ']', + rsDigits = '\\d+', + rsDingbat = '[' + rsDingbatRange + ']', + rsLower = '[' + rsLowerRange + ']', + rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']', + rsFitz = '\\ud83c[\\udffb-\\udfff]', + rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')', + rsNonAstral = '[^' + rsAstralRange + ']', + rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', + rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', + rsUpper = '[' + rsUpperRange + ']', + rsZWJ = '\\u200d'; + + /** Used to compose unicode regexes. */ + var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')', + rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')', + rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?', + rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?', + reOptMod = rsModifier + '?', + rsOptVar = '[' + rsVarRange + ']?', + rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*', + rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])', + rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])', + rsSeq = rsOptVar + reOptMod + rsOptJoin, + rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq, + rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; + + /** Used to match apostrophes. */ + var reApos = RegExp(rsApos, 'g'); + + /** + * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and + * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols). + */ + var reComboMark = RegExp(rsCombo, 'g'); + + /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ + var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); + + /** Used to match complex or compound words. */ + var reUnicodeWord = RegExp([ + rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', + rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')', + rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower, + rsUpper + '+' + rsOptContrUpper, + rsOrdUpper, + rsOrdLower, + rsDigits, + rsEmoji + ].join('|'), 'g'); + + /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ + var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']'); + + /** Used to detect strings that need a more robust regexp to match words. */ + var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; + + /** Used to assign default `context` object properties. */ + var contextProps = [ + 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array', + 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object', + 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array', + 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap', + '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout' + ]; + + /** Used to make template sourceURLs easier to identify. */ + var templateCounter = -1; + + /** Used to identify `toStringTag` values of typed arrays. */ + var typedArrayTags = {}; + typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = + typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = + typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = + typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = + typedArrayTags[uint32Tag] = true; + typedArrayTags[argsTag] = typedArrayTags[arrayTag] = + typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = + typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = + typedArrayTags[errorTag] = typedArrayTags[funcTag] = + typedArrayTags[mapTag] = typedArrayTags[numberTag] = + typedArrayTags[objectTag] = typedArrayTags[regexpTag] = + typedArrayTags[setTag] = typedArrayTags[stringTag] = + typedArrayTags[weakMapTag] = false; + + /** Used to identify `toStringTag` values supported by `_.clone`. */ + var cloneableTags = {}; + cloneableTags[argsTag] = cloneableTags[arrayTag] = + cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = + cloneableTags[boolTag] = cloneableTags[dateTag] = + cloneableTags[float32Tag] = cloneableTags[float64Tag] = + cloneableTags[int8Tag] = cloneableTags[int16Tag] = + cloneableTags[int32Tag] = cloneableTags[mapTag] = + cloneableTags[numberTag] = cloneableTags[objectTag] = + cloneableTags[regexpTag] = cloneableTags[setTag] = + cloneableTags[stringTag] = cloneableTags[symbolTag] = + cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = + cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; + cloneableTags[errorTag] = cloneableTags[funcTag] = + cloneableTags[weakMapTag] = false; + + /** Used to map Latin Unicode letters to basic Latin letters. */ + var deburredLetters = { + // Latin-1 Supplement block. + '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A', + '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a', + '\xc7': 'C', '\xe7': 'c', + '\xd0': 'D', '\xf0': 'd', + '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E', + '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e', + '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I', + '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i', + '\xd1': 'N', '\xf1': 'n', + '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O', + '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o', + '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U', + '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u', + '\xdd': 'Y', '\xfd': 'y', '\xff': 'y', + '\xc6': 'Ae', '\xe6': 'ae', + '\xde': 'Th', '\xfe': 'th', + '\xdf': 'ss', + // Latin Extended-A block. + '\u0100': 'A', '\u0102': 'A', '\u0104': 'A', + '\u0101': 'a', '\u0103': 'a', '\u0105': 'a', + '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C', + '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c', + '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd', + '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E', + '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e', + '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G', + '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g', + '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h', + '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I', + '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i', + '\u0134': 'J', '\u0135': 'j', + '\u0136': 'K', '\u0137': 'k', '\u0138': 'k', + '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L', + '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l', + '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N', + '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n', + '\u014c': 'O', '\u014e': 'O', '\u0150': 'O', + '\u014d': 'o', '\u014f': 'o', '\u0151': 'o', + '\u0154': 'R', '\u0156': 'R', '\u0158': 'R', + '\u0155': 'r', '\u0157': 'r', '\u0159': 'r', + '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S', + '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's', + '\u0162': 'T', '\u0164': 'T', '\u0166': 'T', + '\u0163': 't', '\u0165': 't', '\u0167': 't', + '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U', + '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u', + '\u0174': 'W', '\u0175': 'w', + '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y', + '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z', + '\u017a': 'z', '\u017c': 'z', '\u017e': 'z', + '\u0132': 'IJ', '\u0133': 'ij', + '\u0152': 'Oe', '\u0153': 'oe', + '\u0149': "'n", '\u017f': 's' + }; + + /** Used to map characters to HTML entities. */ + var htmlEscapes = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''' + }; + + /** Used to map HTML entities to characters. */ + var htmlUnescapes = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + ''': "'" + }; + + /** Used to escape characters for inclusion in compiled string literals. */ + var stringEscapes = { + '\\': '\\', + "'": "'", + '\n': 'n', + '\r': 'r', + '\u2028': 'u2028', + '\u2029': 'u2029' + }; + + /** Built-in method references without a dependency on `root`. */ + var freeParseFloat = parseFloat, + freeParseInt = parseInt; + + /** Detect free variable `global` from Node.js. */ + var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + + /** Detect free variable `self`. */ + var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + + /** Used as a reference to the global object. */ + var root = freeGlobal || freeSelf || Function('return this')(); + + /** Detect free variable `exports`. */ + var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; + + /** Detect free variable `module`. */ + var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + + /** Detect the popular CommonJS extension `module.exports`. */ + var moduleExports = freeModule && freeModule.exports === freeExports; + + /** Detect free variable `process` from Node.js. */ + var freeProcess = moduleExports && freeGlobal.process; + + /** Used to access faster Node.js helpers. */ + var nodeUtil = (function() { + try { + // Use `util.types` for Node.js 10+. + var types = freeModule && freeModule.require && freeModule.require('util').types; + + if (types) { + return types; + } + + // Legacy `process.binding('util')` for Node.js < 10. + return freeProcess && freeProcess.binding && freeProcess.binding('util'); + } catch (e) {} + }()); + + /* Node.js helper references. */ + var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, + nodeIsDate = nodeUtil && nodeUtil.isDate, + nodeIsMap = nodeUtil && nodeUtil.isMap, + nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, + nodeIsSet = nodeUtil && nodeUtil.isSet, + nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; + + /*--------------------------------------------------------------------------*/ + + /** + * A faster alternative to `Function#apply`, this function invokes `func` + * with the `this` binding of `thisArg` and the arguments of `args`. + * + * @private + * @param {Function} func The function to invoke. + * @param {*} thisArg The `this` binding of `func`. + * @param {Array} args The arguments to invoke `func` with. + * @returns {*} Returns the result of `func`. + */ + function apply(func, thisArg, args) { + switch (args.length) { + case 0: return func.call(thisArg); + case 1: return func.call(thisArg, args[0]); + case 2: return func.call(thisArg, args[0], args[1]); + case 3: return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); + } + + /** + * A specialized version of `baseAggregator` for arrays. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} setter The function to set `accumulator` values. + * @param {Function} iteratee The iteratee to transform keys. + * @param {Object} accumulator The initial aggregated object. + * @returns {Function} Returns `accumulator`. + */ + function arrayAggregator(array, setter, iteratee, accumulator) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + var value = array[index]; + setter(accumulator, value, iteratee(value), array); + } + return accumulator; + } + + /** + * A specialized version of `_.forEach` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns `array`. + */ + function arrayEach(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (iteratee(array[index], index, array) === false) { + break; + } + } + return array; + } + + /** + * A specialized version of `_.forEachRight` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns `array`. + */ + function arrayEachRight(array, iteratee) { + var length = array == null ? 0 : array.length; + + while (length--) { + if (iteratee(array[length], length, array) === false) { + break; + } + } + return array; + } + + /** + * A specialized version of `_.every` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false`. + */ + function arrayEvery(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (!predicate(array[index], index, array)) { + return false; + } + } + return true; + } + + /** + * A specialized version of `_.filter` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ + function arrayFilter(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + if (predicate(value, index, array)) { + result[resIndex++] = value; + } + } + return result; + } + + /** + * A specialized version of `_.includes` for arrays without support for + * specifying an index to search from. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ + function arrayIncludes(array, value) { + var length = array == null ? 0 : array.length; + return !!length && baseIndexOf(array, value, 0) > -1; + } + + /** + * This function is like `arrayIncludes` except that it accepts a comparator. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @param {Function} comparator The comparator invoked per element. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ + function arrayIncludesWith(array, value, comparator) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (comparator(value, array[index])) { + return true; + } + } + return false; + } + + /** + * A specialized version of `_.map` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ + function arrayMap(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length, + result = Array(length); + + while (++index < length) { + result[index] = iteratee(array[index], index, array); + } + return result; + } + + /** + * Appends the elements of `values` to `array`. + * + * @private + * @param {Array} array The array to modify. + * @param {Array} values The values to append. + * @returns {Array} Returns `array`. + */ + function arrayPush(array, values) { + var index = -1, + length = values.length, + offset = array.length; + + while (++index < length) { + array[offset + index] = values[index]; + } + return array; + } + + /** + * A specialized version of `_.reduce` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @param {boolean} [initAccum] Specify using the first element of `array` as + * the initial value. + * @returns {*} Returns the accumulated value. + */ + function arrayReduce(array, iteratee, accumulator, initAccum) { + var index = -1, + length = array == null ? 0 : array.length; + + if (initAccum && length) { + accumulator = array[++index]; + } + while (++index < length) { + accumulator = iteratee(accumulator, array[index], index, array); + } + return accumulator; + } + + /** + * A specialized version of `_.reduceRight` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @param {boolean} [initAccum] Specify using the last element of `array` as + * the initial value. + * @returns {*} Returns the accumulated value. + */ + function arrayReduceRight(array, iteratee, accumulator, initAccum) { + var length = array == null ? 0 : array.length; + if (initAccum && length) { + accumulator = array[--length]; + } + while (length--) { + accumulator = iteratee(accumulator, array[length], length, array); + } + return accumulator; + } + + /** + * A specialized version of `_.some` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ + function arraySome(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (predicate(array[index], index, array)) { + return true; + } + } + return false; + } + + /** + * Gets the size of an ASCII `string`. + * + * @private + * @param {string} string The string inspect. + * @returns {number} Returns the string size. + */ + var asciiSize = baseProperty('length'); + + /** + * Converts an ASCII `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ + function asciiToArray(string) { + return string.split(''); + } + + /** + * Splits an ASCII `string` into an array of its words. + * + * @private + * @param {string} The string to inspect. + * @returns {Array} Returns the words of `string`. + */ + function asciiWords(string) { + return string.match(reAsciiWord) || []; + } + + /** + * The base implementation of methods like `_.findKey` and `_.findLastKey`, + * without support for iteratee shorthands, which iterates over `collection` + * using `eachFunc`. + * + * @private + * @param {Array|Object} collection The collection to inspect. + * @param {Function} predicate The function invoked per iteration. + * @param {Function} eachFunc The function to iterate over `collection`. + * @returns {*} Returns the found element or its key, else `undefined`. + */ + function baseFindKey(collection, predicate, eachFunc) { + var result; + eachFunc(collection, function(value, key, collection) { + if (predicate(value, key, collection)) { + result = key; + return false; + } + }); + return result; + } + + /** + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} predicate The function invoked per iteration. + * @param {number} fromIndex The index to search from. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function baseFindIndex(array, predicate, fromIndex, fromRight) { + var length = array.length, + index = fromIndex + (fromRight ? 1 : -1); + + while ((fromRight ? index-- : ++index < length)) { + if (predicate(array[index], index, array)) { + return index; + } + } + return -1; + } + + /** + * The base implementation of `_.indexOf` without `fromIndex` bounds checks. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function baseIndexOf(array, value, fromIndex) { + return value === value + ? strictIndexOf(array, value, fromIndex) + : baseFindIndex(array, baseIsNaN, fromIndex); + } + + /** + * This function is like `baseIndexOf` except that it accepts a comparator. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @param {Function} comparator The comparator invoked per element. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function baseIndexOfWith(array, value, fromIndex, comparator) { + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (comparator(array[index], value)) { + return index; + } + } + return -1; + } + + /** + * The base implementation of `_.isNaN` without support for number objects. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + */ + function baseIsNaN(value) { + return value !== value; + } + + /** + * The base implementation of `_.mean` and `_.meanBy` without support for + * iteratee shorthands. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {number} Returns the mean. + */ + function baseMean(array, iteratee) { + var length = array == null ? 0 : array.length; + return length ? (baseSum(array, iteratee) / length) : NAN; + } + + /** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new accessor function. + */ + function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; + } + + /** + * The base implementation of `_.propertyOf` without support for deep paths. + * + * @private + * @param {Object} object The object to query. + * @returns {Function} Returns the new accessor function. + */ + function basePropertyOf(object) { + return function(key) { + return object == null ? undefined : object[key]; + }; + } + + /** + * The base implementation of `_.reduce` and `_.reduceRight`, without support + * for iteratee shorthands, which iterates over `collection` using `eachFunc`. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} accumulator The initial value. + * @param {boolean} initAccum Specify using the first or last element of + * `collection` as the initial value. + * @param {Function} eachFunc The function to iterate over `collection`. + * @returns {*} Returns the accumulated value. + */ + function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { + eachFunc(collection, function(value, index, collection) { + accumulator = initAccum + ? (initAccum = false, value) + : iteratee(accumulator, value, index, collection); + }); + return accumulator; + } + + /** + * The base implementation of `_.sortBy` which uses `comparer` to define the + * sort order of `array` and replaces criteria objects with their corresponding + * values. + * + * @private + * @param {Array} array The array to sort. + * @param {Function} comparer The function to define sort order. + * @returns {Array} Returns `array`. + */ + function baseSortBy(array, comparer) { + var length = array.length; + + array.sort(comparer); + while (length--) { + array[length] = array[length].value; + } + return array; + } + + /** + * The base implementation of `_.sum` and `_.sumBy` without support for + * iteratee shorthands. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {number} Returns the sum. + */ + 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; + } + + /** + * The base implementation of `_.times` without support for iteratee shorthands + * or max array length checks. + * + * @private + * @param {number} n The number of times to invoke `iteratee`. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the array of results. + */ + function baseTimes(n, iteratee) { + var index = -1, + result = Array(n); + + while (++index < n) { + result[index] = iteratee(index); + } + return result; + } + + /** + * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array + * of key-value pairs for `object` corresponding to the property names of `props`. + * + * @private + * @param {Object} object The object to query. + * @param {Array} props The property names to get values for. + * @returns {Object} Returns the key-value pairs. + */ + function baseToPairs(object, props) { + return arrayMap(props, function(key) { + return [key, object[key]]; + }); + } + + /** + * The base implementation of `_.trim`. + * + * @private + * @param {string} string The string to trim. + * @returns {string} Returns the trimmed string. + */ + function baseTrim(string) { + return string + ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '') + : string; + } + + /** + * The base implementation of `_.unary` without support for storing metadata. + * + * @private + * @param {Function} func The function to cap arguments for. + * @returns {Function} Returns the new capped function. + */ + function baseUnary(func) { + return function(value) { + return func(value); + }; + } + + /** + * The base implementation of `_.values` and `_.valuesIn` which creates an + * array of `object` property values corresponding to the property names + * of `props`. + * + * @private + * @param {Object} object The object to query. + * @param {Array} props The property names to get values for. + * @returns {Object} Returns the array of property values. + */ + function baseValues(object, props) { + return arrayMap(props, function(key) { + return object[key]; + }); + } + + /** + * Checks if a `cache` value for `key` exists. + * + * @private + * @param {Object} cache The cache to query. + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function cacheHas(cache, key) { + return cache.has(key); + } + + /** + * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol + * that is not found in the character symbols. + * + * @private + * @param {Array} strSymbols The string symbols to inspect. + * @param {Array} chrSymbols The character symbols to find. + * @returns {number} Returns the index of the first unmatched string symbol. + */ + function charsStartIndex(strSymbols, chrSymbols) { + var index = -1, + length = strSymbols.length; + + while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {} + return index; + } + + /** + * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol + * that is not found in the character symbols. + * + * @private + * @param {Array} strSymbols The string symbols to inspect. + * @param {Array} chrSymbols The character symbols to find. + * @returns {number} Returns the index of the last unmatched string symbol. + */ + function charsEndIndex(strSymbols, chrSymbols) { + var index = strSymbols.length; + + while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {} + return index; + } + + /** + * Gets the number of `placeholder` occurrences in `array`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} placeholder The placeholder to search for. + * @returns {number} Returns the placeholder count. + */ + function countHolders(array, placeholder) { + var length = array.length, + result = 0; + + while (length--) { + if (array[length] === placeholder) { + ++result; + } + } + return result; + } + + /** + * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A + * letters to basic Latin letters. + * + * @private + * @param {string} letter The matched letter to deburr. + * @returns {string} Returns the deburred letter. + */ + var deburrLetter = basePropertyOf(deburredLetters); + + /** + * Used by `_.escape` to convert characters to HTML entities. + * + * @private + * @param {string} chr The matched character to escape. + * @returns {string} Returns the escaped character. + */ + var escapeHtmlChar = basePropertyOf(htmlEscapes); + + /** + * Used by `_.template` to escape characters for inclusion in compiled string literals. + * + * @private + * @param {string} chr The matched character to escape. + * @returns {string} Returns the escaped character. + */ + function escapeStringChar(chr) { + return '\\' + stringEscapes[chr]; + } + + /** + * Gets the value at `key` of `object`. + * + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ + function getValue(object, key) { + return object == null ? undefined : object[key]; + } + + /** + * Checks if `string` contains Unicode symbols. + * + * @private + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a symbol is found, else `false`. + */ + function hasUnicode(string) { + return reHasUnicode.test(string); + } + + /** + * Checks if `string` contains a word composed of Unicode symbols. + * + * @private + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a word is found, else `false`. + */ + function hasUnicodeWord(string) { + return reHasUnicodeWord.test(string); + } + + /** + * Converts `iterator` to an array. + * + * @private + * @param {Object} iterator The iterator to convert. + * @returns {Array} Returns the converted array. + */ + function iteratorToArray(iterator) { + var data, + result = []; + + while (!(data = iterator.next()).done) { + result.push(data.value); + } + return result; + } + + /** + * Converts `map` to its key-value pairs. + * + * @private + * @param {Object} map The map to convert. + * @returns {Array} Returns the key-value pairs. + */ + function mapToArray(map) { + var index = -1, + result = Array(map.size); + + map.forEach(function(value, key) { + result[++index] = [key, value]; + }); + return result; + } + + /** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ + function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; + } + + /** + * Replaces all `placeholder` elements in `array` with an internal placeholder + * and returns an array of their indexes. + * + * @private + * @param {Array} array The array to modify. + * @param {*} placeholder The placeholder to replace. + * @returns {Array} Returns the new array of placeholder indexes. + */ + function replaceHolders(array, placeholder) { + var index = -1, + length = array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + if (value === placeholder || value === PLACEHOLDER) { + array[index] = PLACEHOLDER; + result[resIndex++] = index; + } + } + return result; + } + + /** + * Converts `set` to an array of its values. + * + * @private + * @param {Object} set The set to convert. + * @returns {Array} Returns the values. + */ + function setToArray(set) { + var index = -1, + result = Array(set.size); + + set.forEach(function(value) { + result[++index] = value; + }); + return result; + } + + /** + * Converts `set` to its value-value pairs. + * + * @private + * @param {Object} set The set to convert. + * @returns {Array} Returns the value-value pairs. + */ + function setToPairs(set) { + var index = -1, + result = Array(set.size); + + set.forEach(function(value) { + result[++index] = [value, value]; + }); + return result; + } + + /** + * A specialized version of `_.indexOf` which performs strict equality + * comparisons of values, i.e. `===`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function strictIndexOf(array, value, fromIndex) { + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; + } + + /** + * A specialized version of `_.lastIndexOf` which performs strict equality + * comparisons of values, i.e. `===`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function strictLastIndexOf(array, value, fromIndex) { + var index = fromIndex + 1; + while (index--) { + if (array[index] === value) { + return index; + } + } + return index; + } + + /** + * Gets the number of symbols in `string`. + * + * @private + * @param {string} string The string to inspect. + * @returns {number} Returns the string size. + */ + function stringSize(string) { + return hasUnicode(string) + ? unicodeSize(string) + : asciiSize(string); + } + + /** + * Converts `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ + function stringToArray(string) { + return hasUnicode(string) + ? unicodeToArray(string) + : asciiToArray(string); + } + + /** + * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace + * character of `string`. + * + * @private + * @param {string} string The string to inspect. + * @returns {number} Returns the index of the last non-whitespace character. + */ + function trimmedEndIndex(string) { + var index = string.length; + + while (index-- && reWhitespace.test(string.charAt(index))) {} + return index; + } + + /** + * Used by `_.unescape` to convert HTML entities to characters. + * + * @private + * @param {string} chr The matched character to unescape. + * @returns {string} Returns the unescaped character. + */ + var unescapeHtmlChar = basePropertyOf(htmlUnescapes); + + /** + * Gets the size of a Unicode `string`. + * + * @private + * @param {string} string The string inspect. + * @returns {number} Returns the string size. + */ + function unicodeSize(string) { + var result = reUnicode.lastIndex = 0; + while (reUnicode.test(string)) { + ++result; + } + return result; + } + + /** + * Converts a Unicode `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ + function unicodeToArray(string) { + return string.match(reUnicode) || []; + } + + /** + * Splits a Unicode `string` into an array of its words. + * + * @private + * @param {string} The string to inspect. + * @returns {Array} Returns the words of `string`. + */ + function unicodeWords(string) { + return string.match(reUnicodeWord) || []; + } + + /*--------------------------------------------------------------------------*/ + + /** + * Create a new pristine `lodash` function using the `context` object. + * + * @static + * @memberOf _ + * @since 1.1.0 + * @category Util + * @param {Object} [context=root] The context object. + * @returns {Function} Returns a new `lodash` function. + * @example + * + * _.mixin({ 'foo': _.constant('foo') }); + * + * var lodash = _.runInContext(); + * lodash.mixin({ 'bar': lodash.constant('bar') }); + * + * _.isFunction(_.foo); + * // => true + * _.isFunction(_.bar); + * // => false + * + * lodash.isFunction(lodash.foo); + * // => false + * lodash.isFunction(lodash.bar); + * // => true + * + * // Create a suped-up `defer` in Node.js. + * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer; + */ + var runInContext = (function runInContext(context) { + context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps)); + + /** Built-in constructor references. */ + var Array = context.Array, + Date = context.Date, + Error = context.Error, + Function = context.Function, + Math = context.Math, + Object = context.Object, + RegExp = context.RegExp, + String = context.String, + TypeError = context.TypeError; + + /** Used for built-in method references. */ + var arrayProto = Array.prototype, + funcProto = Function.prototype, + objectProto = Object.prototype; + + /** Used to detect overreaching core-js shims. */ + var coreJsData = context['__core-js_shared__']; + + /** Used to resolve the decompiled source of functions. */ + var funcToString = funcProto.toString; + + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; + + /** Used to generate unique IDs. */ + var idCounter = 0; + + /** Used to detect methods masquerading as native. */ + var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; + }()); + + /** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ + 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; + + /*------------------------------------------------------------------------*/ + + /** + * Creates a `lodash` object which wraps `value` to enable implicit method + * chain sequences. Methods that operate on and return arrays, collections, + * and functions can be chained together. Methods that retrieve a single value + * or may return a primitive value will automatically end the chain sequence + * and return the unwrapped value. Otherwise, the value must be unwrapped + * with `_#value`. + * + * Explicit chain sequences, which must be unwrapped with `_#value`, may be + * enabled using `_.chain`. + * + * The execution of chained methods is lazy, that is, it's deferred until + * `_#value` is implicitly or explicitly called. + * + * Lazy evaluation allows several methods to support shortcut fusion. + * Shortcut fusion is an optimization to merge iteratee calls; this avoids + * the creation of intermediate arrays and can greatly reduce the number of + * iteratee executions. Sections of a chain sequence qualify for shortcut + * fusion if the section is applied to an array and iteratees accept only + * one argument. The heuristic for whether a section qualifies for shortcut + * fusion is subject to change. + * + * Chaining is supported in custom builds as long as the `_#value` method is + * directly or indirectly included in the build. + * + * In addition to lodash methods, wrappers have `Array` and `String` methods. + * + * The wrapper `Array` methods are: + * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift` + * + * The wrapper `String` methods are: + * `replace` and `split` + * + * The wrapper methods that support shortcut fusion are: + * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`, + * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`, + * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray` + * + * The chainable wrapper methods are: + * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`, + * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`, + * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`, + * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`, + * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`, + * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`, + * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`, + * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`, + * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`, + * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`, + * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`, + * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`, + * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`, + * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`, + * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`, + * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`, + * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`, + * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`, + * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`, + * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`, + * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`, + * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`, + * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`, + * `zipObject`, `zipObjectDeep`, and `zipWith` + * + * The wrapper methods that are **not** chainable by default are: + * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`, + * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`, + * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`, + * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`, + * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`, + * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`, + * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`, + * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, + * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`, + * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`, + * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`, + * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`, + * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`, + * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`, + * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`, + * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`, + * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`, + * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`, + * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`, + * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`, + * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`, + * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`, + * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`, + * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`, + * `upperFirst`, `value`, and `words` + * + * @name _ + * @constructor + * @category Seq + * @param {*} value The value to wrap in a `lodash` instance. + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * function square(n) { + * return n * n; + * } + * + * var wrapped = _([1, 2, 3]); + * + * // Returns an unwrapped value. + * wrapped.reduce(_.add); + * // => 6 + * + * // Returns a wrapped value. + * var squares = wrapped.map(square); + * + * _.isArray(squares); + * // => false + * + * _.isArray(squares.value()); + * // => true + */ + function lodash(value) { + if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) { + if (value instanceof LodashWrapper) { + return value; + } + if (hasOwnProperty.call(value, '__wrapped__')) { + return wrapperClone(value); + } + } + return new LodashWrapper(value); + } + + /** + * The base implementation of `_.create` without support for assigning + * properties to the created object. + * + * @private + * @param {Object} proto The object to inherit from. + * @returns {Object} Returns the new object. + */ + 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; + }; + }()); + + /** + * The function whose prototype chain sequence wrappers inherit from. + * + * @private + */ + function baseLodash() { + // No operation performed. + } + + /** + * The base constructor for creating `lodash` wrapper objects. + * + * @private + * @param {*} value The value to wrap. + * @param {boolean} [chainAll] Enable explicit method chain sequences. + */ + function LodashWrapper(value, chainAll) { + this.__wrapped__ = value; + this.__actions__ = []; + this.__chain__ = !!chainAll; + this.__index__ = 0; + this.__values__ = undefined; + } + + /** + * By default, the template delimiters used by lodash are like those in + * embedded Ruby (ERB) as well as ES2015 template strings. Change the + * following template settings to use alternative delimiters. + * + * @static + * @memberOf _ + * @type {Object} + */ + lodash.templateSettings = { + + /** + * Used to detect `data` property values to be HTML-escaped. + * + * @memberOf _.templateSettings + * @type {RegExp} + */ + 'escape': reEscape, + + /** + * Used to detect code to be evaluated. + * + * @memberOf _.templateSettings + * @type {RegExp} + */ + 'evaluate': reEvaluate, + + /** + * Used to detect `data` property values to inject. + * + * @memberOf _.templateSettings + * @type {RegExp} + */ + 'interpolate': reInterpolate, + + /** + * Used to reference the data object in the template text. + * + * @memberOf _.templateSettings + * @type {string} + */ + 'variable': '', + + /** + * Used to import variables into the compiled template. + * + * @memberOf _.templateSettings + * @type {Object} + */ + 'imports': { + + /** + * A reference to the `lodash` function. + * + * @memberOf _.templateSettings.imports + * @type {Function} + */ + '_': lodash + } + }; + + // Ensure wrappers are instances of `baseLodash`. + lodash.prototype = baseLodash.prototype; + lodash.prototype.constructor = lodash; + + LodashWrapper.prototype = baseCreate(baseLodash.prototype); + LodashWrapper.prototype.constructor = LodashWrapper; + + /*------------------------------------------------------------------------*/ + + /** + * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation. + * + * @private + * @constructor + * @param {*} value The value to wrap. + */ + function LazyWrapper(value) { + this.__wrapped__ = value; + this.__actions__ = []; + this.__dir__ = 1; + this.__filtered__ = false; + this.__iteratees__ = []; + this.__takeCount__ = MAX_ARRAY_LENGTH; + this.__views__ = []; + } + + /** + * Creates a clone of the lazy wrapper object. + * + * @private + * @name clone + * @memberOf LazyWrapper + * @returns {Object} Returns the cloned `LazyWrapper` object. + */ + function lazyClone() { + var result = new LazyWrapper(this.__wrapped__); + result.__actions__ = copyArray(this.__actions__); + result.__dir__ = this.__dir__; + result.__filtered__ = this.__filtered__; + result.__iteratees__ = copyArray(this.__iteratees__); + result.__takeCount__ = this.__takeCount__; + result.__views__ = copyArray(this.__views__); + return result; + } + + /** + * Reverses the direction of lazy iteration. + * + * @private + * @name reverse + * @memberOf LazyWrapper + * @returns {Object} Returns the new reversed `LazyWrapper` object. + */ + function lazyReverse() { + if (this.__filtered__) { + var result = new LazyWrapper(this); + result.__dir__ = -1; + result.__filtered__ = true; + } else { + result = this.clone(); + result.__dir__ *= -1; + } + return result; + } + + /** + * Extracts the unwrapped value from its lazy wrapper. + * + * @private + * @name value + * @memberOf LazyWrapper + * @returns {*} Returns the unwrapped value. + */ + function lazyValue() { + var array = this.__wrapped__.value(), + dir = this.__dir__, + isArr = isArray(array), + isRight = dir < 0, + arrLength = isArr ? array.length : 0, + view = getView(0, arrLength, this.__views__), + start = view.start, + end = view.end, + length = end - start, + index = isRight ? end : (start - 1), + iteratees = this.__iteratees__, + iterLength = iteratees.length, + resIndex = 0, + takeCount = nativeMin(length, this.__takeCount__); + + if (!isArr || (!isRight && arrLength == length && takeCount == length)) { + return baseWrapperValue(array, this.__actions__); + } + var result = []; + + outer: + while (length-- && resIndex < takeCount) { + index += dir; + + var iterIndex = -1, + value = array[index]; + + while (++iterIndex < iterLength) { + var data = iteratees[iterIndex], + iteratee = data.iteratee, + type = data.type, + computed = iteratee(value); + + if (type == LAZY_MAP_FLAG) { + value = computed; + } else if (!computed) { + if (type == LAZY_FILTER_FLAG) { + continue outer; + } else { + break outer; + } + } + } + result[resIndex++] = value; + } + return result; + } + + // Ensure `LazyWrapper` is an instance of `baseLodash`. + LazyWrapper.prototype = baseCreate(baseLodash.prototype); + LazyWrapper.prototype.constructor = LazyWrapper; + + /*------------------------------------------------------------------------*/ + + /** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function Hash(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + /** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ + function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; + } + + /** + * Removes `key` and its value from the hash. + * + * @private + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; + } + + /** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + 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; + } + + /** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function hashHas(key) { + var data = this.__data__; + return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); + } + + /** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ + 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`. + Hash.prototype.clear = hashClear; + Hash.prototype['delete'] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; + + /*------------------------------------------------------------------------*/ + + /** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function ListCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + /** + * Removes all key-value entries from the list cache. + * + * @private + * @name clear + * @memberOf ListCache + */ + function listCacheClear() { + this.__data__ = []; + this.size = 0; + } + + /** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; + } + + /** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; + } + + /** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + } + + /** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ + function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; + } + + // Add methods to `ListCache`. + ListCache.prototype.clear = listCacheClear; + ListCache.prototype['delete'] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; + + /*------------------------------------------------------------------------*/ + + /** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function MapCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + /** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ + function mapCacheClear() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; + } + + /** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function mapCacheDelete(key) { + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; + } + + /** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function mapCacheGet(key) { + return getMapData(this, key).get(key); + } + + /** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function mapCacheHas(key) { + return getMapData(this, key).has(key); + } + + /** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ + function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; + + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; + } + + // Add methods to `MapCache`. + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype['delete'] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; + + /*------------------------------------------------------------------------*/ + + /** + * + * Creates an array cache object to store unique values. + * + * @private + * @constructor + * @param {Array} [values] The values to cache. + */ + function SetCache(values) { + var index = -1, + length = values == null ? 0 : values.length; + + this.__data__ = new MapCache; + while (++index < length) { + this.add(values[index]); + } + } + + /** + * Adds `value` to the array cache. + * + * @private + * @name add + * @memberOf SetCache + * @alias push + * @param {*} value The value to cache. + * @returns {Object} Returns the cache instance. + */ + function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + return this; + } + + /** + * Checks if `value` is in the array cache. + * + * @private + * @name has + * @memberOf SetCache + * @param {*} value The value to search for. + * @returns {number} Returns `true` if `value` is found, else `false`. + */ + function setCacheHas(value) { + return this.__data__.has(value); + } + + // Add methods to `SetCache`. + SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; + SetCache.prototype.has = setCacheHas; + + /*------------------------------------------------------------------------*/ + + /** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; + } + + /** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ + function stackClear() { + this.__data__ = new ListCache; + this.size = 0; + } + + /** + * Removes `key` and its value from the stack. + * + * @private + * @name delete + * @memberOf Stack + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function stackDelete(key) { + var data = this.__data__, + result = data['delete'](key); + + this.size = data.size; + return result; + } + + /** + * Gets the stack value for `key`. + * + * @private + * @name get + * @memberOf Stack + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function stackGet(key) { + return this.__data__.get(key); + } + + /** + * Checks if a stack value for `key` exists. + * + * @private + * @name has + * @memberOf Stack + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function stackHas(key) { + return this.__data__.has(key); + } + + /** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ + function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; + } + + // Add methods to `Stack`. + Stack.prototype.clear = stackClear; + Stack.prototype['delete'] = stackDelete; + Stack.prototype.get = stackGet; + Stack.prototype.has = stackHas; + Stack.prototype.set = stackSet; + + /*------------------------------------------------------------------------*/ + + /** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ + function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), + isArg = !isArr && isArguments(value), + isBuff = !isArr && !isArg && isBuffer(value), + isType = !isArr && !isArg && !isBuff && isTypedArray(value), + skipIndexes = isArr || isArg || isBuff || isType, + result = skipIndexes ? baseTimes(value.length, String) : [], + length = result.length; + + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && + !(skipIndexes && ( + // Safari 9 has enumerable `arguments.length` in strict mode. + key == 'length' || + // Node.js 0.10 has enumerable non-index properties on buffers. + (isBuff && (key == 'offset' || key == 'parent')) || + // PhantomJS 2 has enumerable non-index properties on typed arrays. + (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || + // Skip index properties. + isIndex(key, length) + ))) { + result.push(key); + } + } + return result; + } + + /** + * A specialized version of `_.sample` for arrays. + * + * @private + * @param {Array} array The array to sample. + * @returns {*} Returns the random element. + */ + function arraySample(array) { + var length = array.length; + return length ? array[baseRandom(0, length - 1)] : undefined; + } + + /** + * A specialized version of `_.sampleSize` for arrays. + * + * @private + * @param {Array} array The array to sample. + * @param {number} n The number of elements to sample. + * @returns {Array} Returns the random elements. + */ + function arraySampleSize(array, n) { + return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); + } + + /** + * A specialized version of `_.shuffle` for arrays. + * + * @private + * @param {Array} array The array to shuffle. + * @returns {Array} Returns the new shuffled array. + */ + function arrayShuffle(array) { + return shuffleSelf(copyArray(array)); + } + + /** + * This function is like `assignValue` except that it doesn't assign + * `undefined` values. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ + function assignMergeValue(object, key, value) { + if ((value !== undefined && !eq(object[key], value)) || + (value === undefined && !(key in object))) { + baseAssignValue(object, key, value); + } + } + + /** + * Assigns `value` to `key` of `object` if the existing value is not equivalent + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ + 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); + } + } + + /** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; + } + + /** + * Aggregates elements of `collection` on `accumulator` with keys transformed + * by `iteratee` and values set by `setter`. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} setter The function to set `accumulator` values. + * @param {Function} iteratee The iteratee to transform keys. + * @param {Object} accumulator The initial aggregated object. + * @returns {Function} Returns `accumulator`. + */ + function baseAggregator(collection, setter, iteratee, accumulator) { + baseEach(collection, function(value, key, collection) { + setter(accumulator, value, iteratee(value), collection); + }); + return accumulator; + } + + /** + * The base implementation of `_.assign` without support for multiple sources + * or `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. + */ + function baseAssign(object, source) { + return object && copyObject(source, keys(source), object); + } + + /** + * The base implementation of `_.assignIn` without support for multiple sources + * or `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. + */ + function baseAssignIn(object, source) { + return object && copyObject(source, keysIn(source), object); + } + + /** + * The base implementation of `assignValue` and `assignMergeValue` without + * value checks. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ + function baseAssignValue(object, key, value) { + if (key == '__proto__' && defineProperty) { + defineProperty(object, key, { + 'configurable': true, + 'enumerable': true, + 'value': value, + 'writable': true + }); + } else { + object[key] = value; + } + } + + /** + * The base implementation of `_.at` without support for individual paths. + * + * @private + * @param {Object} object The object to iterate over. + * @param {string[]} paths The property paths to pick. + * @returns {Array} Returns the picked elements. + */ + 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; + } + + /** + * The base implementation of `_.clamp` which doesn't coerce arguments. + * + * @private + * @param {number} number The number to clamp. + * @param {number} [lower] The lower bound. + * @param {number} upper The upper bound. + * @returns {number} Returns the clamped number. + */ + 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; + } + + /** + * The base implementation of `_.clone` and `_.cloneDeep` which tracks + * traversed objects. + * + * @private + * @param {*} value The value to clone. + * @param {boolean} bitmask The bitmask flags. + * 1 - Deep clone + * 2 - Flatten inherited properties + * 4 - Clone symbols + * @param {Function} [customizer] The function to customize cloning. + * @param {string} [key] The key of `value`. + * @param {Object} [object] The parent object of `value`. + * @param {Object} [stack] Tracks traversed objects and their clone counterparts. + * @returns {*} Returns the cloned value. + */ + 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. + 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). + assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); + }); + return result; + } + + /** + * The base implementation of `_.conforms` which doesn't clone `source`. + * + * @private + * @param {Object} source The object of property predicates to conform to. + * @returns {Function} Returns the new spec function. + */ + function baseConforms(source) { + var props = keys(source); + return function(object) { + return baseConformsTo(object, source, props); + }; + } + + /** + * The base implementation of `_.conformsTo` which accepts `props` to check. + * + * @private + * @param {Object} object The object to inspect. + * @param {Object} source The object of property predicates to conform to. + * @returns {boolean} Returns `true` if `object` conforms, else `false`. + */ + 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; + } + + /** + * The base implementation of `_.delay` and `_.defer` which accepts `args` + * to provide to `func`. + * + * @private + * @param {Function} func The function to delay. + * @param {number} wait The number of milliseconds to delay invocation. + * @param {Array} args The arguments to provide to `func`. + * @returns {number|Object} Returns the timer id or timeout object. + */ + function baseDelay(func, wait, args) { + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + return setTimeout(function() { func.apply(undefined, args); }, wait); + } + + /** + * The base implementation of methods like `_.difference` without support + * for excluding multiple arrays or iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Array} values The values to exclude. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of filtered values. + */ + function baseDifference(array, values, iteratee, comparator) { + var index = -1, + includes = arrayIncludes, + isCommon = true, + length = array.length, + result = [], + valuesLength = values.length; + + if (!length) { + return result; + } + if (iteratee) { + values = arrayMap(values, baseUnary(iteratee)); + } + if (comparator) { + includes = arrayIncludesWith; + isCommon = false; + } + else if (values.length >= LARGE_ARRAY_SIZE) { + includes = cacheHas; + isCommon = false; + values = new SetCache(values); + } + outer: + while (++index < length) { + var value = array[index], + computed = iteratee == null ? value : iteratee(value); + + value = (comparator || value !== 0) ? value : 0; + if (isCommon && computed === computed) { + var valuesIndex = valuesLength; + while (valuesIndex--) { + if (values[valuesIndex] === computed) { + continue outer; + } + } + result.push(value); + } + else if (!includes(values, computed, comparator)) { + result.push(value); + } + } + return result; + } + + /** + * The base implementation of `_.forEach` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + */ + var baseEach = createBaseEach(baseForOwn); + + /** + * The base implementation of `_.forEachRight` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + */ + var baseEachRight = createBaseEach(baseForOwnRight, true); + + /** + * The base implementation of `_.every` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false` + */ + function baseEvery(collection, predicate) { + var result = true; + baseEach(collection, function(value, index, collection) { + result = !!predicate(value, index, collection); + return result; + }); + return result; + } + + /** + * The base implementation of methods like `_.max` and `_.min` which accepts a + * `comparator` to determine the extremum value. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The iteratee invoked per iteration. + * @param {Function} comparator The comparator used to compare values. + * @returns {*} Returns the extremum value. + */ + 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 + ? (current === current && !isSymbol(current)) + : comparator(current, computed) + )) { + var computed = current, + result = value; + } + } + return result; + } + + /** + * The base implementation of `_.fill` without an iteratee call guard. + * + * @private + * @param {Array} array The array to fill. + * @param {*} value The value to fill `array` with. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns `array`. + */ + 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; + } + + /** + * The base implementation of `_.filter` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ + function baseFilter(collection, predicate) { + var result = []; + baseEach(collection, function(value, index, collection) { + if (predicate(value, index, collection)) { + result.push(value); + } + }); + return result; + } + + /** + * The base implementation of `_.flatten` with support for restricting flattening. + * + * @private + * @param {Array} array The array to flatten. + * @param {number} depth The maximum recursion depth. + * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. + * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. + * @param {Array} [result=[]] The initial result value. + * @returns {Array} Returns the new flattened array. + */ + function baseFlatten(array, depth, predicate, isStrict, result) { + var index = -1, + length = array.length; + + predicate || (predicate = isFlattenable); + result || (result = []); + + while (++index < length) { + var value = array[index]; + if (depth > 0 && predicate(value)) { + if (depth > 1) { + // Recursively flatten arrays (susceptible to call stack limits). + baseFlatten(value, depth - 1, predicate, isStrict, result); + } else { + arrayPush(result, value); + } + } else if (!isStrict) { + result[result.length] = value; + } + } + return result; + } + + /** + * The base implementation of `baseForOwn` which iterates over `object` + * properties returned by `keysFunc` and invokes `iteratee` for each property. + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ + var baseFor = createBaseFor(); + + /** + * This function is like `baseFor` except that it iterates over properties + * in the opposite order. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ + var baseForRight = createBaseFor(true); + + /** + * The base implementation of `_.forOwn` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ + function baseForOwn(object, iteratee) { + return object && baseFor(object, iteratee, keys); + } + + /** + * The base implementation of `_.forOwnRight` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ + function baseForOwnRight(object, iteratee) { + return object && baseForRight(object, iteratee, keys); + } + + /** + * The base implementation of `_.functions` which creates an array of + * `object` function property names filtered from `props`. + * + * @private + * @param {Object} object The object to inspect. + * @param {Array} props The property names to filter. + * @returns {Array} Returns the function names. + */ + function baseFunctions(object, props) { + return arrayFilter(props, function(key) { + return isFunction(object[key]); + }); + } + + /** + * The base implementation of `_.get` without support for default values. + * + * @private + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to get. + * @returns {*} Returns the resolved value. + */ + 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; + } + + /** + * The base implementation of `getAllKeys` and `getAllKeysIn` which uses + * `keysFunc` and `symbolsFunc` to get the enumerable property names and + * symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Function} keysFunc The function to get the keys of `object`. + * @param {Function} symbolsFunc The function to get the symbols of `object`. + * @returns {Array} Returns the array of property names and symbols. + */ + function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); + } + + /** + * The base implementation of `getTag` without fallbacks for buggy environments. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ + function baseGetTag(value) { + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + return (symToStringTag && symToStringTag in Object(value)) + ? getRawTag(value) + : objectToString(value); + } + + /** + * The base implementation of `_.gt` which doesn't coerce arguments. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is greater than `other`, + * else `false`. + */ + function baseGt(value, other) { + return value > other; + } + + /** + * The base implementation of `_.has` without support for deep paths. + * + * @private + * @param {Object} [object] The object to query. + * @param {Array|string} key The key to check. + * @returns {boolean} Returns `true` if `key` exists, else `false`. + */ + function baseHas(object, key) { + return object != null && hasOwnProperty.call(object, key); + } + + /** + * The base implementation of `_.hasIn` without support for deep paths. + * + * @private + * @param {Object} [object] The object to query. + * @param {Array|string} key The key to check. + * @returns {boolean} Returns `true` if `key` exists, else `false`. + */ + function baseHasIn(object, key) { + return object != null && key in Object(object); + } + + /** + * The base implementation of `_.inRange` which doesn't coerce arguments. + * + * @private + * @param {number} number The number to check. + * @param {number} start The start of the range. + * @param {number} end The end of the range. + * @returns {boolean} Returns `true` if `number` is in the range, else `false`. + */ + function baseInRange(number, start, end) { + return number >= nativeMin(start, end) && number < nativeMax(start, end); + } + + /** + * The base implementation of methods like `_.intersection`, without support + * for iteratee shorthands, that accepts an array of arrays to inspect. + * + * @private + * @param {Array} arrays The arrays to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of shared values. + */ + 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; + } + + /** + * The base implementation of `_.invert` and `_.invertBy` which inverts + * `object` with values transformed by `iteratee` and set by `setter`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} setter The function to set `accumulator` values. + * @param {Function} iteratee The iteratee to transform values. + * @param {Object} accumulator The initial inverted object. + * @returns {Function} Returns `accumulator`. + */ + function baseInverter(object, setter, iteratee, accumulator) { + baseForOwn(object, function(value, key, object) { + setter(accumulator, iteratee(value), key, object); + }); + return accumulator; + } + + /** + * The base implementation of `_.invoke` without support for individual + * method arguments. + * + * @private + * @param {Object} object The object to query. + * @param {Array|string} path The path of the method to invoke. + * @param {Array} args The arguments to invoke the method with. + * @returns {*} Returns the result of the invoked method. + */ + 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); + } + + /** + * The base implementation of `_.isArguments`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + */ + function baseIsArguments(value) { + return isObjectLike(value) && baseGetTag(value) == argsTag; + } + + /** + * The base implementation of `_.isArrayBuffer` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. + */ + function baseIsArrayBuffer(value) { + return isObjectLike(value) && baseGetTag(value) == arrayBufferTag; + } + + /** + * The base implementation of `_.isDate` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a date object, else `false`. + */ + function baseIsDate(value) { + return isObjectLike(value) && baseGetTag(value) == dateTag; + } + + /** + * The base implementation of `_.isEqual` which supports partial comparisons + * and tracks traversed objects. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {boolean} bitmask The bitmask flags. + * 1 - Unordered comparison + * 2 - Partial comparison + * @param {Function} [customizer] The function to customize comparisons. + * @param {Object} [stack] Tracks traversed `value` and `other` objects. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + */ + function baseIsEqual(value, other, bitmask, customizer, stack) { + if (value === other) { + return true; + } + if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { + return value !== value && other !== other; + } + return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); + } + + /** + * A specialized version of `baseIsEqual` for arrays and objects which performs + * deep comparisons and tracks traversed objects enabling objects with circular + * references to be compared. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} [stack] Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ + function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { + var objIsArr = isArray(object), + othIsArr = isArray(other), + objTag = objIsArr ? arrayTag : getTag(object), + othTag = othIsArr ? arrayTag : getTag(other); + + objTag = objTag == argsTag ? objectTag : objTag; + othTag = othTag == argsTag ? objectTag : othTag; + + var objIsObj = objTag == objectTag, + othIsObj = othTag == objectTag, + isSameTag = objTag == othTag; + + if (isSameTag && isBuffer(object)) { + if (!isBuffer(other)) { + return false; + } + objIsArr = true; + objIsObj = false; + } + if (isSameTag && !objIsObj) { + stack || (stack = new Stack); + return (objIsArr || isTypedArray(object)) + ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) + : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); + } + if (!(bitmask & COMPARE_PARTIAL_FLAG)) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), + othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); + + if (objIsWrapped || othIsWrapped) { + var objUnwrapped = objIsWrapped ? object.value() : object, + othUnwrapped = othIsWrapped ? other.value() : other; + + stack || (stack = new Stack); + return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); + } + } + if (!isSameTag) { + return false; + } + stack || (stack = new Stack); + return equalObjects(object, other, bitmask, customizer, equalFunc, stack); + } + + /** + * The base implementation of `_.isMap` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. + */ + function baseIsMap(value) { + return isObjectLike(value) && getTag(value) == mapTag; + } + + /** + * The base implementation of `_.isMatch` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to inspect. + * @param {Object} source The object of property values to match. + * @param {Array} matchData The property names, values, and compare flags to match. + * @param {Function} [customizer] The function to customize comparisons. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. + */ + 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; + } + + /** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ + function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); + } + + /** + * The base implementation of `_.isRegExp` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. + */ + function baseIsRegExp(value) { + return isObjectLike(value) && baseGetTag(value) == regexpTag; + } + + /** + * The base implementation of `_.isSet` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. + */ + function baseIsSet(value) { + return isObjectLike(value) && getTag(value) == setTag; + } + + /** + * The base implementation of `_.isTypedArray` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + */ + function baseIsTypedArray(value) { + return isObjectLike(value) && + isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; + } + + /** + * The base implementation of `_.iteratee`. + * + * @private + * @param {*} [value=_.identity] The value to convert to an iteratee. + * @returns {Function} Returns the iteratee. + */ + function baseIteratee(value) { + // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. + // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. + if (typeof value == 'function') { + return value; + } + if (value == null) { + return identity; + } + if (typeof value == 'object') { + return isArray(value) + ? baseMatchesProperty(value[0], value[1]) + : baseMatches(value); + } + return property(value); + } + + /** + * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ + function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != 'constructor') { + result.push(key); + } + } + return result; + } + + /** + * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ + function baseKeysIn(object) { + if (!isObject(object)) { + return nativeKeysIn(object); + } + var isProto = isPrototype(object), + result = []; + + for (var key in object) { + if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } + } + return result; + } + + /** + * The base implementation of `_.lt` which doesn't coerce arguments. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is less than `other`, + * else `false`. + */ + function baseLt(value, other) { + return value < other; + } + + /** + * The base implementation of `_.map` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ + function baseMap(collection, iteratee) { + var index = -1, + result = isArrayLike(collection) ? Array(collection.length) : []; + + baseEach(collection, function(value, key, collection) { + result[++index] = iteratee(value, key, collection); + }); + return result; + } + + /** + * The base implementation of `_.matches` which doesn't clone `source`. + * + * @private + * @param {Object} source The object of property values to match. + * @returns {Function} Returns the new spec function. + */ + function baseMatches(source) { + var matchData = getMatchData(source); + if (matchData.length == 1 && matchData[0][2]) { + return matchesStrictComparable(matchData[0][0], matchData[0][1]); + } + return function(object) { + return object === source || baseIsMatch(object, source, matchData); + }; + } + + /** + * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. + * + * @private + * @param {string} path The path of the property to get. + * @param {*} srcValue The value to match. + * @returns {Function} Returns the new spec function. + */ + 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); + }; + } + + /** + * The base implementation of `_.merge` without support for multiple sources. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @param {number} srcIndex The index of `source`. + * @param {Function} [customizer] The function to customize merged values. + * @param {Object} [stack] Tracks traversed source values and their merged + * counterparts. + */ + 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); + } + + /** + * A specialized version of `baseMerge` for arrays and objects which performs + * deep merges and tracks traversed objects enabling objects with circular + * references to be merged. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @param {string} key The key of the value to merge. + * @param {number} srcIndex The index of `source`. + * @param {Function} mergeFunc The function to merge values. + * @param {Function} [customizer] The function to customize assigned values. + * @param {Object} [stack] Tracks traversed source values and their merged + * counterparts. + */ + 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). + stack.set(srcValue, newValue); + mergeFunc(newValue, srcValue, srcIndex, customizer, stack); + stack['delete'](srcValue); + } + assignMergeValue(object, key, newValue); + } + + /** + * The base implementation of `_.nth` which doesn't coerce arguments. + * + * @private + * @param {Array} array The array to query. + * @param {number} n The index of the element to return. + * @returns {*} Returns the nth element of `array`. + */ + function baseNth(array, n) { + var length = array.length; + if (!length) { + return; + } + n += n < 0 ? length : 0; + return isIndex(n, length) ? array[n] : undefined; + } + + /** + * The base implementation of `_.orderBy` without param guards. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by. + * @param {string[]} orders The sort orders of `iteratees`. + * @returns {Array} Returns the new sorted array. + */ + function baseOrderBy(collection, iteratees, orders) { + if (iteratees.length) { + iteratees = arrayMap(iteratees, function(iteratee) { + if (isArray(iteratee)) { + return function(value) { + return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee); + } + } + return iteratee; + }); + } else { + iteratees = [identity]; + } + + var index = -1; + iteratees = arrayMap(iteratees, baseUnary(getIteratee())); + + var result = baseMap(collection, function(value, key, collection) { + var criteria = arrayMap(iteratees, function(iteratee) { + return iteratee(value); + }); + return { 'criteria': criteria, 'index': ++index, 'value': value }; + }); + + return baseSortBy(result, function(object, other) { + return compareMultiple(object, other, orders); + }); + } + + /** + * The base implementation of `_.pick` without support for individual + * property identifiers. + * + * @private + * @param {Object} object The source object. + * @param {string[]} paths The property paths to pick. + * @returns {Object} Returns the new object. + */ + function basePick(object, paths) { + return basePickBy(object, paths, function(value, path) { + return hasIn(object, path); + }); + } + + /** + * The base implementation of `_.pickBy` without support for iteratee shorthands. + * + * @private + * @param {Object} object The source object. + * @param {string[]} paths The property paths to pick. + * @param {Function} predicate The function invoked per property. + * @returns {Object} Returns the new object. + */ + function basePickBy(object, paths, predicate) { + var index = -1, + length = paths.length, + result = {}; + + while (++index < length) { + var path = paths[index], + value = baseGet(object, path); + + if (predicate(value, path)) { + baseSet(result, castPath(path, object), value); + } + } + return result; + } + + /** + * A specialized version of `baseProperty` which supports deep paths. + * + * @private + * @param {Array|string} path The path of the property to get. + * @returns {Function} Returns the new accessor function. + */ + function basePropertyDeep(path) { + return function(object) { + return baseGet(object, path); + }; + } + + /** + * The base implementation of `_.pullAllBy` without support for iteratee + * shorthands. + * + * @private + * @param {Array} array The array to modify. + * @param {Array} values The values to remove. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns `array`. + */ + function basePullAll(array, values, iteratee, comparator) { + var indexOf = comparator ? baseIndexOfWith : baseIndexOf, + index = -1, + length = values.length, + seen = array; + + if (array === values) { + values = copyArray(values); + } + if (iteratee) { + seen = arrayMap(array, baseUnary(iteratee)); + } + while (++index < length) { + var fromIndex = 0, + value = values[index], + computed = iteratee ? iteratee(value) : value; + + while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) { + if (seen !== array) { + splice.call(seen, fromIndex, 1); + } + splice.call(array, fromIndex, 1); + } + } + return array; + } + + /** + * The base implementation of `_.pullAt` without support for individual + * indexes or capturing the removed elements. + * + * @private + * @param {Array} array The array to modify. + * @param {number[]} indexes The indexes of elements to remove. + * @returns {Array} Returns `array`. + */ + function basePullAt(array, indexes) { + var length = array ? indexes.length : 0, + lastIndex = length - 1; + + while (length--) { + var index = indexes[length]; + if (length == lastIndex || index !== previous) { + var previous = index; + if (isIndex(index)) { + splice.call(array, index, 1); + } else { + baseUnset(array, index); + } + } + } + return array; + } + + /** + * The base implementation of `_.random` without support for returning + * floating-point numbers. + * + * @private + * @param {number} lower The lower bound. + * @param {number} upper The upper bound. + * @returns {number} Returns the random number. + */ + function baseRandom(lower, upper) { + return lower + nativeFloor(nativeRandom() * (upper - lower + 1)); + } + + /** + * The base implementation of `_.range` and `_.rangeRight` which doesn't + * coerce arguments. + * + * @private + * @param {number} start The start of the range. + * @param {number} end The end of the range. + * @param {number} step The value to increment or decrement by. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Array} Returns the range of numbers. + */ + function baseRange(start, end, step, fromRight) { + var index = -1, + length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), + result = Array(length); + + while (length--) { + result[fromRight ? length : ++index] = start; + start += step; + } + return result; + } + + /** + * The base implementation of `_.repeat` which doesn't coerce arguments. + * + * @private + * @param {string} string The string to repeat. + * @param {number} n The number of times to repeat the string. + * @returns {string} Returns the repeated string. + */ + function baseRepeat(string, n) { + var result = ''; + if (!string || n < 1 || n > MAX_SAFE_INTEGER) { + return result; + } + // Leverage the exponentiation by squaring algorithm for a faster repeat. + // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details. + do { + if (n % 2) { + result += string; + } + n = nativeFloor(n / 2); + if (n) { + string += string; + } + } while (n); + + return result; + } + + /** + * The base implementation of `_.rest` which doesn't validate or coerce arguments. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + */ + function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + ''); + } + + /** + * The base implementation of `_.sample`. + * + * @private + * @param {Array|Object} collection The collection to sample. + * @returns {*} Returns the random element. + */ + function baseSample(collection) { + return arraySample(values(collection)); + } + + /** + * The base implementation of `_.sampleSize` without param guards. + * + * @private + * @param {Array|Object} collection The collection to sample. + * @param {number} n The number of elements to sample. + * @returns {Array} Returns the random elements. + */ + function baseSampleSize(collection, n) { + var array = values(collection); + return shuffleSelf(array, baseClamp(n, 0, array.length)); + } + + /** + * The base implementation of `_.set`. + * + * @private + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {*} value The value to set. + * @param {Function} [customizer] The function to customize path creation. + * @returns {Object} Returns `object`. + */ + 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; + } + + /** + * The base implementation of `setData` without support for hot loop shorting. + * + * @private + * @param {Function} func The function to associate metadata with. + * @param {*} data The metadata. + * @returns {Function} Returns `func`. + */ + var baseSetData = !metaMap ? identity : function(func, data) { + metaMap.set(func, data); + return func; + }; + + /** + * The base implementation of `setToString` without support for hot loop shorting. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ + var baseSetToString = !defineProperty ? identity : function(func, string) { + return defineProperty(func, 'toString', { + 'configurable': true, + 'enumerable': false, + 'value': constant(string), + 'writable': true + }); + }; + + /** + * The base implementation of `_.shuffle`. + * + * @private + * @param {Array|Object} collection The collection to shuffle. + * @returns {Array} Returns the new shuffled array. + */ + function baseShuffle(collection) { + return shuffleSelf(values(collection)); + } + + /** + * The base implementation of `_.slice` without an iteratee call guard. + * + * @private + * @param {Array} array The array to slice. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the slice of `array`. + */ + function baseSlice(array, start, end) { + var index = -1, + length = array.length; + + if (start < 0) { + start = -start > length ? 0 : (length + start); + } + end = end > length ? length : end; + if (end < 0) { + end += length; + } + length = start > end ? 0 : ((end - start) >>> 0); + start >>>= 0; + + var result = Array(length); + while (++index < length) { + result[index] = array[index + start]; + } + return result; + } + + /** + * The base implementation of `_.some` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ + function baseSome(collection, predicate) { + var result; + + baseEach(collection, function(value, index, collection) { + result = predicate(value, index, collection); + return !result; + }); + return !!result; + } + + /** + * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which + * performs a binary search of `array` to determine the index at which `value` + * should be inserted into `array` in order to maintain its sort order. + * + * @private + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @param {boolean} [retHighest] Specify returning the highest qualified index. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. + */ + function baseSortedIndex(array, value, retHighest) { + var low = 0, + high = array == null ? low : array.length; + + if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) { + while (low < high) { + var mid = (low + high) >>> 1, + computed = array[mid]; + + if (computed !== null && !isSymbol(computed) && + (retHighest ? (computed <= value) : (computed < value))) { + low = mid + 1; + } else { + high = mid; + } + } + return high; + } + return baseSortedIndexBy(array, value, identity, retHighest); + } + + /** + * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy` + * which invokes `iteratee` for `value` and each element of `array` to compute + * their sort ranking. The iteratee is invoked with one argument; (value). + * + * @private + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @param {Function} iteratee The iteratee invoked per element. + * @param {boolean} [retHighest] Specify returning the highest qualified index. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. + */ + 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); + } + + /** + * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without + * support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @returns {Array} Returns the new duplicate free array. + */ + function baseSortedUniq(array, iteratee) { + var index = -1, + length = array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index], + computed = iteratee ? iteratee(value) : value; + + if (!index || !eq(computed, seen)) { + var seen = computed; + result[resIndex++] = value === 0 ? 0 : value; + } + } + return result; + } + + /** + * The base implementation of `_.toNumber` which doesn't ensure correct + * conversions of binary, hexadecimal, or octal string values. + * + * @private + * @param {*} value The value to process. + * @returns {number} Returns the number. + */ + function baseToNumber(value) { + if (typeof value == 'number') { + return value; + } + if (isSymbol(value)) { + return NAN; + } + return +value; + } + + /** + * The base implementation of `_.toString` which doesn't convert nullish + * values to empty strings. + * + * @private + * @param {*} value The value to process. + * @returns {string} Returns the string. + */ + function baseToString(value) { + // Exit early for strings to avoid a performance hit in some environments. + if (typeof value == 'string') { + return value; + } + if (isArray(value)) { + // Recursively convert values (susceptible to call stack limits). + return arrayMap(value, baseToString) + ''; + } + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ''; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + } + + /** + * The base implementation of `_.uniqBy` without support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new duplicate free array. + */ + function baseUniq(array, iteratee, comparator) { + var index = -1, + includes = arrayIncludes, + length = array.length, + isCommon = true, + result = [], + seen = result; + + if (comparator) { + isCommon = false; + includes = arrayIncludesWith; + } + else if (length >= LARGE_ARRAY_SIZE) { + var set = iteratee ? null : createSet(array); + if (set) { + return setToArray(set); + } + isCommon = false; + includes = cacheHas; + seen = new SetCache; + } + else { + seen = iteratee ? [] : result; + } + outer: + while (++index < length) { + var value = array[index], + computed = iteratee ? iteratee(value) : value; + + value = (comparator || value !== 0) ? value : 0; + if (isCommon && computed === computed) { + var seenIndex = seen.length; + while (seenIndex--) { + if (seen[seenIndex] === computed) { + continue outer; + } + } + if (iteratee) { + seen.push(computed); + } + result.push(value); + } + else if (!includes(seen, computed, comparator)) { + if (seen !== result) { + seen.push(computed); + } + result.push(value); + } + } + return result; + } + + /** + * The base implementation of `_.unset`. + * + * @private + * @param {Object} object The object to modify. + * @param {Array|string} path The property path to unset. + * @returns {boolean} Returns `true` if the property is deleted, else `false`. + */ + function baseUnset(object, path) { + path = castPath(path, object); + object = parent(object, path); + return object == null || delete object[toKey(last(path))]; + } + + /** + * The base implementation of `_.update`. + * + * @private + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to update. + * @param {Function} updater The function to produce the updated value. + * @param {Function} [customizer] The function to customize path creation. + * @returns {Object} Returns `object`. + */ + function baseUpdate(object, path, updater, customizer) { + return baseSet(object, path, updater(baseGet(object, path)), customizer); + } + + /** + * The base implementation of methods like `_.dropWhile` and `_.takeWhile` + * without support for iteratee shorthands. + * + * @private + * @param {Array} array The array to query. + * @param {Function} predicate The function invoked per iteration. + * @param {boolean} [isDrop] Specify dropping elements instead of taking them. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Array} Returns the slice of `array`. + */ + function baseWhile(array, predicate, isDrop, fromRight) { + var length = array.length, + index = fromRight ? length : -1; + + while ((fromRight ? index-- : ++index < length) && + predicate(array[index], index, array)) {} + + return isDrop + ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length)) + : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index)); + } + + /** + * The base implementation of `wrapperValue` which returns the result of + * performing a sequence of actions on the unwrapped `value`, where each + * successive action is supplied the return value of the previous. + * + * @private + * @param {*} value The unwrapped value. + * @param {Array} actions Actions to perform to resolve the unwrapped value. + * @returns {*} Returns the resolved value. + */ + function baseWrapperValue(value, actions) { + var result = value; + if (result instanceof LazyWrapper) { + result = result.value(); + } + return arrayReduce(actions, function(result, action) { + return action.func.apply(action.thisArg, arrayPush([result], action.args)); + }, result); + } + + /** + * The base implementation of methods like `_.xor`, without support for + * iteratee shorthands, that accepts an array of arrays to inspect. + * + * @private + * @param {Array} arrays The arrays to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of values. + */ + function baseXor(arrays, iteratee, comparator) { + var length = arrays.length; + if (length < 2) { + return length ? baseUniq(arrays[0]) : []; + } + var index = -1, + result = Array(length); + + while (++index < length) { + var array = arrays[index], + othIndex = -1; + + while (++othIndex < length) { + if (othIndex != index) { + result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator); + } + } + } + return baseUniq(baseFlatten(result, 1), iteratee, comparator); + } + + /** + * This base implementation of `_.zipObject` which assigns values using `assignFunc`. + * + * @private + * @param {Array} props The property identifiers. + * @param {Array} values The property values. + * @param {Function} assignFunc The function to assign values. + * @returns {Object} Returns the new object. + */ + 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; + } + + /** + * Casts `value` to an empty array if it's not an array like object. + * + * @private + * @param {*} value The value to inspect. + * @returns {Array|Object} Returns the cast array-like object. + */ + function castArrayLikeObject(value) { + return isArrayLikeObject(value) ? value : []; + } + + /** + * Casts `value` to `identity` if it's not a function. + * + * @private + * @param {*} value The value to inspect. + * @returns {Function} Returns cast function. + */ + function castFunction(value) { + return typeof value == 'function' ? value : identity; + } + + /** + * Casts `value` to a path array if it's not one. + * + * @private + * @param {*} value The value to inspect. + * @param {Object} [object] The object to query keys on. + * @returns {Array} Returns the cast property path array. + */ + function castPath(value, object) { + if (isArray(value)) { + return value; + } + return isKey(value, object) ? [value] : stringToPath(toString(value)); + } + + /** + * A `baseRest` alias which can be replaced with `identity` by module + * replacement plugins. + * + * @private + * @type {Function} + * @param {Function} func The function to apply a rest parameter to. + * @returns {Function} Returns the new function. + */ + var castRest = baseRest; + + /** + * Casts `array` to a slice if it's needed. + * + * @private + * @param {Array} array The array to inspect. + * @param {number} start The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the cast slice. + */ + function castSlice(array, start, end) { + var length = array.length; + end = end === undefined ? length : end; + return (!start && end >= length) ? array : baseSlice(array, start, end); + } + + /** + * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout). + * + * @private + * @param {number|Object} id The timer id or timeout object of the timer to clear. + */ + var clearTimeout = ctxClearTimeout || function(id) { + return root.clearTimeout(id); + }; + + /** + * Creates a clone of `buffer`. + * + * @private + * @param {Buffer} buffer The buffer to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Buffer} Returns the cloned buffer. + */ + function cloneBuffer(buffer, isDeep) { + if (isDeep) { + return buffer.slice(); + } + var length = buffer.length, + result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); + + buffer.copy(result); + return result; + } + + /** + * Creates a clone of `arrayBuffer`. + * + * @private + * @param {ArrayBuffer} arrayBuffer The array buffer to clone. + * @returns {ArrayBuffer} Returns the cloned array buffer. + */ + function cloneArrayBuffer(arrayBuffer) { + var result = new arrayBuffer.constructor(arrayBuffer.byteLength); + new Uint8Array(result).set(new Uint8Array(arrayBuffer)); + return result; + } + + /** + * Creates a clone of `dataView`. + * + * @private + * @param {Object} dataView The data view to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned data view. + */ + function cloneDataView(dataView, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; + return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); + } + + /** + * Creates a clone of `regexp`. + * + * @private + * @param {Object} regexp The regexp to clone. + * @returns {Object} Returns the cloned regexp. + */ + function cloneRegExp(regexp) { + var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); + result.lastIndex = regexp.lastIndex; + return result; + } + + /** + * Creates a clone of the `symbol` object. + * + * @private + * @param {Object} symbol The symbol object to clone. + * @returns {Object} Returns the cloned symbol object. + */ + function cloneSymbol(symbol) { + return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; + } + + /** + * Creates a clone of `typedArray`. + * + * @private + * @param {Object} typedArray The typed array to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned typed array. + */ + function cloneTypedArray(typedArray, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; + return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); + } + + /** + * Compares values to sort them in ascending order. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {number} Returns the sort order indicator for `value`. + */ + 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; + } + + /** + * Used by `_.orderBy` to compare multiple properties of a value to another + * and stable sort them. + * + * If `orders` is unspecified, all values are sorted in ascending order. Otherwise, + * specify an order of "desc" for descending or "asc" for ascending sort order + * of corresponding values. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {boolean[]|string[]} orders The order to sort by for each property. + * @returns {number} Returns the sort order indicator for `object`. + */ + function compareMultiple(object, other, orders) { + var index = -1, + objCriteria = object.criteria, + othCriteria = other.criteria, + length = objCriteria.length, + ordersLength = orders.length; + + while (++index < length) { + var result = compareAscending(objCriteria[index], othCriteria[index]); + if (result) { + if (index >= ordersLength) { + return result; + } + var order = orders[index]; + return result * (order == 'desc' ? -1 : 1); + } + } + // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications + // that causes it, under certain circumstances, to provide the same value for + // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247 + // for more details. + // + // This also ensures a stable sort in V8 and other engines. + // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details. + return object.index - other.index; + } + + /** + * Creates an array that is the composition of partially applied arguments, + * placeholders, and provided arguments into a single array of arguments. + * + * @private + * @param {Array} args The provided arguments. + * @param {Array} partials The arguments to prepend to those provided. + * @param {Array} holders The `partials` placeholder indexes. + * @params {boolean} [isCurried] Specify composing for a curried function. + * @returns {Array} Returns the new array of composed arguments. + */ + function composeArgs(args, partials, holders, isCurried) { + var argsIndex = -1, + argsLength = args.length, + holdersLength = holders.length, + leftIndex = -1, + leftLength = partials.length, + rangeLength = nativeMax(argsLength - holdersLength, 0), + result = Array(leftLength + rangeLength), + isUncurried = !isCurried; + + while (++leftIndex < leftLength) { + result[leftIndex] = partials[leftIndex]; + } + while (++argsIndex < holdersLength) { + if (isUncurried || argsIndex < argsLength) { + result[holders[argsIndex]] = args[argsIndex]; + } + } + while (rangeLength--) { + result[leftIndex++] = args[argsIndex++]; + } + return result; + } + + /** + * This function is like `composeArgs` except that the arguments composition + * is tailored for `_.partialRight`. + * + * @private + * @param {Array} args The provided arguments. + * @param {Array} partials The arguments to append to those provided. + * @param {Array} holders The `partials` placeholder indexes. + * @params {boolean} [isCurried] Specify composing for a curried function. + * @returns {Array} Returns the new array of composed arguments. + */ + function composeArgsRight(args, partials, holders, isCurried) { + var argsIndex = -1, + argsLength = args.length, + holdersIndex = -1, + holdersLength = holders.length, + rightIndex = -1, + rightLength = partials.length, + rangeLength = nativeMax(argsLength - holdersLength, 0), + result = Array(rangeLength + rightLength), + isUncurried = !isCurried; + + while (++argsIndex < rangeLength) { + result[argsIndex] = args[argsIndex]; + } + var offset = argsIndex; + while (++rightIndex < rightLength) { + result[offset + rightIndex] = partials[rightIndex]; + } + while (++holdersIndex < holdersLength) { + if (isUncurried || argsIndex < argsLength) { + result[offset + holders[holdersIndex]] = args[argsIndex++]; + } + } + return result; + } + + /** + * Copies the values of `source` to `array`. + * + * @private + * @param {Array} source The array to copy values from. + * @param {Array} [array=[]] The array to copy values to. + * @returns {Array} Returns `array`. + */ + function copyArray(source, array) { + var index = -1, + length = source.length; + + array || (array = Array(length)); + while (++index < length) { + array[index] = source[index]; + } + return array; + } + + /** + * Copies properties of `source` to `object`. + * + * @private + * @param {Object} source The object to copy properties from. + * @param {Array} props The property identifiers to copy. + * @param {Object} [object={}] The object to copy properties to. + * @param {Function} [customizer] The function to customize copied values. + * @returns {Object} Returns `object`. + */ + 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; + } + + /** + * Copies own symbols of `source` to `object`. + * + * @private + * @param {Object} source The object to copy symbols from. + * @param {Object} [object={}] The object to copy symbols to. + * @returns {Object} Returns `object`. + */ + function copySymbols(source, object) { + return copyObject(source, getSymbols(source), object); + } + + /** + * Copies own and inherited symbols of `source` to `object`. + * + * @private + * @param {Object} source The object to copy symbols from. + * @param {Object} [object={}] The object to copy symbols to. + * @returns {Object} Returns `object`. + */ + function copySymbolsIn(source, object) { + return copyObject(source, getSymbolsIn(source), object); + } + + /** + * Creates a function like `_.groupBy`. + * + * @private + * @param {Function} setter The function to set accumulator values. + * @param {Function} [initializer] The accumulator object initializer. + * @returns {Function} Returns the new aggregator function. + */ + function createAggregator(setter, initializer) { + return function(collection, iteratee) { + var func = isArray(collection) ? arrayAggregator : baseAggregator, + accumulator = initializer ? initializer() : {}; + + return func(collection, setter, getIteratee(iteratee, 2), accumulator); + }; + } + + /** + * Creates a function like `_.assign`. + * + * @private + * @param {Function} assigner The function to assign values. + * @returns {Function} Returns the new assigner function. + */ + 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; + }); + } + + /** + * Creates a `baseEach` or `baseEachRight` function. + * + * @private + * @param {Function} eachFunc The function to iterate over a collection. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ + function createBaseEach(eachFunc, fromRight) { + return function(collection, iteratee) { + if (collection == null) { + return collection; + } + if (!isArrayLike(collection)) { + return eachFunc(collection, iteratee); + } + var length = collection.length, + index = fromRight ? length : -1, + iterable = Object(collection); + + while ((fromRight ? index-- : ++index < length)) { + if (iteratee(iterable[index], index, iterable) === false) { + break; + } + } + return collection; + }; + } + + /** + * Creates a base function for methods like `_.forIn` and `_.forOwn`. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ + function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, + iterable = Object(object), + props = keysFunc(object), + length = props.length; + + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; + } + + /** + * Creates a function that wraps `func` to invoke it with the optional `this` + * binding of `thisArg`. + * + * @private + * @param {Function} func The function to wrap. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @param {*} [thisArg] The `this` binding of `func`. + * @returns {Function} Returns the new wrapped function. + */ + function createBind(func, bitmask, thisArg) { + var isBind = bitmask & WRAP_BIND_FLAG, + Ctor = createCtor(func); + + function wrapper() { + var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; + return fn.apply(isBind ? thisArg : this, arguments); + } + return wrapper; + } + + /** + * Creates a function like `_.lowerFirst`. + * + * @private + * @param {string} methodName The name of the `String` case method to use. + * @returns {Function} Returns the new case function. + */ + 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; + }; + } + + /** + * Creates a function like `_.camelCase`. + * + * @private + * @param {Function} callback The function to combine each word. + * @returns {Function} Returns the new compounder function. + */ + function createCompounder(callback) { + return function(string) { + return arrayReduce(words(deburr(string).replace(reApos, '')), callback, ''); + }; + } + + /** + * Creates a function that produces an instance of `Ctor` regardless of + * whether it was invoked as part of a `new` expression or by `call` or `apply`. + * + * @private + * @param {Function} Ctor The constructor to wrap. + * @returns {Function} Returns the new wrapped function. + */ + function createCtor(Ctor) { + return function() { + // Use a `switch` statement to work with class constructors. See + // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist + // for more details. + var args = arguments; + switch (args.length) { + case 0: return new Ctor; + case 1: return new Ctor(args[0]); + case 2: return new Ctor(args[0], args[1]); + case 3: return new Ctor(args[0], args[1], args[2]); + case 4: return new Ctor(args[0], args[1], args[2], args[3]); + case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]); + case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]); + case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); + } + var thisBinding = baseCreate(Ctor.prototype), + result = Ctor.apply(thisBinding, args); + + // Mimic the constructor's `return` behavior. + // See https://es5.github.io/#x13.2.2 for more details. + return isObject(result) ? result : thisBinding; + }; + } + + /** + * Creates a function that wraps `func` to enable currying. + * + * @private + * @param {Function} func The function to wrap. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @param {number} arity The arity of `func`. + * @returns {Function} Returns the new wrapped function. + */ + 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; + } + + /** + * Creates a `_.find` or `_.findLast` function. + * + * @private + * @param {Function} findIndexFunc The function to find the collection index. + * @returns {Function} Returns the new find function. + */ + 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; + }; + } + + /** + * Creates a `_.flow` or `_.flowRight` function. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new flow function. + */ + 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; + }; + }); + } + + /** + * Creates a function that wraps `func` to invoke it with optional `this` + * binding of `thisArg`, partial application, and currying. + * + * @private + * @param {Function|string} func The function or method name to wrap. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @param {*} [thisArg] The `this` binding of `func`. + * @param {Array} [partials] The arguments to prepend to those provided to + * the new function. + * @param {Array} [holders] The `partials` placeholder indexes. + * @param {Array} [partialsRight] The arguments to append to those provided + * to the new function. + * @param {Array} [holdersRight] The `partialsRight` placeholder indexes. + * @param {Array} [argPos] The argument positions of the new function. + * @param {number} [ary] The arity cap of `func`. + * @param {number} [arity] The arity of `func`. + * @returns {Function} Returns the new wrapped function. + */ + 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; + } + + /** + * Creates a function like `_.invertBy`. + * + * @private + * @param {Function} setter The function to set accumulator values. + * @param {Function} toIteratee The function to resolve iteratees. + * @returns {Function} Returns the new inverter function. + */ + function createInverter(setter, toIteratee) { + return function(object, iteratee) { + return baseInverter(object, setter, toIteratee(iteratee), {}); + }; + } + + /** + * Creates a function that performs a mathematical operation on two values. + * + * @private + * @param {Function} operator The function to perform the operation. + * @param {number} [defaultValue] The value used for `undefined` arguments. + * @returns {Function} Returns the new mathematical operation function. + */ + 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; + }; + } + + /** + * Creates a function like `_.over`. + * + * @private + * @param {Function} arrayFunc The function to iterate over iteratees. + * @returns {Function} Returns the new over function. + */ + function createOver(arrayFunc) { + return flatRest(function(iteratees) { + iteratees = arrayMap(iteratees, baseUnary(getIteratee())); + return baseRest(function(args) { + var thisArg = this; + return arrayFunc(iteratees, function(iteratee) { + return apply(iteratee, thisArg, args); + }); + }); + }); + } + + /** + * Creates the padding for `string` based on `length`. The `chars` string + * is truncated if the number of characters exceeds `length`. + * + * @private + * @param {number} length The padding length. + * @param {string} [chars=' '] The string used as padding. + * @returns {string} Returns the padding for `string`. + */ + 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); + } + + /** + * Creates a function that wraps `func` to invoke it with the `this` binding + * of `thisArg` and `partials` prepended to the arguments it receives. + * + * @private + * @param {Function} func The function to wrap. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @param {*} thisArg The `this` binding of `func`. + * @param {Array} partials The arguments to prepend to those provided to + * the new function. + * @returns {Function} Returns the new wrapped function. + */ + function createPartial(func, bitmask, thisArg, partials) { + var isBind = bitmask & WRAP_BIND_FLAG, + Ctor = createCtor(func); + + function wrapper() { + var argsIndex = -1, + argsLength = arguments.length, + leftIndex = -1, + leftLength = partials.length, + args = Array(leftLength + argsLength), + fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; + + while (++leftIndex < leftLength) { + args[leftIndex] = partials[leftIndex]; + } + while (argsLength--) { + args[leftIndex++] = arguments[++argsIndex]; + } + return apply(fn, isBind ? thisArg : this, args); + } + return wrapper; + } + + /** + * Creates a `_.range` or `_.rangeRight` function. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new range function. + */ + 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. + 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); + }; + } + + /** + * Creates a function that performs a relational operation on two values. + * + * @private + * @param {Function} operator The function to perform the operation. + * @returns {Function} Returns the new relational operation function. + */ + function createRelationalOperation(operator) { + return function(value, other) { + if (!(typeof value == 'string' && typeof other == 'string')) { + value = toNumber(value); + other = toNumber(other); + } + return operator(value, other); + }; + } + + /** + * Creates a function that wraps `func` to continue currying. + * + * @private + * @param {Function} func The function to wrap. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @param {Function} wrapFunc The function to create the `func` wrapper. + * @param {*} placeholder The placeholder value. + * @param {*} [thisArg] The `this` binding of `func`. + * @param {Array} [partials] The arguments to prepend to those provided to + * the new function. + * @param {Array} [holders] The `partials` placeholder indexes. + * @param {Array} [argPos] The argument positions of the new function. + * @param {number} [ary] The arity cap of `func`. + * @param {number} [arity] The arity of `func`. + * @returns {Function} Returns the new wrapped function. + */ + 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 &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG); + } + 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); + } + + /** + * Creates a function like `_.round`. + * + * @private + * @param {string} methodName The name of the `Math` method to use when rounding. + * @returns {Function} Returns the new round function. + */ + function createRound(methodName) { + var func = Math[methodName]; + return function(number, precision) { + number = toNumber(number); + precision = precision == null ? 0 : nativeMin(toInteger(precision), 292); + if (precision && nativeIsFinite(number)) { + // Shift with exponential notation to avoid floating-point issues. + // See [MDN](https://mdn.io/round#Examples) for more details. + var pair = (toString(number) + 'e').split('e'), + value = func(pair[0] + 'e' + (+pair[1] + precision)); + + pair = (toString(value) + 'e').split('e'); + return +(pair[0] + 'e' + (+pair[1] - precision)); + } + return func(number); + }; + } + + /** + * Creates a set object of `values`. + * + * @private + * @param {Array} values The values to add to the set. + * @returns {Object} Returns the new set. + */ + var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) { + return new Set(values); + }; + + /** + * Creates a `_.toPairs` or `_.toPairsIn` function. + * + * @private + * @param {Function} keysFunc The function to get the keys of a given object. + * @returns {Function} Returns the new pairs function. + */ + function createToPairs(keysFunc) { + return function(object) { + var tag = getTag(object); + if (tag == mapTag) { + return mapToArray(object); + } + if (tag == setTag) { + return setToPairs(object); + } + return baseToPairs(object, keysFunc(object)); + }; + } + + /** + * Creates a function that either curries or invokes `func` with optional + * `this` binding and partially applied arguments. + * + * @private + * @param {Function|string} func The function or method name to wrap. + * @param {number} bitmask The bitmask flags. + * 1 - `_.bind` + * 2 - `_.bindKey` + * 4 - `_.curry` or `_.curryRight` of a bound function + * 8 - `_.curry` + * 16 - `_.curryRight` + * 32 - `_.partial` + * 64 - `_.partialRight` + * 128 - `_.rearg` + * 256 - `_.ary` + * 512 - `_.flip` + * @param {*} [thisArg] The `this` binding of `func`. + * @param {Array} [partials] The arguments to be partially applied. + * @param {Array} [holders] The `partials` placeholder indexes. + * @param {Array} [argPos] The argument positions of the new function. + * @param {number} [ary] The arity cap of `func`. + * @param {number} [arity] The arity of `func`. + * @returns {Function} Returns the new wrapped function. + */ + 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 &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG); + 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 &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG); + } + 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); + } + + /** + * Used by `_.defaults` to customize its `_.assignIn` use to assign properties + * of source objects to the destination object for all destination properties + * that resolve to `undefined`. + * + * @private + * @param {*} objValue The destination value. + * @param {*} srcValue The source value. + * @param {string} key The key of the property to assign. + * @param {Object} object The parent object of `objValue`. + * @returns {*} Returns the value to assign. + */ + function customDefaultsAssignIn(objValue, srcValue, key, object) { + if (objValue === undefined || + (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) { + return srcValue; + } + return objValue; + } + + /** + * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source + * objects into destination objects that are passed thru. + * + * @private + * @param {*} objValue The destination value. + * @param {*} srcValue The source value. + * @param {string} key The key of the property to merge. + * @param {Object} object The parent object of `objValue`. + * @param {Object} source The parent object of `srcValue`. + * @param {Object} [stack] Tracks traversed source values and their merged + * counterparts. + * @returns {*} Returns the value to assign. + */ + function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { + if (isObject(objValue) && isObject(srcValue)) { + // Recursively merge objects and arrays (susceptible to call stack limits). + stack.set(srcValue, objValue); + baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack); + stack['delete'](srcValue); + } + return objValue; + } + + /** + * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain + * objects. + * + * @private + * @param {*} value The value to inspect. + * @param {string} key The key of the property to inspect. + * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`. + */ + function customOmitClone(value) { + return isPlainObject(value) ? undefined : value; + } + + /** + * A specialized version of `baseIsEqualDeep` for arrays with support for + * partial deep comparisons. + * + * @private + * @param {Array} array The array to compare. + * @param {Array} other The other array to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `array` and `other` objects. + * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. + */ + 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. + 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. + 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). + 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; + } + + /** + * A specialized version of `baseIsEqualDeep` for comparing objects of + * the same `toStringTag`. + * + * **Note:** This function only supports comparing values with tags of + * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {string} tag The `toStringTag` of the objects to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ + function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { + switch (tag) { + case dataViewTag: + if ((object.byteLength != other.byteLength) || + (object.byteOffset != other.byteOffset)) { + return false; + } + object = object.buffer; + other = other.buffer; + + case arrayBufferTag: + if ((object.byteLength != other.byteLength) || + !equalFunc(new Uint8Array(object), new Uint8Array(other))) { + return false; + } + return true; + + case boolTag: + case dateTag: + case numberTag: + // Coerce booleans to `1` or `0` and dates to milliseconds. + // Invalid dates are coerced to `NaN`. + return eq(+object, +other); + + case errorTag: + return object.name == other.name && object.message == other.message; + + case regexpTag: + case stringTag: + // Coerce regexes to strings and treat strings, primitives and objects, + // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring + // for more details. + return object == (other + ''); + + case mapTag: + var convert = mapToArray; + + case setTag: + var isPartial = bitmask & COMPARE_PARTIAL_FLAG; + convert || (convert = setToArray); + + if (object.size != other.size && !isPartial) { + return false; + } + // Assume cyclic values are equal. + var stacked = stack.get(object); + if (stacked) { + return stacked == other; + } + bitmask |= COMPARE_UNORDERED_FLAG; + + // Recursively compare objects (susceptible to call stack limits). + stack.set(object, other); + var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); + stack['delete'](object); + return result; + + case symbolTag: + if (symbolValueOf) { + return symbolValueOf.call(object) == symbolValueOf.call(other); + } + } + return false; + } + + /** + * A specialized version of `baseIsEqualDeep` for objects with support for + * partial deep comparisons. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ + 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. + 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). + 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. + 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; + } + + /** + * A specialized version of `baseRest` which flattens the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @returns {Function} Returns the new function. + */ + function flatRest(func) { + return setToString(overRest(func, undefined, flatten), func + ''); + } + + /** + * Creates an array of own enumerable property names and symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names and symbols. + */ + function getAllKeys(object) { + return baseGetAllKeys(object, keys, getSymbols); + } + + /** + * Creates an array of own and inherited enumerable property names and + * symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names and symbols. + */ + function getAllKeysIn(object) { + return baseGetAllKeys(object, keysIn, getSymbolsIn); + } + + /** + * Gets metadata for `func`. + * + * @private + * @param {Function} func The function to query. + * @returns {*} Returns the metadata for `func`. + */ + var getData = !metaMap ? noop : function(func) { + return metaMap.get(func); + }; + + /** + * Gets the name of `func`. + * + * @private + * @param {Function} func The function to query. + * @returns {string} Returns the function name. + */ + function getFuncName(func) { + var result = (func.name + ''), + array = realNames[result], + length = hasOwnProperty.call(realNames, result) ? array.length : 0; + + while (length--) { + var data = array[length], + otherFunc = data.func; + if (otherFunc == null || otherFunc == func) { + return data.name; + } + } + return result; + } + + /** + * Gets the argument placeholder value for `func`. + * + * @private + * @param {Function} func The function to inspect. + * @returns {*} Returns the placeholder value. + */ + function getHolder(func) { + var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func; + return object.placeholder; + } + + /** + * Gets the appropriate "iteratee" function. If `_.iteratee` is customized, + * this function returns the custom method, otherwise it returns `baseIteratee`. + * If arguments are provided, the chosen function is invoked with them and + * its result is returned. + * + * @private + * @param {*} [value] The value to convert to an iteratee. + * @param {number} [arity] The arity of the created iteratee. + * @returns {Function} Returns the chosen function or its result. + */ + function getIteratee() { + var result = lodash.iteratee || iteratee; + result = result === iteratee ? baseIteratee : result; + return arguments.length ? result(arguments[0], arguments[1]) : result; + } + + /** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ + function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; + } + + /** + * Gets the property names, values, and compare flags of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the match data of `object`. + */ + function getMatchData(object) { + var result = keys(object), + length = result.length; + + while (length--) { + var key = result[length], + value = object[key]; + + result[length] = [key, value, isStrictComparable(value)]; + } + return result; + } + + /** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ + function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; + } + + /** + * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the raw `toStringTag`. + */ + function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), + tag = value[symToStringTag]; + + try { + value[symToStringTag] = undefined; + var unmasked = true; + } catch (e) {} + + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } + } + return result; + } + + /** + * Creates an array of the own enumerable symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. + */ + var getSymbols = !nativeGetSymbols ? stubArray : function(object) { + if (object == null) { + return []; + } + object = Object(object); + return arrayFilter(nativeGetSymbols(object), function(symbol) { + return propertyIsEnumerable.call(object, symbol); + }); + }; + + /** + * Creates an array of the own and inherited enumerable symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. + */ + var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { + var result = []; + while (object) { + arrayPush(result, getSymbols(object)); + object = getPrototype(object); + } + return result; + }; + + /** + * Gets the `toStringTag` of `value`. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ + var getTag = baseGetTag; + + // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. + 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; + }; + } + + /** + * Gets the view, applying any `transforms` to the `start` and `end` positions. + * + * @private + * @param {number} start The start of the view. + * @param {number} end The end of the view. + * @param {Array} transforms The transformations to apply to the view. + * @returns {Object} Returns an object containing the `start` and `end` + * positions of the view. + */ + function getView(start, end, transforms) { + var index = -1, + length = transforms.length; + + while (++index < length) { + var data = transforms[index], + size = data.size; + + switch (data.type) { + case 'drop': start += size; break; + case 'dropRight': end -= size; break; + case 'take': end = nativeMin(end, start + size); break; + case 'takeRight': start = nativeMax(start, end - size); break; + } + } + return { 'start': start, 'end': end }; + } + + /** + * Extracts wrapper details from the `source` body comment. + * + * @private + * @param {string} source The source to inspect. + * @returns {Array} Returns the wrapper details. + */ + function getWrapDetails(source) { + var match = source.match(reWrapDetails); + return match ? match[1].split(reSplitDetails) : []; + } + + /** + * Checks if `path` exists on `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @param {Function} hasFunc The function to check properties. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + */ + function hasPath(object, path, hasFunc) { + path = castPath(path, object); + + var index = -1, + length = path.length, + result = false; + + while (++index < length) { + var key = toKey(path[index]); + if (!(result = object != null && hasFunc(object, key))) { + break; + } + object = object[key]; + } + if (result || ++index != length) { + return result; + } + length = object == null ? 0 : object.length; + return !!length && isLength(length) && isIndex(key, length) && + (isArray(object) || isArguments(object)); + } + + /** + * Initializes an array clone. + * + * @private + * @param {Array} array The array to clone. + * @returns {Array} Returns the initialized clone. + */ + function initCloneArray(array) { + var length = array.length, + result = new array.constructor(length); + + // Add properties assigned by `RegExp#exec`. + if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { + result.index = array.index; + result.input = array.input; + } + return result; + } + + /** + * Initializes an object clone. + * + * @private + * @param {Object} object The object to clone. + * @returns {Object} Returns the initialized clone. + */ + function initCloneObject(object) { + return (typeof object.constructor == 'function' && !isPrototype(object)) + ? baseCreate(getPrototype(object)) + : {}; + } + + /** + * Initializes an object clone based on its `toStringTag`. + * + * **Note:** This function only supports cloning values with tags of + * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. + * + * @private + * @param {Object} object The object to clone. + * @param {string} tag The `toStringTag` of the object to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the initialized clone. + */ + function initCloneByTag(object, tag, isDeep) { + var Ctor = object.constructor; + switch (tag) { + case arrayBufferTag: + return cloneArrayBuffer(object); + + case boolTag: + case dateTag: + return new Ctor(+object); + + case dataViewTag: + return cloneDataView(object, isDeep); + + case float32Tag: case float64Tag: + case int8Tag: case int16Tag: case int32Tag: + case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: + return cloneTypedArray(object, isDeep); + + case mapTag: + return new Ctor; + + case numberTag: + case stringTag: + return new Ctor(object); + + case regexpTag: + return cloneRegExp(object); + + case setTag: + return new Ctor; + + case symbolTag: + return cloneSymbol(object); + } + } + + /** + * Inserts wrapper `details` in a comment at the top of the `source` body. + * + * @private + * @param {string} source The source to modify. + * @returns {Array} details The details to insert. + * @returns {string} Returns the modified source. + */ + function insertWrapDetails(source, details) { + var length = details.length; + if (!length) { + return source; + } + var lastIndex = length - 1; + details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex]; + details = details.join(length > 2 ? ', ' : ' '); + return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n'); + } + + /** + * Checks if `value` is a flattenable `arguments` object or array. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. + */ + function isFlattenable(value) { + return isArray(value) || isArguments(value) || + !!(spreadableSymbol && value && value[spreadableSymbol]); + } + + /** + * Checks if `value` is a valid array-like index. + * + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. + */ + function isIndex(value, length) { + var type = typeof value; + length = length == null ? MAX_SAFE_INTEGER : length; + + return !!length && + (type == 'number' || + (type != 'symbol' && reIsUint.test(value))) && + (value > -1 && value % 1 == 0 && value < length); + } + + /** + * Checks if the given arguments are from an iteratee call. + * + * @private + * @param {*} value The potential iteratee value argument. + * @param {*} index The potential iteratee index or key argument. + * @param {*} object The potential iteratee object argument. + * @returns {boolean} Returns `true` if the arguments are from an iteratee call, + * else `false`. + */ + function isIterateeCall(value, index, object) { + if (!isObject(object)) { + return false; + } + var type = typeof index; + if (type == 'number' + ? (isArrayLike(object) && isIndex(index, object.length)) + : (type == 'string' && index in object) + ) { + return eq(object[index], value); + } + return false; + } + + /** + * Checks if `value` is a property name and not a property path. + * + * @private + * @param {*} value The value to check. + * @param {Object} [object] The object to query keys on. + * @returns {boolean} Returns `true` if `value` is a property name, else `false`. + */ + function isKey(value, object) { + if (isArray(value)) { + return false; + } + var type = typeof value; + if (type == 'number' || type == 'symbol' || type == 'boolean' || + value == null || isSymbol(value)) { + return true; + } + return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || + (object != null && value in Object(object)); + } + + /** + * Checks if `value` is suitable for use as unique object key. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. + */ + function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); + } + + /** + * Checks if `func` has a lazy counterpart. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` has a lazy counterpart, + * else `false`. + */ + function isLaziable(func) { + var funcName = getFuncName(func), + other = lodash[funcName]; + + if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) { + return false; + } + if (func === other) { + return true; + } + var data = getData(other); + return !!data && func === data[0]; + } + + /** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ + function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); + } + + /** + * Checks if `func` is capable of being masked. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `func` is maskable, else `false`. + */ + var isMaskable = coreJsData ? isFunction : stubFalse; + + /** + * Checks if `value` is likely a prototype object. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. + */ + function isPrototype(value) { + var Ctor = value && value.constructor, + proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; + + return value === proto; + } + + /** + * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` if suitable for strict + * equality comparisons, else `false`. + */ + function isStrictComparable(value) { + return value === value && !isObject(value); + } + + /** + * A specialized version of `matchesProperty` for source values suitable + * for strict equality comparisons, i.e. `===`. + * + * @private + * @param {string} key The key of the property to get. + * @param {*} srcValue The value to match. + * @returns {Function} Returns the new spec function. + */ + function matchesStrictComparable(key, srcValue) { + return function(object) { + if (object == null) { + return false; + } + return object[key] === srcValue && + (srcValue !== undefined || (key in Object(object))); + }; + } + + /** + * A specialized version of `_.memoize` which clears the memoized function's + * cache when it exceeds `MAX_MEMOIZE_SIZE`. + * + * @private + * @param {Function} func The function to have its output memoized. + * @returns {Function} Returns the new memoized function. + */ + function memoizeCapped(func) { + var result = memoize(func, function(key) { + if (cache.size === MAX_MEMOIZE_SIZE) { + cache.clear(); + } + return key; + }); + + var cache = result.cache; + return result; + } + + /** + * Merges the function metadata of `source` into `data`. + * + * Merging metadata reduces the number of wrappers used to invoke a function. + * This is possible because methods like `_.bind`, `_.curry`, and `_.partial` + * may be applied regardless of execution order. Methods like `_.ary` and + * `_.rearg` modify function arguments, making the order in which they are + * executed important, preventing the merging of metadata. However, we make + * an exception for a safe combined case where curried functions have `_.ary` + * and or `_.rearg` applied. + * + * @private + * @param {Array} data The destination metadata. + * @param {Array} source The source metadata. + * @returns {Array} Returns `data`. + */ + function mergeData(data, source) { + var bitmask = data[1], + srcBitmask = source[1], + newBitmask = bitmask | srcBitmask, + isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG); + + var isCombo = + ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) || + ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) || + ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG)); + + // Exit early if metadata can't be merged. + if (!(isCommon || isCombo)) { + return data; + } + // Use source `thisArg` if available. + if (srcBitmask & WRAP_BIND_FLAG) { + data[2] = source[2]; + // Set when currying a bound function. + newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG; + } + // Compose partial arguments. + var value = source[3]; + if (value) { + var partials = data[3]; + data[3] = partials ? composeArgs(partials, value, source[4]) : value; + data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4]; + } + // Compose partial right arguments. + value = source[5]; + if (value) { + partials = data[5]; + data[5] = partials ? composeArgsRight(partials, value, source[6]) : value; + data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6]; + } + // Use source `argPos` if available. + value = source[7]; + if (value) { + data[7] = value; + } + // Use source `ary` if it's smaller. + if (srcBitmask & WRAP_ARY_FLAG) { + data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); + } + // Use source `arity` if one is not provided. + if (data[9] == null) { + data[9] = source[9]; + } + // Use source `func` and merge bitmasks. + data[0] = source[0]; + data[1] = newBitmask; + + return data; + } + + /** + * This function is like + * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * except that it includes inherited enumerable properties. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ + function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; + } + + /** + * Converts `value` to a string using `Object.prototype.toString`. + * + * @private + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + */ + function objectToString(value) { + return nativeObjectToString.call(value); + } + + /** + * A specialized version of `baseRest` which transforms the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @param {Function} transform The rest array transform. + * @returns {Function} Returns the new function. + */ + 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); + }; + } + + /** + * Gets the parent value at `path` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Array} path The path to get the parent value of. + * @returns {*} Returns the parent value. + */ + function parent(object, path) { + return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1)); + } + + /** + * Reorder `array` according to the specified indexes where the element at + * the first index is assigned as the first element, the element at + * the second index is assigned as the second element, and so on. + * + * @private + * @param {Array} array The array to reorder. + * @param {Array} indexes The arranged array indexes. + * @returns {Array} Returns `array`. + */ + 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; + } + + /** + * Gets the value at `key`, unless `key` is "__proto__" or "constructor". + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ + function safeGet(object, key) { + if (key === 'constructor' && typeof object[key] === 'function') { + return; + } + + if (key == '__proto__') { + return; + } + + return object[key]; + } + + /** + * Sets metadata for `func`. + * + * **Note:** If this function becomes hot, i.e. is invoked a lot in a short + * period of time, it will trip its breaker and transition to an identity + * function to avoid garbage collection pauses in V8. See + * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070) + * for more details. + * + * @private + * @param {Function} func The function to associate metadata with. + * @param {*} data The metadata. + * @returns {Function} Returns `func`. + */ + var setData = shortOut(baseSetData); + + /** + * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout). + * + * @private + * @param {Function} func The function to delay. + * @param {number} wait The number of milliseconds to delay invocation. + * @returns {number|Object} Returns the timer id or timeout object. + */ + var setTimeout = ctxSetTimeout || function(func, wait) { + return root.setTimeout(func, wait); + }; + + /** + * Sets the `toString` method of `func` to return `string`. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ + var setToString = shortOut(baseSetToString); + + /** + * Sets the `toString` method of `wrapper` to mimic the source of `reference` + * with wrapper details in a comment at the top of the source body. + * + * @private + * @param {Function} wrapper The function to modify. + * @param {Function} reference The reference function. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @returns {Function} Returns `wrapper`. + */ + function setWrapToString(wrapper, reference, bitmask) { + var source = (reference + ''); + return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); + } + + /** + * Creates a function that'll short out and invoke `identity` instead + * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` + * milliseconds. + * + * @private + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new shortable function. + */ + 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); + }; + } + + /** + * A specialized version of `_.shuffle` which mutates and sets the size of `array`. + * + * @private + * @param {Array} array The array to shuffle. + * @param {number} [size=array.length] The size of `array`. + * @returns {Array} Returns `array`. + */ + 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; + } + + /** + * Converts `string` to a property path array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the property path array. + */ + var stringToPath = memoizeCapped(function(string) { + var result = []; + if (string.charCodeAt(0) === 46 /* . */) { + result.push(''); + } + string.replace(rePropName, function(match, number, quote, subString) { + result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); + }); + return result; + }); + + /** + * Converts `value` to a string key if it's not a string or symbol. + * + * @private + * @param {*} value The value to inspect. + * @returns {string|symbol} Returns the key. + */ + function toKey(value) { + if (typeof value == 'string' || isSymbol(value)) { + return value; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + } + + /** + * Converts `func` to its source code. + * + * @private + * @param {Function} func The function to convert. + * @returns {string} Returns the source code. + */ + function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return (func + ''); + } catch (e) {} + } + return ''; + } + + /** + * Updates wrapper `details` based on `bitmask` flags. + * + * @private + * @returns {Array} details The details to modify. + * @param {number} bitmask The bitmask flags. See `createWrap` for more details. + * @returns {Array} Returns `details`. + */ + function updateWrapDetails(details, bitmask) { + arrayEach(wrapFlags, function(pair) { + var value = '_.' + pair[0]; + if ((bitmask & pair[1]) && !arrayIncludes(details, value)) { + details.push(value); + } + }); + return details.sort(); + } + + /** + * Creates a clone of `wrapper`. + * + * @private + * @param {Object} wrapper The wrapper to clone. + * @returns {Object} Returns the cloned wrapper. + */ + function wrapperClone(wrapper) { + if (wrapper instanceof LazyWrapper) { + return wrapper.clone(); + } + var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__); + result.__actions__ = copyArray(wrapper.__actions__); + result.__index__ = wrapper.__index__; + result.__values__ = wrapper.__values__; + return result; + } + + /*------------------------------------------------------------------------*/ + + /** + * Creates an array of elements split into groups the length of `size`. + * If `array` can't be split evenly, the final chunk will be the remaining + * elements. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to process. + * @param {number} [size=1] The length of each chunk + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the new array of chunks. + * @example + * + * _.chunk(['a', 'b', 'c', 'd'], 2); + * // => [['a', 'b'], ['c', 'd']] + * + * _.chunk(['a', 'b', 'c', 'd'], 3); + * // => [['a', 'b', 'c'], ['d']] + */ + 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; + } + + /** + * Creates an array with all falsey values removed. The values `false`, `null`, + * `0`, `""`, `undefined`, and `NaN` are falsey. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to compact. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * _.compact([0, 1, false, 2, '', 3]); + * // => [1, 2, 3] + */ + function compact(array) { + var index = -1, + length = array == null ? 0 : array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + if (value) { + result[resIndex++] = value; + } + } + return result; + } + + /** + * Creates a new array concatenating `array` with any additional arrays + * and/or values. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to concatenate. + * @param {...*} [values] The values to concatenate. + * @returns {Array} Returns the new concatenated array. + * @example + * + * var array = [1]; + * var other = _.concat(array, 2, [3], [[4]]); + * + * console.log(other); + * // => [1, 2, 3, [4]] + * + * console.log(array); + * // => [1] + */ + function concat() { + var length = arguments.length; + if (!length) { + return []; + } + var args = Array(length - 1), + array = arguments[0], + index = length; + + while (index--) { + args[index - 1] = arguments[index]; + } + return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)); + } + + /** + * Creates an array of `array` values not included in the other given arrays + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. The order and references of result values are + * determined by the first array. + * + * **Note:** Unlike `_.pullAll`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...Array} [values] The values to exclude. + * @returns {Array} Returns the new array of filtered values. + * @see _.without, _.xor + * @example + * + * _.difference([2, 1], [2, 3]); + * // => [1] + */ + var difference = baseRest(function(array, values) { + return isArrayLikeObject(array) + ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) + : []; + }); + + /** + * This method is like `_.difference` except that it accepts `iteratee` which + * is invoked for each element of `array` and `values` to generate the criterion + * by which they're compared. The order and references of result values are + * determined by the first array. The iteratee is invoked with one argument: + * (value). + * + * **Note:** Unlike `_.pullAllBy`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...Array} [values] The values to exclude. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor); + * // => [1.2] + * + * // The `_.property` iteratee shorthand. + * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x'); + * // => [{ 'x': 2 }] + */ + 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)) + : []; + }); + + /** + * This method is like `_.difference` except that it accepts `comparator` + * which is invoked to compare elements of `array` to `values`. The order and + * references of result values are determined by the first array. The comparator + * is invoked with two arguments: (arrVal, othVal). + * + * **Note:** Unlike `_.pullAllWith`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...Array} [values] The values to exclude. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; + * + * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual); + * // => [{ 'x': 2, 'y': 1 }] + */ + 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) + : []; + }); + + /** + * Creates a slice of `array` with `n` elements dropped from the beginning. + * + * @static + * @memberOf _ + * @since 0.5.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=1] The number of elements to drop. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.drop([1, 2, 3]); + * // => [2, 3] + * + * _.drop([1, 2, 3], 2); + * // => [3] + * + * _.drop([1, 2, 3], 5); + * // => [] + * + * _.drop([1, 2, 3], 0); + * // => [1, 2, 3] + */ + 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); + } + + /** + * Creates a slice of `array` with `n` elements dropped from the end. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=1] The number of elements to drop. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.dropRight([1, 2, 3]); + * // => [1, 2] + * + * _.dropRight([1, 2, 3], 2); + * // => [1] + * + * _.dropRight([1, 2, 3], 5); + * // => [] + * + * _.dropRight([1, 2, 3], 0); + * // => [1, 2, 3] + */ + 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); + } + + /** + * Creates a slice of `array` excluding elements dropped from the end. + * Elements are dropped until `predicate` returns falsey. The predicate is + * invoked with three arguments: (value, index, array). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the slice of `array`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': true }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': false } + * ]; + * + * _.dropRightWhile(users, function(o) { return !o.active; }); + * // => objects for ['barney'] + * + * // The `_.matches` iteratee shorthand. + * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false }); + * // => objects for ['barney', 'fred'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.dropRightWhile(users, ['active', false]); + * // => objects for ['barney'] + * + * // The `_.property` iteratee shorthand. + * _.dropRightWhile(users, 'active'); + * // => objects for ['barney', 'fred', 'pebbles'] + */ + function dropRightWhile(array, predicate) { + return (array && array.length) + ? baseWhile(array, getIteratee(predicate, 3), true, true) + : []; + } + + /** + * Creates a slice of `array` excluding elements dropped from the beginning. + * Elements are dropped until `predicate` returns falsey. The predicate is + * invoked with three arguments: (value, index, array). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the slice of `array`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': false }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': true } + * ]; + * + * _.dropWhile(users, function(o) { return !o.active; }); + * // => objects for ['pebbles'] + * + * // The `_.matches` iteratee shorthand. + * _.dropWhile(users, { 'user': 'barney', 'active': false }); + * // => objects for ['fred', 'pebbles'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.dropWhile(users, ['active', false]); + * // => objects for ['pebbles'] + * + * // The `_.property` iteratee shorthand. + * _.dropWhile(users, 'active'); + * // => objects for ['barney', 'fred', 'pebbles'] + */ + function dropWhile(array, predicate) { + return (array && array.length) + ? baseWhile(array, getIteratee(predicate, 3), true) + : []; + } + + /** + * Fills elements of `array` with `value` from `start` up to, but not + * including, `end`. + * + * **Note:** This method mutates `array`. + * + * @static + * @memberOf _ + * @since 3.2.0 + * @category Array + * @param {Array} array The array to fill. + * @param {*} value The value to fill `array` with. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns `array`. + * @example + * + * var array = [1, 2, 3]; + * + * _.fill(array, 'a'); + * console.log(array); + * // => ['a', 'a', 'a'] + * + * _.fill(Array(3), 2); + * // => [2, 2, 2] + * + * _.fill([4, 6, 8, 10], '*', 1, 3); + * // => [4, '*', '*', 10] + */ + function fill(array, value, start, end) { + var length = array == null ? 0 : array.length; + if (!length) { + return []; + } + if (start && typeof start != 'number' && isIterateeCall(array, value, start)) { + start = 0; + end = length; + } + return baseFill(array, value, start, end); + } + + /** + * This method is like `_.find` except that it returns the index of the first + * element `predicate` returns truthy for instead of the element itself. + * + * @static + * @memberOf _ + * @since 1.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=0] The index to search from. + * @returns {number} Returns the index of the found element, else `-1`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': false }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': true } + * ]; + * + * _.findIndex(users, function(o) { return o.user == 'barney'; }); + * // => 0 + * + * // The `_.matches` iteratee shorthand. + * _.findIndex(users, { 'user': 'fred', 'active': false }); + * // => 1 + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findIndex(users, ['active', false]); + * // => 0 + * + * // The `_.property` iteratee shorthand. + * _.findIndex(users, 'active'); + * // => 2 + */ + function findIndex(array, predicate, fromIndex) { + var length = array == null ? 0 : array.length; + if (!length) { + return -1; + } + var index = fromIndex == null ? 0 : toInteger(fromIndex); + if (index < 0) { + index = nativeMax(length + index, 0); + } + return baseFindIndex(array, getIteratee(predicate, 3), index); + } + + /** + * This method is like `_.findIndex` except that it iterates over elements + * of `collection` from right to left. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=array.length-1] The index to search from. + * @returns {number} Returns the index of the found element, else `-1`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': true }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': false } + * ]; + * + * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; }); + * // => 2 + * + * // The `_.matches` iteratee shorthand. + * _.findLastIndex(users, { 'user': 'barney', 'active': true }); + * // => 0 + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findLastIndex(users, ['active', false]); + * // => 2 + * + * // The `_.property` iteratee shorthand. + * _.findLastIndex(users, 'active'); + * // => 0 + */ + 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); + } + + /** + * Flattens `array` a single level deep. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to flatten. + * @returns {Array} Returns the new flattened array. + * @example + * + * _.flatten([1, [2, [3, [4]], 5]]); + * // => [1, 2, [3, [4]], 5] + */ + function flatten(array) { + var length = array == null ? 0 : array.length; + return length ? baseFlatten(array, 1) : []; + } + + /** + * Recursively flattens `array`. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to flatten. + * @returns {Array} Returns the new flattened array. + * @example + * + * _.flattenDeep([1, [2, [3, [4]], 5]]); + * // => [1, 2, 3, 4, 5] + */ + function flattenDeep(array) { + var length = array == null ? 0 : array.length; + return length ? baseFlatten(array, INFINITY) : []; + } + + /** + * Recursively flatten `array` up to `depth` times. + * + * @static + * @memberOf _ + * @since 4.4.0 + * @category Array + * @param {Array} array The array to flatten. + * @param {number} [depth=1] The maximum recursion depth. + * @returns {Array} Returns the new flattened array. + * @example + * + * var array = [1, [2, [3, [4]], 5]]; + * + * _.flattenDepth(array, 1); + * // => [1, 2, [3, [4]], 5] + * + * _.flattenDepth(array, 2); + * // => [1, 2, 3, [4], 5] + */ + function flattenDepth(array, depth) { + var length = array == null ? 0 : array.length; + if (!length) { + return []; + } + depth = depth === undefined ? 1 : toInteger(depth); + return baseFlatten(array, depth); + } + + /** + * The inverse of `_.toPairs`; this method returns an object composed + * from key-value `pairs`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} pairs The key-value pairs. + * @returns {Object} Returns the new object. + * @example + * + * _.fromPairs([['a', 1], ['b', 2]]); + * // => { 'a': 1, 'b': 2 } + */ + function fromPairs(pairs) { + var index = -1, + length = pairs == null ? 0 : pairs.length, + result = {}; + + while (++index < length) { + var pair = pairs[index]; + result[pair[0]] = pair[1]; + } + return result; + } + + /** + * Gets the first element of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @alias first + * @category Array + * @param {Array} array The array to query. + * @returns {*} Returns the first element of `array`. + * @example + * + * _.head([1, 2, 3]); + * // => 1 + * + * _.head([]); + * // => undefined + */ + function head(array) { + return (array && array.length) ? array[0] : undefined; + } + + /** + * Gets the index at which the first occurrence of `value` is found in `array` + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. If `fromIndex` is negative, it's used as the + * offset from the end of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=0] The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + * @example + * + * _.indexOf([1, 2, 1, 2], 2); + * // => 1 + * + * // Search from the `fromIndex`. + * _.indexOf([1, 2, 1, 2], 2, 2); + * // => 3 + */ + function indexOf(array, value, fromIndex) { + var length = array == null ? 0 : array.length; + if (!length) { + return -1; + } + var index = fromIndex == null ? 0 : toInteger(fromIndex); + if (index < 0) { + index = nativeMax(length + index, 0); + } + return baseIndexOf(array, value, index); + } + + /** + * Gets all but the last element of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to query. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.initial([1, 2, 3]); + * // => [1, 2] + */ + function initial(array) { + var length = array == null ? 0 : array.length; + return length ? baseSlice(array, 0, -1) : []; + } + + /** + * Creates an array of unique values that are included in all given arrays + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. The order and references of result values are + * determined by the first array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @returns {Array} Returns the new array of intersecting values. + * @example + * + * _.intersection([2, 1], [2, 3]); + * // => [2] + */ + var intersection = baseRest(function(arrays) { + var mapped = arrayMap(arrays, castArrayLikeObject); + return (mapped.length && mapped[0] === arrays[0]) + ? baseIntersection(mapped) + : []; + }); + + /** + * This method is like `_.intersection` except that it accepts `iteratee` + * which is invoked for each element of each `arrays` to generate the criterion + * by which they're compared. The order and references of result values are + * determined by the first array. The iteratee is invoked with one argument: + * (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new array of intersecting values. + * @example + * + * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); + * // => [2.1] + * + * // The `_.property` iteratee shorthand. + * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); + * // => [{ 'x': 1 }] + */ + 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)) + : []; + }); + + /** + * This method is like `_.intersection` except that it accepts `comparator` + * which is invoked to compare elements of `arrays`. The order and references + * of result values are determined by the first array. The comparator is + * invoked with two arguments: (arrVal, othVal). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of intersecting values. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; + * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; + * + * _.intersectionWith(objects, others, _.isEqual); + * // => [{ 'x': 1, 'y': 2 }] + */ + 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) + : []; + }); + + /** + * Converts all elements in `array` into a string separated by `separator`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to convert. + * @param {string} [separator=','] The element separator. + * @returns {string} Returns the joined string. + * @example + * + * _.join(['a', 'b', 'c'], '~'); + * // => 'a~b~c' + */ + function join(array, separator) { + return array == null ? '' : nativeJoin.call(array, separator); + } + + /** + * Gets the last element of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to query. + * @returns {*} Returns the last element of `array`. + * @example + * + * _.last([1, 2, 3]); + * // => 3 + */ + function last(array) { + var length = array == null ? 0 : array.length; + return length ? array[length - 1] : undefined; + } + + /** + * This method is like `_.indexOf` except that it iterates over elements of + * `array` from right to left. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=array.length-1] The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + * @example + * + * _.lastIndexOf([1, 2, 1, 2], 2); + * // => 3 + * + * // Search from the `fromIndex`. + * _.lastIndexOf([1, 2, 1, 2], 2, 2); + * // => 1 + */ + 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); + } + + /** + * Gets the element at index `n` of `array`. If `n` is negative, the nth + * element from the end is returned. + * + * @static + * @memberOf _ + * @since 4.11.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=0] The index of the element to return. + * @returns {*} Returns the nth element of `array`. + * @example + * + * var array = ['a', 'b', 'c', 'd']; + * + * _.nth(array, 1); + * // => 'b' + * + * _.nth(array, -2); + * // => 'c'; + */ + function nth(array, n) { + return (array && array.length) ? baseNth(array, toInteger(n)) : undefined; + } + + /** + * Removes all given values from `array` using + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove` + * to remove elements from an array by predicate. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Array + * @param {Array} array The array to modify. + * @param {...*} [values] The values to remove. + * @returns {Array} Returns `array`. + * @example + * + * var array = ['a', 'b', 'c', 'a', 'b', 'c']; + * + * _.pull(array, 'a', 'c'); + * console.log(array); + * // => ['b', 'b'] + */ + var pull = baseRest(pullAll); + + /** + * This method is like `_.pull` except that it accepts an array of values to remove. + * + * **Note:** Unlike `_.difference`, this method mutates `array`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to modify. + * @param {Array} values The values to remove. + * @returns {Array} Returns `array`. + * @example + * + * var array = ['a', 'b', 'c', 'a', 'b', 'c']; + * + * _.pullAll(array, ['a', 'c']); + * console.log(array); + * // => ['b', 'b'] + */ + function pullAll(array, values) { + return (array && array.length && values && values.length) + ? basePullAll(array, values) + : array; + } + + /** + * This method is like `_.pullAll` except that it accepts `iteratee` which is + * invoked for each element of `array` and `values` to generate the criterion + * by which they're compared. The iteratee is invoked with one argument: (value). + * + * **Note:** Unlike `_.differenceBy`, this method mutates `array`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to modify. + * @param {Array} values The values to remove. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns `array`. + * @example + * + * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }]; + * + * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x'); + * console.log(array); + * // => [{ 'x': 2 }] + */ + function pullAllBy(array, values, iteratee) { + return (array && array.length && values && values.length) + ? basePullAll(array, values, getIteratee(iteratee, 2)) + : array; + } + + /** + * This method is like `_.pullAll` except that it accepts `comparator` which + * is invoked to compare elements of `array` to `values`. The comparator is + * invoked with two arguments: (arrVal, othVal). + * + * **Note:** Unlike `_.differenceWith`, this method mutates `array`. + * + * @static + * @memberOf _ + * @since 4.6.0 + * @category Array + * @param {Array} array The array to modify. + * @param {Array} values The values to remove. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns `array`. + * @example + * + * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }]; + * + * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual); + * console.log(array); + * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }] + */ + function pullAllWith(array, values, comparator) { + return (array && array.length && values && values.length) + ? basePullAll(array, values, undefined, comparator) + : array; + } + + /** + * Removes elements from `array` corresponding to `indexes` and returns an + * array of removed elements. + * + * **Note:** Unlike `_.at`, this method mutates `array`. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to modify. + * @param {...(number|number[])} [indexes] The indexes of elements to remove. + * @returns {Array} Returns the new array of removed elements. + * @example + * + * var array = ['a', 'b', 'c', 'd']; + * var pulled = _.pullAt(array, [1, 3]); + * + * console.log(array); + * // => ['a', 'c'] + * + * console.log(pulled); + * // => ['b', 'd'] + */ + var pullAt = flatRest(function(array, indexes) { + var length = array == null ? 0 : array.length, + result = baseAt(array, indexes); + + basePullAt(array, arrayMap(indexes, function(index) { + return isIndex(index, length) ? +index : index; + }).sort(compareAscending)); + + return result; + }); + + /** + * Removes all elements from `array` that `predicate` returns truthy for + * and returns an array of the removed elements. The predicate is invoked + * with three arguments: (value, index, array). + * + * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull` + * to pull elements from an array by value. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Array + * @param {Array} array The array to modify. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new array of removed elements. + * @example + * + * var array = [1, 2, 3, 4]; + * var evens = _.remove(array, function(n) { + * return n % 2 == 0; + * }); + * + * console.log(array); + * // => [1, 3] + * + * console.log(evens); + * // => [2, 4] + */ + function remove(array, predicate) { + var result = []; + if (!(array && array.length)) { + return result; + } + var index = -1, + indexes = [], + length = array.length; + + predicate = getIteratee(predicate, 3); + while (++index < length) { + var value = array[index]; + if (predicate(value, index, array)) { + result.push(value); + indexes.push(index); + } + } + basePullAt(array, indexes); + return result; + } + + /** + * Reverses `array` so that the first element becomes the last, the second + * element becomes the second to last, and so on. + * + * **Note:** This method mutates `array` and is based on + * [`Array#reverse`](https://mdn.io/Array/reverse). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to modify. + * @returns {Array} Returns `array`. + * @example + * + * var array = [1, 2, 3]; + * + * _.reverse(array); + * // => [3, 2, 1] + * + * console.log(array); + * // => [3, 2, 1] + */ + function reverse(array) { + return array == null ? array : nativeReverse.call(array); + } + + /** + * Creates a slice of `array` from `start` up to, but not including, `end`. + * + * **Note:** This method is used instead of + * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are + * returned. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to slice. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the slice of `array`. + */ + 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); + } + + /** + * Uses a binary search to determine the lowest index at which `value` + * should be inserted into `array` in order to maintain its sort order. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. + * @example + * + * _.sortedIndex([30, 50], 40); + * // => 1 + */ + function sortedIndex(array, value) { + return baseSortedIndex(array, value); + } + + /** + * This method is like `_.sortedIndex` except that it accepts `iteratee` + * which is invoked for `value` and each element of `array` to compute their + * sort ranking. The iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. + * @example + * + * var objects = [{ 'x': 4 }, { 'x': 5 }]; + * + * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); + * // => 0 + * + * // The `_.property` iteratee shorthand. + * _.sortedIndexBy(objects, { 'x': 4 }, 'x'); + * // => 0 + */ + function sortedIndexBy(array, value, iteratee) { + return baseSortedIndexBy(array, value, getIteratee(iteratee, 2)); + } + + /** + * This method is like `_.indexOf` except that it performs a binary + * search on a sorted `array`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + * @example + * + * _.sortedIndexOf([4, 5, 5, 5, 6], 5); + * // => 1 + */ + function sortedIndexOf(array, value) { + var length = array == null ? 0 : array.length; + if (length) { + var index = baseSortedIndex(array, value); + if (index < length && eq(array[index], value)) { + return index; + } + } + return -1; + } + + /** + * This method is like `_.sortedIndex` except that it returns the highest + * index at which `value` should be inserted into `array` in order to + * maintain its sort order. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. + * @example + * + * _.sortedLastIndex([4, 5, 5, 5, 6], 5); + * // => 4 + */ + function sortedLastIndex(array, value) { + return baseSortedIndex(array, value, true); + } + + /** + * This method is like `_.sortedLastIndex` except that it accepts `iteratee` + * which is invoked for `value` and each element of `array` to compute their + * sort ranking. The iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. + * @example + * + * var objects = [{ 'x': 4 }, { 'x': 5 }]; + * + * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); + * // => 1 + * + * // The `_.property` iteratee shorthand. + * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x'); + * // => 1 + */ + function sortedLastIndexBy(array, value, iteratee) { + return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true); + } + + /** + * This method is like `_.lastIndexOf` except that it performs a binary + * search on a sorted `array`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + * @example + * + * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5); + * // => 3 + */ + function sortedLastIndexOf(array, value) { + var length = array == null ? 0 : array.length; + if (length) { + var index = baseSortedIndex(array, value, true) - 1; + if (eq(array[index], value)) { + return index; + } + } + return -1; + } + + /** + * This method is like `_.uniq` except that it's designed and optimized + * for sorted arrays. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * _.sortedUniq([1, 1, 2]); + * // => [1, 2] + */ + function sortedUniq(array) { + return (array && array.length) + ? baseSortedUniq(array) + : []; + } + + /** + * This method is like `_.uniqBy` except that it's designed and optimized + * for sorted arrays. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor); + * // => [1.1, 2.3] + */ + function sortedUniqBy(array, iteratee) { + return (array && array.length) + ? baseSortedUniq(array, getIteratee(iteratee, 2)) + : []; + } + + /** + * Gets all but the first element of `array`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to query. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.tail([1, 2, 3]); + * // => [2, 3] + */ + function tail(array) { + var length = array == null ? 0 : array.length; + return length ? baseSlice(array, 1, length) : []; + } + + /** + * Creates a slice of `array` with `n` elements taken from the beginning. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=1] The number of elements to take. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.take([1, 2, 3]); + * // => [1] + * + * _.take([1, 2, 3], 2); + * // => [1, 2] + * + * _.take([1, 2, 3], 5); + * // => [1, 2, 3] + * + * _.take([1, 2, 3], 0); + * // => [] + */ + 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); + } + + /** + * Creates a slice of `array` with `n` elements taken from the end. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=1] The number of elements to take. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.takeRight([1, 2, 3]); + * // => [3] + * + * _.takeRight([1, 2, 3], 2); + * // => [2, 3] + * + * _.takeRight([1, 2, 3], 5); + * // => [1, 2, 3] + * + * _.takeRight([1, 2, 3], 0); + * // => [] + */ + 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); + } + + /** + * Creates a slice of `array` with elements taken from the end. Elements are + * taken until `predicate` returns falsey. The predicate is invoked with + * three arguments: (value, index, array). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the slice of `array`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': true }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': false } + * ]; + * + * _.takeRightWhile(users, function(o) { return !o.active; }); + * // => objects for ['fred', 'pebbles'] + * + * // The `_.matches` iteratee shorthand. + * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false }); + * // => objects for ['pebbles'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.takeRightWhile(users, ['active', false]); + * // => objects for ['fred', 'pebbles'] + * + * // The `_.property` iteratee shorthand. + * _.takeRightWhile(users, 'active'); + * // => [] + */ + function takeRightWhile(array, predicate) { + return (array && array.length) + ? baseWhile(array, getIteratee(predicate, 3), false, true) + : []; + } + + /** + * Creates a slice of `array` with elements taken from the beginning. Elements + * are taken until `predicate` returns falsey. The predicate is invoked with + * three arguments: (value, index, array). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the slice of `array`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': false }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': true } + * ]; + * + * _.takeWhile(users, function(o) { return !o.active; }); + * // => objects for ['barney', 'fred'] + * + * // The `_.matches` iteratee shorthand. + * _.takeWhile(users, { 'user': 'barney', 'active': false }); + * // => objects for ['barney'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.takeWhile(users, ['active', false]); + * // => objects for ['barney', 'fred'] + * + * // The `_.property` iteratee shorthand. + * _.takeWhile(users, 'active'); + * // => [] + */ + function takeWhile(array, predicate) { + return (array && array.length) + ? baseWhile(array, getIteratee(predicate, 3)) + : []; + } + + /** + * Creates an array of unique values, in order, from all given arrays using + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @returns {Array} Returns the new array of combined values. + * @example + * + * _.union([2], [1, 2]); + * // => [2, 1] + */ + var union = baseRest(function(arrays) { + return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true)); + }); + + /** + * This method is like `_.union` except that it accepts `iteratee` which is + * invoked for each element of each `arrays` to generate the criterion by + * which uniqueness is computed. Result values are chosen from the first + * array in which the value occurs. The iteratee is invoked with one argument: + * (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new array of combined values. + * @example + * + * _.unionBy([2.1], [1.2, 2.3], Math.floor); + * // => [2.1, 1.2] + * + * // The `_.property` iteratee shorthand. + * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); + * // => [{ 'x': 1 }, { 'x': 2 }] + */ + var unionBy = baseRest(function(arrays) { + var iteratee = last(arrays); + if (isArrayLikeObject(iteratee)) { + iteratee = undefined; + } + return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2)); + }); + + /** + * This method is like `_.union` except that it accepts `comparator` which + * is invoked to compare elements of `arrays`. Result values are chosen from + * the first array in which the value occurs. The comparator is invoked + * with two arguments: (arrVal, othVal). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of combined values. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; + * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; + * + * _.unionWith(objects, others, _.isEqual); + * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] + */ + var unionWith = baseRest(function(arrays) { + var comparator = last(arrays); + comparator = typeof comparator == 'function' ? comparator : undefined; + return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator); + }); + + /** + * Creates a duplicate-free version of an array, using + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons, in which only the first occurrence of each element + * is kept. The order of result values is determined by the order they occur + * in the array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * _.uniq([2, 1, 2]); + * // => [2, 1] + */ + function uniq(array) { + return (array && array.length) ? baseUniq(array) : []; + } + + /** + * This method is like `_.uniq` except that it accepts `iteratee` which is + * invoked for each element in `array` to generate the criterion by which + * uniqueness is computed. The order of result values is determined by the + * order they occur in the array. The iteratee is invoked with one argument: + * (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * _.uniqBy([2.1, 1.2, 2.3], Math.floor); + * // => [2.1, 1.2] + * + * // The `_.property` iteratee shorthand. + * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x'); + * // => [{ 'x': 1 }, { 'x': 2 }] + */ + function uniqBy(array, iteratee) { + return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : []; + } + + /** + * This method is like `_.uniq` except that it accepts `comparator` which + * is invoked to compare elements of `array`. The order of result values is + * determined by the order they occur in the array.The comparator is invoked + * with two arguments: (arrVal, othVal). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }]; + * + * _.uniqWith(objects, _.isEqual); + * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }] + */ + function uniqWith(array, comparator) { + comparator = typeof comparator == 'function' ? comparator : undefined; + return (array && array.length) ? baseUniq(array, undefined, comparator) : []; + } + + /** + * This method is like `_.zip` except that it accepts an array of grouped + * elements and creates an array regrouping the elements to their pre-zip + * configuration. + * + * @static + * @memberOf _ + * @since 1.2.0 + * @category Array + * @param {Array} array The array of grouped elements to process. + * @returns {Array} Returns the new array of regrouped elements. + * @example + * + * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]); + * // => [['a', 1, true], ['b', 2, false]] + * + * _.unzip(zipped); + * // => [['a', 'b'], [1, 2], [true, false]] + */ + function unzip(array) { + if (!(array && array.length)) { + return []; + } + var length = 0; + array = arrayFilter(array, function(group) { + if (isArrayLikeObject(group)) { + length = nativeMax(group.length, length); + return true; + } + }); + return baseTimes(length, function(index) { + return arrayMap(array, baseProperty(index)); + }); + } + + /** + * This method is like `_.unzip` except that it accepts `iteratee` to specify + * how regrouped values should be combined. The iteratee is invoked with the + * elements of each group: (...group). + * + * @static + * @memberOf _ + * @since 3.8.0 + * @category Array + * @param {Array} array The array of grouped elements to process. + * @param {Function} [iteratee=_.identity] The function to combine + * regrouped values. + * @returns {Array} Returns the new array of regrouped elements. + * @example + * + * var zipped = _.zip([1, 2], [10, 20], [100, 200]); + * // => [[1, 10, 100], [2, 20, 200]] + * + * _.unzipWith(zipped, _.add); + * // => [3, 30, 300] + */ + 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); + }); + } + + /** + * Creates an array excluding all given values using + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * **Note:** Unlike `_.pull`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...*} [values] The values to exclude. + * @returns {Array} Returns the new array of filtered values. + * @see _.difference, _.xor + * @example + * + * _.without([2, 1, 2, 3], 1, 2); + * // => [3] + */ + var without = baseRest(function(array, values) { + return isArrayLikeObject(array) + ? baseDifference(array, values) + : []; + }); + + /** + * Creates an array of unique values that is the + * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference) + * of the given arrays. The order of result values is determined by the order + * they occur in the arrays. + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @returns {Array} Returns the new array of filtered values. + * @see _.difference, _.without + * @example + * + * _.xor([2, 1], [2, 3]); + * // => [1, 3] + */ + var xor = baseRest(function(arrays) { + return baseXor(arrayFilter(arrays, isArrayLikeObject)); + }); + + /** + * This method is like `_.xor` except that it accepts `iteratee` which is + * invoked for each element of each `arrays` to generate the criterion by + * which by which they're compared. The order of result values is determined + * by the order they occur in the arrays. The iteratee is invoked with one + * argument: (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor); + * // => [1.2, 3.4] + * + * // The `_.property` iteratee shorthand. + * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); + * // => [{ 'x': 2 }] + */ + var xorBy = baseRest(function(arrays) { + var iteratee = last(arrays); + if (isArrayLikeObject(iteratee)) { + iteratee = undefined; + } + return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2)); + }); + + /** + * This method is like `_.xor` except that it accepts `comparator` which is + * invoked to compare elements of `arrays`. The order of result values is + * determined by the order they occur in the arrays. The comparator is invoked + * with two arguments: (arrVal, othVal). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; + * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; + * + * _.xorWith(objects, others, _.isEqual); + * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] + */ + var xorWith = baseRest(function(arrays) { + var comparator = last(arrays); + comparator = typeof comparator == 'function' ? comparator : undefined; + return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator); + }); + + /** + * Creates an array of grouped elements, the first of which contains the + * first elements of the given arrays, the second of which contains the + * second elements of the given arrays, and so on. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {...Array} [arrays] The arrays to process. + * @returns {Array} Returns the new array of grouped elements. + * @example + * + * _.zip(['a', 'b'], [1, 2], [true, false]); + * // => [['a', 1, true], ['b', 2, false]] + */ + var zip = baseRest(unzip); + + /** + * This method is like `_.fromPairs` except that it accepts two arrays, + * one of property identifiers and one of corresponding values. + * + * @static + * @memberOf _ + * @since 0.4.0 + * @category Array + * @param {Array} [props=[]] The property identifiers. + * @param {Array} [values=[]] The property values. + * @returns {Object} Returns the new object. + * @example + * + * _.zipObject(['a', 'b'], [1, 2]); + * // => { 'a': 1, 'b': 2 } + */ + function zipObject(props, values) { + return baseZipObject(props || [], values || [], assignValue); + } + + /** + * This method is like `_.zipObject` except that it supports property paths. + * + * @static + * @memberOf _ + * @since 4.1.0 + * @category Array + * @param {Array} [props=[]] The property identifiers. + * @param {Array} [values=[]] The property values. + * @returns {Object} Returns the new object. + * @example + * + * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]); + * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } } + */ + function zipObjectDeep(props, values) { + return baseZipObject(props || [], values || [], baseSet); + } + + /** + * This method is like `_.zip` except that it accepts `iteratee` to specify + * how grouped values should be combined. The iteratee is invoked with the + * elements of each group: (...group). + * + * @static + * @memberOf _ + * @since 3.8.0 + * @category Array + * @param {...Array} [arrays] The arrays to process. + * @param {Function} [iteratee=_.identity] The function to combine + * grouped values. + * @returns {Array} Returns the new array of grouped elements. + * @example + * + * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) { + * return a + b + c; + * }); + * // => [111, 222] + */ + 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); + }); + + /*------------------------------------------------------------------------*/ + + /** + * Creates a `lodash` wrapper instance that wraps `value` with explicit method + * chain sequences enabled. The result of such sequences must be unwrapped + * with `_#value`. + * + * @static + * @memberOf _ + * @since 1.3.0 + * @category Seq + * @param {*} value The value to wrap. + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 40 }, + * { 'user': 'pebbles', 'age': 1 } + * ]; + * + * var youngest = _ + * .chain(users) + * .sortBy('age') + * .map(function(o) { + * return o.user + ' is ' + o.age; + * }) + * .head() + * .value(); + * // => 'pebbles is 1' + */ + function chain(value) { + var result = lodash(value); + result.__chain__ = true; + return result; + } + + /** + * This method invokes `interceptor` and returns `value`. The interceptor + * is invoked with one argument; (value). The purpose of this method is to + * "tap into" a method chain sequence in order to modify intermediate results. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Seq + * @param {*} value The value to provide to `interceptor`. + * @param {Function} interceptor The function to invoke. + * @returns {*} Returns `value`. + * @example + * + * _([1, 2, 3]) + * .tap(function(array) { + * // Mutate input array. + * array.pop(); + * }) + * .reverse() + * .value(); + * // => [2, 1] + */ + function tap(value, interceptor) { + interceptor(value); + return value; + } + + /** + * This method is like `_.tap` except that it returns the result of `interceptor`. + * The purpose of this method is to "pass thru" values replacing intermediate + * results in a method chain sequence. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Seq + * @param {*} value The value to provide to `interceptor`. + * @param {Function} interceptor The function to invoke. + * @returns {*} Returns the result of `interceptor`. + * @example + * + * _(' abc ') + * .chain() + * .trim() + * .thru(function(value) { + * return [value]; + * }) + * .value(); + * // => ['abc'] + */ + function thru(value, interceptor) { + return interceptor(value); + } + + /** + * This method is the wrapper version of `_.at`. + * + * @name at + * @memberOf _ + * @since 1.0.0 + * @category Seq + * @param {...(string|string[])} [paths] The property paths to pick. + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] }; + * + * _(object).at(['a[0].b.c', 'a[1]']).value(); + * // => [3, 4] + */ + 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; + }); + }); + + /** + * Creates a `lodash` wrapper instance with explicit method chain sequences enabled. + * + * @name chain + * @memberOf _ + * @since 0.1.0 + * @category Seq + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 40 } + * ]; + * + * // A sequence without explicit chaining. + * _(users).head(); + * // => { 'user': 'barney', 'age': 36 } + * + * // A sequence with explicit chaining. + * _(users) + * .chain() + * .head() + * .pick('user') + * .value(); + * // => { 'user': 'barney' } + */ + function wrapperChain() { + return chain(this); + } + + /** + * Executes the chain sequence and returns the wrapped result. + * + * @name commit + * @memberOf _ + * @since 3.2.0 + * @category Seq + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var array = [1, 2]; + * var wrapped = _(array).push(3); + * + * console.log(array); + * // => [1, 2] + * + * wrapped = wrapped.commit(); + * console.log(array); + * // => [1, 2, 3] + * + * wrapped.last(); + * // => 3 + * + * console.log(array); + * // => [1, 2, 3] + */ + function wrapperCommit() { + return new LodashWrapper(this.value(), this.__chain__); + } + + /** + * Gets the next value on a wrapped object following the + * [iterator protocol](https://mdn.io/iteration_protocols#iterator). + * + * @name next + * @memberOf _ + * @since 4.0.0 + * @category Seq + * @returns {Object} Returns the next iterator value. + * @example + * + * var wrapped = _([1, 2]); + * + * wrapped.next(); + * // => { 'done': false, 'value': 1 } + * + * wrapped.next(); + * // => { 'done': false, 'value': 2 } + * + * wrapped.next(); + * // => { 'done': true, 'value': undefined } + */ + 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 }; + } + + /** + * Enables the wrapper to be iterable. + * + * @name Symbol.iterator + * @memberOf _ + * @since 4.0.0 + * @category Seq + * @returns {Object} Returns the wrapper object. + * @example + * + * var wrapped = _([1, 2]); + * + * wrapped[Symbol.iterator]() === wrapped; + * // => true + * + * Array.from(wrapped); + * // => [1, 2] + */ + function wrapperToIterator() { + return this; + } + + /** + * Creates a clone of the chain sequence planting `value` as the wrapped value. + * + * @name plant + * @memberOf _ + * @since 3.2.0 + * @category Seq + * @param {*} value The value to plant. + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * function square(n) { + * return n * n; + * } + * + * var wrapped = _([1, 2]).map(square); + * var other = wrapped.plant([3, 4]); + * + * other.value(); + * // => [9, 16] + * + * wrapped.value(); + * // => [1, 4] + */ + 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; + } + + /** + * This method is the wrapper version of `_.reverse`. + * + * **Note:** This method mutates the wrapped array. + * + * @name reverse + * @memberOf _ + * @since 0.1.0 + * @category Seq + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var array = [1, 2, 3]; + * + * _(array).reverse().value() + * // => [3, 2, 1] + * + * console.log(array); + * // => [3, 2, 1] + */ + 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); + } + + /** + * Executes the chain sequence to resolve the unwrapped value. + * + * @name value + * @memberOf _ + * @since 0.1.0 + * @alias toJSON, valueOf + * @category Seq + * @returns {*} Returns the resolved unwrapped value. + * @example + * + * _([1, 2, 3]).value(); + * // => [1, 2, 3] + */ + function wrapperValue() { + return baseWrapperValue(this.__wrapped__, this.__actions__); + } + + /*------------------------------------------------------------------------*/ + + /** + * Creates an object composed of keys generated from the results of running + * each element of `collection` thru `iteratee`. The corresponding value of + * each key is the number of times the key was returned by `iteratee`. The + * iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 0.5.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. + * @returns {Object} Returns the composed aggregate object. + * @example + * + * _.countBy([6.1, 4.2, 6.3], Math.floor); + * // => { '4': 1, '6': 2 } + * + * // The `_.property` iteratee shorthand. + * _.countBy(['one', 'two', 'three'], 'length'); + * // => { '3': 2, '5': 1 } + */ + var countBy = createAggregator(function(result, value, key) { + if (hasOwnProperty.call(result, key)) { + ++result[key]; + } else { + baseAssignValue(result, key, 1); + } + }); + + /** + * Checks if `predicate` returns truthy for **all** elements of `collection`. + * Iteration is stopped once `predicate` returns falsey. The predicate is + * invoked with three arguments: (value, index|key, collection). + * + * **Note:** This method returns `true` for + * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because + * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of + * elements of empty collections. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false`. + * @example + * + * _.every([true, 1, null, 'yes'], Boolean); + * // => false + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': false }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * // The `_.matches` iteratee shorthand. + * _.every(users, { 'user': 'barney', 'active': false }); + * // => false + * + * // The `_.matchesProperty` iteratee shorthand. + * _.every(users, ['active', false]); + * // => true + * + * // The `_.property` iteratee shorthand. + * _.every(users, 'active'); + * // => false + */ + 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)); + } + + /** + * Iterates over elements of `collection`, returning an array of all elements + * `predicate` returns truthy for. The predicate is invoked with three + * arguments: (value, index|key, collection). + * + * **Note:** Unlike `_.remove`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + * @see _.reject + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * _.filter(users, function(o) { return !o.active; }); + * // => objects for ['fred'] + * + * // The `_.matches` iteratee shorthand. + * _.filter(users, { 'age': 36, 'active': true }); + * // => objects for ['barney'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.filter(users, ['active', false]); + * // => objects for ['fred'] + * + * // The `_.property` iteratee shorthand. + * _.filter(users, 'active'); + * // => objects for ['barney'] + * + * // Combining several predicates using `_.overEvery` or `_.overSome`. + * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]])); + * // => objects for ['fred', 'barney'] + */ + function filter(collection, predicate) { + var func = isArray(collection) ? arrayFilter : baseFilter; + return func(collection, getIteratee(predicate, 3)); + } + + /** + * Iterates over elements of `collection`, returning the first element + * `predicate` returns truthy for. The predicate is invoked with three + * arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=0] The index to search from. + * @returns {*} Returns the matched element, else `undefined`. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false }, + * { 'user': 'pebbles', 'age': 1, 'active': true } + * ]; + * + * _.find(users, function(o) { return o.age < 40; }); + * // => object for 'barney' + * + * // The `_.matches` iteratee shorthand. + * _.find(users, { 'age': 1, 'active': true }); + * // => object for 'pebbles' + * + * // The `_.matchesProperty` iteratee shorthand. + * _.find(users, ['active', false]); + * // => object for 'fred' + * + * // The `_.property` iteratee shorthand. + * _.find(users, 'active'); + * // => object for 'barney' + */ + var find = createFind(findIndex); + + /** + * This method is like `_.find` except that it iterates over elements of + * `collection` from right to left. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Collection + * @param {Array|Object} collection The collection to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=collection.length-1] The index to search from. + * @returns {*} Returns the matched element, else `undefined`. + * @example + * + * _.findLast([1, 2, 3, 4], function(n) { + * return n % 2 == 1; + * }); + * // => 3 + */ + var findLast = createFind(findLastIndex); + + /** + * Creates a flattened array of values by running each element in `collection` + * thru `iteratee` and flattening the mapped results. The iteratee is invoked + * with three arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new flattened array. + * @example + * + * function duplicate(n) { + * return [n, n]; + * } + * + * _.flatMap([1, 2], duplicate); + * // => [1, 1, 2, 2] + */ + function flatMap(collection, iteratee) { + return baseFlatten(map(collection, iteratee), 1); + } + + /** + * This method is like `_.flatMap` except that it recursively flattens the + * mapped results. + * + * @static + * @memberOf _ + * @since 4.7.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new flattened array. + * @example + * + * function duplicate(n) { + * return [[[n, n]]]; + * } + * + * _.flatMapDeep([1, 2], duplicate); + * // => [1, 1, 2, 2] + */ + function flatMapDeep(collection, iteratee) { + return baseFlatten(map(collection, iteratee), INFINITY); + } + + /** + * This method is like `_.flatMap` except that it recursively flattens the + * mapped results up to `depth` times. + * + * @static + * @memberOf _ + * @since 4.7.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {number} [depth=1] The maximum recursion depth. + * @returns {Array} Returns the new flattened array. + * @example + * + * function duplicate(n) { + * return [[[n, n]]]; + * } + * + * _.flatMapDepth([1, 2], duplicate, 2); + * // => [[1, 1], [2, 2]] + */ + function flatMapDepth(collection, iteratee, depth) { + depth = depth === undefined ? 1 : toInteger(depth); + return baseFlatten(map(collection, iteratee), depth); + } + + /** + * Iterates over elements of `collection` and invokes `iteratee` for each element. + * The iteratee is invoked with three arguments: (value, index|key, collection). + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * **Note:** As with other "Collections" methods, objects with a "length" + * property are iterated like arrays. To avoid this behavior use `_.forIn` + * or `_.forOwn` for object iteration. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @alias each + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + * @see _.forEachRight + * @example + * + * _.forEach([1, 2], function(value) { + * console.log(value); + * }); + * // => Logs `1` then `2`. + * + * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) { + * console.log(key); + * }); + * // => Logs 'a' then 'b' (iteration order is not guaranteed). + */ + function forEach(collection, iteratee) { + var func = isArray(collection) ? arrayEach : baseEach; + return func(collection, getIteratee(iteratee, 3)); + } + + /** + * This method is like `_.forEach` except that it iterates over elements of + * `collection` from right to left. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @alias eachRight + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + * @see _.forEach + * @example + * + * _.forEachRight([1, 2], function(value) { + * console.log(value); + * }); + * // => Logs `2` then `1`. + */ + function forEachRight(collection, iteratee) { + var func = isArray(collection) ? arrayEachRight : baseEachRight; + return func(collection, getIteratee(iteratee, 3)); + } + + /** + * Creates an object composed of keys generated from the results of running + * each element of `collection` thru `iteratee`. The order of grouped values + * is determined by the order they occur in `collection`. The corresponding + * value of each key is an array of elements responsible for generating the + * key. The iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. + * @returns {Object} Returns the composed aggregate object. + * @example + * + * _.groupBy([6.1, 4.2, 6.3], Math.floor); + * // => { '4': [4.2], '6': [6.1, 6.3] } + * + * // The `_.property` iteratee shorthand. + * _.groupBy(['one', 'two', 'three'], 'length'); + * // => { '3': ['one', 'two'], '5': ['three'] } + */ + var groupBy = createAggregator(function(result, value, key) { + if (hasOwnProperty.call(result, key)) { + result[key].push(value); + } else { + baseAssignValue(result, key, [value]); + } + }); + + /** + * Checks if `value` is in `collection`. If `collection` is a string, it's + * checked for a substring of `value`, otherwise + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * is used for equality comparisons. If `fromIndex` is negative, it's used as + * the offset from the end of `collection`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object|string} collection The collection to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=0] The index to search from. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. + * @returns {boolean} Returns `true` if `value` is found, else `false`. + * @example + * + * _.includes([1, 2, 3], 1); + * // => true + * + * _.includes([1, 2, 3], 1, 2); + * // => false + * + * _.includes({ 'a': 1, 'b': 2 }, 1); + * // => true + * + * _.includes('abcd', 'bc'); + * // => true + */ + function includes(collection, value, fromIndex, guard) { + collection = isArrayLike(collection) ? collection : values(collection); + fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0; + + var length = collection.length; + if (fromIndex < 0) { + fromIndex = nativeMax(length + fromIndex, 0); + } + return isString(collection) + ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1) + : (!!length && baseIndexOf(collection, value, fromIndex) > -1); + } + + /** + * Invokes the method at `path` of each element in `collection`, returning + * an array of the results of each invoked method. Any additional arguments + * are provided to each invoked method. If `path` is a function, it's invoked + * for, and `this` bound to, each element in `collection`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Array|Function|string} path The path of the method to invoke or + * the function invoked per iteration. + * @param {...*} [args] The arguments to invoke each method with. + * @returns {Array} Returns the array of results. + * @example + * + * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort'); + * // => [[1, 5, 7], [1, 2, 3]] + * + * _.invokeMap([123, 456], String.prototype.split, ''); + * // => [['1', '2', '3'], ['4', '5', '6']] + */ + var invokeMap = baseRest(function(collection, path, args) { + var index = -1, + isFunc = typeof path == 'function', + result = isArrayLike(collection) ? Array(collection.length) : []; + + baseEach(collection, function(value) { + result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args); + }); + return result; + }); + + /** + * Creates an object composed of keys generated from the results of running + * each element of `collection` thru `iteratee`. The corresponding value of + * each key is the last element responsible for generating the key. The + * iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. + * @returns {Object} Returns the composed aggregate object. + * @example + * + * var array = [ + * { 'dir': 'left', 'code': 97 }, + * { 'dir': 'right', 'code': 100 } + * ]; + * + * _.keyBy(array, function(o) { + * return String.fromCharCode(o.code); + * }); + * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } } + * + * _.keyBy(array, 'dir'); + * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } } + */ + var keyBy = createAggregator(function(result, value, key) { + baseAssignValue(result, key, value); + }); + + /** + * Creates an array of values by running each element in `collection` thru + * `iteratee`. The iteratee is invoked with three arguments: + * (value, index|key, collection). + * + * Many lodash methods are guarded to work as iteratees for methods like + * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`. + * + * The guarded methods are: + * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`, + * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`, + * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`, + * `template`, `trim`, `trimEnd`, `trimStart`, and `words` + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + * @example + * + * function square(n) { + * return n * n; + * } + * + * _.map([4, 8], square); + * // => [16, 64] + * + * _.map({ 'a': 4, 'b': 8 }, square); + * // => [16, 64] (iteration order is not guaranteed) + * + * var users = [ + * { 'user': 'barney' }, + * { 'user': 'fred' } + * ]; + * + * // The `_.property` iteratee shorthand. + * _.map(users, 'user'); + * // => ['barney', 'fred'] + */ + function map(collection, iteratee) { + var func = isArray(collection) ? arrayMap : baseMap; + return func(collection, getIteratee(iteratee, 3)); + } + + /** + * This method is like `_.sortBy` except that it allows specifying the sort + * orders of the iteratees to sort by. If `orders` is unspecified, all values + * are sorted in ascending order. Otherwise, specify an order of "desc" for + * descending or "asc" for ascending sort order of corresponding values. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]] + * The iteratees to sort by. + * @param {string[]} [orders] The sort orders of `iteratees`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. + * @returns {Array} Returns the new sorted array. + * @example + * + * var users = [ + * { 'user': 'fred', 'age': 48 }, + * { 'user': 'barney', 'age': 34 }, + * { 'user': 'fred', 'age': 40 }, + * { 'user': 'barney', 'age': 36 } + * ]; + * + * // Sort by `user` in ascending order and by `age` in descending order. + * _.orderBy(users, ['user', 'age'], ['asc', 'desc']); + * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]] + */ + 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); + } + + /** + * Creates an array of elements split into two groups, the first of which + * contains elements `predicate` returns truthy for, the second of which + * contains elements `predicate` returns falsey for. The predicate is + * invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the array of grouped elements. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': false }, + * { 'user': 'fred', 'age': 40, 'active': true }, + * { 'user': 'pebbles', 'age': 1, 'active': false } + * ]; + * + * _.partition(users, function(o) { return o.active; }); + * // => objects for [['fred'], ['barney', 'pebbles']] + * + * // The `_.matches` iteratee shorthand. + * _.partition(users, { 'age': 1, 'active': false }); + * // => objects for [['pebbles'], ['barney', 'fred']] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.partition(users, ['active', false]); + * // => objects for [['barney', 'pebbles'], ['fred']] + * + * // The `_.property` iteratee shorthand. + * _.partition(users, 'active'); + * // => objects for [['fred'], ['barney', 'pebbles']] + */ + var partition = createAggregator(function(result, value, key) { + result[key ? 0 : 1].push(value); + }, function() { return [[], []]; }); + + /** + * Reduces `collection` to a value which is the accumulated result of running + * each element in `collection` thru `iteratee`, where each successive + * invocation is supplied the return value of the previous. If `accumulator` + * is not given, the first element of `collection` is used as the initial + * value. The iteratee is invoked with four arguments: + * (accumulator, value, index|key, collection). + * + * Many lodash methods are guarded to work as iteratees for methods like + * `_.reduce`, `_.reduceRight`, and `_.transform`. + * + * The guarded methods are: + * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`, + * and `sortBy` + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @returns {*} Returns the accumulated value. + * @see _.reduceRight + * @example + * + * _.reduce([1, 2], function(sum, n) { + * return sum + n; + * }, 0); + * // => 3 + * + * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { + * (result[value] || (result[value] = [])).push(key); + * return result; + * }, {}); + * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed) + */ + function reduce(collection, iteratee, accumulator) { + var func = isArray(collection) ? arrayReduce : baseReduce, + initAccum = arguments.length < 3; + + return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach); + } + + /** + * This method is like `_.reduce` except that it iterates over elements of + * `collection` from right to left. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @returns {*} Returns the accumulated value. + * @see _.reduce + * @example + * + * var array = [[0, 1], [2, 3], [4, 5]]; + * + * _.reduceRight(array, function(flattened, other) { + * return flattened.concat(other); + * }, []); + * // => [4, 5, 2, 3, 0, 1] + */ + function reduceRight(collection, iteratee, accumulator) { + var func = isArray(collection) ? arrayReduceRight : baseReduce, + initAccum = arguments.length < 3; + + return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight); + } + + /** + * The opposite of `_.filter`; this method returns the elements of `collection` + * that `predicate` does **not** return truthy for. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + * @see _.filter + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': false }, + * { 'user': 'fred', 'age': 40, 'active': true } + * ]; + * + * _.reject(users, function(o) { return !o.active; }); + * // => objects for ['fred'] + * + * // The `_.matches` iteratee shorthand. + * _.reject(users, { 'age': 40, 'active': true }); + * // => objects for ['barney'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.reject(users, ['active', false]); + * // => objects for ['fred'] + * + * // The `_.property` iteratee shorthand. + * _.reject(users, 'active'); + * // => objects for ['barney'] + */ + function reject(collection, predicate) { + var func = isArray(collection) ? arrayFilter : baseFilter; + return func(collection, negate(getIteratee(predicate, 3))); + } + + /** + * Gets a random element from `collection`. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Collection + * @param {Array|Object} collection The collection to sample. + * @returns {*} Returns the random element. + * @example + * + * _.sample([1, 2, 3, 4]); + * // => 2 + */ + function sample(collection) { + var func = isArray(collection) ? arraySample : baseSample; + return func(collection); + } + + /** + * Gets `n` random elements at unique keys from `collection` up to the + * size of `collection`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to sample. + * @param {number} [n=1] The number of elements to sample. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the random elements. + * @example + * + * _.sampleSize([1, 2, 3], 2); + * // => [3, 1] + * + * _.sampleSize([1, 2, 3], 4); + * // => [2, 3, 1] + */ + 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); + } + + /** + * Creates an array of shuffled values, using a version of the + * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to shuffle. + * @returns {Array} Returns the new shuffled array. + * @example + * + * _.shuffle([1, 2, 3, 4]); + * // => [4, 1, 3, 2] + */ + function shuffle(collection) { + var func = isArray(collection) ? arrayShuffle : baseShuffle; + return func(collection); + } + + /** + * Gets the size of `collection` by returning its length for array-like + * values or the number of own enumerable string keyed properties for objects. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object|string} collection The collection to inspect. + * @returns {number} Returns the collection size. + * @example + * + * _.size([1, 2, 3]); + * // => 3 + * + * _.size({ 'a': 1, 'b': 2 }); + * // => 2 + * + * _.size('pebbles'); + * // => 7 + */ + function size(collection) { + if (collection == null) { + return 0; + } + if (isArrayLike(collection)) { + return isString(collection) ? stringSize(collection) : collection.length; + } + var tag = getTag(collection); + if (tag == mapTag || tag == setTag) { + return collection.size; + } + return baseKeys(collection).length; + } + + /** + * Checks if `predicate` returns truthy for **any** element of `collection`. + * Iteration is stopped once `predicate` returns truthy. The predicate is + * invoked with three arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + * @example + * + * _.some([null, 0, 'yes', false], Boolean); + * // => true + * + * var users = [ + * { 'user': 'barney', 'active': true }, + * { 'user': 'fred', 'active': false } + * ]; + * + * // The `_.matches` iteratee shorthand. + * _.some(users, { 'user': 'barney', 'active': false }); + * // => false + * + * // The `_.matchesProperty` iteratee shorthand. + * _.some(users, ['active', false]); + * // => true + * + * // The `_.property` iteratee shorthand. + * _.some(users, 'active'); + * // => true + */ + 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)); + } + + /** + * Creates an array of elements, sorted in ascending order by the results of + * running each element in a collection thru each iteratee. This method + * performs a stable sort, that is, it preserves the original sort order of + * equal elements. The iteratees are invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {...(Function|Function[])} [iteratees=[_.identity]] + * The iteratees to sort by. + * @returns {Array} Returns the new sorted array. + * @example + * + * var users = [ + * { 'user': 'fred', 'age': 48 }, + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 30 }, + * { 'user': 'barney', 'age': 34 } + * ]; + * + * _.sortBy(users, [function(o) { return o.user; }]); + * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]] + * + * _.sortBy(users, ['user', 'age']); + * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]] + */ + var sortBy = baseRest(function(collection, iteratees) { + if (collection == null) { + return []; + } + var length = iteratees.length; + if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) { + iteratees = []; + } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) { + iteratees = [iteratees[0]]; + } + return baseOrderBy(collection, baseFlatten(iteratees, 1), []); + }); + + /*------------------------------------------------------------------------*/ + + /** + * Gets the timestamp of the number of milliseconds that have elapsed since + * the Unix epoch (1 January 1970 00:00:00 UTC). + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Date + * @returns {number} Returns the timestamp. + * @example + * + * _.defer(function(stamp) { + * console.log(_.now() - stamp); + * }, _.now()); + * // => Logs the number of milliseconds it took for the deferred invocation. + */ + var now = ctxNow || function() { + return root.Date.now(); + }; + + /*------------------------------------------------------------------------*/ + + /** + * The opposite of `_.before`; this method creates a function that invokes + * `func` once it's called `n` or more times. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {number} n The number of calls before `func` is invoked. + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new restricted function. + * @example + * + * var saves = ['profile', 'settings']; + * + * var done = _.after(saves.length, function() { + * console.log('done saving!'); + * }); + * + * _.forEach(saves, function(type) { + * asyncSave({ 'type': type, 'complete': done }); + * }); + * // => Logs 'done saving!' after the two async saves have completed. + */ + function after(n, func) { + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + n = toInteger(n); + return function() { + if (--n < 1) { + return func.apply(this, arguments); + } + }; + } + + /** + * Creates a function that invokes `func`, with up to `n` arguments, + * ignoring any additional arguments. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {Function} func The function to cap arguments for. + * @param {number} [n=func.length] The arity cap. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Function} Returns the new capped function. + * @example + * + * _.map(['6', '8', '10'], _.ary(parseInt, 1)); + * // => [6, 8, 10] + */ + 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); + } + + /** + * Creates a function that invokes `func`, with the `this` binding and arguments + * of the created function, while it's called less than `n` times. Subsequent + * calls to the created function return the result of the last `func` invocation. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {number} n The number of calls at which `func` is no longer invoked. + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new restricted function. + * @example + * + * jQuery(element).on('click', _.before(5, addContactToList)); + * // => Allows adding up to 4 contacts to the list. + */ + 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; + }; + } + + /** + * Creates a function that invokes `func` with the `this` binding of `thisArg` + * and `partials` prepended to the arguments it receives. + * + * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds, + * may be used as a placeholder for partially applied arguments. + * + * **Note:** Unlike native `Function#bind`, this method doesn't set the "length" + * property of bound functions. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to bind. + * @param {*} thisArg The `this` binding of `func`. + * @param {...*} [partials] The arguments to be partially applied. + * @returns {Function} Returns the new bound function. + * @example + * + * function greet(greeting, punctuation) { + * return greeting + ' ' + this.user + punctuation; + * } + * + * var object = { 'user': 'fred' }; + * + * var bound = _.bind(greet, object, 'hi'); + * bound('!'); + * // => 'hi fred!' + * + * // Bound with placeholders. + * var bound = _.bind(greet, object, _, '!'); + * bound('hi'); + * // => 'hi fred!' + */ + var bind = baseRest(function(func, thisArg, partials) { + var bitmask = WRAP_BIND_FLAG; + if (partials.length) { + var holders = replaceHolders(partials, getHolder(bind)); + bitmask |= WRAP_PARTIAL_FLAG; + } + return createWrap(func, bitmask, thisArg, partials, holders); + }); + + /** + * Creates a function that invokes the method at `object[key]` with `partials` + * prepended to the arguments it receives. + * + * This method differs from `_.bind` by allowing bound functions to reference + * methods that may be redefined or don't yet exist. See + * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern) + * for more details. + * + * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic + * builds, may be used as a placeholder for partially applied arguments. + * + * @static + * @memberOf _ + * @since 0.10.0 + * @category Function + * @param {Object} object The object to invoke the method on. + * @param {string} key The key of the method. + * @param {...*} [partials] The arguments to be partially applied. + * @returns {Function} Returns the new bound function. + * @example + * + * var object = { + * 'user': 'fred', + * 'greet': function(greeting, punctuation) { + * return greeting + ' ' + this.user + punctuation; + * } + * }; + * + * var bound = _.bindKey(object, 'greet', 'hi'); + * bound('!'); + * // => 'hi fred!' + * + * object.greet = function(greeting, punctuation) { + * return greeting + 'ya ' + this.user + punctuation; + * }; + * + * bound('!'); + * // => 'hiya fred!' + * + * // Bound with placeholders. + * var bound = _.bindKey(object, 'greet', _, '!'); + * bound('hi'); + * // => 'hiya fred!' + */ + var bindKey = baseRest(function(object, key, partials) { + var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG; + if (partials.length) { + var holders = replaceHolders(partials, getHolder(bindKey)); + bitmask |= WRAP_PARTIAL_FLAG; + } + return createWrap(key, bitmask, object, partials, holders); + }); + + /** + * Creates a function that accepts arguments of `func` and either invokes + * `func` returning its result, if at least `arity` number of arguments have + * been provided, or returns a function that accepts the remaining `func` + * arguments, and so on. The arity of `func` may be specified if `func.length` + * is not sufficient. + * + * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds, + * may be used as a placeholder for provided arguments. + * + * **Note:** This method doesn't set the "length" property of curried functions. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Function + * @param {Function} func The function to curry. + * @param {number} [arity=func.length] The arity of `func`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Function} Returns the new curried function. + * @example + * + * var abc = function(a, b, c) { + * return [a, b, c]; + * }; + * + * var curried = _.curry(abc); + * + * curried(1)(2)(3); + * // => [1, 2, 3] + * + * curried(1, 2)(3); + * // => [1, 2, 3] + * + * curried(1, 2, 3); + * // => [1, 2, 3] + * + * // Curried with placeholders. + * curried(1)(_, 3)(2); + * // => [1, 2, 3] + */ + 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; + } + + /** + * This method is like `_.curry` except that arguments are applied to `func` + * in the manner of `_.partialRight` instead of `_.partial`. + * + * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic + * builds, may be used as a placeholder for provided arguments. + * + * **Note:** This method doesn't set the "length" property of curried functions. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {Function} func The function to curry. + * @param {number} [arity=func.length] The arity of `func`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Function} Returns the new curried function. + * @example + * + * var abc = function(a, b, c) { + * return [a, b, c]; + * }; + * + * var curried = _.curryRight(abc); + * + * curried(3)(2)(1); + * // => [1, 2, 3] + * + * curried(2, 3)(1); + * // => [1, 2, 3] + * + * curried(1, 2, 3); + * // => [1, 2, 3] + * + * // Curried with placeholders. + * curried(3)(1, _)(2); + * // => [1, 2, 3] + */ + 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; + } + + /** + * Creates a debounced function that delays invoking `func` until after `wait` + * milliseconds have elapsed since the last time the debounced function was + * invoked. The debounced function comes with a `cancel` method to cancel + * delayed `func` invocations and a `flush` method to immediately invoke them. + * Provide `options` to indicate whether `func` should be invoked on the + * leading and/or trailing edge of the `wait` timeout. The `func` is invoked + * with the last arguments provided to the debounced function. Subsequent + * calls to the debounced function return the result of the last `func` + * invocation. + * + * **Note:** If `leading` and `trailing` options are `true`, `func` is + * invoked on the trailing edge of the timeout only if the debounced function + * is invoked more than once during the `wait` timeout. + * + * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred + * until to the next tick, similar to `setTimeout` with a timeout of `0`. + * + * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) + * for details over the differences between `_.debounce` and `_.throttle`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to debounce. + * @param {number} [wait=0] The number of milliseconds to delay. + * @param {Object} [options={}] The options object. + * @param {boolean} [options.leading=false] + * Specify invoking on the leading edge of the timeout. + * @param {number} [options.maxWait] + * The maximum time `func` is allowed to be delayed before it's invoked. + * @param {boolean} [options.trailing=true] + * Specify invoking on the trailing edge of the timeout. + * @returns {Function} Returns the new debounced function. + * @example + * + * // Avoid costly calculations while the window size is in flux. + * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); + * + * // Invoke `sendMail` when clicked, debouncing subsequent calls. + * jQuery(element).on('click', _.debounce(sendMail, 300, { + * 'leading': true, + * 'trailing': false + * })); + * + * // Ensure `batchLog` is invoked once after 1 second of debounced calls. + * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 }); + * var source = new EventSource('/stream'); + * jQuery(source).on('message', debounced); + * + * // Cancel the trailing debounced invocation. + * jQuery(window).on('popstate', debounced.cancel); + */ + 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. + lastInvokeTime = time; + // Start the timer for the trailing edge. + timerId = setTimeout(timerExpired, wait); + // Invoke the leading edge. + 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 + // trailing edge, the system time has gone backwards and we're treating + // it as the trailing edge, or we've hit the `maxWait` limit. + return (lastCallTime === undefined || (timeSinceLastCall >= wait) || + (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait)); + } + + function timerExpired() { + var time = now(); + if (shouldInvoke(time)) { + return trailingEdge(time); + } + // Restart the timer. + timerId = setTimeout(timerExpired, remainingWait(time)); + } + + function trailingEdge(time) { + timerId = undefined; + + // Only invoke if we have `lastArgs` which means `func` has been + // debounced at least once. + 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. + 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; + } + + /** + * Defers invoking the `func` until the current call stack has cleared. Any + * additional arguments are provided to `func` when it's invoked. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to defer. + * @param {...*} [args] The arguments to invoke `func` with. + * @returns {number} Returns the timer id. + * @example + * + * _.defer(function(text) { + * console.log(text); + * }, 'deferred'); + * // => Logs 'deferred' after one millisecond. + */ + var defer = baseRest(function(func, args) { + return baseDelay(func, 1, args); + }); + + /** + * Invokes `func` after `wait` milliseconds. Any additional arguments are + * provided to `func` when it's invoked. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to delay. + * @param {number} wait The number of milliseconds to delay invocation. + * @param {...*} [args] The arguments to invoke `func` with. + * @returns {number} Returns the timer id. + * @example + * + * _.delay(function(text) { + * console.log(text); + * }, 1000, 'later'); + * // => Logs 'later' after one second. + */ + var delay = baseRest(function(func, wait, args) { + return baseDelay(func, toNumber(wait) || 0, args); + }); + + /** + * Creates a function that invokes `func` with arguments reversed. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Function + * @param {Function} func The function to flip arguments for. + * @returns {Function} Returns the new flipped function. + * @example + * + * var flipped = _.flip(function() { + * return _.toArray(arguments); + * }); + * + * flipped('a', 'b', 'c', 'd'); + * // => ['d', 'c', 'b', 'a'] + */ + function flip(func) { + return createWrap(func, WRAP_FLIP_FLAG); + } + + /** + * Creates a function that memoizes the result of `func`. If `resolver` is + * provided, it determines the cache key for storing the result based on the + * arguments provided to the memoized function. By default, the first argument + * provided to the memoized function is used as the map cache key. The `func` + * is invoked with the `this` binding of the memoized function. + * + * **Note:** The cache is exposed as the `cache` property on the memoized + * function. Its creation may be customized by replacing the `_.memoize.Cache` + * constructor with one whose instances implement the + * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) + * method interface of `clear`, `delete`, `get`, `has`, and `set`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to have its output memoized. + * @param {Function} [resolver] The function to resolve the cache key. + * @returns {Function} Returns the new memoized function. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * var other = { 'c': 3, 'd': 4 }; + * + * var values = _.memoize(_.values); + * values(object); + * // => [1, 2] + * + * values(other); + * // => [3, 4] + * + * object.a = 2; + * values(object); + * // => [1, 2] + * + * // Modify the result cache. + * values.cache.set(object, ['a', 'b']); + * values(object); + * // => ['a', 'b'] + * + * // Replace `_.memoize.Cache`. + * _.memoize.Cache = WeakMap; + */ + function memoize(func, resolver) { + if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { + throw new TypeError(FUNC_ERROR_TEXT); + } + var memoized = function() { + var args = arguments, + key = resolver ? resolver.apply(this, args) : args[0], + cache = memoized.cache; + + if (cache.has(key)) { + return cache.get(key); + } + var result = func.apply(this, args); + memoized.cache = cache.set(key, result) || cache; + return result; + }; + memoized.cache = new (memoize.Cache || MapCache); + return memoized; + } + + // Expose `MapCache`. + memoize.Cache = MapCache; + + /** + * Creates a function that negates the result of the predicate `func`. The + * `func` predicate is invoked with the `this` binding and arguments of the + * created function. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {Function} predicate The predicate to negate. + * @returns {Function} Returns the new negated function. + * @example + * + * function isEven(n) { + * return n % 2 == 0; + * } + * + * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven)); + * // => [1, 3, 5] + */ + function negate(predicate) { + if (typeof predicate != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + return function() { + var args = arguments; + switch (args.length) { + case 0: return !predicate.call(this); + case 1: return !predicate.call(this, args[0]); + case 2: return !predicate.call(this, args[0], args[1]); + case 3: return !predicate.call(this, args[0], args[1], args[2]); + } + return !predicate.apply(this, args); + }; + } + + /** + * Creates a function that is restricted to invoking `func` once. Repeat calls + * to the function return the value of the first invocation. The `func` is + * invoked with the `this` binding and arguments of the created function. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new restricted function. + * @example + * + * var initialize = _.once(createApplication); + * initialize(); + * initialize(); + * // => `createApplication` is invoked once + */ + function once(func) { + return before(2, func); + } + + /** + * Creates a function that invokes `func` with its arguments transformed. + * + * @static + * @since 4.0.0 + * @memberOf _ + * @category Function + * @param {Function} func The function to wrap. + * @param {...(Function|Function[])} [transforms=[_.identity]] + * The argument transforms. + * @returns {Function} Returns the new function. + * @example + * + * function doubled(n) { + * return n * 2; + * } + * + * function square(n) { + * return n * n; + * } + * + * var func = _.overArgs(function(x, y) { + * return [x, y]; + * }, [square, doubled]); + * + * func(9, 3); + * // => [81, 6] + * + * func(10, 5); + * // => [100, 10] + */ + var overArgs = castRest(function(func, transforms) { + transforms = (transforms.length == 1 && isArray(transforms[0])) + ? arrayMap(transforms[0], baseUnary(getIteratee())) + : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee())); + + var funcsLength = transforms.length; + return baseRest(function(args) { + var index = -1, + length = nativeMin(args.length, funcsLength); + + while (++index < length) { + args[index] = transforms[index].call(this, args[index]); + } + return apply(func, this, args); + }); + }); + + /** + * Creates a function that invokes `func` with `partials` prepended to the + * arguments it receives. This method is like `_.bind` except it does **not** + * alter the `this` binding. + * + * The `_.partial.placeholder` value, which defaults to `_` in monolithic + * builds, may be used as a placeholder for partially applied arguments. + * + * **Note:** This method doesn't set the "length" property of partially + * applied functions. + * + * @static + * @memberOf _ + * @since 0.2.0 + * @category Function + * @param {Function} func The function to partially apply arguments to. + * @param {...*} [partials] The arguments to be partially applied. + * @returns {Function} Returns the new partially applied function. + * @example + * + * function greet(greeting, name) { + * return greeting + ' ' + name; + * } + * + * var sayHelloTo = _.partial(greet, 'hello'); + * sayHelloTo('fred'); + * // => 'hello fred' + * + * // Partially applied with placeholders. + * var greetFred = _.partial(greet, _, 'fred'); + * greetFred('hi'); + * // => 'hi fred' + */ + var partial = baseRest(function(func, partials) { + var holders = replaceHolders(partials, getHolder(partial)); + return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders); + }); + + /** + * This method is like `_.partial` except that partially applied arguments + * are appended to the arguments it receives. + * + * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic + * builds, may be used as a placeholder for partially applied arguments. + * + * **Note:** This method doesn't set the "length" property of partially + * applied functions. + * + * @static + * @memberOf _ + * @since 1.0.0 + * @category Function + * @param {Function} func The function to partially apply arguments to. + * @param {...*} [partials] The arguments to be partially applied. + * @returns {Function} Returns the new partially applied function. + * @example + * + * function greet(greeting, name) { + * return greeting + ' ' + name; + * } + * + * var greetFred = _.partialRight(greet, 'fred'); + * greetFred('hi'); + * // => 'hi fred' + * + * // Partially applied with placeholders. + * var sayHelloTo = _.partialRight(greet, 'hello', _); + * sayHelloTo('fred'); + * // => 'hello fred' + */ + var partialRight = baseRest(function(func, partials) { + var holders = replaceHolders(partials, getHolder(partialRight)); + return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders); + }); + + /** + * Creates a function that invokes `func` with arguments arranged according + * to the specified `indexes` where the argument value at the first index is + * provided as the first argument, the argument value at the second index is + * provided as the second argument, and so on. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {Function} func The function to rearrange arguments for. + * @param {...(number|number[])} indexes The arranged argument indexes. + * @returns {Function} Returns the new function. + * @example + * + * var rearged = _.rearg(function(a, b, c) { + * return [a, b, c]; + * }, [2, 0, 1]); + * + * rearged('b', 'c', 'a') + * // => ['a', 'b', 'c'] + */ + var rearg = flatRest(function(func, indexes) { + return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes); + }); + + /** + * Creates a function that invokes `func` with the `this` binding of the + * created function and arguments from `start` and beyond provided as + * an array. + * + * **Note:** This method is based on the + * [rest parameter](https://mdn.io/rest_parameters). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Function + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + * @example + * + * var say = _.rest(function(what, names) { + * return what + ' ' + _.initial(names).join(', ') + + * (_.size(names) > 1 ? ', & ' : '') + _.last(names); + * }); + * + * say('hello', 'fred', 'barney', 'pebbles'); + * // => 'hello fred, barney, & pebbles' + */ + function rest(func, start) { + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + start = start === undefined ? start : toInteger(start); + return baseRest(func, start); + } + + /** + * Creates a function that invokes `func` with the `this` binding of the + * create function and an array of arguments much like + * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply). + * + * **Note:** This method is based on the + * [spread operator](https://mdn.io/spread_operator). + * + * @static + * @memberOf _ + * @since 3.2.0 + * @category Function + * @param {Function} func The function to spread arguments over. + * @param {number} [start=0] The start position of the spread. + * @returns {Function} Returns the new function. + * @example + * + * var say = _.spread(function(who, what) { + * return who + ' says ' + what; + * }); + * + * say(['fred', 'hello']); + * // => 'fred says hello' + * + * var numbers = Promise.all([ + * Promise.resolve(40), + * Promise.resolve(36) + * ]); + * + * numbers.then(_.spread(function(x, y) { + * return x + y; + * })); + * // => a Promise of 76 + */ + function spread(func, start) { + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + start = start == null ? 0 : nativeMax(toInteger(start), 0); + return baseRest(function(args) { + var array = args[start], + otherArgs = castSlice(args, 0, start); + + if (array) { + arrayPush(otherArgs, array); + } + return apply(func, this, otherArgs); + }); + } + + /** + * Creates a throttled function that only invokes `func` at most once per + * every `wait` milliseconds. The throttled function comes with a `cancel` + * method to cancel delayed `func` invocations and a `flush` method to + * immediately invoke them. Provide `options` to indicate whether `func` + * should be invoked on the leading and/or trailing edge of the `wait` + * timeout. The `func` is invoked with the last arguments provided to the + * throttled function. Subsequent calls to the throttled function return the + * result of the last `func` invocation. + * + * **Note:** If `leading` and `trailing` options are `true`, `func` is + * invoked on the trailing edge of the timeout only if the throttled function + * is invoked more than once during the `wait` timeout. + * + * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred + * until to the next tick, similar to `setTimeout` with a timeout of `0`. + * + * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) + * for details over the differences between `_.throttle` and `_.debounce`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to throttle. + * @param {number} [wait=0] The number of milliseconds to throttle invocations to. + * @param {Object} [options={}] The options object. + * @param {boolean} [options.leading=true] + * Specify invoking on the leading edge of the timeout. + * @param {boolean} [options.trailing=true] + * Specify invoking on the trailing edge of the timeout. + * @returns {Function} Returns the new throttled function. + * @example + * + * // Avoid excessively updating the position while scrolling. + * jQuery(window).on('scroll', _.throttle(updatePosition, 100)); + * + * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes. + * var throttled = _.throttle(renewToken, 300000, { 'trailing': false }); + * jQuery(element).on('click', throttled); + * + * // Cancel the trailing throttled invocation. + * jQuery(window).on('popstate', throttled.cancel); + */ + function throttle(func, wait, options) { + var leading = true, + trailing = true; + + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + if (isObject(options)) { + leading = 'leading' in options ? !!options.leading : leading; + trailing = 'trailing' in options ? !!options.trailing : trailing; + } + return debounce(func, wait, { + 'leading': leading, + 'maxWait': wait, + 'trailing': trailing + }); + } + + /** + * Creates a function that accepts up to one argument, ignoring any + * additional arguments. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Function + * @param {Function} func The function to cap arguments for. + * @returns {Function} Returns the new capped function. + * @example + * + * _.map(['6', '8', '10'], _.unary(parseInt)); + * // => [6, 8, 10] + */ + function unary(func) { + return ary(func, 1); + } + + /** + * Creates a function that provides `value` to `wrapper` as its first + * argument. Any additional arguments provided to the function are appended + * to those provided to the `wrapper`. The wrapper is invoked with the `this` + * binding of the created function. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {*} value The value to wrap. + * @param {Function} [wrapper=identity] The wrapper function. + * @returns {Function} Returns the new function. + * @example + * + * var p = _.wrap(_.escape, function(func, text) { + * return '

' + func(text) + '

'; + * }); + * + * p('fred, barney, & pebbles'); + * // => '

fred, barney, & pebbles

' + */ + function wrap(value, wrapper) { + return partial(castFunction(wrapper), value); + } + + /*------------------------------------------------------------------------*/ + + /** + * Casts `value` as an array if it's not one. + * + * @static + * @memberOf _ + * @since 4.4.0 + * @category Lang + * @param {*} value The value to inspect. + * @returns {Array} Returns the cast array. + * @example + * + * _.castArray(1); + * // => [1] + * + * _.castArray({ 'a': 1 }); + * // => [{ 'a': 1 }] + * + * _.castArray('abc'); + * // => ['abc'] + * + * _.castArray(null); + * // => [null] + * + * _.castArray(undefined); + * // => [undefined] + * + * _.castArray(); + * // => [] + * + * var array = [1, 2, 3]; + * console.log(_.castArray(array) === array); + * // => true + */ + function castArray() { + if (!arguments.length) { + return []; + } + var value = arguments[0]; + return isArray(value) ? value : [value]; + } + + /** + * Creates a shallow clone of `value`. + * + * **Note:** This method is loosely based on the + * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm) + * and supports cloning arrays, array buffers, booleans, date objects, maps, + * numbers, `Object` objects, regexes, sets, strings, symbols, and typed + * arrays. The own enumerable properties of `arguments` objects are cloned + * as plain objects. An empty object is returned for uncloneable values such + * as error objects, functions, DOM nodes, and WeakMaps. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to clone. + * @returns {*} Returns the cloned value. + * @see _.cloneDeep + * @example + * + * var objects = [{ 'a': 1 }, { 'b': 2 }]; + * + * var shallow = _.clone(objects); + * console.log(shallow[0] === objects[0]); + * // => true + */ + function clone(value) { + return baseClone(value, CLONE_SYMBOLS_FLAG); + } + + /** + * This method is like `_.clone` except that it accepts `customizer` which + * is invoked to produce the cloned value. If `customizer` returns `undefined`, + * cloning is handled by the method instead. The `customizer` is invoked with + * up to four arguments; (value [, index|key, object, stack]). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to clone. + * @param {Function} [customizer] The function to customize cloning. + * @returns {*} Returns the cloned value. + * @see _.cloneDeepWith + * @example + * + * function customizer(value) { + * if (_.isElement(value)) { + * return value.cloneNode(false); + * } + * } + * + * var el = _.cloneWith(document.body, customizer); + * + * console.log(el === document.body); + * // => false + * console.log(el.nodeName); + * // => 'BODY' + * console.log(el.childNodes.length); + * // => 0 + */ + function cloneWith(value, customizer) { + customizer = typeof customizer == 'function' ? customizer : undefined; + return baseClone(value, CLONE_SYMBOLS_FLAG, customizer); + } + + /** + * This method is like `_.clone` except that it recursively clones `value`. + * + * @static + * @memberOf _ + * @since 1.0.0 + * @category Lang + * @param {*} value The value to recursively clone. + * @returns {*} Returns the deep cloned value. + * @see _.clone + * @example + * + * var objects = [{ 'a': 1 }, { 'b': 2 }]; + * + * var deep = _.cloneDeep(objects); + * console.log(deep[0] === objects[0]); + * // => false + */ + function cloneDeep(value) { + return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); + } + + /** + * This method is like `_.cloneWith` except that it recursively clones `value`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to recursively clone. + * @param {Function} [customizer] The function to customize cloning. + * @returns {*} Returns the deep cloned value. + * @see _.cloneWith + * @example + * + * function customizer(value) { + * if (_.isElement(value)) { + * return value.cloneNode(true); + * } + * } + * + * var el = _.cloneDeepWith(document.body, customizer); + * + * console.log(el === document.body); + * // => false + * console.log(el.nodeName); + * // => 'BODY' + * console.log(el.childNodes.length); + * // => 20 + */ + function cloneDeepWith(value, customizer) { + customizer = typeof customizer == 'function' ? customizer : undefined; + return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer); + } + + /** + * Checks if `object` conforms to `source` by invoking the predicate + * properties of `source` with the corresponding property values of `object`. + * + * **Note:** This method is equivalent to `_.conforms` when `source` is + * partially applied. + * + * @static + * @memberOf _ + * @since 4.14.0 + * @category Lang + * @param {Object} object The object to inspect. + * @param {Object} source The object of property predicates to conform to. + * @returns {boolean} Returns `true` if `object` conforms, else `false`. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * + * _.conformsTo(object, { 'b': function(n) { return n > 1; } }); + * // => true + * + * _.conformsTo(object, { 'b': function(n) { return n > 2; } }); + * // => false + */ + function conformsTo(object, source) { + return source == null || baseConformsTo(object, source, keys(source)); + } + + /** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ + function eq(value, other) { + return value === other || (value !== value && other !== other); + } + + /** + * Checks if `value` is greater than `other`. + * + * @static + * @memberOf _ + * @since 3.9.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is greater than `other`, + * else `false`. + * @see _.lt + * @example + * + * _.gt(3, 1); + * // => true + * + * _.gt(3, 3); + * // => false + * + * _.gt(1, 3); + * // => false + */ + var gt = createRelationalOperation(baseGt); + + /** + * Checks if `value` is greater than or equal to `other`. + * + * @static + * @memberOf _ + * @since 3.9.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is greater than or equal to + * `other`, else `false`. + * @see _.lte + * @example + * + * _.gte(3, 1); + * // => true + * + * _.gte(3, 3); + * // => true + * + * _.gte(1, 3); + * // => false + */ + var gte = createRelationalOperation(function(value, other) { + return value >= other; + }); + + /** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ + var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && + !propertyIsEnumerable.call(value, 'callee'); + }; + + /** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ + var isArray = Array.isArray; + + /** + * Checks if `value` is classified as an `ArrayBuffer` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. + * @example + * + * _.isArrayBuffer(new ArrayBuffer(2)); + * // => true + * + * _.isArrayBuffer(new Array(2)); + * // => false + */ + var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer; + + /** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */ + function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); + } + + /** + * This method is like `_.isArrayLike` except that it also checks if `value` + * is an object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array-like object, + * else `false`. + * @example + * + * _.isArrayLikeObject([1, 2, 3]); + * // => true + * + * _.isArrayLikeObject(document.body.children); + * // => true + * + * _.isArrayLikeObject('abc'); + * // => false + * + * _.isArrayLikeObject(_.noop); + * // => false + */ + function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); + } + + /** + * Checks if `value` is classified as a boolean primitive or object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a boolean, else `false`. + * @example + * + * _.isBoolean(false); + * // => true + * + * _.isBoolean(null); + * // => false + */ + function isBoolean(value) { + return value === true || value === false || + (isObjectLike(value) && baseGetTag(value) == boolTag); + } + + /** + * Checks if `value` is a buffer. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. + * @example + * + * _.isBuffer(new Buffer(2)); + * // => true + * + * _.isBuffer(new Uint8Array(2)); + * // => false + */ + var isBuffer = nativeIsBuffer || stubFalse; + + /** + * Checks if `value` is classified as a `Date` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a date object, else `false`. + * @example + * + * _.isDate(new Date); + * // => true + * + * _.isDate('Mon April 23 2012'); + * // => false + */ + var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; + + /** + * Checks if `value` is likely a DOM element. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`. + * @example + * + * _.isElement(document.body); + * // => true + * + * _.isElement(''); + * // => false + */ + function isElement(value) { + return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value); + } + + /** + * Checks if `value` is an empty object, collection, map, or set. + * + * Objects are considered empty if they have no own enumerable string keyed + * properties. + * + * Array-like values such as `arguments` objects, arrays, buffers, strings, or + * jQuery-like collections are considered empty if they have a `length` of `0`. + * Similarly, maps and sets are considered empty if they have a `size` of `0`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is empty, else `false`. + * @example + * + * _.isEmpty(null); + * // => true + * + * _.isEmpty(true); + * // => true + * + * _.isEmpty(1); + * // => true + * + * _.isEmpty([1, 2, 3]); + * // => false + * + * _.isEmpty({ 'a': 1 }); + * // => false + */ + function isEmpty(value) { + if (value == null) { + return true; + } + if (isArrayLike(value) && + (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || + isBuffer(value) || isTypedArray(value) || isArguments(value))) { + return !value.length; + } + var tag = getTag(value); + if (tag == mapTag || tag == setTag) { + return !value.size; + } + if (isPrototype(value)) { + return !baseKeys(value).length; + } + for (var key in value) { + if (hasOwnProperty.call(value, key)) { + return false; + } + } + return true; + } + + /** + * Performs a deep comparison between two values to determine if they are + * equivalent. + * + * **Note:** This method supports comparing arrays, array buffers, booleans, + * date objects, error objects, maps, numbers, `Object` objects, regexes, + * sets, strings, symbols, and typed arrays. `Object` objects are compared + * by their own, not inherited, enumerable properties. Functions and DOM + * nodes are compared by strict equality, i.e. `===`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.isEqual(object, other); + * // => true + * + * object === other; + * // => false + */ + function isEqual(value, other) { + return baseIsEqual(value, other); + } + + /** + * This method is like `_.isEqual` except that it accepts `customizer` which + * is invoked to compare values. If `customizer` returns `undefined`, comparisons + * are handled by the method instead. The `customizer` is invoked with up to + * six arguments: (objValue, othValue [, index|key, object, other, stack]). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {Function} [customizer] The function to customize comparisons. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * function isGreeting(value) { + * return /^h(?:i|ello)$/.test(value); + * } + * + * function customizer(objValue, othValue) { + * if (isGreeting(objValue) && isGreeting(othValue)) { + * return true; + * } + * } + * + * var array = ['hello', 'goodbye']; + * var other = ['hi', 'goodbye']; + * + * _.isEqualWith(array, other, customizer); + * // => true + */ + 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; + } + + /** + * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`, + * `SyntaxError`, `TypeError`, or `URIError` object. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an error object, else `false`. + * @example + * + * _.isError(new Error); + * // => true + * + * _.isError(Error); + * // => false + */ + function isError(value) { + if (!isObjectLike(value)) { + return false; + } + var tag = baseGetTag(value); + return tag == errorTag || tag == domExcTag || + (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value)); + } + + /** + * Checks if `value` is a finite primitive number. + * + * **Note:** This method is based on + * [`Number.isFinite`](https://mdn.io/Number/isFinite). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a finite number, else `false`. + * @example + * + * _.isFinite(3); + * // => true + * + * _.isFinite(Number.MIN_VALUE); + * // => true + * + * _.isFinite(Infinity); + * // => false + * + * _.isFinite('3'); + * // => false + */ + function isFinite(value) { + return typeof value == 'number' && nativeIsFinite(value); + } + + /** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ + function isFunction(value) { + if (!isObject(value)) { + return false; + } + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 9 which returns 'object' for typed arrays and other constructors. + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; + } + + /** + * Checks if `value` is an integer. + * + * **Note:** This method is based on + * [`Number.isInteger`](https://mdn.io/Number/isInteger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an integer, else `false`. + * @example + * + * _.isInteger(3); + * // => true + * + * _.isInteger(Number.MIN_VALUE); + * // => false + * + * _.isInteger(Infinity); + * // => false + * + * _.isInteger('3'); + * // => false + */ + function isInteger(value) { + return typeof value == 'number' && value == toInteger(value); + } + + /** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */ + function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; + } + + /** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ + function isObject(value) { + var type = typeof value; + return value != null && (type == 'object' || type == 'function'); + } + + /** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ + function isObjectLike(value) { + return value != null && typeof value == 'object'; + } + + /** + * Checks if `value` is classified as a `Map` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. + * @example + * + * _.isMap(new Map); + * // => true + * + * _.isMap(new WeakMap); + * // => false + */ + var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; + + /** + * Performs a partial deep comparison between `object` and `source` to + * determine if `object` contains equivalent property values. + * + * **Note:** This method is equivalent to `_.matches` when `source` is + * partially applied. + * + * Partial comparisons will match empty array and empty object `source` + * values against any array or object value, respectively. See `_.isEqual` + * for a list of supported value comparisons. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {Object} object The object to inspect. + * @param {Object} source The object of property values to match. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * + * _.isMatch(object, { 'b': 2 }); + * // => true + * + * _.isMatch(object, { 'b': 1 }); + * // => false + */ + function isMatch(object, source) { + return object === source || baseIsMatch(object, source, getMatchData(source)); + } + + /** + * This method is like `_.isMatch` except that it accepts `customizer` which + * is invoked to compare values. If `customizer` returns `undefined`, comparisons + * are handled by the method instead. The `customizer` is invoked with five + * arguments: (objValue, srcValue, index|key, object, source). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {Object} object The object to inspect. + * @param {Object} source The object of property values to match. + * @param {Function} [customizer] The function to customize comparisons. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. + * @example + * + * function isGreeting(value) { + * return /^h(?:i|ello)$/.test(value); + * } + * + * function customizer(objValue, srcValue) { + * if (isGreeting(objValue) && isGreeting(srcValue)) { + * return true; + * } + * } + * + * var object = { 'greeting': 'hello' }; + * var source = { 'greeting': 'hi' }; + * + * _.isMatchWith(object, source, customizer); + * // => true + */ + function isMatchWith(object, source, customizer) { + customizer = typeof customizer == 'function' ? customizer : undefined; + return baseIsMatch(object, source, getMatchData(source), customizer); + } + + /** + * Checks if `value` is `NaN`. + * + * **Note:** This method is based on + * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as + * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for + * `undefined` and other non-number values. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + * @example + * + * _.isNaN(NaN); + * // => true + * + * _.isNaN(new Number(NaN)); + * // => true + * + * isNaN(undefined); + * // => true + * + * _.isNaN(undefined); + * // => false + */ + function isNaN(value) { + // An `NaN` primitive is the only value that is not equal to itself. + // Perform the `toStringTag` check first to avoid errors with some + // ActiveX objects in IE. + return isNumber(value) && value != +value; + } + + /** + * Checks if `value` is a pristine native function. + * + * **Note:** This method can't reliably detect native functions in the presence + * of the core-js package because core-js circumvents this kind of detection. + * Despite multiple requests, the core-js maintainer has made it clear: any + * attempt to fix the detection will be obstructed. As a result, we're left + * with little choice but to throw an error. Unfortunately, this also affects + * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill), + * which rely on core-js. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + * @example + * + * _.isNative(Array.prototype.push); + * // => true + * + * _.isNative(_); + * // => false + */ + function isNative(value) { + if (isMaskable(value)) { + throw new Error(CORE_ERROR_TEXT); + } + return baseIsNative(value); + } + + /** + * Checks if `value` is `null`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `null`, else `false`. + * @example + * + * _.isNull(null); + * // => true + * + * _.isNull(void 0); + * // => false + */ + function isNull(value) { + return value === null; + } + + /** + * Checks if `value` is `null` or `undefined`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is nullish, else `false`. + * @example + * + * _.isNil(null); + * // => true + * + * _.isNil(void 0); + * // => true + * + * _.isNil(NaN); + * // => false + */ + function isNil(value) { + return value == null; + } + + /** + * Checks if `value` is classified as a `Number` primitive or object. + * + * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are + * classified as numbers, use the `_.isFinite` method. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a number, else `false`. + * @example + * + * _.isNumber(3); + * // => true + * + * _.isNumber(Number.MIN_VALUE); + * // => true + * + * _.isNumber(Infinity); + * // => true + * + * _.isNumber('3'); + * // => false + */ + function isNumber(value) { + return typeof value == 'number' || + (isObjectLike(value) && baseGetTag(value) == numberTag); + } + + /** + * Checks if `value` is a plain object, that is, an object created by the + * `Object` constructor or one with a `[[Prototype]]` of `null`. + * + * @static + * @memberOf _ + * @since 0.8.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * _.isPlainObject(new Foo); + * // => false + * + * _.isPlainObject([1, 2, 3]); + * // => false + * + * _.isPlainObject({ 'x': 0, 'y': 0 }); + * // => true + * + * _.isPlainObject(Object.create(null)); + * // => true + */ + function isPlainObject(value) { + if (!isObjectLike(value) || baseGetTag(value) != objectTag) { + return false; + } + var proto = getPrototype(value); + if (proto === null) { + return true; + } + var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; + return typeof Ctor == 'function' && Ctor instanceof Ctor && + funcToString.call(Ctor) == objectCtorString; + } + + /** + * Checks if `value` is classified as a `RegExp` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. + * @example + * + * _.isRegExp(/abc/); + * // => true + * + * _.isRegExp('/abc/'); + * // => false + */ + var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; + + /** + * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754 + * double precision number which isn't the result of a rounded unsafe integer. + * + * **Note:** This method is based on + * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`. + * @example + * + * _.isSafeInteger(3); + * // => true + * + * _.isSafeInteger(Number.MIN_VALUE); + * // => false + * + * _.isSafeInteger(Infinity); + * // => false + * + * _.isSafeInteger('3'); + * // => false + */ + function isSafeInteger(value) { + return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER; + } + + /** + * Checks if `value` is classified as a `Set` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. + * @example + * + * _.isSet(new Set); + * // => true + * + * _.isSet(new WeakSet); + * // => false + */ + var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; + + /** + * Checks if `value` is classified as a `String` primitive or object. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a string, else `false`. + * @example + * + * _.isString('abc'); + * // => true + * + * _.isString(1); + * // => false + */ + function isString(value) { + return typeof value == 'string' || + (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag); + } + + /** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ + function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && baseGetTag(value) == symbolTag); + } + + /** + * Checks if `value` is classified as a typed array. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + * @example + * + * _.isTypedArray(new Uint8Array); + * // => true + * + * _.isTypedArray([]); + * // => false + */ + var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + + /** + * Checks if `value` is `undefined`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`. + * @example + * + * _.isUndefined(void 0); + * // => true + * + * _.isUndefined(null); + * // => false + */ + function isUndefined(value) { + return value === undefined; + } + + /** + * Checks if `value` is classified as a `WeakMap` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a weak map, else `false`. + * @example + * + * _.isWeakMap(new WeakMap); + * // => true + * + * _.isWeakMap(new Map); + * // => false + */ + function isWeakMap(value) { + return isObjectLike(value) && getTag(value) == weakMapTag; + } + + /** + * Checks if `value` is classified as a `WeakSet` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a weak set, else `false`. + * @example + * + * _.isWeakSet(new WeakSet); + * // => true + * + * _.isWeakSet(new Set); + * // => false + */ + function isWeakSet(value) { + return isObjectLike(value) && baseGetTag(value) == weakSetTag; + } + + /** + * Checks if `value` is less than `other`. + * + * @static + * @memberOf _ + * @since 3.9.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is less than `other`, + * else `false`. + * @see _.gt + * @example + * + * _.lt(1, 3); + * // => true + * + * _.lt(3, 3); + * // => false + * + * _.lt(3, 1); + * // => false + */ + var lt = createRelationalOperation(baseLt); + + /** + * Checks if `value` is less than or equal to `other`. + * + * @static + * @memberOf _ + * @since 3.9.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is less than or equal to + * `other`, else `false`. + * @see _.gte + * @example + * + * _.lte(1, 3); + * // => true + * + * _.lte(3, 3); + * // => true + * + * _.lte(3, 1); + * // => false + */ + var lte = createRelationalOperation(function(value, other) { + return value <= other; + }); + + /** + * Converts `value` to an array. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to convert. + * @returns {Array} Returns the converted array. + * @example + * + * _.toArray({ 'a': 1, 'b': 2 }); + * // => [1, 2] + * + * _.toArray('abc'); + * // => ['a', 'b', 'c'] + * + * _.toArray(1); + * // => [] + * + * _.toArray(null); + * // => [] + */ + function toArray(value) { + if (!value) { + return []; + } + if (isArrayLike(value)) { + return isString(value) ? stringToArray(value) : copyArray(value); + } + if (symIterator && value[symIterator]) { + return iteratorToArray(value[symIterator]()); + } + var tag = getTag(value), + func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values); + + return func(value); + } + + /** + * Converts `value` to a finite number. + * + * @static + * @memberOf _ + * @since 4.12.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted number. + * @example + * + * _.toFinite(3.2); + * // => 3.2 + * + * _.toFinite(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toFinite(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toFinite('3.2'); + * // => 3.2 + */ + function toFinite(value) { + if (!value) { + return value === 0 ? value : 0; + } + value = toNumber(value); + if (value === INFINITY || value === -INFINITY) { + var sign = (value < 0 ? -1 : 1); + return sign * MAX_INTEGER; + } + return value === value ? value : 0; + } + + /** + * Converts `value` to an integer. + * + * **Note:** This method is loosely based on + * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toInteger(3.2); + * // => 3 + * + * _.toInteger(Number.MIN_VALUE); + * // => 0 + * + * _.toInteger(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toInteger('3.2'); + * // => 3 + */ + function toInteger(value) { + var result = toFinite(value), + remainder = result % 1; + + return result === result ? (remainder ? result - remainder : result) : 0; + } + + /** + * Converts `value` to an integer suitable for use as the length of an + * array-like object. + * + * **Note:** This method is based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toLength(3.2); + * // => 3 + * + * _.toLength(Number.MIN_VALUE); + * // => 0 + * + * _.toLength(Infinity); + * // => 4294967295 + * + * _.toLength('3.2'); + * // => 3 + */ + function toLength(value) { + return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0; + } + + /** + * Converts `value` to a number. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {number} Returns the number. + * @example + * + * _.toNumber(3.2); + * // => 3.2 + * + * _.toNumber(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toNumber(Infinity); + * // => Infinity + * + * _.toNumber('3.2'); + * // => 3.2 + */ + function toNumber(value) { + if (typeof value == 'number') { + return value; + } + if (isSymbol(value)) { + return NAN; + } + if (isObject(value)) { + var other = typeof value.valueOf == 'function' ? value.valueOf() : value; + value = isObject(other) ? (other + '') : other; + } + if (typeof value != 'string') { + return value === 0 ? value : +value; + } + value = baseTrim(value); + var isBinary = reIsBinary.test(value); + return (isBinary || reIsOctal.test(value)) + ? freeParseInt(value.slice(2), isBinary ? 2 : 8) + : (reIsBadHex.test(value) ? NAN : +value); + } + + /** + * Converts `value` to a plain object flattening inherited enumerable string + * keyed properties of `value` to own properties of the plain object. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {Object} Returns the converted plain object. + * @example + * + * function Foo() { + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.assign({ 'a': 1 }, new Foo); + * // => { 'a': 1, 'b': 2 } + * + * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); + * // => { 'a': 1, 'b': 2, 'c': 3 } + */ + function toPlainObject(value) { + return copyObject(value, keysIn(value)); + } + + /** + * Converts `value` to a safe integer. A safe integer can be compared and + * represented correctly. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toSafeInteger(3.2); + * // => 3 + * + * _.toSafeInteger(Number.MIN_VALUE); + * // => 0 + * + * _.toSafeInteger(Infinity); + * // => 9007199254740991 + * + * _.toSafeInteger('3.2'); + * // => 3 + */ + function toSafeInteger(value) { + return value + ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) + : (value === 0 ? value : 0); + } + + /** + * Converts `value` to a string. An empty string is returned for `null` + * and `undefined` values. The sign of `-0` is preserved. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.toString(null); + * // => '' + * + * _.toString(-0); + * // => '-0' + * + * _.toString([1, 2, 3]); + * // => '1,2,3' + */ + function toString(value) { + return value == null ? '' : baseToString(value); + } + + /*------------------------------------------------------------------------*/ + + /** + * Assigns own enumerable string keyed properties of source objects to the + * destination object. Source objects are applied from left to right. + * Subsequent sources overwrite property assignments of previous sources. + * + * **Note:** This method mutates `object` and is loosely based on + * [`Object.assign`](https://mdn.io/Object/assign). + * + * @static + * @memberOf _ + * @since 0.10.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.assignIn + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * function Bar() { + * this.c = 3; + * } + * + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; + * + * _.assign({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'c': 3 } + */ + var assign = createAssigner(function(object, source) { + if (isPrototype(source) || isArrayLike(source)) { + copyObject(source, keys(source), object); + return; + } + for (var key in source) { + if (hasOwnProperty.call(source, key)) { + assignValue(object, key, source[key]); + } + } + }); + + /** + * This method is like `_.assign` except that it iterates over own and + * inherited source properties. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @alias extend + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.assign + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * function Bar() { + * this.c = 3; + * } + * + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; + * + * _.assignIn({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 } + */ + var assignIn = createAssigner(function(object, source) { + copyObject(source, keysIn(source), object); + }); + + /** + * This method is like `_.assignIn` except that it accepts `customizer` + * which is invoked to produce the assigned values. If `customizer` returns + * `undefined`, assignment is handled by the method instead. The `customizer` + * is invoked with five arguments: (objValue, srcValue, key, object, source). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @alias extendWith + * @category Object + * @param {Object} object The destination object. + * @param {...Object} sources The source objects. + * @param {Function} [customizer] The function to customize assigned values. + * @returns {Object} Returns `object`. + * @see _.assignWith + * @example + * + * function customizer(objValue, srcValue) { + * return _.isUndefined(objValue) ? srcValue : objValue; + * } + * + * var defaults = _.partialRight(_.assignInWith, customizer); + * + * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */ + var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { + copyObject(source, keysIn(source), object, customizer); + }); + + /** + * This method is like `_.assign` except that it accepts `customizer` + * which is invoked to produce the assigned values. If `customizer` returns + * `undefined`, assignment is handled by the method instead. The `customizer` + * is invoked with five arguments: (objValue, srcValue, key, object, source). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} sources The source objects. + * @param {Function} [customizer] The function to customize assigned values. + * @returns {Object} Returns `object`. + * @see _.assignInWith + * @example + * + * function customizer(objValue, srcValue) { + * return _.isUndefined(objValue) ? srcValue : objValue; + * } + * + * var defaults = _.partialRight(_.assignWith, customizer); + * + * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */ + var assignWith = createAssigner(function(object, source, srcIndex, customizer) { + copyObject(source, keys(source), object, customizer); + }); + + /** + * Creates an array of values corresponding to `paths` of `object`. + * + * @static + * @memberOf _ + * @since 1.0.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {...(string|string[])} [paths] The property paths to pick. + * @returns {Array} Returns the picked values. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] }; + * + * _.at(object, ['a[0].b.c', 'a[1]']); + * // => [3, 4] + */ + var at = flatRest(baseAt); + + /** + * Creates an object that inherits from the `prototype` object. If a + * `properties` object is given, its own enumerable string keyed properties + * are assigned to the created object. + * + * @static + * @memberOf _ + * @since 2.3.0 + * @category Object + * @param {Object} prototype The object to inherit from. + * @param {Object} [properties] The properties to assign to the object. + * @returns {Object} Returns the new object. + * @example + * + * function Shape() { + * this.x = 0; + * this.y = 0; + * } + * + * function Circle() { + * Shape.call(this); + * } + * + * Circle.prototype = _.create(Shape.prototype, { + * 'constructor': Circle + * }); + * + * var circle = new Circle; + * circle instanceof Circle; + * // => true + * + * circle instanceof Shape; + * // => true + */ + function create(prototype, properties) { + var result = baseCreate(prototype); + return properties == null ? result : baseAssign(result, properties); + } + + /** + * Assigns own and inherited enumerable string keyed properties of source + * objects to the destination object for all destination properties that + * resolve to `undefined`. Source objects are applied from left to right. + * Once a property is set, additional values of the same property are ignored. + * + * **Note:** This method mutates `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.defaultsDeep + * @example + * + * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */ + 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; + }); + + /** + * This method is like `_.defaults` except that it recursively assigns + * default properties. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 3.10.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.defaults + * @example + * + * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); + * // => { 'a': { 'b': 2, 'c': 3 } } + */ + var defaultsDeep = baseRest(function(args) { + args.push(undefined, customDefaultsMerge); + return apply(mergeWith, undefined, args); + }); + + /** + * This method is like `_.find` except that it returns the key of the first + * element `predicate` returns truthy for instead of the element itself. + * + * @static + * @memberOf _ + * @since 1.1.0 + * @category Object + * @param {Object} object The object to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {string|undefined} Returns the key of the matched element, + * else `undefined`. + * @example + * + * var users = { + * 'barney': { 'age': 36, 'active': true }, + * 'fred': { 'age': 40, 'active': false }, + * 'pebbles': { 'age': 1, 'active': true } + * }; + * + * _.findKey(users, function(o) { return o.age < 40; }); + * // => 'barney' (iteration order is not guaranteed) + * + * // The `_.matches` iteratee shorthand. + * _.findKey(users, { 'age': 1, 'active': true }); + * // => 'pebbles' + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findKey(users, ['active', false]); + * // => 'fred' + * + * // The `_.property` iteratee shorthand. + * _.findKey(users, 'active'); + * // => 'barney' + */ + function findKey(object, predicate) { + return baseFindKey(object, getIteratee(predicate, 3), baseForOwn); + } + + /** + * This method is like `_.findKey` except that it iterates over elements of + * a collection in the opposite order. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Object + * @param {Object} object The object to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {string|undefined} Returns the key of the matched element, + * else `undefined`. + * @example + * + * var users = { + * 'barney': { 'age': 36, 'active': true }, + * 'fred': { 'age': 40, 'active': false }, + * 'pebbles': { 'age': 1, 'active': true } + * }; + * + * _.findLastKey(users, function(o) { return o.age < 40; }); + * // => returns 'pebbles' assuming `_.findKey` returns 'barney' + * + * // The `_.matches` iteratee shorthand. + * _.findLastKey(users, { 'age': 36, 'active': true }); + * // => 'barney' + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findLastKey(users, ['active', false]); + * // => 'fred' + * + * // The `_.property` iteratee shorthand. + * _.findLastKey(users, 'active'); + * // => 'pebbles' + */ + function findLastKey(object, predicate) { + return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight); + } + + /** + * Iterates over own and inherited enumerable string keyed properties of an + * object and invokes `iteratee` for each property. The iteratee is invoked + * with three arguments: (value, key, object). Iteratee functions may exit + * iteration early by explicitly returning `false`. + * + * @static + * @memberOf _ + * @since 0.3.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns `object`. + * @see _.forInRight + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.forIn(new Foo, function(value, key) { + * console.log(key); + * }); + * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed). + */ + function forIn(object, iteratee) { + return object == null + ? object + : baseFor(object, getIteratee(iteratee, 3), keysIn); + } + + /** + * This method is like `_.forIn` except that it iterates over properties of + * `object` in the opposite order. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns `object`. + * @see _.forIn + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.forInRight(new Foo, function(value, key) { + * console.log(key); + * }); + * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'. + */ + function forInRight(object, iteratee) { + return object == null + ? object + : baseForRight(object, getIteratee(iteratee, 3), keysIn); + } + + /** + * Iterates over own enumerable string keyed properties of an object and + * invokes `iteratee` for each property. The iteratee is invoked with three + * arguments: (value, key, object). Iteratee functions may exit iteration + * early by explicitly returning `false`. + * + * @static + * @memberOf _ + * @since 0.3.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns `object`. + * @see _.forOwnRight + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.forOwn(new Foo, function(value, key) { + * console.log(key); + * }); + * // => Logs 'a' then 'b' (iteration order is not guaranteed). + */ + function forOwn(object, iteratee) { + return object && baseForOwn(object, getIteratee(iteratee, 3)); + } + + /** + * This method is like `_.forOwn` except that it iterates over properties of + * `object` in the opposite order. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns `object`. + * @see _.forOwn + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.forOwnRight(new Foo, function(value, key) { + * console.log(key); + * }); + * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'. + */ + function forOwnRight(object, iteratee) { + return object && baseForOwnRight(object, getIteratee(iteratee, 3)); + } + + /** + * Creates an array of function property names from own enumerable properties + * of `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to inspect. + * @returns {Array} Returns the function names. + * @see _.functionsIn + * @example + * + * function Foo() { + * this.a = _.constant('a'); + * this.b = _.constant('b'); + * } + * + * Foo.prototype.c = _.constant('c'); + * + * _.functions(new Foo); + * // => ['a', 'b'] + */ + function functions(object) { + return object == null ? [] : baseFunctions(object, keys(object)); + } + + /** + * Creates an array of function property names from own and inherited + * enumerable properties of `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to inspect. + * @returns {Array} Returns the function names. + * @see _.functions + * @example + * + * function Foo() { + * this.a = _.constant('a'); + * this.b = _.constant('b'); + * } + * + * Foo.prototype.c = _.constant('c'); + * + * _.functionsIn(new Foo); + * // => ['a', 'b', 'c'] + */ + function functionsIn(object) { + return object == null ? [] : baseFunctions(object, keysIn(object)); + } + + /** + * Gets the value at `path` of `object`. If the resolved value is + * `undefined`, the `defaultValue` is returned in its place. + * + * @static + * @memberOf _ + * @since 3.7.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to get. + * @param {*} [defaultValue] The value returned for `undefined` resolved values. + * @returns {*} Returns the resolved value. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }] }; + * + * _.get(object, 'a[0].b.c'); + * // => 3 + * + * _.get(object, ['a', '0', 'b', 'c']); + * // => 3 + * + * _.get(object, 'a.b.c', 'default'); + * // => 'default' + */ + function get(object, path, defaultValue) { + var result = object == null ? undefined : baseGet(object, path); + return result === undefined ? defaultValue : result; + } + + /** + * Checks if `path` is a direct property of `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + * @example + * + * var object = { 'a': { 'b': 2 } }; + * var other = _.create({ 'a': _.create({ 'b': 2 }) }); + * + * _.has(object, 'a'); + * // => true + * + * _.has(object, 'a.b'); + * // => true + * + * _.has(object, ['a', 'b']); + * // => true + * + * _.has(other, 'a'); + * // => false + */ + function has(object, path) { + return object != null && hasPath(object, path, baseHas); + } + + /** + * Checks if `path` is a direct or inherited property of `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + * @example + * + * var object = _.create({ 'a': _.create({ 'b': 2 }) }); + * + * _.hasIn(object, 'a'); + * // => true + * + * _.hasIn(object, 'a.b'); + * // => true + * + * _.hasIn(object, ['a', 'b']); + * // => true + * + * _.hasIn(object, 'b'); + * // => false + */ + function hasIn(object, path) { + return object != null && hasPath(object, path, baseHasIn); + } + + /** + * Creates an object composed of the inverted keys and values of `object`. + * If `object` contains duplicate values, subsequent values overwrite + * property assignments of previous values. + * + * @static + * @memberOf _ + * @since 0.7.0 + * @category Object + * @param {Object} object The object to invert. + * @returns {Object} Returns the new inverted object. + * @example + * + * var object = { 'a': 1, 'b': 2, 'c': 1 }; + * + * _.invert(object); + * // => { '1': 'c', '2': 'b' } + */ + var invert = createInverter(function(result, value, key) { + if (value != null && + typeof value.toString != 'function') { + value = nativeObjectToString.call(value); + } + + result[value] = key; + }, constant(identity)); + + /** + * This method is like `_.invert` except that the inverted object is generated + * from the results of running each element of `object` thru `iteratee`. The + * corresponding inverted value of each inverted key is an array of keys + * responsible for generating the inverted value. The iteratee is invoked + * with one argument: (value). + * + * @static + * @memberOf _ + * @since 4.1.0 + * @category Object + * @param {Object} object The object to invert. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Object} Returns the new inverted object. + * @example + * + * var object = { 'a': 1, 'b': 2, 'c': 1 }; + * + * _.invertBy(object); + * // => { '1': ['a', 'c'], '2': ['b'] } + * + * _.invertBy(object, function(value) { + * return 'group' + value; + * }); + * // => { 'group1': ['a', 'c'], 'group2': ['b'] } + */ + var invertBy = createInverter(function(result, value, key) { + if (value != null && + typeof value.toString != 'function') { + value = nativeObjectToString.call(value); + } + + if (hasOwnProperty.call(result, value)) { + result[value].push(key); + } else { + result[value] = [key]; + } + }, getIteratee); + + /** + * Invokes the method at `path` of `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path of the method to invoke. + * @param {...*} [args] The arguments to invoke the method with. + * @returns {*} Returns the result of the invoked method. + * @example + * + * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] }; + * + * _.invoke(object, 'a[0].b.c.slice', 1, 3); + * // => [2, 3] + */ + var invoke = baseRest(baseInvoke); + + /** + * Creates an array of the own enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. See the + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * for more details. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keys(new Foo); + * // => ['a', 'b'] (iteration order is not guaranteed) + * + * _.keys('hi'); + * // => ['0', '1'] + */ + function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); + } + + /** + * Creates an array of the own and inherited enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keysIn(new Foo); + * // => ['a', 'b', 'c'] (iteration order is not guaranteed) + */ + function keysIn(object) { + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); + } + + /** + * The opposite of `_.mapValues`; this method creates an object with the + * same values as `object` and keys generated by running each own enumerable + * string keyed property of `object` thru `iteratee`. The iteratee is invoked + * with three arguments: (value, key, object). + * + * @static + * @memberOf _ + * @since 3.8.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns the new mapped object. + * @see _.mapValues + * @example + * + * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) { + * return key + value; + * }); + * // => { 'a1': 1, 'b2': 2 } + */ + function mapKeys(object, iteratee) { + var result = {}; + iteratee = getIteratee(iteratee, 3); + + baseForOwn(object, function(value, key, object) { + baseAssignValue(result, iteratee(value, key, object), value); + }); + return result; + } + + /** + * Creates an object with the same keys as `object` and values generated + * by running each own enumerable string keyed property of `object` thru + * `iteratee`. The iteratee is invoked with three arguments: + * (value, key, object). + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns the new mapped object. + * @see _.mapKeys + * @example + * + * var users = { + * 'fred': { 'user': 'fred', 'age': 40 }, + * 'pebbles': { 'user': 'pebbles', 'age': 1 } + * }; + * + * _.mapValues(users, function(o) { return o.age; }); + * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) + * + * // The `_.property` iteratee shorthand. + * _.mapValues(users, 'age'); + * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) + */ + function mapValues(object, iteratee) { + var result = {}; + iteratee = getIteratee(iteratee, 3); + + baseForOwn(object, function(value, key, object) { + baseAssignValue(result, key, iteratee(value, key, object)); + }); + return result; + } + + /** + * This method is like `_.assign` except that it recursively merges own and + * inherited enumerable string keyed properties of source objects into the + * destination object. Source properties that resolve to `undefined` are + * skipped if a destination value exists. Array and plain object properties + * are merged recursively. Other objects and value types are overridden by + * assignment. Source objects are applied from left to right. Subsequent + * sources overwrite property assignments of previous sources. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 0.5.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @example + * + * var object = { + * 'a': [{ 'b': 2 }, { 'd': 4 }] + * }; + * + * var other = { + * 'a': [{ 'c': 3 }, { 'e': 5 }] + * }; + * + * _.merge(object, other); + * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] } + */ + var merge = createAssigner(function(object, source, srcIndex) { + baseMerge(object, source, srcIndex); + }); + + /** + * This method is like `_.merge` except that it accepts `customizer` which + * is invoked to produce the merged values of the destination and source + * properties. If `customizer` returns `undefined`, merging is handled by the + * method instead. The `customizer` is invoked with six arguments: + * (objValue, srcValue, key, object, source, stack). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} sources The source objects. + * @param {Function} customizer The function to customize assigned values. + * @returns {Object} Returns `object`. + * @example + * + * function customizer(objValue, srcValue) { + * if (_.isArray(objValue)) { + * return objValue.concat(srcValue); + * } + * } + * + * var object = { 'a': [1], 'b': [2] }; + * var other = { 'a': [3], 'b': [4] }; + * + * _.mergeWith(object, other, customizer); + * // => { 'a': [1, 3], 'b': [2, 4] } + */ + var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { + baseMerge(object, source, srcIndex, customizer); + }); + + /** + * The opposite of `_.pick`; this method creates an object composed of the + * own and inherited enumerable property paths of `object` that are not omitted. + * + * **Note:** This method is considerably slower than `_.pick`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The source object. + * @param {...(string|string[])} [paths] The property paths to omit. + * @returns {Object} Returns the new object. + * @example + * + * var object = { 'a': 1, 'b': '2', 'c': 3 }; + * + * _.omit(object, ['a', 'c']); + * // => { 'b': '2' } + */ + var omit = flatRest(function(object, paths) { + var result = {}; + if (object == null) { + return result; + } + var isDeep = false; + paths = arrayMap(paths, function(path) { + path = castPath(path, object); + isDeep || (isDeep = path.length > 1); + return path; + }); + copyObject(object, getAllKeysIn(object), result); + if (isDeep) { + result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone); + } + var length = paths.length; + while (length--) { + baseUnset(result, paths[length]); + } + return result; + }); + + /** + * The opposite of `_.pickBy`; this method creates an object composed of + * the own and inherited enumerable string keyed properties of `object` that + * `predicate` doesn't return truthy for. The predicate is invoked with two + * arguments: (value, key). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The source object. + * @param {Function} [predicate=_.identity] The function invoked per property. + * @returns {Object} Returns the new object. + * @example + * + * var object = { 'a': 1, 'b': '2', 'c': 3 }; + * + * _.omitBy(object, _.isNumber); + * // => { 'b': '2' } + */ + function omitBy(object, predicate) { + return pickBy(object, negate(getIteratee(predicate))); + } + + /** + * Creates an object composed of the picked `object` properties. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The source object. + * @param {...(string|string[])} [paths] The property paths to pick. + * @returns {Object} Returns the new object. + * @example + * + * var object = { 'a': 1, 'b': '2', 'c': 3 }; + * + * _.pick(object, ['a', 'c']); + * // => { 'a': 1, 'c': 3 } + */ + var pick = flatRest(function(object, paths) { + return object == null ? {} : basePick(object, paths); + }); + + /** + * Creates an object composed of the `object` properties `predicate` returns + * truthy for. The predicate is invoked with two arguments: (value, key). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The source object. + * @param {Function} [predicate=_.identity] The function invoked per property. + * @returns {Object} Returns the new object. + * @example + * + * var object = { 'a': 1, 'b': '2', 'c': 3 }; + * + * _.pickBy(object, _.isNumber); + * // => { 'a': 1, 'c': 3 } + */ + function pickBy(object, predicate) { + if (object == null) { + return {}; + } + var props = arrayMap(getAllKeysIn(object), function(prop) { + return [prop]; + }); + predicate = getIteratee(predicate); + return basePickBy(object, props, function(value, path) { + return predicate(value, path[0]); + }); + } + + /** + * This method is like `_.get` except that if the resolved value is a + * function it's invoked with the `this` binding of its parent object and + * its result is returned. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to resolve. + * @param {*} [defaultValue] The value returned for `undefined` resolved values. + * @returns {*} Returns the resolved value. + * @example + * + * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] }; + * + * _.result(object, 'a[0].b.c1'); + * // => 3 + * + * _.result(object, 'a[0].b.c2'); + * // => 4 + * + * _.result(object, 'a[0].b.c3', 'default'); + * // => 'default' + * + * _.result(object, 'a[0].b.c3', _.constant('default')); + * // => 'default' + */ + function result(object, path, defaultValue) { + path = castPath(path, object); + + var index = -1, + length = path.length; + + // Ensure the loop is entered when path is empty. + 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; + } + + /** + * Sets the value at `path` of `object`. If a portion of `path` doesn't exist, + * it's created. Arrays are created for missing index properties while objects + * are created for all other missing properties. Use `_.setWith` to customize + * `path` creation. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 3.7.0 + * @category Object + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {*} value The value to set. + * @returns {Object} Returns `object`. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }] }; + * + * _.set(object, 'a[0].b.c', 4); + * console.log(object.a[0].b.c); + * // => 4 + * + * _.set(object, ['x', '0', 'y', 'z'], 5); + * console.log(object.x[0].y.z); + * // => 5 + */ + function set(object, path, value) { + return object == null ? object : baseSet(object, path, value); + } + + /** + * This method is like `_.set` except that it accepts `customizer` which is + * invoked to produce the objects of `path`. If `customizer` returns `undefined` + * path creation is handled by the method instead. The `customizer` is invoked + * with three arguments: (nsValue, key, nsObject). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {*} value The value to set. + * @param {Function} [customizer] The function to customize assigned values. + * @returns {Object} Returns `object`. + * @example + * + * var object = {}; + * + * _.setWith(object, '[0][1]', 'a', Object); + * // => { '0': { '1': 'a' } } + */ + function setWith(object, path, value, customizer) { + customizer = typeof customizer == 'function' ? customizer : undefined; + return object == null ? object : baseSet(object, path, value, customizer); + } + + /** + * Creates an array of own enumerable string keyed-value pairs for `object` + * which can be consumed by `_.fromPairs`. If `object` is a map or set, its + * entries are returned. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @alias entries + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the key-value pairs. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.toPairs(new Foo); + * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed) + */ + var toPairs = createToPairs(keys); + + /** + * Creates an array of own and inherited enumerable string keyed-value pairs + * for `object` which can be consumed by `_.fromPairs`. If `object` is a map + * or set, its entries are returned. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @alias entriesIn + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the key-value pairs. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.toPairsIn(new Foo); + * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed) + */ + var toPairsIn = createToPairs(keysIn); + + /** + * An alternative to `_.reduce`; this method transforms `object` to a new + * `accumulator` object which is the result of running each of its own + * enumerable string keyed properties thru `iteratee`, with each invocation + * potentially mutating the `accumulator` object. If `accumulator` is not + * provided, a new object with the same `[[Prototype]]` will be used. The + * iteratee is invoked with four arguments: (accumulator, value, key, object). + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @static + * @memberOf _ + * @since 1.3.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {*} [accumulator] The custom accumulator value. + * @returns {*} Returns the accumulated value. + * @example + * + * _.transform([2, 3, 4], function(result, n) { + * result.push(n *= n); + * return n % 2 == 0; + * }, []); + * // => [4, 9] + * + * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { + * (result[value] || (result[value] = [])).push(key); + * }, {}); + * // => { '1': ['a', 'c'], '2': ['b'] } + */ + function transform(object, iteratee, accumulator) { + var isArr = isArray(object), + isArrLike = isArr || isBuffer(object) || isTypedArray(object); + + iteratee = getIteratee(iteratee, 4); + if (accumulator == null) { + var Ctor = object && object.constructor; + if (isArrLike) { + accumulator = isArr ? new Ctor : []; + } + else if (isObject(object)) { + accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {}; + } + else { + accumulator = {}; + } + } + (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) { + return iteratee(accumulator, value, index, object); + }); + return accumulator; + } + + /** + * Removes the property at `path` of `object`. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to unset. + * @returns {boolean} Returns `true` if the property is deleted, else `false`. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 7 } }] }; + * _.unset(object, 'a[0].b.c'); + * // => true + * + * console.log(object); + * // => { 'a': [{ 'b': {} }] }; + * + * _.unset(object, ['a', '0', 'b', 'c']); + * // => true + * + * console.log(object); + * // => { 'a': [{ 'b': {} }] }; + */ + function unset(object, path) { + return object == null ? true : baseUnset(object, path); + } + + /** + * This method is like `_.set` except that accepts `updater` to produce the + * value to set. Use `_.updateWith` to customize `path` creation. The `updater` + * is invoked with one argument: (value). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.6.0 + * @category Object + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {Function} updater The function to produce the updated value. + * @returns {Object} Returns `object`. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }] }; + * + * _.update(object, 'a[0].b.c', function(n) { return n * n; }); + * console.log(object.a[0].b.c); + * // => 9 + * + * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; }); + * console.log(object.x[0].y.z); + * // => 0 + */ + function update(object, path, updater) { + return object == null ? object : baseUpdate(object, path, castFunction(updater)); + } + + /** + * This method is like `_.update` except that it accepts `customizer` which is + * invoked to produce the objects of `path`. If `customizer` returns `undefined` + * path creation is handled by the method instead. The `customizer` is invoked + * with three arguments: (nsValue, key, nsObject). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.6.0 + * @category Object + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {Function} updater The function to produce the updated value. + * @param {Function} [customizer] The function to customize assigned values. + * @returns {Object} Returns `object`. + * @example + * + * var object = {}; + * + * _.updateWith(object, '[0][1]', _.constant('a'), Object); + * // => { '0': { '1': 'a' } } + */ + function updateWith(object, path, updater, customizer) { + customizer = typeof customizer == 'function' ? customizer : undefined; + return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer); + } + + /** + * Creates an array of the own enumerable string keyed property values of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property values. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.values(new Foo); + * // => [1, 2] (iteration order is not guaranteed) + * + * _.values('hi'); + * // => ['h', 'i'] + */ + function values(object) { + return object == null ? [] : baseValues(object, keys(object)); + } + + /** + * Creates an array of the own and inherited enumerable string keyed property + * values of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property values. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.valuesIn(new Foo); + * // => [1, 2, 3] (iteration order is not guaranteed) + */ + function valuesIn(object) { + return object == null ? [] : baseValues(object, keysIn(object)); + } + + /*------------------------------------------------------------------------*/ + + /** + * Clamps `number` within the inclusive `lower` and `upper` bounds. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Number + * @param {number} number The number to clamp. + * @param {number} [lower] The lower bound. + * @param {number} upper The upper bound. + * @returns {number} Returns the clamped number. + * @example + * + * _.clamp(-10, -5, 5); + * // => -5 + * + * _.clamp(10, -5, 5); + * // => 5 + */ + 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); + } + + /** + * Checks if `n` is between `start` and up to, but not including, `end`. If + * `end` is not specified, it's set to `start` with `start` then set to `0`. + * If `start` is greater than `end` the params are swapped to support + * negative ranges. + * + * @static + * @memberOf _ + * @since 3.3.0 + * @category Number + * @param {number} number The number to check. + * @param {number} [start=0] The start of the range. + * @param {number} end The end of the range. + * @returns {boolean} Returns `true` if `number` is in the range, else `false`. + * @see _.range, _.rangeRight + * @example + * + * _.inRange(3, 2, 4); + * // => true + * + * _.inRange(4, 8); + * // => true + * + * _.inRange(4, 2); + * // => false + * + * _.inRange(2, 2); + * // => false + * + * _.inRange(1.2, 2); + * // => true + * + * _.inRange(5.2, 4); + * // => false + * + * _.inRange(-3, -2, -6); + * // => true + */ + 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); + } + + /** + * Produces a random number between the inclusive `lower` and `upper` bounds. + * If only one argument is provided a number between `0` and the given number + * is returned. If `floating` is `true`, or either `lower` or `upper` are + * floats, a floating-point number is returned instead of an integer. + * + * **Note:** JavaScript follows the IEEE-754 standard for resolving + * floating-point values which can produce unexpected results. + * + * @static + * @memberOf _ + * @since 0.7.0 + * @category Number + * @param {number} [lower=0] The lower bound. + * @param {number} [upper=1] The upper bound. + * @param {boolean} [floating] Specify returning a floating-point number. + * @returns {number} Returns the random number. + * @example + * + * _.random(0, 5); + * // => an integer between 0 and 5 + * + * _.random(5); + * // => also an integer between 0 and 5 + * + * _.random(5, true); + * // => a floating-point number between 0 and 5 + * + * _.random(1.2, 5.2); + * // => a floating-point number between 1.2 and 5.2 + */ + 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); + } + + /*------------------------------------------------------------------------*/ + + /** + * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the camel cased string. + * @example + * + * _.camelCase('Foo Bar'); + * // => 'fooBar' + * + * _.camelCase('--foo-bar--'); + * // => 'fooBar' + * + * _.camelCase('__FOO_BAR__'); + * // => 'fooBar' + */ + var camelCase = createCompounder(function(result, word, index) { + word = word.toLowerCase(); + return result + (index ? capitalize(word) : word); + }); + + /** + * Converts the first character of `string` to upper case and the remaining + * to lower case. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to capitalize. + * @returns {string} Returns the capitalized string. + * @example + * + * _.capitalize('FRED'); + * // => 'Fred' + */ + function capitalize(string) { + return upperFirst(toString(string).toLowerCase()); + } + + /** + * Deburrs `string` by converting + * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) + * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A) + * letters to basic Latin letters and removing + * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to deburr. + * @returns {string} Returns the deburred string. + * @example + * + * _.deburr('déjà vu'); + * // => 'deja vu' + */ + function deburr(string) { + string = toString(string); + return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ''); + } + + /** + * Checks if `string` ends with the given target string. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to inspect. + * @param {string} [target] The string to search for. + * @param {number} [position=string.length] The position to search up to. + * @returns {boolean} Returns `true` if `string` ends with `target`, + * else `false`. + * @example + * + * _.endsWith('abc', 'c'); + * // => true + * + * _.endsWith('abc', 'b'); + * // => false + * + * _.endsWith('abc', 'b', 2); + * // => true + */ + 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; + } + + /** + * Converts the characters "&", "<", ">", '"', and "'" in `string` to their + * corresponding HTML entities. + * + * **Note:** No other characters are escaped. To escape additional + * characters use a third-party library like [_he_](https://mths.be/he). + * + * Though the ">" character is escaped for symmetry, characters like + * ">" and "/" don't need escaping in HTML and have no special meaning + * unless they're part of a tag or unquoted attribute value. See + * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands) + * (under "semi-related fun fact") for more details. + * + * When working with HTML you should always + * [quote attribute values](http://wonko.com/post/html-escaping) to reduce + * XSS vectors. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category String + * @param {string} [string=''] The string to escape. + * @returns {string} Returns the escaped string. + * @example + * + * _.escape('fred, barney, & pebbles'); + * // => 'fred, barney, & pebbles' + */ + function escape(string) { + string = toString(string); + return (string && reHasUnescapedHtml.test(string)) + ? string.replace(reUnescapedHtml, escapeHtmlChar) + : string; + } + + /** + * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+", + * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to escape. + * @returns {string} Returns the escaped string. + * @example + * + * _.escapeRegExp('[lodash](https://lodash.com/)'); + * // => '\[lodash\]\(https://lodash\.com/\)' + */ + function escapeRegExp(string) { + string = toString(string); + return (string && reHasRegExpChar.test(string)) + ? string.replace(reRegExpChar, '\\$&') + : string; + } + + /** + * Converts `string` to + * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the kebab cased string. + * @example + * + * _.kebabCase('Foo Bar'); + * // => 'foo-bar' + * + * _.kebabCase('fooBar'); + * // => 'foo-bar' + * + * _.kebabCase('__FOO_BAR__'); + * // => 'foo-bar' + */ + var kebabCase = createCompounder(function(result, word, index) { + return result + (index ? '-' : '') + word.toLowerCase(); + }); + + /** + * Converts `string`, as space separated words, to lower case. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the lower cased string. + * @example + * + * _.lowerCase('--Foo-Bar--'); + * // => 'foo bar' + * + * _.lowerCase('fooBar'); + * // => 'foo bar' + * + * _.lowerCase('__FOO_BAR__'); + * // => 'foo bar' + */ + var lowerCase = createCompounder(function(result, word, index) { + return result + (index ? ' ' : '') + word.toLowerCase(); + }); + + /** + * Converts the first character of `string` to lower case. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.lowerFirst('Fred'); + * // => 'fred' + * + * _.lowerFirst('FRED'); + * // => 'fRED' + */ + var lowerFirst = createCaseFirst('toLowerCase'); + + /** + * Pads `string` on the left and right sides if it's shorter than `length`. + * Padding characters are truncated if they can't be evenly divided by `length`. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to pad. + * @param {number} [length=0] The padding length. + * @param {string} [chars=' '] The string used as padding. + * @returns {string} Returns the padded string. + * @example + * + * _.pad('abc', 8); + * // => ' abc ' + * + * _.pad('abc', 8, '_-'); + * // => '_-abc_-_' + * + * _.pad('abc', 3); + * // => 'abc' + */ + function pad(string, length, chars) { + string = toString(string); + length = toInteger(length); + + var strLength = length ? stringSize(string) : 0; + if (!length || strLength >= length) { + return string; + } + var mid = (length - strLength) / 2; + return ( + createPadding(nativeFloor(mid), chars) + + string + + createPadding(nativeCeil(mid), chars) + ); + } + + /** + * Pads `string` on the right side if it's shorter than `length`. Padding + * characters are truncated if they exceed `length`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category String + * @param {string} [string=''] The string to pad. + * @param {number} [length=0] The padding length. + * @param {string} [chars=' '] The string used as padding. + * @returns {string} Returns the padded string. + * @example + * + * _.padEnd('abc', 6); + * // => 'abc ' + * + * _.padEnd('abc', 6, '_-'); + * // => 'abc_-_' + * + * _.padEnd('abc', 3); + * // => 'abc' + */ + function padEnd(string, length, chars) { + string = toString(string); + length = toInteger(length); + + var strLength = length ? stringSize(string) : 0; + return (length && strLength < length) + ? (string + createPadding(length - strLength, chars)) + : string; + } + + /** + * Pads `string` on the left side if it's shorter than `length`. Padding + * characters are truncated if they exceed `length`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category String + * @param {string} [string=''] The string to pad. + * @param {number} [length=0] The padding length. + * @param {string} [chars=' '] The string used as padding. + * @returns {string} Returns the padded string. + * @example + * + * _.padStart('abc', 6); + * // => ' abc' + * + * _.padStart('abc', 6, '_-'); + * // => '_-_abc' + * + * _.padStart('abc', 3); + * // => 'abc' + */ + function padStart(string, length, chars) { + string = toString(string); + length = toInteger(length); + + var strLength = length ? stringSize(string) : 0; + return (length && strLength < length) + ? (createPadding(length - strLength, chars) + string) + : string; + } + + /** + * Converts `string` to an integer of the specified radix. If `radix` is + * `undefined` or `0`, a `radix` of `10` is used unless `value` is a + * hexadecimal, in which case a `radix` of `16` is used. + * + * **Note:** This method aligns with the + * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`. + * + * @static + * @memberOf _ + * @since 1.1.0 + * @category String + * @param {string} string The string to convert. + * @param {number} [radix=10] The radix to interpret `value` by. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {number} Returns the converted integer. + * @example + * + * _.parseInt('08'); + * // => 8 + * + * _.map(['6', '08', '10'], _.parseInt); + * // => [6, 8, 10] + */ + function parseInt(string, radix, guard) { + if (guard || radix == null) { + radix = 0; + } else if (radix) { + radix = +radix; + } + return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0); + } + + /** + * Repeats the given string `n` times. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to repeat. + * @param {number} [n=1] The number of times to repeat the string. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {string} Returns the repeated string. + * @example + * + * _.repeat('*', 3); + * // => '***' + * + * _.repeat('abc', 2); + * // => 'abcabc' + * + * _.repeat('abc', 0); + * // => '' + */ + function repeat(string, n, guard) { + if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) { + n = 1; + } else { + n = toInteger(n); + } + return baseRepeat(toString(string), n); + } + + /** + * Replaces matches for `pattern` in `string` with `replacement`. + * + * **Note:** This method is based on + * [`String#replace`](https://mdn.io/String/replace). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category String + * @param {string} [string=''] The string to modify. + * @param {RegExp|string} pattern The pattern to replace. + * @param {Function|string} replacement The match replacement. + * @returns {string} Returns the modified string. + * @example + * + * _.replace('Hi Fred', 'Fred', 'Barney'); + * // => 'Hi Barney' + */ + function replace() { + var args = arguments, + string = toString(args[0]); + + return args.length < 3 ? string : string.replace(args[1], args[2]); + } + + /** + * Converts `string` to + * [snake case](https://en.wikipedia.org/wiki/Snake_case). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the snake cased string. + * @example + * + * _.snakeCase('Foo Bar'); + * // => 'foo_bar' + * + * _.snakeCase('fooBar'); + * // => 'foo_bar' + * + * _.snakeCase('--FOO-BAR--'); + * // => 'foo_bar' + */ + var snakeCase = createCompounder(function(result, word, index) { + return result + (index ? '_' : '') + word.toLowerCase(); + }); + + /** + * Splits `string` by `separator`. + * + * **Note:** This method is based on + * [`String#split`](https://mdn.io/String/split). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category String + * @param {string} [string=''] The string to split. + * @param {RegExp|string} separator The separator pattern to split by. + * @param {number} [limit] The length to truncate results to. + * @returns {Array} Returns the string segments. + * @example + * + * _.split('a-b-c', '-', 2); + * // => ['a', 'b'] + */ + 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); + } + + /** + * Converts `string` to + * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage). + * + * @static + * @memberOf _ + * @since 3.1.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the start cased string. + * @example + * + * _.startCase('--foo-bar--'); + * // => 'Foo Bar' + * + * _.startCase('fooBar'); + * // => 'Foo Bar' + * + * _.startCase('__FOO_BAR__'); + * // => 'FOO BAR' + */ + var startCase = createCompounder(function(result, word, index) { + return result + (index ? ' ' : '') + upperFirst(word); + }); + + /** + * Checks if `string` starts with the given target string. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to inspect. + * @param {string} [target] The string to search for. + * @param {number} [position=0] The position to search from. + * @returns {boolean} Returns `true` if `string` starts with `target`, + * else `false`. + * @example + * + * _.startsWith('abc', 'a'); + * // => true + * + * _.startsWith('abc', 'b'); + * // => false + * + * _.startsWith('abc', 'b', 1); + * // => true + */ + function startsWith(string, target, position) { + string = toString(string); + position = position == null + ? 0 + : baseClamp(toInteger(position), 0, string.length); + + target = baseToString(target); + return string.slice(position, position + target.length) == target; + } + + /** + * Creates a compiled template function that can interpolate data properties + * in "interpolate" delimiters, HTML-escape interpolated data properties in + * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data + * properties may be accessed as free variables in the template. If a setting + * object is given, it takes precedence over `_.templateSettings` values. + * + * **Note:** In the development build `_.template` utilizes + * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) + * for easier debugging. + * + * For more information on precompiling templates see + * [lodash's custom builds documentation](https://lodash.com/custom-builds). + * + * For more information on Chrome extension sandboxes see + * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval). + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category String + * @param {string} [string=''] The template string. + * @param {Object} [options={}] The options object. + * @param {RegExp} [options.escape=_.templateSettings.escape] + * The HTML "escape" delimiter. + * @param {RegExp} [options.evaluate=_.templateSettings.evaluate] + * The "evaluate" delimiter. + * @param {Object} [options.imports=_.templateSettings.imports] + * An object to import into the template as free variables. + * @param {RegExp} [options.interpolate=_.templateSettings.interpolate] + * The "interpolate" delimiter. + * @param {string} [options.sourceURL='lodash.templateSources[n]'] + * The sourceURL of the compiled template. + * @param {string} [options.variable='obj'] + * The data object variable name. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Function} Returns the compiled template function. + * @example + * + * // Use the "interpolate" delimiter to create a compiled template. + * var compiled = _.template('hello <%= user %>!'); + * compiled({ 'user': 'fred' }); + * // => 'hello fred!' + * + * // Use the HTML "escape" delimiter to escape data property values. + * var compiled = _.template('<%- value %>'); + * compiled({ 'value': ' \ No newline at end of file diff --git a/node_modules/tslib/tslib.es6.js b/node_modules/tslib/tslib.es6.js new file mode 100644 index 0000000..fc18d15 --- /dev/null +++ b/node_modules/tslib/tslib.es6.js @@ -0,0 +1,379 @@ +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global Reflect, Promise, SuppressedError, Symbol, Iterator */ + +var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); +}; + +export function __extends(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} + +export var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + } + return __assign.apply(this, arguments); +} + +export function __rest(s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +} + +export function __decorate(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +} + +export function __param(paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +} + +export function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; + +export function __runInitializers(thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; + +export function __propKey(x) { + return typeof x === "symbol" ? x : "".concat(x); +}; + +export function __setFunctionName(f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); +}; + +export function __metadata(metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); +} + +export function __awaiter(thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +} + +export function __generator(thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); + return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +} + +export var __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +}); + +export function __exportStar(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); +} + +export function __values(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +} + +export function __read(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +} + +/** @deprecated */ +export function __spread() { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; +} + +/** @deprecated */ +export function __spreadArrays() { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; +} + +export function __spreadArray(to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +} + +export function __await(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); +} + +export function __asyncGenerator(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +} + +export function __asyncDelegator(o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } +} + +export function __asyncValues(o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +} + +export function __makeTemplateObject(cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; +}; + +var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}; + +export function __importStar(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +} + +export function __importDefault(mod) { + return (mod && mod.__esModule) ? mod : { default: mod }; +} + +export function __classPrivateFieldGet(receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +} + +export function __classPrivateFieldSet(receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; +} + +export function __classPrivateFieldIn(state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); +} + +export function __addDisposableResource(env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose, inner; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + if (async) inner = dispose; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + +} + +var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; +}; + +export function __disposeResources(env) { + function fail(e) { + env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + var r, s = 0; + function next() { + while (r = env.stack.pop()) { + try { + if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); + if (r.dispose) { + var result = r.dispose.call(r.value); + if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + else s |= 1; + } + catch (e) { + fail(e); + } + } + if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); + if (env.hasError) throw env.error; + } + return next(); +} + +export default { + __extends: __extends, + __assign: __assign, + __rest: __rest, + __decorate: __decorate, + __param: __param, + __metadata: __metadata, + __awaiter: __awaiter, + __generator: __generator, + __createBinding: __createBinding, + __exportStar: __exportStar, + __values: __values, + __read: __read, + __spread: __spread, + __spreadArrays: __spreadArrays, + __spreadArray: __spreadArray, + __await: __await, + __asyncGenerator: __asyncGenerator, + __asyncDelegator: __asyncDelegator, + __asyncValues: __asyncValues, + __makeTemplateObject: __makeTemplateObject, + __importStar: __importStar, + __importDefault: __importDefault, + __classPrivateFieldGet: __classPrivateFieldGet, + __classPrivateFieldSet: __classPrivateFieldSet, + __classPrivateFieldIn: __classPrivateFieldIn, + __addDisposableResource: __addDisposableResource, + __disposeResources: __disposeResources, +}; diff --git a/node_modules/tslib/tslib.es6.mjs b/node_modules/tslib/tslib.es6.mjs new file mode 100644 index 0000000..17bb2ff --- /dev/null +++ b/node_modules/tslib/tslib.es6.mjs @@ -0,0 +1,378 @@ +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global Reflect, Promise, SuppressedError, Symbol, Iterator */ + +var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); +}; + +export function __extends(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} + +export var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + } + return __assign.apply(this, arguments); +} + +export function __rest(s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +} + +export function __decorate(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +} + +export function __param(paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +} + +export function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; + +export function __runInitializers(thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; + +export function __propKey(x) { + return typeof x === "symbol" ? x : "".concat(x); +}; + +export function __setFunctionName(f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); +}; + +export function __metadata(metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); +} + +export function __awaiter(thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +} + +export function __generator(thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); + return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +} + +export var __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +}); + +export function __exportStar(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); +} + +export function __values(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +} + +export function __read(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +} + +/** @deprecated */ +export function __spread() { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; +} + +/** @deprecated */ +export function __spreadArrays() { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; +} + +export function __spreadArray(to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +} + +export function __await(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); +} + +export function __asyncGenerator(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +} + +export function __asyncDelegator(o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } +} + +export function __asyncValues(o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +} + +export function __makeTemplateObject(cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; +}; + +var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}; + +export function __importStar(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +} + +export function __importDefault(mod) { + return (mod && mod.__esModule) ? mod : { default: mod }; +} + +export function __classPrivateFieldGet(receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +} + +export function __classPrivateFieldSet(receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; +} + +export function __classPrivateFieldIn(state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); +} + +export function __addDisposableResource(env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose, inner; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + if (async) inner = dispose; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; +} + +var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; +}; + +export function __disposeResources(env) { + function fail(e) { + env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + var r, s = 0; + function next() { + while (r = env.stack.pop()) { + try { + if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); + if (r.dispose) { + var result = r.dispose.call(r.value); + if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + else s |= 1; + } + catch (e) { + fail(e); + } + } + if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); + if (env.hasError) throw env.error; + } + return next(); +} + +export default { + __extends, + __assign, + __rest, + __decorate, + __param, + __metadata, + __awaiter, + __generator, + __createBinding, + __exportStar, + __values, + __read, + __spread, + __spreadArrays, + __spreadArray, + __await, + __asyncGenerator, + __asyncDelegator, + __asyncValues, + __makeTemplateObject, + __importStar, + __importDefault, + __classPrivateFieldGet, + __classPrivateFieldSet, + __classPrivateFieldIn, + __addDisposableResource, + __disposeResources, +}; diff --git a/node_modules/tslib/tslib.html b/node_modules/tslib/tslib.html new file mode 100644 index 0000000..44c9ba5 --- /dev/null +++ b/node_modules/tslib/tslib.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/tslib/tslib.js b/node_modules/tslib/tslib.js new file mode 100644 index 0000000..429c11a --- /dev/null +++ b/node_modules/tslib/tslib.js @@ -0,0 +1,429 @@ +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global global, define, Symbol, Reflect, Promise, SuppressedError, Iterator */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __esDecorate; +var __runInitializers; +var __propKey; +var __setFunctionName; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __spreadArrays; +var __spreadArray; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +var __classPrivateFieldGet; +var __classPrivateFieldSet; +var __classPrivateFieldIn; +var __createBinding; +var __addDisposableResource; +var __disposeResources; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if (typeof module === "object" && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + + __extends = function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __esDecorate = function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; + }; + + __runInitializers = function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; + }; + + __propKey = function (x) { + return typeof x === "symbol" ? x : "".concat(x); + }; + + __setFunctionName = function (f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); + return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); + }; + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + + __values = function (o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + /** @deprecated */ + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + /** @deprecated */ + __spreadArrays = function () { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + + __spreadArray = function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + + __importStar = function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + __classPrivateFieldGet = function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + + __classPrivateFieldSet = function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + }; + + __classPrivateFieldIn = function (state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + }; + + __addDisposableResource = function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose, inner; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + if (async) inner = dispose; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + }; + + var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + }; + + __disposeResources = function (env) { + function fail(e) { + env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + var r, s = 0; + function next() { + while (r = env.stack.pop()) { + try { + if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); + if (r.dispose) { + var result = r.dispose.call(r.value); + if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + else s |= 1; + } + catch (e) { + fail(e); + } + } + if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); + if (env.hasError) throw env.error; + } + return next(); + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__esDecorate", __esDecorate); + exporter("__runInitializers", __runInitializers); + exporter("__propKey", __propKey); + exporter("__setFunctionName", __setFunctionName); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); + exporter("__classPrivateFieldIn", __classPrivateFieldIn); + exporter("__addDisposableResource", __addDisposableResource); + exporter("__disposeResources", __disposeResources); +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..0fe9088 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "medusa-file-cloudinary": "^1.0.2" + } +} diff --git a/server/index.js b/server/index.js index bb3a3e7..6255cfd 100644 --- a/server/index.js +++ b/server/index.js @@ -1,25 +1,24 @@ const express = require("express") const { GracefulShutdownServer } = require("medusa-core-utils") -const customRoutes = require("./routes/auth/auth.route") +const globalRoutes = require("./routes/index.routes") const loaders = require("@medusajs/medusa/dist/loaders/index").default (async() => { async function start() { const app = express() - const directory = process.cwd() try { const { container } = await loaders({ - directory, + directory:process.cwd(), expressApp: app, }); const configModule = container.resolve("configModule"); const port = process.env.PORT ?? configModule.projectConfig.port ?? 9000; // Middleware to parse JSON requests - app.use(express.json()); + // Use your custom routes - app.use("/api", customRoutes); // Prefixing all custom routes with /api + app.use("/api/v1", globalRoutes); // Prefixing all custom routes with /api const server = GracefulShutdownServer.create( app.listen(port, (err) => { if (err) { diff --git a/server/medusa-config.js b/server/medusa-config.js index 9d3faa7..42c97fe 100644 --- a/server/medusa-config.js +++ b/server/medusa-config.js @@ -123,24 +123,45 @@ const plugins = [ cloud_name: process.env.CLOUD_NAME, api_key: process.env.CLOUD_API_KEY, api_secret: process.env.CLOUD_API_SECRET, - secure: true, }, }, - //sendgrid plugin - + // ** Uncomment to add Twilio SMS support { - resolve: `medusa-plugin-resend-custom`, + resolve: `medusa-plugin-twilio-sms`, options: { - api_key: process.env.RESEND_API_ID, - template_path: process.env.SES_TEMPLATE_PATH, - subject_template_type: process.env.RESEND_SUBJECT_TEMPLATE_TYPE || "handlebars", - body_template_type: process.env.RESEND_BODY_TEMPLATE_TYPE || "handlebars", - order_placed_template: "order_placed", - order_shipped_template: "order_shipped", - customer_password_reset_template: "customer_password_reset", - gift_card_created_template: "gift_card_created", + account_sid: process.env.TWILIO_SMS_ACCOUNT_SID, + auth_token: process.env.TWILIO_SMS_AUTH_TOKEN, + from_number: process.env.TWILIO_SMS_FROM_NUMBER, }, }, + + // ** Uncomment to add Email support + { + resolve: "@rootxpdev/medusa-email-plugin", + options: { + templateDir: "node_modules/@rootxpdev/medusa-email-plugin/data/emails", + fromAddress: process.env.FROM_EMAIL, // Use the FROM_EMAIL env variable + smtpHost: process.env.SMTP_HOST, // Use the SMTP_HOST env variable + smtpPort: process.env.SMTP_PORT, // Use the SMTP_PORT env variable + smtpUser: process.env.SMTP_USER, // Use the SMTP_USER env variable + smtpPassword: process.env.SMTP_PASS, // Use the SMTP_PASS env variable + }, + }, + // ..., + // { + // resolve: `medusa-plugin-sendgrid`, + // options: { + // api_key: process.env.SENDGRID_API_KEY, + // from: process.env.SENDGRID_FROM, + // order_placed_template: process.env||"SENDGRID_ORDER_PLACED_ID", + // localization: { + // "de-DE": { + // // locale key + // order_placed_template: process.env.SENDGRID_ORDER_PLACED_ID_LOCALIZED, + // }, + // }, + // }, + // }, ]; const modules = { diff --git a/server/package.json b/server/package.json index 676e23b..c76056d 100644 --- a/server/package.json +++ b/server/package.json @@ -33,17 +33,22 @@ "@medusajs/file-local": "1.0.4", "@medusajs/framework": "^0.0.1", "@medusajs/medusa": "^1.20.9", + "@react-spring/web": "^9.7.5", + "@rootxpdev/medusa-email-plugin": "^0.8.0", "@tanstack/react-query": "4.22.0", + "@visx/xychart": "^3.11.0", "body-parser": "^1.19.0", "cors": "^2.8.5", "dotenv": "16.3.1", "express": "^4.17.2", + "medusa-file-cloudinary": "^1.0.2", "medusa-fulfillment-manual": "1.1.41", "medusa-interfaces": "1.3.10", "medusa-payment-manual": "1.0.25", "medusa-payment-stripe": "^6.0.11", "medusa-plugin-algolia": "^0.2.21", "medusa-plugin-dashboard": "^0.1.6", + "medusa-plugin-twilio-sms": "^1.2.9", "prism-react-renderer": "^2.0.4", "typeorm": "0.3.16" }, diff --git a/server/routes/index.routes.ts b/server/routes/index.routes.ts index e69de29..af88fa4 100644 --- a/server/routes/index.routes.ts +++ b/server/routes/index.routes.ts @@ -0,0 +1,7 @@ +const authRoutes = require("./auth/auth.route"); // Corrected the path +const globalRouter =require("express").Router(); + +// Example route: Get all Items +globalRouter.use("/auth", authRoutes); // Prefix with /auth for clarity + +module.exports = globalRouter; diff --git a/server/src/api/admin/custom/route.ts b/server/src/api/admin/custom/route.ts deleted file mode 100644 index 708bcb4..0000000 --- a/server/src/api/admin/custom/route.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { MedusaRequest, MedusaResponse } from "@medusajs/medusa"; - -export async function GET( - req: MedusaRequest, - res: MedusaResponse -): Promise { - res.sendStatus(200); -} diff --git a/server/src/api/admin/onboarding/route.ts b/server/src/api/admin/onboarding/route.ts index 9a5d990..1e32126 100644 --- a/server/src/api/admin/onboarding/route.ts +++ b/server/src/api/admin/onboarding/route.ts @@ -5,7 +5,7 @@ import OnboardingService from "../../../services/onboarding"; export async function GET(req: MedusaRequest, res: MedusaResponse) { const onboardingService: OnboardingService = - req.scope.resolve("onboardingService"); + req.scope.resolve("onboardingService"); const status = await onboardingService.retrieve(); diff --git a/server/src/api/admin/productss/[id]/route.ts b/server/src/api/admin/productss/[id]/route.ts new file mode 100644 index 0000000..7601353 --- /dev/null +++ b/server/src/api/admin/productss/[id]/route.ts @@ -0,0 +1,14 @@ +// api/admin/products/[id]/route.ts + +import { MedusaRequest, MedusaResponse } from "@medusajs/medusa"; + +export async function POST(req: MedusaRequest, res: MedusaResponse) { + const { id } = req.params; + const { payload } = req.body as { payload: Record }; + + const productService = req.scope.resolve("productService"); + + const product = await productService.update(id, payload); + + res.json({ product }); +} diff --git a/server/src/api/admin/productss/route.ts b/server/src/api/admin/productss/route.ts new file mode 100644 index 0000000..6e689f5 --- /dev/null +++ b/server/src/api/admin/productss/route.ts @@ -0,0 +1,10 @@ +// api/admin/products/route.ts +import { MedusaRequest, MedusaResponse } from "@medusajs/medusa"; + +export async function GET(req: MedusaRequest, res: MedusaResponse) { + const productService = req.scope.resolve("productService"); + + const products = await productService.list(); + + res.json({ products }); +} diff --git a/server/src/api/hello-world/route.ts b/server/src/api/hello-world/route.ts new file mode 100644 index 0000000..d62feec --- /dev/null +++ b/server/src/api/hello-world/route.ts @@ -0,0 +1,7 @@ +import type { MedusaRequest, MedusaResponse } from "@medusajs/medusa"; + +export const GET = (req: MedusaRequest, res: MedusaResponse) => { + res.json({ + message: "Hello, world!", + }); +}; diff --git a/server/src/api/middlewares.ts b/server/src/api/middlewares.ts new file mode 100644 index 0000000..cc7a9df --- /dev/null +++ b/server/src/api/middlewares.ts @@ -0,0 +1,13 @@ +// api/middlewares.ts + +import type { MiddlewaresConfig } from "@medusajs/medusa"; + +export const config: MiddlewaresConfig = { + routes: [ + { + method: [ "POST",'GET'], + matcher: "/store/*", + middlewares: [], + }, + ], +}; diff --git a/server/src/api/store/custom/route.ts b/server/src/api/store/custom/route.ts index 708bcb4..253922a 100644 --- a/server/src/api/store/custom/route.ts +++ b/server/src/api/store/custom/route.ts @@ -1,8 +1,13 @@ -import { MedusaRequest, MedusaResponse } from "@medusajs/medusa"; +import type { MedusaRequest, MedusaResponse } from "@medusajs/medusa"; -export async function GET( - req: MedusaRequest, - res: MedusaResponse -): Promise { - res.sendStatus(200); -} +export const GET = (req: MedusaRequest, res: MedusaResponse) => { + res.json({ + message: "[GET] Hello world!", + }); +}; + +export const POST = (req: MedusaRequest, res: MedusaResponse) => { + res.json({ + message: "[POST] Hello world!", + }); +}; diff --git a/server/src/subscribers/sms.ts b/server/src/subscribers/sms.ts new file mode 100644 index 0000000..53ebfb7 --- /dev/null +++ b/server/src/subscribers/sms.ts @@ -0,0 +1,33 @@ +import { + type SubscriberConfig, + type SubscriberArgs, + OrderService, +} from "@medusajs/medusa"; + +export default async function handleOrderPlaced({ + data, + eventName, + container, + pluginOptions, +}: SubscriberArgs>) { + const twilioSmsService = container.resolve("twilioSmsService"); + const orderService: OrderService = container.resolve("orderService"); + + const order = await orderService.retrieve(data.id, { + relations: ["shipping_address"], + }); + + if (order.shipping_address.phone) { + twilioSmsService.sendSms({ + to: order.shipping_address.phone, + body: "We have received your order #" + data.id, + }); + } +} + +export const config: SubscriberConfig = { + event: OrderService.Events.PLACED, + context: { + subscriberId: "order-placed-handler", + }, +}; diff --git a/server/tsconfig.json b/server/tsconfig.json index c182f0c..f8c1a35 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -12,14 +12,14 @@ "declaration": true, "sourceMap": false, "outDir": "./dist", - "rootDir": "./src", + "rootDir": "./", //./src "baseUrl": ".", "jsx": "react-jsx", "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, "checkJs": false }, - "include": ["src/", "routes"], + "include": ["src/","routes/"], "exclude": [ "**/__tests__", "**/__fixtures__", diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..3164b34 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,211 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + +awilix@^8.0.0: + version "8.0.1" + resolved "https://registry.yarnpkg.com/awilix/-/awilix-8.0.1.tgz#4f4704038cc5df3f8f2b9254031af79d4d3708bb" + integrity sha512-zDSp4R204scvQIDb2GMoWigzXemn0+3AKKIAt543T9v2h7lmoypvkmcx1W/Jet/nm27R1N1AsqrsYVviAR9KrA== + dependencies: + camel-case "^4.1.2" + fast-glob "^3.2.12" + +braces@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" + integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== + dependencies: + fill-range "^7.1.1" + +camel-case@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-4.1.2.tgz#9728072a954f805228225a6deea6b38461e1bd5a" + integrity sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw== + dependencies: + pascal-case "^3.1.2" + tslib "^2.0.3" + +cloudinary-core@^2.13.0: + version "2.13.1" + resolved "https://registry.yarnpkg.com/cloudinary-core/-/cloudinary-core-2.13.1.tgz#7abb62bf1db41773acfe1eebb7fd40571c34495b" + integrity sha512-z53GPNWnvU0Zi+ns8CIVbZBfj7ps/++zDvwIyiFuq5p1MoK+KUCg0k5mBceDDHTnx1gHmHUd9aohS+gDxPNt6w== + +cloudinary@^1.27.1: + version "1.41.3" + resolved "https://registry.yarnpkg.com/cloudinary/-/cloudinary-1.41.3.tgz#dc96725122099349adba6ab4eccda84fa13e8c2e" + integrity sha512-4o84y+E7dbif3lMns+p3UW6w6hLHEifbX/7zBJvaih1E9QNMZITENQ14GPYJC4JmhygYXsuuBb9bRA3xWEoOfg== + dependencies: + cloudinary-core "^2.13.0" + core-js "^3.30.1" + lodash "^4.17.21" + q "^1.5.1" + +core-js@^3.30.1: + version "3.38.1" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.38.1.tgz#aa375b79a286a670388a1a363363d53677c0383e" + integrity sha512-OP35aUorbU3Zvlx7pjsFdu1rGNnD4pgw/CWoYzRY3t2EzoVT7shKHY1dlAy3f41cGIO7ZDPQimhGFTlEYkG/Hw== + +fast-glob@^3.2.12: + version "3.3.2" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" + integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + +fastq@^1.6.0: + version "1.17.1" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47" + integrity sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w== + dependencies: + reusify "^1.0.4" + +fill-range@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" + integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg== + dependencies: + to-regex-range "^5.0.1" + +glob-parent@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== + +is-glob@^4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +lodash@^4.17.21: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + +lower-case@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-2.0.2.tgz#6fa237c63dbdc4a82ca0fd882e4722dc5e634e28" + integrity sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg== + dependencies: + tslib "^2.0.3" + +medusa-core-utils@^1.1.30: + version "1.2.3" + resolved "https://registry.yarnpkg.com/medusa-core-utils/-/medusa-core-utils-1.2.3.tgz#d6f327c771868122721c470d2f5be3551bdf6f6e" + integrity sha512-mNUqWh8G7BF9dcxt3t22GtSJrm4pfpU98QzvNgpqAvirVbBI4lOCpDQGoKE+jMHOLQJHrLQFoSJeqcofDJvEgA== + dependencies: + awilix "^8.0.0" + +medusa-file-cloudinary@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/medusa-file-cloudinary/-/medusa-file-cloudinary-1.0.2.tgz#b790d8e94b335352d6c0d1ae8b1a2259766c0de1" + integrity sha512-FTdRrCtfsbQjtdBnD3xbXjR42mI+rlnHtbayJZNHh+3wbF4jObCxHFM5sTJBgbVVRdkVp7frL6irwpqoQ67hOQ== + dependencies: + cloudinary "^1.27.1" + medusa-core-utils "^1.1.30" + +merge2@^1.3.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + +micromatch@^4.0.4: + version "4.0.8" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" + integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== + dependencies: + braces "^3.0.3" + picomatch "^2.3.1" + +no-case@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d" + integrity sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg== + dependencies: + lower-case "^2.0.2" + tslib "^2.0.3" + +pascal-case@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/pascal-case/-/pascal-case-3.1.2.tgz#b48e0ef2b98e205e7c1dae747d0b1508237660eb" + integrity sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g== + dependencies: + no-case "^3.0.4" + tslib "^2.0.3" + +picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + +q@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" + integrity sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw== + +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +tslib@^2.0.3: + version "2.7.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.7.0.tgz#d9b40c5c40ab59e8738f297df3087bf1a2690c01" + integrity sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==