diff --git a/action.yml b/action.yml index ac2beb9..0e44cc6 100644 --- a/action.yml +++ b/action.yml @@ -39,7 +39,7 @@ outputs: svg: description: "The diagram contents as text" runs: - using: "node12" + using: "node16" main: "index.js" branding: color: "purple" diff --git a/index.js b/index.js index f379a35..861d459 100644 --- a/index.js +++ b/index.js @@ -569,24 +569,24 @@ var require_toolrunner = __commonJS({ if (IS_WINDOWS) { if (this._isCmdFile()) { cmd2 += toolPath; - for (const a2 of args) { - cmd2 += ` ${a2}`; + for (const a3 of args) { + cmd2 += ` ${a3}`; } } else if (options.windowsVerbatimArguments) { cmd2 += `"${toolPath}"`; - for (const a2 of args) { - cmd2 += ` ${a2}`; + for (const a3 of args) { + cmd2 += ` ${a3}`; } } else { cmd2 += this._windowsQuoteCmdArg(toolPath); - for (const a2 of args) { - cmd2 += ` ${this._windowsQuoteCmdArg(a2)}`; + for (const a3 of args) { + cmd2 += ` ${this._windowsQuoteCmdArg(a3)}`; } } } else { cmd2 += toolPath; - for (const a2 of args) { - cmd2 += ` ${a2}`; + for (const a3 of args) { + cmd2 += ` ${a3}`; } } return cmd2; @@ -619,9 +619,9 @@ var require_toolrunner = __commonJS({ if (IS_WINDOWS) { if (this._isCmdFile()) { let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`; - for (const a2 of this.args) { + for (const a3 of this.args) { argline += " "; - argline += options.windowsVerbatimArguments ? a2 : this._windowsQuoteCmdArg(a2); + argline += options.windowsVerbatimArguments ? a3 : this._windowsQuoteCmdArg(a3); } argline += '"'; return [argline]; @@ -853,39 +853,39 @@ var require_toolrunner = __commonJS({ let inQuotes = false; let escaped = false; let arg = ""; - function append(c3) { - if (escaped && c3 !== '"') { + function append(c4) { + if (escaped && c4 !== '"') { arg += "\\"; } - arg += c3; + arg += c4; escaped = false; } for (let i = 0; i < argString.length; i++) { - const c3 = argString.charAt(i); - if (c3 === '"') { + const c4 = argString.charAt(i); + if (c4 === '"') { if (!escaped) { inQuotes = !inQuotes; } else { - append(c3); + append(c4); } continue; } - if (c3 === "\\" && escaped) { - append(c3); + if (c4 === "\\" && escaped) { + append(c4); continue; } - if (c3 === "\\" && inQuotes) { + if (c4 === "\\" && inQuotes) { escaped = true; continue; } - if (c3 === " " && !inQuotes) { + if (c4 === " " && !inQuotes) { if (arg.length > 0) { args.push(arg); arg = ""; } continue; } - append(c3); + append(c4); } if (arg.length > 0) { args.push(arg.trim()); @@ -1075,7 +1075,7 @@ var require_utils = __commonJS({ "node_modules/@actions/core/lib/utils.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.toCommandValue = void 0; + exports2.toCommandProperties = exports2.toCommandValue = void 0; function toCommandValue(input) { if (input === null || input === void 0) { return ""; @@ -1085,6 +1085,20 @@ var require_utils = __commonJS({ return JSON.stringify(input); } exports2.toCommandValue = toCommandValue; + function toCommandProperties(annotationProperties) { + if (!Object.keys(annotationProperties).length) { + return {}; + } + return { + title: annotationProperties.title, + file: annotationProperties.file, + line: annotationProperties.startLine, + endLine: annotationProperties.endLine, + col: annotationProperties.startColumn, + endColumn: annotationProperties.endColumn + }; + } + exports2.toCommandProperties = toCommandProperties; } }); @@ -1175,6 +1189,497 @@ var require_command = __commonJS({ } }); +// node_modules/uuid/dist/rng.js +var require_rng = __commonJS({ + "node_modules/uuid/dist/rng.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = rng; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var rnds8Pool = new Uint8Array(256); + var poolPtr = rnds8Pool.length; + function rng() { + if (poolPtr > rnds8Pool.length - 16) { + _crypto.default.randomFillSync(rnds8Pool); + poolPtr = 0; + } + return rnds8Pool.slice(poolPtr, poolPtr += 16); + } + } +}); + +// node_modules/uuid/dist/regex.js +var require_regex = __commonJS({ + "node_modules/uuid/dist/regex.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/validate.js +var require_validate = __commonJS({ + "node_modules/uuid/dist/validate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _regex = _interopRequireDefault(require_regex()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function validate(uuid) { + return typeof uuid === "string" && _regex.default.test(uuid); + } + var _default = validate; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/stringify.js +var require_stringify = __commonJS({ + "node_modules/uuid/dist/stringify.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var byteToHex = []; + for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 256).toString(16).substr(1)); + } + function stringify(arr, offset = 0) { + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); + if (!(0, _validate.default)(uuid)) { + throw TypeError("Stringified UUID is invalid"); + } + return uuid; + } + var _default = stringify; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v1.js +var require_v1 = __commonJS({ + "node_modules/uuid/dist/v1.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var _nodeId; + var _clockseq; + var _lastMSecs = 0; + var _lastNSecs = 0; + function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); + if (node == null) { + node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + if (clockseq == null) { + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; + } + } + let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); + let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; + if (dt < 0 && options.clockseq === void 0) { + clockseq = clockseq + 1 & 16383; + } + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) { + nsecs = 0; + } + if (nsecs >= 1e4) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; + msecs += 122192928e5; + const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; + b[i++] = tl >>> 24 & 255; + b[i++] = tl >>> 16 & 255; + b[i++] = tl >>> 8 & 255; + b[i++] = tl & 255; + const tmh = msecs / 4294967296 * 1e4 & 268435455; + b[i++] = tmh >>> 8 & 255; + b[i++] = tmh & 255; + b[i++] = tmh >>> 24 & 15 | 16; + b[i++] = tmh >>> 16 & 255; + b[i++] = clockseq >>> 8 | 128; + b[i++] = clockseq & 255; + for (let n2 = 0; n2 < 6; ++n2) { + b[i + n2] = node[n2]; + } + return buf || (0, _stringify.default)(b); + } + var _default = v1; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/parse.js +var require_parse = __commonJS({ + "node_modules/uuid/dist/parse.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function parse(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError("Invalid UUID"); + } + let v2; + const arr = new Uint8Array(16); + arr[0] = (v2 = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v2 >>> 16 & 255; + arr[2] = v2 >>> 8 & 255; + arr[3] = v2 & 255; + arr[4] = (v2 = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v2 & 255; + arr[6] = (v2 = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v2 & 255; + arr[8] = (v2 = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v2 & 255; + arr[10] = (v2 = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; + arr[11] = v2 / 4294967296 & 255; + arr[12] = v2 >>> 24 & 255; + arr[13] = v2 >>> 16 & 255; + arr[14] = v2 >>> 8 & 255; + arr[15] = v2 & 255; + return arr; + } + var _default = parse; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v35.js +var require_v35 = __commonJS({ + "node_modules/uuid/dist/v35.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = _default; + exports2.URL = exports2.DNS = void 0; + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = []; + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + return bytes; + } + var DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; + exports2.DNS = DNS; + var URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; + exports2.URL = URL2; + function _default(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === "string") { + value = stringToBytes(value); + } + if (typeof namespace === "string") { + namespace = (0, _parse.default)(namespace); + } + if (namespace.length !== 16) { + throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); + } + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 15 | version; + bytes[8] = bytes[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + return buf; + } + return (0, _stringify.default)(bytes); + } + try { + generateUUID.name = name; + } catch (err) { + } + generateUUID.DNS = DNS; + generateUUID.URL = URL2; + return generateUUID; + } + } +}); + +// node_modules/uuid/dist/md5.js +var require_md5 = __commonJS({ + "node_modules/uuid/dist/md5.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return _crypto.default.createHash("md5").update(bytes).digest(); + } + var _default = md5; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v3.js +var require_v3 = __commonJS({ + "node_modules/uuid/dist/v3.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _md = _interopRequireDefault(require_md5()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v3 = (0, _v.default)("v3", 48, _md.default); + var _default = v3; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v4.js +var require_v4 = __commonJS({ + "node_modules/uuid/dist/v4.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function v4(options, buf, offset) { + options = options || {}; + const rnds = options.random || (options.rng || _rng.default)(); + rnds[6] = rnds[6] & 15 | 64; + rnds[8] = rnds[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + return buf; + } + return (0, _stringify.default)(rnds); + } + var _default = v4; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/sha1.js +var require_sha1 = __commonJS({ + "node_modules/uuid/dist/sha1.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return _crypto.default.createHash("sha1").update(bytes).digest(); + } + var _default = sha1; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v5.js +var require_v5 = __commonJS({ + "node_modules/uuid/dist/v5.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _sha = _interopRequireDefault(require_sha1()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v5 = (0, _v.default)("v5", 80, _sha.default); + var _default = v5; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/nil.js +var require_nil = __commonJS({ + "node_modules/uuid/dist/nil.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _default = "00000000-0000-0000-0000-000000000000"; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/version.js +var require_version = __commonJS({ + "node_modules/uuid/dist/version.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function version(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError("Invalid UUID"); + } + return parseInt(uuid.substr(14, 1), 16); + } + var _default = version; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/index.js +var require_dist = __commonJS({ + "node_modules/uuid/dist/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + Object.defineProperty(exports2, "v1", { + enumerable: true, + get: function() { + return _v.default; + } + }); + Object.defineProperty(exports2, "v3", { + enumerable: true, + get: function() { + return _v2.default; + } + }); + Object.defineProperty(exports2, "v4", { + enumerable: true, + get: function() { + return _v3.default; + } + }); + Object.defineProperty(exports2, "v5", { + enumerable: true, + get: function() { + return _v4.default; + } + }); + Object.defineProperty(exports2, "NIL", { + enumerable: true, + get: function() { + return _nil.default; + } + }); + Object.defineProperty(exports2, "version", { + enumerable: true, + get: function() { + return _version.default; + } + }); + Object.defineProperty(exports2, "validate", { + enumerable: true, + get: function() { + return _validate.default; + } + }); + Object.defineProperty(exports2, "stringify", { + enumerable: true, + get: function() { + return _stringify.default; + } + }); + Object.defineProperty(exports2, "parse", { + enumerable: true, + get: function() { + return _parse.default; + } + }); + var _v = _interopRequireDefault(require_v1()); + var _v2 = _interopRequireDefault(require_v3()); + var _v3 = _interopRequireDefault(require_v4()); + var _v4 = _interopRequireDefault(require_v5()); + var _nil = _interopRequireDefault(require_nil()); + var _version = _interopRequireDefault(require_version()); + var _validate = _interopRequireDefault(require_validate()); + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + } +}); + // node_modules/@actions/core/lib/file-command.js var require_file_command = __commonJS({ "node_modules/@actions/core/lib/file-command.js"(exports2) { @@ -1208,11 +1713,12 @@ var require_file_command = __commonJS({ return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.issueCommand = void 0; + exports2.prepareKeyValueMessage = exports2.issueFileCommand = void 0; var fs4 = __importStar(require("fs")); var os2 = __importStar(require("os")); + var uuid_1 = require_dist(); var utils_1 = require_utils(); - function issueCommand(command2, message) { + function issueFileCommand(command2, message) { const filePath = process.env[`GITHUB_${command2}`]; if (!filePath) { throw new Error(`Unable to find environment variable for file command ${command2}`); @@ -1224,376 +1730,311 @@ var require_file_command = __commonJS({ encoding: "utf8" }); } - exports2.issueCommand = issueCommand; + exports2.issueFileCommand = issueFileCommand; + function prepareKeyValueMessage(key, value) { + const delimiter = `ghadelimiter_${uuid_1.v4()}`; + const convertedValue = utils_1.toCommandValue(value); + if (key.includes(delimiter)) { + throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`); + } + if (convertedValue.includes(delimiter)) { + throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`); + } + return `${key}<<${delimiter}${os2.EOL}${convertedValue}${os2.EOL}${delimiter}`; + } + exports2.prepareKeyValueMessage = prepareKeyValueMessage; } }); -// node_modules/@actions/core/lib/core.js -var require_core = __commonJS({ - "node_modules/@actions/core/lib/core.js"(exports2) { +// node_modules/@actions/core/node_modules/@actions/http-client/lib/proxy.js +var require_proxy = __commonJS({ + "node_modules/@actions/core/node_modules/@actions/http-client/lib/proxy.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m4[k]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { - Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { - o["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { - if (mod2 && mod2.__esModule) - return mod2; - var result = {}; - if (mod2 != null) { - for (var k in mod2) - if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) - __createBinding(result, mod2, k); - } - __setModuleDefault(result, mod2); - return result; - }; - var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.checkBypass = exports2.getProxyUrl = void 0; + function getProxyUrl(reqUrl) { + const usingSsl = reqUrl.protocol === "https:"; + if (checkBypass(reqUrl)) { + return void 0; } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e3) { - reject(e3); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e3) { - reject(e3); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + const proxyVar = (() => { + if (usingSsl) { + return process.env["https_proxy"] || process.env["HTTPS_PROXY"]; + } else { + return process.env["http_proxy"] || process.env["HTTP_PROXY"]; } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; - var command_1 = require_command(); - var file_command_1 = require_file_command(); - var utils_1 = require_utils(); - var os2 = __importStar(require("os")); - var path = __importStar(require("path")); - var ExitCode; - (function(ExitCode2) { - ExitCode2[ExitCode2["Success"] = 0] = "Success"; - ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; - })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); - function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val); - process.env[name] = convertedVal; - const filePath = process.env["GITHUB_ENV"] || ""; - if (filePath) { - const delimiter = "_GitHubActionsFileCommandDelimeter_"; - const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; - file_command_1.issueCommand("ENV", commandValue); + })(); + if (proxyVar) { + return new URL(proxyVar); } else { - command_1.issueCommand("set-env", { name }, convertedVal); + return void 0; } } - exports2.exportVariable = exportVariable; - function setSecret(secret) { - command_1.issueCommand("add-mask", {}, secret); - } - exports2.setSecret = setSecret; - function addPath(inputPath) { - const filePath = process.env["GITHUB_PATH"] || ""; - if (filePath) { - file_command_1.issueCommand("PATH", inputPath); - } else { - command_1.issueCommand("add-path", {}, inputPath); + exports2.getProxyUrl = getProxyUrl; + function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; } - process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; - } - exports2.addPath = addPath; - function getInput2(name, options) { - const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; - if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`); + const noProxy = process.env["no_proxy"] || process.env["NO_PROXY"] || ""; + if (!noProxy) { + return false; } - if (options && options.trimWhitespace === false) { - return val; + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } else if (reqUrl.protocol === "http:") { + reqPort = 80; + } else if (reqUrl.protocol === "https:") { + reqPort = 443; } - return val.trim(); - } - exports2.getInput = getInput2; - function getMultilineInput(name, options) { - const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); - return inputs; - } - exports2.getMultilineInput = getMultilineInput; - function getBooleanInput2(name, options) { - const trueValue = ["true", "True", "TRUE"]; - const falseValue = ["false", "False", "FALSE"]; - const val = getInput2(name, options); - if (trueValue.includes(val)) - return true; - if (falseValue.includes(val)) - return false; - throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); - } - exports2.getBooleanInput = getBooleanInput2; - function setOutput2(name, value) { - process.stdout.write(os2.EOL); - command_1.issueCommand("set-output", { name }, value); - } - exports2.setOutput = setOutput2; - function setCommandEcho(enabled) { - command_1.issue("echo", enabled ? "on" : "off"); - } - exports2.setCommandEcho = setCommandEcho; - function setFailed2(message) { - process.exitCode = ExitCode.Failure; - error(message); - } - exports2.setFailed = setFailed2; - function isDebug() { - return process.env["RUNNER_DEBUG"] === "1"; - } - exports2.isDebug = isDebug; - function debug(message) { - command_1.issueCommand("debug", {}, message); - } - exports2.debug = debug; - function error(message) { - command_1.issue("error", message instanceof Error ? message.toString() : message); - } - exports2.error = error; - function warning(message) { - command_1.issue("warning", message instanceof Error ? message.toString() : message); - } - exports2.warning = warning; - function info2(message) { - process.stdout.write(message + os2.EOL); - } - exports2.info = info2; - function startGroup2(name) { - command_1.issue("group", name); - } - exports2.startGroup = startGroup2; - function endGroup2() { - command_1.issue("endgroup"); - } - exports2.endGroup = endGroup2; - function group(name, fn) { - return __awaiter(this, void 0, void 0, function* () { - startGroup2(name); - let result; - try { - result = yield fn(); - } finally { - endGroup2(); + const upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === "number") { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + for (const upperNoProxyItem of noProxy.split(",").map((x2) => x2.trim().toUpperCase()).filter((x2) => x2)) { + if (upperReqHosts.some((x2) => x2 === upperNoProxyItem)) { + return true; } - return result; - }); - } - exports2.group = group; - function saveState(name, value) { - command_1.issueCommand("save-state", { name }, value); - } - exports2.saveState = saveState; - function getState(name) { - return process.env[`STATE_${name}`] || ""; + } + return false; } - exports2.getState = getState; + exports2.checkBypass = checkBypass; } }); -// node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js -var require_utils2 = __commonJS({ - "node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js"(exports2) { +// node_modules/tunnel/lib/tunnel.js +var require_tunnel = __commonJS({ + "node_modules/tunnel/lib/tunnel.js"(exports2) { "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.toCommandProperties = exports2.toCommandValue = void 0; - function toCommandValue(input) { - if (input === null || input === void 0) { - return ""; - } else if (typeof input === "string" || input instanceof String) { - return input; - } - return JSON.stringify(input); + var net = require("net"); + var tls = require("tls"); + var http2 = require("http"); + var https = require("https"); + var events = require("events"); + var assert = require("assert"); + var util = require("util"); + exports2.httpOverHttp = httpOverHttp; + exports2.httpsOverHttp = httpsOverHttp; + exports2.httpOverHttps = httpOverHttps; + exports2.httpsOverHttps = httpsOverHttps; + function httpOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http2.request; + return agent; } - exports2.toCommandValue = toCommandValue; - function toCommandProperties(annotationProperties) { - if (!Object.keys(annotationProperties).length) { - return {}; - } - return { - title: annotationProperties.title, - line: annotationProperties.startLine, - endLine: annotationProperties.endLine, - col: annotationProperties.startColumn, - endColumn: annotationProperties.endColumn - }; + function httpsOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http2.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; } - exports2.toCommandProperties = toCommandProperties; - } -}); - -// node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js -var require_command2 = __commonJS({ - "node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js"(exports2) { - "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m4[k]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { - Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { - o["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { - if (mod2 && mod2.__esModule) - return mod2; - var result = {}; - if (mod2 != null) { - for (var k in mod2) - if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) - __createBinding(result, mod2, k); - } - __setModuleDefault(result, mod2); - return result; - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.issue = exports2.issueCommand = void 0; - var os2 = __importStar(require("os")); - var utils_1 = require_utils2(); - function issueCommand(command2, properties2, message) { - const cmd2 = new Command(command2, properties2, message); - process.stdout.write(cmd2.toString() + os2.EOL); + function httpOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + return agent; } - exports2.issueCommand = issueCommand; - function issue(name, message = "") { - issueCommand(name, {}, message); + function httpsOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; } - exports2.issue = issue; - var CMD_STRING = "::"; - var Command = class { - constructor(command2, properties2, message) { - if (!command2) { - command2 = "missing.command"; - } - this.command = command2; - this.properties = properties2; - this.message = message; - } - toString() { - let cmdStr = CMD_STRING + this.command; - if (this.properties && Object.keys(this.properties).length > 0) { - cmdStr += " "; - let first = true; - for (const key in this.properties) { - if (this.properties.hasOwnProperty(key)) { - const val = this.properties[key]; - if (val) { - if (first) { - first = false; - } else { - cmdStr += ","; - } - cmdStr += `${key}=${escapeProperty(val)}`; - } - } + function TunnelingAgent(options) { + var self3 = this; + self3.options = options || {}; + self3.proxyOptions = self3.options.proxy || {}; + self3.maxSockets = self3.options.maxSockets || http2.Agent.defaultMaxSockets; + self3.requests = []; + self3.sockets = []; + self3.on("free", function onFree(socket, host, port, localAddress) { + var options2 = toOptions(host, port, localAddress); + for (var i = 0, len = self3.requests.length; i < len; ++i) { + var pending = self3.requests[i]; + if (pending.host === options2.host && pending.port === options2.port) { + self3.requests.splice(i, 1); + pending.request.onSocket(socket); + return; } } - cmdStr += `${CMD_STRING}${escapeData(this.message)}`; - return cmdStr; - } - }; - function escapeData(s) { - return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); - } - function escapeProperty(s) { - return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); + socket.destroy(); + self3.removeSocket(socket); + }); } - } -}); - -// node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js -var require_file_command2 = __commonJS({ - "node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js"(exports2) { - "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m4[k]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { - Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { - o["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { - if (mod2 && mod2.__esModule) - return mod2; - var result = {}; - if (mod2 != null) { - for (var k in mod2) - if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) - __createBinding(result, mod2, k); + util.inherits(TunnelingAgent, events.EventEmitter); + TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { + var self3 = this; + var options = mergeOptions({ request: req }, self3.options, toOptions(host, port, localAddress)); + if (self3.sockets.length >= this.maxSockets) { + self3.requests.push(options); + return; } - __setModuleDefault(result, mod2); - return result; + self3.createSocket(options, function(socket) { + socket.on("free", onFree); + socket.on("close", onCloseOrRemove); + socket.on("agentRemove", onCloseOrRemove); + req.onSocket(socket); + function onFree() { + self3.emit("free", socket, options); + } + function onCloseOrRemove(err) { + self3.removeSocket(socket); + socket.removeListener("free", onFree); + socket.removeListener("close", onCloseOrRemove); + socket.removeListener("agentRemove", onCloseOrRemove); + } + }); }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.issueCommand = void 0; - var fs4 = __importStar(require("fs")); - var os2 = __importStar(require("os")); - var utils_1 = require_utils2(); - function issueCommand(command2, message) { - const filePath = process.env[`GITHUB_${command2}`]; - if (!filePath) { - throw new Error(`Unable to find environment variable for file command ${command2}`); + TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { + var self3 = this; + var placeholder = {}; + self3.sockets.push(placeholder); + var connectOptions = mergeOptions({}, self3.proxyOptions, { + method: "CONNECT", + path: options.host + ":" + options.port, + agent: false, + headers: { + host: options.host + ":" + options.port + } + }); + if (options.localAddress) { + connectOptions.localAddress = options.localAddress; } - if (!fs4.existsSync(filePath)) { - throw new Error(`Missing file at path: ${filePath}`); + if (connectOptions.proxyAuth) { + connectOptions.headers = connectOptions.headers || {}; + connectOptions.headers["Proxy-Authorization"] = "Basic " + new Buffer(connectOptions.proxyAuth).toString("base64"); } - fs4.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os2.EOL}`, { - encoding: "utf8" + debug("making CONNECT request"); + var connectReq = self3.request(connectOptions); + connectReq.useChunkedEncodingByDefault = false; + connectReq.once("response", onResponse); + connectReq.once("upgrade", onUpgrade); + connectReq.once("connect", onConnect); + connectReq.once("error", onError); + connectReq.end(); + function onResponse(res2) { + res2.upgrade = true; + } + function onUpgrade(res2, socket, head) { + process.nextTick(function() { + onConnect(res2, socket, head); + }); + } + function onConnect(res2, socket, head) { + connectReq.removeAllListeners(); + socket.removeAllListeners(); + if (res2.statusCode !== 200) { + debug("tunneling socket could not be established, statusCode=%d", res2.statusCode); + socket.destroy(); + var error = new Error("tunneling socket could not be established, statusCode=" + res2.statusCode); + error.code = "ECONNRESET"; + options.request.emit("error", error); + self3.removeSocket(placeholder); + return; + } + if (head.length > 0) { + debug("got illegal response body from proxy"); + socket.destroy(); + var error = new Error("got illegal response body from proxy"); + error.code = "ECONNRESET"; + options.request.emit("error", error); + self3.removeSocket(placeholder); + return; + } + debug("tunneling connection has established"); + self3.sockets[self3.sockets.indexOf(placeholder)] = socket; + return cb(socket); + } + function onError(cause) { + connectReq.removeAllListeners(); + debug("tunneling socket could not be established, cause=%s\n", cause.message, cause.stack); + var error = new Error("tunneling socket could not be established, cause=" + cause.message); + error.code = "ECONNRESET"; + options.request.emit("error", error); + self3.removeSocket(placeholder); + } + }; + TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { + var pos = this.sockets.indexOf(socket); + if (pos === -1) { + return; + } + this.sockets.splice(pos, 1); + var pending = this.requests.shift(); + if (pending) { + this.createSocket(pending, function(socket2) { + pending.request.onSocket(socket2); + }); + } + }; + function createSecureSocket(options, cb) { + var self3 = this; + TunnelingAgent.prototype.createSocket.call(self3, options, function(socket) { + var hostHeader = options.request.getHeader("host"); + var tlsOptions = mergeOptions({}, self3.options, { + socket, + servername: hostHeader ? hostHeader.replace(/:.*$/, "") : options.host + }); + var secureSocket = tls.connect(0, tlsOptions); + self3.sockets[self3.sockets.indexOf(socket)] = secureSocket; + cb(secureSocket); }); } - exports2.issueCommand = issueCommand; + function toOptions(host, port, localAddress) { + if (typeof host === "string") { + return { + host, + port, + localAddress + }; + } + return host; + } + function mergeOptions(target) { + for (var i = 1, len = arguments.length; i < len; ++i) { + var overrides = arguments[i]; + if (typeof overrides === "object") { + var keys = Object.keys(overrides); + for (var j3 = 0, keyLen = keys.length; j3 < keyLen; ++j3) { + var k = keys[j3]; + if (overrides[k] !== void 0) { + target[k] = overrides[k]; + } + } + } + } + return target; + } + var debug; + if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { + debug = function() { + var args = Array.prototype.slice.call(arguments); + if (typeof args[0] === "string") { + args[0] = "TUNNEL: " + args[0]; + } else { + args.unshift("TUNNEL:"); + } + console.error.apply(console, args); + }; + } else { + debug = function() { + }; + } + exports2.debug = debug; + } +}); + +// node_modules/tunnel/index.js +var require_tunnel2 = __commonJS({ + "node_modules/tunnel/index.js"(exports2, module2) { + module2.exports = require_tunnel(); } }); -// node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js -var require_core2 = __commonJS({ - "node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js"(exports2) { +// node_modules/@actions/core/node_modules/@actions/http-client/lib/index.js +var require_lib = __commonJS({ + "node_modules/@actions/core/node_modules/@actions/http-client/lib/index.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { if (k2 === void 0) @@ -1651,423 +2092,1188 @@ var require_core2 = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.notice = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; - var command_1 = require_command2(); - var file_command_1 = require_file_command2(); - var utils_1 = require_utils2(); - var os2 = __importStar(require("os")); - var path = __importStar(require("path")); - var ExitCode; - (function(ExitCode2) { - ExitCode2[ExitCode2["Success"] = 0] = "Success"; - ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; - })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); - function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val); - process.env[name] = convertedVal; - const filePath = process.env["GITHUB_ENV"] || ""; - if (filePath) { - const delimiter = "_GitHubActionsFileCommandDelimeter_"; - const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; - file_command_1.issueCommand("ENV", commandValue); - } else { - command_1.issueCommand("set-env", { name }, convertedVal); - } - } - exports2.exportVariable = exportVariable; - function setSecret(secret) { - command_1.issueCommand("add-mask", {}, secret); - } - exports2.setSecret = setSecret; - function addPath(inputPath) { - const filePath = process.env["GITHUB_PATH"] || ""; - if (filePath) { - file_command_1.issueCommand("PATH", inputPath); - } else { - command_1.issueCommand("add-path", {}, inputPath); - } - process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; - } - exports2.addPath = addPath; - function getInput2(name, options) { - const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; - if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`); - } - if (options && options.trimWhitespace === false) { - return val; - } - return val.trim(); - } - exports2.getInput = getInput2; - function getMultilineInput(name, options) { - const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); - return inputs; - } - exports2.getMultilineInput = getMultilineInput; - function getBooleanInput2(name, options) { - const trueValue = ["true", "True", "TRUE"]; - const falseValue = ["false", "False", "FALSE"]; - const val = getInput2(name, options); - if (trueValue.includes(val)) - return true; - if (falseValue.includes(val)) - return false; - throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); - } - exports2.getBooleanInput = getBooleanInput2; - function setOutput2(name, value) { - process.stdout.write(os2.EOL); - command_1.issueCommand("set-output", { name }, value); - } - exports2.setOutput = setOutput2; - function setCommandEcho(enabled) { - command_1.issue("echo", enabled ? "on" : "off"); - } - exports2.setCommandEcho = setCommandEcho; - function setFailed2(message) { - process.exitCode = ExitCode.Failure; - error(message); - } - exports2.setFailed = setFailed2; - function isDebug() { - return process.env["RUNNER_DEBUG"] === "1"; - } - exports2.isDebug = isDebug; - function debug(message) { - command_1.issueCommand("debug", {}, message); - } - exports2.debug = debug; - function error(message, properties2 = {}) { - command_1.issueCommand("error", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); - } - exports2.error = error; - function warning(message, properties2 = {}) { - command_1.issueCommand("warning", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); - } - exports2.warning = warning; - function notice(message, properties2 = {}) { - command_1.issueCommand("notice", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); - } - exports2.notice = notice; - function info2(message) { - process.stdout.write(message + os2.EOL); - } - exports2.info = info2; - function startGroup2(name) { - command_1.issue("group", name); + exports2.HttpClient = exports2.isHttps = exports2.HttpClientResponse = exports2.HttpClientError = exports2.getProxyUrl = exports2.MediaTypes = exports2.Headers = exports2.HttpCodes = void 0; + var http2 = __importStar(require("http")); + var https = __importStar(require("https")); + var pm = __importStar(require_proxy()); + var tunnel = __importStar(require_tunnel2()); + var HttpCodes; + (function(HttpCodes2) { + HttpCodes2[HttpCodes2["OK"] = 200] = "OK"; + HttpCodes2[HttpCodes2["MultipleChoices"] = 300] = "MultipleChoices"; + HttpCodes2[HttpCodes2["MovedPermanently"] = 301] = "MovedPermanently"; + HttpCodes2[HttpCodes2["ResourceMoved"] = 302] = "ResourceMoved"; + HttpCodes2[HttpCodes2["SeeOther"] = 303] = "SeeOther"; + HttpCodes2[HttpCodes2["NotModified"] = 304] = "NotModified"; + HttpCodes2[HttpCodes2["UseProxy"] = 305] = "UseProxy"; + HttpCodes2[HttpCodes2["SwitchProxy"] = 306] = "SwitchProxy"; + HttpCodes2[HttpCodes2["TemporaryRedirect"] = 307] = "TemporaryRedirect"; + HttpCodes2[HttpCodes2["PermanentRedirect"] = 308] = "PermanentRedirect"; + HttpCodes2[HttpCodes2["BadRequest"] = 400] = "BadRequest"; + HttpCodes2[HttpCodes2["Unauthorized"] = 401] = "Unauthorized"; + HttpCodes2[HttpCodes2["PaymentRequired"] = 402] = "PaymentRequired"; + HttpCodes2[HttpCodes2["Forbidden"] = 403] = "Forbidden"; + HttpCodes2[HttpCodes2["NotFound"] = 404] = "NotFound"; + HttpCodes2[HttpCodes2["MethodNotAllowed"] = 405] = "MethodNotAllowed"; + HttpCodes2[HttpCodes2["NotAcceptable"] = 406] = "NotAcceptable"; + HttpCodes2[HttpCodes2["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; + HttpCodes2[HttpCodes2["RequestTimeout"] = 408] = "RequestTimeout"; + HttpCodes2[HttpCodes2["Conflict"] = 409] = "Conflict"; + HttpCodes2[HttpCodes2["Gone"] = 410] = "Gone"; + HttpCodes2[HttpCodes2["TooManyRequests"] = 429] = "TooManyRequests"; + HttpCodes2[HttpCodes2["InternalServerError"] = 500] = "InternalServerError"; + HttpCodes2[HttpCodes2["NotImplemented"] = 501] = "NotImplemented"; + HttpCodes2[HttpCodes2["BadGateway"] = 502] = "BadGateway"; + HttpCodes2[HttpCodes2["ServiceUnavailable"] = 503] = "ServiceUnavailable"; + HttpCodes2[HttpCodes2["GatewayTimeout"] = 504] = "GatewayTimeout"; + })(HttpCodes = exports2.HttpCodes || (exports2.HttpCodes = {})); + var Headers; + (function(Headers2) { + Headers2["Accept"] = "accept"; + Headers2["ContentType"] = "content-type"; + })(Headers = exports2.Headers || (exports2.Headers = {})); + var MediaTypes; + (function(MediaTypes2) { + MediaTypes2["ApplicationJson"] = "application/json"; + })(MediaTypes = exports2.MediaTypes || (exports2.MediaTypes = {})); + function getProxyUrl(serverUrl) { + const proxyUrl = pm.getProxyUrl(new URL(serverUrl)); + return proxyUrl ? proxyUrl.href : ""; } - exports2.startGroup = startGroup2; - function endGroup2() { - command_1.issue("endgroup"); + exports2.getProxyUrl = getProxyUrl; + var HttpRedirectCodes = [ + HttpCodes.MovedPermanently, + HttpCodes.ResourceMoved, + HttpCodes.SeeOther, + HttpCodes.TemporaryRedirect, + HttpCodes.PermanentRedirect + ]; + var HttpResponseRetryCodes = [ + HttpCodes.BadGateway, + HttpCodes.ServiceUnavailable, + HttpCodes.GatewayTimeout + ]; + var RetryableHttpVerbs = ["OPTIONS", "GET", "DELETE", "HEAD"]; + var ExponentialBackoffCeiling = 10; + var ExponentialBackoffTimeSlice = 5; + var HttpClientError = class extends Error { + constructor(message, statusCode) { + super(message); + this.name = "HttpClientError"; + this.statusCode = statusCode; + Object.setPrototypeOf(this, HttpClientError.prototype); + } + }; + exports2.HttpClientError = HttpClientError; + var HttpClientResponse = class { + constructor(message) { + this.message = message; + } + readBody() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + let output = Buffer.alloc(0); + this.message.on("data", (chunk) => { + output = Buffer.concat([output, chunk]); + }); + this.message.on("end", () => { + resolve(output.toString()); + }); + })); + }); + } + }; + exports2.HttpClientResponse = HttpClientResponse; + function isHttps(requestUrl) { + const parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === "https:"; } - exports2.endGroup = endGroup2; - function group(name, fn) { - return __awaiter(this, void 0, void 0, function* () { - startGroup2(name); - let result; - try { - result = yield fn(); - } finally { - endGroup2(); + exports2.isHttps = isHttps; + var HttpClient = class { + constructor(userAgent, handlers, requestOptions) { + this._ignoreSslError = false; + this._allowRedirects = true; + this._allowRedirectDowngrade = false; + this._maxRedirects = 50; + this._allowRetries = false; + this._maxRetries = 1; + this._keepAlive = false; + this._disposed = false; + this.userAgent = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; + if (requestOptions) { + if (requestOptions.ignoreSslError != null) { + this._ignoreSslError = requestOptions.ignoreSslError; + } + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; + } + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; + } + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); + } + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; + } + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; + } + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; + } + } + } + options(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("OPTIONS", requestUrl, null, additionalHeaders || {}); + }); + } + get(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("GET", requestUrl, null, additionalHeaders || {}); + }); + } + del(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("DELETE", requestUrl, null, additionalHeaders || {}); + }); + } + post(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("POST", requestUrl, data, additionalHeaders || {}); + }); + } + patch(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("PATCH", requestUrl, data, additionalHeaders || {}); + }); + } + put(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("PUT", requestUrl, data, additionalHeaders || {}); + }); + } + head(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("HEAD", requestUrl, null, additionalHeaders || {}); + }); + } + sendStream(verb, requestUrl, stream, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request(verb, requestUrl, stream, additionalHeaders); + }); + } + getJson(requestUrl, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + const res2 = yield this.get(requestUrl, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + }); + } + postJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res2 = yield this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + }); + } + putJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res2 = yield this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + }); + } + patchJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res2 = yield this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + }); + } + request(verb, requestUrl, data, headers) { + return __awaiter(this, void 0, void 0, function* () { + if (this._disposed) { + throw new Error("Client has already been disposed."); + } + const parsedUrl = new URL(requestUrl); + let info2 = this._prepareRequest(verb, parsedUrl, headers); + const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb) ? this._maxRetries + 1 : 1; + let numTries = 0; + let response; + do { + response = yield this.requestRaw(info2, data); + if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) { + let authenticationHandler; + for (const handler of this.handlers) { + if (handler.canHandleAuthentication(response)) { + authenticationHandler = handler; + break; + } + } + if (authenticationHandler) { + return authenticationHandler.handleAuthentication(this, info2, data); + } else { + return response; + } + } + let redirectsRemaining = this._maxRedirects; + while (response.message.statusCode && HttpRedirectCodes.includes(response.message.statusCode) && this._allowRedirects && redirectsRemaining > 0) { + const redirectUrl = response.message.headers["location"]; + if (!redirectUrl) { + break; + } + const parsedRedirectUrl = new URL(redirectUrl); + if (parsedUrl.protocol === "https:" && parsedUrl.protocol !== parsedRedirectUrl.protocol && !this._allowRedirectDowngrade) { + throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true."); + } + yield response.readBody(); + if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { + for (const header in headers) { + if (header.toLowerCase() === "authorization") { + delete headers[header]; + } + } + } + info2 = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = yield this.requestRaw(info2, data); + redirectsRemaining--; + } + if (!response.message.statusCode || !HttpResponseRetryCodes.includes(response.message.statusCode)) { + return response; + } + numTries += 1; + if (numTries < maxTries) { + yield response.readBody(); + yield this._performExponentialBackoff(numTries); + } + } while (numTries < maxTries); + return response; + }); + } + dispose() { + if (this._agent) { + this._agent.destroy(); + } + this._disposed = true; + } + requestRaw(info2, data) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + function callbackForResult(err, res2) { + if (err) { + reject(err); + } else if (!res2) { + reject(new Error("Unknown error")); + } else { + resolve(res2); + } + } + this.requestRawWithCallback(info2, data, callbackForResult); + }); + }); + } + requestRawWithCallback(info2, data, onResult) { + if (typeof data === "string") { + if (!info2.options.headers) { + info2.options.headers = {}; + } + info2.options.headers["Content-Length"] = Buffer.byteLength(data, "utf8"); + } + let callbackCalled = false; + function handleResult(err, res2) { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res2); + } + } + const req = info2.httpModule.request(info2.options, (msg) => { + const res2 = new HttpClientResponse(msg); + handleResult(void 0, res2); + }); + let socket; + req.on("socket", (sock) => { + socket = sock; + }); + req.setTimeout(this._socketTimeout || 3 * 6e4, () => { + if (socket) { + socket.end(); + } + handleResult(new Error(`Request timeout: ${info2.options.path}`)); + }); + req.on("error", function(err) { + handleResult(err); + }); + if (data && typeof data === "string") { + req.write(data, "utf8"); + } + if (data && typeof data !== "string") { + data.on("close", function() { + req.end(); + }); + data.pipe(req); + } else { + req.end(); + } + } + getAgent(serverUrl) { + const parsedUrl = new URL(serverUrl); + return this._getAgent(parsedUrl); + } + _prepareRequest(method, requestUrl, headers) { + const info2 = {}; + info2.parsedUrl = requestUrl; + const usingSsl = info2.parsedUrl.protocol === "https:"; + info2.httpModule = usingSsl ? https : http2; + const defaultPort = usingSsl ? 443 : 80; + info2.options = {}; + info2.options.host = info2.parsedUrl.hostname; + info2.options.port = info2.parsedUrl.port ? parseInt(info2.parsedUrl.port) : defaultPort; + info2.options.path = (info2.parsedUrl.pathname || "") + (info2.parsedUrl.search || ""); + info2.options.method = method; + info2.options.headers = this._mergeHeaders(headers); + if (this.userAgent != null) { + info2.options.headers["user-agent"] = this.userAgent; + } + info2.options.agent = this._getAgent(info2.parsedUrl); + if (this.handlers) { + for (const handler of this.handlers) { + handler.prepareRequest(info2.options); + } + } + return info2; + } + _mergeHeaders(headers) { + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {})); + } + return lowercaseKeys(headers || {}); + } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; + } + return additionalHeaders[header] || clientHeader || _default; + } + _getAgent(parsedUrl) { + let agent; + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; + } + if (this._keepAlive && !useProxy) { + agent = this._agent; + } + if (agent) { + return agent; + } + const usingSsl = parsedUrl.protocol === "https:"; + let maxSockets = 100; + if (this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http2.globalAgent.maxSockets; + } + if (proxyUrl && proxyUrl.hostname) { + const agentOptions = { + maxSockets, + keepAlive: this._keepAlive, + proxy: Object.assign(Object.assign({}, (proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + }), { host: proxyUrl.hostname, port: proxyUrl.port }) + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === "https:"; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; + } else { + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; + } + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; + } + if (this._keepAlive && !agent) { + const options = { keepAlive: this._keepAlive, maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http2.Agent(options); + this._agent = agent; + } + if (!agent) { + agent = usingSsl ? https.globalAgent : http2.globalAgent; + } + if (usingSsl && this._ignoreSslError) { + agent.options = Object.assign(agent.options || {}, { + rejectUnauthorized: false + }); + } + return agent; + } + _performExponentialBackoff(retryNumber) { + return __awaiter(this, void 0, void 0, function* () { + retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise((resolve) => setTimeout(() => resolve(), ms)); + }); + } + _processResponse(res2, options) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + const statusCode = res2.message.statusCode || 0; + const response = { + statusCode, + result: null, + headers: {} + }; + if (statusCode === HttpCodes.NotFound) { + resolve(response); + } + function dateTimeDeserializer(key, value) { + if (typeof value === "string") { + const a3 = new Date(value); + if (!isNaN(a3.valueOf())) { + return a3; + } + } + return value; + } + let obj; + let contents; + try { + contents = yield res2.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, dateTimeDeserializer); + } else { + obj = JSON.parse(contents); + } + response.result = obj; + } + response.headers = res2.message.headers; + } catch (err) { + } + if (statusCode > 299) { + let msg; + if (obj && obj.message) { + msg = obj.message; + } else if (contents && contents.length > 0) { + msg = contents; + } else { + msg = `Failed request: (${statusCode})`; + } + const err = new HttpClientError(msg, statusCode); + err.result = response.result; + reject(err); + } else { + resolve(response); + } + })); + }); + } + }; + exports2.HttpClient = HttpClient; + var lowercaseKeys = (obj) => Object.keys(obj).reduce((c4, k) => (c4[k.toLowerCase()] = obj[k], c4), {}); + } +}); + +// node_modules/@actions/core/node_modules/@actions/http-client/lib/auth.js +var require_auth = __commonJS({ + "node_modules/@actions/core/node_modules/@actions/http-client/lib/auth.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.PersonalAccessTokenCredentialHandler = exports2.BearerCredentialHandler = exports2.BasicCredentialHandler = void 0; + var BasicCredentialHandler = class { + constructor(username, password) { + this.username = username; + this.password = password; + } + prepareRequest(options) { + if (!options.headers) { + throw Error("The request has no headers"); + } + options.headers["Authorization"] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`; + } + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error("not implemented"); + }); + } + }; + exports2.BasicCredentialHandler = BasicCredentialHandler; + var BearerCredentialHandler = class { + constructor(token) { + this.token = token; + } + prepareRequest(options) { + if (!options.headers) { + throw Error("The request has no headers"); + } + options.headers["Authorization"] = `Bearer ${this.token}`; + } + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error("not implemented"); + }); + } + }; + exports2.BearerCredentialHandler = BearerCredentialHandler; + var PersonalAccessTokenCredentialHandler = class { + constructor(token) { + this.token = token; + } + prepareRequest(options) { + if (!options.headers) { + throw Error("The request has no headers"); } - return result; - }); - } - exports2.group = group; - function saveState(name, value) { - command_1.issueCommand("save-state", { name }, value); - } - exports2.saveState = saveState; - function getState(name) { - return process.env[`STATE_${name}`] || ""; - } - exports2.getState = getState; + options.headers["Authorization"] = `Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`; + } + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error("not implemented"); + }); + } + }; + exports2.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; } }); -// node_modules/@actions/http-client/proxy.js -var require_proxy = __commonJS({ - "node_modules/@actions/http-client/proxy.js"(exports2) { +// node_modules/@actions/core/lib/oidc-utils.js +var require_oidc_utils = __commonJS({ + "node_modules/@actions/core/lib/oidc-utils.js"(exports2) { "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; Object.defineProperty(exports2, "__esModule", { value: true }); - function getProxyUrl(reqUrl) { - let usingSsl = reqUrl.protocol === "https:"; - let proxyUrl; - if (checkBypass(reqUrl)) { - return proxyUrl; + exports2.OidcClient = void 0; + var http_client_1 = require_lib(); + var auth_1 = require_auth(); + var core_1 = require_core(); + var OidcClient = class { + static createHttpClient(allowRetry = true, maxRetry = 10) { + const requestOptions = { + allowRetries: allowRetry, + maxRetries: maxRetry + }; + return new http_client_1.HttpClient("actions/oidc-client", [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); } - let proxyVar; - if (usingSsl) { - proxyVar = process.env["https_proxy"] || process.env["HTTPS_PROXY"]; - } else { - proxyVar = process.env["http_proxy"] || process.env["HTTP_PROXY"]; + static getRequestToken() { + const token = process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"]; + if (!token) { + throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable"); + } + return token; } - if (proxyVar) { - proxyUrl = new URL(proxyVar); + static getIDTokenUrl() { + const runtimeUrl = process.env["ACTIONS_ID_TOKEN_REQUEST_URL"]; + if (!runtimeUrl) { + throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable"); + } + return runtimeUrl; } - return proxyUrl; - } - exports2.getProxyUrl = getProxyUrl; - function checkBypass(reqUrl) { - if (!reqUrl.hostname) { - return false; + static getCall(id_token_url) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + const httpclient = OidcClient.createHttpClient(); + const res2 = yield httpclient.getJson(id_token_url).catch((error) => { + throw new Error(`Failed to get ID Token. + + Error Code : ${error.statusCode} + + Error Message: ${error.result.message}`); + }); + const id_token = (_a = res2.result) === null || _a === void 0 ? void 0 : _a.value; + if (!id_token) { + throw new Error("Response json body do not have ID Token field"); + } + return id_token; + }); } - let noProxy = process.env["no_proxy"] || process.env["NO_PROXY"] || ""; - if (!noProxy) { - return false; + static getIDToken(audience) { + return __awaiter(this, void 0, void 0, function* () { + try { + let id_token_url = OidcClient.getIDTokenUrl(); + if (audience) { + const encodedAudience = encodeURIComponent(audience); + id_token_url = `${id_token_url}&audience=${encodedAudience}`; + } + core_1.debug(`ID token url is ${id_token_url}`); + const id_token = yield OidcClient.getCall(id_token_url); + core_1.setSecret(id_token); + return id_token; + } catch (error) { + throw new Error(`Error message: ${error.message}`); + } + }); } - let reqPort; - if (reqUrl.port) { - reqPort = Number(reqUrl.port); - } else if (reqUrl.protocol === "http:") { - reqPort = 80; - } else if (reqUrl.protocol === "https:") { - reqPort = 443; + }; + exports2.OidcClient = OidcClient; + } +}); + +// node_modules/@actions/core/lib/summary.js +var require_summary = __commonJS({ + "node_modules/@actions/core/lib/summary.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); } - let upperReqHosts = [reqUrl.hostname.toUpperCase()]; - if (typeof reqPort === "number") { - upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.summary = exports2.markdownSummary = exports2.SUMMARY_DOCS_URL = exports2.SUMMARY_ENV_VAR = void 0; + var os_1 = require("os"); + var fs_1 = require("fs"); + var { access, appendFile, writeFile } = fs_1.promises; + exports2.SUMMARY_ENV_VAR = "GITHUB_STEP_SUMMARY"; + exports2.SUMMARY_DOCS_URL = "https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary"; + var Summary = class { + constructor() { + this._buffer = ""; } - for (let upperNoProxyItem of noProxy.split(",").map((x2) => x2.trim().toUpperCase()).filter((x2) => x2)) { - if (upperReqHosts.some((x2) => x2 === upperNoProxyItem)) { - return true; + filePath() { + return __awaiter(this, void 0, void 0, function* () { + if (this._filePath) { + return this._filePath; + } + const pathFromEnv = process.env[exports2.SUMMARY_ENV_VAR]; + if (!pathFromEnv) { + throw new Error(`Unable to find environment variable for $${exports2.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`); + } + try { + yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); + } catch (_a) { + throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`); + } + this._filePath = pathFromEnv; + return this._filePath; + }); + } + wrap(tag, content, attrs = {}) { + const htmlAttrs = Object.entries(attrs).map(([key, value]) => ` ${key}="${value}"`).join(""); + if (!content) { + return `<${tag}${htmlAttrs}>`; } + return `<${tag}${htmlAttrs}>${content}`; } - return false; - } - exports2.checkBypass = checkBypass; + write(options) { + return __awaiter(this, void 0, void 0, function* () { + const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite); + const filePath = yield this.filePath(); + const writeFunc = overwrite ? writeFile : appendFile; + yield writeFunc(filePath, this._buffer, { encoding: "utf8" }); + return this.emptyBuffer(); + }); + } + clear() { + return __awaiter(this, void 0, void 0, function* () { + return this.emptyBuffer().write({ overwrite: true }); + }); + } + stringify() { + return this._buffer; + } + isEmptyBuffer() { + return this._buffer.length === 0; + } + emptyBuffer() { + this._buffer = ""; + return this; + } + addRaw(text, addEOL = false) { + this._buffer += text; + return addEOL ? this.addEOL() : this; + } + addEOL() { + return this.addRaw(os_1.EOL); + } + addCodeBlock(code, lang) { + const attrs = Object.assign({}, lang && { lang }); + const element = this.wrap("pre", this.wrap("code", code), attrs); + return this.addRaw(element).addEOL(); + } + addList(items, ordered = false) { + const tag = ordered ? "ol" : "ul"; + const listItems = items.map((item) => this.wrap("li", item)).join(""); + const element = this.wrap(tag, listItems); + return this.addRaw(element).addEOL(); + } + addTable(rows) { + const tableBody = rows.map((row) => { + const cells = row.map((cell) => { + if (typeof cell === "string") { + return this.wrap("td", cell); + } + const { header, data, colspan, rowspan } = cell; + const tag = header ? "th" : "td"; + const attrs = Object.assign(Object.assign({}, colspan && { colspan }), rowspan && { rowspan }); + return this.wrap(tag, data, attrs); + }).join(""); + return this.wrap("tr", cells); + }).join(""); + const element = this.wrap("table", tableBody); + return this.addRaw(element).addEOL(); + } + addDetails(label, content) { + const element = this.wrap("details", this.wrap("summary", label) + content); + return this.addRaw(element).addEOL(); + } + addImage(src, alt, options) { + const { width: width2, height: height2 } = options || {}; + const attrs = Object.assign(Object.assign({}, width2 && { width: width2 }), height2 && { height: height2 }); + const element = this.wrap("img", null, Object.assign({ src, alt }, attrs)); + return this.addRaw(element).addEOL(); + } + addHeading(text, level) { + const tag = `h${level}`; + const allowedTag = ["h1", "h2", "h3", "h4", "h5", "h6"].includes(tag) ? tag : "h1"; + const element = this.wrap(allowedTag, text); + return this.addRaw(element).addEOL(); + } + addSeparator() { + const element = this.wrap("hr", null); + return this.addRaw(element).addEOL(); + } + addBreak() { + const element = this.wrap("br", null); + return this.addRaw(element).addEOL(); + } + addQuote(text, cite) { + const attrs = Object.assign({}, cite && { cite }); + const element = this.wrap("blockquote", text, attrs); + return this.addRaw(element).addEOL(); + } + addLink(text, href) { + const element = this.wrap("a", text, { href }); + return this.addRaw(element).addEOL(); + } + }; + var _summary = new Summary(); + exports2.markdownSummary = _summary; + exports2.summary = _summary; } }); -// node_modules/tunnel/lib/tunnel.js -var require_tunnel = __commonJS({ - "node_modules/tunnel/lib/tunnel.js"(exports2) { +// node_modules/@actions/core/lib/path-utils.js +var require_path_utils = __commonJS({ + "node_modules/@actions/core/lib/path-utils.js"(exports2) { "use strict"; - var net = require("net"); - var tls = require("tls"); - var http2 = require("http"); - var https = require("https"); - var events = require("events"); - var assert = require("assert"); - var util = require("util"); - exports2.httpOverHttp = httpOverHttp; - exports2.httpsOverHttp = httpsOverHttp; - exports2.httpOverHttps = httpOverHttps; - exports2.httpsOverHttps = httpsOverHttps; - function httpOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http2.request; - return agent; - } - function httpsOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http2.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toPlatformPath = exports2.toWin32Path = exports2.toPosixPath = void 0; + var path = __importStar(require("path")); + function toPosixPath(pth) { + return pth.replace(/[\\]/g, "/"); } - function httpOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - return agent; + exports2.toPosixPath = toPosixPath; + function toWin32Path(pth) { + return pth.replace(/[/]/g, "\\"); } - function httpsOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; + exports2.toWin32Path = toWin32Path; + function toPlatformPath(pth) { + return pth.replace(/[/\\]/g, path.sep); } - function TunnelingAgent(options) { - var self3 = this; - self3.options = options || {}; - self3.proxyOptions = self3.options.proxy || {}; - self3.maxSockets = self3.options.maxSockets || http2.Agent.defaultMaxSockets; - self3.requests = []; - self3.sockets = []; - self3.on("free", function onFree(socket, host, port, localAddress) { - var options2 = toOptions(host, port, localAddress); - for (var i = 0, len = self3.requests.length; i < len; ++i) { - var pending = self3.requests[i]; - if (pending.host === options2.host && pending.port === options2.port) { - self3.requests.splice(i, 1); - pending.request.onSocket(socket); - return; + exports2.toPlatformPath = toPlatformPath; + } +}); + +// node_modules/@actions/core/lib/core.js +var require_core = __commonJS({ + "node_modules/@actions/core/lib/core.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); } } - socket.destroy(); - self3.removeSocket(socket); - }); - } - util.inherits(TunnelingAgent, events.EventEmitter); - TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { - var self3 = this; - var options = mergeOptions({ request: req }, self3.options, toOptions(host, port, localAddress)); - if (self3.sockets.length >= this.maxSockets) { - self3.requests.push(options); - return; - } - self3.createSocket(options, function(socket) { - socket.on("free", onFree); - socket.on("close", onCloseOrRemove); - socket.on("agentRemove", onCloseOrRemove); - req.onSocket(socket); - function onFree() { - self3.emit("free", socket, options); + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } } - function onCloseOrRemove(err) { - self3.removeSocket(socket); - socket.removeListener("free", onFree); - socket.removeListener("close", onCloseOrRemove); - socket.removeListener("agentRemove", onCloseOrRemove); + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { - var self3 = this; - var placeholder = {}; - self3.sockets.push(placeholder); - var connectOptions = mergeOptions({}, self3.proxyOptions, { - method: "CONNECT", - path: options.host + ":" + options.port, - agent: false, - headers: { - host: options.host + ":" + options.port - } - }); - if (options.localAddress) { - connectOptions.localAddress = options.localAddress; - } - if (connectOptions.proxyAuth) { - connectOptions.headers = connectOptions.headers || {}; - connectOptions.headers["Proxy-Authorization"] = "Basic " + new Buffer(connectOptions.proxyAuth).toString("base64"); - } - debug("making CONNECT request"); - var connectReq = self3.request(connectOptions); - connectReq.useChunkedEncodingByDefault = false; - connectReq.once("response", onResponse); - connectReq.once("upgrade", onUpgrade); - connectReq.once("connect", onConnect); - connectReq.once("error", onError); - connectReq.end(); - function onResponse(res2) { - res2.upgrade = true; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getIDToken = exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.notice = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; + var command_1 = require_command(); + var file_command_1 = require_file_command(); + var utils_1 = require_utils(); + var os2 = __importStar(require("os")); + var path = __importStar(require("path")); + var oidc_utils_1 = require_oidc_utils(); + var ExitCode; + (function(ExitCode2) { + ExitCode2[ExitCode2["Success"] = 0] = "Success"; + ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; + })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); + function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env["GITHUB_ENV"] || ""; + if (filePath) { + return file_command_1.issueFileCommand("ENV", file_command_1.prepareKeyValueMessage(name, val)); } - function onUpgrade(res2, socket, head) { - process.nextTick(function() { - onConnect(res2, socket, head); - }); + command_1.issueCommand("set-env", { name }, convertedVal); + } + exports2.exportVariable = exportVariable; + function setSecret(secret) { + command_1.issueCommand("add-mask", {}, secret); + } + exports2.setSecret = setSecret; + function addPath(inputPath) { + const filePath = process.env["GITHUB_PATH"] || ""; + if (filePath) { + file_command_1.issueFileCommand("PATH", inputPath); + } else { + command_1.issueCommand("add-path", {}, inputPath); } - function onConnect(res2, socket, head) { - connectReq.removeAllListeners(); - socket.removeAllListeners(); - if (res2.statusCode !== 200) { - debug("tunneling socket could not be established, statusCode=%d", res2.statusCode); - socket.destroy(); - var error = new Error("tunneling socket could not be established, statusCode=" + res2.statusCode); - error.code = "ECONNRESET"; - options.request.emit("error", error); - self3.removeSocket(placeholder); - return; - } - if (head.length > 0) { - debug("got illegal response body from proxy"); - socket.destroy(); - var error = new Error("got illegal response body from proxy"); - error.code = "ECONNRESET"; - options.request.emit("error", error); - self3.removeSocket(placeholder); - return; - } - debug("tunneling connection has established"); - self3.sockets[self3.sockets.indexOf(placeholder)] = socket; - return cb(socket); + process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; + } + exports2.addPath = addPath; + function getInput2(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); } - function onError(cause) { - connectReq.removeAllListeners(); - debug("tunneling socket could not be established, cause=%s\n", cause.message, cause.stack); - var error = new Error("tunneling socket could not be established, cause=" + cause.message); - error.code = "ECONNRESET"; - options.request.emit("error", error); - self3.removeSocket(placeholder); + if (options && options.trimWhitespace === false) { + return val; } - }; - TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { - var pos = this.sockets.indexOf(socket); - if (pos === -1) { - return; + return val.trim(); + } + exports2.getInput = getInput2; + function getMultilineInput(name, options) { + const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); + if (options && options.trimWhitespace === false) { + return inputs; } - this.sockets.splice(pos, 1); - var pending = this.requests.shift(); - if (pending) { - this.createSocket(pending, function(socket2) { - pending.request.onSocket(socket2); - }); + return inputs.map((input) => input.trim()); + } + exports2.getMultilineInput = getMultilineInput; + function getBooleanInput2(name, options) { + const trueValue = ["true", "True", "TRUE"]; + const falseValue = ["false", "False", "FALSE"]; + const val = getInput2(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); + } + exports2.getBooleanInput = getBooleanInput2; + function setOutput2(name, value) { + const filePath = process.env["GITHUB_OUTPUT"] || ""; + if (filePath) { + return file_command_1.issueFileCommand("OUTPUT", file_command_1.prepareKeyValueMessage(name, value)); } - }; - function createSecureSocket(options, cb) { - var self3 = this; - TunnelingAgent.prototype.createSocket.call(self3, options, function(socket) { - var hostHeader = options.request.getHeader("host"); - var tlsOptions = mergeOptions({}, self3.options, { - socket, - servername: hostHeader ? hostHeader.replace(/:.*$/, "") : options.host - }); - var secureSocket = tls.connect(0, tlsOptions); - self3.sockets[self3.sockets.indexOf(socket)] = secureSocket; - cb(secureSocket); + process.stdout.write(os2.EOL); + command_1.issueCommand("set-output", { name }, utils_1.toCommandValue(value)); + } + exports2.setOutput = setOutput2; + function setCommandEcho(enabled) { + command_1.issue("echo", enabled ? "on" : "off"); + } + exports2.setCommandEcho = setCommandEcho; + function setFailed2(message) { + process.exitCode = ExitCode.Failure; + error(message); + } + exports2.setFailed = setFailed2; + function isDebug() { + return process.env["RUNNER_DEBUG"] === "1"; + } + exports2.isDebug = isDebug; + function debug(message) { + command_1.issueCommand("debug", {}, message); + } + exports2.debug = debug; + function error(message, properties2 = {}) { + command_1.issueCommand("error", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.error = error; + function warning(message, properties2 = {}) { + command_1.issueCommand("warning", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.warning = warning; + function notice(message, properties2 = {}) { + command_1.issueCommand("notice", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.notice = notice; + function info2(message) { + process.stdout.write(message + os2.EOL); + } + exports2.info = info2; + function startGroup2(name) { + command_1.issue("group", name); + } + exports2.startGroup = startGroup2; + function endGroup2() { + command_1.issue("endgroup"); + } + exports2.endGroup = endGroup2; + function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup2(name); + let result; + try { + result = yield fn(); + } finally { + endGroup2(); + } + return result; }); } - function toOptions(host, port, localAddress) { - if (typeof host === "string") { - return { - host, - port, - localAddress - }; + exports2.group = group; + function saveState(name, value) { + const filePath = process.env["GITHUB_STATE"] || ""; + if (filePath) { + return file_command_1.issueFileCommand("STATE", file_command_1.prepareKeyValueMessage(name, value)); } - return host; + command_1.issueCommand("save-state", { name }, utils_1.toCommandValue(value)); } - function mergeOptions(target) { - for (var i = 1, len = arguments.length; i < len; ++i) { - var overrides = arguments[i]; - if (typeof overrides === "object") { - var keys = Object.keys(overrides); - for (var j3 = 0, keyLen = keys.length; j3 < keyLen; ++j3) { - var k = keys[j3]; - if (overrides[k] !== void 0) { - target[k] = overrides[k]; - } - } - } - } - return target; + exports2.saveState = saveState; + function getState(name) { + return process.env[`STATE_${name}`] || ""; } - var debug; - if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { - debug = function() { - var args = Array.prototype.slice.call(arguments); - if (typeof args[0] === "string") { - args[0] = "TUNNEL: " + args[0]; - } else { - args.unshift("TUNNEL:"); - } - console.error.apply(console, args); - }; - } else { - debug = function() { - }; + exports2.getState = getState; + function getIDToken(aud) { + return __awaiter(this, void 0, void 0, function* () { + return yield oidc_utils_1.OidcClient.getIDToken(aud); + }); } - exports2.debug = debug; + exports2.getIDToken = getIDToken; + var summary_1 = require_summary(); + Object.defineProperty(exports2, "summary", { enumerable: true, get: function() { + return summary_1.summary; + } }); + var summary_2 = require_summary(); + Object.defineProperty(exports2, "markdownSummary", { enumerable: true, get: function() { + return summary_2.markdownSummary; + } }); + var path_utils_1 = require_path_utils(); + Object.defineProperty(exports2, "toPosixPath", { enumerable: true, get: function() { + return path_utils_1.toPosixPath; + } }); + Object.defineProperty(exports2, "toWin32Path", { enumerable: true, get: function() { + return path_utils_1.toWin32Path; + } }); + Object.defineProperty(exports2, "toPlatformPath", { enumerable: true, get: function() { + return path_utils_1.toPlatformPath; + } }); } }); -// node_modules/tunnel/index.js -var require_tunnel2 = __commonJS({ - "node_modules/tunnel/index.js"(exports2, module2) { - module2.exports = require_tunnel(); +// node_modules/@actions/http-client/proxy.js +var require_proxy2 = __commonJS({ + "node_modules/@actions/http-client/proxy.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + function getProxyUrl(reqUrl) { + let usingSsl = reqUrl.protocol === "https:"; + let proxyUrl; + if (checkBypass(reqUrl)) { + return proxyUrl; + } + let proxyVar; + if (usingSsl) { + proxyVar = process.env["https_proxy"] || process.env["HTTPS_PROXY"]; + } else { + proxyVar = process.env["http_proxy"] || process.env["HTTP_PROXY"]; + } + if (proxyVar) { + proxyUrl = new URL(proxyVar); + } + return proxyUrl; + } + exports2.getProxyUrl = getProxyUrl; + function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; + } + let noProxy = process.env["no_proxy"] || process.env["NO_PROXY"] || ""; + if (!noProxy) { + return false; + } + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } else if (reqUrl.protocol === "http:") { + reqPort = 80; + } else if (reqUrl.protocol === "https:") { + reqPort = 443; + } + let upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === "number") { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + for (let upperNoProxyItem of noProxy.split(",").map((x2) => x2.trim().toUpperCase()).filter((x2) => x2)) { + if (upperReqHosts.some((x2) => x2 === upperNoProxyItem)) { + return true; + } + } + return false; + } + exports2.checkBypass = checkBypass; } }); @@ -2078,7 +3284,7 @@ var require_http_client = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); var http2 = require("http"); var https = require("https"); - var pm = require_proxy(); + var pm = require_proxy2(); var tunnel; var HttpCodes; (function(HttpCodes2) { @@ -2401,14 +3607,14 @@ var require_http_client = __commonJS({ return info2; } _mergeHeaders(headers) { - const lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k) => (c3[k.toLowerCase()] = obj[k], c3), {}); + const lowercaseKeys = (obj) => Object.keys(obj).reduce((c4, k) => (c4[k.toLowerCase()] = obj[k], c4), {}); if (this.requestOptions && this.requestOptions.headers) { return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers)); } return lowercaseKeys(headers || {}); } _getExistingOrDefaultHeader(additionalHeaders, header, _default) { - const lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k) => (c3[k.toLowerCase()] = obj[k], c3), {}); + const lowercaseKeys = (obj) => Object.keys(obj).reduce((c4, k) => (c4[k.toLowerCase()] = obj[k], c4), {}); let clientHeader; if (this.requestOptions && this.requestOptions.headers) { clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; @@ -2480,9 +3686,9 @@ var require_http_client = __commonJS({ } static dateTimeDeserializer(key, value) { if (typeof value === "string") { - let a2 = new Date(value); - if (!isNaN(a2.valueOf())) { - return a2; + let a3 = new Date(value); + if (!isNaN(a3.valueOf())) { + return a3; } } return value; @@ -2536,7 +3742,7 @@ var require_http_client = __commonJS({ }); // node_modules/@actions/http-client/auth.js -var require_auth = __commonJS({ +var require_auth2 = __commonJS({ "node_modules/@actions/http-client/auth.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -2658,7 +3864,7 @@ var require_config_variables = __commonJS({ }); // node_modules/@actions/artifact/lib/internal/utils.js -var require_utils3 = __commonJS({ +var require_utils2 = __commonJS({ "node_modules/@actions/artifact/lib/internal/utils.js"(exports2) { "use strict"; var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { @@ -2689,10 +3895,10 @@ var require_utils3 = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - var core_1 = require_core2(); + var core_1 = require_core(); var fs_1 = require("fs"); var http_client_1 = require_http_client(); - var auth_1 = require_auth(); + var auth_1 = require_auth2(); var config_variables_1 = require_config_variables(); function getExponentialRetryTimeInMilliseconds(retryCount) { if (retryCount < 0) { @@ -2935,9 +4141,9 @@ var require_upload_specification = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core_1 = require_core2(); + var core_1 = require_core(); var path_1 = require("path"); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); function getUploadSpecification(artifactName, rootDirectory, artifactFiles) { utils_1.checkArtifactName(artifactName); const specifications = []; @@ -3271,17 +4477,17 @@ var require_balanced_match = __commonJS({ "node_modules/balanced-match/index.js"(exports2, module2) { "use strict"; module2.exports = balanced; - function balanced(a2, b, str) { - if (a2 instanceof RegExp) - a2 = maybeMatch(a2, str); + function balanced(a3, b, str) { + if (a3 instanceof RegExp) + a3 = maybeMatch(a3, str); if (b instanceof RegExp) b = maybeMatch(b, str); - var r4 = range(a2, b, str); + var r4 = range2(a3, b, str); return r4 && { start: r4[0], end: r4[1], pre: str.slice(0, r4[0]), - body: str.slice(r4[0] + a2.length, r4[1]), + body: str.slice(r4[0] + a3.length, r4[1]), post: str.slice(r4[1] + b.length) }; } @@ -3289,14 +4495,14 @@ var require_balanced_match = __commonJS({ var m4 = str.match(reg2); return m4 ? m4[0] : null; } - balanced.range = range; - function range(a2, b, str) { + balanced.range = range2; + function range2(a3, b, str) { var begs, beg, left, right, result; - var ai = str.indexOf(a2); + var ai = str.indexOf(a3); var bi2 = str.indexOf(b, ai + 1); var i = ai; if (ai >= 0 && bi2 > 0) { - if (a2 === b) { + if (a3 === b) { return [ai, bi2]; } begs = []; @@ -3304,7 +4510,7 @@ var require_balanced_match = __commonJS({ while (i >= 0 && !result) { if (i == ai) { begs.push(i); - ai = str.indexOf(a2, i + 1); + ai = str.indexOf(a3, i + 1); } else if (begs.length == 1) { result = [begs.pop(), bi2]; } else { @@ -3434,25 +4640,25 @@ var require_brace_expansion = __commonJS({ var pad2 = n2.some(isPadded); N = []; for (var i = x2; test(i, y3); i += incr) { - var c3; + var c4; if (isAlphaSequence) { - c3 = String.fromCharCode(i); - if (c3 === "\\") - c3 = ""; + c4 = String.fromCharCode(i); + if (c4 === "\\") + c4 = ""; } else { - c3 = String(i); + c4 = String(i); if (pad2) { - var need = width2 - c3.length; + var need = width2 - c4.length; if (need > 0) { var z = new Array(need + 1).join("0"); if (i < 0) - c3 = "-" + z + c3.slice(1); + c4 = "-" + z + c4.slice(1); else - c3 = z + c3; + c4 = z + c4; } } } - N.push(c3); + N.push(c4); } } else { N = concatMap(n2, function(el2) { @@ -3476,11 +4682,15 @@ var require_minimatch = __commonJS({ "node_modules/minimatch/minimatch.js"(exports2, module2) { module2.exports = minimatch; minimatch.Minimatch = Minimatch; - var path = { sep: "/" }; - try { - path = require("path"); - } catch (er) { - } + var path = function() { + try { + return require("path"); + } catch (e3) { + } + }() || { + sep: "/" + }; + minimatch.sep = path.sep; var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; var expand = require_brace_expansion(); var plTypes = { @@ -3496,8 +4706,8 @@ var require_minimatch = __commonJS({ var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; var reSpecials = charSet("().*{}+?[]^$\\!"); function charSet(s) { - return s.split("").reduce(function(set3, c3) { - set3[c3] = true; + return s.split("").reduce(function(set3, c4) { + set3[c4] = true; return set3; }, {}); } @@ -3509,59 +4719,69 @@ var require_minimatch = __commonJS({ return minimatch(p2, pattern, options); }; } - function ext(a2, b) { - a2 = a2 || {}; + function ext(a3, b) { b = b || {}; var t2 = {}; + Object.keys(a3).forEach(function(k) { + t2[k] = a3[k]; + }); Object.keys(b).forEach(function(k) { t2[k] = b[k]; }); - Object.keys(a2).forEach(function(k) { - t2[k] = a2[k]; - }); return t2; } minimatch.defaults = function(def) { - if (!def || !Object.keys(def).length) + if (!def || typeof def !== "object" || !Object.keys(def).length) { return minimatch; + } var orig = minimatch; var m4 = function minimatch2(p2, pattern, options) { - return orig.minimatch(p2, pattern, ext(def, options)); + return orig(p2, pattern, ext(def, options)); }; m4.Minimatch = function Minimatch2(pattern, options) { return new orig.Minimatch(pattern, ext(def, options)); }; + m4.Minimatch.defaults = function defaults(options) { + return orig.defaults(ext(def, options)).Minimatch; + }; + m4.filter = function filter3(pattern, options) { + return orig.filter(pattern, ext(def, options)); + }; + m4.defaults = function defaults(options) { + return orig.defaults(ext(def, options)); + }; + m4.makeRe = function makeRe2(pattern, options) { + return orig.makeRe(pattern, ext(def, options)); + }; + m4.braceExpand = function braceExpand2(pattern, options) { + return orig.braceExpand(pattern, ext(def, options)); + }; + m4.match = function(list, pattern, options) { + return orig.match(list, pattern, ext(def, options)); + }; return m4; }; Minimatch.defaults = function(def) { - if (!def || !Object.keys(def).length) - return Minimatch; return minimatch.defaults(def).Minimatch; }; function minimatch(p2, pattern, options) { - if (typeof pattern !== "string") { - throw new TypeError("glob pattern string required"); - } + assertValidPattern(pattern); if (!options) options = {}; if (!options.nocomment && pattern.charAt(0) === "#") { return false; } - if (pattern.trim() === "") - return p2 === ""; return new Minimatch(pattern, options).match(p2); } function Minimatch(pattern, options) { if (!(this instanceof Minimatch)) { return new Minimatch(pattern, options); } - if (typeof pattern !== "string") { - throw new TypeError("glob pattern string required"); - } + assertValidPattern(pattern); if (!options) options = {}; pattern = pattern.trim(); - if (path.sep !== "/") { + if (!options.allowWindowsEscape && path.sep !== "/") { pattern = pattern.split(path.sep).join("/"); } this.options = options; @@ -3571,14 +4791,13 @@ var require_minimatch = __commonJS({ this.negate = false; this.comment = false; this.empty = false; + this.partial = !!options.partial; this.make(); } Minimatch.prototype.debug = function() { }; Minimatch.prototype.make = make2; function make2() { - if (this._made) - return; var pattern = this.pattern; var options = this.options; if (!options.nocomment && pattern.charAt(0) === "#") { @@ -3592,7 +4811,9 @@ var require_minimatch = __commonJS({ this.parseNegate(); var set3 = this.globSet = this.braceExpand(); if (options.debug) - this.debug = console.error; + this.debug = function debug() { + console.error.apply(console, arguments); + }; this.debug(this.pattern, set3); set3 = this.globParts = set3.map(function(s) { return s.split(slashSplit); @@ -3637,23 +4858,32 @@ var require_minimatch = __commonJS({ } } pattern = typeof pattern === "undefined" ? this.pattern : pattern; - if (typeof pattern === "undefined") { - throw new TypeError("undefined pattern"); - } - if (options.nobrace || !pattern.match(/\{.*\}/)) { + assertValidPattern(pattern); + if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { return [pattern]; } return expand(pattern); } + var MAX_PATTERN_LENGTH = 1024 * 64; + var assertValidPattern = function(pattern) { + if (typeof pattern !== "string") { + throw new TypeError("invalid pattern"); + } + if (pattern.length > MAX_PATTERN_LENGTH) { + throw new TypeError("pattern is too long"); + } + }; Minimatch.prototype.parse = parse; var SUBPARSE = {}; function parse(pattern, isSub) { - if (pattern.length > 1024 * 64) { - throw new TypeError("pattern is too long"); - } + assertValidPattern(pattern); var options = this.options; - if (!options.noglobstar && pattern === "**") - return GLOBSTAR; + if (pattern === "**") { + if (!options.noglobstar) + return GLOBSTAR; + else + pattern = "*"; + } if (pattern === "") return ""; var re3 = ""; @@ -3686,16 +4916,17 @@ var require_minimatch = __commonJS({ stateChar = false; } } - for (var i = 0, len = pattern.length, c3; i < len && (c3 = pattern.charAt(i)); i++) { - this.debug("%s %s %s %j", pattern, i, re3, c3); - if (escaping && reSpecials[c3]) { - re3 += "\\" + c3; + for (var i = 0, len = pattern.length, c4; i < len && (c4 = pattern.charAt(i)); i++) { + this.debug("%s %s %s %j", pattern, i, re3, c4); + if (escaping && reSpecials[c4]) { + re3 += "\\" + c4; escaping = false; continue; } - switch (c3) { - case "/": + switch (c4) { + case "/": { return false; + } case "\\": clearStateChar(); escaping = true; @@ -3705,17 +4936,17 @@ var require_minimatch = __commonJS({ case "+": case "@": case "!": - this.debug("%s %s %s %j <-- stateChar", pattern, i, re3, c3); + this.debug("%s %s %s %j <-- stateChar", pattern, i, re3, c4); if (inClass) { this.debug(" in class"); - if (c3 === "!" && i === classStart + 1) - c3 = "^"; - re3 += c3; + if (c4 === "!" && i === classStart + 1) + c4 = "^"; + re3 += c4; continue; } self3.debug("call clearStateChar %j", stateChar); clearStateChar(); - stateChar = c3; + stateChar = c4; if (options.noext) clearStateChar(); continue; @@ -3765,44 +4996,42 @@ var require_minimatch = __commonJS({ case "[": clearStateChar(); if (inClass) { - re3 += "\\" + c3; + re3 += "\\" + c4; continue; } inClass = true; classStart = i; reClassStart = re3.length; - re3 += c3; + re3 += c4; continue; case "]": if (i === classStart + 1 || !inClass) { - re3 += "\\" + c3; + re3 += "\\" + c4; escaping = false; continue; } - if (inClass) { - var cs2 = pattern.substring(classStart + 1, i); - try { - RegExp("[" + cs2 + "]"); - } catch (er) { - var sp2 = this.parse(cs2, SUBPARSE); - re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0] + "\\]"; - hasMagic = hasMagic || sp2[1]; - inClass = false; - continue; - } + var cs2 = pattern.substring(classStart + 1, i); + try { + RegExp("[" + cs2 + "]"); + } catch (er) { + var sp2 = this.parse(cs2, SUBPARSE); + re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0] + "\\]"; + hasMagic = hasMagic || sp2[1]; + inClass = false; + continue; } hasMagic = true; inClass = false; - re3 += c3; + re3 += c4; continue; default: clearStateChar(); if (escaping) { escaping = false; - } else if (reSpecials[c3] && !(c3 === "^" && inClass)) { + } else if (reSpecials[c4] && !(c4 === "^" && inClass)) { re3 += "\\"; } - re3 += c3; + re3 += c4; } } if (inClass) { @@ -3831,8 +5060,8 @@ var require_minimatch = __commonJS({ } var addPatternStart = false; switch (re3.charAt(0)) { - case ".": case "[": + case ".": case "(": addPatternStart = true; } @@ -3919,8 +5148,9 @@ var require_minimatch = __commonJS({ } return list; }; - Minimatch.prototype.match = match; - function match(f2, partial) { + Minimatch.prototype.match = function match(f2, partial) { + if (typeof partial === "undefined") + partial = this.partial; this.debug("match", f2, this.pattern); if (this.comment) return false; @@ -3959,7 +5189,7 @@ var require_minimatch = __commonJS({ if (options.flipNegate) return false; return this.negate; - } + }; Minimatch.prototype.matchOne = function(file, pattern, partial) { var options = this.options; this.debug("matchOne", { "this": this, file, pattern }); @@ -4007,11 +5237,7 @@ var require_minimatch = __commonJS({ } var hit; if (typeof p2 === "string") { - if (options.nocase) { - hit = f2.toLowerCase() === p2.toLowerCase(); - } else { - hit = f2 === p2; - } + hit = f2 === p2; this.debug("string match", p2, f2, hit); } else { hit = f2.match(p2); @@ -4025,8 +5251,7 @@ var require_minimatch = __commonJS({ } else if (fi === fl) { return partial; } else if (pi === pl2) { - var emptyFileEnd = fi === fl - 1 && file[fi] === ""; - return emptyFileEnd; + return fi === fl - 1 && file[fi] === ""; } throw new Error("wtf?"); }; @@ -4119,12 +5344,13 @@ var require_common = __commonJS({ function ownProp(obj, field) { return Object.prototype.hasOwnProperty.call(obj, field); } + var fs4 = require("fs"); var path = require("path"); var minimatch = require_minimatch(); var isAbsolute = require_path_is_absolute(); var Minimatch = minimatch.Minimatch; - function alphasort(a2, b) { - return a2.localeCompare(b, "en"); + function alphasort(a3, b) { + return a3.localeCompare(b, "en"); } function setupIgnores(self3, options) { self3.ignore = options.ignore || []; @@ -4173,6 +5399,7 @@ var require_common = __commonJS({ self3.stat = !!options.stat; self3.noprocess = !!options.noprocess; self3.absolute = !!options.absolute; + self3.fs = options.fs || fs4; self3.maxLength = options.maxLength || Infinity; self3.cache = options.cache || Object.create(null); self3.statCache = options.statCache || Object.create(null); @@ -4196,6 +5423,7 @@ var require_common = __commonJS({ self3.nomount = !!options.nomount; options.nonegate = true; options.nocomment = true; + options.allowWindowsEscape = false; self3.minimatch = new Minimatch(pattern, options); self3.options = self3.minimatch.options; } @@ -4233,9 +5461,9 @@ var require_common = __commonJS({ if (self3.nodir) { all = all.filter(function(e3) { var notDir = !/\/$/.test(e3); - var c3 = self3.cache[e3] || self3.cache[makeAbs(self3, e3)]; - if (notDir && c3) - notDir = c3 !== "DIR" && !Array.isArray(c3); + var c4 = self3.cache[e3] || self3.cache[makeAbs(self3, e3)]; + if (notDir && c4) + notDir = c4 !== "DIR" && !Array.isArray(c4); return notDir; }); } @@ -4248,10 +5476,10 @@ var require_common = __commonJS({ } function mark(self3, p2) { var abs = makeAbs(self3, p2); - var c3 = self3.cache[abs]; + var c4 = self3.cache[abs]; var m4 = p2; - if (c3) { - var isDir = c3 === "DIR" || Array.isArray(c3); + if (c4) { + var isDir = c4 === "DIR" || Array.isArray(c4); var slash = p2.slice(-1) === "/"; if (isDir && !slash) m4 += "/"; @@ -4302,7 +5530,6 @@ var require_sync = __commonJS({ "node_modules/glob/sync.js"(exports2, module2) { module2.exports = globSync; globSync.GlobSync = GlobSync; - var fs4 = require("fs"); var rp = require_fs(); var minimatch = require_minimatch(); var Minimatch = minimatch.Minimatch; @@ -4339,7 +5566,7 @@ var require_sync = __commonJS({ this._finish(); } GlobSync.prototype._finish = function() { - assert(this instanceof GlobSync); + assert.ok(this instanceof GlobSync); if (this.realpath) { var self3 = this; this.matches.forEach(function(matchset, index) { @@ -4361,7 +5588,7 @@ var require_sync = __commonJS({ common.finish(this); }; GlobSync.prototype._process = function(pattern, index, inGlobStar) { - assert(this instanceof GlobSync); + assert.ok(this instanceof GlobSync); var n2 = 0; while (typeof pattern[n2] === "string") { n2++; @@ -4382,7 +5609,9 @@ var require_sync = __commonJS({ var read; if (prefix === null) read = "."; - else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) { + else if (isAbsolute(prefix) || isAbsolute(pattern.map(function(p2) { + return typeof p2 === "string" ? p2 : "[*]"; + }).join("/"))) { if (!prefix || !isAbsolute(prefix)) prefix = "/" + prefix; read = prefix; @@ -4463,8 +5692,8 @@ var require_sync = __commonJS({ if (this.matches[index][e3]) return; if (this.nodir) { - var c3 = this.cache[abs]; - if (c3 === "DIR" || Array.isArray(c3)) + var c4 = this.cache[abs]; + if (c4 === "DIR" || Array.isArray(c4)) return; } this.matches[index][e3] = true; @@ -4478,7 +5707,7 @@ var require_sync = __commonJS({ var lstat; var stat; try { - lstat = fs4.lstatSync(abs); + lstat = this.fs.lstatSync(abs); } catch (er) { if (er.code === "ENOENT") { return null; @@ -4497,14 +5726,14 @@ var require_sync = __commonJS({ if (inGlobStar && !ownProp(this.symlinks, abs)) return this._readdirInGlobStar(abs); if (ownProp(this.cache, abs)) { - var c3 = this.cache[abs]; - if (!c3 || c3 === "FILE") + var c4 = this.cache[abs]; + if (!c4 || c4 === "FILE") return null; - if (Array.isArray(c3)) - return c3; + if (Array.isArray(c4)) + return c4; } try { - return this._readdirEntries(abs, fs4.readdirSync(abs)); + return this._readdirEntries(abs, this.fs.readdirSync(abs)); } catch (er) { this._readdirError(abs, er); return null; @@ -4600,12 +5829,12 @@ var require_sync = __commonJS({ if (f2.length > this.maxLength) return false; if (!this.stat && ownProp(this.cache, abs)) { - var c3 = this.cache[abs]; - if (Array.isArray(c3)) - c3 = "DIR"; - if (!needDir || c3 === "DIR") - return c3; - if (needDir && c3 === "FILE") + var c4 = this.cache[abs]; + if (Array.isArray(c4)) + c4 = "DIR"; + if (!needDir || c4 === "DIR") + return c4; + if (needDir && c4 === "FILE") return false; } var exists; @@ -4613,7 +5842,7 @@ var require_sync = __commonJS({ if (!stat) { var lstat; try { - lstat = fs4.lstatSync(abs); + lstat = this.fs.lstatSync(abs); } catch (er) { if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) { this.statCache[abs] = false; @@ -4622,7 +5851,7 @@ var require_sync = __commonJS({ } if (lstat && lstat.isSymbolicLink()) { try { - stat = fs4.statSync(abs); + stat = this.fs.statSync(abs); } catch (er) { stat = lstat; } @@ -4631,13 +5860,13 @@ var require_sync = __commonJS({ } } this.statCache[abs] = stat; - var c3 = true; + var c4 = true; if (stat) - c3 = stat.isDirectory() ? "DIR" : "FILE"; - this.cache[abs] = this.cache[abs] || c3; - if (needDir && c3 === "FILE") + c4 = stat.isDirectory() ? "DIR" : "FILE"; + this.cache[abs] = this.cache[abs] || c4; + if (needDir && c4 === "FILE") return false; - return c3; + return c4; }; GlobSync.prototype._mark = function(p2) { return common.mark(this, p2); @@ -4775,7 +6004,6 @@ var require_inflight = __commonJS({ var require_glob = __commonJS({ "node_modules/glob/glob.js"(exports2, module2) { module2.exports = glob; - var fs4 = require("fs"); var rp = require_fs(); var minimatch = require_minimatch(); var Minimatch = minimatch.Minimatch; @@ -5005,7 +6233,9 @@ var require_glob = __commonJS({ var read; if (prefix === null) read = "."; - else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) { + else if (isAbsolute(prefix) || isAbsolute(pattern.map(function(p2) { + return typeof p2 === "string" ? p2 : "[*]"; + }).join("/"))) { if (!prefix || !isAbsolute(prefix)) prefix = "/" + prefix; read = prefix; @@ -5099,8 +6329,8 @@ var require_glob = __commonJS({ if (this.matches[index][e3]) return; if (this.nodir) { - var c3 = this.cache[abs]; - if (c3 === "DIR" || Array.isArray(c3)) + var c4 = this.cache[abs]; + if (c4 === "DIR" || Array.isArray(c4)) return; } this.matches[index][e3] = true; @@ -5118,7 +6348,7 @@ var require_glob = __commonJS({ var self3 = this; var lstatcb = inflight(lstatkey, lstatcb_); if (lstatcb) - fs4.lstat(abs, lstatcb); + self3.fs.lstat(abs, lstatcb); function lstatcb_(er, lstat) { if (er && er.code === "ENOENT") return cb(); @@ -5140,14 +6370,14 @@ var require_glob = __commonJS({ if (inGlobStar && !ownProp(this.symlinks, abs)) return this._readdirInGlobStar(abs, cb); if (ownProp(this.cache, abs)) { - var c3 = this.cache[abs]; - if (!c3 || c3 === "FILE") + var c4 = this.cache[abs]; + if (!c4 || c4 === "FILE") return cb(); - if (Array.isArray(c3)) - return cb(null, c3); + if (Array.isArray(c4)) + return cb(null, c4); } var self3 = this; - fs4.readdir(abs, readdirCb(this, abs, cb)); + self3.fs.readdir(abs, readdirCb(this, abs, cb)); }; function readdirCb(self3, abs, cb) { return function(er, entries2) { @@ -5267,12 +6497,12 @@ var require_glob = __commonJS({ if (f2.length > this.maxLength) return cb(); if (!this.stat && ownProp(this.cache, abs)) { - var c3 = this.cache[abs]; - if (Array.isArray(c3)) - c3 = "DIR"; - if (!needDir || c3 === "DIR") - return cb(null, c3); - if (needDir && c3 === "FILE") + var c4 = this.cache[abs]; + if (Array.isArray(c4)) + c4 = "DIR"; + if (!needDir || c4 === "DIR") + return cb(null, c4); + if (needDir && c4 === "FILE") return cb(); } var exists; @@ -5291,10 +6521,10 @@ var require_glob = __commonJS({ var self3 = this; var statcb = inflight("stat\0" + abs, lstatcb_); if (statcb) - fs4.lstat(abs, statcb); + self3.fs.lstat(abs, statcb); function lstatcb_(er, lstat) { if (lstat && lstat.isSymbolicLink()) { - return fs4.stat(abs, function(er2, stat2) { + return self3.fs.stat(abs, function(er2, stat2) { if (er2) self3._stat2(f2, abs, null, lstat, cb); else @@ -5314,13 +6544,13 @@ var require_glob = __commonJS({ this.statCache[abs] = stat; if (abs.slice(-1) === "/" && stat && !stat.isDirectory()) return cb(null, false, stat); - var c3 = true; + var c4 = true; if (stat) - c3 = stat.isDirectory() ? "DIR" : "FILE"; - this.cache[abs] = this.cache[abs] || c3; - if (needDir && c3 === "FILE") + c4 = stat.isDirectory() ? "DIR" : "FILE"; + this.cache[abs] = this.cache[abs] || c4; + if (needDir && c4 === "FILE") return cb(); - return cb(null, c3, stat); + return cb(null, c4, stat); }; } }); @@ -6007,7 +7237,7 @@ var require_status_reporter = __commonJS({ "node_modules/@actions/artifact/lib/internal/status-reporter.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - var core_1 = require_core2(); + var core_1 = require_core(); var StatusReporter = class { constructor(displayFrequencyInMilliseconds) { this.totalNumberOfFilesToProcess = 0; @@ -6061,7 +7291,7 @@ var require_http_manager = __commonJS({ "node_modules/@actions/artifact/lib/internal/http-manager.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); var HttpManager = class { constructor(clientCount, userAgent) { if (clientCount < 1) { @@ -6250,8 +7480,8 @@ var require_requestUtils = __commonJS({ return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); - var utils_1 = require_utils3(); - var core2 = __importStar(require_core2()); + var utils_1 = require_utils2(); + var core2 = __importStar(require_core()); var config_variables_1 = require_config_variables(); function retry(name, operation, customErrorMessages, maxAttempts) { return __awaiter(this, void 0, void 0, function* () { @@ -6352,10 +7582,10 @@ var require_upload_http_client = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core2 = __importStar(require_core2()); + var core2 = __importStar(require_core()); var tmp = __importStar(require_tmp_promise()); var stream = __importStar(require("stream")); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); var config_variables_1 = require_config_variables(); var util_1 = require("util"); var url_1 = require("url"); @@ -6681,9 +7911,9 @@ var require_download_http_client = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core2 = __importStar(require_core2()); + var core2 = __importStar(require_core()); var zlib = __importStar(require("zlib")); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); var url_1 = require("url"); var status_reporter_1 = require_status_reporter(); var perf_hooks_1 = require("perf_hooks"); @@ -6964,10 +8194,10 @@ var require_artifact_client = __commonJS({ return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); - var core2 = __importStar(require_core2()); + var core2 = __importStar(require_core()); var upload_specification_1 = require_upload_specification(); var upload_http_client_1 = require_upload_http_client(); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); var download_http_client_1 = require_download_http_client(); var download_specification_1 = require_download_specification(); var config_variables_1 = require_config_variables(); @@ -7195,16 +8425,16 @@ var require_react_production_min = __commonJS({ } var w2; var x2 = typeof Symbol === "function" && Symbol.iterator; - function y3(a2) { - if (a2 === null || typeof a2 !== "object") + function y3(a3) { + if (a3 === null || typeof a3 !== "object") return null; - a2 = x2 && a2[x2] || a2["@@iterator"]; - return typeof a2 === "function" ? a2 : null; + a3 = x2 && a3[x2] || a3["@@iterator"]; + return typeof a3 === "function" ? a3 : null; } - function z(a2) { - for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c3 = 1; c3 < arguments.length; c3++) - b += "&args[]=" + encodeURIComponent(arguments[c3]); - return "Minified React error #" + a2 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + function z(a3) { + for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a3, c4 = 1; c4 < arguments.length; c4++) + b += "&args[]=" + encodeURIComponent(arguments[c4]); + return "Minified React error #" + a3 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } var A = { isMounted: function() { return false; @@ -7213,29 +8443,29 @@ var require_react_production_min = __commonJS({ }, enqueueSetState: function() { } }; var B = {}; - function C(a2, b, c3) { - this.props = a2; + function C(a3, b, c4) { + this.props = a3; this.context = b; this.refs = B; - this.updater = c3 || A; + this.updater = c4 || A; } C.prototype.isReactComponent = {}; - C.prototype.setState = function(a2, b) { - if (typeof a2 !== "object" && typeof a2 !== "function" && a2 != null) + C.prototype.setState = function(a3, b) { + if (typeof a3 !== "object" && typeof a3 !== "function" && a3 != null) throw Error(z(85)); - this.updater.enqueueSetState(this, a2, b, "setState"); + this.updater.enqueueSetState(this, a3, b, "setState"); }; - C.prototype.forceUpdate = function(a2) { - this.updater.enqueueForceUpdate(this, a2, "forceUpdate"); + C.prototype.forceUpdate = function(a3) { + this.updater.enqueueForceUpdate(this, a3, "forceUpdate"); }; function D() { } D.prototype = C.prototype; - function E2(a2, b, c3) { - this.props = a2; + function E2(a3, b, c4) { + this.props = a3; this.context = b; this.refs = B; - this.updater = c3 || A; + this.updater = c4 || A; } var F = E2.prototype = new D(); F.constructor = E2; @@ -7244,46 +8474,46 @@ var require_react_production_min = __commonJS({ var G = { current: null }; var H = Object.prototype.hasOwnProperty; var I = { key: true, ref: true, __self: true, __source: true }; - function J(a2, b, c3) { + function J(a3, b, c4) { var e3, d2 = {}, k = null, h2 = null; if (b != null) for (e3 in b.ref !== void 0 && (h2 = b.ref), b.key !== void 0 && (k = "" + b.key), b) H.call(b, e3) && !I.hasOwnProperty(e3) && (d2[e3] = b[e3]); var g2 = arguments.length - 2; if (g2 === 1) - d2.children = c3; + d2.children = c4; else if (1 < g2) { for (var f2 = Array(g2), m4 = 0; m4 < g2; m4++) f2[m4] = arguments[m4 + 2]; d2.children = f2; } - if (a2 && a2.defaultProps) - for (e3 in g2 = a2.defaultProps, g2) + if (a3 && a3.defaultProps) + for (e3 in g2 = a3.defaultProps, g2) d2[e3] === void 0 && (d2[e3] = g2[e3]); - return { $$typeof: n2, type: a2, key: k, ref: h2, props: d2, _owner: G.current }; + return { $$typeof: n2, type: a3, key: k, ref: h2, props: d2, _owner: G.current }; } - function K(a2, b) { - return { $$typeof: n2, type: a2.type, key: b, ref: a2.ref, props: a2.props, _owner: a2._owner }; + function K(a3, b) { + return { $$typeof: n2, type: a3.type, key: b, ref: a3.ref, props: a3.props, _owner: a3._owner }; } - function L(a2) { - return typeof a2 === "object" && a2 !== null && a2.$$typeof === n2; + function L(a3) { + return typeof a3 === "object" && a3 !== null && a3.$$typeof === n2; } - function escape(a2) { + function escape(a3) { var b = { "=": "=0", ":": "=2" }; - return "$" + a2.replace(/[=:]/g, function(a3) { - return b[a3]; + return "$" + a3.replace(/[=:]/g, function(a4) { + return b[a4]; }); } var M = /\/+/g; - function N(a2, b) { - return typeof a2 === "object" && a2 !== null && a2.key != null ? escape("" + a2.key) : b.toString(36); + function N(a3, b) { + return typeof a3 === "object" && a3 !== null && a3.key != null ? escape("" + a3.key) : b.toString(36); } - function O(a2, b, c3, e3, d2) { - var k = typeof a2; + function O(a3, b, c4, e3, d2) { + var k = typeof a3; if (k === "undefined" || k === "boolean") - a2 = null; + a3 = null; var h2 = false; - if (a2 === null) + if (a3 === null) h2 = true; else switch (k) { @@ -7292,101 +8522,101 @@ var require_react_production_min = __commonJS({ h2 = true; break; case "object": - switch (a2.$$typeof) { + switch (a3.$$typeof) { case n2: case p2: h2 = true; } } if (h2) - return h2 = a2, d2 = d2(h2), a2 = e3 === "" ? "." + N(h2, 0) : e3, Array.isArray(d2) ? (c3 = "", a2 != null && (c3 = a2.replace(M, "$&/") + "/"), O(d2, b, c3, "", function(a3) { - return a3; - })) : d2 != null && (L(d2) && (d2 = K(d2, c3 + (!d2.key || h2 && h2.key === d2.key ? "" : ("" + d2.key).replace(M, "$&/") + "/") + a2)), b.push(d2)), 1; + return h2 = a3, d2 = d2(h2), a3 = e3 === "" ? "." + N(h2, 0) : e3, Array.isArray(d2) ? (c4 = "", a3 != null && (c4 = a3.replace(M, "$&/") + "/"), O(d2, b, c4, "", function(a4) { + return a4; + })) : d2 != null && (L(d2) && (d2 = K(d2, c4 + (!d2.key || h2 && h2.key === d2.key ? "" : ("" + d2.key).replace(M, "$&/") + "/") + a3)), b.push(d2)), 1; h2 = 0; e3 = e3 === "" ? "." : e3 + ":"; - if (Array.isArray(a2)) - for (var g2 = 0; g2 < a2.length; g2++) { - k = a2[g2]; + if (Array.isArray(a3)) + for (var g2 = 0; g2 < a3.length; g2++) { + k = a3[g2]; var f2 = e3 + N(k, g2); - h2 += O(k, b, c3, f2, d2); + h2 += O(k, b, c4, f2, d2); } - else if (f2 = y3(a2), typeof f2 === "function") - for (a2 = f2.call(a2), g2 = 0; !(k = a2.next()).done; ) - k = k.value, f2 = e3 + N(k, g2++), h2 += O(k, b, c3, f2, d2); + else if (f2 = y3(a3), typeof f2 === "function") + for (a3 = f2.call(a3), g2 = 0; !(k = a3.next()).done; ) + k = k.value, f2 = e3 + N(k, g2++), h2 += O(k, b, c4, f2, d2); else if (k === "object") - throw b = "" + a2, Error(z(31, b === "[object Object]" ? "object with keys {" + Object.keys(a2).join(", ") + "}" : b)); + throw b = "" + a3, Error(z(31, b === "[object Object]" ? "object with keys {" + Object.keys(a3).join(", ") + "}" : b)); return h2; } - function P(a2, b, c3) { - if (a2 == null) - return a2; + function P(a3, b, c4) { + if (a3 == null) + return a3; var e3 = [], d2 = 0; - O(a2, e3, "", "", function(a3) { - return b.call(c3, a3, d2++); + O(a3, e3, "", "", function(a4) { + return b.call(c4, a4, d2++); }); return e3; } - function Q(a2) { - if (a2._status === -1) { - var b = a2._result; + function Q(a3) { + if (a3._status === -1) { + var b = a3._result; b = b(); - a2._status = 0; - a2._result = b; + a3._status = 0; + a3._result = b; b.then(function(b2) { - a2._status === 0 && (b2 = b2.default, a2._status = 1, a2._result = b2); + a3._status === 0 && (b2 = b2.default, a3._status = 1, a3._result = b2); }, function(b2) { - a2._status === 0 && (a2._status = 2, a2._result = b2); + a3._status === 0 && (a3._status = 2, a3._result = b2); }); } - if (a2._status === 1) - return a2._result; - throw a2._result; + if (a3._status === 1) + return a3._result; + throw a3._result; } var R = { current: null }; function S() { - var a2 = R.current; - if (a2 === null) + var a3 = R.current; + if (a3 === null) throw Error(z(321)); - return a2; + return a3; } var T = { ReactCurrentDispatcher: R, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: G, IsSomeRendererActing: { current: false }, assign: l2 }; - exports2.Children = { map: P, forEach: function(a2, b, c3) { - P(a2, function() { + exports2.Children = { map: P, forEach: function(a3, b, c4) { + P(a3, function() { b.apply(this, arguments); - }, c3); - }, count: function(a2) { + }, c4); + }, count: function(a3) { var b = 0; - P(a2, function() { + P(a3, function() { b++; }); return b; - }, toArray: function(a2) { - return P(a2, function(a3) { - return a3; + }, toArray: function(a3) { + return P(a3, function(a4) { + return a4; }) || []; - }, only: function(a2) { - if (!L(a2)) + }, only: function(a3) { + if (!L(a3)) throw Error(z(143)); - return a2; + return a3; } }; exports2.Component = C; exports2.PureComponent = E2; exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T; - exports2.cloneElement = function(a2, b, c3) { - if (a2 === null || a2 === void 0) - throw Error(z(267, a2)); - var e3 = l2({}, a2.props), d2 = a2.key, k = a2.ref, h2 = a2._owner; + exports2.cloneElement = function(a3, b, c4) { + if (a3 === null || a3 === void 0) + throw Error(z(267, a3)); + var e3 = l2({}, a3.props), d2 = a3.key, k = a3.ref, h2 = a3._owner; if (b != null) { b.ref !== void 0 && (k = b.ref, h2 = G.current); b.key !== void 0 && (d2 = "" + b.key); - if (a2.type && a2.type.defaultProps) - var g2 = a2.type.defaultProps; + if (a3.type && a3.type.defaultProps) + var g2 = a3.type.defaultProps; for (f2 in b) H.call(b, f2) && !I.hasOwnProperty(f2) && (e3[f2] = b[f2] === void 0 && g2 !== void 0 ? g2[f2] : b[f2]); } var f2 = arguments.length - 2; if (f2 === 1) - e3.children = c3; + e3.children = c4; else if (1 < f2) { g2 = Array(f2); for (var m4 = 0; m4 < f2; m4++) @@ -7395,66 +8625,66 @@ var require_react_production_min = __commonJS({ } return { $$typeof: n2, - type: a2.type, + type: a3.type, key: d2, ref: k, props: e3, _owner: h2 }; }; - exports2.createContext = function(a2, b) { + exports2.createContext = function(a3, b) { b === void 0 && (b = null); - a2 = { $$typeof: r4, _calculateChangedBits: b, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null }; - a2.Provider = { $$typeof: q2, _context: a2 }; - return a2.Consumer = a2; + a3 = { $$typeof: r4, _calculateChangedBits: b, _currentValue: a3, _currentValue2: a3, _threadCount: 0, Provider: null, Consumer: null }; + a3.Provider = { $$typeof: q2, _context: a3 }; + return a3.Consumer = a3; }; exports2.createElement = J; - exports2.createFactory = function(a2) { - var b = J.bind(null, a2); - b.type = a2; + exports2.createFactory = function(a3) { + var b = J.bind(null, a3); + b.type = a3; return b; }; exports2.createRef = function() { return { current: null }; }; - exports2.forwardRef = function(a2) { - return { $$typeof: t2, render: a2 }; + exports2.forwardRef = function(a3) { + return { $$typeof: t2, render: a3 }; }; exports2.isValidElement = L; - exports2.lazy = function(a2) { - return { $$typeof: v2, _payload: { _status: -1, _result: a2 }, _init: Q }; + exports2.lazy = function(a3) { + return { $$typeof: v2, _payload: { _status: -1, _result: a3 }, _init: Q }; }; - exports2.memo = function(a2, b) { - return { $$typeof: u, type: a2, compare: b === void 0 ? null : b }; + exports2.memo = function(a3, b) { + return { $$typeof: u, type: a3, compare: b === void 0 ? null : b }; }; - exports2.useCallback = function(a2, b) { - return S().useCallback(a2, b); + exports2.useCallback = function(a3, b) { + return S().useCallback(a3, b); }; - exports2.useContext = function(a2, b) { - return S().useContext(a2, b); + exports2.useContext = function(a3, b) { + return S().useContext(a3, b); }; exports2.useDebugValue = function() { }; - exports2.useEffect = function(a2, b) { - return S().useEffect(a2, b); + exports2.useEffect = function(a3, b) { + return S().useEffect(a3, b); }; - exports2.useImperativeHandle = function(a2, b, c3) { - return S().useImperativeHandle(a2, b, c3); + exports2.useImperativeHandle = function(a3, b, c4) { + return S().useImperativeHandle(a3, b, c4); }; - exports2.useLayoutEffect = function(a2, b) { - return S().useLayoutEffect(a2, b); + exports2.useLayoutEffect = function(a3, b) { + return S().useLayoutEffect(a3, b); }; - exports2.useMemo = function(a2, b) { - return S().useMemo(a2, b); + exports2.useMemo = function(a3, b) { + return S().useMemo(a3, b); }; - exports2.useReducer = function(a2, b, c3) { - return S().useReducer(a2, b, c3); + exports2.useReducer = function(a3, b, c4) { + return S().useReducer(a3, b, c4); }; - exports2.useRef = function(a2) { - return S().useRef(a2); + exports2.useRef = function(a3) { + return S().useRef(a3); }; - exports2.useState = function(a2) { - return S().useState(a2); + exports2.useState = function(a3) { + return S().useState(a3); }; exports2.version = "17.0.2"; } @@ -8037,8 +9267,8 @@ var require_react_development = __commonJS({ if (childKey != null) { escapedChildKey = escapeUserProvidedKey(childKey) + "/"; } - mapIntoArray(mappedChild, array2, escapedChildKey, "", function(c3) { - return c3; + mapIntoArray(mappedChild, array2, escapedChildKey, "", function(c4) { + return c4; }); } else if (mappedChild != null) { if (isValidElement(mappedChild)) { @@ -8608,17 +9838,17 @@ var require_react_development = __commonJS({ var sampleLines = sample.stack.split("\n"); var controlLines = control.stack.split("\n"); var s = sampleLines.length - 1; - var c3 = controlLines.length - 1; - while (s >= 1 && c3 >= 0 && sampleLines[s] !== controlLines[c3]) { - c3--; + var c4 = controlLines.length - 1; + while (s >= 1 && c4 >= 0 && sampleLines[s] !== controlLines[c4]) { + c4--; } - for (; s >= 1 && c3 >= 0; s--, c3--) { - if (sampleLines[s] !== controlLines[c3]) { - if (s !== 1 || c3 !== 1) { + for (; s >= 1 && c4 >= 0; s--, c4--) { + if (sampleLines[s] !== controlLines[c4]) { + if (s !== 1 || c4 !== 1) { do { s--; - c3--; - if (c3 < 0 || sampleLines[s] !== controlLines[c3]) { + c4--; + if (c4 < 0 || sampleLines[s] !== controlLines[c4]) { var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); { if (typeof fn === "function") { @@ -8627,7 +9857,7 @@ var require_react_development = __commonJS({ } return _frame; } - } while (s >= 1 && c3 >= 0); + } while (s >= 1 && c4 >= 0); } break; } @@ -9027,10 +10257,10 @@ var require_react_dom_server_node_production_min = __commonJS({ var l2 = require_object_assign(); var n2 = require_react(); var aa = require("stream"); - function p2(a2) { - for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c3 = 1; c3 < arguments.length; c3++) - b += "&args[]=" + encodeURIComponent(arguments[c3]); - return "Minified React error #" + a2 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + function p2(a3) { + for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a3, c4 = 1; c4 < arguments.length; c4++) + b += "&args[]=" + encodeURIComponent(arguments[c4]); + return "Minified React error #" + a3 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } var q2 = 60106; var r4 = 60107; @@ -9068,14 +10298,14 @@ var require_react_dom_server_node_production_min = __commonJS({ la = E2("react.legacy_hidden"); } var E2; - function F(a2) { - if (a2 == null) + function F(a3) { + if (a3 == null) return null; - if (typeof a2 === "function") - return a2.displayName || a2.name || null; - if (typeof a2 === "string") - return a2; - switch (a2) { + if (typeof a3 === "function") + return a3.displayName || a3.name || null; + if (typeof a3 === "string") + return a3; + switch (a3) { case r4: return "Fragment"; case q2: @@ -9089,67 +10319,69 @@ var require_react_dom_server_node_production_min = __commonJS({ case da: return "SuspenseList"; } - if (typeof a2 === "object") - switch (a2.$$typeof) { + if (typeof a3 === "object") + switch (a3.$$typeof) { case ba: - return (a2.displayName || "Context") + ".Consumer"; + return (a3.displayName || "Context") + ".Consumer"; case B: - return (a2._context.displayName || "Context") + ".Provider"; + return (a3._context.displayName || "Context") + ".Provider"; case ca: - var b = a2.render; + var b = a3.render; b = b.displayName || b.name || ""; - return a2.displayName || (b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"); + return a3.displayName || (b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"); case ea: - return F(a2.type); + return F(a3.type); case ha: - return F(a2._render); + return F(a3._render); case fa: - b = a2._payload; - a2 = a2._init; + b = a3._payload; + a3 = a3._init; try { - return F(a2(b)); - } catch (c3) { + return F(a3(b)); + } catch (c4) { } } return null; } var ma2 = n2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; var na = {}; - function I(a2, b) { - for (var c3 = a2._threadCount | 0; c3 <= b; c3++) - a2[c3] = a2._currentValue2, a2._threadCount = c3 + 1; - } - function oa(a2, b, c3, d2) { - if (d2 && (d2 = a2.contextType, typeof d2 === "object" && d2 !== null)) - return I(d2, c3), d2[c3]; - if (a2 = a2.contextTypes) { - c3 = {}; - for (var f2 in a2) - c3[f2] = b[f2]; - b = c3; + function I(a3, b) { + for (var c4 = a3._threadCount | 0; c4 <= b; c4++) + a3[c4] = a3._currentValue2, a3._threadCount = c4 + 1; + } + function oa(a3, b, c4, d2) { + if (d2 && (d2 = a3.contextType, typeof d2 === "object" && d2 !== null)) + return I(d2, c4), d2[c4]; + if (a3 = a3.contextTypes) { + c4 = {}; + for (var f2 in a3) + c4[f2] = b[f2]; + b = c4; } else b = na; return b; } - for (var J = new Uint16Array(16), K = 0; 15 > K; K++) + for (J = new Uint16Array(16), K = 0; 15 > K; K++) J[K] = K + 1; + var J; + var K; J[15] = 0; var pa = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/; var qa = Object.prototype.hasOwnProperty; var ra = {}; var sa = {}; - function ta(a2) { - if (qa.call(sa, a2)) + function ta(a3) { + if (qa.call(sa, a3)) return true; - if (qa.call(ra, a2)) + if (qa.call(ra, a3)) return false; - if (pa.test(a2)) - return sa[a2] = true; - ra[a2] = true; + if (pa.test(a3)) + return sa[a3] = true; + ra[a3] = true; return false; } - function ua(a2, b, c3, d2) { - if (c3 !== null && c3.type === 0) + function ua(a3, b, c4, d2) { + if (c4 !== null && c4.type === 0) return false; switch (typeof b) { case "function": @@ -9158,21 +10390,21 @@ var require_react_dom_server_node_production_min = __commonJS({ case "boolean": if (d2) return false; - if (c3 !== null) - return !c3.acceptsBooleans; - a2 = a2.toLowerCase().slice(0, 5); - return a2 !== "data-" && a2 !== "aria-"; + if (c4 !== null) + return !c4.acceptsBooleans; + a3 = a3.toLowerCase().slice(0, 5); + return a3 !== "data-" && a3 !== "aria-"; default: return false; } } - function va(a2, b, c3, d2) { - if (b === null || typeof b === "undefined" || ua(a2, b, c3, d2)) + function va(a3, b, c4, d2) { + if (b === null || typeof b === "undefined" || ua(a3, b, c4, d2)) return true; if (d2) return false; - if (c3 !== null) - switch (c3.type) { + if (c4 !== null) + switch (c4.type) { case 3: return !b; case 4: @@ -9184,78 +10416,78 @@ var require_react_dom_server_node_production_min = __commonJS({ } return false; } - function M(a2, b, c3, d2, f2, h2, t2) { + function M(a3, b, c4, d2, f2, h2, t2) { this.acceptsBooleans = b === 2 || b === 3 || b === 4; this.attributeName = d2; this.attributeNamespace = f2; - this.mustUseProperty = c3; - this.propertyName = a2; + this.mustUseProperty = c4; + this.propertyName = a3; this.type = b; this.sanitizeURL = h2; this.removeEmptyString = t2; } var N = {}; - "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a2) { - N[a2] = new M(a2, 0, false, a2, null, false, false); + "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a3) { + N[a3] = new M(a3, 0, false, a3, null, false, false); }); - [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a2) { - var b = a2[0]; - N[b] = new M(b, 1, false, a2[1], null, false, false); + [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a3) { + var b = a3[0]; + N[b] = new M(b, 1, false, a3[1], null, false, false); }); - ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a2) { - N[a2] = new M(a2, 2, false, a2.toLowerCase(), null, false, false); + ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a3) { + N[a3] = new M(a3, 2, false, a3.toLowerCase(), null, false, false); }); - ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a2) { - N[a2] = new M(a2, 2, false, a2, null, false, false); + ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a3) { + N[a3] = new M(a3, 2, false, a3, null, false, false); }); - "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a2) { - N[a2] = new M(a2, 3, false, a2.toLowerCase(), null, false, false); + "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a3) { + N[a3] = new M(a3, 3, false, a3.toLowerCase(), null, false, false); }); - ["checked", "multiple", "muted", "selected"].forEach(function(a2) { - N[a2] = new M(a2, 3, true, a2, null, false, false); + ["checked", "multiple", "muted", "selected"].forEach(function(a3) { + N[a3] = new M(a3, 3, true, a3, null, false, false); }); - ["capture", "download"].forEach(function(a2) { - N[a2] = new M(a2, 4, false, a2, null, false, false); + ["capture", "download"].forEach(function(a3) { + N[a3] = new M(a3, 4, false, a3, null, false, false); }); - ["cols", "rows", "size", "span"].forEach(function(a2) { - N[a2] = new M(a2, 6, false, a2, null, false, false); + ["cols", "rows", "size", "span"].forEach(function(a3) { + N[a3] = new M(a3, 6, false, a3, null, false, false); }); - ["rowSpan", "start"].forEach(function(a2) { - N[a2] = new M(a2, 5, false, a2.toLowerCase(), null, false, false); + ["rowSpan", "start"].forEach(function(a3) { + N[a3] = new M(a3, 5, false, a3.toLowerCase(), null, false, false); }); var wa = /[\-:]([a-z])/g; - function xa(a2) { - return a2[1].toUpperCase(); + function xa(a3) { + return a3[1].toUpperCase(); } - "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a2) { - var b = a2.replace(wa, xa); - N[b] = new M(b, 1, false, a2, null, false, false); + "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a3) { + var b = a3.replace(wa, xa); + N[b] = new M(b, 1, false, a3, null, false, false); }); - "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a2) { - var b = a2.replace(wa, xa); - N[b] = new M(b, 1, false, a2, "http://www.w3.org/1999/xlink", false, false); + "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a3) { + var b = a3.replace(wa, xa); + N[b] = new M(b, 1, false, a3, "http://www.w3.org/1999/xlink", false, false); }); - ["xml:base", "xml:lang", "xml:space"].forEach(function(a2) { - var b = a2.replace(wa, xa); - N[b] = new M(b, 1, false, a2, "http://www.w3.org/XML/1998/namespace", false, false); + ["xml:base", "xml:lang", "xml:space"].forEach(function(a3) { + var b = a3.replace(wa, xa); + N[b] = new M(b, 1, false, a3, "http://www.w3.org/XML/1998/namespace", false, false); }); - ["tabIndex", "crossOrigin"].forEach(function(a2) { - N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, false, false); + ["tabIndex", "crossOrigin"].forEach(function(a3) { + N[a3] = new M(a3, 1, false, a3.toLowerCase(), null, false, false); }); N.xlinkHref = new M("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); - ["src", "href", "action", "formAction"].forEach(function(a2) { - N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, true, true); + ["src", "href", "action", "formAction"].forEach(function(a3) { + N[a3] = new M(a3, 1, false, a3.toLowerCase(), null, true, true); }); var ya = /["'&<>]/; - function O(a2) { - if (typeof a2 === "boolean" || typeof a2 === "number") - return "" + a2; - a2 = "" + a2; - var b = ya.exec(a2); + function O(a3) { + if (typeof a3 === "boolean" || typeof a3 === "number") + return "" + a3; + a3 = "" + a3; + var b = ya.exec(a3); if (b) { - var c3 = "", d2, f2 = 0; - for (d2 = b.index; d2 < a2.length; d2++) { - switch (a2.charCodeAt(d2)) { + var c4 = "", d2, f2 = 0; + for (d2 = b.index; d2 < a3.length; d2++) { + switch (a3.charCodeAt(d2)) { case 34: b = """; break; @@ -9274,33 +10506,33 @@ var require_react_dom_server_node_production_min = __commonJS({ default: continue; } - f2 !== d2 && (c3 += a2.substring(f2, d2)); + f2 !== d2 && (c4 += a3.substring(f2, d2)); f2 = d2 + 1; - c3 += b; + c4 += b; } - a2 = f2 !== d2 ? c3 + a2.substring(f2, d2) : c3; + a3 = f2 !== d2 ? c4 + a3.substring(f2, d2) : c4; } - return a2; + return a3; } - function za(a2, b) { - var c3 = N.hasOwnProperty(a2) ? N[a2] : null; + function za(a3, b) { + var c4 = N.hasOwnProperty(a3) ? N[a3] : null; var d2; - if (d2 = a2 !== "style") - d2 = c3 !== null ? c3.type === 0 : !(2 < a2.length) || a2[0] !== "o" && a2[0] !== "O" || a2[1] !== "n" && a2[1] !== "N" ? false : true; - if (d2 || va(a2, b, c3, false)) + if (d2 = a3 !== "style") + d2 = c4 !== null ? c4.type === 0 : !(2 < a3.length) || a3[0] !== "o" && a3[0] !== "O" || a3[1] !== "n" && a3[1] !== "N" ? false : true; + if (d2 || va(a3, b, c4, false)) return ""; - if (c3 !== null) { - a2 = c3.attributeName; - d2 = c3.type; + if (c4 !== null) { + a3 = c4.attributeName; + d2 = c4.type; if (d2 === 3 || d2 === 4 && b === true) - return a2 + '=""'; - c3.sanitizeURL && (b = "" + b); - return a2 + '="' + (O(b) + '"'); + return a3 + '=""'; + c4.sanitizeURL && (b = "" + b); + return a3 + '="' + (O(b) + '"'); } - return ta(a2) ? a2 + '="' + (O(b) + '"') : ""; + return ta(a3) ? a3 + '="' + (O(b) + '"') : ""; } - function Aa(a2, b) { - return a2 === b && (a2 !== 0 || 1 / a2 === 1 / b) || a2 !== a2 && b !== b; + function Aa(a3, b) { + return a3 === b && (a3 !== 0 || 1 / a3 === 1 / b) || a3 !== a3 && b !== b; } var Ba = typeof Object.is === "function" ? Object.is : Aa; var P = null; @@ -9324,11 +10556,11 @@ var require_react_dom_server_node_production_min = __commonJS({ R === null ? Q === null ? (S = false, Q = R = Ca()) : (S = true, R = Q) : R.next === null ? (S = false, R = R.next = Ca()) : (S = true, R = R.next); return R; } - function Ea(a2, b, c3, d2) { + function Ea(a3, b, c4, d2) { for (; T; ) - T = false, V += 1, R = null, c3 = a2(b, d2); + T = false, V += 1, R = null, c4 = a3(b, d2); Fa(); - return c3; + return c4; } function Fa() { P = null; @@ -9337,40 +10569,40 @@ var require_react_dom_server_node_production_min = __commonJS({ V = 0; R = U = null; } - function Ga(a2, b) { - return typeof b === "function" ? b(a2) : b; + function Ga(a3, b) { + return typeof b === "function" ? b(a3) : b; } - function Ha(a2, b, c3) { + function Ha(a3, b, c4) { P = W(); R = Da(); if (S) { var d2 = R.queue; b = d2.dispatch; - if (U !== null && (c3 = U.get(d2), c3 !== void 0)) { + if (U !== null && (c4 = U.get(d2), c4 !== void 0)) { U.delete(d2); d2 = R.memoizedState; do - d2 = a2(d2, c3.action), c3 = c3.next; - while (c3 !== null); + d2 = a3(d2, c4.action), c4 = c4.next; + while (c4 !== null); R.memoizedState = d2; return [d2, b]; } return [R.memoizedState, b]; } - a2 = a2 === Ga ? typeof b === "function" ? b() : b : c3 !== void 0 ? c3(b) : b; - R.memoizedState = a2; - a2 = R.queue = { last: null, dispatch: null }; - a2 = a2.dispatch = Ia.bind(null, P, a2); - return [R.memoizedState, a2]; + a3 = a3 === Ga ? typeof b === "function" ? b() : b : c4 !== void 0 ? c4(b) : b; + R.memoizedState = a3; + a3 = R.queue = { last: null, dispatch: null }; + a3 = a3.dispatch = Ia.bind(null, P, a3); + return [R.memoizedState, a3]; } - function Ja(a2, b) { + function Ja(a3, b) { P = W(); R = Da(); b = b === void 0 ? null : b; if (R !== null) { - var c3 = R.memoizedState; - if (c3 !== null && b !== null) { - var d2 = c3[1]; + var c4 = R.memoizedState; + if (c4 !== null && b !== null) { + var d2 = c4[1]; a: if (d2 === null) d2 = false; @@ -9383,66 +10615,66 @@ var require_react_dom_server_node_production_min = __commonJS({ d2 = true; } if (d2) - return c3[0]; + return c4[0]; } } - a2 = a2(); - R.memoizedState = [a2, b]; - return a2; + a3 = a3(); + R.memoizedState = [a3, b]; + return a3; } - function Ia(a2, b, c3) { + function Ia(a3, b, c4) { if (!(25 > V)) throw Error(p2(301)); - if (a2 === P) - if (T = true, a2 = { action: c3, next: null }, U === null && (U = new Map()), c3 = U.get(b), c3 === void 0) - U.set(b, a2); + if (a3 === P) + if (T = true, a3 = { action: c4, next: null }, U === null && (U = new Map()), c4 = U.get(b), c4 === void 0) + U.set(b, a3); else { - for (b = c3; b.next !== null; ) + for (b = c4; b.next !== null; ) b = b.next; - b.next = a2; + b.next = a3; } } function Ka() { } var X2 = null; - var La = { readContext: function(a2) { + var La = { readContext: function(a3) { var b = X2.threadID; - I(a2, b); - return a2[b]; - }, useContext: function(a2) { + I(a3, b); + return a3[b]; + }, useContext: function(a3) { W(); var b = X2.threadID; - I(a2, b); - return a2[b]; - }, useMemo: Ja, useReducer: Ha, useRef: function(a2) { + I(a3, b); + return a3[b]; + }, useMemo: Ja, useReducer: Ha, useRef: function(a3) { P = W(); R = Da(); var b = R.memoizedState; - return b === null ? (a2 = { current: a2 }, R.memoizedState = a2) : b; - }, useState: function(a2) { - return Ha(Ga, a2); + return b === null ? (a3 = { current: a3 }, R.memoizedState = a3) : b; + }, useState: function(a3) { + return Ha(Ga, a3); }, useLayoutEffect: function() { - }, useCallback: function(a2, b) { + }, useCallback: function(a3, b) { return Ja(function() { - return a2; + return a3; }, b); - }, useImperativeHandle: Ka, useEffect: Ka, useDebugValue: Ka, useDeferredValue: function(a2) { + }, useImperativeHandle: Ka, useEffect: Ka, useDebugValue: Ka, useDeferredValue: function(a3) { W(); - return a2; + return a3; }, useTransition: function() { W(); - return [function(a2) { - a2(); + return [function(a3) { + a3(); }, false]; }, useOpaqueIdentifier: function() { return (X2.identifierPrefix || "") + "R:" + (X2.uniqueID++).toString(36); - }, useMutableSource: function(a2, b) { + }, useMutableSource: function(a3, b) { W(); - return b(a2._source); + return b(a3._source); } }; var Ma = { html: "http://www.w3.org/1999/xhtml", mathml: "http://www.w3.org/1998/Math/MathML", svg: "http://www.w3.org/2000/svg" }; - function Na(a2) { - switch (a2) { + function Na(a3) { + switch (a3) { case "svg": return "http://www.w3.org/2000/svg"; case "math": @@ -9498,10 +10730,10 @@ var require_react_dom_server_node_production_min = __commonJS({ strokeWidth: true }; var Qa = ["Webkit", "ms", "Moz", "O"]; - Object.keys(Y2).forEach(function(a2) { + Object.keys(Y2).forEach(function(a3) { Qa.forEach(function(b) { - b = b + a2.charAt(0).toUpperCase() + a2.substring(1); - Y2[b] = Y2[a2]; + b = b + a3.charAt(0).toUpperCase() + a3.substring(1); + Y2[b] = Y2[a3]; }); }); var Ra = /([A-Z])/g; @@ -9512,32 +10744,32 @@ var require_react_dom_server_node_production_min = __commonJS({ var Va = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; var Wa = {}; var Xa = {}; - function Ya(a2) { - if (a2 === void 0 || a2 === null) - return a2; + function Ya(a3) { + if (a3 === void 0 || a3 === null) + return a3; var b = ""; - n2.Children.forEach(a2, function(a3) { - a3 != null && (b += a3); + n2.Children.forEach(a3, function(a4) { + a4 != null && (b += a4); }); return b; } var Za = Object.prototype.hasOwnProperty; var $a = { children: null, dangerouslySetInnerHTML: null, suppressContentEditableWarning: null, suppressHydrationWarning: null }; - function ab(a2, b) { - if (a2 === void 0) + function ab(a3, b) { + if (a3 === void 0) throw Error(p2(152, F(b) || "Component")); } - function bb2(a2, b, c3) { + function bb2(a3, b, c4) { function d2(d3, h3) { - var e3 = h3.prototype && h3.prototype.isReactComponent, f3 = oa(h3, b, c3, e3), t2 = [], g2 = false, m4 = { isMounted: function() { + var e3 = h3.prototype && h3.prototype.isReactComponent, f3 = oa(h3, b, c4, e3), t2 = [], g2 = false, m4 = { isMounted: function() { return false; }, enqueueForceUpdate: function() { if (t2 === null) return null; - }, enqueueReplaceState: function(a3, b2) { + }, enqueueReplaceState: function(a4, b2) { g2 = true; t2 = [b2]; - }, enqueueSetState: function(a3, b2) { + }, enqueueSetState: function(a4, b2) { if (t2 === null) return null; t2.push(b2); @@ -9548,8 +10780,8 @@ var require_react_dom_server_node_production_min = __commonJS({ k != null && (e3.state = l2({}, e3.state, k)); } } else if (P = {}, e3 = h3(d3.props, f3, m4), e3 = Ea(h3, d3.props, e3, f3), e3 == null || e3.render == null) { - a2 = e3; - ab(a2, h3); + a3 = e3; + ab(a3, h3); return; } e3.props = d3.props; @@ -9577,8 +10809,8 @@ var require_react_dom_server_node_production_min = __commonJS({ } } else t2 = null; - a2 = e3.render(); - ab(a2, h3); + a3 = e3.render(); + ab(a3, h3); if (typeof e3.getChildContext === "function" && (d3 = h3.childContextTypes, typeof d3 === "object")) { var y3 = e3.getChildContext(); for (var A in y3) @@ -9587,36 +10819,36 @@ var require_react_dom_server_node_production_min = __commonJS({ } y3 && (b = l2({}, b, y3)); } - for (; n2.isValidElement(a2); ) { - var f2 = a2, h2 = f2.type; + for (; n2.isValidElement(a3); ) { + var f2 = a3, h2 = f2.type; if (typeof h2 !== "function") break; d2(f2, h2); } - return { child: a2, context: b }; + return { child: a3, context: b }; } var cb = function() { - function a2(a3, b2, f2) { - n2.isValidElement(a3) ? a3.type !== r4 ? a3 = [a3] : (a3 = a3.props.children, a3 = n2.isValidElement(a3) ? [a3] : Z(a3)) : a3 = Z(a3); - a3 = { type: null, domNamespace: Ma.html, children: a3, childIndex: 0, context: na, footer: "" }; - var c3 = J[0]; - if (c3 === 0) { + function a3(a4, b2, f2) { + n2.isValidElement(a4) ? a4.type !== r4 ? a4 = [a4] : (a4 = a4.props.children, a4 = n2.isValidElement(a4) ? [a4] : Z(a4)) : a4 = Z(a4); + a4 = { type: null, domNamespace: Ma.html, children: a4, childIndex: 0, context: na, footer: "" }; + var c4 = J[0]; + if (c4 === 0) { var d2 = J; - c3 = d2.length; - var g2 = 2 * c3; + c4 = d2.length; + var g2 = 2 * c4; if (!(65536 >= g2)) throw Error(p2(304)); var e3 = new Uint16Array(g2); e3.set(d2); J = e3; - J[0] = c3 + 1; - for (d2 = c3; d2 < g2 - 1; d2++) + J[0] = c4 + 1; + for (d2 = c4; d2 < g2 - 1; d2++) J[d2] = d2 + 1; J[g2 - 1] = 0; } else - J[0] = J[c3]; - this.threadID = c3; - this.stack = [a3]; + J[0] = J[c4]; + this.threadID = c4; + this.stack = [a4]; this.exhausted = false; this.currentSelectValue = null; this.previousWasTextNode = false; @@ -9628,44 +10860,44 @@ var require_react_dom_server_node_production_min = __commonJS({ this.uniqueID = 0; this.identifierPrefix = f2 && f2.identifierPrefix || ""; } - var b = a2.prototype; + var b = a3.prototype; b.destroy = function() { if (!this.exhausted) { this.exhausted = true; this.clearProviders(); - var a3 = this.threadID; - J[a3] = J[0]; - J[0] = a3; + var a4 = this.threadID; + J[a4] = J[0]; + J[0] = a4; } }; - b.pushProvider = function(a3) { - var b2 = ++this.contextIndex, c3 = a3.type._context, h2 = this.threadID; - I(c3, h2); - var t2 = c3[h2]; - this.contextStack[b2] = c3; + b.pushProvider = function(a4) { + var b2 = ++this.contextIndex, c4 = a4.type._context, h2 = this.threadID; + I(c4, h2); + var t2 = c4[h2]; + this.contextStack[b2] = c4; this.contextValueStack[b2] = t2; - c3[h2] = a3.props.value; + c4[h2] = a4.props.value; }; b.popProvider = function() { - var a3 = this.contextIndex, b2 = this.contextStack[a3], f2 = this.contextValueStack[a3]; - this.contextStack[a3] = null; - this.contextValueStack[a3] = null; + var a4 = this.contextIndex, b2 = this.contextStack[a4], f2 = this.contextValueStack[a4]; + this.contextStack[a4] = null; + this.contextValueStack[a4] = null; this.contextIndex--; b2[this.threadID] = f2; }; b.clearProviders = function() { - for (var a3 = this.contextIndex; 0 <= a3; a3--) - this.contextStack[a3][this.threadID] = this.contextValueStack[a3]; + for (var a4 = this.contextIndex; 0 <= a4; a4--) + this.contextStack[a4][this.threadID] = this.contextValueStack[a4]; }; - b.read = function(a3) { + b.read = function(a4) { if (this.exhausted) return null; var b2 = X2; X2 = this; - var c3 = Ta.current; + var c4 = Ta.current; Ta.current = La; try { - for (var h2 = [""], t2 = false; h2[0].length < a3; ) { + for (var h2 = [""], t2 = false; h2[0].length < a4; ) { if (this.stack.length === 0) { this.exhausted = true; var g2 = this.threadID; @@ -9713,12 +10945,12 @@ var require_react_dom_server_node_production_min = __commonJS({ } return h2[0]; } finally { - Ta.current = c3, X2 = b2, Fa(); + Ta.current = c4, X2 = b2, Fa(); } }; - b.render = function(a3, b2, f2) { - if (typeof a3 === "string" || typeof a3 === "number") { - f2 = "" + a3; + b.render = function(a4, b2, f2) { + if (typeof a4 === "string" || typeof a4 === "number") { + f2 = "" + a4; if (f2 === "") return ""; if (this.makeStaticMarkup) @@ -9728,36 +10960,36 @@ var require_react_dom_server_node_production_min = __commonJS({ this.previousWasTextNode = true; return O(f2); } - b2 = bb2(a3, b2, this.threadID); - a3 = b2.child; + b2 = bb2(a4, b2, this.threadID); + a4 = b2.child; b2 = b2.context; - if (a3 === null || a3 === false) + if (a4 === null || a4 === false) return ""; - if (!n2.isValidElement(a3)) { - if (a3 != null && a3.$$typeof != null) { - f2 = a3.$$typeof; + if (!n2.isValidElement(a4)) { + if (a4 != null && a4.$$typeof != null) { + f2 = a4.$$typeof; if (f2 === q2) throw Error(p2(257)); throw Error(p2(258, f2.toString())); } - a3 = Z(a3); - this.stack.push({ type: null, domNamespace: f2, children: a3, childIndex: 0, context: b2, footer: "" }); + a4 = Z(a4); + this.stack.push({ type: null, domNamespace: f2, children: a4, childIndex: 0, context: b2, footer: "" }); return ""; } - var c3 = a3.type; - if (typeof c3 === "string") - return this.renderDOM(a3, b2, f2); - switch (c3) { + var c4 = a4.type; + if (typeof c4 === "string") + return this.renderDOM(a4, b2, f2); + switch (c4) { case la: case ka: case u: case z: case da: case r4: - return a3 = Z(a3.props.children), this.stack.push({ + return a4 = Z(a4.props.children), this.stack.push({ type: null, domNamespace: f2, - children: a3, + children: a4, childIndex: 0, context: b2, footer: "" @@ -9767,53 +10999,53 @@ var require_react_dom_server_node_production_min = __commonJS({ case ja: throw Error(p2(343)); } - if (typeof c3 === "object" && c3 !== null) - switch (c3.$$typeof) { + if (typeof c4 === "object" && c4 !== null) + switch (c4.$$typeof) { case ca: P = {}; - var d2 = c3.render(a3.props, a3.ref); - d2 = Ea(c3.render, a3.props, d2, a3.ref); + var d2 = c4.render(a4.props, a4.ref); + d2 = Ea(c4.render, a4.props, d2, a4.ref); d2 = Z(d2); this.stack.push({ type: null, domNamespace: f2, children: d2, childIndex: 0, context: b2, footer: "" }); return ""; case ea: - return a3 = [n2.createElement(c3.type, l2({ ref: a3.ref }, a3.props))], this.stack.push({ type: null, domNamespace: f2, children: a3, childIndex: 0, context: b2, footer: "" }), ""; + return a4 = [n2.createElement(c4.type, l2({ ref: a4.ref }, a4.props))], this.stack.push({ type: null, domNamespace: f2, children: a4, childIndex: 0, context: b2, footer: "" }), ""; case B: - return c3 = Z(a3.props.children), f2 = { type: a3, domNamespace: f2, children: c3, childIndex: 0, context: b2, footer: "" }, this.pushProvider(a3), this.stack.push(f2), ""; + return c4 = Z(a4.props.children), f2 = { type: a4, domNamespace: f2, children: c4, childIndex: 0, context: b2, footer: "" }, this.pushProvider(a4), this.stack.push(f2), ""; case ba: - c3 = a3.type; - d2 = a3.props; + c4 = a4.type; + d2 = a4.props; var g2 = this.threadID; - I(c3, g2); - c3 = Z(d2.children(c3[g2])); - this.stack.push({ type: a3, domNamespace: f2, children: c3, childIndex: 0, context: b2, footer: "" }); + I(c4, g2); + c4 = Z(d2.children(c4[g2])); + this.stack.push({ type: a4, domNamespace: f2, children: c4, childIndex: 0, context: b2, footer: "" }); return ""; case ia: throw Error(p2(338)); case fa: - return c3 = a3.type, d2 = c3._init, c3 = d2(c3._payload), a3 = [n2.createElement(c3, l2({ ref: a3.ref }, a3.props))], this.stack.push({ + return c4 = a4.type, d2 = c4._init, c4 = d2(c4._payload), a4 = [n2.createElement(c4, l2({ ref: a4.ref }, a4.props))], this.stack.push({ type: null, domNamespace: f2, - children: a3, + children: a4, childIndex: 0, context: b2, footer: "" }), ""; } - throw Error(p2(130, c3 == null ? c3 : typeof c3, "")); + throw Error(p2(130, c4 == null ? c4 : typeof c4, "")); }; - b.renderDOM = function(a3, b2, f2) { - var c3 = a3.type.toLowerCase(); - f2 === Ma.html && Na(c3); - if (!Wa.hasOwnProperty(c3)) { - if (!Va.test(c3)) - throw Error(p2(65, c3)); - Wa[c3] = true; - } - var d2 = a3.props; - if (c3 === "input") + b.renderDOM = function(a4, b2, f2) { + var c4 = a4.type.toLowerCase(); + f2 === Ma.html && Na(c4); + if (!Wa.hasOwnProperty(c4)) { + if (!Va.test(c4)) + throw Error(p2(65, c4)); + Wa[c4] = true; + } + var d2 = a4.props; + if (c4 === "input") d2 = l2({ type: void 0 }, d2, { defaultChecked: void 0, defaultValue: void 0, value: d2.value != null ? d2.value : d2.defaultValue, checked: d2.checked != null ? d2.checked : d2.defaultChecked }); - else if (c3 === "textarea") { + else if (c4 === "textarea") { var g2 = d2.value; if (g2 == null) { g2 = d2.defaultValue; @@ -9831,9 +11063,9 @@ var require_react_dom_server_node_production_min = __commonJS({ g2 == null && (g2 = ""); } d2 = l2({}, d2, { value: void 0, children: "" + g2 }); - } else if (c3 === "select") + } else if (c4 === "select") this.currentSelectValue = d2.value != null ? d2.value : d2.defaultValue, d2 = l2({}, d2, { value: void 0 }); - else if (c3 === "option") { + else if (c4 === "option") { e3 = this.currentSelectValue; var L = Ya(d2.children); if (e3 != null) { @@ -9852,8 +11084,8 @@ var require_react_dom_server_node_production_min = __commonJS({ } } if (g2 = d2) { - if (Pa[c3] && (g2.children != null || g2.dangerouslySetInnerHTML != null)) - throw Error(p2(137, c3)); + if (Pa[c4] && (g2.children != null || g2.dangerouslySetInnerHTML != null)) + throw Error(p2(137, c4)); if (g2.dangerouslySetInnerHTML != null) { if (g2.children != null) throw Error(p2(60)); @@ -9866,12 +11098,12 @@ var require_react_dom_server_node_production_min = __commonJS({ g2 = d2; e3 = this.makeStaticMarkup; L = this.stack.length === 1; - G = "<" + a3.type; + G = "<" + a4.type; b: - if (c3.indexOf("-") === -1) + if (c4.indexOf("-") === -1) C = typeof g2.is === "string"; else - switch (c3) { + switch (c4) { case "annotation-xml": case "color-profile": case "font-face": @@ -9920,7 +11152,7 @@ var require_react_dom_server_node_production_min = __commonJS({ e3 || L && (G += ' data-reactroot=""'); var w2 = G; g2 = ""; - Oa.hasOwnProperty(c3) ? w2 += "/>" : (w2 += ">", g2 = ""); + Oa.hasOwnProperty(c4) ? w2 += "/>" : (w2 += ">", g2 = ""); a: { e3 = d2.dangerouslySetInnerHTML; if (e3 != null) { @@ -9934,61 +11166,61 @@ var require_react_dom_server_node_production_min = __commonJS({ } e3 = null; } - e3 != null ? (d2 = [], Ua.hasOwnProperty(c3) && e3.charAt(0) === "\n" && (w2 += "\n"), w2 += e3) : d2 = Z(d2.children); - a3 = a3.type; - f2 = f2 == null || f2 === "http://www.w3.org/1999/xhtml" ? Na(a3) : f2 === "http://www.w3.org/2000/svg" && a3 === "foreignObject" ? "http://www.w3.org/1999/xhtml" : f2; - this.stack.push({ domNamespace: f2, type: c3, children: d2, childIndex: 0, context: b2, footer: g2 }); + e3 != null ? (d2 = [], Ua.hasOwnProperty(c4) && e3.charAt(0) === "\n" && (w2 += "\n"), w2 += e3) : d2 = Z(d2.children); + a4 = a4.type; + f2 = f2 == null || f2 === "http://www.w3.org/1999/xhtml" ? Na(a4) : f2 === "http://www.w3.org/2000/svg" && a4 === "foreignObject" ? "http://www.w3.org/1999/xhtml" : f2; + this.stack.push({ domNamespace: f2, type: c4, children: d2, childIndex: 0, context: b2, footer: g2 }); this.previousWasTextNode = false; return w2; }; - return a2; + return a3; }(); - function db(a2, b) { - a2.prototype = Object.create(b.prototype); - a2.prototype.constructor = a2; - a2.__proto__ = b; - } - var fb = function(a2) { - function b(b2, c4, h2) { - var d2 = a2.call(this, {}) || this; - d2.partialRenderer = new cb(b2, c4, h2); + function db(a3, b) { + a3.prototype = Object.create(b.prototype); + a3.prototype.constructor = a3; + a3.__proto__ = b; + } + var fb = function(a3) { + function b(b2, c5, h2) { + var d2 = a3.call(this, {}) || this; + d2.partialRenderer = new cb(b2, c5, h2); return d2; } - db(b, a2); - var c3 = b.prototype; - c3._destroy = function(a3, b2) { + db(b, a3); + var c4 = b.prototype; + c4._destroy = function(a4, b2) { this.partialRenderer.destroy(); - b2(a3); + b2(a4); }; - c3._read = function(a3) { + c4._read = function(a4) { try { - this.push(this.partialRenderer.read(a3)); + this.push(this.partialRenderer.read(a4)); } catch (f2) { this.destroy(f2); } }; return b; }(aa.Readable); - exports2.renderToNodeStream = function(a2, b) { - return new fb(a2, false, b); + exports2.renderToNodeStream = function(a3, b) { + return new fb(a3, false, b); }; - exports2.renderToStaticMarkup = function(a2, b) { - a2 = new cb(a2, true, b); + exports2.renderToStaticMarkup = function(a3, b) { + a3 = new cb(a3, true, b); try { - return a2.read(Infinity); + return a3.read(Infinity); } finally { - a2.destroy(); + a3.destroy(); } }; - exports2.renderToStaticNodeStream = function(a2, b) { - return new fb(a2, true, b); + exports2.renderToStaticNodeStream = function(a3, b) { + return new fb(a3, true, b); }; - exports2.renderToString = function(a2, b) { - a2 = new cb(a2, false, b); + exports2.renderToString = function(a3, b) { + a3 = new cb(a3, false, b); try { - return a2.read(Infinity); + return a3.read(Infinity); } finally { - a2.destroy(); + a3.destroy(); } }; exports2.version = "17.0.2"; @@ -10310,17 +11542,17 @@ var require_react_dom_server_node_development = __commonJS({ var sampleLines = sample.stack.split("\n"); var controlLines = control.stack.split("\n"); var s = sampleLines.length - 1; - var c3 = controlLines.length - 1; - while (s >= 1 && c3 >= 0 && sampleLines[s] !== controlLines[c3]) { - c3--; + var c4 = controlLines.length - 1; + while (s >= 1 && c4 >= 0 && sampleLines[s] !== controlLines[c4]) { + c4--; } - for (; s >= 1 && c3 >= 0; s--, c3--) { - if (sampleLines[s] !== controlLines[c3]) { - if (s !== 1 || c3 !== 1) { + for (; s >= 1 && c4 >= 0; s--, c4--) { + if (sampleLines[s] !== controlLines[c4]) { + if (s !== 1 || c4 !== 1) { do { s--; - c3--; - if (c3 < 0 || sampleLines[s] !== controlLines[c3]) { + c4--; + if (c4 < 0 || sampleLines[s] !== controlLines[c4]) { var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); { if (typeof fn === "function") { @@ -10329,7 +11561,7 @@ var require_react_dom_server_node_development = __commonJS({ } return _frame; } - } while (s >= 1 && c3 >= 0); + } while (s >= 1 && c4 >= 0); } break; } @@ -13333,7 +14565,7 @@ var require_server = __commonJS({ }); // node_modules/braces/lib/utils.js -var require_utils4 = __commonJS({ +var require_utils3 = __commonJS({ "node_modules/braces/lib/utils.js"(exports2) { "use strict"; exports2.isInteger = (num) => { @@ -13417,10 +14649,10 @@ var require_utils4 = __commonJS({ }); // node_modules/braces/lib/stringify.js -var require_stringify = __commonJS({ +var require_stringify2 = __commonJS({ "node_modules/braces/lib/stringify.js"(exports2, module2) { "use strict"; - var utils = require_utils4(); + var utils = require_utils3(); module2.exports = (ast, options = {}) => { let stringify = (node, parent = {}) => { let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); @@ -13490,9 +14722,9 @@ var require_to_regex_range = __commonJS({ if (toRegexRange.cache.hasOwnProperty(cacheKey)) { return toRegexRange.cache[cacheKey].result; } - let a2 = Math.min(min, max); + let a3 = Math.min(min, max); let b = Math.max(min, max); - if (Math.abs(a2 - b) === 1) { + if (Math.abs(a3 - b) === 1) { let result = min + "|" + max; if (opts.capture) { return `(${result})`; @@ -13503,20 +14735,20 @@ var require_to_regex_range = __commonJS({ return `(?:${result})`; } let isPadded = hasPadding(min) || hasPadding(max); - let state = { min, max, a: a2, b }; + let state = { min, max, a: a3, b }; let positives = []; let negatives = []; if (isPadded) { state.isPadded = isPadded; state.maxLen = String(state.max).length; } - if (a2 < 0) { + if (a3 < 0) { let newMin = b < 0 ? Math.abs(b) : 1; - negatives = splitToPatterns(newMin, Math.abs(a2), state, opts); - a2 = state.a = 0; + negatives = splitToPatterns(newMin, Math.abs(a3), state, opts); + a3 = state.a = 0; } if (b >= 0) { - positives = splitToPatterns(a2, b, state, opts); + positives = splitToPatterns(a3, b, state, opts); } state.negatives = negatives; state.positives = positives; @@ -13620,14 +14852,14 @@ var require_to_regex_range = __commonJS({ } return result; } - function zip(a2, b) { + function zip(a3, b) { let arr = []; - for (let i = 0; i < a2.length; i++) - arr.push([a2[i], b[i]]); + for (let i = 0; i < a3.length; i++) + arr.push([a3[i], b[i]]); return arr; } - function compare(a2, b) { - return a2 > b ? 1 : b > a2 ? -1 : 0; + function compare(a3, b) { + return a3 > b ? 1 : b > a3 ? -1 : 0; } function contains(arr, key, val) { return arr.some((ele) => ele[key] === val); @@ -13645,8 +14877,8 @@ var require_to_regex_range = __commonJS({ } return ""; } - function toCharacterClass(a2, b, options) { - return `[${a2}${b - a2 === 1 ? "" : "-"}${b}]`; + function toCharacterClass(a3, b, options) { + return `[${a3}${b - a3 === 1 ? "" : "-"}${b}]`; } function hasPadding(str) { return /^-?(0+)\d/.test(str); @@ -13729,8 +14961,8 @@ var require_fill_range = __commonJS({ return negative ? "-" + input : input; }; var toSequence = (parts, options) => { - parts.negatives.sort((a2, b) => a2 < b ? -1 : a2 > b ? 1 : 0); - parts.positives.sort((a2, b) => a2 < b ? -1 : a2 > b ? 1 : 0); + parts.negatives.sort((a3, b) => a3 < b ? -1 : a3 > b ? 1 : 0); + parts.positives.sort((a3, b) => a3 < b ? -1 : a3 > b ? 1 : 0); let prefix = options.capture ? "" : "?:"; let positives = ""; let negatives = ""; @@ -13751,12 +14983,12 @@ var require_fill_range = __commonJS({ } return result; }; - var toRange = (a2, b, isNumbers, options) => { + var toRange = (a3, b, isNumbers, options) => { if (isNumbers) { - return toRegexRange(a2, b, { wrap: false, ...options }); + return toRegexRange(a3, b, { wrap: false, ...options }); } - let start2 = String.fromCharCode(a2); - if (a2 === b) + let start2 = String.fromCharCode(a3); + if (a3 === b) return start2; let stop = String.fromCharCode(b); return `[${start2}-${stop}]`; @@ -13784,18 +15016,18 @@ var require_fill_range = __commonJS({ return []; }; var fillNumbers = (start2, end, step = 1, options = {}) => { - let a2 = Number(start2); + let a3 = Number(start2); let b = Number(end); - if (!Number.isInteger(a2) || !Number.isInteger(b)) { + if (!Number.isInteger(a3) || !Number.isInteger(b)) { if (options.strictRanges === true) throw rangeError([start2, end]); return []; } - if (a2 === 0) - a2 = 0; + if (a3 === 0) + a3 = 0; if (b === 0) b = 0; - let descending = a2 > b; + let descending2 = a3 > b; let startString = String(start2); let endString = String(end); let stepString = String(step); @@ -13809,46 +15041,46 @@ var require_fill_range = __commonJS({ } let parts = { negatives: [], positives: [] }; let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)); - let range = []; + let range2 = []; let index = 0; - while (descending ? a2 >= b : a2 <= b) { + while (descending2 ? a3 >= b : a3 <= b) { if (options.toRegex === true && step > 1) { - push(a2); + push(a3); } else { - range.push(pad2(format2(a2, index), maxLen, toNumber)); + range2.push(pad2(format2(a3, index), maxLen, toNumber)); } - a2 = descending ? a2 - step : a2 + step; + a3 = descending2 ? a3 - step : a3 + step; index++; } if (options.toRegex === true) { - return step > 1 ? toSequence(parts, options) : toRegex(range, null, { wrap: false, ...options }); + return step > 1 ? toSequence(parts, options) : toRegex(range2, null, { wrap: false, ...options }); } - return range; + return range2; }; var fillLetters = (start2, end, step = 1, options = {}) => { if (!isNumber(start2) && start2.length > 1 || !isNumber(end) && end.length > 1) { return invalidRange(start2, end, options); } let format2 = options.transform || ((val) => String.fromCharCode(val)); - let a2 = `${start2}`.charCodeAt(0); + let a3 = `${start2}`.charCodeAt(0); let b = `${end}`.charCodeAt(0); - let descending = a2 > b; - let min = Math.min(a2, b); - let max = Math.max(a2, b); + let descending2 = a3 > b; + let min = Math.min(a3, b); + let max = Math.max(a3, b); if (options.toRegex && step === 1) { return toRange(min, max, false, options); } - let range = []; + let range2 = []; let index = 0; - while (descending ? a2 >= b : a2 <= b) { - range.push(format2(a2, index)); - a2 = descending ? a2 - step : a2 + step; + while (descending2 ? a3 >= b : a3 <= b) { + range2.push(format2(a3, index)); + a3 = descending2 ? a3 - step : a3 + step; index++; } if (options.toRegex === true) { - return toRegex(range, null, { wrap: false, options }); + return toRegex(range2, null, { wrap: false, options }); } - return range; + return range2; }; var fill = (start2, end, step, options = {}) => { if (end == null && isValidValue(start2)) { @@ -13886,7 +15118,7 @@ var require_compile = __commonJS({ "node_modules/braces/lib/compile.js"(exports2, module2) { "use strict"; var fill = require_fill_range(); - var utils = require_utils4(); + var utils = require_utils3(); var compile = (ast, options = {}) => { let walk = (node, parent = {}) => { let invalidBlock = utils.isInvalidBrace(parent); @@ -13914,9 +15146,9 @@ var require_compile = __commonJS({ } if (node.nodes && node.ranges > 0) { let args = utils.reduce(node.nodes); - let range = fill(...args, { ...options, wrap: false, toRegex: true }); - if (range.length !== 0) { - return args.length > 1 && range.length > 1 ? `(${range})` : range; + let range2 = fill(...args, { ...options, wrap: false, toRegex: true }); + if (range2.length !== 0) { + return args.length > 1 && range2.length > 1 ? `(${range2})` : range2; } } if (node.nodes) { @@ -13937,8 +15169,8 @@ var require_expand = __commonJS({ "node_modules/braces/lib/expand.js"(exports2, module2) { "use strict"; var fill = require_fill_range(); - var stringify = require_stringify(); - var utils = require_utils4(); + var stringify = require_stringify2(); + var utils = require_utils3(); var append = (queue = "", stash = "", enclose = false) => { let result = []; queue = [].concat(queue); @@ -13986,11 +15218,11 @@ var require_expand = __commonJS({ if (utils.exceedsLimit(...args, options.step, rangeLimit)) { throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit."); } - let range = fill(...args, options); - if (range.length === 0) { - range = stringify(node, options); + let range2 = fill(...args, options); + if (range2.length === 0) { + range2 = stringify(node, options); } - q2.push(append(q2.pop(), range)); + q2.push(append(q2.pop(), range2)); node.nodes = []; return; } @@ -14084,10 +15316,10 @@ var require_constants = __commonJS({ }); // node_modules/braces/lib/parse.js -var require_parse = __commonJS({ +var require_parse2 = __commonJS({ "node_modules/braces/lib/parse.js"(exports2, module2) { "use strict"; - var stringify = require_stringify(); + var stringify = require_stringify2(); var { MAX_LENGTH, CHAR_BACKSLASH, @@ -14319,10 +15551,10 @@ var require_parse = __commonJS({ var require_braces = __commonJS({ "node_modules/braces/index.js"(exports2, module2) { "use strict"; - var stringify = require_stringify(); + var stringify = require_stringify2(); var compile = require_compile(); var expand = require_expand(); - var parse = require_parse(); + var parse = require_parse2(); var braces = (input, options = {}) => { let output = []; if (Array.isArray(input)) { @@ -14522,7 +15754,7 @@ var require_constants2 = __commonJS({ }); // node_modules/picomatch/lib/utils.js -var require_utils5 = __commonJS({ +var require_utils4 = __commonJS({ "node_modules/picomatch/lib/utils.js"(exports2) { "use strict"; var path = require("path"); @@ -14588,7 +15820,7 @@ var require_utils5 = __commonJS({ var require_scan = __commonJS({ "node_modules/picomatch/lib/scan.js"(exports2, module2) { "use strict"; - var utils = require_utils5(); + var utils = require_utils4(); var { CHAR_ASTERISK, CHAR_AT, @@ -14903,11 +16135,11 @@ var require_scan = __commonJS({ }); // node_modules/picomatch/lib/parse.js -var require_parse2 = __commonJS({ +var require_parse3 = __commonJS({ "node_modules/picomatch/lib/parse.js"(exports2, module2) { "use strict"; var constants2 = require_constants2(); - var utils = require_utils5(); + var utils = require_utils4(); var { MAX_LENGTH, POSIX_REGEX_SOURCE, @@ -15081,7 +16313,8 @@ var require_parse2 = __commonJS({ output = token.close = `)$))${extglobStar}`; } if (token.inner.includes("*") && (rest2 = remaining()) && /^\.[^\\/.]+$/.test(rest2)) { - output = token.close = `)${rest2})${extglobStar})`; + const expression = parse(rest2, { ...options, fastpaths: false }).output; + output = token.close = `)${expression})${extglobStar})`; } if (token.prev.type === "bos") { state.negatedExtglob = true; @@ -15303,17 +16536,17 @@ var require_parse2 = __commonJS({ let output = ")"; if (brace.dots === true) { const arr = tokens.slice(); - const range = []; + const range2 = []; for (let i = arr.length - 1; i >= 0; i--) { tokens.pop(); if (arr[i].type === "brace") { break; } if (arr[i].type !== "dots") { - range.unshift(arr[i].value); + range2.unshift(arr[i].value); } } - output = expandRange(range, opts); + output = expandRange(range2, opts); state.backtrack = true; } if (brace.comma !== true && brace.dots !== true) { @@ -15688,8 +16921,8 @@ var require_picomatch = __commonJS({ "use strict"; var path = require("path"); var scan = require_scan(); - var parse = require_parse2(); - var utils = require_utils5(); + var parse = require_parse3(); + var utils = require_utils4(); var constants2 = require_constants2(); var isObject = (val) => val && typeof val === "object" && !Array.isArray(val); var picomatch = (glob, options, returnState = false) => { @@ -15841,7 +17074,7 @@ var require_micromatch = __commonJS({ var util = require("util"); var braces = require_braces(); var picomatch = require_picomatch2(); - var utils = require_utils5(); + var utils = require_utils4(); var isEmptyString = (val) => val === "" || val === "./"; var micromatch = (list, patterns, options) => { patterns = [].concat(patterns); @@ -15899,9 +17132,9 @@ var require_micromatch = __commonJS({ options.onResult(state); items.push(state.output); }; - let matches = micromatch(list, patterns, { ...options, onResult }); + let matches = new Set(micromatch(list, patterns, { ...options, onResult })); for (let item of items) { - if (!matches.includes(item)) { + if (!matches.has(item)) { result.add(item); } } @@ -17826,8 +19059,8 @@ var require_stringToPath = __commonJS({ if (string.charCodeAt(0) === 46) { result.push(""); } - string.replace(rePropName, function(match, number3, quote, subString) { - result.push(quote ? subString.replace(reEscapeChar, "$1") : number3 || match); + string.replace(rePropName, function(match, number4, quote, subString) { + result.push(quote ? subString.replace(reEscapeChar, "$1") : number4 || match); }); return result; }); @@ -18560,74 +19793,79 @@ var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) = var import_react2 = __toModule(require_react()); // node_modules/d3-array/src/ascending.js -function ascending_default(a2, b) { - return a2 == null || b == null ? NaN : a2 < b ? -1 : a2 > b ? 1 : a2 >= b ? 0 : NaN; +function ascending(a3, b) { + return a3 == null || b == null ? NaN : a3 < b ? -1 : a3 > b ? 1 : a3 >= b ? 0 : NaN; +} + +// node_modules/d3-array/src/descending.js +function descending(a3, b) { + return a3 == null || b == null ? NaN : b < a3 ? -1 : b > a3 ? 1 : b >= a3 ? 0 : NaN; } // node_modules/d3-array/src/bisector.js -function bisector_default(f2) { - let delta = f2; - let compare = f2; - if (f2.length === 1) { +function bisector(f2) { + let compare1, compare2, delta; + if (f2.length !== 2) { + compare1 = ascending; + compare2 = (d2, x2) => ascending(f2(d2), x2); delta = (d2, x2) => f2(d2) - x2; - compare = ascendingComparator(f2); - } - function left(a2, x2, lo, hi) { - if (lo == null) - lo = 0; - if (hi == null) - hi = a2.length; - while (lo < hi) { - const mid = lo + hi >>> 1; - if (compare(a2[mid], x2) < 0) - lo = mid + 1; - else - hi = mid; + } else { + compare1 = f2 === ascending || f2 === descending ? f2 : zero; + compare2 = f2; + delta = f2; + } + function left(a3, x2, lo = 0, hi = a3.length) { + if (lo < hi) { + if (compare1(x2, x2) !== 0) + return hi; + do { + const mid = lo + hi >>> 1; + if (compare2(a3[mid], x2) < 0) + lo = mid + 1; + else + hi = mid; + } while (lo < hi); } return lo; } - function right(a2, x2, lo, hi) { - if (lo == null) - lo = 0; - if (hi == null) - hi = a2.length; - while (lo < hi) { - const mid = lo + hi >>> 1; - if (compare(a2[mid], x2) > 0) - hi = mid; - else - lo = mid + 1; + function right(a3, x2, lo = 0, hi = a3.length) { + if (lo < hi) { + if (compare1(x2, x2) !== 0) + return hi; + do { + const mid = lo + hi >>> 1; + if (compare2(a3[mid], x2) <= 0) + lo = mid + 1; + else + hi = mid; + } while (lo < hi); } return lo; } - function center(a2, x2, lo, hi) { - if (lo == null) - lo = 0; - if (hi == null) - hi = a2.length; - const i = left(a2, x2, lo, hi - 1); - return i > lo && delta(a2[i - 1], x2) > -delta(a2[i], x2) ? i - 1 : i; + function center(a3, x2, lo = 0, hi = a3.length) { + const i = left(a3, x2, lo, hi - 1); + return i > lo && delta(a3[i - 1], x2) > -delta(a3[i], x2) ? i - 1 : i; } return { left, center, right }; } -function ascendingComparator(f2) { - return (d2, x2) => ascending_default(f2(d2), x2); +function zero() { + return 0; } // node_modules/d3-array/src/number.js -function number_default(x2) { +function number(x2) { return x2 === null ? NaN : +x2; } // node_modules/d3-array/src/bisect.js -var ascendingBisect = bisector_default(ascending_default); +var ascendingBisect = bisector(ascending); var bisectRight = ascendingBisect.right; var bisectLeft = ascendingBisect.left; -var bisectCenter = bisector_default(number_default).center; +var bisectCenter = bisector(number).center; var bisect_default = bisectRight; // node_modules/d3-array/src/extent.js -function extent_default(values, valueof) { +function extent(values, valueof) { let min; let max; if (valueof === void 0) { @@ -18667,8 +19905,8 @@ function extent_default(values, valueof) { var e10 = Math.sqrt(50); var e5 = Math.sqrt(10); var e2 = Math.sqrt(2); -function ticks_default(start2, stop, count2) { - var reverse, i = -1, n2, ticks, step; +function ticks(start2, stop, count2) { + var reverse, i = -1, n2, ticks2, step; stop = +stop, start2 = +start2, count2 = +count2; if (start2 === stop && count2 > 0) return [start2]; @@ -18682,9 +19920,9 @@ function ticks_default(start2, stop, count2) { ++r0; if (r1 * step > stop) --r1; - ticks = new Array(n2 = r1 - r0 + 1); + ticks2 = new Array(n2 = r1 - r0 + 1); while (++i < n2) - ticks[i] = (r0 + i) * step; + ticks2[i] = (r0 + i) * step; } else { step = -step; let r0 = Math.round(start2 * step), r1 = Math.round(stop * step); @@ -18692,13 +19930,13 @@ function ticks_default(start2, stop, count2) { ++r0; if (r1 / step > stop) --r1; - ticks = new Array(n2 = r1 - r0 + 1); + ticks2 = new Array(n2 = r1 - r0 + 1); while (++i < n2) - ticks[i] = (r0 + i) / step; + ticks2[i] = (r0 + i) / step; } if (reverse) - ticks.reverse(); - return ticks; + ticks2.reverse(); + return ticks2; } function tickIncrement(start2, stop, count2) { var step = (stop - start2) / Math.max(0, count2), power = Math.floor(Math.log(step) / Math.LN10), error = step / Math.pow(10, power); @@ -18716,13 +19954,13 @@ function tickStep(start2, stop, count2) { } // node_modules/d3-array/src/range.js -function range_default(start2, stop, step) { +function range(start2, stop, step) { start2 = +start2, stop = +stop, step = (n2 = arguments.length) < 2 ? (stop = start2, start2 = 0, 1) : n2 < 3 ? 1 : +step; - var i = -1, n2 = Math.max(0, Math.ceil((stop - start2) / step)) | 0, range = new Array(n2); + var i = -1, n2 = Math.max(0, Math.ceil((stop - start2) / step)) | 0, range2 = new Array(n2); while (++i < n2) { - range[i] = start2 + i * step; + range2[i] = start2 + i * step; } - return range; + return range2; } // node_modules/d3-dispatch/src/dispatch.js @@ -18793,9 +20031,9 @@ Dispatch.prototype = dispatch.prototype = { } }; function get(type2, name) { - for (var i = 0, n2 = type2.length, c3; i < n2; ++i) { - if ((c3 = type2[i]).name === name) { - return c3.value; + for (var i = 0, n2 = type2.length, c4; i < n2; ++i) { + if ((c4 = type2[i]).name === name) { + return c4.value; } } } @@ -19138,9 +20376,9 @@ function order_default() { // node_modules/d3-selection/src/selection/sort.js function sort_default(compare) { if (!compare) - compare = ascending; - function compareNode(a2, b) { - return a2 && b ? compare(a2.__data__, b.__data__) : !a2 - !b; + compare = ascending2; + function compareNode(a3, b) { + return a3 && b ? compare(a3.__data__, b.__data__) : !a3 - !b; } for (var groups = this._groups, m4 = groups.length, sortgroups = new Array(m4), j3 = 0; j3 < m4; ++j3) { for (var group = groups[j3], n2 = group.length, sortgroup = sortgroups[j3] = new Array(n2), node, i = 0; i < n2; ++i) { @@ -19152,8 +20390,8 @@ function sort_default(compare) { } return new Selection(sortgroups, this._parents).order(); } -function ascending(a2, b) { - return a2 < b ? -1 : a2 > b ? 1 : a2 >= b ? 0 : NaN; +function ascending2(a3, b) { + return a3 < b ? -1 : a3 > b ? 1 : a3 >= b ? 0 : NaN; } // node_modules/d3-selection/src/selection/call.js @@ -19659,15 +20897,15 @@ function Color() { var darker = 0.7; var brighter = 1 / darker; var reI = "\\s*([+-]?\\d+)\\s*"; -var reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*"; -var reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*"; +var reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*"; +var reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*"; var reHex = /^#([0-9a-f]{3,8})$/; -var reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"); -var reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"); -var reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"); -var reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"); -var reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"); -var reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$"); +var reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`); +var reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`); +var reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`); +var reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`); +var reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`); +var reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`); var named = { aliceblue: 15792383, antiquewhite: 16444375, @@ -19819,14 +21057,15 @@ var named = { yellowgreen: 10145074 }; define_default(Color, color, { - copy: function(channels) { + copy(channels) { return Object.assign(new this.constructor(), this, channels); }, - displayable: function() { + displayable() { return this.rgb().displayable(); }, hex: color_formatHex, formatHex: color_formatHex, + formatHex8: color_formatHex8, formatHsl: color_formatHsl, formatRgb: color_formatRgb, toString: color_formatRgb @@ -19834,6 +21073,9 @@ define_default(Color, color, { function color_formatHex() { return this.rgb().formatHex(); } +function color_formatHex8() { + return this.rgb().formatHex8(); +} function color_formatHsl() { return hslConvert(this).formatHsl(); } @@ -19848,10 +21090,10 @@ function color(format2) { function rgbn(n2) { return new Rgb(n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255, 1); } -function rgba(r4, g2, b, a2) { - if (a2 <= 0) +function rgba(r4, g2, b, a3) { + if (a3 <= 0) r4 = g2 = b = NaN; - return new Rgb(r4, g2, b, a2); + return new Rgb(r4, g2, b, a3); } function rgbConvert(o) { if (!(o instanceof Color)) @@ -19871,45 +21113,57 @@ function Rgb(r4, g2, b, opacity) { this.opacity = +opacity; } define_default(Rgb, rgb, extend(Color, { - brighter: function(k) { + brighter(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, - darker: function(k) { + darker(k) { k = k == null ? darker : Math.pow(darker, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, - rgb: function() { + rgb() { return this; }, - displayable: function() { + clamp() { + return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity)); + }, + displayable() { return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1); }, hex: rgb_formatHex, formatHex: rgb_formatHex, + formatHex8: rgb_formatHex8, formatRgb: rgb_formatRgb, toString: rgb_formatRgb })); function rgb_formatHex() { - return "#" + hex(this.r) + hex(this.g) + hex(this.b); + return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`; +} +function rgb_formatHex8() { + return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; } function rgb_formatRgb() { - var a2 = this.opacity; - a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2)); - return (a2 === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a2 === 1 ? ")" : ", " + a2 + ")"); + const a3 = clampa(this.opacity); + return `${a3 === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a3 === 1 ? ")" : `, ${a3})`}`; +} +function clampa(opacity) { + return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity)); +} +function clampi(value) { + return Math.max(0, Math.min(255, Math.round(value) || 0)); } function hex(value) { - value = Math.max(0, Math.min(255, Math.round(value) || 0)); + value = clampi(value); return (value < 16 ? "0" : "") + value.toString(16); } -function hsla(h2, s, l2, a2) { - if (a2 <= 0) +function hsla(h2, s, l2, a3) { + if (a3 <= 0) h2 = s = l2 = NaN; else if (l2 <= 0 || l2 >= 1) h2 = s = NaN; else if (s <= 0) h2 = NaN; - return new Hsl(h2, s, l2, a2); + return new Hsl(h2, s, l2, a3); } function hslConvert(o) { if (o instanceof Hsl) @@ -19946,27 +21200,36 @@ function Hsl(h2, s, l2, opacity) { this.opacity = +opacity; } define_default(Hsl, hsl, extend(Color, { - brighter: function(k) { + brighter(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, - darker: function(k) { + darker(k) { k = k == null ? darker : Math.pow(darker, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, - rgb: function() { + rgb() { var h2 = this.h % 360 + (this.h < 0) * 360, s = isNaN(h2) || isNaN(this.s) ? 0 : this.s, l2 = this.l, m23 = l2 + (l2 < 0.5 ? l2 : 1 - l2) * s, m1 = 2 * l2 - m23; return new Rgb(hsl2rgb(h2 >= 240 ? h2 - 240 : h2 + 120, m1, m23), hsl2rgb(h2, m1, m23), hsl2rgb(h2 < 120 ? h2 + 240 : h2 - 120, m1, m23), this.opacity); }, - displayable: function() { + clamp() { + return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity)); + }, + displayable() { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1); }, - formatHsl: function() { - var a2 = this.opacity; - a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2)); - return (a2 === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a2 === 1 ? ")" : ", " + a2 + ")"); + formatHsl() { + const a3 = clampa(this.opacity); + return `${a3 === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a3 === 1 ? ")" : `, ${a3})`}`; } })); +function clamph(value) { + value = (value || 0) % 360; + return value < 0 ? value + 360 : value; +} +function clampt(value) { + return Math.max(0, Math.min(1, value || 0)); +} function hsl2rgb(h2, m1, m23) { return (h2 < 60 ? m1 + (m23 - m1) * h2 / 60 : h2 < 180 ? m23 : h2 < 240 ? m1 + (m23 - m1) * (240 - h2) / 60 : m1) * 255; } @@ -19997,24 +21260,24 @@ function basisClosed_default(values) { var constant_default2 = (x2) => () => x2; // node_modules/d3-interpolate/src/color.js -function linear(a2, d2) { +function linear(a3, d2) { return function(t2) { - return a2 + t2 * d2; + return a3 + t2 * d2; }; } -function exponential(a2, b, y3) { - return a2 = Math.pow(a2, y3), b = Math.pow(b, y3) - a2, y3 = 1 / y3, function(t2) { - return Math.pow(a2 + t2 * b, y3); +function exponential(a3, b, y3) { + return a3 = Math.pow(a3, y3), b = Math.pow(b, y3) - a3, y3 = 1 / y3, function(t2) { + return Math.pow(a3 + t2 * b, y3); }; } function gamma(y3) { - return (y3 = +y3) === 1 ? nogamma : function(a2, b) { - return b - a2 ? exponential(a2, b, y3) : constant_default2(isNaN(a2) ? b : a2); + return (y3 = +y3) === 1 ? nogamma : function(a3, b) { + return b - a3 ? exponential(a3, b, y3) : constant_default2(isNaN(a3) ? b : a3); }; } -function nogamma(a2, b) { - var d2 = b - a2; - return d2 ? linear(a2, d2) : constant_default2(isNaN(a2) ? b : a2); +function nogamma(a3, b) { + var d2 = b - a3; + return d2 ? linear(a3, d2) : constant_default2(isNaN(a3) ? b : a3); } // node_modules/d3-interpolate/src/rgb.js @@ -20058,14 +21321,14 @@ var rgbBasis = rgbSpline(basis_default); var rgbBasisClosed = rgbSpline(basisClosed_default); // node_modules/d3-interpolate/src/numberArray.js -function numberArray_default(a2, b) { +function numberArray_default(a3, b) { if (!b) b = []; - var n2 = a2 ? Math.min(b.length, a2.length) : 0, c3 = b.slice(), i; + var n2 = a3 ? Math.min(b.length, a3.length) : 0, c4 = b.slice(), i; return function(t2) { for (i = 0; i < n2; ++i) - c3[i] = a2[i] * (1 - t2) + b[i] * t2; - return c3; + c4[i] = a3[i] * (1 - t2) + b[i] * t2; + return c4; }; } function isNumberArray(x2) { @@ -20073,59 +21336,59 @@ function isNumberArray(x2) { } // node_modules/d3-interpolate/src/array.js -function genericArray(a2, b) { - var nb = b ? b.length : 0, na = a2 ? Math.min(nb, a2.length) : 0, x2 = new Array(na), c3 = new Array(nb), i; +function genericArray(a3, b) { + var nb = b ? b.length : 0, na = a3 ? Math.min(nb, a3.length) : 0, x2 = new Array(na), c4 = new Array(nb), i; for (i = 0; i < na; ++i) - x2[i] = value_default(a2[i], b[i]); + x2[i] = value_default(a3[i], b[i]); for (; i < nb; ++i) - c3[i] = b[i]; + c4[i] = b[i]; return function(t2) { for (i = 0; i < na; ++i) - c3[i] = x2[i](t2); - return c3; + c4[i] = x2[i](t2); + return c4; }; } // node_modules/d3-interpolate/src/date.js -function date_default(a2, b) { +function date_default(a3, b) { var d2 = new Date(); - return a2 = +a2, b = +b, function(t2) { - return d2.setTime(a2 * (1 - t2) + b * t2), d2; + return a3 = +a3, b = +b, function(t2) { + return d2.setTime(a3 * (1 - t2) + b * t2), d2; }; } // node_modules/d3-interpolate/src/number.js -function number_default2(a2, b) { - return a2 = +a2, b = +b, function(t2) { - return a2 * (1 - t2) + b * t2; +function number_default(a3, b) { + return a3 = +a3, b = +b, function(t2) { + return a3 * (1 - t2) + b * t2; }; } // node_modules/d3-interpolate/src/object.js -function object_default(a2, b) { - var i = {}, c3 = {}, k; - if (a2 === null || typeof a2 !== "object") - a2 = {}; +function object_default(a3, b) { + var i = {}, c4 = {}, k; + if (a3 === null || typeof a3 !== "object") + a3 = {}; if (b === null || typeof b !== "object") b = {}; for (k in b) { - if (k in a2) { - i[k] = value_default(a2[k], b[k]); + if (k in a3) { + i[k] = value_default(a3[k], b[k]); } else { - c3[k] = b[k]; + c4[k] = b[k]; } } return function(t2) { for (k in i) - c3[k] = i[k](t2); - return c3; + c4[k] = i[k](t2); + return c4; }; } // node_modules/d3-interpolate/src/string.js var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g; var reB = new RegExp(reA.source, "g"); -function zero(b) { +function zero2(b) { return function() { return b; }; @@ -20135,10 +21398,10 @@ function one(b) { return b(t2) + ""; }; } -function string_default(a2, b) { +function string_default(a3, b) { var bi2 = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i = -1, s = [], q2 = []; - a2 = a2 + "", b = b + ""; - while ((am = reA.exec(a2)) && (bm = reB.exec(b))) { + a3 = a3 + "", b = b + ""; + while ((am = reA.exec(a3)) && (bm = reB.exec(b))) { if ((bs = bm.index) > bi2) { bs = b.slice(bi2, bs); if (s[i]) @@ -20153,7 +21416,7 @@ function string_default(a2, b) { s[++i] = bm; } else { s[++i] = null; - q2.push({ i, x: number_default2(am, bm) }); + q2.push({ i, x: number_default(am, bm) }); } bi2 = reB.lastIndex; } @@ -20164,7 +21427,7 @@ function string_default(a2, b) { else s[++i] = bs; } - return s.length < 2 ? q2[0] ? one(q2[0].x) : zero(b) : (b = q2.length, function(t2) { + return s.length < 2 ? q2[0] ? one(q2[0].x) : zero2(b) : (b = q2.length, function(t2) { for (var i2 = 0, o; i2 < b; ++i2) s[(o = q2[i2]).i] = o.x(t2); return s.join(""); @@ -20172,15 +21435,15 @@ function string_default(a2, b) { } // node_modules/d3-interpolate/src/value.js -function value_default(a2, b) { - var t2 = typeof b, c3; - return b == null || t2 === "boolean" ? constant_default2(b) : (t2 === "number" ? number_default2 : t2 === "string" ? (c3 = color(b)) ? (b = c3, rgb_default) : string_default : b instanceof color ? rgb_default : b instanceof Date ? date_default : isNumberArray(b) ? numberArray_default : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object_default : number_default2)(a2, b); +function value_default(a3, b) { + var t2 = typeof b, c4; + return b == null || t2 === "boolean" ? constant_default2(b) : (t2 === "number" ? number_default : t2 === "string" ? (c4 = color(b)) ? (b = c4, rgb_default) : string_default : b instanceof color ? rgb_default : b instanceof Date ? date_default : isNumberArray(b) ? numberArray_default : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object_default : number_default)(a3, b); } // node_modules/d3-interpolate/src/round.js -function round_default(a2, b) { - return a2 = +a2, b = +b, function(t2) { - return Math.round(a2 * (1 - t2) + b * t2); +function round_default(a3, b) { + return a3 = +a3, b = +b, function(t2) { + return Math.round(a3 * (1 - t2) + b * t2); }; } @@ -20194,20 +21457,20 @@ var identity = { scaleX: 1, scaleY: 1 }; -function decompose_default(a2, b, c3, d2, e3, f2) { +function decompose_default(a3, b, c4, d2, e3, f2) { var scaleX, scaleY, skewX; - if (scaleX = Math.sqrt(a2 * a2 + b * b)) - a2 /= scaleX, b /= scaleX; - if (skewX = a2 * c3 + b * d2) - c3 -= a2 * skewX, d2 -= b * skewX; - if (scaleY = Math.sqrt(c3 * c3 + d2 * d2)) - c3 /= scaleY, d2 /= scaleY, skewX /= scaleY; - if (a2 * d2 < b * c3) - a2 = -a2, b = -b, skewX = -skewX, scaleX = -scaleX; + if (scaleX = Math.sqrt(a3 * a3 + b * b)) + a3 /= scaleX, b /= scaleX; + if (skewX = a3 * c4 + b * d2) + c4 -= a3 * skewX, d2 -= b * skewX; + if (scaleY = Math.sqrt(c4 * c4 + d2 * d2)) + c4 /= scaleY, d2 /= scaleY, skewX /= scaleY; + if (a3 * d2 < b * c4) + a3 = -a3, b = -b, skewX = -skewX, scaleX = -scaleX; return { translateX: e3, translateY: f2, - rotate: Math.atan2(b, a2) * degrees, + rotate: Math.atan2(b, a3) * degrees, skewX: Math.atan(skewX) * degrees, scaleX, scaleY @@ -20240,25 +21503,25 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { function translate(xa, ya, xb, yb, s, q2) { if (xa !== xb || ya !== yb) { var i = s.push("translate(", null, pxComma, null, pxParen); - q2.push({ i: i - 4, x: number_default2(xa, xb) }, { i: i - 2, x: number_default2(ya, yb) }); + q2.push({ i: i - 4, x: number_default(xa, xb) }, { i: i - 2, x: number_default(ya, yb) }); } else if (xb || yb) { s.push("translate(" + xb + pxComma + yb + pxParen); } } - function rotate(a2, b, s, q2) { - if (a2 !== b) { - if (a2 - b > 180) + function rotate(a3, b, s, q2) { + if (a3 !== b) { + if (a3 - b > 180) b += 360; - else if (b - a2 > 180) - a2 += 360; - q2.push({ i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number_default2(a2, b) }); + else if (b - a3 > 180) + a3 += 360; + q2.push({ i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number_default(a3, b) }); } else if (b) { s.push(pop(s) + "rotate(" + b + degParen); } } - function skewX(a2, b, s, q2) { - if (a2 !== b) { - q2.push({ i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number_default2(a2, b) }); + function skewX(a3, b, s, q2) { + if (a3 !== b) { + q2.push({ i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number_default(a3, b) }); } else if (b) { s.push(pop(s) + "skewX(" + b + degParen); } @@ -20266,19 +21529,19 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { function scale(xa, ya, xb, yb, s, q2) { if (xa !== xb || ya !== yb) { var i = s.push(pop(s) + "scale(", null, ",", null, ")"); - q2.push({ i: i - 4, x: number_default2(xa, xb) }, { i: i - 2, x: number_default2(ya, yb) }); + q2.push({ i: i - 4, x: number_default(xa, xb) }, { i: i - 2, x: number_default(ya, yb) }); } else if (xb !== 1 || yb !== 1) { s.push(pop(s) + "scale(" + xb + "," + yb + ")"); } } - return function(a2, b) { + return function(a3, b) { var s = [], q2 = []; - a2 = parse(a2), b = parse(b); - translate(a2.translateX, a2.translateY, b.translateX, b.translateY, s, q2); - rotate(a2.rotate, b.rotate, s, q2); - skewX(a2.skewX, b.skewX, s, q2); - scale(a2.scaleX, a2.scaleY, b.scaleX, b.scaleY, s, q2); - a2 = b = null; + a3 = parse(a3), b = parse(b); + translate(a3.translateX, a3.translateY, b.translateX, b.translateY, s, q2); + rotate(a3.rotate, b.rotate, s, q2); + skewX(a3.skewX, b.skewX, s, q2); + scale(a3.scaleX, a3.scaleY, b.scaleX, b.scaleY, s, q2); + a3 = b = null; return function(t2) { var i = -1, n2 = q2.length, o; while (++i < n2) @@ -20626,9 +21889,9 @@ function tweenValue(transition2, name, value) { } // node_modules/d3-transition/src/transition/interpolate.js -function interpolate_default(a2, b) { - var c3; - return (typeof b === "number" ? number_default2 : b instanceof color ? rgb_default : (c3 = color(b)) ? (b = c3, rgb_default) : string_default)(a2, b); +function interpolate_default(a3, b) { + var c4; + return (typeof b === "number" ? number_default : b instanceof color ? rgb_default : (c4 = color(b)) ? (b = c4, rgb_default) : string_default)(a3, b); } // node_modules/d3-transition/src/transition/attr.js @@ -21306,7 +22569,7 @@ function data_default2() { } // node_modules/d3-quadtree/src/extent.js -function extent_default2(_10) { +function extent_default(_10) { return arguments.length ? this.cover(+_10[0][0], +_10[0][1]).cover(+_10[1][0], +_10[1][1]) : isNaN(this._x0) ? void 0 : [[this._x0, this._y0], [this._x1, this._y1]]; } @@ -21527,7 +22790,7 @@ treeProto.add = add_default; treeProto.addAll = addAll; treeProto.cover = cover_default; treeProto.data = data_default2; -treeProto.extent = extent_default2; +treeProto.extent = extent_default; treeProto.find = find_default; treeProto.remove = remove_default3; treeProto.removeAll = removeAll; @@ -21971,18 +23234,18 @@ function locale_default(locale3) { var group = locale3.grouping === void 0 || locale3.thousands === void 0 ? identity_default : formatGroup_default(map.call(locale3.grouping, Number), locale3.thousands + ""), currencyPrefix = locale3.currency === void 0 ? "" : locale3.currency[0] + "", currencySuffix = locale3.currency === void 0 ? "" : locale3.currency[1] + "", decimal = locale3.decimal === void 0 ? "." : locale3.decimal + "", numerals = locale3.numerals === void 0 ? identity_default : formatNumerals_default(map.call(locale3.numerals, String)), percent = locale3.percent === void 0 ? "%" : locale3.percent + "", minus = locale3.minus === void 0 ? "\u2212" : locale3.minus + "", nan = locale3.nan === void 0 ? "NaN" : locale3.nan + ""; function newFormat(specifier) { specifier = formatSpecifier(specifier); - var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero2 = specifier.zero, width2 = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type2 = specifier.type; + var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero3 = specifier.zero, width2 = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type2 = specifier.type; if (type2 === "n") comma = true, type2 = "g"; else if (!formatTypes_default[type2]) precision === void 0 && (precision = 12), trim = true, type2 = "g"; - if (zero2 || fill === "0" && align === "=") - zero2 = true, fill = "0", align = "="; + if (zero3 || fill === "0" && align === "=") + zero3 = true, fill = "0", align = "="; var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type2) ? "0" + type2.toLowerCase() : "", suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type2) ? percent : ""; var formatType = formatTypes_default[type2], maybeSuffix = /[defgprs%]/.test(type2); precision = precision === void 0 ? 6 : /[gprs]/.test(type2) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision)); function format2(value) { - var valuePrefix = prefix, valueSuffix = suffix, i, n2, c3; + var valuePrefix = prefix, valueSuffix = suffix, i, n2, c4; if (type2 === "c") { valueSuffix = formatType(value) + valueSuffix; value = ""; @@ -21999,18 +23262,18 @@ function locale_default(locale3) { if (maybeSuffix) { i = -1, n2 = value.length; while (++i < n2) { - if (c3 = value.charCodeAt(i), 48 > c3 || c3 > 57) { - valueSuffix = (c3 === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix; + if (c4 = value.charCodeAt(i), 48 > c4 || c4 > 57) { + valueSuffix = (c4 === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix; value = value.slice(0, i); break; } } } } - if (comma && !zero2) + if (comma && !zero3) value = group(value, Infinity); var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width2 ? new Array(width2 - length + 1).join(fill) : ""; - if (comma && zero2) + if (comma && zero3) value = group(padding + value, padding.length ? width2 - valueSuffix.length : Infinity), padding = ""; switch (align) { case "<": @@ -22174,18 +23437,18 @@ function path_default(end) { } return nodes; } -function leastCommonAncestor(a2, b) { - if (a2 === b) - return a2; - var aNodes = a2.ancestors(), bNodes = b.ancestors(), c3 = null; - a2 = aNodes.pop(); +function leastCommonAncestor(a3, b) { + if (a3 === b) + return a3; + var aNodes = a3.ancestors(), bNodes = b.ancestors(), c4 = null; + a3 = aNodes.pop(); b = bNodes.pop(); - while (a2 === b) { - c3 = a2; - a2 = aNodes.pop(); + while (a3 === b) { + c4 = a3; + a3 = aNodes.pop(); b = bNodes.pop(); } - return c3; + return c4; } // node_modules/d3-hierarchy/src/hierarchy/ancestors.js @@ -22305,14 +23568,43 @@ Node.prototype = hierarchy.prototype = { [Symbol.iterator]: iterator_default2 }; +// node_modules/d3-hierarchy/src/accessors.js +function optional(f2) { + return f2 == null ? null : required(f2); +} +function required(f2) { + if (typeof f2 !== "function") + throw new Error(); + return f2; +} + +// node_modules/d3-hierarchy/src/constant.js +function constantZero() { + return 0; +} +function constant_default5(x2) { + return function() { + return x2; + }; +} + +// node_modules/d3-hierarchy/src/lcg.js +var a2 = 1664525; +var c2 = 1013904223; +var m2 = 4294967296; +function lcg_default2() { + let s = 1; + return () => (s = (a2 * s + c2) % m2) / m2; +} + // node_modules/d3-hierarchy/src/array.js function array_default(x2) { return typeof x2 === "object" && "length" in x2 ? x2 : Array.from(x2); } -function shuffle(array2) { - var m4 = array2.length, t2, i; +function shuffle(array2, random) { + let m4 = array2.length, t2, i; while (m4) { - i = Math.random() * m4-- | 0; + i = random() * m4-- | 0; t2 = array2[m4]; array2[m4] = array2[i]; array2[i] = t2; @@ -22321,8 +23613,8 @@ function shuffle(array2) { } // node_modules/d3-hierarchy/src/pack/enclose.js -function enclose_default(circles) { - var i = 0, n2 = (circles = shuffle(Array.from(circles))).length, B = [], p2, e3; +function packEncloseRandom(circles, random) { + var i = 0, n2 = (circles = shuffle(Array.from(circles), random)).length, B = [], p2, e3; while (i < n2) { p2 = circles[i]; if (e3 && enclosesWeak(e3, p2)) @@ -22350,17 +23642,17 @@ function extendBasis(B, p2) { } throw new Error(); } -function enclosesNot(a2, b) { - var dr = a2.r - b.r, dx = b.x - a2.x, dy = b.y - a2.y; +function enclosesNot(a3, b) { + var dr = a3.r - b.r, dx = b.x - a3.x, dy = b.y - a3.y; return dr < 0 || dr * dr < dx * dx + dy * dy; } -function enclosesWeak(a2, b) { - var dr = a2.r - b.r + Math.max(a2.r, b.r, 1) * 1e-9, dx = b.x - a2.x, dy = b.y - a2.y; +function enclosesWeak(a3, b) { + var dr = a3.r - b.r + Math.max(a3.r, b.r, 1) * 1e-9, dx = b.x - a3.x, dy = b.y - a3.y; return dr > 0 && dr * dr > dx * dx + dy * dy; } -function enclosesWeakAll(a2, B) { +function enclosesWeakAll(a3, B) { for (var i = 0; i < B.length; ++i) { - if (!enclosesWeak(a2, B[i])) { + if (!enclosesWeak(a3, B[i])) { return false; } } @@ -22376,23 +23668,23 @@ function encloseBasis(B) { return encloseBasis3(B[0], B[1], B[2]); } } -function encloseBasis1(a2) { +function encloseBasis1(a3) { return { - x: a2.x, - y: a2.y, - r: a2.r + x: a3.x, + y: a3.y, + r: a3.r }; } -function encloseBasis2(a2, b) { - var x1 = a2.x, y1 = a2.y, r1 = a2.r, x2 = b.x, y22 = b.y, r22 = b.r, x21 = x2 - x1, y21 = y22 - y1, r21 = r22 - r1, l2 = Math.sqrt(x21 * x21 + y21 * y21); +function encloseBasis2(a3, b) { + var x1 = a3.x, y1 = a3.y, r1 = a3.r, x2 = b.x, y22 = b.y, r22 = b.r, x21 = x2 - x1, y21 = y22 - y1, r21 = r22 - r1, l2 = Math.sqrt(x21 * x21 + y21 * y21); return { x: (x1 + x2 + x21 / l2 * r21) / 2, y: (y1 + y22 + y21 / l2 * r21) / 2, r: (l2 + r1 + r22) / 2 }; } -function encloseBasis3(a2, b, c3) { - var x1 = a2.x, y1 = a2.y, r1 = a2.r, x2 = b.x, y22 = b.y, r22 = b.r, x3 = c3.x, y3 = c3.y, r32 = c3.r, a22 = x1 - x2, a3 = x1 - x3, b2 = y1 - y22, b3 = y1 - y3, c22 = r22 - r1, c32 = r32 - r1, d1 = x1 * x1 + y1 * y1 - r1 * r1, d2 = d1 - x2 * x2 - y22 * y22 + r22 * r22, d3 = d1 - x3 * x3 - y3 * y3 + r32 * r32, ab = a3 * b2 - a22 * b3, xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1, xb = (b3 * c22 - b2 * c32) / ab, ya = (a3 * d2 - a22 * d3) / (ab * 2) - y1, yb = (a22 * c32 - a3 * c22) / ab, A = xb * xb + yb * yb - 1, B = 2 * (r1 + xa * xb + ya * yb), C = xa * xa + ya * ya - r1 * r1, r4 = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B); +function encloseBasis3(a3, b, c4) { + var x1 = a3.x, y1 = a3.y, r1 = a3.r, x2 = b.x, y22 = b.y, r22 = b.r, x3 = c4.x, y3 = c4.y, r32 = c4.r, a22 = x1 - x2, a32 = x1 - x3, b2 = y1 - y22, b3 = y1 - y3, c22 = r22 - r1, c32 = r32 - r1, d1 = x1 * x1 + y1 * y1 - r1 * r1, d2 = d1 - x2 * x2 - y22 * y22 + r22 * r22, d3 = d1 - x3 * x3 - y3 * y3 + r32 * r32, ab = a32 * b2 - a22 * b3, xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1, xb = (b3 * c22 - b2 * c32) / ab, ya = (a32 * d2 - a22 * d3) / (ab * 2) - y1, yb = (a22 * c32 - a32 * c22) / ab, A = xb * xb + yb * yb - 1, B = 2 * (r1 + xa * xb + ya * yb), C = xa * xa + ya * ya - r1 * r1, r4 = -(Math.abs(A) > 1e-6 ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B); return { x: x1 + xa + xb * r4, y: y1 + ya + yb * r4, @@ -22401,33 +23693,33 @@ function encloseBasis3(a2, b, c3) { } // node_modules/d3-hierarchy/src/pack/siblings.js -function place(b, a2, c3) { - var dx = b.x - a2.x, x2, a22, dy = b.y - a2.y, y3, b2, d2 = dx * dx + dy * dy; +function place(b, a3, c4) { + var dx = b.x - a3.x, x2, a22, dy = b.y - a3.y, y3, b2, d2 = dx * dx + dy * dy; if (d2) { - a22 = a2.r + c3.r, a22 *= a22; - b2 = b.r + c3.r, b2 *= b2; + a22 = a3.r + c4.r, a22 *= a22; + b2 = b.r + c4.r, b2 *= b2; if (a22 > b2) { x2 = (d2 + b2 - a22) / (2 * d2); y3 = Math.sqrt(Math.max(0, b2 / d2 - x2 * x2)); - c3.x = b.x - x2 * dx - y3 * dy; - c3.y = b.y - x2 * dy + y3 * dx; + c4.x = b.x - x2 * dx - y3 * dy; + c4.y = b.y - x2 * dy + y3 * dx; } else { x2 = (d2 + a22 - b2) / (2 * d2); y3 = Math.sqrt(Math.max(0, a22 / d2 - x2 * x2)); - c3.x = a2.x + x2 * dx - y3 * dy; - c3.y = a2.y + x2 * dy + y3 * dx; + c4.x = a3.x + x2 * dx - y3 * dy; + c4.y = a3.y + x2 * dy + y3 * dx; } } else { - c3.x = a2.x + c3.r; - c3.y = a2.y; + c4.x = a3.x + c4.r; + c4.y = a3.y; } } -function intersects(a2, b) { - var dr = a2.r + b.r - 1e-6, dx = b.x - a2.x, dy = b.y - a2.y; +function intersects(a3, b) { + var dr = a3.r + b.r - 1e-6, dx = b.x - a3.x, dy = b.y - a3.y; return dr > 0 && dr * dr > dx * dx + dy * dy; } function score(node) { - var a2 = node._, b = node.next._, ab = a2.r + b.r, dx = (a2.x * b.r + b.x * a2.r) / ab, dy = (a2.y * b.r + b.y * a2.r) / ab; + var a3 = node._, b = node.next._, ab = a3.r + b.r, dx = (a3.x * b.r + b.x * a3.r) / ab, dy = (a3.y * b.r + b.y * a3.r) / ab; return dx * dx + dy * dy; } function Node2(circle) { @@ -22435,76 +23727,56 @@ function Node2(circle) { this.next = null; this.previous = null; } -function packEnclose(circles) { +function packSiblingsRandom(circles, random) { if (!(n2 = (circles = array_default(circles)).length)) return 0; - var a2, b, c3, n2, aa, ca, i, j3, k, sj2, sk; - a2 = circles[0], a2.x = 0, a2.y = 0; + var a3, b, c4, n2, aa, ca, i, j3, k, sj2, sk; + a3 = circles[0], a3.x = 0, a3.y = 0; if (!(n2 > 1)) - return a2.r; - b = circles[1], a2.x = -b.r, b.x = a2.r, b.y = 0; + return a3.r; + b = circles[1], a3.x = -b.r, b.x = a3.r, b.y = 0; if (!(n2 > 2)) - return a2.r + b.r; - place(b, a2, c3 = circles[2]); - a2 = new Node2(a2), b = new Node2(b), c3 = new Node2(c3); - a2.next = c3.previous = b; - b.next = a2.previous = c3; - c3.next = b.previous = a2; + return a3.r + b.r; + place(b, a3, c4 = circles[2]); + a3 = new Node2(a3), b = new Node2(b), c4 = new Node2(c4); + a3.next = c4.previous = b; + b.next = a3.previous = c4; + c4.next = b.previous = a3; pack: for (i = 3; i < n2; ++i) { - place(a2._, b._, c3 = circles[i]), c3 = new Node2(c3); - j3 = b.next, k = a2.previous, sj2 = b._.r, sk = a2._.r; + place(a3._, b._, c4 = circles[i]), c4 = new Node2(c4); + j3 = b.next, k = a3.previous, sj2 = b._.r, sk = a3._.r; do { if (sj2 <= sk) { - if (intersects(j3._, c3._)) { - b = j3, a2.next = b, b.previous = a2, --i; + if (intersects(j3._, c4._)) { + b = j3, a3.next = b, b.previous = a3, --i; continue pack; } sj2 += j3._.r, j3 = j3.next; } else { - if (intersects(k._, c3._)) { - a2 = k, a2.next = b, b.previous = a2, --i; + if (intersects(k._, c4._)) { + a3 = k, a3.next = b, b.previous = a3, --i; continue pack; } sk += k._.r, k = k.previous; } } while (j3 !== k.next); - c3.previous = a2, c3.next = b, a2.next = b.previous = b = c3; - aa = score(a2); - while ((c3 = c3.next) !== b) { - if ((ca = score(c3)) < aa) { - a2 = c3, aa = ca; + c4.previous = a3, c4.next = b, a3.next = b.previous = b = c4; + aa = score(a3); + while ((c4 = c4.next) !== b) { + if ((ca = score(c4)) < aa) { + a3 = c4, aa = ca; } } - b = a2.next; + b = a3.next; } - a2 = [b._], c3 = b; - while ((c3 = c3.next) !== b) - a2.push(c3._); - c3 = enclose_default(a2); + a3 = [b._], c4 = b; + while ((c4 = c4.next) !== b) + a3.push(c4._); + c4 = packEncloseRandom(a3, random); for (i = 0; i < n2; ++i) - a2 = circles[i], a2.x -= c3.x, a2.y -= c3.y; - return c3.r; -} - -// node_modules/d3-hierarchy/src/accessors.js -function optional(f2) { - return f2 == null ? null : required(f2); -} -function required(f2) { - if (typeof f2 !== "function") - throw new Error(); - return f2; -} - -// node_modules/d3-hierarchy/src/constant.js -function constantZero() { - return 0; -} -function constant_default5(x2) { - return function() { - return x2; - }; + a3 = circles[i], a3.x -= c4.x, a3.y -= c4.y; + return c4.r; } // node_modules/d3-hierarchy/src/pack/index.js @@ -22514,11 +23786,12 @@ function defaultRadius(d2) { function pack_default() { var radius = null, dx = 1, dy = 1, padding = constantZero; function pack(root2) { + const random = lcg_default2(); root2.x = dx / 2, root2.y = dy / 2; if (radius) { - root2.eachBefore(radiusLeaf(radius)).eachAfter(packChildren(padding, 0.5)).eachBefore(translateChild(1)); + root2.eachBefore(radiusLeaf(radius)).eachAfter(packChildrenRandom(padding, 0.5, random)).eachBefore(translateChild(1)); } else { - root2.eachBefore(radiusLeaf(defaultRadius)).eachAfter(packChildren(constantZero, 1)).eachAfter(packChildren(padding, root2.r / Math.min(dx, dy))).eachBefore(translateChild(Math.min(dx, dy) / (2 * root2.r))); + root2.eachBefore(radiusLeaf(defaultRadius)).eachAfter(packChildrenRandom(constantZero, 1, random)).eachAfter(packChildrenRandom(padding, root2.r / Math.min(dx, dy), random)).eachBefore(translateChild(Math.min(dx, dy) / (2 * root2.r))); } return root2; } @@ -22540,14 +23813,14 @@ function radiusLeaf(radius) { } }; } -function packChildren(padding, k) { +function packChildrenRandom(padding, k, random) { return function(node) { if (children2 = node.children) { var children2, i, n2 = children2.length, r4 = padding(node) * k || 0, e3; if (r4) for (i = 0; i < n2; ++i) children2[i].r += r4; - e3 = packEnclose(children2); + e3 = packSiblingsRandom(children2, random); if (r4) for (i = 0; i < n2; ++i) children2[i].r -= r4; @@ -22567,7 +23840,7 @@ function translateChild(k) { } // node_modules/d3-scale/src/init.js -function initRange(domain, range) { +function initRange(domain, range2) { switch (arguments.length) { case 0: break; @@ -22575,7 +23848,7 @@ function initRange(domain, range) { this.range(domain); break; default: - this.range(range).domain(domain); + this.range(range2).domain(domain); break; } return this; @@ -22589,7 +23862,7 @@ function constants(x2) { } // node_modules/d3-scale/src/number.js -function number(x2) { +function number3(x2) { return +x2; } @@ -22598,21 +23871,21 @@ var unit = [0, 1]; function identity2(x2) { return x2; } -function normalize(a2, b) { - return (b -= a2 = +a2) ? function(x2) { - return (x2 - a2) / b; +function normalize(a3, b) { + return (b -= a3 = +a3) ? function(x2) { + return (x2 - a3) / b; } : constants(isNaN(b) ? NaN : 0.5); } -function clamper(a2, b) { +function clamper(a3, b) { var t2; - if (a2 > b) - t2 = a2, a2 = b, b = t2; + if (a3 > b) + t2 = a3, a3 = b, b = t2; return function(x2) { - return Math.max(a2, Math.min(b, x2)); + return Math.max(a3, Math.min(b, x2)); }; } -function bimap(domain, range, interpolate) { - var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1]; +function bimap(domain, range2, interpolate) { + var d0 = domain[0], d1 = domain[1], r0 = range2[0], r1 = range2[1]; if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0); else @@ -22621,15 +23894,15 @@ function bimap(domain, range, interpolate) { return r0(d0(x2)); }; } -function polymap(domain, range, interpolate) { - var j3 = Math.min(domain.length, range.length) - 1, d2 = new Array(j3), r4 = new Array(j3), i = -1; +function polymap(domain, range2, interpolate) { + var j3 = Math.min(domain.length, range2.length) - 1, d2 = new Array(j3), r4 = new Array(j3), i = -1; if (domain[j3] < domain[0]) { domain = domain.slice().reverse(); - range = range.slice().reverse(); + range2 = range2.slice().reverse(); } while (++i < j3) { d2[i] = normalize(domain[i], domain[i + 1]); - r4[i] = interpolate(range[i], range[i + 1]); + r4[i] = interpolate(range2[i], range2[i + 1]); } return function(x2) { var i2 = bisect_default(domain, x2, 1, j3) - 1; @@ -22640,9 +23913,9 @@ function copy(source, target) { return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown()); } function transformer() { - var domain = unit, range = unit, interpolate = value_default, transform2, untransform, unknown, clamp = identity2, piecewise, output, input; + var domain = unit, range2 = unit, interpolate = value_default, transform2, untransform, unknown, clamp = identity2, piecewise, output, input; function rescale() { - var n2 = Math.min(domain.length, range.length); + var n2 = Math.min(domain.length, range2.length); if (clamp !== identity2) clamp = clamper(domain[0], domain[n2 - 1]); piecewise = n2 > 2 ? polymap : bimap; @@ -22650,19 +23923,19 @@ function transformer() { return scale; } function scale(x2) { - return x2 == null || isNaN(x2 = +x2) ? unknown : (output || (output = piecewise(domain.map(transform2), range, interpolate)))(transform2(clamp(x2))); + return x2 == null || isNaN(x2 = +x2) ? unknown : (output || (output = piecewise(domain.map(transform2), range2, interpolate)))(transform2(clamp(x2))); } scale.invert = function(y3) { - return clamp(untransform((input || (input = piecewise(range, domain.map(transform2), number_default2)))(y3))); + return clamp(untransform((input || (input = piecewise(range2, domain.map(transform2), number_default)))(y3))); }; scale.domain = function(_10) { - return arguments.length ? (domain = Array.from(_10, number), rescale()) : domain.slice(); + return arguments.length ? (domain = Array.from(_10, number3), rescale()) : domain.slice(); }; scale.range = function(_10) { - return arguments.length ? (range = Array.from(_10), rescale()) : range.slice(); + return arguments.length ? (range2 = Array.from(_10), rescale()) : range2.slice(); }; scale.rangeRound = function(_10) { - return range = Array.from(_10), interpolate = round_default, rescale(); + return range2 = Array.from(_10), interpolate = round_default, rescale(); }; scale.clamp = function(_10) { return arguments.length ? (clamp = _10 ? true : identity2, rescale()) : clamp !== identity2; @@ -22717,7 +23990,7 @@ function linearish(scale) { var domain = scale.domain; scale.ticks = function(count2) { var d2 = domain(); - return ticks_default(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2); + return ticks(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2); }; scale.tickFormat = function(count2, specifier) { var d2 = domain(); @@ -22823,15 +24096,15 @@ function newInterval(floori, offseti, count2, field) { return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date; }; interval2.range = function(start2, stop, step) { - var range = [], previous; + var range2 = [], previous; start2 = interval2.ceil(start2); step = step == null ? 1 : Math.floor(step); if (!(start2 < stop) || !(step > 0)) - return range; + return range2; do - range.push(previous = new Date(+start2)), offseti(start2, step), floori(start2); + range2.push(previous = new Date(+start2)), offseti(start2, step), floori(start2); while (previous < start2 && start2 < stop); - return range; + return range2; }; interval2.filter = function(test) { return newInterval(function(date) { @@ -23129,19 +24402,19 @@ function formatLocale(locale3) { utcFormats.c = newFormat(locale_dateTime, utcFormats); function newFormat(specifier, formats2) { return function(date) { - var string = [], i = -1, j3 = 0, n2 = specifier.length, c3, pad2, format2; + var string = [], i = -1, j3 = 0, n2 = specifier.length, c4, pad2, format2; if (!(date instanceof Date)) date = new Date(+date); while (++i < n2) { if (specifier.charCodeAt(i) === 37) { string.push(specifier.slice(j3, i)); - if ((pad2 = pads[c3 = specifier.charAt(++i)]) != null) - c3 = specifier.charAt(++i); + if ((pad2 = pads[c4 = specifier.charAt(++i)]) != null) + c4 = specifier.charAt(++i); else - pad2 = c3 === "e" ? " " : "0"; - if (format2 = formats2[c3]) - c3 = format2(date, pad2); - string.push(c3); + pad2 = c4 === "e" ? " " : "0"; + if (format2 = formats2[c4]) + c4 = format2(date, pad2); + string.push(c4); j3 = i + 1; } } @@ -23200,17 +24473,17 @@ function formatLocale(locale3) { }; } function parseSpecifier(d2, specifier, string, j3) { - var i = 0, n2 = specifier.length, m4 = string.length, c3, parse; + var i = 0, n2 = specifier.length, m4 = string.length, c4, parse; while (i < n2) { if (j3 >= m4) return -1; - c3 = specifier.charCodeAt(i++); - if (c3 === 37) { - c3 = specifier.charAt(i++); - parse = parses[c3 in pads ? specifier.charAt(i++) : c3]; + c4 = specifier.charCodeAt(i++); + if (c4 === 37) { + c4 = specifier.charAt(i++); + parse = parses[c4 in pads ? specifier.charAt(i++) : c4]; if (!parse || (j3 = parse(d2, string, j3)) < 0) return -1; - } else if (c3 != string.charCodeAt(j3++)) { + } else if (c4 != string.charCodeAt(j3++)) { return -1; } } @@ -23713,7 +24986,7 @@ var bsv = "#12223c"; var boo = "#d4bec1"; var bpl = "#c80fa0"; var brs = "#662D91"; -var c2 = "#555555"; +var c3 = "#555555"; var cats = "#555555"; var h = "#438eff"; var idc = "#555555"; @@ -24098,7 +25371,7 @@ var less = "#1d365d"; var lex = "#DBCA00"; var ly = "#9ccc7c"; var ily = "#9ccc7c"; -var m2 = "#438eff"; +var m3 = "#438eff"; var liquid = "#67b8de"; var lagda = "#315665"; var litcoffee = "#244776"; @@ -24163,7 +25436,7 @@ var mirah = "#c7a938"; var mo = "#de1d31"; var i3 = "#223388"; var ig = "#223388"; -var m3 = "#223388"; +var m32 = "#223388"; var mg = "#223388"; var moon = "#ff4585"; var x68 = "#005daa"; @@ -24765,7 +26038,7 @@ var language_colors_default = { boo, bpl, brs, - c: c2, + c: c3, cats, h, idc, @@ -25150,7 +26423,7 @@ var language_colors_default = { lex, ly, ily, - m: m2, + m: m3, liquid, lagda, litcoffee, @@ -25215,7 +26488,7 @@ var language_colors_default = { mo, i3, ig, - m3, + m3: m32, mg, moon, x68, @@ -25827,8 +27100,8 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus return d2.children ? (0, import_flatten.default)(d2.children.map(flattenTree)) : d2; }; const items = flattenTree(data); - const flatTree = colorEncoding === "last-change" ? items.map(lastCommitAccessor).sort((a2, b) => b - a2).slice(0, -8) : items.map(numberOfCommitsAccessor).sort((a2, b) => b - a2).slice(2, -2); - const colorExtent2 = extent_default(flatTree); + const flatTree = colorEncoding === "last-change" ? items.map(lastCommitAccessor).sort((a3, b) => b - a3).slice(0, -8) : items.map(numberOfCommitsAccessor).sort((a3, b) => b - a3).slice(2, -2); + const colorExtent2 = extent(flatTree); const colors = [ "#f4f4f4", "#f4f4f4", @@ -25836,7 +27109,7 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus colorEncoding === "last-change" ? "#C7ECEE" : "#FEEAA7", colorEncoding === "number-of-changes" ? "#3C40C6" : "#823471" ]; - const colorScale2 = linear2().domain(range_default(0, colors.length).map((i) => +colorExtent2[0] + (colorExtent2[1] - colorExtent2[0]) * i / (colors.length - 1))).range(colors).clamp(true); + const colorScale2 = linear2().domain(range(0, colors.length).map((i) => +colorExtent2[0] + (colorExtent2[1] - colorExtent2[0]) * i / (colors.length - 1))).range(colors).clamp(true); return { colorScale: colorScale2, colorExtent: colorExtent2 }; }, [data]); const getColor = (d2) => { @@ -25844,7 +27117,7 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus if (colorEncoding === "type") { const isParent = d2.children; if (isParent) { - const extensions = (0, import_countBy.default)(d2.children, (c3) => c3.extension); + const extensions = (0, import_countBy.default)(d2.children, (c4) => c4.extension); const mainExtension = (_a = (0, import_maxBy.default)((0, import_entries.default)(extensions), ([k, v2]) => v2)) == null ? void 0 : _a[0]; return fileColors[mainExtension] || "#CED6E0"; } @@ -25858,10 +27131,10 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus const packedData = (0, import_react2.useMemo)(() => { if (!data) return []; - const hierarchicalData = hierarchy(processChild(data, getColor, cachedOrders.current, 0, fileColors)).sum((d2) => d2.value).sort((a2, b) => { + const hierarchicalData = hierarchy(processChild(data, getColor, cachedOrders.current, 0, fileColors)).sum((d2) => d2.value).sort((a3, b) => { if (b.data.path.startsWith("src/fonts")) { } - return b.data.sortOrder - a2.data.sortOrder || (b.data.name > a2.data.name ? 1 : -1); + return b.data.sortOrder - a3.data.sortOrder || (b.data.name > a3.data.name ? 1 : -1); }); let packedTree = pack_default().size([width, height * 1.3]).padding((d2) => { if (d2.depth <= 0) @@ -26057,10 +27330,10 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus })); }; var formatD = (d2) => typeof d2 === "number" ? d2 : timeFormat("%b %Y")(d2); -var ColorLegend = ({ scale, extent, colorEncoding }) => { +var ColorLegend = ({ scale, extent: extent2, colorEncoding }) => { if (!scale || !scale.ticks) return null; - const ticks = scale.ticks(10); + const ticks2 = scale.ticks(10); return /* @__PURE__ */ import_react2.default.createElement("g", { transform: `translate(${width - 160}, ${height - 90})` }, /* @__PURE__ */ import_react2.default.createElement("text", { @@ -26070,10 +27343,10 @@ var ColorLegend = ({ scale, extent, colorEncoding }) => { textAnchor: "middle" }, colorEncoding === "number-of-changes" ? "Number of changes" : "Last change date"), /* @__PURE__ */ import_react2.default.createElement("linearGradient", { id: "gradient" - }, ticks.map((tick, i) => { + }, ticks2.map((tick, i) => { const color2 = scale(tick); return /* @__PURE__ */ import_react2.default.createElement("stop", { - offset: i / (ticks.length - 1), + offset: i / (ticks2.length - 1), stopColor: color2, key: i }); @@ -26082,7 +27355,7 @@ var ColorLegend = ({ scale, extent, colorEncoding }) => { width: "100", height: "13", fill: "url(#gradient)" - }), extent.map((d2, i) => /* @__PURE__ */ import_react2.default.createElement("text", { + }), extent2.map((d2, i) => /* @__PURE__ */ import_react2.default.createElement("text", { key: i, x: i ? 100 : 0, y: "23", @@ -26119,7 +27392,7 @@ var processChild = (child, getColor, cachedOrders, i = 0, fileColors) => { const isRoot = !child.path; let name = child.name; let path = child.path; - let children2 = (_a = child == null ? void 0 : child.children) == null ? void 0 : _a.map((c3, i2) => processChild(c3, getColor, cachedOrders, i2, fileColors)); + let children2 = (_a = child == null ? void 0 : child.children) == null ? void 0 : _a.map((c4, i2) => processChild(c4, getColor, cachedOrders, i2, fileColors)); if ((children2 == null ? void 0 : children2.length) === 1) { name = `${name}/${children2[0].name}`; path = children2[0].path; @@ -26207,7 +27480,7 @@ var reflowSiblings = (siblings, cachedPositions = {}, maxDepth, parentRadius, pa newD.x += xDiff; newD.y += yDiff; if (newD.children) { - newD.children = newD.children.map((c3) => repositionChildren(c3, xDiff, yDiff)); + newD.children = newD.children.map((c4) => repositionChildren(c4, xDiff, yDiff)); } return newD; }; diff --git a/package.json b/package.json index e2d226f..9b1a946 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@actions/artifact": "^0.5.2", - "@actions/core": "^1.4.0", + "@actions/core": "^1.10.0", "@actions/exec": "^1.1.0", "d3": "^7.0.0", "esbuild": "^0.12.15",