diff --git a/CHANGELOG.md b/CHANGELOG.md index e78cd63..5ddf633 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## [22.8.0](https://github.com/kherock/yarn-plugins/compare/v22.4.1...v22.8.0) (2022-08-12) + + +### Features + +* **plugin-release:** support manually bumping to prerelease versions ([d6cd5d1](https://github.com/kherock/yarn-plugins/commit/d6cd5d1050c93a74e2ed196b1536675a2f59536c)) +* **plugin-workspaces-export:** support interlaced output ([9afd062](https://github.com/kherock/yarn-plugins/commit/9afd062855681c557ee2c466031d7730e661bc80)) + ## [22.4.1](https://github.com/kherock/yarn-plugins/compare/v22.4.0...v22.4.1) (2022-04-18) diff --git a/package.json b/package.json index 93d0f52..cb3cd6b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kherock/yarn-plugins", - "version": "22.4.1", + "version": "22.8.0", "private": true, "license": "BSD-2-Clause", "workspaces": [ diff --git a/packages/plugin-dotenv/CHANGELOG.md b/packages/plugin-dotenv/CHANGELOG.md index 8ab18cc..efa84e9 100644 --- a/packages/plugin-dotenv/CHANGELOG.md +++ b/packages/plugin-dotenv/CHANGELOG.md @@ -1,3 +1,5 @@ +## [1.0.1](https://github.com/kherock/yarn-plugins/compare/@kherock/yarn-plugin-dotenv@1.0.0...@kherock/yarn-plugin-dotenv@1.0.1) (2022-08-12) + ## 1.0.0 (2020-10-28) diff --git a/packages/plugin-dotenv/package.json b/packages/plugin-dotenv/package.json index 3b49eff..1a2b098 100644 --- a/packages/plugin-dotenv/package.json +++ b/packages/plugin-dotenv/package.json @@ -1,6 +1,6 @@ { "name": "@kherock/yarn-plugin-dotenv", - "version": "1.0.0", + "version": "1.0.1", "license": "BSD-2-Clause", "main": "./sources/index.ts", "author": "Kyle Herock ", diff --git a/packages/plugin-esm-loader-typescript/CHANGELOG.md b/packages/plugin-esm-loader-typescript/CHANGELOG.md index e0b00cf..f84f979 100644 --- a/packages/plugin-esm-loader-typescript/CHANGELOG.md +++ b/packages/plugin-esm-loader-typescript/CHANGELOG.md @@ -1,3 +1,5 @@ +## [0.2.1](https://github.com/kherock/yarn-plugins/compare/@kherock/yarn-plugin-esm-loader-typescript@0.2.0...@kherock/yarn-plugin-esm-loader-typescript@0.2.1) (2022-08-12) + ## [0.2.0](https://github.com/kherock/yarn-plugins/compare/@kherock/yarn-plugin-esm-loader-typescript@0.1.0...@kherock/yarn-plugin-esm-loader-typescript@0.2.0) (2022-01-24) diff --git a/packages/plugin-esm-loader-typescript/package.json b/packages/plugin-esm-loader-typescript/package.json index 346aeb6..5d40f5a 100644 --- a/packages/plugin-esm-loader-typescript/package.json +++ b/packages/plugin-esm-loader-typescript/package.json @@ -1,6 +1,6 @@ { "name": "@kherock/yarn-plugin-esm-loader-typescript", - "version": "0.2.0", + "version": "0.2.1", "license": "BSD-2-Clause", "main": "./sources/index.ts", "author": "Kyle Herock ", diff --git a/packages/plugin-release/CHANGELOG.md b/packages/plugin-release/CHANGELOG.md index d346823..7fa4e18 100644 --- a/packages/plugin-release/CHANGELOG.md +++ b/packages/plugin-release/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.7.0](https://github.com/kherock/yarn-plugins/compare/@kherock/yarn-plugin-release@1.7.0...@kherock/yarn-plugin-release@1.7.0) (2022-08-12) + + +### Features + +* **plugin-release:** support manually bumping to prerelease versions ([d6cd5d1](https://github.com/kherock/yarn-plugins/commit/d6cd5d1050c93a74e2ed196b1536675a2f59536c)) + ## [1.7.0](https://github.com/kherock/yarn-plugins/compare/@kherock/yarn-plugin-release@1.6.4...@kherock/yarn-plugin-release@1.7.0) (2022-01-20) diff --git a/packages/plugin-release/bundles/@yarnpkg/plugin-release.js b/packages/plugin-release/bundles/@yarnpkg/plugin-release.js index 38bb7cc..142f41b 100644 --- a/packages/plugin-release/bundles/@yarnpkg/plugin-release.js +++ b/packages/plugin-release/bundles/@yarnpkg/plugin-release.js @@ -3,27109 +3,90 @@ module.exports = { name: "@yarnpkg/plugin-release", factory: function (require) { -var plugin = (() => { - var __create = Object.create; - var __defProp = Object.defineProperty; - var __defProps = Object.defineProperties; - var __getOwnPropDesc = Object.getOwnPropertyDescriptor; - var __getOwnPropDescs = Object.getOwnPropertyDescriptors; - var __getOwnPropNames = Object.getOwnPropertyNames; - var __getOwnPropSymbols = Object.getOwnPropertySymbols; - var __getProtoOf = Object.getPrototypeOf; - var __hasOwnProp = Object.prototype.hasOwnProperty; - var __propIsEnum = Object.prototype.propertyIsEnumerable; - var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value; - var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; - }; - var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); - var __markAsModule = (target) => __defProp(target, "__esModule", {value: true}); - var __require = (x) => { - if (typeof require !== "undefined") - return require(x); - throw new Error('Dynamic require of "' + x + '" is not supported'); - }; - var __commonJS = (cb, mod) => function __require2() { - return mod || (0, cb[Object.keys(cb)[0]])((mod = {exports: {}}).exports, mod), mod.exports; - }; - var __export = (target, all) => { - for (var name in all) - __defProp(target, name, {get: all[name], enumerable: true}); - }; - var __reExport = (target, module, desc) => { - if (module && typeof module === "object" || typeof module === "function") { - for (let key of __getOwnPropNames(module)) - if (!__hasOwnProp.call(target, key) && key !== "default") - __defProp(target, key, {get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable}); - } - return target; - }; - var __toModule = (module) => { - return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? {get: () => module.default, enumerable: true} : {value: module, enumerable: true})), module); - }; - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/calver-npm-21.1.5-283e2aad97-2f0b29a3c4.zip/node_modules/calver/src/domain/datever.js - var require_datever = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/calver-npm-21.1.5-283e2aad97-2f0b29a3c4.zip/node_modules/calver/src/domain/datever.js"(exports, module) { - module.exports = function createDateVersion(format, ver, now, alltags) { - const tags = format.split(".").filter((f) => alltags.date.indexOf(f) !== -1); - const verarr = ver.length > 0 ? ver.split(/[.-]/) : []; - const months = Array(12).fill(1).map((item, i) => (i + 1).toString()); - const monthsz = Array(12).fill(1).map((item, i) => (i > 8 ? "" : "0") + (i + 1)); - const weeks = Array(52).fill(1).map((item, i) => (i + 1).toString()); - const weeksz = Array(52).fill(1).map((item, i) => (i > 8 ? "" : "0") + (i + 1)); - const days = Array(31).fill(1).map((item, i) => (i + 1).toString()); - const daysz = Array(31).fill(1).map((item, i) => (i > 8 ? "" : "0") + (i + 1)); - let dateversion = {}; - if (verarr.length > 0) { - for (let i = 0; i < tags.length; i++) { - const t = tags[i]; - const v = verarr[i]; - validate(t, v); - dateversion[t] = v; - } - } - function validate(t, v) { - if (t == "YYYY" && /^[0-9]{4}$/.test(v) !== true) - throw new Error("Invalid year."); - if (t == "YY" && /^[0-9]{1,3}$/.test(v) !== true) - throw new Error("Invalid year."); - if (t == "0Y" && /^[0-9]{2,3}$/.test(v) !== true) - throw new Error("Invalid year."); - if (t == "MM" && months.indexOf(v) === -1) - throw new Error("Invalid month."); - if (t == "0M" && monthsz.indexOf(v) === -1) - throw new Error("Invalid month."); - if (t == "WW" && weeks.indexOf(v) === -1) - throw new Error("Invalid week."); - if (t == "0W" && weeksz.indexOf(v) === -1) - throw new Error("Invalid week."); - if (t == "DD" && days.indexOf(v) === -1) - throw new Error("Invalid day."); - if (t == "0D" && daysz.indexOf(v) === -1) - throw new Error("Invalid day."); - return true; - } - function getLiveValue(t) { - if (t == "YYYY") - return now.getUTCFullYear(); - if (t == "YY") - return parseInt(now.getUTCFullYear().toString().slice(1)); - if (t == "0Y") { - const yy = now.getUTCFullYear().toString().slice(1); - return (yy.length == 1 ? "0" : "") + yy; - } - if (t == "MM") - return now.getUTCMonth() + 1; - if (t == "0M") { - const mm = now.getUTCMonth() + 1; - return (mm < 10 ? "0" : "") + mm; - } - if (t == "WW") - return getWeekNumber(now, {zeroPadded: false}); - if (t == "0W") - return getWeekNumber(now, {zeroPadded: true}); - if (t == "DD") - return now.getUTCDate(); - if (t == "0D") { - const dd = now.getUTCDate(); - return (dd < 10 ? "0" : "") + dd; - } - } - function getWeekNumber(date, opts = {zeroPadded: false}) { - const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())); - const daynum = d.getUTCDay() || 7; - d.setUTCDate(d.getUTCDate() + 4 - daynum); - const yearstart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1)); - const result = Math.ceil(((d - yearstart) / 864e5 + 1) / 7); - return opts.zeroPadded && result < 10 ? "0" + result : result; - } - function getYear() { - const year = getLiveValue("YYYY"); - const yearbase = parseInt(year.toString().slice(0, 1)) * 1e3; - if (dateversion.hasOwnProperty("YYYY")) - return parseInt(dateversion.YYYY); - if (dateversion.hasOwnProperty("YY")) - return parseInt(dateversion.YY) + yearbase; - if (dateversion.hasOwnProperty("0Y")) - return parseInt(dateversion["0Y"]) + yearbase; - return parseInt(year); - } - function getMonth() { - const m = dateversion.hasOwnProperty("MM") ? parseInt(dateversion.MM) : dateversion.hasOwnProperty("0M") ? parseInt(dateversion["0M"]) : 1; - return m - 1; - } - function getDay() { - const m = dateversion.hasOwnProperty("DD") ? parseInt(dateversion.DD) : dateversion.hasOwnProperty("0D") ? parseInt(dateversion["0D"]) : 1; - return m; - } - function asNumeric() { - return Date.UTC(getYear(), getMonth(), getDay()); - } - function inc(level) { - if (level !== "CALENDAR") - return false; - let updated = false; - for (let i = 0; i < tags.length; i++) { - const t = tags[i]; - const lv = getLiveValue(t); - if (Number(dateversion[t]) !== lv) - updated = true; - dateversion[t] = lv.toString(); - } - return updated; - } - function asString() { - return Object.keys(dateversion).map((t) => dateversion[t]).join("."); - } - function pretty(locale = void 0) { - return new Date(asNumeric()).toLocaleString(locale, {year: "numeric", month: "long", timeZone: "UTC"}); - } - return { - inc, - asString, - asNumeric, - pretty - }; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/calver-npm-21.1.5-283e2aad97-2f0b29a3c4.zip/node_modules/calver/src/domain/semver.js - var require_semver = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/calver-npm-21.1.5-283e2aad97-2f0b29a3c4.zip/node_modules/calver/src/domain/semver.js"(exports, module) { - module.exports = function createSemanticVersion(format, ver, alltags) { - const tags = format.split(".").filter((f) => alltags.semantic.indexOf(f) !== -1); - const verarr = ver.length > 0 ? ver.split(/[.-]/) : []; - const tagsdate = format.split(".").filter((f) => alltags.date.indexOf(f) !== -1); - tagsdate.map((t) => verarr.shift()); - const semversion = {}; - for (let i = 0; i < tags.length; i++) { - const t = tags[i]; - if (verarr.length === 0) { - semversion[t] = alltags.modifier.indexOf(t) !== -1 ? "modifier.0" : "0"; - } else { - semversion[t] = t == "MODIFIER" && verarr.length == i + 2 ? verarr[i] + "." + verarr[i + 1] : t == "MODIFIER" && verarr.length != i + 2 ? "modifier.0" : verarr[i]; - } - } - function inc(level) { - if (["DEV", "ALPHA", "BETA", "RC"].indexOf(level) !== -1) { - const isLevelChanged = semversion.MODIFIER.split(".")[0].toUpperCase() != level; - const mv = semversion.MODIFIER.split(".")[1]; - semversion.MODIFIER = level.toLowerCase() + "." + (semversion.MODIFIER == "modifier.0" ? "1" : isLevelChanged ? "1" : parseInt(mv) + 1); - } - if (["MAJOR", "MINOR", "MICRO"].indexOf(level) !== -1) { - semversion[level] = (Number(semversion[level]) + 1).toString(); - semversion.MODIFIER = ""; - switch (level) { - case "MINOR": - if (semversion.hasOwnProperty("MICRO")) - semversion.MICRO = "0"; - break; - case "MAJOR": - if (semversion.hasOwnProperty("MICRO")) - semversion.MICRO = "0"; - if (semversion.hasOwnProperty("MINOR")) - semversion.MINOR = "0"; - break; - } - } - if (level === "CALENDAR") { - semversion.MODIFIER = ""; - if (semversion.hasOwnProperty("MICRO")) - semversion.MICRO = "0"; - if (semversion.hasOwnProperty("MINOR")) - semversion.MINOR = "0"; - if (semversion.hasOwnProperty("MAJOR")) - semversion.MAJOR = "0"; - } - } - function asString() { - return Object.keys(semversion).filter((t) => semversion[t] && t != "MODIFIER").map((t) => semversion[t]).join(".") + (semversion.MODIFIER && semversion.MODIFIER != "modifier.0" ? "-" + semversion.MODIFIER : ""); - } - return { - inc, - asString - }; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/calver-npm-21.1.5-283e2aad97-2f0b29a3c4.zip/node_modules/calver/src/index.js - var require_src = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/calver-npm-21.1.5-283e2aad97-2f0b29a3c4.zip/node_modules/calver/src/index.js"(exports, module) { - var createDateVersion = require_datever(); - var createSemanticVersion = require_semver(); - function Calver() { - const tags = { - date: ["YYYY", "YY", "0Y", "MM", "0M", "WW", "0W", "DD", "0D"], - semantic: ["MAJOR", "MINOR", "MICRO", "MODIFIER"], - modifier: ["DEV", "ALPHA", "BETA", "RC"] - }; - const levels = ["CALENDAR", "MAJOR", "MINOR", "MICRO", ...tags.modifier]; - const date = { - now: new Date(Date.now()) - }; - function valid(format, ver) { - format = format.toUpperCase(); - validateFormat(format); - validateVersion(ver, format); - createDateVersion(format, ver, date.now, tags); - createSemanticVersion(format, ver, tags); - return true; - } - function init(format) { - format = validateFormat(format, {transformModifiers: false}); - const datever = createDateVersion(format, "", date.now, tags); - const semver4 = createSemanticVersion(format, "", tags); - const tagssemantic = format.split(".").filter((f) => tags.semantic.indexOf(f) !== -1); - if (tagssemantic.length > 0) { - semver4.inc(tagssemantic[0]); - } - const tagsdate = format.split(".").filter((f) => tags.date.indexOf(f) !== -1); - if (tagsdate.length > 0) { - datever.inc("CALENDAR"); - semver4.inc("CALENDAR"); - } - const tagsmodifier = format.split(".").filter((f) => tags.modifier.indexOf(f) !== -1); - if (tagsmodifier.length > 0) { - semver4.inc(tagsmodifier[0]); - } - return [datever.asString(), semver4.asString()].filter((s) => s).join("."); - } - function inc(format, ver, level) { - format = validateFormat(format); - ver = validateVersion(ver, format); - level = validateLevel(level, format); - const datever = createDateVersion(format, ver, date.now, tags); - const semver4 = createSemanticVersion(format, ver, tags); - let dateUpdated = false; - for (const l of level.split(".")) { - if (l === "CALENDAR") { - if (datever.inc(l)) { - dateUpdated = true; - semver4.inc("CALENDAR"); - } - } else if (!dateUpdated || tags.modifier.includes(l)) - semver4.inc(l); - } - const newVer = [datever.asString(), semver4.asString()].filter((s) => s).join("."); - if (ver === newVer) { - throw new Error("There is no change in the version."); - } - return newVer; - } - function pretty(format, ver, locale = void 0) { - format = validateFormat(format); - ver = validateVersion(ver, format); - const datever = createDateVersion(format, ver, date.now, tags); - const semver4 = createSemanticVersion(format, ver, tags); - return datever.pretty(locale) + " v" + semver4.asString() + ""; - } - function getTagType(input) { - input = input.toUpperCase(); - if (tags.date.indexOf(input) !== -1) - return "date"; - else if (tags.semantic.indexOf(input) !== -1) - return "semantic"; - else if (tags.modifier.indexOf(input) !== -1) - return "modifier"; - else - return ""; - } - function validateLevel(level, format) { - if (!level) - throw new Error("Please specify a valid level."); - level = level.trim().toUpperCase(); - const formatarr = format.split("."); - const levelsarr = level.split("."); - if (levelsarr.length > 2) - throw new Error("You can specify 2 levels at max."); - if (!levelsarr) - throw new Error("You should specify at least one level."); - for (var i = 0; i < levelsarr.length; i++) { - const l = levelsarr[i]; - if (levels.indexOf(l) === -1) - throw new Error("Invalid level."); - if (tags.modifier.indexOf(l) !== -1 && formatarr.indexOf("MODIFIER") === -1) - throw new Error("Level and format doesn't match."); - if (tags.semantic.indexOf(l) !== -1 && formatarr.indexOf(l) === -1) - throw new Error("Level and format doesn't match."); - } - return level; - } - function validateVersion(ver, format) { - if (!ver) - throw new Error("Please specify a valid version."); - ver = ver.trim().toLowerCase(); - if (/[^a-zA-Z0-9.-]/.test(ver) === true) - throw new Error("Unexpected characters in your version string."); - const formatarr = format.split("."); - const verarr = ver.split(/[.-]/); - if (formatarr.indexOf("MODIFIER") === -1 && verarr.length < formatarr.length || formatarr.indexOf("MODIFIER") !== -1 && verarr.length + 1 != formatarr.length && verarr.length - 1 != formatarr.length) - throw new Error("Version and format lengths mismatch."); - return ver; - } - function validateFormat(format, opts = {transformModifiers: true}) { - if (!format) - throw new Error("Please specify a valid format."); - format = format.trim().toUpperCase().split(".").map((t) => tags.modifier.indexOf(t) !== -1 && opts.transformModifiers === true ? "MODIFIER" : t).join("."); - const tagsrepo = []; - const tagsarr = format.split("."); - for (let i = 0; i < tagsarr.length; i++) { - const t = tagsarr[i].toUpperCase(); - if (tags.date.indexOf(t) === -1 && tags.semantic.indexOf(t) === -1 && tags.modifier.indexOf(t) === -1) - throw new Error("Your format contains invalid tags."); - if (tagsrepo.indexOf(t) !== -1) - throw new Error("Your format is repeating the same tag."); - tagsrepo.push(t); - } - const tagsdate = tagsrepo.filter((t) => tags.date.indexOf(t) !== -1); - let largestDateTagIndex = null; - if (tagsdate.length > 0) { - const tagsdatesorted = tags.date.filter((t) => tagsdate.indexOf(t) !== -1); - for (let j = 0; j < tagsdatesorted.length; j++) { - if (tagsdatesorted[j] != tagsdate[j]) - throw new Error("Date tags are in the wrong order."); - largestDateTagIndex = tagsrepo.indexOf(tagsdate[j]); - } - } - const tagssemantic = tagsrepo.filter((t) => tags.semantic.indexOf(t) !== -1); - let largestSemanticTagIndex = null; - if (tagssemantic.length > 0) { - const tagssemanticsorted = tags.semantic.filter((t) => tagssemantic.indexOf(t) !== -1); - for (let k = 0; k < tagssemanticsorted.length; k++) { - if (tagssemanticsorted[k] != tagssemantic[k]) - throw new Error("Semantic tags are in the wrong order."); - if (largestSemanticTagIndex === null) - largestSemanticTagIndex = tagsrepo.indexOf(tagssemantic[k]); - } - } - if (largestDateTagIndex !== null && largestSemanticTagIndex !== null && largestDateTagIndex > largestSemanticTagIndex) - throw new Error("Semantic tags should come after date tags."); - return format; - } - return { - init, - inc, - pretty, - getTagType, - valid - }; - } - module.exports = Calver(); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/add-stream-npm-1.0.0-a5a0c0498c-3e9e8b0b8f.zip/node_modules/add-stream/index.js - var require_add_stream = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/add-stream-npm-1.0.0-a5a0c0498c-3e9e8b0b8f.zip/node_modules/add-stream/index.js"(exports, module) { - "use strict"; - var PassThrough2 = __require("stream").PassThrough; - var Writable = __require("stream").Writable; - var util = __require("util"); - util.inherits(Appendee, PassThrough2); - util.inherits(Appender, Writable); - function Appendee(factory, opts) { - PassThrough2.call(this, opts); - this.factory = factory; - this.opts = opts; - } - Appendee.prototype._flush = function(end) { - var stream = this.factory(); - stream.pipe(new Appender(this, this.opts)).on("finish", end); - stream.resume(); - }; - function Appender(target, opts) { - Writable.call(this, opts); - this.target = target; - } - Appender.prototype._write = function(chunk, enc, cb) { - this.target.push(chunk); - cb(); - }; - function addStream(stream, opts) { - opts = opts || {}; - var factory; - if (typeof stream === "function") { - factory = stream; - } else { - stream.pause(); - factory = function() { - return stream; - }; - } - return new Appendee(factory, opts); - } - addStream.obj = function(stream, opts) { - opts = opts || {}; - opts.objectMode = true; - return addStream(stream, opts); - }; - module.exports = addStream; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/dargs-npm-7.0.0-62701e0c7a-b8f1e3cba5.zip/node_modules/dargs/index.js - var require_dargs = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/dargs-npm-7.0.0-62701e0c7a-b8f1e3cba5.zip/node_modules/dargs/index.js"(exports, module) { - "use strict"; - var match = (array, value) => array.some((x) => x instanceof RegExp ? x.test(value) : x === value); - var dargs = (object, options) => { - const arguments_ = []; - let extraArguments = []; - let separatedArguments = []; - options = __spreadValues({ - useEquals: true, - shortFlag: true - }, options); - const makeArguments = (key, value) => { - const prefix = options.shortFlag && key.length === 1 ? "-" : "--"; - const theKey = options.allowCamelCase ? key : key.replace(/[A-Z]/g, "-$&").toLowerCase(); - key = prefix + theKey; - if (options.useEquals) { - arguments_.push(key + (value ? `=${value}` : "")); - } else { - arguments_.push(key); - if (value) { - arguments_.push(value); - } - } - }; - const makeAliasArg = (key, value) => { - arguments_.push(`-${key}`); - if (value) { - arguments_.push(value); - } - }; - for (let [key, value] of Object.entries(object)) { - let pushArguments = makeArguments; - if (Array.isArray(options.excludes) && match(options.excludes, key)) { - continue; - } - if (Array.isArray(options.includes) && !match(options.includes, key)) { - continue; - } - if (typeof options.aliases === "object" && options.aliases[key]) { - key = options.aliases[key]; - pushArguments = makeAliasArg; - } - if (key === "--") { - if (!Array.isArray(value)) { - throw new TypeError(`Expected key \`--\` to be Array, got ${typeof value}`); - } - separatedArguments = value; - continue; - } - if (key === "_") { - if (!Array.isArray(value)) { - throw new TypeError(`Expected key \`_\` to be Array, got ${typeof value}`); - } - extraArguments = value; - continue; - } - if (value === true) { - pushArguments(key, ""); - } - if (value === false && !options.ignoreFalse) { - pushArguments(`no-${key}`); - } - if (typeof value === "string") { - pushArguments(key, value); - } - if (typeof value === "number" && !Number.isNaN(value)) { - pushArguments(key, String(value)); - } - if (Array.isArray(value)) { - for (const arrayValue of value) { - pushArguments(key, arrayValue); - } - } - } - for (const argument of extraArguments) { - arguments_.push(String(argument)); - } - if (separatedArguments.length > 0) { - arguments_.push("--"); - } - for (const argument of separatedArguments) { - arguments_.push(String(argument)); - } - return arguments_; - }; - module.exports = dargs; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/stream.js - var require_stream = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/stream.js"(exports, module) { - module.exports = __require("stream"); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/buffer_list.js - var require_buffer_list = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports, module) { - "use strict"; - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - if (enumerableOnly) - symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - keys.push.apply(keys, symbols); - } - return keys; - } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - if (i % 2) { - ownKeys(Object(source), true).forEach(function(key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(Object(source)).forEach(function(key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - } - return target; - } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, {value, enumerable: true, configurable: true, writable: true}); - } else { - obj[key] = value; - } - return obj; - } - 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, descriptor.key, descriptor); - } - } - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) - _defineProperties(Constructor.prototype, protoProps); - if (staticProps) - _defineProperties(Constructor, staticProps); - return Constructor; - } - var _require = __require("buffer"); - var Buffer2 = _require.Buffer; - var _require2 = __require("util"); - var inspect = _require2.inspect; - var custom = inspect && inspect.custom || "inspect"; - function copyBuffer(src, target, offset) { - Buffer2.prototype.copy.call(src, target, offset); - } - module.exports = /* @__PURE__ */ function() { - function BufferList() { - _classCallCheck(this, BufferList); - this.head = null; - this.tail = null; - this.length = 0; - } - _createClass(BufferList, [{ - key: "push", - value: function push(v) { - var entry = { - data: v, - next: null - }; - if (this.length > 0) - this.tail.next = entry; - else - this.head = entry; - this.tail = entry; - ++this.length; - } - }, { - key: "unshift", - value: function unshift(v) { - var entry = { - data: v, - next: this.head - }; - if (this.length === 0) - this.tail = entry; - this.head = entry; - ++this.length; - } - }, { - key: "shift", - value: function shift() { - if (this.length === 0) - return; - var ret = this.head.data; - if (this.length === 1) - this.head = this.tail = null; - else - this.head = this.head.next; - --this.length; - return ret; - } - }, { - key: "clear", - value: function clear() { - this.head = this.tail = null; - this.length = 0; - } - }, { - key: "join", - value: function join(s) { - if (this.length === 0) - return ""; - var p = this.head; - var ret = "" + p.data; - while (p = p.next) { - ret += s + p.data; - } - return ret; - } - }, { - key: "concat", - value: function concat(n) { - if (this.length === 0) - return Buffer2.alloc(0); - var ret = Buffer2.allocUnsafe(n >>> 0); - var p = this.head; - var i = 0; - while (p) { - copyBuffer(p.data, ret, i); - i += p.data.length; - p = p.next; - } - return ret; - } - }, { - key: "consume", - value: function consume(n, hasStrings) { - var ret; - if (n < this.head.data.length) { - ret = this.head.data.slice(0, n); - this.head.data = this.head.data.slice(n); - } else if (n === this.head.data.length) { - ret = this.shift(); - } else { - ret = hasStrings ? this._getString(n) : this._getBuffer(n); - } - return ret; - } - }, { - key: "first", - value: function first() { - return this.head.data; - } - }, { - key: "_getString", - value: function _getString(n) { - var p = this.head; - var c = 1; - var ret = p.data; - n -= ret.length; - while (p = p.next) { - var str = p.data; - var nb = n > str.length ? str.length : n; - if (nb === str.length) - ret += str; - else - ret += str.slice(0, n); - n -= nb; - if (n === 0) { - if (nb === str.length) { - ++c; - if (p.next) - this.head = p.next; - else - this.head = this.tail = null; - } else { - this.head = p; - p.data = str.slice(nb); - } - break; - } - ++c; - } - this.length -= c; - return ret; - } - }, { - key: "_getBuffer", - value: function _getBuffer(n) { - var ret = Buffer2.allocUnsafe(n); - var p = this.head; - var c = 1; - p.data.copy(ret); - n -= p.data.length; - while (p = p.next) { - var buf = p.data; - var nb = n > buf.length ? buf.length : n; - buf.copy(ret, ret.length - n, 0, nb); - n -= nb; - if (n === 0) { - if (nb === buf.length) { - ++c; - if (p.next) - this.head = p.next; - else - this.head = this.tail = null; - } else { - this.head = p; - p.data = buf.slice(nb); - } - break; - } - ++c; - } - this.length -= c; - return ret; - } - }, { - key: custom, - value: function value(_, options) { - return inspect(this, _objectSpread({}, options, { - depth: 0, - customInspect: false - })); - } - }]); - return BufferList; - }(); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/destroy.js - var require_destroy = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports, module) { - "use strict"; - function destroy(err, cb) { - var _this = this; - var readableDestroyed = this._readableState && this._readableState.destroyed; - var writableDestroyed = this._writableState && this._writableState.destroyed; - if (readableDestroyed || writableDestroyed) { - if (cb) { - cb(err); - } else if (err) { - if (!this._writableState) { - process.nextTick(emitErrorNT, this, err); - } else if (!this._writableState.errorEmitted) { - this._writableState.errorEmitted = true; - process.nextTick(emitErrorNT, this, err); - } - } - return this; - } - if (this._readableState) { - this._readableState.destroyed = true; - } - if (this._writableState) { - this._writableState.destroyed = true; - } - this._destroy(err || null, function(err2) { - if (!cb && err2) { - if (!_this._writableState) { - process.nextTick(emitErrorAndCloseNT, _this, err2); - } else if (!_this._writableState.errorEmitted) { - _this._writableState.errorEmitted = true; - process.nextTick(emitErrorAndCloseNT, _this, err2); - } else { - process.nextTick(emitCloseNT, _this); - } - } else if (cb) { - process.nextTick(emitCloseNT, _this); - cb(err2); - } else { - process.nextTick(emitCloseNT, _this); - } - }); - return this; - } - function emitErrorAndCloseNT(self2, err) { - emitErrorNT(self2, err); - emitCloseNT(self2); - } - function emitCloseNT(self2) { - if (self2._writableState && !self2._writableState.emitClose) - return; - if (self2._readableState && !self2._readableState.emitClose) - return; - self2.emit("close"); - } - function undestroy() { - if (this._readableState) { - this._readableState.destroyed = false; - this._readableState.reading = false; - this._readableState.ended = false; - this._readableState.endEmitted = false; - } - if (this._writableState) { - this._writableState.destroyed = false; - this._writableState.ended = false; - this._writableState.ending = false; - this._writableState.finalCalled = false; - this._writableState.prefinished = false; - this._writableState.finished = false; - this._writableState.errorEmitted = false; - } - } - function emitErrorNT(self2, err) { - self2.emit("error", err); - } - function errorOrDestroy(stream, err) { - var rState = stream._readableState; - var wState = stream._writableState; - if (rState && rState.autoDestroy || wState && wState.autoDestroy) - stream.destroy(err); - else - stream.emit("error", err); - } - module.exports = { - destroy, - undestroy, - errorOrDestroy - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/errors.js - var require_errors = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/errors.js"(exports, module) { - "use strict"; - var codes = {}; - function createErrorType(code, message, Base) { - if (!Base) { - Base = Error; - } - function getMessage(arg1, arg2, arg3) { - if (typeof message === "string") { - return message; - } else { - return message(arg1, arg2, arg3); - } - } - class NodeError extends Base { - constructor(arg1, arg2, arg3) { - super(getMessage(arg1, arg2, arg3)); - } - } - NodeError.prototype.name = Base.name; - NodeError.prototype.code = code; - codes[code] = NodeError; - } - function oneOf(expected, thing) { - if (Array.isArray(expected)) { - const len = expected.length; - expected = expected.map((i) => String(i)); - if (len > 2) { - return `one of ${thing} ${expected.slice(0, len - 1).join(", ")}, or ` + expected[len - 1]; - } else if (len === 2) { - return `one of ${thing} ${expected[0]} or ${expected[1]}`; - } else { - return `of ${thing} ${expected[0]}`; - } - } else { - return `of ${thing} ${String(expected)}`; - } - } - function startsWith(str, search, pos) { - return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search; - } - function endsWith(str, search, this_len) { - if (this_len === void 0 || this_len > str.length) { - this_len = str.length; - } - return str.substring(this_len - search.length, this_len) === search; - } - function includes(str, search, start) { - if (typeof start !== "number") { - start = 0; - } - if (start + search.length > str.length) { - return false; - } else { - return str.indexOf(search, start) !== -1; - } - } - createErrorType("ERR_INVALID_OPT_VALUE", function(name, value) { - return 'The value "' + value + '" is invalid for option "' + name + '"'; - }, TypeError); - createErrorType("ERR_INVALID_ARG_TYPE", function(name, expected, actual) { - let determiner; - if (typeof expected === "string" && startsWith(expected, "not ")) { - determiner = "must not be"; - expected = expected.replace(/^not /, ""); - } else { - determiner = "must be"; - } - let msg; - if (endsWith(name, " argument")) { - msg = `The ${name} ${determiner} ${oneOf(expected, "type")}`; - } else { - const type = includes(name, ".") ? "property" : "argument"; - msg = `The "${name}" ${type} ${determiner} ${oneOf(expected, "type")}`; - } - msg += `. Received type ${typeof actual}`; - return msg; - }, TypeError); - createErrorType("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"); - createErrorType("ERR_METHOD_NOT_IMPLEMENTED", function(name) { - return "The " + name + " method is not implemented"; - }); - createErrorType("ERR_STREAM_PREMATURE_CLOSE", "Premature close"); - createErrorType("ERR_STREAM_DESTROYED", function(name) { - return "Cannot call " + name + " after a stream was destroyed"; - }); - createErrorType("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"); - createErrorType("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"); - createErrorType("ERR_STREAM_WRITE_AFTER_END", "write after end"); - createErrorType("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError); - createErrorType("ERR_UNKNOWN_ENCODING", function(arg) { - return "Unknown encoding: " + arg; - }, TypeError); - createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"); - module.exports.codes = codes; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/state.js - var require_state = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/state.js"(exports, module) { - "use strict"; - var ERR_INVALID_OPT_VALUE = require_errors().codes.ERR_INVALID_OPT_VALUE; - function highWaterMarkFrom(options, isDuplex, duplexKey) { - return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null; - } - function getHighWaterMark(state, options, duplexKey, isDuplex) { - var hwm = highWaterMarkFrom(options, isDuplex, duplexKey); - if (hwm != null) { - if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) { - var name = isDuplex ? duplexKey : "highWaterMark"; - throw new ERR_INVALID_OPT_VALUE(name, hwm); - } - return Math.floor(hwm); - } - return state.objectMode ? 16 : 16 * 1024; - } - module.exports = { - getHighWaterMark - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip/node_modules/inherits/inherits_browser.js - var require_inherits_browser = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip/node_modules/inherits/inherits_browser.js"(exports, module) { - if (typeof Object.create === "function") { - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor; - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }); - } - }; - } else { - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor; - var TempCtor = function() { - }; - TempCtor.prototype = superCtor.prototype; - ctor.prototype = new TempCtor(); - ctor.prototype.constructor = ctor; - } - }; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip/node_modules/inherits/inherits.js - var require_inherits = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip/node_modules/inherits/inherits.js"(exports, module) { - try { - util = __require("util"); - if (typeof util.inherits !== "function") - throw ""; - module.exports = util.inherits; - } catch (e) { - module.exports = require_inherits_browser(); - } - var util; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip/node_modules/util-deprecate/node.js - var require_node = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip/node_modules/util-deprecate/node.js"(exports, module) { - module.exports = __require("util").deprecate; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_writable.js - var require_stream_writable = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_writable.js"(exports, module) { - "use strict"; - module.exports = Writable; - function CorkedRequest(state) { - var _this = this; - this.next = null; - this.entry = null; - this.finish = function() { - onCorkedFinish(_this, state); - }; - } - var Duplex; - Writable.WritableState = WritableState; - var internalUtil = { - deprecate: require_node() - }; - var Stream = require_stream(); - var Buffer2 = __require("buffer").Buffer; - var OurUint8Array = global.Uint8Array || function() { - }; - function _uint8ArrayToBuffer(chunk) { - return Buffer2.from(chunk); - } - function _isUint8Array(obj) { - return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array; - } - var destroyImpl = require_destroy(); - var _require = require_state(); - var getHighWaterMark = _require.getHighWaterMark; - var _require$codes = require_errors().codes; - var ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE; - var ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED; - var ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK; - var ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE; - var ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED; - var ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES; - var ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END; - var ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING; - var errorOrDestroy = destroyImpl.errorOrDestroy; - require_inherits()(Writable, Stream); - function nop() { - } - function WritableState(options, stream, isDuplex) { - Duplex = Duplex || require_stream_duplex(); - options = options || {}; - if (typeof isDuplex !== "boolean") - isDuplex = stream instanceof Duplex; - this.objectMode = !!options.objectMode; - if (isDuplex) - this.objectMode = this.objectMode || !!options.writableObjectMode; - this.highWaterMark = getHighWaterMark(this, options, "writableHighWaterMark", isDuplex); - this.finalCalled = false; - this.needDrain = false; - this.ending = false; - this.ended = false; - this.finished = false; - this.destroyed = false; - var noDecode = options.decodeStrings === false; - this.decodeStrings = !noDecode; - this.defaultEncoding = options.defaultEncoding || "utf8"; - this.length = 0; - this.writing = false; - this.corked = 0; - this.sync = true; - this.bufferProcessing = false; - this.onwrite = function(er) { - onwrite(stream, er); - }; - this.writecb = null; - this.writelen = 0; - this.bufferedRequest = null; - this.lastBufferedRequest = null; - this.pendingcb = 0; - this.prefinished = false; - this.errorEmitted = false; - this.emitClose = options.emitClose !== false; - this.autoDestroy = !!options.autoDestroy; - this.bufferedRequestCount = 0; - this.corkedRequestsFree = new CorkedRequest(this); - } - WritableState.prototype.getBuffer = function getBuffer() { - var current = this.bufferedRequest; - var out = []; - while (current) { - out.push(current); - current = current.next; - } - return out; - }; - (function() { - try { - Object.defineProperty(WritableState.prototype, "buffer", { - get: internalUtil.deprecate(function writableStateBufferGetter() { - return this.getBuffer(); - }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") - }); - } catch (_) { - } - })(); - var realHasInstance; - if (typeof Symbol === "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === "function") { - realHasInstance = Function.prototype[Symbol.hasInstance]; - Object.defineProperty(Writable, Symbol.hasInstance, { - value: function value(object) { - if (realHasInstance.call(this, object)) - return true; - if (this !== Writable) - return false; - return object && object._writableState instanceof WritableState; - } - }); - } else { - realHasInstance = function realHasInstance2(object) { - return object instanceof this; - }; - } - function Writable(options) { - Duplex = Duplex || require_stream_duplex(); - var isDuplex = this instanceof Duplex; - if (!isDuplex && !realHasInstance.call(Writable, this)) - return new Writable(options); - this._writableState = new WritableState(options, this, isDuplex); - this.writable = true; - if (options) { - if (typeof options.write === "function") - this._write = options.write; - if (typeof options.writev === "function") - this._writev = options.writev; - if (typeof options.destroy === "function") - this._destroy = options.destroy; - if (typeof options.final === "function") - this._final = options.final; - } - Stream.call(this); - } - Writable.prototype.pipe = function() { - errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE()); - }; - function writeAfterEnd(stream, cb) { - var er = new ERR_STREAM_WRITE_AFTER_END(); - errorOrDestroy(stream, er); - process.nextTick(cb, er); - } - function validChunk(stream, state, chunk, cb) { - var er; - if (chunk === null) { - er = new ERR_STREAM_NULL_VALUES(); - } else if (typeof chunk !== "string" && !state.objectMode) { - er = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer"], chunk); - } - if (er) { - errorOrDestroy(stream, er); - process.nextTick(cb, er); - return false; - } - return true; - } - Writable.prototype.write = function(chunk, encoding, cb) { - var state = this._writableState; - var ret = false; - var isBuf = !state.objectMode && _isUint8Array(chunk); - if (isBuf && !Buffer2.isBuffer(chunk)) { - chunk = _uint8ArrayToBuffer(chunk); - } - if (typeof encoding === "function") { - cb = encoding; - encoding = null; - } - if (isBuf) - encoding = "buffer"; - else if (!encoding) - encoding = state.defaultEncoding; - if (typeof cb !== "function") - cb = nop; - if (state.ending) - writeAfterEnd(this, cb); - else if (isBuf || validChunk(this, state, chunk, cb)) { - state.pendingcb++; - ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb); - } - return ret; - }; - Writable.prototype.cork = function() { - this._writableState.corked++; - }; - Writable.prototype.uncork = function() { - var state = this._writableState; - if (state.corked) { - state.corked--; - if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) - clearBuffer(this, state); - } - }; - Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { - if (typeof encoding === "string") - encoding = encoding.toLowerCase(); - if (!(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((encoding + "").toLowerCase()) > -1)) - throw new ERR_UNKNOWN_ENCODING(encoding); - this._writableState.defaultEncoding = encoding; - return this; - }; - Object.defineProperty(Writable.prototype, "writableBuffer", { - enumerable: false, - get: function get() { - return this._writableState && this._writableState.getBuffer(); - } - }); - function decodeChunk(state, chunk, encoding) { - if (!state.objectMode && state.decodeStrings !== false && typeof chunk === "string") { - chunk = Buffer2.from(chunk, encoding); - } - return chunk; - } - Object.defineProperty(Writable.prototype, "writableHighWaterMark", { - enumerable: false, - get: function get() { - return this._writableState.highWaterMark; - } - }); - function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { - if (!isBuf) { - var newChunk = decodeChunk(state, chunk, encoding); - if (chunk !== newChunk) { - isBuf = true; - encoding = "buffer"; - chunk = newChunk; - } - } - var len = state.objectMode ? 1 : chunk.length; - state.length += len; - var ret = state.length < state.highWaterMark; - if (!ret) - state.needDrain = true; - if (state.writing || state.corked) { - var last = state.lastBufferedRequest; - state.lastBufferedRequest = { - chunk, - encoding, - isBuf, - callback: cb, - next: null - }; - if (last) { - last.next = state.lastBufferedRequest; - } else { - state.bufferedRequest = state.lastBufferedRequest; - } - state.bufferedRequestCount += 1; - } else { - doWrite(stream, state, false, len, chunk, encoding, cb); - } - return ret; - } - function doWrite(stream, state, writev, len, chunk, encoding, cb) { - state.writelen = len; - state.writecb = cb; - state.writing = true; - state.sync = true; - if (state.destroyed) - state.onwrite(new ERR_STREAM_DESTROYED("write")); - else if (writev) - stream._writev(chunk, state.onwrite); - else - stream._write(chunk, encoding, state.onwrite); - state.sync = false; - } - function onwriteError(stream, state, sync, er, cb) { - --state.pendingcb; - if (sync) { - process.nextTick(cb, er); - process.nextTick(finishMaybe, stream, state); - stream._writableState.errorEmitted = true; - errorOrDestroy(stream, er); - } else { - cb(er); - stream._writableState.errorEmitted = true; - errorOrDestroy(stream, er); - finishMaybe(stream, state); - } - } - function onwriteStateUpdate(state) { - state.writing = false; - state.writecb = null; - state.length -= state.writelen; - state.writelen = 0; - } - function onwrite(stream, er) { - var state = stream._writableState; - var sync = state.sync; - var cb = state.writecb; - if (typeof cb !== "function") - throw new ERR_MULTIPLE_CALLBACK(); - onwriteStateUpdate(state); - if (er) - onwriteError(stream, state, sync, er, cb); - else { - var finished = needFinish(state) || stream.destroyed; - if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { - clearBuffer(stream, state); - } - if (sync) { - process.nextTick(afterWrite, stream, state, finished, cb); - } else { - afterWrite(stream, state, finished, cb); - } - } - } - function afterWrite(stream, state, finished, cb) { - if (!finished) - onwriteDrain(stream, state); - state.pendingcb--; - cb(); - finishMaybe(stream, state); - } - function onwriteDrain(stream, state) { - if (state.length === 0 && state.needDrain) { - state.needDrain = false; - stream.emit("drain"); - } - } - function clearBuffer(stream, state) { - state.bufferProcessing = true; - var entry = state.bufferedRequest; - if (stream._writev && entry && entry.next) { - var l = state.bufferedRequestCount; - var buffer = new Array(l); - var holder = state.corkedRequestsFree; - holder.entry = entry; - var count = 0; - var allBuffers = true; - while (entry) { - buffer[count] = entry; - if (!entry.isBuf) - allBuffers = false; - entry = entry.next; - count += 1; - } - buffer.allBuffers = allBuffers; - doWrite(stream, state, true, state.length, buffer, "", holder.finish); - state.pendingcb++; - state.lastBufferedRequest = null; - if (holder.next) { - state.corkedRequestsFree = holder.next; - holder.next = null; - } else { - state.corkedRequestsFree = new CorkedRequest(state); - } - state.bufferedRequestCount = 0; - } else { - while (entry) { - var chunk = entry.chunk; - var encoding = entry.encoding; - var cb = entry.callback; - var len = state.objectMode ? 1 : chunk.length; - doWrite(stream, state, false, len, chunk, encoding, cb); - entry = entry.next; - state.bufferedRequestCount--; - if (state.writing) { - break; - } - } - if (entry === null) - state.lastBufferedRequest = null; - } - state.bufferedRequest = entry; - state.bufferProcessing = false; - } - Writable.prototype._write = function(chunk, encoding, cb) { - cb(new ERR_METHOD_NOT_IMPLEMENTED("_write()")); - }; - Writable.prototype._writev = null; - Writable.prototype.end = function(chunk, encoding, cb) { - var state = this._writableState; - if (typeof chunk === "function") { - cb = chunk; - chunk = null; - encoding = null; - } else if (typeof encoding === "function") { - cb = encoding; - encoding = null; - } - if (chunk !== null && chunk !== void 0) - this.write(chunk, encoding); - if (state.corked) { - state.corked = 1; - this.uncork(); - } - if (!state.ending) - endWritable(this, state, cb); - return this; - }; - Object.defineProperty(Writable.prototype, "writableLength", { - enumerable: false, - get: function get() { - return this._writableState.length; - } - }); - function needFinish(state) { - return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; - } - function callFinal(stream, state) { - stream._final(function(err) { - state.pendingcb--; - if (err) { - errorOrDestroy(stream, err); - } - state.prefinished = true; - stream.emit("prefinish"); - finishMaybe(stream, state); - }); - } - function prefinish(stream, state) { - if (!state.prefinished && !state.finalCalled) { - if (typeof stream._final === "function" && !state.destroyed) { - state.pendingcb++; - state.finalCalled = true; - process.nextTick(callFinal, stream, state); - } else { - state.prefinished = true; - stream.emit("prefinish"); - } - } - } - function finishMaybe(stream, state) { - var need = needFinish(state); - if (need) { - prefinish(stream, state); - if (state.pendingcb === 0) { - state.finished = true; - stream.emit("finish"); - if (state.autoDestroy) { - var rState = stream._readableState; - if (!rState || rState.autoDestroy && rState.endEmitted) { - stream.destroy(); - } - } - } - } - return need; - } - function endWritable(stream, state, cb) { - state.ending = true; - finishMaybe(stream, state); - if (cb) { - if (state.finished) - process.nextTick(cb); - else - stream.once("finish", cb); - } - state.ended = true; - stream.writable = false; - } - function onCorkedFinish(corkReq, state, err) { - var entry = corkReq.entry; - corkReq.entry = null; - while (entry) { - var cb = entry.callback; - state.pendingcb--; - cb(err); - entry = entry.next; - } - state.corkedRequestsFree.next = corkReq; - } - Object.defineProperty(Writable.prototype, "destroyed", { - enumerable: false, - get: function get() { - if (this._writableState === void 0) { - return false; - } - return this._writableState.destroyed; - }, - set: function set(value) { - if (!this._writableState) { - return; - } - this._writableState.destroyed = value; - } - }); - Writable.prototype.destroy = destroyImpl.destroy; - Writable.prototype._undestroy = destroyImpl.undestroy; - Writable.prototype._destroy = function(err, cb) { - cb(err); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_duplex.js - var require_stream_duplex = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_duplex.js"(exports, module) { - "use strict"; - var objectKeys = Object.keys || function(obj) { - var keys2 = []; - for (var key in obj) { - keys2.push(key); - } - return keys2; - }; - module.exports = Duplex; - var Readable = require_stream_readable(); - var Writable = require_stream_writable(); - require_inherits()(Duplex, Readable); - { - keys = objectKeys(Writable.prototype); - for (v = 0; v < keys.length; v++) { - method = keys[v]; - if (!Duplex.prototype[method]) - Duplex.prototype[method] = Writable.prototype[method]; - } - } - var keys; - var method; - var v; - function Duplex(options) { - if (!(this instanceof Duplex)) - return new Duplex(options); - Readable.call(this, options); - Writable.call(this, options); - this.allowHalfOpen = true; - if (options) { - if (options.readable === false) - this.readable = false; - if (options.writable === false) - this.writable = false; - if (options.allowHalfOpen === false) { - this.allowHalfOpen = false; - this.once("end", onend); - } - } - } - Object.defineProperty(Duplex.prototype, "writableHighWaterMark", { - enumerable: false, - get: function get() { - return this._writableState.highWaterMark; - } - }); - Object.defineProperty(Duplex.prototype, "writableBuffer", { - enumerable: false, - get: function get() { - return this._writableState && this._writableState.getBuffer(); - } - }); - Object.defineProperty(Duplex.prototype, "writableLength", { - enumerable: false, - get: function get() { - return this._writableState.length; - } - }); - function onend() { - if (this._writableState.ended) - return; - process.nextTick(onEndNT, this); - } - function onEndNT(self2) { - self2.end(); - } - Object.defineProperty(Duplex.prototype, "destroyed", { - enumerable: false, - get: function get() { - if (this._readableState === void 0 || this._writableState === void 0) { - return false; - } - return this._readableState.destroyed && this._writableState.destroyed; - }, - set: function set(value) { - if (this._readableState === void 0 || this._writableState === void 0) { - return; - } - this._readableState.destroyed = value; - this._writableState.destroyed = value; - } - }); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip/node_modules/safe-buffer/index.js - var require_safe_buffer = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip/node_modules/safe-buffer/index.js"(exports, module) { - var buffer = __require("buffer"); - var Buffer2 = buffer.Buffer; - function copyProps(src, dst) { - for (var key in src) { - dst[key] = src[key]; - } - } - if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) { - module.exports = buffer; - } else { - copyProps(buffer, exports); - exports.Buffer = SafeBuffer; - } - function SafeBuffer(arg, encodingOrOffset, length) { - return Buffer2(arg, encodingOrOffset, length); - } - SafeBuffer.prototype = Object.create(Buffer2.prototype); - copyProps(Buffer2, SafeBuffer); - SafeBuffer.from = function(arg, encodingOrOffset, length) { - if (typeof arg === "number") { - throw new TypeError("Argument must not be a number"); - } - return Buffer2(arg, encodingOrOffset, length); - }; - SafeBuffer.alloc = function(size, fill, encoding) { - if (typeof size !== "number") { - throw new TypeError("Argument must be a number"); - } - var buf = Buffer2(size); - if (fill !== void 0) { - if (typeof encoding === "string") { - buf.fill(fill, encoding); - } else { - buf.fill(fill); - } - } else { - buf.fill(0); - } - return buf; - }; - SafeBuffer.allocUnsafe = function(size) { - if (typeof size !== "number") { - throw new TypeError("Argument must be a number"); - } - return Buffer2(size); - }; - SafeBuffer.allocUnsafeSlow = function(size) { - if (typeof size !== "number") { - throw new TypeError("Argument must be a number"); - } - return buffer.SlowBuffer(size); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-8417646695.zip/node_modules/string_decoder/lib/string_decoder.js - var require_string_decoder = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-8417646695.zip/node_modules/string_decoder/lib/string_decoder.js"(exports) { - "use strict"; - var Buffer2 = require_safe_buffer().Buffer; - var isEncoding = Buffer2.isEncoding || function(encoding) { - encoding = "" + encoding; - switch (encoding && encoding.toLowerCase()) { - case "hex": - case "utf8": - case "utf-8": - case "ascii": - case "binary": - case "base64": - case "ucs2": - case "ucs-2": - case "utf16le": - case "utf-16le": - case "raw": - return true; - default: - return false; - } - }; - function _normalizeEncoding(enc) { - if (!enc) - return "utf8"; - var retried; - while (true) { - switch (enc) { - case "utf8": - case "utf-8": - return "utf8"; - case "ucs2": - case "ucs-2": - case "utf16le": - case "utf-16le": - return "utf16le"; - case "latin1": - case "binary": - return "latin1"; - case "base64": - case "ascii": - case "hex": - return enc; - default: - if (retried) - return; - enc = ("" + enc).toLowerCase(); - retried = true; - } - } - } - function normalizeEncoding(enc) { - var nenc = _normalizeEncoding(enc); - if (typeof nenc !== "string" && (Buffer2.isEncoding === isEncoding || !isEncoding(enc))) - throw new Error("Unknown encoding: " + enc); - return nenc || enc; - } - exports.StringDecoder = StringDecoder; - function StringDecoder(encoding) { - this.encoding = normalizeEncoding(encoding); - var nb; - switch (this.encoding) { - case "utf16le": - this.text = utf16Text; - this.end = utf16End; - nb = 4; - break; - case "utf8": - this.fillLast = utf8FillLast; - nb = 4; - break; - case "base64": - this.text = base64Text; - this.end = base64End; - nb = 3; - break; - default: - this.write = simpleWrite; - this.end = simpleEnd; - return; - } - this.lastNeed = 0; - this.lastTotal = 0; - this.lastChar = Buffer2.allocUnsafe(nb); - } - StringDecoder.prototype.write = function(buf) { - if (buf.length === 0) - return ""; - var r; - var i; - if (this.lastNeed) { - r = this.fillLast(buf); - if (r === void 0) - return ""; - i = this.lastNeed; - this.lastNeed = 0; - } else { - i = 0; - } - if (i < buf.length) - return r ? r + this.text(buf, i) : this.text(buf, i); - return r || ""; - }; - StringDecoder.prototype.end = utf8End; - StringDecoder.prototype.text = utf8Text; - StringDecoder.prototype.fillLast = function(buf) { - if (this.lastNeed <= buf.length) { - buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed); - return this.lastChar.toString(this.encoding, 0, this.lastTotal); - } - buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length); - this.lastNeed -= buf.length; - }; - function utf8CheckByte(byte) { - if (byte <= 127) - return 0; - else if (byte >> 5 === 6) - return 2; - else if (byte >> 4 === 14) - return 3; - else if (byte >> 3 === 30) - return 4; - return byte >> 6 === 2 ? -1 : -2; - } - function utf8CheckIncomplete(self2, buf, i) { - var j = buf.length - 1; - if (j < i) - return 0; - var nb = utf8CheckByte(buf[j]); - if (nb >= 0) { - if (nb > 0) - self2.lastNeed = nb - 1; - return nb; - } - if (--j < i || nb === -2) - return 0; - nb = utf8CheckByte(buf[j]); - if (nb >= 0) { - if (nb > 0) - self2.lastNeed = nb - 2; - return nb; - } - if (--j < i || nb === -2) - return 0; - nb = utf8CheckByte(buf[j]); - if (nb >= 0) { - if (nb > 0) { - if (nb === 2) - nb = 0; - else - self2.lastNeed = nb - 3; - } - return nb; - } - return 0; - } - function utf8CheckExtraBytes(self2, buf, p) { - if ((buf[0] & 192) !== 128) { - self2.lastNeed = 0; - return "\uFFFD"; - } - if (self2.lastNeed > 1 && buf.length > 1) { - if ((buf[1] & 192) !== 128) { - self2.lastNeed = 1; - return "\uFFFD"; - } - if (self2.lastNeed > 2 && buf.length > 2) { - if ((buf[2] & 192) !== 128) { - self2.lastNeed = 2; - return "\uFFFD"; - } - } - } - } - function utf8FillLast(buf) { - var p = this.lastTotal - this.lastNeed; - var r = utf8CheckExtraBytes(this, buf, p); - if (r !== void 0) - return r; - if (this.lastNeed <= buf.length) { - buf.copy(this.lastChar, p, 0, this.lastNeed); - return this.lastChar.toString(this.encoding, 0, this.lastTotal); - } - buf.copy(this.lastChar, p, 0, buf.length); - this.lastNeed -= buf.length; - } - function utf8Text(buf, i) { - var total = utf8CheckIncomplete(this, buf, i); - if (!this.lastNeed) - return buf.toString("utf8", i); - this.lastTotal = total; - var end = buf.length - (total - this.lastNeed); - buf.copy(this.lastChar, 0, end); - return buf.toString("utf8", i, end); - } - function utf8End(buf) { - var r = buf && buf.length ? this.write(buf) : ""; - if (this.lastNeed) - return r + "\uFFFD"; - return r; - } - function utf16Text(buf, i) { - if ((buf.length - i) % 2 === 0) { - var r = buf.toString("utf16le", i); - if (r) { - var c = r.charCodeAt(r.length - 1); - if (c >= 55296 && c <= 56319) { - this.lastNeed = 2; - this.lastTotal = 4; - this.lastChar[0] = buf[buf.length - 2]; - this.lastChar[1] = buf[buf.length - 1]; - return r.slice(0, -1); - } - } - return r; - } - this.lastNeed = 1; - this.lastTotal = 2; - this.lastChar[0] = buf[buf.length - 1]; - return buf.toString("utf16le", i, buf.length - 1); - } - function utf16End(buf) { - var r = buf && buf.length ? this.write(buf) : ""; - if (this.lastNeed) { - var end = this.lastTotal - this.lastNeed; - return r + this.lastChar.toString("utf16le", 0, end); - } - return r; - } - function base64Text(buf, i) { - var n = (buf.length - i) % 3; - if (n === 0) - return buf.toString("base64", i); - this.lastNeed = 3 - n; - this.lastTotal = 3; - if (n === 1) { - this.lastChar[0] = buf[buf.length - 1]; - } else { - this.lastChar[0] = buf[buf.length - 2]; - this.lastChar[1] = buf[buf.length - 1]; - } - return buf.toString("base64", i, buf.length - n); - } - function base64End(buf) { - var r = buf && buf.length ? this.write(buf) : ""; - if (this.lastNeed) - return r + this.lastChar.toString("base64", 0, 3 - this.lastNeed); - return r; - } - function simpleWrite(buf) { - return buf.toString(this.encoding); - } - function simpleEnd(buf) { - return buf && buf.length ? this.write(buf) : ""; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/end-of-stream.js - var require_end_of_stream = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports, module) { - "use strict"; - var ERR_STREAM_PREMATURE_CLOSE = require_errors().codes.ERR_STREAM_PREMATURE_CLOSE; - function once(callback) { - var called = false; - return function() { - if (called) - return; - called = true; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - callback.apply(this, args); - }; - } - function noop() { - } - function isRequest(stream) { - return stream.setHeader && typeof stream.abort === "function"; - } - function eos(stream, opts, callback) { - if (typeof opts === "function") - return eos(stream, null, opts); - if (!opts) - opts = {}; - callback = once(callback || noop); - var readable = opts.readable || opts.readable !== false && stream.readable; - var writable = opts.writable || opts.writable !== false && stream.writable; - var onlegacyfinish = function onlegacyfinish2() { - if (!stream.writable) - onfinish(); - }; - var writableEnded = stream._writableState && stream._writableState.finished; - var onfinish = function onfinish2() { - writable = false; - writableEnded = true; - if (!readable) - callback.call(stream); - }; - var readableEnded = stream._readableState && stream._readableState.endEmitted; - var onend = function onend2() { - readable = false; - readableEnded = true; - if (!writable) - callback.call(stream); - }; - var onerror = function onerror2(err) { - callback.call(stream, err); - }; - var onclose = function onclose2() { - var err; - if (readable && !readableEnded) { - if (!stream._readableState || !stream._readableState.ended) - err = new ERR_STREAM_PREMATURE_CLOSE(); - return callback.call(stream, err); - } - if (writable && !writableEnded) { - if (!stream._writableState || !stream._writableState.ended) - err = new ERR_STREAM_PREMATURE_CLOSE(); - return callback.call(stream, err); - } - }; - var onrequest = function onrequest2() { - stream.req.on("finish", onfinish); - }; - if (isRequest(stream)) { - stream.on("complete", onfinish); - stream.on("abort", onclose); - if (stream.req) - onrequest(); - else - stream.on("request", onrequest); - } else if (writable && !stream._writableState) { - stream.on("end", onlegacyfinish); - stream.on("close", onlegacyfinish); - } - stream.on("end", onend); - stream.on("finish", onfinish); - if (opts.error !== false) - stream.on("error", onerror); - stream.on("close", onclose); - return function() { - stream.removeListener("complete", onfinish); - stream.removeListener("abort", onclose); - stream.removeListener("request", onrequest); - if (stream.req) - stream.req.removeListener("finish", onfinish); - stream.removeListener("end", onlegacyfinish); - stream.removeListener("close", onlegacyfinish); - stream.removeListener("finish", onfinish); - stream.removeListener("end", onend); - stream.removeListener("error", onerror); - stream.removeListener("close", onclose); - }; - } - module.exports = eos; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/async_iterator.js - var require_async_iterator = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports, module) { - "use strict"; - var _Object$setPrototypeO; - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, {value, enumerable: true, configurable: true, writable: true}); - } else { - obj[key] = value; - } - return obj; - } - var finished = require_end_of_stream(); - var kLastResolve = Symbol("lastResolve"); - var kLastReject = Symbol("lastReject"); - var kError = Symbol("error"); - var kEnded = Symbol("ended"); - var kLastPromise = Symbol("lastPromise"); - var kHandlePromise = Symbol("handlePromise"); - var kStream = Symbol("stream"); - function createIterResult(value, done) { - return { - value, - done - }; - } - function readAndResolve(iter) { - var resolve = iter[kLastResolve]; - if (resolve !== null) { - var data = iter[kStream].read(); - if (data !== null) { - iter[kLastPromise] = null; - iter[kLastResolve] = null; - iter[kLastReject] = null; - resolve(createIterResult(data, false)); - } - } - } - function onReadable(iter) { - process.nextTick(readAndResolve, iter); - } - function wrapForNext(lastPromise, iter) { - return function(resolve, reject) { - lastPromise.then(function() { - if (iter[kEnded]) { - resolve(createIterResult(void 0, true)); - return; - } - iter[kHandlePromise](resolve, reject); - }, reject); - }; - } - var AsyncIteratorPrototype = Object.getPrototypeOf(function() { - }); - var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = { - get stream() { - return this[kStream]; - }, - next: function next() { - var _this = this; - var error = this[kError]; - if (error !== null) { - return Promise.reject(error); - } - if (this[kEnded]) { - return Promise.resolve(createIterResult(void 0, true)); - } - if (this[kStream].destroyed) { - return new Promise(function(resolve, reject) { - process.nextTick(function() { - if (_this[kError]) { - reject(_this[kError]); - } else { - resolve(createIterResult(void 0, true)); - } - }); - }); - } - var lastPromise = this[kLastPromise]; - var promise; - if (lastPromise) { - promise = new Promise(wrapForNext(lastPromise, this)); - } else { - var data = this[kStream].read(); - if (data !== null) { - return Promise.resolve(createIterResult(data, false)); - } - promise = new Promise(this[kHandlePromise]); - } - this[kLastPromise] = promise; - return promise; - } - }, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function() { - return this; - }), _defineProperty(_Object$setPrototypeO, "return", function _return() { - var _this2 = this; - return new Promise(function(resolve, reject) { - _this2[kStream].destroy(null, function(err) { - if (err) { - reject(err); - return; - } - resolve(createIterResult(void 0, true)); - }); - }); - }), _Object$setPrototypeO), AsyncIteratorPrototype); - var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator2(stream) { - var _Object$create; - var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, { - value: stream, - writable: true - }), _defineProperty(_Object$create, kLastResolve, { - value: null, - writable: true - }), _defineProperty(_Object$create, kLastReject, { - value: null, - writable: true - }), _defineProperty(_Object$create, kError, { - value: null, - writable: true - }), _defineProperty(_Object$create, kEnded, { - value: stream._readableState.endEmitted, - writable: true - }), _defineProperty(_Object$create, kHandlePromise, { - value: function value(resolve, reject) { - var data = iterator[kStream].read(); - if (data) { - iterator[kLastPromise] = null; - iterator[kLastResolve] = null; - iterator[kLastReject] = null; - resolve(createIterResult(data, false)); - } else { - iterator[kLastResolve] = resolve; - iterator[kLastReject] = reject; - } - }, - writable: true - }), _Object$create)); - iterator[kLastPromise] = null; - finished(stream, function(err) { - if (err && err.code !== "ERR_STREAM_PREMATURE_CLOSE") { - var reject = iterator[kLastReject]; - if (reject !== null) { - iterator[kLastPromise] = null; - iterator[kLastResolve] = null; - iterator[kLastReject] = null; - reject(err); - } - iterator[kError] = err; - return; - } - var resolve = iterator[kLastResolve]; - if (resolve !== null) { - iterator[kLastPromise] = null; - iterator[kLastResolve] = null; - iterator[kLastReject] = null; - resolve(createIterResult(void 0, true)); - } - iterator[kEnded] = true; - }); - stream.on("readable", onReadable.bind(null, iterator)); - return iterator; - }; - module.exports = createReadableStreamAsyncIterator; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/from.js - var require_from = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/from.js"(exports, module) { - "use strict"; - function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } - } - function _asyncToGenerator(fn) { - return function() { - var self2 = this, args = arguments; - return new Promise(function(resolve, reject) { - var gen = fn.apply(self2, args); - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - _next(void 0); - }); - }; - } - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - if (enumerableOnly) - symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - keys.push.apply(keys, symbols); - } - return keys; - } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - if (i % 2) { - ownKeys(Object(source), true).forEach(function(key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(Object(source)).forEach(function(key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - } - return target; - } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, {value, enumerable: true, configurable: true, writable: true}); - } else { - obj[key] = value; - } - return obj; - } - var ERR_INVALID_ARG_TYPE = require_errors().codes.ERR_INVALID_ARG_TYPE; - function from(Readable, iterable, opts) { - var iterator; - if (iterable && typeof iterable.next === "function") { - iterator = iterable; - } else if (iterable && iterable[Symbol.asyncIterator]) - iterator = iterable[Symbol.asyncIterator](); - else if (iterable && iterable[Symbol.iterator]) - iterator = iterable[Symbol.iterator](); - else - throw new ERR_INVALID_ARG_TYPE("iterable", ["Iterable"], iterable); - var readable = new Readable(_objectSpread({ - objectMode: true - }, opts)); - var reading = false; - readable._read = function() { - if (!reading) { - reading = true; - next(); - } - }; - function next() { - return _next2.apply(this, arguments); - } - function _next2() { - _next2 = _asyncToGenerator(function* () { - try { - var _ref = yield iterator.next(), value = _ref.value, done = _ref.done; - if (done) { - readable.push(null); - } else if (readable.push(yield value)) { - next(); - } else { - reading = false; - } - } catch (err) { - readable.destroy(err); - } - }); - return _next2.apply(this, arguments); - } - return readable; - } - module.exports = from; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_readable.js - var require_stream_readable = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_readable.js"(exports, module) { - "use strict"; - module.exports = Readable; - var Duplex; - Readable.ReadableState = ReadableState; - var EE = __require("events").EventEmitter; - var EElistenerCount = function EElistenerCount2(emitter, type) { - return emitter.listeners(type).length; - }; - var Stream = require_stream(); - var Buffer2 = __require("buffer").Buffer; - var OurUint8Array = global.Uint8Array || function() { - }; - function _uint8ArrayToBuffer(chunk) { - return Buffer2.from(chunk); - } - function _isUint8Array(obj) { - return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array; - } - var debugUtil = __require("util"); - var debug; - if (debugUtil && debugUtil.debuglog) { - debug = debugUtil.debuglog("stream"); - } else { - debug = function debug2() { - }; - } - var BufferList = require_buffer_list(); - var destroyImpl = require_destroy(); - var _require = require_state(); - var getHighWaterMark = _require.getHighWaterMark; - var _require$codes = require_errors().codes; - var ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE; - var ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF; - var ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED; - var ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; - var StringDecoder; - var createReadableStreamAsyncIterator; - var from; - require_inherits()(Readable, Stream); - var errorOrDestroy = destroyImpl.errorOrDestroy; - var kProxyEvents = ["error", "close", "destroy", "pause", "resume"]; - function prependListener(emitter, event, fn) { - if (typeof emitter.prependListener === "function") - return emitter.prependListener(event, fn); - if (!emitter._events || !emitter._events[event]) - emitter.on(event, fn); - else if (Array.isArray(emitter._events[event])) - emitter._events[event].unshift(fn); - else - emitter._events[event] = [fn, emitter._events[event]]; - } - function ReadableState(options, stream, isDuplex) { - Duplex = Duplex || require_stream_duplex(); - options = options || {}; - if (typeof isDuplex !== "boolean") - isDuplex = stream instanceof Duplex; - this.objectMode = !!options.objectMode; - if (isDuplex) - this.objectMode = this.objectMode || !!options.readableObjectMode; - this.highWaterMark = getHighWaterMark(this, options, "readableHighWaterMark", isDuplex); - this.buffer = new BufferList(); - this.length = 0; - this.pipes = null; - this.pipesCount = 0; - this.flowing = null; - this.ended = false; - this.endEmitted = false; - this.reading = false; - this.sync = true; - this.needReadable = false; - this.emittedReadable = false; - this.readableListening = false; - this.resumeScheduled = false; - this.paused = true; - this.emitClose = options.emitClose !== false; - this.autoDestroy = !!options.autoDestroy; - this.destroyed = false; - this.defaultEncoding = options.defaultEncoding || "utf8"; - this.awaitDrain = 0; - this.readingMore = false; - this.decoder = null; - this.encoding = null; - if (options.encoding) { - if (!StringDecoder) - StringDecoder = require_string_decoder().StringDecoder; - this.decoder = new StringDecoder(options.encoding); - this.encoding = options.encoding; - } - } - function Readable(options) { - Duplex = Duplex || require_stream_duplex(); - if (!(this instanceof Readable)) - return new Readable(options); - var isDuplex = this instanceof Duplex; - this._readableState = new ReadableState(options, this, isDuplex); - this.readable = true; - if (options) { - if (typeof options.read === "function") - this._read = options.read; - if (typeof options.destroy === "function") - this._destroy = options.destroy; - } - Stream.call(this); - } - Object.defineProperty(Readable.prototype, "destroyed", { - enumerable: false, - get: function get() { - if (this._readableState === void 0) { - return false; - } - return this._readableState.destroyed; - }, - set: function set(value) { - if (!this._readableState) { - return; - } - this._readableState.destroyed = value; - } - }); - Readable.prototype.destroy = destroyImpl.destroy; - Readable.prototype._undestroy = destroyImpl.undestroy; - Readable.prototype._destroy = function(err, cb) { - cb(err); - }; - Readable.prototype.push = function(chunk, encoding) { - var state = this._readableState; - var skipChunkCheck; - if (!state.objectMode) { - if (typeof chunk === "string") { - encoding = encoding || state.defaultEncoding; - if (encoding !== state.encoding) { - chunk = Buffer2.from(chunk, encoding); - encoding = ""; - } - skipChunkCheck = true; - } - } else { - skipChunkCheck = true; - } - return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); - }; - Readable.prototype.unshift = function(chunk) { - return readableAddChunk(this, chunk, null, true, false); - }; - function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { - debug("readableAddChunk", chunk); - var state = stream._readableState; - if (chunk === null) { - state.reading = false; - onEofChunk(stream, state); - } else { - var er; - if (!skipChunkCheck) - er = chunkInvalid(state, chunk); - if (er) { - errorOrDestroy(stream, er); - } else if (state.objectMode || chunk && chunk.length > 0) { - if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer2.prototype) { - chunk = _uint8ArrayToBuffer(chunk); - } - if (addToFront) { - if (state.endEmitted) - errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT()); - else - addChunk(stream, state, chunk, true); - } else if (state.ended) { - errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF()); - } else if (state.destroyed) { - return false; - } else { - state.reading = false; - if (state.decoder && !encoding) { - chunk = state.decoder.write(chunk); - if (state.objectMode || chunk.length !== 0) - addChunk(stream, state, chunk, false); - else - maybeReadMore(stream, state); - } else { - addChunk(stream, state, chunk, false); - } - } - } else if (!addToFront) { - state.reading = false; - maybeReadMore(stream, state); - } - } - return !state.ended && (state.length < state.highWaterMark || state.length === 0); - } - function addChunk(stream, state, chunk, addToFront) { - if (state.flowing && state.length === 0 && !state.sync) { - state.awaitDrain = 0; - stream.emit("data", chunk); - } else { - state.length += state.objectMode ? 1 : chunk.length; - if (addToFront) - state.buffer.unshift(chunk); - else - state.buffer.push(chunk); - if (state.needReadable) - emitReadable(stream); - } - maybeReadMore(stream, state); - } - function chunkInvalid(state, chunk) { - var er; - if (!_isUint8Array(chunk) && typeof chunk !== "string" && chunk !== void 0 && !state.objectMode) { - er = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk); - } - return er; - } - Readable.prototype.isPaused = function() { - return this._readableState.flowing === false; - }; - Readable.prototype.setEncoding = function(enc) { - if (!StringDecoder) - StringDecoder = require_string_decoder().StringDecoder; - var decoder = new StringDecoder(enc); - this._readableState.decoder = decoder; - this._readableState.encoding = this._readableState.decoder.encoding; - var p = this._readableState.buffer.head; - var content = ""; - while (p !== null) { - content += decoder.write(p.data); - p = p.next; - } - this._readableState.buffer.clear(); - if (content !== "") - this._readableState.buffer.push(content); - this._readableState.length = content.length; - return this; - }; - var MAX_HWM = 1073741824; - function computeNewHighWaterMark(n) { - if (n >= MAX_HWM) { - n = MAX_HWM; - } else { - n--; - n |= n >>> 1; - n |= n >>> 2; - n |= n >>> 4; - n |= n >>> 8; - n |= n >>> 16; - n++; - } - return n; - } - function howMuchToRead(n, state) { - if (n <= 0 || state.length === 0 && state.ended) - return 0; - if (state.objectMode) - return 1; - if (n !== n) { - if (state.flowing && state.length) - return state.buffer.head.data.length; - else - return state.length; - } - if (n > state.highWaterMark) - state.highWaterMark = computeNewHighWaterMark(n); - if (n <= state.length) - return n; - if (!state.ended) { - state.needReadable = true; - return 0; - } - return state.length; - } - Readable.prototype.read = function(n) { - debug("read", n); - n = parseInt(n, 10); - var state = this._readableState; - var nOrig = n; - if (n !== 0) - state.emittedReadable = false; - if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) { - debug("read: emitReadable", state.length, state.ended); - if (state.length === 0 && state.ended) - endReadable(this); - else - emitReadable(this); - return null; - } - n = howMuchToRead(n, state); - if (n === 0 && state.ended) { - if (state.length === 0) - endReadable(this); - return null; - } - var doRead = state.needReadable; - debug("need readable", doRead); - if (state.length === 0 || state.length - n < state.highWaterMark) { - doRead = true; - debug("length less than watermark", doRead); - } - if (state.ended || state.reading) { - doRead = false; - debug("reading or ended", doRead); - } else if (doRead) { - debug("do read"); - state.reading = true; - state.sync = true; - if (state.length === 0) - state.needReadable = true; - this._read(state.highWaterMark); - state.sync = false; - if (!state.reading) - n = howMuchToRead(nOrig, state); - } - var ret; - if (n > 0) - ret = fromList(n, state); - else - ret = null; - if (ret === null) { - state.needReadable = state.length <= state.highWaterMark; - n = 0; - } else { - state.length -= n; - state.awaitDrain = 0; - } - if (state.length === 0) { - if (!state.ended) - state.needReadable = true; - if (nOrig !== n && state.ended) - endReadable(this); - } - if (ret !== null) - this.emit("data", ret); - return ret; - }; - function onEofChunk(stream, state) { - debug("onEofChunk"); - if (state.ended) - return; - if (state.decoder) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) { - state.buffer.push(chunk); - state.length += state.objectMode ? 1 : chunk.length; - } - } - state.ended = true; - if (state.sync) { - emitReadable(stream); - } else { - state.needReadable = false; - if (!state.emittedReadable) { - state.emittedReadable = true; - emitReadable_(stream); - } - } - } - function emitReadable(stream) { - var state = stream._readableState; - debug("emitReadable", state.needReadable, state.emittedReadable); - state.needReadable = false; - if (!state.emittedReadable) { - debug("emitReadable", state.flowing); - state.emittedReadable = true; - process.nextTick(emitReadable_, stream); - } - } - function emitReadable_(stream) { - var state = stream._readableState; - debug("emitReadable_", state.destroyed, state.length, state.ended); - if (!state.destroyed && (state.length || state.ended)) { - stream.emit("readable"); - state.emittedReadable = false; - } - state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark; - flow(stream); - } - function maybeReadMore(stream, state) { - if (!state.readingMore) { - state.readingMore = true; - process.nextTick(maybeReadMore_, stream, state); - } - } - function maybeReadMore_(stream, state) { - while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) { - var len = state.length; - debug("maybeReadMore read 0"); - stream.read(0); - if (len === state.length) - break; - } - state.readingMore = false; - } - Readable.prototype._read = function(n) { - errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED("_read()")); - }; - Readable.prototype.pipe = function(dest, pipeOpts) { - var src = this; - var state = this._readableState; - switch (state.pipesCount) { - case 0: - state.pipes = dest; - break; - case 1: - state.pipes = [state.pipes, dest]; - break; - default: - state.pipes.push(dest); - break; - } - state.pipesCount += 1; - debug("pipe count=%d opts=%j", state.pipesCount, pipeOpts); - var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; - var endFn = doEnd ? onend : unpipe; - if (state.endEmitted) - process.nextTick(endFn); - else - src.once("end", endFn); - dest.on("unpipe", onunpipe); - function onunpipe(readable, unpipeInfo) { - debug("onunpipe"); - if (readable === src) { - if (unpipeInfo && unpipeInfo.hasUnpiped === false) { - unpipeInfo.hasUnpiped = true; - cleanup(); - } - } - } - function onend() { - debug("onend"); - dest.end(); - } - var ondrain = pipeOnDrain(src); - dest.on("drain", ondrain); - var cleanedUp = false; - function cleanup() { - debug("cleanup"); - dest.removeListener("close", onclose); - dest.removeListener("finish", onfinish); - dest.removeListener("drain", ondrain); - dest.removeListener("error", onerror); - dest.removeListener("unpipe", onunpipe); - src.removeListener("end", onend); - src.removeListener("end", unpipe); - src.removeListener("data", ondata); - cleanedUp = true; - if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) - ondrain(); - } - src.on("data", ondata); - function ondata(chunk) { - debug("ondata"); - var ret = dest.write(chunk); - debug("dest.write", ret); - if (ret === false) { - if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { - debug("false write response, pause", state.awaitDrain); - state.awaitDrain++; - } - src.pause(); - } - } - function onerror(er) { - debug("onerror", er); - unpipe(); - dest.removeListener("error", onerror); - if (EElistenerCount(dest, "error") === 0) - errorOrDestroy(dest, er); - } - prependListener(dest, "error", onerror); - function onclose() { - dest.removeListener("finish", onfinish); - unpipe(); - } - dest.once("close", onclose); - function onfinish() { - debug("onfinish"); - dest.removeListener("close", onclose); - unpipe(); - } - dest.once("finish", onfinish); - function unpipe() { - debug("unpipe"); - src.unpipe(dest); - } - dest.emit("pipe", src); - if (!state.flowing) { - debug("pipe resume"); - src.resume(); - } - return dest; - }; - function pipeOnDrain(src) { - return function pipeOnDrainFunctionResult() { - var state = src._readableState; - debug("pipeOnDrain", state.awaitDrain); - if (state.awaitDrain) - state.awaitDrain--; - if (state.awaitDrain === 0 && EElistenerCount(src, "data")) { - state.flowing = true; - flow(src); - } - }; - } - Readable.prototype.unpipe = function(dest) { - var state = this._readableState; - var unpipeInfo = { - hasUnpiped: false - }; - if (state.pipesCount === 0) - return this; - if (state.pipesCount === 1) { - if (dest && dest !== state.pipes) - return this; - if (!dest) - dest = state.pipes; - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - if (dest) - dest.emit("unpipe", this, unpipeInfo); - return this; - } - if (!dest) { - var dests = state.pipes; - var len = state.pipesCount; - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - for (var i = 0; i < len; i++) { - dests[i].emit("unpipe", this, { - hasUnpiped: false - }); - } - return this; - } - var index = indexOf(state.pipes, dest); - if (index === -1) - return this; - state.pipes.splice(index, 1); - state.pipesCount -= 1; - if (state.pipesCount === 1) - state.pipes = state.pipes[0]; - dest.emit("unpipe", this, unpipeInfo); - return this; - }; - Readable.prototype.on = function(ev, fn) { - var res = Stream.prototype.on.call(this, ev, fn); - var state = this._readableState; - if (ev === "data") { - state.readableListening = this.listenerCount("readable") > 0; - if (state.flowing !== false) - this.resume(); - } else if (ev === "readable") { - if (!state.endEmitted && !state.readableListening) { - state.readableListening = state.needReadable = true; - state.flowing = false; - state.emittedReadable = false; - debug("on readable", state.length, state.reading); - if (state.length) { - emitReadable(this); - } else if (!state.reading) { - process.nextTick(nReadingNextTick, this); - } - } - } - return res; - }; - Readable.prototype.addListener = Readable.prototype.on; - Readable.prototype.removeListener = function(ev, fn) { - var res = Stream.prototype.removeListener.call(this, ev, fn); - if (ev === "readable") { - process.nextTick(updateReadableListening, this); - } - return res; - }; - Readable.prototype.removeAllListeners = function(ev) { - var res = Stream.prototype.removeAllListeners.apply(this, arguments); - if (ev === "readable" || ev === void 0) { - process.nextTick(updateReadableListening, this); - } - return res; - }; - function updateReadableListening(self2) { - var state = self2._readableState; - state.readableListening = self2.listenerCount("readable") > 0; - if (state.resumeScheduled && !state.paused) { - state.flowing = true; - } else if (self2.listenerCount("data") > 0) { - self2.resume(); - } - } - function nReadingNextTick(self2) { - debug("readable nexttick read 0"); - self2.read(0); - } - Readable.prototype.resume = function() { - var state = this._readableState; - if (!state.flowing) { - debug("resume"); - state.flowing = !state.readableListening; - resume(this, state); - } - state.paused = false; - return this; - }; - function resume(stream, state) { - if (!state.resumeScheduled) { - state.resumeScheduled = true; - process.nextTick(resume_, stream, state); - } - } - function resume_(stream, state) { - debug("resume", state.reading); - if (!state.reading) { - stream.read(0); - } - state.resumeScheduled = false; - stream.emit("resume"); - flow(stream); - if (state.flowing && !state.reading) - stream.read(0); - } - Readable.prototype.pause = function() { - debug("call pause flowing=%j", this._readableState.flowing); - if (this._readableState.flowing !== false) { - debug("pause"); - this._readableState.flowing = false; - this.emit("pause"); - } - this._readableState.paused = true; - return this; - }; - function flow(stream) { - var state = stream._readableState; - debug("flow", state.flowing); - while (state.flowing && stream.read() !== null) { - ; - } - } - Readable.prototype.wrap = function(stream) { - var _this = this; - var state = this._readableState; - var paused = false; - stream.on("end", function() { - debug("wrapped end"); - if (state.decoder && !state.ended) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) - _this.push(chunk); - } - _this.push(null); - }); - stream.on("data", function(chunk) { - debug("wrapped data"); - if (state.decoder) - chunk = state.decoder.write(chunk); - if (state.objectMode && (chunk === null || chunk === void 0)) - return; - else if (!state.objectMode && (!chunk || !chunk.length)) - return; - var ret = _this.push(chunk); - if (!ret) { - paused = true; - stream.pause(); - } - }); - for (var i in stream) { - if (this[i] === void 0 && typeof stream[i] === "function") { - this[i] = function methodWrap(method) { - return function methodWrapReturnFunction() { - return stream[method].apply(stream, arguments); - }; - }(i); - } - } - for (var n = 0; n < kProxyEvents.length; n++) { - stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); - } - this._read = function(n2) { - debug("wrapped _read", n2); - if (paused) { - paused = false; - stream.resume(); - } - }; - return this; - }; - if (typeof Symbol === "function") { - Readable.prototype[Symbol.asyncIterator] = function() { - if (createReadableStreamAsyncIterator === void 0) { - createReadableStreamAsyncIterator = require_async_iterator(); - } - return createReadableStreamAsyncIterator(this); - }; - } - Object.defineProperty(Readable.prototype, "readableHighWaterMark", { - enumerable: false, - get: function get() { - return this._readableState.highWaterMark; - } - }); - Object.defineProperty(Readable.prototype, "readableBuffer", { - enumerable: false, - get: function get() { - return this._readableState && this._readableState.buffer; - } - }); - Object.defineProperty(Readable.prototype, "readableFlowing", { - enumerable: false, - get: function get() { - return this._readableState.flowing; - }, - set: function set(state) { - if (this._readableState) { - this._readableState.flowing = state; - } - } - }); - Readable._fromList = fromList; - Object.defineProperty(Readable.prototype, "readableLength", { - enumerable: false, - get: function get() { - return this._readableState.length; - } - }); - function fromList(n, state) { - if (state.length === 0) - return null; - var ret; - if (state.objectMode) - ret = state.buffer.shift(); - else if (!n || n >= state.length) { - if (state.decoder) - ret = state.buffer.join(""); - else if (state.buffer.length === 1) - ret = state.buffer.first(); - else - ret = state.buffer.concat(state.length); - state.buffer.clear(); - } else { - ret = state.buffer.consume(n, state.decoder); - } - return ret; - } - function endReadable(stream) { - var state = stream._readableState; - debug("endReadable", state.endEmitted); - if (!state.endEmitted) { - state.ended = true; - process.nextTick(endReadableNT, state, stream); - } - } - function endReadableNT(state, stream) { - debug("endReadableNT", state.endEmitted, state.length); - if (!state.endEmitted && state.length === 0) { - state.endEmitted = true; - stream.readable = false; - stream.emit("end"); - if (state.autoDestroy) { - var wState = stream._writableState; - if (!wState || wState.autoDestroy && wState.finished) { - stream.destroy(); - } - } - } - } - if (typeof Symbol === "function") { - Readable.from = function(iterable, opts) { - if (from === void 0) { - from = require_from(); - } - return from(Readable, iterable, opts); - }; - } - function indexOf(xs, x) { - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) - return i; - } - return -1; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_transform.js - var require_stream_transform = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_transform.js"(exports, module) { - "use strict"; - module.exports = Transform3; - var _require$codes = require_errors().codes; - var ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED; - var ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK; - var ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING; - var ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0; - var Duplex = require_stream_duplex(); - require_inherits()(Transform3, Duplex); - function afterTransform(er, data) { - var ts = this._transformState; - ts.transforming = false; - var cb = ts.writecb; - if (cb === null) { - return this.emit("error", new ERR_MULTIPLE_CALLBACK()); - } - ts.writechunk = null; - ts.writecb = null; - if (data != null) - this.push(data); - cb(er); - var rs = this._readableState; - rs.reading = false; - if (rs.needReadable || rs.length < rs.highWaterMark) { - this._read(rs.highWaterMark); - } - } - function Transform3(options) { - if (!(this instanceof Transform3)) - return new Transform3(options); - Duplex.call(this, options); - this._transformState = { - afterTransform: afterTransform.bind(this), - needTransform: false, - transforming: false, - writecb: null, - writechunk: null, - writeencoding: null - }; - this._readableState.needReadable = true; - this._readableState.sync = false; - if (options) { - if (typeof options.transform === "function") - this._transform = options.transform; - if (typeof options.flush === "function") - this._flush = options.flush; - } - this.on("prefinish", prefinish); - } - function prefinish() { - var _this = this; - if (typeof this._flush === "function" && !this._readableState.destroyed) { - this._flush(function(er, data) { - done(_this, er, data); - }); - } else { - done(this, null, null); - } - } - Transform3.prototype.push = function(chunk, encoding) { - this._transformState.needTransform = false; - return Duplex.prototype.push.call(this, chunk, encoding); - }; - Transform3.prototype._transform = function(chunk, encoding, cb) { - cb(new ERR_METHOD_NOT_IMPLEMENTED("_transform()")); - }; - Transform3.prototype._write = function(chunk, encoding, cb) { - var ts = this._transformState; - ts.writecb = cb; - ts.writechunk = chunk; - ts.writeencoding = encoding; - if (!ts.transforming) { - var rs = this._readableState; - if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) - this._read(rs.highWaterMark); - } - }; - Transform3.prototype._read = function(n) { - var ts = this._transformState; - if (ts.writechunk !== null && !ts.transforming) { - ts.transforming = true; - this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); - } else { - ts.needTransform = true; - } - }; - Transform3.prototype._destroy = function(err, cb) { - Duplex.prototype._destroy.call(this, err, function(err2) { - cb(err2); - }); - }; - function done(stream, er, data) { - if (er) - return stream.emit("error", er); - if (data != null) - stream.push(data); - if (stream._writableState.length) - throw new ERR_TRANSFORM_WITH_LENGTH_0(); - if (stream._transformState.transforming) - throw new ERR_TRANSFORM_ALREADY_TRANSFORMING(); - return stream.push(null); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_passthrough.js - var require_stream_passthrough = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_passthrough.js"(exports, module) { - "use strict"; - module.exports = PassThrough2; - var Transform3 = require_stream_transform(); - require_inherits()(PassThrough2, Transform3); - function PassThrough2(options) { - if (!(this instanceof PassThrough2)) - return new PassThrough2(options); - Transform3.call(this, options); - } - PassThrough2.prototype._transform = function(chunk, encoding, cb) { - cb(null, chunk); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/pipeline.js - var require_pipeline = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports, module) { - "use strict"; - var eos; - function once(callback) { - var called = false; - return function() { - if (called) - return; - called = true; - callback.apply(void 0, arguments); - }; - } - var _require$codes = require_errors().codes; - var ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS; - var ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED; - function noop(err) { - if (err) - throw err; - } - function isRequest(stream) { - return stream.setHeader && typeof stream.abort === "function"; - } - function destroyer(stream, reading, writing, callback) { - callback = once(callback); - var closed = false; - stream.on("close", function() { - closed = true; - }); - if (eos === void 0) - eos = require_end_of_stream(); - eos(stream, { - readable: reading, - writable: writing - }, function(err) { - if (err) - return callback(err); - closed = true; - callback(); - }); - var destroyed = false; - return function(err) { - if (closed) - return; - if (destroyed) - return; - destroyed = true; - if (isRequest(stream)) - return stream.abort(); - if (typeof stream.destroy === "function") - return stream.destroy(); - callback(err || new ERR_STREAM_DESTROYED("pipe")); - }; - } - function call(fn) { - fn(); - } - function pipe(from, to) { - return from.pipe(to); - } - function popCallback(streams) { - if (!streams.length) - return noop; - if (typeof streams[streams.length - 1] !== "function") - return noop; - return streams.pop(); - } - function pipeline3() { - for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) { - streams[_key] = arguments[_key]; - } - var callback = popCallback(streams); - if (Array.isArray(streams[0])) - streams = streams[0]; - if (streams.length < 2) { - throw new ERR_MISSING_ARGS("streams"); - } - var error; - var destroys = streams.map(function(stream, i) { - var reading = i < streams.length - 1; - var writing = i > 0; - return destroyer(stream, reading, writing, function(err) { - if (!error) - error = err; - if (err) - destroys.forEach(call); - if (reading) - return; - destroys.forEach(call); - callback(error); - }); - }); - return streams.reduce(pipe); - } - module.exports = pipeline3; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/readable.js - var require_readable = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/readable.js"(exports, module) { - var Stream = __require("stream"); - if (process.env.READABLE_STREAM === "disable" && Stream) { - module.exports = Stream.Readable; - Object.assign(module.exports, Stream); - module.exports.Stream = Stream; - } else { - exports = module.exports = require_stream_readable(); - exports.Stream = Stream || exports; - exports.Readable = exports; - exports.Writable = require_stream_writable(); - exports.Duplex = require_stream_duplex(); - exports.Transform = require_stream_transform(); - exports.PassThrough = require_stream_passthrough(); - exports.finished = require_end_of_stream(); - exports.pipeline = require_pipeline(); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/split2-npm-3.2.2-4ccd21b4f7-8127ddbedd.zip/node_modules/split2/index.js - var require_split2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/split2-npm-3.2.2-4ccd21b4f7-8127ddbedd.zip/node_modules/split2/index.js"(exports, module) { - "use strict"; - var {Transform: Transform3} = require_readable(); - var {StringDecoder} = __require("string_decoder"); - var kLast = Symbol("last"); - var kDecoder = Symbol("decoder"); - function transform(chunk, enc, cb) { - var list; - if (this.overflow) { - var buf = this[kDecoder].write(chunk); - list = buf.split(this.matcher); - if (list.length === 1) - return cb(); - list.shift(); - this.overflow = false; - } else { - this[kLast] += this[kDecoder].write(chunk); - list = this[kLast].split(this.matcher); - } - this[kLast] = list.pop(); - for (var i = 0; i < list.length; i++) { - try { - push(this, this.mapper(list[i])); - } catch (error) { - return cb(error); - } - } - this.overflow = this[kLast].length > this.maxLength; - if (this.overflow && !this.skipOverflow) - return cb(new Error("maximum buffer reached")); - cb(); - } - function flush(cb) { - this[kLast] += this[kDecoder].end(); - if (this[kLast]) { - try { - push(this, this.mapper(this[kLast])); - } catch (error) { - return cb(error); - } - } - cb(); - } - function push(self2, val) { - if (val !== void 0) { - self2.push(val); - } - } - function noop(incoming) { - return incoming; - } - function split(matcher, mapper, options) { - matcher = matcher || /\r?\n/; - mapper = mapper || noop; - options = options || {}; - switch (arguments.length) { - case 1: - if (typeof matcher === "function") { - mapper = matcher; - matcher = /\r?\n/; - } else if (typeof matcher === "object" && !(matcher instanceof RegExp)) { - options = matcher; - matcher = /\r?\n/; - } - break; - case 2: - if (typeof matcher === "function") { - options = mapper; - mapper = matcher; - matcher = /\r?\n/; - } else if (typeof mapper === "object") { - options = mapper; - mapper = noop; - } - } - options = Object.assign({}, options); - options.transform = transform; - options.flush = flush; - options.readableObjectMode = true; - const stream = new Transform3(options); - stream[kLast] = ""; - stream[kDecoder] = new StringDecoder("utf8"); - stream.matcher = matcher; - stream.mapper = mapper; - stream.maxLength = options.maxLength; - stream.skipOverflow = options.skipOverflow; - stream.overflow = false; - return stream; - } - module.exports = split; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_freeGlobal.js - var require_freeGlobal = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_freeGlobal.js"(exports, module) { - var freeGlobal = typeof global == "object" && global && global.Object === Object && global; - module.exports = freeGlobal; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_root.js - var require_root = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_root.js"(exports, module) { - var freeGlobal = require_freeGlobal(); - var freeSelf = typeof self == "object" && self && self.Object === Object && self; - var root = freeGlobal || freeSelf || Function("return this")(); - module.exports = root; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Symbol.js - var require_Symbol = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Symbol.js"(exports, module) { - var root = require_root(); - var Symbol2 = root.Symbol; - module.exports = Symbol2; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getRawTag.js - var require_getRawTag = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getRawTag.js"(exports, module) { - var Symbol2 = require_Symbol(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - var nativeObjectToString = objectProto.toString; - var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0; - function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; - try { - value[symToStringTag] = void 0; - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_objectToString.js - var require_objectToString = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_objectToString.js"(exports, module) { - var objectProto = Object.prototype; - var nativeObjectToString = objectProto.toString; - function objectToString(value) { - return nativeObjectToString.call(value); - } - module.exports = objectToString; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseGetTag.js - var require_baseGetTag = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseGetTag.js"(exports, module) { - var Symbol2 = require_Symbol(); - var getRawTag = require_getRawTag(); - var objectToString = require_objectToString(); - var nullTag = "[object Null]"; - var undefinedTag = "[object Undefined]"; - var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0; - function baseGetTag(value) { - if (value == null) { - return value === void 0 ? undefinedTag : nullTag; - } - return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); - } - module.exports = baseGetTag; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isObject.js - var require_isObject = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isObject.js"(exports, module) { - function isObject(value) { - var type = typeof value; - return value != null && (type == "object" || type == "function"); - } - module.exports = isObject; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isFunction.js - var require_isFunction = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isFunction.js"(exports, module) { - var baseGetTag = require_baseGetTag(); - var isObject = require_isObject(); - var asyncTag = "[object AsyncFunction]"; - var funcTag = "[object Function]"; - var genTag = "[object GeneratorFunction]"; - var proxyTag = "[object Proxy]"; - function isFunction(value) { - if (!isObject(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; - } - module.exports = isFunction; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_coreJsData.js - var require_coreJsData = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_coreJsData.js"(exports, module) { - var root = require_root(); - var coreJsData = root["__core-js_shared__"]; - module.exports = coreJsData; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isMasked.js - var require_isMasked = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isMasked.js"(exports, module) { - var coreJsData = require_coreJsData(); - var maskSrcKey = function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); - return uid ? "Symbol(src)_1." + uid : ""; - }(); - function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; - } - module.exports = isMasked; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_toSource.js - var require_toSource = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_toSource.js"(exports, module) { - var funcProto = Function.prototype; - var funcToString = funcProto.toString; - function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) { - } - try { - return func + ""; - } catch (e) { - } - } - return ""; - } - module.exports = toSource; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsNative.js - var require_baseIsNative = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsNative.js"(exports, module) { - var isFunction = require_isFunction(); - var isMasked = require_isMasked(); - var isObject = require_isObject(); - var toSource = require_toSource(); - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - var reIsHostCtor = /^\[object .+?Constructor\]$/; - var funcProto = Function.prototype; - var objectProto = Object.prototype; - var funcToString = funcProto.toString; - var hasOwnProperty = objectProto.hasOwnProperty; - var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); - function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - module.exports = baseIsNative; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getValue.js - var require_getValue = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getValue.js"(exports, module) { - function getValue(object, key) { - return object == null ? void 0 : object[key]; - } - module.exports = getValue; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getNative.js - var require_getNative = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getNative.js"(exports, module) { - var baseIsNative = require_baseIsNative(); - var getValue = require_getValue(); - function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : void 0; - } - module.exports = getNative; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_defineProperty.js - var require_defineProperty = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_defineProperty.js"(exports, module) { - var getNative = require_getNative(); - var defineProperty = function() { - try { - var func = getNative(Object, "defineProperty"); - func({}, "", {}); - return func; - } catch (e) { - } - }(); - module.exports = defineProperty; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseAssignValue.js - var require_baseAssignValue = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseAssignValue.js"(exports, module) { - var defineProperty = require_defineProperty(); - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/eq.js - var require_eq = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/eq.js"(exports, module) { - function eq(value, other) { - return value === other || value !== value && other !== other; - } - module.exports = eq; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_assignValue.js - var require_assignValue = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_assignValue.js"(exports, module) { - var baseAssignValue = require_baseAssignValue(); - var eq = require_eq(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - module.exports = assignValue; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_copyObject.js - var require_copyObject = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_copyObject.js"(exports, module) { - var assignValue = require_assignValue(); - var baseAssignValue = require_baseAssignValue(); - 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) : void 0; - if (newValue === void 0) { - newValue = source[key]; - } - if (isNew) { - baseAssignValue(object, key, newValue); - } else { - assignValue(object, key, newValue); - } - } - return object; - } - module.exports = copyObject; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/identity.js - var require_identity = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/identity.js"(exports, module) { - function identity(value) { - return value; - } - module.exports = identity; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_apply.js - var require_apply = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_apply.js"(exports, module) { - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_overRest.js - var require_overRest = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_overRest.js"(exports, module) { - var apply = require_apply(); - var nativeMax = Math.max; - function overRest(func, start, transform) { - start = nativeMax(start === void 0 ? 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/constant.js - var require_constant = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/constant.js"(exports, module) { - function constant(value) { - return function() { - return value; - }; - } - module.exports = constant; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseSetToString.js - var require_baseSetToString = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseSetToString.js"(exports, module) { - var constant = require_constant(); - var defineProperty = require_defineProperty(); - var identity = require_identity(); - var baseSetToString = !defineProperty ? identity : function(func, string) { - return defineProperty(func, "toString", { - "configurable": true, - "enumerable": false, - "value": constant(string), - "writable": true - }); - }; - module.exports = baseSetToString; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_shortOut.js - var require_shortOut = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_shortOut.js"(exports, module) { - var HOT_COUNT = 800; - var HOT_SPAN = 16; - var nativeNow = Date.now; - 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(void 0, arguments); - }; - } - module.exports = shortOut; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setToString.js - var require_setToString = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setToString.js"(exports, module) { - var baseSetToString = require_baseSetToString(); - var shortOut = require_shortOut(); - var setToString = shortOut(baseSetToString); - module.exports = setToString; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseRest.js - var require_baseRest = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseRest.js"(exports, module) { - var identity = require_identity(); - var overRest = require_overRest(); - var setToString = require_setToString(); - function baseRest(func, start) { - return setToString(overRest(func, start, identity), func + ""); - } - module.exports = baseRest; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isLength.js - var require_isLength = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isLength.js"(exports, module) { - var MAX_SAFE_INTEGER = 9007199254740991; - function isLength(value) { - return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - } - module.exports = isLength; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isArrayLike.js - var require_isArrayLike = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isArrayLike.js"(exports, module) { - var isFunction = require_isFunction(); - var isLength = require_isLength(); - function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); - } - module.exports = isArrayLike; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isIndex.js - var require_isIndex = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isIndex.js"(exports, module) { - var MAX_SAFE_INTEGER = 9007199254740991; - var reIsUint = /^(?:0|[1-9]\d*)$/; - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isIterateeCall.js - var require_isIterateeCall = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isIterateeCall.js"(exports, module) { - var eq = require_eq(); - var isArrayLike = require_isArrayLike(); - var isIndex = require_isIndex(); - var isObject = require_isObject(); - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_createAssigner.js - var require_createAssigner = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_createAssigner.js"(exports, module) { - var baseRest = require_baseRest(); - var isIterateeCall = require_isIterateeCall(); - function createAssigner(assigner) { - return baseRest(function(object, sources) { - var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0; - customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - customizer = length < 3 ? void 0 : 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseTimes.js - var require_baseTimes = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseTimes.js"(exports, module) { - function baseTimes(n, iteratee) { - var index = -1, result = Array(n); - while (++index < n) { - result[index] = iteratee(index); - } - return result; - } - module.exports = baseTimes; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isObjectLike.js - var require_isObjectLike = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isObjectLike.js"(exports, module) { - function isObjectLike(value) { - return value != null && typeof value == "object"; - } - module.exports = isObjectLike; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsArguments.js - var require_baseIsArguments = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsArguments.js"(exports, module) { - var baseGetTag = require_baseGetTag(); - var isObjectLike = require_isObjectLike(); - var argsTag = "[object Arguments]"; - function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; - } - module.exports = baseIsArguments; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isArguments.js - var require_isArguments = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isArguments.js"(exports, module) { - var baseIsArguments = require_baseIsArguments(); - var isObjectLike = require_isObjectLike(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - var propertyIsEnumerable = objectProto.propertyIsEnumerable; - var isArguments = baseIsArguments(function() { - return arguments; - }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); - }; - module.exports = isArguments; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isArray.js - var require_isArray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isArray.js"(exports, module) { - var isArray = Array.isArray; - module.exports = isArray; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/stubFalse.js - var require_stubFalse = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/stubFalse.js"(exports, module) { - function stubFalse() { - return false; - } - module.exports = stubFalse; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isBuffer.js - var require_isBuffer = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isBuffer.js"(exports, module) { - var root = require_root(); - var stubFalse = require_stubFalse(); - var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; - var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module; - var moduleExports = freeModule && freeModule.exports === freeExports; - var Buffer2 = moduleExports ? root.Buffer : void 0; - var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0; - var isBuffer = nativeIsBuffer || stubFalse; - module.exports = isBuffer; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsTypedArray.js - var require_baseIsTypedArray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsTypedArray.js"(exports, module) { - var baseGetTag = require_baseGetTag(); - var isLength = require_isLength(); - var isObjectLike = require_isObjectLike(); - var argsTag = "[object Arguments]"; - var arrayTag = "[object Array]"; - var boolTag = "[object Boolean]"; - var dateTag = "[object Date]"; - var errorTag = "[object Error]"; - var funcTag = "[object Function]"; - var mapTag = "[object Map]"; - var numberTag = "[object Number]"; - var objectTag = "[object Object]"; - var regexpTag = "[object RegExp]"; - var setTag = "[object Set]"; - var stringTag = "[object String]"; - var weakMapTag = "[object WeakMap]"; - var arrayBufferTag = "[object ArrayBuffer]"; - var dataViewTag = "[object DataView]"; - var float32Tag = "[object Float32Array]"; - var float64Tag = "[object Float64Array]"; - var int8Tag = "[object Int8Array]"; - var int16Tag = "[object Int16Array]"; - var int32Tag = "[object Int32Array]"; - var uint8Tag = "[object Uint8Array]"; - var uint8ClampedTag = "[object Uint8ClampedArray]"; - var uint16Tag = "[object Uint16Array]"; - var uint32Tag = "[object Uint32Array]"; - 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; - function baseIsTypedArray(value) { - return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; - } - module.exports = baseIsTypedArray; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseUnary.js - var require_baseUnary = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseUnary.js"(exports, module) { - function baseUnary(func) { - return function(value) { - return func(value); - }; - } - module.exports = baseUnary; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nodeUtil.js - var require_nodeUtil = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nodeUtil.js"(exports, module) { - var freeGlobal = require_freeGlobal(); - var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; - var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module; - var moduleExports = freeModule && freeModule.exports === freeExports; - var freeProcess = moduleExports && freeGlobal.process; - var nodeUtil = function() { - try { - var types = freeModule && freeModule.require && freeModule.require("util").types; - if (types) { - return types; - } - return freeProcess && freeProcess.binding && freeProcess.binding("util"); - } catch (e) { - } - }(); - module.exports = nodeUtil; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isTypedArray.js - var require_isTypedArray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isTypedArray.js"(exports, module) { - var baseIsTypedArray = require_baseIsTypedArray(); - var baseUnary = require_baseUnary(); - var nodeUtil = require_nodeUtil(); - var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - module.exports = isTypedArray; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayLikeKeys.js - var require_arrayLikeKeys = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayLikeKeys.js"(exports, module) { - var baseTimes = require_baseTimes(); - var isArguments = require_isArguments(); - var isArray = require_isArray(); - var isBuffer = require_isBuffer(); - var isIndex = require_isIndex(); - var isTypedArray = require_isTypedArray(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - 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 && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) { - result.push(key); - } - } - return result; - } - module.exports = arrayLikeKeys; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isPrototype.js - var require_isPrototype = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isPrototype.js"(exports, module) { - var objectProto = Object.prototype; - function isPrototype(value) { - var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; - return value === proto; - } - module.exports = isPrototype; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nativeKeysIn.js - var require_nativeKeysIn = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nativeKeysIn.js"(exports, module) { - function nativeKeysIn(object) { - var result = []; - if (object != null) { - for (var key in Object(object)) { - result.push(key); - } - } - return result; - } - module.exports = nativeKeysIn; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseKeysIn.js - var require_baseKeysIn = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseKeysIn.js"(exports, module) { - var isObject = require_isObject(); - var isPrototype = require_isPrototype(); - var nativeKeysIn = require_nativeKeysIn(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/keysIn.js - var require_keysIn = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/keysIn.js"(exports, module) { - var arrayLikeKeys = require_arrayLikeKeys(); - var baseKeysIn = require_baseKeysIn(); - var isArrayLike = require_isArrayLike(); - function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); - } - module.exports = keysIn; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/assignInWith.js - var require_assignInWith = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/assignInWith.js"(exports, module) { - var copyObject = require_copyObject(); - var createAssigner = require_createAssigner(); - var keysIn = require_keysIn(); - var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keysIn(source), object, customizer); - }); - module.exports = assignInWith; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_overArg.js - var require_overArg = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_overArg.js"(exports, module) { - function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; - } - module.exports = overArg; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getPrototype.js - var require_getPrototype = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getPrototype.js"(exports, module) { - var overArg = require_overArg(); - var getPrototype = overArg(Object.getPrototypeOf, Object); - module.exports = getPrototype; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isPlainObject.js - var require_isPlainObject = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isPlainObject.js"(exports, module) { - var baseGetTag = require_baseGetTag(); - var getPrototype = require_getPrototype(); - var isObjectLike = require_isObjectLike(); - var objectTag = "[object Object]"; - var funcProto = Function.prototype; - var objectProto = Object.prototype; - var funcToString = funcProto.toString; - var hasOwnProperty = objectProto.hasOwnProperty; - var objectCtorString = funcToString.call(Object); - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isError.js - var require_isError = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isError.js"(exports, module) { - var baseGetTag = require_baseGetTag(); - var isObjectLike = require_isObjectLike(); - var isPlainObject = require_isPlainObject(); - var domExcTag = "[object DOMException]"; - var errorTag = "[object Error]"; - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/attempt.js - var require_attempt = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/attempt.js"(exports, module) { - var apply = require_apply(); - var baseRest = require_baseRest(); - var isError = require_isError(); - var attempt = baseRest(function(func, args) { - try { - return apply(func, void 0, args); - } catch (e) { - return isError(e) ? e : new Error(e); - } - }); - module.exports = attempt; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayMap.js - var require_arrayMap = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayMap.js"(exports, module) { - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseValues.js - var require_baseValues = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseValues.js"(exports, module) { - var arrayMap = require_arrayMap(); - function baseValues(object, props) { - return arrayMap(props, function(key) { - return object[key]; - }); - } - module.exports = baseValues; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_customDefaultsAssignIn.js - var require_customDefaultsAssignIn = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_customDefaultsAssignIn.js"(exports, module) { - var eq = require_eq(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function customDefaultsAssignIn(objValue, srcValue, key, object) { - if (objValue === void 0 || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key)) { - return srcValue; - } - return objValue; - } - module.exports = customDefaultsAssignIn; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_escapeStringChar.js - var require_escapeStringChar = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_escapeStringChar.js"(exports, module) { - var stringEscapes = { - "\\": "\\", - "'": "'", - "\n": "n", - "\r": "r", - "\u2028": "u2028", - "\u2029": "u2029" - }; - function escapeStringChar(chr) { - return "\\" + stringEscapes[chr]; - } - module.exports = escapeStringChar; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nativeKeys.js - var require_nativeKeys = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nativeKeys.js"(exports, module) { - var overArg = require_overArg(); - var nativeKeys = overArg(Object.keys, Object); - module.exports = nativeKeys; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseKeys.js - var require_baseKeys = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseKeys.js"(exports, module) { - var isPrototype = require_isPrototype(); - var nativeKeys = require_nativeKeys(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/keys.js - var require_keys = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/keys.js"(exports, module) { - var arrayLikeKeys = require_arrayLikeKeys(); - var baseKeys = require_baseKeys(); - var isArrayLike = require_isArrayLike(); - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - } - module.exports = keys; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_reInterpolate.js - var require_reInterpolate = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_reInterpolate.js"(exports, module) { - var reInterpolate = /<%=([\s\S]+?)%>/g; - module.exports = reInterpolate; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_basePropertyOf.js - var require_basePropertyOf = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_basePropertyOf.js"(exports, module) { - function basePropertyOf(object) { - return function(key) { - return object == null ? void 0 : object[key]; - }; - } - module.exports = basePropertyOf; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_escapeHtmlChar.js - var require_escapeHtmlChar = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_escapeHtmlChar.js"(exports, module) { - var basePropertyOf = require_basePropertyOf(); - var htmlEscapes = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'" - }; - var escapeHtmlChar = basePropertyOf(htmlEscapes); - module.exports = escapeHtmlChar; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isSymbol.js - var require_isSymbol = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isSymbol.js"(exports, module) { - var baseGetTag = require_baseGetTag(); - var isObjectLike = require_isObjectLike(); - var symbolTag = "[object Symbol]"; - function isSymbol(value) { - return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag; - } - module.exports = isSymbol; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseToString.js - var require_baseToString = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseToString.js"(exports, module) { - var Symbol2 = require_Symbol(); - var arrayMap = require_arrayMap(); - var isArray = require_isArray(); - var isSymbol = require_isSymbol(); - var INFINITY = 1 / 0; - var symbolProto = Symbol2 ? Symbol2.prototype : void 0; - var symbolToString = symbolProto ? symbolProto.toString : void 0; - function baseToString(value) { - if (typeof value == "string") { - return value; - } - if (isArray(value)) { - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/toString.js - var require_toString = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/toString.js"(exports, module) { - var baseToString = require_baseToString(); - function toString(value) { - return value == null ? "" : baseToString(value); - } - module.exports = toString; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/escape.js - var require_escape = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/escape.js"(exports, module) { - var escapeHtmlChar = require_escapeHtmlChar(); - var toString = require_toString(); - var reUnescapedHtml = /[&<>"']/g; - var reHasUnescapedHtml = RegExp(reUnescapedHtml.source); - function escape(string) { - string = toString(string); - return string && reHasUnescapedHtml.test(string) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string; - } - module.exports = escape; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_reEscape.js - var require_reEscape = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_reEscape.js"(exports, module) { - var reEscape = /<%-([\s\S]+?)%>/g; - module.exports = reEscape; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_reEvaluate.js - var require_reEvaluate = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_reEvaluate.js"(exports, module) { - var reEvaluate = /<%([\s\S]+?)%>/g; - module.exports = reEvaluate; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/templateSettings.js - var require_templateSettings = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/templateSettings.js"(exports, module) { - var escape = require_escape(); - var reEscape = require_reEscape(); - var reEvaluate = require_reEvaluate(); - var reInterpolate = require_reInterpolate(); - var templateSettings = { - "escape": reEscape, - "evaluate": reEvaluate, - "interpolate": reInterpolate, - "variable": "", - "imports": { - "_": {"escape": escape} - } - }; - module.exports = templateSettings; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/template.js - var require_template = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/template.js"(exports, module) { - var assignInWith = require_assignInWith(); - var attempt = require_attempt(); - var baseValues = require_baseValues(); - var customDefaultsAssignIn = require_customDefaultsAssignIn(); - var escapeStringChar = require_escapeStringChar(); - var isError = require_isError(); - var isIterateeCall = require_isIterateeCall(); - var keys = require_keys(); - var reInterpolate = require_reInterpolate(); - var templateSettings = require_templateSettings(); - var toString = require_toString(); - var INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`"; - var reEmptyStringLeading = /\b__p \+= '';/g; - var reEmptyStringMiddle = /\b(__p \+=) '' \+/g; - var reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; - var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/; - var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; - var reNoMatch = /($^)/; - var reUnescapedString = /['\n\r\u2028\u2029\\]/g; - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function template(string, options, guard) { - var settings = templateSettings.imports._.templateSettings || templateSettings; - if (guard && isIterateeCall(string, options, guard)) { - options = void 0; - } - string = toString(string); - options = assignInWith({}, options, settings, customDefaultsAssignIn); - var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys); - var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '"; - var reDelimiters = RegExp((options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$", "g"); - var sourceURL = hasOwnProperty.call(options, "sourceURL") ? "//# sourceURL=" + (options.sourceURL + "").replace(/\s/g, " ") + "\n" : ""; - string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) { - interpolateValue || (interpolateValue = esTemplateValue); - source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar); - if (escapeValue) { - isEscaping = true; - source += "' +\n__e(" + escapeValue + ") +\n'"; - } - if (evaluateValue) { - isEvaluating = true; - source += "';\n" + evaluateValue + ";\n__p += '"; - } - if (interpolateValue) { - source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'"; - } - index = offset + match.length; - return match; - }); - source += "';\n"; - var variable = hasOwnProperty.call(options, "variable") && options.variable; - if (!variable) { - source = "with (obj) {\n" + source + "\n}\n"; - } else if (reForbiddenIdentifierChars.test(variable)) { - throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT); - } - source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;"); - source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}"; - var result = attempt(function() { - return Function(importsKeys, sourceURL + "return " + source).apply(void 0, importsValues); - }); - result.source = source; - if (isError(result)) { - throw result; - } - return result; - } - module.exports = template; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/through2-npm-4.0.2-da7b2da443-ac7430bd54.zip/node_modules/through2/through2.js - var require_through2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/through2-npm-4.0.2-da7b2da443-ac7430bd54.zip/node_modules/through2/through2.js"(exports, module) { - var {Transform: Transform3} = require_readable(); - function inherits(fn, sup) { - fn.super_ = sup; - fn.prototype = Object.create(sup.prototype, { - constructor: {value: fn, enumerable: false, writable: true, configurable: true} - }); - } - function through2(construct) { - return (options, transform, flush) => { - if (typeof options === "function") { - flush = transform; - transform = options; - options = {}; - } - if (typeof transform !== "function") { - transform = (chunk, enc, cb) => cb(null, chunk); - } - if (typeof flush !== "function") { - flush = null; - } - return construct(options, transform, flush); - }; - } - var make = through2((options, transform, flush) => { - const t2 = new Transform3(options); - t2._transform = transform; - if (flush) { - t2._flush = flush; - } - return t2; - }); - var ctor = through2((options, transform, flush) => { - function Through2(override) { - if (!(this instanceof Through2)) { - return new Through2(override); - } - this.options = Object.assign({}, options, override); - Transform3.call(this, this.options); - this._transform = transform; - if (flush) { - this._flush = flush; - } - } - inherits(Through2, Transform3); - return Through2; - }); - var obj = through2(function(options, transform, flush) { - const t2 = new Transform3(Object.assign({objectMode: true, highWaterMark: 16}, options)); - t2._transform = transform; - if (flush) { - t2._flush = flush; - } - return t2; - }); - module.exports = make; - module.exports.ctor = ctor; - module.exports.obj = obj; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/git-raw-commits-npm-2.0.11-b090f2f684-c178af4363.zip/node_modules/git-raw-commits/index.js - var require_git_raw_commits = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/git-raw-commits-npm-2.0.11-b090f2f684-c178af4363.zip/node_modules/git-raw-commits/index.js"(exports, module) { - "use strict"; - var dargs = require_dargs(); - var execFile = __require("child_process").execFile; - var split = require_split2(); - var stream = __require("stream"); - var template = require_template(); - var through = require_through2(); - var DELIMITER = "------------------------ >8 ------------------------"; - function normalizeExecOpts(execOpts) { - execOpts = execOpts || {}; - execOpts.cwd = execOpts.cwd || process.cwd(); - return execOpts; - } - function normalizeGitOpts(gitOpts) { - gitOpts = gitOpts || {}; - gitOpts.format = gitOpts.format || "%B"; - gitOpts.from = gitOpts.from || ""; - gitOpts.to = gitOpts.to || "HEAD"; - return gitOpts; - } - function getGitArgs(gitOpts) { - const gitFormat = template("--format=<%= format %>%n" + DELIMITER)(gitOpts); - const gitFromTo = [gitOpts.from, gitOpts.to].filter(Boolean).join(".."); - const gitArgs = ["log", gitFormat, gitFromTo].concat(dargs(gitOpts, { - excludes: ["debug", "from", "to", "format", "path"] - })); - if (gitOpts.path) { - gitArgs.push("--", gitOpts.path); - } - return gitArgs; - } - function gitRawCommits(rawGitOpts, rawExecOpts) { - const readable = new stream.Readable(); - readable._read = function() { - }; - const gitOpts = normalizeGitOpts(rawGitOpts); - const execOpts = normalizeExecOpts(rawExecOpts); - const args = getGitArgs(gitOpts); - if (gitOpts.debug) { - gitOpts.debug("Your git-log command is:\ngit " + args.join(" ")); - } - let isError = false; - const child = execFile("git", args, { - cwd: execOpts.cwd, - maxBuffer: Infinity - }); - child.stdout.pipe(split(DELIMITER + "\n")).pipe(through(function(chunk, enc, cb) { - readable.push(chunk); - isError = false; - cb(); - }, function(cb) { - setImmediate(function() { - if (!isError) { - readable.push(null); - readable.emit("close"); - } - cb(); - }); - })); - child.stderr.pipe(through.obj(function(chunk) { - isError = true; - readable.emit("error", new Error(chunk)); - readable.emit("close"); - })); - return readable; - } - module.exports = gitRawCommits; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/lodash.js - var require_lodash = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/lodash.js"(exports, module) { - (function() { - var undefined2; - var VERSION = "4.17.21"; - var LARGE_ARRAY_SIZE = 200; - 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`"; - var HASH_UNDEFINED = "__lodash_hash_undefined__"; - var MAX_MEMOIZE_SIZE = 500; - var PLACEHOLDER = "__lodash_placeholder__"; - var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; - var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; - 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; - var DEFAULT_TRUNC_LENGTH = 30, DEFAULT_TRUNC_OMISSION = "..."; - var HOT_COUNT = 800, HOT_SPAN = 16; - var LAZY_FILTER_FLAG = 1, LAZY_MAP_FLAG = 2, LAZY_WHILE_FLAG = 3; - var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 17976931348623157e292, NAN = 0 / 0; - var MAX_ARRAY_LENGTH = 4294967295, MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; - 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] - ]; - 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]"; - var reEmptyStringLeading = /\b__p \+= '';/g, reEmptyStringMiddle = /\b(__p \+=) '' \+/g, reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; - var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, reUnescapedHtml = /[&<>"']/g, reHasEscapedHtml = RegExp(reEscapedHtml.source), reHasUnescapedHtml = RegExp(reUnescapedHtml.source); - var reEscape = /<%-([\s\S]+?)%>/g, reEvaluate = /<%([\s\S]+?)%>/g, reInterpolate = /<%=([\s\S]+?)%>/g; - var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source); - var reTrimStart = /^\s+/; - var reWhitespace = /\s/; - var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, reSplitDetails = /,? & /; - var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; - var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/; - var reEscapeChar = /\\(\\)?/g; - var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; - var reFlags = /\w*$/; - var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; - var reIsBinary = /^0b[01]+$/i; - var reIsHostCtor = /^\[object .+?Constructor\]$/; - var reIsOctal = /^0o[0-7]+$/i; - var reIsUint = /^(?:0|[1-9]\d*)$/; - var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; - var reNoMatch = /($^)/; - var reUnescapedString = /['\n\r\u2028\u2029\\]/g; - 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; - 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"; - 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("|") + ")"; - var reApos = RegExp(rsApos, "g"); - var reComboMark = RegExp(rsCombo, "g"); - var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g"); - 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"); - var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]"); - 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 ]/; - 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" - ]; - var templateCounter = -1; - 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; - 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; - var deburredLetters = { - "\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", - "\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" - }; - var htmlEscapes = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'" - }; - var htmlUnescapes = { - "&": "&", - "<": "<", - ">": ">", - """: '"', - "'": "'" - }; - var stringEscapes = { - "\\": "\\", - "'": "'", - "\n": "n", - "\r": "r", - "\u2028": "u2028", - "\u2029": "u2029" - }; - var freeParseFloat = parseFloat, freeParseInt = parseInt; - var freeGlobal = typeof global == "object" && global && global.Object === Object && global; - var freeSelf = typeof self == "object" && self && self.Object === Object && self; - var root = freeGlobal || freeSelf || Function("return this")(); - var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; - var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module; - var moduleExports = freeModule && freeModule.exports === freeExports; - var freeProcess = moduleExports && freeGlobal.process; - var nodeUtil = function() { - try { - var types = freeModule && freeModule.require && freeModule.require("util").types; - if (types) { - return types; - } - return freeProcess && freeProcess.binding && freeProcess.binding("util"); - } catch (e) { - } - }(); - 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; - 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); - } - 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; - } - 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; - } - function arrayEachRight(array, iteratee) { - var length = array == null ? 0 : array.length; - while (length--) { - if (iteratee(array[length], length, array) === false) { - break; - } - } - return array; - } - 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; - } - 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; - } - function arrayIncludes(array, value) { - var length = array == null ? 0 : array.length; - return !!length && baseIndexOf(array, value, 0) > -1; - } - 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; - } - 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; - } - function arrayPush(array, values) { - var index = -1, length = values.length, offset = array.length; - while (++index < length) { - array[offset + index] = values[index]; - } - return array; - } - 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; - } - 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; - } - 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; - } - var asciiSize = baseProperty("length"); - function asciiToArray(string) { - return string.split(""); - } - function asciiWords(string) { - return string.match(reAsciiWord) || []; - } - function baseFindKey(collection, predicate, eachFunc) { - var result; - eachFunc(collection, function(value, key, collection2) { - if (predicate(value, key, collection2)) { - result = key; - return false; - } - }); - return result; - } - 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; - } - function baseIndexOf(array, value, fromIndex) { - return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); - } - 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; - } - function baseIsNaN(value) { - return value !== value; - } - function baseMean(array, iteratee) { - var length = array == null ? 0 : array.length; - return length ? baseSum(array, iteratee) / length : NAN; - } - function baseProperty(key) { - return function(object) { - return object == null ? undefined2 : object[key]; - }; - } - function basePropertyOf(object) { - return function(key) { - return object == null ? undefined2 : object[key]; - }; - } - function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { - eachFunc(collection, function(value, index, collection2) { - accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection2); - }); - return accumulator; - } - function baseSortBy(array, comparer) { - var length = array.length; - array.sort(comparer); - while (length--) { - array[length] = array[length].value; - } - return array; - } - function baseSum(array, iteratee) { - var result, index = -1, length = array.length; - while (++index < length) { - var current = iteratee(array[index]); - if (current !== undefined2) { - result = result === undefined2 ? current : result + current; - } - } - return result; - } - function baseTimes(n, iteratee) { - var index = -1, result = Array(n); - while (++index < n) { - result[index] = iteratee(index); - } - return result; - } - function baseToPairs(object, props) { - return arrayMap(props, function(key) { - return [key, object[key]]; - }); - } - function baseTrim(string) { - return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string; - } - function baseUnary(func) { - return function(value) { - return func(value); - }; - } - function baseValues(object, props) { - return arrayMap(props, function(key) { - return object[key]; - }); - } - function cacheHas(cache, key) { - return cache.has(key); - } - function charsStartIndex(strSymbols, chrSymbols) { - var index = -1, length = strSymbols.length; - while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) { - } - return index; - } - function charsEndIndex(strSymbols, chrSymbols) { - var index = strSymbols.length; - while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) { - } - return index; - } - function countHolders(array, placeholder) { - var length = array.length, result = 0; - while (length--) { - if (array[length] === placeholder) { - ++result; - } - } - return result; - } - var deburrLetter = basePropertyOf(deburredLetters); - var escapeHtmlChar = basePropertyOf(htmlEscapes); - function escapeStringChar(chr) { - return "\\" + stringEscapes[chr]; - } - function getValue(object, key) { - return object == null ? undefined2 : object[key]; - } - function hasUnicode(string) { - return reHasUnicode.test(string); - } - function hasUnicodeWord(string) { - return reHasUnicodeWord.test(string); - } - function iteratorToArray(iterator) { - var data, result = []; - while (!(data = iterator.next()).done) { - result.push(data.value); - } - return result; - } - function mapToArray(map) { - var index = -1, result = Array(map.size); - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; - } - function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; - } - 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; - } - function setToArray(set) { - var index = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index] = value; - }); - return result; - } - function setToPairs(set) { - var index = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index] = [value, value]; - }); - return result; - } - function strictIndexOf(array, value, fromIndex) { - var index = fromIndex - 1, length = array.length; - while (++index < length) { - if (array[index] === value) { - return index; - } - } - return -1; - } - function strictLastIndexOf(array, value, fromIndex) { - var index = fromIndex + 1; - while (index--) { - if (array[index] === value) { - return index; - } - } - return index; - } - function stringSize(string) { - return hasUnicode(string) ? unicodeSize(string) : asciiSize(string); - } - function stringToArray(string) { - return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string); - } - function trimmedEndIndex(string) { - var index = string.length; - while (index-- && reWhitespace.test(string.charAt(index))) { - } - return index; - } - var unescapeHtmlChar = basePropertyOf(htmlUnescapes); - function unicodeSize(string) { - var result = reUnicode.lastIndex = 0; - while (reUnicode.test(string)) { - ++result; - } - return result; - } - function unicodeToArray(string) { - return string.match(reUnicode) || []; - } - function unicodeWords(string) { - return string.match(reUnicodeWord) || []; - } - var runInContext = function runInContext2(context) { - context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps)); - var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError; - var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype; - var coreJsData = context["__core-js_shared__"]; - var funcToString = funcProto.toString; - var hasOwnProperty = objectProto.hasOwnProperty; - var idCounter = 0; - var maskSrcKey = function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); - return uid ? "Symbol(src)_1." + uid : ""; - }(); - var nativeObjectToString = objectProto.toString; - var objectCtorString = funcToString.call(Object2); - var oldDash = root._; - var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); - var Buffer2 = moduleExports ? context.Buffer : undefined2, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined2, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined2, symIterator = Symbol2 ? Symbol2.iterator : undefined2, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined2; - var defineProperty = function() { - try { - var func = getNative(Object2, "defineProperty"); - func({}, "", {}); - return func; - } catch (e) { - } - }(); - var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout; - var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse; - var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create"); - var metaMap = WeakMap && new WeakMap(); - var realNames = {}; - var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap); - var symbolProto = Symbol2 ? Symbol2.prototype : undefined2, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined2, symbolToString = symbolProto ? symbolProto.toString : undefined2; - 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); - } - var baseCreate = function() { - function object() { - } - return function(proto) { - if (!isObject(proto)) { - return {}; - } - if (objectCreate) { - return objectCreate(proto); - } - object.prototype = proto; - var result2 = new object(); - object.prototype = undefined2; - return result2; - }; - }(); - function baseLodash() { - } - function LodashWrapper(value, chainAll) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__chain__ = !!chainAll; - this.__index__ = 0; - this.__values__ = undefined2; - } - lodash.templateSettings = { - "escape": reEscape, - "evaluate": reEvaluate, - "interpolate": reInterpolate, - "variable": "", - "imports": { - "_": lodash - } - }; - lodash.prototype = baseLodash.prototype; - lodash.prototype.constructor = lodash; - LodashWrapper.prototype = baseCreate(baseLodash.prototype); - LodashWrapper.prototype.constructor = LodashWrapper; - function LazyWrapper(value) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__dir__ = 1; - this.__filtered__ = false; - this.__iteratees__ = []; - this.__takeCount__ = MAX_ARRAY_LENGTH; - this.__views__ = []; - } - function lazyClone() { - var result2 = new LazyWrapper(this.__wrapped__); - result2.__actions__ = copyArray(this.__actions__); - result2.__dir__ = this.__dir__; - result2.__filtered__ = this.__filtered__; - result2.__iteratees__ = copyArray(this.__iteratees__); - result2.__takeCount__ = this.__takeCount__; - result2.__views__ = copyArray(this.__views__); - return result2; - } - function lazyReverse() { - if (this.__filtered__) { - var result2 = new LazyWrapper(this); - result2.__dir__ = -1; - result2.__filtered__ = true; - } else { - result2 = this.clone(); - result2.__dir__ *= -1; - } - return result2; - } - 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 result2 = []; - outer: - while (length-- && resIndex < takeCount) { - index += dir; - var iterIndex = -1, value = array[index]; - while (++iterIndex < iterLength) { - var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value); - if (type == LAZY_MAP_FLAG) { - value = computed; - } else if (!computed) { - if (type == LAZY_FILTER_FLAG) { - continue outer; - } else { - break outer; - } - } - } - result2[resIndex++] = value; - } - return result2; - } - LazyWrapper.prototype = baseCreate(baseLodash.prototype); - LazyWrapper.prototype.constructor = LazyWrapper; - 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]); - } - } - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } - function hashDelete(key) { - var result2 = this.has(key) && delete this.__data__[key]; - this.size -= result2 ? 1 : 0; - return result2; - } - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result2 = data[key]; - return result2 === HASH_UNDEFINED ? undefined2 : result2; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined2; - } - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined2 : hasOwnProperty.call(data, key); - } - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = nativeCreate && value === undefined2 ? HASH_UNDEFINED : value; - return this; - } - Hash.prototype.clear = hashClear; - Hash.prototype["delete"] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; - 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]); - } - } - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - 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; - } - function listCacheGet(key) { - var data = this.__data__, index = assocIndexOf(data, key); - return index < 0 ? undefined2 : data[index][1]; - } - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } - 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; - } - ListCache.prototype.clear = listCacheClear; - ListCache.prototype["delete"] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; - 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]); - } - } - function mapCacheClear() { - this.size = 0; - this.__data__ = { - "hash": new Hash(), - "map": new (Map2 || ListCache)(), - "string": new Hash() - }; - } - function mapCacheDelete(key) { - var result2 = getMapData(this, key)["delete"](key); - this.size -= result2 ? 1 : 0; - return result2; - } - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } - function mapCacheSet(key, value) { - var data = getMapData(this, key), size2 = data.size; - data.set(key, value); - this.size += data.size == size2 ? 0 : 1; - return this; - } - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype["delete"] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; - function SetCache(values2) { - var index = -1, length = values2 == null ? 0 : values2.length; - this.__data__ = new MapCache(); - while (++index < length) { - this.add(values2[index]); - } - } - function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; - } - function setCacheHas(value) { - return this.__data__.has(value); - } - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; - SetCache.prototype.has = setCacheHas; - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } - function stackClear() { - this.__data__ = new ListCache(); - this.size = 0; - } - function stackDelete(key) { - var data = this.__data__, result2 = data["delete"](key); - this.size = data.size; - return result2; - } - function stackGet(key) { - return this.__data__.get(key); - } - function stackHas(key) { - return this.__data__.has(key); - } - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map2 || 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; - } - Stack.prototype.clear = stackClear; - Stack.prototype["delete"] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; - 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, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length = result2.length; - for (var key in value) { - if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) { - result2.push(key); - } - } - return result2; - } - function arraySample(array) { - var length = array.length; - return length ? array[baseRandom(0, length - 1)] : undefined2; - } - function arraySampleSize(array, n) { - return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); - } - function arrayShuffle(array) { - return shuffleSelf(copyArray(array)); - } - function assignMergeValue(object, key, value) { - if (value !== undefined2 && !eq(object[key], value) || value === undefined2 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined2 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; - } - function baseAggregator(collection, setter, iteratee2, accumulator) { - baseEach(collection, function(value, key, collection2) { - setter(accumulator, value, iteratee2(value), collection2); - }); - return accumulator; - } - function baseAssign(object, source) { - return object && copyObject(source, keys(source), object); - } - function baseAssignIn(object, source) { - return object && copyObject(source, keysIn(source), object); - } - function baseAssignValue(object, key, value) { - if (key == "__proto__" && defineProperty) { - defineProperty(object, key, { - "configurable": true, - "enumerable": true, - "value": value, - "writable": true - }); - } else { - object[key] = value; - } - } - function baseAt(object, paths) { - var index = -1, length = paths.length, result2 = Array2(length), skip = object == null; - while (++index < length) { - result2[index] = skip ? undefined2 : get(object, paths[index]); - } - return result2; - } - function baseClamp(number, lower, upper) { - if (number === number) { - if (upper !== undefined2) { - number = number <= upper ? number : upper; - } - if (lower !== undefined2) { - number = number >= lower ? number : lower; - } - } - return number; - } - function baseClone(value, bitmask, customizer, key, object, stack) { - var result2, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; - if (customizer) { - result2 = object ? customizer(value, key, object, stack) : customizer(value); - } - if (result2 !== undefined2) { - return result2; - } - if (!isObject(value)) { - return value; - } - var isArr = isArray(value); - if (isArr) { - result2 = initCloneArray(value); - if (!isDeep) { - return copyArray(value, result2); - } - } else { - var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; - if (isBuffer(value)) { - return cloneBuffer(value, isDeep); - } - if (tag == objectTag || tag == argsTag || isFunc && !object) { - result2 = isFlat || isFunc ? {} : initCloneObject(value); - if (!isDeep) { - return isFlat ? copySymbolsIn(value, baseAssignIn(result2, value)) : copySymbols(value, baseAssign(result2, value)); - } - } else { - if (!cloneableTags[tag]) { - return object ? value : {}; - } - result2 = initCloneByTag(value, tag, isDeep); - } - } - stack || (stack = new Stack()); - var stacked = stack.get(value); - if (stacked) { - return stacked; - } - stack.set(value, result2); - if (isSet(value)) { - value.forEach(function(subValue) { - result2.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); - }); - } else if (isMap(value)) { - value.forEach(function(subValue, key2) { - result2.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); - }); - } - var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys; - var props = isArr ? undefined2 : keysFunc(value); - arrayEach(props || value, function(subValue, key2) { - if (props) { - key2 = subValue; - subValue = value[key2]; - } - assignValue(result2, key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); - }); - return result2; - } - function baseConforms(source) { - var props = keys(source); - return function(object) { - return baseConformsTo(object, source, props); - }; - } - function baseConformsTo(object, source, props) { - var length = props.length; - if (object == null) { - return !length; - } - object = Object2(object); - while (length--) { - var key = props[length], predicate = source[key], value = object[key]; - if (value === undefined2 && !(key in object) || !predicate(value)) { - return false; - } - } - return true; - } - function baseDelay(func, wait, args) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return setTimeout2(function() { - func.apply(undefined2, args); - }, wait); - } - function baseDifference(array, values2, iteratee2, comparator) { - var index = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length; - if (!length) { - return result2; - } - if (iteratee2) { - values2 = arrayMap(values2, baseUnary(iteratee2)); - } - if (comparator) { - includes2 = arrayIncludesWith; - isCommon = false; - } else if (values2.length >= LARGE_ARRAY_SIZE) { - includes2 = cacheHas; - isCommon = false; - values2 = new SetCache(values2); - } - outer: - while (++index < length) { - var value = array[index], computed = iteratee2 == null ? value : iteratee2(value); - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var valuesIndex = valuesLength; - while (valuesIndex--) { - if (values2[valuesIndex] === computed) { - continue outer; - } - } - result2.push(value); - } else if (!includes2(values2, computed, comparator)) { - result2.push(value); - } - } - return result2; - } - var baseEach = createBaseEach(baseForOwn); - var baseEachRight = createBaseEach(baseForOwnRight, true); - function baseEvery(collection, predicate) { - var result2 = true; - baseEach(collection, function(value, index, collection2) { - result2 = !!predicate(value, index, collection2); - return result2; - }); - return result2; - } - function baseExtremum(array, iteratee2, comparator) { - var index = -1, length = array.length; - while (++index < length) { - var value = array[index], current = iteratee2(value); - if (current != null && (computed === undefined2 ? current === current && !isSymbol(current) : comparator(current, computed))) { - var computed = current, result2 = value; - } - } - return result2; - } - function baseFill(array, value, start, end) { - var length = array.length; - start = toInteger(start); - if (start < 0) { - start = -start > length ? 0 : length + start; - } - end = end === undefined2 || end > length ? length : toInteger(end); - if (end < 0) { - end += length; - } - end = start > end ? 0 : toLength(end); - while (start < end) { - array[start++] = value; - } - return array; - } - function baseFilter(collection, predicate) { - var result2 = []; - baseEach(collection, function(value, index, collection2) { - if (predicate(value, index, collection2)) { - result2.push(value); - } - }); - return result2; - } - function baseFlatten(array, depth, predicate, isStrict, result2) { - var index = -1, length = array.length; - predicate || (predicate = isFlattenable); - result2 || (result2 = []); - while (++index < length) { - var value = array[index]; - if (depth > 0 && predicate(value)) { - if (depth > 1) { - baseFlatten(value, depth - 1, predicate, isStrict, result2); - } else { - arrayPush(result2, value); - } - } else if (!isStrict) { - result2[result2.length] = value; - } - } - return result2; - } - var baseFor = createBaseFor(); - var baseForRight = createBaseFor(true); - function baseForOwn(object, iteratee2) { - return object && baseFor(object, iteratee2, keys); - } - function baseForOwnRight(object, iteratee2) { - return object && baseForRight(object, iteratee2, keys); - } - function baseFunctions(object, props) { - return arrayFilter(props, function(key) { - return isFunction(object[key]); - }); - } - 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 : undefined2; - } - function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result2 = keysFunc(object); - return isArray(object) ? result2 : arrayPush(result2, symbolsFunc(object)); - } - function baseGetTag(value) { - if (value == null) { - return value === undefined2 ? undefinedTag : nullTag; - } - return symToStringTag && symToStringTag in Object2(value) ? getRawTag(value) : objectToString(value); - } - function baseGt(value, other) { - return value > other; - } - function baseHas(object, key) { - return object != null && hasOwnProperty.call(object, key); - } - function baseHasIn(object, key) { - return object != null && key in Object2(object); - } - function baseInRange(number, start, end) { - return number >= nativeMin(start, end) && number < nativeMax(start, end); - } - function baseIntersection(arrays, iteratee2, comparator) { - var includes2 = comparator ? arrayIncludesWith : arrayIncludes, length = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array2(othLength), maxLength = Infinity, result2 = []; - while (othIndex--) { - var array = arrays[othIndex]; - if (othIndex && iteratee2) { - array = arrayMap(array, baseUnary(iteratee2)); - } - maxLength = nativeMin(array.length, maxLength); - caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined2; - } - array = arrays[0]; - var index = -1, seen = caches[0]; - outer: - while (++index < length && result2.length < maxLength) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - value = comparator || value !== 0 ? value : 0; - if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) { - othIndex = othLength; - while (--othIndex) { - var cache = caches[othIndex]; - if (!(cache ? cacheHas(cache, computed) : includes2(arrays[othIndex], computed, comparator))) { - continue outer; - } - } - if (seen) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseInverter(object, setter, iteratee2, accumulator) { - baseForOwn(object, function(value, key, object2) { - setter(accumulator, iteratee2(value), key, object2); - }); - return accumulator; - } - 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 ? undefined2 : apply(func, object, args); - } - function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; - } - function baseIsArrayBuffer(value) { - return isObjectLike(value) && baseGetTag(value) == arrayBufferTag; - } - function baseIsDate(value) { - return isObjectLike(value) && baseGetTag(value) == dateTag; - } - 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); - } - 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); - } - function baseIsMap(value) { - return isObjectLike(value) && getTag(value) == mapTag; - } - function baseIsMatch(object, source, matchData, customizer) { - var index = matchData.length, length = index, noCustomizer = !customizer; - if (object == null) { - return !length; - } - object = Object2(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 === undefined2 && !(key in object)) { - return false; - } - } else { - var stack = new Stack(); - if (customizer) { - var result2 = customizer(objValue, srcValue, key, object, source, stack); - } - if (!(result2 === undefined2 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) { - return false; - } - } - } - return true; - } - function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - function baseIsRegExp(value) { - return isObjectLike(value) && baseGetTag(value) == regexpTag; - } - function baseIsSet(value) { - return isObjectLike(value) && getTag(value) == setTag; - } - function baseIsTypedArray(value) { - return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; - } - function baseIteratee(value) { - 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); - } - function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result2 = []; - for (var key in Object2(object)) { - if (hasOwnProperty.call(object, key) && key != "constructor") { - result2.push(key); - } - } - return result2; - } - function baseKeysIn(object) { - if (!isObject(object)) { - return nativeKeysIn(object); - } - var isProto = isPrototype(object), result2 = []; - for (var key in object) { - if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) { - result2.push(key); - } - } - return result2; - } - function baseLt(value, other) { - return value < other; - } - function baseMap(collection, iteratee2) { - var index = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value, key, collection2) { - result2[++index] = iteratee2(value, key, collection2); - }); - return result2; - } - 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); - }; - } - function baseMatchesProperty(path, srcValue) { - if (isKey(path) && isStrictComparable(srcValue)) { - return matchesStrictComparable(toKey(path), srcValue); - } - return function(object) { - var objValue = get(object, path); - return objValue === undefined2 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); - }; - } - 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) : undefined2; - if (newValue === undefined2) { - newValue = srcValue; - } - assignMergeValue(object, key, newValue); - } - }, keysIn); - } - 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) : undefined2; - var isCommon = newValue === undefined2; - 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) { - stack.set(srcValue, newValue); - mergeFunc(newValue, srcValue, srcIndex, customizer, stack); - stack["delete"](srcValue); - } - assignMergeValue(object, key, newValue); - } - function baseNth(array, n) { - var length = array.length; - if (!length) { - return; - } - n += n < 0 ? length : 0; - return isIndex(n, length) ? array[n] : undefined2; - } - function baseOrderBy(collection, iteratees, orders) { - if (iteratees.length) { - iteratees = arrayMap(iteratees, function(iteratee2) { - if (isArray(iteratee2)) { - return function(value) { - return baseGet(value, iteratee2.length === 1 ? iteratee2[0] : iteratee2); - }; - } - return iteratee2; - }); - } else { - iteratees = [identity]; - } - var index = -1; - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - var result2 = baseMap(collection, function(value, key, collection2) { - var criteria = arrayMap(iteratees, function(iteratee2) { - return iteratee2(value); - }); - return {"criteria": criteria, "index": ++index, "value": value}; - }); - return baseSortBy(result2, function(object, other) { - return compareMultiple(object, other, orders); - }); - } - function basePick(object, paths) { - return basePickBy(object, paths, function(value, path) { - return hasIn(object, path); - }); - } - function basePickBy(object, paths, predicate) { - var index = -1, length = paths.length, result2 = {}; - while (++index < length) { - var path = paths[index], value = baseGet(object, path); - if (predicate(value, path)) { - baseSet(result2, castPath(path, object), value); - } - } - return result2; - } - function basePropertyDeep(path) { - return function(object) { - return baseGet(object, path); - }; - } - function basePullAll(array, values2, iteratee2, comparator) { - var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index = -1, length = values2.length, seen = array; - if (array === values2) { - values2 = copyArray(values2); - } - if (iteratee2) { - seen = arrayMap(array, baseUnary(iteratee2)); - } - while (++index < length) { - var fromIndex = 0, value = values2[index], computed = iteratee2 ? iteratee2(value) : value; - while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) { - if (seen !== array) { - splice.call(seen, fromIndex, 1); - } - splice.call(array, fromIndex, 1); - } - } - return 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; - } - function baseRandom(lower, upper) { - return lower + nativeFloor(nativeRandom() * (upper - lower + 1)); - } - function baseRange(start, end, step, fromRight) { - var index = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length); - while (length--) { - result2[fromRight ? length : ++index] = start; - start += step; - } - return result2; - } - function baseRepeat(string, n) { - var result2 = ""; - if (!string || n < 1 || n > MAX_SAFE_INTEGER) { - return result2; - } - do { - if (n % 2) { - result2 += string; - } - n = nativeFloor(n / 2); - if (n) { - string += string; - } - } while (n); - return result2; - } - function baseRest(func, start) { - return setToString(overRest(func, start, identity), func + ""); - } - function baseSample(collection) { - return arraySample(values(collection)); - } - function baseSampleSize(collection, n) { - var array = values(collection); - return shuffleSelf(array, baseClamp(n, 0, array.length)); - } - 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) : undefined2; - if (newValue === undefined2) { - newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {}; - } - } - assignValue(nested, key, newValue); - nested = nested[key]; - } - return object; - } - var baseSetData = !metaMap ? identity : function(func, data) { - metaMap.set(func, data); - return func; - }; - var baseSetToString = !defineProperty ? identity : function(func, string) { - return defineProperty(func, "toString", { - "configurable": true, - "enumerable": false, - "value": constant(string), - "writable": true - }); - }; - function baseShuffle(collection) { - return shuffleSelf(values(collection)); - } - 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 result2 = Array2(length); - while (++index < length) { - result2[index] = array[index + start]; - } - return result2; - } - function baseSome(collection, predicate) { - var result2; - baseEach(collection, function(value, index, collection2) { - result2 = predicate(value, index, collection2); - return !result2; - }); - return !!result2; - } - 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); - } - function baseSortedIndexBy(array, value, iteratee2, retHighest) { - var low = 0, high = array == null ? 0 : array.length; - if (high === 0) { - return 0; - } - value = iteratee2(value); - var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined2; - while (low < high) { - var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !== undefined2, 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); - } - function baseSortedUniq(array, iteratee2) { - var index = -1, length = array.length, resIndex = 0, result2 = []; - while (++index < length) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - if (!index || !eq(computed, seen)) { - var seen = computed; - result2[resIndex++] = value === 0 ? 0 : value; - } - } - return result2; - } - function baseToNumber(value) { - if (typeof value == "number") { - return value; - } - if (isSymbol(value)) { - return NAN; - } - return +value; - } - function baseToString(value) { - if (typeof value == "string") { - return value; - } - if (isArray(value)) { - return arrayMap(value, baseToString) + ""; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ""; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2; - } - function baseUniq(array, iteratee2, comparator) { - var index = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2; - if (comparator) { - isCommon = false; - includes2 = arrayIncludesWith; - } else if (length >= LARGE_ARRAY_SIZE) { - var set2 = iteratee2 ? null : createSet(array); - if (set2) { - return setToArray(set2); - } - isCommon = false; - includes2 = cacheHas; - seen = new SetCache(); - } else { - seen = iteratee2 ? [] : result2; - } - outer: - while (++index < length) { - var value = array[index], computed = iteratee2 ? iteratee2(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 (iteratee2) { - seen.push(computed); - } - result2.push(value); - } else if (!includes2(seen, computed, comparator)) { - if (seen !== result2) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseUnset(object, path) { - path = castPath(path, object); - object = parent(object, path); - return object == null || delete object[toKey(last(path))]; - } - function baseUpdate(object, path, updater, customizer) { - return baseSet(object, path, updater(baseGet(object, path)), customizer); - } - 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); - } - function baseWrapperValue(value, actions) { - var result2 = value; - if (result2 instanceof LazyWrapper) { - result2 = result2.value(); - } - return arrayReduce(actions, function(result3, action) { - return action.func.apply(action.thisArg, arrayPush([result3], action.args)); - }, result2); - } - function baseXor(arrays, iteratee2, comparator) { - var length = arrays.length; - if (length < 2) { - return length ? baseUniq(arrays[0]) : []; - } - var index = -1, result2 = Array2(length); - while (++index < length) { - var array = arrays[index], othIndex = -1; - while (++othIndex < length) { - if (othIndex != index) { - result2[index] = baseDifference(result2[index] || array, arrays[othIndex], iteratee2, comparator); - } - } - } - return baseUniq(baseFlatten(result2, 1), iteratee2, comparator); - } - function baseZipObject(props, values2, assignFunc) { - var index = -1, length = props.length, valsLength = values2.length, result2 = {}; - while (++index < length) { - var value = index < valsLength ? values2[index] : undefined2; - assignFunc(result2, props[index], value); - } - return result2; - } - function castArrayLikeObject(value) { - return isArrayLikeObject(value) ? value : []; - } - function castFunction(value) { - return typeof value == "function" ? value : identity; - } - function castPath(value, object) { - if (isArray(value)) { - return value; - } - return isKey(value, object) ? [value] : stringToPath(toString(value)); - } - var castRest = baseRest; - function castSlice(array, start, end) { - var length = array.length; - end = end === undefined2 ? length : end; - return !start && end >= length ? array : baseSlice(array, start, end); - } - var clearTimeout2 = ctxClearTimeout || function(id) { - return root.clearTimeout(id); - }; - function cloneBuffer(buffer, isDeep) { - if (isDeep) { - return buffer.slice(); - } - var length = buffer.length, result2 = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); - buffer.copy(result2); - return result2; - } - function cloneArrayBuffer(arrayBuffer) { - var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer)); - return result2; - } - function cloneDataView(dataView, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; - return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); - } - function cloneRegExp(regexp) { - var result2 = new regexp.constructor(regexp.source, reFlags.exec(regexp)); - result2.lastIndex = regexp.lastIndex; - return result2; - } - function cloneSymbol(symbol) { - return symbolValueOf ? Object2(symbolValueOf.call(symbol)) : {}; - } - function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); - } - function compareAscending(value, other) { - if (value !== other) { - var valIsDefined = value !== undefined2, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value); - var othIsDefined = other !== undefined2, 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; - } - function compareMultiple(object, other, orders) { - var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length; - while (++index < length) { - var result2 = compareAscending(objCriteria[index], othCriteria[index]); - if (result2) { - if (index >= ordersLength) { - return result2; - } - var order = orders[index]; - return result2 * (order == "desc" ? -1 : 1); - } - } - return object.index - other.index; - } - 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), result2 = Array2(leftLength + rangeLength), isUncurried = !isCurried; - while (++leftIndex < leftLength) { - result2[leftIndex] = partials[leftIndex]; - } - while (++argsIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[holders[argsIndex]] = args[argsIndex]; - } - } - while (rangeLength--) { - result2[leftIndex++] = args[argsIndex++]; - } - return result2; - } - 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), result2 = Array2(rangeLength + rightLength), isUncurried = !isCurried; - while (++argsIndex < rangeLength) { - result2[argsIndex] = args[argsIndex]; - } - var offset = argsIndex; - while (++rightIndex < rightLength) { - result2[offset + rightIndex] = partials[rightIndex]; - } - while (++holdersIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[offset + holders[holdersIndex]] = args[argsIndex++]; - } - } - return result2; - } - function copyArray(source, array) { - var index = -1, length = source.length; - array || (array = Array2(length)); - while (++index < length) { - array[index] = source[index]; - } - return array; - } - 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) : undefined2; - if (newValue === undefined2) { - newValue = source[key]; - } - if (isNew) { - baseAssignValue(object, key, newValue); - } else { - assignValue(object, key, newValue); - } - } - return object; - } - function copySymbols(source, object) { - return copyObject(source, getSymbols(source), object); - } - function copySymbolsIn(source, object) { - return copyObject(source, getSymbolsIn(source), object); - } - function createAggregator(setter, initializer) { - return function(collection, iteratee2) { - var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {}; - return func(collection, setter, getIteratee(iteratee2, 2), accumulator); - }; - } - function createAssigner(assigner) { - return baseRest(function(object, sources) { - var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined2, guard = length > 2 ? sources[2] : undefined2; - customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined2; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - customizer = length < 3 ? undefined2 : customizer; - length = 1; - } - object = Object2(object); - while (++index < length) { - var source = sources[index]; - if (source) { - assigner(object, source, index, customizer); - } - } - return object; - }); - } - function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee2) { - if (collection == null) { - return collection; - } - if (!isArrayLike(collection)) { - return eachFunc(collection, iteratee2); - } - var length = collection.length, index = fromRight ? length : -1, iterable = Object2(collection); - while (fromRight ? index-- : ++index < length) { - if (iteratee2(iterable[index], index, iterable) === false) { - break; - } - } - return collection; - }; - } - function createBaseFor(fromRight) { - return function(object, iteratee2, keysFunc) { - var index = -1, iterable = Object2(object), props = keysFunc(object), length = props.length; - while (length--) { - var key = props[fromRight ? length : ++index]; - if (iteratee2(iterable[key], key, iterable) === false) { - break; - } - } - return object; - }; - } - 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; - } - function createCaseFirst(methodName) { - return function(string) { - string = toString(string); - var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined2; - var chr = strSymbols ? strSymbols[0] : string.charAt(0); - var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1); - return chr[methodName]() + trailing; - }; - } - function createCompounder(callback) { - return function(string) { - return arrayReduce(words(deburr(string).replace(reApos, "")), callback, ""); - }; - } - function createCtor(Ctor) { - return function() { - 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), result2 = Ctor.apply(thisBinding, args); - return isObject(result2) ? result2 : thisBinding; - }; - } - function createCurry(func, bitmask, arity) { - var Ctor = createCtor(func); - function wrapper() { - var length = arguments.length, args = Array2(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, undefined2, args, holders, undefined2, undefined2, arity - length); - } - var fn = this && this !== root && this instanceof wrapper ? Ctor : func; - return apply(fn, this, args); - } - return wrapper; - } - function createFind(findIndexFunc) { - return function(collection, predicate, fromIndex) { - var iterable = Object2(collection); - if (!isArrayLike(collection)) { - var iteratee2 = getIteratee(predicate, 3); - collection = keys(collection); - predicate = function(key) { - return iteratee2(iterable[key], key, iterable); - }; - } - var index = findIndexFunc(collection, predicate, fromIndex); - return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined2; - }; - } - 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 TypeError2(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) : undefined2; - 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 index2 = 0, result2 = length ? funcs[index2].apply(this, args) : value; - while (++index2 < length) { - result2 = funcs[index2].call(this, result2); - } - return result2; - }; - }); - } - function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, 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 ? undefined2 : createCtor(func); - function wrapper() { - var length = arguments.length, args = Array2(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, ary2, 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 && ary2 < length) { - args.length = ary2; - } - if (this && this !== root && this instanceof wrapper) { - fn = Ctor || createCtor(fn); - } - return fn.apply(thisBinding, args); - } - return wrapper; - } - function createInverter(setter, toIteratee) { - return function(object, iteratee2) { - return baseInverter(object, setter, toIteratee(iteratee2), {}); - }; - } - function createMathOperation(operator, defaultValue) { - return function(value, other) { - var result2; - if (value === undefined2 && other === undefined2) { - return defaultValue; - } - if (value !== undefined2) { - result2 = value; - } - if (other !== undefined2) { - if (result2 === undefined2) { - return other; - } - if (typeof value == "string" || typeof other == "string") { - value = baseToString(value); - other = baseToString(other); - } else { - value = baseToNumber(value); - other = baseToNumber(other); - } - result2 = operator(value, other); - } - return result2; - }; - } - function createOver(arrayFunc) { - return flatRest(function(iteratees) { - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - return baseRest(function(args) { - var thisArg = this; - return arrayFunc(iteratees, function(iteratee2) { - return apply(iteratee2, thisArg, args); - }); - }); - }); - } - function createPadding(length, chars) { - chars = chars === undefined2 ? " " : baseToString(chars); - var charsLength = chars.length; - if (charsLength < 2) { - return charsLength ? baseRepeat(chars, length) : chars; - } - var result2 = baseRepeat(chars, nativeCeil(length / stringSize(chars))); - return hasUnicode(chars) ? castSlice(stringToArray(result2), 0, length).join("") : result2.slice(0, length); - } - 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 = Array2(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; - } - function createRange(fromRight) { - return function(start, end, step) { - if (step && typeof step != "number" && isIterateeCall(start, end, step)) { - end = step = undefined2; - } - start = toFinite(start); - if (end === undefined2) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - step = step === undefined2 ? start < end ? 1 : -1 : toFinite(step); - return baseRange(start, end, step, fromRight); - }; - } - function createRelationalOperation(operator) { - return function(value, other) { - if (!(typeof value == "string" && typeof other == "string")) { - value = toNumber(value); - other = toNumber(other); - } - return operator(value, other); - }; - } - function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary2, arity) { - var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined2, newHoldersRight = isCurry ? undefined2 : holders, newPartials = isCurry ? partials : undefined2, newPartialsRight = isCurry ? undefined2 : 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, - ary2, - arity - ]; - var result2 = wrapFunc.apply(undefined2, newData); - if (isLaziable(func)) { - setData(result2, newData); - } - result2.placeholder = placeholder; - return setWrapToString(result2, func, bitmask); - } - function createRound(methodName) { - var func = Math2[methodName]; - return function(number, precision) { - number = toNumber(number); - precision = precision == null ? 0 : nativeMin(toInteger(precision), 292); - if (precision && nativeIsFinite(number)) { - 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); - }; - } - var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values2) { - return new Set2(values2); - }; - 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)); - }; - } - function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary2, arity) { - var isBindKey = bitmask & WRAP_BIND_KEY_FLAG; - if (!isBindKey && typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - var length = partials ? partials.length : 0; - if (!length) { - bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG); - partials = holders = undefined2; - } - ary2 = ary2 === undefined2 ? ary2 : nativeMax(toInteger(ary2), 0); - arity = arity === undefined2 ? arity : toInteger(arity); - length -= holders ? holders.length : 0; - if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) { - var partialsRight = partials, holdersRight = holders; - partials = holders = undefined2; - } - var data = isBindKey ? undefined2 : getData(func); - var newData = [ - func, - bitmask, - thisArg, - partials, - holders, - partialsRight, - holdersRight, - argPos, - ary2, - 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] === undefined2 ? 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 result2 = createBind(func, bitmask, thisArg); - } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) { - result2 = createCurry(func, bitmask, arity); - } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) { - result2 = createPartial(func, bitmask, thisArg, partials); - } else { - result2 = createHybrid.apply(undefined2, newData); - } - var setter = data ? baseSetData : setData; - return setWrapToString(setter(result2, newData), func, bitmask); - } - function customDefaultsAssignIn(objValue, srcValue, key, object) { - if (objValue === undefined2 || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key)) { - return srcValue; - } - return objValue; - } - function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { - if (isObject(objValue) && isObject(srcValue)) { - stack.set(srcValue, objValue); - baseMerge(objValue, srcValue, undefined2, customDefaultsMerge, stack); - stack["delete"](srcValue); - } - return objValue; - } - function customOmitClone(value) { - return isPlainObject(value) ? undefined2 : value; - } - 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; - } - var arrStacked = stack.get(array); - var othStacked = stack.get(other); - if (arrStacked && othStacked) { - return arrStacked == other && othStacked == array; - } - var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined2; - stack.set(array, other); - stack.set(other, array); - 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 !== undefined2) { - if (compared) { - continue; - } - result2 = false; - break; - } - if (seen) { - if (!arraySome(other, function(othValue2, othIndex) { - if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) { - return seen.push(othIndex); - } - })) { - result2 = false; - break; - } - } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - result2 = false; - break; - } - } - stack["delete"](array); - stack["delete"](other); - return result2; - } - 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 Uint8Array2(object), new Uint8Array2(other))) { - return false; - } - return true; - case boolTag: - case dateTag: - case numberTag: - return eq(+object, +other); - case errorTag: - return object.name == other.name && object.message == other.message; - case regexpTag: - case stringTag: - 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; - } - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= COMPARE_UNORDERED_FLAG; - stack.set(object, other); - var result2 = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); - stack["delete"](object); - return result2; - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return 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; - } - } - var objStacked = stack.get(object); - var othStacked = stack.get(other); - if (objStacked && othStacked) { - return objStacked == other && othStacked == object; - } - var result2 = 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); - } - if (!(compared === undefined2 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { - result2 = false; - break; - } - skipCtor || (skipCtor = key == "constructor"); - } - if (result2 && !skipCtor) { - var objCtor = object.constructor, othCtor = other.constructor; - if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) { - result2 = false; - } - } - stack["delete"](object); - stack["delete"](other); - return result2; - } - function flatRest(func) { - return setToString(overRest(func, undefined2, flatten), func + ""); - } - function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); - } - function getAllKeysIn(object) { - return baseGetAllKeys(object, keysIn, getSymbolsIn); - } - var getData = !metaMap ? noop : function(func) { - return metaMap.get(func); - }; - function getFuncName(func) { - var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty.call(realNames, result2) ? array.length : 0; - while (length--) { - var data = array[length], otherFunc = data.func; - if (otherFunc == null || otherFunc == func) { - return data.name; - } - } - return result2; - } - function getHolder(func) { - var object = hasOwnProperty.call(lodash, "placeholder") ? lodash : func; - return object.placeholder; - } - function getIteratee() { - var result2 = lodash.iteratee || iteratee; - result2 = result2 === iteratee ? baseIteratee : result2; - return arguments.length ? result2(arguments[0], arguments[1]) : result2; - } - function getMapData(map2, key) { - var data = map2.__data__; - return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; - } - function getMatchData(object) { - var result2 = keys(object), length = result2.length; - while (length--) { - var key = result2[length], value = object[key]; - result2[length] = [key, value, isStrictComparable(value)]; - } - return result2; - } - function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined2; - } - function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; - try { - value[symToStringTag] = undefined2; - var unmasked = true; - } catch (e) { - } - var result2 = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - return result2; - } - var getSymbols = !nativeGetSymbols ? stubArray : function(object) { - if (object == null) { - return []; - } - object = Object2(object); - return arrayFilter(nativeGetSymbols(object), function(symbol) { - return propertyIsEnumerable.call(object, symbol); - }); - }; - var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { - var result2 = []; - while (object) { - arrayPush(result2, getSymbols(object)); - object = getPrototype(object); - } - return result2; - }; - var getTag = baseGetTag; - if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) { - getTag = function(value) { - var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined2, 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 result2; - }; - } - function getView(start, end, transforms) { - var index = -1, length = transforms.length; - while (++index < length) { - var data = transforms[index], size2 = data.size; - switch (data.type) { - case "drop": - start += size2; - break; - case "dropRight": - end -= size2; - break; - case "take": - end = nativeMin(end, start + size2); - break; - case "takeRight": - start = nativeMax(start, end - size2); - break; - } - } - return {"start": start, "end": end}; - } - function getWrapDetails(source) { - var match = source.match(reWrapDetails); - return match ? match[1].split(reSplitDetails) : []; - } - function hasPath(object, path, hasFunc) { - path = castPath(path, object); - var index = -1, length = path.length, result2 = false; - while (++index < length) { - var key = toKey(path[index]); - if (!(result2 = object != null && hasFunc(object, key))) { - break; - } - object = object[key]; - } - if (result2 || ++index != length) { - return result2; - } - length = object == null ? 0 : object.length; - return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); - } - function initCloneArray(array) { - var length = array.length, result2 = new array.constructor(length); - if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) { - result2.index = array.index; - result2.input = array.input; - } - return result2; - } - function initCloneObject(object) { - return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {}; - } - 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); - } - } - 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"); - } - function isFlattenable(value) { - return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); - } - 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); - } - 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; - } - 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 Object2(object); - } - function isKeyable(value) { - var type = typeof value; - return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; - } - 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]; - } - function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; - } - var isMaskable = coreJsData ? isFunction : stubFalse; - function isPrototype(value) { - var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; - return value === proto; - } - function isStrictComparable(value) { - return value === value && !isObject(value); - } - function matchesStrictComparable(key, srcValue) { - return function(object) { - if (object == null) { - return false; - } - return object[key] === srcValue && (srcValue !== undefined2 || key in Object2(object)); - }; - } - function memoizeCapped(func) { - var result2 = memoize(func, function(key) { - if (cache.size === MAX_MEMOIZE_SIZE) { - cache.clear(); - } - return key; - }); - var cache = result2.cache; - return result2; - } - 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; - if (!(isCommon || isCombo)) { - return data; - } - if (srcBitmask & WRAP_BIND_FLAG) { - data[2] = source[2]; - newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG; - } - 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]; - } - 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]; - } - value = source[7]; - if (value) { - data[7] = value; - } - if (srcBitmask & WRAP_ARY_FLAG) { - data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); - } - if (data[9] == null) { - data[9] = source[9]; - } - data[0] = source[0]; - data[1] = newBitmask; - return data; - } - function nativeKeysIn(object) { - var result2 = []; - if (object != null) { - for (var key in Object2(object)) { - result2.push(key); - } - } - return result2; - } - function objectToString(value) { - return nativeObjectToString.call(value); - } - function overRest(func, start, transform2) { - start = nativeMax(start === undefined2 ? func.length - 1 : start, 0); - return function() { - var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array2(length); - while (++index < length) { - array[index] = args[start + index]; - } - index = -1; - var otherArgs = Array2(start + 1); - while (++index < start) { - otherArgs[index] = args[index]; - } - otherArgs[start] = transform2(array); - return apply(func, this, otherArgs); - }; - } - function parent(object, path) { - return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1)); - } - 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] : undefined2; - } - return array; - } - function safeGet(object, key) { - if (key === "constructor" && typeof object[key] === "function") { - return; - } - if (key == "__proto__") { - return; - } - return object[key]; - } - var setData = shortOut(baseSetData); - var setTimeout2 = ctxSetTimeout || function(func, wait) { - return root.setTimeout(func, wait); - }; - var setToString = shortOut(baseSetToString); - function setWrapToString(wrapper, reference, bitmask) { - var source = reference + ""; - return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); - } - 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(undefined2, arguments); - }; - } - function shuffleSelf(array, size2) { - var index = -1, length = array.length, lastIndex = length - 1; - size2 = size2 === undefined2 ? length : size2; - while (++index < size2) { - var rand = baseRandom(index, lastIndex), value = array[rand]; - array[rand] = array[index]; - array[index] = value; - } - array.length = size2; - return array; - } - var stringToPath = memoizeCapped(function(string) { - var result2 = []; - if (string.charCodeAt(0) === 46) { - result2.push(""); - } - string.replace(rePropName, function(match, number, quote, subString) { - result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match); - }); - return result2; - }); - function toKey(value) { - if (typeof value == "string" || isSymbol(value)) { - return value; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2; - } - function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) { - } - try { - return func + ""; - } catch (e) { - } - } - return ""; - } - 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(); - } - function wrapperClone(wrapper) { - if (wrapper instanceof LazyWrapper) { - return wrapper.clone(); - } - var result2 = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__); - result2.__actions__ = copyArray(wrapper.__actions__); - result2.__index__ = wrapper.__index__; - result2.__values__ = wrapper.__values__; - return result2; - } - function chunk(array, size2, guard) { - if (guard ? isIterateeCall(array, size2, guard) : size2 === undefined2) { - size2 = 1; - } else { - size2 = nativeMax(toInteger(size2), 0); - } - var length = array == null ? 0 : array.length; - if (!length || size2 < 1) { - return []; - } - var index = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2)); - while (index < length) { - result2[resIndex++] = baseSlice(array, index, index += size2); - } - return result2; - } - function compact(array) { - var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = []; - while (++index < length) { - var value = array[index]; - if (value) { - result2[resIndex++] = value; - } - } - return result2; - } - function concat() { - var length = arguments.length; - if (!length) { - return []; - } - var args = Array2(length - 1), array = arguments[0], index = length; - while (index--) { - args[index - 1] = arguments[index]; - } - return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)); - } - var difference = baseRest(function(array, values2) { - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true)) : []; - }); - var differenceBy = baseRest(function(array, values2) { - var iteratee2 = last(values2); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)) : []; - }); - var differenceWith = baseRest(function(array, values2) { - var comparator = last(values2); - if (isArrayLikeObject(comparator)) { - comparator = undefined2; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), undefined2, comparator) : []; - }); - function drop(array, n, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n = guard || n === undefined2 ? 1 : toInteger(n); - return baseSlice(array, n < 0 ? 0 : n, length); - } - function dropRight(array, n, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n = guard || n === undefined2 ? 1 : toInteger(n); - n = length - n; - return baseSlice(array, 0, n < 0 ? 0 : n); - } - function dropRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true, true) : []; - } - function dropWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true) : []; - } - 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); - } - 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); - } - function findLastIndex(array, predicate, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index = length - 1; - if (fromIndex !== undefined2) { - index = toInteger(fromIndex); - index = fromIndex < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1); - } - return baseFindIndex(array, getIteratee(predicate, 3), index, true); - } - function flatten(array) { - var length = array == null ? 0 : array.length; - return length ? baseFlatten(array, 1) : []; - } - function flattenDeep(array) { - var length = array == null ? 0 : array.length; - return length ? baseFlatten(array, INFINITY) : []; - } - function flattenDepth(array, depth) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - depth = depth === undefined2 ? 1 : toInteger(depth); - return baseFlatten(array, depth); - } - function fromPairs(pairs) { - var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {}; - while (++index < length) { - var pair = pairs[index]; - result2[pair[0]] = pair[1]; - } - return result2; - } - function head(array) { - return array && array.length ? array[0] : undefined2; - } - 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); - } - function initial(array) { - var length = array == null ? 0 : array.length; - return length ? baseSlice(array, 0, -1) : []; - } - var intersection = baseRest(function(arrays) { - var mapped = arrayMap(arrays, castArrayLikeObject); - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped) : []; - }); - var intersectionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - if (iteratee2 === last(mapped)) { - iteratee2 = undefined2; - } else { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, getIteratee(iteratee2, 2)) : []; - }); - var intersectionWith = baseRest(function(arrays) { - var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - comparator = typeof comparator == "function" ? comparator : undefined2; - if (comparator) { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined2, comparator) : []; - }); - function join(array, separator) { - return array == null ? "" : nativeJoin.call(array, separator); - } - function last(array) { - var length = array == null ? 0 : array.length; - return length ? array[length - 1] : undefined2; - } - function lastIndexOf(array, value, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index = length; - if (fromIndex !== undefined2) { - 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); - } - function nth(array, n) { - return array && array.length ? baseNth(array, toInteger(n)) : undefined2; - } - var pull = baseRest(pullAll); - function pullAll(array, values2) { - return array && array.length && values2 && values2.length ? basePullAll(array, values2) : array; - } - function pullAllBy(array, values2, iteratee2) { - return array && array.length && values2 && values2.length ? basePullAll(array, values2, getIteratee(iteratee2, 2)) : array; - } - function pullAllWith(array, values2, comparator) { - return array && array.length && values2 && values2.length ? basePullAll(array, values2, undefined2, comparator) : array; - } - var pullAt = flatRest(function(array, indexes) { - var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes); - basePullAt(array, arrayMap(indexes, function(index) { - return isIndex(index, length) ? +index : index; - }).sort(compareAscending)); - return result2; - }); - function remove(array, predicate) { - var result2 = []; - if (!(array && array.length)) { - return result2; - } - var index = -1, indexes = [], length = array.length; - predicate = getIteratee(predicate, 3); - while (++index < length) { - var value = array[index]; - if (predicate(value, index, array)) { - result2.push(value); - indexes.push(index); - } - } - basePullAt(array, indexes); - return result2; - } - function reverse(array) { - return array == null ? array : nativeReverse.call(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 === undefined2 ? length : toInteger(end); - } - return baseSlice(array, start, end); - } - function sortedIndex(array, value) { - return baseSortedIndex(array, value); - } - function sortedIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2)); - } - 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; - } - function sortedLastIndex(array, value) { - return baseSortedIndex(array, value, true); - } - function sortedLastIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2), true); - } - 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; - } - function sortedUniq(array) { - return array && array.length ? baseSortedUniq(array) : []; - } - function sortedUniqBy(array, iteratee2) { - return array && array.length ? baseSortedUniq(array, getIteratee(iteratee2, 2)) : []; - } - function tail(array) { - var length = array == null ? 0 : array.length; - return length ? baseSlice(array, 1, length) : []; - } - function take(array, n, guard) { - if (!(array && array.length)) { - return []; - } - n = guard || n === undefined2 ? 1 : toInteger(n); - return baseSlice(array, 0, n < 0 ? 0 : n); - } - function takeRight(array, n, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n = guard || n === undefined2 ? 1 : toInteger(n); - n = length - n; - return baseSlice(array, n < 0 ? 0 : n, length); - } - function takeRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), false, true) : []; - } - function takeWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3)) : []; - } - var union = baseRest(function(arrays) { - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true)); - }); - var unionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)); - }); - var unionWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined2; - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined2, comparator); - }); - function uniq(array) { - return array && array.length ? baseUniq(array) : []; - } - function uniqBy(array, iteratee2) { - return array && array.length ? baseUniq(array, getIteratee(iteratee2, 2)) : []; - } - function uniqWith(array, comparator) { - comparator = typeof comparator == "function" ? comparator : undefined2; - return array && array.length ? baseUniq(array, undefined2, comparator) : []; - } - 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)); - }); - } - function unzipWith(array, iteratee2) { - if (!(array && array.length)) { - return []; - } - var result2 = unzip(array); - if (iteratee2 == null) { - return result2; - } - return arrayMap(result2, function(group) { - return apply(iteratee2, undefined2, group); - }); - } - var without = baseRest(function(array, values2) { - return isArrayLikeObject(array) ? baseDifference(array, values2) : []; - }); - var xor = baseRest(function(arrays) { - return baseXor(arrayFilter(arrays, isArrayLikeObject)); - }); - var xorBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee2, 2)); - }); - var xorWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined2; - return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined2, comparator); - }); - var zip = baseRest(unzip); - function zipObject(props, values2) { - return baseZipObject(props || [], values2 || [], assignValue); - } - function zipObjectDeep(props, values2) { - return baseZipObject(props || [], values2 || [], baseSet); - } - var zipWith = baseRest(function(arrays) { - var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : undefined2; - iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined2; - return unzipWith(arrays, iteratee2); - }); - function chain(value) { - var result2 = lodash(value); - result2.__chain__ = true; - return result2; - } - function tap(value, interceptor) { - interceptor(value); - return value; - } - function thru(value, interceptor) { - return interceptor(value); - } - 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": undefined2 - }); - return new LodashWrapper(value, this.__chain__).thru(function(array) { - if (length && !array.length) { - array.push(undefined2); - } - return array; - }); - }); - function wrapperChain() { - return chain(this); - } - function wrapperCommit() { - return new LodashWrapper(this.value(), this.__chain__); - } - function wrapperNext() { - if (this.__values__ === undefined2) { - this.__values__ = toArray(this.value()); - } - var done = this.__index__ >= this.__values__.length, value = done ? undefined2 : this.__values__[this.__index__++]; - return {"done": done, "value": value}; - } - function wrapperToIterator() { - return this; - } - function wrapperPlant(value) { - var result2, parent2 = this; - while (parent2 instanceof baseLodash) { - var clone2 = wrapperClone(parent2); - clone2.__index__ = 0; - clone2.__values__ = undefined2; - if (result2) { - previous.__wrapped__ = clone2; - } else { - result2 = clone2; - } - var previous = clone2; - parent2 = parent2.__wrapped__; - } - previous.__wrapped__ = value; - return result2; - } - 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": undefined2 - }); - return new LodashWrapper(wrapped, this.__chain__); - } - return this.thru(reverse); - } - function wrapperValue() { - return baseWrapperValue(this.__wrapped__, this.__actions__); - } - var countBy = createAggregator(function(result2, value, key) { - if (hasOwnProperty.call(result2, key)) { - ++result2[key]; - } else { - baseAssignValue(result2, key, 1); - } - }); - function every(collection, predicate, guard) { - var func = isArray(collection) ? arrayEvery : baseEvery; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined2; - } - return func(collection, getIteratee(predicate, 3)); - } - function filter(collection, predicate) { - var func = isArray(collection) ? arrayFilter : baseFilter; - return func(collection, getIteratee(predicate, 3)); - } - var find = createFind(findIndex); - var findLast = createFind(findLastIndex); - function flatMap(collection, iteratee2) { - return baseFlatten(map(collection, iteratee2), 1); - } - function flatMapDeep(collection, iteratee2) { - return baseFlatten(map(collection, iteratee2), INFINITY); - } - function flatMapDepth(collection, iteratee2, depth) { - depth = depth === undefined2 ? 1 : toInteger(depth); - return baseFlatten(map(collection, iteratee2), depth); - } - function forEach(collection, iteratee2) { - var func = isArray(collection) ? arrayEach : baseEach; - return func(collection, getIteratee(iteratee2, 3)); - } - function forEachRight(collection, iteratee2) { - var func = isArray(collection) ? arrayEachRight : baseEachRight; - return func(collection, getIteratee(iteratee2, 3)); - } - var groupBy = createAggregator(function(result2, value, key) { - if (hasOwnProperty.call(result2, key)) { - result2[key].push(value); - } else { - baseAssignValue(result2, key, [value]); - } - }); - 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; - } - var invokeMap = baseRest(function(collection, path, args) { - var index = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value) { - result2[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args); - }); - return result2; - }); - var keyBy = createAggregator(function(result2, value, key) { - baseAssignValue(result2, key, value); - }); - function map(collection, iteratee2) { - var func = isArray(collection) ? arrayMap : baseMap; - return func(collection, getIteratee(iteratee2, 3)); - } - function orderBy(collection, iteratees, orders, guard) { - if (collection == null) { - return []; - } - if (!isArray(iteratees)) { - iteratees = iteratees == null ? [] : [iteratees]; - } - orders = guard ? undefined2 : orders; - if (!isArray(orders)) { - orders = orders == null ? [] : [orders]; - } - return baseOrderBy(collection, iteratees, orders); - } - var partition = createAggregator(function(result2, value, key) { - result2[key ? 0 : 1].push(value); - }, function() { - return [[], []]; - }); - function reduce(collection, iteratee2, accumulator) { - var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3; - return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEach); - } - function reduceRight(collection, iteratee2, accumulator) { - var func = isArray(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3; - return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEachRight); - } - function reject(collection, predicate) { - var func = isArray(collection) ? arrayFilter : baseFilter; - return func(collection, negate(getIteratee(predicate, 3))); - } - function sample(collection) { - var func = isArray(collection) ? arraySample : baseSample; - return func(collection); - } - function sampleSize(collection, n, guard) { - if (guard ? isIterateeCall(collection, n, guard) : n === undefined2) { - n = 1; - } else { - n = toInteger(n); - } - var func = isArray(collection) ? arraySampleSize : baseSampleSize; - return func(collection, n); - } - function shuffle(collection) { - var func = isArray(collection) ? arrayShuffle : baseShuffle; - return func(collection); - } - 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; - } - function some(collection, predicate, guard) { - var func = isArray(collection) ? arraySome : baseSome; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined2; - } - return func(collection, getIteratee(predicate, 3)); - } - 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), []); - }); - var now = ctxNow || function() { - return root.Date.now(); - }; - function after(n, func) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n = toInteger(n); - return function() { - if (--n < 1) { - return func.apply(this, arguments); - } - }; - } - function ary(func, n, guard) { - n = guard ? undefined2 : n; - n = func && n == null ? func.length : n; - return createWrap(func, WRAP_ARY_FLAG, undefined2, undefined2, undefined2, undefined2, n); - } - function before(n, func) { - var result2; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n = toInteger(n); - return function() { - if (--n > 0) { - result2 = func.apply(this, arguments); - } - if (n <= 1) { - func = undefined2; - } - return result2; - }; - } - 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); - }); - 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); - }); - function curry(func, arity, guard) { - arity = guard ? undefined2 : arity; - var result2 = createWrap(func, WRAP_CURRY_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity); - result2.placeholder = curry.placeholder; - return result2; - } - function curryRight(func, arity, guard) { - arity = guard ? undefined2 : arity; - var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity); - result2.placeholder = curryRight.placeholder; - return result2; - } - function debounce(func, wait, options) { - var lastArgs, lastThis, maxWait, result2, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true; - if (typeof func != "function") { - throw new TypeError2(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 = undefined2; - lastInvokeTime = time; - result2 = func.apply(thisArg, args); - return result2; - } - function leadingEdge(time) { - lastInvokeTime = time; - timerId = setTimeout2(timerExpired, wait); - return leading ? invokeFunc(time) : result2; - } - 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; - return lastCallTime === undefined2 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; - } - function timerExpired() { - var time = now(); - if (shouldInvoke(time)) { - return trailingEdge(time); - } - timerId = setTimeout2(timerExpired, remainingWait(time)); - } - function trailingEdge(time) { - timerId = undefined2; - if (trailing && lastArgs) { - return invokeFunc(time); - } - lastArgs = lastThis = undefined2; - return result2; - } - function cancel() { - if (timerId !== undefined2) { - clearTimeout2(timerId); - } - lastInvokeTime = 0; - lastArgs = lastCallTime = lastThis = timerId = undefined2; - } - function flush() { - return timerId === undefined2 ? result2 : trailingEdge(now()); - } - function debounced() { - var time = now(), isInvoking = shouldInvoke(time); - lastArgs = arguments; - lastThis = this; - lastCallTime = time; - if (isInvoking) { - if (timerId === undefined2) { - return leadingEdge(lastCallTime); - } - if (maxing) { - clearTimeout2(timerId); - timerId = setTimeout2(timerExpired, wait); - return invokeFunc(lastCallTime); - } - } - if (timerId === undefined2) { - timerId = setTimeout2(timerExpired, wait); - } - return result2; - } - debounced.cancel = cancel; - debounced.flush = flush; - return debounced; - } - var defer = baseRest(function(func, args) { - return baseDelay(func, 1, args); - }); - var delay = baseRest(function(func, wait, args) { - return baseDelay(func, toNumber(wait) || 0, args); - }); - function flip(func) { - return createWrap(func, WRAP_FLIP_FLAG); - } - function memoize(func, resolver) { - if (typeof func != "function" || resolver != null && typeof resolver != "function") { - throw new TypeError2(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 result2 = func.apply(this, args); - memoized.cache = cache.set(key, result2) || cache; - return result2; - }; - memoized.cache = new (memoize.Cache || MapCache)(); - return memoized; - } - memoize.Cache = MapCache; - function negate(predicate) { - if (typeof predicate != "function") { - throw new TypeError2(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); - }; - } - function once(func) { - return before(2, func); - } - 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); - }); - }); - var partial = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partial)); - return createWrap(func, WRAP_PARTIAL_FLAG, undefined2, partials, holders); - }); - var partialRight = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partialRight)); - return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined2, partials, holders); - }); - var rearg = flatRest(function(func, indexes) { - return createWrap(func, WRAP_REARG_FLAG, undefined2, undefined2, undefined2, indexes); - }); - function rest(func, start) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - start = start === undefined2 ? start : toInteger(start); - return baseRest(func, start); - } - function spread(func, start) { - if (typeof func != "function") { - throw new TypeError2(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); - }); - } - function throttle(func, wait, options) { - var leading = true, trailing = true; - if (typeof func != "function") { - throw new TypeError2(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 - }); - } - function unary(func) { - return ary(func, 1); - } - function wrap(value, wrapper) { - return partial(castFunction(wrapper), value); - } - function castArray() { - if (!arguments.length) { - return []; - } - var value = arguments[0]; - return isArray(value) ? value : [value]; - } - function clone(value) { - return baseClone(value, CLONE_SYMBOLS_FLAG); - } - function cloneWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseClone(value, CLONE_SYMBOLS_FLAG, customizer); - } - function cloneDeep(value) { - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); - } - function cloneDeepWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer); - } - function conformsTo(object, source) { - return source == null || baseConformsTo(object, source, keys(source)); - } - function eq(value, other) { - return value === other || value !== value && other !== other; - } - var gt = createRelationalOperation(baseGt); - var gte = createRelationalOperation(function(value, other) { - return value >= other; - }); - var isArguments = baseIsArguments(function() { - return arguments; - }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); - }; - var isArray = Array2.isArray; - var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer; - function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); - } - function isArrayLikeObject(value) { - return isObjectLike(value) && isArrayLike(value); - } - function isBoolean(value) { - return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag; - } - var isBuffer = nativeIsBuffer || stubFalse; - var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; - function isElement(value) { - return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value); - } - 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; - } - function isEqual(value, other) { - return baseIsEqual(value, other); - } - function isEqualWith(value, other, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - var result2 = customizer ? customizer(value, other) : undefined2; - return result2 === undefined2 ? baseIsEqual(value, other, undefined2, customizer) : !!result2; - } - 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); - } - function isFinite2(value) { - return typeof value == "number" && nativeIsFinite(value); - } - function isFunction(value) { - if (!isObject(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; - } - function isInteger(value) { - return typeof value == "number" && value == toInteger(value); - } - function isLength(value) { - return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - } - function isObject(value) { - var type = typeof value; - return value != null && (type == "object" || type == "function"); - } - function isObjectLike(value) { - return value != null && typeof value == "object"; - } - var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; - function isMatch(object, source) { - return object === source || baseIsMatch(object, source, getMatchData(source)); - } - function isMatchWith(object, source, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseIsMatch(object, source, getMatchData(source), customizer); - } - function isNaN2(value) { - return isNumber(value) && value != +value; - } - function isNative(value) { - if (isMaskable(value)) { - throw new Error2(CORE_ERROR_TEXT); - } - return baseIsNative(value); - } - function isNull(value) { - return value === null; - } - function isNil(value) { - return value == null; - } - function isNumber(value) { - return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag; - } - 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; - } - var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; - function isSafeInteger(value) { - return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER; - } - var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; - function isString(value) { - return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag; - } - function isSymbol(value) { - return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag; - } - var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - function isUndefined(value) { - return value === undefined2; - } - function isWeakMap(value) { - return isObjectLike(value) && getTag(value) == weakMapTag; - } - function isWeakSet(value) { - return isObjectLike(value) && baseGetTag(value) == weakSetTag; - } - var lt = createRelationalOperation(baseLt); - var lte = createRelationalOperation(function(value, other) { - return value <= other; - }); - 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); - } - 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; - } - function toInteger(value) { - var result2 = toFinite(value), remainder = result2 % 1; - return result2 === result2 ? remainder ? result2 - remainder : result2 : 0; - } - function toLength(value) { - return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0; - } - 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; - } - function toPlainObject(value) { - return copyObject(value, keysIn(value)); - } - function toSafeInteger(value) { - return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value === 0 ? value : 0; - } - function toString(value) { - return value == null ? "" : baseToString(value); - } - 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]); - } - } - }); - var assignIn = createAssigner(function(object, source) { - copyObject(source, keysIn(source), object); - }); - var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keysIn(source), object, customizer); - }); - var assignWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keys(source), object, customizer); - }); - var at = flatRest(baseAt); - function create(prototype, properties) { - var result2 = baseCreate(prototype); - return properties == null ? result2 : baseAssign(result2, properties); - } - var defaults = baseRest(function(object, sources) { - object = Object2(object); - var index = -1; - var length = sources.length; - var guard = length > 2 ? sources[2] : undefined2; - 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 === undefined2 || eq(value, objectProto[key]) && !hasOwnProperty.call(object, key)) { - object[key] = source[key]; - } - } - } - return object; - }); - var defaultsDeep = baseRest(function(args) { - args.push(undefined2, customDefaultsMerge); - return apply(mergeWith, undefined2, args); - }); - function findKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwn); - } - function findLastKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight); - } - function forIn(object, iteratee2) { - return object == null ? object : baseFor(object, getIteratee(iteratee2, 3), keysIn); - } - function forInRight(object, iteratee2) { - return object == null ? object : baseForRight(object, getIteratee(iteratee2, 3), keysIn); - } - function forOwn(object, iteratee2) { - return object && baseForOwn(object, getIteratee(iteratee2, 3)); - } - function forOwnRight(object, iteratee2) { - return object && baseForOwnRight(object, getIteratee(iteratee2, 3)); - } - function functions(object) { - return object == null ? [] : baseFunctions(object, keys(object)); - } - function functionsIn(object) { - return object == null ? [] : baseFunctions(object, keysIn(object)); - } - function get(object, path, defaultValue) { - var result2 = object == null ? undefined2 : baseGet(object, path); - return result2 === undefined2 ? defaultValue : result2; - } - function has(object, path) { - return object != null && hasPath(object, path, baseHas); - } - function hasIn(object, path) { - return object != null && hasPath(object, path, baseHasIn); - } - var invert = createInverter(function(result2, value, key) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - result2[value] = key; - }, constant(identity)); - var invertBy = createInverter(function(result2, value, key) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - if (hasOwnProperty.call(result2, value)) { - result2[value].push(key); - } else { - result2[value] = [key]; - } - }, getIteratee); - var invoke = baseRest(baseInvoke); - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - } - function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); - } - function mapKeys(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key, object2) { - baseAssignValue(result2, iteratee2(value, key, object2), value); - }); - return result2; - } - function mapValues(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key, object2) { - baseAssignValue(result2, key, iteratee2(value, key, object2)); - }); - return result2; - } - var merge = createAssigner(function(object, source, srcIndex) { - baseMerge(object, source, srcIndex); - }); - var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { - baseMerge(object, source, srcIndex, customizer); - }); - var omit = flatRest(function(object, paths) { - var result2 = {}; - if (object == null) { - return result2; - } - var isDeep = false; - paths = arrayMap(paths, function(path) { - path = castPath(path, object); - isDeep || (isDeep = path.length > 1); - return path; - }); - copyObject(object, getAllKeysIn(object), result2); - if (isDeep) { - result2 = baseClone(result2, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone); - } - var length = paths.length; - while (length--) { - baseUnset(result2, paths[length]); - } - return result2; - }); - function omitBy(object, predicate) { - return pickBy(object, negate(getIteratee(predicate))); - } - var pick = flatRest(function(object, paths) { - return object == null ? {} : basePick(object, paths); - }); - 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]); - }); - } - function result(object, path, defaultValue) { - path = castPath(path, object); - var index = -1, length = path.length; - if (!length) { - length = 1; - object = undefined2; - } - while (++index < length) { - var value = object == null ? undefined2 : object[toKey(path[index])]; - if (value === undefined2) { - index = length; - value = defaultValue; - } - object = isFunction(value) ? value.call(object) : value; - } - return object; - } - function set(object, path, value) { - return object == null ? object : baseSet(object, path, value); - } - function setWith(object, path, value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return object == null ? object : baseSet(object, path, value, customizer); - } - var toPairs = createToPairs(keys); - var toPairsIn = createToPairs(keysIn); - function transform(object, iteratee2, accumulator) { - var isArr = isArray(object), isArrLike = isArr || isBuffer(object) || isTypedArray(object); - iteratee2 = getIteratee(iteratee2, 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, object2) { - return iteratee2(accumulator, value, index, object2); - }); - return accumulator; - } - function unset(object, path) { - return object == null ? true : baseUnset(object, path); - } - function update(object, path, updater) { - return object == null ? object : baseUpdate(object, path, castFunction(updater)); - } - function updateWith(object, path, updater, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer); - } - function values(object) { - return object == null ? [] : baseValues(object, keys(object)); - } - function valuesIn(object) { - return object == null ? [] : baseValues(object, keysIn(object)); - } - function clamp(number, lower, upper) { - if (upper === undefined2) { - upper = lower; - lower = undefined2; - } - if (upper !== undefined2) { - upper = toNumber(upper); - upper = upper === upper ? upper : 0; - } - if (lower !== undefined2) { - lower = toNumber(lower); - lower = lower === lower ? lower : 0; - } - return baseClamp(toNumber(number), lower, upper); - } - function inRange(number, start, end) { - start = toFinite(start); - if (end === undefined2) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - number = toNumber(number); - return baseInRange(number, start, end); - } - function random(lower, upper, floating) { - if (floating && typeof floating != "boolean" && isIterateeCall(lower, upper, floating)) { - upper = floating = undefined2; - } - if (floating === undefined2) { - if (typeof upper == "boolean") { - floating = upper; - upper = undefined2; - } else if (typeof lower == "boolean") { - floating = lower; - lower = undefined2; - } - } - if (lower === undefined2 && upper === undefined2) { - lower = 0; - upper = 1; - } else { - lower = toFinite(lower); - if (upper === undefined2) { - 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); - } - var camelCase = createCompounder(function(result2, word, index) { - word = word.toLowerCase(); - return result2 + (index ? capitalize(word) : word); - }); - function capitalize(string) { - return upperFirst(toString(string).toLowerCase()); - } - function deburr(string) { - string = toString(string); - return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ""); - } - function endsWith(string, target, position) { - string = toString(string); - target = baseToString(target); - var length = string.length; - position = position === undefined2 ? length : baseClamp(toInteger(position), 0, length); - var end = position; - position -= target.length; - return position >= 0 && string.slice(position, end) == target; - } - function escape(string) { - string = toString(string); - return string && reHasUnescapedHtml.test(string) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string; - } - function escapeRegExp(string) { - string = toString(string); - return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string; - } - var kebabCase = createCompounder(function(result2, word, index) { - return result2 + (index ? "-" : "") + word.toLowerCase(); - }); - var lowerCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + word.toLowerCase(); - }); - var lowerFirst = createCaseFirst("toLowerCase"); - 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); - } - 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; - } - 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; - } - function parseInt2(string, radix, guard) { - if (guard || radix == null) { - radix = 0; - } else if (radix) { - radix = +radix; - } - return nativeParseInt(toString(string).replace(reTrimStart, ""), radix || 0); - } - function repeat(string, n, guard) { - if (guard ? isIterateeCall(string, n, guard) : n === undefined2) { - n = 1; - } else { - n = toInteger(n); - } - return baseRepeat(toString(string), n); - } - function replace() { - var args = arguments, string = toString(args[0]); - return args.length < 3 ? string : string.replace(args[1], args[2]); - } - var snakeCase = createCompounder(function(result2, word, index) { - return result2 + (index ? "_" : "") + word.toLowerCase(); - }); - function split(string, separator, limit) { - if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) { - separator = limit = undefined2; - } - limit = limit === undefined2 ? 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); - } - var startCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + upperFirst(word); - }); - 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; - } - function template(string, options, guard) { - var settings = lodash.templateSettings; - if (guard && isIterateeCall(string, options, guard)) { - options = undefined2; - } - string = toString(string); - options = assignInWith({}, options, settings, customDefaultsAssignIn); - var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys); - var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '"; - var reDelimiters = RegExp2((options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$", "g"); - var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n"; - string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) { - interpolateValue || (interpolateValue = esTemplateValue); - source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar); - if (escapeValue) { - isEscaping = true; - source += "' +\n__e(" + escapeValue + ") +\n'"; - } - if (evaluateValue) { - isEvaluating = true; - source += "';\n" + evaluateValue + ";\n__p += '"; - } - if (interpolateValue) { - source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'"; - } - index = offset + match.length; - return match; - }); - source += "';\n"; - var variable = hasOwnProperty.call(options, "variable") && options.variable; - if (!variable) { - source = "with (obj) {\n" + source + "\n}\n"; - } else if (reForbiddenIdentifierChars.test(variable)) { - throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT); - } - source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;"); - source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}"; - var result2 = attempt(function() { - return Function2(importsKeys, sourceURL + "return " + source).apply(undefined2, importsValues); - }); - result2.source = source; - if (isError(result2)) { - throw result2; - } - return result2; - } - function toLower(value) { - return toString(value).toLowerCase(); - } - function toUpper(value) { - return toString(value).toUpperCase(); - } - function trim(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined2)) { - 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(""); - } - function trimEnd(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined2)) { - return string.slice(0, trimmedEndIndex(string) + 1); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), end = charsEndIndex(strSymbols, stringToArray(chars)) + 1; - return castSlice(strSymbols, 0, end).join(""); - } - function trimStart(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined2)) { - return string.replace(reTrimStart, ""); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), start = charsStartIndex(strSymbols, stringToArray(chars)); - return castSlice(strSymbols, start).join(""); - } - function truncate(string, options) { - var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION; - if (isObject(options)) { - var separator = "separator" in options ? options.separator : separator; - length = "length" in options ? toInteger(options.length) : length; - omission = "omission" in options ? baseToString(options.omission) : omission; - } - string = toString(string); - var strLength = string.length; - if (hasUnicode(string)) { - var strSymbols = stringToArray(string); - strLength = strSymbols.length; - } - if (length >= strLength) { - return string; - } - var end = length - stringSize(omission); - if (end < 1) { - return omission; - } - var result2 = strSymbols ? castSlice(strSymbols, 0, end).join("") : string.slice(0, end); - if (separator === undefined2) { - return result2 + omission; - } - if (strSymbols) { - end += result2.length - end; - } - if (isRegExp(separator)) { - if (string.slice(end).search(separator)) { - var match, substring = result2; - if (!separator.global) { - separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g"); - } - separator.lastIndex = 0; - while (match = separator.exec(substring)) { - var newEnd = match.index; - } - result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd); - } - } else if (string.indexOf(baseToString(separator), end) != end) { - var index = result2.lastIndexOf(separator); - if (index > -1) { - result2 = result2.slice(0, index); - } - } - return result2 + omission; - } - function unescape(string) { - string = toString(string); - return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string; - } - var upperCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + word.toUpperCase(); - }); - var upperFirst = createCaseFirst("toUpperCase"); - function words(string, pattern, guard) { - string = toString(string); - pattern = guard ? undefined2 : pattern; - if (pattern === undefined2) { - return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string); - } - return string.match(pattern) || []; - } - var attempt = baseRest(function(func, args) { - try { - return apply(func, undefined2, args); - } catch (e) { - return isError(e) ? e : new Error2(e); - } - }); - var bindAll = flatRest(function(object, methodNames) { - arrayEach(methodNames, function(key) { - key = toKey(key); - baseAssignValue(object, key, bind(object[key], object)); - }); - return object; - }); - function cond(pairs) { - var length = pairs == null ? 0 : pairs.length, toIteratee = getIteratee(); - pairs = !length ? [] : arrayMap(pairs, function(pair) { - if (typeof pair[1] != "function") { - throw new TypeError2(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); - } - } - }); - } - function conforms(source) { - return baseConforms(baseClone(source, CLONE_DEEP_FLAG)); - } - function constant(value) { - return function() { - return value; - }; - } - function defaultTo(value, defaultValue) { - return value == null || value !== value ? defaultValue : value; - } - var flow = createFlow(); - var flowRight = createFlow(true); - function identity(value) { - return value; - } - function iteratee(func) { - return baseIteratee(typeof func == "function" ? func : baseClone(func, CLONE_DEEP_FLAG)); - } - function matches(source) { - return baseMatches(baseClone(source, CLONE_DEEP_FLAG)); - } - function matchesProperty(path, srcValue) { - return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG)); - } - var method = baseRest(function(path, args) { - return function(object) { - return baseInvoke(object, path, args); - }; - }); - var methodOf = baseRest(function(object, args) { - return function(path) { - return baseInvoke(object, path, args); - }; - }); - 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 chain2 = !(isObject(options) && "chain" in options) || !!options.chain, isFunc = isFunction(object); - arrayEach(methodNames, function(methodName) { - var func = source[methodName]; - object[methodName] = func; - if (isFunc) { - object.prototype[methodName] = function() { - var chainAll = this.__chain__; - if (chain2 || chainAll) { - var result2 = object(this.__wrapped__), actions = result2.__actions__ = copyArray(this.__actions__); - actions.push({"func": func, "args": arguments, "thisArg": object}); - result2.__chain__ = chainAll; - return result2; - } - return func.apply(object, arrayPush([this.value()], arguments)); - }; - } - }); - return object; - } - function noConflict() { - if (root._ === this) { - root._ = oldDash; - } - return this; - } - function noop() { - } - function nthArg(n) { - n = toInteger(n); - return baseRest(function(args) { - return baseNth(args, n); - }); - } - var over = createOver(arrayMap); - var overEvery = createOver(arrayEvery); - var overSome = createOver(arraySome); - function property(path) { - return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); - } - function propertyOf(object) { - return function(path) { - return object == null ? undefined2 : baseGet(object, path); - }; - } - var range = createRange(); - var rangeRight = createRange(true); - function stubArray() { - return []; - } - function stubFalse() { - return false; - } - function stubObject() { - return {}; - } - function stubString() { - return ""; - } - function stubTrue() { - return true; - } - function times(n, iteratee2) { - n = toInteger(n); - if (n < 1 || n > MAX_SAFE_INTEGER) { - return []; - } - var index = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH); - iteratee2 = getIteratee(iteratee2); - n -= MAX_ARRAY_LENGTH; - var result2 = baseTimes(length, iteratee2); - while (++index < n) { - iteratee2(index); - } - return result2; - } - function toPath(value) { - if (isArray(value)) { - return arrayMap(value, toKey); - } - return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value))); - } - function uniqueId(prefix) { - var id = ++idCounter; - return toString(prefix) + id; - } - var add = createMathOperation(function(augend, addend) { - return augend + addend; - }, 0); - var ceil = createRound("ceil"); - var divide = createMathOperation(function(dividend, divisor) { - return dividend / divisor; - }, 1); - var floor = createRound("floor"); - function max(array) { - return array && array.length ? baseExtremum(array, identity, baseGt) : undefined2; - } - function maxBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined2; - } - function mean(array) { - return baseMean(array, identity); - } - function meanBy(array, iteratee2) { - return baseMean(array, getIteratee(iteratee2, 2)); - } - function min(array) { - return array && array.length ? baseExtremum(array, identity, baseLt) : undefined2; - } - function minBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined2; - } - var multiply = createMathOperation(function(multiplier, multiplicand) { - return multiplier * multiplicand; - }, 1); - var round = createRound("round"); - var subtract = createMathOperation(function(minuend, subtrahend) { - return minuend - subtrahend; - }, 0); - function sum(array) { - return array && array.length ? baseSum(array, identity) : 0; - } - function sumBy(array, iteratee2) { - return array && array.length ? baseSum(array, getIteratee(iteratee2, 2)) : 0; - } - lodash.after = after; - lodash.ary = ary; - lodash.assign = assign; - lodash.assignIn = assignIn; - lodash.assignInWith = assignInWith; - lodash.assignWith = assignWith; - lodash.at = at; - lodash.before = before; - lodash.bind = bind; - lodash.bindAll = bindAll; - lodash.bindKey = bindKey; - lodash.castArray = castArray; - lodash.chain = chain; - lodash.chunk = chunk; - lodash.compact = compact; - lodash.concat = concat; - lodash.cond = cond; - lodash.conforms = conforms; - lodash.constant = constant; - lodash.countBy = countBy; - lodash.create = create; - lodash.curry = curry; - lodash.curryRight = curryRight; - lodash.debounce = debounce; - lodash.defaults = defaults; - lodash.defaultsDeep = defaultsDeep; - lodash.defer = defer; - lodash.delay = delay; - lodash.difference = difference; - lodash.differenceBy = differenceBy; - lodash.differenceWith = differenceWith; - lodash.drop = drop; - lodash.dropRight = dropRight; - lodash.dropRightWhile = dropRightWhile; - lodash.dropWhile = dropWhile; - lodash.fill = fill; - lodash.filter = filter; - lodash.flatMap = flatMap; - lodash.flatMapDeep = flatMapDeep; - lodash.flatMapDepth = flatMapDepth; - lodash.flatten = flatten; - lodash.flattenDeep = flattenDeep; - lodash.flattenDepth = flattenDepth; - lodash.flip = flip; - lodash.flow = flow; - lodash.flowRight = flowRight; - lodash.fromPairs = fromPairs; - lodash.functions = functions; - lodash.functionsIn = functionsIn; - lodash.groupBy = groupBy; - lodash.initial = initial; - lodash.intersection = intersection; - lodash.intersectionBy = intersectionBy; - lodash.intersectionWith = intersectionWith; - lodash.invert = invert; - lodash.invertBy = invertBy; - lodash.invokeMap = invokeMap; - lodash.iteratee = iteratee; - lodash.keyBy = keyBy; - lodash.keys = keys; - lodash.keysIn = keysIn; - lodash.map = map; - lodash.mapKeys = mapKeys; - lodash.mapValues = mapValues; - lodash.matches = matches; - lodash.matchesProperty = matchesProperty; - lodash.memoize = memoize; - lodash.merge = merge; - lodash.mergeWith = mergeWith; - lodash.method = method; - lodash.methodOf = methodOf; - lodash.mixin = mixin; - lodash.negate = negate; - lodash.nthArg = nthArg; - lodash.omit = omit; - lodash.omitBy = omitBy; - lodash.once = once; - lodash.orderBy = orderBy; - lodash.over = over; - lodash.overArgs = overArgs; - lodash.overEvery = overEvery; - lodash.overSome = overSome; - lodash.partial = partial; - lodash.partialRight = partialRight; - lodash.partition = partition; - lodash.pick = pick; - lodash.pickBy = pickBy; - lodash.property = property; - lodash.propertyOf = propertyOf; - lodash.pull = pull; - lodash.pullAll = pullAll; - lodash.pullAllBy = pullAllBy; - lodash.pullAllWith = pullAllWith; - lodash.pullAt = pullAt; - lodash.range = range; - lodash.rangeRight = rangeRight; - lodash.rearg = rearg; - lodash.reject = reject; - lodash.remove = remove; - lodash.rest = rest; - lodash.reverse = reverse; - lodash.sampleSize = sampleSize; - lodash.set = set; - lodash.setWith = setWith; - lodash.shuffle = shuffle; - lodash.slice = slice; - lodash.sortBy = sortBy; - lodash.sortedUniq = sortedUniq; - lodash.sortedUniqBy = sortedUniqBy; - lodash.split = split; - lodash.spread = spread; - lodash.tail = tail; - lodash.take = take; - lodash.takeRight = takeRight; - lodash.takeRightWhile = takeRightWhile; - lodash.takeWhile = takeWhile; - lodash.tap = tap; - lodash.throttle = throttle; - lodash.thru = thru; - lodash.toArray = toArray; - lodash.toPairs = toPairs; - lodash.toPairsIn = toPairsIn; - lodash.toPath = toPath; - lodash.toPlainObject = toPlainObject; - lodash.transform = transform; - lodash.unary = unary; - lodash.union = union; - lodash.unionBy = unionBy; - lodash.unionWith = unionWith; - lodash.uniq = uniq; - lodash.uniqBy = uniqBy; - lodash.uniqWith = uniqWith; - lodash.unset = unset; - lodash.unzip = unzip; - lodash.unzipWith = unzipWith; - lodash.update = update; - lodash.updateWith = updateWith; - lodash.values = values; - lodash.valuesIn = valuesIn; - lodash.without = without; - lodash.words = words; - lodash.wrap = wrap; - lodash.xor = xor; - lodash.xorBy = xorBy; - lodash.xorWith = xorWith; - lodash.zip = zip; - lodash.zipObject = zipObject; - lodash.zipObjectDeep = zipObjectDeep; - lodash.zipWith = zipWith; - lodash.entries = toPairs; - lodash.entriesIn = toPairsIn; - lodash.extend = assignIn; - lodash.extendWith = assignInWith; - mixin(lodash, lodash); - lodash.add = add; - lodash.attempt = attempt; - lodash.camelCase = camelCase; - lodash.capitalize = capitalize; - lodash.ceil = ceil; - lodash.clamp = clamp; - lodash.clone = clone; - lodash.cloneDeep = cloneDeep; - lodash.cloneDeepWith = cloneDeepWith; - lodash.cloneWith = cloneWith; - lodash.conformsTo = conformsTo; - lodash.deburr = deburr; - lodash.defaultTo = defaultTo; - lodash.divide = divide; - lodash.endsWith = endsWith; - lodash.eq = eq; - lodash.escape = escape; - lodash.escapeRegExp = escapeRegExp; - lodash.every = every; - lodash.find = find; - lodash.findIndex = findIndex; - lodash.findKey = findKey; - lodash.findLast = findLast; - lodash.findLastIndex = findLastIndex; - lodash.findLastKey = findLastKey; - lodash.floor = floor; - lodash.forEach = forEach; - lodash.forEachRight = forEachRight; - lodash.forIn = forIn; - lodash.forInRight = forInRight; - lodash.forOwn = forOwn; - lodash.forOwnRight = forOwnRight; - lodash.get = get; - lodash.gt = gt; - lodash.gte = gte; - lodash.has = has; - lodash.hasIn = hasIn; - lodash.head = head; - lodash.identity = identity; - lodash.includes = includes; - lodash.indexOf = indexOf; - lodash.inRange = inRange; - lodash.invoke = invoke; - lodash.isArguments = isArguments; - lodash.isArray = isArray; - lodash.isArrayBuffer = isArrayBuffer; - lodash.isArrayLike = isArrayLike; - lodash.isArrayLikeObject = isArrayLikeObject; - lodash.isBoolean = isBoolean; - lodash.isBuffer = isBuffer; - lodash.isDate = isDate; - lodash.isElement = isElement; - lodash.isEmpty = isEmpty; - lodash.isEqual = isEqual; - lodash.isEqualWith = isEqualWith; - lodash.isError = isError; - lodash.isFinite = isFinite2; - lodash.isFunction = isFunction; - lodash.isInteger = isInteger; - lodash.isLength = isLength; - lodash.isMap = isMap; - lodash.isMatch = isMatch; - lodash.isMatchWith = isMatchWith; - lodash.isNaN = isNaN2; - lodash.isNative = isNative; - lodash.isNil = isNil; - lodash.isNull = isNull; - lodash.isNumber = isNumber; - lodash.isObject = isObject; - lodash.isObjectLike = isObjectLike; - lodash.isPlainObject = isPlainObject; - lodash.isRegExp = isRegExp; - lodash.isSafeInteger = isSafeInteger; - lodash.isSet = isSet; - lodash.isString = isString; - lodash.isSymbol = isSymbol; - lodash.isTypedArray = isTypedArray; - lodash.isUndefined = isUndefined; - lodash.isWeakMap = isWeakMap; - lodash.isWeakSet = isWeakSet; - lodash.join = join; - lodash.kebabCase = kebabCase; - lodash.last = last; - lodash.lastIndexOf = lastIndexOf; - lodash.lowerCase = lowerCase; - lodash.lowerFirst = lowerFirst; - lodash.lt = lt; - lodash.lte = lte; - lodash.max = max; - lodash.maxBy = maxBy; - lodash.mean = mean; - lodash.meanBy = meanBy; - lodash.min = min; - lodash.minBy = minBy; - lodash.stubArray = stubArray; - lodash.stubFalse = stubFalse; - lodash.stubObject = stubObject; - lodash.stubString = stubString; - lodash.stubTrue = stubTrue; - lodash.multiply = multiply; - lodash.nth = nth; - lodash.noConflict = noConflict; - lodash.noop = noop; - lodash.now = now; - lodash.pad = pad; - lodash.padEnd = padEnd; - lodash.padStart = padStart; - lodash.parseInt = parseInt2; - lodash.random = random; - lodash.reduce = reduce; - lodash.reduceRight = reduceRight; - lodash.repeat = repeat; - lodash.replace = replace; - lodash.result = result; - lodash.round = round; - lodash.runInContext = runInContext2; - lodash.sample = sample; - lodash.size = size; - lodash.snakeCase = snakeCase; - lodash.some = some; - lodash.sortedIndex = sortedIndex; - lodash.sortedIndexBy = sortedIndexBy; - lodash.sortedIndexOf = sortedIndexOf; - lodash.sortedLastIndex = sortedLastIndex; - lodash.sortedLastIndexBy = sortedLastIndexBy; - lodash.sortedLastIndexOf = sortedLastIndexOf; - lodash.startCase = startCase; - lodash.startsWith = startsWith; - lodash.subtract = subtract; - lodash.sum = sum; - lodash.sumBy = sumBy; - lodash.template = template; - lodash.times = times; - lodash.toFinite = toFinite; - lodash.toInteger = toInteger; - lodash.toLength = toLength; - lodash.toLower = toLower; - lodash.toNumber = toNumber; - lodash.toSafeInteger = toSafeInteger; - lodash.toString = toString; - lodash.toUpper = toUpper; - lodash.trim = trim; - lodash.trimEnd = trimEnd; - lodash.trimStart = trimStart; - lodash.truncate = truncate; - lodash.unescape = unescape; - lodash.uniqueId = uniqueId; - lodash.upperCase = upperCase; - lodash.upperFirst = upperFirst; - lodash.each = forEach; - lodash.eachRight = forEachRight; - 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}); - lodash.VERSION = VERSION; - arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) { - lodash[methodName].placeholder = lodash; - }); - arrayEach(["drop", "take"], function(methodName, index) { - LazyWrapper.prototype[methodName] = function(n) { - n = n === undefined2 ? 1 : nativeMax(toInteger(n), 0); - var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone(); - if (result2.__filtered__) { - result2.__takeCount__ = nativeMin(n, result2.__takeCount__); - } else { - result2.__views__.push({ - "size": nativeMin(n, MAX_ARRAY_LENGTH), - "type": methodName + (result2.__dir__ < 0 ? "Right" : "") - }); - } - return result2; - }; - LazyWrapper.prototype[methodName + "Right"] = function(n) { - return this.reverse()[methodName](n).reverse(); - }; - }); - arrayEach(["filter", "map", "takeWhile"], function(methodName, index) { - var type = index + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG; - LazyWrapper.prototype[methodName] = function(iteratee2) { - var result2 = this.clone(); - result2.__iteratees__.push({ - "iteratee": getIteratee(iteratee2, 3), - "type": type - }); - result2.__filtered__ = result2.__filtered__ || isFilter; - return result2; - }; - }); - arrayEach(["head", "last"], function(methodName, index) { - var takeName = "take" + (index ? "Right" : ""); - LazyWrapper.prototype[methodName] = function() { - return this[takeName](1).value()[0]; - }; - }); - arrayEach(["initial", "tail"], function(methodName, index) { - var dropName = "drop" + (index ? "" : "Right"); - LazyWrapper.prototype[methodName] = function() { - return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1); - }; - }); - LazyWrapper.prototype.compact = function() { - return this.filter(identity); - }; - LazyWrapper.prototype.find = function(predicate) { - return this.filter(predicate).head(); - }; - LazyWrapper.prototype.findLast = function(predicate) { - return this.reverse().find(predicate); - }; - LazyWrapper.prototype.invokeMap = baseRest(function(path, args) { - if (typeof path == "function") { - return new LazyWrapper(this); - } - return this.map(function(value) { - return baseInvoke(value, path, args); - }); - }); - LazyWrapper.prototype.reject = function(predicate) { - return this.filter(negate(getIteratee(predicate))); - }; - LazyWrapper.prototype.slice = function(start, end) { - start = toInteger(start); - var result2 = this; - if (result2.__filtered__ && (start > 0 || end < 0)) { - return new LazyWrapper(result2); - } - if (start < 0) { - result2 = result2.takeRight(-start); - } else if (start) { - result2 = result2.drop(start); - } - if (end !== undefined2) { - end = toInteger(end); - result2 = end < 0 ? result2.dropRight(-end) : result2.take(end - start); - } - return result2; - }; - LazyWrapper.prototype.takeRightWhile = function(predicate) { - return this.reverse().takeWhile(predicate).reverse(); - }; - LazyWrapper.prototype.toArray = function() { - return this.take(MAX_ARRAY_LENGTH); - }; - baseForOwn(LazyWrapper.prototype, function(func, methodName) { - var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName), isTaker = /^(?:head|last)$/.test(methodName), lodashFunc = lodash[isTaker ? "take" + (methodName == "last" ? "Right" : "") : methodName], retUnwrapped = isTaker || /^find/.test(methodName); - if (!lodashFunc) { - return; - } - lodash.prototype[methodName] = function() { - var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee2 = args[0], useLazy = isLazy || isArray(value); - var interceptor = function(value2) { - var result3 = lodashFunc.apply(lodash, arrayPush([value2], args)); - return isTaker && chainAll ? result3[0] : result3; - }; - if (useLazy && checkIteratee && typeof iteratee2 == "function" && iteratee2.length != 1) { - isLazy = useLazy = false; - } - var chainAll = this.__chain__, isHybrid = !!this.__actions__.length, isUnwrapped = retUnwrapped && !chainAll, onlyLazy = isLazy && !isHybrid; - if (!retUnwrapped && useLazy) { - value = onlyLazy ? value : new LazyWrapper(this); - var result2 = func.apply(value, args); - result2.__actions__.push({"func": thru, "args": [interceptor], "thisArg": undefined2}); - return new LodashWrapper(result2, chainAll); - } - if (isUnwrapped && onlyLazy) { - return func.apply(this, args); - } - result2 = this.thru(interceptor); - return isUnwrapped ? isTaker ? result2.value()[0] : result2.value() : result2; - }; - }); - arrayEach(["pop", "push", "shift", "sort", "splice", "unshift"], function(methodName) { - var func = arrayProto[methodName], chainName = /^(?:push|sort|unshift)$/.test(methodName) ? "tap" : "thru", retUnwrapped = /^(?:pop|shift)$/.test(methodName); - lodash.prototype[methodName] = function() { - var args = arguments; - if (retUnwrapped && !this.__chain__) { - var value = this.value(); - return func.apply(isArray(value) ? value : [], args); - } - return this[chainName](function(value2) { - return func.apply(isArray(value2) ? value2 : [], args); - }); - }; - }); - baseForOwn(LazyWrapper.prototype, function(func, methodName) { - var lodashFunc = lodash[methodName]; - if (lodashFunc) { - var key = lodashFunc.name + ""; - if (!hasOwnProperty.call(realNames, key)) { - realNames[key] = []; - } - realNames[key].push({"name": methodName, "func": lodashFunc}); - } - }); - realNames[createHybrid(undefined2, WRAP_BIND_KEY_FLAG).name] = [{ - "name": "wrapper", - "func": undefined2 - }]; - LazyWrapper.prototype.clone = lazyClone; - LazyWrapper.prototype.reverse = lazyReverse; - LazyWrapper.prototype.value = lazyValue; - lodash.prototype.at = wrapperAt; - lodash.prototype.chain = wrapperChain; - lodash.prototype.commit = wrapperCommit; - lodash.prototype.next = wrapperNext; - lodash.prototype.plant = wrapperPlant; - lodash.prototype.reverse = wrapperReverse; - lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue; - lodash.prototype.first = lodash.prototype.head; - if (symIterator) { - lodash.prototype[symIterator] = wrapperToIterator; - } - return lodash; - }; - var _ = runInContext(); - if (typeof define == "function" && typeof define.amd == "object" && define.amd) { - root._ = _; - define(function() { - return _; - }); - } else if (freeModule) { - (freeModule.exports = _)._ = _; - freeExports._ = _; - } else { - root._ = _; - } - }).call(exports); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-parser-https-7696037225-abeddc3d91.zip/node_modules/conventional-commits-parser/lib/parser.js - var require_parser = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-parser-https-7696037225-abeddc3d91.zip/node_modules/conventional-commits-parser/lib/parser.js"(exports, module) { - "use strict"; - var _ = require_lodash(); - var CATCH_ALL = /()(.+)/gi; - var SCISSOR = "# ------------------------ >8 ------------------------"; - function trimOffNewlines(input) { - const result = input.match(/[^\r\n]/); - if (!result) { - return ""; - } - const firstIndex = result.index; - let lastIndex = input.length - 1; - while (input[lastIndex] === "\r" || input[lastIndex] === "\n") { - lastIndex--; - } - return input.substring(firstIndex, lastIndex + 1); - } - function append(src, line) { - if (src) { - src += "\n" + line; - } else { - src = line; - } - return src; - } - function getCommentFilter(char) { - return function(line) { - return line.charAt(0) !== char; - }; - } - function truncateToScissor(lines) { - const scissorIndex = lines.indexOf(SCISSOR); - if (scissorIndex === -1) { - return lines; - } - return lines.slice(0, scissorIndex); - } - function getReferences(input, regex) { - const references = []; - let referenceSentences; - let referenceMatch; - const reApplicable = input.match(regex.references) !== null ? regex.references : CATCH_ALL; - while (referenceSentences = reApplicable.exec(input)) { - const action = referenceSentences[1] || null; - const sentence = referenceSentences[2]; - while (referenceMatch = regex.referenceParts.exec(sentence)) { - let owner = null; - let repository = referenceMatch[1] || ""; - const ownerRepo = repository.split("/"); - if (ownerRepo.length > 1) { - owner = ownerRepo.shift(); - repository = ownerRepo.join("/"); - } - const reference = { - action, - owner, - repository: repository || null, - issue: referenceMatch[3], - raw: referenceMatch[0], - prefix: referenceMatch[2] - }; - references.push(reference); - } - } - return references; - } - function passTrough() { - return true; - } - function parser(raw, options, regex) { - if (!raw || !raw.trim()) { - throw new TypeError("Expected a raw commit"); - } - if (_.isEmpty(options)) { - throw new TypeError("Expected options"); - } - if (_.isEmpty(regex)) { - throw new TypeError("Expected regex"); - } - let currentProcessedField; - let mentionsMatch; - const otherFields = {}; - const commentFilter = typeof options.commentChar === "string" ? getCommentFilter(options.commentChar) : passTrough; - const gpgFilter = (line) => !line.match(/^\s*gpg:/); - const rawLines = trimOffNewlines(raw).split(/\r?\n/); - const lines = truncateToScissor(rawLines).filter(commentFilter).filter(gpgFilter); - let continueNote = false; - let isBody = true; - const headerCorrespondence = _.map(options.headerCorrespondence, function(part) { - return part.trim(); - }); - const revertCorrespondence = _.map(options.revertCorrespondence, function(field) { - return field.trim(); - }); - const mergeCorrespondence = _.map(options.mergeCorrespondence, function(field) { - return field.trim(); - }); - let body = null; - let footer = null; - let header = null; - const mentions = []; - let merge = null; - const notes = []; - const references = []; - let revert = null; - if (lines.length === 0) { - return { - body, - footer, - header, - mentions, - merge, - notes, - references, - revert, - scope: null, - subject: null, - type: null - }; - } - merge = lines.shift(); - const mergeParts = {}; - const headerParts = {}; - body = ""; - footer = ""; - const mergeMatch = merge.match(options.mergePattern); - if (mergeMatch && options.mergePattern) { - merge = mergeMatch[0]; - header = lines.shift(); - while (header !== void 0 && !header.trim()) { - header = lines.shift(); - } - if (!header) { - header = ""; - } - _.forEach(mergeCorrespondence, function(partName, index) { - const partValue = mergeMatch[index + 1] || null; - mergeParts[partName] = partValue; - }); - } else { - header = merge; - merge = null; - _.forEach(mergeCorrespondence, function(partName) { - mergeParts[partName] = null; - }); - } - const headerMatch = header.match(options.headerPattern); - if (headerMatch) { - _.forEach(headerCorrespondence, function(partName, index) { - const partValue = headerMatch[index + 1] || null; - headerParts[partName] = partValue; - }); - } else { - _.forEach(headerCorrespondence, function(partName) { - headerParts[partName] = null; - }); - } - Array.prototype.push.apply(references, getReferences(header, { - references: regex.references, - referenceParts: regex.referenceParts - })); - _.forEach(lines, function(line) { - if (options.fieldPattern) { - const fieldMatch = options.fieldPattern.exec(line); - if (fieldMatch) { - currentProcessedField = fieldMatch[1]; - return; - } - if (currentProcessedField) { - otherFields[currentProcessedField] = append(otherFields[currentProcessedField], line); - return; - } - } - let referenceMatched; - const notesMatch = line.match(regex.notes); - if (notesMatch) { - continueNote = true; - isBody = false; - footer = append(footer, line); - const note = { - title: notesMatch[1], - text: notesMatch[2] - }; - notes.push(note); - return; - } - const lineReferences = getReferences(line, { - references: regex.references, - referenceParts: regex.referenceParts - }); - if (lineReferences.length > 0) { - isBody = false; - referenceMatched = true; - continueNote = false; - } - Array.prototype.push.apply(references, lineReferences); - if (referenceMatched) { - footer = append(footer, line); - return; - } - if (continueNote) { - notes[notes.length - 1].text = append(notes[notes.length - 1].text, line); - footer = append(footer, line); - return; - } - if (isBody) { - body = append(body, line); - } else { - footer = append(footer, line); - } - }); - if (options.breakingHeaderPattern && notes.length === 0) { - const breakingHeader = header.match(options.breakingHeaderPattern); - if (breakingHeader) { - const noteText = breakingHeader[3]; - notes.push({ - title: "BREAKING CHANGE", - text: noteText - }); - } - } - while (mentionsMatch = regex.mentions.exec(raw)) { - mentions.push(mentionsMatch[1]); - } - const revertMatch = raw.match(options.revertPattern); - if (revertMatch) { - revert = {}; - _.forEach(revertCorrespondence, function(partName, index) { - const partValue = revertMatch[index + 1] || null; - revert[partName] = partValue; - }); - } else { - revert = null; - } - _.map(notes, function(note) { - note.text = trimOffNewlines(note.text); - return note; - }); - const msg = _.merge(headerParts, mergeParts, { - merge, - header, - body: body ? trimOffNewlines(body) : null, - footer: footer ? trimOffNewlines(footer) : null, - notes, - references, - mentions, - revert - }, otherFields); - return msg; - } - module.exports = parser; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-parser-https-7696037225-abeddc3d91.zip/node_modules/conventional-commits-parser/lib/regex.js - var require_regex = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-parser-https-7696037225-abeddc3d91.zip/node_modules/conventional-commits-parser/lib/regex.js"(exports, module) { - "use strict"; - var reNomatch = /(?!.*)/; - function join(array, joiner) { - return array.map(function(val) { - return val.trim(); - }).filter(function(val) { - return val.length; - }).join(joiner); - } - function getNotesRegex(noteKeywords, notesPattern) { - if (!noteKeywords) { - return reNomatch; - } - const noteKeywordsSelection = join(noteKeywords, "|"); - if (!notesPattern) { - return new RegExp("^[\\s|*]*(" + noteKeywordsSelection + ")[:\\s]+(.*)", "i"); - } - return notesPattern(noteKeywordsSelection); - } - function getReferencePartsRegex(issuePrefixes, issuePrefixesCaseSensitive) { - if (!issuePrefixes) { - return reNomatch; - } - const flags = issuePrefixesCaseSensitive ? "g" : "gi"; - return new RegExp("(?:.*?)??\\s*([\\w-\\.\\/]*?)??(" + join(issuePrefixes, "|") + ")([\\w-]*\\d+)", flags); - } - function getReferencesRegex(referenceActions) { - if (!referenceActions) { - return /()(.+)/gi; - } - const joinedKeywords = join(referenceActions, "|"); - return new RegExp("(" + joinedKeywords + ")(?:\\s+(.*?))(?=(?:" + joinedKeywords + ")|$)", "gi"); - } - module.exports = function(options) { - options = options || {}; - const reNotes = getNotesRegex(options.noteKeywords, options.notesPattern); - const reReferenceParts = getReferencePartsRegex(options.issuePrefixes, options.issuePrefixesCaseSensitive); - const reReferences = getReferencesRegex(options.referenceActions); - return { - notes: reNotes, - referenceParts: reReferenceParts, - references: reReferences, - mentions: /@([\w-]+)/g - }; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-parser-https-7696037225-abeddc3d91.zip/node_modules/conventional-commits-parser/index.js - var require_conventional_commits_parser = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-parser-https-7696037225-abeddc3d91.zip/node_modules/conventional-commits-parser/index.js"(exports, module) { - "use strict"; - var parser = require_parser(); - var regex = require_regex(); - var through = require_through2(); - var _ = require_lodash(); - function assignOpts(options) { - options = _.extend({ - headerPattern: /^(\w*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$/, - headerCorrespondence: ["type", "scope", "subject"], - referenceActions: [ - "close", - "closes", - "closed", - "fix", - "fixes", - "fixed", - "resolve", - "resolves", - "resolved" - ], - issuePrefixes: ["#"], - noteKeywords: ["BREAKING CHANGE"], - fieldPattern: /^-(.*?)-$/, - revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./, - revertCorrespondence: ["header", "hash"], - warn: function() { - }, - mergePattern: null, - mergeCorrespondence: null - }, options); - if (typeof options.headerPattern === "string") { - options.headerPattern = new RegExp(options.headerPattern); - } - if (typeof options.headerCorrespondence === "string") { - options.headerCorrespondence = options.headerCorrespondence.split(","); - } - if (typeof options.referenceActions === "string") { - options.referenceActions = options.referenceActions.split(","); - } - if (typeof options.issuePrefixes === "string") { - options.issuePrefixes = options.issuePrefixes.split(","); - } - if (typeof options.noteKeywords === "string") { - options.noteKeywords = options.noteKeywords.split(","); - } - if (typeof options.fieldPattern === "string") { - options.fieldPattern = new RegExp(options.fieldPattern); - } - if (typeof options.revertPattern === "string") { - options.revertPattern = new RegExp(options.revertPattern); - } - if (typeof options.revertCorrespondence === "string") { - options.revertCorrespondence = options.revertCorrespondence.split(","); - } - if (typeof options.mergePattern === "string") { - options.mergePattern = new RegExp(options.mergePattern); - } - return options; - } - function conventionalCommitsParser(options) { - options = assignOpts(options); - const reg = regex(options); - return through.obj(function(data, enc, cb) { - let commit; - try { - commit = parser(data.toString(), options, reg); - cb(null, commit); - } catch (err) { - if (options.warn === true) { - cb(err); - } else { - options.warn(err.toString()); - cb(null, ""); - } - } - }); - } - function sync(commit, options) { - options = assignOpts(options); - const reg = regex(options); - return parser(commit, options, reg); - } - module.exports = conventionalCommitsParser; - module.exports.sync = sync; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/dateformat-npm-3.0.3-ed02e5ddbd-ca4911148a.zip/node_modules/dateformat/lib/dateformat.js - var require_dateformat = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/dateformat-npm-3.0.3-ed02e5ddbd-ca4911148a.zip/node_modules/dateformat/lib/dateformat.js"(exports, module) { - (function(global2) { - "use strict"; - var dateFormat = function() { - var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g; - var timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g; - var timezoneClip = /[^-+\dA-Z]/g; - return function(date, mask, utc, gmt) { - if (arguments.length === 1 && kindOf(date) === "string" && !/\d/.test(date)) { - mask = date; - date = void 0; - } - date = date || new Date(); - if (!(date instanceof Date)) { - date = new Date(date); - } - if (isNaN(date)) { - throw TypeError("Invalid date"); - } - mask = String(dateFormat.masks[mask] || mask || dateFormat.masks["default"]); - var maskSlice = mask.slice(0, 4); - if (maskSlice === "UTC:" || maskSlice === "GMT:") { - mask = mask.slice(4); - utc = true; - if (maskSlice === "GMT:") { - gmt = true; - } - } - var _ = utc ? "getUTC" : "get"; - var d = date[_ + "Date"](); - var D = date[_ + "Day"](); - var m = date[_ + "Month"](); - var y = date[_ + "FullYear"](); - var H = date[_ + "Hours"](); - var M = date[_ + "Minutes"](); - var s = date[_ + "Seconds"](); - var L = date[_ + "Milliseconds"](); - var o = utc ? 0 : date.getTimezoneOffset(); - var W = getWeek(date); - var N = getDayOfWeek(date); - var flags = { - d, - dd: pad(d), - ddd: dateFormat.i18n.dayNames[D], - dddd: dateFormat.i18n.dayNames[D + 7], - m: m + 1, - mm: pad(m + 1), - mmm: dateFormat.i18n.monthNames[m], - mmmm: dateFormat.i18n.monthNames[m + 12], - yy: String(y).slice(2), - yyyy: y, - h: H % 12 || 12, - hh: pad(H % 12 || 12), - H, - HH: pad(H), - M, - MM: pad(M), - s, - ss: pad(s), - l: pad(L, 3), - L: pad(Math.round(L / 10)), - t: H < 12 ? dateFormat.i18n.timeNames[0] : dateFormat.i18n.timeNames[1], - tt: H < 12 ? dateFormat.i18n.timeNames[2] : dateFormat.i18n.timeNames[3], - T: H < 12 ? dateFormat.i18n.timeNames[4] : dateFormat.i18n.timeNames[5], - TT: H < 12 ? dateFormat.i18n.timeNames[6] : dateFormat.i18n.timeNames[7], - Z: gmt ? "GMT" : utc ? "UTC" : (String(date).match(timezone) || [""]).pop().replace(timezoneClip, ""), - o: (o > 0 ? "-" : "+") + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4), - S: ["th", "st", "nd", "rd"][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10], - W, - N - }; - return mask.replace(token, function(match) { - if (match in flags) { - return flags[match]; - } - return match.slice(1, match.length - 1); - }); - }; - }(); - dateFormat.masks = { - "default": "ddd mmm dd yyyy HH:MM:ss", - "shortDate": "m/d/yy", - "mediumDate": "mmm d, yyyy", - "longDate": "mmmm d, yyyy", - "fullDate": "dddd, mmmm d, yyyy", - "shortTime": "h:MM TT", - "mediumTime": "h:MM:ss TT", - "longTime": "h:MM:ss TT Z", - "isoDate": "yyyy-mm-dd", - "isoTime": "HH:MM:ss", - "isoDateTime": "yyyy-mm-dd'T'HH:MM:sso", - "isoUtcDateTime": "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", - "expiresHeaderFormat": "ddd, dd mmm yyyy HH:MM:ss Z" - }; - dateFormat.i18n = { - dayNames: [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat", - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - monthNames: [ - "Jan", - "Feb", - "Mar", - "Apr", - "May", - "Jun", - "Jul", - "Aug", - "Sep", - "Oct", - "Nov", - "Dec", - "January", - "February", - "March", - "April", - "May", - "June", - "July", - "August", - "September", - "October", - "November", - "December" - ], - timeNames: [ - "a", - "p", - "am", - "pm", - "A", - "P", - "AM", - "PM" - ] - }; - function pad(val, len) { - val = String(val); - len = len || 2; - while (val.length < len) { - val = "0" + val; - } - return val; - } - function getWeek(date) { - var targetThursday = new Date(date.getFullYear(), date.getMonth(), date.getDate()); - targetThursday.setDate(targetThursday.getDate() - (targetThursday.getDay() + 6) % 7 + 3); - var firstThursday = new Date(targetThursday.getFullYear(), 0, 4); - firstThursday.setDate(firstThursday.getDate() - (firstThursday.getDay() + 6) % 7 + 3); - var ds = targetThursday.getTimezoneOffset() - firstThursday.getTimezoneOffset(); - targetThursday.setHours(targetThursday.getHours() - ds); - var weekDiff = (targetThursday - firstThursday) / (864e5 * 7); - return 1 + Math.floor(weekDiff); - } - function getDayOfWeek(date) { - var dow = date.getDay(); - if (dow === 0) { - dow = 7; - } - return dow; - } - function kindOf(val) { - if (val === null) { - return "null"; - } - if (val === void 0) { - return "undefined"; - } - if (typeof val !== "object") { - return typeof val; - } - if (Array.isArray(val)) { - return "array"; - } - return {}.toString.call(val).slice(8, -1).toLowerCase(); - } - ; - if (typeof define === "function" && define.amd) { - define(function() { - return dateFormat; - }); - } else if (typeof exports === "object") { - module.exports = dateFormat; - } else { - global2.dateFormat = dateFormat; - } - })(exports); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheClear.js - var require_listCacheClear = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheClear.js"(exports, module) { - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - module.exports = listCacheClear; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_assocIndexOf.js - var require_assocIndexOf = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_assocIndexOf.js"(exports, module) { - var eq = require_eq(); - function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; - } - module.exports = assocIndexOf; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheDelete.js - var require_listCacheDelete = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheDelete.js"(exports, module) { - var assocIndexOf = require_assocIndexOf(); - var arrayProto = Array.prototype; - var splice = arrayProto.splice; - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheGet.js - var require_listCacheGet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheGet.js"(exports, module) { - var assocIndexOf = require_assocIndexOf(); - function listCacheGet(key) { - var data = this.__data__, index = assocIndexOf(data, key); - return index < 0 ? void 0 : data[index][1]; - } - module.exports = listCacheGet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheHas.js - var require_listCacheHas = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheHas.js"(exports, module) { - var assocIndexOf = require_assocIndexOf(); - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } - module.exports = listCacheHas; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheSet.js - var require_listCacheSet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheSet.js"(exports, module) { - var assocIndexOf = require_assocIndexOf(); - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_ListCache.js - var require_ListCache = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_ListCache.js"(exports, module) { - var listCacheClear = require_listCacheClear(); - var listCacheDelete = require_listCacheDelete(); - var listCacheGet = require_listCacheGet(); - var listCacheHas = require_listCacheHas(); - var listCacheSet = require_listCacheSet(); - 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]); - } - } - ListCache.prototype.clear = listCacheClear; - ListCache.prototype["delete"] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; - module.exports = ListCache; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackClear.js - var require_stackClear = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackClear.js"(exports, module) { - var ListCache = require_ListCache(); - function stackClear() { - this.__data__ = new ListCache(); - this.size = 0; - } - module.exports = stackClear; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackDelete.js - var require_stackDelete = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackDelete.js"(exports, module) { - function stackDelete(key) { - var data = this.__data__, result = data["delete"](key); - this.size = data.size; - return result; - } - module.exports = stackDelete; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackGet.js - var require_stackGet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackGet.js"(exports, module) { - function stackGet(key) { - return this.__data__.get(key); - } - module.exports = stackGet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackHas.js - var require_stackHas = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackHas.js"(exports, module) { - function stackHas(key) { - return this.__data__.has(key); - } - module.exports = stackHas; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Map.js - var require_Map = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Map.js"(exports, module) { - var getNative = require_getNative(); - var root = require_root(); - var Map2 = getNative(root, "Map"); - module.exports = Map2; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nativeCreate.js - var require_nativeCreate = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nativeCreate.js"(exports, module) { - var getNative = require_getNative(); - var nativeCreate = getNative(Object, "create"); - module.exports = nativeCreate; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashClear.js - var require_hashClear = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashClear.js"(exports, module) { - var nativeCreate = require_nativeCreate(); - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } - module.exports = hashClear; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashDelete.js - var require_hashDelete = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashDelete.js"(exports, module) { - function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; - } - module.exports = hashDelete; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashGet.js - var require_hashGet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashGet.js"(exports, module) { - var nativeCreate = require_nativeCreate(); - var HASH_UNDEFINED = "__lodash_hash_undefined__"; - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? void 0 : result; - } - return hasOwnProperty.call(data, key) ? data[key] : void 0; - } - module.exports = hashGet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashHas.js - var require_hashHas = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashHas.js"(exports, module) { - var nativeCreate = require_nativeCreate(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key); - } - module.exports = hashHas; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashSet.js - var require_hashSet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashSet.js"(exports, module) { - var nativeCreate = require_nativeCreate(); - var HASH_UNDEFINED = "__lodash_hash_undefined__"; - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value; - return this; - } - module.exports = hashSet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Hash.js - var require_Hash = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Hash.js"(exports, module) { - var hashClear = require_hashClear(); - var hashDelete = require_hashDelete(); - var hashGet = require_hashGet(); - var hashHas = require_hashHas(); - var hashSet = require_hashSet(); - 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]); - } - } - Hash.prototype.clear = hashClear; - Hash.prototype["delete"] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; - module.exports = Hash; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheClear.js - var require_mapCacheClear = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheClear.js"(exports, module) { - var Hash = require_Hash(); - var ListCache = require_ListCache(); - var Map2 = require_Map(); - function mapCacheClear() { - this.size = 0; - this.__data__ = { - "hash": new Hash(), - "map": new (Map2 || ListCache)(), - "string": new Hash() - }; - } - module.exports = mapCacheClear; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isKeyable.js - var require_isKeyable = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isKeyable.js"(exports, module) { - function isKeyable(value) { - var type = typeof value; - return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; - } - module.exports = isKeyable; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getMapData.js - var require_getMapData = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getMapData.js"(exports, module) { - var isKeyable = require_isKeyable(); - function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; - } - module.exports = getMapData; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheDelete.js - var require_mapCacheDelete = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheDelete.js"(exports, module) { - var getMapData = require_getMapData(); - function mapCacheDelete(key) { - var result = getMapData(this, key)["delete"](key); - this.size -= result ? 1 : 0; - return result; - } - module.exports = mapCacheDelete; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheGet.js - var require_mapCacheGet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheGet.js"(exports, module) { - var getMapData = require_getMapData(); - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } - module.exports = mapCacheGet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheHas.js - var require_mapCacheHas = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheHas.js"(exports, module) { - var getMapData = require_getMapData(); - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } - module.exports = mapCacheHas; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheSet.js - var require_mapCacheSet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheSet.js"(exports, module) { - var getMapData = require_getMapData(); - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_MapCache.js - var require_MapCache = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_MapCache.js"(exports, module) { - var mapCacheClear = require_mapCacheClear(); - var mapCacheDelete = require_mapCacheDelete(); - var mapCacheGet = require_mapCacheGet(); - var mapCacheHas = require_mapCacheHas(); - var mapCacheSet = require_mapCacheSet(); - 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]); - } - } - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype["delete"] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; - module.exports = MapCache; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackSet.js - var require_stackSet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackSet.js"(exports, module) { - var ListCache = require_ListCache(); - var Map2 = require_Map(); - var MapCache = require_MapCache(); - var LARGE_ARRAY_SIZE = 200; - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map2 || 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Stack.js - var require_Stack = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Stack.js"(exports, module) { - var ListCache = require_ListCache(); - var stackClear = require_stackClear(); - var stackDelete = require_stackDelete(); - var stackGet = require_stackGet(); - var stackHas = require_stackHas(); - var stackSet = require_stackSet(); - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } - Stack.prototype.clear = stackClear; - Stack.prototype["delete"] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; - module.exports = Stack; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setCacheAdd.js - var require_setCacheAdd = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setCacheAdd.js"(exports, module) { - var HASH_UNDEFINED = "__lodash_hash_undefined__"; - function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; - } - module.exports = setCacheAdd; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setCacheHas.js - var require_setCacheHas = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setCacheHas.js"(exports, module) { - function setCacheHas(value) { - return this.__data__.has(value); - } - module.exports = setCacheHas; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_SetCache.js - var require_SetCache = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_SetCache.js"(exports, module) { - var MapCache = require_MapCache(); - var setCacheAdd = require_setCacheAdd(); - var setCacheHas = require_setCacheHas(); - function SetCache(values) { - var index = -1, length = values == null ? 0 : values.length; - this.__data__ = new MapCache(); - while (++index < length) { - this.add(values[index]); - } - } - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; - SetCache.prototype.has = setCacheHas; - module.exports = SetCache; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arraySome.js - var require_arraySome = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arraySome.js"(exports, module) { - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_cacheHas.js - var require_cacheHas = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_cacheHas.js"(exports, module) { - function cacheHas(cache, key) { - return cache.has(key); - } - module.exports = cacheHas; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_equalArrays.js - var require_equalArrays = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_equalArrays.js"(exports, module) { - var SetCache = require_SetCache(); - var arraySome = require_arraySome(); - var cacheHas = require_cacheHas(); - var COMPARE_PARTIAL_FLAG = 1; - var COMPARE_UNORDERED_FLAG = 2; - 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; - } - 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() : void 0; - stack.set(array, other); - stack.set(other, array); - 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 !== void 0) { - if (compared) { - continue; - } - result = false; - break; - } - if (seen) { - if (!arraySome(other, function(othValue2, othIndex) { - if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Uint8Array.js - var require_Uint8Array = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Uint8Array.js"(exports, module) { - var root = require_root(); - var Uint8Array2 = root.Uint8Array; - module.exports = Uint8Array2; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapToArray.js - var require_mapToArray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapToArray.js"(exports, module) { - function mapToArray(map) { - var index = -1, result = Array(map.size); - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; - } - module.exports = mapToArray; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setToArray.js - var require_setToArray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setToArray.js"(exports, module) { - function setToArray(set) { - var index = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index] = value; - }); - return result; - } - module.exports = setToArray; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_equalByTag.js - var require_equalByTag = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_equalByTag.js"(exports, module) { - var Symbol2 = require_Symbol(); - var Uint8Array2 = require_Uint8Array(); - var eq = require_eq(); - var equalArrays = require_equalArrays(); - var mapToArray = require_mapToArray(); - var setToArray = require_setToArray(); - var COMPARE_PARTIAL_FLAG = 1; - var COMPARE_UNORDERED_FLAG = 2; - var boolTag = "[object Boolean]"; - var dateTag = "[object Date]"; - var errorTag = "[object Error]"; - var mapTag = "[object Map]"; - var numberTag = "[object Number]"; - var regexpTag = "[object RegExp]"; - var setTag = "[object Set]"; - var stringTag = "[object String]"; - var symbolTag = "[object Symbol]"; - var arrayBufferTag = "[object ArrayBuffer]"; - var dataViewTag = "[object DataView]"; - var symbolProto = Symbol2 ? Symbol2.prototype : void 0; - var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; - 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 Uint8Array2(object), new Uint8Array2(other))) { - return false; - } - return true; - case boolTag: - case dateTag: - case numberTag: - return eq(+object, +other); - case errorTag: - return object.name == other.name && object.message == other.message; - case regexpTag: - case stringTag: - 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; - } - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= COMPARE_UNORDERED_FLAG; - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayPush.js - var require_arrayPush = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayPush.js"(exports, module) { - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseGetAllKeys.js - var require_baseGetAllKeys = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseGetAllKeys.js"(exports, module) { - var arrayPush = require_arrayPush(); - var isArray = require_isArray(); - function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result = keysFunc(object); - return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); - } - module.exports = baseGetAllKeys; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayFilter.js - var require_arrayFilter = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayFilter.js"(exports, module) { - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/stubArray.js - var require_stubArray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/stubArray.js"(exports, module) { - function stubArray() { - return []; - } - module.exports = stubArray; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getSymbols.js - var require_getSymbols = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getSymbols.js"(exports, module) { - var arrayFilter = require_arrayFilter(); - var stubArray = require_stubArray(); - var objectProto = Object.prototype; - var propertyIsEnumerable = objectProto.propertyIsEnumerable; - var nativeGetSymbols = Object.getOwnPropertySymbols; - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getAllKeys.js - var require_getAllKeys = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getAllKeys.js"(exports, module) { - var baseGetAllKeys = require_baseGetAllKeys(); - var getSymbols = require_getSymbols(); - var keys = require_keys(); - function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); - } - module.exports = getAllKeys; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_equalObjects.js - var require_equalObjects = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_equalObjects.js"(exports, module) { - var getAllKeys = require_getAllKeys(); - var COMPARE_PARTIAL_FLAG = 1; - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - 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; - } - } - 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); - } - if (!(compared === void 0 ? 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; - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_DataView.js - var require_DataView = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_DataView.js"(exports, module) { - var getNative = require_getNative(); - var root = require_root(); - var DataView = getNative(root, "DataView"); - module.exports = DataView; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Promise.js - var require_Promise = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Promise.js"(exports, module) { - var getNative = require_getNative(); - var root = require_root(); - var Promise2 = getNative(root, "Promise"); - module.exports = Promise2; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Set.js - var require_Set = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Set.js"(exports, module) { - var getNative = require_getNative(); - var root = require_root(); - var Set2 = getNative(root, "Set"); - module.exports = Set2; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_WeakMap.js - var require_WeakMap = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_WeakMap.js"(exports, module) { - var getNative = require_getNative(); - var root = require_root(); - var WeakMap = getNative(root, "WeakMap"); - module.exports = WeakMap; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getTag.js - var require_getTag = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getTag.js"(exports, module) { - var DataView = require_DataView(); - var Map2 = require_Map(); - var Promise2 = require_Promise(); - var Set2 = require_Set(); - var WeakMap = require_WeakMap(); - var baseGetTag = require_baseGetTag(); - var toSource = require_toSource(); - var mapTag = "[object Map]"; - var objectTag = "[object Object]"; - var promiseTag = "[object Promise]"; - var setTag = "[object Set]"; - var weakMapTag = "[object WeakMap]"; - var dataViewTag = "[object DataView]"; - var dataViewCtorString = toSource(DataView); - var mapCtorString = toSource(Map2); - var promiseCtorString = toSource(Promise2); - var setCtorString = toSource(Set2); - var weakMapCtorString = toSource(WeakMap); - var getTag = baseGetTag; - if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) { - getTag = function(value) { - var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsEqualDeep.js - var require_baseIsEqualDeep = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsEqualDeep.js"(exports, module) { - var Stack = require_Stack(); - var equalArrays = require_equalArrays(); - var equalByTag = require_equalByTag(); - var equalObjects = require_equalObjects(); - var getTag = require_getTag(); - var isArray = require_isArray(); - var isBuffer = require_isBuffer(); - var isTypedArray = require_isTypedArray(); - var COMPARE_PARTIAL_FLAG = 1; - var argsTag = "[object Arguments]"; - var arrayTag = "[object Array]"; - var objectTag = "[object Object]"; - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsEqual.js - var require_baseIsEqual = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsEqual.js"(exports, module) { - var baseIsEqualDeep = require_baseIsEqualDeep(); - var isObjectLike = require_isObjectLike(); - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsMatch.js - var require_baseIsMatch = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsMatch.js"(exports, module) { - var Stack = require_Stack(); - var baseIsEqual = require_baseIsEqual(); - var COMPARE_PARTIAL_FLAG = 1; - var COMPARE_UNORDERED_FLAG = 2; - 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 === void 0 && !(key in object)) { - return false; - } - } else { - var stack = new Stack(); - if (customizer) { - var result = customizer(objValue, srcValue, key, object, source, stack); - } - if (!(result === void 0 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result)) { - return false; - } - } - } - return true; - } - module.exports = baseIsMatch; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isStrictComparable.js - var require_isStrictComparable = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isStrictComparable.js"(exports, module) { - var isObject = require_isObject(); - function isStrictComparable(value) { - return value === value && !isObject(value); - } - module.exports = isStrictComparable; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getMatchData.js - var require_getMatchData = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getMatchData.js"(exports, module) { - var isStrictComparable = require_isStrictComparable(); - var keys = require_keys(); - 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; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isMatch.js - var require_isMatch = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isMatch.js"(exports, module) { - var baseIsMatch = require_baseIsMatch(); - var getMatchData = require_getMatchData(); - function isMatch(object, source) { - return object === source || baseIsMatch(object, source, getMatchData(source)); - } - module.exports = isMatch; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/modify-values-npm-1.0.1-9b2377e166-8296610c60.zip/node_modules/modify-values/index.js - var require_modify_values = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/modify-values-npm-1.0.1-9b2377e166-8296610c60.zip/node_modules/modify-values/index.js"(exports, module) { - "use strict"; - module.exports = function(obj, modifier) { - var key; - var val; - var ret = {}; - var keys = Object.keys(Object(obj)); - for (var i = 0; i < keys.length; i++) { - key = keys[i]; - val = obj[key]; - ret[key] = modifier(val, key); - } - return ret; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-filter-https-62bca97ea6-d46be6d4df.zip/node_modules/conventional-commits-filter/index.js - var require_conventional_commits_filter = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-filter-https-62bca97ea6-d46be6d4df.zip/node_modules/conventional-commits-filter/index.js"(exports, module) { - "use strict"; - var isMatch = require_isMatch(); - var modifyValues = require_modify_values(); - function modifyValue(val) { - if (typeof val === "string") { - return val.trim(); - } - return val; - } - function conventionalCommitsFilter(commits) { - if (!Array.isArray(commits)) { - throw new TypeError("Expected an array"); - } - let ret = []; - const ignores = []; - const remove = []; - commits.forEach(function(commit) { - if (commit.revert) { - ignores.push(commit); - } - ret.push(commit); - }); - ret = ret.filter(function(commit) { - let ignoreThis = false; - commit = commit.raw ? modifyValues(commit.raw, modifyValue) : modifyValues(commit, modifyValue); - ignores.some(function(ignoreCommit) { - const ignore = modifyValues(ignoreCommit.revert, modifyValue); - ignoreThis = isMatch(commit, ignore); - if (ignoreThis) { - remove.push(ignoreCommit.hash); - } - return ignoreThis; - }); - return !ignoreThis; - }); - ret = ret.filter(function(commit) { - return remove.indexOf(commit.hash) !== 0; - }); - return ret; - } - module.exports = conventionalCommitsFilter; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/utils.js - var require_utils = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/utils.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.extend = extend; - exports.indexOf = indexOf; - exports.escapeExpression = escapeExpression; - exports.isEmpty = isEmpty; - exports.createFrame = createFrame; - exports.blockParams = blockParams; - exports.appendContextPath = appendContextPath; - var escape = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'", - "`": "`", - "=": "=" - }; - var badChars = /[&<>"'`=]/g; - var possible = /[&<>"'`=]/; - function escapeChar(chr) { - return escape[chr]; - } - function extend(obj) { - for (var i = 1; i < arguments.length; i++) { - for (var key in arguments[i]) { - if (Object.prototype.hasOwnProperty.call(arguments[i], key)) { - obj[key] = arguments[i][key]; - } - } - } - return obj; - } - var toString = Object.prototype.toString; - exports.toString = toString; - var isFunction = function isFunction2(value) { - return typeof value === "function"; - }; - if (isFunction(/x/)) { - exports.isFunction = isFunction = function(value) { - return typeof value === "function" && toString.call(value) === "[object Function]"; - }; - } - exports.isFunction = isFunction; - var isArray = Array.isArray || function(value) { - return value && typeof value === "object" ? toString.call(value) === "[object Array]" : false; - }; - exports.isArray = isArray; - function indexOf(array, value) { - for (var i = 0, len = array.length; i < len; i++) { - if (array[i] === value) { - return i; - } - } - return -1; - } - function escapeExpression(string) { - if (typeof string !== "string") { - if (string && string.toHTML) { - return string.toHTML(); - } else if (string == null) { - return ""; - } else if (!string) { - return string + ""; - } - string = "" + string; - } - if (!possible.test(string)) { - return string; - } - return string.replace(badChars, escapeChar); - } - function isEmpty(value) { - if (!value && value !== 0) { - return true; - } else if (isArray(value) && value.length === 0) { - return true; - } else { - return false; - } - } - function createFrame(object) { - var frame = extend({}, object); - frame._parent = object; - return frame; - } - function blockParams(params, ids) { - params.path = ids; - return params; - } - function appendContextPath(contextPath, id) { - return (contextPath ? contextPath + "." : "") + id; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/exception.js - var require_exception = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/exception.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var errorProps = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"]; - function Exception(message, node) { - var loc = node && node.loc, line = void 0, endLineNumber = void 0, column = void 0, endColumn = void 0; - if (loc) { - line = loc.start.line; - endLineNumber = loc.end.line; - column = loc.start.column; - endColumn = loc.end.column; - message += " - " + line + ":" + column; - } - var tmp = Error.prototype.constructor.call(this, message); - for (var idx = 0; idx < errorProps.length; idx++) { - this[errorProps[idx]] = tmp[errorProps[idx]]; - } - if (Error.captureStackTrace) { - Error.captureStackTrace(this, Exception); - } - try { - if (loc) { - this.lineNumber = line; - this.endLineNumber = endLineNumber; - if (Object.defineProperty) { - Object.defineProperty(this, "column", { - value: column, - enumerable: true - }); - Object.defineProperty(this, "endColumn", { - value: endColumn, - enumerable: true - }); - } else { - this.column = column; - this.endColumn = endColumn; - } - } - } catch (nop) { - } - } - Exception.prototype = new Error(); - exports["default"] = Exception; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js - var require_block_helper_missing = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var _utils = require_utils(); - exports["default"] = function(instance) { - instance.registerHelper("blockHelperMissing", function(context, options) { - var inverse = options.inverse, fn = options.fn; - if (context === true) { - return fn(this); - } else if (context === false || context == null) { - return inverse(this); - } else if (_utils.isArray(context)) { - if (context.length > 0) { - if (options.ids) { - options.ids = [options.name]; - } - return instance.helpers.each(context, options); - } else { - return inverse(this); - } - } else { - if (options.data && options.ids) { - var data = _utils.createFrame(options.data); - data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name); - options = {data}; - } - return fn(context, options); - } - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js - var require_each = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _utils = require_utils(); - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - exports["default"] = function(instance) { - instance.registerHelper("each", function(context, options) { - if (!options) { - throw new _exception2["default"]("Must pass iterator to #each"); - } - var fn = options.fn, inverse = options.inverse, i = 0, ret = "", data = void 0, contextPath = void 0; - if (options.data && options.ids) { - contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + "."; - } - if (_utils.isFunction(context)) { - context = context.call(this); - } - if (options.data) { - data = _utils.createFrame(options.data); - } - function execIteration(field, index, last) { - if (data) { - data.key = field; - data.index = index; - data.first = index === 0; - data.last = !!last; - if (contextPath) { - data.contextPath = contextPath + field; - } - } - ret = ret + fn(context[field], { - data, - blockParams: _utils.blockParams([context[field], field], [contextPath + field, null]) - }); - } - if (context && typeof context === "object") { - if (_utils.isArray(context)) { - for (var j = context.length; i < j; i++) { - if (i in context) { - execIteration(i, i, i === context.length - 1); - } - } - } else if (global.Symbol && context[global.Symbol.iterator]) { - var newContext = []; - var iterator = context[global.Symbol.iterator](); - for (var it = iterator.next(); !it.done; it = iterator.next()) { - newContext.push(it.value); - } - context = newContext; - for (var j = context.length; i < j; i++) { - execIteration(i, i, i === context.length - 1); - } - } else { - (function() { - var priorKey = void 0; - Object.keys(context).forEach(function(key) { - if (priorKey !== void 0) { - execIteration(priorKey, i - 1); - } - priorKey = key; - i++; - }); - if (priorKey !== void 0) { - execIteration(priorKey, i - 1, true); - } - })(); - } - } - if (i === 0) { - ret = inverse(this); - } - return ret; - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js - var require_helper_missing = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - exports["default"] = function(instance) { - instance.registerHelper("helperMissing", function() { - if (arguments.length === 1) { - return void 0; - } else { - throw new _exception2["default"]('Missing helper: "' + arguments[arguments.length - 1].name + '"'); - } - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js - var require_if = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _utils = require_utils(); - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - exports["default"] = function(instance) { - instance.registerHelper("if", function(conditional, options) { - if (arguments.length != 2) { - throw new _exception2["default"]("#if requires exactly one argument"); - } - if (_utils.isFunction(conditional)) { - conditional = conditional.call(this); - } - if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) { - return options.inverse(this); - } else { - return options.fn(this); - } - }); - instance.registerHelper("unless", function(conditional, options) { - if (arguments.length != 2) { - throw new _exception2["default"]("#unless requires exactly one argument"); - } - return instance.helpers["if"].call(this, conditional, { - fn: options.inverse, - inverse: options.fn, - hash: options.hash - }); - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/log.js - var require_log = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/log.js"(exports, module) { - "use strict"; - exports.__esModule = true; - exports["default"] = function(instance) { - instance.registerHelper("log", function() { - var args = [void 0], options = arguments[arguments.length - 1]; - for (var i = 0; i < arguments.length - 1; i++) { - args.push(arguments[i]); - } - var level = 1; - if (options.hash.level != null) { - level = options.hash.level; - } else if (options.data && options.data.level != null) { - level = options.data.level; - } - args[0] = level; - instance.log.apply(instance, args); - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js - var require_lookup = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js"(exports, module) { - "use strict"; - exports.__esModule = true; - exports["default"] = function(instance) { - instance.registerHelper("lookup", function(obj, field, options) { - if (!obj) { - return obj; - } - return options.lookupProperty(obj, field); - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/with.js - var require_with = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/with.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _utils = require_utils(); - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - exports["default"] = function(instance) { - instance.registerHelper("with", function(context, options) { - if (arguments.length != 2) { - throw new _exception2["default"]("#with requires exactly one argument"); - } - if (_utils.isFunction(context)) { - context = context.call(this); - } - var fn = options.fn; - if (!_utils.isEmpty(context)) { - var data = options.data; - if (options.data && options.ids) { - data = _utils.createFrame(options.data); - data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]); - } - return fn(context, { - data, - blockParams: _utils.blockParams([context], [data && data.contextPath]) - }); - } else { - return options.inverse(this); - } - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers.js - var require_helpers = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.registerDefaultHelpers = registerDefaultHelpers; - exports.moveHelperToHooks = moveHelperToHooks; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _helpersBlockHelperMissing = require_block_helper_missing(); - var _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing); - var _helpersEach = require_each(); - var _helpersEach2 = _interopRequireDefault(_helpersEach); - var _helpersHelperMissing = require_helper_missing(); - var _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing); - var _helpersIf = require_if(); - var _helpersIf2 = _interopRequireDefault(_helpersIf); - var _helpersLog = require_log(); - var _helpersLog2 = _interopRequireDefault(_helpersLog); - var _helpersLookup = require_lookup(); - var _helpersLookup2 = _interopRequireDefault(_helpersLookup); - var _helpersWith = require_with(); - var _helpersWith2 = _interopRequireDefault(_helpersWith); - function registerDefaultHelpers(instance) { - _helpersBlockHelperMissing2["default"](instance); - _helpersEach2["default"](instance); - _helpersHelperMissing2["default"](instance); - _helpersIf2["default"](instance); - _helpersLog2["default"](instance); - _helpersLookup2["default"](instance); - _helpersWith2["default"](instance); - } - function moveHelperToHooks(instance, helperName, keepHelper) { - if (instance.helpers[helperName]) { - instance.hooks[helperName] = instance.helpers[helperName]; - if (!keepHelper) { - delete instance.helpers[helperName]; - } - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js - var require_inline = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var _utils = require_utils(); - exports["default"] = function(instance) { - instance.registerDecorator("inline", function(fn, props, container, options) { - var ret = fn; - if (!props.partials) { - props.partials = {}; - ret = function(context, options2) { - var original = container.partials; - container.partials = _utils.extend({}, original, props.partials); - var ret2 = fn(context, options2); - container.partials = original; - return ret2; - }; - } - props.partials[options.args[0]] = options.fn; - return ret; - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/decorators.js - var require_decorators = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/decorators.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.registerDefaultDecorators = registerDefaultDecorators; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _decoratorsInline = require_inline(); - var _decoratorsInline2 = _interopRequireDefault(_decoratorsInline); - function registerDefaultDecorators(instance) { - _decoratorsInline2["default"](instance); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/logger.js - var require_logger = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/logger.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var _utils = require_utils(); - var logger = { - methodMap: ["debug", "info", "warn", "error"], - level: "info", - lookupLevel: function lookupLevel(level) { - if (typeof level === "string") { - var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase()); - if (levelMap >= 0) { - level = levelMap; - } else { - level = parseInt(level, 10); - } - } - return level; - }, - log: function log(level) { - level = logger.lookupLevel(level); - if (typeof console !== "undefined" && logger.lookupLevel(logger.level) <= level) { - var method = logger.methodMap[level]; - if (!console[method]) { - method = "log"; - } - for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - message[_key - 1] = arguments[_key]; - } - console[method].apply(console, message); - } - } - }; - exports["default"] = logger; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js - var require_create_new_lookup_object = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.createNewLookupObject = createNewLookupObject; - var _utils = require_utils(); - function createNewLookupObject() { - for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) { - sources[_key] = arguments[_key]; - } - return _utils.extend.apply(void 0, [Object.create(null)].concat(sources)); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js - var require_proto_access = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.createProtoAccessControl = createProtoAccessControl; - exports.resultIsAllowed = resultIsAllowed; - exports.resetLoggedProperties = resetLoggedProperties; - function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {}; - if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) - newObj[key] = obj[key]; - } - } - newObj["default"] = obj; - return newObj; - } - } - var _createNewLookupObject = require_create_new_lookup_object(); - var _logger = require_logger(); - var logger = _interopRequireWildcard(_logger); - var loggedProperties = Object.create(null); - function createProtoAccessControl(runtimeOptions) { - var defaultMethodWhiteList = Object.create(null); - defaultMethodWhiteList["constructor"] = false; - defaultMethodWhiteList["__defineGetter__"] = false; - defaultMethodWhiteList["__defineSetter__"] = false; - defaultMethodWhiteList["__lookupGetter__"] = false; - var defaultPropertyWhiteList = Object.create(null); - defaultPropertyWhiteList["__proto__"] = false; - return { - properties: { - whitelist: _createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList, runtimeOptions.allowedProtoProperties), - defaultValue: runtimeOptions.allowProtoPropertiesByDefault - }, - methods: { - whitelist: _createNewLookupObject.createNewLookupObject(defaultMethodWhiteList, runtimeOptions.allowedProtoMethods), - defaultValue: runtimeOptions.allowProtoMethodsByDefault - } - }; - } - function resultIsAllowed(result, protoAccessControl, propertyName) { - if (typeof result === "function") { - return checkWhiteList(protoAccessControl.methods, propertyName); - } else { - return checkWhiteList(protoAccessControl.properties, propertyName); - } - } - function checkWhiteList(protoAccessControlForType, propertyName) { - if (protoAccessControlForType.whitelist[propertyName] !== void 0) { - return protoAccessControlForType.whitelist[propertyName] === true; - } - if (protoAccessControlForType.defaultValue !== void 0) { - return protoAccessControlForType.defaultValue; - } - logUnexpecedPropertyAccessOnce(propertyName); - return false; - } - function logUnexpecedPropertyAccessOnce(propertyName) { - if (loggedProperties[propertyName] !== true) { - loggedProperties[propertyName] = true; - logger.log("error", 'Handlebars: Access has been denied to resolve the property "' + propertyName + '" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'); - } - } - function resetLoggedProperties() { - Object.keys(loggedProperties).forEach(function(propertyName) { - delete loggedProperties[propertyName]; - }); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/base.js - var require_base = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/base.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.HandlebarsEnvironment = HandlebarsEnvironment; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _utils = require_utils(); - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - var _helpers = require_helpers(); - var _decorators = require_decorators(); - var _logger = require_logger(); - var _logger2 = _interopRequireDefault(_logger); - var _internalProtoAccess = require_proto_access(); - var VERSION = "4.7.7"; - exports.VERSION = VERSION; - var COMPILER_REVISION = 8; - exports.COMPILER_REVISION = COMPILER_REVISION; - var LAST_COMPATIBLE_COMPILER_REVISION = 7; - exports.LAST_COMPATIBLE_COMPILER_REVISION = LAST_COMPATIBLE_COMPILER_REVISION; - var REVISION_CHANGES = { - 1: "<= 1.0.rc.2", - 2: "== 1.0.0-rc.3", - 3: "== 1.0.0-rc.4", - 4: "== 1.x.x", - 5: "== 2.0.0-alpha.x", - 6: ">= 2.0.0-beta.1", - 7: ">= 4.0.0 <4.3.0", - 8: ">= 4.3.0" - }; - exports.REVISION_CHANGES = REVISION_CHANGES; - var objectType = "[object Object]"; - function HandlebarsEnvironment(helpers, partials, decorators) { - this.helpers = helpers || {}; - this.partials = partials || {}; - this.decorators = decorators || {}; - _helpers.registerDefaultHelpers(this); - _decorators.registerDefaultDecorators(this); - } - HandlebarsEnvironment.prototype = { - constructor: HandlebarsEnvironment, - logger: _logger2["default"], - log: _logger2["default"].log, - registerHelper: function registerHelper(name, fn) { - if (_utils.toString.call(name) === objectType) { - if (fn) { - throw new _exception2["default"]("Arg not supported with multiple helpers"); - } - _utils.extend(this.helpers, name); - } else { - this.helpers[name] = fn; - } - }, - unregisterHelper: function unregisterHelper(name) { - delete this.helpers[name]; - }, - registerPartial: function registerPartial(name, partial) { - if (_utils.toString.call(name) === objectType) { - _utils.extend(this.partials, name); - } else { - if (typeof partial === "undefined") { - throw new _exception2["default"]('Attempting to register a partial called "' + name + '" as undefined'); - } - this.partials[name] = partial; - } - }, - unregisterPartial: function unregisterPartial(name) { - delete this.partials[name]; - }, - registerDecorator: function registerDecorator(name, fn) { - if (_utils.toString.call(name) === objectType) { - if (fn) { - throw new _exception2["default"]("Arg not supported with multiple decorators"); - } - _utils.extend(this.decorators, name); - } else { - this.decorators[name] = fn; - } - }, - unregisterDecorator: function unregisterDecorator(name) { - delete this.decorators[name]; - }, - resetLoggedPropertyAccesses: function resetLoggedPropertyAccesses() { - _internalProtoAccess.resetLoggedProperties(); - } - }; - var log = _logger2["default"].log; - exports.log = log; - exports.createFrame = _utils.createFrame; - exports.logger = _logger2["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/safe-string.js - var require_safe_string = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/safe-string.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function SafeString(string) { - this.string = string; - } - SafeString.prototype.toString = SafeString.prototype.toHTML = function() { - return "" + this.string; - }; - exports["default"] = SafeString; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js - var require_wrapHelper = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.wrapHelper = wrapHelper; - function wrapHelper(helper, transformOptionsFn) { - if (typeof helper !== "function") { - return helper; - } - var wrapper = function wrapper2() { - var options = arguments[arguments.length - 1]; - arguments[arguments.length - 1] = transformOptionsFn(options); - return helper.apply(this, arguments); - }; - return wrapper; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/runtime.js - var require_runtime = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/runtime.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.checkRevision = checkRevision; - exports.template = template; - exports.wrapProgram = wrapProgram; - exports.resolvePartial = resolvePartial; - exports.invokePartial = invokePartial; - exports.noop = noop; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {}; - if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) - newObj[key] = obj[key]; - } - } - newObj["default"] = obj; - return newObj; - } - } - var _utils = require_utils(); - var Utils = _interopRequireWildcard(_utils); - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - var _base = require_base(); - var _helpers = require_helpers(); - var _internalWrapHelper = require_wrapHelper(); - var _internalProtoAccess = require_proto_access(); - function checkRevision(compilerInfo) { - var compilerRevision = compilerInfo && compilerInfo[0] || 1, currentRevision = _base.COMPILER_REVISION; - if (compilerRevision >= _base.LAST_COMPATIBLE_COMPILER_REVISION && compilerRevision <= _base.COMPILER_REVISION) { - return; - } - if (compilerRevision < _base.LAST_COMPATIBLE_COMPILER_REVISION) { - var runtimeVersions = _base.REVISION_CHANGES[currentRevision], compilerVersions = _base.REVISION_CHANGES[compilerRevision]; - throw new _exception2["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + runtimeVersions + ") or downgrade your runtime to an older version (" + compilerVersions + ")."); - } else { - throw new _exception2["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + compilerInfo[1] + ")."); - } - } - function template(templateSpec, env) { - if (!env) { - throw new _exception2["default"]("No environment passed to template"); - } - if (!templateSpec || !templateSpec.main) { - throw new _exception2["default"]("Unknown template object: " + typeof templateSpec); - } - templateSpec.main.decorator = templateSpec.main_d; - env.VM.checkRevision(templateSpec.compiler); - var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7; - function invokePartialWrapper(partial, context, options) { - if (options.hash) { - context = Utils.extend({}, context, options.hash); - if (options.ids) { - options.ids[0] = true; - } - } - partial = env.VM.resolvePartial.call(this, partial, context, options); - var extendedOptions = Utils.extend({}, options, { - hooks: this.hooks, - protoAccessControl: this.protoAccessControl - }); - var result = env.VM.invokePartial.call(this, partial, context, extendedOptions); - if (result == null && env.compile) { - options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env); - result = options.partials[options.name](context, extendedOptions); - } - if (result != null) { - if (options.indent) { - var lines = result.split("\n"); - for (var i = 0, l = lines.length; i < l; i++) { - if (!lines[i] && i + 1 === l) { - break; - } - lines[i] = options.indent + lines[i]; - } - result = lines.join("\n"); - } - return result; - } else { - throw new _exception2["default"]("The partial " + options.name + " could not be compiled when running in runtime-only mode"); - } - } - var container = { - strict: function strict(obj, name, loc) { - if (!obj || !(name in obj)) { - throw new _exception2["default"]('"' + name + '" not defined in ' + obj, { - loc - }); - } - return container.lookupProperty(obj, name); - }, - lookupProperty: function lookupProperty(parent, propertyName) { - var result = parent[propertyName]; - if (result == null) { - return result; - } - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return result; - } - if (_internalProtoAccess.resultIsAllowed(result, container.protoAccessControl, propertyName)) { - return result; - } - return void 0; - }, - lookup: function lookup(depths, name) { - var len = depths.length; - for (var i = 0; i < len; i++) { - var result = depths[i] && container.lookupProperty(depths[i], name); - if (result != null) { - return depths[i][name]; - } - } - }, - lambda: function lambda(current, context) { - return typeof current === "function" ? current.call(context) : current; - }, - escapeExpression: Utils.escapeExpression, - invokePartial: invokePartialWrapper, - fn: function fn(i) { - var ret2 = templateSpec[i]; - ret2.decorator = templateSpec[i + "_d"]; - return ret2; - }, - programs: [], - program: function program(i, data, declaredBlockParams, blockParams, depths) { - var programWrapper = this.programs[i], fn = this.fn(i); - if (data || depths || blockParams || declaredBlockParams) { - programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths); - } else if (!programWrapper) { - programWrapper = this.programs[i] = wrapProgram(this, i, fn); - } - return programWrapper; - }, - data: function data(value, depth) { - while (value && depth--) { - value = value._parent; - } - return value; - }, - mergeIfNeeded: function mergeIfNeeded(param, common) { - var obj = param || common; - if (param && common && param !== common) { - obj = Utils.extend({}, common, param); - } - return obj; - }, - nullContext: Object.seal({}), - noop: env.VM.noop, - compilerInfo: templateSpec.compiler - }; - function ret(context) { - var options = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1]; - var data = options.data; - ret._setup(options); - if (!options.partial && templateSpec.useData) { - data = initData(context, data); - } - var depths = void 0, blockParams = templateSpec.useBlockParams ? [] : void 0; - if (templateSpec.useDepths) { - if (options.depths) { - depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths; - } else { - depths = [context]; - } - } - function main(context2) { - return "" + templateSpec.main(container, context2, container.helpers, container.partials, data, blockParams, depths); - } - main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams); - return main(context, options); - } - ret.isTop = true; - ret._setup = function(options) { - if (!options.partial) { - var mergedHelpers = Utils.extend({}, env.helpers, options.helpers); - wrapHelpersToPassLookupProperty(mergedHelpers, container); - container.helpers = mergedHelpers; - if (templateSpec.usePartial) { - container.partials = container.mergeIfNeeded(options.partials, env.partials); - } - if (templateSpec.usePartial || templateSpec.useDecorators) { - container.decorators = Utils.extend({}, env.decorators, options.decorators); - } - container.hooks = {}; - container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options); - var keepHelperInHelpers = options.allowCallsToHelperMissing || templateWasPrecompiledWithCompilerV7; - _helpers.moveHelperToHooks(container, "helperMissing", keepHelperInHelpers); - _helpers.moveHelperToHooks(container, "blockHelperMissing", keepHelperInHelpers); - } else { - container.protoAccessControl = options.protoAccessControl; - container.helpers = options.helpers; - container.partials = options.partials; - container.decorators = options.decorators; - container.hooks = options.hooks; - } - }; - ret._child = function(i, data, blockParams, depths) { - if (templateSpec.useBlockParams && !blockParams) { - throw new _exception2["default"]("must pass block params"); - } - if (templateSpec.useDepths && !depths) { - throw new _exception2["default"]("must pass parent depths"); - } - return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths); - }; - return ret; - } - function wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) { - function prog(context) { - var options = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1]; - var currentDepths = depths; - if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) { - currentDepths = [context].concat(depths); - } - return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths); - } - prog = executeDecorators(fn, prog, container, depths, data, blockParams); - prog.program = i; - prog.depth = depths ? depths.length : 0; - prog.blockParams = declaredBlockParams || 0; - return prog; - } - function resolvePartial(partial, context, options) { - if (!partial) { - if (options.name === "@partial-block") { - partial = options.data["partial-block"]; - } else { - partial = options.partials[options.name]; - } - } else if (!partial.call && !options.name) { - options.name = partial; - partial = options.partials[partial]; - } - return partial; - } - function invokePartial(partial, context, options) { - var currentPartialBlock = options.data && options.data["partial-block"]; - options.partial = true; - if (options.ids) { - options.data.contextPath = options.ids[0] || options.data.contextPath; - } - var partialBlock = void 0; - if (options.fn && options.fn !== noop) { - (function() { - options.data = _base.createFrame(options.data); - var fn = options.fn; - partialBlock = options.data["partial-block"] = function partialBlockWrapper(context2) { - var options2 = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1]; - options2.data = _base.createFrame(options2.data); - options2.data["partial-block"] = currentPartialBlock; - return fn(context2, options2); - }; - if (fn.partials) { - options.partials = Utils.extend({}, options.partials, fn.partials); - } - })(); - } - if (partial === void 0 && partialBlock) { - partial = partialBlock; - } - if (partial === void 0) { - throw new _exception2["default"]("The partial " + options.name + " could not be found"); - } else if (partial instanceof Function) { - return partial(context, options); - } - } - function noop() { - return ""; - } - function initData(context, data) { - if (!data || !("root" in data)) { - data = data ? _base.createFrame(data) : {}; - data.root = context; - } - return data; - } - function executeDecorators(fn, prog, container, depths, data, blockParams) { - if (fn.decorator) { - var props = {}; - prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths); - Utils.extend(prog, props); - } - return prog; - } - function wrapHelpersToPassLookupProperty(mergedHelpers, container) { - Object.keys(mergedHelpers).forEach(function(helperName) { - var helper = mergedHelpers[helperName]; - mergedHelpers[helperName] = passLookupPropertyOption(helper, container); - }); - } - function passLookupPropertyOption(helper, container) { - var lookupProperty = container.lookupProperty; - return _internalWrapHelper.wrapHelper(helper, function(options) { - return Utils.extend({lookupProperty}, options); - }); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js - var require_no_conflict = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js"(exports, module) { - "use strict"; - exports.__esModule = true; - exports["default"] = function(Handlebars) { - var root = typeof global !== "undefined" ? global : window, $Handlebars = root.Handlebars; - Handlebars.noConflict = function() { - if (root.Handlebars === Handlebars) { - root.Handlebars = $Handlebars; - } - return Handlebars; - }; - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars.runtime.js - var require_handlebars_runtime = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars.runtime.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {}; - if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) - newObj[key] = obj[key]; - } - } - newObj["default"] = obj; - return newObj; - } - } - var _handlebarsBase = require_base(); - var base = _interopRequireWildcard(_handlebarsBase); - var _handlebarsSafeString = require_safe_string(); - var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString); - var _handlebarsException = require_exception(); - var _handlebarsException2 = _interopRequireDefault(_handlebarsException); - var _handlebarsUtils = require_utils(); - var Utils = _interopRequireWildcard(_handlebarsUtils); - var _handlebarsRuntime = require_runtime(); - var runtime = _interopRequireWildcard(_handlebarsRuntime); - var _handlebarsNoConflict = require_no_conflict(); - var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict); - function create() { - var hb = new base.HandlebarsEnvironment(); - Utils.extend(hb, base); - hb.SafeString = _handlebarsSafeString2["default"]; - hb.Exception = _handlebarsException2["default"]; - hb.Utils = Utils; - hb.escapeExpression = Utils.escapeExpression; - hb.VM = runtime; - hb.template = function(spec) { - return runtime.template(spec, hb); - }; - return hb; - } - var inst = create(); - inst.create = create; - _handlebarsNoConflict2["default"](inst); - inst["default"] = inst; - exports["default"] = inst; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js - var require_ast = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var AST = { - helpers: { - helperExpression: function helperExpression(node) { - return node.type === "SubExpression" || (node.type === "MustacheStatement" || node.type === "BlockStatement") && !!(node.params && node.params.length || node.hash); - }, - scopedId: function scopedId(path) { - return /^\.|this\b/.test(path.original); - }, - simpleId: function simpleId(path) { - return path.parts.length === 1 && !AST.helpers.scopedId(path) && !path.depth; - } - } - }; - exports["default"] = AST; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js - var require_parser2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var handlebars = function() { - var parser = { - trace: function trace() { - }, - yy: {}, - symbols_: {"error": 2, "root": 3, "program": 4, "EOF": 5, "program_repetition0": 6, "statement": 7, "mustache": 8, "block": 9, "rawBlock": 10, "partial": 11, "partialBlock": 12, "content": 13, "COMMENT": 14, "CONTENT": 15, "openRawBlock": 16, "rawBlock_repetition0": 17, "END_RAW_BLOCK": 18, "OPEN_RAW_BLOCK": 19, "helperName": 20, "openRawBlock_repetition0": 21, "openRawBlock_option0": 22, "CLOSE_RAW_BLOCK": 23, "openBlock": 24, "block_option0": 25, "closeBlock": 26, "openInverse": 27, "block_option1": 28, "OPEN_BLOCK": 29, "openBlock_repetition0": 30, "openBlock_option0": 31, "openBlock_option1": 32, "CLOSE": 33, "OPEN_INVERSE": 34, "openInverse_repetition0": 35, "openInverse_option0": 36, "openInverse_option1": 37, "openInverseChain": 38, "OPEN_INVERSE_CHAIN": 39, "openInverseChain_repetition0": 40, "openInverseChain_option0": 41, "openInverseChain_option1": 42, "inverseAndProgram": 43, "INVERSE": 44, "inverseChain": 45, "inverseChain_option0": 46, "OPEN_ENDBLOCK": 47, "OPEN": 48, "mustache_repetition0": 49, "mustache_option0": 50, "OPEN_UNESCAPED": 51, "mustache_repetition1": 52, "mustache_option1": 53, "CLOSE_UNESCAPED": 54, "OPEN_PARTIAL": 55, "partialName": 56, "partial_repetition0": 57, "partial_option0": 58, "openPartialBlock": 59, "OPEN_PARTIAL_BLOCK": 60, "openPartialBlock_repetition0": 61, "openPartialBlock_option0": 62, "param": 63, "sexpr": 64, "OPEN_SEXPR": 65, "sexpr_repetition0": 66, "sexpr_option0": 67, "CLOSE_SEXPR": 68, "hash": 69, "hash_repetition_plus0": 70, "hashSegment": 71, "ID": 72, "EQUALS": 73, "blockParams": 74, "OPEN_BLOCK_PARAMS": 75, "blockParams_repetition_plus0": 76, "CLOSE_BLOCK_PARAMS": 77, "path": 78, "dataName": 79, "STRING": 80, "NUMBER": 81, "BOOLEAN": 82, "UNDEFINED": 83, "NULL": 84, "DATA": 85, "pathSegments": 86, "SEP": 87, "$accept": 0, "$end": 1}, - terminals_: {2: "error", 5: "EOF", 14: "COMMENT", 15: "CONTENT", 18: "END_RAW_BLOCK", 19: "OPEN_RAW_BLOCK", 23: "CLOSE_RAW_BLOCK", 29: "OPEN_BLOCK", 33: "CLOSE", 34: "OPEN_INVERSE", 39: "OPEN_INVERSE_CHAIN", 44: "INVERSE", 47: "OPEN_ENDBLOCK", 48: "OPEN", 51: "OPEN_UNESCAPED", 54: "CLOSE_UNESCAPED", 55: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 65: "OPEN_SEXPR", 68: "CLOSE_SEXPR", 72: "ID", 73: "EQUALS", 75: "OPEN_BLOCK_PARAMS", 77: "CLOSE_BLOCK_PARAMS", 80: "STRING", 81: "NUMBER", 82: "BOOLEAN", 83: "UNDEFINED", 84: "NULL", 85: "DATA", 87: "SEP"}, - productions_: [0, [3, 2], [4, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [13, 1], [10, 3], [16, 5], [9, 4], [9, 4], [24, 6], [27, 6], [38, 6], [43, 2], [45, 3], [45, 1], [26, 3], [8, 5], [8, 5], [11, 5], [12, 3], [59, 5], [63, 1], [63, 1], [64, 5], [69, 1], [71, 3], [74, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [56, 1], [56, 1], [79, 2], [78, 1], [86, 3], [86, 1], [6, 0], [6, 2], [17, 0], [17, 2], [21, 0], [21, 2], [22, 0], [22, 1], [25, 0], [25, 1], [28, 0], [28, 1], [30, 0], [30, 2], [31, 0], [31, 1], [32, 0], [32, 1], [35, 0], [35, 2], [36, 0], [36, 1], [37, 0], [37, 1], [40, 0], [40, 2], [41, 0], [41, 1], [42, 0], [42, 1], [46, 0], [46, 1], [49, 0], [49, 2], [50, 0], [50, 1], [52, 0], [52, 2], [53, 0], [53, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [66, 0], [66, 2], [67, 0], [67, 1], [70, 1], [70, 2], [76, 1], [76, 2]], - performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) { - var $0 = $$.length - 1; - switch (yystate) { - case 1: - return $$[$0 - 1]; - break; - case 2: - this.$ = yy.prepareProgram($$[$0]); - break; - case 3: - this.$ = $$[$0]; - break; - case 4: - this.$ = $$[$0]; - break; - case 5: - this.$ = $$[$0]; - break; - case 6: - this.$ = $$[$0]; - break; - case 7: - this.$ = $$[$0]; - break; - case 8: - this.$ = $$[$0]; - break; - case 9: - this.$ = { - type: "CommentStatement", - value: yy.stripComment($$[$0]), - strip: yy.stripFlags($$[$0], $$[$0]), - loc: yy.locInfo(this._$) - }; - break; - case 10: - this.$ = { - type: "ContentStatement", - original: $$[$0], - value: $$[$0], - loc: yy.locInfo(this._$) - }; - break; - case 11: - this.$ = yy.prepareRawBlock($$[$0 - 2], $$[$0 - 1], $$[$0], this._$); - break; - case 12: - this.$ = {path: $$[$0 - 3], params: $$[$0 - 2], hash: $$[$0 - 1]}; - break; - case 13: - this.$ = yy.prepareBlock($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0], false, this._$); - break; - case 14: - this.$ = yy.prepareBlock($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0], true, this._$); - break; - case 15: - this.$ = {open: $$[$0 - 5], path: $$[$0 - 4], params: $$[$0 - 3], hash: $$[$0 - 2], blockParams: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 5], $$[$0])}; - break; - case 16: - this.$ = {path: $$[$0 - 4], params: $$[$0 - 3], hash: $$[$0 - 2], blockParams: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 5], $$[$0])}; - break; - case 17: - this.$ = {path: $$[$0 - 4], params: $$[$0 - 3], hash: $$[$0 - 2], blockParams: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 5], $$[$0])}; - break; - case 18: - this.$ = {strip: yy.stripFlags($$[$0 - 1], $$[$0 - 1]), program: $$[$0]}; - break; - case 19: - var inverse = yy.prepareBlock($$[$0 - 2], $$[$0 - 1], $$[$0], $$[$0], false, this._$), program = yy.prepareProgram([inverse], $$[$0 - 1].loc); - program.chained = true; - this.$ = {strip: $$[$0 - 2].strip, program, chain: true}; - break; - case 20: - this.$ = $$[$0]; - break; - case 21: - this.$ = {path: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 2], $$[$0])}; - break; - case 22: - this.$ = yy.prepareMustache($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0 - 4], yy.stripFlags($$[$0 - 4], $$[$0]), this._$); - break; - case 23: - this.$ = yy.prepareMustache($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0 - 4], yy.stripFlags($$[$0 - 4], $$[$0]), this._$); - break; - case 24: - this.$ = { - type: "PartialStatement", - name: $$[$0 - 3], - params: $$[$0 - 2], - hash: $$[$0 - 1], - indent: "", - strip: yy.stripFlags($$[$0 - 4], $$[$0]), - loc: yy.locInfo(this._$) - }; - break; - case 25: - this.$ = yy.preparePartialBlock($$[$0 - 2], $$[$0 - 1], $$[$0], this._$); - break; - case 26: - this.$ = {path: $$[$0 - 3], params: $$[$0 - 2], hash: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 4], $$[$0])}; - break; - case 27: - this.$ = $$[$0]; - break; - case 28: - this.$ = $$[$0]; - break; - case 29: - this.$ = { - type: "SubExpression", - path: $$[$0 - 3], - params: $$[$0 - 2], - hash: $$[$0 - 1], - loc: yy.locInfo(this._$) - }; - break; - case 30: - this.$ = {type: "Hash", pairs: $$[$0], loc: yy.locInfo(this._$)}; - break; - case 31: - this.$ = {type: "HashPair", key: yy.id($$[$0 - 2]), value: $$[$0], loc: yy.locInfo(this._$)}; - break; - case 32: - this.$ = yy.id($$[$0 - 1]); - break; - case 33: - this.$ = $$[$0]; - break; - case 34: - this.$ = $$[$0]; - break; - case 35: - this.$ = {type: "StringLiteral", value: $$[$0], original: $$[$0], loc: yy.locInfo(this._$)}; - break; - case 36: - this.$ = {type: "NumberLiteral", value: Number($$[$0]), original: Number($$[$0]), loc: yy.locInfo(this._$)}; - break; - case 37: - this.$ = {type: "BooleanLiteral", value: $$[$0] === "true", original: $$[$0] === "true", loc: yy.locInfo(this._$)}; - break; - case 38: - this.$ = {type: "UndefinedLiteral", original: void 0, value: void 0, loc: yy.locInfo(this._$)}; - break; - case 39: - this.$ = {type: "NullLiteral", original: null, value: null, loc: yy.locInfo(this._$)}; - break; - case 40: - this.$ = $$[$0]; - break; - case 41: - this.$ = $$[$0]; - break; - case 42: - this.$ = yy.preparePath(true, $$[$0], this._$); - break; - case 43: - this.$ = yy.preparePath(false, $$[$0], this._$); - break; - case 44: - $$[$0 - 2].push({part: yy.id($$[$0]), original: $$[$0], separator: $$[$0 - 1]}); - this.$ = $$[$0 - 2]; - break; - case 45: - this.$ = [{part: yy.id($$[$0]), original: $$[$0]}]; - break; - case 46: - this.$ = []; - break; - case 47: - $$[$0 - 1].push($$[$0]); - break; - case 48: - this.$ = []; - break; - case 49: - $$[$0 - 1].push($$[$0]); - break; - case 50: - this.$ = []; - break; - case 51: - $$[$0 - 1].push($$[$0]); - break; - case 58: - this.$ = []; - break; - case 59: - $$[$0 - 1].push($$[$0]); - break; - case 64: - this.$ = []; - break; - case 65: - $$[$0 - 1].push($$[$0]); - break; - case 70: - this.$ = []; - break; - case 71: - $$[$0 - 1].push($$[$0]); - break; - case 78: - this.$ = []; - break; - case 79: - $$[$0 - 1].push($$[$0]); - break; - case 82: - this.$ = []; - break; - case 83: - $$[$0 - 1].push($$[$0]); - break; - case 86: - this.$ = []; - break; - case 87: - $$[$0 - 1].push($$[$0]); - break; - case 90: - this.$ = []; - break; - case 91: - $$[$0 - 1].push($$[$0]); - break; - case 94: - this.$ = []; - break; - case 95: - $$[$0 - 1].push($$[$0]); - break; - case 98: - this.$ = [$$[$0]]; - break; - case 99: - $$[$0 - 1].push($$[$0]); - break; - case 100: - this.$ = [$$[$0]]; - break; - case 101: - $$[$0 - 1].push($$[$0]); - break; - } - }, - table: [{3: 1, 4: 2, 5: [2, 46], 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46]}, {1: [3]}, {5: [1, 4]}, {5: [2, 2], 7: 5, 8: 6, 9: 7, 10: 8, 11: 9, 12: 10, 13: 11, 14: [1, 12], 15: [1, 20], 16: 17, 19: [1, 23], 24: 15, 27: 16, 29: [1, 21], 34: [1, 22], 39: [2, 2], 44: [2, 2], 47: [2, 2], 48: [1, 13], 51: [1, 14], 55: [1, 18], 59: 19, 60: [1, 24]}, {1: [2, 1]}, {5: [2, 47], 14: [2, 47], 15: [2, 47], 19: [2, 47], 29: [2, 47], 34: [2, 47], 39: [2, 47], 44: [2, 47], 47: [2, 47], 48: [2, 47], 51: [2, 47], 55: [2, 47], 60: [2, 47]}, {5: [2, 3], 14: [2, 3], 15: [2, 3], 19: [2, 3], 29: [2, 3], 34: [2, 3], 39: [2, 3], 44: [2, 3], 47: [2, 3], 48: [2, 3], 51: [2, 3], 55: [2, 3], 60: [2, 3]}, {5: [2, 4], 14: [2, 4], 15: [2, 4], 19: [2, 4], 29: [2, 4], 34: [2, 4], 39: [2, 4], 44: [2, 4], 47: [2, 4], 48: [2, 4], 51: [2, 4], 55: [2, 4], 60: [2, 4]}, {5: [2, 5], 14: [2, 5], 15: [2, 5], 19: [2, 5], 29: [2, 5], 34: [2, 5], 39: [2, 5], 44: [2, 5], 47: [2, 5], 48: [2, 5], 51: [2, 5], 55: [2, 5], 60: [2, 5]}, {5: [2, 6], 14: [2, 6], 15: [2, 6], 19: [2, 6], 29: [2, 6], 34: [2, 6], 39: [2, 6], 44: [2, 6], 47: [2, 6], 48: [2, 6], 51: [2, 6], 55: [2, 6], 60: [2, 6]}, {5: [2, 7], 14: [2, 7], 15: [2, 7], 19: [2, 7], 29: [2, 7], 34: [2, 7], 39: [2, 7], 44: [2, 7], 47: [2, 7], 48: [2, 7], 51: [2, 7], 55: [2, 7], 60: [2, 7]}, {5: [2, 8], 14: [2, 8], 15: [2, 8], 19: [2, 8], 29: [2, 8], 34: [2, 8], 39: [2, 8], 44: [2, 8], 47: [2, 8], 48: [2, 8], 51: [2, 8], 55: [2, 8], 60: [2, 8]}, {5: [2, 9], 14: [2, 9], 15: [2, 9], 19: [2, 9], 29: [2, 9], 34: [2, 9], 39: [2, 9], 44: [2, 9], 47: [2, 9], 48: [2, 9], 51: [2, 9], 55: [2, 9], 60: [2, 9]}, {20: 25, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 36, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {4: 37, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46]}, {4: 38, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46]}, {15: [2, 48], 17: 39, 18: [2, 48]}, {20: 41, 56: 40, 64: 42, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {4: 44, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46]}, {5: [2, 10], 14: [2, 10], 15: [2, 10], 18: [2, 10], 19: [2, 10], 29: [2, 10], 34: [2, 10], 39: [2, 10], 44: [2, 10], 47: [2, 10], 48: [2, 10], 51: [2, 10], 55: [2, 10], 60: [2, 10]}, {20: 45, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 46, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 47, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 41, 56: 48, 64: 42, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {33: [2, 78], 49: 49, 65: [2, 78], 72: [2, 78], 80: [2, 78], 81: [2, 78], 82: [2, 78], 83: [2, 78], 84: [2, 78], 85: [2, 78]}, {23: [2, 33], 33: [2, 33], 54: [2, 33], 65: [2, 33], 68: [2, 33], 72: [2, 33], 75: [2, 33], 80: [2, 33], 81: [2, 33], 82: [2, 33], 83: [2, 33], 84: [2, 33], 85: [2, 33]}, {23: [2, 34], 33: [2, 34], 54: [2, 34], 65: [2, 34], 68: [2, 34], 72: [2, 34], 75: [2, 34], 80: [2, 34], 81: [2, 34], 82: [2, 34], 83: [2, 34], 84: [2, 34], 85: [2, 34]}, {23: [2, 35], 33: [2, 35], 54: [2, 35], 65: [2, 35], 68: [2, 35], 72: [2, 35], 75: [2, 35], 80: [2, 35], 81: [2, 35], 82: [2, 35], 83: [2, 35], 84: [2, 35], 85: [2, 35]}, {23: [2, 36], 33: [2, 36], 54: [2, 36], 65: [2, 36], 68: [2, 36], 72: [2, 36], 75: [2, 36], 80: [2, 36], 81: [2, 36], 82: [2, 36], 83: [2, 36], 84: [2, 36], 85: [2, 36]}, {23: [2, 37], 33: [2, 37], 54: [2, 37], 65: [2, 37], 68: [2, 37], 72: [2, 37], 75: [2, 37], 80: [2, 37], 81: [2, 37], 82: [2, 37], 83: [2, 37], 84: [2, 37], 85: [2, 37]}, {23: [2, 38], 33: [2, 38], 54: [2, 38], 65: [2, 38], 68: [2, 38], 72: [2, 38], 75: [2, 38], 80: [2, 38], 81: [2, 38], 82: [2, 38], 83: [2, 38], 84: [2, 38], 85: [2, 38]}, {23: [2, 39], 33: [2, 39], 54: [2, 39], 65: [2, 39], 68: [2, 39], 72: [2, 39], 75: [2, 39], 80: [2, 39], 81: [2, 39], 82: [2, 39], 83: [2, 39], 84: [2, 39], 85: [2, 39]}, {23: [2, 43], 33: [2, 43], 54: [2, 43], 65: [2, 43], 68: [2, 43], 72: [2, 43], 75: [2, 43], 80: [2, 43], 81: [2, 43], 82: [2, 43], 83: [2, 43], 84: [2, 43], 85: [2, 43], 87: [1, 50]}, {72: [1, 35], 86: 51}, {23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45]}, {52: 52, 54: [2, 82], 65: [2, 82], 72: [2, 82], 80: [2, 82], 81: [2, 82], 82: [2, 82], 83: [2, 82], 84: [2, 82], 85: [2, 82]}, {25: 53, 38: 55, 39: [1, 57], 43: 56, 44: [1, 58], 45: 54, 47: [2, 54]}, {28: 59, 43: 60, 44: [1, 58], 47: [2, 56]}, {13: 62, 15: [1, 20], 18: [1, 61]}, {33: [2, 86], 57: 63, 65: [2, 86], 72: [2, 86], 80: [2, 86], 81: [2, 86], 82: [2, 86], 83: [2, 86], 84: [2, 86], 85: [2, 86]}, {33: [2, 40], 65: [2, 40], 72: [2, 40], 80: [2, 40], 81: [2, 40], 82: [2, 40], 83: [2, 40], 84: [2, 40], 85: [2, 40]}, {33: [2, 41], 65: [2, 41], 72: [2, 41], 80: [2, 41], 81: [2, 41], 82: [2, 41], 83: [2, 41], 84: [2, 41], 85: [2, 41]}, {20: 64, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {26: 65, 47: [1, 66]}, {30: 67, 33: [2, 58], 65: [2, 58], 72: [2, 58], 75: [2, 58], 80: [2, 58], 81: [2, 58], 82: [2, 58], 83: [2, 58], 84: [2, 58], 85: [2, 58]}, {33: [2, 64], 35: 68, 65: [2, 64], 72: [2, 64], 75: [2, 64], 80: [2, 64], 81: [2, 64], 82: [2, 64], 83: [2, 64], 84: [2, 64], 85: [2, 64]}, {21: 69, 23: [2, 50], 65: [2, 50], 72: [2, 50], 80: [2, 50], 81: [2, 50], 82: [2, 50], 83: [2, 50], 84: [2, 50], 85: [2, 50]}, {33: [2, 90], 61: 70, 65: [2, 90], 72: [2, 90], 80: [2, 90], 81: [2, 90], 82: [2, 90], 83: [2, 90], 84: [2, 90], 85: [2, 90]}, {20: 74, 33: [2, 80], 50: 71, 63: 72, 64: 75, 65: [1, 43], 69: 73, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {72: [1, 79]}, {23: [2, 42], 33: [2, 42], 54: [2, 42], 65: [2, 42], 68: [2, 42], 72: [2, 42], 75: [2, 42], 80: [2, 42], 81: [2, 42], 82: [2, 42], 83: [2, 42], 84: [2, 42], 85: [2, 42], 87: [1, 50]}, {20: 74, 53: 80, 54: [2, 84], 63: 81, 64: 75, 65: [1, 43], 69: 82, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {26: 83, 47: [1, 66]}, {47: [2, 55]}, {4: 84, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46]}, {47: [2, 20]}, {20: 85, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {4: 86, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46]}, {26: 87, 47: [1, 66]}, {47: [2, 57]}, {5: [2, 11], 14: [2, 11], 15: [2, 11], 19: [2, 11], 29: [2, 11], 34: [2, 11], 39: [2, 11], 44: [2, 11], 47: [2, 11], 48: [2, 11], 51: [2, 11], 55: [2, 11], 60: [2, 11]}, {15: [2, 49], 18: [2, 49]}, {20: 74, 33: [2, 88], 58: 88, 63: 89, 64: 75, 65: [1, 43], 69: 90, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {65: [2, 94], 66: 91, 68: [2, 94], 72: [2, 94], 80: [2, 94], 81: [2, 94], 82: [2, 94], 83: [2, 94], 84: [2, 94], 85: [2, 94]}, {5: [2, 25], 14: [2, 25], 15: [2, 25], 19: [2, 25], 29: [2, 25], 34: [2, 25], 39: [2, 25], 44: [2, 25], 47: [2, 25], 48: [2, 25], 51: [2, 25], 55: [2, 25], 60: [2, 25]}, {20: 92, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 74, 31: 93, 33: [2, 60], 63: 94, 64: 75, 65: [1, 43], 69: 95, 70: 76, 71: 77, 72: [1, 78], 75: [2, 60], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 74, 33: [2, 66], 36: 96, 63: 97, 64: 75, 65: [1, 43], 69: 98, 70: 76, 71: 77, 72: [1, 78], 75: [2, 66], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 74, 22: 99, 23: [2, 52], 63: 100, 64: 75, 65: [1, 43], 69: 101, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 74, 33: [2, 92], 62: 102, 63: 103, 64: 75, 65: [1, 43], 69: 104, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {33: [1, 105]}, {33: [2, 79], 65: [2, 79], 72: [2, 79], 80: [2, 79], 81: [2, 79], 82: [2, 79], 83: [2, 79], 84: [2, 79], 85: [2, 79]}, {33: [2, 81]}, {23: [2, 27], 33: [2, 27], 54: [2, 27], 65: [2, 27], 68: [2, 27], 72: [2, 27], 75: [2, 27], 80: [2, 27], 81: [2, 27], 82: [2, 27], 83: [2, 27], 84: [2, 27], 85: [2, 27]}, {23: [2, 28], 33: [2, 28], 54: [2, 28], 65: [2, 28], 68: [2, 28], 72: [2, 28], 75: [2, 28], 80: [2, 28], 81: [2, 28], 82: [2, 28], 83: [2, 28], 84: [2, 28], 85: [2, 28]}, {23: [2, 30], 33: [2, 30], 54: [2, 30], 68: [2, 30], 71: 106, 72: [1, 107], 75: [2, 30]}, {23: [2, 98], 33: [2, 98], 54: [2, 98], 68: [2, 98], 72: [2, 98], 75: [2, 98]}, {23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 73: [1, 108], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45]}, {23: [2, 44], 33: [2, 44], 54: [2, 44], 65: [2, 44], 68: [2, 44], 72: [2, 44], 75: [2, 44], 80: [2, 44], 81: [2, 44], 82: [2, 44], 83: [2, 44], 84: [2, 44], 85: [2, 44], 87: [2, 44]}, {54: [1, 109]}, {54: [2, 83], 65: [2, 83], 72: [2, 83], 80: [2, 83], 81: [2, 83], 82: [2, 83], 83: [2, 83], 84: [2, 83], 85: [2, 83]}, {54: [2, 85]}, {5: [2, 13], 14: [2, 13], 15: [2, 13], 19: [2, 13], 29: [2, 13], 34: [2, 13], 39: [2, 13], 44: [2, 13], 47: [2, 13], 48: [2, 13], 51: [2, 13], 55: [2, 13], 60: [2, 13]}, {38: 55, 39: [1, 57], 43: 56, 44: [1, 58], 45: 111, 46: 110, 47: [2, 76]}, {33: [2, 70], 40: 112, 65: [2, 70], 72: [2, 70], 75: [2, 70], 80: [2, 70], 81: [2, 70], 82: [2, 70], 83: [2, 70], 84: [2, 70], 85: [2, 70]}, {47: [2, 18]}, {5: [2, 14], 14: [2, 14], 15: [2, 14], 19: [2, 14], 29: [2, 14], 34: [2, 14], 39: [2, 14], 44: [2, 14], 47: [2, 14], 48: [2, 14], 51: [2, 14], 55: [2, 14], 60: [2, 14]}, {33: [1, 113]}, {33: [2, 87], 65: [2, 87], 72: [2, 87], 80: [2, 87], 81: [2, 87], 82: [2, 87], 83: [2, 87], 84: [2, 87], 85: [2, 87]}, {33: [2, 89]}, {20: 74, 63: 115, 64: 75, 65: [1, 43], 67: 114, 68: [2, 96], 69: 116, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {33: [1, 117]}, {32: 118, 33: [2, 62], 74: 119, 75: [1, 120]}, {33: [2, 59], 65: [2, 59], 72: [2, 59], 75: [2, 59], 80: [2, 59], 81: [2, 59], 82: [2, 59], 83: [2, 59], 84: [2, 59], 85: [2, 59]}, {33: [2, 61], 75: [2, 61]}, {33: [2, 68], 37: 121, 74: 122, 75: [1, 120]}, {33: [2, 65], 65: [2, 65], 72: [2, 65], 75: [2, 65], 80: [2, 65], 81: [2, 65], 82: [2, 65], 83: [2, 65], 84: [2, 65], 85: [2, 65]}, {33: [2, 67], 75: [2, 67]}, {23: [1, 123]}, {23: [2, 51], 65: [2, 51], 72: [2, 51], 80: [2, 51], 81: [2, 51], 82: [2, 51], 83: [2, 51], 84: [2, 51], 85: [2, 51]}, {23: [2, 53]}, {33: [1, 124]}, {33: [2, 91], 65: [2, 91], 72: [2, 91], 80: [2, 91], 81: [2, 91], 82: [2, 91], 83: [2, 91], 84: [2, 91], 85: [2, 91]}, {33: [2, 93]}, {5: [2, 22], 14: [2, 22], 15: [2, 22], 19: [2, 22], 29: [2, 22], 34: [2, 22], 39: [2, 22], 44: [2, 22], 47: [2, 22], 48: [2, 22], 51: [2, 22], 55: [2, 22], 60: [2, 22]}, {23: [2, 99], 33: [2, 99], 54: [2, 99], 68: [2, 99], 72: [2, 99], 75: [2, 99]}, {73: [1, 108]}, {20: 74, 63: 125, 64: 75, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {5: [2, 23], 14: [2, 23], 15: [2, 23], 19: [2, 23], 29: [2, 23], 34: [2, 23], 39: [2, 23], 44: [2, 23], 47: [2, 23], 48: [2, 23], 51: [2, 23], 55: [2, 23], 60: [2, 23]}, {47: [2, 19]}, {47: [2, 77]}, {20: 74, 33: [2, 72], 41: 126, 63: 127, 64: 75, 65: [1, 43], 69: 128, 70: 76, 71: 77, 72: [1, 78], 75: [2, 72], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {5: [2, 24], 14: [2, 24], 15: [2, 24], 19: [2, 24], 29: [2, 24], 34: [2, 24], 39: [2, 24], 44: [2, 24], 47: [2, 24], 48: [2, 24], 51: [2, 24], 55: [2, 24], 60: [2, 24]}, {68: [1, 129]}, {65: [2, 95], 68: [2, 95], 72: [2, 95], 80: [2, 95], 81: [2, 95], 82: [2, 95], 83: [2, 95], 84: [2, 95], 85: [2, 95]}, {68: [2, 97]}, {5: [2, 21], 14: [2, 21], 15: [2, 21], 19: [2, 21], 29: [2, 21], 34: [2, 21], 39: [2, 21], 44: [2, 21], 47: [2, 21], 48: [2, 21], 51: [2, 21], 55: [2, 21], 60: [2, 21]}, {33: [1, 130]}, {33: [2, 63]}, {72: [1, 132], 76: 131}, {33: [1, 133]}, {33: [2, 69]}, {15: [2, 12], 18: [2, 12]}, {14: [2, 26], 15: [2, 26], 19: [2, 26], 29: [2, 26], 34: [2, 26], 47: [2, 26], 48: [2, 26], 51: [2, 26], 55: [2, 26], 60: [2, 26]}, {23: [2, 31], 33: [2, 31], 54: [2, 31], 68: [2, 31], 72: [2, 31], 75: [2, 31]}, {33: [2, 74], 42: 134, 74: 135, 75: [1, 120]}, {33: [2, 71], 65: [2, 71], 72: [2, 71], 75: [2, 71], 80: [2, 71], 81: [2, 71], 82: [2, 71], 83: [2, 71], 84: [2, 71], 85: [2, 71]}, {33: [2, 73], 75: [2, 73]}, {23: [2, 29], 33: [2, 29], 54: [2, 29], 65: [2, 29], 68: [2, 29], 72: [2, 29], 75: [2, 29], 80: [2, 29], 81: [2, 29], 82: [2, 29], 83: [2, 29], 84: [2, 29], 85: [2, 29]}, {14: [2, 15], 15: [2, 15], 19: [2, 15], 29: [2, 15], 34: [2, 15], 39: [2, 15], 44: [2, 15], 47: [2, 15], 48: [2, 15], 51: [2, 15], 55: [2, 15], 60: [2, 15]}, {72: [1, 137], 77: [1, 136]}, {72: [2, 100], 77: [2, 100]}, {14: [2, 16], 15: [2, 16], 19: [2, 16], 29: [2, 16], 34: [2, 16], 44: [2, 16], 47: [2, 16], 48: [2, 16], 51: [2, 16], 55: [2, 16], 60: [2, 16]}, {33: [1, 138]}, {33: [2, 75]}, {33: [2, 32]}, {72: [2, 101], 77: [2, 101]}, {14: [2, 17], 15: [2, 17], 19: [2, 17], 29: [2, 17], 34: [2, 17], 39: [2, 17], 44: [2, 17], 47: [2, 17], 48: [2, 17], 51: [2, 17], 55: [2, 17], 60: [2, 17]}], - defaultActions: {4: [2, 1], 54: [2, 55], 56: [2, 20], 60: [2, 57], 73: [2, 81], 82: [2, 85], 86: [2, 18], 90: [2, 89], 101: [2, 53], 104: [2, 93], 110: [2, 19], 111: [2, 77], 116: [2, 97], 119: [2, 63], 122: [2, 69], 135: [2, 75], 136: [2, 32]}, - parseError: function parseError(str, hash) { - throw new Error(str); - }, - parse: function parse(input) { - var self2 = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1; - this.lexer.setInput(input); - this.lexer.yy = this.yy; - this.yy.lexer = this.lexer; - this.yy.parser = this; - if (typeof this.lexer.yylloc == "undefined") - this.lexer.yylloc = {}; - var yyloc = this.lexer.yylloc; - lstack.push(yyloc); - var ranges = this.lexer.options && this.lexer.options.ranges; - if (typeof this.yy.parseError === "function") - this.parseError = this.yy.parseError; - function popStack(n) { - stack.length = stack.length - 2 * n; - vstack.length = vstack.length - n; - lstack.length = lstack.length - n; - } - function lex() { - var token; - token = self2.lexer.lex() || 1; - if (typeof token !== "number") { - token = self2.symbols_[token] || token; - } - return token; - } - var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected; - while (true) { - state = stack[stack.length - 1]; - if (this.defaultActions[state]) { - action = this.defaultActions[state]; - } else { - if (symbol === null || typeof symbol == "undefined") { - symbol = lex(); - } - action = table[state] && table[state][symbol]; - } - if (typeof action === "undefined" || !action.length || !action[0]) { - var errStr = ""; - if (!recovering) { - expected = []; - for (p in table[state]) - if (this.terminals_[p] && p > 2) { - expected.push("'" + this.terminals_[p] + "'"); - } - if (this.lexer.showPosition) { - errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'"; - } else { - errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == 1 ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'"); - } - this.parseError(errStr, {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected}); - } - } - if (action[0] instanceof Array && action.length > 1) { - throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol); - } - switch (action[0]) { - case 1: - stack.push(symbol); - vstack.push(this.lexer.yytext); - lstack.push(this.lexer.yylloc); - stack.push(action[1]); - symbol = null; - if (!preErrorSymbol) { - yyleng = this.lexer.yyleng; - yytext = this.lexer.yytext; - yylineno = this.lexer.yylineno; - yyloc = this.lexer.yylloc; - if (recovering > 0) - recovering--; - } else { - symbol = preErrorSymbol; - preErrorSymbol = null; - } - break; - case 2: - len = this.productions_[action[1]][1]; - yyval.$ = vstack[vstack.length - len]; - yyval._$ = {first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column}; - if (ranges) { - yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]]; - } - r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack); - if (typeof r !== "undefined") { - return r; - } - if (len) { - stack = stack.slice(0, -1 * len * 2); - vstack = vstack.slice(0, -1 * len); - lstack = lstack.slice(0, -1 * len); - } - stack.push(this.productions_[action[1]][0]); - vstack.push(yyval.$); - lstack.push(yyval._$); - newState = table[stack[stack.length - 2]][stack[stack.length - 1]]; - stack.push(newState); - break; - case 3: - return true; - } - } - return true; - } - }; - var lexer = function() { - var lexer2 = { - EOF: 1, - parseError: function parseError(str, hash) { - if (this.yy.parser) { - this.yy.parser.parseError(str, hash); - } else { - throw new Error(str); - } - }, - setInput: function setInput(input) { - this._input = input; - this._more = this._less = this.done = false; - this.yylineno = this.yyleng = 0; - this.yytext = this.matched = this.match = ""; - this.conditionStack = ["INITIAL"]; - this.yylloc = {first_line: 1, first_column: 0, last_line: 1, last_column: 0}; - if (this.options.ranges) - this.yylloc.range = [0, 0]; - this.offset = 0; - return this; - }, - input: function input() { - var ch = this._input[0]; - this.yytext += ch; - this.yyleng++; - this.offset++; - this.match += ch; - this.matched += ch; - var lines = ch.match(/(?:\r\n?|\n).*/g); - if (lines) { - this.yylineno++; - this.yylloc.last_line++; - } else { - this.yylloc.last_column++; - } - if (this.options.ranges) - this.yylloc.range[1]++; - this._input = this._input.slice(1); - return ch; - }, - unput: function unput(ch) { - var len = ch.length; - var lines = ch.split(/(?:\r\n?|\n)/g); - this._input = ch + this._input; - this.yytext = this.yytext.substr(0, this.yytext.length - len - 1); - this.offset -= len; - var oldLines = this.match.split(/(?:\r\n?|\n)/g); - this.match = this.match.substr(0, this.match.length - 1); - this.matched = this.matched.substr(0, this.matched.length - 1); - if (lines.length - 1) - this.yylineno -= lines.length - 1; - var r = this.yylloc.range; - this.yylloc = { - first_line: this.yylloc.first_line, - last_line: this.yylineno + 1, - first_column: this.yylloc.first_column, - last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len - }; - if (this.options.ranges) { - this.yylloc.range = [r[0], r[0] + this.yyleng - len]; - } - return this; - }, - more: function more() { - this._more = true; - return this; - }, - less: function less(n) { - this.unput(this.match.slice(n)); - }, - pastInput: function pastInput() { - var past = this.matched.substr(0, this.matched.length - this.match.length); - return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, ""); - }, - upcomingInput: function upcomingInput() { - var next = this.match; - if (next.length < 20) { - next += this._input.substr(0, 20 - next.length); - } - return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, ""); - }, - showPosition: function showPosition() { - var pre = this.pastInput(); - var c = new Array(pre.length + 1).join("-"); - return pre + this.upcomingInput() + "\n" + c + "^"; - }, - next: function next() { - if (this.done) { - return this.EOF; - } - if (!this._input) - this.done = true; - var token, match, tempMatch, index, col, lines; - if (!this._more) { - this.yytext = ""; - this.match = ""; - } - var rules = this._currentRules(); - for (var i = 0; i < rules.length; i++) { - tempMatch = this._input.match(this.rules[rules[i]]); - if (tempMatch && (!match || tempMatch[0].length > match[0].length)) { - match = tempMatch; - index = i; - if (!this.options.flex) - break; - } - } - if (match) { - lines = match[0].match(/(?:\r\n?|\n).*/g); - if (lines) - this.yylineno += lines.length; - this.yylloc = { - first_line: this.yylloc.last_line, - last_line: this.yylineno + 1, - first_column: this.yylloc.last_column, - last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length - }; - this.yytext += match[0]; - this.match += match[0]; - this.matches = match; - this.yyleng = this.yytext.length; - if (this.options.ranges) { - this.yylloc.range = [this.offset, this.offset += this.yyleng]; - } - this._more = false; - this._input = this._input.slice(match[0].length); - this.matched += match[0]; - token = this.performAction.call(this, this.yy, this, rules[index], this.conditionStack[this.conditionStack.length - 1]); - if (this.done && this._input) - this.done = false; - if (token) - return token; - else - return; - } - if (this._input === "") { - return this.EOF; - } else { - return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {text: "", token: null, line: this.yylineno}); - } - }, - lex: function lex() { - var r = this.next(); - if (typeof r !== "undefined") { - return r; - } else { - return this.lex(); - } - }, - begin: function begin(condition) { - this.conditionStack.push(condition); - }, - popState: function popState() { - return this.conditionStack.pop(); - }, - _currentRules: function _currentRules() { - return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules; - }, - topState: function topState() { - return this.conditionStack[this.conditionStack.length - 2]; - }, - pushState: function begin(condition) { - this.begin(condition); - } - }; - lexer2.options = {}; - lexer2.performAction = function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) { - function strip(start, end) { - return yy_.yytext = yy_.yytext.substring(start, yy_.yyleng - end + start); - } - var YYSTATE = YY_START; - switch ($avoiding_name_collisions) { - case 0: - if (yy_.yytext.slice(-2) === "\\\\") { - strip(0, 1); - this.begin("mu"); - } else if (yy_.yytext.slice(-1) === "\\") { - strip(0, 1); - this.begin("emu"); - } else { - this.begin("mu"); - } - if (yy_.yytext) - return 15; - break; - case 1: - return 15; - break; - case 2: - this.popState(); - return 15; - break; - case 3: - this.begin("raw"); - return 15; - break; - case 4: - this.popState(); - if (this.conditionStack[this.conditionStack.length - 1] === "raw") { - return 15; - } else { - strip(5, 9); - return "END_RAW_BLOCK"; - } - break; - case 5: - return 15; - break; - case 6: - this.popState(); - return 14; - break; - case 7: - return 65; - break; - case 8: - return 68; - break; - case 9: - return 19; - break; - case 10: - this.popState(); - this.begin("raw"); - return 23; - break; - case 11: - return 55; - break; - case 12: - return 60; - break; - case 13: - return 29; - break; - case 14: - return 47; - break; - case 15: - this.popState(); - return 44; - break; - case 16: - this.popState(); - return 44; - break; - case 17: - return 34; - break; - case 18: - return 39; - break; - case 19: - return 51; - break; - case 20: - return 48; - break; - case 21: - this.unput(yy_.yytext); - this.popState(); - this.begin("com"); - break; - case 22: - this.popState(); - return 14; - break; - case 23: - return 48; - break; - case 24: - return 73; - break; - case 25: - return 72; - break; - case 26: - return 72; - break; - case 27: - return 87; - break; - case 28: - break; - case 29: - this.popState(); - return 54; - break; - case 30: - this.popState(); - return 33; - break; - case 31: - yy_.yytext = strip(1, 2).replace(/\\"/g, '"'); - return 80; - break; - case 32: - yy_.yytext = strip(1, 2).replace(/\\'/g, "'"); - return 80; - break; - case 33: - return 85; - break; - case 34: - return 82; - break; - case 35: - return 82; - break; - case 36: - return 83; - break; - case 37: - return 84; - break; - case 38: - return 81; - break; - case 39: - return 75; - break; - case 40: - return 77; - break; - case 41: - return 72; - break; - case 42: - yy_.yytext = yy_.yytext.replace(/\\([\\\]])/g, "$1"); - return 72; - break; - case 43: - return "INVALID"; - break; - case 44: - return 5; - break; - } - }; - lexer2.rules = [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^\/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/]; - lexer2.conditions = {"mu": {"rules": [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], "inclusive": false}, "emu": {"rules": [2], "inclusive": false}, "com": {"rules": [6], "inclusive": false}, "raw": {"rules": [3, 4, 5], "inclusive": false}, "INITIAL": {"rules": [0, 1, 44], "inclusive": true}}; - return lexer2; - }(); - parser.lexer = lexer; - function Parser() { - this.yy = {}; - } - Parser.prototype = parser; - parser.Parser = Parser; - return new Parser(); - }(); - exports["default"] = handlebars; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js - var require_visitor = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - function Visitor() { - this.parents = []; - } - Visitor.prototype = { - constructor: Visitor, - mutating: false, - acceptKey: function acceptKey(node, name) { - var value = this.accept(node[name]); - if (this.mutating) { - if (value && !Visitor.prototype[value.type]) { - throw new _exception2["default"]('Unexpected node type "' + value.type + '" found when accepting ' + name + " on " + node.type); - } - node[name] = value; - } - }, - acceptRequired: function acceptRequired(node, name) { - this.acceptKey(node, name); - if (!node[name]) { - throw new _exception2["default"](node.type + " requires " + name); - } - }, - acceptArray: function acceptArray(array) { - for (var i = 0, l = array.length; i < l; i++) { - this.acceptKey(array, i); - if (!array[i]) { - array.splice(i, 1); - i--; - l--; - } - } - }, - accept: function accept(object) { - if (!object) { - return; - } - if (!this[object.type]) { - throw new _exception2["default"]("Unknown type: " + object.type, object); - } - if (this.current) { - this.parents.unshift(this.current); - } - this.current = object; - var ret = this[object.type](object); - this.current = this.parents.shift(); - if (!this.mutating || ret) { - return ret; - } else if (ret !== false) { - return object; - } - }, - Program: function Program(program) { - this.acceptArray(program.body); - }, - MustacheStatement: visitSubExpression, - Decorator: visitSubExpression, - BlockStatement: visitBlock, - DecoratorBlock: visitBlock, - PartialStatement: visitPartial, - PartialBlockStatement: function PartialBlockStatement(partial) { - visitPartial.call(this, partial); - this.acceptKey(partial, "program"); - }, - ContentStatement: function ContentStatement() { - }, - CommentStatement: function CommentStatement() { - }, - SubExpression: visitSubExpression, - PathExpression: function PathExpression() { - }, - StringLiteral: function StringLiteral() { - }, - NumberLiteral: function NumberLiteral() { - }, - BooleanLiteral: function BooleanLiteral() { - }, - UndefinedLiteral: function UndefinedLiteral() { - }, - NullLiteral: function NullLiteral() { - }, - Hash: function Hash(hash) { - this.acceptArray(hash.pairs); - }, - HashPair: function HashPair(pair) { - this.acceptRequired(pair, "value"); - } - }; - function visitSubExpression(mustache) { - this.acceptRequired(mustache, "path"); - this.acceptArray(mustache.params); - this.acceptKey(mustache, "hash"); - } - function visitBlock(block) { - visitSubExpression.call(this, block); - this.acceptKey(block, "program"); - this.acceptKey(block, "inverse"); - } - function visitPartial(partial) { - this.acceptRequired(partial, "name"); - this.acceptArray(partial.params); - this.acceptKey(partial, "hash"); - } - exports["default"] = Visitor; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js - var require_whitespace_control = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _visitor = require_visitor(); - var _visitor2 = _interopRequireDefault(_visitor); - function WhitespaceControl() { - var options = arguments.length <= 0 || arguments[0] === void 0 ? {} : arguments[0]; - this.options = options; - } - WhitespaceControl.prototype = new _visitor2["default"](); - WhitespaceControl.prototype.Program = function(program) { - var doStandalone = !this.options.ignoreStandalone; - var isRoot = !this.isRootSeen; - this.isRootSeen = true; - var body = program.body; - for (var i = 0, l = body.length; i < l; i++) { - var current = body[i], strip = this.accept(current); - if (!strip) { - continue; - } - var _isPrevWhitespace = isPrevWhitespace(body, i, isRoot), _isNextWhitespace = isNextWhitespace(body, i, isRoot), openStandalone = strip.openStandalone && _isPrevWhitespace, closeStandalone = strip.closeStandalone && _isNextWhitespace, inlineStandalone = strip.inlineStandalone && _isPrevWhitespace && _isNextWhitespace; - if (strip.close) { - omitRight(body, i, true); - } - if (strip.open) { - omitLeft(body, i, true); - } - if (doStandalone && inlineStandalone) { - omitRight(body, i); - if (omitLeft(body, i)) { - if (current.type === "PartialStatement") { - current.indent = /([ \t]+$)/.exec(body[i - 1].original)[1]; - } - } - } - if (doStandalone && openStandalone) { - omitRight((current.program || current.inverse).body); - omitLeft(body, i); - } - if (doStandalone && closeStandalone) { - omitRight(body, i); - omitLeft((current.inverse || current.program).body); - } - } - return program; - }; - WhitespaceControl.prototype.BlockStatement = WhitespaceControl.prototype.DecoratorBlock = WhitespaceControl.prototype.PartialBlockStatement = function(block) { - this.accept(block.program); - this.accept(block.inverse); - var program = block.program || block.inverse, inverse = block.program && block.inverse, firstInverse = inverse, lastInverse = inverse; - if (inverse && inverse.chained) { - firstInverse = inverse.body[0].program; - while (lastInverse.chained) { - lastInverse = lastInverse.body[lastInverse.body.length - 1].program; - } - } - var strip = { - open: block.openStrip.open, - close: block.closeStrip.close, - openStandalone: isNextWhitespace(program.body), - closeStandalone: isPrevWhitespace((firstInverse || program).body) - }; - if (block.openStrip.close) { - omitRight(program.body, null, true); - } - if (inverse) { - var inverseStrip = block.inverseStrip; - if (inverseStrip.open) { - omitLeft(program.body, null, true); - } - if (inverseStrip.close) { - omitRight(firstInverse.body, null, true); - } - if (block.closeStrip.open) { - omitLeft(lastInverse.body, null, true); - } - if (!this.options.ignoreStandalone && isPrevWhitespace(program.body) && isNextWhitespace(firstInverse.body)) { - omitLeft(program.body); - omitRight(firstInverse.body); - } - } else if (block.closeStrip.open) { - omitLeft(program.body, null, true); - } - return strip; - }; - WhitespaceControl.prototype.Decorator = WhitespaceControl.prototype.MustacheStatement = function(mustache) { - return mustache.strip; - }; - WhitespaceControl.prototype.PartialStatement = WhitespaceControl.prototype.CommentStatement = function(node) { - var strip = node.strip || {}; - return { - inlineStandalone: true, - open: strip.open, - close: strip.close - }; - }; - function isPrevWhitespace(body, i, isRoot) { - if (i === void 0) { - i = body.length; - } - var prev = body[i - 1], sibling = body[i - 2]; - if (!prev) { - return isRoot; - } - if (prev.type === "ContentStatement") { - return (sibling || !isRoot ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(prev.original); - } - } - function isNextWhitespace(body, i, isRoot) { - if (i === void 0) { - i = -1; - } - var next = body[i + 1], sibling = body[i + 2]; - if (!next) { - return isRoot; - } - if (next.type === "ContentStatement") { - return (sibling || !isRoot ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(next.original); - } - } - function omitRight(body, i, multiple) { - var current = body[i == null ? 0 : i + 1]; - if (!current || current.type !== "ContentStatement" || !multiple && current.rightStripped) { - return; - } - var original = current.value; - current.value = current.value.replace(multiple ? /^\s+/ : /^[ \t]*\r?\n?/, ""); - current.rightStripped = current.value !== original; - } - function omitLeft(body, i, multiple) { - var current = body[i == null ? body.length - 1 : i - 1]; - if (!current || current.type !== "ContentStatement" || !multiple && current.leftStripped) { - return; - } - var original = current.value; - current.value = current.value.replace(multiple ? /\s+$/ : /[ \t]+$/, ""); - current.leftStripped = current.value !== original; - return current.leftStripped; - } - exports["default"] = WhitespaceControl; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js - var require_helpers2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.SourceLocation = SourceLocation; - exports.id = id; - exports.stripFlags = stripFlags; - exports.stripComment = stripComment; - exports.preparePath = preparePath; - exports.prepareMustache = prepareMustache; - exports.prepareRawBlock = prepareRawBlock; - exports.prepareBlock = prepareBlock; - exports.prepareProgram = prepareProgram; - exports.preparePartialBlock = preparePartialBlock; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - function validateClose(open, close) { - close = close.path ? close.path.original : close; - if (open.path.original !== close) { - var errorNode = {loc: open.path.loc}; - throw new _exception2["default"](open.path.original + " doesn't match " + close, errorNode); - } - } - function SourceLocation(source, locInfo) { - this.source = source; - this.start = { - line: locInfo.first_line, - column: locInfo.first_column - }; - this.end = { - line: locInfo.last_line, - column: locInfo.last_column - }; - } - function id(token) { - if (/^\[.*\]$/.test(token)) { - return token.substring(1, token.length - 1); - } else { - return token; - } - } - function stripFlags(open, close) { - return { - open: open.charAt(2) === "~", - close: close.charAt(close.length - 3) === "~" - }; - } - function stripComment(comment) { - return comment.replace(/^\{\{~?!-?-?/, "").replace(/-?-?~?\}\}$/, ""); - } - function preparePath(data, parts, loc) { - loc = this.locInfo(loc); - var original = data ? "@" : "", dig = [], depth = 0; - for (var i = 0, l = parts.length; i < l; i++) { - var part = parts[i].part, isLiteral = parts[i].original !== part; - original += (parts[i].separator || "") + part; - if (!isLiteral && (part === ".." || part === "." || part === "this")) { - if (dig.length > 0) { - throw new _exception2["default"]("Invalid path: " + original, {loc}); - } else if (part === "..") { - depth++; - } - } else { - dig.push(part); - } - } - return { - type: "PathExpression", - data, - depth, - parts: dig, - original, - loc - }; - } - function prepareMustache(path, params, hash, open, strip, locInfo) { - var escapeFlag = open.charAt(3) || open.charAt(2), escaped = escapeFlag !== "{" && escapeFlag !== "&"; - var decorator = /\*/.test(open); - return { - type: decorator ? "Decorator" : "MustacheStatement", - path, - params, - hash, - escaped, - strip, - loc: this.locInfo(locInfo) - }; - } - function prepareRawBlock(openRawBlock, contents, close, locInfo) { - validateClose(openRawBlock, close); - locInfo = this.locInfo(locInfo); - var program = { - type: "Program", - body: contents, - strip: {}, - loc: locInfo - }; - return { - type: "BlockStatement", - path: openRawBlock.path, - params: openRawBlock.params, - hash: openRawBlock.hash, - program, - openStrip: {}, - inverseStrip: {}, - closeStrip: {}, - loc: locInfo - }; - } - function prepareBlock(openBlock, program, inverseAndProgram, close, inverted, locInfo) { - if (close && close.path) { - validateClose(openBlock, close); - } - var decorator = /\*/.test(openBlock.open); - program.blockParams = openBlock.blockParams; - var inverse = void 0, inverseStrip = void 0; - if (inverseAndProgram) { - if (decorator) { - throw new _exception2["default"]("Unexpected inverse block on decorator", inverseAndProgram); - } - if (inverseAndProgram.chain) { - inverseAndProgram.program.body[0].closeStrip = close.strip; - } - inverseStrip = inverseAndProgram.strip; - inverse = inverseAndProgram.program; - } - if (inverted) { - inverted = inverse; - inverse = program; - program = inverted; - } - return { - type: decorator ? "DecoratorBlock" : "BlockStatement", - path: openBlock.path, - params: openBlock.params, - hash: openBlock.hash, - program, - inverse, - openStrip: openBlock.strip, - inverseStrip, - closeStrip: close && close.strip, - loc: this.locInfo(locInfo) - }; - } - function prepareProgram(statements, loc) { - if (!loc && statements.length) { - var firstLoc = statements[0].loc, lastLoc = statements[statements.length - 1].loc; - if (firstLoc && lastLoc) { - loc = { - source: firstLoc.source, - start: { - line: firstLoc.start.line, - column: firstLoc.start.column - }, - end: { - line: lastLoc.end.line, - column: lastLoc.end.column - } - }; - } - } - return { - type: "Program", - body: statements, - strip: {}, - loc - }; - } - function preparePartialBlock(open, program, close, locInfo) { - validateClose(open, close); - return { - type: "PartialBlockStatement", - name: open.path, - params: open.params, - hash: open.hash, - program, - openStrip: open.strip, - closeStrip: close && close.strip, - loc: this.locInfo(locInfo) - }; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js - var require_base2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.parseWithoutProcessing = parseWithoutProcessing; - exports.parse = parse; - function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {}; - if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) - newObj[key] = obj[key]; - } - } - newObj["default"] = obj; - return newObj; - } - } - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _parser = require_parser2(); - var _parser2 = _interopRequireDefault(_parser); - var _whitespaceControl = require_whitespace_control(); - var _whitespaceControl2 = _interopRequireDefault(_whitespaceControl); - var _helpers = require_helpers2(); - var Helpers = _interopRequireWildcard(_helpers); - var _utils = require_utils(); - exports.parser = _parser2["default"]; - var yy = {}; - _utils.extend(yy, Helpers); - function parseWithoutProcessing(input, options) { - if (input.type === "Program") { - return input; - } - _parser2["default"].yy = yy; - yy.locInfo = function(locInfo) { - return new yy.SourceLocation(options && options.srcName, locInfo); - }; - var ast = _parser2["default"].parse(input); - return ast; - } - function parse(input, options) { - var ast = parseWithoutProcessing(input, options); - var strip = new _whitespaceControl2["default"](options); - return strip.accept(ast); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js - var require_compiler = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.Compiler = Compiler; - exports.precompile = precompile; - exports.compile = compile; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - var _utils = require_utils(); - var _ast = require_ast(); - var _ast2 = _interopRequireDefault(_ast); - var slice = [].slice; - function Compiler() { - } - Compiler.prototype = { - compiler: Compiler, - equals: function equals(other) { - var len = this.opcodes.length; - if (other.opcodes.length !== len) { - return false; - } - for (var i = 0; i < len; i++) { - var opcode = this.opcodes[i], otherOpcode = other.opcodes[i]; - if (opcode.opcode !== otherOpcode.opcode || !argEquals(opcode.args, otherOpcode.args)) { - return false; - } - } - len = this.children.length; - for (var i = 0; i < len; i++) { - if (!this.children[i].equals(other.children[i])) { - return false; - } - } - return true; - }, - guid: 0, - compile: function compile2(program, options) { - this.sourceNode = []; - this.opcodes = []; - this.children = []; - this.options = options; - this.stringParams = options.stringParams; - this.trackIds = options.trackIds; - options.blockParams = options.blockParams || []; - options.knownHelpers = _utils.extend(Object.create(null), { - helperMissing: true, - blockHelperMissing: true, - each: true, - "if": true, - unless: true, - "with": true, - log: true, - lookup: true - }, options.knownHelpers); - return this.accept(program); - }, - compileProgram: function compileProgram(program) { - var childCompiler = new this.compiler(), result = childCompiler.compile(program, this.options), guid = this.guid++; - this.usePartial = this.usePartial || result.usePartial; - this.children[guid] = result; - this.useDepths = this.useDepths || result.useDepths; - return guid; - }, - accept: function accept(node) { - if (!this[node.type]) { - throw new _exception2["default"]("Unknown type: " + node.type, node); - } - this.sourceNode.unshift(node); - var ret = this[node.type](node); - this.sourceNode.shift(); - return ret; - }, - Program: function Program(program) { - this.options.blockParams.unshift(program.blockParams); - var body = program.body, bodyLength = body.length; - for (var i = 0; i < bodyLength; i++) { - this.accept(body[i]); - } - this.options.blockParams.shift(); - this.isSimple = bodyLength === 1; - this.blockParams = program.blockParams ? program.blockParams.length : 0; - return this; - }, - BlockStatement: function BlockStatement(block) { - transformLiteralToPath(block); - var program = block.program, inverse = block.inverse; - program = program && this.compileProgram(program); - inverse = inverse && this.compileProgram(inverse); - var type = this.classifySexpr(block); - if (type === "helper") { - this.helperSexpr(block, program, inverse); - } else if (type === "simple") { - this.simpleSexpr(block); - this.opcode("pushProgram", program); - this.opcode("pushProgram", inverse); - this.opcode("emptyHash"); - this.opcode("blockValue", block.path.original); - } else { - this.ambiguousSexpr(block, program, inverse); - this.opcode("pushProgram", program); - this.opcode("pushProgram", inverse); - this.opcode("emptyHash"); - this.opcode("ambiguousBlockValue"); - } - this.opcode("append"); - }, - DecoratorBlock: function DecoratorBlock(decorator) { - var program = decorator.program && this.compileProgram(decorator.program); - var params = this.setupFullMustacheParams(decorator, program, void 0), path = decorator.path; - this.useDecorators = true; - this.opcode("registerDecorator", params.length, path.original); - }, - PartialStatement: function PartialStatement(partial) { - this.usePartial = true; - var program = partial.program; - if (program) { - program = this.compileProgram(partial.program); - } - var params = partial.params; - if (params.length > 1) { - throw new _exception2["default"]("Unsupported number of partial arguments: " + params.length, partial); - } else if (!params.length) { - if (this.options.explicitPartialContext) { - this.opcode("pushLiteral", "undefined"); - } else { - params.push({type: "PathExpression", parts: [], depth: 0}); - } - } - var partialName = partial.name.original, isDynamic = partial.name.type === "SubExpression"; - if (isDynamic) { - this.accept(partial.name); - } - this.setupFullMustacheParams(partial, program, void 0, true); - var indent = partial.indent || ""; - if (this.options.preventIndent && indent) { - this.opcode("appendContent", indent); - indent = ""; - } - this.opcode("invokePartial", isDynamic, partialName, indent); - this.opcode("append"); - }, - PartialBlockStatement: function PartialBlockStatement(partialBlock) { - this.PartialStatement(partialBlock); - }, - MustacheStatement: function MustacheStatement(mustache) { - this.SubExpression(mustache); - if (mustache.escaped && !this.options.noEscape) { - this.opcode("appendEscaped"); - } else { - this.opcode("append"); - } - }, - Decorator: function Decorator(decorator) { - this.DecoratorBlock(decorator); - }, - ContentStatement: function ContentStatement(content) { - if (content.value) { - this.opcode("appendContent", content.value); - } - }, - CommentStatement: function CommentStatement() { - }, - SubExpression: function SubExpression(sexpr) { - transformLiteralToPath(sexpr); - var type = this.classifySexpr(sexpr); - if (type === "simple") { - this.simpleSexpr(sexpr); - } else if (type === "helper") { - this.helperSexpr(sexpr); - } else { - this.ambiguousSexpr(sexpr); - } - }, - ambiguousSexpr: function ambiguousSexpr(sexpr, program, inverse) { - var path = sexpr.path, name = path.parts[0], isBlock = program != null || inverse != null; - this.opcode("getContext", path.depth); - this.opcode("pushProgram", program); - this.opcode("pushProgram", inverse); - path.strict = true; - this.accept(path); - this.opcode("invokeAmbiguous", name, isBlock); - }, - simpleSexpr: function simpleSexpr(sexpr) { - var path = sexpr.path; - path.strict = true; - this.accept(path); - this.opcode("resolvePossibleLambda"); - }, - helperSexpr: function helperSexpr(sexpr, program, inverse) { - var params = this.setupFullMustacheParams(sexpr, program, inverse), path = sexpr.path, name = path.parts[0]; - if (this.options.knownHelpers[name]) { - this.opcode("invokeKnownHelper", params.length, name); - } else if (this.options.knownHelpersOnly) { - throw new _exception2["default"]("You specified knownHelpersOnly, but used the unknown helper " + name, sexpr); - } else { - path.strict = true; - path.falsy = true; - this.accept(path); - this.opcode("invokeHelper", params.length, path.original, _ast2["default"].helpers.simpleId(path)); - } - }, - PathExpression: function PathExpression(path) { - this.addDepth(path.depth); - this.opcode("getContext", path.depth); - var name = path.parts[0], scoped = _ast2["default"].helpers.scopedId(path), blockParamId = !path.depth && !scoped && this.blockParamIndex(name); - if (blockParamId) { - this.opcode("lookupBlockParam", blockParamId, path.parts); - } else if (!name) { - this.opcode("pushContext"); - } else if (path.data) { - this.options.data = true; - this.opcode("lookupData", path.depth, path.parts, path.strict); - } else { - this.opcode("lookupOnContext", path.parts, path.falsy, path.strict, scoped); - } - }, - StringLiteral: function StringLiteral(string) { - this.opcode("pushString", string.value); - }, - NumberLiteral: function NumberLiteral(number) { - this.opcode("pushLiteral", number.value); - }, - BooleanLiteral: function BooleanLiteral(bool) { - this.opcode("pushLiteral", bool.value); - }, - UndefinedLiteral: function UndefinedLiteral() { - this.opcode("pushLiteral", "undefined"); - }, - NullLiteral: function NullLiteral() { - this.opcode("pushLiteral", "null"); - }, - Hash: function Hash(hash) { - var pairs = hash.pairs, i = 0, l = pairs.length; - this.opcode("pushHash"); - for (; i < l; i++) { - this.pushParam(pairs[i].value); - } - while (i--) { - this.opcode("assignToHash", pairs[i].key); - } - this.opcode("popHash"); - }, - opcode: function opcode(name) { - this.opcodes.push({ - opcode: name, - args: slice.call(arguments, 1), - loc: this.sourceNode[0].loc - }); - }, - addDepth: function addDepth(depth) { - if (!depth) { - return; - } - this.useDepths = true; - }, - classifySexpr: function classifySexpr(sexpr) { - var isSimple = _ast2["default"].helpers.simpleId(sexpr.path); - var isBlockParam = isSimple && !!this.blockParamIndex(sexpr.path.parts[0]); - var isHelper = !isBlockParam && _ast2["default"].helpers.helperExpression(sexpr); - var isEligible = !isBlockParam && (isHelper || isSimple); - if (isEligible && !isHelper) { - var _name = sexpr.path.parts[0], options = this.options; - if (options.knownHelpers[_name]) { - isHelper = true; - } else if (options.knownHelpersOnly) { - isEligible = false; - } - } - if (isHelper) { - return "helper"; - } else if (isEligible) { - return "ambiguous"; - } else { - return "simple"; - } - }, - pushParams: function pushParams(params) { - for (var i = 0, l = params.length; i < l; i++) { - this.pushParam(params[i]); - } - }, - pushParam: function pushParam(val) { - var value = val.value != null ? val.value : val.original || ""; - if (this.stringParams) { - if (value.replace) { - value = value.replace(/^(\.?\.\/)*/g, "").replace(/\//g, "."); - } - if (val.depth) { - this.addDepth(val.depth); - } - this.opcode("getContext", val.depth || 0); - this.opcode("pushStringParam", value, val.type); - if (val.type === "SubExpression") { - this.accept(val); - } - } else { - if (this.trackIds) { - var blockParamIndex = void 0; - if (val.parts && !_ast2["default"].helpers.scopedId(val) && !val.depth) { - blockParamIndex = this.blockParamIndex(val.parts[0]); - } - if (blockParamIndex) { - var blockParamChild = val.parts.slice(1).join("."); - this.opcode("pushId", "BlockParam", blockParamIndex, blockParamChild); - } else { - value = val.original || value; - if (value.replace) { - value = value.replace(/^this(?:\.|$)/, "").replace(/^\.\//, "").replace(/^\.$/, ""); - } - this.opcode("pushId", val.type, value); - } - } - this.accept(val); - } - }, - setupFullMustacheParams: function setupFullMustacheParams(sexpr, program, inverse, omitEmpty) { - var params = sexpr.params; - this.pushParams(params); - this.opcode("pushProgram", program); - this.opcode("pushProgram", inverse); - if (sexpr.hash) { - this.accept(sexpr.hash); - } else { - this.opcode("emptyHash", omitEmpty); - } - return params; - }, - blockParamIndex: function blockParamIndex(name) { - for (var depth = 0, len = this.options.blockParams.length; depth < len; depth++) { - var blockParams = this.options.blockParams[depth], param = blockParams && _utils.indexOf(blockParams, name); - if (blockParams && param >= 0) { - return [depth, param]; - } - } - } - }; - function precompile(input, options, env) { - if (input == null || typeof input !== "string" && input.type !== "Program") { - throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input); - } - options = options || {}; - if (!("data" in options)) { - options.data = true; - } - if (options.compat) { - options.useDepths = true; - } - var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options); - return new env.JavaScriptCompiler().compile(environment, options); - } - function compile(input, options, env) { - if (options === void 0) - options = {}; - if (input == null || typeof input !== "string" && input.type !== "Program") { - throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + input); - } - options = _utils.extend({}, options); - if (!("data" in options)) { - options.data = true; - } - if (options.compat) { - options.useDepths = true; - } - var compiled = void 0; - function compileInput() { - var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options), templateSpec = new env.JavaScriptCompiler().compile(environment, options, void 0, true); - return env.template(templateSpec); - } - function ret(context, execOptions) { - if (!compiled) { - compiled = compileInput(); - } - return compiled.call(this, context, execOptions); - } - ret._setup = function(setupOptions) { - if (!compiled) { - compiled = compileInput(); - } - return compiled._setup(setupOptions); - }; - ret._child = function(i, data, blockParams, depths) { - if (!compiled) { - compiled = compileInput(); - } - return compiled._child(i, data, blockParams, depths); - }; - return ret; - } - function argEquals(a, b) { - if (a === b) { - return true; - } - if (_utils.isArray(a) && _utils.isArray(b) && a.length === b.length) { - for (var i = 0; i < a.length; i++) { - if (!argEquals(a[i], b[i])) { - return false; - } - } - return true; - } - } - function transformLiteralToPath(sexpr) { - if (!sexpr.path.parts) { - var literal = sexpr.path; - sexpr.path = { - type: "PathExpression", - data: false, - depth: 0, - parts: [literal.original + ""], - original: literal.original + "", - loc: literal.loc - }; - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/base64.js - var require_base64 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/base64.js"(exports) { - var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""); - exports.encode = function(number) { - if (0 <= number && number < intToCharMap.length) { - return intToCharMap[number]; - } - throw new TypeError("Must be between 0 and 63: " + number); - }; - exports.decode = function(charCode) { - var bigA = 65; - var bigZ = 90; - var littleA = 97; - var littleZ = 122; - var zero = 48; - var nine = 57; - var plus = 43; - var slash = 47; - var littleOffset = 26; - var numberOffset = 52; - if (bigA <= charCode && charCode <= bigZ) { - return charCode - bigA; - } - if (littleA <= charCode && charCode <= littleZ) { - return charCode - littleA + littleOffset; - } - if (zero <= charCode && charCode <= nine) { - return charCode - zero + numberOffset; - } - if (charCode == plus) { - return 62; - } - if (charCode == slash) { - return 63; - } - return -1; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/base64-vlq.js - var require_base64_vlq = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/base64-vlq.js"(exports) { - var base64 = require_base64(); - var VLQ_BASE_SHIFT = 5; - var VLQ_BASE = 1 << VLQ_BASE_SHIFT; - var VLQ_BASE_MASK = VLQ_BASE - 1; - var VLQ_CONTINUATION_BIT = VLQ_BASE; - function toVLQSigned(aValue) { - return aValue < 0 ? (-aValue << 1) + 1 : (aValue << 1) + 0; - } - function fromVLQSigned(aValue) { - var isNegative = (aValue & 1) === 1; - var shifted = aValue >> 1; - return isNegative ? -shifted : shifted; - } - exports.encode = function base64VLQ_encode(aValue) { - var encoded = ""; - var digit; - var vlq = toVLQSigned(aValue); - do { - digit = vlq & VLQ_BASE_MASK; - vlq >>>= VLQ_BASE_SHIFT; - if (vlq > 0) { - digit |= VLQ_CONTINUATION_BIT; - } - encoded += base64.encode(digit); - } while (vlq > 0); - return encoded; - }; - exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { - var strLen = aStr.length; - var result = 0; - var shift = 0; - var continuation, digit; - do { - if (aIndex >= strLen) { - throw new Error("Expected more digits in base 64 VLQ value."); - } - digit = base64.decode(aStr.charCodeAt(aIndex++)); - if (digit === -1) { - throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); - } - continuation = !!(digit & VLQ_CONTINUATION_BIT); - digit &= VLQ_BASE_MASK; - result = result + (digit << shift); - shift += VLQ_BASE_SHIFT; - } while (continuation); - aOutParam.value = fromVLQSigned(result); - aOutParam.rest = aIndex; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/util.js - var require_util = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/util.js"(exports) { - function getArg(aArgs, aName, aDefaultValue) { - if (aName in aArgs) { - return aArgs[aName]; - } else if (arguments.length === 3) { - return aDefaultValue; - } else { - throw new Error('"' + aName + '" is a required argument.'); - } - } - exports.getArg = getArg; - var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; - var dataUrlRegexp = /^data:.+\,.+$/; - function urlParse(aUrl) { - var match = aUrl.match(urlRegexp); - if (!match) { - return null; - } - return { - scheme: match[1], - auth: match[2], - host: match[3], - port: match[4], - path: match[5] - }; - } - exports.urlParse = urlParse; - function urlGenerate(aParsedUrl) { - var url = ""; - if (aParsedUrl.scheme) { - url += aParsedUrl.scheme + ":"; - } - url += "//"; - if (aParsedUrl.auth) { - url += aParsedUrl.auth + "@"; - } - if (aParsedUrl.host) { - url += aParsedUrl.host; - } - if (aParsedUrl.port) { - url += ":" + aParsedUrl.port; - } - if (aParsedUrl.path) { - url += aParsedUrl.path; - } - return url; - } - exports.urlGenerate = urlGenerate; - function normalize(aPath) { - var path = aPath; - var url = urlParse(aPath); - if (url) { - if (!url.path) { - return aPath; - } - path = url.path; - } - var isAbsolute = exports.isAbsolute(path); - var parts = path.split(/\/+/); - for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { - part = parts[i]; - if (part === ".") { - parts.splice(i, 1); - } else if (part === "..") { - up++; - } else if (up > 0) { - if (part === "") { - parts.splice(i + 1, up); - up = 0; - } else { - parts.splice(i, 2); - up--; - } - } - } - path = parts.join("/"); - if (path === "") { - path = isAbsolute ? "/" : "."; - } - if (url) { - url.path = path; - return urlGenerate(url); - } - return path; - } - exports.normalize = normalize; - function join(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - if (aPath === "") { - aPath = "."; - } - var aPathUrl = urlParse(aPath); - var aRootUrl = urlParse(aRoot); - if (aRootUrl) { - aRoot = aRootUrl.path || "/"; - } - if (aPathUrl && !aPathUrl.scheme) { - if (aRootUrl) { - aPathUrl.scheme = aRootUrl.scheme; - } - return urlGenerate(aPathUrl); - } - if (aPathUrl || aPath.match(dataUrlRegexp)) { - return aPath; - } - if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { - aRootUrl.host = aPath; - return urlGenerate(aRootUrl); - } - var joined = aPath.charAt(0) === "/" ? aPath : normalize(aRoot.replace(/\/+$/, "") + "/" + aPath); - if (aRootUrl) { - aRootUrl.path = joined; - return urlGenerate(aRootUrl); - } - return joined; - } - exports.join = join; - exports.isAbsolute = function(aPath) { - return aPath.charAt(0) === "/" || urlRegexp.test(aPath); - }; - function relative(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - aRoot = aRoot.replace(/\/$/, ""); - var level = 0; - while (aPath.indexOf(aRoot + "/") !== 0) { - var index = aRoot.lastIndexOf("/"); - if (index < 0) { - return aPath; - } - aRoot = aRoot.slice(0, index); - if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { - return aPath; - } - ++level; - } - return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); - } - exports.relative = relative; - var supportsNullProto = function() { - var obj = Object.create(null); - return !("__proto__" in obj); - }(); - function identity(s) { - return s; - } - function toSetString(aStr) { - if (isProtoString(aStr)) { - return "$" + aStr; - } - return aStr; - } - exports.toSetString = supportsNullProto ? identity : toSetString; - function fromSetString(aStr) { - if (isProtoString(aStr)) { - return aStr.slice(1); - } - return aStr; - } - exports.fromSetString = supportsNullProto ? identity : fromSetString; - function isProtoString(s) { - if (!s) { - return false; - } - var length = s.length; - if (length < 9) { - return false; - } - if (s.charCodeAt(length - 1) !== 95 || s.charCodeAt(length - 2) !== 95 || s.charCodeAt(length - 3) !== 111 || s.charCodeAt(length - 4) !== 116 || s.charCodeAt(length - 5) !== 111 || s.charCodeAt(length - 6) !== 114 || s.charCodeAt(length - 7) !== 112 || s.charCodeAt(length - 8) !== 95 || s.charCodeAt(length - 9) !== 95) { - return false; - } - for (var i = length - 10; i >= 0; i--) { - if (s.charCodeAt(i) !== 36) { - return false; - } - } - return true; - } - function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { - var cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0 || onlyCompareOriginal) { - return cmp; - } - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - return strcmp(mappingA.name, mappingB.name); - } - exports.compareByOriginalPositions = compareByOriginalPositions; - function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0 || onlyCompareGenerated) { - return cmp; - } - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - return strcmp(mappingA.name, mappingB.name); - } - exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; - function strcmp(aStr1, aStr2) { - if (aStr1 === aStr2) { - return 0; - } - if (aStr1 === null) { - return 1; - } - if (aStr2 === null) { - return -1; - } - if (aStr1 > aStr2) { - return 1; - } - return -1; - } - function compareByGeneratedPositionsInflated(mappingA, mappingB) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - return strcmp(mappingA.name, mappingB.name); - } - exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; - function parseSourceMapInput(str) { - return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, "")); - } - exports.parseSourceMapInput = parseSourceMapInput; - function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { - sourceURL = sourceURL || ""; - if (sourceRoot) { - if (sourceRoot[sourceRoot.length - 1] !== "/" && sourceURL[0] !== "/") { - sourceRoot += "/"; - } - sourceURL = sourceRoot + sourceURL; - } - if (sourceMapURL) { - var parsed = urlParse(sourceMapURL); - if (!parsed) { - throw new Error("sourceMapURL could not be parsed"); - } - if (parsed.path) { - var index = parsed.path.lastIndexOf("/"); - if (index >= 0) { - parsed.path = parsed.path.substring(0, index + 1); - } - } - sourceURL = join(urlGenerate(parsed), sourceURL); - } - return normalize(sourceURL); - } - exports.computeSourceURL = computeSourceURL; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/array-set.js - var require_array_set = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/array-set.js"(exports) { - var util = require_util(); - var has = Object.prototype.hasOwnProperty; - var hasNativeMap = typeof Map !== "undefined"; - function ArraySet() { - this._array = []; - this._set = hasNativeMap ? new Map() : Object.create(null); - } - ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { - var set = new ArraySet(); - for (var i = 0, len = aArray.length; i < len; i++) { - set.add(aArray[i], aAllowDuplicates); - } - return set; - }; - ArraySet.prototype.size = function ArraySet_size() { - return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; - }; - ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { - var sStr = hasNativeMap ? aStr : util.toSetString(aStr); - var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); - var idx = this._array.length; - if (!isDuplicate || aAllowDuplicates) { - this._array.push(aStr); - } - if (!isDuplicate) { - if (hasNativeMap) { - this._set.set(aStr, idx); - } else { - this._set[sStr] = idx; - } - } - }; - ArraySet.prototype.has = function ArraySet_has(aStr) { - if (hasNativeMap) { - return this._set.has(aStr); - } else { - var sStr = util.toSetString(aStr); - return has.call(this._set, sStr); - } - }; - ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { - if (hasNativeMap) { - var idx = this._set.get(aStr); - if (idx >= 0) { - return idx; - } - } else { - var sStr = util.toSetString(aStr); - if (has.call(this._set, sStr)) { - return this._set[sStr]; - } - } - throw new Error('"' + aStr + '" is not in the set.'); - }; - ArraySet.prototype.at = function ArraySet_at(aIdx) { - if (aIdx >= 0 && aIdx < this._array.length) { - return this._array[aIdx]; - } - throw new Error("No element indexed by " + aIdx); - }; - ArraySet.prototype.toArray = function ArraySet_toArray() { - return this._array.slice(); - }; - exports.ArraySet = ArraySet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/mapping-list.js - var require_mapping_list = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/mapping-list.js"(exports) { - var util = require_util(); - function generatedPositionAfter(mappingA, mappingB) { - var lineA = mappingA.generatedLine; - var lineB = mappingB.generatedLine; - var columnA = mappingA.generatedColumn; - var columnB = mappingB.generatedColumn; - return lineB > lineA || lineB == lineA && columnB >= columnA || util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; - } - function MappingList() { - this._array = []; - this._sorted = true; - this._last = {generatedLine: -1, generatedColumn: 0}; - } - MappingList.prototype.unsortedForEach = function MappingList_forEach(aCallback, aThisArg) { - this._array.forEach(aCallback, aThisArg); - }; - MappingList.prototype.add = function MappingList_add(aMapping) { - if (generatedPositionAfter(this._last, aMapping)) { - this._last = aMapping; - this._array.push(aMapping); - } else { - this._sorted = false; - this._array.push(aMapping); - } - }; - MappingList.prototype.toArray = function MappingList_toArray() { - if (!this._sorted) { - this._array.sort(util.compareByGeneratedPositionsInflated); - this._sorted = true; - } - return this._array; - }; - exports.MappingList = MappingList; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/source-map-generator.js - var require_source_map_generator = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/source-map-generator.js"(exports) { - var base64VLQ = require_base64_vlq(); - var util = require_util(); - var ArraySet = require_array_set().ArraySet; - var MappingList = require_mapping_list().MappingList; - function SourceMapGenerator(aArgs) { - if (!aArgs) { - aArgs = {}; - } - this._file = util.getArg(aArgs, "file", null); - this._sourceRoot = util.getArg(aArgs, "sourceRoot", null); - this._skipValidation = util.getArg(aArgs, "skipValidation", false); - this._sources = new ArraySet(); - this._names = new ArraySet(); - this._mappings = new MappingList(); - this._sourcesContents = null; - } - SourceMapGenerator.prototype._version = 3; - SourceMapGenerator.fromSourceMap = function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { - var sourceRoot = aSourceMapConsumer.sourceRoot; - var generator = new SourceMapGenerator({ - file: aSourceMapConsumer.file, - sourceRoot - }); - aSourceMapConsumer.eachMapping(function(mapping) { - var newMapping = { - generated: { - line: mapping.generatedLine, - column: mapping.generatedColumn - } - }; - if (mapping.source != null) { - newMapping.source = mapping.source; - if (sourceRoot != null) { - newMapping.source = util.relative(sourceRoot, newMapping.source); - } - newMapping.original = { - line: mapping.originalLine, - column: mapping.originalColumn - }; - if (mapping.name != null) { - newMapping.name = mapping.name; - } - } - generator.addMapping(newMapping); - }); - aSourceMapConsumer.sources.forEach(function(sourceFile) { - var sourceRelative = sourceFile; - if (sourceRoot !== null) { - sourceRelative = util.relative(sourceRoot, sourceFile); - } - if (!generator._sources.has(sourceRelative)) { - generator._sources.add(sourceRelative); - } - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - generator.setSourceContent(sourceFile, content); - } - }); - return generator; - }; - SourceMapGenerator.prototype.addMapping = function SourceMapGenerator_addMapping(aArgs) { - var generated = util.getArg(aArgs, "generated"); - var original = util.getArg(aArgs, "original", null); - var source = util.getArg(aArgs, "source", null); - var name = util.getArg(aArgs, "name", null); - if (!this._skipValidation) { - this._validateMapping(generated, original, source, name); - } - if (source != null) { - source = String(source); - if (!this._sources.has(source)) { - this._sources.add(source); - } - } - if (name != null) { - name = String(name); - if (!this._names.has(name)) { - this._names.add(name); - } - } - this._mappings.add({ - generatedLine: generated.line, - generatedColumn: generated.column, - originalLine: original != null && original.line, - originalColumn: original != null && original.column, - source, - name - }); - }; - SourceMapGenerator.prototype.setSourceContent = function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { - var source = aSourceFile; - if (this._sourceRoot != null) { - source = util.relative(this._sourceRoot, source); - } - if (aSourceContent != null) { - if (!this._sourcesContents) { - this._sourcesContents = Object.create(null); - } - this._sourcesContents[util.toSetString(source)] = aSourceContent; - } else if (this._sourcesContents) { - delete this._sourcesContents[util.toSetString(source)]; - if (Object.keys(this._sourcesContents).length === 0) { - this._sourcesContents = null; - } - } - }; - SourceMapGenerator.prototype.applySourceMap = function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { - var sourceFile = aSourceFile; - if (aSourceFile == null) { - if (aSourceMapConsumer.file == null) { - throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`); - } - sourceFile = aSourceMapConsumer.file; - } - var sourceRoot = this._sourceRoot; - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - var newSources = new ArraySet(); - var newNames = new ArraySet(); - this._mappings.unsortedForEach(function(mapping) { - if (mapping.source === sourceFile && mapping.originalLine != null) { - var original = aSourceMapConsumer.originalPositionFor({ - line: mapping.originalLine, - column: mapping.originalColumn - }); - if (original.source != null) { - mapping.source = original.source; - if (aSourceMapPath != null) { - mapping.source = util.join(aSourceMapPath, mapping.source); - } - if (sourceRoot != null) { - mapping.source = util.relative(sourceRoot, mapping.source); - } - mapping.originalLine = original.line; - mapping.originalColumn = original.column; - if (original.name != null) { - mapping.name = original.name; - } - } - } - var source = mapping.source; - if (source != null && !newSources.has(source)) { - newSources.add(source); - } - var name = mapping.name; - if (name != null && !newNames.has(name)) { - newNames.add(name); - } - }, this); - this._sources = newSources; - this._names = newNames; - aSourceMapConsumer.sources.forEach(function(sourceFile2) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile2); - if (content != null) { - if (aSourceMapPath != null) { - sourceFile2 = util.join(aSourceMapPath, sourceFile2); - } - if (sourceRoot != null) { - sourceFile2 = util.relative(sourceRoot, sourceFile2); - } - this.setSourceContent(sourceFile2, content); - } - }, this); - }; - SourceMapGenerator.prototype._validateMapping = function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, aName) { - if (aOriginal && typeof aOriginal.line !== "number" && typeof aOriginal.column !== "number") { - throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values."); - } - if (aGenerated && "line" in aGenerated && "column" in aGenerated && aGenerated.line > 0 && aGenerated.column >= 0 && !aOriginal && !aSource && !aName) { - return; - } else if (aGenerated && "line" in aGenerated && "column" in aGenerated && aOriginal && "line" in aOriginal && "column" in aOriginal && aGenerated.line > 0 && aGenerated.column >= 0 && aOriginal.line > 0 && aOriginal.column >= 0 && aSource) { - return; - } else { - throw new Error("Invalid mapping: " + JSON.stringify({ - generated: aGenerated, - source: aSource, - original: aOriginal, - name: aName - })); - } - }; - SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() { - var previousGeneratedColumn = 0; - var previousGeneratedLine = 1; - var previousOriginalColumn = 0; - var previousOriginalLine = 0; - var previousName = 0; - var previousSource = 0; - var result = ""; - var next; - var mapping; - var nameIdx; - var sourceIdx; - var mappings = this._mappings.toArray(); - for (var i = 0, len = mappings.length; i < len; i++) { - mapping = mappings[i]; - next = ""; - if (mapping.generatedLine !== previousGeneratedLine) { - previousGeneratedColumn = 0; - while (mapping.generatedLine !== previousGeneratedLine) { - next += ";"; - previousGeneratedLine++; - } - } else { - if (i > 0) { - if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { - continue; - } - next += ","; - } - } - next += base64VLQ.encode(mapping.generatedColumn - previousGeneratedColumn); - previousGeneratedColumn = mapping.generatedColumn; - if (mapping.source != null) { - sourceIdx = this._sources.indexOf(mapping.source); - next += base64VLQ.encode(sourceIdx - previousSource); - previousSource = sourceIdx; - next += base64VLQ.encode(mapping.originalLine - 1 - previousOriginalLine); - previousOriginalLine = mapping.originalLine - 1; - next += base64VLQ.encode(mapping.originalColumn - previousOriginalColumn); - previousOriginalColumn = mapping.originalColumn; - if (mapping.name != null) { - nameIdx = this._names.indexOf(mapping.name); - next += base64VLQ.encode(nameIdx - previousName); - previousName = nameIdx; - } - } - result += next; - } - return result; - }; - SourceMapGenerator.prototype._generateSourcesContent = function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { - return aSources.map(function(source) { - if (!this._sourcesContents) { - return null; - } - if (aSourceRoot != null) { - source = util.relative(aSourceRoot, source); - } - var key = util.toSetString(source); - return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) ? this._sourcesContents[key] : null; - }, this); - }; - SourceMapGenerator.prototype.toJSON = function SourceMapGenerator_toJSON() { - var map = { - version: this._version, - sources: this._sources.toArray(), - names: this._names.toArray(), - mappings: this._serializeMappings() - }; - if (this._file != null) { - map.file = this._file; - } - if (this._sourceRoot != null) { - map.sourceRoot = this._sourceRoot; - } - if (this._sourcesContents) { - map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); - } - return map; - }; - SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() { - return JSON.stringify(this.toJSON()); - }; - exports.SourceMapGenerator = SourceMapGenerator; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/binary-search.js - var require_binary_search = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/binary-search.js"(exports) { - exports.GREATEST_LOWER_BOUND = 1; - exports.LEAST_UPPER_BOUND = 2; - function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { - var mid = Math.floor((aHigh - aLow) / 2) + aLow; - var cmp = aCompare(aNeedle, aHaystack[mid], true); - if (cmp === 0) { - return mid; - } else if (cmp > 0) { - if (aHigh - mid > 1) { - return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); - } - if (aBias == exports.LEAST_UPPER_BOUND) { - return aHigh < aHaystack.length ? aHigh : -1; - } else { - return mid; - } - } else { - if (mid - aLow > 1) { - return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); - } - if (aBias == exports.LEAST_UPPER_BOUND) { - return mid; - } else { - return aLow < 0 ? -1 : aLow; - } - } - } - exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { - if (aHaystack.length === 0) { - return -1; - } - var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, aCompare, aBias || exports.GREATEST_LOWER_BOUND); - if (index < 0) { - return -1; - } - while (index - 1 >= 0) { - if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { - break; - } - --index; - } - return index; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/quick-sort.js - var require_quick_sort = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/quick-sort.js"(exports) { - function swap(ary, x, y) { - var temp = ary[x]; - ary[x] = ary[y]; - ary[y] = temp; - } - function randomIntInRange(low, high) { - return Math.round(low + Math.random() * (high - low)); - } - function doQuickSort(ary, comparator, p, r) { - if (p < r) { - var pivotIndex = randomIntInRange(p, r); - var i = p - 1; - swap(ary, pivotIndex, r); - var pivot = ary[r]; - for (var j = p; j < r; j++) { - if (comparator(ary[j], pivot) <= 0) { - i += 1; - swap(ary, i, j); - } - } - swap(ary, i + 1, j); - var q = i + 1; - doQuickSort(ary, comparator, p, q - 1); - doQuickSort(ary, comparator, q + 1, r); - } - } - exports.quickSort = function(ary, comparator) { - doQuickSort(ary, comparator, 0, ary.length - 1); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/source-map-consumer.js - var require_source_map_consumer = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/source-map-consumer.js"(exports) { - var util = require_util(); - var binarySearch = require_binary_search(); - var ArraySet = require_array_set().ArraySet; - var base64VLQ = require_base64_vlq(); - var quickSort = require_quick_sort().quickSort; - function SourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === "string") { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); - } - SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { - return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); - }; - SourceMapConsumer.prototype._version = 3; - SourceMapConsumer.prototype.__generatedMappings = null; - Object.defineProperty(SourceMapConsumer.prototype, "_generatedMappings", { - configurable: true, - enumerable: true, - get: function() { - if (!this.__generatedMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - return this.__generatedMappings; - } - }); - SourceMapConsumer.prototype.__originalMappings = null; - Object.defineProperty(SourceMapConsumer.prototype, "_originalMappings", { - configurable: true, - enumerable: true, - get: function() { - if (!this.__originalMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - return this.__originalMappings; - } - }); - SourceMapConsumer.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator(aStr, index) { - var c = aStr.charAt(index); - return c === ";" || c === ","; - }; - SourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - throw new Error("Subclasses must implement _parseMappings"); - }; - SourceMapConsumer.GENERATED_ORDER = 1; - SourceMapConsumer.ORIGINAL_ORDER = 2; - SourceMapConsumer.GREATEST_LOWER_BOUND = 1; - SourceMapConsumer.LEAST_UPPER_BOUND = 2; - SourceMapConsumer.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { - var context = aContext || null; - var order = aOrder || SourceMapConsumer.GENERATED_ORDER; - var mappings; - switch (order) { - case SourceMapConsumer.GENERATED_ORDER: - mappings = this._generatedMappings; - break; - case SourceMapConsumer.ORIGINAL_ORDER: - mappings = this._originalMappings; - break; - default: - throw new Error("Unknown order of iteration."); - } - var sourceRoot = this.sourceRoot; - mappings.map(function(mapping) { - var source = mapping.source === null ? null : this._sources.at(mapping.source); - source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); - return { - source, - generatedLine: mapping.generatedLine, - generatedColumn: mapping.generatedColumn, - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: mapping.name === null ? null : this._names.at(mapping.name) - }; - }, this).forEach(aCallback, context); - }; - SourceMapConsumer.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { - var line = util.getArg(aArgs, "line"); - var needle = { - source: util.getArg(aArgs, "source"), - originalLine: line, - originalColumn: util.getArg(aArgs, "column", 0) - }; - needle.source = this._findSourceIndex(needle.source); - if (needle.source < 0) { - return []; - } - var mappings = []; - var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, binarySearch.LEAST_UPPER_BOUND); - if (index >= 0) { - var mapping = this._originalMappings[index]; - if (aArgs.column === void 0) { - var originalLine = mapping.originalLine; - while (mapping && mapping.originalLine === originalLine) { - mappings.push({ - line: util.getArg(mapping, "generatedLine", null), - column: util.getArg(mapping, "generatedColumn", null), - lastColumn: util.getArg(mapping, "lastGeneratedColumn", null) - }); - mapping = this._originalMappings[++index]; - } - } else { - var originalColumn = mapping.originalColumn; - while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) { - mappings.push({ - line: util.getArg(mapping, "generatedLine", null), - column: util.getArg(mapping, "generatedColumn", null), - lastColumn: util.getArg(mapping, "lastGeneratedColumn", null) - }); - mapping = this._originalMappings[++index]; - } - } - } - return mappings; - }; - exports.SourceMapConsumer = SourceMapConsumer; - function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === "string") { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - var version = util.getArg(sourceMap, "version"); - var sources = util.getArg(sourceMap, "sources"); - var names = util.getArg(sourceMap, "names", []); - var sourceRoot = util.getArg(sourceMap, "sourceRoot", null); - var sourcesContent = util.getArg(sourceMap, "sourcesContent", null); - var mappings = util.getArg(sourceMap, "mappings"); - var file = util.getArg(sourceMap, "file", null); - if (version != this._version) { - throw new Error("Unsupported version: " + version); - } - if (sourceRoot) { - sourceRoot = util.normalize(sourceRoot); - } - sources = sources.map(String).map(util.normalize).map(function(source) { - return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) ? util.relative(sourceRoot, source) : source; - }); - this._names = ArraySet.fromArray(names.map(String), true); - this._sources = ArraySet.fromArray(sources, true); - this._absoluteSources = this._sources.toArray().map(function(s) { - return util.computeSourceURL(sourceRoot, s, aSourceMapURL); - }); - this.sourceRoot = sourceRoot; - this.sourcesContent = sourcesContent; - this._mappings = mappings; - this._sourceMapURL = aSourceMapURL; - this.file = file; - } - BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); - BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; - BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - if (this._sources.has(relativeSource)) { - return this._sources.indexOf(relativeSource); - } - var i; - for (i = 0; i < this._absoluteSources.length; ++i) { - if (this._absoluteSources[i] == aSource) { - return i; - } - } - return -1; - }; - BasicSourceMapConsumer.fromSourceMap = function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { - var smc = Object.create(BasicSourceMapConsumer.prototype); - var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); - var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); - smc.sourceRoot = aSourceMap._sourceRoot; - smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), smc.sourceRoot); - smc.file = aSourceMap._file; - smc._sourceMapURL = aSourceMapURL; - smc._absoluteSources = smc._sources.toArray().map(function(s) { - return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); - }); - var generatedMappings = aSourceMap._mappings.toArray().slice(); - var destGeneratedMappings = smc.__generatedMappings = []; - var destOriginalMappings = smc.__originalMappings = []; - for (var i = 0, length = generatedMappings.length; i < length; i++) { - var srcMapping = generatedMappings[i]; - var destMapping = new Mapping(); - destMapping.generatedLine = srcMapping.generatedLine; - destMapping.generatedColumn = srcMapping.generatedColumn; - if (srcMapping.source) { - destMapping.source = sources.indexOf(srcMapping.source); - destMapping.originalLine = srcMapping.originalLine; - destMapping.originalColumn = srcMapping.originalColumn; - if (srcMapping.name) { - destMapping.name = names.indexOf(srcMapping.name); - } - destOriginalMappings.push(destMapping); - } - destGeneratedMappings.push(destMapping); - } - quickSort(smc.__originalMappings, util.compareByOriginalPositions); - return smc; - }; - BasicSourceMapConsumer.prototype._version = 3; - Object.defineProperty(BasicSourceMapConsumer.prototype, "sources", { - get: function() { - return this._absoluteSources.slice(); - } - }); - function Mapping() { - this.generatedLine = 0; - this.generatedColumn = 0; - this.source = null; - this.originalLine = null; - this.originalColumn = null; - this.name = null; - } - BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - var generatedLine = 1; - var previousGeneratedColumn = 0; - var previousOriginalLine = 0; - var previousOriginalColumn = 0; - var previousSource = 0; - var previousName = 0; - var length = aStr.length; - var index = 0; - var cachedSegments = {}; - var temp = {}; - var originalMappings = []; - var generatedMappings = []; - var mapping, str, segment, end, value; - while (index < length) { - if (aStr.charAt(index) === ";") { - generatedLine++; - index++; - previousGeneratedColumn = 0; - } else if (aStr.charAt(index) === ",") { - index++; - } else { - mapping = new Mapping(); - mapping.generatedLine = generatedLine; - for (end = index; end < length; end++) { - if (this._charIsMappingSeparator(aStr, end)) { - break; - } - } - str = aStr.slice(index, end); - segment = cachedSegments[str]; - if (segment) { - index += str.length; - } else { - segment = []; - while (index < end) { - base64VLQ.decode(aStr, index, temp); - value = temp.value; - index = temp.rest; - segment.push(value); - } - if (segment.length === 2) { - throw new Error("Found a source, but no line and column"); - } - if (segment.length === 3) { - throw new Error("Found a source and line, but no column"); - } - cachedSegments[str] = segment; - } - mapping.generatedColumn = previousGeneratedColumn + segment[0]; - previousGeneratedColumn = mapping.generatedColumn; - if (segment.length > 1) { - mapping.source = previousSource + segment[1]; - previousSource += segment[1]; - mapping.originalLine = previousOriginalLine + segment[2]; - previousOriginalLine = mapping.originalLine; - mapping.originalLine += 1; - mapping.originalColumn = previousOriginalColumn + segment[3]; - previousOriginalColumn = mapping.originalColumn; - if (segment.length > 4) { - mapping.name = previousName + segment[4]; - previousName += segment[4]; - } - } - generatedMappings.push(mapping); - if (typeof mapping.originalLine === "number") { - originalMappings.push(mapping); - } - } - } - quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); - this.__generatedMappings = generatedMappings; - quickSort(originalMappings, util.compareByOriginalPositions); - this.__originalMappings = originalMappings; - }; - BasicSourceMapConsumer.prototype._findMapping = function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, aColumnName, aComparator, aBias) { - if (aNeedle[aLineName] <= 0) { - throw new TypeError("Line must be greater than or equal to 1, got " + aNeedle[aLineName]); - } - if (aNeedle[aColumnName] < 0) { - throw new TypeError("Column must be greater than or equal to 0, got " + aNeedle[aColumnName]); - } - return binarySearch.search(aNeedle, aMappings, aComparator, aBias); - }; - BasicSourceMapConsumer.prototype.computeColumnSpans = function SourceMapConsumer_computeColumnSpans() { - for (var index = 0; index < this._generatedMappings.length; ++index) { - var mapping = this._generatedMappings[index]; - if (index + 1 < this._generatedMappings.length) { - var nextMapping = this._generatedMappings[index + 1]; - if (mapping.generatedLine === nextMapping.generatedLine) { - mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; - continue; - } - } - mapping.lastGeneratedColumn = Infinity; - } - }; - BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, "line"), - generatedColumn: util.getArg(aArgs, "column") - }; - var index = this._findMapping(needle, this._generatedMappings, "generatedLine", "generatedColumn", util.compareByGeneratedPositionsDeflated, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)); - if (index >= 0) { - var mapping = this._generatedMappings[index]; - if (mapping.generatedLine === needle.generatedLine) { - var source = util.getArg(mapping, "source", null); - if (source !== null) { - source = this._sources.at(source); - source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); - } - var name = util.getArg(mapping, "name", null); - if (name !== null) { - name = this._names.at(name); - } - return { - source, - line: util.getArg(mapping, "originalLine", null), - column: util.getArg(mapping, "originalColumn", null), - name - }; - } - } - return { - source: null, - line: null, - column: null, - name: null - }; - }; - BasicSourceMapConsumer.prototype.hasContentsOfAllSources = function BasicSourceMapConsumer_hasContentsOfAllSources() { - if (!this.sourcesContent) { - return false; - } - return this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(sc) { - return sc == null; - }); - }; - BasicSourceMapConsumer.prototype.sourceContentFor = function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - if (!this.sourcesContent) { - return null; - } - var index = this._findSourceIndex(aSource); - if (index >= 0) { - return this.sourcesContent[index]; - } - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - var url; - if (this.sourceRoot != null && (url = util.urlParse(this.sourceRoot))) { - var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); - if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) { - return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]; - } - if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) { - return this.sourcesContent[this._sources.indexOf("/" + relativeSource)]; - } - } - if (nullOnMissing) { - return null; - } else { - throw new Error('"' + relativeSource + '" is not in the SourceMap.'); - } - }; - BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor(aArgs) { - var source = util.getArg(aArgs, "source"); - source = this._findSourceIndex(source); - if (source < 0) { - return { - line: null, - column: null, - lastColumn: null - }; - } - var needle = { - source, - originalLine: util.getArg(aArgs, "line"), - originalColumn: util.getArg(aArgs, "column") - }; - var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)); - if (index >= 0) { - var mapping = this._originalMappings[index]; - if (mapping.source === needle.source) { - return { - line: util.getArg(mapping, "generatedLine", null), - column: util.getArg(mapping, "generatedColumn", null), - lastColumn: util.getArg(mapping, "lastGeneratedColumn", null) - }; - } - } - return { - line: null, - column: null, - lastColumn: null - }; - }; - exports.BasicSourceMapConsumer = BasicSourceMapConsumer; - function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === "string") { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - var version = util.getArg(sourceMap, "version"); - var sections = util.getArg(sourceMap, "sections"); - if (version != this._version) { - throw new Error("Unsupported version: " + version); - } - this._sources = new ArraySet(); - this._names = new ArraySet(); - var lastOffset = { - line: -1, - column: 0 - }; - this._sections = sections.map(function(s) { - if (s.url) { - throw new Error("Support for url field in sections not implemented."); - } - var offset = util.getArg(s, "offset"); - var offsetLine = util.getArg(offset, "line"); - var offsetColumn = util.getArg(offset, "column"); - if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) { - throw new Error("Section offsets must be ordered and non-overlapping."); - } - lastOffset = offset; - return { - generatedOffset: { - generatedLine: offsetLine + 1, - generatedColumn: offsetColumn + 1 - }, - consumer: new SourceMapConsumer(util.getArg(s, "map"), aSourceMapURL) - }; - }); - } - IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); - IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; - IndexedSourceMapConsumer.prototype._version = 3; - Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { - get: function() { - var sources = []; - for (var i = 0; i < this._sections.length; i++) { - for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { - sources.push(this._sections[i].consumer.sources[j]); - } - } - return sources; - } - }); - IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, "line"), - generatedColumn: util.getArg(aArgs, "column") - }; - var sectionIndex = binarySearch.search(needle, this._sections, function(needle2, section2) { - var cmp = needle2.generatedLine - section2.generatedOffset.generatedLine; - if (cmp) { - return cmp; - } - return needle2.generatedColumn - section2.generatedOffset.generatedColumn; - }); - var section = this._sections[sectionIndex]; - if (!section) { - return { - source: null, - line: null, - column: null, - name: null - }; - } - return section.consumer.originalPositionFor({ - line: needle.generatedLine - (section.generatedOffset.generatedLine - 1), - column: needle.generatedColumn - (section.generatedOffset.generatedLine === needle.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0), - bias: aArgs.bias - }); - }; - IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = function IndexedSourceMapConsumer_hasContentsOfAllSources() { - return this._sections.every(function(s) { - return s.consumer.hasContentsOfAllSources(); - }); - }; - IndexedSourceMapConsumer.prototype.sourceContentFor = function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - var content = section.consumer.sourceContentFor(aSource, true); - if (content) { - return content; - } - } - if (nullOnMissing) { - return null; - } else { - throw new Error('"' + aSource + '" is not in the SourceMap.'); - } - }; - IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - if (section.consumer._findSourceIndex(util.getArg(aArgs, "source")) === -1) { - continue; - } - var generatedPosition = section.consumer.generatedPositionFor(aArgs); - if (generatedPosition) { - var ret = { - line: generatedPosition.line + (section.generatedOffset.generatedLine - 1), - column: generatedPosition.column + (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 : 0) - }; - return ret; - } - } - return { - line: null, - column: null - }; - }; - IndexedSourceMapConsumer.prototype._parseMappings = function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { - this.__generatedMappings = []; - this.__originalMappings = []; - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - var sectionMappings = section.consumer._generatedMappings; - for (var j = 0; j < sectionMappings.length; j++) { - var mapping = sectionMappings[j]; - var source = section.consumer._sources.at(mapping.source); - source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); - this._sources.add(source); - source = this._sources.indexOf(source); - var name = null; - if (mapping.name) { - name = section.consumer._names.at(mapping.name); - this._names.add(name); - name = this._names.indexOf(name); - } - var adjustedMapping = { - source, - generatedLine: mapping.generatedLine + (section.generatedOffset.generatedLine - 1), - generatedColumn: mapping.generatedColumn + (section.generatedOffset.generatedLine === mapping.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0), - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name - }; - this.__generatedMappings.push(adjustedMapping); - if (typeof adjustedMapping.originalLine === "number") { - this.__originalMappings.push(adjustedMapping); - } - } - } - quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); - quickSort(this.__originalMappings, util.compareByOriginalPositions); - }; - exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/source-node.js - var require_source_node = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/source-node.js"(exports) { - var SourceMapGenerator = require_source_map_generator().SourceMapGenerator; - var util = require_util(); - var REGEX_NEWLINE = /(\r?\n)/; - var NEWLINE_CODE = 10; - var isSourceNode = "$$$isSourceNode$$$"; - function SourceNode(aLine, aColumn, aSource, aChunks, aName) { - this.children = []; - this.sourceContents = {}; - this.line = aLine == null ? null : aLine; - this.column = aColumn == null ? null : aColumn; - this.source = aSource == null ? null : aSource; - this.name = aName == null ? null : aName; - this[isSourceNode] = true; - if (aChunks != null) - this.add(aChunks); - } - SourceNode.fromStringWithSourceMap = function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { - var node = new SourceNode(); - var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); - var remainingLinesIndex = 0; - var shiftNextLine = function() { - var lineContents = getNextLine(); - var newLine = getNextLine() || ""; - return lineContents + newLine; - function getNextLine() { - return remainingLinesIndex < remainingLines.length ? remainingLines[remainingLinesIndex++] : void 0; - } - }; - var lastGeneratedLine = 1, lastGeneratedColumn = 0; - var lastMapping = null; - aSourceMapConsumer.eachMapping(function(mapping) { - if (lastMapping !== null) { - if (lastGeneratedLine < mapping.generatedLine) { - addMappingWithCode(lastMapping, shiftNextLine()); - lastGeneratedLine++; - lastGeneratedColumn = 0; - } else { - var nextLine = remainingLines[remainingLinesIndex] || ""; - var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn); - lastGeneratedColumn = mapping.generatedColumn; - addMappingWithCode(lastMapping, code); - lastMapping = mapping; - return; - } - } - while (lastGeneratedLine < mapping.generatedLine) { - node.add(shiftNextLine()); - lastGeneratedLine++; - } - if (lastGeneratedColumn < mapping.generatedColumn) { - var nextLine = remainingLines[remainingLinesIndex] || ""; - node.add(nextLine.substr(0, mapping.generatedColumn)); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); - lastGeneratedColumn = mapping.generatedColumn; - } - lastMapping = mapping; - }, this); - if (remainingLinesIndex < remainingLines.length) { - if (lastMapping) { - addMappingWithCode(lastMapping, shiftNextLine()); - } - node.add(remainingLines.splice(remainingLinesIndex).join("")); - } - aSourceMapConsumer.sources.forEach(function(sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aRelativePath != null) { - sourceFile = util.join(aRelativePath, sourceFile); - } - node.setSourceContent(sourceFile, content); - } - }); - return node; - function addMappingWithCode(mapping, code) { - if (mapping === null || mapping.source === void 0) { - node.add(code); - } else { - var source = aRelativePath ? util.join(aRelativePath, mapping.source) : mapping.source; - node.add(new SourceNode(mapping.originalLine, mapping.originalColumn, source, code, mapping.name)); - } - } - }; - SourceNode.prototype.add = function SourceNode_add(aChunk) { - if (Array.isArray(aChunk)) { - aChunk.forEach(function(chunk) { - this.add(chunk); - }, this); - } else if (aChunk[isSourceNode] || typeof aChunk === "string") { - if (aChunk) { - this.children.push(aChunk); - } - } else { - throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk); - } - return this; - }; - SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { - if (Array.isArray(aChunk)) { - for (var i = aChunk.length - 1; i >= 0; i--) { - this.prepend(aChunk[i]); - } - } else if (aChunk[isSourceNode] || typeof aChunk === "string") { - this.children.unshift(aChunk); - } else { - throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk); - } - return this; - }; - SourceNode.prototype.walk = function SourceNode_walk(aFn) { - var chunk; - for (var i = 0, len = this.children.length; i < len; i++) { - chunk = this.children[i]; - if (chunk[isSourceNode]) { - chunk.walk(aFn); - } else { - if (chunk !== "") { - aFn(chunk, { - source: this.source, - line: this.line, - column: this.column, - name: this.name - }); - } - } - } - }; - SourceNode.prototype.join = function SourceNode_join(aSep) { - var newChildren; - var i; - var len = this.children.length; - if (len > 0) { - newChildren = []; - for (i = 0; i < len - 1; i++) { - newChildren.push(this.children[i]); - newChildren.push(aSep); - } - newChildren.push(this.children[i]); - this.children = newChildren; - } - return this; - }; - SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { - var lastChild = this.children[this.children.length - 1]; - if (lastChild[isSourceNode]) { - lastChild.replaceRight(aPattern, aReplacement); - } else if (typeof lastChild === "string") { - this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); - } else { - this.children.push("".replace(aPattern, aReplacement)); - } - return this; - }; - SourceNode.prototype.setSourceContent = function SourceNode_setSourceContent(aSourceFile, aSourceContent) { - this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; - }; - SourceNode.prototype.walkSourceContents = function SourceNode_walkSourceContents(aFn) { - for (var i = 0, len = this.children.length; i < len; i++) { - if (this.children[i][isSourceNode]) { - this.children[i].walkSourceContents(aFn); - } - } - var sources = Object.keys(this.sourceContents); - for (var i = 0, len = sources.length; i < len; i++) { - aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); - } - }; - SourceNode.prototype.toString = function SourceNode_toString() { - var str = ""; - this.walk(function(chunk) { - str += chunk; - }); - return str; - }; - SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { - var generated = { - code: "", - line: 1, - column: 0 - }; - var map = new SourceMapGenerator(aArgs); - var sourceMappingActive = false; - var lastOriginalSource = null; - var lastOriginalLine = null; - var lastOriginalColumn = null; - var lastOriginalName = null; - this.walk(function(chunk, original) { - generated.code += chunk; - if (original.source !== null && original.line !== null && original.column !== null) { - if (lastOriginalSource !== original.source || lastOriginalLine !== original.line || lastOriginalColumn !== original.column || lastOriginalName !== original.name) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - lastOriginalSource = original.source; - lastOriginalLine = original.line; - lastOriginalColumn = original.column; - lastOriginalName = original.name; - sourceMappingActive = true; - } else if (sourceMappingActive) { - map.addMapping({ - generated: { - line: generated.line, - column: generated.column - } - }); - lastOriginalSource = null; - sourceMappingActive = false; - } - for (var idx = 0, length = chunk.length; idx < length; idx++) { - if (chunk.charCodeAt(idx) === NEWLINE_CODE) { - generated.line++; - generated.column = 0; - if (idx + 1 === length) { - lastOriginalSource = null; - sourceMappingActive = false; - } else if (sourceMappingActive) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - } else { - generated.column++; - } - } - }); - this.walkSourceContents(function(sourceFile, sourceContent) { - map.setSourceContent(sourceFile, sourceContent); - }); - return {code: generated.code, map}; - }; - exports.SourceNode = SourceNode; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/source-map.js - var require_source_map = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/source-map.js"(exports) { - exports.SourceMapGenerator = require_source_map_generator().SourceMapGenerator; - exports.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer; - exports.SourceNode = require_source_node().SourceNode; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js - var require_code_gen = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var _utils = require_utils(); - var SourceNode = void 0; - try { - if (typeof define !== "function" || !define.amd) { - SourceMap = require_source_map(); - SourceNode = SourceMap.SourceNode; - } - } catch (err) { - } - var SourceMap; - if (!SourceNode) { - SourceNode = function(line, column, srcFile, chunks) { - this.src = ""; - if (chunks) { - this.add(chunks); - } - }; - SourceNode.prototype = { - add: function add(chunks) { - if (_utils.isArray(chunks)) { - chunks = chunks.join(""); - } - this.src += chunks; - }, - prepend: function prepend(chunks) { - if (_utils.isArray(chunks)) { - chunks = chunks.join(""); - } - this.src = chunks + this.src; - }, - toStringWithSourceMap: function toStringWithSourceMap() { - return {code: this.toString()}; - }, - toString: function toString() { - return this.src; - } - }; - } - function castChunk(chunk, codeGen, loc) { - if (_utils.isArray(chunk)) { - var ret = []; - for (var i = 0, len = chunk.length; i < len; i++) { - ret.push(codeGen.wrap(chunk[i], loc)); - } - return ret; - } else if (typeof chunk === "boolean" || typeof chunk === "number") { - return chunk + ""; - } - return chunk; - } - function CodeGen(srcFile) { - this.srcFile = srcFile; - this.source = []; - } - CodeGen.prototype = { - isEmpty: function isEmpty() { - return !this.source.length; - }, - prepend: function prepend(source, loc) { - this.source.unshift(this.wrap(source, loc)); - }, - push: function push(source, loc) { - this.source.push(this.wrap(source, loc)); - }, - merge: function merge() { - var source = this.empty(); - this.each(function(line) { - source.add([" ", line, "\n"]); - }); - return source; - }, - each: function each(iter) { - for (var i = 0, len = this.source.length; i < len; i++) { - iter(this.source[i]); - } - }, - empty: function empty() { - var loc = this.currentLocation || {start: {}}; - return new SourceNode(loc.start.line, loc.start.column, this.srcFile); - }, - wrap: function wrap(chunk) { - var loc = arguments.length <= 1 || arguments[1] === void 0 ? this.currentLocation || {start: {}} : arguments[1]; - if (chunk instanceof SourceNode) { - return chunk; - } - chunk = castChunk(chunk, this, loc); - return new SourceNode(loc.start.line, loc.start.column, this.srcFile, chunk); - }, - functionCall: function functionCall(fn, type, params) { - params = this.generateList(params); - return this.wrap([fn, type ? "." + type + "(" : "(", params, ")"]); - }, - quotedString: function quotedString(str) { - return '"' + (str + "").replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029") + '"'; - }, - objectLiteral: function objectLiteral(obj) { - var _this = this; - var pairs = []; - Object.keys(obj).forEach(function(key) { - var value = castChunk(obj[key], _this); - if (value !== "undefined") { - pairs.push([_this.quotedString(key), ":", value]); - } - }); - var ret = this.generateList(pairs); - ret.prepend("{"); - ret.add("}"); - return ret; - }, - generateList: function generateList(entries) { - var ret = this.empty(); - for (var i = 0, len = entries.length; i < len; i++) { - if (i) { - ret.add(","); - } - ret.add(castChunk(entries[i], this)); - } - return ret; - }, - generateArray: function generateArray(entries) { - var ret = this.generateList(entries); - ret.prepend("["); - ret.add("]"); - return ret; - } - }; - exports["default"] = CodeGen; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js - var require_javascript_compiler = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _base = require_base(); - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - var _utils = require_utils(); - var _codeGen = require_code_gen(); - var _codeGen2 = _interopRequireDefault(_codeGen); - function Literal(value) { - this.value = value; - } - function JavaScriptCompiler() { - } - JavaScriptCompiler.prototype = { - nameLookup: function nameLookup(parent, name) { - return this.internalNameLookup(parent, name); - }, - depthedLookup: function depthedLookup(name) { - return [this.aliasable("container.lookup"), "(depths, ", JSON.stringify(name), ")"]; - }, - compilerInfo: function compilerInfo() { - var revision = _base.COMPILER_REVISION, versions = _base.REVISION_CHANGES[revision]; - return [revision, versions]; - }, - appendToBuffer: function appendToBuffer(source, location, explicit) { - if (!_utils.isArray(source)) { - source = [source]; - } - source = this.source.wrap(source, location); - if (this.environment.isSimple) { - return ["return ", source, ";"]; - } else if (explicit) { - return ["buffer += ", source, ";"]; - } else { - source.appendToBuffer = true; - return source; - } - }, - initializeBuffer: function initializeBuffer() { - return this.quotedString(""); - }, - internalNameLookup: function internalNameLookup(parent, name) { - this.lookupPropertyFunctionIsUsed = true; - return ["lookupProperty(", parent, ",", JSON.stringify(name), ")"]; - }, - lookupPropertyFunctionIsUsed: false, - compile: function compile(environment, options, context, asObject) { - this.environment = environment; - this.options = options; - this.stringParams = this.options.stringParams; - this.trackIds = this.options.trackIds; - this.precompile = !asObject; - this.name = this.environment.name; - this.isChild = !!context; - this.context = context || { - decorators: [], - programs: [], - environments: [] - }; - this.preamble(); - this.stackSlot = 0; - this.stackVars = []; - this.aliases = {}; - this.registers = {list: []}; - this.hashes = []; - this.compileStack = []; - this.inlineStack = []; - this.blockParams = []; - this.compileChildren(environment, options); - this.useDepths = this.useDepths || environment.useDepths || environment.useDecorators || this.options.compat; - this.useBlockParams = this.useBlockParams || environment.useBlockParams; - var opcodes = environment.opcodes, opcode = void 0, firstLoc = void 0, i = void 0, l = void 0; - for (i = 0, l = opcodes.length; i < l; i++) { - opcode = opcodes[i]; - this.source.currentLocation = opcode.loc; - firstLoc = firstLoc || opcode.loc; - this[opcode.opcode].apply(this, opcode.args); - } - this.source.currentLocation = firstLoc; - this.pushSource(""); - if (this.stackSlot || this.inlineStack.length || this.compileStack.length) { - throw new _exception2["default"]("Compile completed with content left on stack"); - } - if (!this.decorators.isEmpty()) { - this.useDecorators = true; - this.decorators.prepend(["var decorators = container.decorators, ", this.lookupPropertyFunctionVarDeclaration(), ";\n"]); - this.decorators.push("return fn;"); - if (asObject) { - this.decorators = Function.apply(this, ["fn", "props", "container", "depth0", "data", "blockParams", "depths", this.decorators.merge()]); - } else { - this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"); - this.decorators.push("}\n"); - this.decorators = this.decorators.merge(); - } - } else { - this.decorators = void 0; - } - var fn = this.createFunctionContext(asObject); - if (!this.isChild) { - var ret = { - compiler: this.compilerInfo(), - main: fn - }; - if (this.decorators) { - ret.main_d = this.decorators; - ret.useDecorators = true; - } - var _context = this.context; - var programs = _context.programs; - var decorators = _context.decorators; - for (i = 0, l = programs.length; i < l; i++) { - if (programs[i]) { - ret[i] = programs[i]; - if (decorators[i]) { - ret[i + "_d"] = decorators[i]; - ret.useDecorators = true; - } - } - } - if (this.environment.usePartial) { - ret.usePartial = true; - } - if (this.options.data) { - ret.useData = true; - } - if (this.useDepths) { - ret.useDepths = true; - } - if (this.useBlockParams) { - ret.useBlockParams = true; - } - if (this.options.compat) { - ret.compat = true; - } - if (!asObject) { - ret.compiler = JSON.stringify(ret.compiler); - this.source.currentLocation = {start: {line: 1, column: 0}}; - ret = this.objectLiteral(ret); - if (options.srcName) { - ret = ret.toStringWithSourceMap({file: options.destName}); - ret.map = ret.map && ret.map.toString(); - } else { - ret = ret.toString(); - } - } else { - ret.compilerOptions = this.options; - } - return ret; - } else { - return fn; - } - }, - preamble: function preamble() { - this.lastContext = 0; - this.source = new _codeGen2["default"](this.options.srcName); - this.decorators = new _codeGen2["default"](this.options.srcName); - }, - createFunctionContext: function createFunctionContext(asObject) { - var _this = this; - var varDeclarations = ""; - var locals = this.stackVars.concat(this.registers.list); - if (locals.length > 0) { - varDeclarations += ", " + locals.join(", "); - } - var aliasCount = 0; - Object.keys(this.aliases).forEach(function(alias) { - var node = _this.aliases[alias]; - if (node.children && node.referenceCount > 1) { - varDeclarations += ", alias" + ++aliasCount + "=" + alias; - node.children[0] = "alias" + aliasCount; - } - }); - if (this.lookupPropertyFunctionIsUsed) { - varDeclarations += ", " + this.lookupPropertyFunctionVarDeclaration(); - } - var params = ["container", "depth0", "helpers", "partials", "data"]; - if (this.useBlockParams || this.useDepths) { - params.push("blockParams"); - } - if (this.useDepths) { - params.push("depths"); - } - var source = this.mergeSource(varDeclarations); - if (asObject) { - params.push(source); - return Function.apply(this, params); - } else { - return this.source.wrap(["function(", params.join(","), ") {\n ", source, "}"]); - } - }, - mergeSource: function mergeSource(varDeclarations) { - var isSimple = this.environment.isSimple, appendOnly = !this.forceBuffer, appendFirst = void 0, sourceSeen = void 0, bufferStart = void 0, bufferEnd = void 0; - this.source.each(function(line) { - if (line.appendToBuffer) { - if (bufferStart) { - line.prepend(" + "); - } else { - bufferStart = line; - } - bufferEnd = line; - } else { - if (bufferStart) { - if (!sourceSeen) { - appendFirst = true; - } else { - bufferStart.prepend("buffer += "); - } - bufferEnd.add(";"); - bufferStart = bufferEnd = void 0; - } - sourceSeen = true; - if (!isSimple) { - appendOnly = false; - } - } - }); - if (appendOnly) { - if (bufferStart) { - bufferStart.prepend("return "); - bufferEnd.add(";"); - } else if (!sourceSeen) { - this.source.push('return "";'); - } - } else { - varDeclarations += ", buffer = " + (appendFirst ? "" : this.initializeBuffer()); - if (bufferStart) { - bufferStart.prepend("return buffer + "); - bufferEnd.add(";"); - } else { - this.source.push("return buffer;"); - } - } - if (varDeclarations) { - this.source.prepend("var " + varDeclarations.substring(2) + (appendFirst ? "" : ";\n")); - } - return this.source.merge(); - }, - lookupPropertyFunctionVarDeclaration: function lookupPropertyFunctionVarDeclaration() { - return "\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim(); - }, - blockValue: function blockValue(name) { - var blockHelperMissing = this.aliasable("container.hooks.blockHelperMissing"), params = [this.contextName(0)]; - this.setupHelperArgs(name, 0, params); - var blockName = this.popStack(); - params.splice(1, 0, blockName); - this.push(this.source.functionCall(blockHelperMissing, "call", params)); - }, - ambiguousBlockValue: function ambiguousBlockValue() { - var blockHelperMissing = this.aliasable("container.hooks.blockHelperMissing"), params = [this.contextName(0)]; - this.setupHelperArgs("", 0, params, true); - this.flushInline(); - var current = this.topStack(); - params.splice(1, 0, current); - this.pushSource(["if (!", this.lastHelper, ") { ", current, " = ", this.source.functionCall(blockHelperMissing, "call", params), "}"]); - }, - appendContent: function appendContent(content) { - if (this.pendingContent) { - content = this.pendingContent + content; - } else { - this.pendingLocation = this.source.currentLocation; - } - this.pendingContent = content; - }, - append: function append() { - if (this.isInline()) { - this.replaceStack(function(current) { - return [" != null ? ", current, ' : ""']; - }); - this.pushSource(this.appendToBuffer(this.popStack())); - } else { - var local = this.popStack(); - this.pushSource(["if (", local, " != null) { ", this.appendToBuffer(local, void 0, true), " }"]); - if (this.environment.isSimple) { - this.pushSource(["else { ", this.appendToBuffer("''", void 0, true), " }"]); - } - } - }, - appendEscaped: function appendEscaped() { - this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"), "(", this.popStack(), ")"])); - }, - getContext: function getContext(depth) { - this.lastContext = depth; - }, - pushContext: function pushContext() { - this.pushStackLiteral(this.contextName(this.lastContext)); - }, - lookupOnContext: function lookupOnContext(parts, falsy, strict, scoped) { - var i = 0; - if (!scoped && this.options.compat && !this.lastContext) { - this.push(this.depthedLookup(parts[i++])); - } else { - this.pushContext(); - } - this.resolvePath("context", parts, i, falsy, strict); - }, - lookupBlockParam: function lookupBlockParam(blockParamId, parts) { - this.useBlockParams = true; - this.push(["blockParams[", blockParamId[0], "][", blockParamId[1], "]"]); - this.resolvePath("context", parts, 1); - }, - lookupData: function lookupData(depth, parts, strict) { - if (!depth) { - this.pushStackLiteral("data"); - } else { - this.pushStackLiteral("container.data(data, " + depth + ")"); - } - this.resolvePath("data", parts, 0, true, strict); - }, - resolvePath: function resolvePath(type, parts, i, falsy, strict) { - var _this2 = this; - if (this.options.strict || this.options.assumeObjects) { - this.push(strictLookup(this.options.strict && strict, this, parts, type)); - return; - } - var len = parts.length; - for (; i < len; i++) { - this.replaceStack(function(current) { - var lookup = _this2.nameLookup(current, parts[i], type); - if (!falsy) { - return [" != null ? ", lookup, " : ", current]; - } else { - return [" && ", lookup]; - } - }); - } - }, - resolvePossibleLambda: function resolvePossibleLambda() { - this.push([this.aliasable("container.lambda"), "(", this.popStack(), ", ", this.contextName(0), ")"]); - }, - pushStringParam: function pushStringParam(string, type) { - this.pushContext(); - this.pushString(type); - if (type !== "SubExpression") { - if (typeof string === "string") { - this.pushString(string); - } else { - this.pushStackLiteral(string); - } - } - }, - emptyHash: function emptyHash(omitEmpty) { - if (this.trackIds) { - this.push("{}"); - } - if (this.stringParams) { - this.push("{}"); - this.push("{}"); - } - this.pushStackLiteral(omitEmpty ? "undefined" : "{}"); - }, - pushHash: function pushHash() { - if (this.hash) { - this.hashes.push(this.hash); - } - this.hash = {values: {}, types: [], contexts: [], ids: []}; - }, - popHash: function popHash() { - var hash = this.hash; - this.hash = this.hashes.pop(); - if (this.trackIds) { - this.push(this.objectLiteral(hash.ids)); - } - if (this.stringParams) { - this.push(this.objectLiteral(hash.contexts)); - this.push(this.objectLiteral(hash.types)); - } - this.push(this.objectLiteral(hash.values)); - }, - pushString: function pushString(string) { - this.pushStackLiteral(this.quotedString(string)); - }, - pushLiteral: function pushLiteral(value) { - this.pushStackLiteral(value); - }, - pushProgram: function pushProgram(guid) { - if (guid != null) { - this.pushStackLiteral(this.programExpression(guid)); - } else { - this.pushStackLiteral(null); - } - }, - registerDecorator: function registerDecorator(paramSize, name) { - var foundDecorator = this.nameLookup("decorators", name, "decorator"), options = this.setupHelperArgs(name, paramSize); - this.decorators.push(["fn = ", this.decorators.functionCall(foundDecorator, "", ["fn", "props", "container", options]), " || fn;"]); - }, - invokeHelper: function invokeHelper(paramSize, name, isSimple) { - var nonHelper = this.popStack(), helper = this.setupHelper(paramSize, name); - var possibleFunctionCalls = []; - if (isSimple) { - possibleFunctionCalls.push(helper.name); - } - possibleFunctionCalls.push(nonHelper); - if (!this.options.strict) { - possibleFunctionCalls.push(this.aliasable("container.hooks.helperMissing")); - } - var functionLookupCode = ["(", this.itemsSeparatedBy(possibleFunctionCalls, "||"), ")"]; - var functionCall = this.source.functionCall(functionLookupCode, "call", helper.callParams); - this.push(functionCall); - }, - itemsSeparatedBy: function itemsSeparatedBy(items, separator) { - var result = []; - result.push(items[0]); - for (var i = 1; i < items.length; i++) { - result.push(separator, items[i]); - } - return result; - }, - invokeKnownHelper: function invokeKnownHelper(paramSize, name) { - var helper = this.setupHelper(paramSize, name); - this.push(this.source.functionCall(helper.name, "call", helper.callParams)); - }, - invokeAmbiguous: function invokeAmbiguous(name, helperCall) { - this.useRegister("helper"); - var nonHelper = this.popStack(); - this.emptyHash(); - var helper = this.setupHelper(0, name, helperCall); - var helperName = this.lastHelper = this.nameLookup("helpers", name, "helper"); - var lookup = ["(", "(helper = ", helperName, " || ", nonHelper, ")"]; - if (!this.options.strict) { - lookup[0] = "(helper = "; - lookup.push(" != null ? helper : ", this.aliasable("container.hooks.helperMissing")); - } - this.push(["(", lookup, helper.paramsInit ? ["),(", helper.paramsInit] : [], "),", "(typeof helper === ", this.aliasable('"function"'), " ? ", this.source.functionCall("helper", "call", helper.callParams), " : helper))"]); - }, - invokePartial: function invokePartial(isDynamic, name, indent) { - var params = [], options = this.setupParams(name, 1, params); - if (isDynamic) { - name = this.popStack(); - delete options.name; - } - if (indent) { - options.indent = JSON.stringify(indent); - } - options.helpers = "helpers"; - options.partials = "partials"; - options.decorators = "container.decorators"; - if (!isDynamic) { - params.unshift(this.nameLookup("partials", name, "partial")); - } else { - params.unshift(name); - } - if (this.options.compat) { - options.depths = "depths"; - } - options = this.objectLiteral(options); - params.push(options); - this.push(this.source.functionCall("container.invokePartial", "", params)); - }, - assignToHash: function assignToHash(key) { - var value = this.popStack(), context = void 0, type = void 0, id = void 0; - if (this.trackIds) { - id = this.popStack(); - } - if (this.stringParams) { - type = this.popStack(); - context = this.popStack(); - } - var hash = this.hash; - if (context) { - hash.contexts[key] = context; - } - if (type) { - hash.types[key] = type; - } - if (id) { - hash.ids[key] = id; - } - hash.values[key] = value; - }, - pushId: function pushId(type, name, child) { - if (type === "BlockParam") { - this.pushStackLiteral("blockParams[" + name[0] + "].path[" + name[1] + "]" + (child ? " + " + JSON.stringify("." + child) : "")); - } else if (type === "PathExpression") { - this.pushString(name); - } else if (type === "SubExpression") { - this.pushStackLiteral("true"); - } else { - this.pushStackLiteral("null"); - } - }, - compiler: JavaScriptCompiler, - compileChildren: function compileChildren(environment, options) { - var children = environment.children, child = void 0, compiler = void 0; - for (var i = 0, l = children.length; i < l; i++) { - child = children[i]; - compiler = new this.compiler(); - var existing = this.matchExistingProgram(child); - if (existing == null) { - this.context.programs.push(""); - var index = this.context.programs.length; - child.index = index; - child.name = "program" + index; - this.context.programs[index] = compiler.compile(child, options, this.context, !this.precompile); - this.context.decorators[index] = compiler.decorators; - this.context.environments[index] = child; - this.useDepths = this.useDepths || compiler.useDepths; - this.useBlockParams = this.useBlockParams || compiler.useBlockParams; - child.useDepths = this.useDepths; - child.useBlockParams = this.useBlockParams; - } else { - child.index = existing.index; - child.name = "program" + existing.index; - this.useDepths = this.useDepths || existing.useDepths; - this.useBlockParams = this.useBlockParams || existing.useBlockParams; - } - } - }, - matchExistingProgram: function matchExistingProgram(child) { - for (var i = 0, len = this.context.environments.length; i < len; i++) { - var environment = this.context.environments[i]; - if (environment && environment.equals(child)) { - return environment; - } - } - }, - programExpression: function programExpression(guid) { - var child = this.environment.children[guid], programParams = [child.index, "data", child.blockParams]; - if (this.useBlockParams || this.useDepths) { - programParams.push("blockParams"); - } - if (this.useDepths) { - programParams.push("depths"); - } - return "container.program(" + programParams.join(", ") + ")"; - }, - useRegister: function useRegister(name) { - if (!this.registers[name]) { - this.registers[name] = true; - this.registers.list.push(name); - } - }, - push: function push(expr) { - if (!(expr instanceof Literal)) { - expr = this.source.wrap(expr); - } - this.inlineStack.push(expr); - return expr; - }, - pushStackLiteral: function pushStackLiteral(item) { - this.push(new Literal(item)); - }, - pushSource: function pushSource(source) { - if (this.pendingContent) { - this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent), this.pendingLocation)); - this.pendingContent = void 0; - } - if (source) { - this.source.push(source); - } - }, - replaceStack: function replaceStack(callback) { - var prefix = ["("], stack = void 0, createdStack = void 0, usedLiteral = void 0; - if (!this.isInline()) { - throw new _exception2["default"]("replaceStack on non-inline"); - } - var top = this.popStack(true); - if (top instanceof Literal) { - stack = [top.value]; - prefix = ["(", stack]; - usedLiteral = true; - } else { - createdStack = true; - var _name = this.incrStack(); - prefix = ["((", this.push(_name), " = ", top, ")"]; - stack = this.topStack(); - } - var item = callback.call(this, stack); - if (!usedLiteral) { - this.popStack(); - } - if (createdStack) { - this.stackSlot--; - } - this.push(prefix.concat(item, ")")); - }, - incrStack: function incrStack() { - this.stackSlot++; - if (this.stackSlot > this.stackVars.length) { - this.stackVars.push("stack" + this.stackSlot); - } - return this.topStackName(); - }, - topStackName: function topStackName() { - return "stack" + this.stackSlot; - }, - flushInline: function flushInline() { - var inlineStack = this.inlineStack; - this.inlineStack = []; - for (var i = 0, len = inlineStack.length; i < len; i++) { - var entry = inlineStack[i]; - if (entry instanceof Literal) { - this.compileStack.push(entry); - } else { - var stack = this.incrStack(); - this.pushSource([stack, " = ", entry, ";"]); - this.compileStack.push(stack); - } - } - }, - isInline: function isInline() { - return this.inlineStack.length; - }, - popStack: function popStack(wrapped) { - var inline = this.isInline(), item = (inline ? this.inlineStack : this.compileStack).pop(); - if (!wrapped && item instanceof Literal) { - return item.value; - } else { - if (!inline) { - if (!this.stackSlot) { - throw new _exception2["default"]("Invalid stack pop"); - } - this.stackSlot--; - } - return item; - } - }, - topStack: function topStack() { - var stack = this.isInline() ? this.inlineStack : this.compileStack, item = stack[stack.length - 1]; - if (item instanceof Literal) { - return item.value; - } else { - return item; - } - }, - contextName: function contextName(context) { - if (this.useDepths && context) { - return "depths[" + context + "]"; - } else { - return "depth" + context; - } - }, - quotedString: function quotedString(str) { - return this.source.quotedString(str); - }, - objectLiteral: function objectLiteral(obj) { - return this.source.objectLiteral(obj); - }, - aliasable: function aliasable(name) { - var ret = this.aliases[name]; - if (ret) { - ret.referenceCount++; - return ret; - } - ret = this.aliases[name] = this.source.wrap(name); - ret.aliasable = true; - ret.referenceCount = 1; - return ret; - }, - setupHelper: function setupHelper(paramSize, name, blockHelper) { - var params = [], paramsInit = this.setupHelperArgs(name, paramSize, params, blockHelper); - var foundHelper = this.nameLookup("helpers", name, "helper"), callContext = this.aliasable(this.contextName(0) + " != null ? " + this.contextName(0) + " : (container.nullContext || {})"); - return { - params, - paramsInit, - name: foundHelper, - callParams: [callContext].concat(params) - }; - }, - setupParams: function setupParams(helper, paramSize, params) { - var options = {}, contexts = [], types = [], ids = [], objectArgs = !params, param = void 0; - if (objectArgs) { - params = []; - } - options.name = this.quotedString(helper); - options.hash = this.popStack(); - if (this.trackIds) { - options.hashIds = this.popStack(); - } - if (this.stringParams) { - options.hashTypes = this.popStack(); - options.hashContexts = this.popStack(); - } - var inverse = this.popStack(), program = this.popStack(); - if (program || inverse) { - options.fn = program || "container.noop"; - options.inverse = inverse || "container.noop"; - } - var i = paramSize; - while (i--) { - param = this.popStack(); - params[i] = param; - if (this.trackIds) { - ids[i] = this.popStack(); - } - if (this.stringParams) { - types[i] = this.popStack(); - contexts[i] = this.popStack(); - } - } - if (objectArgs) { - options.args = this.source.generateArray(params); - } - if (this.trackIds) { - options.ids = this.source.generateArray(ids); - } - if (this.stringParams) { - options.types = this.source.generateArray(types); - options.contexts = this.source.generateArray(contexts); - } - if (this.options.data) { - options.data = "data"; - } - if (this.useBlockParams) { - options.blockParams = "blockParams"; - } - return options; - }, - setupHelperArgs: function setupHelperArgs(helper, paramSize, params, useRegister) { - var options = this.setupParams(helper, paramSize, params); - options.loc = JSON.stringify(this.source.currentLocation); - options = this.objectLiteral(options); - if (useRegister) { - this.useRegister("options"); - params.push("options"); - return ["options=", options]; - } else if (params) { - params.push(options); - return ""; - } else { - return options; - } - } - }; - (function() { - var reservedWords = "break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "); - var compilerWords = JavaScriptCompiler.RESERVED_WORDS = {}; - for (var i = 0, l = reservedWords.length; i < l; i++) { - compilerWords[reservedWords[i]] = true; - } - })(); - JavaScriptCompiler.isValidJavaScriptVariableName = function(name) { - return !JavaScriptCompiler.RESERVED_WORDS[name] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(name); - }; - function strictLookup(requireTerminal, compiler, parts, type) { - var stack = compiler.popStack(), i = 0, len = parts.length; - if (requireTerminal) { - len--; - } - for (; i < len; i++) { - stack = compiler.nameLookup(stack, parts[i], type); - } - if (requireTerminal) { - return [compiler.aliasable("container.strict"), "(", stack, ", ", compiler.quotedString(parts[i]), ", ", JSON.stringify(compiler.source.currentLocation), " )"]; - } else { - return stack; - } - } - exports["default"] = JavaScriptCompiler; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars.js - var require_handlebars = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _handlebarsRuntime = require_handlebars_runtime(); - var _handlebarsRuntime2 = _interopRequireDefault(_handlebarsRuntime); - var _handlebarsCompilerAst = require_ast(); - var _handlebarsCompilerAst2 = _interopRequireDefault(_handlebarsCompilerAst); - var _handlebarsCompilerBase = require_base2(); - var _handlebarsCompilerCompiler = require_compiler(); - var _handlebarsCompilerJavascriptCompiler = require_javascript_compiler(); - var _handlebarsCompilerJavascriptCompiler2 = _interopRequireDefault(_handlebarsCompilerJavascriptCompiler); - var _handlebarsCompilerVisitor = require_visitor(); - var _handlebarsCompilerVisitor2 = _interopRequireDefault(_handlebarsCompilerVisitor); - var _handlebarsNoConflict = require_no_conflict(); - var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict); - var _create = _handlebarsRuntime2["default"].create; - function create() { - var hb = _create(); - hb.compile = function(input, options) { - return _handlebarsCompilerCompiler.compile(input, options, hb); - }; - hb.precompile = function(input, options) { - return _handlebarsCompilerCompiler.precompile(input, options, hb); - }; - hb.AST = _handlebarsCompilerAst2["default"]; - hb.Compiler = _handlebarsCompilerCompiler.Compiler; - hb.JavaScriptCompiler = _handlebarsCompilerJavascriptCompiler2["default"]; - hb.Parser = _handlebarsCompilerBase.parser; - hb.parse = _handlebarsCompilerBase.parse; - hb.parseWithoutProcessing = _handlebarsCompilerBase.parseWithoutProcessing; - return hb; - } - var inst = create(); - inst.create = create; - _handlebarsNoConflict2["default"](inst); - inst.Visitor = _handlebarsCompilerVisitor2["default"]; - inst["default"] = inst; - exports["default"] = inst; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/printer.js - var require_printer = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/printer.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.print = print; - exports.PrintVisitor = PrintVisitor; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _visitor = require_visitor(); - var _visitor2 = _interopRequireDefault(_visitor); - function print(ast) { - return new PrintVisitor().accept(ast); - } - function PrintVisitor() { - this.padding = 0; - } - PrintVisitor.prototype = new _visitor2["default"](); - PrintVisitor.prototype.pad = function(string) { - var out = ""; - for (var i = 0, l = this.padding; i < l; i++) { - out += " "; - } - out += string + "\n"; - return out; - }; - PrintVisitor.prototype.Program = function(program) { - var out = "", body = program.body, i = void 0, l = void 0; - if (program.blockParams) { - var blockParams = "BLOCK PARAMS: ["; - for (i = 0, l = program.blockParams.length; i < l; i++) { - blockParams += " " + program.blockParams[i]; - } - blockParams += " ]"; - out += this.pad(blockParams); - } - for (i = 0, l = body.length; i < l; i++) { - out += this.accept(body[i]); - } - this.padding--; - return out; - }; - PrintVisitor.prototype.MustacheStatement = function(mustache) { - return this.pad("{{ " + this.SubExpression(mustache) + " }}"); - }; - PrintVisitor.prototype.Decorator = function(mustache) { - return this.pad("{{ DIRECTIVE " + this.SubExpression(mustache) + " }}"); - }; - PrintVisitor.prototype.BlockStatement = PrintVisitor.prototype.DecoratorBlock = function(block) { - var out = ""; - out += this.pad((block.type === "DecoratorBlock" ? "DIRECTIVE " : "") + "BLOCK:"); - this.padding++; - out += this.pad(this.SubExpression(block)); - if (block.program) { - out += this.pad("PROGRAM:"); - this.padding++; - out += this.accept(block.program); - this.padding--; - } - if (block.inverse) { - if (block.program) { - this.padding++; - } - out += this.pad("{{^}}"); - this.padding++; - out += this.accept(block.inverse); - this.padding--; - if (block.program) { - this.padding--; - } - } - this.padding--; - return out; - }; - PrintVisitor.prototype.PartialStatement = function(partial) { - var content = "PARTIAL:" + partial.name.original; - if (partial.params[0]) { - content += " " + this.accept(partial.params[0]); - } - if (partial.hash) { - content += " " + this.accept(partial.hash); - } - return this.pad("{{> " + content + " }}"); - }; - PrintVisitor.prototype.PartialBlockStatement = function(partial) { - var content = "PARTIAL BLOCK:" + partial.name.original; - if (partial.params[0]) { - content += " " + this.accept(partial.params[0]); - } - if (partial.hash) { - content += " " + this.accept(partial.hash); - } - content += " " + this.pad("PROGRAM:"); - this.padding++; - content += this.accept(partial.program); - this.padding--; - return this.pad("{{> " + content + " }}"); - }; - PrintVisitor.prototype.ContentStatement = function(content) { - return this.pad("CONTENT[ '" + content.value + "' ]"); - }; - PrintVisitor.prototype.CommentStatement = function(comment) { - return this.pad("{{! '" + comment.value + "' }}"); - }; - PrintVisitor.prototype.SubExpression = function(sexpr) { - var params = sexpr.params, paramStrings = [], hash = void 0; - for (var i = 0, l = params.length; i < l; i++) { - paramStrings.push(this.accept(params[i])); - } - params = "[" + paramStrings.join(", ") + "]"; - hash = sexpr.hash ? " " + this.accept(sexpr.hash) : ""; - return this.accept(sexpr.path) + " " + params + hash; - }; - PrintVisitor.prototype.PathExpression = function(id) { - var path = id.parts.join("/"); - return (id.data ? "@" : "") + "PATH:" + path; - }; - PrintVisitor.prototype.StringLiteral = function(string) { - return '"' + string.value + '"'; - }; - PrintVisitor.prototype.NumberLiteral = function(number) { - return "NUMBER{" + number.value + "}"; - }; - PrintVisitor.prototype.BooleanLiteral = function(bool) { - return "BOOLEAN{" + bool.value + "}"; - }; - PrintVisitor.prototype.UndefinedLiteral = function() { - return "UNDEFINED"; - }; - PrintVisitor.prototype.NullLiteral = function() { - return "NULL"; - }; - PrintVisitor.prototype.Hash = function(hash) { - var pairs = hash.pairs, joinedPairs = []; - for (var i = 0, l = pairs.length; i < l; i++) { - joinedPairs.push(this.accept(pairs[i])); - } - return "HASH{" + joinedPairs.join(", ") + "}"; - }; - PrintVisitor.prototype.HashPair = function(pair) { - return pair.key + "=" + this.accept(pair.value); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/lib/index.js - var require_lib = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/lib/index.js"(exports, module) { - var handlebars = require_handlebars()["default"]; - var printer = require_printer(); - handlebars.PrintVisitor = printer.PrintVisitor; - handlebars.print = printer.print; - module.exports = handlebars; - function extension(module2, filename) { - var fs = __require("fs"); - var templateString = fs.readFileSync(filename, "utf8"); - module2.exports = handlebars.compile(templateString); - } - if (typeof __require !== "undefined" && __require.extensions) { - __require.extensions[".handlebars"] = extension; - __require.extensions[".hbs"] = extension; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/json-stringify-safe-npm-5.0.1-064ddd6ab4-48ec0adad5.zip/node_modules/json-stringify-safe/stringify.js - var require_stringify = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/json-stringify-safe-npm-5.0.1-064ddd6ab4-48ec0adad5.zip/node_modules/json-stringify-safe/stringify.js"(exports, module) { - exports = module.exports = stringify; - exports.getSerialize = serializer; - function stringify(obj, replacer, spaces, cycleReplacer) { - return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces); - } - function serializer(replacer, cycleReplacer) { - var stack = [], keys = []; - if (cycleReplacer == null) - cycleReplacer = function(key, value) { - if (stack[0] === value) - return "[Circular ~]"; - return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"; - }; - return function(key, value) { - if (stack.length > 0) { - var thisPos = stack.indexOf(this); - ~thisPos ? stack.splice(thisPos + 1) : stack.push(this); - ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key); - if (~stack.indexOf(value)) - value = cycleReplacer.call(this, key, value); - } else - stack.push(value); - return replacer == null ? value : replacer.call(this, key, value); - }; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-writer-https-fff76bfb15-3d30c41c4b.zip/node_modules/conventional-changelog-writer/lib/util.js - var require_util2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-writer-https-fff76bfb15-3d30c41c4b.zip/node_modules/conventional-changelog-writer/lib/util.js"(exports, module) { - "use strict"; - var conventionalCommitsFilter = require_conventional_commits_filter(); - var Handlebars = require_lib(); - var semver4 = __require("semver"); - var _ = require_lodash(); - var stringify = require_stringify(); - function compileTemplates(templates) { - const main = templates.mainTemplate; - const headerPartial = templates.headerPartial; - const commitPartial = templates.commitPartial; - const footerPartial = templates.footerPartial; - const partials = templates.partials; - if (_.isString(headerPartial)) { - Handlebars.registerPartial("header", headerPartial); - } - if (_.isString(commitPartial)) { - Handlebars.registerPartial("commit", commitPartial); - } - if (_.isString(footerPartial)) { - Handlebars.registerPartial("footer", footerPartial); - } - _.forEach(partials, function(partial, name) { - if (_.isString(partial)) { - Handlebars.registerPartial(name, partial); - } - }); - return Handlebars.compile(main, { - noEscape: true - }); - } - function functionify(strOrArr) { - if (strOrArr && typeof strOrArr !== "function") { - return (a, b) => { - let str1 = ""; - let str2 = ""; - if (Array.isArray(strOrArr)) { - for (const key of strOrArr) { - str1 += a[key] || ""; - str2 += b[key] || ""; - } - } else { - str1 += a[strOrArr]; - str2 += b[strOrArr]; - } - return str1.localeCompare(str2); - }; - } else { - return strOrArr; - } - } - function getCommitGroups(groupBy, commits, groupsSort, commitsSort) { - const commitGroups = []; - const commitGroupsObj = _.groupBy(commits, function(commit) { - return commit[groupBy] || ""; - }); - _.forEach(commitGroupsObj, function(commits2, title) { - if (title === "") { - title = false; - } - if (commitsSort) { - commits2.sort(commitsSort); - } - commitGroups.push({ - title, - commits: commits2 - }); - }); - if (groupsSort) { - commitGroups.sort(groupsSort); - } - return commitGroups; - } - function getNoteGroups(notes, noteGroupsSort, notesSort) { - const retGroups = []; - _.forEach(notes, function(note) { - const title = note.title; - let titleExists = false; - _.forEach(retGroups, function(group) { - if (group.title === title) { - titleExists = true; - group.notes.push(note); - return false; - } - }); - if (!titleExists) { - retGroups.push({ - title, - notes: [note] - }); - } - }); - if (noteGroupsSort) { - retGroups.sort(noteGroupsSort); - } - if (notesSort) { - _.forEach(retGroups, function(group) { - group.notes.sort(notesSort); - }); - } - return retGroups; - } - function processCommit(chunk, transform, context) { - let commit; - try { - chunk = JSON.parse(chunk); - } catch (e) { - } - commit = _.cloneDeep(chunk); - if (typeof transform === "function") { - commit = transform(commit, context); - if (commit) { - commit.raw = chunk; - } - return commit; - } - _.forEach(transform, function(el, path) { - let value = _.get(commit, path); - if (typeof el === "function") { - value = el(value, path); - } else { - value = el; - } - _.set(commit, path, value); - }); - commit.raw = chunk; - return commit; - } - function getExtraContext(commits, notes, options) { - const context = {}; - context.commitGroups = getCommitGroups(options.groupBy, commits, options.commitGroupsSort, options.commitsSort); - context.noteGroups = getNoteGroups(notes, options.noteGroupsSort, options.notesSort); - return context; - } - function generate(options, commits, context, keyCommit) { - let notes = []; - let filteredCommits; - const compiled = compileTemplates(options); - if (options.ignoreReverted) { - filteredCommits = conventionalCommitsFilter(commits); - } else { - filteredCommits = _.clone(commits); - } - _.forEach(filteredCommits, function(commit) { - _.map(commit.notes, function(note) { - note.commit = commit; - return note; - }); - notes = notes.concat(commit.notes); - }); - context = _.merge({}, context, keyCommit, getExtraContext(filteredCommits, notes, options)); - if (keyCommit && keyCommit.committerDate) { - context.date = keyCommit.committerDate; - } - if (context.version && semver4.valid(context.version) && context.isPatch == null) { - context.isPatch = semver4.patch(context.version) !== 0; - } - context = options.finalizeContext(context, options, filteredCommits, keyCommit, commits); - options.debug("Your final context is:\n" + stringify(context, null, 2)); - return compiled(context); - } - module.exports = { - compileTemplates, - functionify, - getCommitGroups, - getNoteGroups, - processCommit, - getExtraContext, - generate - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-writer-https-fff76bfb15-3d30c41c4b.zip/node_modules/conventional-changelog-writer/index.js - var require_conventional_changelog_writer = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-writer-https-fff76bfb15-3d30c41c4b.zip/node_modules/conventional-changelog-writer/index.js"(exports, module) { - "use strict"; - var dateFormat = require_dateformat(); - var join = __require("path").join; - var readFileSync = __require("fs").readFileSync; - var semverValid = __require("semver").valid; - var through = require_through2(); - var util = require_util2(); - var _ = require_lodash(); - var defaultTemplates = { - mainTemplate: join(__dirname, "templates/template.hbs"), - headerPartial: join(__dirname, "templates/header.hbs"), - commitPartial: join(__dirname, "templates/commit.hbs"), - footerPartial: join(__dirname, "templates/footer.hbs") - }; - function conventionalChangelogWriterInit(context, options) { - context = _.extend({ - commit: "commits", - issue: "issues", - date: dateFormat(new Date(), "yyyy-mm-dd", true) - }, context); - if (!_.isBoolean(context.linkReferences) && (context.repository || context.repoUrl) && context.commit && context.issue) { - context.linkReferences = true; - } - options = _.assign({ - groupBy: "type", - commitsSort: "header", - noteGroupsSort: "title", - notesSort: "text", - generateOn: function(commit) { - return semverValid(commit.version); - }, - finalizeContext: function(context2) { - return context2; - }, - debug: function() { - }, - reverse: false, - includeDetails: false, - ignoreReverted: true, - doFlush: true - }, options); - for (const [key, path] of Object.entries(defaultTemplates)) { - if (options[key] == null) - options[key] = readFileSync(path); - } - if (typeof options.transform !== "function" && _.isObject(options.transform) || _.isUndefined(options.transform)) { - options.transform = _.assign({ - hash: function(hash) { - if (_.isString(hash)) { - return hash.substring(0, 7); - } - }, - header: function(header) { - return header.substring(0, 100); - }, - committerDate: function(date) { - if (!date) { - return; - } - return dateFormat(date, "yyyy-mm-dd", true); - } - }, options.transform); - } - let generateOn = options.generateOn; - if (_.isString(generateOn)) { - generateOn = function(commit) { - return !_.isUndefined(commit[options.generateOn]); - }; - } else if (typeof generateOn !== "function") { - generateOn = function() { - return false; - }; - } - options.commitGroupsSort = util.functionify(options.commitGroupsSort); - options.commitsSort = util.functionify(options.commitsSort); - options.noteGroupsSort = util.functionify(options.noteGroupsSort); - options.notesSort = util.functionify(options.notesSort); - return {context, options, generateOn}; - } - function conventionalChangelogWriterParseStream(context, options) { - let generateOn; - ({context, options, generateOn} = conventionalChangelogWriterInit(context, options)); - let commits = []; - let neverGenerated = true; - let savedKeyCommit; - let firstRelease = true; - return through.obj(function(chunk, _enc, cb) { - try { - let result; - const commit = util.processCommit(chunk, options.transform, context); - const keyCommit = commit || chunk; - if (options.reverse) { - if (commit) { - commits.push(commit); - } - if (generateOn(keyCommit, commits, context, options)) { - neverGenerated = false; - result = util.generate(options, commits, context, keyCommit); - if (options.includeDetails) { - this.push({ - log: result, - keyCommit - }); - } else { - this.push(result); - } - commits = []; - } - } else { - if (generateOn(keyCommit, commits, context, options)) { - neverGenerated = false; - result = util.generate(options, commits, context, savedKeyCommit); - if (!firstRelease || options.doFlush) { - if (options.includeDetails) { - this.push({ - log: result, - keyCommit: savedKeyCommit - }); - } else { - this.push(result); - } - } - firstRelease = false; - commits = []; - savedKeyCommit = keyCommit; - } - if (commit) { - commits.push(commit); - } - } - cb(); - } catch (err) { - cb(err); - } - }, function(cb) { - if (!options.doFlush && (options.reverse || neverGenerated)) { - cb(null); - return; - } - try { - const result = util.generate(options, commits, context, savedKeyCommit); - if (options.includeDetails) { - this.push({ - log: result, - keyCommit: savedKeyCommit - }); - } else { - this.push(result); - } - cb(); - } catch (err) { - cb(err); - } - }); - } - conventionalChangelogWriterParseStream.parseArray = (rawCommits, context, options) => { - let generateOn; - rawCommits = [...rawCommits]; - ({context, options, generateOn} = conventionalChangelogWriterInit(context, options)); - let commits = []; - let savedKeyCommit; - if (options.reverse) { - rawCommits.reverse(); - } - const entries = []; - for (const rawCommit of rawCommits) { - const commit = util.processCommit(rawCommit, options.transform, context); - const keyCommit = commit || rawCommit; - if (generateOn(keyCommit, commits, context, options)) { - entries.push(util.generate(options, commits, context, savedKeyCommit)); - savedKeyCommit = keyCommit; - commits = []; - } - if (commit) { - commits.push(commit); - } - } - if (options.reverse) { - entries.reverse(); - return util.generate(options, commits, context, savedKeyCommit) + entries.join(""); - } else { - return entries.join("") + util.generate(options, commits, context, savedKeyCommit); - } - }; - module.exports = conventionalChangelogWriterParseStream; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-4.1.0-4efcdf8fd3-c3f87b3c2f.zip/node_modules/hosted-git-info/git-host-info.js - var require_git_host_info = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-4.1.0-4efcdf8fd3-c3f87b3c2f.zip/node_modules/hosted-git-info/git-host-info.js"(exports, module) { - "use strict"; - var maybeJoin = (...args) => args.every((arg) => arg) ? args.join("") : ""; - var maybeEncode = (arg) => arg ? encodeURIComponent(arg) : ""; - var defaults = { - sshtemplate: ({domain, user, project, committish}) => `git@${domain}:${user}/${project}.git${maybeJoin("#", committish)}`, - sshurltemplate: ({domain, user, project, committish}) => `git+ssh://git@${domain}/${user}/${project}.git${maybeJoin("#", committish)}`, - browsetemplate: ({domain, user, project, committish, treepath}) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish))}`, - browsefiletemplate: ({domain, user, project, committish, treepath, path, fragment, hashformat}) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || "master")}/${path}${maybeJoin("#", hashformat(fragment || ""))}`, - docstemplate: ({domain, user, project, treepath, committish}) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish))}#readme`, - httpstemplate: ({auth, domain, user, project, committish}) => `git+https://${maybeJoin(auth, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`, - filetemplate: ({domain, user, project, committish, path}) => `https://${domain}/${user}/${project}/raw/${maybeEncode(committish) || "master"}/${path}`, - shortcuttemplate: ({type, user, project, committish}) => `${type}:${user}/${project}${maybeJoin("#", committish)}`, - pathtemplate: ({user, project, committish}) => `${user}/${project}${maybeJoin("#", committish)}`, - bugstemplate: ({domain, user, project}) => `https://${domain}/${user}/${project}/issues`, - hashformat: formatHashFragment - }; - var gitHosts = {}; - gitHosts.github = Object.assign({}, defaults, { - protocols: ["git:", "http:", "git+ssh:", "git+https:", "ssh:", "https:"], - domain: "github.com", - treepath: "tree", - filetemplate: ({auth, user, project, committish, path}) => `https://${maybeJoin(auth, "@")}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish) || "master"}/${path}`, - gittemplate: ({auth, domain, user, project, committish}) => `git://${maybeJoin(auth, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`, - tarballtemplate: ({domain, user, project, committish}) => `https://codeload.${domain}/${user}/${project}/tar.gz/${maybeEncode(committish) || "master"}`, - extract: (url) => { - let [, user, project, type, committish] = url.pathname.split("/", 5); - if (type && type !== "tree") { - return; - } - if (!type) { - committish = url.hash.slice(1); - } - if (project && project.endsWith(".git")) { - project = project.slice(0, -4); - } - if (!user || !project) { - return; - } - return {user, project, committish}; - } - }); - gitHosts.bitbucket = Object.assign({}, defaults, { - protocols: ["git+ssh:", "git+https:", "ssh:", "https:"], - domain: "bitbucket.org", - treepath: "src", - tarballtemplate: ({domain, user, project, committish}) => `https://${domain}/${user}/${project}/get/${maybeEncode(committish) || "master"}.tar.gz`, - extract: (url) => { - let [, user, project, aux] = url.pathname.split("/", 4); - if (["get"].includes(aux)) { - return; - } - if (project && project.endsWith(".git")) { - project = project.slice(0, -4); - } - if (!user || !project) { - return; - } - return {user, project, committish: url.hash.slice(1)}; - } - }); - gitHosts.gitlab = Object.assign({}, defaults, { - protocols: ["git+ssh:", "git+https:", "ssh:", "https:"], - domain: "gitlab.com", - treepath: "tree", - httpstemplate: ({auth, domain, user, project, committish}) => `git+https://${maybeJoin(auth, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`, - tarballtemplate: ({domain, user, project, committish}) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish) || "master"}`, - extract: (url) => { - const path = url.pathname.slice(1); - if (path.includes("/-/") || path.includes("/archive.tar.gz")) { - return; - } - const segments = path.split("/"); - let project = segments.pop(); - if (project.endsWith(".git")) { - project = project.slice(0, -4); - } - const user = segments.join("/"); - if (!user || !project) { - return; - } - return {user, project, committish: url.hash.slice(1)}; - } - }); - gitHosts.gist = Object.assign({}, defaults, { - protocols: ["git:", "git+ssh:", "git+https:", "ssh:", "https:"], - domain: "gist.github.com", - sshtemplate: ({domain, project, committish}) => `git@${domain}:${project}.git${maybeJoin("#", committish)}`, - sshurltemplate: ({domain, project, committish}) => `git+ssh://git@${domain}/${project}.git${maybeJoin("#", committish)}`, - browsetemplate: ({domain, project, committish}) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}`, - browsefiletemplate: ({domain, project, committish, path, hashformat}) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}${maybeJoin("#", hashformat(path))}`, - docstemplate: ({domain, project, committish}) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}`, - httpstemplate: ({domain, project, committish}) => `git+https://${domain}/${project}.git${maybeJoin("#", committish)}`, - filetemplate: ({user, project, committish, path}) => `https://gist.githubusercontent.com/${user}/${project}/raw${maybeJoin("/", maybeEncode(committish))}/${path}`, - shortcuttemplate: ({type, project, committish}) => `${type}:${project}${maybeJoin("#", committish)}`, - pathtemplate: ({project, committish}) => `${project}${maybeJoin("#", committish)}`, - bugstemplate: ({domain, project}) => `https://${domain}/${project}`, - gittemplate: ({domain, project, committish}) => `git://${domain}/${project}.git${maybeJoin("#", committish)}`, - tarballtemplate: ({project, committish}) => `https://codeload.github.com/gist/${project}/tar.gz/${maybeEncode(committish) || "master"}`, - extract: (url) => { - let [, user, project, aux] = url.pathname.split("/", 4); - if (aux === "raw") { - return; - } - if (!project) { - if (!user) { - return; - } - project = user; - user = null; - } - if (project.endsWith(".git")) { - project = project.slice(0, -4); - } - return {user, project, committish: url.hash.slice(1)}; - }, - hashformat: function(fragment) { - return fragment && "file-" + formatHashFragment(fragment); - } - }); - gitHosts.sourcehut = Object.assign({}, defaults, { - protocols: ["git+ssh:", "https:"], - domain: "git.sr.ht", - treepath: "tree", - browsefiletemplate: ({domain, user, project, committish, treepath, path, fragment, hashformat}) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || "main")}/${path}${maybeJoin("#", hashformat(fragment || ""))}`, - filetemplate: ({domain, user, project, committish, path}) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || "main"}/${path}`, - httpstemplate: ({domain, user, project, committish}) => `https://${domain}/${user}/${project}.git${maybeJoin("#", committish)}`, - tarballtemplate: ({domain, user, project, committish}) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || "main"}.tar.gz`, - bugstemplate: ({domain, user, project}) => `https://todo.sr.ht/${user}/${project}`, - docstemplate: ({domain, user, project, treepath, committish}) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish))}#readme`, - extract: (url) => { - let [, user, project, aux] = url.pathname.split("/", 4); - if (["archive"].includes(aux)) { - return; - } - if (project && project.endsWith(".git")) { - project = project.slice(0, -4); - } - if (!user || !project) { - return; - } - return {user, project, committish: url.hash.slice(1)}; - } - }); - var names = Object.keys(gitHosts); - gitHosts.byShortcut = {}; - gitHosts.byDomain = {}; - for (const name of names) { - gitHosts.byShortcut[`${name}:`] = name; - gitHosts.byDomain[gitHosts[name].domain] = name; - } - function formatHashFragment(fragment) { - return fragment.toLowerCase().replace(/^\W+|\/|\W+$/g, "").replace(/\W+/g, "-"); - } - module.exports = gitHosts; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-4.1.0-4efcdf8fd3-c3f87b3c2f.zip/node_modules/hosted-git-info/git-host.js - var require_git_host = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-4.1.0-4efcdf8fd3-c3f87b3c2f.zip/node_modules/hosted-git-info/git-host.js"(exports, module) { - "use strict"; - var gitHosts = require_git_host_info(); - var GitHost = class { - constructor(type, user, auth, project, committish, defaultRepresentation, opts = {}) { - Object.assign(this, gitHosts[type]); - this.type = type; - this.user = user; - this.auth = auth; - this.project = project; - this.committish = committish; - this.default = defaultRepresentation; - this.opts = opts; - } - hash() { - return this.committish ? `#${this.committish}` : ""; - } - ssh(opts) { - return this._fill(this.sshtemplate, opts); - } - _fill(template, opts) { - if (typeof template === "function") { - const options = __spreadValues(__spreadValues(__spreadValues({}, this), this.opts), opts); - if (!options.path) { - options.path = ""; - } - if (options.path.startsWith("/")) { - options.path = options.path.slice(1); - } - if (options.noCommittish) { - options.committish = null; - } - const result = template(options); - return options.noGitPlus && result.startsWith("git+") ? result.slice(4) : result; - } - return null; - } - sshurl(opts) { - return this._fill(this.sshurltemplate, opts); - } - browse(path, fragment, opts) { - if (typeof path !== "string") { - return this._fill(this.browsetemplate, path); - } - if (typeof fragment !== "string") { - opts = fragment; - fragment = null; - } - return this._fill(this.browsefiletemplate, __spreadProps(__spreadValues({}, opts), {fragment, path})); - } - docs(opts) { - return this._fill(this.docstemplate, opts); - } - bugs(opts) { - return this._fill(this.bugstemplate, opts); - } - https(opts) { - return this._fill(this.httpstemplate, opts); - } - git(opts) { - return this._fill(this.gittemplate, opts); - } - shortcut(opts) { - return this._fill(this.shortcuttemplate, opts); - } - path(opts) { - return this._fill(this.pathtemplate, opts); - } - tarball(opts) { - return this._fill(this.tarballtemplate, __spreadProps(__spreadValues({}, opts), {noCommittish: false})); - } - file(path, opts) { - return this._fill(this.filetemplate, __spreadProps(__spreadValues({}, opts), {path})); - } - getDefaultRepresentation() { - return this.default; - } - toString(opts) { - if (this.default && typeof this[this.default] === "function") { - return this[this.default](opts); - } - return this.sshurl(opts); - } - }; - module.exports = GitHost; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip/node_modules/yallist/iterator.js - var require_iterator = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip/node_modules/yallist/iterator.js"(exports, module) { - "use strict"; - module.exports = function(Yallist) { - Yallist.prototype[Symbol.iterator] = function* () { - for (let walker = this.head; walker; walker = walker.next) { - yield walker.value; - } - }; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip/node_modules/yallist/yallist.js - var require_yallist = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip/node_modules/yallist/yallist.js"(exports, module) { - "use strict"; - module.exports = Yallist; - Yallist.Node = Node; - Yallist.create = Yallist; - function Yallist(list) { - var self2 = this; - if (!(self2 instanceof Yallist)) { - self2 = new Yallist(); - } - self2.tail = null; - self2.head = null; - self2.length = 0; - if (list && typeof list.forEach === "function") { - list.forEach(function(item) { - self2.push(item); - }); - } else if (arguments.length > 0) { - for (var i = 0, l = arguments.length; i < l; i++) { - self2.push(arguments[i]); - } - } - return self2; - } - Yallist.prototype.removeNode = function(node) { - if (node.list !== this) { - throw new Error("removing node which does not belong to this list"); - } - var next = node.next; - var prev = node.prev; - if (next) { - next.prev = prev; - } - if (prev) { - prev.next = next; - } - if (node === this.head) { - this.head = next; - } - if (node === this.tail) { - this.tail = prev; - } - node.list.length--; - node.next = null; - node.prev = null; - node.list = null; - return next; - }; - Yallist.prototype.unshiftNode = function(node) { - if (node === this.head) { - return; - } - if (node.list) { - node.list.removeNode(node); - } - var head = this.head; - node.list = this; - node.next = head; - if (head) { - head.prev = node; - } - this.head = node; - if (!this.tail) { - this.tail = node; - } - this.length++; - }; - Yallist.prototype.pushNode = function(node) { - if (node === this.tail) { - return; - } - if (node.list) { - node.list.removeNode(node); - } - var tail = this.tail; - node.list = this; - node.prev = tail; - if (tail) { - tail.next = node; - } - this.tail = node; - if (!this.head) { - this.head = node; - } - this.length++; - }; - Yallist.prototype.push = function() { - for (var i = 0, l = arguments.length; i < l; i++) { - push(this, arguments[i]); - } - return this.length; - }; - Yallist.prototype.unshift = function() { - for (var i = 0, l = arguments.length; i < l; i++) { - unshift(this, arguments[i]); - } - return this.length; - }; - Yallist.prototype.pop = function() { - if (!this.tail) { - return void 0; - } - var res = this.tail.value; - this.tail = this.tail.prev; - if (this.tail) { - this.tail.next = null; - } else { - this.head = null; - } - this.length--; - return res; - }; - Yallist.prototype.shift = function() { - if (!this.head) { - return void 0; - } - var res = this.head.value; - this.head = this.head.next; - if (this.head) { - this.head.prev = null; - } else { - this.tail = null; - } - this.length--; - return res; - }; - Yallist.prototype.forEach = function(fn, thisp) { - thisp = thisp || this; - for (var walker = this.head, i = 0; walker !== null; i++) { - fn.call(thisp, walker.value, i, this); - walker = walker.next; - } - }; - Yallist.prototype.forEachReverse = function(fn, thisp) { - thisp = thisp || this; - for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { - fn.call(thisp, walker.value, i, this); - walker = walker.prev; - } - }; - Yallist.prototype.get = function(n) { - for (var i = 0, walker = this.head; walker !== null && i < n; i++) { - walker = walker.next; - } - if (i === n && walker !== null) { - return walker.value; - } - }; - Yallist.prototype.getReverse = function(n) { - for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { - walker = walker.prev; - } - if (i === n && walker !== null) { - return walker.value; - } - }; - Yallist.prototype.map = function(fn, thisp) { - thisp = thisp || this; - var res = new Yallist(); - for (var walker = this.head; walker !== null; ) { - res.push(fn.call(thisp, walker.value, this)); - walker = walker.next; - } - return res; - }; - Yallist.prototype.mapReverse = function(fn, thisp) { - thisp = thisp || this; - var res = new Yallist(); - for (var walker = this.tail; walker !== null; ) { - res.push(fn.call(thisp, walker.value, this)); - walker = walker.prev; - } - return res; - }; - Yallist.prototype.reduce = function(fn, initial) { - var acc; - var walker = this.head; - if (arguments.length > 1) { - acc = initial; - } else if (this.head) { - walker = this.head.next; - acc = this.head.value; - } else { - throw new TypeError("Reduce of empty list with no initial value"); - } - for (var i = 0; walker !== null; i++) { - acc = fn(acc, walker.value, i); - walker = walker.next; - } - return acc; - }; - Yallist.prototype.reduceReverse = function(fn, initial) { - var acc; - var walker = this.tail; - if (arguments.length > 1) { - acc = initial; - } else if (this.tail) { - walker = this.tail.prev; - acc = this.tail.value; - } else { - throw new TypeError("Reduce of empty list with no initial value"); - } - for (var i = this.length - 1; walker !== null; i--) { - acc = fn(acc, walker.value, i); - walker = walker.prev; - } - return acc; - }; - Yallist.prototype.toArray = function() { - var arr = new Array(this.length); - for (var i = 0, walker = this.head; walker !== null; i++) { - arr[i] = walker.value; - walker = walker.next; - } - return arr; - }; - Yallist.prototype.toArrayReverse = function() { - var arr = new Array(this.length); - for (var i = 0, walker = this.tail; walker !== null; i++) { - arr[i] = walker.value; - walker = walker.prev; - } - return arr; - }; - Yallist.prototype.slice = function(from, to) { - to = to || this.length; - if (to < 0) { - to += this.length; - } - from = from || 0; - if (from < 0) { - from += this.length; - } - var ret = new Yallist(); - if (to < from || to < 0) { - return ret; - } - if (from < 0) { - from = 0; - } - if (to > this.length) { - to = this.length; - } - for (var i = 0, walker = this.head; walker !== null && i < from; i++) { - walker = walker.next; - } - for (; walker !== null && i < to; i++, walker = walker.next) { - ret.push(walker.value); - } - return ret; - }; - Yallist.prototype.sliceReverse = function(from, to) { - to = to || this.length; - if (to < 0) { - to += this.length; - } - from = from || 0; - if (from < 0) { - from += this.length; - } - var ret = new Yallist(); - if (to < from || to < 0) { - return ret; - } - if (from < 0) { - from = 0; - } - if (to > this.length) { - to = this.length; - } - for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { - walker = walker.prev; - } - for (; walker !== null && i > from; i--, walker = walker.prev) { - ret.push(walker.value); - } - return ret; - }; - Yallist.prototype.splice = function(start, deleteCount, ...nodes) { - if (start > this.length) { - start = this.length - 1; - } - if (start < 0) { - start = this.length + start; - } - for (var i = 0, walker = this.head; walker !== null && i < start; i++) { - walker = walker.next; - } - var ret = []; - for (var i = 0; walker && i < deleteCount; i++) { - ret.push(walker.value); - walker = this.removeNode(walker); - } - if (walker === null) { - walker = this.tail; - } - if (walker !== this.head && walker !== this.tail) { - walker = walker.prev; - } - for (var i = 0; i < nodes.length; i++) { - walker = insert(this, walker, nodes[i]); - } - return ret; - }; - Yallist.prototype.reverse = function() { - var head = this.head; - var tail = this.tail; - for (var walker = head; walker !== null; walker = walker.prev) { - var p = walker.prev; - walker.prev = walker.next; - walker.next = p; - } - this.head = tail; - this.tail = head; - return this; - }; - function insert(self2, node, value) { - var inserted = node === self2.head ? new Node(value, null, node, self2) : new Node(value, node, node.next, self2); - if (inserted.next === null) { - self2.tail = inserted; - } - if (inserted.prev === null) { - self2.head = inserted; - } - self2.length++; - return inserted; - } - function push(self2, item) { - self2.tail = new Node(item, self2.tail, null, self2); - if (!self2.head) { - self2.head = self2.tail; - } - self2.length++; - } - function unshift(self2, item) { - self2.head = new Node(item, null, self2.head, self2); - if (!self2.tail) { - self2.tail = self2.head; - } - self2.length++; - } - function Node(value, prev, next, list) { - if (!(this instanceof Node)) { - return new Node(value, prev, next, list); - } - this.list = list; - this.value = value; - if (prev) { - prev.next = this; - this.prev = prev; - } else { - this.prev = null; - } - if (next) { - next.prev = this; - this.next = next; - } else { - this.next = null; - } - } - try { - require_iterator()(Yallist); - } catch (er) { - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip/node_modules/lru-cache/index.js - var require_lru_cache = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip/node_modules/lru-cache/index.js"(exports, module) { - "use strict"; - var Yallist = require_yallist(); - var MAX = Symbol("max"); - var LENGTH = Symbol("length"); - var LENGTH_CALCULATOR = Symbol("lengthCalculator"); - var ALLOW_STALE = Symbol("allowStale"); - var MAX_AGE = Symbol("maxAge"); - var DISPOSE = Symbol("dispose"); - var NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet"); - var LRU_LIST = Symbol("lruList"); - var CACHE = Symbol("cache"); - var UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet"); - var naiveLength = () => 1; - var LRUCache = class { - constructor(options) { - if (typeof options === "number") - options = {max: options}; - if (!options) - options = {}; - if (options.max && (typeof options.max !== "number" || options.max < 0)) - throw new TypeError("max must be a non-negative number"); - const max = this[MAX] = options.max || Infinity; - const lc = options.length || naiveLength; - this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc; - this[ALLOW_STALE] = options.stale || false; - if (options.maxAge && typeof options.maxAge !== "number") - throw new TypeError("maxAge must be a number"); - this[MAX_AGE] = options.maxAge || 0; - this[DISPOSE] = options.dispose; - this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false; - this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false; - this.reset(); - } - set max(mL) { - if (typeof mL !== "number" || mL < 0) - throw new TypeError("max must be a non-negative number"); - this[MAX] = mL || Infinity; - trim(this); - } - get max() { - return this[MAX]; - } - set allowStale(allowStale) { - this[ALLOW_STALE] = !!allowStale; - } - get allowStale() { - return this[ALLOW_STALE]; - } - set maxAge(mA) { - if (typeof mA !== "number") - throw new TypeError("maxAge must be a non-negative number"); - this[MAX_AGE] = mA; - trim(this); - } - get maxAge() { - return this[MAX_AGE]; - } - set lengthCalculator(lC) { - if (typeof lC !== "function") - lC = naiveLength; - if (lC !== this[LENGTH_CALCULATOR]) { - this[LENGTH_CALCULATOR] = lC; - this[LENGTH] = 0; - this[LRU_LIST].forEach((hit) => { - hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key); - this[LENGTH] += hit.length; - }); - } - trim(this); - } - get lengthCalculator() { - return this[LENGTH_CALCULATOR]; - } - get length() { - return this[LENGTH]; - } - get itemCount() { - return this[LRU_LIST].length; - } - rforEach(fn, thisp) { - thisp = thisp || this; - for (let walker = this[LRU_LIST].tail; walker !== null; ) { - const prev = walker.prev; - forEachStep(this, fn, walker, thisp); - walker = prev; - } - } - forEach(fn, thisp) { - thisp = thisp || this; - for (let walker = this[LRU_LIST].head; walker !== null; ) { - const next = walker.next; - forEachStep(this, fn, walker, thisp); - walker = next; - } - } - keys() { - return this[LRU_LIST].toArray().map((k) => k.key); - } - values() { - return this[LRU_LIST].toArray().map((k) => k.value); - } - reset() { - if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) { - this[LRU_LIST].forEach((hit) => this[DISPOSE](hit.key, hit.value)); - } - this[CACHE] = new Map(); - this[LRU_LIST] = new Yallist(); - this[LENGTH] = 0; - } - dump() { - return this[LRU_LIST].map((hit) => isStale(this, hit) ? false : { - k: hit.key, - v: hit.value, - e: hit.now + (hit.maxAge || 0) - }).toArray().filter((h) => h); - } - dumpLru() { - return this[LRU_LIST]; - } - set(key, value, maxAge) { - maxAge = maxAge || this[MAX_AGE]; - if (maxAge && typeof maxAge !== "number") - throw new TypeError("maxAge must be a number"); - const now = maxAge ? Date.now() : 0; - const len = this[LENGTH_CALCULATOR](value, key); - if (this[CACHE].has(key)) { - if (len > this[MAX]) { - del(this, this[CACHE].get(key)); - return false; - } - const node = this[CACHE].get(key); - const item = node.value; - if (this[DISPOSE]) { - if (!this[NO_DISPOSE_ON_SET]) - this[DISPOSE](key, item.value); - } - item.now = now; - item.maxAge = maxAge; - item.value = value; - this[LENGTH] += len - item.length; - item.length = len; - this.get(key); - trim(this); - return true; - } - const hit = new Entry(key, value, len, now, maxAge); - if (hit.length > this[MAX]) { - if (this[DISPOSE]) - this[DISPOSE](key, value); - return false; - } - this[LENGTH] += hit.length; - this[LRU_LIST].unshift(hit); - this[CACHE].set(key, this[LRU_LIST].head); - trim(this); - return true; - } - has(key) { - if (!this[CACHE].has(key)) - return false; - const hit = this[CACHE].get(key).value; - return !isStale(this, hit); - } - get(key) { - return get(this, key, true); - } - peek(key) { - return get(this, key, false); - } - pop() { - const node = this[LRU_LIST].tail; - if (!node) - return null; - del(this, node); - return node.value; - } - del(key) { - del(this, this[CACHE].get(key)); - } - load(arr) { - this.reset(); - const now = Date.now(); - for (let l = arr.length - 1; l >= 0; l--) { - const hit = arr[l]; - const expiresAt = hit.e || 0; - if (expiresAt === 0) - this.set(hit.k, hit.v); - else { - const maxAge = expiresAt - now; - if (maxAge > 0) { - this.set(hit.k, hit.v, maxAge); - } - } - } - } - prune() { - this[CACHE].forEach((value, key) => get(this, key, false)); - } - }; - var get = (self2, key, doUse) => { - const node = self2[CACHE].get(key); - if (node) { - const hit = node.value; - if (isStale(self2, hit)) { - del(self2, node); - if (!self2[ALLOW_STALE]) - return void 0; - } else { - if (doUse) { - if (self2[UPDATE_AGE_ON_GET]) - node.value.now = Date.now(); - self2[LRU_LIST].unshiftNode(node); - } - } - return hit.value; - } - }; - var isStale = (self2, hit) => { - if (!hit || !hit.maxAge && !self2[MAX_AGE]) - return false; - const diff = Date.now() - hit.now; - return hit.maxAge ? diff > hit.maxAge : self2[MAX_AGE] && diff > self2[MAX_AGE]; - }; - var trim = (self2) => { - if (self2[LENGTH] > self2[MAX]) { - for (let walker = self2[LRU_LIST].tail; self2[LENGTH] > self2[MAX] && walker !== null; ) { - const prev = walker.prev; - del(self2, walker); - walker = prev; - } - } - }; - var del = (self2, node) => { - if (node) { - const hit = node.value; - if (self2[DISPOSE]) - self2[DISPOSE](hit.key, hit.value); - self2[LENGTH] -= hit.length; - self2[CACHE].delete(hit.key); - self2[LRU_LIST].removeNode(node); - } - }; - var Entry = class { - constructor(key, value, length, now, maxAge) { - this.key = key; - this.value = value; - this.length = length; - this.now = now; - this.maxAge = maxAge || 0; - } - }; - var forEachStep = (self2, fn, node, thisp) => { - let hit = node.value; - if (isStale(self2, hit)) { - del(self2, node); - if (!self2[ALLOW_STALE]) - hit = void 0; - } - if (hit) - fn.call(thisp, hit.value, hit.key, self2); - }; - module.exports = LRUCache; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-4.1.0-4efcdf8fd3-c3f87b3c2f.zip/node_modules/hosted-git-info/index.js - var require_hosted_git_info = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-4.1.0-4efcdf8fd3-c3f87b3c2f.zip/node_modules/hosted-git-info/index.js"(exports, module) { - "use strict"; - var url = __require("url"); - var gitHosts = require_git_host_info(); - var GitHost = module.exports = require_git_host(); - var LRU = require_lru_cache(); - var cache = new LRU({max: 1e3}); - var protocolToRepresentationMap = { - "git+ssh:": "sshurl", - "git+https:": "https", - "ssh:": "sshurl", - "git:": "git" - }; - function protocolToRepresentation(protocol) { - return protocolToRepresentationMap[protocol] || protocol.slice(0, -1); - } - var authProtocols = { - "git:": true, - "https:": true, - "git+https:": true, - "http:": true, - "git+http:": true - }; - var knownProtocols = Object.keys(gitHosts.byShortcut).concat(["http:", "https:", "git:", "git+ssh:", "git+https:", "ssh:"]); - module.exports.fromUrl = function(giturl, opts) { - if (typeof giturl !== "string") { - return; - } - const key = giturl + JSON.stringify(opts || {}); - if (!cache.has(key)) { - cache.set(key, fromUrl(giturl, opts)); - } - return cache.get(key); - }; - function fromUrl(giturl, opts) { - if (!giturl) { - return; - } - const url2 = isGitHubShorthand(giturl) ? "github:" + giturl : correctProtocol(giturl); - const parsed = parseGitUrl(url2); - if (!parsed) { - return parsed; - } - const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]; - const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith("www.") ? parsed.hostname.slice(4) : parsed.hostname]; - const gitHostName = gitHostShortcut || gitHostDomain; - if (!gitHostName) { - return; - } - const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain]; - let auth = null; - if (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) { - auth = `${parsed.username}${parsed.password ? ":" + parsed.password : ""}`; - } - let committish = null; - let user = null; - let project = null; - let defaultRepresentation = null; - try { - if (gitHostShortcut) { - let pathname = parsed.pathname.startsWith("/") ? parsed.pathname.slice(1) : parsed.pathname; - const firstAt = pathname.indexOf("@"); - if (firstAt > -1) { - pathname = pathname.slice(firstAt + 1); - } - const lastSlash = pathname.lastIndexOf("/"); - if (lastSlash > -1) { - user = decodeURIComponent(pathname.slice(0, lastSlash)); - if (!user) { - user = null; - } - project = decodeURIComponent(pathname.slice(lastSlash + 1)); - } else { - project = decodeURIComponent(pathname); - } - if (project.endsWith(".git")) { - project = project.slice(0, -4); - } - if (parsed.hash) { - committish = decodeURIComponent(parsed.hash.slice(1)); - } - defaultRepresentation = "shortcut"; - } else { - if (!gitHostInfo.protocols.includes(parsed.protocol)) { - return; - } - const segments = gitHostInfo.extract(parsed); - if (!segments) { - return; - } - user = segments.user && decodeURIComponent(segments.user); - project = decodeURIComponent(segments.project); - committish = decodeURIComponent(segments.committish); - defaultRepresentation = protocolToRepresentation(parsed.protocol); - } - } catch (err) { - if (err instanceof URIError) { - return; - } else { - throw err; - } - } - return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts); - } - var correctProtocol = (arg) => { - const firstColon = arg.indexOf(":"); - const proto = arg.slice(0, firstColon + 1); - if (knownProtocols.includes(proto)) { - return arg; - } - const firstAt = arg.indexOf("@"); - if (firstAt > -1) { - if (firstAt > firstColon) { - return `git+ssh://${arg}`; - } else { - return arg; - } - } - const doubleSlash = arg.indexOf("//"); - if (doubleSlash === firstColon + 1) { - return arg; - } - return arg.slice(0, firstColon + 1) + "//" + arg.slice(firstColon + 1); - }; - var isGitHubShorthand = (arg) => { - const firstHash = arg.indexOf("#"); - const firstSlash = arg.indexOf("/"); - const secondSlash = arg.indexOf("/", firstSlash + 1); - const firstColon = arg.indexOf(":"); - const firstSpace = /\s/.exec(arg); - const firstAt = arg.indexOf("@"); - const spaceOnlyAfterHash = !firstSpace || firstHash > -1 && firstSpace.index > firstHash; - const atOnlyAfterHash = firstAt === -1 || firstHash > -1 && firstAt > firstHash; - const colonOnlyAfterHash = firstColon === -1 || firstHash > -1 && firstColon > firstHash; - const secondSlashOnlyAfterHash = secondSlash === -1 || firstHash > -1 && secondSlash > firstHash; - const hasSlash = firstSlash > 0; - const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== "/" : !arg.endsWith("/"); - const doesNotStartWithDot = !arg.startsWith("."); - return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash; - }; - var correctUrl = (giturl) => { - const firstAt = giturl.indexOf("@"); - const lastHash = giturl.lastIndexOf("#"); - let firstColon = giturl.indexOf(":"); - let lastColon = giturl.lastIndexOf(":", lastHash > -1 ? lastHash : Infinity); - let corrected; - if (lastColon > firstAt) { - corrected = giturl.slice(0, lastColon) + "/" + giturl.slice(lastColon + 1); - firstColon = corrected.indexOf(":"); - lastColon = corrected.lastIndexOf(":"); - } - if (firstColon === -1 && giturl.indexOf("//") === -1) { - corrected = `git+ssh://${corrected}`; - } - return corrected; - }; - var parseGitUrl = (giturl) => { - let result; - try { - result = new url.URL(giturl); - } catch (err) { - } - if (result) { - return result; - } - const correctedUrl = correctUrl(giturl); - try { - result = new url.URL(correctedUrl); - } catch (err) { - } - return result; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/@hutson-parse-repository-url-npm-3.0.2-ae5ef1b671-39992c5f18.zip/node_modules/@hutson/parse-repository-url/src/index.js - var require_src2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/@hutson-parse-repository-url-npm-3.0.2-ae5ef1b671-39992c5f18.zip/node_modules/@hutson/parse-repository-url/src/index.js"(exports, module) { - "use strict"; - var {parse} = __require("url"); - var URL_PATTERNS = new RegExp(/^\/?:?([/\w-.]+)\/([\w-.]+)\/?$/); - var GITHUB_API = new RegExp(/^\/repos\/([\w-.]+)\/([\w-.]+)\/(?:tarball|zipball)(?:\/.+)?$/); - var GITHUB_CODELOAD = new RegExp(/^\/([\w-.]+)\/([\w-.]+)\/(?:legacy\.(?:zip|tar\.gz))(?:\/.+)?$/); - module.exports = (url) => { - const modifiedURL = url.replace(/^git@/, `https://git@`).replace(/\.git$/, ``); - const parsedURL = parse(modifiedURL); - const format = (matches) => { - return {browse: createBrowseURL(parsedURL, matches), domain: parsedURL.host, project: matches[2] || null, type: getType(parsedURL), user: matches[1] || null}; - }; - if (parsedURL.host) { - if (parsedURL.host.includes(`api.github.com`)) { - const matches = GITHUB_API.exec(parsedURL.pathname) || []; - return format(matches); - } - if (parsedURL.host.includes(`codeload.github.com`)) { - const matches = GITHUB_CODELOAD.exec(parsedURL.pathname) || []; - return format(matches); - } - } - return format(URL_PATTERNS.exec(parsedURL.pathname) || []); - }; - function getType(parsedURL) { - if (typeof parsedURL.host !== `string`) { - return null; - } - if (parsedURL.host.indexOf(`github`) !== -1) { - return "github"; - } - if (parsedURL.host.indexOf(`gitlab`) !== -1) { - return "gitlab"; - } - return null; - } - function createBrowseURL(parsedURL, matches) { - const protocol = parsedURL.protocol === `http:` ? `http:` : `https:`; - const browseURL = `${protocol}//${parsedURL.host}/${matches[1]}/${matches[2]}`; - return () => { - return browseURL; - }; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/get-pkg-repo-npm-4.2.1-b1cd052cb4-5abf169137.zip/node_modules/get-pkg-repo/src/index.js - var require_src3 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/get-pkg-repo-npm-4.2.1-b1cd052cb4-5abf169137.zip/node_modules/get-pkg-repo/src/index.js"(exports, module) { - "use strict"; - var hostedGitInfo = require_hosted_git_info(); - var parseRepositoryURL = require_src2(); - module.exports = (packageData) => { - if (!packageData || !packageData.repository || typeof packageData.repository !== "string" && !packageData.repository.url) { - throw new Error(`No valid "repository" data found in package metadata. Please see https://docs.npmjs.com/files/package.json#repository for proper syntax.`); - } - const repositoryURL = typeof packageData.repository === "string" ? packageData.repository : packageData.repository.url; - return hostedGitInfo.fromUrl(repositoryURL) || parseRepositoryURL(repositoryURL); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/git-semver-tags-npm-4.1.1-93b9747811-e16d02a515.zip/node_modules/git-semver-tags/index.js - var require_git_semver_tags = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/git-semver-tags-npm-4.1.1-93b9747811-e16d02a515.zip/node_modules/git-semver-tags/index.js"(exports, module) { - "use strict"; - var proc = __require("process"); - var exec = __require("child_process").exec; - var semverValid = __require("semver").valid; - var regex = /tag:\s*(.+?)[,)]/gi; - var cmd = "git log --decorate --no-color"; - var unstableTagTest = /.+-\w+\.\d+$/; - function lernaTag(tag, pkg) { - if (pkg && !new RegExp("^" + pkg + "@").test(tag)) { - return false; - } else { - return /^.+@[0-9]+\.[0-9]+\.[0-9]+(-.+)?$/.test(tag); - } - } - module.exports = function gitSemverTags2(opts, callback) { - if (typeof opts === "function") { - callback = opts; - opts = {}; - } - const options = Object.assign({maxBuffer: Infinity, cwd: proc.cwd()}, opts); - if (options.package && !options.lernaTags) { - callback(new Error("opts.package should only be used when running in lerna mode")); - return; - } - exec(cmd, options, function(err, data) { - if (err) { - callback(err); - return; - } - const tags = []; - let tagPrefixRegexp; - if (options.tagPrefix) { - tagPrefixRegexp = new RegExp("^" + options.tagPrefix + "(.*)"); - } - data.split("\n").forEach(function(decorations) { - let match; - while (match = regex.exec(decorations)) { - const tag = match[1]; - if (options.skipUnstable && unstableTagTest.test(tag)) { - continue; - } - if (options.lernaTags) { - if (lernaTag(tag, options.package)) { - tags.push(tag); - } - } else if (options.tagPrefix) { - const matches = tag.match(tagPrefixRegexp); - if (matches && semverValid(matches[1])) { - tags.push(tag); - } - } else if (semverValid(tag)) { - tags.push(tag); - } - } - }); - callback(null, tags); - }); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/constants.js - var require_constants = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/constants.js"(exports, module) { - var SEMVER_SPEC_VERSION = "2.0.0"; - var MAX_LENGTH = 256; - var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991; - var MAX_SAFE_COMPONENT_LENGTH = 16; - module.exports = { - SEMVER_SPEC_VERSION, - MAX_LENGTH, - MAX_SAFE_INTEGER, - MAX_SAFE_COMPONENT_LENGTH - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/debug.js - var require_debug = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/debug.js"(exports, module) { - var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => { - }; - module.exports = debug; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/re.js - var require_re = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/re.js"(exports, module) { - var {MAX_SAFE_COMPONENT_LENGTH} = require_constants(); - var debug = require_debug(); - exports = module.exports = {}; - var re = exports.re = []; - var src = exports.src = []; - var t = exports.t = {}; - var R = 0; - var createToken = (name, value, isGlobal) => { - const index = R++; - debug(name, index, value); - t[name] = index; - src[index] = value; - re[index] = new RegExp(value, isGlobal ? "g" : void 0); - }; - createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*"); - createToken("NUMERICIDENTIFIERLOOSE", "[0-9]+"); - createToken("NONNUMERICIDENTIFIER", "\\d*[a-zA-Z-][a-zA-Z0-9-]*"); - createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`); - createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`); - createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`); - createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`); - createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`); - createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`); - createToken("BUILDIDENTIFIER", "[0-9A-Za-z-]+"); - createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`); - createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`); - createToken("FULL", `^${src[t.FULLPLAIN]}$`); - createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`); - createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`); - createToken("GTLT", "((?:<|>)?=?)"); - createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`); - createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`); - createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`); - createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`); - createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`); - createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`); - createToken("COERCE", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`); - createToken("COERCERTL", src[t.COERCE], true); - createToken("LONETILDE", "(?:~>?)"); - createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true); - exports.tildeTrimReplace = "$1~"; - createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`); - createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`); - createToken("LONECARET", "(?:\\^)"); - createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true); - exports.caretTrimReplace = "$1^"; - createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`); - createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`); - createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`); - createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`); - createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true); - exports.comparatorTrimReplace = "$1$2$3"; - createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`); - createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`); - createToken("STAR", "(<|>)?=?\\s*\\*"); - createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"); - createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$"); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/parse-options.js - var require_parse_options = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/parse-options.js"(exports, module) { - var opts = ["includePrerelease", "loose", "rtl"]; - var parseOptions = (options) => !options ? {} : typeof options !== "object" ? {loose: true} : opts.filter((k) => options[k]).reduce((o, k) => { - o[k] = true; - return o; - }, {}); - module.exports = parseOptions; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/identifiers.js - var require_identifiers = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/identifiers.js"(exports, module) { - var numeric = /^[0-9]+$/; - var compareIdentifiers = (a, b) => { - const anum = numeric.test(a); - const bnum = numeric.test(b); - if (anum && bnum) { - a = +a; - b = +b; - } - return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1; - }; - var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a); - module.exports = { - compareIdentifiers, - rcompareIdentifiers - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/classes/semver.js - var require_semver2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/classes/semver.js"(exports, module) { - var debug = require_debug(); - var {MAX_LENGTH, MAX_SAFE_INTEGER} = require_constants(); - var {re, t} = require_re(); - var parseOptions = require_parse_options(); - var {compareIdentifiers} = require_identifiers(); - var SemVer3 = class { - constructor(version, options) { - options = parseOptions(options); - if (version instanceof SemVer3) { - if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) { - return version; - } else { - version = version.version; - } - } else if (typeof version !== "string") { - throw new TypeError(`Invalid Version: ${version}`); - } - if (version.length > MAX_LENGTH) { - throw new TypeError(`version is longer than ${MAX_LENGTH} characters`); - } - debug("SemVer", version, options); - this.options = options; - this.loose = !!options.loose; - this.includePrerelease = !!options.includePrerelease; - const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]); - if (!m) { - throw new TypeError(`Invalid Version: ${version}`); - } - this.raw = version; - this.major = +m[1]; - this.minor = +m[2]; - this.patch = +m[3]; - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError("Invalid major version"); - } - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError("Invalid minor version"); - } - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError("Invalid patch version"); - } - if (!m[4]) { - this.prerelease = []; - } else { - this.prerelease = m[4].split(".").map((id) => { - if (/^[0-9]+$/.test(id)) { - const num = +id; - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num; - } - } - return id; - }); - } - this.build = m[5] ? m[5].split(".") : []; - this.format(); - } - format() { - this.version = `${this.major}.${this.minor}.${this.patch}`; - if (this.prerelease.length) { - this.version += `-${this.prerelease.join(".")}`; - } - return this.version; - } - toString() { - return this.version; - } - compare(other) { - debug("SemVer.compare", this.version, this.options, other); - if (!(other instanceof SemVer3)) { - if (typeof other === "string" && other === this.version) { - return 0; - } - other = new SemVer3(other, this.options); - } - if (other.version === this.version) { - return 0; - } - return this.compareMain(other) || this.comparePre(other); - } - compareMain(other) { - if (!(other instanceof SemVer3)) { - other = new SemVer3(other, this.options); - } - return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch); - } - comparePre(other) { - if (!(other instanceof SemVer3)) { - other = new SemVer3(other, this.options); - } - if (this.prerelease.length && !other.prerelease.length) { - return -1; - } else if (!this.prerelease.length && other.prerelease.length) { - return 1; - } else if (!this.prerelease.length && !other.prerelease.length) { - return 0; - } - let i = 0; - do { - const a = this.prerelease[i]; - const b = other.prerelease[i]; - debug("prerelease compare", i, a, b); - if (a === void 0 && b === void 0) { - return 0; - } else if (b === void 0) { - return 1; - } else if (a === void 0) { - return -1; - } else if (a === b) { - continue; - } else { - return compareIdentifiers(a, b); - } - } while (++i); - } - compareBuild(other) { - if (!(other instanceof SemVer3)) { - other = new SemVer3(other, this.options); - } - let i = 0; - do { - const a = this.build[i]; - const b = other.build[i]; - debug("prerelease compare", i, a, b); - if (a === void 0 && b === void 0) { - return 0; - } else if (b === void 0) { - return 1; - } else if (a === void 0) { - return -1; - } else if (a === b) { - continue; - } else { - return compareIdentifiers(a, b); - } - } while (++i); - } - inc(release, identifier) { - switch (release) { - case "premajor": - this.prerelease.length = 0; - this.patch = 0; - this.minor = 0; - this.major++; - this.inc("pre", identifier); - break; - case "preminor": - this.prerelease.length = 0; - this.patch = 0; - this.minor++; - this.inc("pre", identifier); - break; - case "prepatch": - this.prerelease.length = 0; - this.inc("patch", identifier); - this.inc("pre", identifier); - break; - case "prerelease": - if (this.prerelease.length === 0) { - this.inc("patch", identifier); - } - this.inc("pre", identifier); - break; - case "major": - if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) { - this.major++; - } - this.minor = 0; - this.patch = 0; - this.prerelease = []; - break; - case "minor": - if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++; - } - this.patch = 0; - this.prerelease = []; - break; - case "patch": - if (this.prerelease.length === 0) { - this.patch++; - } - this.prerelease = []; - break; - case "pre": - if (this.prerelease.length === 0) { - this.prerelease = [0]; - } else { - let i = this.prerelease.length; - while (--i >= 0) { - if (typeof this.prerelease[i] === "number") { - this.prerelease[i]++; - i = -2; - } - } - if (i === -1) { - this.prerelease.push(0); - } - } - if (identifier) { - if (compareIdentifiers(this.prerelease[0], identifier) === 0) { - if (isNaN(this.prerelease[1])) { - this.prerelease = [identifier, 0]; - } - } else { - this.prerelease = [identifier, 0]; - } - } - break; - default: - throw new Error(`invalid increment argument: ${release}`); - } - this.format(); - this.raw = this.version; - return this; - } - }; - module.exports = SemVer3; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/functions/parse.js - var require_parse = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/functions/parse.js"(exports, module) { - var {MAX_LENGTH} = require_constants(); - var {re, t} = require_re(); - var SemVer3 = require_semver2(); - var parseOptions = require_parse_options(); - var parse = (version, options) => { - options = parseOptions(options); - if (version instanceof SemVer3) { - return version; - } - if (typeof version !== "string") { - return null; - } - if (version.length > MAX_LENGTH) { - return null; - } - const r = options.loose ? re[t.LOOSE] : re[t.FULL]; - if (!r.test(version)) { - return null; - } - try { - return new SemVer3(version, options); - } catch (er) { - return null; - } - }; - module.exports = parse; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/functions/valid.js - var require_valid = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/functions/valid.js"(exports, module) { - var parse = require_parse(); - var valid = (version, options) => { - const v = parse(version, options); - return v ? v.version : null; - }; - module.exports = valid; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/functions/clean.js - var require_clean = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/functions/clean.js"(exports, module) { - var parse = require_parse(); - var clean = (version, options) => { - const s = parse(version.trim().replace(/^[=v]+/, ""), options); - return s ? s.version : null; - }; - module.exports = clean; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-license-ids-npm-3.0.11-a8d9a5ff74-1da1acb090.zip/node_modules/spdx-license-ids/index.json - var require_spdx_license_ids = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-license-ids-npm-3.0.11-a8d9a5ff74-1da1acb090.zip/node_modules/spdx-license-ids/index.json"(exports, module) { - module.exports = [ - "0BSD", - "AAL", - "ADSL", - "AFL-1.1", - "AFL-1.2", - "AFL-2.0", - "AFL-2.1", - "AFL-3.0", - "AGPL-1.0-only", - "AGPL-1.0-or-later", - "AGPL-3.0-only", - "AGPL-3.0-or-later", - "AMDPLPA", - "AML", - "AMPAS", - "ANTLR-PD", - "ANTLR-PD-fallback", - "APAFML", - "APL-1.0", - "APSL-1.0", - "APSL-1.1", - "APSL-1.2", - "APSL-2.0", - "Abstyles", - "Adobe-2006", - "Adobe-Glyph", - "Afmparse", - "Aladdin", - "Apache-1.0", - "Apache-1.1", - "Apache-2.0", - "Artistic-1.0", - "Artistic-1.0-Perl", - "Artistic-1.0-cl8", - "Artistic-2.0", - "BSD-1-Clause", - "BSD-2-Clause", - "BSD-2-Clause-Patent", - "BSD-2-Clause-Views", - "BSD-3-Clause", - "BSD-3-Clause-Attribution", - "BSD-3-Clause-Clear", - "BSD-3-Clause-LBNL", - "BSD-3-Clause-Modification", - "BSD-3-Clause-No-Military-License", - "BSD-3-Clause-No-Nuclear-License", - "BSD-3-Clause-No-Nuclear-License-2014", - "BSD-3-Clause-No-Nuclear-Warranty", - "BSD-3-Clause-Open-MPI", - "BSD-4-Clause", - "BSD-4-Clause-Shortened", - "BSD-4-Clause-UC", - "BSD-Protection", - "BSD-Source-Code", - "BSL-1.0", - "BUSL-1.1", - "Bahyph", - "Barr", - "Beerware", - "BitTorrent-1.0", - "BitTorrent-1.1", - "BlueOak-1.0.0", - "Borceux", - "C-UDA-1.0", - "CAL-1.0", - "CAL-1.0-Combined-Work-Exception", - "CATOSL-1.1", - "CC-BY-1.0", - "CC-BY-2.0", - "CC-BY-2.5", - "CC-BY-2.5-AU", - "CC-BY-3.0", - "CC-BY-3.0-AT", - "CC-BY-3.0-DE", - "CC-BY-3.0-NL", - "CC-BY-3.0-US", - "CC-BY-4.0", - "CC-BY-NC-1.0", - "CC-BY-NC-2.0", - "CC-BY-NC-2.5", - "CC-BY-NC-3.0", - "CC-BY-NC-3.0-DE", - "CC-BY-NC-4.0", - "CC-BY-NC-ND-1.0", - "CC-BY-NC-ND-2.0", - "CC-BY-NC-ND-2.5", - "CC-BY-NC-ND-3.0", - "CC-BY-NC-ND-3.0-DE", - "CC-BY-NC-ND-3.0-IGO", - "CC-BY-NC-ND-4.0", - "CC-BY-NC-SA-1.0", - "CC-BY-NC-SA-2.0", - "CC-BY-NC-SA-2.0-FR", - "CC-BY-NC-SA-2.0-UK", - "CC-BY-NC-SA-2.5", - "CC-BY-NC-SA-3.0", - "CC-BY-NC-SA-3.0-DE", - "CC-BY-NC-SA-3.0-IGO", - "CC-BY-NC-SA-4.0", - "CC-BY-ND-1.0", - "CC-BY-ND-2.0", - "CC-BY-ND-2.5", - "CC-BY-ND-3.0", - "CC-BY-ND-3.0-DE", - "CC-BY-ND-4.0", - "CC-BY-SA-1.0", - "CC-BY-SA-2.0", - "CC-BY-SA-2.0-UK", - "CC-BY-SA-2.1-JP", - "CC-BY-SA-2.5", - "CC-BY-SA-3.0", - "CC-BY-SA-3.0-AT", - "CC-BY-SA-3.0-DE", - "CC-BY-SA-4.0", - "CC-PDDC", - "CC0-1.0", - "CDDL-1.0", - "CDDL-1.1", - "CDL-1.0", - "CDLA-Permissive-1.0", - "CDLA-Permissive-2.0", - "CDLA-Sharing-1.0", - "CECILL-1.0", - "CECILL-1.1", - "CECILL-2.0", - "CECILL-2.1", - "CECILL-B", - "CECILL-C", - "CERN-OHL-1.1", - "CERN-OHL-1.2", - "CERN-OHL-P-2.0", - "CERN-OHL-S-2.0", - "CERN-OHL-W-2.0", - "CNRI-Jython", - "CNRI-Python", - "CNRI-Python-GPL-Compatible", - "COIL-1.0", - "CPAL-1.0", - "CPL-1.0", - "CPOL-1.02", - "CUA-OPL-1.0", - "Caldera", - "ClArtistic", - "Community-Spec-1.0", - "Condor-1.1", - "Crossword", - "CrystalStacker", - "Cube", - "D-FSL-1.0", - "DOC", - "DRL-1.0", - "DSDP", - "Dotseqn", - "ECL-1.0", - "ECL-2.0", - "EFL-1.0", - "EFL-2.0", - "EPICS", - "EPL-1.0", - "EPL-2.0", - "EUDatagrid", - "EUPL-1.0", - "EUPL-1.1", - "EUPL-1.2", - "Entessa", - "ErlPL-1.1", - "Eurosym", - "FDK-AAC", - "FSFAP", - "FSFUL", - "FSFULLR", - "FTL", - "Fair", - "Frameworx-1.0", - "FreeBSD-DOC", - "FreeImage", - "GD", - "GFDL-1.1-invariants-only", - "GFDL-1.1-invariants-or-later", - "GFDL-1.1-no-invariants-only", - "GFDL-1.1-no-invariants-or-later", - "GFDL-1.1-only", - "GFDL-1.1-or-later", - "GFDL-1.2-invariants-only", - "GFDL-1.2-invariants-or-later", - "GFDL-1.2-no-invariants-only", - "GFDL-1.2-no-invariants-or-later", - "GFDL-1.2-only", - "GFDL-1.2-or-later", - "GFDL-1.3-invariants-only", - "GFDL-1.3-invariants-or-later", - "GFDL-1.3-no-invariants-only", - "GFDL-1.3-no-invariants-or-later", - "GFDL-1.3-only", - "GFDL-1.3-or-later", - "GL2PS", - "GLWTPL", - "GPL-1.0-only", - "GPL-1.0-or-later", - "GPL-2.0-only", - "GPL-2.0-or-later", - "GPL-3.0-only", - "GPL-3.0-or-later", - "Giftware", - "Glide", - "Glulxe", - "HPND", - "HPND-sell-variant", - "HTMLTIDY", - "HaskellReport", - "Hippocratic-2.1", - "IBM-pibs", - "ICU", - "IJG", - "IPA", - "IPL-1.0", - "ISC", - "ImageMagick", - "Imlib2", - "Info-ZIP", - "Intel", - "Intel-ACPI", - "Interbase-1.0", - "JPNIC", - "JSON", - "JasPer-2.0", - "LAL-1.2", - "LAL-1.3", - "LGPL-2.0-only", - "LGPL-2.0-or-later", - "LGPL-2.1-only", - "LGPL-2.1-or-later", - "LGPL-3.0-only", - "LGPL-3.0-or-later", - "LGPLLR", - "LPL-1.0", - "LPL-1.02", - "LPPL-1.0", - "LPPL-1.1", - "LPPL-1.2", - "LPPL-1.3a", - "LPPL-1.3c", - "Latex2e", - "Leptonica", - "LiLiQ-P-1.1", - "LiLiQ-R-1.1", - "LiLiQ-Rplus-1.1", - "Libpng", - "Linux-OpenIB", - "Linux-man-pages-copyleft", - "MIT", - "MIT-0", - "MIT-CMU", - "MIT-Modern-Variant", - "MIT-advertising", - "MIT-enna", - "MIT-feh", - "MIT-open-group", - "MITNFA", - "MPL-1.0", - "MPL-1.1", - "MPL-2.0", - "MPL-2.0-no-copyleft-exception", - "MS-PL", - "MS-RL", - "MTLL", - "MakeIndex", - "MirOS", - "Motosoto", - "MulanPSL-1.0", - "MulanPSL-2.0", - "Multics", - "Mup", - "NAIST-2003", - "NASA-1.3", - "NBPL-1.0", - "NCGL-UK-2.0", - "NCSA", - "NGPL", - "NIST-PD", - "NIST-PD-fallback", - "NLOD-1.0", - "NLOD-2.0", - "NLPL", - "NOSL", - "NPL-1.0", - "NPL-1.1", - "NPOSL-3.0", - "NRL", - "NTP", - "NTP-0", - "Naumen", - "Net-SNMP", - "NetCDF", - "Newsletr", - "Nokia", - "Noweb", - "O-UDA-1.0", - "OCCT-PL", - "OCLC-2.0", - "ODC-By-1.0", - "ODbL-1.0", - "OFL-1.0", - "OFL-1.0-RFN", - "OFL-1.0-no-RFN", - "OFL-1.1", - "OFL-1.1-RFN", - "OFL-1.1-no-RFN", - "OGC-1.0", - "OGDL-Taiwan-1.0", - "OGL-Canada-2.0", - "OGL-UK-1.0", - "OGL-UK-2.0", - "OGL-UK-3.0", - "OGTSL", - "OLDAP-1.1", - "OLDAP-1.2", - "OLDAP-1.3", - "OLDAP-1.4", - "OLDAP-2.0", - "OLDAP-2.0.1", - "OLDAP-2.1", - "OLDAP-2.2", - "OLDAP-2.2.1", - "OLDAP-2.2.2", - "OLDAP-2.3", - "OLDAP-2.4", - "OLDAP-2.5", - "OLDAP-2.6", - "OLDAP-2.7", - "OLDAP-2.8", - "OML", - "OPL-1.0", - "OPUBL-1.0", - "OSET-PL-2.1", - "OSL-1.0", - "OSL-1.1", - "OSL-2.0", - "OSL-2.1", - "OSL-3.0", - "OpenSSL", - "PDDL-1.0", - "PHP-3.0", - "PHP-3.01", - "PSF-2.0", - "Parity-6.0.0", - "Parity-7.0.0", - "Plexus", - "PolyForm-Noncommercial-1.0.0", - "PolyForm-Small-Business-1.0.0", - "PostgreSQL", - "Python-2.0", - "QPL-1.0", - "Qhull", - "RHeCos-1.1", - "RPL-1.1", - "RPL-1.5", - "RPSL-1.0", - "RSA-MD", - "RSCPL", - "Rdisc", - "Ruby", - "SAX-PD", - "SCEA", - "SGI-B-1.0", - "SGI-B-1.1", - "SGI-B-2.0", - "SHL-0.5", - "SHL-0.51", - "SISSL", - "SISSL-1.2", - "SMLNJ", - "SMPPL", - "SNIA", - "SPL-1.0", - "SSH-OpenSSH", - "SSH-short", - "SSPL-1.0", - "SWL", - "Saxpath", - "Sendmail", - "Sendmail-8.23", - "SimPL-2.0", - "Sleepycat", - "Spencer-86", - "Spencer-94", - "Spencer-99", - "SugarCRM-1.1.3", - "TAPR-OHL-1.0", - "TCL", - "TCP-wrappers", - "TMate", - "TORQUE-1.1", - "TOSL", - "TU-Berlin-1.0", - "TU-Berlin-2.0", - "UCL-1.0", - "UPL-1.0", - "Unicode-DFS-2015", - "Unicode-DFS-2016", - "Unicode-TOU", - "Unlicense", - "VOSTROM", - "VSL-1.0", - "Vim", - "W3C", - "W3C-19980720", - "W3C-20150513", - "WTFPL", - "Watcom-1.0", - "Wsuipa", - "X11", - "XFree86-1.1", - "XSkat", - "Xerox", - "Xnet", - "YPL-1.0", - "YPL-1.1", - "ZPL-1.1", - "ZPL-2.0", - "ZPL-2.1", - "Zed", - "Zend-2.0", - "Zimbra-1.3", - "Zimbra-1.4", - "Zlib", - "blessing", - "bzip2-1.0.5", - "bzip2-1.0.6", - "copyleft-next-0.3.0", - "copyleft-next-0.3.1", - "curl", - "diffmark", - "dvipdfm", - "eGenix", - "etalab-2.0", - "gSOAP-1.3b", - "gnuplot", - "iMatix", - "libpng-2.0", - "libselinux-1.0", - "libtiff", - "mpich2", - "psfrag", - "psutils", - "xinetd", - "xpp", - "zlib-acknowledgement" - ]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-license-ids-npm-3.0.11-a8d9a5ff74-1da1acb090.zip/node_modules/spdx-license-ids/deprecated.json - var require_deprecated = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-license-ids-npm-3.0.11-a8d9a5ff74-1da1acb090.zip/node_modules/spdx-license-ids/deprecated.json"(exports, module) { - module.exports = [ - "AGPL-1.0", - "AGPL-3.0", - "BSD-2-Clause-FreeBSD", - "BSD-2-Clause-NetBSD", - "GFDL-1.1", - "GFDL-1.2", - "GFDL-1.3", - "GPL-1.0", - "GPL-2.0", - "GPL-2.0-with-GCC-exception", - "GPL-2.0-with-autoconf-exception", - "GPL-2.0-with-bison-exception", - "GPL-2.0-with-classpath-exception", - "GPL-2.0-with-font-exception", - "GPL-3.0", - "GPL-3.0-with-GCC-exception", - "GPL-3.0-with-autoconf-exception", - "LGPL-2.0", - "LGPL-2.1", - "LGPL-3.0", - "Nunit", - "StandardML-NJ", - "eCos-2.0", - "wxWindows" - ]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-exceptions-npm-2.3.0-2b68dad75a-cb69a26fa3.zip/node_modules/spdx-exceptions/index.json - var require_spdx_exceptions = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-exceptions-npm-2.3.0-2b68dad75a-cb69a26fa3.zip/node_modules/spdx-exceptions/index.json"(exports, module) { - module.exports = [ - "389-exception", - "Autoconf-exception-2.0", - "Autoconf-exception-3.0", - "Bison-exception-2.2", - "Bootloader-exception", - "Classpath-exception-2.0", - "CLISP-exception-2.0", - "DigiRule-FOSS-exception", - "eCos-exception-2.0", - "Fawkes-Runtime-exception", - "FLTK-exception", - "Font-exception-2.0", - "freertos-exception-2.0", - "GCC-exception-2.0", - "GCC-exception-3.1", - "gnu-javamail-exception", - "GPL-3.0-linking-exception", - "GPL-3.0-linking-source-exception", - "GPL-CC-1.0", - "i2p-gpl-java-exception", - "Libtool-exception", - "Linux-syscall-note", - "LLVM-exception", - "LZMA-exception", - "mif-exception", - "Nokia-Qt-exception-1.1", - "OCaml-LGPL-linking-exception", - "OCCT-exception-1.0", - "OpenJDK-assembly-exception-1.0", - "openvpn-openssl-exception", - "PS-or-PDF-font-exception-20170817", - "Qt-GPL-exception-1.0", - "Qt-LGPL-exception-1.1", - "Qwt-exception-1.0", - "Swift-exception", - "u-boot-exception-2.0", - "Universal-FOSS-exception-1.0", - "WxWindows-exception-3.1" - ]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip/node_modules/spdx-expression-parse/scan.js - var require_scan = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip/node_modules/spdx-expression-parse/scan.js"(exports, module) { - "use strict"; - var licenses = [].concat(require_spdx_license_ids()).concat(require_deprecated()); - var exceptions = require_spdx_exceptions(); - module.exports = function(source) { - var index = 0; - function hasMore() { - return index < source.length; - } - function read(value) { - if (value instanceof RegExp) { - var chars = source.slice(index); - var match = chars.match(value); - if (match) { - index += match[0].length; - return match[0]; - } - } else { - if (source.indexOf(value, index) === index) { - index += value.length; - return value; - } - } - } - function skipWhitespace() { - read(/[ ]*/); - } - function operator() { - var string; - var possibilities = ["WITH", "AND", "OR", "(", ")", ":", "+"]; - for (var i = 0; i < possibilities.length; i++) { - string = read(possibilities[i]); - if (string) { - break; - } - } - if (string === "+" && index > 1 && source[index - 2] === " ") { - throw new Error("Space before `+`"); - } - return string && { - type: "OPERATOR", - string - }; - } - function idstring() { - return read(/[A-Za-z0-9-.]+/); - } - function expectIdstring() { - var string = idstring(); - if (!string) { - throw new Error("Expected idstring at offset " + index); - } - return string; - } - function documentRef() { - if (read("DocumentRef-")) { - var string = expectIdstring(); - return {type: "DOCUMENTREF", string}; - } - } - function licenseRef() { - if (read("LicenseRef-")) { - var string = expectIdstring(); - return {type: "LICENSEREF", string}; - } - } - function identifier() { - var begin = index; - var string = idstring(); - if (licenses.indexOf(string) !== -1) { - return { - type: "LICENSE", - string - }; - } else if (exceptions.indexOf(string) !== -1) { - return { - type: "EXCEPTION", - string - }; - } - index = begin; - } - function parseToken() { - return operator() || documentRef() || licenseRef() || identifier(); - } - var tokens = []; - while (hasMore()) { - skipWhitespace(); - if (!hasMore()) { - break; - } - var token = parseToken(); - if (!token) { - throw new Error("Unexpected `" + source[index] + "` at offset " + index); - } - tokens.push(token); - } - return tokens; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip/node_modules/spdx-expression-parse/parse.js - var require_parse2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip/node_modules/spdx-expression-parse/parse.js"(exports, module) { - "use strict"; - module.exports = function(tokens) { - var index = 0; - function hasMore() { - return index < tokens.length; - } - function token() { - return hasMore() ? tokens[index] : null; - } - function next() { - if (!hasMore()) { - throw new Error(); - } - index++; - } - function parseOperator(operator) { - var t = token(); - if (t && t.type === "OPERATOR" && operator === t.string) { - next(); - return t.string; - } - } - function parseWith() { - if (parseOperator("WITH")) { - var t = token(); - if (t && t.type === "EXCEPTION") { - next(); - return t.string; - } - throw new Error("Expected exception after `WITH`"); - } - } - function parseLicenseRef() { - var begin = index; - var string = ""; - var t = token(); - if (t.type === "DOCUMENTREF") { - next(); - string += "DocumentRef-" + t.string + ":"; - if (!parseOperator(":")) { - throw new Error("Expected `:` after `DocumentRef-...`"); - } - } - t = token(); - if (t.type === "LICENSEREF") { - next(); - string += "LicenseRef-" + t.string; - return {license: string}; - } - index = begin; - } - function parseLicense() { - var t = token(); - if (t && t.type === "LICENSE") { - next(); - var node2 = {license: t.string}; - if (parseOperator("+")) { - node2.plus = true; - } - var exception = parseWith(); - if (exception) { - node2.exception = exception; - } - return node2; - } - } - function parseParenthesizedExpression() { - var left = parseOperator("("); - if (!left) { - return; - } - var expr = parseExpression(); - if (!parseOperator(")")) { - throw new Error("Expected `)`"); - } - return expr; - } - function parseAtom() { - return parseParenthesizedExpression() || parseLicenseRef() || parseLicense(); - } - function makeBinaryOpParser(operator, nextParser) { - return function parseBinaryOp() { - var left = nextParser(); - if (!left) { - return; - } - if (!parseOperator(operator)) { - return left; - } - var right = parseBinaryOp(); - if (!right) { - throw new Error("Expected expression"); - } - return { - left, - conjunction: operator.toLowerCase(), - right - }; - }; - } - var parseAnd = makeBinaryOpParser("AND", parseAtom); - var parseExpression = makeBinaryOpParser("OR", parseAnd); - var node = parseExpression(); - if (!node || hasMore()) { - throw new Error("Syntax error"); - } - return node; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip/node_modules/spdx-expression-parse/index.js - var require_spdx_expression_parse = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip/node_modules/spdx-expression-parse/index.js"(exports, module) { - "use strict"; - var scan = require_scan(); - var parse = require_parse2(); - module.exports = function(source) { - return parse(scan(source)); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-correct-npm-3.1.1-47f574c27a-77ce438344.zip/node_modules/spdx-correct/index.js - var require_spdx_correct = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-correct-npm-3.1.1-47f574c27a-77ce438344.zip/node_modules/spdx-correct/index.js"(exports, module) { - var parse = require_spdx_expression_parse(); - var spdxLicenseIds = require_spdx_license_ids(); - function valid(string) { - try { - parse(string); - return true; - } catch (error) { - return false; - } - } - var transpositions = [ - ["APGL", "AGPL"], - ["Gpl", "GPL"], - ["GLP", "GPL"], - ["APL", "Apache"], - ["ISD", "ISC"], - ["GLP", "GPL"], - ["IST", "ISC"], - ["Claude", "Clause"], - [" or later", "+"], - [" International", ""], - ["GNU", "GPL"], - ["GUN", "GPL"], - ["+", ""], - ["GNU GPL", "GPL"], - ["GNU/GPL", "GPL"], - ["GNU GLP", "GPL"], - ["GNU General Public License", "GPL"], - ["Gnu public license", "GPL"], - ["GNU Public License", "GPL"], - ["GNU GENERAL PUBLIC LICENSE", "GPL"], - ["MTI", "MIT"], - ["Mozilla Public License", "MPL"], - ["Universal Permissive License", "UPL"], - ["WTH", "WTF"], - ["-License", ""] - ]; - var TRANSPOSED = 0; - var CORRECT = 1; - var transforms = [ - function(argument) { - return argument.toUpperCase(); - }, - function(argument) { - return argument.trim(); - }, - function(argument) { - return argument.replace(/\./g, ""); - }, - function(argument) { - return argument.replace(/\s+/g, ""); - }, - function(argument) { - return argument.replace(/\s+/g, "-"); - }, - function(argument) { - return argument.replace("v", "-"); - }, - function(argument) { - return argument.replace(/,?\s*(\d)/, "-$1"); - }, - function(argument) { - return argument.replace(/,?\s*(\d)/, "-$1.0"); - }, - function(argument) { - return argument.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, "-$2"); - }, - function(argument) { - return argument.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, "-$2.0"); - }, - function(argument) { - return argument[0].toUpperCase() + argument.slice(1); - }, - function(argument) { - return argument.replace("/", "-"); - }, - function(argument) { - return argument.replace(/\s*V\s*(\d)/, "-$1").replace(/(\d)$/, "$1.0"); - }, - function(argument) { - if (argument.indexOf("3.0") !== -1) { - return argument + "-or-later"; - } else { - return argument + "-only"; - } - }, - function(argument) { - return argument + "only"; - }, - function(argument) { - return argument.replace(/(\d)$/, "-$1.0"); - }, - function(argument) { - return argument.replace(/(-| )?(\d)$/, "-$2-Clause"); - }, - function(argument) { - return argument.replace(/(-| )clause(-| )(\d)/, "-$3-Clause"); - }, - function(argument) { - return argument.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i, "BSD-3-Clause"); - }, - function(argument) { - return argument.replace(/\bSimplified(-| )?BSD((-| )License)?/i, "BSD-2-Clause"); - }, - function(argument) { - return argument.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i, "BSD-2-Clause-$1BSD"); - }, - function(argument) { - return argument.replace(/\bClear(-| )?BSD((-| )License)?/i, "BSD-3-Clause-Clear"); - }, - function(argument) { - return argument.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i, "BSD-4-Clause"); - }, - function(argument) { - return "CC-" + argument; - }, - function(argument) { - return "CC-" + argument + "-4.0"; - }, - function(argument) { - return argument.replace("Attribution", "BY").replace("NonCommercial", "NC").replace("NoDerivatives", "ND").replace(/ (\d)/, "-$1").replace(/ ?International/, ""); - }, - function(argument) { - return "CC-" + argument.replace("Attribution", "BY").replace("NonCommercial", "NC").replace("NoDerivatives", "ND").replace(/ (\d)/, "-$1").replace(/ ?International/, "") + "-4.0"; - } - ]; - var licensesWithVersions = spdxLicenseIds.map(function(id) { - var match = /^(.*)-\d+\.\d+$/.exec(id); - return match ? [match[0], match[1]] : [id, null]; - }).reduce(function(objectMap, item) { - var key = item[1]; - objectMap[key] = objectMap[key] || []; - objectMap[key].push(item[0]); - return objectMap; - }, {}); - var licensesWithOneVersion = Object.keys(licensesWithVersions).map(function makeEntries(key) { - return [key, licensesWithVersions[key]]; - }).filter(function identifySoleVersions(item) { - return item[1].length === 1 && item[0] !== null && item[0] !== "APL"; - }).map(function createLastResorts(item) { - return [item[0], item[1][0]]; - }); - licensesWithVersions = void 0; - var lastResorts = [ - ["UNLI", "Unlicense"], - ["WTF", "WTFPL"], - ["2 CLAUSE", "BSD-2-Clause"], - ["2-CLAUSE", "BSD-2-Clause"], - ["3 CLAUSE", "BSD-3-Clause"], - ["3-CLAUSE", "BSD-3-Clause"], - ["AFFERO", "AGPL-3.0-or-later"], - ["AGPL", "AGPL-3.0-or-later"], - ["APACHE", "Apache-2.0"], - ["ARTISTIC", "Artistic-2.0"], - ["Affero", "AGPL-3.0-or-later"], - ["BEER", "Beerware"], - ["BOOST", "BSL-1.0"], - ["BSD", "BSD-2-Clause"], - ["CDDL", "CDDL-1.1"], - ["ECLIPSE", "EPL-1.0"], - ["FUCK", "WTFPL"], - ["GNU", "GPL-3.0-or-later"], - ["LGPL", "LGPL-3.0-or-later"], - ["GPLV1", "GPL-1.0-only"], - ["GPL-1", "GPL-1.0-only"], - ["GPLV2", "GPL-2.0-only"], - ["GPL-2", "GPL-2.0-only"], - ["GPL", "GPL-3.0-or-later"], - ["MIT +NO-FALSE-ATTRIBS", "MITNFA"], - ["MIT", "MIT"], - ["MPL", "MPL-2.0"], - ["X11", "X11"], - ["ZLIB", "Zlib"] - ].concat(licensesWithOneVersion); - var SUBSTRING = 0; - var IDENTIFIER = 1; - var validTransformation = function(identifier) { - for (var i = 0; i < transforms.length; i++) { - var transformed = transforms[i](identifier).trim(); - if (transformed !== identifier && valid(transformed)) { - return transformed; - } - } - return null; - }; - var validLastResort = function(identifier) { - var upperCased = identifier.toUpperCase(); - for (var i = 0; i < lastResorts.length; i++) { - var lastResort = lastResorts[i]; - if (upperCased.indexOf(lastResort[SUBSTRING]) > -1) { - return lastResort[IDENTIFIER]; - } - } - return null; - }; - var anyCorrection = function(identifier, check) { - for (var i = 0; i < transpositions.length; i++) { - var transposition = transpositions[i]; - var transposed = transposition[TRANSPOSED]; - if (identifier.indexOf(transposed) > -1) { - var corrected = identifier.replace(transposed, transposition[CORRECT]); - var checked = check(corrected); - if (checked !== null) { - return checked; - } - } - } - return null; - }; - module.exports = function(identifier, options) { - options = options || {}; - var upgrade = options.upgrade === void 0 ? true : !!options.upgrade; - function postprocess(value) { - return upgrade ? upgradeGPLs(value) : value; - } - var validArugment = typeof identifier === "string" && identifier.trim().length !== 0; - if (!validArugment) { - throw Error("Invalid argument. Expected non-empty string."); - } - identifier = identifier.trim(); - if (valid(identifier)) { - return postprocess(identifier); - } - var noPlus = identifier.replace(/\+$/, "").trim(); - if (valid(noPlus)) { - return postprocess(noPlus); - } - var transformed = validTransformation(identifier); - if (transformed !== null) { - return postprocess(transformed); - } - transformed = anyCorrection(identifier, function(argument) { - if (valid(argument)) { - return argument; - } - return validTransformation(argument); - }); - if (transformed !== null) { - return postprocess(transformed); - } - transformed = validLastResort(identifier); - if (transformed !== null) { - return postprocess(transformed); - } - transformed = anyCorrection(identifier, validLastResort); - if (transformed !== null) { - return postprocess(transformed); - } - return null; - }; - function upgradeGPLs(value) { - if ([ - "GPL-1.0", - "LGPL-1.0", - "AGPL-1.0", - "GPL-2.0", - "LGPL-2.0", - "AGPL-2.0", - "LGPL-2.1" - ].indexOf(value) !== -1) { - return value + "-only"; - } else if ([ - "GPL-1.0+", - "GPL-2.0+", - "GPL-3.0+", - "LGPL-2.0+", - "LGPL-2.1+", - "LGPL-3.0+", - "AGPL-1.0+", - "AGPL-3.0+" - ].indexOf(value) !== -1) { - return value.replace(/\+$/, "-or-later"); - } else if (["GPL-3.0", "LGPL-3.0", "AGPL-3.0"].indexOf(value) !== -1) { - return value + "-or-later"; - } else { - return value; - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/validate-npm-package-license-npm-3.0.4-7af8adc7a8-35703ac889.zip/node_modules/validate-npm-package-license/index.js - var require_validate_npm_package_license = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/validate-npm-package-license-npm-3.0.4-7af8adc7a8-35703ac889.zip/node_modules/validate-npm-package-license/index.js"(exports, module) { - var parse = require_spdx_expression_parse(); - var correct = require_spdx_correct(); - var genericWarning = 'license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN "'; - var fileReferenceRE = /^SEE LICEN[CS]E IN (.+)$/; - function startsWith(prefix, string) { - return string.slice(0, prefix.length) === prefix; - } - function usesLicenseRef(ast) { - if (ast.hasOwnProperty("license")) { - var license = ast.license; - return startsWith("LicenseRef", license) || startsWith("DocumentRef", license); - } else { - return usesLicenseRef(ast.left) || usesLicenseRef(ast.right); - } - } - module.exports = function(argument) { - var ast; - try { - ast = parse(argument); - } catch (e) { - var match; - if (argument === "UNLICENSED" || argument === "UNLICENCED") { - return { - validForOldPackages: true, - validForNewPackages: true, - unlicensed: true - }; - } else if (match = fileReferenceRE.exec(argument)) { - return { - validForOldPackages: true, - validForNewPackages: true, - inFile: match[1] - }; - } else { - var result = { - validForOldPackages: false, - validForNewPackages: false, - warnings: [genericWarning] - }; - if (argument.trim().length !== 0) { - var corrected = correct(argument); - if (corrected) { - result.warnings.push('license is similar to the valid expression "' + corrected + '"'); - } - } - return result; - } - } - if (usesLicenseRef(ast)) { - return { - validForNewPackages: false, - validForOldPackages: false, - spdx: true, - warnings: [genericWarning] - }; - } else { - return { - validForNewPackages: true, - validForOldPackages: true, - spdx: true - }; - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip/node_modules/function-bind/implementation.js - var require_implementation = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip/node_modules/function-bind/implementation.js"(exports, module) { - "use strict"; - var ERROR_MESSAGE = "Function.prototype.bind called on incompatible "; - var slice = Array.prototype.slice; - var toStr = Object.prototype.toString; - var funcType = "[object Function]"; - module.exports = function bind(that) { - var target = this; - if (typeof target !== "function" || toStr.call(target) !== funcType) { - throw new TypeError(ERROR_MESSAGE + target); - } - var args = slice.call(arguments, 1); - var bound; - var binder = function() { - if (this instanceof bound) { - var result = target.apply(this, args.concat(slice.call(arguments))); - if (Object(result) === result) { - return result; - } - return this; - } else { - return target.apply(that, args.concat(slice.call(arguments))); - } - }; - var boundLength = Math.max(0, target.length - args.length); - var boundArgs = []; - for (var i = 0; i < boundLength; i++) { - boundArgs.push("$" + i); - } - bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder); - if (target.prototype) { - var Empty = function Empty2() { - }; - Empty.prototype = target.prototype; - bound.prototype = new Empty(); - Empty.prototype = null; - } - return bound; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip/node_modules/function-bind/index.js - var require_function_bind = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip/node_modules/function-bind/index.js"(exports, module) { - "use strict"; - var implementation = require_implementation(); - module.exports = Function.prototype.bind || implementation; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip/node_modules/has/src/index.js - var require_src4 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip/node_modules/has/src/index.js"(exports, module) { - "use strict"; - var bind = require_function_bind(); - module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/is-core-module-npm-2.8.1-ce21740d1b-418b7bc107.zip/node_modules/is-core-module/core.json - var require_core = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/is-core-module-npm-2.8.1-ce21740d1b-418b7bc107.zip/node_modules/is-core-module/core.json"(exports, module) { - module.exports = { - assert: true, - "node:assert": [">= 14.18 && < 15", ">= 16"], - "assert/strict": ">= 15", - "node:assert/strict": ">= 16", - async_hooks: ">= 8", - "node:async_hooks": [">= 14.18 && < 15", ">= 16"], - buffer_ieee754: ">= 0.5 && < 0.9.7", - buffer: true, - "node:buffer": [">= 14.18 && < 15", ">= 16"], - child_process: true, - "node:child_process": [">= 14.18 && < 15", ">= 16"], - cluster: ">= 0.5", - "node:cluster": [">= 14.18 && < 15", ">= 16"], - console: true, - "node:console": [">= 14.18 && < 15", ">= 16"], - constants: true, - "node:constants": [">= 14.18 && < 15", ">= 16"], - crypto: true, - "node:crypto": [">= 14.18 && < 15", ">= 16"], - _debug_agent: ">= 1 && < 8", - _debugger: "< 8", - dgram: true, - "node:dgram": [">= 14.18 && < 15", ">= 16"], - diagnostics_channel: [">= 14.17 && < 15", ">= 15.1"], - "node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"], - dns: true, - "node:dns": [">= 14.18 && < 15", ">= 16"], - "dns/promises": ">= 15", - "node:dns/promises": ">= 16", - domain: ">= 0.7.12", - "node:domain": [">= 14.18 && < 15", ">= 16"], - events: true, - "node:events": [">= 14.18 && < 15", ">= 16"], - freelist: "< 6", - fs: true, - "node:fs": [">= 14.18 && < 15", ">= 16"], - "fs/promises": [">= 10 && < 10.1", ">= 14"], - "node:fs/promises": [">= 14.18 && < 15", ">= 16"], - _http_agent: ">= 0.11.1", - "node:_http_agent": [">= 14.18 && < 15", ">= 16"], - _http_client: ">= 0.11.1", - "node:_http_client": [">= 14.18 && < 15", ">= 16"], - _http_common: ">= 0.11.1", - "node:_http_common": [">= 14.18 && < 15", ">= 16"], - _http_incoming: ">= 0.11.1", - "node:_http_incoming": [">= 14.18 && < 15", ">= 16"], - _http_outgoing: ">= 0.11.1", - "node:_http_outgoing": [">= 14.18 && < 15", ">= 16"], - _http_server: ">= 0.11.1", - "node:_http_server": [">= 14.18 && < 15", ">= 16"], - http: true, - "node:http": [">= 14.18 && < 15", ">= 16"], - http2: ">= 8.8", - "node:http2": [">= 14.18 && < 15", ">= 16"], - https: true, - "node:https": [">= 14.18 && < 15", ">= 16"], - inspector: ">= 8", - "node:inspector": [">= 14.18 && < 15", ">= 16"], - _linklist: "< 8", - module: true, - "node:module": [">= 14.18 && < 15", ">= 16"], - net: true, - "node:net": [">= 14.18 && < 15", ">= 16"], - "node-inspect/lib/_inspect": ">= 7.6 && < 12", - "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12", - "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12", - os: true, - "node:os": [">= 14.18 && < 15", ">= 16"], - path: true, - "node:path": [">= 14.18 && < 15", ">= 16"], - "path/posix": ">= 15.3", - "node:path/posix": ">= 16", - "path/win32": ">= 15.3", - "node:path/win32": ">= 16", - perf_hooks: ">= 8.5", - "node:perf_hooks": [">= 14.18 && < 15", ">= 16"], - process: ">= 1", - "node:process": [">= 14.18 && < 15", ">= 16"], - punycode: ">= 0.5", - "node:punycode": [">= 14.18 && < 15", ">= 16"], - querystring: true, - "node:querystring": [">= 14.18 && < 15", ">= 16"], - readline: true, - "node:readline": [">= 14.18 && < 15", ">= 16"], - "readline/promises": ">= 17", - "node:readline/promises": ">= 17", - repl: true, - "node:repl": [">= 14.18 && < 15", ">= 16"], - smalloc: ">= 0.11.5 && < 3", - _stream_duplex: ">= 0.9.4", - "node:_stream_duplex": [">= 14.18 && < 15", ">= 16"], - _stream_transform: ">= 0.9.4", - "node:_stream_transform": [">= 14.18 && < 15", ">= 16"], - _stream_wrap: ">= 1.4.1", - "node:_stream_wrap": [">= 14.18 && < 15", ">= 16"], - _stream_passthrough: ">= 0.9.4", - "node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"], - _stream_readable: ">= 0.9.4", - "node:_stream_readable": [">= 14.18 && < 15", ">= 16"], - _stream_writable: ">= 0.9.4", - "node:_stream_writable": [">= 14.18 && < 15", ">= 16"], - stream: true, - "node:stream": [">= 14.18 && < 15", ">= 16"], - "stream/consumers": ">= 16.7", - "node:stream/consumers": ">= 16.7", - "stream/promises": ">= 15", - "node:stream/promises": ">= 16", - "stream/web": ">= 16.5", - "node:stream/web": ">= 16.5", - string_decoder: true, - "node:string_decoder": [">= 14.18 && < 15", ">= 16"], - sys: [">= 0.4 && < 0.7", ">= 0.8"], - "node:sys": [">= 14.18 && < 15", ">= 16"], - timers: true, - "node:timers": [">= 14.18 && < 15", ">= 16"], - "timers/promises": ">= 15", - "node:timers/promises": ">= 16", - _tls_common: ">= 0.11.13", - "node:_tls_common": [">= 14.18 && < 15", ">= 16"], - _tls_legacy: ">= 0.11.3 && < 10", - _tls_wrap: ">= 0.11.3", - "node:_tls_wrap": [">= 14.18 && < 15", ">= 16"], - tls: true, - "node:tls": [">= 14.18 && < 15", ">= 16"], - trace_events: ">= 10", - "node:trace_events": [">= 14.18 && < 15", ">= 16"], - tty: true, - "node:tty": [">= 14.18 && < 15", ">= 16"], - url: true, - "node:url": [">= 14.18 && < 15", ">= 16"], - util: true, - "node:util": [">= 14.18 && < 15", ">= 16"], - "util/types": ">= 15.3", - "node:util/types": ">= 16", - "v8/tools/arguments": ">= 10 && < 12", - "v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"], - v8: ">= 1", - "node:v8": [">= 14.18 && < 15", ">= 16"], - vm: true, - "node:vm": [">= 14.18 && < 15", ">= 16"], - wasi: ">= 13.4 && < 13.5", - worker_threads: ">= 11.7", - "node:worker_threads": [">= 14.18 && < 15", ">= 16"], - zlib: ">= 0.5", - "node:zlib": [">= 14.18 && < 15", ">= 16"] - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/is-core-module-npm-2.8.1-ce21740d1b-418b7bc107.zip/node_modules/is-core-module/index.js - var require_is_core_module = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/is-core-module-npm-2.8.1-ce21740d1b-418b7bc107.zip/node_modules/is-core-module/index.js"(exports, module) { - "use strict"; - var has = require_src4(); - function specifierIncluded(current, specifier) { - var nodeParts = current.split("."); - var parts = specifier.split(" "); - var op = parts.length > 1 ? parts[0] : "="; - var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split("."); - for (var i = 0; i < 3; ++i) { - var cur = parseInt(nodeParts[i] || 0, 10); - var ver = parseInt(versionParts[i] || 0, 10); - if (cur === ver) { - continue; - } - if (op === "<") { - return cur < ver; - } - if (op === ">=") { - return cur >= ver; - } - return false; - } - return op === ">="; - } - function matchesRange(current, range) { - var specifiers = range.split(/ ?&& ?/); - if (specifiers.length === 0) { - return false; - } - for (var i = 0; i < specifiers.length; ++i) { - if (!specifierIncluded(current, specifiers[i])) { - return false; - } - } - return true; - } - function versionIncluded(nodeVersion, specifierValue) { - if (typeof specifierValue === "boolean") { - return specifierValue; - } - var current = typeof nodeVersion === "undefined" ? process.versions && process.versions.node : nodeVersion; - if (typeof current !== "string") { - throw new TypeError(typeof nodeVersion === "undefined" ? "Unable to determine current node version" : "If provided, a valid node version is required"); - } - if (specifierValue && typeof specifierValue === "object") { - for (var i = 0; i < specifierValue.length; ++i) { - if (matchesRange(current, specifierValue[i])) { - return true; - } - } - return false; - } - return matchesRange(current, specifierValue); - } - var data = require_core(); - module.exports = function isCore(x, nodeVersion) { - return has(data, x) && versionIncluded(nodeVersion, data[x]); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/extract_description.js - var require_extract_description = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/extract_description.js"(exports, module) { - module.exports = extractDescription; - function extractDescription(d) { - if (!d) { - return; - } - if (d === "ERROR: No README data found!") { - return; - } - d = d.trim().split("\n"); - for (var s = 0; d[s] && d[s].trim().match(/^(#|$)/); s++) { - ; - } - var l = d.length; - for (var e = s + 1; e < l && d[e].trim(); e++) { - ; - } - return d.slice(s, e).join(" ").trim(); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/typos.json - var require_typos = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/typos.json"(exports, module) { - module.exports = { - topLevel: { - dependancies: "dependencies", - dependecies: "dependencies", - depdenencies: "dependencies", - devEependencies: "devDependencies", - depends: "dependencies", - "dev-dependencies": "devDependencies", - devDependences: "devDependencies", - devDepenencies: "devDependencies", - devdependencies: "devDependencies", - repostitory: "repository", - repo: "repository", - prefereGlobal: "preferGlobal", - hompage: "homepage", - hampage: "homepage", - autohr: "author", - autor: "author", - contributers: "contributors", - publicationConfig: "publishConfig", - script: "scripts" - }, - bugs: {web: "url", name: "url"}, - script: {server: "start", tests: "test"} - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/fixer.js - var require_fixer = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/fixer.js"(exports, module) { - var isValidSemver = require_valid(); - var cleanSemver = require_clean(); - var validateLicense = require_validate_npm_package_license(); - var hostedGitInfo = require_hosted_git_info(); - var isBuiltinModule = require_is_core_module(); - var depTypes = ["dependencies", "devDependencies", "optionalDependencies"]; - var extractDescription = require_extract_description(); - var url = __require("url"); - var typos = require_typos(); - module.exports = { - warn: function() { - }, - fixRepositoryField: function(data) { - if (data.repositories) { - this.warn("repositories"); - data.repository = data.repositories[0]; - } - if (!data.repository) { - return this.warn("missingRepository"); - } - if (typeof data.repository === "string") { - data.repository = { - type: "git", - url: data.repository - }; - } - var r = data.repository.url || ""; - if (r) { - var hosted = hostedGitInfo.fromUrl(r); - if (hosted) { - r = data.repository.url = hosted.getDefaultRepresentation() === "shortcut" ? hosted.https() : hosted.toString(); - } - } - if (r.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)) { - this.warn("brokenGitUrl", r); - } - }, - fixTypos: function(data) { - Object.keys(typos.topLevel).forEach(function(d) { - if (Object.prototype.hasOwnProperty.call(data, d)) { - this.warn("typo", d, typos.topLevel[d]); - } - }, this); - }, - fixScriptsField: function(data) { - if (!data.scripts) { - return; - } - if (typeof data.scripts !== "object") { - this.warn("nonObjectScripts"); - delete data.scripts; - return; - } - Object.keys(data.scripts).forEach(function(k) { - if (typeof data.scripts[k] !== "string") { - this.warn("nonStringScript"); - delete data.scripts[k]; - } else if (typos.script[k] && !data.scripts[typos.script[k]]) { - this.warn("typo", k, typos.script[k], "scripts"); - } - }, this); - }, - fixFilesField: function(data) { - var files = data.files; - if (files && !Array.isArray(files)) { - this.warn("nonArrayFiles"); - delete data.files; - } else if (data.files) { - data.files = data.files.filter(function(file) { - if (!file || typeof file !== "string") { - this.warn("invalidFilename", file); - return false; - } else { - return true; - } - }, this); - } - }, - fixBinField: function(data) { - if (!data.bin) { - return; - } - if (typeof data.bin === "string") { - var b = {}; - var match; - if (match = data.name.match(/^@[^/]+[/](.*)$/)) { - b[match[1]] = data.bin; - } else { - b[data.name] = data.bin; - } - data.bin = b; - } - }, - fixManField: function(data) { - if (!data.man) { - return; - } - if (typeof data.man === "string") { - data.man = [data.man]; - } - }, - fixBundleDependenciesField: function(data) { - var bdd = "bundledDependencies"; - var bd = "bundleDependencies"; - if (data[bdd] && !data[bd]) { - data[bd] = data[bdd]; - delete data[bdd]; - } - if (data[bd] && !Array.isArray(data[bd])) { - this.warn("nonArrayBundleDependencies"); - delete data[bd]; - } else if (data[bd]) { - data[bd] = data[bd].filter(function(bd2) { - if (!bd2 || typeof bd2 !== "string") { - this.warn("nonStringBundleDependency", bd2); - return false; - } else { - if (!data.dependencies) { - data.dependencies = {}; - } - if (Object.prototype.hasOwnProperty.call(data.dependencies, bd2)) { - this.warn("nonDependencyBundleDependency", bd2); - data.dependencies[bd2] = "*"; - } - return true; - } - }, this); - } - }, - fixDependencies: function(data, strict) { - objectifyDeps(data, this.warn); - addOptionalDepsToDeps(data, this.warn); - this.fixBundleDependenciesField(data); - ["dependencies", "devDependencies"].forEach(function(deps) { - if (!(deps in data)) { - return; - } - if (!data[deps] || typeof data[deps] !== "object") { - this.warn("nonObjectDependencies", deps); - delete data[deps]; - return; - } - Object.keys(data[deps]).forEach(function(d) { - var r = data[deps][d]; - if (typeof r !== "string") { - this.warn("nonStringDependency", d, JSON.stringify(r)); - delete data[deps][d]; - } - var hosted = hostedGitInfo.fromUrl(data[deps][d]); - if (hosted) { - data[deps][d] = hosted.toString(); - } - }, this); - }, this); - }, - fixModulesField: function(data) { - if (data.modules) { - this.warn("deprecatedModules"); - delete data.modules; - } - }, - fixKeywordsField: function(data) { - if (typeof data.keywords === "string") { - data.keywords = data.keywords.split(/,\s+/); - } - if (data.keywords && !Array.isArray(data.keywords)) { - delete data.keywords; - this.warn("nonArrayKeywords"); - } else if (data.keywords) { - data.keywords = data.keywords.filter(function(kw) { - if (typeof kw !== "string" || !kw) { - this.warn("nonStringKeyword"); - return false; - } else { - return true; - } - }, this); - } - }, - fixVersionField: function(data, strict) { - var loose = !strict; - if (!data.version) { - data.version = ""; - return true; - } - if (!isValidSemver(data.version, loose)) { - throw new Error('Invalid version: "' + data.version + '"'); - } - data.version = cleanSemver(data.version, loose); - return true; - }, - fixPeople: function(data) { - modifyPeople(data, unParsePerson); - modifyPeople(data, parsePerson); - }, - fixNameField: function(data, options) { - if (typeof options === "boolean") { - options = {strict: options}; - } else if (typeof options === "undefined") { - options = {}; - } - var strict = options.strict; - if (!data.name && !strict) { - data.name = ""; - return; - } - if (typeof data.name !== "string") { - throw new Error("name field must be a string."); - } - if (!strict) { - data.name = data.name.trim(); - } - ensureValidName(data.name, strict, options.allowLegacyCase); - if (isBuiltinModule(data.name)) { - this.warn("conflictingName", data.name); - } - }, - fixDescriptionField: function(data) { - if (data.description && typeof data.description !== "string") { - this.warn("nonStringDescription"); - delete data.description; - } - if (data.readme && !data.description) { - data.description = extractDescription(data.readme); - } - if (data.description === void 0) { - delete data.description; - } - if (!data.description) { - this.warn("missingDescription"); - } - }, - fixReadmeField: function(data) { - if (!data.readme) { - this.warn("missingReadme"); - data.readme = "ERROR: No README data found!"; - } - }, - fixBugsField: function(data) { - if (!data.bugs && data.repository && data.repository.url) { - var hosted = hostedGitInfo.fromUrl(data.repository.url); - if (hosted && hosted.bugs()) { - data.bugs = {url: hosted.bugs()}; - } - } else if (data.bugs) { - var emailRe = /^.+@.*\..+$/; - if (typeof data.bugs === "string") { - if (emailRe.test(data.bugs)) { - data.bugs = {email: data.bugs}; - } else if (url.parse(data.bugs).protocol) { - data.bugs = {url: data.bugs}; - } else { - this.warn("nonEmailUrlBugsString"); - } - } else { - bugsTypos(data.bugs, this.warn); - var oldBugs = data.bugs; - data.bugs = {}; - if (oldBugs.url) { - if (typeof oldBugs.url === "string" && url.parse(oldBugs.url).protocol) { - data.bugs.url = oldBugs.url; - } else { - this.warn("nonUrlBugsUrlField"); - } - } - if (oldBugs.email) { - if (typeof oldBugs.email === "string" && emailRe.test(oldBugs.email)) { - data.bugs.email = oldBugs.email; - } else { - this.warn("nonEmailBugsEmailField"); - } - } - } - if (!data.bugs.email && !data.bugs.url) { - delete data.bugs; - this.warn("emptyNormalizedBugs"); - } - } - }, - fixHomepageField: function(data) { - if (!data.homepage && data.repository && data.repository.url) { - var hosted = hostedGitInfo.fromUrl(data.repository.url); - if (hosted && hosted.docs()) { - data.homepage = hosted.docs(); - } - } - if (!data.homepage) { - return; - } - if (typeof data.homepage !== "string") { - this.warn("nonUrlHomepage"); - return delete data.homepage; - } - if (!url.parse(data.homepage).protocol) { - data.homepage = "http://" + data.homepage; - } - }, - fixLicenseField: function(data) { - const license = data.license || data.licence; - if (!license) { - return this.warn("missingLicense"); - } - if (typeof license !== "string" || license.length < 1 || license.trim() === "") { - return this.warn("invalidLicense"); - } - if (!validateLicense(license).validForNewPackages) { - return this.warn("invalidLicense"); - } - } - }; - function isValidScopedPackageName(spec) { - if (spec.charAt(0) !== "@") { - return false; - } - var rest = spec.slice(1).split("/"); - if (rest.length !== 2) { - return false; - } - return rest[0] && rest[1] && rest[0] === encodeURIComponent(rest[0]) && rest[1] === encodeURIComponent(rest[1]); - } - function isCorrectlyEncodedName(spec) { - return !spec.match(/[/@\s+%:]/) && spec === encodeURIComponent(spec); - } - function ensureValidName(name, strict, allowLegacyCase) { - if (name.charAt(0) === "." || !(isValidScopedPackageName(name) || isCorrectlyEncodedName(name)) || strict && !allowLegacyCase && name !== name.toLowerCase() || name.toLowerCase() === "node_modules" || name.toLowerCase() === "favicon.ico") { - throw new Error("Invalid name: " + JSON.stringify(name)); - } - } - function modifyPeople(data, fn) { - if (data.author) { - data.author = fn(data.author); - } - ["maintainers", "contributors"].forEach(function(set) { - if (!Array.isArray(data[set])) { - return; - } - data[set] = data[set].map(fn); - }); - return data; - } - function unParsePerson(person) { - if (typeof person === "string") { - return person; - } - var name = person.name || ""; - var u = person.url || person.web; - var url2 = u ? " (" + u + ")" : ""; - var e = person.email || person.mail; - var email = e ? " <" + e + ">" : ""; - return name + email + url2; - } - function parsePerson(person) { - if (typeof person !== "string") { - return person; - } - var name = person.match(/^([^(<]+)/); - var url2 = person.match(/\(([^)]+)\)/); - var email = person.match(/<([^>]+)>/); - var obj = {}; - if (name && name[0].trim()) { - obj.name = name[0].trim(); - } - if (email) { - obj.email = email[1]; - } - if (url2) { - obj.url = url2[1]; - } - return obj; - } - function addOptionalDepsToDeps(data, warn) { - var o = data.optionalDependencies; - if (!o) { - return; - } - var d = data.dependencies || {}; - Object.keys(o).forEach(function(k) { - d[k] = o[k]; - }); - data.dependencies = d; - } - function depObjectify(deps, type, warn) { - if (!deps) { - return {}; - } - if (typeof deps === "string") { - deps = deps.trim().split(/[\n\r\s\t ,]+/); - } - if (!Array.isArray(deps)) { - return deps; - } - warn("deprecatedArrayDependencies", type); - var o = {}; - deps.filter(function(d) { - return typeof d === "string"; - }).forEach(function(d) { - d = d.trim().split(/(:?[@\s><=])/); - var dn = d.shift(); - var dv = d.join(""); - dv = dv.trim(); - dv = dv.replace(/^@/, ""); - o[dn] = dv; - }); - return o; - } - function objectifyDeps(data, warn) { - depTypes.forEach(function(type) { - if (!data[type]) { - return; - } - data[type] = depObjectify(data[type], type, warn); - }); - } - function bugsTypos(bugs, warn) { - if (!bugs) { - return; - } - Object.keys(bugs).forEach(function(k) { - if (typos.bugs[k]) { - warn("typo", k, typos.bugs[k], "bugs"); - bugs[typos.bugs[k]] = bugs[k]; - delete bugs[k]; - } - }); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/warning_messages.json - var require_warning_messages = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/warning_messages.json"(exports, module) { - module.exports = { - repositories: "'repositories' (plural) Not supported. Please pick one as the 'repository' field", - missingRepository: "No repository field.", - brokenGitUrl: "Probably broken git url: %s", - nonObjectScripts: "scripts must be an object", - nonStringScript: "script values must be string commands", - nonArrayFiles: "Invalid 'files' member", - invalidFilename: "Invalid filename in 'files' list: %s", - nonArrayBundleDependencies: "Invalid 'bundleDependencies' list. Must be array of package names", - nonStringBundleDependency: "Invalid bundleDependencies member: %s", - nonDependencyBundleDependency: "Non-dependency in bundleDependencies: %s", - nonObjectDependencies: "%s field must be an object", - nonStringDependency: "Invalid dependency: %s %s", - deprecatedArrayDependencies: "specifying %s as array is deprecated", - deprecatedModules: "modules field is deprecated", - nonArrayKeywords: "keywords should be an array of strings", - nonStringKeyword: "keywords should be an array of strings", - conflictingName: "%s is also the name of a node core module.", - nonStringDescription: "'description' field should be a string", - missingDescription: "No description", - missingReadme: "No README data", - missingLicense: "No license field.", - nonEmailUrlBugsString: "Bug string field must be url, email, or {email,url}", - nonUrlBugsUrlField: "bugs.url field must be a string url. Deleted.", - nonEmailBugsEmailField: "bugs.email field must be a string email. Deleted.", - emptyNormalizedBugs: "Normalized value of bugs field is an empty object. Deleted.", - nonUrlHomepage: "homepage field must be a string url. Deleted.", - invalidLicense: "license should be a valid SPDX license expression", - typo: "%s should probably be %s." - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/make_warning.js - var require_make_warning = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/make_warning.js"(exports, module) { - var util = __require("util"); - var messages = require_warning_messages(); - module.exports = function() { - var args = Array.prototype.slice.call(arguments, 0); - var warningName = args.shift(); - if (warningName === "typo") { - return makeTypoWarning.apply(null, args); - } else { - var msgTemplate = messages[warningName] ? messages[warningName] : warningName + ": '%s'"; - args.unshift(msgTemplate); - return util.format.apply(null, args); - } - }; - function makeTypoWarning(providedName, probableName, field) { - if (field) { - providedName = field + "['" + providedName + "']"; - probableName = field + "['" + probableName + "']"; - } - return util.format(messages.typo, providedName, probableName); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/normalize.js - var require_normalize = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/normalize.js"(exports, module) { - module.exports = normalize; - var fixer = require_fixer(); - normalize.fixer = fixer; - var makeWarning = require_make_warning(); - var fieldsToFix = [ - "name", - "version", - "description", - "repository", - "modules", - "scripts", - "files", - "bin", - "man", - "bugs", - "keywords", - "readme", - "homepage", - "license" - ]; - var otherThingsToFix = ["dependencies", "people", "typos"]; - var thingsToFix = fieldsToFix.map(function(fieldName) { - return ucFirst(fieldName) + "Field"; - }); - thingsToFix = thingsToFix.concat(otherThingsToFix); - function normalize(data, warn, strict) { - if (warn === true) { - warn = null; - strict = true; - } - if (!strict) { - strict = false; - } - if (!warn || data.private) { - warn = function(msg) { - }; - } - if (data.scripts && data.scripts.install === "node-gyp rebuild" && !data.scripts.preinstall) { - data.gypfile = true; - } - fixer.warn = function() { - warn(makeWarning.apply(null, arguments)); - }; - thingsToFix.forEach(function(thingName) { - fixer["fix" + ucFirst(thingName)](data, strict); - }); - data._id = data.name + "@" + data.version; - } - function ucFirst(string) { - return string.charAt(0).toUpperCase() + string.slice(1); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/ini-npm-1.3.8-fb5040b4c0-dfd98b0ca3.zip/node_modules/ini/ini.js - var require_ini = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/ini-npm-1.3.8-fb5040b4c0-dfd98b0ca3.zip/node_modules/ini/ini.js"(exports) { - exports.parse = exports.decode = decode; - exports.stringify = exports.encode = encode; - exports.safe = safe; - exports.unsafe = unsafe; - var eol = typeof process !== "undefined" && process.platform === "win32" ? "\r\n" : "\n"; - function encode(obj, opt) { - var children = []; - var out = ""; - if (typeof opt === "string") { - opt = { - section: opt, - whitespace: false - }; - } else { - opt = opt || {}; - opt.whitespace = opt.whitespace === true; - } - var separator = opt.whitespace ? " = " : "="; - Object.keys(obj).forEach(function(k, _, __) { - var val = obj[k]; - if (val && Array.isArray(val)) { - val.forEach(function(item) { - out += safe(k + "[]") + separator + safe(item) + "\n"; - }); - } else if (val && typeof val === "object") - children.push(k); - else - out += safe(k) + separator + safe(val) + eol; - }); - if (opt.section && out.length) - out = "[" + safe(opt.section) + "]" + eol + out; - children.forEach(function(k, _, __) { - var nk = dotSplit(k).join("\\."); - var section = (opt.section ? opt.section + "." : "") + nk; - var child = encode(obj[k], { - section, - whitespace: opt.whitespace - }); - if (out.length && child.length) - out += eol; - out += child; - }); - return out; - } - function dotSplit(str) { - return str.replace(/\1/g, "LITERAL\\1LITERAL").replace(/\\\./g, "").split(/\./).map(function(part) { - return part.replace(/\1/g, "\\.").replace(/\2LITERAL\\1LITERAL\2/g, ""); - }); - } - function decode(str) { - var out = {}; - var p = out; - var section = null; - var re = /^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i; - var lines = str.split(/[\r\n]+/g); - lines.forEach(function(line, _, __) { - if (!line || line.match(/^\s*[;#]/)) - return; - var match = line.match(re); - if (!match) - return; - if (match[1] !== void 0) { - section = unsafe(match[1]); - if (section === "__proto__") { - p = {}; - return; - } - p = out[section] = out[section] || {}; - return; - } - var key = unsafe(match[2]); - if (key === "__proto__") - return; - var value = match[3] ? unsafe(match[4]) : true; - switch (value) { - case "true": - case "false": - case "null": - value = JSON.parse(value); - } - if (key.length > 2 && key.slice(-2) === "[]") { - key = key.substring(0, key.length - 2); - if (key === "__proto__") - return; - if (!p[key]) - p[key] = []; - else if (!Array.isArray(p[key])) - p[key] = [p[key]]; - } - if (Array.isArray(p[key])) - p[key].push(value); - else - p[key] = value; - }); - Object.keys(out).filter(function(k, _, __) { - if (!out[k] || typeof out[k] !== "object" || Array.isArray(out[k])) - return false; - var parts = dotSplit(k); - var p2 = out; - var l = parts.pop(); - var nl = l.replace(/\\\./g, "."); - parts.forEach(function(part, _2, __2) { - if (part === "__proto__") - return; - if (!p2[part] || typeof p2[part] !== "object") - p2[part] = {}; - p2 = p2[part]; - }); - if (p2 === out && nl === l) - return false; - p2[nl] = out[k]; - return true; - }).forEach(function(del, _, __) { - delete out[del]; - }); - return out; - } - function isQuoted(val) { - return val.charAt(0) === '"' && val.slice(-1) === '"' || val.charAt(0) === "'" && val.slice(-1) === "'"; - } - function safe(val) { - return typeof val !== "string" || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim() ? JSON.stringify(val) : val.replace(/;/g, "\\;").replace(/#/g, "\\#"); - } - function unsafe(val, doUnesc) { - val = (val || "").trim(); - if (isQuoted(val)) { - if (val.charAt(0) === "'") - val = val.substr(1, val.length - 2); - try { - val = JSON.parse(val); - } catch (_) { - } - } else { - var esc = false; - var unesc = ""; - for (var i = 0, l = val.length; i < l; i++) { - var c = val.charAt(i); - if (esc) { - if ("\\;#".indexOf(c) !== -1) - unesc += c; - else - unesc += "\\" + c; - esc = false; - } else if (";#".indexOf(c) !== -1) - break; - else if (c === "\\") - esc = true; - else - unesc += c; - } - if (esc) - unesc += "\\"; - return unesc.trim(); - } - return val; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/gitconfiglocal-npm-1.0.0-905970379d-e6d2764c15.zip/node_modules/gitconfiglocal/index.js - var require_gitconfiglocal = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/gitconfiglocal-npm-1.0.0-905970379d-e6d2764c15.zip/node_modules/gitconfiglocal/index.js"(exports, module) { - var fs = __require("fs"); - var ini = require_ini(); - var path = __require("path"); - module.exports = function(dir, cb) { - findGit(dir, function(config) { - if (!config) - return cb(new Error("no gitconfig to be found at " + dir)); - fs.readFile(config, function(err, data) { - if (err) - return cb(err); - try { - var formatted = format(ini.parse(data.toString())); - } catch (e) { - return cb(e); - } - cb(false, formatted); - }); - }); - }; - function format(data) { - var out = {}; - Object.keys(data).forEach(function(k) { - if (k.indexOf('"') > -1) { - var parts = k.split('"'); - var parentKey = parts.shift().trim(); - var childKey = parts.shift().trim(); - if (!out[parentKey]) - out[parentKey] = {}; - out[parentKey][childKey] = data[k]; - } else { - out[k] = data[k]; - } - }); - return out; - } - function findGit(dir, cb) { - var folder = path.join(dir, ".git/config"); - fs.exists(folder, function(exists) { - if (exists) - return cb(folder); - if (dir === path.resolve(dir, "..")) - return cb(false); - findGit(path.resolve(dir, ".."), cb); - }); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/pify-npm-2.3.0-8b63310934-9503aaeaf4.zip/node_modules/pify/index.js - var require_pify = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/pify-npm-2.3.0-8b63310934-9503aaeaf4.zip/node_modules/pify/index.js"(exports, module) { - "use strict"; - var processFn = function(fn, P, opts) { - return function() { - var that = this; - var args = new Array(arguments.length); - for (var i = 0; i < arguments.length; i++) { - args[i] = arguments[i]; - } - return new P(function(resolve, reject) { - args.push(function(err, result) { - if (err) { - reject(err); - } else if (opts.multiArgs) { - var results = new Array(arguments.length - 1); - for (var i2 = 1; i2 < arguments.length; i2++) { - results[i2 - 1] = arguments[i2]; - } - resolve(results); - } else { - resolve(result); - } - }); - fn.apply(that, args); - }); - }; - }; - var pify = module.exports = function(obj, P, opts) { - if (typeof P !== "function") { - opts = P; - P = Promise; - } - opts = opts || {}; - opts.exclude = opts.exclude || [/.+Sync$/]; - var filter = function(key) { - var match = function(pattern) { - return typeof pattern === "string" ? key === pattern : pattern.test(key); - }; - return opts.include ? opts.include.some(match) : !opts.exclude.some(match); - }; - var ret = typeof obj === "function" ? function() { - if (opts.excludeMain) { - return obj.apply(this, arguments); - } - return processFn(obj, P, opts).apply(this, arguments); - } : {}; - return Object.keys(obj).reduce(function(ret2, key) { - var x = obj[key]; - ret2[key] = typeof x === "function" && filter(key) ? processFn(x, P, opts) : x; - return ret2; - }, ret); - }; - pify.all = pify; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/git-remote-origin-url-npm-2.0.0-319debe0d1-85263a09c0.zip/node_modules/git-remote-origin-url/index.js - var require_git_remote_origin_url = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/git-remote-origin-url-npm-2.0.0-319debe0d1-85263a09c0.zip/node_modules/git-remote-origin-url/index.js"(exports, module) { - "use strict"; - var gitconfig = require_gitconfiglocal(); - var pify = require_pify(); - module.exports = (dir) => { - return pify(gitconfig)(dir || process.cwd()).then((config) => { - var url = config.remote && config.remote.origin && config.remote.origin.url; - if (!url) { - throw new Error("Couldn't find origin url"); - } - return url; - }); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/polyfills.js - var require_polyfills = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/polyfills.js"(exports, module) { - var constants = __require("constants"); - var origCwd = process.cwd; - var cwd = null; - var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform; - process.cwd = function() { - if (!cwd) - cwd = origCwd.call(process); - return cwd; - }; - try { - process.cwd(); - } catch (er) { - } - if (typeof process.chdir === "function") { - chdir = process.chdir; - process.chdir = function(d) { - cwd = null; - chdir.call(process, d); - }; - if (Object.setPrototypeOf) - Object.setPrototypeOf(process.chdir, chdir); - } - var chdir; - module.exports = patch; - function patch(fs) { - if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs); - } - if (!fs.lutimes) { - patchLutimes(fs); - } - fs.chown = chownFix(fs.chown); - fs.fchown = chownFix(fs.fchown); - fs.lchown = chownFix(fs.lchown); - fs.chmod = chmodFix(fs.chmod); - fs.fchmod = chmodFix(fs.fchmod); - fs.lchmod = chmodFix(fs.lchmod); - fs.chownSync = chownFixSync(fs.chownSync); - fs.fchownSync = chownFixSync(fs.fchownSync); - fs.lchownSync = chownFixSync(fs.lchownSync); - fs.chmodSync = chmodFixSync(fs.chmodSync); - fs.fchmodSync = chmodFixSync(fs.fchmodSync); - fs.lchmodSync = chmodFixSync(fs.lchmodSync); - fs.stat = statFix(fs.stat); - fs.fstat = statFix(fs.fstat); - fs.lstat = statFix(fs.lstat); - fs.statSync = statFixSync(fs.statSync); - fs.fstatSync = statFixSync(fs.fstatSync); - fs.lstatSync = statFixSync(fs.lstatSync); - if (fs.chmod && !fs.lchmod) { - fs.lchmod = function(path, mode, cb) { - if (cb) - process.nextTick(cb); - }; - fs.lchmodSync = function() { - }; - } - if (fs.chown && !fs.lchown) { - fs.lchown = function(path, uid, gid, cb) { - if (cb) - process.nextTick(cb); - }; - fs.lchownSync = function() { - }; - } - if (platform === "win32") { - fs.rename = typeof fs.rename !== "function" ? fs.rename : function(fs$rename) { - function rename(from, to, cb) { - var start = Date.now(); - var backoff = 0; - fs$rename(from, to, function CB(er) { - if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) { - setTimeout(function() { - fs.stat(to, function(stater, st) { - if (stater && stater.code === "ENOENT") - fs$rename(from, to, CB); - else - cb(er); - }); - }, backoff); - if (backoff < 100) - backoff += 10; - return; - } - if (cb) - cb(er); - }); - } - if (Object.setPrototypeOf) - Object.setPrototypeOf(rename, fs$rename); - return rename; - }(fs.rename); - } - fs.read = typeof fs.read !== "function" ? fs.read : function(fs$read) { - function read(fd, buffer, offset, length, position, callback_) { - var callback; - if (callback_ && typeof callback_ === "function") { - var eagCounter = 0; - callback = function(er, _, __) { - if (er && er.code === "EAGAIN" && eagCounter < 10) { - eagCounter++; - return fs$read.call(fs, fd, buffer, offset, length, position, callback); - } - callback_.apply(this, arguments); - }; - } - return fs$read.call(fs, fd, buffer, offset, length, position, callback); - } - if (Object.setPrototypeOf) - Object.setPrototypeOf(read, fs$read); - return read; - }(fs.read); - fs.readSync = typeof fs.readSync !== "function" ? fs.readSync : function(fs$readSync) { - return function(fd, buffer, offset, length, position) { - var eagCounter = 0; - while (true) { - try { - return fs$readSync.call(fs, fd, buffer, offset, length, position); - } catch (er) { - if (er.code === "EAGAIN" && eagCounter < 10) { - eagCounter++; - continue; - } - throw er; - } - } - }; - }(fs.readSync); - function patchLchmod(fs2) { - fs2.lchmod = function(path, mode, callback) { - fs2.open(path, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) { - if (err) { - if (callback) - callback(err); - return; - } - fs2.fchmod(fd, mode, function(err2) { - fs2.close(fd, function(err22) { - if (callback) - callback(err2 || err22); - }); - }); - }); - }; - fs2.lchmodSync = function(path, mode) { - var fd = fs2.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode); - var threw = true; - var ret; - try { - ret = fs2.fchmodSync(fd, mode); - threw = false; - } finally { - if (threw) { - try { - fs2.closeSync(fd); - } catch (er) { - } - } else { - fs2.closeSync(fd); - } - } - return ret; - }; - } - function patchLutimes(fs2) { - if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) { - fs2.lutimes = function(path, at, mt, cb) { - fs2.open(path, constants.O_SYMLINK, function(er, fd) { - if (er) { - if (cb) - cb(er); - return; - } - fs2.futimes(fd, at, mt, function(er2) { - fs2.close(fd, function(er22) { - if (cb) - cb(er2 || er22); - }); - }); - }); - }; - fs2.lutimesSync = function(path, at, mt) { - var fd = fs2.openSync(path, constants.O_SYMLINK); - var ret; - var threw = true; - try { - ret = fs2.futimesSync(fd, at, mt); - threw = false; - } finally { - if (threw) { - try { - fs2.closeSync(fd); - } catch (er) { - } - } else { - fs2.closeSync(fd); - } - } - return ret; - }; - } else if (fs2.futimes) { - fs2.lutimes = function(_a, _b, _c, cb) { - if (cb) - process.nextTick(cb); - }; - fs2.lutimesSync = function() { - }; - } - } - function chmodFix(orig) { - if (!orig) - return orig; - return function(target, mode, cb) { - return orig.call(fs, target, mode, function(er) { - if (chownErOk(er)) - er = null; - if (cb) - cb.apply(this, arguments); - }); - }; - } - function chmodFixSync(orig) { - if (!orig) - return orig; - return function(target, mode) { - try { - return orig.call(fs, target, mode); - } catch (er) { - if (!chownErOk(er)) - throw er; - } - }; - } - function chownFix(orig) { - if (!orig) - return orig; - return function(target, uid, gid, cb) { - return orig.call(fs, target, uid, gid, function(er) { - if (chownErOk(er)) - er = null; - if (cb) - cb.apply(this, arguments); - }); - }; - } - function chownFixSync(orig) { - if (!orig) - return orig; - return function(target, uid, gid) { - try { - return orig.call(fs, target, uid, gid); - } catch (er) { - if (!chownErOk(er)) - throw er; - } - }; - } - function statFix(orig) { - if (!orig) - return orig; - return function(target, options, cb) { - if (typeof options === "function") { - cb = options; - options = null; - } - function callback(er, stats) { - if (stats) { - if (stats.uid < 0) - stats.uid += 4294967296; - if (stats.gid < 0) - stats.gid += 4294967296; - } - if (cb) - cb.apply(this, arguments); - } - return options ? orig.call(fs, target, options, callback) : orig.call(fs, target, callback); - }; - } - function statFixSync(orig) { - if (!orig) - return orig; - return function(target, options) { - var stats = options ? orig.call(fs, target, options) : orig.call(fs, target); - if (stats) { - if (stats.uid < 0) - stats.uid += 4294967296; - if (stats.gid < 0) - stats.gid += 4294967296; - } - return stats; - }; - } - function chownErOk(er) { - if (!er) - return true; - if (er.code === "ENOSYS") - return true; - var nonroot = !process.getuid || process.getuid() !== 0; - if (nonroot) { - if (er.code === "EINVAL" || er.code === "EPERM") - return true; - } - return false; - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/legacy-streams.js - var require_legacy_streams = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/legacy-streams.js"(exports, module) { - var Stream = __require("stream").Stream; - module.exports = legacy; - function legacy(fs) { - return { - ReadStream, - WriteStream - }; - function ReadStream(path, options) { - if (!(this instanceof ReadStream)) - return new ReadStream(path, options); - Stream.call(this); - var self2 = this; - this.path = path; - this.fd = null; - this.readable = true; - this.paused = false; - this.flags = "r"; - this.mode = 438; - this.bufferSize = 64 * 1024; - options = options || {}; - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - if (this.encoding) - this.setEncoding(this.encoding); - if (this.start !== void 0) { - if (typeof this.start !== "number") { - throw TypeError("start must be a Number"); - } - if (this.end === void 0) { - this.end = Infinity; - } else if (typeof this.end !== "number") { - throw TypeError("end must be a Number"); - } - if (this.start > this.end) { - throw new Error("start must be <= end"); - } - this.pos = this.start; - } - if (this.fd !== null) { - process.nextTick(function() { - self2._read(); - }); - return; - } - fs.open(this.path, this.flags, this.mode, function(err, fd) { - if (err) { - self2.emit("error", err); - self2.readable = false; - return; - } - self2.fd = fd; - self2.emit("open", fd); - self2._read(); - }); - } - function WriteStream(path, options) { - if (!(this instanceof WriteStream)) - return new WriteStream(path, options); - Stream.call(this); - this.path = path; - this.fd = null; - this.writable = true; - this.flags = "w"; - this.encoding = "binary"; - this.mode = 438; - this.bytesWritten = 0; - options = options || {}; - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - if (this.start !== void 0) { - if (typeof this.start !== "number") { - throw TypeError("start must be a Number"); - } - if (this.start < 0) { - throw new Error("start must be >= zero"); - } - this.pos = this.start; - } - this.busy = false; - this._queue = []; - if (this.fd === null) { - this._open = fs.open; - this._queue.push([this._open, this.path, this.flags, this.mode, void 0]); - this.flush(); - } - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/clone.js - var require_clone = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/clone.js"(exports, module) { - "use strict"; - module.exports = clone; - var getPrototypeOf = Object.getPrototypeOf || function(obj) { - return obj.__proto__; - }; - function clone(obj) { - if (obj === null || typeof obj !== "object") - return obj; - if (obj instanceof Object) - var copy = {__proto__: getPrototypeOf(obj)}; - else - var copy = Object.create(null); - Object.getOwnPropertyNames(obj).forEach(function(key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)); - }); - return copy; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/graceful-fs.js - var require_graceful_fs = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/graceful-fs.js"(exports, module) { - var fs = __require("fs"); - var polyfills = require_polyfills(); - var legacy = require_legacy_streams(); - var clone = require_clone(); - var util = __require("util"); - var gracefulQueue; - var previousSymbol; - if (typeof Symbol === "function" && typeof Symbol.for === "function") { - gracefulQueue = Symbol.for("graceful-fs.queue"); - previousSymbol = Symbol.for("graceful-fs.previous"); - } else { - gracefulQueue = "___graceful-fs.queue"; - previousSymbol = "___graceful-fs.previous"; - } - function noop() { - } - function publishQueue(context, queue2) { - Object.defineProperty(context, gracefulQueue, { - get: function() { - return queue2; - } - }); - } - var debug = noop; - if (util.debuglog) - debug = util.debuglog("gfs4"); - else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) - debug = function() { - var m = util.format.apply(util, arguments); - m = "GFS4: " + m.split(/\n/).join("\nGFS4: "); - console.error(m); - }; - if (!fs[gracefulQueue]) { - queue = global[gracefulQueue] || []; - publishQueue(fs, queue); - fs.close = function(fs$close) { - function close(fd, cb) { - return fs$close.call(fs, fd, function(err) { - if (!err) { - resetQueue(); - } - if (typeof cb === "function") - cb.apply(this, arguments); - }); - } - Object.defineProperty(close, previousSymbol, { - value: fs$close - }); - return close; - }(fs.close); - fs.closeSync = function(fs$closeSync) { - function closeSync(fd) { - fs$closeSync.apply(fs, arguments); - resetQueue(); - } - Object.defineProperty(closeSync, previousSymbol, { - value: fs$closeSync - }); - return closeSync; - }(fs.closeSync); - if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) { - process.on("exit", function() { - debug(fs[gracefulQueue]); - __require("assert").equal(fs[gracefulQueue].length, 0); - }); - } - } - var queue; - if (!global[gracefulQueue]) { - publishQueue(global, fs[gracefulQueue]); - } - module.exports = patch(clone(fs)); - if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) { - module.exports = patch(fs); - fs.__patched = true; - } - function patch(fs2) { - polyfills(fs2); - fs2.gracefulify = patch; - fs2.createReadStream = createReadStream; - fs2.createWriteStream = createWriteStream; - var fs$readFile = fs2.readFile; - fs2.readFile = readFile; - function readFile(path, options, cb) { - if (typeof options === "function") - cb = options, options = null; - return go$readFile(path, options, cb); - function go$readFile(path2, options2, cb2, startTime) { - return fs$readFile(path2, options2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$readFile, [path2, options2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$writeFile = fs2.writeFile; - fs2.writeFile = writeFile; - function writeFile(path, data, options, cb) { - if (typeof options === "function") - cb = options, options = null; - return go$writeFile(path, data, options, cb); - function go$writeFile(path2, data2, options2, cb2, startTime) { - return fs$writeFile(path2, data2, options2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$writeFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$appendFile = fs2.appendFile; - if (fs$appendFile) - fs2.appendFile = appendFile; - function appendFile(path, data, options, cb) { - if (typeof options === "function") - cb = options, options = null; - return go$appendFile(path, data, options, cb); - function go$appendFile(path2, data2, options2, cb2, startTime) { - return fs$appendFile(path2, data2, options2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$appendFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$copyFile = fs2.copyFile; - if (fs$copyFile) - fs2.copyFile = copyFile; - function copyFile(src, dest, flags, cb) { - if (typeof flags === "function") { - cb = flags; - flags = 0; - } - return go$copyFile(src, dest, flags, cb); - function go$copyFile(src2, dest2, flags2, cb2, startTime) { - return fs$copyFile(src2, dest2, flags2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$readdir = fs2.readdir; - fs2.readdir = readdir; - var noReaddirOptionVersions = /^v[0-5]\./; - function readdir(path, options, cb) { - if (typeof options === "function") - cb = options, options = null; - var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path2, options2, cb2, startTime) { - return fs$readdir(path2, fs$readdirCallback(path2, options2, cb2, startTime)); - } : function go$readdir2(path2, options2, cb2, startTime) { - return fs$readdir(path2, options2, fs$readdirCallback(path2, options2, cb2, startTime)); - }; - return go$readdir(path, options, cb); - function fs$readdirCallback(path2, options2, cb2, startTime) { - return function(err, files) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([ - go$readdir, - [path2, options2, cb2], - err, - startTime || Date.now(), - Date.now() - ]); - else { - if (files && files.sort) - files.sort(); - if (typeof cb2 === "function") - cb2.call(this, err, files); - } - }; - } - } - if (process.version.substr(0, 4) === "v0.8") { - var legStreams = legacy(fs2); - ReadStream = legStreams.ReadStream; - WriteStream = legStreams.WriteStream; - } - var fs$ReadStream = fs2.ReadStream; - if (fs$ReadStream) { - ReadStream.prototype = Object.create(fs$ReadStream.prototype); - ReadStream.prototype.open = ReadStream$open; - } - var fs$WriteStream = fs2.WriteStream; - if (fs$WriteStream) { - WriteStream.prototype = Object.create(fs$WriteStream.prototype); - WriteStream.prototype.open = WriteStream$open; - } - Object.defineProperty(fs2, "ReadStream", { - get: function() { - return ReadStream; - }, - set: function(val) { - ReadStream = val; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(fs2, "WriteStream", { - get: function() { - return WriteStream; - }, - set: function(val) { - WriteStream = val; - }, - enumerable: true, - configurable: true - }); - var FileReadStream = ReadStream; - Object.defineProperty(fs2, "FileReadStream", { - get: function() { - return FileReadStream; - }, - set: function(val) { - FileReadStream = val; - }, - enumerable: true, - configurable: true - }); - var FileWriteStream = WriteStream; - Object.defineProperty(fs2, "FileWriteStream", { - get: function() { - return FileWriteStream; - }, - set: function(val) { - FileWriteStream = val; - }, - enumerable: true, - configurable: true - }); - function ReadStream(path, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this; - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments); - } - function ReadStream$open() { - var that = this; - open(that.path, that.flags, that.mode, function(err, fd) { - if (err) { - if (that.autoClose) - that.destroy(); - that.emit("error", err); - } else { - that.fd = fd; - that.emit("open", fd); - that.read(); - } - }); - } - function WriteStream(path, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this; - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments); - } - function WriteStream$open() { - var that = this; - open(that.path, that.flags, that.mode, function(err, fd) { - if (err) { - that.destroy(); - that.emit("error", err); - } else { - that.fd = fd; - that.emit("open", fd); - } - }); - } - function createReadStream(path, options) { - return new fs2.ReadStream(path, options); - } - function createWriteStream(path, options) { - return new fs2.WriteStream(path, options); - } - var fs$open = fs2.open; - fs2.open = open; - function open(path, flags, mode, cb) { - if (typeof mode === "function") - cb = mode, mode = null; - return go$open(path, flags, mode, cb); - function go$open(path2, flags2, mode2, cb2, startTime) { - return fs$open(path2, flags2, mode2, function(err, fd) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$open, [path2, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - return fs2; - } - function enqueue(elem) { - debug("ENQUEUE", elem[0].name, elem[1]); - fs[gracefulQueue].push(elem); - retry(); - } - var retryTimer; - function resetQueue() { - var now = Date.now(); - for (var i = 0; i < fs[gracefulQueue].length; ++i) { - if (fs[gracefulQueue][i].length > 2) { - fs[gracefulQueue][i][3] = now; - fs[gracefulQueue][i][4] = now; - } - } - retry(); - } - function retry() { - clearTimeout(retryTimer); - retryTimer = void 0; - if (fs[gracefulQueue].length === 0) - return; - var elem = fs[gracefulQueue].shift(); - var fn = elem[0]; - var args = elem[1]; - var err = elem[2]; - var startTime = elem[3]; - var lastTime = elem[4]; - if (startTime === void 0) { - debug("RETRY", fn.name, args); - fn.apply(null, args); - } else if (Date.now() - startTime >= 6e4) { - debug("TIMEOUT", fn.name, args); - var cb = args.pop(); - if (typeof cb === "function") - cb.call(null, err); - } else { - var sinceAttempt = Date.now() - lastTime; - var sinceStart = Math.max(lastTime - startTime, 1); - var desiredDelay = Math.min(sinceStart * 1.2, 100); - if (sinceAttempt >= desiredDelay) { - debug("RETRY", fn.name, args); - fn.apply(null, args.concat([startTime])); - } else { - fs[gracefulQueue].push(elem); - } - } - if (retryTimer === void 0) { - retryTimer = setTimeout(retry, 0); - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/strip-bom-npm-3.0.0-71e8f81ff9-8d50ff27b7.zip/node_modules/strip-bom/index.js - var require_strip_bom = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/strip-bom-npm-3.0.0-71e8f81ff9-8d50ff27b7.zip/node_modules/strip-bom/index.js"(exports, module) { - "use strict"; - module.exports = (x) => { - if (typeof x !== "string") { - throw new TypeError("Expected a string, got " + typeof x); - } - if (x.charCodeAt(0) === 65279) { - return x.slice(1); - } - return x; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/is-arrayish-npm-0.2.1-23927dfb15-eef4417e3c.zip/node_modules/is-arrayish/index.js - var require_is_arrayish = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/is-arrayish-npm-0.2.1-23927dfb15-eef4417e3c.zip/node_modules/is-arrayish/index.js"(exports, module) { - "use strict"; - module.exports = function isArrayish(obj) { - if (!obj) { - return false; - } - return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && obj.splice instanceof Function; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/error-ex-npm-1.3.2-5654f80c0f-c1c2b8b65f.zip/node_modules/error-ex/index.js - var require_error_ex = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/error-ex-npm-1.3.2-5654f80c0f-c1c2b8b65f.zip/node_modules/error-ex/index.js"(exports, module) { - "use strict"; - var util = __require("util"); - var isArrayish = require_is_arrayish(); - var errorEx = function errorEx2(name, properties) { - if (!name || name.constructor !== String) { - properties = name || {}; - name = Error.name; - } - var errorExError = function ErrorEXError(message) { - if (!this) { - return new ErrorEXError(message); - } - message = message instanceof Error ? message.message : message || this.message; - Error.call(this, message); - Error.captureStackTrace(this, errorExError); - this.name = name; - Object.defineProperty(this, "message", { - configurable: true, - enumerable: false, - get: function() { - var newMessage = message.split(/\r?\n/g); - for (var key in properties) { - if (!properties.hasOwnProperty(key)) { - continue; - } - var modifier = properties[key]; - if ("message" in modifier) { - newMessage = modifier.message(this[key], newMessage) || newMessage; - if (!isArrayish(newMessage)) { - newMessage = [newMessage]; - } - } - } - return newMessage.join("\n"); - }, - set: function(v) { - message = v; - } - }); - var overwrittenStack = null; - var stackDescriptor = Object.getOwnPropertyDescriptor(this, "stack"); - var stackGetter = stackDescriptor.get; - var stackValue = stackDescriptor.value; - delete stackDescriptor.value; - delete stackDescriptor.writable; - stackDescriptor.set = function(newstack) { - overwrittenStack = newstack; - }; - stackDescriptor.get = function() { - var stack = (overwrittenStack || (stackGetter ? stackGetter.call(this) : stackValue)).split(/\r?\n+/g); - if (!overwrittenStack) { - stack[0] = this.name + ": " + this.message; - } - var lineCount = 1; - for (var key in properties) { - if (!properties.hasOwnProperty(key)) { - continue; - } - var modifier = properties[key]; - if ("line" in modifier) { - var line = modifier.line(this[key]); - if (line) { - stack.splice(lineCount++, 0, " " + line); - } - } - if ("stack" in modifier) { - modifier.stack(this[key], stack); - } - } - return stack.join("\n"); - }; - Object.defineProperty(this, "stack", stackDescriptor); - }; - if (Object.setPrototypeOf) { - Object.setPrototypeOf(errorExError.prototype, Error.prototype); - Object.setPrototypeOf(errorExError, Error); - } else { - util.inherits(errorExError, Error); - } - return errorExError; - }; - errorEx.append = function(str, def) { - return { - message: function(v, message) { - v = v || def; - if (v) { - message[0] += " " + str.replace("%s", v.toString()); - } - return message; - } - }; - }; - errorEx.line = function(str, def) { - return { - line: function(v) { - v = v || def; - if (v) { - return str.replace("%s", v.toString()); - } - return null; - } - }; - }; - module.exports = errorEx; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/json-parse-better-errors-npm-1.0.2-7f37637d19-ff2b5ba2a7.zip/node_modules/json-parse-better-errors/index.js - var require_json_parse_better_errors = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/json-parse-better-errors-npm-1.0.2-7f37637d19-ff2b5ba2a7.zip/node_modules/json-parse-better-errors/index.js"(exports, module) { - "use strict"; - module.exports = parseJson; - function parseJson(txt, reviver, context) { - context = context || 20; - try { - return JSON.parse(txt, reviver); - } catch (e) { - if (typeof txt !== "string") { - const isEmptyArray = Array.isArray(txt) && txt.length === 0; - const errorMessage = "Cannot parse " + (isEmptyArray ? "an empty array" : String(txt)); - throw new TypeError(errorMessage); - } - const syntaxErr = e.message.match(/^Unexpected token.*position\s+(\d+)/i); - const errIdx = syntaxErr ? +syntaxErr[1] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null; - if (errIdx != null) { - const start = errIdx <= context ? 0 : errIdx - context; - const end = errIdx + context >= txt.length ? txt.length : errIdx + context; - e.message += ` while parsing near '${start === 0 ? "" : "..."}${txt.slice(start, end)}${end === txt.length ? "" : "..."}'`; - } else { - e.message += ` while parsing '${txt.slice(0, context * 2)}'`; - } - throw e; - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/parse-json-npm-4.0.0-a6f7771010-0fe227d410.zip/node_modules/parse-json/index.js - var require_parse_json = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/parse-json-npm-4.0.0-a6f7771010-0fe227d410.zip/node_modules/parse-json/index.js"(exports, module) { - "use strict"; - var errorEx = require_error_ex(); - var fallback = require_json_parse_better_errors(); - var JSONError = errorEx("JSONError", { - fileName: errorEx.append("in %s") - }); - module.exports = (input, reviver, filename) => { - if (typeof reviver === "string") { - filename = reviver; - reviver = null; - } - try { - try { - return JSON.parse(input, reviver); - } catch (err) { - fallback(input, reviver); - throw err; - } - } catch (err) { - err.message = err.message.replace(/\n/g, ""); - const jsonErr = new JSONError(err); - if (filename) { - jsonErr.fileName = filename; - } - throw jsonErr; - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/pify-npm-3.0.0-679ee405c8-6cdcbc3567.zip/node_modules/pify/index.js - var require_pify2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/pify-npm-3.0.0-679ee405c8-6cdcbc3567.zip/node_modules/pify/index.js"(exports, module) { - "use strict"; - var processFn = (fn, opts) => function() { - const P = opts.promiseModule; - const args = new Array(arguments.length); - for (let i = 0; i < arguments.length; i++) { - args[i] = arguments[i]; - } - return new P((resolve, reject) => { - if (opts.errorFirst) { - args.push(function(err, result) { - if (opts.multiArgs) { - const results = new Array(arguments.length - 1); - for (let i = 1; i < arguments.length; i++) { - results[i - 1] = arguments[i]; - } - if (err) { - results.unshift(err); - reject(results); - } else { - resolve(results); - } - } else if (err) { - reject(err); - } else { - resolve(result); - } - }); - } else { - args.push(function(result) { - if (opts.multiArgs) { - const results = new Array(arguments.length - 1); - for (let i = 0; i < arguments.length; i++) { - results[i] = arguments[i]; - } - resolve(results); - } else { - resolve(result); - } - }); - } - fn.apply(this, args); - }); - }; - module.exports = (obj, opts) => { - opts = Object.assign({ - exclude: [/.+(Sync|Stream)$/], - errorFirst: true, - promiseModule: Promise - }, opts); - const filter = (key) => { - const match = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key); - return opts.include ? opts.include.some(match) : !opts.exclude.some(match); - }; - let ret; - if (typeof obj === "function") { - ret = function() { - if (opts.excludeMain) { - return obj.apply(this, arguments); - } - return processFn(obj, opts).apply(this, arguments); - }; - } else { - ret = Object.create(Object.getPrototypeOf(obj)); - } - for (const key in obj) { - const x = obj[key]; - ret[key] = typeof x === "function" && filter(key) ? processFn(x, opts) : x; - } - return ret; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/load-json-file-npm-4.0.0-c9f09d85eb-8f5d6d93ba.zip/node_modules/load-json-file/index.js - var require_load_json_file = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/load-json-file-npm-4.0.0-c9f09d85eb-8f5d6d93ba.zip/node_modules/load-json-file/index.js"(exports, module) { - "use strict"; - var path = __require("path"); - var fs = require_graceful_fs(); - var stripBom = require_strip_bom(); - var parseJson = require_parse_json(); - var pify = require_pify2(); - var parse = (data, fp) => parseJson(stripBom(data), path.relative(".", fp)); - module.exports = (fp) => pify(fs.readFile)(fp, "utf8").then((data) => parse(data, fp)); - module.exports.sync = (fp) => parse(fs.readFileSync(fp, "utf8"), fp); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/path-type-npm-3.0.0-252361a0eb-735b35e256.zip/node_modules/path-type/index.js - var require_path_type = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/path-type-npm-3.0.0-252361a0eb-735b35e256.zip/node_modules/path-type/index.js"(exports) { - "use strict"; - var fs = __require("fs"); - var pify = require_pify2(); - function type(fn, fn2, fp) { - if (typeof fp !== "string") { - return Promise.reject(new TypeError(`Expected a string, got ${typeof fp}`)); - } - return pify(fs[fn])(fp).then((stats) => stats[fn2]()).catch((err) => { - if (err.code === "ENOENT") { - return false; - } - throw err; - }); - } - function typeSync(fn, fn2, fp) { - if (typeof fp !== "string") { - throw new TypeError(`Expected a string, got ${typeof fp}`); - } - try { - return fs[fn](fp)[fn2](); - } catch (err) { - if (err.code === "ENOENT") { - return false; - } - throw err; - } - } - exports.file = type.bind(null, "stat", "isFile"); - exports.dir = type.bind(null, "stat", "isDirectory"); - exports.symlink = type.bind(null, "lstat", "isSymbolicLink"); - exports.fileSync = typeSync.bind(null, "statSync", "isFile"); - exports.dirSync = typeSync.bind(null, "statSync", "isDirectory"); - exports.symlinkSync = typeSync.bind(null, "lstatSync", "isSymbolicLink"); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-2.8.9-62c44fa93f-c955394bda.zip/node_modules/hosted-git-info/git-host-info.js - var require_git_host_info2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-2.8.9-62c44fa93f-c955394bda.zip/node_modules/hosted-git-info/git-host-info.js"(exports, module) { - "use strict"; - var gitHosts = module.exports = { - github: { - "protocols": ["git", "http", "git+ssh", "git+https", "ssh", "https"], - "domain": "github.com", - "treepath": "tree", - "filetemplate": "https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}", - "bugstemplate": "https://{domain}/{user}/{project}/issues", - "gittemplate": "git://{auth@}{domain}/{user}/{project}.git{#committish}", - "tarballtemplate": "https://codeload.{domain}/{user}/{project}/tar.gz/{committish}" - }, - bitbucket: { - "protocols": ["git+ssh", "git+https", "ssh", "https"], - "domain": "bitbucket.org", - "treepath": "src", - "tarballtemplate": "https://{domain}/{user}/{project}/get/{committish}.tar.gz" - }, - gitlab: { - "protocols": ["git+ssh", "git+https", "ssh", "https"], - "domain": "gitlab.com", - "treepath": "tree", - "bugstemplate": "https://{domain}/{user}/{project}/issues", - "httpstemplate": "git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}", - "tarballtemplate": "https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}", - "pathmatch": /^[/]([^/]+)[/]((?!.*(\/-\/|\/repository\/archive\.tar\.gz\?=.*|\/repository\/[^/]+\/archive.tar.gz$)).*?)(?:[.]git|[/])?$/ - }, - gist: { - "protocols": ["git", "git+ssh", "git+https", "ssh", "https"], - "domain": "gist.github.com", - "pathmatch": /^[/](?:([^/]+)[/])?([a-z0-9]{32,})(?:[.]git)?$/, - "filetemplate": "https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}", - "bugstemplate": "https://{domain}/{project}", - "gittemplate": "git://{domain}/{project}.git{#committish}", - "sshtemplate": "git@{domain}:/{project}.git{#committish}", - "sshurltemplate": "git+ssh://git@{domain}/{project}.git{#committish}", - "browsetemplate": "https://{domain}/{project}{/committish}", - "browsefiletemplate": "https://{domain}/{project}{/committish}{#path}", - "docstemplate": "https://{domain}/{project}{/committish}", - "httpstemplate": "git+https://{domain}/{project}.git{#committish}", - "shortcuttemplate": "{type}:{project}{#committish}", - "pathtemplate": "{project}{#committish}", - "tarballtemplate": "https://codeload.github.com/gist/{project}/tar.gz/{committish}", - "hashformat": function(fragment) { - return "file-" + formatHashFragment(fragment); - } - } - }; - var gitHostDefaults = { - "sshtemplate": "git@{domain}:{user}/{project}.git{#committish}", - "sshurltemplate": "git+ssh://git@{domain}/{user}/{project}.git{#committish}", - "browsetemplate": "https://{domain}/{user}/{project}{/tree/committish}", - "browsefiletemplate": "https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}", - "docstemplate": "https://{domain}/{user}/{project}{/tree/committish}#readme", - "httpstemplate": "git+https://{auth@}{domain}/{user}/{project}.git{#committish}", - "filetemplate": "https://{domain}/{user}/{project}/raw/{committish}/{path}", - "shortcuttemplate": "{type}:{user}/{project}{#committish}", - "pathtemplate": "{user}/{project}{#committish}", - "pathmatch": /^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/, - "hashformat": formatHashFragment - }; - Object.keys(gitHosts).forEach(function(name) { - Object.keys(gitHostDefaults).forEach(function(key) { - if (gitHosts[name][key]) - return; - gitHosts[name][key] = gitHostDefaults[key]; - }); - gitHosts[name].protocols_re = RegExp("^(" + gitHosts[name].protocols.map(function(protocol) { - return protocol.replace(/([\\+*{}()[\]$^|])/g, "\\$1"); - }).join("|") + "):$"); - }); - function formatHashFragment(fragment) { - return fragment.toLowerCase().replace(/^\W+|\/|\W+$/g, "").replace(/\W+/g, "-"); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-2.8.9-62c44fa93f-c955394bda.zip/node_modules/hosted-git-info/git-host.js - var require_git_host2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-2.8.9-62c44fa93f-c955394bda.zip/node_modules/hosted-git-info/git-host.js"(exports, module) { - "use strict"; - var gitHosts = require_git_host_info2(); - var extend = Object.assign || function _extend(target, source) { - if (source === null || typeof source !== "object") - return target; - var keys = Object.keys(source); - var i = keys.length; - while (i--) { - target[keys[i]] = source[keys[i]]; - } - return target; - }; - module.exports = GitHost; - function GitHost(type, user, auth, project, committish, defaultRepresentation, opts) { - var gitHostInfo = this; - gitHostInfo.type = type; - Object.keys(gitHosts[type]).forEach(function(key) { - gitHostInfo[key] = gitHosts[type][key]; - }); - gitHostInfo.user = user; - gitHostInfo.auth = auth; - gitHostInfo.project = project; - gitHostInfo.committish = committish; - gitHostInfo.default = defaultRepresentation; - gitHostInfo.opts = opts || {}; - } - GitHost.prototype.hash = function() { - return this.committish ? "#" + this.committish : ""; - }; - GitHost.prototype._fill = function(template, opts) { - if (!template) - return; - var vars = extend({}, opts); - vars.path = vars.path ? vars.path.replace(/^[/]+/g, "") : ""; - opts = extend(extend({}, this.opts), opts); - var self2 = this; - Object.keys(this).forEach(function(key) { - if (self2[key] != null && vars[key] == null) - vars[key] = self2[key]; - }); - var rawAuth = vars.auth; - var rawcommittish = vars.committish; - var rawFragment = vars.fragment; - var rawPath = vars.path; - var rawProject = vars.project; - Object.keys(vars).forEach(function(key) { - var value = vars[key]; - if ((key === "path" || key === "project") && typeof value === "string") { - vars[key] = value.split("/").map(function(pathComponent) { - return encodeURIComponent(pathComponent); - }).join("/"); - } else { - vars[key] = encodeURIComponent(value); - } - }); - vars["auth@"] = rawAuth ? rawAuth + "@" : ""; - vars["#fragment"] = rawFragment ? "#" + this.hashformat(rawFragment) : ""; - vars.fragment = vars.fragment ? vars.fragment : ""; - vars["#path"] = rawPath ? "#" + this.hashformat(rawPath) : ""; - vars["/path"] = vars.path ? "/" + vars.path : ""; - vars.projectPath = rawProject.split("/").map(encodeURIComponent).join("/"); - if (opts.noCommittish) { - vars["#committish"] = ""; - vars["/tree/committish"] = ""; - vars["/committish"] = ""; - vars.committish = ""; - } else { - vars["#committish"] = rawcommittish ? "#" + rawcommittish : ""; - vars["/tree/committish"] = vars.committish ? "/" + vars.treepath + "/" + vars.committish : ""; - vars["/committish"] = vars.committish ? "/" + vars.committish : ""; - vars.committish = vars.committish || "master"; - } - var res = template; - Object.keys(vars).forEach(function(key) { - res = res.replace(new RegExp("[{]" + key + "[}]", "g"), vars[key]); - }); - if (opts.noGitPlus) { - return res.replace(/^git[+]/, ""); - } else { - return res; - } - }; - GitHost.prototype.ssh = function(opts) { - return this._fill(this.sshtemplate, opts); - }; - GitHost.prototype.sshurl = function(opts) { - return this._fill(this.sshurltemplate, opts); - }; - GitHost.prototype.browse = function(P, F, opts) { - if (typeof P === "string") { - if (typeof F !== "string") { - opts = F; - F = null; - } - return this._fill(this.browsefiletemplate, extend({ - fragment: F, - path: P - }, opts)); - } else { - return this._fill(this.browsetemplate, P); - } - }; - GitHost.prototype.docs = function(opts) { - return this._fill(this.docstemplate, opts); - }; - GitHost.prototype.bugs = function(opts) { - return this._fill(this.bugstemplate, opts); - }; - GitHost.prototype.https = function(opts) { - return this._fill(this.httpstemplate, opts); - }; - GitHost.prototype.git = function(opts) { - return this._fill(this.gittemplate, opts); - }; - GitHost.prototype.shortcut = function(opts) { - return this._fill(this.shortcuttemplate, opts); - }; - GitHost.prototype.path = function(opts) { - return this._fill(this.pathtemplate, opts); - }; - GitHost.prototype.tarball = function(opts_) { - var opts = extend({}, opts_, {noCommittish: false}); - return this._fill(this.tarballtemplate, opts); - }; - GitHost.prototype.file = function(P, opts) { - return this._fill(this.filetemplate, extend({path: P}, opts)); - }; - GitHost.prototype.getDefaultRepresentation = function() { - return this.default; - }; - GitHost.prototype.toString = function(opts) { - if (this.default && typeof this[this.default] === "function") - return this[this.default](opts); - return this.sshurl(opts); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-2.8.9-62c44fa93f-c955394bda.zip/node_modules/hosted-git-info/index.js - var require_hosted_git_info2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-2.8.9-62c44fa93f-c955394bda.zip/node_modules/hosted-git-info/index.js"(exports, module) { - "use strict"; - var url = __require("url"); - var gitHosts = require_git_host_info2(); - var GitHost = module.exports = require_git_host2(); - var protocolToRepresentationMap = { - "git+ssh:": "sshurl", - "git+https:": "https", - "ssh:": "sshurl", - "git:": "git" - }; - function protocolToRepresentation(protocol) { - return protocolToRepresentationMap[protocol] || protocol.slice(0, -1); - } - var authProtocols = { - "git:": true, - "https:": true, - "git+https:": true, - "http:": true, - "git+http:": true - }; - var cache = {}; - module.exports.fromUrl = function(giturl, opts) { - if (typeof giturl !== "string") - return; - var key = giturl + JSON.stringify(opts || {}); - if (!(key in cache)) { - cache[key] = fromUrl(giturl, opts); - } - return cache[key]; - }; - function fromUrl(giturl, opts) { - if (giturl == null || giturl === "") - return; - var url2 = fixupUnqualifiedGist(isGitHubShorthand(giturl) ? "github:" + giturl : giturl); - var parsed = parseGitUrl(url2); - var shortcutMatch = url2.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/); - var matches = Object.keys(gitHosts).map(function(gitHostName) { - try { - var gitHostInfo = gitHosts[gitHostName]; - var auth = null; - if (parsed.auth && authProtocols[parsed.protocol]) { - auth = parsed.auth; - } - var committish = parsed.hash ? decodeURIComponent(parsed.hash.substr(1)) : null; - var user = null; - var project = null; - var defaultRepresentation = null; - if (shortcutMatch && shortcutMatch[1] === gitHostName) { - user = shortcutMatch[2] && decodeURIComponent(shortcutMatch[2]); - project = decodeURIComponent(shortcutMatch[3].replace(/\.git$/, "")); - defaultRepresentation = "shortcut"; - } else { - if (parsed.host && parsed.host !== gitHostInfo.domain && parsed.host.replace(/^www[.]/, "") !== gitHostInfo.domain) - return; - if (!gitHostInfo.protocols_re.test(parsed.protocol)) - return; - if (!parsed.path) - return; - var pathmatch = gitHostInfo.pathmatch; - var matched = parsed.path.match(pathmatch); - if (!matched) - return; - if (matched[1] !== null && matched[1] !== void 0) { - user = decodeURIComponent(matched[1].replace(/^:/, "")); - } - project = decodeURIComponent(matched[2]); - defaultRepresentation = protocolToRepresentation(parsed.protocol); - } - return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts); - } catch (ex) { - if (ex instanceof URIError) { - } else - throw ex; - } - }).filter(function(gitHostInfo) { - return gitHostInfo; - }); - if (matches.length !== 1) - return; - return matches[0]; - } - function isGitHubShorthand(arg) { - return /^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(arg); - } - function fixupUnqualifiedGist(giturl) { - var parsed = url.parse(giturl); - if (parsed.protocol === "gist:" && parsed.host && !parsed.path) { - return parsed.protocol + "/" + parsed.host; - } else { - return giturl; - } - } - function parseGitUrl(giturl) { - var matched = giturl.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/); - if (!matched) { - var legacy = url.parse(giturl); - if (legacy.auth && typeof url.URL === "function") { - var authmatch = giturl.match(/[^@]+@[^:/]+/); - if (authmatch) { - var whatwg = new url.URL(authmatch[0]); - legacy.auth = whatwg.username || ""; - if (whatwg.password) - legacy.auth += ":" + whatwg.password; - } - } - return legacy; - } - return { - protocol: "git+ssh:", - slashes: true, - auth: matched[1], - host: matched[2], - port: null, - hostname: matched[2], - hash: matched[4], - search: null, - query: null, - pathname: "/" + matched[3], - path: "/" + matched[3], - href: "git+ssh://" + matched[1] + "@" + matched[2] + "/" + matched[3] + (matched[4] || "") - }; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/homedir.js - var require_homedir = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/homedir.js"(exports, module) { - "use strict"; - var os = __require("os"); - module.exports = os.homedir || function homedir() { - var home = process.env.HOME; - var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME; - if (process.platform === "win32") { - return process.env.USERPROFILE || process.env.HOMEDRIVE + process.env.HOMEPATH || home || null; - } - if (process.platform === "darwin") { - return home || (user ? "/Users/" + user : null); - } - if (process.platform === "linux") { - return home || (process.getuid() === 0 ? "/root" : user ? "/home/" + user : null); - } - return home || null; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/caller.js - var require_caller = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/caller.js"(exports, module) { - module.exports = function() { - var origPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = function(_, stack2) { - return stack2; - }; - var stack = new Error().stack; - Error.prepareStackTrace = origPrepareStackTrace; - return stack[2].getFileName(); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip/node_modules/path-parse/index.js - var require_path_parse = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip/node_modules/path-parse/index.js"(exports, module) { - "use strict"; - var isWindows = process.platform === "win32"; - var splitWindowsRe = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/; - var win32 = {}; - function win32SplitPath(filename) { - return splitWindowsRe.exec(filename).slice(1); - } - win32.parse = function(pathString) { - if (typeof pathString !== "string") { - throw new TypeError("Parameter 'pathString' must be a string, not " + typeof pathString); - } - var allParts = win32SplitPath(pathString); - if (!allParts || allParts.length !== 5) { - throw new TypeError("Invalid path '" + pathString + "'"); - } - return { - root: allParts[1], - dir: allParts[0] === allParts[1] ? allParts[0] : allParts[0].slice(0, -1), - base: allParts[2], - ext: allParts[4], - name: allParts[3] - }; - }; - var splitPathRe = /^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/; - var posix = {}; - function posixSplitPath(filename) { - return splitPathRe.exec(filename).slice(1); - } - posix.parse = function(pathString) { - if (typeof pathString !== "string") { - throw new TypeError("Parameter 'pathString' must be a string, not " + typeof pathString); - } - var allParts = posixSplitPath(pathString); - if (!allParts || allParts.length !== 5) { - throw new TypeError("Invalid path '" + pathString + "'"); - } - return { - root: allParts[1], - dir: allParts[0].slice(0, -1), - base: allParts[2], - ext: allParts[4], - name: allParts[3] - }; - }; - if (isWindows) - module.exports = win32.parse; - else - module.exports = posix.parse; - module.exports.posix = posix.parse; - module.exports.win32 = win32.parse; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/node-modules-paths.js - var require_node_modules_paths = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/node-modules-paths.js"(exports, module) { - var path = __require("path"); - var parse = path.parse || require_path_parse(); - var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) { - var prefix = "/"; - if (/^([A-Za-z]:)/.test(absoluteStart)) { - prefix = ""; - } else if (/^\\\\/.test(absoluteStart)) { - prefix = "\\\\"; - } - var paths = [absoluteStart]; - var parsed = parse(absoluteStart); - while (parsed.dir !== paths[paths.length - 1]) { - paths.push(parsed.dir); - parsed = parse(parsed.dir); - } - return paths.reduce(function(dirs, aPath) { - return dirs.concat(modules.map(function(moduleDir) { - return path.resolve(prefix, aPath, moduleDir); - })); - }, []); - }; - module.exports = function nodeModulesPaths(start, opts, request) { - var modules = opts && opts.moduleDirectory ? [].concat(opts.moduleDirectory) : ["node_modules"]; - if (opts && typeof opts.paths === "function") { - return opts.paths(request, start, function() { - return getNodeModulesDirs(start, modules); - }, opts); - } - var dirs = getNodeModulesDirs(start, modules); - return opts && opts.paths ? dirs.concat(opts.paths) : dirs; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/normalize-options.js - var require_normalize_options = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/normalize-options.js"(exports, module) { - var path = __require("path"); - module.exports = function(_, opts) { - opts = opts || {}; - if (opts.forceNodeResolution || !process.versions.pnp) - return opts; - const {findPnpApi} = __require("module"); - const runPnpResolution = (request, basedir) => { - const parts = request.match(/^((?:@[^/]+\/)?[^/]+)(\/.*)?/); - if (!parts) - throw new Error(`Assertion failed: Expected the "resolve" package to call the "paths" callback with package names only (got "${request}")`); - if (basedir.charAt(basedir.length - 1) !== `/`) - basedir = path.join(basedir, `/`); - const api = findPnpApi(basedir); - if (api === null) - return void 0; - let manifestPath; - try { - manifestPath = api.resolveToUnqualified(`${parts[1]}/package.json`, basedir, {considerBuiltins: false}); - } catch (err) { - return null; - } - if (manifestPath === null) - throw new Error(`Assertion failed: The resolution thinks that "${parts[1]}" is a Node builtin`); - const packagePath = path.dirname(manifestPath); - const unqualifiedPath = typeof parts[2] !== `undefined` ? path.join(packagePath, parts[2]) : packagePath; - return {packagePath, unqualifiedPath}; - }; - const runPnpResolutionOnArray = (request, paths2) => { - for (let i = 0; i < paths2.length; i++) { - const resolution = runPnpResolution(request, paths2[i]); - if (resolution || i === paths2.length - 1) { - return resolution; - } - } - return null; - }; - const originalPaths = Array.isArray(opts.paths) ? opts.paths : []; - const packageIterator = (request, basedir, getCandidates, opts2) => { - const pathsToTest = [basedir].concat(originalPaths); - const resolution = runPnpResolutionOnArray(request, pathsToTest); - if (resolution == null) - return getCandidates(); - return [resolution.unqualifiedPath]; - }; - const paths = (request, basedir, getNodeModulePaths, opts2) => { - const pathsToTest = [basedir].concat(originalPaths); - const resolution = runPnpResolutionOnArray(request, pathsToTest); - if (resolution == null) - return getNodeModulePaths().concat(originalPaths); - let nodeModules = path.dirname(resolution.packagePath); - if (request.match(/^@[^/]+\//)) - nodeModules = path.dirname(nodeModules); - return [nodeModules]; - }; - let isInsideIterator = false; - if (!opts.__skipPackageIterator) { - opts.packageIterator = function(request, basedir, getCandidates, opts2) { - isInsideIterator = true; - try { - return packageIterator(request, basedir, getCandidates, opts2); - } finally { - isInsideIterator = false; - } - }; - } - opts.paths = function(request, basedir, getNodeModulePaths, opts2) { - if (isInsideIterator) - return getNodeModulePaths().concat(originalPaths); - return paths(request, basedir, getNodeModulePaths, opts2); - }; - return opts; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/async.js - var require_async = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/async.js"(exports, module) { - var fs = __require("fs"); - var getHomedir = require_homedir(); - var path = __require("path"); - var caller = require_caller(); - var nodeModulesPaths = require_node_modules_paths(); - var normalizeOptions = require_normalize_options(); - var isCore = require_is_core_module(); - var realpathFS = fs.realpath && typeof fs.realpath.native === "function" ? fs.realpath.native : fs.realpath; - var homedir = getHomedir(); - var defaultPaths = function() { - return [ - path.join(homedir, ".node_modules"), - path.join(homedir, ".node_libraries") - ]; - }; - var defaultIsFile = function isFile(file, cb) { - fs.stat(file, function(err, stat) { - if (!err) { - return cb(null, stat.isFile() || stat.isFIFO()); - } - if (err.code === "ENOENT" || err.code === "ENOTDIR") - return cb(null, false); - return cb(err); - }); - }; - var defaultIsDir = function isDirectory(dir, cb) { - fs.stat(dir, function(err, stat) { - if (!err) { - return cb(null, stat.isDirectory()); - } - if (err.code === "ENOENT" || err.code === "ENOTDIR") - return cb(null, false); - return cb(err); - }); - }; - var defaultRealpath = function realpath(x, cb) { - realpathFS(x, function(realpathErr, realPath) { - if (realpathErr && realpathErr.code !== "ENOENT") - cb(realpathErr); - else - cb(null, realpathErr ? x : realPath); - }); - }; - var maybeRealpath = function maybeRealpath2(realpath, x, opts, cb) { - if (opts && opts.preserveSymlinks === false) { - realpath(x, cb); - } else { - cb(null, x); - } - }; - var defaultReadPackage = function defaultReadPackage2(readFile, pkgfile, cb) { - readFile(pkgfile, function(readFileErr, body) { - if (readFileErr) - cb(readFileErr); - else { - try { - var pkg = JSON.parse(body); - cb(null, pkg); - } catch (jsonErr) { - cb(null); - } - } - }); - }; - var getPackageCandidates = function getPackageCandidates2(x, start, opts) { - var dirs = nodeModulesPaths(start, opts, x); - for (var i = 0; i < dirs.length; i++) { - dirs[i] = path.join(dirs[i], x); - } - return dirs; - }; - module.exports = function resolve(x, options, callback) { - var cb = callback; - var opts = options; - if (typeof options === "function") { - cb = opts; - opts = {}; - } - if (typeof x !== "string") { - var err = new TypeError("Path must be a string."); - return process.nextTick(function() { - cb(err); - }); - } - opts = normalizeOptions(x, opts); - var isFile = opts.isFile || defaultIsFile; - var isDirectory = opts.isDirectory || defaultIsDir; - var readFile = opts.readFile || fs.readFile; - var realpath = opts.realpath || defaultRealpath; - var readPackage = opts.readPackage || defaultReadPackage; - if (opts.readFile && opts.readPackage) { - var conflictErr = new TypeError("`readFile` and `readPackage` are mutually exclusive."); - return process.nextTick(function() { - cb(conflictErr); - }); - } - var packageIterator = opts.packageIterator; - var extensions = opts.extensions || [".js"]; - var includeCoreModules = opts.includeCoreModules !== false; - var basedir = opts.basedir || path.dirname(caller()); - var parent = opts.filename || basedir; - opts.paths = opts.paths || defaultPaths(); - var absoluteStart = path.resolve(basedir); - maybeRealpath(realpath, absoluteStart, opts, function(err2, realStart) { - if (err2) - cb(err2); - else - init(realStart); - }); - var res; - function init(basedir2) { - if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) { - res = path.resolve(basedir2, x); - if (x === "." || x === ".." || x.slice(-1) === "/") - res += "/"; - if (/\/$/.test(x) && res === basedir2) { - loadAsDirectory(res, opts.package, onfile); - } else - loadAsFile(res, opts.package, onfile); - } else if (includeCoreModules && isCore(x)) { - return cb(null, x); - } else - loadNodeModules(x, basedir2, function(err2, n, pkg) { - if (err2) - cb(err2); - else if (n) { - return maybeRealpath(realpath, n, opts, function(err3, realN) { - if (err3) { - cb(err3); - } else { - cb(null, realN, pkg); - } - }); - } else { - var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'"); - moduleError.code = "MODULE_NOT_FOUND"; - cb(moduleError); - } - }); - } - function onfile(err2, m, pkg) { - if (err2) - cb(err2); - else if (m) - cb(null, m, pkg); - else - loadAsDirectory(res, function(err3, d, pkg2) { - if (err3) - cb(err3); - else if (d) { - maybeRealpath(realpath, d, opts, function(err4, realD) { - if (err4) { - cb(err4); - } else { - cb(null, realD, pkg2); - } - }); - } else { - var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'"); - moduleError.code = "MODULE_NOT_FOUND"; - cb(moduleError); - } - }); - } - function loadAsFile(x2, thePackage, callback2) { - var loadAsFilePackage = thePackage; - var cb2 = callback2; - if (typeof loadAsFilePackage === "function") { - cb2 = loadAsFilePackage; - loadAsFilePackage = void 0; - } - var exts = [""].concat(extensions); - load(exts, x2, loadAsFilePackage); - function load(exts2, x3, loadPackage) { - if (exts2.length === 0) - return cb2(null, void 0, loadPackage); - var file = x3 + exts2[0]; - var pkg = loadPackage; - if (pkg) - onpkg(null, pkg); - else - loadpkg(path.dirname(file), onpkg); - function onpkg(err2, pkg_, dir) { - pkg = pkg_; - if (err2) - return cb2(err2); - if (dir && pkg && opts.pathFilter) { - var rfile = path.relative(dir, file); - var rel = rfile.slice(0, rfile.length - exts2[0].length); - var r = opts.pathFilter(pkg, x3, rel); - if (r) - return load([""].concat(extensions.slice()), path.resolve(dir, r), pkg); - } - isFile(file, onex); - } - function onex(err2, ex) { - if (err2) - return cb2(err2); - if (ex) - return cb2(null, file, pkg); - load(exts2.slice(1), x3, pkg); - } - } - } - function loadpkg(dir, cb2) { - if (dir === "" || dir === "/") - return cb2(null); - if (process.platform === "win32" && /^\w:[/\\]*$/.test(dir)) { - return cb2(null); - } - if (/[/\\]node_modules[/\\]*$/.test(dir)) - return cb2(null); - maybeRealpath(realpath, dir, opts, function(unwrapErr, pkgdir) { - if (unwrapErr) - return loadpkg(path.dirname(dir), cb2); - var pkgfile = path.join(pkgdir, "package.json"); - isFile(pkgfile, function(err2, ex) { - if (!ex) - return loadpkg(path.dirname(dir), cb2); - readPackage(readFile, pkgfile, function(err3, pkgParam) { - if (err3) - cb2(err3); - var pkg = pkgParam; - if (pkg && opts.packageFilter) { - pkg = opts.packageFilter(pkg, pkgfile); - } - cb2(null, pkg, dir); - }); - }); - }); - } - function loadAsDirectory(x2, loadAsDirectoryPackage, callback2) { - var cb2 = callback2; - var fpkg = loadAsDirectoryPackage; - if (typeof fpkg === "function") { - cb2 = fpkg; - fpkg = opts.package; - } - maybeRealpath(realpath, x2, opts, function(unwrapErr, pkgdir) { - if (unwrapErr) - return cb2(unwrapErr); - var pkgfile = path.join(pkgdir, "package.json"); - isFile(pkgfile, function(err2, ex) { - if (err2) - return cb2(err2); - if (!ex) - return loadAsFile(path.join(x2, "index"), fpkg, cb2); - readPackage(readFile, pkgfile, function(err3, pkgParam) { - if (err3) - return cb2(err3); - var pkg = pkgParam; - if (pkg && opts.packageFilter) { - pkg = opts.packageFilter(pkg, pkgfile); - } - if (pkg && pkg.main) { - if (typeof pkg.main !== "string") { - var mainError = new TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string"); - mainError.code = "INVALID_PACKAGE_MAIN"; - return cb2(mainError); - } - if (pkg.main === "." || pkg.main === "./") { - pkg.main = "index"; - } - loadAsFile(path.resolve(x2, pkg.main), pkg, function(err4, m, pkg2) { - if (err4) - return cb2(err4); - if (m) - return cb2(null, m, pkg2); - if (!pkg2) - return loadAsFile(path.join(x2, "index"), pkg2, cb2); - var dir = path.resolve(x2, pkg2.main); - loadAsDirectory(dir, pkg2, function(err5, n, pkg3) { - if (err5) - return cb2(err5); - if (n) - return cb2(null, n, pkg3); - loadAsFile(path.join(x2, "index"), pkg3, cb2); - }); - }); - return; - } - loadAsFile(path.join(x2, "/index"), pkg, cb2); - }); - }); - }); - } - function processDirs(cb2, dirs) { - if (dirs.length === 0) - return cb2(null, void 0); - var dir = dirs[0]; - isDirectory(path.dirname(dir), isdir); - function isdir(err2, isdir2) { - if (err2) - return cb2(err2); - if (!isdir2) - return processDirs(cb2, dirs.slice(1)); - loadAsFile(dir, opts.package, onfile2); - } - function onfile2(err2, m, pkg) { - if (err2) - return cb2(err2); - if (m) - return cb2(null, m, pkg); - loadAsDirectory(dir, opts.package, ondir); - } - function ondir(err2, n, pkg) { - if (err2) - return cb2(err2); - if (n) - return cb2(null, n, pkg); - processDirs(cb2, dirs.slice(1)); - } - } - function loadNodeModules(x2, start, cb2) { - var thunk = function() { - return getPackageCandidates(x2, start, opts); - }; - processDirs(cb2, packageIterator ? packageIterator(x2, start, thunk, opts) : thunk()); - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/core.json - var require_core2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/core.json"(exports, module) { - module.exports = { - assert: true, - "node:assert": [">= 14.18 && < 15", ">= 16"], - "assert/strict": ">= 15", - "node:assert/strict": ">= 16", - async_hooks: ">= 8", - "node:async_hooks": [">= 14.18 && < 15", ">= 16"], - buffer_ieee754: ">= 0.5 && < 0.9.7", - buffer: true, - "node:buffer": [">= 14.18 && < 15", ">= 16"], - child_process: true, - "node:child_process": [">= 14.18 && < 15", ">= 16"], - cluster: ">= 0.5", - "node:cluster": [">= 14.18 && < 15", ">= 16"], - console: true, - "node:console": [">= 14.18 && < 15", ">= 16"], - constants: true, - "node:constants": [">= 14.18 && < 15", ">= 16"], - crypto: true, - "node:crypto": [">= 14.18 && < 15", ">= 16"], - _debug_agent: ">= 1 && < 8", - _debugger: "< 8", - dgram: true, - "node:dgram": [">= 14.18 && < 15", ">= 16"], - diagnostics_channel: [">= 14.17 && < 15", ">= 15.1"], - "node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"], - dns: true, - "node:dns": [">= 14.18 && < 15", ">= 16"], - "dns/promises": ">= 15", - "node:dns/promises": ">= 16", - domain: ">= 0.7.12", - "node:domain": [">= 14.18 && < 15", ">= 16"], - events: true, - "node:events": [">= 14.18 && < 15", ">= 16"], - freelist: "< 6", - fs: true, - "node:fs": [">= 14.18 && < 15", ">= 16"], - "fs/promises": [">= 10 && < 10.1", ">= 14"], - "node:fs/promises": [">= 14.18 && < 15", ">= 16"], - _http_agent: ">= 0.11.1", - "node:_http_agent": [">= 14.18 && < 15", ">= 16"], - _http_client: ">= 0.11.1", - "node:_http_client": [">= 14.18 && < 15", ">= 16"], - _http_common: ">= 0.11.1", - "node:_http_common": [">= 14.18 && < 15", ">= 16"], - _http_incoming: ">= 0.11.1", - "node:_http_incoming": [">= 14.18 && < 15", ">= 16"], - _http_outgoing: ">= 0.11.1", - "node:_http_outgoing": [">= 14.18 && < 15", ">= 16"], - _http_server: ">= 0.11.1", - "node:_http_server": [">= 14.18 && < 15", ">= 16"], - http: true, - "node:http": [">= 14.18 && < 15", ">= 16"], - http2: ">= 8.8", - "node:http2": [">= 14.18 && < 15", ">= 16"], - https: true, - "node:https": [">= 14.18 && < 15", ">= 16"], - inspector: ">= 8", - "node:inspector": [">= 14.18 && < 15", ">= 16"], - _linklist: "< 8", - module: true, - "node:module": [">= 14.18 && < 15", ">= 16"], - net: true, - "node:net": [">= 14.18 && < 15", ">= 16"], - "node-inspect/lib/_inspect": ">= 7.6 && < 12", - "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12", - "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12", - os: true, - "node:os": [">= 14.18 && < 15", ">= 16"], - path: true, - "node:path": [">= 14.18 && < 15", ">= 16"], - "path/posix": ">= 15.3", - "node:path/posix": ">= 16", - "path/win32": ">= 15.3", - "node:path/win32": ">= 16", - perf_hooks: ">= 8.5", - "node:perf_hooks": [">= 14.18 && < 15", ">= 16"], - process: ">= 1", - "node:process": [">= 14.18 && < 15", ">= 16"], - punycode: ">= 0.5", - "node:punycode": [">= 14.18 && < 15", ">= 16"], - querystring: true, - "node:querystring": [">= 14.18 && < 15", ">= 16"], - readline: true, - "node:readline": [">= 14.18 && < 15", ">= 16"], - "readline/promises": ">= 17", - "node:readline/promises": ">= 17", - repl: true, - "node:repl": [">= 14.18 && < 15", ">= 16"], - smalloc: ">= 0.11.5 && < 3", - _stream_duplex: ">= 0.9.4", - "node:_stream_duplex": [">= 14.18 && < 15", ">= 16"], - _stream_transform: ">= 0.9.4", - "node:_stream_transform": [">= 14.18 && < 15", ">= 16"], - _stream_wrap: ">= 1.4.1", - "node:_stream_wrap": [">= 14.18 && < 15", ">= 16"], - _stream_passthrough: ">= 0.9.4", - "node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"], - _stream_readable: ">= 0.9.4", - "node:_stream_readable": [">= 14.18 && < 15", ">= 16"], - _stream_writable: ">= 0.9.4", - "node:_stream_writable": [">= 14.18 && < 15", ">= 16"], - stream: true, - "node:stream": [">= 14.18 && < 15", ">= 16"], - "stream/consumers": ">= 16.7", - "node:stream/consumers": ">= 16.7", - "stream/promises": ">= 15", - "node:stream/promises": ">= 16", - "stream/web": ">= 16.5", - "node:stream/web": ">= 16.5", - string_decoder: true, - "node:string_decoder": [">= 14.18 && < 15", ">= 16"], - sys: [">= 0.4 && < 0.7", ">= 0.8"], - "node:sys": [">= 14.18 && < 15", ">= 16"], - timers: true, - "node:timers": [">= 14.18 && < 15", ">= 16"], - "timers/promises": ">= 15", - "node:timers/promises": ">= 16", - _tls_common: ">= 0.11.13", - "node:_tls_common": [">= 14.18 && < 15", ">= 16"], - _tls_legacy: ">= 0.11.3 && < 10", - _tls_wrap: ">= 0.11.3", - "node:_tls_wrap": [">= 14.18 && < 15", ">= 16"], - tls: true, - "node:tls": [">= 14.18 && < 15", ">= 16"], - trace_events: ">= 10", - "node:trace_events": [">= 14.18 && < 15", ">= 16"], - tty: true, - "node:tty": [">= 14.18 && < 15", ">= 16"], - url: true, - "node:url": [">= 14.18 && < 15", ">= 16"], - util: true, - "node:util": [">= 14.18 && < 15", ">= 16"], - "util/types": ">= 15.3", - "node:util/types": ">= 16", - "v8/tools/arguments": ">= 10 && < 12", - "v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"], - v8: ">= 1", - "node:v8": [">= 14.18 && < 15", ">= 16"], - vm: true, - "node:vm": [">= 14.18 && < 15", ">= 16"], - wasi: ">= 13.4 && < 13.5", - worker_threads: ">= 11.7", - "node:worker_threads": [">= 14.18 && < 15", ">= 16"], - zlib: ">= 0.5", - "node:zlib": [">= 14.18 && < 15", ">= 16"] - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/core.js - var require_core3 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/core.js"(exports, module) { - var current = process.versions && process.versions.node && process.versions.node.split(".") || []; - function specifierIncluded(specifier) { - var parts = specifier.split(" "); - var op = parts.length > 1 ? parts[0] : "="; - var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split("."); - for (var i = 0; i < 3; ++i) { - var cur = parseInt(current[i] || 0, 10); - var ver = parseInt(versionParts[i] || 0, 10); - if (cur === ver) { - continue; - } - if (op === "<") { - return cur < ver; - } else if (op === ">=") { - return cur >= ver; - } - return false; - } - return op === ">="; - } - function matchesRange(range) { - var specifiers = range.split(/ ?&& ?/); - if (specifiers.length === 0) { - return false; - } - for (var i = 0; i < specifiers.length; ++i) { - if (!specifierIncluded(specifiers[i])) { - return false; - } - } - return true; - } - function versionIncluded(specifierValue) { - if (typeof specifierValue === "boolean") { - return specifierValue; - } - if (specifierValue && typeof specifierValue === "object") { - for (var i = 0; i < specifierValue.length; ++i) { - if (matchesRange(specifierValue[i])) { - return true; - } - } - return false; - } - return matchesRange(specifierValue); - } - var data = require_core2(); - var core = {}; - for (var mod in data) { - if (Object.prototype.hasOwnProperty.call(data, mod)) { - core[mod] = versionIncluded(data[mod]); - } - } - module.exports = core; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/is-core.js - var require_is_core = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/is-core.js"(exports, module) { - var isCoreModule = require_is_core_module(); - module.exports = function isCore(x) { - return isCoreModule(x); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/sync.js - var require_sync = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/sync.js"(exports, module) { - var isCore = require_is_core_module(); - var fs = __require("fs"); - var path = __require("path"); - var getHomedir = require_homedir(); - var caller = require_caller(); - var nodeModulesPaths = require_node_modules_paths(); - var normalizeOptions = require_normalize_options(); - var realpathFS = fs.realpathSync && typeof fs.realpathSync.native === "function" ? fs.realpathSync.native : fs.realpathSync; - var homedir = getHomedir(); - var defaultPaths = function() { - return [ - path.join(homedir, ".node_modules"), - path.join(homedir, ".node_libraries") - ]; - }; - var defaultIsFile = function isFile(file) { - try { - var stat = fs.statSync(file, {throwIfNoEntry: false}); - } catch (e) { - if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) - return false; - throw e; - } - return !!stat && (stat.isFile() || stat.isFIFO()); - }; - var defaultIsDir = function isDirectory(dir) { - try { - var stat = fs.statSync(dir, {throwIfNoEntry: false}); - } catch (e) { - if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) - return false; - throw e; - } - return !!stat && stat.isDirectory(); - }; - var defaultRealpathSync = function realpathSync(x) { - try { - return realpathFS(x); - } catch (realpathErr) { - if (realpathErr.code !== "ENOENT") { - throw realpathErr; - } - } - return x; - }; - var maybeRealpathSync = function maybeRealpathSync2(realpathSync, x, opts) { - if (opts && opts.preserveSymlinks === false) { - return realpathSync(x); - } - return x; - }; - var defaultReadPackageSync = function defaultReadPackageSync2(readFileSync, pkgfile) { - var body = readFileSync(pkgfile); - try { - var pkg = JSON.parse(body); - return pkg; - } catch (jsonErr) { - } - }; - var getPackageCandidates = function getPackageCandidates2(x, start, opts) { - var dirs = nodeModulesPaths(start, opts, x); - for (var i = 0; i < dirs.length; i++) { - dirs[i] = path.join(dirs[i], x); - } - return dirs; - }; - module.exports = function resolveSync(x, options) { - if (typeof x !== "string") { - throw new TypeError("Path must be a string."); - } - var opts = normalizeOptions(x, options); - var isFile = opts.isFile || defaultIsFile; - var readFileSync = opts.readFileSync || fs.readFileSync; - var isDirectory = opts.isDirectory || defaultIsDir; - var realpathSync = opts.realpathSync || defaultRealpathSync; - var readPackageSync = opts.readPackageSync || defaultReadPackageSync; - if (opts.readFileSync && opts.readPackageSync) { - throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive."); - } - var packageIterator = opts.packageIterator; - var extensions = opts.extensions || [".js"]; - var includeCoreModules = opts.includeCoreModules !== false; - var basedir = opts.basedir || path.dirname(caller()); - var parent = opts.filename || basedir; - opts.paths = opts.paths || defaultPaths(); - var absoluteStart = maybeRealpathSync(realpathSync, path.resolve(basedir), opts); - if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) { - var res = path.resolve(absoluteStart, x); - if (x === "." || x === ".." || x.slice(-1) === "/") - res += "/"; - var m = loadAsFileSync(res) || loadAsDirectorySync(res); - if (m) - return maybeRealpathSync(realpathSync, m, opts); - } else if (includeCoreModules && isCore(x)) { - return x; - } else { - var n = loadNodeModulesSync(x, absoluteStart); - if (n) - return maybeRealpathSync(realpathSync, n, opts); - } - var err = new Error("Cannot find module '" + x + "' from '" + parent + "'"); - err.code = "MODULE_NOT_FOUND"; - throw err; - function loadAsFileSync(x2) { - var pkg = loadpkg(path.dirname(x2)); - if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) { - var rfile = path.relative(pkg.dir, x2); - var r = opts.pathFilter(pkg.pkg, x2, rfile); - if (r) { - x2 = path.resolve(pkg.dir, r); - } - } - if (isFile(x2)) { - return x2; - } - for (var i = 0; i < extensions.length; i++) { - var file = x2 + extensions[i]; - if (isFile(file)) { - return file; - } - } - } - function loadpkg(dir) { - if (dir === "" || dir === "/") - return; - if (process.platform === "win32" && /^\w:[/\\]*$/.test(dir)) { - return; - } - if (/[/\\]node_modules[/\\]*$/.test(dir)) - return; - var pkgfile = path.join(maybeRealpathSync(realpathSync, dir, opts), "package.json"); - if (!isFile(pkgfile)) { - return loadpkg(path.dirname(dir)); - } - var pkg = readPackageSync(readFileSync, pkgfile); - if (pkg && opts.packageFilter) { - pkg = opts.packageFilter(pkg, dir); - } - return {pkg, dir}; - } - function loadAsDirectorySync(x2) { - var pkgfile = path.join(maybeRealpathSync(realpathSync, x2, opts), "/package.json"); - if (isFile(pkgfile)) { - try { - var pkg = readPackageSync(readFileSync, pkgfile); - } catch (e) { - } - if (pkg && opts.packageFilter) { - pkg = opts.packageFilter(pkg, x2); - } - if (pkg && pkg.main) { - if (typeof pkg.main !== "string") { - var mainError = new TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string"); - mainError.code = "INVALID_PACKAGE_MAIN"; - throw mainError; - } - if (pkg.main === "." || pkg.main === "./") { - pkg.main = "index"; - } - try { - var m2 = loadAsFileSync(path.resolve(x2, pkg.main)); - if (m2) - return m2; - var n2 = loadAsDirectorySync(path.resolve(x2, pkg.main)); - if (n2) - return n2; - } catch (e) { - } - } - } - return loadAsFileSync(path.join(x2, "/index")); - } - function loadNodeModulesSync(x2, start) { - var thunk = function() { - return getPackageCandidates(x2, start, opts); - }; - var dirs = packageIterator ? packageIterator(x2, start, thunk, opts) : thunk(); - for (var i = 0; i < dirs.length; i++) { - var dir = dirs[i]; - if (isDirectory(path.dirname(dir))) { - var m2 = loadAsFileSync(dir); - if (m2) - return m2; - var n2 = loadAsDirectorySync(dir); - if (n2) - return n2; - } - } - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/index.js - var require_resolve = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/index.js"(exports, module) { - var async = require_async(); - async.core = require_core3(); - async.isCore = require_is_core(); - async.sync = require_sync(); - module.exports = async; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/extract_description.js - var require_extract_description2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/extract_description.js"(exports, module) { - module.exports = extractDescription; - function extractDescription(d) { - if (!d) - return; - if (d === "ERROR: No README data found!") - return; - d = d.trim().split("\n"); - for (var s = 0; d[s] && d[s].trim().match(/^(#|$)/); s++) - ; - var l = d.length; - for (var e = s + 1; e < l && d[e].trim(); e++) - ; - return d.slice(s, e).join(" ").trim(); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/typos.json - var require_typos2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/typos.json"(exports, module) { - module.exports = { - topLevel: { - dependancies: "dependencies", - dependecies: "dependencies", - depdenencies: "dependencies", - devEependencies: "devDependencies", - depends: "dependencies", - "dev-dependencies": "devDependencies", - devDependences: "devDependencies", - devDepenencies: "devDependencies", - devdependencies: "devDependencies", - repostitory: "repository", - repo: "repository", - prefereGlobal: "preferGlobal", - hompage: "homepage", - hampage: "homepage", - autohr: "author", - autor: "author", - contributers: "contributors", - publicationConfig: "publishConfig", - script: "scripts" - }, - bugs: {web: "url", name: "url"}, - script: {server: "start", tests: "test"} - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/fixer.js - var require_fixer2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/fixer.js"(exports, module) { - var semver4 = __require("semver"); - var validateLicense = require_validate_npm_package_license(); - var hostedGitInfo = require_hosted_git_info2(); - var isBuiltinModule = require_resolve().isCore; - var depTypes = ["dependencies", "devDependencies", "optionalDependencies"]; - var extractDescription = require_extract_description2(); - var url = __require("url"); - var typos = require_typos2(); - var fixer = module.exports = { - warn: function() { - }, - fixRepositoryField: function(data) { - if (data.repositories) { - this.warn("repositories"); - data.repository = data.repositories[0]; - } - if (!data.repository) - return this.warn("missingRepository"); - if (typeof data.repository === "string") { - data.repository = { - type: "git", - url: data.repository - }; - } - var r = data.repository.url || ""; - if (r) { - var hosted = hostedGitInfo.fromUrl(r); - if (hosted) { - r = data.repository.url = hosted.getDefaultRepresentation() == "shortcut" ? hosted.https() : hosted.toString(); - } - } - if (r.match(/github.com\/[^\/]+\/[^\/]+\.git\.git$/)) { - this.warn("brokenGitUrl", r); - } - }, - fixTypos: function(data) { - Object.keys(typos.topLevel).forEach(function(d) { - if (data.hasOwnProperty(d)) { - this.warn("typo", d, typos.topLevel[d]); - } - }, this); - }, - fixScriptsField: function(data) { - if (!data.scripts) - return; - if (typeof data.scripts !== "object") { - this.warn("nonObjectScripts"); - delete data.scripts; - return; - } - Object.keys(data.scripts).forEach(function(k) { - if (typeof data.scripts[k] !== "string") { - this.warn("nonStringScript"); - delete data.scripts[k]; - } else if (typos.script[k] && !data.scripts[typos.script[k]]) { - this.warn("typo", k, typos.script[k], "scripts"); - } - }, this); - }, - fixFilesField: function(data) { - var files = data.files; - if (files && !Array.isArray(files)) { - this.warn("nonArrayFiles"); - delete data.files; - } else if (data.files) { - data.files = data.files.filter(function(file) { - if (!file || typeof file !== "string") { - this.warn("invalidFilename", file); - return false; - } else { - return true; - } - }, this); - } - }, - fixBinField: function(data) { - if (!data.bin) - return; - if (typeof data.bin === "string") { - var b = {}; - var match; - if (match = data.name.match(/^@[^/]+[/](.*)$/)) { - b[match[1]] = data.bin; - } else { - b[data.name] = data.bin; - } - data.bin = b; - } - }, - fixManField: function(data) { - if (!data.man) - return; - if (typeof data.man === "string") { - data.man = [data.man]; - } - }, - fixBundleDependenciesField: function(data) { - var bdd = "bundledDependencies"; - var bd = "bundleDependencies"; - if (data[bdd] && !data[bd]) { - data[bd] = data[bdd]; - delete data[bdd]; - } - if (data[bd] && !Array.isArray(data[bd])) { - this.warn("nonArrayBundleDependencies"); - delete data[bd]; - } else if (data[bd]) { - data[bd] = data[bd].filter(function(bd2) { - if (!bd2 || typeof bd2 !== "string") { - this.warn("nonStringBundleDependency", bd2); - return false; - } else { - if (!data.dependencies) { - data.dependencies = {}; - } - if (!data.dependencies.hasOwnProperty(bd2)) { - this.warn("nonDependencyBundleDependency", bd2); - data.dependencies[bd2] = "*"; - } - return true; - } - }, this); - } - }, - fixDependencies: function(data, strict) { - var loose = !strict; - objectifyDeps(data, this.warn); - addOptionalDepsToDeps(data, this.warn); - this.fixBundleDependenciesField(data); - ["dependencies", "devDependencies"].forEach(function(deps) { - if (!(deps in data)) - return; - if (!data[deps] || typeof data[deps] !== "object") { - this.warn("nonObjectDependencies", deps); - delete data[deps]; - return; - } - Object.keys(data[deps]).forEach(function(d) { - var r = data[deps][d]; - if (typeof r !== "string") { - this.warn("nonStringDependency", d, JSON.stringify(r)); - delete data[deps][d]; - } - var hosted = hostedGitInfo.fromUrl(data[deps][d]); - if (hosted) - data[deps][d] = hosted.toString(); - }, this); - }, this); - }, - fixModulesField: function(data) { - if (data.modules) { - this.warn("deprecatedModules"); - delete data.modules; - } - }, - fixKeywordsField: function(data) { - if (typeof data.keywords === "string") { - data.keywords = data.keywords.split(/,\s+/); - } - if (data.keywords && !Array.isArray(data.keywords)) { - delete data.keywords; - this.warn("nonArrayKeywords"); - } else if (data.keywords) { - data.keywords = data.keywords.filter(function(kw) { - if (typeof kw !== "string" || !kw) { - this.warn("nonStringKeyword"); - return false; - } else { - return true; - } - }, this); - } - }, - fixVersionField: function(data, strict) { - var loose = !strict; - if (!data.version) { - data.version = ""; - return true; - } - if (!semver4.valid(data.version, loose)) { - throw new Error('Invalid version: "' + data.version + '"'); - } - data.version = semver4.clean(data.version, loose); - return true; - }, - fixPeople: function(data) { - modifyPeople(data, unParsePerson); - modifyPeople(data, parsePerson); - }, - fixNameField: function(data, options) { - if (typeof options === "boolean") - options = {strict: options}; - else if (typeof options === "undefined") - options = {}; - var strict = options.strict; - if (!data.name && !strict) { - data.name = ""; - return; - } - if (typeof data.name !== "string") { - throw new Error("name field must be a string."); - } - if (!strict) - data.name = data.name.trim(); - ensureValidName(data.name, strict, options.allowLegacyCase); - if (isBuiltinModule(data.name)) - this.warn("conflictingName", data.name); - }, - fixDescriptionField: function(data) { - if (data.description && typeof data.description !== "string") { - this.warn("nonStringDescription"); - delete data.description; - } - if (data.readme && !data.description) - data.description = extractDescription(data.readme); - if (data.description === void 0) - delete data.description; - if (!data.description) - this.warn("missingDescription"); - }, - fixReadmeField: function(data) { - if (!data.readme) { - this.warn("missingReadme"); - data.readme = "ERROR: No README data found!"; - } - }, - fixBugsField: function(data) { - if (!data.bugs && data.repository && data.repository.url) { - var hosted = hostedGitInfo.fromUrl(data.repository.url); - if (hosted && hosted.bugs()) { - data.bugs = {url: hosted.bugs()}; - } - } else if (data.bugs) { - var emailRe = /^.+@.*\..+$/; - if (typeof data.bugs == "string") { - if (emailRe.test(data.bugs)) - data.bugs = {email: data.bugs}; - else if (url.parse(data.bugs).protocol) - data.bugs = {url: data.bugs}; - else - this.warn("nonEmailUrlBugsString"); - } else { - bugsTypos(data.bugs, this.warn); - var oldBugs = data.bugs; - data.bugs = {}; - if (oldBugs.url) { - if (typeof oldBugs.url == "string" && url.parse(oldBugs.url).protocol) - data.bugs.url = oldBugs.url; - else - this.warn("nonUrlBugsUrlField"); - } - if (oldBugs.email) { - if (typeof oldBugs.email == "string" && emailRe.test(oldBugs.email)) - data.bugs.email = oldBugs.email; - else - this.warn("nonEmailBugsEmailField"); - } - } - if (!data.bugs.email && !data.bugs.url) { - delete data.bugs; - this.warn("emptyNormalizedBugs"); - } - } - }, - fixHomepageField: function(data) { - if (!data.homepage && data.repository && data.repository.url) { - var hosted = hostedGitInfo.fromUrl(data.repository.url); - if (hosted && hosted.docs()) - data.homepage = hosted.docs(); - } - if (!data.homepage) - return; - if (typeof data.homepage !== "string") { - this.warn("nonUrlHomepage"); - return delete data.homepage; - } - if (!url.parse(data.homepage).protocol) { - data.homepage = "http://" + data.homepage; - } - }, - fixLicenseField: function(data) { - if (!data.license) { - return this.warn("missingLicense"); - } else { - if (typeof data.license !== "string" || data.license.length < 1 || data.license.trim() === "") { - this.warn("invalidLicense"); - } else { - if (!validateLicense(data.license).validForNewPackages) - this.warn("invalidLicense"); - } - } - } - }; - function isValidScopedPackageName(spec) { - if (spec.charAt(0) !== "@") - return false; - var rest = spec.slice(1).split("/"); - if (rest.length !== 2) - return false; - return rest[0] && rest[1] && rest[0] === encodeURIComponent(rest[0]) && rest[1] === encodeURIComponent(rest[1]); - } - function isCorrectlyEncodedName(spec) { - return !spec.match(/[\/@\s\+%:]/) && spec === encodeURIComponent(spec); - } - function ensureValidName(name, strict, allowLegacyCase) { - if (name.charAt(0) === "." || !(isValidScopedPackageName(name) || isCorrectlyEncodedName(name)) || strict && !allowLegacyCase && name !== name.toLowerCase() || name.toLowerCase() === "node_modules" || name.toLowerCase() === "favicon.ico") { - throw new Error("Invalid name: " + JSON.stringify(name)); - } - } - function modifyPeople(data, fn) { - if (data.author) - data.author = fn(data.author); - ["maintainers", "contributors"].forEach(function(set) { - if (!Array.isArray(data[set])) - return; - data[set] = data[set].map(fn); - }); - return data; - } - function unParsePerson(person) { - if (typeof person === "string") - return person; - var name = person.name || ""; - var u = person.url || person.web; - var url2 = u ? " (" + u + ")" : ""; - var e = person.email || person.mail; - var email = e ? " <" + e + ">" : ""; - return name + email + url2; - } - function parsePerson(person) { - if (typeof person !== "string") - return person; - var name = person.match(/^([^\(<]+)/); - var url2 = person.match(/\(([^\)]+)\)/); - var email = person.match(/<([^>]+)>/); - var obj = {}; - if (name && name[0].trim()) - obj.name = name[0].trim(); - if (email) - obj.email = email[1]; - if (url2) - obj.url = url2[1]; - return obj; - } - function addOptionalDepsToDeps(data, warn) { - var o = data.optionalDependencies; - if (!o) - return; - var d = data.dependencies || {}; - Object.keys(o).forEach(function(k) { - d[k] = o[k]; - }); - data.dependencies = d; - } - function depObjectify(deps, type, warn) { - if (!deps) - return {}; - if (typeof deps === "string") { - deps = deps.trim().split(/[\n\r\s\t ,]+/); - } - if (!Array.isArray(deps)) - return deps; - warn("deprecatedArrayDependencies", type); - var o = {}; - deps.filter(function(d) { - return typeof d === "string"; - }).forEach(function(d) { - d = d.trim().split(/(:?[@\s><=])/); - var dn = d.shift(); - var dv = d.join(""); - dv = dv.trim(); - dv = dv.replace(/^@/, ""); - o[dn] = dv; - }); - return o; - } - function objectifyDeps(data, warn) { - depTypes.forEach(function(type) { - if (!data[type]) - return; - data[type] = depObjectify(data[type], type, warn); - }); - } - function bugsTypos(bugs, warn) { - if (!bugs) - return; - Object.keys(bugs).forEach(function(k) { - if (typos.bugs[k]) { - warn("typo", k, typos.bugs[k], "bugs"); - bugs[typos.bugs[k]] = bugs[k]; - delete bugs[k]; - } - }); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/warning_messages.json - var require_warning_messages2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/warning_messages.json"(exports, module) { - module.exports = { - repositories: "'repositories' (plural) Not supported. Please pick one as the 'repository' field", - missingRepository: "No repository field.", - brokenGitUrl: "Probably broken git url: %s", - nonObjectScripts: "scripts must be an object", - nonStringScript: "script values must be string commands", - nonArrayFiles: "Invalid 'files' member", - invalidFilename: "Invalid filename in 'files' list: %s", - nonArrayBundleDependencies: "Invalid 'bundleDependencies' list. Must be array of package names", - nonStringBundleDependency: "Invalid bundleDependencies member: %s", - nonDependencyBundleDependency: "Non-dependency in bundleDependencies: %s", - nonObjectDependencies: "%s field must be an object", - nonStringDependency: "Invalid dependency: %s %s", - deprecatedArrayDependencies: "specifying %s as array is deprecated", - deprecatedModules: "modules field is deprecated", - nonArrayKeywords: "keywords should be an array of strings", - nonStringKeyword: "keywords should be an array of strings", - conflictingName: "%s is also the name of a node core module.", - nonStringDescription: "'description' field should be a string", - missingDescription: "No description", - missingReadme: "No README data", - missingLicense: "No license field.", - nonEmailUrlBugsString: "Bug string field must be url, email, or {email,url}", - nonUrlBugsUrlField: "bugs.url field must be a string url. Deleted.", - nonEmailBugsEmailField: "bugs.email field must be a string email. Deleted.", - emptyNormalizedBugs: "Normalized value of bugs field is an empty object. Deleted.", - nonUrlHomepage: "homepage field must be a string url. Deleted.", - invalidLicense: "license should be a valid SPDX license expression", - typo: "%s should probably be %s." - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/make_warning.js - var require_make_warning2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/make_warning.js"(exports, module) { - var util = __require("util"); - var messages = require_warning_messages2(); - module.exports = function() { - var args = Array.prototype.slice.call(arguments, 0); - var warningName = args.shift(); - if (warningName == "typo") { - return makeTypoWarning.apply(null, args); - } else { - var msgTemplate = messages[warningName] ? messages[warningName] : warningName + ": '%s'"; - args.unshift(msgTemplate); - return util.format.apply(null, args); - } - }; - function makeTypoWarning(providedName, probableName, field) { - if (field) { - providedName = field + "['" + providedName + "']"; - probableName = field + "['" + probableName + "']"; - } - return util.format(messages.typo, providedName, probableName); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/normalize.js - var require_normalize2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/normalize.js"(exports, module) { - module.exports = normalize; - var fixer = require_fixer2(); - normalize.fixer = fixer; - var makeWarning = require_make_warning2(); - var fieldsToFix = [ - "name", - "version", - "description", - "repository", - "modules", - "scripts", - "files", - "bin", - "man", - "bugs", - "keywords", - "readme", - "homepage", - "license" - ]; - var otherThingsToFix = ["dependencies", "people", "typos"]; - var thingsToFix = fieldsToFix.map(function(fieldName) { - return ucFirst(fieldName) + "Field"; - }); - thingsToFix = thingsToFix.concat(otherThingsToFix); - function normalize(data, warn, strict) { - if (warn === true) - warn = null, strict = true; - if (!strict) - strict = false; - if (!warn || data.private) - warn = function(msg) { - }; - if (data.scripts && data.scripts.install === "node-gyp rebuild" && !data.scripts.preinstall) { - data.gypfile = true; - } - fixer.warn = function() { - warn(makeWarning.apply(null, arguments)); - }; - thingsToFix.forEach(function(thingName) { - fixer["fix" + ucFirst(thingName)](data, strict); - }); - data._id = data.name + "@" + data.version; - } - function ucFirst(string) { - return string.charAt(0).toUpperCase() + string.slice(1); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/read-pkg-npm-3.0.0-41471436cb-398903ebae.zip/node_modules/read-pkg/index.js - var require_read_pkg = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/read-pkg-npm-3.0.0-41471436cb-398903ebae.zip/node_modules/read-pkg/index.js"(exports, module) { - "use strict"; - var path = __require("path"); - var loadJsonFile = require_load_json_file(); - var pathType = require_path_type(); - module.exports = (fp, opts) => { - if (typeof fp !== "string") { - opts = fp; - fp = "."; - } - opts = opts || {}; - return pathType.dir(fp).then((isDir) => { - if (isDir) { - fp = path.join(fp, "package.json"); - } - return loadJsonFile(fp); - }).then((x) => { - if (opts.normalize !== false) { - require_normalize2()(x); - } - return x; - }); - }; - module.exports.sync = (fp, opts) => { - if (typeof fp !== "string") { - opts = fp; - fp = "."; - } - opts = opts || {}; - fp = pathType.dirSync(fp) ? path.join(fp, "package.json") : fp; - const x = loadJsonFile.sync(fp); - if (opts.normalize !== false) { - require_normalize2()(x); - } - return x; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/path-exists-npm-3.0.0-e80371aa68-96e92643aa.zip/node_modules/path-exists/index.js - var require_path_exists = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/path-exists-npm-3.0.0-e80371aa68-96e92643aa.zip/node_modules/path-exists/index.js"(exports, module) { - "use strict"; - var fs = __require("fs"); - module.exports = (fp) => new Promise((resolve) => { - fs.access(fp, (err) => { - resolve(!err); - }); - }); - module.exports.sync = (fp) => { - try { - fs.accessSync(fp); - return true; - } catch (err) { - return false; - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/p-try-npm-1.0.0-7373139e40-3b5303f77e.zip/node_modules/p-try/index.js - var require_p_try = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/p-try-npm-1.0.0-7373139e40-3b5303f77e.zip/node_modules/p-try/index.js"(exports, module) { - "use strict"; - module.exports = (cb) => new Promise((resolve) => { - resolve(cb()); - }); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/p-limit-npm-1.3.0-fdb471d864-281c1c0b8c.zip/node_modules/p-limit/index.js - var require_p_limit = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/p-limit-npm-1.3.0-fdb471d864-281c1c0b8c.zip/node_modules/p-limit/index.js"(exports, module) { - "use strict"; - var pTry = require_p_try(); - module.exports = (concurrency) => { - if (concurrency < 1) { - throw new TypeError("Expected `concurrency` to be a number from 1 and up"); - } - const queue = []; - let activeCount = 0; - const next = () => { - activeCount--; - if (queue.length > 0) { - queue.shift()(); - } - }; - return (fn) => new Promise((resolve, reject) => { - const run = () => { - activeCount++; - pTry(fn).then((val) => { - resolve(val); - next(); - }, (err) => { - reject(err); - next(); - }); - }; - if (activeCount < concurrency) { - run(); - } else { - queue.push(run); - } - }); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/p-locate-npm-2.0.0-3a2ee263dd-e2dceb9b49.zip/node_modules/p-locate/index.js - var require_p_locate = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/p-locate-npm-2.0.0-3a2ee263dd-e2dceb9b49.zip/node_modules/p-locate/index.js"(exports, module) { - "use strict"; - var pLimit = require_p_limit(); - var EndError = class extends Error { - constructor(value) { - super(); - this.value = value; - } - }; - var finder = (el) => Promise.all(el).then((val) => val[1] === true && Promise.reject(new EndError(val[0]))); - module.exports = (iterable, tester, opts) => { - opts = Object.assign({ - concurrency: Infinity, - preserveOrder: true - }, opts); - const limit = pLimit(opts.concurrency); - const items = Array.from(iterable).map((el) => [el, limit(() => Promise.resolve(el).then(tester))]); - const checkLimit = pLimit(opts.preserveOrder ? 1 : Infinity); - return Promise.all(items.map((el) => checkLimit(() => finder(el)))).then(() => { - }).catch((err) => err instanceof EndError ? err.value : Promise.reject(err)); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/locate-path-npm-2.0.0-673d28b0ea-02d581edbb.zip/node_modules/locate-path/index.js - var require_locate_path = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/locate-path-npm-2.0.0-673d28b0ea-02d581edbb.zip/node_modules/locate-path/index.js"(exports, module) { - "use strict"; - var path = __require("path"); - var pathExists = require_path_exists(); - var pLocate = require_p_locate(); - module.exports = (iterable, opts) => { - opts = Object.assign({ - cwd: process.cwd() - }, opts); - return pLocate(iterable, (el) => pathExists(path.resolve(opts.cwd, el)), opts); - }; - module.exports.sync = (iterable, opts) => { - opts = Object.assign({ - cwd: process.cwd() - }, opts); - for (const el of iterable) { - if (pathExists.sync(path.resolve(opts.cwd, el))) { - return el; - } - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/find-up-npm-2.1.0-9f6cb1765c-43284fe4da.zip/node_modules/find-up/index.js - var require_find_up = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/find-up-npm-2.1.0-9f6cb1765c-43284fe4da.zip/node_modules/find-up/index.js"(exports, module) { - "use strict"; - var path = __require("path"); - var locatePath = require_locate_path(); - module.exports = (filename, opts) => { - opts = opts || {}; - const startDir = path.resolve(opts.cwd || ""); - const root = path.parse(startDir).root; - const filenames = [].concat(filename); - return new Promise((resolve) => { - (function find(dir) { - locatePath(filenames, {cwd: dir}).then((file) => { - if (file) { - resolve(path.join(dir, file)); - } else if (dir === root) { - resolve(null); - } else { - find(path.dirname(dir)); - } - }); - })(startDir); - }); - }; - module.exports.sync = (filename, opts) => { - opts = opts || {}; - let dir = path.resolve(opts.cwd || ""); - const root = path.parse(dir).root; - const filenames = [].concat(filename); - while (true) { - const file = locatePath.sync(filenames, {cwd: dir}); - if (file) { - return path.join(dir, file); - } else if (dir === root) { - return null; - } - dir = path.dirname(dir); - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/read-pkg-up-npm-3.0.0-3d7faf047f-16175573f2.zip/node_modules/read-pkg-up/index.js - var require_read_pkg_up = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/read-pkg-up-npm-3.0.0-3d7faf047f-16175573f2.zip/node_modules/read-pkg-up/index.js"(exports, module) { - "use strict"; - var findUp = require_find_up(); - var readPkg = require_read_pkg(); - module.exports = (opts) => { - return findUp("package.json", opts).then((fp) => { - if (!fp) { - return {}; - } - return readPkg(fp, opts).then((pkg) => ({pkg, path: fp})); - }); - }; - module.exports.sync = (opts) => { - const fp = findUp.sync("package.json", opts); - if (!fp) { - return {}; - } - return { - pkg: readPkg.sync(fp, opts), - path: fp - }; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/hosts/bitbucket.json - var require_bitbucket = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/hosts/bitbucket.json"(exports, module) { - module.exports = { - issue: "issue", - commit: "commits", - referenceActions: [ - "close", - "closes", - "closed", - "closing", - "fix", - "fixes", - "fixed", - "fixing", - "resolve", - "resolves", - "resolved", - "resolving" - ], - issuePrefixes: [ - "#" - ] - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/hosts/github.json - var require_github = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/hosts/github.json"(exports, module) { - module.exports = { - issue: "issues", - commit: "commit", - referenceActions: [ - "close", - "closes", - "closed", - "fix", - "fixes", - "fixed", - "resolve", - "resolves", - "resolved" - ], - issuePrefixes: [ - "#", - "gh-" - ] - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/hosts/gitlab.json - var require_gitlab = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/hosts/gitlab.json"(exports, module) { - module.exports = { - issue: "issues", - commit: "commit", - referenceActions: [ - "close", - "closes", - "closed", - "closing", - "fix", - "fixes", - "fixed", - "fixing" - ], - issuePrefixes: [ - "#" - ] - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/lib/merge-config.js - var require_merge_config = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/lib/merge-config.js"(exports, module) { - "use strict"; - var promisify4 = __require("util").promisify; - var dateFormat = require_dateformat(); - var getPkgRepo = require_src3(); - var gitSemverTags2 = require_git_semver_tags(); - var normalizePackageData = require_normalize(); - var gitRemoteOriginUrl; - try { - gitRemoteOriginUrl = require_git_remote_origin_url(); - } catch (err) { - gitRemoteOriginUrl = function() { - return Promise.reject(err); - }; - } - var readPkg = require_read_pkg(); - var readPkgUp = require_read_pkg_up(); - var URL = __require("url").URL; - var _ = require_lodash(); - var hosts = { - bitbucket: require_bitbucket(), - github: require_github(), - gitlab: require_gitlab() - }; - var rhosts = new RegExp(Object.keys(hosts).join("|"), "i"); - Promise.allSettled = Promise.allSettled || function(promises) { - const wrappedPromises = promises.map((p) => Promise.resolve(p).then((value) => ({status: "fulfilled", value}), (reason) => ({status: "rejected", reason}))); - return Promise.all(wrappedPromises); - }; - function semverTagsPromise(options) { - return new Promise(function(resolve, reject) { - gitSemverTags2({lernaTags: !!options.lernaPackage, package: options.lernaPackage, tagPrefix: options.tagPrefix, skipUnstable: options.skipUnstable}, function(err, result) { - if (err) { - reject(err); - } else { - resolve(result); - } - }); - }); - } - function guessNextTag(previousTag, version) { - if (previousTag) { - if (previousTag[0] === "v" && version[0] !== "v") { - return "v" + version; - } - if (previousTag[0] !== "v" && version[0] === "v") { - return version.replace(/^v/, ""); - } - return version; - } - if (version[0] !== "v") { - return "v" + version; - } - return version; - } - function mergeConfig(options, context, gitRawCommitsOpts, parserOpts, writerOpts, gitRawExecOpts) { - let configPromise; - let pkgPromise; - context = context || {}; - gitRawCommitsOpts = gitRawCommitsOpts || {}; - gitRawExecOpts = gitRawExecOpts || {}; - const rtag = options && options.tagPrefix ? new RegExp(`tag:\\s*[=]?${options.tagPrefix}(.+?)[,)]`, "gi") : /tag:\s*[v=]?(.+?)[,)]/gi; - options = _.merge({ - pkg: { - transform: function(pkg) { - return pkg; - } - }, - append: false, - releaseCount: 1, - skipUnstable: false, - debug: function() { - }, - transform: function(commit, cb) { - if (_.isString(commit.gitTags)) { - const match = rtag.exec(commit.gitTags); - rtag.lastIndex = 0; - if (match) { - commit.version = match[1]; - } - } - if (commit.committerDate) { - commit.committerDate = dateFormat(commit.committerDate, "yyyy-mm-dd", true); - } - cb(null, commit); - }, - lernaPackage: null - }, options); - options.warn = options.warn || options.debug; - if (options.config) { - if (typeof options.config === "function") { - configPromise = promisify4(options.config)(); - } else { - configPromise = Promise.resolve(options.config); - } - } - if (options.pkg) { - if (options.pkg.path) { - pkgPromise = readPkg(options.pkg.path); - } else { - pkgPromise = readPkgUp(); - } - } - const gitRemoteOriginUrlPromise = gitRemoteOriginUrl(); - return Promise.allSettled([configPromise, pkgPromise, semverTagsPromise(options), gitRemoteOriginUrlPromise]).then(function([configObj, pkgObj, tagsObj, gitRemoteOriginUrlObj]) { - let config; - let pkg; - let fromTag; - let repo; - let hostOpts; - let gitSemverTags3 = []; - if (configPromise) { - if (configObj.status === "fulfilled") { - config = configObj.value; - } else { - options.warn("Error in config" + configObj.reason.toString()); - config = {}; - } - } else { - config = {}; - } - context = _.assign(context, config.context); - if (options.pkg) { - if (pkgObj.status === "fulfilled") { - if (options.pkg.path) { - pkg = pkgObj.value; - } else { - pkg = pkgObj.value.pkg || {}; - } - pkg = options.pkg.transform(pkg); - } else if (options.pkg.path) { - options.warn(pkgObj.reason.toString()); - } - } - if ((!pkg || !pkg.repository || !pkg.repository.url) && gitRemoteOriginUrlObj.status === "fulfilled") { - pkg = pkg || {}; - pkg.repository = pkg.repository || {}; - pkg.repository.url = gitRemoteOriginUrlObj.value; - normalizePackageData(pkg); - } - if (pkg) { - context.version = context.version || pkg.version; - try { - repo = getPkgRepo(pkg); - } catch (err) { - repo = {}; - } - if (repo.browse) { - const browse = repo.browse(); - if (!context.host) { - if (repo.domain) { - const parsedBrowse = new URL(browse); - if (parsedBrowse.origin.indexOf("//") !== -1) { - context.host = parsedBrowse.protocol + "//" + repo.domain; - } else { - context.host = parsedBrowse.protocol + repo.domain; - } - } else { - context.host = null; - } - } - context.owner = context.owner || repo.user || ""; - context.repository = context.repository || repo.project; - if (repo.host && repo.project && repo.user) { - context.repoUrl = browse; - } else { - context.repoUrl = context.host; - } - } - context.packageData = pkg; - } - context.version = context.version || ""; - if (tagsObj.status === "fulfilled") { - gitSemverTags3 = context.gitSemverTags = tagsObj.value; - fromTag = gitSemverTags3[options.releaseCount - 1]; - const lastTag = gitSemverTags3[0]; - if (lastTag === context.version || lastTag === "v" + context.version) { - if (options.outputUnreleased) { - context.version = "Unreleased"; - } else { - options.outputUnreleased = false; - } - } - } - if (!_.isBoolean(options.outputUnreleased)) { - options.outputUnreleased = true; - } - if (context.host && (!context.issue || !context.commit || !parserOpts || !parserOpts.referenceActions)) { - let type; - if (context.host) { - const match = context.host.match(rhosts); - if (match) { - type = match[0]; - } - } else if (repo && repo.type) { - type = repo.type; - } - if (type) { - hostOpts = hosts[type]; - context = _.assign({ - issue: hostOpts.issue, - commit: hostOpts.commit - }, context); - } else { - options.warn('Host: "' + context.host + '" does not exist'); - hostOpts = {}; - } - } else { - hostOpts = {}; - } - if (context.resetChangelog) { - fromTag = null; - } - gitRawCommitsOpts = _.assign({ - format: "%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci", - from: fromTag, - merges: false, - debug: options.debug - }, config.gitRawCommitsOpts, gitRawCommitsOpts); - if (options.append) { - gitRawCommitsOpts.reverse = gitRawCommitsOpts.reverse || true; - } - parserOpts = _.assign({}, config.parserOpts, { - warn: options.warn - }, parserOpts); - if (hostOpts.referenceActions && parserOpts) { - parserOpts.referenceActions = hostOpts.referenceActions; - } - if (_.isEmpty(parserOpts.issuePrefixes) && hostOpts.issuePrefixes) { - parserOpts.issuePrefixes = hostOpts.issuePrefixes; - } - writerOpts = _.assign({ - finalizeContext: function(context2, writerOpts2, filteredCommits, keyCommit, originalCommits) { - const firstCommit = originalCommits[0]; - const lastCommit = originalCommits[originalCommits.length - 1]; - const firstCommitHash = firstCommit ? firstCommit.hash : null; - const lastCommitHash = lastCommit ? lastCommit.hash : null; - if ((!context2.currentTag || !context2.previousTag) && keyCommit) { - const match = /tag:\s*(.+?)[,)]/gi.exec(keyCommit.gitTags); - const currentTag = context2.currentTag; - context2.currentTag = currentTag || match ? match[1] : null; - const index = gitSemverTags3.indexOf(context2.currentTag); - if (index === -1) { - context2.currentTag = currentTag || null; - } else { - const previousTag = context2.previousTag = gitSemverTags3[index + 1]; - if (!previousTag) { - if (options.append) { - context2.previousTag = context2.previousTag || firstCommitHash; - } else { - context2.previousTag = context2.previousTag || lastCommitHash; - } - } - } - } else { - context2.previousTag = context2.previousTag || gitSemverTags3[0]; - if (context2.version === "Unreleased") { - if (options.append) { - context2.currentTag = context2.currentTag || lastCommitHash; - } else { - context2.currentTag = context2.currentTag || firstCommitHash; - } - } else if (!context2.currentTag) { - if (options.lernaPackage) { - context2.currentTag = options.lernaPackage + "@" + context2.version; - } else if (options.tagPrefix) { - context2.currentTag = options.tagPrefix + context2.version; - } else { - context2.currentTag = guessNextTag(gitSemverTags3[0], context2.version); - } - } - } - if (!_.isBoolean(context2.linkCompare) && context2.previousTag && context2.currentTag) { - context2.linkCompare = true; - } - return context2; - }, - debug: options.debug - }, config.writerOpts, { - reverse: options.append, - doFlush: options.outputUnreleased - }, writerOpts); - return { - options, - context, - gitRawCommitsOpts, - parserOpts, - writerOpts, - gitRawExecOpts - }; - }); - } - module.exports = mergeConfig; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/index.js - var require_conventional_changelog_core = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/index.js"(exports, module) { - "use strict"; - var addStream = require_add_stream(); - var gitRawCommits = require_git_raw_commits(); - var conventionalCommitsParser = require_conventional_commits_parser(); - var conventionalChangelogWriter = require_conventional_changelog_writer(); - var _ = require_lodash(); - var stream = __require("stream"); - var through = require_through2(); - var execFileSync = __require("child_process").execFileSync; - var mergeConfig = require_merge_config(); - function conventionalChangelog2(options, context, gitRawCommitsOpts, parserOpts, writerOpts, gitRawExecOpts) { - writerOpts = writerOpts || {}; - const readable = new stream.Readable({ - objectMode: writerOpts.includeDetails - }); - readable._read = function() { - }; - let commitsErrorThrown = false; - let commitsStream = new stream.Readable({ - objectMode: true - }); - commitsStream._read = function() { - }; - function commitsRange(from, to) { - return gitRawCommits(_.merge({}, gitRawCommitsOpts, { - from, - to - })).on("error", function(err) { - if (!commitsErrorThrown) { - setImmediate(commitsStream.emit.bind(commitsStream), "error", err); - commitsErrorThrown = true; - } - }); - } - mergeConfig(options, context, gitRawCommitsOpts, parserOpts, writerOpts, gitRawExecOpts).then(function(data) { - options = data.options; - context = data.context; - gitRawCommitsOpts = data.gitRawCommitsOpts; - parserOpts = data.parserOpts; - writerOpts = data.writerOpts; - gitRawExecOpts = data.gitRawExecOpts; - try { - execFileSync("git", ["rev-parse", "--verify", "HEAD"], { - stdio: "ignore" - }); - let reverseTags = context.gitSemverTags.slice(0).reverse(); - reverseTags.push("HEAD"); - if (gitRawCommitsOpts.from) { - if (reverseTags.indexOf(gitRawCommitsOpts.from) !== -1) { - reverseTags = reverseTags.slice(reverseTags.indexOf(gitRawCommitsOpts.from)); - } else { - reverseTags = [gitRawCommitsOpts.from, "HEAD"]; - } - } - let streams = reverseTags.map((to, i) => { - const from = i > 0 ? reverseTags[i - 1] : ""; - return commitsRange(from, to); - }); - if (gitRawCommitsOpts.from) { - streams = streams.splice(1); - } - if (gitRawCommitsOpts.reverse) { - streams.reverse(); - } - streams.reduce((prev, next) => next.pipe(addStream(prev))).on("data", function(data2) { - setImmediate(commitsStream.emit.bind(commitsStream), "data", data2); - }).on("end", function() { - setImmediate(commitsStream.emit.bind(commitsStream), "end"); - }); - } catch (_e) { - commitsStream = gitRawCommits(gitRawCommitsOpts, gitRawExecOpts); - } - commitsStream.on("error", function(err) { - err.message = "Error in git-raw-commits: " + err.message; - setImmediate(readable.emit.bind(readable), "error", err); - }).pipe(conventionalCommitsParser(parserOpts)).on("error", function(err) { - err.message = "Error in conventional-commits-parser: " + err.message; - setImmediate(readable.emit.bind(readable), "error", err); - }).pipe(through.obj(function(chunk, enc, cb) { - try { - options.transform.call(this, chunk, cb); - } catch (err) { - cb(err); - } - })).on("error", function(err) { - err.message = "Error in options.transform: " + err.message; - setImmediate(readable.emit.bind(readable), "error", err); - }).pipe(conventionalChangelogWriter(context, writerOpts)).on("error", function(err) { - err.message = "Error in conventional-changelog-writer: " + err.message; - setImmediate(readable.emit.bind(readable), "error", err); - }).pipe(through({ - objectMode: writerOpts.includeDetails - }, function(chunk, enc, cb) { - try { - readable.push(chunk); - } catch (err) { - setImmediate(function() { - throw err; - }); - } - cb(); - }, function(cb) { - readable.push(null); - cb(); - })); - }).catch(function(err) { - setImmediate(readable.emit.bind(readable), "error", err); - }); - return readable; - } - module.exports = conventionalChangelog2; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-preset-loader-https-5952503697-37f47bea00.zip/node_modules/conventional-changelog-preset-loader/index.js - var require_conventional_changelog_preset_loader = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-preset-loader-https-5952503697-37f47bea00.zip/node_modules/conventional-changelog-preset-loader/index.js"(exports, module) { - "use strict"; - var nodePath = __require("path"); - module.exports = presetLoader2(__require); - module.exports.presetLoader = presetLoader2; - function presetLoader2(requireMethod) { - return (path) => { - let name = ""; - let scope = ""; - let absolutePath = ""; - if (typeof path === "string") { - name = path.toLowerCase(); - if (nodePath.isAbsolute(path)) { - absolutePath = path; - } - } else if (typeof path === "object" && path.name) { - name = path.name.toLowerCase(); - if (nodePath.isAbsolute(path.name)) { - absolutePath = path.name; - } - } else { - throw Error("preset must be string or object with key name"); - } - if (!absolutePath) { - if (name[0] === "@") { - const parts = name.split("/"); - scope = parts.shift() + "/"; - name = parts.join("/"); - } - if (!name.startsWith("conventional-changelog-")) { - name = `conventional-changelog-${name}`; - } - } - try { - const config = requireMethod(absolutePath || `${scope}${name}`); - if (config && !config.then && typeof path === "object") { - return config(path); - } else { - return config; - } - } catch (_) { - throw Error("does not exist"); - } - }; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/buffer-from-npm-1.1.2-03d2f20d7e-0448524a56.zip/node_modules/buffer-from/index.js - var require_buffer_from = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/buffer-from-npm-1.1.2-03d2f20d7e-0448524a56.zip/node_modules/buffer-from/index.js"(exports, module) { - var toString = Object.prototype.toString; - var isModern = typeof Buffer !== "undefined" && typeof Buffer.alloc === "function" && typeof Buffer.allocUnsafe === "function" && typeof Buffer.from === "function"; - function isArrayBuffer(input) { - return toString.call(input).slice(8, -1) === "ArrayBuffer"; - } - function fromArrayBuffer(obj, byteOffset, length) { - byteOffset >>>= 0; - var maxLength = obj.byteLength - byteOffset; - if (maxLength < 0) { - throw new RangeError("'offset' is out of bounds"); - } - if (length === void 0) { - length = maxLength; - } else { - length >>>= 0; - if (length > maxLength) { - throw new RangeError("'length' is out of bounds"); - } - } - return isModern ? Buffer.from(obj.slice(byteOffset, byteOffset + length)) : new Buffer(new Uint8Array(obj.slice(byteOffset, byteOffset + length))); - } - function fromString(string, encoding) { - if (typeof encoding !== "string" || encoding === "") { - encoding = "utf8"; - } - if (!Buffer.isEncoding(encoding)) { - throw new TypeError('"encoding" must be a valid string encoding'); - } - return isModern ? Buffer.from(string, encoding) : new Buffer(string, encoding); - } - function bufferFrom(value, encodingOrOffset, length) { - if (typeof value === "number") { - throw new TypeError('"value" argument must not be a number'); - } - if (isArrayBuffer(value)) { - return fromArrayBuffer(value, encodingOrOffset, length); - } - if (typeof value === "string") { - return fromString(value, encodingOrOffset); - } - return isModern ? Buffer.from(value) : new Buffer(value); - } - module.exports = bufferFrom; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/typedarray-npm-0.0.6-37638b2241-33b39f3d0e.zip/node_modules/typedarray/index.js - var require_typedarray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/typedarray-npm-0.0.6-37638b2241-33b39f3d0e.zip/node_modules/typedarray/index.js"(exports) { - var undefined2 = void 0; - var MAX_ARRAY_LENGTH = 1e5; - var ECMAScript = function() { - var opts = Object.prototype.toString, ophop = Object.prototype.hasOwnProperty; - return { - Class: function(v) { - return opts.call(v).replace(/^\[object *|\]$/g, ""); - }, - HasProperty: function(o, p) { - return p in o; - }, - HasOwnProperty: function(o, p) { - return ophop.call(o, p); - }, - IsCallable: function(o) { - return typeof o === "function"; - }, - ToInt32: function(v) { - return v >> 0; - }, - ToUint32: function(v) { - return v >>> 0; - } - }; - }(); - var LN2 = Math.LN2; - var abs = Math.abs; - var floor = Math.floor; - var log = Math.log; - var min = Math.min; - var pow = Math.pow; - var round = Math.round; - function configureProperties(obj) { - if (getOwnPropNames && defineProp) { - var props = getOwnPropNames(obj), i; - for (i = 0; i < props.length; i += 1) { - defineProp(obj, props[i], { - value: obj[props[i]], - writable: false, - enumerable: false, - configurable: false - }); - } - } - } - var defineProp; - if (Object.defineProperty && function() { - try { - Object.defineProperty({}, "x", {}); - return true; - } catch (e) { - return false; - } - }()) { - defineProp = Object.defineProperty; - } else { - defineProp = function(o, p, desc) { - if (!o === Object(o)) - throw new TypeError("Object.defineProperty called on non-object"); - if (ECMAScript.HasProperty(desc, "get") && Object.prototype.__defineGetter__) { - Object.prototype.__defineGetter__.call(o, p, desc.get); - } - if (ECMAScript.HasProperty(desc, "set") && Object.prototype.__defineSetter__) { - Object.prototype.__defineSetter__.call(o, p, desc.set); - } - if (ECMAScript.HasProperty(desc, "value")) { - o[p] = desc.value; - } - return o; - }; - } - var getOwnPropNames = Object.getOwnPropertyNames || function(o) { - if (o !== Object(o)) - throw new TypeError("Object.getOwnPropertyNames called on non-object"); - var props = [], p; - for (p in o) { - if (ECMAScript.HasOwnProperty(o, p)) { - props.push(p); - } - } - return props; - }; - function makeArrayAccessors(obj) { - if (!defineProp) { - return; - } - if (obj.length > MAX_ARRAY_LENGTH) - throw new RangeError("Array too large for polyfill"); - function makeArrayAccessor(index) { - defineProp(obj, index, { - "get": function() { - return obj._getter(index); - }, - "set": function(v) { - obj._setter(index, v); - }, - enumerable: true, - configurable: false - }); - } - var i; - for (i = 0; i < obj.length; i += 1) { - makeArrayAccessor(i); - } - } - function as_signed(value, bits) { - var s = 32 - bits; - return value << s >> s; - } - function as_unsigned(value, bits) { - var s = 32 - bits; - return value << s >>> s; - } - function packI8(n) { - return [n & 255]; - } - function unpackI8(bytes) { - return as_signed(bytes[0], 8); - } - function packU8(n) { - return [n & 255]; - } - function unpackU8(bytes) { - return as_unsigned(bytes[0], 8); - } - function packU8Clamped(n) { - n = round(Number(n)); - return [n < 0 ? 0 : n > 255 ? 255 : n & 255]; - } - function packI16(n) { - return [n >> 8 & 255, n & 255]; - } - function unpackI16(bytes) { - return as_signed(bytes[0] << 8 | bytes[1], 16); - } - function packU16(n) { - return [n >> 8 & 255, n & 255]; - } - function unpackU16(bytes) { - return as_unsigned(bytes[0] << 8 | bytes[1], 16); - } - function packI32(n) { - return [n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, n & 255]; - } - function unpackI32(bytes) { - return as_signed(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32); - } - function packU32(n) { - return [n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, n & 255]; - } - function unpackU32(bytes) { - return as_unsigned(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32); - } - function packIEEE754(v, ebits, fbits) { - var bias = (1 << ebits - 1) - 1, s, e, f, ln, i, bits, str, bytes; - function roundToEven(n) { - var w = floor(n), f2 = n - w; - if (f2 < 0.5) - return w; - if (f2 > 0.5) - return w + 1; - return w % 2 ? w + 1 : w; - } - if (v !== v) { - e = (1 << ebits) - 1; - f = pow(2, fbits - 1); - s = 0; - } else if (v === Infinity || v === -Infinity) { - e = (1 << ebits) - 1; - f = 0; - s = v < 0 ? 1 : 0; - } else if (v === 0) { - e = 0; - f = 0; - s = 1 / v === -Infinity ? 1 : 0; - } else { - s = v < 0; - v = abs(v); - if (v >= pow(2, 1 - bias)) { - e = min(floor(log(v) / LN2), 1023); - f = roundToEven(v / pow(2, e) * pow(2, fbits)); - if (f / pow(2, fbits) >= 2) { - e = e + 1; - f = 1; - } - if (e > bias) { - e = (1 << ebits) - 1; - f = 0; - } else { - e = e + bias; - f = f - pow(2, fbits); - } - } else { - e = 0; - f = roundToEven(v / pow(2, 1 - bias - fbits)); - } - } - bits = []; - for (i = fbits; i; i -= 1) { - bits.push(f % 2 ? 1 : 0); - f = floor(f / 2); - } - for (i = ebits; i; i -= 1) { - bits.push(e % 2 ? 1 : 0); - e = floor(e / 2); - } - bits.push(s ? 1 : 0); - bits.reverse(); - str = bits.join(""); - bytes = []; - while (str.length) { - bytes.push(parseInt(str.substring(0, 8), 2)); - str = str.substring(8); - } - return bytes; - } - function unpackIEEE754(bytes, ebits, fbits) { - var bits = [], i, j, b, str, bias, s, e, f; - for (i = bytes.length; i; i -= 1) { - b = bytes[i - 1]; - for (j = 8; j; j -= 1) { - bits.push(b % 2 ? 1 : 0); - b = b >> 1; - } - } - bits.reverse(); - str = bits.join(""); - bias = (1 << ebits - 1) - 1; - s = parseInt(str.substring(0, 1), 2) ? -1 : 1; - e = parseInt(str.substring(1, 1 + ebits), 2); - f = parseInt(str.substring(1 + ebits), 2); - if (e === (1 << ebits) - 1) { - return f !== 0 ? NaN : s * Infinity; - } else if (e > 0) { - return s * pow(2, e - bias) * (1 + f / pow(2, fbits)); - } else if (f !== 0) { - return s * pow(2, -(bias - 1)) * (f / pow(2, fbits)); - } else { - return s < 0 ? -0 : 0; - } - } - function unpackF64(b) { - return unpackIEEE754(b, 11, 52); - } - function packF64(v) { - return packIEEE754(v, 11, 52); - } - function unpackF32(b) { - return unpackIEEE754(b, 8, 23); - } - function packF32(v) { - return packIEEE754(v, 8, 23); - } - (function() { - var ArrayBuffer2 = function ArrayBuffer3(length) { - length = ECMAScript.ToInt32(length); - if (length < 0) - throw new RangeError("ArrayBuffer size is not a small enough positive integer"); - this.byteLength = length; - this._bytes = []; - this._bytes.length = length; - var i; - for (i = 0; i < this.byteLength; i += 1) { - this._bytes[i] = 0; - } - configureProperties(this); - }; - exports.ArrayBuffer = exports.ArrayBuffer || ArrayBuffer2; - var ArrayBufferView = function ArrayBufferView2() { - }; - function makeConstructor(bytesPerElement, pack, unpack) { - var ctor; - ctor = function(buffer, byteOffset, length) { - var array, sequence, i, s; - if (!arguments.length || typeof arguments[0] === "number") { - this.length = ECMAScript.ToInt32(arguments[0]); - if (length < 0) - throw new RangeError("ArrayBufferView size is not a small enough positive integer"); - this.byteLength = this.length * this.BYTES_PER_ELEMENT; - this.buffer = new ArrayBuffer2(this.byteLength); - this.byteOffset = 0; - } else if (typeof arguments[0] === "object" && arguments[0].constructor === ctor) { - array = arguments[0]; - this.length = array.length; - this.byteLength = this.length * this.BYTES_PER_ELEMENT; - this.buffer = new ArrayBuffer2(this.byteLength); - this.byteOffset = 0; - for (i = 0; i < this.length; i += 1) { - this._setter(i, array._getter(i)); - } - } else if (typeof arguments[0] === "object" && !(arguments[0] instanceof ArrayBuffer2 || ECMAScript.Class(arguments[0]) === "ArrayBuffer")) { - sequence = arguments[0]; - this.length = ECMAScript.ToUint32(sequence.length); - this.byteLength = this.length * this.BYTES_PER_ELEMENT; - this.buffer = new ArrayBuffer2(this.byteLength); - this.byteOffset = 0; - for (i = 0; i < this.length; i += 1) { - s = sequence[i]; - this._setter(i, Number(s)); - } - } else if (typeof arguments[0] === "object" && (arguments[0] instanceof ArrayBuffer2 || ECMAScript.Class(arguments[0]) === "ArrayBuffer")) { - this.buffer = buffer; - this.byteOffset = ECMAScript.ToUint32(byteOffset); - if (this.byteOffset > this.buffer.byteLength) { - throw new RangeError("byteOffset out of range"); - } - if (this.byteOffset % this.BYTES_PER_ELEMENT) { - throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size."); - } - if (arguments.length < 3) { - this.byteLength = this.buffer.byteLength - this.byteOffset; - if (this.byteLength % this.BYTES_PER_ELEMENT) { - throw new RangeError("length of buffer minus byteOffset not a multiple of the element size"); - } - this.length = this.byteLength / this.BYTES_PER_ELEMENT; - } else { - this.length = ECMAScript.ToUint32(length); - this.byteLength = this.length * this.BYTES_PER_ELEMENT; - } - if (this.byteOffset + this.byteLength > this.buffer.byteLength) { - throw new RangeError("byteOffset and length reference an area beyond the end of the buffer"); - } - } else { - throw new TypeError("Unexpected argument type(s)"); - } - this.constructor = ctor; - configureProperties(this); - makeArrayAccessors(this); - }; - ctor.prototype = new ArrayBufferView(); - ctor.prototype.BYTES_PER_ELEMENT = bytesPerElement; - ctor.prototype._pack = pack; - ctor.prototype._unpack = unpack; - ctor.BYTES_PER_ELEMENT = bytesPerElement; - ctor.prototype._getter = function(index) { - if (arguments.length < 1) - throw new SyntaxError("Not enough arguments"); - index = ECMAScript.ToUint32(index); - if (index >= this.length) { - return undefined2; - } - var bytes = [], i, o; - for (i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1, o += 1) { - bytes.push(this.buffer._bytes[o]); - } - return this._unpack(bytes); - }; - ctor.prototype.get = ctor.prototype._getter; - ctor.prototype._setter = function(index, value) { - if (arguments.length < 2) - throw new SyntaxError("Not enough arguments"); - index = ECMAScript.ToUint32(index); - if (index >= this.length) { - return undefined2; - } - var bytes = this._pack(value), i, o; - for (i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1, o += 1) { - this.buffer._bytes[o] = bytes[i]; - } - }; - ctor.prototype.set = function(index, value) { - if (arguments.length < 1) - throw new SyntaxError("Not enough arguments"); - var array, sequence, offset, len, i, s, d, byteOffset, byteLength, tmp; - if (typeof arguments[0] === "object" && arguments[0].constructor === this.constructor) { - array = arguments[0]; - offset = ECMAScript.ToUint32(arguments[1]); - if (offset + array.length > this.length) { - throw new RangeError("Offset plus length of array is out of range"); - } - byteOffset = this.byteOffset + offset * this.BYTES_PER_ELEMENT; - byteLength = array.length * this.BYTES_PER_ELEMENT; - if (array.buffer === this.buffer) { - tmp = []; - for (i = 0, s = array.byteOffset; i < byteLength; i += 1, s += 1) { - tmp[i] = array.buffer._bytes[s]; - } - for (i = 0, d = byteOffset; i < byteLength; i += 1, d += 1) { - this.buffer._bytes[d] = tmp[i]; - } - } else { - for (i = 0, s = array.byteOffset, d = byteOffset; i < byteLength; i += 1, s += 1, d += 1) { - this.buffer._bytes[d] = array.buffer._bytes[s]; - } - } - } else if (typeof arguments[0] === "object" && typeof arguments[0].length !== "undefined") { - sequence = arguments[0]; - len = ECMAScript.ToUint32(sequence.length); - offset = ECMAScript.ToUint32(arguments[1]); - if (offset + len > this.length) { - throw new RangeError("Offset plus length of array is out of range"); - } - for (i = 0; i < len; i += 1) { - s = sequence[i]; - this._setter(offset + i, Number(s)); - } - } else { - throw new TypeError("Unexpected argument type(s)"); - } - }; - ctor.prototype.subarray = function(start, end) { - function clamp(v, min2, max) { - return v < min2 ? min2 : v > max ? max : v; - } - start = ECMAScript.ToInt32(start); - end = ECMAScript.ToInt32(end); - if (arguments.length < 1) { - start = 0; - } - if (arguments.length < 2) { - end = this.length; - } - if (start < 0) { - start = this.length + start; - } - if (end < 0) { - end = this.length + end; - } - start = clamp(start, 0, this.length); - end = clamp(end, 0, this.length); - var len = end - start; - if (len < 0) { - len = 0; - } - return new this.constructor(this.buffer, this.byteOffset + start * this.BYTES_PER_ELEMENT, len); - }; - return ctor; - } - var Int8Array = makeConstructor(1, packI8, unpackI8); - var Uint8Array2 = makeConstructor(1, packU8, unpackU8); - var Uint8ClampedArray = makeConstructor(1, packU8Clamped, unpackU8); - var Int16Array = makeConstructor(2, packI16, unpackI16); - var Uint16Array = makeConstructor(2, packU16, unpackU16); - var Int32Array = makeConstructor(4, packI32, unpackI32); - var Uint32Array = makeConstructor(4, packU32, unpackU32); - var Float32Array = makeConstructor(4, packF32, unpackF32); - var Float64Array = makeConstructor(8, packF64, unpackF64); - exports.Int8Array = exports.Int8Array || Int8Array; - exports.Uint8Array = exports.Uint8Array || Uint8Array2; - exports.Uint8ClampedArray = exports.Uint8ClampedArray || Uint8ClampedArray; - exports.Int16Array = exports.Int16Array || Int16Array; - exports.Uint16Array = exports.Uint16Array || Uint16Array; - exports.Int32Array = exports.Int32Array || Int32Array; - exports.Uint32Array = exports.Uint32Array || Uint32Array; - exports.Float32Array = exports.Float32Array || Float32Array; - exports.Float64Array = exports.Float64Array || Float64Array; - })(); - (function() { - function r(array, index) { - return ECMAScript.IsCallable(array.get) ? array.get(index) : array[index]; - } - var IS_BIG_ENDIAN = function() { - var u16array = new exports.Uint16Array([4660]), u8array = new exports.Uint8Array(u16array.buffer); - return r(u8array, 0) === 18; - }(); - var DataView = function DataView2(buffer, byteOffset, byteLength) { - if (arguments.length === 0) { - buffer = new exports.ArrayBuffer(0); - } else if (!(buffer instanceof exports.ArrayBuffer || ECMAScript.Class(buffer) === "ArrayBuffer")) { - throw new TypeError("TypeError"); - } - this.buffer = buffer || new exports.ArrayBuffer(0); - this.byteOffset = ECMAScript.ToUint32(byteOffset); - if (this.byteOffset > this.buffer.byteLength) { - throw new RangeError("byteOffset out of range"); - } - if (arguments.length < 3) { - this.byteLength = this.buffer.byteLength - this.byteOffset; - } else { - this.byteLength = ECMAScript.ToUint32(byteLength); - } - if (this.byteOffset + this.byteLength > this.buffer.byteLength) { - throw new RangeError("byteOffset and length reference an area beyond the end of the buffer"); - } - configureProperties(this); - }; - function makeGetter(arrayType) { - return function(byteOffset, littleEndian) { - byteOffset = ECMAScript.ToUint32(byteOffset); - if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) { - throw new RangeError("Array index out of range"); - } - byteOffset += this.byteOffset; - var uint8Array = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT), bytes = [], i; - for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) { - bytes.push(r(uint8Array, i)); - } - if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) { - bytes.reverse(); - } - return r(new arrayType(new exports.Uint8Array(bytes).buffer), 0); - }; - } - DataView.prototype.getUint8 = makeGetter(exports.Uint8Array); - DataView.prototype.getInt8 = makeGetter(exports.Int8Array); - DataView.prototype.getUint16 = makeGetter(exports.Uint16Array); - DataView.prototype.getInt16 = makeGetter(exports.Int16Array); - DataView.prototype.getUint32 = makeGetter(exports.Uint32Array); - DataView.prototype.getInt32 = makeGetter(exports.Int32Array); - DataView.prototype.getFloat32 = makeGetter(exports.Float32Array); - DataView.prototype.getFloat64 = makeGetter(exports.Float64Array); - function makeSetter(arrayType) { - return function(byteOffset, value, littleEndian) { - byteOffset = ECMAScript.ToUint32(byteOffset); - if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) { - throw new RangeError("Array index out of range"); - } - var typeArray = new arrayType([value]), byteArray = new exports.Uint8Array(typeArray.buffer), bytes = [], i, byteView; - for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) { - bytes.push(r(byteArray, i)); - } - if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) { - bytes.reverse(); - } - byteView = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT); - byteView.set(bytes); - }; - } - DataView.prototype.setUint8 = makeSetter(exports.Uint8Array); - DataView.prototype.setInt8 = makeSetter(exports.Int8Array); - DataView.prototype.setUint16 = makeSetter(exports.Uint16Array); - DataView.prototype.setInt16 = makeSetter(exports.Int16Array); - DataView.prototype.setUint32 = makeSetter(exports.Uint32Array); - DataView.prototype.setInt32 = makeSetter(exports.Int32Array); - DataView.prototype.setFloat32 = makeSetter(exports.Float32Array); - DataView.prototype.setFloat64 = makeSetter(exports.Float64Array); - exports.DataView = exports.DataView || DataView; - })(); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/concat-stream-npm-2.0.0-8bb2ad5aa0-d7f75d48f0.zip/node_modules/concat-stream/index.js - var require_concat_stream = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/concat-stream-npm-2.0.0-8bb2ad5aa0-d7f75d48f0.zip/node_modules/concat-stream/index.js"(exports, module) { - var Writable = require_readable().Writable; - var inherits = require_inherits(); - var bufferFrom = require_buffer_from(); - if (typeof Uint8Array === "undefined") { - U8 = require_typedarray().Uint8Array; - } else { - U8 = Uint8Array; - } - var U8; - function ConcatStream(opts, cb) { - if (!(this instanceof ConcatStream)) - return new ConcatStream(opts, cb); - if (typeof opts === "function") { - cb = opts; - opts = {}; - } - if (!opts) - opts = {}; - var encoding = opts.encoding; - var shouldInferEncoding = false; - if (!encoding) { - shouldInferEncoding = true; - } else { - encoding = String(encoding).toLowerCase(); - if (encoding === "u8" || encoding === "uint8") { - encoding = "uint8array"; - } - } - Writable.call(this, {objectMode: true}); - this.encoding = encoding; - this.shouldInferEncoding = shouldInferEncoding; - if (cb) - this.on("finish", function() { - cb(this.getBody()); - }); - this.body = []; - } - module.exports = ConcatStream; - inherits(ConcatStream, Writable); - ConcatStream.prototype._write = function(chunk, enc, next) { - this.body.push(chunk); - next(); - }; - ConcatStream.prototype.inferEncoding = function(buff) { - var firstBuffer = buff === void 0 ? this.body[0] : buff; - if (Buffer.isBuffer(firstBuffer)) - return "buffer"; - if (typeof Uint8Array !== "undefined" && firstBuffer instanceof Uint8Array) - return "uint8array"; - if (Array.isArray(firstBuffer)) - return "array"; - if (typeof firstBuffer === "string") - return "string"; - if (Object.prototype.toString.call(firstBuffer) === "[object Object]") - return "object"; - return "buffer"; - }; - ConcatStream.prototype.getBody = function() { - if (!this.encoding && this.body.length === 0) - return []; - if (this.shouldInferEncoding) - this.encoding = this.inferEncoding(); - if (this.encoding === "array") - return arrayConcat(this.body); - if (this.encoding === "string") - return stringConcat(this.body); - if (this.encoding === "buffer") - return bufferConcat(this.body); - if (this.encoding === "uint8array") - return u8Concat(this.body); - return this.body; - }; - var isArray = Array.isArray || function(arr) { - return Object.prototype.toString.call(arr) == "[object Array]"; - }; - function isArrayish(arr) { - return /Array\]$/.test(Object.prototype.toString.call(arr)); - } - function isBufferish(p) { - return typeof p === "string" || isArrayish(p) || p && typeof p.subarray === "function"; - } - function stringConcat(parts) { - var strings = []; - var needsToString = false; - for (var i = 0; i < parts.length; i++) { - var p = parts[i]; - if (typeof p === "string") { - strings.push(p); - } else if (Buffer.isBuffer(p)) { - strings.push(p); - } else if (isBufferish(p)) { - strings.push(bufferFrom(p)); - } else { - strings.push(bufferFrom(String(p))); - } - } - if (Buffer.isBuffer(parts[0])) { - strings = Buffer.concat(strings); - strings = strings.toString("utf8"); - } else { - strings = strings.join(""); - } - return strings; - } - function bufferConcat(parts) { - var bufs = []; - for (var i = 0; i < parts.length; i++) { - var p = parts[i]; - if (Buffer.isBuffer(p)) { - bufs.push(p); - } else if (isBufferish(p)) { - bufs.push(bufferFrom(p)); - } else { - bufs.push(bufferFrom(String(p))); - } - } - return Buffer.concat(bufs); - } - function arrayConcat(parts) { - var res = []; - for (var i = 0; i < parts.length; i++) { - res.push.apply(res, parts[i]); - } - return res; - } - function u8Concat(parts) { - var len = 0; - for (var i = 0; i < parts.length; i++) { - if (typeof parts[i] === "string") { - parts[i] = bufferFrom(parts[i]); - } - len += parts[i].length; - } - var u8 = new U8(len); - for (var i = 0, offset = 0; i < parts.length; i++) { - var part = parts[i]; - for (var j = 0; j < part.length; j++) { - u8[offset++] = part[j]; - } - } - return u8; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-recommended-bump-https-2aafa2c6d1-7139d912eb.zip/node_modules/conventional-recommended-bump/preset-resolver.js - var require_preset_resolver = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-recommended-bump-https-2aafa2c6d1-7139d912eb.zip/node_modules/conventional-recommended-bump/preset-resolver.js"(exports, module) { - "use strict"; - var promisify4 = __require("util").promisify; - module.exports = presetResolver; - function presetResolver(presetPackage) { - if (typeof presetPackage === "function") { - return promisify4(presetPackage)(); - } - if (typeof presetPackage === "object") { - return Promise.resolve(presetPackage); - } - return Promise.reject(new Error("preset package must be a promise, function, or object")); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-recommended-bump-https-2aafa2c6d1-7139d912eb.zip/node_modules/conventional-recommended-bump/index.js - var require_conventional_recommended_bump = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-recommended-bump-https-2aafa2c6d1-7139d912eb.zip/node_modules/conventional-recommended-bump/index.js"(exports, module) { - "use strict"; - var concat = require_concat_stream(); - var conventionalCommitsFilter = require_conventional_commits_filter(); - var conventionalCommitsParser = require_conventional_commits_parser(); - var conventionalChangelogPresetLoader = require_conventional_changelog_preset_loader(); - var gitSemverTags2 = require_git_semver_tags(); - var gitRawCommits = require_git_raw_commits(); - var presetResolver = require_preset_resolver(); - var VERSIONS = ["major", "minor", "patch"]; - module.exports = conventionalRecommendedBump2; - function conventionalRecommendedBump2(optionsArgument, parserOptsArgument, cbArgument) { - if (typeof optionsArgument !== "object") { - throw new Error("The 'options' argument must be an object."); - } - const options = Object.assign({ignoreReverted: true}, optionsArgument); - const cb = typeof parserOptsArgument === "function" ? parserOptsArgument : cbArgument; - if (typeof cb !== "function") { - throw new Error("You must provide a callback function."); - } - let presetPackage = options.config || {}; - if (options.preset) { - try { - presetPackage = conventionalChangelogPresetLoader(options.preset); - } catch (err) { - if (err.message === "does not exist") { - const preset = typeof options.preset === "object" ? options.preset.name : options.preset; - return cb(new Error(`Unable to load the "${preset}" preset package. Please make sure it's installed.`)); - } else { - return cb(err); - } - } - } - presetResolver(presetPackage).then((config) => { - const whatBump = options.whatBump || (config.recommendedBumpOpts && config.recommendedBumpOpts.whatBump ? config.recommendedBumpOpts.whatBump : noop); - if (typeof whatBump !== "function") { - throw Error("whatBump must be a function"); - } - const parserOpts = Object.assign({}, config.recommendedBumpOpts && config.recommendedBumpOpts.parserOpts ? config.recommendedBumpOpts.parserOpts : config.parserOpts, parserOptsArgument); - const warn = typeof parserOpts.warn === "function" ? parserOpts.warn : noop; - gitSemverTags2({ - lernaTags: !!options.lernaPackage, - package: options.lernaPackage, - tagPrefix: options.tagPrefix, - skipUnstable: options.skipUnstable - }, (err, tags) => { - if (err) { - return cb(err); - } - gitRawCommits({ - format: "%B%n-hash-%n%H", - from: tags[0] || "", - path: options.path - }).pipe(conventionalCommitsParser(parserOpts)).pipe(concat((data) => { - const commits = options.ignoreReverted ? conventionalCommitsFilter(data) : data; - if (!commits || !commits.length) { - warn("No commits since last release"); - } - let result = whatBump(commits, options); - if (result && result.level != null) { - result.releaseType = VERSIONS[result.level]; - } else if (result == null) { - result = {}; - } - cb(null, result); - })); - }); - }).catch((err) => cb(err)); - } - function noop() { - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip/node_modules/wrappy/wrappy.js - var require_wrappy = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip/node_modules/wrappy/wrappy.js"(exports, module) { - module.exports = wrappy; - function wrappy(fn, cb) { - if (fn && cb) - return wrappy(fn)(cb); - if (typeof fn !== "function") - throw new TypeError("need wrapper function"); - Object.keys(fn).forEach(function(k) { - wrapper[k] = fn[k]; - }); - return wrapper; - function wrapper() { - var args = new Array(arguments.length); - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i]; - } - var ret = fn.apply(this, args); - var cb2 = args[args.length - 1]; - if (typeof ret === "function" && ret !== cb2) { - Object.keys(cb2).forEach(function(k) { - ret[k] = cb2[k]; - }); - } - return ret; - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip/node_modules/once/once.js - var require_once = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip/node_modules/once/once.js"(exports, module) { - var wrappy = require_wrappy(); - module.exports = wrappy(once); - module.exports.strict = wrappy(onceStrict); - once.proto = once(function() { - Object.defineProperty(Function.prototype, "once", { - value: function() { - return once(this); - }, - configurable: true - }); - Object.defineProperty(Function.prototype, "onceStrict", { - value: function() { - return onceStrict(this); - }, - configurable: true - }); - }); - function once(fn) { - var f = function() { - if (f.called) - return f.value; - f.called = true; - return f.value = fn.apply(this, arguments); - }; - f.called = false; - return f; - } - function onceStrict(fn) { - var f = function() { - if (f.called) - throw new Error(f.onceError); - f.called = true; - return f.value = fn.apply(this, arguments); - }; - var name = fn.name || "Function wrapped with `once`"; - f.onceError = name + " shouldn't be called more than once"; - f.called = false; - return f; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/multistream-npm-4.1.0-0df2458b36-305c49a1aa.zip/node_modules/multistream/index.js - var require_multistream = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/multistream-npm-4.1.0-0df2458b36-305c49a1aa.zip/node_modules/multistream/index.js"(exports, module) { - var stream = require_readable(); - var once = require_once(); - function toStreams2Obj(s) { - return toStreams2(s, {objectMode: true, highWaterMark: 16}); - } - function toStreams2Buf(s) { - return toStreams2(s); - } - function toStreams2(s, opts) { - if (!s || typeof s === "function" || s._readableState) - return s; - const wrap = new stream.Readable(opts).wrap(s); - if (s.destroy) { - wrap.destroy = s.destroy.bind(s); - } - return wrap; - } - var MultiStream2 = class extends stream.Readable { - constructor(streams, opts) { - super(__spreadProps(__spreadValues({}, opts), {autoDestroy: true})); - this._drained = false; - this._forwarding = false; - this._current = null; - this._toStreams2 = opts && opts.objectMode ? toStreams2Obj : toStreams2Buf; - if (typeof streams === "function") { - this._queue = streams; - } else { - this._queue = streams.map(this._toStreams2); - this._queue.forEach((stream2) => { - if (typeof stream2 !== "function") - this._attachErrorListener(stream2); - }); - } - this._next(); - } - _read() { - this._drained = true; - this._forward(); - } - _forward() { - if (this._forwarding || !this._drained || !this._current) - return; - this._forwarding = true; - let chunk; - while (this._drained && (chunk = this._current.read()) !== null) { - this._drained = this.push(chunk); - } - this._forwarding = false; - } - _destroy(err, cb) { - let streams = []; - if (this._current) - streams.push(this._current); - if (typeof this._queue !== "function") - streams = streams.concat(this._queue); - if (streams.length === 0) { - cb(err); - } else { - let counter = streams.length; - let er = err; - streams.forEach((stream2) => { - destroy(stream2, err, (err2) => { - er = er || err2; - if (--counter === 0) { - cb(er); - } - }); - }); - } - } - _next() { - this._current = null; - if (typeof this._queue === "function") { - this._queue((err, stream2) => { - if (err) - return this.destroy(err); - stream2 = this._toStreams2(stream2); - this._attachErrorListener(stream2); - this._gotNextStream(stream2); - }); - } else { - let stream2 = this._queue.shift(); - if (typeof stream2 === "function") { - stream2 = this._toStreams2(stream2()); - this._attachErrorListener(stream2); - } - this._gotNextStream(stream2); - } - } - _gotNextStream(stream2) { - if (!stream2) { - this.push(null); - return; - } - this._current = stream2; - this._forward(); - const onReadable = () => { - this._forward(); - }; - const onClose = () => { - if (!stream2._readableState.ended && !stream2.destroyed) { - const err = new Error("ERR_STREAM_PREMATURE_CLOSE"); - err.code = "ERR_STREAM_PREMATURE_CLOSE"; - this.destroy(err); - } - }; - const onEnd = () => { - this._current = null; - stream2.removeListener("readable", onReadable); - stream2.removeListener("end", onEnd); - stream2.removeListener("close", onClose); - stream2.destroy(); - this._next(); - }; - stream2.on("readable", onReadable); - stream2.once("end", onEnd); - stream2.once("close", onClose); - } - _attachErrorListener(stream2) { - if (!stream2) - return; - const onError = (err) => { - stream2.removeListener("error", onError); - this.destroy(err); - }; - stream2.once("error", onError); - } - }; - MultiStream2.obj = (streams) => new MultiStream2(streams, {objectMode: true, highWaterMark: 16}); - module.exports = MultiStream2; - function destroy(stream2, err, cb) { - if (!stream2.destroy || stream2.destroyed) { - cb(err); - } else { - const callback = once((er) => cb(er || err)); - stream2.on("error", callback).on("close", () => callback()).destroy(err, callback); - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/packages/plugin-release/sources/index.ts - var sources_exports = {}; - __export(sources_exports, { - default: () => sources_default, - releaseUtils: () => releaseUtils_exports - }); - var import_core4 = __toModule(__require("@yarnpkg/core")); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/packages/plugin-release/sources/commands/releaseCommit.ts - var import_cli = __toModule(__require("@yarnpkg/cli")); - var import_core2 = __toModule(__require("@yarnpkg/core")); - var import_clipanion = __toModule(__require("clipanion")); - var import_semver2 = __toModule(__require("semver")); - var import_stream = __toModule(__require("stream")); - var import_util2 = __toModule(__require("util")); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/packages/plugin-release/sources/releaseUtils.ts - var releaseUtils_exports = {}; - __export(releaseUtils_exports, { - changelogStream: () => changelogStream, - recommendedBump: () => recommendedBump - }); - var import_core = __toModule(__require("@yarnpkg/core")); - var import_fslib = __toModule(__require("@yarnpkg/fslib")); - var import_plugin_pnp = __toModule(__require("@yarnpkg/plugin-pnp")); - var import_calver = __toModule(require_src()); - var import_conventional_changelog_core = __toModule(require_conventional_changelog_core()); - var import_conventional_changelog_preset_loader = __toModule(require_conventional_changelog_preset_loader()); - var import_conventional_recommended_bump = __toModule(require_conventional_recommended_bump()); - var import_git_semver_tags = __toModule(require_git_semver_tags()); - var import_module = __toModule(__require("module")); - var import_semver = __toModule(__require("semver")); - var import_util = __toModule(__require("util")); - var releaseTypes = {patch: 1, minor: 2, major: 3}; - var gitSemverTagsPromise = (0, import_util.promisify)(import_git_semver_tags.default); - async function changelogStream(workspace, ...args) { - var _a; - const {cwd, locator, manifest, project} = workspace; - const [options = {}, context, gitRawCommitsOpts, parserOpts, writerOpts] = args; - const require2 = absoluteRequire(project.cwd); - const isReleaseable = workspace === project.topLevelWorkspace || !manifest.private; - return (0, import_conventional_changelog_core.default)(__spreadValues({ - config: await loadConventionalChangelogPreset(require2, project.configuration.get(`conventionalChangelogPreset`)), - pkg: {transform: () => manifest.exportTo({version: locator.reference})}, - lernaPackage: workspace === project.topLevelWorkspace ? void 0 : import_core.structUtils.stringifyIdent(workspace.locator), - tagPrefix: workspace === project.topLevelWorkspace ? void 0 : `${import_core.structUtils.stringifyIdent(workspace.locator)}@`, - outputUnreleased: true - }, options), __spreadProps(__spreadValues({ - isPatch: false, - version: isReleaseable ? void 0 : `Unreleased` - }, context), { - date: isReleaseable ? (_a = context == null ? void 0 : context.date) != null ? _a : new Date().toISOString().split(`T`)[0] : void 0 - }), __spreadValues({path: cwd}, gitRawCommitsOpts), parserOpts, __spreadValues({ - generateOn: (commit) => { - const version = import_semver.default.valid(commit.version); - return version && (!options.skipUnstable || !import_semver.default.prerelease(version)); - } - }, writerOpts)); - } - async function recommendedBump(workspace, {prerelease, preid} = {}) { - var _a; - const {cwd, manifest, project} = workspace; - const conventionalChangelogPreset = project.configuration.get(`conventionalChangelogPreset`); - const releaseCalverFormat = project.configuration.get(`releaseCalverFormat`); - const releaseCodeChangeTypes = new Set(project.configuration.get(`releaseCodeChangeTypes`)); - const conventionalRecommendedBumpPromise = (0, import_util.promisify)(import_conventional_recommended_bump.default); - if (workspace === project.topLevelWorkspace) { - return manifest.version ? incrementCalendarPatch(releaseCalverFormat, manifest.version, {prerelease, preid}) : void 0; - } else { - const config = await loadConventionalChangelogPreset(absoluteRequire(project.cwd), conventionalChangelogPreset); - const bump = await conventionalRecommendedBumpPromise({ - config, - path: cwd, - skipUnstable: !prerelease, - lernaPackage: import_core.structUtils.stringifyIdent(workspace.locator), - whatBump: (commits) => { - var _a2; - const shouldBump = commits.some((commit) => releaseCodeChangeTypes.has(commit.type)); - return shouldBump && ((_a2 = config.recommendedBumpOpts) == null ? void 0 : _a2.whatBump) ? config.recommendedBumpOpts.whatBump(commits) : {}; - } - }); - if (!prerelease || !bump.releaseType) - return bump.releaseType; - const [latestTag] = await gitSemverTagsPromise({skipUnstable: false, lernaTags: true, package: import_core.structUtils.stringifyIdent(workspace.locator)}); - if (!latestTag) - return `pre${bump.releaseType}`; - const [stableTag = `${import_core.structUtils.stringifyIdent(workspace.locator)}@0.0.0`] = await gitSemverTagsPromise({skipUnstable: true, lernaTags: true, package: import_core.structUtils.stringifyIdent(workspace.locator)}); - const stableVersion = import_core.structUtils.parseLocator(stableTag).reference; - const latestVersion = import_core.structUtils.parseLocator(latestTag).reference; - const unstableDiff = (_a = import_semver.default.diff(stableVersion, workspace.locator.reference)) != null ? _a : import_semver.default.diff(stableVersion, latestVersion); - if (!unstableDiff) - return `pre${bump.releaseType}`; - if (unstableDiff === `prerelease`) - return `prerelease`; - const previousStableBump = unstableDiff.slice(`pre`.length); - return releaseTypes[previousStableBump] < releaseTypes[bump.releaseType] ? `pre${bump.releaseType}` : `prerelease`; - } - } - function absoluteRequire(cwd) { - const pnpPath = (0, import_plugin_pnp.getPnpPath)({cwd}).cjs; - const absRequire = (0, import_module.createRequire)(pnpPath); - if (!process.versions.pnp && import_fslib.xfs.existsSync(pnpPath)) - absRequire(pnpPath).setup(); - return absRequire; - } - function incrementCalendarPatch(format, version, {prerelease, preid} = {}) { - if (import_semver.default.prerelease(version)) - return import_semver.default.inc(version, prerelease ? `prerelease` : `patch`, preid); - const newVersion = new import_semver.SemVer(import_calver.default.inc(format, version, `calendar.micro`)); - if (prerelease) - newVersion.prerelease = preid ? [preid, 0] : [0]; - return newVersion.format(); - } - async function loadConventionalChangelogPreset(require2, request) { - try { - const config = await (0, import_conventional_changelog_preset_loader.presetLoader)(require2)(request); - return typeof config === `function` ? await (0, import_util.promisify)(config)() : config; - } catch (err) { - throw new import_core.ReportError(import_core.MessageName.UNNAMED, `Failed to load the conventional-changelog preset '${request}'. Does your top-level workspace list it as a dependency?`); - } - } - - // pnp:/Users/herockk/Workspaces/yarn-plugins/packages/plugin-release/sources/commands/releaseCommit.ts - var cliEscape = (str) => { - const specialChars = ` -$|&><\`"'`; - return specialChars.split(``).some((char) => str.includes(char)) ? `'${str.replace(/'/g, `\\'`)}'` : str; - }; - var ReleaseCommitCommand = class extends import_cli.BaseCommand { - constructor() { - super(...arguments); - this.json = import_clipanion.Option.Boolean(`--json`, false, {description: `Format the output as an NDJSON stream`}); - this.dryRun = import_clipanion.Option.Boolean(`--dry-run`, false, { - description: `Prints the recommended version bump to stdout` - }); - this.amend = import_clipanion.Option.Boolean(`--amend`, false, {description: `Amend the previous commit instead of creating a new one`}); - this.tagHead = import_clipanion.Option.String(`--tag-head`, `HEAD`, {description: `Specify an alternative commit-ish to tag`}); - } - async execute() { - const configuration = await import_core2.Configuration.find(this.context.cwd, this.context.plugins); - const {project} = await import_core2.Project.find(configuration, this.context.cwd); - const {stdout: tagListOut} = await import_core2.execUtils.execvp(`git`, [`tag`, `--list`], {cwd: project.cwd, strict: true}); - const tagList = new Set(tagListOut.trim().split(/\s+/)); - const projectTagName = `v${project.topLevelWorkspace.locator.reference}`; - if (tagList.has(projectTagName)) - throw new import_clipanion.UsageError(`${projectTagName} has already been released`); - const prerelease = import_semver2.default.prerelease(project.topLevelWorkspace.locator.reference); - const report = await import_core2.StreamReport.start({ - configuration, - stdout: this.context.stdout, - json: this.json - }, async (report2) => { - const taggableWorkspaces = project.topLevelWorkspace.getRecursiveWorkspaceChildren().filter((workspace) => !workspace.manifest.private && !tagList.has(import_core2.structUtils.stringifyLocator(workspace.locator))); - if (!taggableWorkspaces.length) { - report2.reportWarning(import_core2.MessageName.UNNAMED, `There are no workspaces to tag`); - return; - } - const newWorkspaceVersions = taggableWorkspaces.map(({locator, manifest}) => `${import_core2.structUtils.stringifyIdent(locator)}: v${manifest.version}`).join(` -`); - const commitMessage = `chore: release ${projectTagName} - -${newWorkspaceVersions}`; - const commitArgs = [`commit`, `-m`, commitMessage]; - if (this.amend) - commitArgs.push(`--amend`); - report2.reportJson({ - gitOpt: `commit`, - commitMessage - }); - if (this.dryRun) { - report2.reportInfo(import_core2.MessageName.UNNAMED, `git ${commitArgs.map(cliEscape).join(` `)}`); - } else { - await import_core2.execUtils.execvp(`git`, commitArgs, { - cwd: project.cwd, - strict: true - }); - } - for (const {locator} of taggableWorkspaces) { - const tagName = import_core2.structUtils.stringifyLocator(locator); - const tagArgs2 = [`tag`, tagName, this.tagHead]; - report2.reportJson({ - gitOp: `tag`, - tagName - }); - if (this.dryRun) { - report2.reportInfo(import_core2.MessageName.UNNAMED, `git ${tagArgs2.map(cliEscape).join(` `)}`); - } else { - await import_core2.execUtils.execvp(`git`, tagArgs2, { - cwd: project.cwd, - strict: true - }); - } - } - let changelogText = ``; - const getText = new import_stream.Transform({ - transform(chunk, encoding, callback) { - changelogText += chunk.toString(); - callback(null, chunk); - } - }); - await (0, import_util2.promisify)(import_stream.pipeline)(await changelogStream(project.topLevelWorkspace, { - releaseCount: 1, - skipUnstable: !prerelease - }), getText); - changelogText = changelogText.split(` +var plugin=(()=>{var r4=Object.create,ns=Object.defineProperty,n4=Object.defineProperties,i4=Object.getOwnPropertyDescriptor,s4=Object.getOwnPropertyDescriptors,o4=Object.getOwnPropertyNames,zg=Object.getOwnPropertySymbols,a4=Object.getPrototypeOf,Jg=Object.prototype.hasOwnProperty,u4=Object.prototype.propertyIsEnumerable;var Xg=(e,t,r)=>t in e?ns(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,it=(e,t)=>{for(var r in t||(t={}))Jg.call(t,r)&&Xg(e,r,t[r]);if(zg)for(var r of zg(t))u4.call(t,r)&&Xg(e,r,t[r]);return e},Vr=(e,t)=>n4(e,s4(t)),l4=e=>ns(e,"__esModule",{value:!0});var G=e=>{if(typeof require!="undefined")return require(e);throw new Error('Dynamic require of "'+e+'" is not supported')};var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Zg=(e,t)=>{for(var r in t)ns(e,r,{get:t[r],enumerable:!0})},f4=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of o4(t))!Jg.call(e,i)&&i!=="default"&&ns(e,i,{get:()=>t[i],enumerable:!(r=i4(t,i))||r.enumerable});return e},Ce=e=>f4(l4(ns(e!=null?r4(a4(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var em=_((B$,Qg)=>{Qg.exports=function(t,r,i,o){let u=t.split(".").filter(U=>o.date.indexOf(U)!==-1),l=r.length>0?r.split(/[.-]/):[],f=Array(12).fill(1).map((U,I)=>(I+1).toString()),d=Array(12).fill(1).map((U,I)=>(I>8?"":"0")+(I+1)),p=Array(52).fill(1).map((U,I)=>(I+1).toString()),g=Array(52).fill(1).map((U,I)=>(I>8?"":"0")+(I+1)),h=Array(31).fill(1).map((U,I)=>(I+1).toString()),b=Array(31).fill(1).map((U,I)=>(I>8?"":"0")+(I+1)),w={};if(l.length>0)for(let U=0;Uw[U]).join(".")}function z(U=void 0){return new Date(R()).toLocaleString(U,{year:"numeric",month:"long",timeZone:"UTC"})}return{inc:V,asString:X,asNumeric:R,pretty:z}}});var rm=_((U$,tm)=>{tm.exports=function(t,r,i){let o=t.split(".").filter(g=>i.semantic.indexOf(g)!==-1),u=r.length>0?r.split(/[.-]/):[];t.split(".").filter(g=>i.date.indexOf(g)!==-1).map(g=>u.shift());let f={};for(let g=0;gf[g]&&g!="MODIFIER").map(g=>f[g]).join(".")+(f.MODIFIER&&f.MODIFIER!="modifier.0"?"-"+f.MODIFIER:"")}return{inc:d,asString:p}}});var im=_((G$,nm)=>{var Ho=em(),Wo=rm();function c4(){let e={date:["YYYY","YY","0Y","MM","0M","WW","0W","DD","0D"],semantic:["MAJOR","MINOR","MICRO","MODIFIER"],modifier:["DEV","ALPHA","BETA","RC"]},t=["CALENDAR","MAJOR","MINOR","MICRO",...e.modifier],r={now:new Date(Date.now())};function i(h,b){return h=h.toUpperCase(),g(h),p(b,h),Ho(h,b,r.now,e),Wo(h,b,e),!0}function o(h){h=g(h,{transformModifiers:!1});let b=Ho(h,"",r.now,e),w=Wo(h,"",e),S=h.split(".").filter(O=>e.semantic.indexOf(O)!==-1);S.length>0&&w.inc(S[0]),h.split(".").filter(O=>e.date.indexOf(O)!==-1).length>0&&(b.inc("CALENDAR"),w.inc("CALENDAR"));let C=h.split(".").filter(O=>e.modifier.indexOf(O)!==-1);return C.length>0&&w.inc(C[0]),[b.asString(),w.asString()].filter(O=>O).join(".")}function u(h,b,w){h=g(h),b=p(b,h),w=d(w,h);let S=Ho(h,b,r.now,e),L=Wo(h,b,e),C=!1;for(let F of w.split("."))F==="CALENDAR"?S.inc(F)&&(C=!0,L.inc("CALENDAR")):(!C||e.modifier.includes(F))&&L.inc(F);let O=[S.asString(),L.asString()].filter(F=>F).join(".");if(b===O)throw new Error("There is no change in the version.");return O}function l(h,b,w=void 0){h=g(h),b=p(b,h);let S=Ho(h,b,r.now,e),L=Wo(h,b,e);return S.pretty(w)+" v"+L.asString()+""}function f(h){return h=h.toUpperCase(),e.date.indexOf(h)!==-1?"date":e.semantic.indexOf(h)!==-1?"semantic":e.modifier.indexOf(h)!==-1?"modifier":""}function d(h,b){if(!h)throw new Error("Please specify a valid level.");h=h.trim().toUpperCase();let w=b.split("."),S=h.split(".");if(S.length>2)throw new Error("You can specify 2 levels at max.");if(!S)throw new Error("You should specify at least one level.");for(var L=0;Le.modifier.indexOf(D)!==-1&&b.transformModifiers===!0?"MODIFIER":D).join(".");let w=[],S=h.split(".");for(let D=0;De.date.indexOf(D)!==-1),C=null;if(L.length>0){let D=e.date.filter(R=>L.indexOf(R)!==-1);for(let R=0;Re.semantic.indexOf(D)!==-1),F=null;if(O.length>0){let D=e.semantic.filter(R=>O.indexOf(R)!==-1);for(let R=0;RF)throw new Error("Semantic tags should come after date tags.");return h}return{init:o,inc:u,pretty:l,getTagType:f,valid:i}}nm.exports=c4()});var lm=_((j$,um)=>{"use strict";var sm=G("stream").PassThrough,om=G("stream").Writable,am=G("util");am.inherits(Yl,sm);am.inherits(Kl,om);function Yl(e,t){sm.call(this,t),this.factory=e,this.opts=t}Yl.prototype._flush=function(e){var t=this.factory();t.pipe(new Kl(this,this.opts)).on("finish",e),t.resume()};function Kl(e,t){om.call(this,t),this.target=e}Kl.prototype._write=function(e,t,r){this.target.push(e),r()};function Vl(e,t){t=t||{};var r;return typeof e=="function"?r=e:(e.pause(),r=function(){return e}),new Yl(r,t)}Vl.obj=function(e,t){return t=t||{},t.objectMode=!0,Vl(e,t)};um.exports=Vl});var hm=_((H$,cm)=>{"use strict";var fm=(e,t)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),h4=(e,t)=>{let r=[],i=[],o=[];t=it({useEquals:!0,shortFlag:!0},t);let u=(f,d)=>{let p=t.shortFlag&&f.length===1?"-":"--",g=t.allowCamelCase?f:f.replace(/[A-Z]/g,"-$&").toLowerCase();f=p+g,t.useEquals?r.push(f+(d?`=${d}`:"")):(r.push(f),d&&r.push(d))},l=(f,d)=>{r.push(`-${f}`),d&&r.push(d)};for(let[f,d]of Object.entries(e)){let p=u;if(!(Array.isArray(t.excludes)&&fm(t.excludes,f))&&!(Array.isArray(t.includes)&&!fm(t.includes,f))){if(typeof t.aliases=="object"&&t.aliases[f]&&(f=t.aliases[f],p=l),f==="--"){if(!Array.isArray(d))throw new TypeError(`Expected key \`--\` to be Array, got ${typeof d}`);o=d;continue}if(f==="_"){if(!Array.isArray(d))throw new TypeError(`Expected key \`_\` to be Array, got ${typeof d}`);i=d;continue}if(d===!0&&p(f,""),d===!1&&!t.ignoreFalse&&p(`no-${f}`),typeof d=="string"&&p(f,d),typeof d=="number"&&!Number.isNaN(d)&&p(f,String(d)),Array.isArray(d))for(let g of d)p(f,g)}}for(let f of i)r.push(String(f));o.length>0&&r.push("--");for(let f of o)r.push(String(f));return r};cm.exports=h4});var zl=_((W$,pm)=>{pm.exports=G("stream")});var vm=_(($$,mm)=>{"use strict";function dm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function p4(e){for(var t=1;t0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,o=""+i.data;i=i.next;)o+=r+i.data;return o}},{key:"concat",value:function(r){if(this.length===0)return $o.alloc(0);for(var i=$o.allocUnsafe(r>>>0),o=this.head,u=0;o;)b4(o.data,i,u),u+=o.data.length,o=o.next;return i}},{key:"consume",value:function(r,i){var o;return rl.length?l.length:r;if(f===l.length?u+=l:u+=l.slice(0,r),r-=f,r===0){f===l.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=l.slice(f));break}++o}return this.length-=o,u}},{key:"_getBuffer",value:function(r){var i=$o.allocUnsafe(r),o=this.head,u=1;for(o.data.copy(i),r-=o.data.length;o=o.next;){var l=o.data,f=r>l.length?l.length:r;if(l.copy(i,i.length-r,0,f),r-=f,r===0){f===l.length?(++u,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=l.slice(f));break}++u}return this.length-=u,i}},{key:_4,value:function(r,i){return Jl(this,p4({},i,{depth:0,customInspect:!1}))}}]),e}()});var Zl=_((Y$,_m)=>{"use strict";function w4(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Xl,this,e)):process.nextTick(Xl,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(u){!t&&u?r._writableState?r._writableState.errorEmitted?process.nextTick(Yo,r):(r._writableState.errorEmitted=!0,process.nextTick(ym,r,u)):process.nextTick(ym,r,u):t?(process.nextTick(Yo,r),t(u)):process.nextTick(Yo,r)}),this)}function ym(e,t){Xl(e,t),Yo(e)}function Yo(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function S4(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Xl(e,t){e.emit("error",t)}function E4(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}_m.exports={destroy:w4,undestroy:S4,errorOrDestroy:E4}});var zr=_((K$,Sm)=>{"use strict";var bm={};function Ft(e,t,r){r||(r=Error);function i(u,l,f){return typeof t=="string"?t:t(u,l,f)}class o extends r{constructor(l,f,d){super(i(l,f,d))}}o.prototype.name=r.name,o.prototype.code=e,bm[e]=o}function wm(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(i=>String(i)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function L4(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function A4(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function x4(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Ft("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Ft("ERR_INVALID_ARG_TYPE",function(e,t,r){let i;typeof t=="string"&&L4(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";let o;if(A4(e," argument"))o=`The ${e} ${i} ${wm(t,"type")}`;else{let u=x4(e,".")?"property":"argument";o=`The "${e}" ${u} ${i} ${wm(t,"type")}`}return o+=`. Received type ${typeof r}`,o},TypeError);Ft("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ft("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Ft("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ft("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Ft("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ft("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ft("ERR_STREAM_WRITE_AFTER_END","write after end");Ft("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ft("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Ft("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Sm.exports.codes=bm});var Ql=_((V$,Em)=>{"use strict";var P4=zr().codes.ERR_INVALID_OPT_VALUE;function C4(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function O4(e,t,r,i){var o=C4(t,i,r);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var u=i?r:"highWaterMark";throw new P4(u,o)}return Math.floor(o)}return e.objectMode?16:16*1024}Em.exports={getHighWaterMark:O4}});var Lm=_((z$,ef)=>{typeof Object.create=="function"?ef.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ef.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var wn=_((J$,rf)=>{try{if(tf=G("util"),typeof tf.inherits!="function")throw"";rf.exports=tf.inherits}catch(e){rf.exports=Lm()}var tf});var xm=_((X$,Am)=>{Am.exports=G("util").deprecate});var of=_((Z$,Im)=>{"use strict";Im.exports=Be;function Pm(e){var t=this;this.next=null,this.entry=null,this.finish=function(){r8(t,e)}}var oi;Be.WritableState=is;var R4={deprecate:xm()},Cm=zl(),Ko=G("buffer").Buffer,T4=global.Uint8Array||function(){};function I4(e){return Ko.from(e)}function N4(e){return Ko.isBuffer(e)||e instanceof T4}var nf=Zl(),D4=Ql(),M4=D4.getHighWaterMark,Jr=zr().codes,q4=Jr.ERR_INVALID_ARG_TYPE,k4=Jr.ERR_METHOD_NOT_IMPLEMENTED,F4=Jr.ERR_MULTIPLE_CALLBACK,B4=Jr.ERR_STREAM_CANNOT_PIPE,U4=Jr.ERR_STREAM_DESTROYED,G4=Jr.ERR_STREAM_NULL_VALUES,j4=Jr.ERR_STREAM_WRITE_AFTER_END,H4=Jr.ERR_UNKNOWN_ENCODING,ai=nf.errorOrDestroy;wn()(Be,Cm);function W4(){}function is(e,t,r){oi=oi||Sn(),e=e||{},typeof r!="boolean"&&(r=t instanceof oi),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=M4(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(o){X4(t,o)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Pm(this)}is.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(is.prototype,"buffer",{get:R4.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var Vo;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Vo=Function.prototype[Symbol.hasInstance],Object.defineProperty(Be,Symbol.hasInstance,{value:function(t){return Vo.call(this,t)?!0:this!==Be?!1:t&&t._writableState instanceof is}})):Vo=function(t){return t instanceof this};function Be(e){oi=oi||Sn();var t=this instanceof oi;if(!t&&!Vo.call(Be,this))return new Be(e);this._writableState=new is(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Cm.call(this)}Be.prototype.pipe=function(){ai(this,new B4)};function $4(e,t){var r=new j4;ai(e,r),process.nextTick(t,r)}function Y4(e,t,r,i){var o;return r===null?o=new G4:typeof r!="string"&&!t.objectMode&&(o=new q4("chunk",["string","Buffer"],r)),o?(ai(e,o),process.nextTick(i,o),!1):!0}Be.prototype.write=function(e,t,r){var i=this._writableState,o=!1,u=!i.objectMode&&N4(e);return u&&!Ko.isBuffer(e)&&(e=I4(e)),typeof t=="function"&&(r=t,t=null),u?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=W4),i.ending?$4(this,r):(u||Y4(this,i,e,r))&&(i.pendingcb++,o=V4(this,i,u,e,t,r)),o};Be.prototype.cork=function(){this._writableState.corked++};Be.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Rm(this,e))};Be.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new H4(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Be.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K4(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Ko.from(t,r)),t}Object.defineProperty(Be.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function V4(e,t,r,i,o,u){if(!r){var l=K4(t,i,o);i!==l&&(r=!0,o="buffer",i=l)}var f=t.objectMode?1:i.length;t.length+=f;var d=t.length{"use strict";var n8=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Dm.exports=or;var Nm=lf(),af=of();wn()(or,Nm);for(uf=n8(af.prototype),zo=0;zo{var Xo=G("buffer"),ar=Xo.Buffer;function Mm(e,t){for(var r in e)t[r]=e[r]}ar.from&&ar.alloc&&ar.allocUnsafe&&ar.allocUnsafeSlow?qm.exports=Xo:(Mm(Xo,ff),ff.Buffer=En);function En(e,t,r){return ar(e,t,r)}En.prototype=Object.create(ar.prototype);Mm(ar,En);En.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ar(e,t,r)};En.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=ar(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};En.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ar(e)};En.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Xo.SlowBuffer(e)}});var pf=_(Bm=>{"use strict";var cf=km().Buffer,Fm=cf.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o8(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a8(e){var t=o8(e);if(typeof t!="string"&&(cf.isEncoding===Fm||!Fm(e)))throw new Error("Unknown encoding: "+e);return t||e}Bm.StringDecoder=os;function os(e){this.encoding=a8(e);var t;switch(this.encoding){case"utf16le":this.text=p8,this.end=d8,t=4;break;case"utf8":this.fillLast=f8,t=4;break;case"base64":this.text=g8,this.end=m8,t=3;break;default:this.write=v8,this.end=y8;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=cf.allocUnsafe(t)}os.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u8(e,t,r){var i=t.length-1;if(i=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(o===2?o=0:e.lastNeed=o-3),o):0))}function l8(e,t,r){if((t[0]&192)!=128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,"\uFFFD"}}function f8(e){var t=this.lastTotal-this.lastNeed,r=l8(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function c8(e,t){var r=u8(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function h8(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function p8(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function d8(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g8(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function m8(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v8(e){return e.toString(this.encoding)}function y8(e){return e&&e.length?this.write(e):""}});var Zo=_((tY,jm)=>{"use strict";var Um=zr().codes.ERR_STREAM_PREMATURE_CLOSE;function _8(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),o=0;o{"use strict";var Qo;function Xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S8=Zo(),Zr=Symbol("lastResolve"),Ln=Symbol("lastReject"),as=Symbol("error"),ea=Symbol("ended"),An=Symbol("lastPromise"),df=Symbol("handlePromise"),xn=Symbol("stream");function Qr(e,t){return{value:e,done:t}}function E8(e){var t=e[Zr];if(t!==null){var r=e[xn].read();r!==null&&(e[An]=null,e[Zr]=null,e[Ln]=null,t(Qr(r,!1)))}}function L8(e){process.nextTick(E8,e)}function A8(e,t){return function(r,i){e.then(function(){if(t[ea]){r(Qr(void 0,!0));return}t[df](r,i)},i)}}var x8=Object.getPrototypeOf(function(){}),P8=Object.setPrototypeOf((Qo={get stream(){return this[xn]},next:function(){var t=this,r=this[as];if(r!==null)return Promise.reject(r);if(this[ea])return Promise.resolve(Qr(void 0,!0));if(this[xn].destroyed)return new Promise(function(l,f){process.nextTick(function(){t[as]?f(t[as]):l(Qr(void 0,!0))})});var i=this[An],o;if(i)o=new Promise(A8(i,this));else{var u=this[xn].read();if(u!==null)return Promise.resolve(Qr(u,!1));o=new Promise(this[df])}return this[An]=o,o}},Xr(Qo,Symbol.asyncIterator,function(){return this}),Xr(Qo,"return",function(){var t=this;return new Promise(function(r,i){t[xn].destroy(null,function(o){if(o){i(o);return}r(Qr(void 0,!0))})})}),Qo),x8),C8=function(t){var r,i=Object.create(P8,(r={},Xr(r,xn,{value:t,writable:!0}),Xr(r,Zr,{value:null,writable:!0}),Xr(r,Ln,{value:null,writable:!0}),Xr(r,as,{value:null,writable:!0}),Xr(r,ea,{value:t._readableState.endEmitted,writable:!0}),Xr(r,df,{value:function(u,l){var f=i[xn].read();f?(i[An]=null,i[Zr]=null,i[Ln]=null,u(Qr(f,!1))):(i[Zr]=u,i[Ln]=l)},writable:!0}),r));return i[An]=null,S8(t,function(o){if(o&&o.code!=="ERR_STREAM_PREMATURE_CLOSE"){var u=i[Ln];u!==null&&(i[An]=null,i[Zr]=null,i[Ln]=null,u(o)),i[as]=o;return}var l=i[Zr];l!==null&&(i[An]=null,i[Zr]=null,i[Ln]=null,l(Qr(void 0,!0))),i[ea]=!0}),t.on("readable",L8.bind(null,i)),i};Hm.exports=C8});var Vm=_((nY,Km)=>{"use strict";function $m(e,t,r,i,o,u,l){try{var f=e[u](l),d=f.value}catch(p){r(p);return}f.done?t(d):Promise.resolve(d).then(i,o)}function O8(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var u=e.apply(t,r);function l(d){$m(u,i,o,l,f,"next",d)}function f(d){$m(u,i,o,l,f,"throw",d)}l(void 0)})}}function Ym(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function R8(e){for(var t=1;t{"use strict";iv.exports=be;var ui;be.ReadableState=Jm;var iY=G("events").EventEmitter,zm=function(t,r){return t.listeners(r).length},us=zl(),ta=G("buffer").Buffer,D8=global.Uint8Array||function(){};function M8(e){return ta.from(e)}function q8(e){return ta.isBuffer(e)||e instanceof D8}var gf=G("util"),me;gf&&gf.debuglog?me=gf.debuglog("stream"):me=function(){};var k8=vm(),mf=Zl(),F8=Ql(),B8=F8.getHighWaterMark,ra=zr().codes,U8=ra.ERR_INVALID_ARG_TYPE,G8=ra.ERR_STREAM_PUSH_AFTER_EOF,j8=ra.ERR_METHOD_NOT_IMPLEMENTED,H8=ra.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,li,vf,yf;wn()(be,us);var ls=mf.errorOrDestroy,_f=["error","close","destroy","pause","resume"];function W8(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function Jm(e,t,r){ui=ui||Sn(),e=e||{},typeof r!="boolean"&&(r=t instanceof ui),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=B8(this,e,"readableHighWaterMark",r),this.buffer=new k8,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(li||(li=pf().StringDecoder),this.decoder=new li(e.encoding),this.encoding=e.encoding)}function be(e){if(ui=ui||Sn(),!(this instanceof be))return new be(e);var t=this instanceof ui;this._readableState=new Jm(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),us.call(this)}Object.defineProperty(be.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});be.prototype.destroy=mf.destroy;be.prototype._undestroy=mf.undestroy;be.prototype._destroy=function(e,t){t(e)};be.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=ta.from(e,t),t=""),i=!0),Xm(this,e,t,!1,i)};be.prototype.unshift=function(e){return Xm(this,e,null,!0,!1)};function Xm(e,t,r,i,o){me("readableAddChunk",t);var u=e._readableState;if(t===null)u.reading=!1,K8(e,u);else{var l;if(o||(l=$8(u,t)),l)ls(e,l);else if(u.objectMode||t&&t.length>0)if(typeof t!="string"&&!u.objectMode&&Object.getPrototypeOf(t)!==ta.prototype&&(t=M8(t)),i)u.endEmitted?ls(e,new H8):bf(e,u,t,!0);else if(u.ended)ls(e,new G8);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||t.length!==0?bf(e,u,t,!1):wf(e,u)):bf(e,u,t,!1)}else i||(u.reading=!1,wf(e,u))}return!u.ended&&(u.length=Zm?e=Zm:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Qm(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=Y8(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}be.prototype.read=function(e){me("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return me("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Ef(this):na(this),null;if(e=Qm(e,t),e===0&&t.ended)return t.length===0&&Ef(this),null;var i=t.needReadable;me("need readable",i),(t.length===0||t.length-e0?o=rv(e,t):o=null,o===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Ef(this)),o!==null&&this.emit("data",o),o};function K8(e,t){if(me("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?na(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,ev(e)))}}function na(e){var t=e._readableState;me("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(me("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(ev,e))}function ev(e){var t=e._readableState;me("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Sf(e)}function wf(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(V8,e,t))}function V8(e,t){for(;!t.reading&&!t.ended&&(t.length1&&nv(i.pipes,e)!==-1)&&!p&&(me("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function b(C){me("onerror",C),L(),e.removeListener("error",b),zm(e,"error")===0&&ls(e,C)}W8(e,"error",b);function w(){e.removeListener("finish",S),L()}e.once("close",w);function S(){me("onfinish"),e.removeListener("close",w),L()}e.once("finish",S);function L(){me("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(me("pipe resume"),r.resume()),e};function z8(e){return function(){var r=e._readableState;me("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&zm(e,"data")&&(r.flowing=!0,Sf(e))}}be.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var u=0;u0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,me("on readable",i.length,i.reading),i.length?na(this):i.reading||process.nextTick(J8,this)),r};be.prototype.addListener=be.prototype.on;be.prototype.removeListener=function(e,t){var r=us.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(tv,this),r};be.prototype.removeAllListeners=function(e){var t=us.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(tv,this),t};function tv(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function J8(e){me("readable nexttick read 0"),e.read(0)}be.prototype.resume=function(){var e=this._readableState;return e.flowing||(me("resume"),e.flowing=!e.readableListening,X8(this,e)),e.paused=!1,this};function X8(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(Z8,e,t))}function Z8(e,t){me("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Sf(e),t.flowing&&!t.reading&&e.read(0)}be.prototype.pause=function(){return me("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(me("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Sf(e){var t=e._readableState;for(me("flow",t.flowing);t.flowing&&e.read()!==null;);}be.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(me("wrapped end"),r.decoder&&!r.ended){var l=r.decoder.end();l&&l.length&&t.push(l)}t.push(null)}),e.on("data",function(l){if(me("wrapped data"),r.decoder&&(l=r.decoder.write(l)),!(r.objectMode&&l==null)&&!(!r.objectMode&&(!l||!l.length))){var f=t.push(l);f||(i=!0,e.pause())}});for(var o in e)this[o]===void 0&&typeof e[o]=="function"&&(this[o]=function(f){return function(){return e[f].apply(e,arguments)}}(o));for(var u=0;u<_f.length;u++)e.on(_f[u],this.emit.bind(this,_f[u]));return this._read=function(l){me("wrapped _read",l),i&&(i=!1,e.resume())},this};typeof Symbol=="function"&&(be.prototype[Symbol.asyncIterator]=function(){return vf===void 0&&(vf=Wm()),vf(this)});Object.defineProperty(be.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(be.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(be.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});be._fromList=rv;Object.defineProperty(be.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function rv(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Ef(e){var t=e._readableState;me("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(Q8,t,e))}function Q8(e,t){if(me("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(be.from=function(e,t){return yf===void 0&&(yf=Vm()),yf(be,e,t)});function nv(e,t){for(var r=0,i=e.length;r{"use strict";ov.exports=xr;var ia=zr().codes,eN=ia.ERR_METHOD_NOT_IMPLEMENTED,tN=ia.ERR_MULTIPLE_CALLBACK,rN=ia.ERR_TRANSFORM_ALREADY_TRANSFORMING,nN=ia.ERR_TRANSFORM_WITH_LENGTH_0,sa=Sn();wn()(xr,sa);function iN(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new tN);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{"use strict";uv.exports=fs;var av=Lf();wn()(fs,av);function fs(e){if(!(this instanceof fs))return new fs(e);av.call(this,e)}fs.prototype._transform=function(e,t,r){r(null,e)}});var dv=_((uY,pv)=>{"use strict";var Af;function oN(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var fv=zr().codes,aN=fv.ERR_MISSING_ARGS,uN=fv.ERR_STREAM_DESTROYED;function cv(e){if(e)throw e}function lN(e){return e.setHeader&&typeof e.abort=="function"}function fN(e,t,r,i){i=oN(i);var o=!1;e.on("close",function(){o=!0}),Af===void 0&&(Af=Zo()),Af(e,{readable:t,writable:r},function(l){if(l)return i(l);o=!0,i()});var u=!1;return function(l){if(!o&&!u){if(u=!0,lN(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(l||new uN("pipe"))}}}function hv(e){e()}function cN(e,t){return e.pipe(t)}function hN(e){return!e.length||typeof e[e.length-1]!="function"?cv:e.pop()}function pN(){for(var e=arguments.length,t=new Array(e),r=0;r0;return fN(l,d,p,function(g){o||(o=g),g&&u.forEach(hv),!d&&(u.forEach(hv),i(o))})});return t.reduce(cN)}pv.exports=pN});var ps=_((Bt,hs)=>{var cs=G("stream");process.env.READABLE_STREAM==="disable"&&cs?(hs.exports=cs.Readable,Object.assign(hs.exports,cs),hs.exports.Stream=cs):(Bt=hs.exports=lf(),Bt.Stream=cs||Bt,Bt.Readable=Bt,Bt.Writable=of(),Bt.Duplex=Sn(),Bt.Transform=Lf(),Bt.PassThrough=lv(),Bt.finished=Zo(),Bt.pipeline=dv())});var yv=_((lY,vv)=>{"use strict";var{Transform:dN}=ps(),{StringDecoder:gN}=G("string_decoder"),en=Symbol("last"),oa=Symbol("decoder");function mN(e,t,r){var i;if(this.overflow){var o=this[oa].write(e);if(i=o.split(this.matcher),i.length===1)return r();i.shift(),this.overflow=!1}else this[en]+=this[oa].write(e),i=this[en].split(this.matcher);this[en]=i.pop();for(var u=0;uthis.maxLength,this.overflow&&!this.skipOverflow)return r(new Error("maximum buffer reached"));r()}function vN(e){if(this[en]+=this[oa].end(),this[en])try{gv(this,this.mapper(this[en]))}catch(t){return e(t)}e()}function gv(e,t){t!==void 0&&e.push(t)}function mv(e){return e}function yN(e,t,r){switch(e=e||/\r?\n/,t=t||mv,r=r||{},arguments.length){case 1:typeof e=="function"?(t=e,e=/\r?\n/):typeof e=="object"&&!(e instanceof RegExp)&&(r=e,e=/\r?\n/);break;case 2:typeof e=="function"?(r=t,t=e,e=/\r?\n/):typeof t=="object"&&(r=t,t=mv)}r=Object.assign({},r),r.transform=mN,r.flush=vN,r.readableObjectMode=!0;let i=new dN(r);return i[en]="",i[oa]=new gN("utf8"),i.matcher=e,i.mapper=t,i.maxLength=r.maxLength,i.skipOverflow=r.skipOverflow,i.overflow=!1,i}vv.exports=yN});var xf=_((fY,_v)=>{var _N=typeof global=="object"&&global&&global.Object===Object&&global;_v.exports=_N});var ur=_((cY,bv)=>{var bN=xf(),wN=typeof self=="object"&&self&&self.Object===Object&&self,SN=bN||wN||Function("return this")();bv.exports=SN});var ds=_((hY,wv)=>{var EN=ur(),LN=EN.Symbol;wv.exports=LN});var Av=_((pY,Lv)=>{var Sv=ds(),Ev=Object.prototype,AN=Ev.hasOwnProperty,xN=Ev.toString,gs=Sv?Sv.toStringTag:void 0;function PN(e){var t=AN.call(e,gs),r=e[gs];try{e[gs]=void 0;var i=!0}catch(u){}var o=xN.call(e);return i&&(t?e[gs]=r:delete e[gs]),o}Lv.exports=PN});var Pv=_((dY,xv)=>{var CN=Object.prototype,ON=CN.toString;function RN(e){return ON.call(e)}xv.exports=RN});var tn=_((gY,Rv)=>{var Cv=ds(),TN=Av(),IN=Pv(),NN="[object Null]",DN="[object Undefined]",Ov=Cv?Cv.toStringTag:void 0;function MN(e){return e==null?e===void 0?DN:NN:Ov&&Ov in Object(e)?TN(e):IN(e)}Rv.exports=MN});var fi=_((mY,Tv)=>{function qN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Tv.exports=qN});var Pf=_((vY,Iv)=>{var kN=tn(),FN=fi(),BN="[object AsyncFunction]",UN="[object Function]",GN="[object GeneratorFunction]",jN="[object Proxy]";function HN(e){if(!FN(e))return!1;var t=kN(e);return t==UN||t==GN||t==BN||t==jN}Iv.exports=HN});var Dv=_((yY,Nv)=>{var WN=ur(),$N=WN["__core-js_shared__"];Nv.exports=$N});var kv=_((_Y,qv)=>{var Cf=Dv(),Mv=function(){var e=/[^.]+$/.exec(Cf&&Cf.keys&&Cf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function YN(e){return!!Mv&&Mv in e}qv.exports=YN});var Of=_((bY,Fv)=>{var KN=Function.prototype,VN=KN.toString;function zN(e){if(e!=null){try{return VN.call(e)}catch(t){}try{return e+""}catch(t){}}return""}Fv.exports=zN});var Uv=_((wY,Bv)=>{var JN=Pf(),XN=kv(),ZN=fi(),QN=Of(),eD=/[\\^$.*+?()[\]{}|]/g,tD=/^\[object .+?Constructor\]$/,rD=Function.prototype,nD=Object.prototype,iD=rD.toString,sD=nD.hasOwnProperty,oD=RegExp("^"+iD.call(sD).replace(eD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aD(e){if(!ZN(e)||XN(e))return!1;var t=JN(e)?oD:tD;return t.test(QN(e))}Bv.exports=aD});var jv=_((SY,Gv)=>{function uD(e,t){return e==null?void 0:e[t]}Gv.exports=uD});var rn=_((EY,Hv)=>{var lD=Uv(),fD=jv();function cD(e,t){var r=fD(e,t);return lD(r)?r:void 0}Hv.exports=cD});var Rf=_((LY,Wv)=>{var hD=rn(),pD=function(){try{var e=hD(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();Wv.exports=pD});var Tf=_((AY,Yv)=>{var $v=Rf();function dD(e,t,r){t=="__proto__"&&$v?$v(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}Yv.exports=dD});var ci=_((xY,Kv)=>{function gD(e,t){return e===t||e!==e&&t!==t}Kv.exports=gD});var zv=_((PY,Vv)=>{var mD=Tf(),vD=ci(),yD=Object.prototype,_D=yD.hasOwnProperty;function bD(e,t,r){var i=e[t];(!(_D.call(e,t)&&vD(i,r))||r===void 0&&!(t in e))&&mD(e,t,r)}Vv.exports=bD});var Xv=_((CY,Jv)=>{var wD=zv(),SD=Tf();function ED(e,t,r,i){var o=!r;r||(r={});for(var u=-1,l=t.length;++u{function LD(e){return e}Zv.exports=LD});var Nf=_((RY,Qv)=>{function AD(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}Qv.exports=AD});var r1=_((TY,t1)=>{var xD=Nf(),e1=Math.max;function PD(e,t,r){return t=e1(t===void 0?e.length-1:t,0),function(){for(var i=arguments,o=-1,u=e1(i.length-t,0),l=Array(u);++o{function CD(e){return function(){return e}}n1.exports=CD});var a1=_((NY,o1)=>{var OD=i1(),s1=Rf(),RD=If(),TD=s1?function(e,t){return s1(e,"toString",{configurable:!0,enumerable:!1,value:OD(t),writable:!0})}:RD;o1.exports=TD});var l1=_((DY,u1)=>{var ID=800,ND=16,DD=Date.now;function MD(e){var t=0,r=0;return function(){var i=DD(),o=ND-(i-r);if(r=i,o>0){if(++t>=ID)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}u1.exports=MD});var c1=_((MY,f1)=>{var qD=a1(),kD=l1(),FD=kD(qD);f1.exports=FD});var Df=_((qY,h1)=>{var BD=If(),UD=r1(),GD=c1();function jD(e,t){return GD(UD(e,t,BD),e+"")}h1.exports=jD});var Mf=_((kY,p1)=>{var HD=9007199254740991;function WD(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=HD}p1.exports=WD});var aa=_((FY,d1)=>{var $D=Pf(),YD=Mf();function KD(e){return e!=null&&YD(e.length)&&!$D(e)}d1.exports=KD});var qf=_((BY,g1)=>{var VD=9007199254740991,zD=/^(?:0|[1-9]\d*)$/;function JD(e,t){var r=typeof e;return t=t==null?VD:t,!!t&&(r=="number"||r!="symbol"&&zD.test(e))&&e>-1&&e%1==0&&e{var XD=ci(),ZD=aa(),QD=qf(),eM=fi();function tM(e,t,r){if(!eM(r))return!1;var i=typeof t;return(i=="number"?ZD(r)&&QD(t,r.length):i=="string"&&t in r)?XD(r[t],e):!1}m1.exports=tM});var y1=_((GY,v1)=>{var rM=Df(),nM=kf();function iM(e){return rM(function(t,r){var i=-1,o=r.length,u=o>1?r[o-1]:void 0,l=o>2?r[2]:void 0;for(u=e.length>3&&typeof u=="function"?(o--,u):void 0,l&&nM(r[0],r[1],l)&&(u=o<3?void 0:u,o=1),t=Object(t);++i{function sM(e,t){for(var r=-1,i=Array(e);++r{function oM(e){return e!=null&&typeof e=="object"}w1.exports=oM});var E1=_((WY,S1)=>{var aM=tn(),uM=nn(),lM="[object Arguments]";function fM(e){return uM(e)&&aM(e)==lM}S1.exports=fM});var P1=_(($Y,x1)=>{var L1=E1(),cM=nn(),A1=Object.prototype,hM=A1.hasOwnProperty,pM=A1.propertyIsEnumerable,dM=L1(function(){return arguments}())?L1:function(e){return cM(e)&&hM.call(e,"callee")&&!pM.call(e,"callee")};x1.exports=dM});var ms=_((YY,C1)=>{var gM=Array.isArray;C1.exports=gM});var R1=_((KY,O1)=>{function mM(){return!1}O1.exports=mM});var Ff=_((vs,hi)=>{var vM=ur(),yM=R1(),T1=typeof vs=="object"&&vs&&!vs.nodeType&&vs,I1=T1&&typeof hi=="object"&&hi&&!hi.nodeType&&hi,_M=I1&&I1.exports===T1,N1=_M?vM.Buffer:void 0,bM=N1?N1.isBuffer:void 0,wM=bM||yM;hi.exports=wM});var M1=_((VY,D1)=>{var SM=tn(),EM=Mf(),LM=nn(),AM="[object Arguments]",xM="[object Array]",PM="[object Boolean]",CM="[object Date]",OM="[object Error]",RM="[object Function]",TM="[object Map]",IM="[object Number]",NM="[object Object]",DM="[object RegExp]",MM="[object Set]",qM="[object String]",kM="[object WeakMap]",FM="[object ArrayBuffer]",BM="[object DataView]",UM="[object Float32Array]",GM="[object Float64Array]",jM="[object Int8Array]",HM="[object Int16Array]",WM="[object Int32Array]",$M="[object Uint8Array]",YM="[object Uint8ClampedArray]",KM="[object Uint16Array]",VM="[object Uint32Array]",Re={};Re[UM]=Re[GM]=Re[jM]=Re[HM]=Re[WM]=Re[$M]=Re[YM]=Re[KM]=Re[VM]=!0;Re[AM]=Re[xM]=Re[FM]=Re[PM]=Re[BM]=Re[CM]=Re[OM]=Re[RM]=Re[TM]=Re[IM]=Re[NM]=Re[DM]=Re[MM]=Re[qM]=Re[kM]=!1;function zM(e){return LM(e)&&EM(e.length)&&!!Re[SM(e)]}D1.exports=zM});var k1=_((zY,q1)=>{function JM(e){return function(t){return e(t)}}q1.exports=JM});var B1=_((_s,pi)=>{var XM=xf(),F1=typeof _s=="object"&&_s&&!_s.nodeType&&_s,ys=F1&&typeof pi=="object"&&pi&&!pi.nodeType&&pi,ZM=ys&&ys.exports===F1,Bf=ZM&&XM.process,QM=function(){try{var e=ys&&ys.require&&ys.require("util").types;return e||Bf&&Bf.binding&&Bf.binding("util")}catch(t){}}();pi.exports=QM});var Uf=_((JY,j1)=>{var e5=M1(),t5=k1(),U1=B1(),G1=U1&&U1.isTypedArray,r5=G1?t5(G1):e5;j1.exports=r5});var Gf=_((XY,H1)=>{var n5=b1(),i5=P1(),s5=ms(),o5=Ff(),a5=qf(),u5=Uf(),l5=Object.prototype,f5=l5.hasOwnProperty;function c5(e,t){var r=s5(e),i=!r&&i5(e),o=!r&&!i&&o5(e),u=!r&&!i&&!o&&u5(e),l=r||i||o||u,f=l?n5(e.length,String):[],d=f.length;for(var p in e)(t||f5.call(e,p))&&!(l&&(p=="length"||o&&(p=="offset"||p=="parent")||u&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||a5(p,d)))&&f.push(p);return f}H1.exports=c5});var jf=_((ZY,W1)=>{var h5=Object.prototype;function p5(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||h5;return e===r}W1.exports=p5});var Y1=_((QY,$1)=>{function d5(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}$1.exports=d5});var V1=_((eK,K1)=>{var g5=fi(),m5=jf(),v5=Y1(),y5=Object.prototype,_5=y5.hasOwnProperty;function b5(e){if(!g5(e))return v5(e);var t=m5(e),r=[];for(var i in e)i=="constructor"&&(t||!_5.call(e,i))||r.push(i);return r}K1.exports=b5});var J1=_((tK,z1)=>{var w5=Gf(),S5=V1(),E5=aa();function L5(e){return E5(e)?w5(e,!0):S5(e)}z1.exports=L5});var Z1=_((rK,X1)=>{var A5=Xv(),x5=y1(),P5=J1(),C5=x5(function(e,t,r,i){A5(t,P5(t),e,i)});X1.exports=C5});var Hf=_((nK,Q1)=>{function O5(e,t){return function(r){return e(t(r))}}Q1.exports=O5});var ty=_((iK,ey)=>{var R5=Hf(),T5=R5(Object.getPrototypeOf,Object);ey.exports=T5});var iy=_((sK,ny)=>{var I5=tn(),N5=ty(),D5=nn(),M5="[object Object]",q5=Function.prototype,k5=Object.prototype,ry=q5.toString,F5=k5.hasOwnProperty,B5=ry.call(Object);function U5(e){if(!D5(e)||I5(e)!=M5)return!1;var t=N5(e);if(t===null)return!0;var r=F5.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ry.call(r)==B5}ny.exports=U5});var Wf=_((oK,sy)=>{var G5=tn(),j5=nn(),H5=iy(),W5="[object DOMException]",$5="[object Error]";function Y5(e){if(!j5(e))return!1;var t=G5(e);return t==$5||t==W5||typeof e.message=="string"&&typeof e.name=="string"&&!H5(e)}sy.exports=Y5});var ay=_((aK,oy)=>{var K5=Nf(),V5=Df(),z5=Wf(),J5=V5(function(e,t){try{return K5(e,void 0,t)}catch(r){return z5(r)?r:new Error(r)}});oy.exports=J5});var $f=_((uK,uy)=>{function X5(e,t){for(var r=-1,i=e==null?0:e.length,o=Array(i);++r{var Z5=$f();function Q5(e,t){return Z5(t,function(r){return e[r]})}ly.exports=Q5});var py=_((fK,hy)=>{var e6=ci(),cy=Object.prototype,t6=cy.hasOwnProperty;function r6(e,t,r,i){return e===void 0||e6(e,cy[r])&&!t6.call(i,r)?t:e}hy.exports=r6});var gy=_((cK,dy)=>{var n6={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function i6(e){return"\\"+n6[e]}dy.exports=i6});var vy=_((hK,my)=>{var s6=Hf(),o6=s6(Object.keys,Object);my.exports=o6});var _y=_((pK,yy)=>{var a6=jf(),u6=vy(),l6=Object.prototype,f6=l6.hasOwnProperty;function c6(e){if(!a6(e))return u6(e);var t=[];for(var r in Object(e))f6.call(e,r)&&r!="constructor"&&t.push(r);return t}yy.exports=c6});var ua=_((dK,by)=>{var h6=Gf(),p6=_y(),d6=aa();function g6(e){return d6(e)?h6(e):p6(e)}by.exports=g6});var Yf=_((gK,wy)=>{var m6=/<%=([\s\S]+?)%>/g;wy.exports=m6});var Ey=_((mK,Sy)=>{function v6(e){return function(t){return e==null?void 0:e[t]}}Sy.exports=v6});var Ay=_((vK,Ly)=>{var y6=Ey(),_6={"&":"&","<":"<",">":">",'"':""","'":"'"},b6=y6(_6);Ly.exports=b6});var Py=_((yK,xy)=>{var w6=tn(),S6=nn(),E6="[object Symbol]";function L6(e){return typeof e=="symbol"||S6(e)&&w6(e)==E6}xy.exports=L6});var Ny=_((_K,Iy)=>{var Cy=ds(),A6=$f(),x6=ms(),P6=Py(),C6=1/0,Oy=Cy?Cy.prototype:void 0,Ry=Oy?Oy.toString:void 0;function Ty(e){if(typeof e=="string")return e;if(x6(e))return A6(e,Ty)+"";if(P6(e))return Ry?Ry.call(e):"";var t=e+"";return t=="0"&&1/e==-C6?"-0":t}Iy.exports=Ty});var Kf=_((bK,Dy)=>{var O6=Ny();function R6(e){return e==null?"":O6(e)}Dy.exports=R6});var ky=_((wK,qy)=>{var T6=Ay(),I6=Kf(),My=/[&<>"']/g,N6=RegExp(My.source);function D6(e){return e=I6(e),e&&N6.test(e)?e.replace(My,T6):e}qy.exports=D6});var By=_((SK,Fy)=>{var M6=/<%-([\s\S]+?)%>/g;Fy.exports=M6});var Gy=_((EK,Uy)=>{var q6=/<%([\s\S]+?)%>/g;Uy.exports=q6});var Hy=_((LK,jy)=>{var k6=ky(),F6=By(),B6=Gy(),U6=Yf(),G6={escape:F6,evaluate:B6,interpolate:U6,variable:"",imports:{_:{escape:k6}}};jy.exports=G6});var zy=_((AK,Vy)=>{var Wy=Z1(),j6=ay(),H6=fy(),$y=py(),W6=gy(),$6=Wf(),Y6=kf(),K6=ua(),V6=Yf(),Yy=Hy(),z6=Kf(),J6="Invalid `variable` option passed into `_.template`",X6=/\b__p \+= '';/g,Z6=/\b(__p \+=) '' \+/g,Q6=/(__e\(.*?\)|\b__t\)) \+\n'';/g,eq=/[()=,{}\[\]\/\s]/,tq=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,la=/($^)/,rq=/['\n\r\u2028\u2029\\]/g,nq=Object.prototype,Ky=nq.hasOwnProperty;function iq(e,t,r){var i=Yy.imports._.templateSettings||Yy;r&&Y6(e,t,r)&&(t=void 0),e=z6(e),t=Wy({},t,i,$y);var o=Wy({},t.imports,i.imports,$y),u=K6(o),l=H6(o,u),f,d,p=0,g=t.interpolate||la,h="__p += '",b=RegExp((t.escape||la).source+"|"+g.source+"|"+(g===V6?tq:la).source+"|"+(t.evaluate||la).source+"|$","g"),w=Ky.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+` +`:"";e.replace(b,function(C,O,F,D,R,V){return F||(F=D),h+=e.slice(p,V).replace(rq,W6),O&&(f=!0,h+=`' + +__e(`+O+`) + +'`),R&&(d=!0,h+=`'; +`+R+`; +__p += '`),F&&(h+=`' + +((__t = (`+F+`)) == null ? '' : __t) + +'`),p=V+C.length,C}),h+=`'; +`;var S=Ky.call(t,"variable")&&t.variable;if(!S)h=`with (obj) { +`+h+` +} +`;else if(eq.test(S))throw new Error(J6);h=(d?h.replace(X6,""):h).replace(Z6,"$1").replace(Q6,"$1;"),h="function("+(S||"obj")+`) { +`+(S?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(d?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+h+`return __p +}`;var L=j6(function(){return Function(u,w+"return "+h).apply(void 0,l)});if(L.source=h,$6(L))throw L;return L}Vy.exports=iq});var bs=_((xK,ca)=>{var{Transform:fa}=ps();function sq(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Vf(e){return(t,r,i)=>(typeof t=="function"&&(i=r,r=t,t={}),typeof r!="function"&&(r=(o,u,l)=>l(null,o)),typeof i!="function"&&(i=null),e(t,r,i))}var oq=Vf((e,t,r)=>{let i=new fa(e);return i._transform=t,r&&(i._flush=r),i}),aq=Vf((e,t,r)=>{function i(o){if(!(this instanceof i))return new i(o);this.options=Object.assign({},e,o),fa.call(this,this.options),this._transform=t,r&&(this._flush=r)}return sq(i,fa),i}),uq=Vf(function(e,t,r){let i=new fa(Object.assign({objectMode:!0,highWaterMark:16},e));return i._transform=t,r&&(i._flush=r),i});ca.exports=oq;ca.exports.ctor=aq;ca.exports.obj=uq});var zf=_((PK,Zy)=>{"use strict";var lq=hm(),fq=G("child_process").execFile,cq=yv(),hq=G("stream"),pq=zy(),Jy=bs(),Xy="------------------------ >8 ------------------------";function dq(e){return e=e||{},e.cwd=e.cwd||process.cwd(),e}function gq(e){return e=e||{},e.format=e.format||"%B",e.from=e.from||"",e.to=e.to||"HEAD",e}function mq(e){let t=pq("--format=<%= format %>%n"+Xy)(e),r=[e.from,e.to].filter(Boolean).join(".."),i=["log",t,r].concat(lq(e,{excludes:["debug","from","to","format","path"]}));return e.path&&i.push("--",e.path),i}function vq(e,t){let r=new hq.Readable;r._read=function(){};let i=gq(e),o=dq(t),u=mq(i);i.debug&&i.debug(`Your git-log command is: +git `+u.join(" "));let l=!1,f=fq("git",u,{cwd:o.cwd,maxBuffer:Infinity});return f.stdout.pipe(cq(Xy+` +`)).pipe(Jy(function(d,p,g){r.push(d),l=!1,g()},function(d){setImmediate(function(){l||(r.push(null),r.emit("close")),d()})})),f.stderr.pipe(Jy.obj(function(d){l=!0,r.emit("error",new Error(d)),r.emit("close")})),r}Zy.exports=vq});var Pn=_((di,ws)=>{(function(){var e,t="4.17.21",r=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",p=1,g=2,h=4,b=1,w=2,S=1,L=2,C=4,O=8,F=16,D=32,R=64,V=128,X=256,z=512,U=30,I="...",W=800,k=16,H=1,j=2,Y=3,K=1/0,re=9007199254740991,ne=17976931348623157e292,le=0/0,se=4294967295,Pt=se-1,pr=se>>>1,Ct=[["ary",V],["bind",S],["bindKey",L],["curry",O],["curryRight",F],["flip",z],["partial",D],["partialRight",R],["rearg",X]],Me="[object Arguments]",dr="[object Array]",tr="[object AsyncFunction]",Ot="[object Boolean]",ut="[object Date]",$n="[object DOMException]",gr="[object Error]",rr="[object Function]",qi="[object GeneratorFunction]",Yt="[object Map]",ki="[object Number]",_x="[object Null]",mr="[object Object]",_p="[object Promise]",bx="[object Proxy]",Fi="[object RegExp]",Kt="[object Set]",Bi="[object String]",Qs="[object Symbol]",wx="[object Undefined]",Ui="[object WeakMap]",Sx="[object WeakSet]",Gi="[object ArrayBuffer]",Yn="[object DataView]",Au="[object Float32Array]",xu="[object Float64Array]",Pu="[object Int8Array]",Cu="[object Int16Array]",Ou="[object Int32Array]",Ru="[object Uint8Array]",Tu="[object Uint8ClampedArray]",Iu="[object Uint16Array]",Nu="[object Uint32Array]",Ex=/\b__p \+= '';/g,Lx=/\b(__p \+=) '' \+/g,Ax=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bp=/&(?:amp|lt|gt|quot|#39);/g,wp=/[&<>"']/g,xx=RegExp(bp.source),Px=RegExp(wp.source),Cx=/<%-([\s\S]+?)%>/g,Ox=/<%([\s\S]+?)%>/g,Sp=/<%=([\s\S]+?)%>/g,Rx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tx=/^\w*$/,Ix=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Du=/[\\^$.*+?()[\]{}|]/g,Nx=RegExp(Du.source),Mu=/^\s+/,Dx=/\s/,Mx=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qx=/\{\n\/\* \[wrapped with (.+)\] \*/,kx=/,? & /,Fx=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bx=/[()=,{}\[\]\/\s]/,Ux=/\\(\\)?/g,Gx=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ep=/\w*$/,jx=/^[-+]0x[0-9a-f]+$/i,Hx=/^0b[01]+$/i,Wx=/^\[object .+?Constructor\]$/,$x=/^0o[0-7]+$/i,Yx=/^(?:0|[1-9]\d*)$/,Kx=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eo=/($^)/,Vx=/['\n\r\u2028\u2029\\]/g,to="\\ud800-\\udfff",zx="\\u0300-\\u036f",Jx="\\ufe20-\\ufe2f",Xx="\\u20d0-\\u20ff",Lp=zx+Jx+Xx,Ap="\\u2700-\\u27bf",xp="a-z\\xdf-\\xf6\\xf8-\\xff",Zx="\\xac\\xb1\\xd7\\xf7",Qx="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",eP="\\u2000-\\u206f",tP=" \\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",Pp="A-Z\\xc0-\\xd6\\xd8-\\xde",Cp="\\ufe0e\\ufe0f",Op=Zx+Qx+eP+tP,qu="['\u2019]",rP="["+to+"]",Rp="["+Op+"]",ro="["+Lp+"]",Tp="\\d+",nP="["+Ap+"]",Ip="["+xp+"]",Np="[^"+to+Op+Tp+Ap+xp+Pp+"]",ku="\\ud83c[\\udffb-\\udfff]",iP="(?:"+ro+"|"+ku+")",Dp="[^"+to+"]",Fu="(?:\\ud83c[\\udde6-\\uddff]){2}",Bu="[\\ud800-\\udbff][\\udc00-\\udfff]",Kn="["+Pp+"]",Mp="\\u200d",qp="(?:"+Ip+"|"+Np+")",sP="(?:"+Kn+"|"+Np+")",kp="(?:"+qu+"(?:d|ll|m|re|s|t|ve))?",Fp="(?:"+qu+"(?:D|LL|M|RE|S|T|VE))?",Bp=iP+"?",Up="["+Cp+"]?",oP="(?:"+Mp+"(?:"+[Dp,Fu,Bu].join("|")+")"+Up+Bp+")*",aP="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",uP="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Gp=Up+Bp+oP,lP="(?:"+[nP,Fu,Bu].join("|")+")"+Gp,fP="(?:"+[Dp+ro+"?",ro,Fu,Bu,rP].join("|")+")",cP=RegExp(qu,"g"),hP=RegExp(ro,"g"),Uu=RegExp(ku+"(?="+ku+")|"+fP+Gp,"g"),pP=RegExp([Kn+"?"+Ip+"+"+kp+"(?="+[Rp,Kn,"$"].join("|")+")",sP+"+"+Fp+"(?="+[Rp,Kn+qp,"$"].join("|")+")",Kn+"?"+qp+"+"+kp,Kn+"+"+Fp,uP,aP,Tp,lP].join("|"),"g"),dP=RegExp("["+Mp+to+Lp+Cp+"]"),gP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mP=["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"],vP=-1,Oe={};Oe[Au]=Oe[xu]=Oe[Pu]=Oe[Cu]=Oe[Ou]=Oe[Ru]=Oe[Tu]=Oe[Iu]=Oe[Nu]=!0,Oe[Me]=Oe[dr]=Oe[Gi]=Oe[Ot]=Oe[Yn]=Oe[ut]=Oe[gr]=Oe[rr]=Oe[Yt]=Oe[ki]=Oe[mr]=Oe[Fi]=Oe[Kt]=Oe[Bi]=Oe[Ui]=!1;var Pe={};Pe[Me]=Pe[dr]=Pe[Gi]=Pe[Yn]=Pe[Ot]=Pe[ut]=Pe[Au]=Pe[xu]=Pe[Pu]=Pe[Cu]=Pe[Ou]=Pe[Yt]=Pe[ki]=Pe[mr]=Pe[Fi]=Pe[Kt]=Pe[Bi]=Pe[Qs]=Pe[Ru]=Pe[Tu]=Pe[Iu]=Pe[Nu]=!0,Pe[gr]=Pe[rr]=Pe[Ui]=!1;var yP={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\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"},_P={"&":"&","<":"<",">":">",'"':""","'":"'"},bP={"&":"&","<":"<",">":">",""":'"',"'":"'"},wP={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},SP=parseFloat,EP=parseInt,jp=typeof global=="object"&&global&&global.Object===Object&&global,LP=typeof self=="object"&&self&&self.Object===Object&&self,Ve=jp||LP||Function("return this")(),Gu=typeof di=="object"&&di&&!di.nodeType&&di,hn=Gu&&typeof ws=="object"&&ws&&!ws.nodeType&&ws,Hp=hn&&hn.exports===Gu,ju=Hp&&jp.process,Rt=function(){try{var x=hn&&hn.require&&hn.require("util").types;return x||ju&&ju.binding&&ju.binding("util")}catch(N){}}(),Wp=Rt&&Rt.isArrayBuffer,$p=Rt&&Rt.isDate,Yp=Rt&&Rt.isMap,Kp=Rt&&Rt.isRegExp,Vp=Rt&&Rt.isSet,zp=Rt&&Rt.isTypedArray;function vt(x,N,T){switch(T.length){case 0:return x.call(N);case 1:return x.call(N,T[0]);case 2:return x.call(N,T[0],T[1]);case 3:return x.call(N,T[0],T[1],T[2])}return x.apply(N,T)}function AP(x,N,T,J){for(var fe=-1,Se=x==null?0:x.length;++fe-1}function Hu(x,N,T){for(var J=-1,fe=x==null?0:x.length;++J-1;);return T}function nd(x,N){for(var T=x.length;T--&&Vn(N,x[T],0)>-1;);return T}function DP(x,N){for(var T=x.length,J=0;T--;)x[T]===N&&++J;return J}var MP=Ku(yP),qP=Ku(_P);function kP(x){return"\\"+wP[x]}function FP(x,N){return x==null?e:x[N]}function zn(x){return dP.test(x)}function BP(x){return gP.test(x)}function UP(x){for(var N,T=[];!(N=x.next()).done;)T.push(N.value);return T}function Xu(x){var N=-1,T=Array(x.size);return x.forEach(function(J,fe){T[++N]=[fe,J]}),T}function id(x,N){return function(T){return x(N(T))}}function Ur(x,N){for(var T=-1,J=x.length,fe=0,Se=[];++T-1}function PC(n,s){var a=this.__data__,c=wo(a,n);return c<0?(++this.size,a.push([n,s])):a[c][1]=s,this}vr.prototype.clear=EC,vr.prototype.delete=LC,vr.prototype.get=AC,vr.prototype.has=xC,vr.prototype.set=PC;function yr(n){var s=-1,a=n==null?0:n.length;for(this.clear();++s=s?n:s)),n}function Dt(n,s,a,c,m,y){var E,A=s&p,P=s&g,M=s&h;if(a&&(E=m?a(n,c,m,y):a(n)),E!==e)return E;if(!qe(n))return n;var q=ce(n);if(q){if(E=TO(n),!A)return pt(n,E)}else{var B=nt(n),$=B==rr||B==qi;if(Kr(n))return Ud(n,A);if(B==mr||B==Me||$&&!m){if(E=P||$?{}:sg(n),!A)return P?bO(n,HC(E,n)):_O(n,md(E,n))}else{if(!Pe[B])return m?n:{};E=IO(n,B,A)}}y||(y=new zt);var te=y.get(n);if(te)return te;y.set(n,E),Dg(n)?n.forEach(function(ae){E.add(Dt(ae,s,a,ae,n,y))}):Ig(n)&&n.forEach(function(ae,ve){E.set(ve,Dt(ae,s,a,ve,n,y))});var oe=M?P?El:Sl:P?gt:ze,pe=q?e:oe(n);return Tt(pe||n,function(ae,ve){pe&&(ve=ae,ae=n[ve]),Vi(E,ve,Dt(ae,s,a,ve,n,y))}),E}function WC(n){var s=ze(n);return function(a){return vd(a,n,s)}}function vd(n,s,a){var c=a.length;if(n==null)return!c;for(n=Ee(n);c--;){var m=a[c],y=s[m],E=n[m];if(E===e&&!(m in n)||!y(E))return!1}return!0}function yd(n,s,a){if(typeof n!="function")throw new It(o);return ts(function(){n.apply(e,a)},s)}function zi(n,s,a,c){var m=-1,y=no,E=!0,A=n.length,P=[],M=s.length;if(!A)return P;a&&(s=Ie(s,yt(a))),c?(y=Hu,E=!1):s.length>=r&&(y=ji,E=!1,s=new gn(s));e:for(;++mm?0:m+a),c=c===e||c>m?m:he(c),c<0&&(c+=m),c=a>c?0:qg(c);a0&&a(A)?s>1?Ze(A,s-1,a,c,m):Br(m,A):c||(m[m.length]=A)}return m}var il=Yd(),wd=Yd(!0);function nr(n,s){return n&&il(n,s,ze)}function sl(n,s){return n&&wd(n,s,ze)}function Eo(n,s){return Fr(s,function(a){return Er(n[a])})}function vn(n,s){s=$r(s,n);for(var a=0,c=s.length;n!=null&&as}function KC(n,s){return n!=null&&Ae.call(n,s)}function VC(n,s){return n!=null&&s in Ee(n)}function zC(n,s,a){return n>=rt(s,a)&&n=120&&q.length>=120)?new gn(E&&q):e}q=n[0];var B=-1,$=A[0];e:for(;++B-1;)A!==n&&po.call(A,P,1),po.call(n,P,1);return n}function Id(n,s){for(var a=n?s.length:0,c=a-1;a--;){var m=s[a];if(a==c||m!==y){var y=m;Sr(m)?po.call(n,m,1):gl(n,m)}}return n}function hl(n,s){return n+vo(hd()*(s-n+1))}function uO(n,s,a,c){for(var m=-1,y=Ke(mo((s-n)/(a||1)),0),E=T(y);y--;)E[c?y:++m]=n,n+=a;return E}function pl(n,s){var a="";if(!n||s<1||s>re)return a;do s%2&&(a+=n),s=vo(s/2),s&&(n+=n);while(s);return a}function ge(n,s){return Rl(ug(n,s,mt),n+"")}function lO(n){return gd(si(n))}function fO(n,s){var a=si(n);return Do(a,mn(s,0,a.length))}function Zi(n,s,a,c){if(!qe(n))return n;s=$r(s,n);for(var m=-1,y=s.length,E=y-1,A=n;A!=null&&++mm?0:m+s),a=a>m?m:a,a<0&&(a+=m),m=s>a?0:a-s>>>0,s>>>=0;for(var y=T(m);++c>>1,E=n[y];E!==null&&!bt(E)&&(a?E<=s:E=r){var M=s?null:LO(n);if(M)return so(M);E=!1,m=ji,P=new gn}else P=s?[]:A;e:for(;++c=c?n:Mt(n,s,a)}var Bd=tC||function(n){return Ve.clearTimeout(n)};function Ud(n,s){if(s)return n.slice();var a=n.length,c=ad?ad(a):new n.constructor(a);return n.copy(c),c}function _l(n){var s=new n.constructor(n.byteLength);return new co(s).set(new co(n)),s}function gO(n,s){var a=s?_l(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.byteLength)}function mO(n){var s=new n.constructor(n.source,Ep.exec(n));return s.lastIndex=n.lastIndex,s}function vO(n){return Ki?Ee(Ki.call(n)):{}}function Gd(n,s){var a=s?_l(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.length)}function jd(n,s){if(n!==s){var a=n!==e,c=n===null,m=n===n,y=bt(n),E=s!==e,A=s===null,P=s===s,M=bt(s);if(!A&&!M&&!y&&n>s||y&&E&&P&&!A&&!M||c&&E&&P||!a&&P||!m)return 1;if(!c&&!y&&!M&&n=A)return P;var M=a[c];return P*(M=="desc"?-1:1)}}return n.index-s.index}function Hd(n,s,a,c){for(var m=-1,y=n.length,E=a.length,A=-1,P=s.length,M=Ke(y-E,0),q=T(P+M),B=!c;++A1?a[m-1]:e,E=m>2?a[2]:e;for(y=n.length>3&&typeof y=="function"?(m--,y):e,E&&ft(a[0],a[1],E)&&(y=m<3?e:y,m=1),s=Ee(s);++c-1?m[y?s[E]:E]:e}}function zd(n){return wr(function(s){var a=s.length,c=a,m=Nt.prototype.thru;for(n&&s.reverse();c--;){var y=s[c];if(typeof y!="function")throw new It(o);if(m&&!E&&Io(y)=="wrapper")var E=new Nt([],!0)}for(c=E?c:a;++c1&&_e.reverse(),q&&PA))return!1;var M=y.get(n),q=y.get(s);if(M&&q)return M==s&&q==n;var B=-1,$=!0,te=a&w?new gn:e;for(y.set(n,s),y.set(s,n);++B1?"& ":"")+s[c],s=s.join(a>2?", ":" "),n.replace(Mx,`{ +/* [wrapped with `+s+`] */ +`)}function DO(n){return ce(n)||bn(n)||!!(fd&&n&&n[fd])}function Sr(n,s){var a=typeof n;return s=s==null?re:s,!!s&&(a=="number"||a!="symbol"&&Yx.test(n))&&n>-1&&n%1==0&&n0){if(++s>=W)return arguments[0]}else s=0;return n.apply(e,arguments)}}function Do(n,s){var a=-1,c=n.length,m=c-1;for(s=s===e?c:s;++a1?n[s-1]:e;return a=typeof a=="function"?(n.pop(),a):e,bg(n,a)});function wg(n){var s=v(n);return s.__chain__=!0,s}function $R(n,s){return s(n),n}function Mo(n,s){return s(n)}var YR=wr(function(n){var s=n.length,a=s?n[0]:0,c=this.__wrapped__,m=function(y){return nl(y,n)};return s>1||this.__actions__.length||!(c instanceof ye)||!Sr(a)?this.thru(m):(c=c.slice(a,+a+(s?1:0)),c.__actions__.push({func:Mo,args:[m],thisArg:e}),new Nt(c,this.__chain__).thru(function(y){return s&&!y.length&&y.push(e),y}))});function KR(){return wg(this)}function VR(){return new Nt(this.value(),this.__chain__)}function zR(){this.__values__===e&&(this.__values__=Mg(this.value()));var n=this.__index__>=this.__values__.length,s=n?e:this.__values__[this.__index__++];return{done:n,value:s}}function JR(){return this}function XR(n){for(var s,a=this;a instanceof bo;){var c=dg(a);c.__index__=0,c.__values__=e,s?m.__wrapped__=c:s=c;var m=c;a=a.__wrapped__}return m.__wrapped__=n,s}function ZR(){var n=this.__wrapped__;if(n instanceof ye){var s=n;return this.__actions__.length&&(s=new ye(this)),s=s.reverse(),s.__actions__.push({func:Mo,args:[Tl],thisArg:e}),new Nt(s,this.__chain__)}return this.thru(Tl)}function QR(){return kd(this.__wrapped__,this.__actions__)}var e3=Po(function(n,s,a){Ae.call(n,a)?++n[a]:_r(n,a,1)});function t3(n,s,a){var c=ce(n)?Jp:$C;return a&&ft(n,s,a)&&(s=e),c(n,ie(s,3))}function r3(n,s){var a=ce(n)?Fr:bd;return a(n,ie(s,3))}var n3=Vd(gg),i3=Vd(mg);function s3(n,s){return Ze(qo(n,s),1)}function o3(n,s){return Ze(qo(n,s),K)}function a3(n,s,a){return a=a===e?1:he(a),Ze(qo(n,s),a)}function Sg(n,s){var a=ce(n)?Tt:Hr;return a(n,ie(s,3))}function Eg(n,s){var a=ce(n)?xP:_d;return a(n,ie(s,3))}var u3=Po(function(n,s,a){Ae.call(n,a)?n[a].push(s):_r(n,a,[s])});function l3(n,s,a,c){n=dt(n)?n:si(n),a=a&&!c?he(a):0;var m=n.length;return a<0&&(a=Ke(m+a,0)),Go(n)?a<=m&&n.indexOf(s,a)>-1:!!m&&Vn(n,s,a)>-1}var f3=ge(function(n,s,a){var c=-1,m=typeof s=="function",y=dt(n)?T(n.length):[];return Hr(n,function(E){y[++c]=m?vt(s,E,a):Ji(E,s,a)}),y}),c3=Po(function(n,s,a){_r(n,a,s)});function qo(n,s){var a=ce(n)?Ie:xd;return a(n,ie(s,3))}function h3(n,s,a,c){return n==null?[]:(ce(s)||(s=s==null?[]:[s]),a=c?e:a,ce(a)||(a=a==null?[]:[a]),Rd(n,s,a))}var p3=Po(function(n,s,a){n[a?0:1].push(s)},function(){return[[],[]]});function d3(n,s,a){var c=ce(n)?Wu:ed,m=arguments.length<3;return c(n,ie(s,4),a,m,Hr)}function g3(n,s,a){var c=ce(n)?PP:ed,m=arguments.length<3;return c(n,ie(s,4),a,m,_d)}function m3(n,s){var a=ce(n)?Fr:bd;return a(n,Bo(ie(s,3)))}function v3(n){var s=ce(n)?gd:lO;return s(n)}function y3(n,s,a){(a?ft(n,s,a):s===e)?s=1:s=he(s);var c=ce(n)?UC:fO;return c(n,s)}function _3(n){var s=ce(n)?GC:hO;return s(n)}function b3(n){if(n==null)return 0;if(dt(n))return Go(n)?Jn(n):n.length;var s=nt(n);return s==Yt||s==Kt?n.size:ll(n).length}function w3(n,s,a){var c=ce(n)?$u:pO;return a&&ft(n,s,a)&&(s=e),c(n,ie(s,3))}var S3=ge(function(n,s){if(n==null)return[];var a=s.length;return a>1&&ft(n,s[0],s[1])?s=[]:a>2&&ft(s[0],s[1],s[2])&&(s=[s[0]]),Rd(n,Ze(s,1),[])}),ko=rC||function(){return Ve.Date.now()};function E3(n,s){if(typeof s!="function")throw new It(o);return n=he(n),function(){if(--n<1)return s.apply(this,arguments)}}function Lg(n,s,a){return s=a?e:s,s=n&&s==null?n.length:s,br(n,V,e,e,e,e,s)}function Ag(n,s){var a;if(typeof s!="function")throw new It(o);return n=he(n),function(){return--n>0&&(a=s.apply(this,arguments)),n<=1&&(s=e),a}}var Nl=ge(function(n,s,a){var c=S;if(a.length){var m=Ur(a,ni(Nl));c|=D}return br(n,c,s,a,m)}),xg=ge(function(n,s,a){var c=S|L;if(a.length){var m=Ur(a,ni(xg));c|=D}return br(s,c,n,a,m)});function Pg(n,s,a){s=a?e:s;var c=br(n,O,e,e,e,e,e,s);return c.placeholder=Pg.placeholder,c}function Cg(n,s,a){s=a?e:s;var c=br(n,F,e,e,e,e,e,s);return c.placeholder=Cg.placeholder,c}function Og(n,s,a){var c,m,y,E,A,P,M=0,q=!1,B=!1,$=!0;if(typeof n!="function")throw new It(o);s=kt(s)||0,qe(a)&&(q=!!a.leading,B="maxWait"in a,y=B?Ke(kt(a.maxWait)||0,s):y,$="trailing"in a?!!a.trailing:$);function te(je){var Xt=c,Ar=m;return c=m=e,M=je,E=n.apply(Ar,Xt),E}function oe(je){return M=je,A=ts(ve,s),q?te(je):E}function pe(je){var Xt=je-P,Ar=je-M,Vg=s-Xt;return B?rt(Vg,y-Ar):Vg}function ae(je){var Xt=je-P,Ar=je-M;return P===e||Xt>=s||Xt<0||B&&Ar>=y}function ve(){var je=ko();if(ae(je))return _e(je);A=ts(ve,pe(je))}function _e(je){return A=e,$&&c?te(je):(c=m=e,E)}function wt(){A!==e&&Bd(A),M=0,c=P=m=A=e}function ct(){return A===e?E:_e(ko())}function St(){var je=ko(),Xt=ae(je);if(c=arguments,m=this,P=je,Xt){if(A===e)return oe(P);if(B)return Bd(A),A=ts(ve,s),te(P)}return A===e&&(A=ts(ve,s)),E}return St.cancel=wt,St.flush=ct,St}var L3=ge(function(n,s){return yd(n,1,s)}),A3=ge(function(n,s,a){return yd(n,kt(s)||0,a)});function x3(n){return br(n,z)}function Fo(n,s){if(typeof n!="function"||s!=null&&typeof s!="function")throw new It(o);var a=function(){var c=arguments,m=s?s.apply(this,c):c[0],y=a.cache;if(y.has(m))return y.get(m);var E=n.apply(this,c);return a.cache=y.set(m,E)||y,E};return a.cache=new(Fo.Cache||yr),a}Fo.Cache=yr;function Bo(n){if(typeof n!="function")throw new It(o);return function(){var s=arguments;switch(s.length){case 0:return!n.call(this);case 1:return!n.call(this,s[0]);case 2:return!n.call(this,s[0],s[1]);case 3:return!n.call(this,s[0],s[1],s[2])}return!n.apply(this,s)}}function P3(n){return Ag(2,n)}var C3=dO(function(n,s){s=s.length==1&&ce(s[0])?Ie(s[0],yt(ie())):Ie(Ze(s,1),yt(ie()));var a=s.length;return ge(function(c){for(var m=-1,y=rt(c.length,a);++m=s}),bn=Ed(function(){return arguments}())?Ed:function(n){return Fe(n)&&Ae.call(n,"callee")&&!ld.call(n,"callee")},ce=T.isArray,H3=Wp?yt(Wp):XC;function dt(n){return n!=null&&Uo(n.length)&&!Er(n)}function Ge(n){return Fe(n)&&dt(n)}function W3(n){return n===!0||n===!1||Fe(n)&<(n)==Ot}var Kr=iC||$l,$3=$p?yt($p):ZC;function Y3(n){return Fe(n)&&n.nodeType===1&&!rs(n)}function K3(n){if(n==null)return!0;if(dt(n)&&(ce(n)||typeof n=="string"||typeof n.splice=="function"||Kr(n)||ii(n)||bn(n)))return!n.length;var s=nt(n);if(s==Yt||s==Kt)return!n.size;if(es(n))return!ll(n).length;for(var a in n)if(Ae.call(n,a))return!1;return!0}function V3(n,s){return Xi(n,s)}function z3(n,s,a){a=typeof a=="function"?a:e;var c=a?a(n,s):e;return c===e?Xi(n,s,e,a):!!c}function Ml(n){if(!Fe(n))return!1;var s=lt(n);return s==gr||s==$n||typeof n.message=="string"&&typeof n.name=="string"&&!rs(n)}function J3(n){return typeof n=="number"&&cd(n)}function Er(n){if(!qe(n))return!1;var s=lt(n);return s==rr||s==qi||s==tr||s==bx}function Tg(n){return typeof n=="number"&&n==he(n)}function Uo(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=re}function qe(n){var s=typeof n;return n!=null&&(s=="object"||s=="function")}function Fe(n){return n!=null&&typeof n=="object"}var Ig=Yp?yt(Yp):eO;function X3(n,s){return n===s||ul(n,s,Al(s))}function Z3(n,s,a){return a=typeof a=="function"?a:e,ul(n,s,Al(s),a)}function Q3(n){return Ng(n)&&n!=+n}function eT(n){if(kO(n))throw new fe(i);return Ld(n)}function tT(n){return n===null}function rT(n){return n==null}function Ng(n){return typeof n=="number"||Fe(n)&<(n)==ki}function rs(n){if(!Fe(n)||lt(n)!=mr)return!1;var s=ho(n);if(s===null)return!0;var a=Ae.call(s,"constructor")&&s.constructor;return typeof a=="function"&&a instanceof a&&uo.call(a)==ZP}var ql=Kp?yt(Kp):tO;function nT(n){return Tg(n)&&n>=-re&&n<=re}var Dg=Vp?yt(Vp):rO;function Go(n){return typeof n=="string"||!ce(n)&&Fe(n)&<(n)==Bi}function bt(n){return typeof n=="symbol"||Fe(n)&<(n)==Qs}var ii=zp?yt(zp):nO;function iT(n){return n===e}function sT(n){return Fe(n)&&nt(n)==Ui}function oT(n){return Fe(n)&<(n)==Sx}var aT=To(fl),uT=To(function(n,s){return n<=s});function Mg(n){if(!n)return[];if(dt(n))return Go(n)?Vt(n):pt(n);if(Hi&&n[Hi])return UP(n[Hi]());var s=nt(n),a=s==Yt?Xu:s==Kt?so:si;return a(n)}function Lr(n){if(!n)return n===0?n:0;if(n=kt(n),n===K||n===-K){var s=n<0?-1:1;return s*ne}return n===n?n:0}function he(n){var s=Lr(n),a=s%1;return s===s?a?s-a:s:0}function qg(n){return n?mn(he(n),0,se):0}function kt(n){if(typeof n=="number")return n;if(bt(n))return le;if(qe(n)){var s=typeof n.valueOf=="function"?n.valueOf():n;n=qe(s)?s+"":s}if(typeof n!="string")return n===0?n:+n;n=td(n);var a=Hx.test(n);return a||$x.test(n)?EP(n.slice(2),a?2:8):jx.test(n)?le:+n}function kg(n){return ir(n,gt(n))}function lT(n){return n?mn(he(n),-re,re):n===0?n:0}function Le(n){return n==null?"":_t(n)}var fT=ti(function(n,s){if(es(s)||dt(s)){ir(s,ze(s),n);return}for(var a in s)Ae.call(s,a)&&Vi(n,a,s[a])}),Fg=ti(function(n,s){ir(s,gt(s),n)}),jo=ti(function(n,s,a,c){ir(s,gt(s),n,c)}),cT=ti(function(n,s,a,c){ir(s,ze(s),n,c)}),hT=wr(nl);function pT(n,s){var a=ei(n);return s==null?a:md(a,s)}var dT=ge(function(n,s){n=Ee(n);var a=-1,c=s.length,m=c>2?s[2]:e;for(m&&ft(s[0],s[1],m)&&(c=1);++a1),y}),ir(n,El(n),a),c&&(a=Dt(a,p|g|h,AO));for(var m=s.length;m--;)gl(a,s[m]);return a});function IT(n,s){return Ug(n,Bo(ie(s)))}var NT=wr(function(n,s){return n==null?{}:oO(n,s)});function Ug(n,s){if(n==null)return{};var a=Ie(El(n),function(c){return[c]});return s=ie(s),Td(n,a,function(c,m){return s(c,m[0])})}function DT(n,s,a){s=$r(s,n);var c=-1,m=s.length;for(m||(m=1,n=e);++cs){var c=n;n=s,s=c}if(a||n%1||s%1){var m=hd();return rt(n+m*(s-n+SP("1e-"+((m+"").length-1))),s)}return hl(n,s)}var $T=ri(function(n,s,a){return s=s.toLowerCase(),n+(a?Hg(s):s)});function Hg(n){return Bl(Le(n).toLowerCase())}function Wg(n){return n=Le(n),n&&n.replace(Kx,MP).replace(hP,"")}function YT(n,s,a){n=Le(n),s=_t(s);var c=n.length;a=a===e?c:mn(he(a),0,c);var m=a;return a-=s.length,a>=0&&n.slice(a,m)==s}function KT(n){return n=Le(n),n&&Px.test(n)?n.replace(wp,qP):n}function VT(n){return n=Le(n),n&&Nx.test(n)?n.replace(Du,"\\$&"):n}var zT=ri(function(n,s,a){return n+(a?"-":"")+s.toLowerCase()}),JT=ri(function(n,s,a){return n+(a?" ":"")+s.toLowerCase()}),XT=Kd("toLowerCase");function ZT(n,s,a){n=Le(n),s=he(s);var c=s?Jn(n):0;if(!s||c>=s)return n;var m=(s-c)/2;return Ro(vo(m),a)+n+Ro(mo(m),a)}function QT(n,s,a){n=Le(n),s=he(s);var c=s?Jn(n):0;return s&&c>>0,a?(n=Le(n),n&&(typeof s=="string"||s!=null&&!ql(s))&&(s=_t(s),!s&&zn(n))?Yr(Vt(n),0,a):n.split(s,a)):[]}var oI=ri(function(n,s,a){return n+(a?" ":"")+Bl(s)});function aI(n,s,a){return n=Le(n),a=a==null?0:mn(he(a),0,n.length),s=_t(s),n.slice(a,a+s.length)==s}function uI(n,s,a){var c=v.templateSettings;a&&ft(n,s,a)&&(s=e),n=Le(n),s=jo({},s,c,eg);var m=jo({},s.imports,c.imports,eg),y=ze(m),E=Ju(m,y),A,P,M=0,q=s.interpolate||eo,B="__p += '",$=Zu((s.escape||eo).source+"|"+q.source+"|"+(q===Sp?Gx:eo).source+"|"+(s.evaluate||eo).source+"|$","g"),te="//# sourceURL="+(Ae.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++vP+"]")+` +`;n.replace($,function(ae,ve,_e,wt,ct,St){return _e||(_e=wt),B+=n.slice(M,St).replace(Vx,kP),ve&&(A=!0,B+=`' + +__e(`+ve+`) + +'`),ct&&(P=!0,B+=`'; +`+ct+`; +__p += '`),_e&&(B+=`' + +((__t = (`+_e+`)) == null ? '' : __t) + +'`),M=St+ae.length,ae}),B+=`'; +`;var oe=Ae.call(s,"variable")&&s.variable;if(!oe)B=`with (obj) { +`+B+` +} +`;else if(Bx.test(oe))throw new fe(u);B=(P?B.replace(Ex,""):B).replace(Lx,"$1").replace(Ax,"$1;"),B="function("+(oe||"obj")+`) { +`+(oe?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(A?", __e = _.escape":"")+(P?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+B+`return __p +}`;var pe=Yg(function(){return Se(y,te+"return "+B).apply(e,E)});if(pe.source=B,Ml(pe))throw pe;return pe}function lI(n){return Le(n).toLowerCase()}function fI(n){return Le(n).toUpperCase()}function cI(n,s,a){if(n=Le(n),n&&(a||s===e))return td(n);if(!n||!(s=_t(s)))return n;var c=Vt(n),m=Vt(s),y=rd(c,m),E=nd(c,m)+1;return Yr(c,y,E).join("")}function hI(n,s,a){if(n=Le(n),n&&(a||s===e))return n.slice(0,sd(n)+1);if(!n||!(s=_t(s)))return n;var c=Vt(n),m=nd(c,Vt(s))+1;return Yr(c,0,m).join("")}function pI(n,s,a){if(n=Le(n),n&&(a||s===e))return n.replace(Mu,"");if(!n||!(s=_t(s)))return n;var c=Vt(n),m=rd(c,Vt(s));return Yr(c,m).join("")}function dI(n,s){var a=U,c=I;if(qe(s)){var m="separator"in s?s.separator:m;a="length"in s?he(s.length):a,c="omission"in s?_t(s.omission):c}n=Le(n);var y=n.length;if(zn(n)){var E=Vt(n);y=E.length}if(a>=y)return n;var A=a-Jn(c);if(A<1)return c;var P=E?Yr(E,0,A).join(""):n.slice(0,A);if(m===e)return P+c;if(E&&(A+=P.length-A),ql(m)){if(n.slice(A).search(m)){var M,q=P;for(m.global||(m=Zu(m.source,Le(Ep.exec(m))+"g")),m.lastIndex=0;M=m.exec(q);)var B=M.index;P=P.slice(0,B===e?A:B)}}else if(n.indexOf(_t(m),A)!=A){var $=P.lastIndexOf(m);$>-1&&(P=P.slice(0,$))}return P+c}function gI(n){return n=Le(n),n&&xx.test(n)?n.replace(bp,WP):n}var mI=ri(function(n,s,a){return n+(a?" ":"")+s.toUpperCase()}),Bl=Kd("toUpperCase");function $g(n,s,a){return n=Le(n),s=a?e:s,s===e?BP(n)?KP(n):RP(n):n.match(s)||[]}var Yg=ge(function(n,s){try{return vt(n,e,s)}catch(a){return Ml(a)?a:new fe(a)}}),vI=wr(function(n,s){return Tt(s,function(a){a=sr(a),_r(n,a,Nl(n[a],n))}),n});function yI(n){var s=n==null?0:n.length,a=ie();return n=s?Ie(n,function(c){if(typeof c[1]!="function")throw new It(o);return[a(c[0]),c[1]]}):[],ge(function(c){for(var m=-1;++mre)return[];var a=se,c=rt(n,se);s=ie(s),n-=se;for(var m=zu(c,s);++a0||s<0)?new ye(a):(n<0?a=a.takeRight(-n):n&&(a=a.drop(n)),s!==e&&(s=he(s),a=s<0?a.dropRight(-s):a.take(s-n)),a)},ye.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},ye.prototype.toArray=function(){return this.take(se)},nr(ye.prototype,function(n,s){var a=/^(?:filter|find|map|reject)|While$/.test(s),c=/^(?:head|last)$/.test(s),m=v[c?"take"+(s=="last"?"Right":""):s],y=c||/^find/.test(s);!m||(v.prototype[s]=function(){var E=this.__wrapped__,A=c?[1]:arguments,P=E instanceof ye,M=A[0],q=P||ce(E),B=function(ve){var _e=m.apply(v,Br([ve],A));return c&&$?_e[0]:_e};q&&a&&typeof M=="function"&&M.length!=1&&(P=q=!1);var $=this.__chain__,te=!!this.__actions__.length,oe=y&&!$,pe=P&&!te;if(!y&&q){E=pe?E:new ye(this);var ae=n.apply(E,A);return ae.__actions__.push({func:Mo,args:[B],thisArg:e}),new Nt(ae,$)}return oe&&pe?n.apply(this,A):(ae=this.thru(B),oe?c?ae.value()[0]:ae.value():ae)})}),Tt(["pop","push","shift","sort","splice","unshift"],function(n){var s=oo[n],a=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",c=/^(?:pop|shift)$/.test(n);v.prototype[n]=function(){var m=arguments;if(c&&!this.__chain__){var y=this.value();return s.apply(ce(y)?y:[],m)}return this[a](function(E){return s.apply(ce(E)?E:[],m)})}}),nr(ye.prototype,function(n,s){var a=v[s];if(a){var c=a.name+"";Ae.call(Qn,c)||(Qn[c]=[]),Qn[c].push({name:s,func:a})}}),Qn[Co(e,L).name]=[{name:"wrapper",func:e}],ye.prototype.clone=gC,ye.prototype.reverse=mC,ye.prototype.value=vC,v.prototype.at=YR,v.prototype.chain=KR,v.prototype.commit=VR,v.prototype.next=zR,v.prototype.plant=XR,v.prototype.reverse=ZR,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=QR,v.prototype.first=v.prototype.head,Hi&&(v.prototype[Hi]=JR),v},Gr=VP();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Ve._=Gr,define(function(){return Gr})):hn?((hn.exports=Gr)._=Gr,Gu._=Gr):Ve._=Gr}).call(di)});var t_=_((CK,e_)=>{"use strict";var Et=Pn(),yq=/()(.+)/gi,_q="# ------------------------ >8 ------------------------";function ha(e){let t=e.match(/[^\r\n]/);if(!t)return"";let r=t.index,i=e.length-1;for(;e[i]==="\r"||e[i]===` +`;)i--;return e.substring(r,i+1)}function Cn(e,t){return e?e+=` +`+t:e=t,e}function bq(e){return function(t){return t.charAt(0)!==e}}function wq(e){let t=e.indexOf(_q);return t===-1?e:e.slice(0,t)}function Qy(e,t){let r=[],i,o,u=e.match(t.references)!==null?t.references:yq;for(;i=u.exec(e);){let l=i[1]||null,f=i[2];for(;o=t.referenceParts.exec(f);){let d=null,p=o[1]||"",g=p.split("/");g.length>1&&(d=g.shift(),p=g.join("/"));let h={action:l,owner:d,repository:p||null,issue:o[3],raw:o[0],prefix:o[2]};r.push(h)}}return r}function Sq(){return!0}function Eq(e,t,r){if(!e||!e.trim())throw new TypeError("Expected a raw commit");if(Et.isEmpty(t))throw new TypeError("Expected options");if(Et.isEmpty(r))throw new TypeError("Expected regex");let i,o,u={},l=typeof t.commentChar=="string"?bq(t.commentChar):Sq,f=j=>!j.match(/^\s*gpg:/),d=ha(e).split(/\r?\n/),p=wq(d).filter(l).filter(f),g=!1,h=!0,b=Et.map(t.headerCorrespondence,function(j){return j.trim()}),w=Et.map(t.revertCorrespondence,function(j){return j.trim()}),S=Et.map(t.mergeCorrespondence,function(j){return j.trim()}),L=null,C=null,O=null,F=[],D=null,R=[],V=[],X=null;if(p.length===0)return{body:L,footer:C,header:O,mentions:F,merge:D,notes:R,references:V,revert:X,scope:null,subject:null,type:null};D=p.shift();let z={},U={};L="",C="";let I=D.match(t.mergePattern);if(I&&t.mergePattern){for(D=I[0],O=p.shift();O!==void 0&&!O.trim();)O=p.shift();O||(O=""),Et.forEach(S,function(j,Y){let K=I[Y+1]||null;z[j]=K})}else O=D,D=null,Et.forEach(S,function(j){z[j]=null});let W=O.match(t.headerPattern);if(W?Et.forEach(b,function(j,Y){let K=W[Y+1]||null;U[j]=K}):Et.forEach(b,function(j){U[j]=null}),Array.prototype.push.apply(V,Qy(O,{references:r.references,referenceParts:r.referenceParts})),Et.forEach(p,function(j){if(t.fieldPattern){let ne=t.fieldPattern.exec(j);if(ne){i=ne[1];return}if(i){u[i]=Cn(u[i],j);return}}let Y,K=j.match(r.notes);if(K){g=!0,h=!1,C=Cn(C,j);let ne={title:K[1],text:K[2]};R.push(ne);return}let re=Qy(j,{references:r.references,referenceParts:r.referenceParts});if(re.length>0&&(h=!1,Y=!0,g=!1),Array.prototype.push.apply(V,re),Y){C=Cn(C,j);return}if(g){R[R.length-1].text=Cn(R[R.length-1].text,j),C=Cn(C,j);return}h?L=Cn(L,j):C=Cn(C,j)}),t.breakingHeaderPattern&&R.length===0){let j=O.match(t.breakingHeaderPattern);if(j){let Y=j[3];R.push({title:"BREAKING CHANGE",text:Y})}}for(;o=r.mentions.exec(e);)F.push(o[1]);let k=e.match(t.revertPattern);return k?(X={},Et.forEach(w,function(j,Y){let K=k[Y+1]||null;X[j]=K})):X=null,Et.map(R,function(j){return j.text=ha(j.text),j}),Et.merge(U,z,{merge:D,header:O,body:L?ha(L):null,footer:C?ha(C):null,notes:R,references:V,mentions:F,revert:X},u)}e_.exports=Eq});var i_=_((OK,n_)=>{"use strict";var r_=/(?!.*)/;function Jf(e,t){return e.map(function(r){return r.trim()}).filter(function(r){return r.length}).join(t)}function Lq(e,t){if(!e)return r_;let r=Jf(e,"|");return t?t(r):new RegExp("^[\\s|*]*("+r+")[:\\s]+(.*)","i")}function Aq(e,t){if(!e)return r_;let r=t?"g":"gi";return new RegExp("(?:.*?)??\\s*([\\w-\\.\\/]*?)??("+Jf(e,"|")+")([\\w-]*\\d+)",r)}function xq(e){if(!e)return/()(.+)/gi;let t=Jf(e,"|");return new RegExp("("+t+")(?:\\s+(.*?))(?=(?:"+t+")|$)","gi")}n_.exports=function(e){e=e||{};let t=Lq(e.noteKeywords,e.notesPattern),r=Aq(e.issuePrefixes,e.issuePrefixesCaseSensitive),i=xq(e.referenceActions);return{notes:t,referenceParts:r,references:i,mentions:/@([\w-]+)/g}}});var Zf=_((RK,Xf)=>{"use strict";var s_=t_(),o_=i_(),Pq=bs(),Cq=Pn();function a_(e){return e=Cq.extend({headerPattern:/^(\w*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$/,headerCorrespondence:["type","scope","subject"],referenceActions:["close","closes","closed","fix","fixes","fixed","resolve","resolves","resolved"],issuePrefixes:["#"],noteKeywords:["BREAKING CHANGE"],fieldPattern:/^-(.*?)-$/,revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,revertCorrespondence:["header","hash"],warn:function(){},mergePattern:null,mergeCorrespondence:null},e),typeof e.headerPattern=="string"&&(e.headerPattern=new RegExp(e.headerPattern)),typeof e.headerCorrespondence=="string"&&(e.headerCorrespondence=e.headerCorrespondence.split(",")),typeof e.referenceActions=="string"&&(e.referenceActions=e.referenceActions.split(",")),typeof e.issuePrefixes=="string"&&(e.issuePrefixes=e.issuePrefixes.split(",")),typeof e.noteKeywords=="string"&&(e.noteKeywords=e.noteKeywords.split(",")),typeof e.fieldPattern=="string"&&(e.fieldPattern=new RegExp(e.fieldPattern)),typeof e.revertPattern=="string"&&(e.revertPattern=new RegExp(e.revertPattern)),typeof e.revertCorrespondence=="string"&&(e.revertCorrespondence=e.revertCorrespondence.split(",")),typeof e.mergePattern=="string"&&(e.mergePattern=new RegExp(e.mergePattern)),e}function Oq(e){e=a_(e);let t=o_(e);return Pq.obj(function(r,i,o){let u;try{u=s_(r.toString(),e,t),o(null,u)}catch(l){e.warn===!0?o(l):(e.warn(l.toString()),o(null,""))}})}function Rq(e,t){t=a_(t);let r=o_(t);return s_(e,t,r)}Xf.exports=Oq;Xf.exports.sync=Rq});var ec=_((Qf,u_)=>{(function(e){"use strict";var t=function(){var l=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g,f=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g;return function(p,g,h,b){if(arguments.length===1&&u(p)==="string"&&!/\d/.test(p)&&(g=p,p=void 0),p=p||new Date,p instanceof Date||(p=new Date(p)),isNaN(p))throw TypeError("Invalid date");g=String(t.masks[g]||g||t.masks.default);var w=g.slice(0,4);(w==="UTC:"||w==="GMT:")&&(g=g.slice(4),h=!0,w==="GMT:"&&(b=!0));var S=h?"getUTC":"get",L=p[S+"Date"](),C=p[S+"Day"](),O=p[S+"Month"](),F=p[S+"FullYear"](),D=p[S+"Hours"](),R=p[S+"Minutes"](),V=p[S+"Seconds"](),X=p[S+"Milliseconds"](),z=h?0:p.getTimezoneOffset(),U=i(p),I=o(p),W={d:L,dd:r(L),ddd:t.i18n.dayNames[C],dddd:t.i18n.dayNames[C+7],m:O+1,mm:r(O+1),mmm:t.i18n.monthNames[O],mmmm:t.i18n.monthNames[O+12],yy:String(F).slice(2),yyyy:F,h:D%12||12,hh:r(D%12||12),H:D,HH:r(D),M:R,MM:r(R),s:V,ss:r(V),l:r(X,3),L:r(Math.round(X/10)),t:D<12?t.i18n.timeNames[0]:t.i18n.timeNames[1],tt:D<12?t.i18n.timeNames[2]:t.i18n.timeNames[3],T:D<12?t.i18n.timeNames[4]:t.i18n.timeNames[5],TT:D<12?t.i18n.timeNames[6]:t.i18n.timeNames[7],Z:b?"GMT":h?"UTC":(String(p).match(f)||[""]).pop().replace(d,""),o:(z>0?"-":"+")+r(Math.floor(Math.abs(z)/60)*100+Math.abs(z)%60,4),S:["th","st","nd","rd"][L%10>3?0:(L%100-L%10!=10)*L%10],W:U,N:I};return g.replace(l,function(k){return k in W?W[k]:k.slice(1,k.length-1)})}}();t.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},t.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};function r(l,f){for(l=String(l),f=f||2;l.length{function Tq(){this.__data__=[],this.size=0}l_.exports=Tq});var Ss=_((IK,c_)=>{var Iq=ci();function Nq(e,t){for(var r=e.length;r--;)if(Iq(e[r][0],t))return r;return-1}c_.exports=Nq});var p_=_((NK,h_)=>{var Dq=Ss(),Mq=Array.prototype,qq=Mq.splice;function kq(e){var t=this.__data__,r=Dq(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():qq.call(t,r,1),--this.size,!0}h_.exports=kq});var g_=_((DK,d_)=>{var Fq=Ss();function Bq(e){var t=this.__data__,r=Fq(t,e);return r<0?void 0:t[r][1]}d_.exports=Bq});var v_=_((MK,m_)=>{var Uq=Ss();function Gq(e){return Uq(this.__data__,e)>-1}m_.exports=Gq});var __=_((qK,y_)=>{var jq=Ss();function Hq(e,t){var r=this.__data__,i=jq(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}y_.exports=Hq});var Es=_((kK,b_)=>{var Wq=f_(),$q=p_(),Yq=g_(),Kq=v_(),Vq=__();function gi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var zq=Es();function Jq(){this.__data__=new zq,this.size=0}w_.exports=Jq});var L_=_((BK,E_)=>{function Xq(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}E_.exports=Xq});var x_=_((UK,A_)=>{function Zq(e){return this.__data__.get(e)}A_.exports=Zq});var C_=_((GK,P_)=>{function Qq(e){return this.__data__.has(e)}P_.exports=Qq});var pa=_((jK,O_)=>{var ek=rn(),tk=ur(),rk=ek(tk,"Map");O_.exports=rk});var Ls=_((HK,R_)=>{var nk=rn(),ik=nk(Object,"create");R_.exports=ik});var N_=_((WK,I_)=>{var T_=Ls();function sk(){this.__data__=T_?T_(null):{},this.size=0}I_.exports=sk});var M_=_(($K,D_)=>{function ok(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}D_.exports=ok});var k_=_((YK,q_)=>{var ak=Ls(),uk="__lodash_hash_undefined__",lk=Object.prototype,fk=lk.hasOwnProperty;function ck(e){var t=this.__data__;if(ak){var r=t[e];return r===uk?void 0:r}return fk.call(t,e)?t[e]:void 0}q_.exports=ck});var B_=_((KK,F_)=>{var hk=Ls(),pk=Object.prototype,dk=pk.hasOwnProperty;function gk(e){var t=this.__data__;return hk?t[e]!==void 0:dk.call(t,e)}F_.exports=gk});var G_=_((VK,U_)=>{var mk=Ls(),vk="__lodash_hash_undefined__";function yk(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=mk&&t===void 0?vk:t,this}U_.exports=yk});var H_=_((zK,j_)=>{var _k=N_(),bk=M_(),wk=k_(),Sk=B_(),Ek=G_();function mi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var W_=H_(),Lk=Es(),Ak=pa();function xk(){this.size=0,this.__data__={hash:new W_,map:new(Ak||Lk),string:new W_}}$_.exports=xk});var V_=_((XK,K_)=>{function Pk(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}K_.exports=Pk});var As=_((ZK,z_)=>{var Ck=V_();function Ok(e,t){var r=e.__data__;return Ck(t)?r[typeof t=="string"?"string":"hash"]:r.map}z_.exports=Ok});var X_=_((QK,J_)=>{var Rk=As();function Tk(e){var t=Rk(this,e).delete(e);return this.size-=t?1:0,t}J_.exports=Tk});var Q_=_((eV,Z_)=>{var Ik=As();function Nk(e){return Ik(this,e).get(e)}Z_.exports=Nk});var t0=_((tV,e0)=>{var Dk=As();function Mk(e){return Dk(this,e).has(e)}e0.exports=Mk});var n0=_((rV,r0)=>{var qk=As();function kk(e,t){var r=qk(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}r0.exports=kk});var tc=_((nV,i0)=>{var Fk=Y_(),Bk=X_(),Uk=Q_(),Gk=t0(),jk=n0();function vi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var Hk=Es(),Wk=pa(),$k=tc(),Yk=200;function Kk(e,t){var r=this.__data__;if(r instanceof Hk){var i=r.__data__;if(!Wk||i.length{var Vk=Es(),zk=S_(),Jk=L_(),Xk=x_(),Zk=C_(),Qk=o0();function yi(e){var t=this.__data__=new Vk(e);this.size=t.size}yi.prototype.clear=zk;yi.prototype.delete=Jk;yi.prototype.get=Xk;yi.prototype.has=Zk;yi.prototype.set=Qk;a0.exports=yi});var l0=_((oV,u0)=>{var eF="__lodash_hash_undefined__";function tF(e){return this.__data__.set(e,eF),this}u0.exports=tF});var c0=_((aV,f0)=>{function rF(e){return this.__data__.has(e)}f0.exports=rF});var p0=_((uV,h0)=>{var nF=tc(),iF=l0(),sF=c0();function da(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new nF;++t{function oF(e,t){for(var r=-1,i=e==null?0:e.length;++r{function aF(e,t){return e.has(t)}m0.exports=aF});var nc=_((cV,y0)=>{var uF=p0(),lF=g0(),fF=v0(),cF=1,hF=2;function pF(e,t,r,i,o,u){var l=r&cF,f=e.length,d=t.length;if(f!=d&&!(l&&d>f))return!1;var p=u.get(e),g=u.get(t);if(p&&g)return p==t&&g==e;var h=-1,b=!0,w=r&hF?new uF:void 0;for(u.set(e,t),u.set(t,e);++h{var dF=ur(),gF=dF.Uint8Array;_0.exports=gF});var S0=_((pV,w0)=>{function mF(e){var t=-1,r=Array(e.size);return e.forEach(function(i,o){r[++t]=[o,i]}),r}w0.exports=mF});var L0=_((dV,E0)=>{function vF(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}E0.exports=vF});var O0=_((gV,C0)=>{var A0=ds(),x0=b0(),yF=ci(),_F=nc(),bF=S0(),wF=L0(),SF=1,EF=2,LF="[object Boolean]",AF="[object Date]",xF="[object Error]",PF="[object Map]",CF="[object Number]",OF="[object RegExp]",RF="[object Set]",TF="[object String]",IF="[object Symbol]",NF="[object ArrayBuffer]",DF="[object DataView]",P0=A0?A0.prototype:void 0,ic=P0?P0.valueOf:void 0;function MF(e,t,r,i,o,u,l){switch(r){case DF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case NF:return!(e.byteLength!=t.byteLength||!u(new x0(e),new x0(t)));case LF:case AF:case CF:return yF(+e,+t);case xF:return e.name==t.name&&e.message==t.message;case OF:case TF:return e==t+"";case PF:var f=bF;case RF:var d=i&SF;if(f||(f=wF),e.size!=t.size&&!d)return!1;var p=l.get(e);if(p)return p==t;i|=EF,l.set(e,t);var g=_F(f(e),f(t),i,o,u,l);return l.delete(e),g;case IF:if(ic)return ic.call(e)==ic.call(t)}return!1}C0.exports=MF});var T0=_((mV,R0)=>{function qF(e,t){for(var r=-1,i=t.length,o=e.length;++r{var kF=T0(),FF=ms();function BF(e,t,r){var i=t(e);return FF(e)?i:kF(i,r(e))}I0.exports=BF});var M0=_((yV,D0)=>{function UF(e,t){for(var r=-1,i=e==null?0:e.length,o=0,u=[];++r{function GF(){return[]}q0.exports=GF});var U0=_((bV,B0)=>{var jF=M0(),HF=k0(),WF=Object.prototype,$F=WF.propertyIsEnumerable,F0=Object.getOwnPropertySymbols,YF=F0?function(e){return e==null?[]:(e=Object(e),jF(F0(e),function(t){return $F.call(e,t)}))}:HF;B0.exports=YF});var j0=_((wV,G0)=>{var KF=N0(),VF=U0(),zF=ua();function JF(e){return KF(e,zF,VF)}G0.exports=JF});var $0=_((SV,W0)=>{var H0=j0(),XF=1,ZF=Object.prototype,QF=ZF.hasOwnProperty;function e7(e,t,r,i,o,u){var l=r&XF,f=H0(e),d=f.length,p=H0(t),g=p.length;if(d!=g&&!l)return!1;for(var h=d;h--;){var b=f[h];if(!(l?b in t:QF.call(t,b)))return!1}var w=u.get(e),S=u.get(t);if(w&&S)return w==t&&S==e;var L=!0;u.set(e,t),u.set(t,e);for(var C=l;++h{var t7=rn(),r7=ur(),n7=t7(r7,"DataView");Y0.exports=n7});var z0=_((LV,V0)=>{var i7=rn(),s7=ur(),o7=i7(s7,"Promise");V0.exports=o7});var X0=_((AV,J0)=>{var a7=rn(),u7=ur(),l7=a7(u7,"Set");J0.exports=l7});var Q0=_((xV,Z0)=>{var f7=rn(),c7=ur(),h7=f7(c7,"WeakMap");Z0.exports=h7});var a2=_((PV,o2)=>{var sc=K0(),oc=pa(),ac=z0(),uc=X0(),lc=Q0(),e2=tn(),_i=Of(),t2="[object Map]",p7="[object Object]",r2="[object Promise]",n2="[object Set]",i2="[object WeakMap]",s2="[object DataView]",d7=_i(sc),g7=_i(oc),m7=_i(ac),v7=_i(uc),y7=_i(lc),On=e2;(sc&&On(new sc(new ArrayBuffer(1)))!=s2||oc&&On(new oc)!=t2||ac&&On(ac.resolve())!=r2||uc&&On(new uc)!=n2||lc&&On(new lc)!=i2)&&(On=function(e){var t=e2(e),r=t==p7?e.constructor:void 0,i=r?_i(r):"";if(i)switch(i){case d7:return s2;case g7:return t2;case m7:return r2;case v7:return n2;case y7:return i2}return t});o2.exports=On});var g2=_((CV,d2)=>{var fc=rc(),_7=nc(),b7=O0(),w7=$0(),u2=a2(),l2=ms(),f2=Ff(),S7=Uf(),E7=1,c2="[object Arguments]",h2="[object Array]",ga="[object Object]",L7=Object.prototype,p2=L7.hasOwnProperty;function A7(e,t,r,i,o,u){var l=l2(e),f=l2(t),d=l?h2:u2(e),p=f?h2:u2(t);d=d==c2?ga:d,p=p==c2?ga:p;var g=d==ga,h=p==ga,b=d==p;if(b&&f2(e)){if(!f2(t))return!1;l=!0,g=!1}if(b&&!g)return u||(u=new fc),l||S7(e)?_7(e,t,r,i,o,u):b7(e,t,d,r,i,o,u);if(!(r&E7)){var w=g&&p2.call(e,"__wrapped__"),S=h&&p2.call(t,"__wrapped__");if(w||S){var L=w?e.value():e,C=S?t.value():t;return u||(u=new fc),o(L,C,r,i,u)}}return b?(u||(u=new fc),w7(e,t,r,i,o,u)):!1}d2.exports=A7});var _2=_((OV,y2)=>{var x7=g2(),m2=nn();function v2(e,t,r,i,o){return e===t?!0:e==null||t==null||!m2(e)&&!m2(t)?e!==e&&t!==t:x7(e,t,r,i,v2,o)}y2.exports=v2});var w2=_((RV,b2)=>{var P7=rc(),C7=_2(),O7=1,R7=2;function T7(e,t,r,i){var o=r.length,u=o,l=!i;if(e==null)return!u;for(e=Object(e);o--;){var f=r[o];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++o{var I7=fi();function N7(e){return e===e&&!I7(e)}S2.exports=N7});var A2=_((IV,L2)=>{var D7=E2(),M7=ua();function q7(e){for(var t=M7(e),r=t.length;r--;){var i=t[r],o=e[i];t[r]=[i,o,D7(o)]}return t}L2.exports=q7});var P2=_((NV,x2)=>{var k7=w2(),F7=A2();function B7(e,t){return e===t||k7(e,t,F7(t))}x2.exports=B7});var O2=_((DV,C2)=>{"use strict";C2.exports=function(e,t){for(var r,i,o={},u=Object.keys(Object(e)),l=0;l{"use strict";var U7=P2(),cc=O2();function hc(e){return typeof e=="string"?e.trim():e}function G7(e){if(!Array.isArray(e))throw new TypeError("Expected an array");let t=[],r=[],i=[];return e.forEach(function(o){o.revert&&r.push(o),t.push(o)}),t=t.filter(function(o){let u=!1;return o=o.raw?cc(o.raw,hc):cc(o,hc),r.some(function(l){let f=cc(l.revert,hc);return u=U7(o,f),u&&i.push(l.hash),u}),!u}),t=t.filter(function(o){return i.indexOf(o.hash)!==0}),t}R2.exports=G7});var ht=_(Lt=>{"use strict";Lt.__esModule=!0;Lt.extend=T2;Lt.indexOf=Y7;Lt.escapeExpression=K7;Lt.isEmpty=V7;Lt.createFrame=z7;Lt.blockParams=J7;Lt.appendContextPath=X7;var j7={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},H7=/[&<>"'`=]/g,W7=/[&<>"'`=]/;function $7(e){return j7[e]}function T2(e){for(var t=1;t{"use strict";ma.__esModule=!0;var mc=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function vc(e,t){var r=t&&t.loc,i=void 0,o=void 0,u=void 0,l=void 0;r&&(i=r.start.line,o=r.end.line,u=r.start.column,l=r.end.column,e+=" - "+i+":"+u);for(var f=Error.prototype.constructor.call(this,e),d=0;d{"use strict";va.__esModule=!0;var yc=ht();va.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var i=r.inverse,o=r.fn;if(t===!0)return o(this);if(t===!1||t==null)return i(this);if(yc.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):i(this);if(r.data&&r.ids){var u=yc.createFrame(r.data);u.contextPath=yc.appendContextPath(r.data.contextPath,r.name),r={data:u}}return o(t,r)})};D2.exports=va.default});var k2=_((ya,q2)=>{"use strict";ya.__esModule=!0;function Z7(e){return e&&e.__esModule?e:{default:e}}var xs=ht(),Q7=Ut(),eB=Z7(Q7);ya.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new eB.default("Must pass iterator to #each");var i=r.fn,o=r.inverse,u=0,l="",f=void 0,d=void 0;r.data&&r.ids&&(d=xs.appendContextPath(r.data.contextPath,r.ids[0])+"."),xs.isFunction(t)&&(t=t.call(this)),r.data&&(f=xs.createFrame(r.data));function p(S,L,C){f&&(f.key=S,f.index=L,f.first=L===0,f.last=!!C,d&&(f.contextPath=d+S)),l=l+i(t[S],{data:f,blockParams:xs.blockParams([t[S],S],[d+S,null])})}if(t&&typeof t=="object")if(xs.isArray(t))for(var g=t.length;u{"use strict";_a.__esModule=!0;function tB(e){return e&&e.__esModule?e:{default:e}}var rB=Ut(),nB=tB(rB);_a.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new nB.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};F2.exports=_a.default});var H2=_((ba,j2)=>{"use strict";ba.__esModule=!0;function iB(e){return e&&e.__esModule?e:{default:e}}var U2=ht(),sB=Ut(),G2=iB(sB);ba.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new G2.default("#if requires exactly one argument");return U2.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||U2.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new G2.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};j2.exports=ba.default});var $2=_((wa,W2)=>{"use strict";wa.__esModule=!0;wa.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],i=0;i{"use strict";Sa.__esModule=!0;Sa.default=function(e){e.registerHelper("lookup",function(t,r,i){return t&&i.lookupProperty(t,r)})};Y2.exports=Sa.default});var z2=_((Ea,V2)=>{"use strict";Ea.__esModule=!0;function oB(e){return e&&e.__esModule?e:{default:e}}var Ps=ht(),aB=Ut(),uB=oB(aB);Ea.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new uB.default("#with requires exactly one argument");Ps.isFunction(t)&&(t=t.call(this));var i=r.fn;if(Ps.isEmpty(t))return r.inverse(this);var o=r.data;return r.data&&r.ids&&(o=Ps.createFrame(r.data),o.contextPath=Ps.appendContextPath(r.data.contextPath,r.ids[0])),i(t,{data:o,blockParams:Ps.blockParams([t],[o&&o.contextPath])})})};V2.exports=Ea.default});var _c=_(La=>{"use strict";La.__esModule=!0;La.registerDefaultHelpers=EB;La.moveHelperToHooks=LB;function Rn(e){return e&&e.__esModule?e:{default:e}}var lB=M2(),fB=Rn(lB),cB=k2(),hB=Rn(cB),pB=B2(),dB=Rn(pB),gB=H2(),mB=Rn(gB),vB=$2(),yB=Rn(vB),_B=K2(),bB=Rn(_B),wB=z2(),SB=Rn(wB);function EB(e){fB.default(e),hB.default(e),dB.default(e),mB.default(e),yB.default(e),bB.default(e),SB.default(e)}function LB(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}});var X2=_((Aa,J2)=>{"use strict";Aa.__esModule=!0;var AB=ht();Aa.default=function(e){e.registerDecorator("inline",function(t,r,i,o){var u=t;return r.partials||(r.partials={},u=function(l,f){var d=i.partials;i.partials=AB.extend({},d,r.partials);var p=t(l,f);return i.partials=d,p}),r.partials[o.args[0]]=o.fn,u})};J2.exports=Aa.default});var Z2=_(bc=>{"use strict";bc.__esModule=!0;bc.registerDefaultDecorators=OB;function xB(e){return e&&e.__esModule?e:{default:e}}var PB=X2(),CB=xB(PB);function OB(e){CB.default(e)}});var wc=_((xa,Q2)=>{"use strict";xa.__esModule=!0;var RB=ht(),bi={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if(typeof t=="string"){var r=RB.indexOf(bi.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},log:function(t){if(t=bi.lookupLevel(t),typeof console!="undefined"&&bi.lookupLevel(bi.level)<=t){var r=bi.methodMap[t];console[r]||(r="log");for(var i=arguments.length,o=Array(i>1?i-1:0),u=1;u{"use strict";Sc.__esModule=!0;Sc.createNewLookupObject=IB;var TB=ht();function IB(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";Cs.__esModule=!0;Cs.createProtoAccessControl=qB;Cs.resultIsAllowed=kB;Cs.resetLoggedProperties=BB;function NB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}var tb=eb(),DB=wc(),MB=NB(DB),Pa=Object.create(null);function qB(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:tb.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:tb.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function kB(e,t,r){return typeof e=="function"?rb(t.methods,r):rb(t.properties,r)}function rb(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(FB(t),!1)}function FB(e){Pa[e]!==!0&&(Pa[e]=!0,MB.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent. +You can add a runtime option to disable the check or this warning: +See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function BB(){Object.keys(Pa).forEach(function(e){delete Pa[e]})}});var Oa=_(lr=>{"use strict";lr.__esModule=!0;lr.HandlebarsEnvironment=xc;function nb(e){return e&&e.__esModule?e:{default:e}}var Tn=ht(),UB=Ut(),Lc=nb(UB),GB=_c(),jB=Z2(),HB=wc(),Ca=nb(HB),WB=Ec(),$B="4.7.7";lr.VERSION=$B;var YB=8;lr.COMPILER_REVISION=YB;var KB=7;lr.LAST_COMPATIBLE_COMPILER_REVISION=KB;var VB={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};lr.REVISION_CHANGES=VB;var Ac="[object Object]";function xc(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},GB.registerDefaultHelpers(this),jB.registerDefaultDecorators(this)}xc.prototype={constructor:xc,logger:Ca.default,log:Ca.default.log,registerHelper:function(t,r){if(Tn.toString.call(t)===Ac){if(r)throw new Lc.default("Arg not supported with multiple helpers");Tn.extend(this.helpers,t)}else this.helpers[t]=r},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,r){if(Tn.toString.call(t)===Ac)Tn.extend(this.partials,t);else{if(typeof r=="undefined")throw new Lc.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,r){if(Tn.toString.call(t)===Ac){if(r)throw new Lc.default("Arg not supported with multiple decorators");Tn.extend(this.decorators,t)}else this.decorators[t]=r},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){WB.resetLoggedProperties()}};var zB=Ca.default.log;lr.log=zB;lr.createFrame=Tn.createFrame;lr.logger=Ca.default});var sb=_((Ra,ib)=>{"use strict";Ra.__esModule=!0;function Pc(e){this.string=e}Pc.prototype.toString=Pc.prototype.toHTML=function(){return""+this.string};Ra.default=Pc;ib.exports=Ra.default});var ob=_(Cc=>{"use strict";Cc.__esModule=!0;Cc.wrapHelper=JB;function JB(e,t){if(typeof e!="function")return e;var r=function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=t(o),e.apply(this,arguments)};return r}});var cb=_(sn=>{"use strict";sn.__esModule=!0;sn.checkRevision=rU;sn.template=nU;sn.wrapProgram=Ta;sn.resolvePartial=iU;sn.invokePartial=sU;sn.noop=lb;function XB(e){return e&&e.__esModule?e:{default:e}}function ZB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}var QB=ht(),Pr=ZB(QB),eU=Ut(),Cr=XB(eU),Or=Oa(),ab=_c(),tU=ob(),ub=Ec();function rU(e){var t=e&&e[0]||1,r=Or.COMPILER_REVISION;if(!(t>=Or.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Or.COMPILER_REVISION))if(t{"use strict";Ia.__esModule=!0;Ia.default=function(e){var t=typeof global!="undefined"?global:window,r=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=r),e}};hb.exports=Ia.default});var vb=_((Na,mb)=>{"use strict";Na.__esModule=!0;function Rc(e){return e&&e.__esModule?e:{default:e}}function Tc(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}var lU=Oa(),pb=Tc(lU),fU=sb(),cU=Rc(fU),hU=Ut(),pU=Rc(hU),dU=ht(),Ic=Tc(dU),gU=cb(),db=Tc(gU),mU=Oc(),vU=Rc(mU);function gb(){var e=new pb.HandlebarsEnvironment;return Ic.extend(e,pb),e.SafeString=cU.default,e.Exception=pU.default,e.Utils=Ic,e.escapeExpression=Ic.escapeExpression,e.VM=db,e.template=function(t){return db.template(t,e)},e}var Os=gb();Os.create=gb;vU.default(Os);Os.default=Os;Na.default=Os;mb.exports=Na.default});var Nc=_((Da,_b)=>{"use strict";Da.__esModule=!0;var yb={helpers:{helperExpression:function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},scopedId:function(t){return/^\.|this\b/.test(t.original)},simpleId:function(t){return t.parts.length===1&&!yb.helpers.scopedId(t)&&!t.depth}}};Da.default=yb;_b.exports=Da.default});var wb=_((Ma,bb)=>{"use strict";Ma.__esModule=!0;var yU=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(o,u,l,f,d,p,g){var h=p.length-1;switch(d){case 1:return p[h-1];case 2:this.$=f.prepareProgram(p[h]);break;case 3:this.$=p[h];break;case 4:this.$=p[h];break;case 5:this.$=p[h];break;case 6:this.$=p[h];break;case 7:this.$=p[h];break;case 8:this.$=p[h];break;case 9:this.$={type:"CommentStatement",value:f.stripComment(p[h]),strip:f.stripFlags(p[h],p[h]),loc:f.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:p[h],value:p[h],loc:f.locInfo(this._$)};break;case 11:this.$=f.prepareRawBlock(p[h-2],p[h-1],p[h],this._$);break;case 12:this.$={path:p[h-3],params:p[h-2],hash:p[h-1]};break;case 13:this.$=f.prepareBlock(p[h-3],p[h-2],p[h-1],p[h],!1,this._$);break;case 14:this.$=f.prepareBlock(p[h-3],p[h-2],p[h-1],p[h],!0,this._$);break;case 15:this.$={open:p[h-5],path:p[h-4],params:p[h-3],hash:p[h-2],blockParams:p[h-1],strip:f.stripFlags(p[h-5],p[h])};break;case 16:this.$={path:p[h-4],params:p[h-3],hash:p[h-2],blockParams:p[h-1],strip:f.stripFlags(p[h-5],p[h])};break;case 17:this.$={path:p[h-4],params:p[h-3],hash:p[h-2],blockParams:p[h-1],strip:f.stripFlags(p[h-5],p[h])};break;case 18:this.$={strip:f.stripFlags(p[h-1],p[h-1]),program:p[h]};break;case 19:var b=f.prepareBlock(p[h-2],p[h-1],p[h],p[h],!1,this._$),w=f.prepareProgram([b],p[h-1].loc);w.chained=!0,this.$={strip:p[h-2].strip,program:w,chain:!0};break;case 20:this.$=p[h];break;case 21:this.$={path:p[h-1],strip:f.stripFlags(p[h-2],p[h])};break;case 22:this.$=f.prepareMustache(p[h-3],p[h-2],p[h-1],p[h-4],f.stripFlags(p[h-4],p[h]),this._$);break;case 23:this.$=f.prepareMustache(p[h-3],p[h-2],p[h-1],p[h-4],f.stripFlags(p[h-4],p[h]),this._$);break;case 24:this.$={type:"PartialStatement",name:p[h-3],params:p[h-2],hash:p[h-1],indent:"",strip:f.stripFlags(p[h-4],p[h]),loc:f.locInfo(this._$)};break;case 25:this.$=f.preparePartialBlock(p[h-2],p[h-1],p[h],this._$);break;case 26:this.$={path:p[h-3],params:p[h-2],hash:p[h-1],strip:f.stripFlags(p[h-4],p[h])};break;case 27:this.$=p[h];break;case 28:this.$=p[h];break;case 29:this.$={type:"SubExpression",path:p[h-3],params:p[h-2],hash:p[h-1],loc:f.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:p[h],loc:f.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:f.id(p[h-2]),value:p[h],loc:f.locInfo(this._$)};break;case 32:this.$=f.id(p[h-1]);break;case 33:this.$=p[h];break;case 34:this.$=p[h];break;case 35:this.$={type:"StringLiteral",value:p[h],original:p[h],loc:f.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(p[h]),original:Number(p[h]),loc:f.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:p[h]==="true",original:p[h]==="true",loc:f.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:f.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:f.locInfo(this._$)};break;case 40:this.$=p[h];break;case 41:this.$=p[h];break;case 42:this.$=f.preparePath(!0,p[h],this._$);break;case 43:this.$=f.preparePath(!1,p[h],this._$);break;case 44:p[h-2].push({part:f.id(p[h]),original:p[h],separator:p[h-1]}),this.$=p[h-2];break;case 45:this.$=[{part:f.id(p[h]),original:p[h]}];break;case 46:this.$=[];break;case 47:p[h-1].push(p[h]);break;case 48:this.$=[];break;case 49:p[h-1].push(p[h]);break;case 50:this.$=[];break;case 51:p[h-1].push(p[h]);break;case 58:this.$=[];break;case 59:p[h-1].push(p[h]);break;case 64:this.$=[];break;case 65:p[h-1].push(p[h]);break;case 70:this.$=[];break;case 71:p[h-1].push(p[h]);break;case 78:this.$=[];break;case 79:p[h-1].push(p[h]);break;case 82:this.$=[];break;case 83:p[h-1].push(p[h]);break;case 86:this.$=[];break;case 87:p[h-1].push(p[h]);break;case 90:this.$=[];break;case 91:p[h-1].push(p[h]);break;case 94:this.$=[];break;case 95:p[h-1].push(p[h]);break;case 98:this.$=[p[h]];break;case 99:p[h-1].push(p[h]);break;case 100:this.$=[p[h]];break;case 101:p[h-1].push(p[h]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(o,u){throw new Error(o)},parse:function(o){var u=this,l=[0],f=[null],d=[],p=this.table,g="",h=0,b=0,w=0,S=2,L=1;this.lexer.setInput(o),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={});var C=this.lexer.yylloc;d.push(C);var O=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function F(re){l.length=l.length-2*re,f.length=f.length-re,d.length=d.length-re}function D(){var re;return re=u.lexer.lex()||1,typeof re!="number"&&(re=u.symbols_[re]||re),re}for(var R,V,X,z,U,I,W={},k,H,j,Y;;){if(X=l[l.length-1],this.defaultActions[X]?z=this.defaultActions[X]:((R===null||typeof R=="undefined")&&(R=D()),z=p[X]&&p[X][R]),typeof z=="undefined"||!z.length||!z[0]){var K="";if(!w){Y=[];for(k in p[X])this.terminals_[k]&&k>2&&Y.push("'"+this.terminals_[k]+"'");this.lexer.showPosition?K="Parse error on line "+(h+1)+`: +`+this.lexer.showPosition()+` +Expecting `+Y.join(", ")+", got '"+(this.terminals_[R]||R)+"'":K="Parse error on line "+(h+1)+": Unexpected "+(R==1?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(K,{text:this.lexer.match,token:this.terminals_[R]||R,line:this.lexer.yylineno,loc:C,expected:Y})}}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+X+", token: "+R);switch(z[0]){case 1:l.push(R),f.push(this.lexer.yytext),d.push(this.lexer.yylloc),l.push(z[1]),R=null,V?(R=V,V=null):(b=this.lexer.yyleng,g=this.lexer.yytext,h=this.lexer.yylineno,C=this.lexer.yylloc,w>0&&w--);break;case 2:if(H=this.productions_[z[1]][1],W.$=f[f.length-H],W._$={first_line:d[d.length-(H||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(H||1)].first_column,last_column:d[d.length-1].last_column},O&&(W._$.range=[d[d.length-(H||1)].range[0],d[d.length-1].range[1]]),I=this.performAction.call(W,g,b,h,this.yy,z[1],f,d),typeof I!="undefined")return I;H&&(l=l.slice(0,-1*H*2),f=f.slice(0,-1*H),d=d.slice(0,-1*H)),l.push(this.productions_[z[1]][0]),f.push(W.$),d.push(W._$),j=p[l[l.length-2]][l[l.length-1]],l.push(j);break;case 3:return!0}}return!0}},t=function(){var i={EOF:1,parseError:function(u,l){if(this.yy.parser)this.yy.parser.parseError(u,l);else throw new Error(u)},setInput:function(u){return this._input=u,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var l=u.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var l=u.length,f=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l-1),this.offset-=l;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===d.length?this.yylloc.first_column:0)+d[d.length-f.length].length-f[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-l]),this},more:function(){return this._more=!0,this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),l=new Array(u.length+1).join("-");return u+this.upcomingInput()+` +`+l+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,l,f,d,p,g;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),b=0;bl[0].length)&&(l=f,d=b,!this.options.flex)));b++);return l?(g=l[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],u=this.performAction.call(this,this.yy,this,h[d],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return typeof u!="undefined"?u:this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(u){this.begin(u)}};return i.options={},i.performAction=function(u,l,f,d){function p(h,b){return l.yytext=l.yytext.substring(h,l.yyleng-b+h)}var g=d;switch(f){case 0:if(l.yytext.slice(-2)==="\\\\"?(p(0,1),this.begin("mu")):l.yytext.slice(-1)==="\\"?(p(0,1),this.begin("emu")):this.begin("mu"),l.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(p(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(l.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return l.yytext=p(1,2).replace(/\\"/g,'"'),80;break;case 32:return l.yytext=p(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return l.yytext=l.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},i.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.conditions={mu:{rules:[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],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},i}();e.lexer=t;function r(){this.yy={}}return r.prototype=e,e.Parser=r,new r}();Ma.default=yU;bb.exports=Ma.default});var Ba=_((Fa,Lb)=>{"use strict";Fa.__esModule=!0;function _U(e){return e&&e.__esModule?e:{default:e}}var bU=Ut(),Dc=_U(bU);function qa(){this.parents=[]}qa.prototype={constructor:qa,mutating:!1,acceptKey:function(t,r){var i=this.accept(t[r]);if(this.mutating){if(i&&!qa.prototype[i.type])throw new Dc.default('Unexpected node type "'+i.type+'" found when accepting '+r+" on "+t.type);t[r]=i}},acceptRequired:function(t,r){if(this.acceptKey(t,r),!t[r])throw new Dc.default(t.type+" requires "+r)},acceptArray:function(t){for(var r=0,i=t.length;r{"use strict";Ua.__esModule=!0;function wU(e){return e&&e.__esModule?e:{default:e}}var SU=Ba(),EU=wU(SU);function fr(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}fr.prototype=new EU.default;fr.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var i=e.body,o=0,u=i.length;o{"use strict";Gt.__esModule=!0;Gt.SourceLocation=xU;Gt.id=PU;Gt.stripFlags=CU;Gt.stripComment=OU;Gt.preparePath=RU;Gt.prepareMustache=TU;Gt.prepareRawBlock=IU;Gt.prepareBlock=NU;Gt.prepareProgram=DU;Gt.preparePartialBlock=MU;function LU(e){return e&&e.__esModule?e:{default:e}}var AU=Ut(),kc=LU(AU);function Fc(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new kc.default(e.path.original+" doesn't match "+t,r)}}function xU(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function PU(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function CU(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function OU(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function RU(e,t,r){r=this.locInfo(r);for(var i=e?"@":"",o=[],u=0,l=0,f=t.length;l0)throw new kc.default("Invalid path: "+i,{loc:r});d===".."&&u++}else o.push(d)}return{type:"PathExpression",data:e,depth:u,parts:o,original:i,loc:r}}function TU(e,t,r,i,o,u){var l=i.charAt(3)||i.charAt(2),f=l!=="{"&&l!=="&",d=/\*/.test(i);return{type:d?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:f,strip:o,loc:this.locInfo(u)}}function IU(e,t,r,i){Fc(e,r),i=this.locInfo(i);var o={type:"Program",body:t,strip:{},loc:i};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:i}}function NU(e,t,r,i,o,u){i&&i.path&&Fc(e,i);var l=/\*/.test(e.open);t.blockParams=e.blockParams;var f=void 0,d=void 0;if(r){if(l)throw new kc.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=i.strip),d=r.strip,f=r.program}return o&&(o=f,f=t,t=o),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:f,openStrip:e.strip,inverseStrip:d,closeStrip:i&&i.strip,loc:this.locInfo(u)}}function DU(e,t){if(!t&&e.length){var r=e[0].loc,i=e[e.length-1].loc;r&&i&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:i.end.line,column:i.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function MU(e,t,r,i){return Fc(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(i)}}});var Rb=_(Rs=>{"use strict";Rs.__esModule=!0;Rs.parseWithoutProcessing=Ob;Rs.parse=HU;function qU(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function Cb(e){return e&&e.__esModule?e:{default:e}}var kU=wb(),Bc=Cb(kU),FU=xb(),BU=Cb(FU),UU=Pb(),GU=qU(UU),jU=ht();Rs.parser=Bc.default;var Ga={};jU.extend(Ga,GU);function Ob(e,t){if(e.type==="Program")return e;Bc.default.yy=Ga,Ga.locInfo=function(i){return new Ga.SourceLocation(t&&t.srcName,i)};var r=Bc.default.parse(e);return r}function HU(e,t){var r=Ob(e,t),i=new BU.default(t);return i.accept(r)}});var Db=_(Ds=>{"use strict";Ds.__esModule=!0;Ds.Compiler=Uc;Ds.precompile=KU;Ds.compile=VU;function Tb(e){return e&&e.__esModule?e:{default:e}}var WU=Ut(),Ts=Tb(WU),Is=ht(),$U=Nc(),Ns=Tb($U),YU=[].slice;function Uc(){}Uc.prototype={compiler:Uc,equals:function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var i=0;i1)throw new Ts.default("Unsupported number of partial arguments: "+i.length,t);i.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):i.push({type:"PathExpression",parts:[],depth:0}));var o=t.name.original,u=t.name.type==="SubExpression";u&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var l=t.indent||"";this.options.preventIndent&&l&&(this.opcode("appendContent",l),l=""),this.opcode("invokePartial",u,o,l),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){Nb(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,r,i){var o=t.path,u=o.parts[0],l=r!=null||i!=null;this.opcode("getContext",o.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",i),o.strict=!0,this.accept(o),this.opcode("invokeAmbiguous",u,l)},simpleSexpr:function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,r,i){var o=this.setupFullMustacheParams(t,r,i),u=t.path,l=u.parts[0];if(this.options.knownHelpers[l])this.opcode("invokeKnownHelper",o.length,l);else{if(this.options.knownHelpersOnly)throw new Ts.default("You specified knownHelpersOnly, but used the unknown helper "+l,t);u.strict=!0,u.falsy=!0,this.accept(u),this.opcode("invokeHelper",o.length,u.original,Ns.default.helpers.simpleId(u))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],i=Ns.default.helpers.scopedId(t),o=!t.depth&&!i&&this.blockParamIndex(r);o?this.opcode("lookupBlockParam",o,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,i):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var r=t.pairs,i=0,o=r.length;for(this.opcode("pushHash");i=0)return[r,u]}}};function KU(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Ts.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var i=r.parse(e,t),o=new r.Compiler().compile(i,t);return new r.JavaScriptCompiler().compile(o,t)}function VU(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Ts.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Is.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var i=void 0;function o(){var l=r.parse(e,t),f=new r.Compiler().compile(l,t),d=new r.JavaScriptCompiler().compile(f,t,void 0,!0);return r.template(d)}function u(l,f){return i||(i=o()),i.call(this,l,f)}return u._setup=function(l){return i||(i=o()),i._setup(l)},u._child=function(l,f,d,p){return i||(i=o()),i._child(l,f,d,p)},u}function Ib(e,t){if(e===t)return!0;if(Is.isArray(e)&&Is.isArray(t)&&e.length===t.length){for(var r=0;r{var Mb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Gc.encode=function(e){if(0<=e&&e{var kb=qb(),jc=5,Fb=1<>1;return t?-r:r}Hc.encode=function(t){var r="",i,o=zU(t);do i=o&Bb,o>>>=jc,o>0&&(i|=Ub),r+=kb.encode(i);while(o>0);return r};Hc.decode=function(t,r,i){var o=t.length,u=0,l=0,f,d;do{if(r>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(d=kb.decode(t.charCodeAt(r++)),d===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));f=!!(d&Ub),d&=Bb,u=u+(d<{function XU(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}st.getArg=XU;var Gb=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,ZU=/^data:.+\,.+$/;function Ms(e){var t=e.match(Gb);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}st.urlParse=Ms;function wi(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}st.urlGenerate=wi;function $c(e){var t=e,r=Ms(e);if(r){if(!r.path)return e;t=r.path}for(var i=st.isAbsolute(t),o=t.split(/\/+/),u,l=0,f=o.length-1;f>=0;f--)u=o[f],u==="."?o.splice(f,1):u===".."?l++:l>0&&(u===""?(o.splice(f+1,l),l=0):(o.splice(f,2),l--));return t=o.join("/"),t===""&&(t=i?"/":"."),r?(r.path=t,wi(r)):t}st.normalize=$c;function jb(e,t){e===""&&(e="."),t===""&&(t=".");var r=Ms(t),i=Ms(e);if(i&&(e=i.path||"/"),r&&!r.scheme)return i&&(r.scheme=i.scheme),wi(r);if(r||t.match(ZU))return t;if(i&&!i.host&&!i.path)return i.host=t,wi(i);var o=t.charAt(0)==="/"?t:$c(e.replace(/\/+$/,"")+"/"+t);return i?(i.path=o,wi(i)):o}st.join=jb;st.isAbsolute=function(e){return e.charAt(0)==="/"||Gb.test(e)};function QU(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var i=e.lastIndexOf("/");if(i<0||(e=e.slice(0,i),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}st.relative=QU;var Hb=function(){var e=Object.create(null);return!("__proto__"in e)}();function Wb(e){return e}function eG(e){return $b(e)?"$"+e:e}st.toSetString=Hb?Wb:eG;function tG(e){return $b(e)?e.slice(1):e}st.fromSetString=Hb?Wb:tG;function $b(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function rG(e,t,r){var i=Si(e.source,t.source);return i!==0||(i=e.originalLine-t.originalLine,i!==0)||(i=e.originalColumn-t.originalColumn,i!==0||r)||(i=e.generatedColumn-t.generatedColumn,i!==0)||(i=e.generatedLine-t.generatedLine,i!==0)?i:Si(e.name,t.name)}st.compareByOriginalPositions=rG;function nG(e,t,r){var i=e.generatedLine-t.generatedLine;return i!==0||(i=e.generatedColumn-t.generatedColumn,i!==0||r)||(i=Si(e.source,t.source),i!==0)||(i=e.originalLine-t.originalLine,i!==0)||(i=e.originalColumn-t.originalColumn,i!==0)?i:Si(e.name,t.name)}st.compareByGeneratedPositionsDeflated=nG;function Si(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function iG(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Si(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Si(e.name,t.name)}st.compareByGeneratedPositionsInflated=iG;function sG(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}st.parseSourceMapInput=sG;function oG(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var i=Ms(r);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var o=i.path.lastIndexOf("/");o>=0&&(i.path=i.path.substring(0,o+1))}t=jb(wi(i),t)}return $c(t)}st.computeSourceURL=oG});var Vc=_(Yb=>{var Yc=Ei(),Kc=Object.prototype.hasOwnProperty,Nn=typeof Map!="undefined";function Rr(){this._array=[],this._set=Nn?new Map:Object.create(null)}Rr.fromArray=function(t,r){for(var i=new Rr,o=0,u=t.length;o=0)return r}else{var i=Yc.toSetString(t);if(Kc.call(this._set,i))return this._set[i]}throw new Error('"'+t+'" is not in the set.')};Rr.prototype.at=function(t){if(t>=0&&t{var Kb=Ei();function aG(e,t){var r=e.generatedLine,i=t.generatedLine,o=e.generatedColumn,u=t.generatedColumn;return i>r||i==r&&u>=o||Kb.compareByGeneratedPositionsInflated(e,t)<=0}function ja(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}ja.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};ja.prototype.add=function(t){aG(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};ja.prototype.toArray=function(){return this._sorted||(this._array.sort(Kb.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Vb.MappingList=ja});var zc=_(Jb=>{var qs=Wc(),He=Ei(),Ha=Vc().ArraySet,uG=zb().MappingList;function jt(e){e||(e={}),this._file=He.getArg(e,"file",null),this._sourceRoot=He.getArg(e,"sourceRoot",null),this._skipValidation=He.getArg(e,"skipValidation",!1),this._sources=new Ha,this._names=new Ha,this._mappings=new uG,this._sourcesContents=null}jt.prototype._version=3;jt.fromSourceMap=function(t){var r=t.sourceRoot,i=new jt({file:t.file,sourceRoot:r});return t.eachMapping(function(o){var u={generated:{line:o.generatedLine,column:o.generatedColumn}};o.source!=null&&(u.source=o.source,r!=null&&(u.source=He.relative(r,u.source)),u.original={line:o.originalLine,column:o.originalColumn},o.name!=null&&(u.name=o.name)),i.addMapping(u)}),t.sources.forEach(function(o){var u=o;r!==null&&(u=He.relative(r,o)),i._sources.has(u)||i._sources.add(u);var l=t.sourceContentFor(o);l!=null&&i.setSourceContent(o,l)}),i};jt.prototype.addMapping=function(t){var r=He.getArg(t,"generated"),i=He.getArg(t,"original",null),o=He.getArg(t,"source",null),u=He.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,i,o,u),o!=null&&(o=String(o),this._sources.has(o)||this._sources.add(o)),u!=null&&(u=String(u),this._names.has(u)||this._names.add(u)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:i!=null&&i.line,originalColumn:i!=null&&i.column,source:o,name:u})};jt.prototype.setSourceContent=function(t,r){var i=t;this._sourceRoot!=null&&(i=He.relative(this._sourceRoot,i)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[He.toSetString(i)]=r):this._sourcesContents&&(delete this._sourcesContents[He.toSetString(i)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};jt.prototype.applySourceMap=function(t,r,i){var o=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);o=t.file}var u=this._sourceRoot;u!=null&&(o=He.relative(u,o));var l=new Ha,f=new Ha;this._mappings.unsortedForEach(function(d){if(d.source===o&&d.originalLine!=null){var p=t.originalPositionFor({line:d.originalLine,column:d.originalColumn});p.source!=null&&(d.source=p.source,i!=null&&(d.source=He.join(i,d.source)),u!=null&&(d.source=He.relative(u,d.source)),d.originalLine=p.line,d.originalColumn=p.column,p.name!=null&&(d.name=p.name))}var g=d.source;g!=null&&!l.has(g)&&l.add(g);var h=d.name;h!=null&&!f.has(h)&&f.add(h)},this),this._sources=l,this._names=f,t.sources.forEach(function(d){var p=t.sourceContentFor(d);p!=null&&(i!=null&&(d=He.join(i,d)),u!=null&&(d=He.relative(u,d)),this.setSourceContent(d,p))},this)};jt.prototype._validateMapping=function(t,r,i,o){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!i&&!o)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&i)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:i,original:r,name:o}))}};jt.prototype._serializeMappings=function(){for(var t=0,r=1,i=0,o=0,u=0,l=0,f="",d,p,g,h,b=this._mappings.toArray(),w=0,S=b.length;w0){if(!He.compareByGeneratedPositionsInflated(p,b[w-1]))continue;d+=","}d+=qs.encode(p.generatedColumn-t),t=p.generatedColumn,p.source!=null&&(h=this._sources.indexOf(p.source),d+=qs.encode(h-l),l=h,d+=qs.encode(p.originalLine-1-o),o=p.originalLine-1,d+=qs.encode(p.originalColumn-i),i=p.originalColumn,p.name!=null&&(g=this._names.indexOf(p.name),d+=qs.encode(g-u),u=g)),f+=d}return f};jt.prototype._generateSourcesContent=function(t,r){return t.map(function(i){if(!this._sourcesContents)return null;r!=null&&(i=He.relative(r,i));var o=He.toSetString(i);return Object.prototype.hasOwnProperty.call(this._sourcesContents,o)?this._sourcesContents[o]:null},this)};jt.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};jt.prototype.toString=function(){return JSON.stringify(this.toJSON())};Jb.SourceMapGenerator=jt});var Xb=_(Dn=>{Dn.GREATEST_LOWER_BOUND=1;Dn.LEAST_UPPER_BOUND=2;function Jc(e,t,r,i,o,u){var l=Math.floor((t-e)/2)+e,f=o(r,i[l],!0);return f===0?l:f>0?t-l>1?Jc(l,t,r,i,o,u):u==Dn.LEAST_UPPER_BOUND?t1?Jc(e,l,r,i,o,u):u==Dn.LEAST_UPPER_BOUND?l:e<0?-1:e}Dn.search=function(t,r,i,o){if(r.length===0)return-1;var u=Jc(-1,r.length,t,r,i,o||Dn.GREATEST_LOWER_BOUND);if(u<0)return-1;for(;u-1>=0&&i(r[u],r[u-1],!0)===0;)--u;return u}});var Qb=_(Zb=>{function Xc(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function lG(e,t){return Math.round(e+Math.random()*(t-e))}function Zc(e,t,r,i){if(r{var Z=Ei(),Qc=Xb(),Li=Vc().ArraySet,fG=Wc(),ks=Qb().quickSort;function Te(e,t){var r=e;return typeof e=="string"&&(r=Z.parseSourceMapInput(e)),r.sections!=null?new Zt(r,t):new Qe(r,t)}Te.fromSourceMap=function(e,t){return Qe.fromSourceMap(e,t)};Te.prototype._version=3;Te.prototype.__generatedMappings=null;Object.defineProperty(Te.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Te.prototype.__originalMappings=null;Object.defineProperty(Te.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Te.prototype._charIsMappingSeparator=function(t,r){var i=t.charAt(r);return i===";"||i===","};Te.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};Te.GENERATED_ORDER=1;Te.ORIGINAL_ORDER=2;Te.GREATEST_LOWER_BOUND=1;Te.LEAST_UPPER_BOUND=2;Te.prototype.eachMapping=function(t,r,i){var o=r||null,u=i||Te.GENERATED_ORDER,l;switch(u){case Te.GENERATED_ORDER:l=this._generatedMappings;break;case Te.ORIGINAL_ORDER:l=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var f=this.sourceRoot;l.map(function(d){var p=d.source===null?null:this._sources.at(d.source);return p=Z.computeSourceURL(f,p,this._sourceMapURL),{source:p,generatedLine:d.generatedLine,generatedColumn:d.generatedColumn,originalLine:d.originalLine,originalColumn:d.originalColumn,name:d.name===null?null:this._names.at(d.name)}},this).forEach(t,o)};Te.prototype.allGeneratedPositionsFor=function(t){var r=Z.getArg(t,"line"),i={source:Z.getArg(t,"source"),originalLine:r,originalColumn:Z.getArg(t,"column",0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var o=[],u=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",Z.compareByOriginalPositions,Qc.LEAST_UPPER_BOUND);if(u>=0){var l=this._originalMappings[u];if(t.column===void 0)for(var f=l.originalLine;l&&l.originalLine===f;)o.push({line:Z.getArg(l,"generatedLine",null),column:Z.getArg(l,"generatedColumn",null),lastColumn:Z.getArg(l,"lastGeneratedColumn",null)}),l=this._originalMappings[++u];else for(var d=l.originalColumn;l&&l.originalLine===r&&l.originalColumn==d;)o.push({line:Z.getArg(l,"generatedLine",null),column:Z.getArg(l,"generatedColumn",null),lastColumn:Z.getArg(l,"lastGeneratedColumn",null)}),l=this._originalMappings[++u]}return o};Wa.SourceMapConsumer=Te;function Qe(e,t){var r=e;typeof e=="string"&&(r=Z.parseSourceMapInput(e));var i=Z.getArg(r,"version"),o=Z.getArg(r,"sources"),u=Z.getArg(r,"names",[]),l=Z.getArg(r,"sourceRoot",null),f=Z.getArg(r,"sourcesContent",null),d=Z.getArg(r,"mappings"),p=Z.getArg(r,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);l&&(l=Z.normalize(l)),o=o.map(String).map(Z.normalize).map(function(g){return l&&Z.isAbsolute(l)&&Z.isAbsolute(g)?Z.relative(l,g):g}),this._names=Li.fromArray(u.map(String),!0),this._sources=Li.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(g){return Z.computeSourceURL(l,g,t)}),this.sourceRoot=l,this.sourcesContent=f,this._mappings=d,this._sourceMapURL=t,this.file=p}Qe.prototype=Object.create(Te.prototype);Qe.prototype.consumer=Te;Qe.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=Z.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r1&&(L.source=f+O[1],f+=O[1],L.originalLine=u+O[2],u=L.originalLine,L.originalLine+=1,L.originalColumn=l+O[3],l=L.originalColumn,O.length>4&&(L.name=d+O[4],d+=O[4])),S.push(L),typeof L.originalLine=="number"&&w.push(L)}ks(S,Z.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,ks(w,Z.compareByOriginalPositions),this.__originalMappings=w};Qe.prototype._findMapping=function(t,r,i,o,u,l){if(t[i]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[i]);if(t[o]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[o]);return Qc.search(t,r,u,l)};Qe.prototype.computeColumnSpans=function(){for(var t=0;t=0){var o=this._generatedMappings[i];if(o.generatedLine===r.generatedLine){var u=Z.getArg(o,"source",null);u!==null&&(u=this._sources.at(u),u=Z.computeSourceURL(this.sourceRoot,u,this._sourceMapURL));var l=Z.getArg(o,"name",null);return l!==null&&(l=this._names.at(l)),{source:u,line:Z.getArg(o,"originalLine",null),column:Z.getArg(o,"originalColumn",null),name:l}}}return{source:null,line:null,column:null,name:null}};Qe.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};Qe.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var i=this._findSourceIndex(t);if(i>=0)return this.sourcesContent[i];var o=t;this.sourceRoot!=null&&(o=Z.relative(this.sourceRoot,o));var u;if(this.sourceRoot!=null&&(u=Z.urlParse(this.sourceRoot))){var l=o.replace(/^file:\/\//,"");if(u.scheme=="file"&&this._sources.has(l))return this.sourcesContent[this._sources.indexOf(l)];if((!u.path||u.path=="/")&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(r)return null;throw new Error('"'+o+'" is not in the SourceMap.')};Qe.prototype.generatedPositionFor=function(t){var r=Z.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var i={source:r,originalLine:Z.getArg(t,"line"),originalColumn:Z.getArg(t,"column")},o=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",Z.compareByOriginalPositions,Z.getArg(t,"bias",Te.GREATEST_LOWER_BOUND));if(o>=0){var u=this._originalMappings[o];if(u.source===i.source)return{line:Z.getArg(u,"generatedLine",null),column:Z.getArg(u,"generatedColumn",null),lastColumn:Z.getArg(u,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Wa.BasicSourceMapConsumer=Qe;function Zt(e,t){var r=e;typeof e=="string"&&(r=Z.parseSourceMapInput(e));var i=Z.getArg(r,"version"),o=Z.getArg(r,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new Li,this._names=new Li;var u={line:-1,column:0};this._sections=o.map(function(l){if(l.url)throw new Error("Support for url field in sections not implemented.");var f=Z.getArg(l,"offset"),d=Z.getArg(f,"line"),p=Z.getArg(f,"column");if(d{var cG=zc().SourceMapGenerator,$a=Ei(),hG=/(\r?\n)/,pG=10,Ai="$$$isSourceNode$$$";function At(e,t,r,i,o){this.children=[],this.sourceContents={},this.line=e==null?null:e,this.column=t==null?null:t,this.source=r==null?null:r,this.name=o==null?null:o,this[Ai]=!0,i!=null&&this.add(i)}At.fromStringWithSourceMap=function(t,r,i){var o=new At,u=t.split(hG),l=0,f=function(){var b=S(),w=S()||"";return b+w;function S(){return l=0;r--)this.prepend(t[r]);else if(t[Ai]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};At.prototype.walk=function(t){for(var r,i=0,o=this.children.length;i0){for(r=[],i=0;i{Ya.SourceMapGenerator=zc().SourceMapGenerator;Ya.SourceMapConsumer=tw().SourceMapConsumer;Ya.SourceNode=nw().SourceNode});var uw=_((Ka,aw)=>{"use strict";Ka.__esModule=!0;var eh=ht(),Mn=void 0;try{(typeof define!="function"||!define.amd)&&(sw=iw(),Mn=sw.SourceNode)}catch(e){}var sw;Mn||(Mn=function(e,t,r,i){this.src="",i&&this.add(i)},Mn.prototype={add:function(t){eh.isArray(t)&&(t=t.join("")),this.src+=t},prepend:function(t){eh.isArray(t)&&(t=t.join("")),this.src=t+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function th(e,t,r){if(eh.isArray(e)){for(var i=[],o=0,u=e.length;o{"use strict";Va.__esModule=!0;function lw(e){return e&&e.__esModule?e:{default:e}}var fw=Oa(),dG=Ut(),rh=lw(dG),gG=ht(),mG=uw(),cw=lw(mG);function xi(e){this.value=e}function Pi(){}Pi.prototype={nameLookup:function(t,r){return this.internalNameLookup(t,r)},depthedLookup:function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},compilerInfo:function(){var t=fw.COMPILER_REVISION,r=fw.REVISION_CHANGES[t];return[t,r]},appendToBuffer:function(t,r,i){return gG.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:i?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(t,r,i,o){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!o,this.name=this.environment.name,this.isChild=!!i,this.context=i||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var u=t.opcodes,l=void 0,f=void 0,d=void 0,p=void 0;for(d=0,p=u.length;d0&&(i+=", "+o.join(", "));var u=0;Object.keys(this.aliases).forEach(function(d){var p=r.aliases[d];p.children&&p.referenceCount>1&&(i+=", alias"+ ++u+"="+d,p.children[0]="alias"+u)}),this.lookupPropertyFunctionIsUsed&&(i+=", "+this.lookupPropertyFunctionVarDeclaration());var l=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&l.push("blockParams"),this.useDepths&&l.push("depths");var f=this.mergeSource(i);return t?(l.push(f),Function.apply(this,l)):this.source.wrap(["function(",l.join(","),`) { + `,f,"}"])},mergeSource:function(t){var r=this.environment.isSimple,i=!this.forceBuffer,o=void 0,u=void 0,l=void 0,f=void 0;return this.source.each(function(d){d.appendToBuffer?(l?d.prepend(" + "):l=d,f=d):(l&&(u?l.prepend("buffer += "):o=!0,f.add(";"),l=f=void 0),u=!0,r||(i=!1))}),i?l?(l.prepend("return "),f.add(";")):u||this.source.push('return "";'):(t+=", buffer = "+(o?"":this.initializeBuffer()),l?(l.prepend("return buffer + "),f.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(o?"":`; +`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return` + lookupProperty = container.lookupProperty || function(parent, propertyName) { + if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { + return parent[propertyName]; + } + return undefined + } + `.trim()},blockValue:function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(t,0,i);var o=this.popStack();i.splice(1,0,o),this.push(this.source.functionCall(r,"call",i))},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var i=this.topStack();r.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(t,"call",r),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,r,i,o){var u=0;!o&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[u++])):this.pushContext(),this.resolvePath("context",t,u,r,i)},lookupBlockParam:function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(t,r,i){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,i)},resolvePath:function(t,r,i,o,u){var l=this;if(this.options.strict||this.options.assumeObjects){this.push(vG(this.options.strict&&u,this,r,t));return}for(var f=r.length;ithis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,i=t.length;r{"use strict";za.__esModule=!0;function Fs(e){return e&&e.__esModule?e:{default:e}}var yG=vb(),_G=Fs(yG),bG=Nc(),wG=Fs(bG),nh=Rb(),ih=Db(),SG=pw(),EG=Fs(SG),LG=Ba(),AG=Fs(LG),xG=Oc(),PG=Fs(xG),CG=_G.default.create;function dw(){var e=CG();return e.compile=function(t,r){return ih.compile(t,r,e)},e.precompile=function(t,r){return ih.precompile(t,r,e)},e.AST=wG.default,e.Compiler=ih.Compiler,e.JavaScriptCompiler=EG.default,e.Parser=nh.parser,e.parse=nh.parse,e.parseWithoutProcessing=nh.parseWithoutProcessing,e}var Ci=dw();Ci.create=dw;PG.default(Ci);Ci.Visitor=AG.default;Ci.default=Ci;za.default=Ci;gw.exports=za.default});var vw=_(Ja=>{"use strict";Ja.__esModule=!0;Ja.print=IG;Ja.PrintVisitor=Ue;function OG(e){return e&&e.__esModule?e:{default:e}}var RG=Ba(),TG=OG(RG);function IG(e){return new Ue().accept(e)}function Ue(){this.padding=0}Ue.prototype=new TG.default;Ue.prototype.pad=function(e){for(var t="",r=0,i=this.padding;r "+t+" }}")};Ue.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};Ue.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Ue.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Ue.prototype.SubExpression=function(e){for(var t=e.params,r=[],i=void 0,o=0,u=t.length;o{sh=Ew.exports=NG;sh.getSerialize=Sw;function NG(e,t,r,i){return JSON.stringify(e,Sw(t,i),r)}function Sw(e,t){var r=[],i=[];return t==null&&(t=function(o,u){return r[0]===u?"[Circular ~]":"[Circular ~."+i.slice(0,r.indexOf(u)).join(".")+"]"}),function(o,u){if(r.length>0){var l=r.indexOf(this);~l?r.splice(l+1):r.push(this),~l?i.splice(l,Infinity,o):i.push(o),~r.indexOf(u)&&(u=t.call(this,o,u))}else r.push(u);return e==null?u:e.call(this,o,u)}}});var Tw=_((oz,Rw)=>{"use strict";var DG=pc(),Bs=ww(),Aw=G("semver"),Je=Pn(),MG=Lw();function xw(e){let t=e.mainTemplate,r=e.headerPartial,i=e.commitPartial,o=e.footerPartial,u=e.partials;return Je.isString(r)&&Bs.registerPartial("header",r),Je.isString(i)&&Bs.registerPartial("commit",i),Je.isString(o)&&Bs.registerPartial("footer",o),Je.forEach(u,function(l,f){Je.isString(l)&&Bs.registerPartial(f,l)}),Bs.compile(t,{noEscape:!0})}function qG(e){return e&&typeof e!="function"?(t,r)=>{let i="",o="";if(Array.isArray(e))for(let u of e)i+=t[u]||"",o+=r[u]||"";else i+=t[e],o+=r[e];return i.localeCompare(o)}:e}function Pw(e,t,r,i){let o=[],u=Je.groupBy(t,function(l){return l[e]||""});return Je.forEach(u,function(l,f){f===""&&(f=!1),i&&l.sort(i),o.push({title:f,commits:l})}),r&&o.sort(r),o}function Cw(e,t,r){let i=[];return Je.forEach(e,function(o){let u=o.title,l=!1;Je.forEach(i,function(f){if(f.title===u)return l=!0,f.notes.push(o),!1}),l||i.push({title:u,notes:[o]})}),t&&i.sort(t),r&&Je.forEach(i,function(o){o.notes.sort(r)}),i}function kG(e,t,r){let i;try{e=JSON.parse(e)}catch(o){}return i=Je.cloneDeep(e),typeof t=="function"?(i=t(i,r),i&&(i.raw=e),i):(Je.forEach(t,function(o,u){let l=Je.get(i,u);typeof o=="function"?l=o(l,u):l=o,Je.set(i,u,l)}),i.raw=e,i)}function Ow(e,t,r){let i={};return i.commitGroups=Pw(r.groupBy,e,r.commitGroupsSort,r.commitsSort),i.noteGroups=Cw(t,r.noteGroupsSort,r.notesSort),i}function FG(e,t,r,i){let o=[],u,l=xw(e);return e.ignoreReverted?u=DG(t):u=Je.clone(t),Je.forEach(u,function(f){Je.map(f.notes,function(d){return d.commit=f,d}),o=o.concat(f.notes)}),r=Je.merge({},r,i,Ow(u,o,e)),i&&i.committerDate&&(r.date=i.committerDate),r.version&&Aw.valid(r.version)&&r.isPatch==null&&(r.isPatch=Aw.patch(r.version)!==0),r=e.finalizeContext(r,e,u,i,t),e.debug(`Your final context is: +`+MG(r,null,2)),l(r)}Rw.exports={compileTemplates:xw,functionify:qG,getCommitGroups:Pw,getNoteGroups:Cw,processCommit:kG,getExtraContext:Ow,generate:FG}});var qw=_((az,Mw)=>{"use strict";var Iw=ec(),Za=G("path").join,BG=G("fs").readFileSync,UG=G("semver").valid,GG=bs(),Ht=Tw(),Tr=Pn(),jG={mainTemplate:Za(__dirname,"templates/template.hbs"),headerPartial:Za(__dirname,"templates/header.hbs"),commitPartial:Za(__dirname,"templates/commit.hbs"),footerPartial:Za(__dirname,"templates/footer.hbs")};function Nw(e,t){e=Tr.extend({commit:"commits",issue:"issues",date:Iw(new Date,"yyyy-mm-dd",!0)},e),!Tr.isBoolean(e.linkReferences)&&(e.repository||e.repoUrl)&&e.commit&&e.issue&&(e.linkReferences=!0),t=Tr.assign({groupBy:"type",commitsSort:"header",noteGroupsSort:"title",notesSort:"text",generateOn:function(i){return UG(i.version)},finalizeContext:function(i){return i},debug:function(){},reverse:!1,includeDetails:!1,ignoreReverted:!0,doFlush:!0},t);for(let[i,o]of Object.entries(jG))t[i]==null&&(t[i]=BG(o));(typeof t.transform!="function"&&Tr.isObject(t.transform)||Tr.isUndefined(t.transform))&&(t.transform=Tr.assign({hash:function(i){if(Tr.isString(i))return i.substring(0,7)},header:function(i){return i.substring(0,100)},committerDate:function(i){if(!!i)return Iw(i,"yyyy-mm-dd",!0)}},t.transform));let r=t.generateOn;return Tr.isString(r)?r=function(i){return!Tr.isUndefined(i[t.generateOn])}:typeof r!="function"&&(r=function(){return!1}),t.commitGroupsSort=Ht.functionify(t.commitGroupsSort),t.commitsSort=Ht.functionify(t.commitsSort),t.noteGroupsSort=Ht.functionify(t.noteGroupsSort),t.notesSort=Ht.functionify(t.notesSort),{context:e,options:t,generateOn:r}}function Dw(e,t){let r;({context:e,options:t,generateOn:r}=Nw(e,t));let i=[],o=!0,u,l=!0;return GG.obj(function(f,d,p){try{let g,h=Ht.processCommit(f,t.transform,e),b=h||f;t.reverse?(h&&i.push(h),r(b,i,e,t)&&(o=!1,g=Ht.generate(t,i,e,b),t.includeDetails?this.push({log:g,keyCommit:b}):this.push(g),i=[])):(r(b,i,e,t)&&(o=!1,g=Ht.generate(t,i,e,u),(!l||t.doFlush)&&(t.includeDetails?this.push({log:g,keyCommit:u}):this.push(g)),l=!1,i=[],u=b),h&&i.push(h)),p()}catch(g){p(g)}},function(f){if(!t.doFlush&&(t.reverse||o)){f(null);return}try{let d=Ht.generate(t,i,e,u);t.includeDetails?this.push({log:d,keyCommit:u}):this.push(d),f()}catch(d){f(d)}})}Dw.parseArray=(e,t,r)=>{let i;e=[...e],{context:t,options:r,generateOn:i}=Nw(t,r);let o=[],u;r.reverse&&e.reverse();let l=[];for(let f of e){let d=Ht.processCommit(f,r.transform,t),p=d||f;i(p,o,t,r)&&(l.push(Ht.generate(r,o,t,u)),u=p,o=[]),d&&o.push(d)}return r.reverse?(l.reverse(),Ht.generate(r,o,t,u)+l.join("")):l.join("")+Ht.generate(r,o,t,u)};Mw.exports=Dw});var oh=_((uz,Fw)=>{"use strict";var xe=(...e)=>e.every(t=>t)?e.join(""):"",et=e=>e?encodeURIComponent(e):"",Us={sshtemplate:({domain:e,user:t,project:r,committish:i})=>`git@${e}:${t}/${r}.git${xe("#",i)}`,sshurltemplate:({domain:e,user:t,project:r,committish:i})=>`git+ssh://git@${e}/${t}/${r}.git${xe("#",i)}`,browsetemplate:({domain:e,user:t,project:r,committish:i,treepath:o})=>`https://${e}/${t}/${r}${xe("/",o,"/",et(i))}`,browsefiletemplate:({domain:e,user:t,project:r,committish:i,treepath:o,path:u,fragment:l,hashformat:f})=>`https://${e}/${t}/${r}/${o}/${et(i||"master")}/${u}${xe("#",f(l||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:i,committish:o})=>`https://${e}/${t}/${r}${xe("/",i,"/",et(o))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:i,committish:o})=>`git+https://${xe(e,"@")}${t}/${r}/${i}.git${xe("#",o)}`,filetemplate:({domain:e,user:t,project:r,committish:i,path:o})=>`https://${e}/${t}/${r}/raw/${et(i)||"master"}/${o}`,shortcuttemplate:({type:e,user:t,project:r,committish:i})=>`${e}:${t}/${r}${xe("#",i)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${xe("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:kw},Wt={};Wt.github=Object.assign({},Us,{protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",filetemplate:({auth:e,user:t,project:r,committish:i,path:o})=>`https://${xe(e,"@")}raw.githubusercontent.com/${t}/${r}/${et(i)||"master"}/${o}`,gittemplate:({auth:e,domain:t,user:r,project:i,committish:o})=>`git://${xe(e,"@")}${t}/${r}/${i}.git${xe("#",o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:i})=>`https://codeload.${e}/${t}/${r}/tar.gz/${et(i)||"master"}`,extract:e=>{let[,t,r,i,o]=e.pathname.split("/",5);if(!(i&&i!=="tree")&&(i||(o=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:o}}});Wt.bitbucket=Object.assign({},Us,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",tarballtemplate:({domain:e,user:t,project:r,committish:i})=>`https://${e}/${t}/${r}/get/${et(i)||"master"}.tar.gz`,extract:e=>{let[,t,r,i]=e.pathname.split("/",4);if(!["get"].includes(i)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}});Wt.gitlab=Object.assign({},Us,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",httpstemplate:({auth:e,domain:t,user:r,project:i,committish:o})=>`git+https://${xe(e,"@")}${t}/${r}/${i}.git${xe("#",o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:i})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${et(i)||"master"}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),i=r.pop();i.endsWith(".git")&&(i=i.slice(0,-4));let o=r.join("/");if(!(!o||!i))return{user:o,project:i,committish:e.hash.slice(1)}}});Wt.gist=Object.assign({},Us,{protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${xe("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${xe("#",r)}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${xe("/",et(r))}`,browsefiletemplate:({domain:e,project:t,committish:r,path:i,hashformat:o})=>`https://${e}/${t}${xe("/",et(r))}${xe("#",o(i))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${xe("/",et(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${xe("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:i})=>`https://gist.githubusercontent.com/${e}/${t}/raw${xe("/",et(r))}/${i}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${xe("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${xe("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${xe("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${et(t)||"master"}`,extract:e=>{let[,t,r,i]=e.pathname.split("/",4);if(i!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+kw(e)}});Wt.sourcehut=Object.assign({},Us,{protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",browsefiletemplate:({domain:e,user:t,project:r,committish:i,treepath:o,path:u,fragment:l,hashformat:f})=>`https://${e}/${t}/${r}/${o}/${et(i||"main")}/${u}${xe("#",f(l||""))}`,filetemplate:({domain:e,user:t,project:r,committish:i,path:o})=>`https://${e}/${t}/${r}/blob/${et(i)||"main"}/${o}`,httpstemplate:({domain:e,user:t,project:r,committish:i})=>`https://${e}/${t}/${r}.git${xe("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:i})=>`https://${e}/${t}/${r}/archive/${et(i)||"main"}.tar.gz`,bugstemplate:({domain:e,user:t,project:r})=>`https://todo.sr.ht/${t}/${r}`,docstemplate:({domain:e,user:t,project:r,treepath:i,committish:o})=>`https://${e}/${t}/${r}${xe("/",i,"/",et(o))}#readme`,extract:e=>{let[,t,r,i]=e.pathname.split("/",4);if(!["archive"].includes(i)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}});var HG=Object.keys(Wt);Wt.byShortcut={};Wt.byDomain={};for(let e of HG)Wt.byShortcut[`${e}:`]=e,Wt.byDomain[Wt[e].domain]=e;function kw(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}Fw.exports=Wt});var Gw=_((lz,Uw)=>{"use strict";var WG=oh(),Bw=class{constructor(t,r,i,o,u,l,f={}){Object.assign(this,WG[t]),this.type=t,this.user=r,this.auth=i,this.project=o,this.committish=u,this.default=l,this.opts=f}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this._fill(this.sshtemplate,t)}_fill(t,r){if(typeof t=="function"){let i=it(it(it({},this),this.opts),r);i.path||(i.path=""),i.path.startsWith("/")&&(i.path=i.path.slice(1)),i.noCommittish&&(i.committish=null);let o=t(i);return i.noGitPlus&&o.startsWith("git+")?o.slice(4):o}return null}sshurl(t){return this._fill(this.sshurltemplate,t)}browse(t,r,i){return typeof t!="string"?this._fill(this.browsetemplate,t):(typeof r!="string"&&(i=r,r=null),this._fill(this.browsefiletemplate,Vr(it({},i),{fragment:r,path:t})))}docs(t){return this._fill(this.docstemplate,t)}bugs(t){return this._fill(this.bugstemplate,t)}https(t){return this._fill(this.httpstemplate,t)}git(t){return this._fill(this.gittemplate,t)}shortcut(t){return this._fill(this.shortcuttemplate,t)}path(t){return this._fill(this.pathtemplate,t)}tarball(t){return this._fill(this.tarballtemplate,Vr(it({},t),{noCommittish:!1}))}file(t,r){return this._fill(this.filetemplate,Vr(it({},r),{path:t}))}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};Uw.exports=Bw});var Hw=_((fz,jw)=>{"use strict";jw.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var $w=_((cz,Ww)=>{"use strict";Ww.exports=we;we.Node=qn;we.create=we;function we(e){var t=this;if(t instanceof we||(t=new we),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(o){t.push(o)});else if(arguments.length>0)for(var r=0,i=arguments.length;r1)r=t;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;i!==null;o++)r=e(r,i.value,o),i=i.next;return r};we.prototype.reduceReverse=function(e,t){var r,i=this.tail;if(arguments.length>1)r=t;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;i!==null;o--)r=e(r,i.value,o),i=i.prev;return r};we.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};we.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};we.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new we;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;o!==null&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;o!==null&&i>t;i--)o=o.prev;for(;o!==null&&i>e;i--,o=o.prev)r.push(o.value);return r};we.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;o!==null&&i{"use strict";var VG=$w(),kn=Symbol("max"),Ir=Symbol("length"),Oi=Symbol("lengthCalculator"),Gs=Symbol("allowStale"),Fn=Symbol("maxAge"),Nr=Symbol("dispose"),Yw=Symbol("noDisposeOnSet"),Xe=Symbol("lruList"),Qt=Symbol("cache"),Kw=Symbol("updateAgeOnGet"),ah=()=>1,Vw=class{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");let r=this[kn]=t.max||Infinity,i=t.length||ah;if(this[Oi]=typeof i!="function"?ah:i,this[Gs]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Fn]=t.maxAge||0,this[Nr]=t.dispose,this[Yw]=t.noDisposeOnSet||!1,this[Kw]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[kn]=t||Infinity,js(this)}get max(){return this[kn]}set allowStale(t){this[Gs]=!!t}get allowStale(){return this[Gs]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Fn]=t,js(this)}get maxAge(){return this[Fn]}set lengthCalculator(t){typeof t!="function"&&(t=ah),t!==this[Oi]&&(this[Oi]=t,this[Ir]=0,this[Xe].forEach(r=>{r.length=this[Oi](r.value,r.key),this[Ir]+=r.length})),js(this)}get lengthCalculator(){return this[Oi]}get length(){return this[Ir]}get itemCount(){return this[Xe].length}rforEach(t,r){r=r||this;for(let i=this[Xe].tail;i!==null;){let o=i.prev;Jw(this,t,i,r),i=o}}forEach(t,r){r=r||this;for(let i=this[Xe].head;i!==null;){let o=i.next;Jw(this,t,i,r),i=o}}keys(){return this[Xe].toArray().map(t=>t.key)}values(){return this[Xe].toArray().map(t=>t.value)}reset(){this[Nr]&&this[Xe]&&this[Xe].length&&this[Xe].forEach(t=>this[Nr](t.key,t.value)),this[Qt]=new Map,this[Xe]=new VG,this[Ir]=0}dump(){return this[Xe].map(t=>Qa(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Xe]}set(t,r,i){if(i=i||this[Fn],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let o=i?Date.now():0,u=this[Oi](r,t);if(this[Qt].has(t)){if(u>this[kn])return Ri(this,this[Qt].get(t)),!1;let d=this[Qt].get(t).value;return this[Nr]&&(this[Yw]||this[Nr](t,d.value)),d.now=o,d.maxAge=i,d.value=r,this[Ir]+=u-d.length,d.length=u,this.get(t),js(this),!0}let l=new zw(t,r,u,o,i);return l.length>this[kn]?(this[Nr]&&this[Nr](t,r),!1):(this[Ir]+=l.length,this[Xe].unshift(l),this[Qt].set(t,this[Xe].head),js(this),!0)}has(t){if(!this[Qt].has(t))return!1;let r=this[Qt].get(t).value;return!Qa(this,r)}get(t){return uh(this,t,!0)}peek(t){return uh(this,t,!1)}pop(){let t=this[Xe].tail;return t?(Ri(this,t),t.value):null}del(t){Ri(this,this[Qt].get(t))}load(t){this.reset();let r=Date.now();for(let i=t.length-1;i>=0;i--){let o=t[i],u=o.e||0;if(u===0)this.set(o.k,o.v);else{let l=u-r;l>0&&this.set(o.k,o.v,l)}}}prune(){this[Qt].forEach((t,r)=>uh(this,r,!1))}},uh=(e,t,r)=>{let i=e[Qt].get(t);if(i){let o=i.value;if(Qa(e,o)){if(Ri(e,i),!e[Gs])return}else r&&(e[Kw]&&(i.value.now=Date.now()),e[Xe].unshiftNode(i));return o.value}},Qa=(e,t)=>{if(!t||!t.maxAge&&!e[Fn])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[Fn]&&r>e[Fn]},js=e=>{if(e[Ir]>e[kn])for(let t=e[Xe].tail;e[Ir]>e[kn]&&t!==null;){let r=t.prev;Ri(e,t),t=r}},Ri=(e,t)=>{if(t){let r=t.value;e[Nr]&&e[Nr](r.key,r.value),e[Ir]-=r.length,e[Qt].delete(r.key),e[Xe].removeNode(t)}},zw=class{constructor(t,r,i,o,u){this.key=t,this.value=r,this.length=i,this.now=o,this.maxAge=u||0}},Jw=(e,t,r,i)=>{let o=r.value;Qa(e,o)&&(Ri(e,r),e[Gs]||(o=void 0)),o&&t.call(i,o.value,o.key,e)};Xw.exports=Vw});var ch=_((pz,fh)=>{"use strict";var Qw=G("url"),eu=oh(),zG=fh.exports=Gw(),JG=Zw(),lh=new JG({max:1e3}),XG={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function ZG(e){return XG[e]||e.slice(0,-1)}var QG={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0},e9=Object.keys(eu.byShortcut).concat(["http:","https:","git:","git+ssh:","git+https:","ssh:"]);fh.exports.fromUrl=function(e,t){if(typeof e!="string")return;let r=e+JSON.stringify(t||{});return lh.has(r)||lh.set(r,t9(e,t)),lh.get(r)};function t9(e,t){if(!e)return;let r=n9(e)?"github:"+e:r9(e),i=s9(r);if(!i)return i;let o=eu.byShortcut[i.protocol],u=eu.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname],l=o||u;if(!l)return;let f=eu[o||u],d=null;QG[i.protocol]&&(i.username||i.password)&&(d=`${i.username}${i.password?":"+i.password:""}`);let p=null,g=null,h=null,b=null;try{if(o){let w=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname,S=w.indexOf("@");S>-1&&(w=w.slice(S+1));let L=w.lastIndexOf("/");L>-1?(g=decodeURIComponent(w.slice(0,L)),g||(g=null),h=decodeURIComponent(w.slice(L+1))):h=decodeURIComponent(w),h.endsWith(".git")&&(h=h.slice(0,-4)),i.hash&&(p=decodeURIComponent(i.hash.slice(1))),b="shortcut"}else{if(!f.protocols.includes(i.protocol))return;let w=f.extract(i);if(!w)return;g=w.user&&decodeURIComponent(w.user),h=decodeURIComponent(w.project),p=decodeURIComponent(w.committish),b=ZG(i.protocol)}}catch(w){if(w instanceof URIError)return;throw w}return new zG(l,g,d,h,p,b,t)}var r9=e=>{let t=e.indexOf(":"),r=e.slice(0,t+1);if(e9.includes(r))return e;let i=e.indexOf("@");return i>-1?i>t?`git+ssh://${e}`:e:e.indexOf("//")===t+1?e:e.slice(0,t+1)+"//"+e.slice(t+1)},n9=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),i=e.indexOf("/",r+1),o=e.indexOf(":"),u=/\s/.exec(e),l=e.indexOf("@"),f=!u||t>-1&&u.index>t,d=l===-1||t>-1&&l>t,p=o===-1||t>-1&&o>t,g=i===-1||t>-1&&i>t,h=r>0,b=t>-1?e[t-1]!=="/":!e.endsWith("/"),w=!e.startsWith(".");return f&&h&&b&&w&&d&&p&&g},i9=e=>{let t=e.indexOf("@"),r=e.lastIndexOf("#"),i=e.indexOf(":"),o=e.lastIndexOf(":",r>-1?r:Infinity),u;return o>t&&(u=e.slice(0,o)+"/"+e.slice(o+1),i=u.indexOf(":"),o=u.lastIndexOf(":")),i===-1&&e.indexOf("//")===-1&&(u=`git+ssh://${u}`),u},s9=e=>{let t;try{t=new Qw.URL(e)}catch(i){}if(t)return t;let r=i9(e);try{t=new Qw.URL(r)}catch(i){}return t}});var tS=_((dz,eS)=>{"use strict";var{parse:o9}=G("url"),a9=new RegExp(/^\/?:?([/\w-.]+)\/([\w-.]+)\/?$/),u9=new RegExp(/^\/repos\/([\w-.]+)\/([\w-.]+)\/(?:tarball|zipball)(?:\/.+)?$/),l9=new RegExp(/^\/([\w-.]+)\/([\w-.]+)\/(?:legacy\.(?:zip|tar\.gz))(?:\/.+)?$/);eS.exports=e=>{let t=e.replace(/^git@/,"https://git@").replace(/\.git$/,""),r=o9(t),i=o=>({browse:c9(r,o),domain:r.host,project:o[2]||null,type:f9(r),user:o[1]||null});if(r.host){if(r.host.includes("api.github.com")){let o=u9.exec(r.pathname)||[];return i(o)}if(r.host.includes("codeload.github.com")){let o=l9.exec(r.pathname)||[];return i(o)}}return i(a9.exec(r.pathname)||[])};function f9(e){return typeof e.host!="string"?null:e.host.indexOf("github")!==-1?"github":e.host.indexOf("gitlab")!==-1?"gitlab":null}function c9(e,t){let i=`${e.protocol==="http:"?"http:":"https:"}//${e.host}/${t[1]}/${t[2]}`;return()=>i}});var nS=_((gz,rS)=>{"use strict";var h9=ch(),p9=tS();rS.exports=e=>{if(!e||!e.repository||typeof e.repository!="string"&&!e.repository.url)throw new Error('No valid "repository" data found in package metadata. Please see https://docs.npmjs.com/files/package.json#repository for proper syntax.');let t=typeof e.repository=="string"?e.repository:e.repository.url;return h9.fromUrl(t)||p9(t)}});var tu=_((mz,sS)=>{"use strict";var d9=G("process"),g9=G("child_process").exec,iS=G("semver").valid,m9=/tag:\s*(.+?)[,)]/gi,v9="git log --decorate --no-color",y9=/.+-\w+\.\d+$/;function _9(e,t){return t&&!new RegExp("^"+t+"@").test(e)?!1:/^.+@[0-9]+\.[0-9]+\.[0-9]+(-.+)?$/.test(e)}sS.exports=function(t,r){typeof t=="function"&&(r=t,t={});let i=Object.assign({maxBuffer:Infinity,cwd:d9.cwd()},t);if(i.package&&!i.lernaTags){r(new Error("opts.package should only be used when running in lerna mode"));return}g9(v9,i,function(o,u){if(o){r(o);return}let l=[],f;i.tagPrefix&&(f=new RegExp("^"+i.tagPrefix+"(.*)")),u.split(` +`).forEach(function(d){let p;for(;p=m9.exec(d);){let g=p[1];if(!(i.skipUnstable&&y9.test(g)))if(i.lernaTags)_9(g,i.package)&&l.push(g);else if(i.tagPrefix){let h=g.match(f);h&&iS(h[1])&&l.push(g)}else iS(g)&&l.push(g)}}),r(null,l)})}});var ru=_((vz,oS)=>{var b9="2.0.0",w9=256,S9=Number.MAX_SAFE_INTEGER||9007199254740991,E9=16;oS.exports={SEMVER_SPEC_VERSION:b9,MAX_LENGTH:w9,MAX_SAFE_INTEGER:S9,MAX_SAFE_COMPONENT_LENGTH:E9}});var hh=_((yz,aS)=>{var L9=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};aS.exports=L9});var dh=_((an,uS)=>{var{MAX_SAFE_COMPONENT_LENGTH:ph}=ru(),A9=hh();an=uS.exports={};var x9=an.re=[],Q=an.src=[],ee=an.t={},P9=0,de=(e,t,r)=>{let i=P9++;A9(e,i,t),ee[e]=i,Q[i]=t,x9[i]=new RegExp(t,r?"g":void 0)};de("NUMERICIDENTIFIER","0|[1-9]\\d*");de("NUMERICIDENTIFIERLOOSE","[0-9]+");de("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");de("MAINVERSION",`(${Q[ee.NUMERICIDENTIFIER]})\\.(${Q[ee.NUMERICIDENTIFIER]})\\.(${Q[ee.NUMERICIDENTIFIER]})`);de("MAINVERSIONLOOSE",`(${Q[ee.NUMERICIDENTIFIERLOOSE]})\\.(${Q[ee.NUMERICIDENTIFIERLOOSE]})\\.(${Q[ee.NUMERICIDENTIFIERLOOSE]})`);de("PRERELEASEIDENTIFIER",`(?:${Q[ee.NUMERICIDENTIFIER]}|${Q[ee.NONNUMERICIDENTIFIER]})`);de("PRERELEASEIDENTIFIERLOOSE",`(?:${Q[ee.NUMERICIDENTIFIERLOOSE]}|${Q[ee.NONNUMERICIDENTIFIER]})`);de("PRERELEASE",`(?:-(${Q[ee.PRERELEASEIDENTIFIER]}(?:\\.${Q[ee.PRERELEASEIDENTIFIER]})*))`);de("PRERELEASELOOSE",`(?:-?(${Q[ee.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Q[ee.PRERELEASEIDENTIFIERLOOSE]})*))`);de("BUILDIDENTIFIER","[0-9A-Za-z-]+");de("BUILD",`(?:\\+(${Q[ee.BUILDIDENTIFIER]}(?:\\.${Q[ee.BUILDIDENTIFIER]})*))`);de("FULLPLAIN",`v?${Q[ee.MAINVERSION]}${Q[ee.PRERELEASE]}?${Q[ee.BUILD]}?`);de("FULL",`^${Q[ee.FULLPLAIN]}$`);de("LOOSEPLAIN",`[v=\\s]*${Q[ee.MAINVERSIONLOOSE]}${Q[ee.PRERELEASELOOSE]}?${Q[ee.BUILD]}?`);de("LOOSE",`^${Q[ee.LOOSEPLAIN]}$`);de("GTLT","((?:<|>)?=?)");de("XRANGEIDENTIFIERLOOSE",`${Q[ee.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);de("XRANGEIDENTIFIER",`${Q[ee.NUMERICIDENTIFIER]}|x|X|\\*`);de("XRANGEPLAIN",`[v=\\s]*(${Q[ee.XRANGEIDENTIFIER]})(?:\\.(${Q[ee.XRANGEIDENTIFIER]})(?:\\.(${Q[ee.XRANGEIDENTIFIER]})(?:${Q[ee.PRERELEASE]})?${Q[ee.BUILD]}?)?)?`);de("XRANGEPLAINLOOSE",`[v=\\s]*(${Q[ee.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Q[ee.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Q[ee.XRANGEIDENTIFIERLOOSE]})(?:${Q[ee.PRERELEASELOOSE]})?${Q[ee.BUILD]}?)?)?`);de("XRANGE",`^${Q[ee.GTLT]}\\s*${Q[ee.XRANGEPLAIN]}$`);de("XRANGELOOSE",`^${Q[ee.GTLT]}\\s*${Q[ee.XRANGEPLAINLOOSE]}$`);de("COERCE",`(^|[^\\d])(\\d{1,${ph}})(?:\\.(\\d{1,${ph}}))?(?:\\.(\\d{1,${ph}}))?(?:$|[^\\d])`);de("COERCERTL",Q[ee.COERCE],!0);de("LONETILDE","(?:~>?)");de("TILDETRIM",`(\\s*)${Q[ee.LONETILDE]}\\s+`,!0);an.tildeTrimReplace="$1~";de("TILDE",`^${Q[ee.LONETILDE]}${Q[ee.XRANGEPLAIN]}$`);de("TILDELOOSE",`^${Q[ee.LONETILDE]}${Q[ee.XRANGEPLAINLOOSE]}$`);de("LONECARET","(?:\\^)");de("CARETTRIM",`(\\s*)${Q[ee.LONECARET]}\\s+`,!0);an.caretTrimReplace="$1^";de("CARET",`^${Q[ee.LONECARET]}${Q[ee.XRANGEPLAIN]}$`);de("CARETLOOSE",`^${Q[ee.LONECARET]}${Q[ee.XRANGEPLAINLOOSE]}$`);de("COMPARATORLOOSE",`^${Q[ee.GTLT]}\\s*(${Q[ee.LOOSEPLAIN]})$|^$`);de("COMPARATOR",`^${Q[ee.GTLT]}\\s*(${Q[ee.FULLPLAIN]})$|^$`);de("COMPARATORTRIM",`(\\s*)${Q[ee.GTLT]}\\s*(${Q[ee.LOOSEPLAIN]}|${Q[ee.XRANGEPLAIN]})`,!0);an.comparatorTrimReplace="$1$2$3";de("HYPHENRANGE",`^\\s*(${Q[ee.XRANGEPLAIN]})\\s+-\\s+(${Q[ee.XRANGEPLAIN]})\\s*$`);de("HYPHENRANGELOOSE",`^\\s*(${Q[ee.XRANGEPLAINLOOSE]})\\s+-\\s+(${Q[ee.XRANGEPLAINLOOSE]})\\s*$`);de("STAR","(<|>)?=?\\s*\\*");de("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");de("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var gh=_((_z,lS)=>{var C9=["includePrerelease","loose","rtl"],O9=e=>e?typeof e!="object"?{loose:!0}:C9.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};lS.exports=O9});var pS=_((bz,hS)=>{var fS=/^[0-9]+$/,cS=(e,t)=>{let r=fS.test(e),i=fS.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:ecS(t,e);hS.exports={compareIdentifiers:cS,rcompareIdentifiers:R9}});var yS=_((wz,vS)=>{var nu=hh(),{MAX_LENGTH:dS,MAX_SAFE_INTEGER:iu}=ru(),{re:gS,t:mS}=dh(),T9=gh(),{compareIdentifiers:Ti}=pS(),$t=class{constructor(t,r){if(r=T9(r),t instanceof $t){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>dS)throw new TypeError(`version is longer than ${dS} characters`);nu("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let i=t.trim().match(r.loose?gS[mS.LOOSE]:gS[mS.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>iu||this.major<0)throw new TypeError("Invalid major version");if(this.minor>iu||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>iu||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let u=+o;if(u>=0&&u=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-1&&this.prerelease.push(0)}r&&(Ti(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};vS.exports=$t});var mh=_((Sz,SS)=>{var{MAX_LENGTH:I9}=ru(),{re:_S,t:bS}=dh(),wS=yS(),N9=gh(),D9=(e,t)=>{if(t=N9(t),e instanceof wS)return e;if(typeof e!="string"||e.length>I9||!(t.loose?_S[bS.LOOSE]:_S[bS.FULL]).test(e))return null;try{return new wS(e,t)}catch(i){return null}};SS.exports=D9});var LS=_((Ez,ES)=>{var M9=mh(),q9=(e,t)=>{let r=M9(e,t);return r?r.version:null};ES.exports=q9});var xS=_((Lz,AS)=>{var k9=mh(),F9=(e,t)=>{let r=k9(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};AS.exports=F9});var vh=_((Az,B9)=>{B9.exports=["0BSD","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Abstyles","Adobe-2006","Adobe-Glyph","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-Protection","BSD-Source-Code","BSL-1.0","BUSL-1.1","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","BlueOak-1.0.0","Borceux","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-DE","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","ClArtistic","Community-Spec-1.0","Condor-1.1","Crossword","CrystalStacker","Cube","D-FSL-1.0","DOC","DRL-1.0","DSDP","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Entessa","ErlPL-1.1","Eurosym","FDK-AAC","FSFAP","FSFUL","FSFULLR","FTL","Fair","Frameworx-1.0","FreeBSD-DOC","FreeImage","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","HPND","HPND-sell-variant","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IJG","IPA","IPL-1.0","ISC","ImageMagick","Imlib2","Info-ZIP","Intel","Intel-ACPI","Interbase-1.0","JPNIC","JSON","JasPer-2.0","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","Latex2e","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-copyleft","MIT","MIT-0","MIT-CMU","MIT-Modern-Variant","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MITNFA","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-PL","MS-RL","MTLL","MakeIndex","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCGL-UK-2.0","NCSA","NGPL","NIST-PD","NIST-PD-fallback","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","Net-SNMP","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OML","OPL-1.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenSSL","PDDL-1.0","PHP-3.0","PHP-3.01","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","QPL-1.0","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","SAX-PD","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","TAPR-OHL-1.0","TCL","TCP-wrappers","TMate","TORQUE-1.1","TOSL","TU-Berlin-1.0","TU-Berlin-2.0","UCL-1.0","UPL-1.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Wsuipa","X11","XFree86-1.1","XSkat","Xerox","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.5","bzip2-1.0.6","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dvipdfm","eGenix","etalab-2.0","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","mpich2","psfrag","psutils","xinetd","xpp","zlib-acknowledgement"]});var PS=_((xz,U9)=>{U9.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Nunit","StandardML-NJ","eCos-2.0","wxWindows"]});var CS=_((Pz,G9)=>{G9.exports=["389-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-3.1","gnu-javamail-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","i2p-gpl-java-exception","Libtool-exception","Linux-syscall-note","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","Swift-exception","u-boot-exception-2.0","Universal-FOSS-exception-1.0","WxWindows-exception-3.1"]});var RS=_((Cz,OS)=>{"use strict";var j9=[].concat(vh()).concat(PS()),H9=CS();OS.exports=function(e){var t=0;function r(){return t1&&e[t-2]===" ")throw new Error("Space before `+`");return S&&{type:"OPERATOR",string:S}}function l(){return i(/[A-Za-z0-9-.]+/)}function f(){var S=l();if(!S)throw new Error("Expected idstring at offset "+t);return S}function d(){if(i("DocumentRef-")){var S=f();return{type:"DOCUMENTREF",string:S}}}function p(){if(i("LicenseRef-")){var S=f();return{type:"LICENSEREF",string:S}}}function g(){var S=t,L=l();if(j9.indexOf(L)!==-1)return{type:"LICENSE",string:L};if(H9.indexOf(L)!==-1)return{type:"EXCEPTION",string:L};t=S}function h(){return u()||d()||p()||g()}for(var b=[];r()&&(o(),!!r());){var w=h();if(!w)throw new Error("Unexpected `"+e[t]+"` at offset "+t);b.push(w)}return b}});var IS=_((Oz,TS)=>{"use strict";TS.exports=function(e){var t=0;function r(){return t{"use strict";var W9=RS(),$9=IS();NS.exports=function(e){return $9(W9(e))}});var GS=_((Tz,US)=>{var Y9=yh(),K9=vh();function su(e){try{return Y9(e),!0}catch(t){return!1}}var DS=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["-License",""]],V9=0,z9=1,MS=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],_h=K9.map(function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]}).reduce(function(e,t){var r=t[1];return e[r]=e[r]||[],e[r].push(t[0]),e},{}),J9=Object.keys(_h).map(function(t){return[t,_h[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});_h=void 0;var qS=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(J9),X9=0,Z9=1,kS=function(e){for(var t=0;t-1)return i[Z9]}return null},BS=function(e,t){for(var r=0;r-1){var u=e.replace(o,i[z9]),l=t(u);if(l!==null)return l}}return null};US.exports=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function i(f){return r?Q9(f):f}var o=typeof e=="string"&&e.trim().length!==0;if(!o)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),su(e))return i(e);var u=e.replace(/\+$/,"").trim();if(su(u))return i(u);var l=kS(e);return l!==null||(l=BS(e,function(f){return su(f)?f:kS(f)}),l!==null)||(l=FS(e),l!==null)||(l=BS(e,FS),l!==null)?i(l):null};function Q9(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}});var wh=_((Iz,WS)=>{var ej=yh(),tj=GS(),jS='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN "',rj=/^SEE LICEN[CS]E IN (.+)$/;function HS(e,t){return t.slice(0,e.length)===e}function bh(e){if(e.hasOwnProperty("license")){var t=e.license;return HS("LicenseRef",t)||HS("DocumentRef",t)}else return bh(e.left)||bh(e.right)}WS.exports=function(e){var t;try{t=ej(e)}catch(u){var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=rj.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var i={validForOldPackages:!1,validForNewPackages:!1,warnings:[jS]};if(e.trim().length!==0){var o=tj(e);o&&i.warnings.push('license is similar to the valid expression "'+o+'"')}return i}return bh(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[jS]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var YS=_((Nz,$S)=>{"use strict";var nj="Function.prototype.bind called on incompatible ",Sh=Array.prototype.slice,ij=Object.prototype.toString,sj="[object Function]";$S.exports=function(t){var r=this;if(typeof r!="function"||ij.call(r)!==sj)throw new TypeError(nj+r);for(var i=Sh.call(arguments,1),o,u=function(){if(this instanceof o){var g=r.apply(this,i.concat(Sh.call(arguments)));return Object(g)===g?g:this}else return r.apply(t,i.concat(Sh.call(arguments)))},l=Math.max(0,r.length-i.length),f=[],d=0;d{"use strict";var oj=YS();KS.exports=Function.prototype.bind||oj});var JS=_((Mz,zS)=>{"use strict";var aj=VS();zS.exports=aj.call(Function.call,Object.prototype.hasOwnProperty)});var XS=_((qz,uj)=>{uj.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Hs=_((kz,eE)=>{"use strict";var lj=JS();function fj(e,t){for(var r=e.split("."),i=t.split(" "),o=i.length>1?i[0]:"=",u=(i.length>1?i[1]:i[0]).split("."),l=0;l<3;++l){var f=parseInt(r[l]||0,10),d=parseInt(u[l]||0,10);if(f!==d)return o==="<"?f="?f>=d:!1}return o===">="}function ZS(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var i=0;i{tE.exports=hj;function hj(e){if(!!e&&e!=="ERROR: No README data found!"){e=e.trim().split(` +`);for(var t=0;e[t]&&e[t].trim().match(/^(#|$)/);t++);for(var r=e.length,i=t+1;i{pj.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var oE=_((Uz,sE)=>{var dj=LS(),gj=xS(),mj=wh(),ou=ch(),vj=Hs(),yj=["dependencies","devDependencies","optionalDependencies"],_j=rE(),Eh=G("url"),un=nE();sE.exports={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=ou.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(un.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,un.topLevel[t])},this)},fixScriptsField:function(e){if(!!e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):un.script[t]&&!e.scripts[un.script[t]]&&this.warn("typo",t,un.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(!!e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){!e.man||typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(i){return!i||typeof i!="string"?(this.warn("nonStringBundleDependency",i),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,i)&&(this.warn("nonDependencyBundleDependency",i),e.dependencies[i]="*"),!0)},this))},fixDependencies:function(e,t){Pj(e,this.warn),Aj(e,this.warn),this.fixBundleDependenciesField(e),["dependencies","devDependencies"].forEach(function(r){if(r in e){if(!e[r]||typeof e[r]!="object"){this.warn("nonObjectDependencies",r),delete e[r];return}Object.keys(e[r]).forEach(function(i){var o=e[r][i];typeof o!="string"&&(this.warn("nonStringDependency",i,JSON.stringify(o)),delete e[r][i]);var u=ou.fromUrl(e[r][i]);u&&(e[r][i]=u.toString())},this)}},this)},fixModulesField:function(e){e.modules&&(this.warn("deprecatedModules"),delete e.modules)},fixKeywordsField:function(e){typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,this.warn("nonArrayKeywords")):e.keywords&&(e.keywords=e.keywords.filter(function(t){return typeof t!="string"||!t?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(e,t){var r=!t;if(!e.version)return e.version="",!0;if(!dj(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=gj(e.version,r),!0},fixPeople:function(e){iE(e,Ej),iE(e,Lj)},fixNameField:function(e,t){typeof t=="boolean"?t={strict:t}:typeof t=="undefined"&&(t={});var r=t.strict;if(!e.name&&!r){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");r||(e.name=e.name.trim()),Sj(e.name,r,t.allowLegacyCase),vj(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=_j(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=ou.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){var r=/^.+@.*\..+$/;if(typeof e.bugs=="string")r.test(e.bugs)?e.bugs={email:e.bugs}:Eh.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{Cj(e.bugs,this.warn);var i=e.bugs;e.bugs={},i.url&&(typeof i.url=="string"&&Eh.parse(i.url).protocol?e.bugs.url=i.url:this.warn("nonUrlBugsUrlField")),i.email&&(typeof i.email=="string"&&r.test(i.email)?e.bugs.email=i.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=ou.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(!!e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;Eh.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){let t=e.license||e.licence;if(!t)return this.warn("missingLicense");if(typeof t!="string"||t.length<1||t.trim()==="")return this.warn("invalidLicense");if(!mj(t).validForNewPackages)return this.warn("invalidLicense")}};function bj(e){if(e.charAt(0)!=="@")return!1;var t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function wj(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function Sj(e,t,r){if(e.charAt(0)==="."||!(bj(e)||wj(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function iE(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach(function(r){!Array.isArray(e[r])||(e[r]=e[r].map(t))}),e}function Ej(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,i=r?" ("+r+")":"",o=e.email||e.mail,u=o?" <"+o+">":"";return t+u+i}function Lj(e){if(typeof e!="string")return e;var t=e.match(/^([^(<]+)/),r=e.match(/\(([^)]+)\)/),i=e.match(/<([^>]+)>/),o={};return t&&t[0].trim()&&(o.name=t[0].trim()),i&&(o.email=i[1]),r&&(o.url=r[1]),o}function Aj(e,t){var r=e.optionalDependencies;if(!!r){var i=e.dependencies||{};Object.keys(r).forEach(function(o){i[o]=r[o]}),e.dependencies=i}}function xj(e,t,r){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;r("deprecatedArrayDependencies",t);var i={};return e.filter(function(o){return typeof o=="string"}).forEach(function(o){o=o.trim().split(/(:?[@\s><=])/);var u=o.shift(),l=o.join("");l=l.trim(),l=l.replace(/^@/,""),i[u]=l}),i}function Pj(e,t){yj.forEach(function(r){!e[r]||(e[r]=xj(e[r],r,t))})}function Cj(e,t){!e||Object.keys(e).forEach(function(r){un.bugs[r]&&(t("typo",r,un.bugs[r],"bugs"),e[un.bugs[r]]=e[r],delete e[r])})}});var aE=_((Gz,Oj)=>{Oj.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var fE=_((jz,lE)=>{var uE=G("util"),Lh=aE();lE.exports=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return Rj.apply(null,e);var r=Lh[t]?Lh[t]:t+": '%s'";return e.unshift(r),uE.format.apply(null,e)};function Rj(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),uE.format(Lh.typo,e,t)}});var dE=_((Hz,pE)=>{pE.exports=cE;var Ah=oE();cE.fixer=Ah;var Tj=fE(),Ij=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],Nj=["dependencies","people","typos"],xh=Ij.map(function(e){return hE(e)+"Field"});xh=xh.concat(Nj);function cE(e,t,r){t===!0&&(t=null,r=!0),r||(r=!1),(!t||e.private)&&(t=function(i){}),e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall&&(e.gypfile=!0),Ah.warn=function(){t(Tj.apply(null,arguments))},xh.forEach(function(i){Ah["fix"+hE(i)](e,r)}),e._id=e.name+"@"+e.version}function hE(e){return e.charAt(0).toUpperCase()+e.slice(1)}});var yE=_(Bn=>{Bn.parse=Bn.decode=Dj;Bn.stringify=Bn.encode=gE;Bn.safe=Ii;Bn.unsafe=au;var Ph=typeof process!="undefined"&&process.platform==="win32"?`\r +`:` +`;function gE(e,t){var r=[],i="";typeof t=="string"?t={section:t,whitespace:!1}:(t=t||{},t.whitespace=t.whitespace===!0);var o=t.whitespace?" = ":"=";return Object.keys(e).forEach(function(u,l,f){var d=e[u];d&&Array.isArray(d)?d.forEach(function(p){i+=Ii(u+"[]")+o+Ii(p)+` +`}):d&&typeof d=="object"?r.push(u):i+=Ii(u)+o+Ii(d)+Ph}),t.section&&i.length&&(i="["+Ii(t.section)+"]"+Ph+i),r.forEach(function(u,l,f){var d=mE(u).join("\\."),p=(t.section?t.section+".":"")+d,g=gE(e[u],{section:p,whitespace:t.whitespace});i.length&&g.length&&(i+=Ph),i+=g}),i}function mE(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function Dj(e){var t={},r=t,i=null,o=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,u=e.split(/[\r\n]+/g);return u.forEach(function(l,f,d){if(!(!l||l.match(/^\s*[;#]/))){var p=l.match(o);if(!!p){if(p[1]!==void 0){if(i=au(p[1]),i==="__proto__"){r={};return}r=t[i]=t[i]||{};return}var g=au(p[2]);if(g!=="__proto__"){var h=p[3]?au(p[4]):!0;switch(h){case"true":case"false":case"null":h=JSON.parse(h)}if(g.length>2&&g.slice(-2)==="[]"){if(g=g.substring(0,g.length-2),g==="__proto__")return;r[g]?Array.isArray(r[g])||(r[g]=[r[g]]):r[g]=[]}Array.isArray(r[g])?r[g].push(h):r[g]=h}}}}),Object.keys(t).filter(function(l,f,d){if(!t[l]||typeof t[l]!="object"||Array.isArray(t[l]))return!1;var p=mE(l),g=t,h=p.pop(),b=h.replace(/\\\./g,".");return p.forEach(function(w,S,L){w!=="__proto__"&&((!g[w]||typeof g[w]!="object")&&(g[w]={}),g=g[w])}),g===t&&b===h?!1:(g[b]=t[l],!0)}).forEach(function(l,f,d){delete t[l]}),t}function vE(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function Ii(e){return typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&vE(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function au(e,t){if(e=(e||"").trim(),vE(e)){e.charAt(0)==="'"&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch(f){}}else{for(var r=!1,i="",o=0,u=e.length;o{var _E=G("fs"),Mj=yE(),Ch=G("path");wE.exports=function(e,t){bE(e,function(r){if(!r)return t(new Error("no gitconfig to be found at "+e));_E.readFile(r,function(i,o){if(i)return t(i);try{var u=qj(Mj.parse(o.toString()))}catch(l){return t(l)}t(!1,u)})})};function qj(e){var t={};return Object.keys(e).forEach(function(r){if(r.indexOf('"')>-1){var i=r.split('"'),o=i.shift().trim(),u=i.shift().trim();t[o]||(t[o]={}),t[o][u]=e[r]}else t[r]=e[r]}),t}function bE(e,t){var r=Ch.join(e,".git/config");_E.exists(r,function(i){if(i)return t(r);if(e===Ch.resolve(e,".."))return t(!1);bE(Ch.resolve(e,".."),t)})}});var xE=_((Yz,AE)=>{"use strict";var EE=function(e,t,r){return function(){for(var i=this,o=new Array(arguments.length),u=0;u{"use strict";var kj=SE(),Fj=xE();PE.exports=e=>Fj(kj)(e||process.cwd()).then(t=>{var r=t.remote&&t.remote.origin&&t.remote.origin.url;if(!r)throw new Error("Couldn't find origin url");return r})});var RE=_((Vz,OE)=>{var ln=G("constants"),Bj=process.cwd,uu=null,Uj=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return uu||(uu=Bj.call(process)),uu};try{process.cwd()}catch(e){}typeof process.chdir=="function"&&(Oh=process.chdir,process.chdir=function(e){uu=null,Oh.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Oh));var Oh;OE.exports=Gj;function Gj(e){ln.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=u(e.chown),e.fchown=u(e.fchown),e.lchown=u(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=l(e.chownSync),e.fchownSync=l(e.fchownSync),e.lchownSync=l(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=f(e.stat),e.fstat=f(e.fstat),e.lstat=f(e.lstat),e.statSync=d(e.statSync),e.fstatSync=d(e.fstatSync),e.lstatSync=d(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(g,h,b){b&&process.nextTick(b)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(g,h,b,w){w&&process.nextTick(w)},e.lchownSync=function(){}),Uj==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(g){function h(b,w,S){var L=Date.now(),C=0;g(b,w,function O(F){if(F&&(F.code==="EACCES"||F.code==="EPERM")&&Date.now()-L<6e4){setTimeout(function(){e.stat(w,function(D,R){D&&D.code==="ENOENT"?g(b,w,O):S(F)})},C),C<100&&(C+=10);return}S&&S(F)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,g),h}(e.rename)),e.read=typeof e.read!="function"?e.read:function(g){function h(b,w,S,L,C,O){var F;if(O&&typeof O=="function"){var D=0;F=function(R,V,X){if(R&&R.code==="EAGAIN"&&D<10)return D++,g.call(e,b,w,S,L,C,F);O.apply(this,arguments)}}return g.call(e,b,w,S,L,C,F)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,g),h}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(g){return function(h,b,w,S,L){for(var C=0;;)try{return g.call(e,h,b,w,S,L)}catch(O){if(O.code==="EAGAIN"&&C<10){C++;continue}throw O}}}(e.readSync);function t(g){g.lchmod=function(h,b,w){g.open(h,ln.O_WRONLY|ln.O_SYMLINK,b,function(S,L){if(S){w&&w(S);return}g.fchmod(L,b,function(C){g.close(L,function(O){w&&w(C||O)})})})},g.lchmodSync=function(h,b){var w=g.openSync(h,ln.O_WRONLY|ln.O_SYMLINK,b),S=!0,L;try{L=g.fchmodSync(w,b),S=!1}finally{if(S)try{g.closeSync(w)}catch(C){}else g.closeSync(w)}return L}}function r(g){ln.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(h,b,w,S){g.open(h,ln.O_SYMLINK,function(L,C){if(L){S&&S(L);return}g.futimes(C,b,w,function(O){g.close(C,function(F){S&&S(O||F)})})})},g.lutimesSync=function(h,b,w){var S=g.openSync(h,ln.O_SYMLINK),L,C=!0;try{L=g.futimesSync(S,b,w),C=!1}finally{if(C)try{g.closeSync(S)}catch(O){}else g.closeSync(S)}return L}):g.futimes&&(g.lutimes=function(h,b,w,S){S&&process.nextTick(S)},g.lutimesSync=function(){})}function i(g){return g&&function(h,b,w){return g.call(e,h,b,function(S){p(S)&&(S=null),w&&w.apply(this,arguments)})}}function o(g){return g&&function(h,b){try{return g.call(e,h,b)}catch(w){if(!p(w))throw w}}}function u(g){return g&&function(h,b,w,S){return g.call(e,h,b,w,function(L){p(L)&&(L=null),S&&S.apply(this,arguments)})}}function l(g){return g&&function(h,b,w){try{return g.call(e,h,b,w)}catch(S){if(!p(S))throw S}}}function f(g){return g&&function(h,b,w){typeof b=="function"&&(w=b,b=null);function S(L,C){C&&(C.uid<0&&(C.uid+=4294967296),C.gid<0&&(C.gid+=4294967296)),w&&w.apply(this,arguments)}return b?g.call(e,h,b,S):g.call(e,h,S)}}function d(g){return g&&function(h,b){var w=b?g.call(e,h,b):g.call(e,h);return w&&(w.uid<0&&(w.uid+=4294967296),w.gid<0&&(w.gid+=4294967296)),w}}function p(g){if(!g||g.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(g.code==="EINVAL"||g.code==="EPERM"))}}});var NE=_((zz,IE)=>{var TE=G("stream").Stream;IE.exports=jj;function jj(e){return{ReadStream:t,WriteStream:r};function t(i,o){if(!(this instanceof t))return new t(i,o);TE.call(this);var u=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var l=Object.keys(o),f=0,d=l.length;fthis.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){u._read()});return}e.open(this.path,this.flags,this.mode,function(g,h){if(g){u.emit("error",g),u.readable=!1;return}u.fd=h,u.emit("open",h),u._read()})}function r(i,o){if(!(this instanceof r))return new r(i,o);TE.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var u=Object.keys(o),l=0,f=u.length;l= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var ME=_((Jz,DE)=>{"use strict";DE.exports=Wj;var Hj=Object.getPrototypeOf||function(e){return e.__proto__};function Wj(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Hj(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var BE=_((Xz,Ih)=>{var ke=G("fs"),$j=RE(),Yj=NE(),Kj=ME(),lu=G("util"),tt,fu;typeof Symbol=="function"&&typeof Symbol.for=="function"?(tt=Symbol.for("graceful-fs.queue"),fu=Symbol.for("graceful-fs.previous")):(tt="___graceful-fs.queue",fu="___graceful-fs.previous");function Vj(){}function qE(e,t){Object.defineProperty(e,tt,{get:function(){return t}})}var Un=Vj;lu.debuglog?Un=lu.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Un=function(){var e=lu.format.apply(lu,arguments);e="GFS4: "+e.split(/\n/).join(` +GFS4: `),console.error(e)});ke[tt]||(kE=global[tt]||[],qE(ke,kE),ke.close=function(e){function t(r,i){return e.call(ke,r,function(o){o||FE(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(t,fu,{value:e}),t}(ke.close),ke.closeSync=function(e){function t(r){e.apply(ke,arguments),FE()}return Object.defineProperty(t,fu,{value:e}),t}(ke.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Un(ke[tt]),G("assert").equal(ke[tt].length,0)}));var kE;global[tt]||qE(global,ke[tt]);Ih.exports=Rh(Kj(ke));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ke.__patched&&(Ih.exports=Rh(ke),ke.__patched=!0);function Rh(e){$j(e),e.gracefulify=Rh,e.createReadStream=V,e.createWriteStream=X;var t=e.readFile;e.readFile=r;function r(I,W,k){return typeof W=="function"&&(k=W,W=null),H(I,W,k);function H(j,Y,K,re){return t(j,Y,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?Ni([H,[j,Y,K],ne,re||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}var i=e.writeFile;e.writeFile=o;function o(I,W,k,H){return typeof k=="function"&&(H=k,k=null),j(I,W,k,H);function j(Y,K,re,ne,le){return i(Y,K,re,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Ni([j,[Y,K,re,ne],se,le||Date.now(),Date.now()]):typeof ne=="function"&&ne.apply(this,arguments)})}}var u=e.appendFile;u&&(e.appendFile=l);function l(I,W,k,H){return typeof k=="function"&&(H=k,k=null),j(I,W,k,H);function j(Y,K,re,ne,le){return u(Y,K,re,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Ni([j,[Y,K,re,ne],se,le||Date.now(),Date.now()]):typeof ne=="function"&&ne.apply(this,arguments)})}}var f=e.copyFile;f&&(e.copyFile=d);function d(I,W,k,H){return typeof k=="function"&&(H=k,k=0),j(I,W,k,H);function j(Y,K,re,ne,le){return f(Y,K,re,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Ni([j,[Y,K,re,ne],se,le||Date.now(),Date.now()]):typeof ne=="function"&&ne.apply(this,arguments)})}}var p=e.readdir;e.readdir=h;var g=/^v[0-5]\./;function h(I,W,k){typeof W=="function"&&(k=W,W=null);var H=g.test(process.version)?function(K,re,ne,le){return p(K,j(K,re,ne,le))}:function(K,re,ne,le){return p(K,re,j(K,re,ne,le))};return H(I,W,k);function j(Y,K,re,ne){return function(le,se){le&&(le.code==="EMFILE"||le.code==="ENFILE")?Ni([H,[Y,K,re],le,ne||Date.now(),Date.now()]):(se&&se.sort&&se.sort(),typeof re=="function"&&re.call(this,le,se))}}}if(process.version.substr(0,4)==="v0.8"){var b=Yj(e);O=b.ReadStream,D=b.WriteStream}var w=e.ReadStream;w&&(O.prototype=Object.create(w.prototype),O.prototype.open=F);var S=e.WriteStream;S&&(D.prototype=Object.create(S.prototype),D.prototype.open=R),Object.defineProperty(e,"ReadStream",{get:function(){return O},set:function(I){O=I},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return D},set:function(I){D=I},enumerable:!0,configurable:!0});var L=O;Object.defineProperty(e,"FileReadStream",{get:function(){return L},set:function(I){L=I},enumerable:!0,configurable:!0});var C=D;Object.defineProperty(e,"FileWriteStream",{get:function(){return C},set:function(I){C=I},enumerable:!0,configurable:!0});function O(I,W){return this instanceof O?(w.apply(this,arguments),this):O.apply(Object.create(O.prototype),arguments)}function F(){var I=this;U(I.path,I.flags,I.mode,function(W,k){W?(I.autoClose&&I.destroy(),I.emit("error",W)):(I.fd=k,I.emit("open",k),I.read())})}function D(I,W){return this instanceof D?(S.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function R(){var I=this;U(I.path,I.flags,I.mode,function(W,k){W?(I.destroy(),I.emit("error",W)):(I.fd=k,I.emit("open",k))})}function V(I,W){return new e.ReadStream(I,W)}function X(I,W){return new e.WriteStream(I,W)}var z=e.open;e.open=U;function U(I,W,k,H){return typeof k=="function"&&(H=k,k=null),j(I,W,k,H);function j(Y,K,re,ne,le){return z(Y,K,re,function(se,Pt){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Ni([j,[Y,K,re,ne],se,le||Date.now(),Date.now()]):typeof ne=="function"&&ne.apply(this,arguments)})}}return e}function Ni(e){Un("ENQUEUE",e[0].name,e[1]),ke[tt].push(e),Th()}var cu;function FE(){for(var e=Date.now(),t=0;t2&&(ke[tt][t][3]=e,ke[tt][t][4]=e);Th()}function Th(){if(clearTimeout(cu),cu=void 0,ke[tt].length!==0){var e=ke[tt].shift(),t=e[0],r=e[1],i=e[2],o=e[3],u=e[4];if(o===void 0)Un("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-o>=6e4){Un("TIMEOUT",t.name,r);var l=r.pop();typeof l=="function"&&l.call(null,i)}else{var f=Date.now()-u,d=Math.max(u-o,1),p=Math.min(d*1.2,100);f>=p?(Un("RETRY",t.name,r),t.apply(null,r.concat([o]))):ke[tt].push(e)}cu===void 0&&(cu=setTimeout(Th,0))}}});var GE=_((Zz,UE)=>{"use strict";UE.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string, got "+typeof e);return e.charCodeAt(0)===65279?e.slice(1):e}});var HE=_((Qz,jE)=>{"use strict";jE.exports=function(t){return t?t instanceof Array||Array.isArray(t)||t.length>=0&&t.splice instanceof Function:!1}});var $E=_((eJ,WE)=>{"use strict";var zj=G("util"),Jj=HE(),Nh=function(t,r){(!t||t.constructor!==String)&&(r=t||{},t=Error.name);var i=function o(u){if(!this)return new o(u);u=u instanceof Error?u.message:u||this.message,Error.call(this,u),Error.captureStackTrace(this,i),this.name=t,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var g=u.split(/\r?\n/g);for(var h in r)if(!!r.hasOwnProperty(h)){var b=r[h];"message"in b&&(g=b.message(this[h],g)||g,Jj(g)||(g=[g]))}return g.join(` +`)},set:function(g){u=g}});var l=null,f=Object.getOwnPropertyDescriptor(this,"stack"),d=f.get,p=f.value;delete f.value,delete f.writable,f.set=function(g){l=g},f.get=function(){var g=(l||(d?d.call(this):p)).split(/\r?\n+/g);l||(g[0]=this.name+": "+this.message);var h=1;for(var b in r)if(!!r.hasOwnProperty(b)){var w=r[b];if("line"in w){var S=w.line(this[b]);S&&g.splice(h++,0," "+S)}"stack"in w&&w.stack(this[b],g)}return g.join(` +`)},Object.defineProperty(this,"stack",f)};return Object.setPrototypeOf?(Object.setPrototypeOf(i.prototype,Error.prototype),Object.setPrototypeOf(i,Error)):zj.inherits(i,Error),i};Nh.append=function(e,t){return{message:function(r,i){return r=r||t,r&&(i[0]+=" "+e.replace("%s",r.toString())),i}}};Nh.line=function(e,t){return{line:function(r){return r=r||t,r?e.replace("%s",r.toString()):null}}};WE.exports=Nh});var KE=_((tJ,YE)=>{"use strict";YE.exports=Xj;function Xj(e,t,r){r=r||20;try{return JSON.parse(e,t)}catch(i){if(typeof e!="string"){let l=Array.isArray(e)&&e.length===0,f="Cannot parse "+(l?"an empty array":String(e));throw new TypeError(f)}let o=i.message.match(/^Unexpected token.*position\s+(\d+)/i),u=o?+o[1]:i.message.match(/^Unexpected end of JSON.*/i)?e.length-1:null;if(u!=null){let l=u<=r?0:u-r,f=u+r>=e.length?e.length:u+r;i.message+=` while parsing near '${l===0?"":"..."}${e.slice(l,f)}${f===e.length?"":"..."}'`}else i.message+=` while parsing '${e.slice(0,r*2)}'`;throw i}}});var JE=_((rJ,zE)=>{"use strict";var VE=$E(),Zj=KE(),Qj=VE("JSONError",{fileName:VE.append("in %s")});zE.exports=(e,t,r)=>{typeof t=="string"&&(r=t,t=null);try{try{return JSON.parse(e,t)}catch(i){throw Zj(e,t),i}}catch(i){i.message=i.message.replace(/\n/g,"");let o=new Qj(i);throw r&&(o.fileName=r),o}}});var Dh=_((nJ,ZE)=>{"use strict";var XE=(e,t)=>function(){let r=t.promiseModule,i=new Array(arguments.length);for(let o=0;o{t.errorFirst?i.push(function(l,f){if(t.multiArgs){let d=new Array(arguments.length-1);for(let p=1;p{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let r=o=>{let u=l=>typeof l=="string"?o===l:l.test(o);return t.include?t.include.some(u):!t.exclude.some(u)},i;typeof e=="function"?i=function(){return t.excludeMain?e.apply(this,arguments):XE(e,t).apply(this,arguments)}:i=Object.create(Object.getPrototypeOf(e));for(let o in e){let u=e[o];i[o]=typeof u=="function"&&r(o)?XE(u,t):u}return i}});var tL=_((iJ,Mh)=>{"use strict";var eH=G("path"),QE=BE(),tH=GE(),rH=JE(),nH=Dh(),eL=(e,t)=>rH(tH(e),eH.relative(".",t));Mh.exports=e=>nH(QE.readFile)(e,"utf8").then(t=>eL(t,e));Mh.exports.sync=e=>eL(QE.readFileSync(e,"utf8"),e)});var nL=_(Gn=>{"use strict";var rL=G("fs"),iH=Dh();function qh(e,t,r){return typeof r!="string"?Promise.reject(new TypeError(`Expected a string, got ${typeof r}`)):iH(rL[e])(r).then(i=>i[t]()).catch(i=>{if(i.code==="ENOENT")return!1;throw i})}function kh(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return rL[e](r)[t]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}Gn.file=qh.bind(null,"stat","isFile");Gn.dir=qh.bind(null,"stat","isDirectory");Gn.symlink=qh.bind(null,"lstat","isSymbolicLink");Gn.fileSync=kh.bind(null,"statSync","isFile");Gn.dirSync=kh.bind(null,"statSync","isDirectory");Gn.symlinkSync=kh.bind(null,"lstatSync","isSymbolicLink")});var Fh=_((oJ,oL)=>{"use strict";var Ws=oL.exports={github:{protocols:["git","http","git+ssh","git+https","ssh","https"],domain:"github.com",treepath:"tree",filetemplate:"https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}",bugstemplate:"https://{domain}/{user}/{project}/issues",gittemplate:"git://{auth@}{domain}/{user}/{project}.git{#committish}",tarballtemplate:"https://codeload.{domain}/{user}/{project}/tar.gz/{committish}"},bitbucket:{protocols:["git+ssh","git+https","ssh","https"],domain:"bitbucket.org",treepath:"src",tarballtemplate:"https://{domain}/{user}/{project}/get/{committish}.tar.gz"},gitlab:{protocols:["git+ssh","git+https","ssh","https"],domain:"gitlab.com",treepath:"tree",bugstemplate:"https://{domain}/{user}/{project}/issues",httpstemplate:"git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}",tarballtemplate:"https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}",pathmatch:/^[/]([^/]+)[/]((?!.*(\/-\/|\/repository\/archive\.tar\.gz\?=.*|\/repository\/[^/]+\/archive.tar.gz$)).*?)(?:[.]git|[/])?$/},gist:{protocols:["git","git+ssh","git+https","ssh","https"],domain:"gist.github.com",pathmatch:/^[/](?:([^/]+)[/])?([a-z0-9]{32,})(?:[.]git)?$/,filetemplate:"https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}",bugstemplate:"https://{domain}/{project}",gittemplate:"git://{domain}/{project}.git{#committish}",sshtemplate:"git@{domain}:/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{project}.git{#committish}",browsetemplate:"https://{domain}/{project}{/committish}",browsefiletemplate:"https://{domain}/{project}{/committish}{#path}",docstemplate:"https://{domain}/{project}{/committish}",httpstemplate:"git+https://{domain}/{project}.git{#committish}",shortcuttemplate:"{type}:{project}{#committish}",pathtemplate:"{project}{#committish}",tarballtemplate:"https://codeload.github.com/gist/{project}/tar.gz/{committish}",hashformat:function(e){return"file-"+sL(e)}}},iL={sshtemplate:"git@{domain}:{user}/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{user}/{project}.git{#committish}",browsetemplate:"https://{domain}/{user}/{project}{/tree/committish}",browsefiletemplate:"https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}",docstemplate:"https://{domain}/{user}/{project}{/tree/committish}#readme",httpstemplate:"git+https://{auth@}{domain}/{user}/{project}.git{#committish}",filetemplate:"https://{domain}/{user}/{project}/raw/{committish}/{path}",shortcuttemplate:"{type}:{user}/{project}{#committish}",pathtemplate:"{user}/{project}{#committish}",pathmatch:/^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/,hashformat:sL};Object.keys(Ws).forEach(function(e){Object.keys(iL).forEach(function(t){Ws[e][t]||(Ws[e][t]=iL[t])}),Ws[e].protocols_re=RegExp("^("+Ws[e].protocols.map(function(t){return t.replace(/([\\+*{}()[\]$^|])/g,"\\$1")}).join("|")+"):$")});function sL(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}});var lL=_((aJ,uL)=>{"use strict";var aL=Fh(),Di=Object.assign||function(t,r){if(r===null||typeof r!="object")return t;for(var i=Object.keys(r),o=i.length;o--;)t[i[o]]=r[i[o]];return t};uL.exports=ot;function ot(e,t,r,i,o,u,l){var f=this;f.type=e,Object.keys(aL[e]).forEach(function(d){f[d]=aL[e][d]}),f.user=t,f.auth=r,f.project=i,f.committish=o,f.default=u,f.opts=l||{}}ot.prototype.hash=function(){return this.committish?"#"+this.committish:""};ot.prototype._fill=function(e,t){if(!!e){var r=Di({},t);r.path=r.path?r.path.replace(/^[/]+/g,""):"",t=Di(Di({},this.opts),t);var i=this;Object.keys(this).forEach(function(g){i[g]!=null&&r[g]==null&&(r[g]=i[g])});var o=r.auth,u=r.committish,l=r.fragment,f=r.path,d=r.project;Object.keys(r).forEach(function(g){var h=r[g];(g==="path"||g==="project")&&typeof h=="string"?r[g]=h.split("/").map(function(b){return encodeURIComponent(b)}).join("/"):r[g]=encodeURIComponent(h)}),r["auth@"]=o?o+"@":"",r["#fragment"]=l?"#"+this.hashformat(l):"",r.fragment=r.fragment?r.fragment:"",r["#path"]=f?"#"+this.hashformat(f):"",r["/path"]=r.path?"/"+r.path:"",r.projectPath=d.split("/").map(encodeURIComponent).join("/"),t.noCommittish?(r["#committish"]="",r["/tree/committish"]="",r["/committish"]="",r.committish=""):(r["#committish"]=u?"#"+u:"",r["/tree/committish"]=r.committish?"/"+r.treepath+"/"+r.committish:"",r["/committish"]=r.committish?"/"+r.committish:"",r.committish=r.committish||"master");var p=e;return Object.keys(r).forEach(function(g){p=p.replace(new RegExp("[{]"+g+"[}]","g"),r[g])}),t.noGitPlus?p.replace(/^git[+]/,""):p}};ot.prototype.ssh=function(e){return this._fill(this.sshtemplate,e)};ot.prototype.sshurl=function(e){return this._fill(this.sshurltemplate,e)};ot.prototype.browse=function(e,t,r){return typeof e=="string"?(typeof t!="string"&&(r=t,t=null),this._fill(this.browsefiletemplate,Di({fragment:t,path:e},r))):this._fill(this.browsetemplate,e)};ot.prototype.docs=function(e){return this._fill(this.docstemplate,e)};ot.prototype.bugs=function(e){return this._fill(this.bugstemplate,e)};ot.prototype.https=function(e){return this._fill(this.httpstemplate,e)};ot.prototype.git=function(e){return this._fill(this.gittemplate,e)};ot.prototype.shortcut=function(e){return this._fill(this.shortcuttemplate,e)};ot.prototype.path=function(e){return this._fill(this.pathtemplate,e)};ot.prototype.tarball=function(e){var t=Di({},e,{noCommittish:!1});return this._fill(this.tarballtemplate,t)};ot.prototype.file=function(e,t){return this._fill(this.filetemplate,Di({path:e},t))};ot.prototype.getDefaultRepresentation=function(){return this.default};ot.prototype.toString=function(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}});var cL=_((uJ,Uh)=>{"use strict";var hu=G("url"),fL=Fh(),sH=Uh.exports=lL(),oH={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function aH(e){return oH[e]||e.slice(0,-1)}var uH={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0},Bh={};Uh.exports.fromUrl=function(e,t){if(typeof e=="string"){var r=e+JSON.stringify(t||{});return r in Bh||(Bh[r]=lH(e,t)),Bh[r]}};function lH(e,t){if(!(e==null||e==="")){var r=cH(fH(e)?"github:"+e:e),i=hH(r),o=r.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/),u=Object.keys(fL).map(function(l){try{var f=fL[l],d=null;i.auth&&uH[i.protocol]&&(d=i.auth);var p=i.hash?decodeURIComponent(i.hash.substr(1)):null,g=null,h=null,b=null;if(o&&o[1]===l)g=o[2]&&decodeURIComponent(o[2]),h=decodeURIComponent(o[3].replace(/\.git$/,"")),b="shortcut";else{if(i.host&&i.host!==f.domain&&i.host.replace(/^www[.]/,"")!==f.domain||!f.protocols_re.test(i.protocol)||!i.path)return;var w=f.pathmatch,S=i.path.match(w);if(!S)return;S[1]!==null&&S[1]!==void 0&&(g=decodeURIComponent(S[1].replace(/^:/,""))),h=decodeURIComponent(S[2]),b=aH(i.protocol)}return new sH(l,g,d,h,p,b,t)}catch(L){if(!(L instanceof URIError))throw L}}).filter(function(l){return l});if(u.length===1)return u[0]}}function fH(e){return/^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(e)}function cH(e){var t=hu.parse(e);return t.protocol==="gist:"&&t.host&&!t.path?t.protocol+"/"+t.host:e}function hH(e){var t=e.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);if(!t){var r=hu.parse(e);if(r.auth&&typeof hu.URL=="function"){var i=e.match(/[^@]+@[^:/]+/);if(i){var o=new hu.URL(i[0]);r.auth=o.username||"",o.password&&(r.auth+=":"+o.password)}}return r}return{protocol:"git+ssh:",slashes:!0,auth:t[1],host:t[2],port:null,hostname:t[2],hash:t[4],search:null,query:null,pathname:"/"+t[3],path:"/"+t[3],href:"git+ssh://"+t[1]+"@"+t[2]+"/"+t[3]+(t[4]||"")}}});var Gh=_((lJ,hL)=>{"use strict";var pH=G("os");hL.exports=pH.homedir||function(){var t=process.env.HOME,r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||t||null:process.platform==="darwin"?t||(r?"/Users/"+r:null):process.platform==="linux"?t||(process.getuid()===0?"/root":r?"/home/"+r:null):t||null}});var jh=_((fJ,pL)=>{pL.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(r,i){return i};var t=new Error().stack;return Error.prepareStackTrace=e,t[2].getFileName()}});var dL=_((cJ,$s)=>{"use strict";var dH=process.platform==="win32",gH=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,Hh={};function mH(e){return gH.exec(e).slice(1)}Hh.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=mH(e);if(!t||t.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:t[1],dir:t[0]===t[1]?t[0]:t[0].slice(0,-1),base:t[2],ext:t[4],name:t[3]}};var vH=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,Wh={};function yH(e){return vH.exec(e).slice(1)}Wh.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=yH(e);if(!t||t.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:t[1],dir:t[0].slice(0,-1),base:t[2],ext:t[4],name:t[3]}};dH?$s.exports=Hh.parse:$s.exports=Wh.parse;$s.exports.posix=Wh.parse;$s.exports.win32=Hh.parse});var $h=_((hJ,yL)=>{var gL=G("path"),mL=gL.parse||dL(),vL=function(t,r){var i="/";/^([A-Za-z]:)/.test(t)?i="":/^\\\\/.test(t)&&(i="\\\\");for(var o=[t],u=mL(t);u.dir!==o[o.length-1];)o.push(u.dir),u=mL(u.dir);return o.reduce(function(l,f){return l.concat(r.map(function(d){return gL.resolve(i,f,d)}))},[])};yL.exports=function(t,r,i){var o=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths=="function")return r.paths(i,t,function(){return vL(t,o)},r);var u=vL(t,o);return r&&r.paths?u.concat(r.paths):u}});var Yh=_((pJ,_L)=>{var Ys=G("path");_L.exports=function(e,t){if(t=t||{},t.forceNodeResolution||!process.versions.pnp)return t;let{findPnpApi:r}=G("module"),i=(p,g)=>{let h=p.match(/^((?:@[^/]+\/)?[^/]+)(\/.*)?/);if(!h)throw new Error(`Assertion failed: Expected the "resolve" package to call the "paths" callback with package names only (got "${p}")`);g.charAt(g.length-1)!=="/"&&(g=Ys.join(g,"/"));let b=r(g);if(b===null)return;let w;try{w=b.resolveToUnqualified(`${h[1]}/package.json`,g,{considerBuiltins:!1})}catch(C){return null}if(w===null)throw new Error(`Assertion failed: The resolution thinks that "${h[1]}" is a Node builtin`);let S=Ys.dirname(w),L=typeof h[2]!="undefined"?Ys.join(S,h[2]):S;return{packagePath:S,unqualifiedPath:L}},o=(p,g)=>{for(let h=0;h{let w=[g].concat(u),S=o(p,w);return S==null?h():[S.unqualifiedPath]},f=(p,g,h,b)=>{let w=[g].concat(u),S=o(p,w);if(S==null)return h().concat(u);let L=Ys.dirname(S.packagePath);return p.match(/^@[^/]+\//)&&(L=Ys.dirname(L)),[L]},d=!1;return t.__skipPackageIterator||(t.packageIterator=function(p,g,h,b){d=!0;try{return l(p,g,h,b)}finally{d=!1}}),t.paths=function(p,g,h,b){return d?h().concat(u):f(p,g,h,b)},t}});var SL=_((dJ,wL)=>{var jn=G("fs"),_H=Gh(),We=G("path"),bH=jh(),wH=$h(),SH=Yh(),EH=Hs(),LH=jn.realpath&&typeof jn.realpath.native=="function"?jn.realpath.native:jn.realpath,bL=_H(),AH=function(){return[We.join(bL,".node_modules"),We.join(bL,".node_libraries")]},xH=function(t,r){jn.stat(t,function(i,o){return i?i.code==="ENOENT"||i.code==="ENOTDIR"?r(null,!1):r(i):r(null,o.isFile()||o.isFIFO())})},PH=function(t,r){jn.stat(t,function(i,o){return i?i.code==="ENOENT"||i.code==="ENOTDIR"?r(null,!1):r(i):r(null,o.isDirectory())})},CH=function(t,r){LH(t,function(i,o){i&&i.code!=="ENOENT"?r(i):r(null,i?t:o)})},Ks=function(t,r,i,o){i&&i.preserveSymlinks===!1?t(r,o):o(null,r)},OH=function(t,r,i){t(r,function(o,u){if(o)i(o);else try{var l=JSON.parse(u);i(null,l)}catch(f){i(null)}})},RH=function(t,r,i){for(var o=wH(r,i,t),u=0;u{TH.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var PL=_((mJ,xL)=>{var IH=process.versions&&process.versions.node&&process.versions.node.split(".")||[];function NH(e){for(var t=e.split(" "),r=t.length>1?t[0]:"=",i=(t.length>1?t[1]:t[0]).split("."),o=0;o<3;++o){var u=parseInt(IH[o]||0,10),l=parseInt(i[o]||0,10);if(u!==l)return r==="<"?u="?u>=l:!1}return r===">="}function LL(e){var t=e.split(/ ?&& ?/);if(t.length===0)return!1;for(var r=0;r{var MH=Hs();CL.exports=function(t){return MH(t)}});var IL=_((yJ,TL)=>{var qH=Hs(),Hn=G("fs"),at=G("path"),kH=Gh(),FH=jh(),BH=$h(),UH=Yh(),GH=Hn.realpathSync&&typeof Hn.realpathSync.native=="function"?Hn.realpathSync.native:Hn.realpathSync,RL=kH(),jH=function(){return[at.join(RL,".node_modules"),at.join(RL,".node_libraries")]},HH=function(t){try{var r=Hn.statSync(t,{throwIfNoEntry:!1})}catch(i){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR"))return!1;throw i}return!!r&&(r.isFile()||r.isFIFO())},WH=function(t){try{var r=Hn.statSync(t,{throwIfNoEntry:!1})}catch(i){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR"))return!1;throw i}return!!r&&r.isDirectory()},$H=function(t){try{return GH(t)}catch(r){if(r.code!=="ENOENT")throw r}return t},Vs=function(t,r,i){return i&&i.preserveSymlinks===!1?t(r):r},YH=function(t,r){var i=t(r);try{var o=JSON.parse(i);return o}catch(u){}},KH=function(t,r,i){for(var o=BH(r,i,t),u=0;u{var pu=SL();pu.core=PL();pu.isCore=OL();pu.sync=IL();NL.exports=pu});var qL=_((bJ,ML)=>{ML.exports=VH;function VH(e){if(!!e&&e!=="ERROR: No README data found!"){e=e.trim().split(` +`);for(var t=0;e[t]&&e[t].trim().match(/^(#|$)/);t++);for(var r=e.length,i=t+1;i{zH.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var GL=_((EJ,UL)=>{var FL=G("semver"),JH=wh(),du=cL(),XH=DL().isCore,ZH=["dependencies","devDependencies","optionalDependencies"],QH=qL(),zh=G("url"),fn=kL(),SJ=UL.exports={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=du.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()=="shortcut"?r.https():r.toString())}t.match(/github.com\/[^\/]+\/[^\/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(fn.topLevel).forEach(function(t){e.hasOwnProperty(t)&&this.warn("typo",t,fn.topLevel[t])},this)},fixScriptsField:function(e){if(!!e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):fn.script[t]&&!e.scripts[fn.script[t]]&&this.warn("typo",t,fn.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(!!e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){!e.man||typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(i){return!i||typeof i!="string"?(this.warn("nonStringBundleDependency",i),!1):(e.dependencies||(e.dependencies={}),e.dependencies.hasOwnProperty(i)||(this.warn("nonDependencyBundleDependency",i),e.dependencies[i]="*"),!0)},this))},fixDependencies:function(e,t){var r=!t;aW(e,this.warn),sW(e,this.warn),this.fixBundleDependenciesField(e),["dependencies","devDependencies"].forEach(function(i){if(i in e){if(!e[i]||typeof e[i]!="object"){this.warn("nonObjectDependencies",i),delete e[i];return}Object.keys(e[i]).forEach(function(o){var u=e[i][o];typeof u!="string"&&(this.warn("nonStringDependency",o,JSON.stringify(u)),delete e[i][o]);var l=du.fromUrl(e[i][o]);l&&(e[i][o]=l.toString())},this)}},this)},fixModulesField:function(e){e.modules&&(this.warn("deprecatedModules"),delete e.modules)},fixKeywordsField:function(e){typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,this.warn("nonArrayKeywords")):e.keywords&&(e.keywords=e.keywords.filter(function(t){return typeof t!="string"||!t?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(e,t){var r=!t;if(!e.version)return e.version="",!0;if(!FL.valid(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=FL.clean(e.version,r),!0},fixPeople:function(e){BL(e,nW),BL(e,iW)},fixNameField:function(e,t){typeof t=="boolean"?t={strict:t}:typeof t=="undefined"&&(t={});var r=t.strict;if(!e.name&&!r){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");r||(e.name=e.name.trim()),rW(e.name,r,t.allowLegacyCase),XH(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=QH(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=du.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){var r=/^.+@.*\..+$/;if(typeof e.bugs=="string")r.test(e.bugs)?e.bugs={email:e.bugs}:zh.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{uW(e.bugs,this.warn);var i=e.bugs;e.bugs={},i.url&&(typeof i.url=="string"&&zh.parse(i.url).protocol?e.bugs.url=i.url:this.warn("nonUrlBugsUrlField")),i.email&&(typeof i.email=="string"&&r.test(i.email)?e.bugs.email=i.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=du.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(!!e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;zh.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){if(e.license)typeof e.license!="string"||e.license.length<1||e.license.trim()===""?this.warn("invalidLicense"):JH(e.license).validForNewPackages||this.warn("invalidLicense");else return this.warn("missingLicense")}};function eW(e){if(e.charAt(0)!=="@")return!1;var t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function tW(e){return!e.match(/[\/@\s\+%:]/)&&e===encodeURIComponent(e)}function rW(e,t,r){if(e.charAt(0)==="."||!(eW(e)||tW(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function BL(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach(function(r){!Array.isArray(e[r])||(e[r]=e[r].map(t))}),e}function nW(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,i=r?" ("+r+")":"",o=e.email||e.mail,u=o?" <"+o+">":"";return t+u+i}function iW(e){if(typeof e!="string")return e;var t=e.match(/^([^\(<]+)/),r=e.match(/\(([^\)]+)\)/),i=e.match(/<([^>]+)>/),o={};return t&&t[0].trim()&&(o.name=t[0].trim()),i&&(o.email=i[1]),r&&(o.url=r[1]),o}function sW(e,t){var r=e.optionalDependencies;if(!!r){var i=e.dependencies||{};Object.keys(r).forEach(function(o){i[o]=r[o]}),e.dependencies=i}}function oW(e,t,r){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;r("deprecatedArrayDependencies",t);var i={};return e.filter(function(o){return typeof o=="string"}).forEach(function(o){o=o.trim().split(/(:?[@\s><=])/);var u=o.shift(),l=o.join("");l=l.trim(),l=l.replace(/^@/,""),i[u]=l}),i}function aW(e,t){ZH.forEach(function(r){!e[r]||(e[r]=oW(e[r],r,t))})}function uW(e,t){!e||Object.keys(e).forEach(function(r){fn.bugs[r]&&(t("typo",r,fn.bugs[r],"bugs"),e[fn.bugs[r]]=e[r],delete e[r])})}});var jL=_((LJ,lW)=>{lW.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var $L=_((AJ,WL)=>{var HL=G("util"),Jh=jL();WL.exports=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t=="typo")return fW.apply(null,e);var r=Jh[t]?Jh[t]:t+": '%s'";return e.unshift(r),HL.format.apply(null,e)};function fW(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),HL.format(Jh.typo,e,t)}});var Qh=_((xJ,VL)=>{VL.exports=YL;var Xh=GL();YL.fixer=Xh;var cW=$L(),hW=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],pW=["dependencies","people","typos"],Zh=hW.map(function(e){return KL(e)+"Field"});Zh=Zh.concat(pW);function YL(e,t,r){t===!0&&(t=null,r=!0),r||(r=!1),(!t||e.private)&&(t=function(i){}),e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall&&(e.gypfile=!0),Xh.warn=function(){t(cW.apply(null,arguments))},Zh.forEach(function(i){Xh["fix"+KL(i)](e,r)}),e._id=e.name+"@"+e.version}function KL(e){return e.charAt(0).toUpperCase()+e.slice(1)}});var tp=_((PJ,ep)=>{"use strict";var zL=G("path"),JL=tL(),XL=nL();ep.exports=(e,t)=>(typeof e!="string"&&(t=e,e="."),t=t||{},XL.dir(e).then(r=>(r&&(e=zL.join(e,"package.json")),JL(e))).then(r=>(t.normalize!==!1&&Qh()(r),r)));ep.exports.sync=(e,t)=>{typeof e!="string"&&(t=e,e="."),t=t||{},e=XL.dirSync(e)?zL.join(e,"package.json"):e;let r=JL.sync(e);return t.normalize!==!1&&Qh()(r),r}});var QL=_((CJ,rp)=>{"use strict";var ZL=G("fs");rp.exports=e=>new Promise(t=>{ZL.access(e,r=>{t(!r)})});rp.exports.sync=e=>{try{return ZL.accessSync(e),!0}catch(t){return!1}}});var tA=_((OJ,eA)=>{"use strict";eA.exports=e=>new Promise(t=>{t(e())})});var nA=_((RJ,rA)=>{"use strict";var dW=tA();rA.exports=e=>{if(e<1)throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=[],r=0,i=()=>{r--,t.length>0&&t.shift()()};return o=>new Promise((u,l)=>{let f=()=>{r++,dW(o).then(d=>{u(d),i()},d=>{l(d),i()})};r{"use strict";var iA=nA(),np=class extends Error{constructor(t){super();this.value=t}},gW=e=>Promise.all(e).then(t=>t[1]===!0&&Promise.reject(new np(t[0])));sA.exports=(e,t,r)=>{r=Object.assign({concurrency:Infinity,preserveOrder:!0},r);let i=iA(r.concurrency),o=Array.from(e).map(l=>[l,i(()=>Promise.resolve(l).then(t))]),u=iA(r.preserveOrder?1:Infinity);return Promise.all(o.map(l=>u(()=>gW(l)))).then(()=>{}).catch(l=>l instanceof np?l.value:Promise.reject(l))}});var lA=_((IJ,ip)=>{"use strict";var aA=G("path"),uA=QL(),mW=oA();ip.exports=(e,t)=>(t=Object.assign({cwd:process.cwd()},t),mW(e,r=>uA(aA.resolve(t.cwd,r)),t));ip.exports.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(let r of e)if(uA.sync(aA.resolve(t.cwd,r)))return r}});var cA=_((NJ,sp)=>{"use strict";var cn=G("path"),fA=lA();sp.exports=(e,t)=>{t=t||{};let r=cn.resolve(t.cwd||""),i=cn.parse(r).root,o=[].concat(e);return new Promise(u=>{(function l(f){fA(o,{cwd:f}).then(d=>{d?u(cn.join(f,d)):f===i?u(null):l(cn.dirname(f))})})(r)})};sp.exports.sync=(e,t)=>{t=t||{};let r=cn.resolve(t.cwd||""),i=cn.parse(r).root,o=[].concat(e);for(;;){let u=fA.sync(o,{cwd:r});if(u)return cn.join(r,u);if(r===i)return null;r=cn.dirname(r)}}});var dA=_((DJ,op)=>{"use strict";var hA=cA(),pA=tp();op.exports=e=>hA("package.json",e).then(t=>t?pA(t,e).then(r=>({pkg:r,path:t})):{});op.exports.sync=e=>{let t=hA.sync("package.json",e);return t?{pkg:pA.sync(t,e),path:t}:{}}});var gA=_((MJ,vW)=>{vW.exports={issue:"issue",commit:"commits",referenceActions:["close","closes","closed","closing","fix","fixes","fixed","fixing","resolve","resolves","resolved","resolving"],issuePrefixes:["#"]}});var mA=_((qJ,yW)=>{yW.exports={issue:"issues",commit:"commit",referenceActions:["close","closes","closed","fix","fixes","fixed","resolve","resolves","resolved"],issuePrefixes:["#","gh-"]}});var vA=_((kJ,_W)=>{_W.exports={issue:"issues",commit:"commit",referenceActions:["close","closes","closed","closing","fix","fixes","fixed","fixing"],issuePrefixes:["#"]}});var bA=_((FJ,_A)=>{"use strict";var bW=G("util").promisify,wW=ec(),SW=nS(),EW=tu(),LW=dE(),ap;try{ap=CE()}catch(e){ap=function(){return Promise.reject(e)}}var AW=tp(),xW=dA(),PW=G("url").URL,cr=Pn(),yA={bitbucket:gA(),github:mA(),gitlab:vA()},CW=new RegExp(Object.keys(yA).join("|"),"i");Promise.allSettled=Promise.allSettled||function(e){let t=e.map(r=>Promise.resolve(r).then(i=>({status:"fulfilled",value:i}),i=>({status:"rejected",reason:i})));return Promise.all(t)};function OW(e){return new Promise(function(t,r){EW({lernaTags:!!e.lernaPackage,package:e.lernaPackage,tagPrefix:e.tagPrefix,skipUnstable:e.skipUnstable},function(i,o){i?r(i):t(o)})})}function RW(e,t){return e?e[0]==="v"&&t[0]!=="v"?"v"+t:e[0]!=="v"&&t[0]==="v"?t.replace(/^v/,""):t:t[0]!=="v"?"v"+t:t}function TW(e,t,r,i,o,u){let l,f;t=t||{},r=r||{},u=u||{};let d=e&&e.tagPrefix?new RegExp(`tag:\\s*[=]?${e.tagPrefix}(.+?)[,)]`,"gi"):/tag:\s*[v=]?(.+?)[,)]/gi;e=cr.merge({pkg:{transform:function(g){return g}},append:!1,releaseCount:1,skipUnstable:!1,debug:function(){},transform:function(g,h){if(cr.isString(g.gitTags)){let b=d.exec(g.gitTags);d.lastIndex=0,b&&(g.version=b[1])}g.committerDate&&(g.committerDate=wW(g.committerDate,"yyyy-mm-dd",!0)),h(null,g)},lernaPackage:null},e),e.warn=e.warn||e.debug,e.config&&(typeof e.config=="function"?l=bW(e.config)():l=Promise.resolve(e.config)),e.pkg&&(e.pkg.path?f=AW(e.pkg.path):f=xW());let p=ap();return Promise.allSettled([l,f,OW(e),p]).then(function([g,h,b,w]){let S,L,C,O,F,D=[];if(l?g.status==="fulfilled"?S=g.value:(e.warn("Error in config"+g.reason.toString()),S={}):S={},t=cr.assign(t,S.context),e.pkg&&(h.status==="fulfilled"?(e.pkg.path?L=h.value:L=h.value.pkg||{},L=e.pkg.transform(L)):e.pkg.path&&e.warn(h.reason.toString())),(!L||!L.repository||!L.repository.url)&&w.status==="fulfilled"&&(L=L||{},L.repository=L.repository||{},L.repository.url=w.value,LW(L)),L){t.version=t.version||L.version;try{O=SW(L)}catch(R){O={}}if(O.browse){let R=O.browse();if(!t.host)if(O.domain){let V=new PW(R);V.origin.indexOf("//")!==-1?t.host=V.protocol+"//"+O.domain:t.host=V.protocol+O.domain}else t.host=null;t.owner=t.owner||O.user||"",t.repository=t.repository||O.project,O.host&&O.project&&O.user?t.repoUrl=R:t.repoUrl=t.host}t.packageData=L}if(t.version=t.version||"",b.status==="fulfilled"){D=t.gitSemverTags=b.value,C=D[e.releaseCount-1];let R=D[0];(R===t.version||R==="v"+t.version)&&(e.outputUnreleased?t.version="Unreleased":e.outputUnreleased=!1)}if(cr.isBoolean(e.outputUnreleased)||(e.outputUnreleased=!0),t.host&&(!t.issue||!t.commit||!i||!i.referenceActions)){let R;if(t.host){let V=t.host.match(CW);V&&(R=V[0])}else O&&O.type&&(R=O.type);R?(F=yA[R],t=cr.assign({issue:F.issue,commit:F.commit},t)):(e.warn('Host: "'+t.host+'" does not exist'),F={})}else F={};return t.resetChangelog&&(C=null),r=cr.assign({format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci",from:C,merges:!1,debug:e.debug},S.gitRawCommitsOpts,r),e.append&&(r.reverse=r.reverse||!0),i=cr.assign({},S.parserOpts,{warn:e.warn},i),F.referenceActions&&i&&(i.referenceActions=F.referenceActions),cr.isEmpty(i.issuePrefixes)&&F.issuePrefixes&&(i.issuePrefixes=F.issuePrefixes),o=cr.assign({finalizeContext:function(R,V,X,z,U){let I=U[0],W=U[U.length-1],k=I?I.hash:null,H=W?W.hash:null;if((!R.currentTag||!R.previousTag)&&z){let j=/tag:\s*(.+?)[,)]/gi.exec(z.gitTags),Y=R.currentTag;R.currentTag=Y||j?j[1]:null;let K=D.indexOf(R.currentTag);K===-1?R.currentTag=Y||null:(R.previousTag=D[K+1])||(e.append?R.previousTag=R.previousTag||k:R.previousTag=R.previousTag||H)}else R.previousTag=R.previousTag||D[0],R.version==="Unreleased"?e.append?R.currentTag=R.currentTag||H:R.currentTag=R.currentTag||k:R.currentTag||(e.lernaPackage?R.currentTag=e.lernaPackage+"@"+R.version:e.tagPrefix?R.currentTag=e.tagPrefix+R.version:R.currentTag=RW(D[0],R.version));return!cr.isBoolean(R.linkCompare)&&R.previousTag&&R.currentTag&&(R.linkCompare=!0),R},debug:e.debug},S.writerOpts,{reverse:e.append,doFlush:e.outputUnreleased},o),{options:e,context:t,gitRawCommitsOpts:r,parserOpts:i,writerOpts:o,gitRawExecOpts:u}})}_A.exports=TW});var AA=_((BJ,LA)=>{"use strict";var IW=lm(),wA=zf(),NW=Zf(),DW=qw(),MW=Pn(),SA=G("stream"),EA=bs(),qW=G("child_process").execFileSync,kW=bA();function FW(e,t,r,i,o,u){o=o||{};let l=new SA.Readable({objectMode:o.includeDetails});l._read=function(){};let f=!1,d=new SA.Readable({objectMode:!0});d._read=function(){};function p(g,h){return wA(MW.merge({},r,{from:g,to:h})).on("error",function(b){f||(setImmediate(d.emit.bind(d),"error",b),f=!0)})}return kW(e,t,r,i,o,u).then(function(g){e=g.options,t=g.context,r=g.gitRawCommitsOpts,i=g.parserOpts,o=g.writerOpts,u=g.gitRawExecOpts;try{qW("git",["rev-parse","--verify","HEAD"],{stdio:"ignore"});let h=t.gitSemverTags.slice(0).reverse();h.push("HEAD"),r.from&&(h.indexOf(r.from)!==-1?h=h.slice(h.indexOf(r.from)):h=[r.from,"HEAD"]);let b=h.map((w,S)=>{let L=S>0?h[S-1]:"";return p(L,w)});r.from&&(b=b.splice(1)),r.reverse&&b.reverse(),b.reduce((w,S)=>S.pipe(IW(w))).on("data",function(w){setImmediate(d.emit.bind(d),"data",w)}).on("end",function(){setImmediate(d.emit.bind(d),"end")})}catch(h){d=wA(r,u)}d.on("error",function(h){h.message="Error in git-raw-commits: "+h.message,setImmediate(l.emit.bind(l),"error",h)}).pipe(NW(i)).on("error",function(h){h.message="Error in conventional-commits-parser: "+h.message,setImmediate(l.emit.bind(l),"error",h)}).pipe(EA.obj(function(h,b,w){try{e.transform.call(this,h,w)}catch(S){w(S)}})).on("error",function(h){h.message="Error in options.transform: "+h.message,setImmediate(l.emit.bind(l),"error",h)}).pipe(DW(t,o)).on("error",function(h){h.message="Error in conventional-changelog-writer: "+h.message,setImmediate(l.emit.bind(l),"error",h)}).pipe(EA({objectMode:o.includeDetails},function(h,b,w){try{l.push(h)}catch(S){setImmediate(function(){throw S})}w()},function(h){l.push(null),h()}))}).catch(function(g){setImmediate(l.emit.bind(l),"error",g)}),l}LA.exports=FW});var lp=_((UJ,up)=>{"use strict";var xA=G("path");up.exports=PA(G);up.exports.presetLoader=PA;function PA(e){return t=>{let r="",i="",o="";if(typeof t=="string")r=t.toLowerCase(),xA.isAbsolute(t)&&(o=t);else if(typeof t=="object"&&t.name)r=t.name.toLowerCase(),xA.isAbsolute(t.name)&&(o=t.name);else throw Error("preset must be string or object with key name");if(!o){if(r[0]==="@"){let u=r.split("/");i=u.shift()+"/",r=u.join("/")}r.startsWith("conventional-changelog-")||(r=`conventional-changelog-${r}`)}try{let u=e(o||`${i}${r}`);return u&&!u.then&&typeof t=="object"?u(t):u}catch(u){throw Error("does not exist")}}}});var OA=_((GJ,CA)=>{var BW=Object.prototype.toString,fp=typeof Buffer!="undefined"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function UW(e){return BW.call(e).slice(8,-1)==="ArrayBuffer"}function GW(e,t,r){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(r===void 0)r=i;else if(r>>>=0,r>i)throw new RangeError("'length' is out of bounds");return fp?Buffer.from(e.slice(t,t+r)):new Buffer(new Uint8Array(e.slice(t,t+r)))}function jW(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return fp?Buffer.from(e,t):new Buffer(e,t)}function HW(e,t,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return UW(e)?GW(e,t,r):typeof e=="string"?jW(e,t):fp?Buffer.from(e):new Buffer(e)}CA.exports=HW});var MA=_(ue=>{var RA=void 0,WW=1e5,De=function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;return{Class:function(r){return e.call(r).replace(/^\[object *|\]$/g,"")},HasProperty:function(r,i){return i in r},HasOwnProperty:function(r,i){return t.call(r,i)},IsCallable:function(r){return typeof r=="function"},ToInt32:function(r){return r>>0},ToUint32:function(r){return r>>>0}}}(),$W=Math.LN2,YW=Math.abs,gu=Math.floor,KW=Math.log,VW=Math.min,er=Math.pow,zW=Math.round;function cp(e){if(TA&&Mi){var t=TA(e),r;for(r=0;rWW)throw new RangeError("Array too large for polyfill");function t(i){Mi(e,i,{get:function(){return e._getter(i)},set:function(o){e._setter(i,o)},enumerable:!0,configurable:!1})}var r;for(r=0;r>r}function pp(e,t){var r=32-t;return e<>>r}function XW(e){return[e&255]}function ZW(e){return hp(e[0],8)}function QW(e){return[e&255]}function IA(e){return pp(e[0],8)}function e$(e){return e=zW(Number(e)),[e<0?0:e>255?255:e&255]}function t$(e){return[e>>8&255,e&255]}function r$(e){return hp(e[0]<<8|e[1],16)}function n$(e){return[e>>8&255,e&255]}function i$(e){return pp(e[0]<<8|e[1],16)}function s$(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function o$(e){return hp(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function a$(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function u$(e){return pp(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function NA(e,t,r){var i=(1<.5||S%2?S+1:S}for(e!==e?(u=(1<=er(2,1-i)?(u=VW(gu(KW(e)/$W),1023),l=b(e/er(2,u)*er(2,r)),l/er(2,r)>=2&&(u=u+1,l=1),u>i?(u=(1<>1;return i.reverse(),f=i.join(""),d=(1<0?p*er(2,g-d)*(1+h/er(2,r)):h!==0?p*er(2,-(d-1))*(h/er(2,r)):p<0?-0:0}function l$(e){return DA(e,11,52)}function f$(e){return NA(e,11,52)}function c$(e){return DA(e,8,23)}function h$(e){return NA(e,8,23)}(function(){var e=function(w){if(w=De.ToInt32(w),w<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");this.byteLength=w,this._bytes=[],this._bytes.length=w;var S;for(S=0;Sthis.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=De.ToUint32(F),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else throw new TypeError("Unexpected argument type(s)");this.constructor=L,cp(this),JW(this)},L.prototype=new t,L.prototype.BYTES_PER_ELEMENT=b,L.prototype._pack=w,L.prototype._unpack=S,L.BYTES_PER_ELEMENT=b,L.prototype._getter=function(C){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if(C=De.ToUint32(C),C>=this.length)return RA;var O=[],F,D;for(F=0,D=this.byteOffset+C*this.BYTES_PER_ELEMENT;F=this.length)return RA;var F=this._pack(O),D,R;for(D=0,R=this.byteOffset+C*this.BYTES_PER_ELEMENT;Dthis.length)throw new RangeError("Offset plus length of array is out of range");if(I=this.byteOffset+R*this.BYTES_PER_ELEMENT,W=F.length*this.BYTES_PER_ELEMENT,F.buffer===this.buffer){for(k=[],X=0,z=F.byteOffset;Xthis.length)throw new RangeError("Offset plus length of array is out of range");for(X=0;XX?X:R}C=De.ToInt32(C),O=De.ToInt32(O),arguments.length<1&&(C=0),arguments.length<2&&(O=this.length),C<0&&(C=this.length+C),O<0&&(O=this.length+O),C=F(C,0,this.length),O=F(O,0,this.length);var D=O-C;return D<0&&(D=0),new this.constructor(this.buffer,this.byteOffset+C*this.BYTES_PER_ELEMENT,D)},L}var i=r(1,XW,ZW),o=r(1,QW,IA),u=r(1,e$,IA),l=r(2,t$,r$),f=r(2,n$,i$),d=r(4,s$,o$),p=r(4,a$,u$),g=r(4,h$,c$),h=r(8,f$,l$);ue.Int8Array=ue.Int8Array||i,ue.Uint8Array=ue.Uint8Array||o,ue.Uint8ClampedArray=ue.Uint8ClampedArray||u,ue.Int16Array=ue.Int16Array||l,ue.Uint16Array=ue.Uint16Array||f,ue.Int32Array=ue.Int32Array||d,ue.Uint32Array=ue.Uint32Array||p,ue.Float32Array=ue.Float32Array||g,ue.Float64Array=ue.Float64Array||h})();(function(){function e(u,l){return De.IsCallable(u.get)?u.get(l):u[l]}var t=function(){var u=new ue.Uint16Array([4660]),l=new ue.Uint8Array(u.buffer);return e(l,0)===18}(),r=function(l,f,d){if(arguments.length===0)l=new ue.ArrayBuffer(0);else if(!(l instanceof ue.ArrayBuffer||De.Class(l)==="ArrayBuffer"))throw new TypeError("TypeError");if(this.buffer=l||new ue.ArrayBuffer(0),this.byteOffset=De.ToUint32(f),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=De.ToUint32(d),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");cp(this)};function i(u){return function(l,f){if(l=De.ToUint32(l),l+u.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");l+=this.byteOffset;var d=new ue.Uint8Array(this.buffer,l,u.BYTES_PER_ELEMENT),p=[],g;for(g=0;gthis.byteLength)throw new RangeError("Array index out of range");var p=new u([f]),g=new ue.Uint8Array(p.buffer),h=[],b,w;for(b=0;b{var qA=ps().Writable,p$=wn(),zs=OA();typeof Uint8Array=="undefined"?mu=MA().Uint8Array:mu=Uint8Array;var mu;function Wn(e,t){if(!(this instanceof Wn))return new Wn(e,t);typeof e=="function"&&(t=e,e={}),e||(e={});var r=e.encoding,i=!1;r?(r=String(r).toLowerCase(),(r==="u8"||r==="uint8")&&(r="uint8array")):i=!0,qA.call(this,{objectMode:!0}),this.encoding=r,this.shouldInferEncoding=i,t&&this.on("finish",function(){t(this.getBody())}),this.body=[]}FA.exports=Wn;p$(Wn,qA);Wn.prototype._write=function(e,t,r){this.body.push(e),r()};Wn.prototype.inferEncoding=function(e){var t=e===void 0?this.body[0]:e;return Buffer.isBuffer(t)?"buffer":typeof Uint8Array!="undefined"&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":typeof t=="string"?"string":Object.prototype.toString.call(t)==="[object Object]"?"object":"buffer"};Wn.prototype.getBody=function(){return!this.encoding&&this.body.length===0?[]:(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),this.encoding==="array"?v$(this.body):this.encoding==="string"?g$(this.body):this.encoding==="buffer"?m$(this.body):this.encoding==="uint8array"?y$(this.body):this.body)};var HJ=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"};function d$(e){return/Array\]$/.test(Object.prototype.toString.call(e))}function kA(e){return typeof e=="string"||d$(e)||e&&typeof e.subarray=="function"}function g$(e){for(var t=[],r=!1,i=0;i{"use strict";var _$=G("util").promisify;UA.exports=b$;function b$(e){return typeof e=="function"?_$(e)():typeof e=="object"?Promise.resolve(e):Promise.reject(new Error("preset package must be a promise, function, or object"))}});var WA=_((YJ,HA)=>{"use strict";var w$=BA(),S$=pc(),E$=Zf(),L$=lp(),A$=tu(),x$=zf(),P$=GA(),C$=["major","minor","patch"];HA.exports=O$;function O$(e,t,r){if(typeof e!="object")throw new Error("The 'options' argument must be an object.");let i=Object.assign({ignoreReverted:!0},e),o=typeof t=="function"?t:r;if(typeof o!="function")throw new Error("You must provide a callback function.");let u=i.config||{};if(i.preset)try{u=L$(i.preset)}catch(l){if(l.message==="does not exist"){let f=typeof i.preset=="object"?i.preset.name:i.preset;return o(new Error(`Unable to load the "${f}" preset package. Please make sure it's installed.`))}else return o(l)}P$(u).then(l=>{let f=i.whatBump||(l.recommendedBumpOpts&&l.recommendedBumpOpts.whatBump?l.recommendedBumpOpts.whatBump:jA);if(typeof f!="function")throw Error("whatBump must be a function");let d=Object.assign({},l.recommendedBumpOpts&&l.recommendedBumpOpts.parserOpts?l.recommendedBumpOpts.parserOpts:l.parserOpts,t),p=typeof d.warn=="function"?d.warn:jA;A$({lernaTags:!!i.lernaPackage,package:i.lernaPackage,tagPrefix:i.tagPrefix,skipUnstable:i.skipUnstable},(g,h)=>{if(g)return o(g);x$({format:"%B%n-hash-%n%H",from:h[0]||"",path:i.path}).pipe(E$(d)).pipe(w$(b=>{let w=i.ignoreReverted?S$(b):b;(!w||!w.length)&&p("No commits since last release");let S=f(w,i);S&&S.level!=null?S.releaseType=C$[S.level]:S==null&&(S={}),o(null,S)}))})}).catch(l=>o(l))}function jA(){}});var lx=_((ZJ,ux)=>{ux.exports=ax;function ax(e,t){if(e&&t)return ax(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(i){r[i]=e[i]}),r;function r(){for(var i=new Array(arguments.length),o=0;o{var fx=lx();vp.exports=fx(_u);vp.exports.strict=fx(cx);_u.proto=_u(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return _u(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return cx(this)},configurable:!0})});function _u(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function cx(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var mx=_((eX,gx)=>{var px=ps(),T$=hx();function I$(e){return dx(e,{objectMode:!0,highWaterMark:16})}function N$(e){return dx(e)}function dx(e,t){if(!e||typeof e=="function"||e._readableState)return e;let r=new px.Readable(t).wrap(e);return e.destroy&&(r.destroy=e.destroy.bind(e)),r}var bu=class extends px.Readable{constructor(t,r){super(Vr(it({},r),{autoDestroy:!0}));this._drained=!1,this._forwarding=!1,this._current=null,this._toStreams2=r&&r.objectMode?I$:N$,typeof t=="function"?this._queue=t:(this._queue=t.map(this._toStreams2),this._queue.forEach(i=>{typeof i!="function"&&this._attachErrorListener(i)})),this._next()}_read(){this._drained=!0,this._forward()}_forward(){if(this._forwarding||!this._drained||!this._current)return;this._forwarding=!0;let t;for(;this._drained&&(t=this._current.read())!==null;)this._drained=this.push(t);this._forwarding=!1}_destroy(t,r){let i=[];if(this._current&&i.push(this._current),typeof this._queue!="function"&&(i=i.concat(this._queue)),i.length===0)r(t);else{let o=i.length,u=t;i.forEach(l=>{D$(l,t,f=>{u=u||f,--o==0&&r(u)})})}}_next(){if(this._current=null,typeof this._queue=="function")this._queue((t,r)=>{if(t)return this.destroy(t);r=this._toStreams2(r),this._attachErrorListener(r),this._gotNextStream(r)});else{let t=this._queue.shift();typeof t=="function"&&(t=this._toStreams2(t()),this._attachErrorListener(t)),this._gotNextStream(t)}}_gotNextStream(t){if(!t){this.push(null);return}this._current=t,this._forward();let r=()=>{this._forward()},i=()=>{if(!t._readableState.ended&&!t.destroyed){let u=new Error("ERR_STREAM_PREMATURE_CLOSE");u.code="ERR_STREAM_PREMATURE_CLOSE",this.destroy(u)}},o=()=>{this._current=null,t.removeListener("readable",r),t.removeListener("end",o),t.removeListener("close",i),t.destroy(),this._next()};t.on("readable",r),t.once("end",o),t.once("close",i)}_attachErrorListener(t){if(!t)return;let r=i=>{t.removeListener("error",r),this.destroy(i)};t.once("error",r)}};bu.obj=e=>new bu(e,{objectMode:!0,highWaterMark:16});gx.exports=bu;function D$(e,t,r){if(!e.destroy||e.destroyed)r(t);else{let i=T$(o=>r(o||t));e.on("error",i).on("close",()=>i()).destroy(t,i)}}});var k$={};Zg(k$,{default:()=>q$,releaseUtils:()=>gp});var Lu=Ce(G("@yarnpkg/core"));var nx=Ce(G("@yarnpkg/cli")),$e=Ce(G("@yarnpkg/core")),Mr=Ce(G("clipanion")),ix=Ce(G("semver")),yu=Ce(G("stream")),sx=Ce(G("util"));var gp={};Zg(gp,{changelogStream:()=>Js,recommendedBump:()=>dp});var xt=Ce(G("@yarnpkg/core")),$A=Ce(G("@yarnpkg/fslib")),YA=Ce(G("@yarnpkg/plugin-pnp")),KA=Ce(im()),VA=Ce(AA()),zA=Ce(lp()),JA=Ce(WA()),XA=Ce(tu()),ZA=Ce(G("module")),Dr=Ce(G("semver")),vu=Ce(G("util")),QA={patch:1,minor:2,major:3},ex=(0,vu.promisify)(XA.default);async function Js(e,...t){var w;let{cwd:r,locator:i,manifest:o,project:u}=e,[l={},f,d,p,g]=t,h=tx(u.cwd),b=e===u.topLevelWorkspace||!o.private;return(0,VA.default)(it({config:await rx(h,u.configuration.get("conventionalChangelogPreset")),pkg:{transform:()=>o.exportTo({version:i.reference})},lernaPackage:e===u.topLevelWorkspace?void 0:xt.structUtils.stringifyIdent(e.locator),tagPrefix:e===u.topLevelWorkspace?void 0:`${xt.structUtils.stringifyIdent(e.locator)}@`,outputUnreleased:!0},l),Vr(it({isPatch:!1,version:b?void 0:"Unreleased"},f),{date:b?(w=f==null?void 0:f.date)!=null?w:new Date().toISOString().split("T")[0]:void 0}),it({path:r},d),p,it({generateOn:S=>{let L=Dr.default.valid(S.version);return L&&(!l.skipUnstable||!Dr.default.prerelease(L))}},g))}async function dp(e,{prerelease:t,preid:r}={}){var g;let{cwd:i,manifest:o,project:u}=e,l=u.configuration.get("conventionalChangelogPreset"),f=u.configuration.get("releaseCalverFormat"),d=new Set(u.configuration.get("releaseCodeChangeTypes")),p=(0,vu.promisify)(JA.default);if(e===u.topLevelWorkspace)return o.version?R$(f,o.version,{prerelease:t,preid:r}):void 0;{let h=await rx(tx(u.cwd),l),b=await p({config:h,path:i,skipUnstable:!t,lernaPackage:xt.structUtils.stringifyIdent(e.locator),whatBump:D=>{var V;return D.some(X=>d.has(X.type))&&((V=h.recommendedBumpOpts)==null?void 0:V.whatBump)?h.recommendedBumpOpts.whatBump(D):{}}});if(!t||!b.releaseType)return b.releaseType;let[w]=await ex({skipUnstable:!1,lernaTags:!0,package:xt.structUtils.stringifyIdent(e.locator)});if(!w)return`pre${b.releaseType}`;let[S=`${xt.structUtils.stringifyIdent(e.locator)}@0.0.0`]=await ex({skipUnstable:!0,lernaTags:!0,package:xt.structUtils.stringifyIdent(e.locator)}),L=xt.structUtils.parseLocator(S).reference,C=xt.structUtils.parseLocator(w).reference,O=(g=Dr.default.diff(L,e.locator.reference))!=null?g:Dr.default.diff(L,C);if(!O)return`pre${b.releaseType}`;if(O==="prerelease")return"prerelease";let F=O.slice("pre".length);return QA[F]` +$|&><\`"'`.split("").some(r=>e.includes(r))?`'${e.replace(/'/g,"\\'")}'`:e,Xs=class extends nx.BaseCommand{constructor(){super(...arguments);this.json=Mr.Option.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.dryRun=Mr.Option.Boolean("--dry-run",!1,{description:"Prints the recommended version bump to stdout"});this.amend=Mr.Option.Boolean("--amend",!1,{description:"Amend the previous commit instead of creating a new one"});this.tagHead=Mr.Option.String("--tag-head","HEAD",{description:"Specify an alternative commit-ish to tag"})}async execute(){let t=await $e.Configuration.find(this.context.cwd,this.context.plugins),{project:r}=await $e.Project.find(t,this.context.cwd),{stdout:i}=await $e.execUtils.execvp("git",["tag","--list"],{cwd:r.cwd,strict:!0}),o=new Set(i.trim().split(/\s+/)),u=`v${r.topLevelWorkspace.locator.reference}`;if(o.has(u))throw new Mr.UsageError(`${u} has already been released`);let l=ix.default.prerelease(r.topLevelWorkspace.locator.reference);return(await $e.StreamReport.start({configuration:t,stdout:this.context.stdout,json:this.json},async d=>{let p=r.topLevelWorkspace.getRecursiveWorkspaceChildren().filter(C=>!C.manifest.private&&!o.has($e.structUtils.stringifyLocator(C.locator)));if(!p.length){d.reportWarning($e.MessageName.UNNAMED,"There are no workspaces to tag");return}let g=p.map(({locator:C,manifest:O})=>`${$e.structUtils.stringifyIdent(C)}: v${O.version}`).join(` +`),h=`chore: release ${u} + +${g}`,b=["commit","-m",h];this.amend&&b.push("--amend"),d.reportJson({gitOpt:"commit",commitMessage:h}),this.dryRun?d.reportInfo($e.MessageName.UNNAMED,`git ${b.map(mp).join(" ")}`):await $e.execUtils.execvp("git",b,{cwd:r.cwd,strict:!0});for(let{locator:C}of p){let O=$e.structUtils.stringifyLocator(C),F=["tag",O,this.tagHead];d.reportJson({gitOp:"tag",tagName:O}),this.dryRun?d.reportInfo($e.MessageName.UNNAMED,`git ${F.map(mp).join(" ")}`):await $e.execUtils.execvp("git",F,{cwd:r.cwd,strict:!0})}let w="",S=new yu.Transform({transform(C,O,F){w+=C.toString(),F(null,C)}});await(0,sx.promisify)(yu.pipeline)(await Js(r.topLevelWorkspace,{releaseCount:1,skipUnstable:!l}),S),w=w.split(` `).slice(2).join(` -`); - const tagArgs = [`tag`, `-a`, `-m`, `${projectTagName} -${changelogText}`, `--cleanup=verbatim`, projectTagName, this.tagHead]; - report2.reportJson({ - tagName: projectTagName, - tagMessage: changelogText - }); - if (this.dryRun) { - report2.reportInfo(import_core2.MessageName.UNNAMED, `git ${tagArgs.map(cliEscape).join(` `)}`); - } else { - await import_core2.execUtils.execvp(`git`, tagArgs, { - cwd: project.cwd, - strict: true - }); - } - }); - return report.exitCode(); - } - }; - ReleaseCommitCommand.usage = import_clipanion.Command.Usage({ - category: `Release-related commands`, - description: `Commits and tags releases`, - details: ` +`);let L=["tag","-a","-m",`${u} +${w}`,"--cleanup=verbatim",u,this.tagHead];d.reportJson({tagName:u,tagMessage:w}),this.dryRun?d.reportInfo($e.MessageName.UNNAMED,`git ${L.map(mp).join(" ")}`):await $e.execUtils.execvp("git",L,{cwd:r.cwd,strict:!0})})).exitCode()}};Xs.usage=Mr.Command.Usage({category:"Release-related commands",description:"Commits and tags releases",details:` This command will create a release for the current git project. - `, - examples: [ - [ - `Commits and tags a release for this project's workspaces`, - `yarn release-commit` - ] - ] - }); - ReleaseCommitCommand.paths = [[`release-commit`]]; - var releaseCommit_default = ReleaseCommitCommand; - - // pnp:/Users/herockk/Workspaces/yarn-plugins/packages/plugin-release/sources/commands/release.ts - var import_cli2 = __toModule(__require("@yarnpkg/cli")); - var import_core3 = __toModule(__require("@yarnpkg/core")); - var import_fslib2 = __toModule(__require("@yarnpkg/fslib")); - var import_clipanion2 = __toModule(__require("clipanion")); - var import_multistream = __toModule(require_multistream()); - var import_semver3 = __toModule(__require("semver")); - var import_stream2 = __toModule(__require("stream")); - var import_util3 = __toModule(__require("util")); - var CHANGELOG = `CHANGELOG.md`; - var ReleaseCommand = class extends import_cli2.BaseCommand { - constructor() { - super(...arguments); - this.json = import_clipanion2.Option.Boolean(`--json`, false, {description: `Format the output as an NDJSON stream`}); - this.dryRun = import_clipanion2.Option.Boolean(`--dry-run`, false, { - description: `Prints the recommended version bump to stdout` - }); - this.firstRelease = import_clipanion2.Option.Boolean(`--first-release`, false, { - description: `Skips bumping the version and regenerates the changelog from scratch` - }); - this.date = import_clipanion2.Option.String(`--date`, { - description: `Override the release date in the changelog with the provided string` - }); - this.prerelease = import_clipanion2.Option.String(`--prerelease`, false, { - description: `Add a prerelease identifier to new versions`, - tolerateBoolean: true - }); - this.includeUnstable = import_clipanion2.Option.Boolean(`--include-unstable`, false, { - description: `Create sections for unstable tags in the generated changelog. Implied by the --prerelease option` - }); - } - async execute() { - this.includeUnstable || (this.includeUnstable = this.prerelease !== false); - const configuration = await import_core3.Configuration.find(this.context.cwd, this.context.plugins); - const {project, workspace} = await import_core3.Project.find(configuration, this.context.cwd); - if (!workspace) - throw new import_cli2.WorkspaceRequiredError(project.cwd, this.context.cwd); - const ident = import_core3.structUtils.stringifyIdent(workspace.locator); - const report = await import_core3.StreamReport.start({ - configuration, - stdout: this.context.stdout, - json: this.json - }, async (report2) => { - const requiresVersion = workspace === project.topLevelWorkspace || !workspace.manifest.private; - const preid = typeof this.prerelease === `string` ? this.prerelease : void 0; - if (requiresVersion && !this.firstRelease) { - const recommendedStrategy = await recommendedBump(workspace, {prerelease: this.prerelease !== false, preid}); - if (!recommendedStrategy) { - report2.reportWarning(import_core3.MessageName.UNNAMED, `No code changes since last release`); - return; - } - const version = new import_semver3.SemVer(workspace.locator.reference); - if (import_semver3.default.valid(recommendedStrategy)) { - workspace.manifest.version = recommendedStrategy; - report2.reportJson({ident, newVersion: workspace.manifest.version}); - } else { - version.inc(recommendedStrategy, preid); - version.format(); - workspace.manifest.version = version.format(); - report2.reportJson({ident, strategy: recommendedStrategy, newVersion: workspace.manifest.version}); - } - report2.reportInfo(import_core3.MessageName.UNNAMED, `Recommended version bump: ${recommendedStrategy}`); - if (!this.dryRun) { - await workspace.persistManifest(); - } - } - const changelogPath = import_fslib2.ppath.join(workspace.cwd, CHANGELOG); - let text = ``; - const getText = new import_stream2.Transform({ - transform(chunk, encoding, callback) { - text += chunk.toString(); - callback(null, chunk); - } - }); - const changelog = await changelogStream(workspace, { - releaseCount: this.firstRelease ? 0 : 1, - skipUnstable: !this.includeUnstable - }, this.date == null ? void 0 : {date: this.date}); - const additionalStreams = []; - if (this.dryRun) { - additionalStreams.push(report2.createStreamReporter()); - await (0, import_util3.promisify)(import_stream2.pipeline)(changelog, getText, ...additionalStreams); - } else { - const outPath = import_fslib2.ppath.join(await import_fslib2.xfs.mktempPromise(), CHANGELOG); - const existingChangelog = new import_stream2.PassThrough(); - if (requiresVersion && !this.firstRelease) { - import_fslib2.xfs.createReadStream(changelogPath).on(`error`, function(err) { - if (err.code !== `ENOENT`) - throw err; - this.unpipe(existingChangelog); - existingChangelog.push(null); - }).pipe(existingChangelog); - } else { - existingChangelog.push(null); - } - const newChangelog = new import_stream2.PassThrough(); - additionalStreams.push(newChangelog); - await Promise.all([ - (0, import_util3.promisify)(import_stream2.pipeline)(new import_multistream.default([ - newChangelog, - existingChangelog - ]), import_fslib2.xfs.createWriteStream(outPath)), - (0, import_util3.promisify)(import_stream2.pipeline)(changelog, getText, ...additionalStreams) - ]); - await import_fslib2.xfs.copyFilePromise(outPath, changelogPath); - } - report2.reportJson({ident, changelogPath, changelog: text}); - if (!this.dryRun) { - await import_core3.execUtils.execvp(`git`, [`add`, import_fslib2.Filename.manifest, CHANGELOG], { - cwd: workspace.cwd, - strict: true - }); - await project.install({ - cache: await import_core3.Cache.find(configuration), - report: new import_core3.ThrowReport(), - persistProject: false - }); - await import_core3.scriptUtils.maybeExecuteWorkspaceLifecycleScript(workspace, `postrelease`, {report: report2}); - } - if (requiresVersion) { - report2.reportInfo(import_core3.MessageName.UNNAMED, `Released v${workspace.manifest.version}`); - } - }); - return report.exitCode(); - } - }; - ReleaseCommand.usage = import_clipanion2.Command.Usage({ - category: `Release-related commands`, - description: `Bumps version and generates a changelog for the active workspace`, - details: ` + `,examples:[["Commits and tags a release for this project's workspaces","yarn release-commit"]]}),Xs.paths=[["release-commit"]];var ox=Xs;var wu=Ce(G("@yarnpkg/cli")),Ye=Ce(G("@yarnpkg/core")),hr=Ce(G("@yarnpkg/fslib")),qr=Ce(G("clipanion")),vx=Ce(mx()),Su=Ce(G("semver")),kr=Ce(G("stream")),Eu=Ce(G("util"));var yp="CHANGELOG.md",Zs=class extends wu.BaseCommand{constructor(){super(...arguments);this.json=qr.Option.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.dryRun=qr.Option.Boolean("--dry-run",!1,{description:"Prints the recommended version bump to stdout"});this.firstRelease=qr.Option.Boolean("--first-release",!1,{description:"Skips bumping the version and regenerates the changelog from scratch"});this.date=qr.Option.String("--date",{description:"Override the release date in the changelog with the provided string"});this.prerelease=qr.Option.String("--prerelease",!1,{description:"Add a prerelease identifier to new versions",tolerateBoolean:!0});this.includeUnstable=qr.Option.Boolean("--include-unstable",!1,{description:"Create sections for unstable tags in the generated changelog. Implied by the --prerelease option"})}async execute(){this.includeUnstable||(this.includeUnstable=this.prerelease!==!1);let t=await Ye.Configuration.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ye.Project.find(t,this.context.cwd);if(!i)throw new wu.WorkspaceRequiredError(r.cwd,this.context.cwd);let o=Ye.structUtils.stringifyIdent(i.locator);return(await Ye.StreamReport.start({configuration:t,stdout:this.context.stdout,json:this.json},async l=>{let f=i===r.topLevelWorkspace||!i.manifest.private,d=typeof this.prerelease=="string"?this.prerelease:void 0;if(f&&!this.firstRelease){let S=await dp(i,{prerelease:this.prerelease!==!1,preid:d});if(!S){l.reportWarning(Ye.MessageName.UNNAMED,"No code changes since last release");return}let L=new Su.SemVer(i.locator.reference);Su.default.valid(S)?(i.manifest.version=S,l.reportJson({ident:o,newVersion:i.manifest.version})):(L.inc(S,d),L.format(),i.manifest.version=L.format(),l.reportJson({ident:o,strategy:S,newVersion:i.manifest.version})),l.reportInfo(Ye.MessageName.UNNAMED,`Recommended version bump: ${S}`),this.dryRun||await i.persistManifest()}let p=hr.ppath.join(i.cwd,yp),g="",h=new kr.Transform({transform(S,L,C){g+=S.toString(),C(null,S)}}),b=await Js(i,{releaseCount:this.firstRelease?0:1,skipUnstable:!this.includeUnstable},this.date==null?void 0:{date:this.date}),w=[];if(this.dryRun)w.push(l.createStreamReporter()),await(0,Eu.promisify)(kr.pipeline)(b,h,...w);else{let S=hr.ppath.join(await hr.xfs.mktempPromise(),yp),L=new kr.PassThrough;f&&!this.firstRelease?hr.xfs.createReadStream(p).on("error",function(O){if(O.code!=="ENOENT")throw O;this.unpipe(L),L.push(null)}).pipe(L):L.push(null);let C=new kr.PassThrough;w.push(C),await Promise.all([(0,Eu.promisify)(kr.pipeline)(new vx.default([C,L]),hr.xfs.createWriteStream(S)),(0,Eu.promisify)(kr.pipeline)(b,h,...w)]),await hr.xfs.copyFilePromise(S,p)}l.reportJson({ident:o,changelogPath:p,changelog:g}),this.dryRun||(await Ye.execUtils.execvp("git",["add",hr.Filename.manifest,yp],{cwd:i.cwd,strict:!0}),await r.install({cache:await Ye.Cache.find(t),report:new Ye.ThrowReport,persistProject:!1}),await Ye.scriptUtils.maybeExecuteWorkspaceLifecycleScript(i,"postrelease",{report:l})),f&&l.reportInfo(Ye.MessageName.UNNAMED,`Released v${i.manifest.version}`)})).exitCode()}};Zs.usage=qr.Command.Usage({category:"Release-related commands",description:"Bumps version and generates a changelog for the active workspace",details:` This command will prepare the current workspace for a new release. - `, - examples: [ - [ - `Creates a release for the current workspace`, - `yarn release` - ], - [ - `Creates a release candidate for the current workspace`, - `yarn release --prerelease=rc` - ] - ] - }); - ReleaseCommand.paths = [[`release`]]; - var release_default = ReleaseCommand; - - // pnp:/Users/herockk/Workspaces/yarn-plugins/packages/plugin-release/sources/index.ts - var plugin = { - configuration: { - releaseCalverFormat: { - description: `A CalVer (calendar version) format to use for monorepo versions. Must include the semver level.`, - type: import_core4.SettingsType.STRING, - default: `YY.MM.micro` - }, - releaseCodeChangeTypes: { - description: `A list of commit types that correlate to code changes. Types outside of this set will not generate new releases.`, - isArray: true, - type: import_core4.SettingsType.STRING, - default: [`feat`, `fix`, `perf`, `refactor`] - }, - conventionalChangelogPreset: { - description: `A preset value to pass to conventional-changelog-preset-loader`, - type: import_core4.SettingsType.STRING, - default: `conventionalcommits` - } - }, - commands: [ - release_default, - releaseCommit_default - ] - }; - var sources_default = plugin; - return sources_exports; -})(); + `,examples:[["Creates a release for the current workspace","yarn release"],["Creates a release candidate for the current workspace","yarn release --prerelease=rc"]]}),Zs.paths=[["release"]];var yx=Zs;var M$={configuration:{releaseCalverFormat:{description:"A CalVer (calendar version) format to use for monorepo versions. Must include the semver level.",type:Lu.SettingsType.STRING,default:"YY.MM.micro"},releaseCodeChangeTypes:{description:"A list of commit types that correlate to code changes. Types outside of this set will not generate new releases.",isArray:!0,type:Lu.SettingsType.STRING,default:["feat","fix","perf","refactor"]},conventionalChangelogPreset:{description:"A preset value to pass to conventional-changelog-preset-loader",type:Lu.SettingsType.STRING,default:"conventionalcommits"}},commands:[yx,ox]},q$=M$;return k$;})(); /*! multistream. MIT License. Feross Aboukhadijeh */ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ /** diff --git a/packages/plugin-release/package.json b/packages/plugin-release/package.json index 8f7abe5..edd220d 100644 --- a/packages/plugin-release/package.json +++ b/packages/plugin-release/package.json @@ -1,6 +1,6 @@ { "name": "@kherock/yarn-plugin-release", - "version": "1.7.0-force", + "version": "1.7.0", "license": "BSD-2-Clause", "main": "./sources/index.ts", "author": "Kyle Herock ", diff --git a/packages/plugin-workspaces-export/CHANGELOG.md b/packages/plugin-workspaces-export/CHANGELOG.md index 41606fd..77fd281 100644 --- a/packages/plugin-workspaces-export/CHANGELOG.md +++ b/packages/plugin-workspaces-export/CHANGELOG.md @@ -1,3 +1,10 @@ +## [3.2.0](https://github.com/kherock/yarn-plugins/compare/@kherock/yarn-plugin-workspaces-export@3.1.1...@kherock/yarn-plugin-workspaces-export@3.2.0) (2022-08-12) + + +### Features + +* **plugin-workspaces-export:** support interlaced output ([9afd062](https://github.com/kherock/yarn-plugins/commit/9afd062855681c557ee2c466031d7730e661bc80)) + ## [3.1.1](https://github.com/kherock/yarn-plugins/compare/@kherock/yarn-plugin-workspaces-export@3.1.0...@kherock/yarn-plugin-workspaces-export@3.1.1) (2022-04-18) diff --git a/packages/plugin-workspaces-export/package.json b/packages/plugin-workspaces-export/package.json index e4877af..bc65dc7 100644 --- a/packages/plugin-workspaces-export/package.json +++ b/packages/plugin-workspaces-export/package.json @@ -1,6 +1,6 @@ { "name": "@kherock/yarn-plugin-workspaces-export", - "version": "3.1.1", + "version": "3.2.0", "license": "BSD-2-Clause", "main": "./sources/index.ts", "author": "Kyle Herock ",