diff --git a/out/github-action.cjs b/out/github-action.cjs index bb49704..aeab086 100644 --- a/out/github-action.cjs +++ b/out/github-action.cjs @@ -31,6 +31,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // node_modules/@actions/core/lib/utils.js var require_utils = __commonJS({ @@ -70,13 +71,9 @@ var require_command = __commonJS({ "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o3, m4, k4, k22) { if (k22 === void 0) k22 = k4; - var desc = Object.getOwnPropertyDescriptor(m4, k4); - if (!desc || ("get" in desc ? !m4.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { - return m4[k4]; - } }; - } - Object.defineProperty(o3, k22, desc); + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k4]; + } }); } : function(o3, m4, k4, k22) { if (k22 === void 0) k22 = k4; o3[k22] = m4[k4]; @@ -90,7 +87,7 @@ var require_command = __commonJS({ if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k4 in mod) if (k4 !== "default" && Object.prototype.hasOwnProperty.call(mod, k4)) __createBinding(result, mod, k4); + for (var k4 in mod) if (k4 !== "default" && Object.hasOwnProperty.call(mod, k4)) __createBinding(result, mod, k4); } __setModuleDefault(result, mod); return result; @@ -142,27 +139,356 @@ var require_command = __commonJS({ } }; function escapeData(s2) { - return (0, utils_1.toCommandValue)(s2).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); + return utils_1.toCommandValue(s2).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); } function escapeProperty(s2) { - return (0, utils_1.toCommandValue)(s2).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); + return utils_1.toCommandValue(s2).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); } } }); +// node_modules/uuid/dist/esm-node/rng.js +function rng() { + if (poolPtr > rnds8Pool.length - 16) { + import_crypto.default.randomFillSync(rnds8Pool); + poolPtr = 0; + } + return rnds8Pool.slice(poolPtr, poolPtr += 16); +} +var import_crypto, rnds8Pool, poolPtr; +var init_rng = __esm({ + "node_modules/uuid/dist/esm-node/rng.js"() { + import_crypto = __toESM(require("crypto")); + rnds8Pool = new Uint8Array(256); + poolPtr = rnds8Pool.length; + } +}); + +// node_modules/uuid/dist/esm-node/regex.js +var regex_default; +var init_regex = __esm({ + "node_modules/uuid/dist/esm-node/regex.js"() { + regex_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; + } +}); + +// node_modules/uuid/dist/esm-node/validate.js +function validate(uuid) { + return typeof uuid === "string" && regex_default.test(uuid); +} +var validate_default; +var init_validate = __esm({ + "node_modules/uuid/dist/esm-node/validate.js"() { + init_regex(); + validate_default = validate; + } +}); + +// node_modules/uuid/dist/esm-node/stringify.js +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 (!validate_default(uuid)) { + throw TypeError("Stringified UUID is invalid"); + } + return uuid; +} +var byteToHex, stringify_default; +var init_stringify = __esm({ + "node_modules/uuid/dist/esm-node/stringify.js"() { + init_validate(); + byteToHex = []; + for (let i3 = 0; i3 < 256; ++i3) { + byteToHex.push((i3 + 256).toString(16).substr(1)); + } + stringify_default = stringify; + } +}); + +// node_modules/uuid/dist/esm-node/v1.js +function v1(options, buf, offset) { + let i3 = buf && offset || 0; + const b3 = 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)(); + 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 dt2 = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; + if (dt2 < 0 && options.clockseq === void 0) { + clockseq = clockseq + 1 & 16383; + } + if ((dt2 < 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; + b3[i3++] = tl >>> 24 & 255; + b3[i3++] = tl >>> 16 & 255; + b3[i3++] = tl >>> 8 & 255; + b3[i3++] = tl & 255; + const tmh = msecs / 4294967296 * 1e4 & 268435455; + b3[i3++] = tmh >>> 8 & 255; + b3[i3++] = tmh & 255; + b3[i3++] = tmh >>> 24 & 15 | 16; + b3[i3++] = tmh >>> 16 & 255; + b3[i3++] = clockseq >>> 8 | 128; + b3[i3++] = clockseq & 255; + for (let n2 = 0; n2 < 6; ++n2) { + b3[i3 + n2] = node[n2]; + } + return buf || stringify_default(b3); +} +var _nodeId, _clockseq, _lastMSecs, _lastNSecs, v1_default; +var init_v1 = __esm({ + "node_modules/uuid/dist/esm-node/v1.js"() { + init_rng(); + init_stringify(); + _lastMSecs = 0; + _lastNSecs = 0; + v1_default = v1; + } +}); + +// node_modules/uuid/dist/esm-node/parse.js +function parse(uuid) { + if (!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 parse_default; +var init_parse = __esm({ + "node_modules/uuid/dist/esm-node/parse.js"() { + init_validate(); + parse_default = parse; + } +}); + +// node_modules/uuid/dist/esm-node/v35.js +function stringToBytes(str2) { + str2 = unescape(encodeURIComponent(str2)); + const bytes = []; + for (let i3 = 0; i3 < str2.length; ++i3) { + bytes.push(str2.charCodeAt(i3)); + } + return bytes; +} +function v35_default(name, version2, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === "string") { + value = stringToBytes(value); + } + if (typeof namespace === "string") { + namespace = 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 | version2; + bytes[8] = bytes[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i3 = 0; i3 < 16; ++i3) { + buf[offset + i3] = bytes[i3]; + } + return buf; + } + return stringify_default(bytes); + } + try { + generateUUID.name = name; + } catch (err) { + } + generateUUID.DNS = DNS; + generateUUID.URL = URL2; + return generateUUID; +} +var DNS, URL2; +var init_v35 = __esm({ + "node_modules/uuid/dist/esm-node/v35.js"() { + init_stringify(); + init_parse(); + DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; + URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; + } +}); + +// node_modules/uuid/dist/esm-node/md5.js +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return import_crypto2.default.createHash("md5").update(bytes).digest(); +} +var import_crypto2, md5_default; +var init_md5 = __esm({ + "node_modules/uuid/dist/esm-node/md5.js"() { + import_crypto2 = __toESM(require("crypto")); + md5_default = md5; + } +}); + +// node_modules/uuid/dist/esm-node/v3.js +var v3, v3_default; +var init_v3 = __esm({ + "node_modules/uuid/dist/esm-node/v3.js"() { + init_v35(); + init_md5(); + v3 = v35_default("v3", 48, md5_default); + v3_default = v3; + } +}); + +// node_modules/uuid/dist/esm-node/v4.js +function v4(options, buf, offset) { + options = options || {}; + const rnds = options.random || (options.rng || rng)(); + rnds[6] = rnds[6] & 15 | 64; + rnds[8] = rnds[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i3 = 0; i3 < 16; ++i3) { + buf[offset + i3] = rnds[i3]; + } + return buf; + } + return stringify_default(rnds); +} +var v4_default; +var init_v4 = __esm({ + "node_modules/uuid/dist/esm-node/v4.js"() { + init_rng(); + init_stringify(); + v4_default = v4; + } +}); + +// node_modules/uuid/dist/esm-node/sha1.js +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return import_crypto3.default.createHash("sha1").update(bytes).digest(); +} +var import_crypto3, sha1_default; +var init_sha1 = __esm({ + "node_modules/uuid/dist/esm-node/sha1.js"() { + import_crypto3 = __toESM(require("crypto")); + sha1_default = sha1; + } +}); + +// node_modules/uuid/dist/esm-node/v5.js +var v5, v5_default; +var init_v5 = __esm({ + "node_modules/uuid/dist/esm-node/v5.js"() { + init_v35(); + init_sha1(); + v5 = v35_default("v5", 80, sha1_default); + v5_default = v5; + } +}); + +// node_modules/uuid/dist/esm-node/nil.js +var nil_default; +var init_nil = __esm({ + "node_modules/uuid/dist/esm-node/nil.js"() { + nil_default = "00000000-0000-0000-0000-000000000000"; + } +}); + +// node_modules/uuid/dist/esm-node/version.js +function version(uuid) { + if (!validate_default(uuid)) { + throw TypeError("Invalid UUID"); + } + return parseInt(uuid.substr(14, 1), 16); +} +var version_default; +var init_version = __esm({ + "node_modules/uuid/dist/esm-node/version.js"() { + init_validate(); + version_default = version; + } +}); + +// node_modules/uuid/dist/esm-node/index.js +var esm_node_exports = {}; +__export(esm_node_exports, { + NIL: () => nil_default, + parse: () => parse_default, + stringify: () => stringify_default, + v1: () => v1_default, + v3: () => v3_default, + v4: () => v4_default, + v5: () => v5_default, + validate: () => validate_default, + version: () => version_default +}); +var init_esm_node = __esm({ + "node_modules/uuid/dist/esm-node/index.js"() { + init_v1(); + init_v3(); + init_v4(); + init_v5(); + init_nil(); + init_version(); + init_validate(); + init_stringify(); + init_parse(); + } +}); + // node_modules/@actions/core/lib/file-command.js var require_file_command = __commonJS({ "node_modules/@actions/core/lib/file-command.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o3, m4, k4, k22) { if (k22 === void 0) k22 = k4; - var desc = Object.getOwnPropertyDescriptor(m4, k4); - if (!desc || ("get" in desc ? !m4.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { - return m4[k4]; - } }; - } - Object.defineProperty(o3, k22, desc); + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k4]; + } }); } : function(o3, m4, k4, k22) { if (k22 === void 0) k22 = k4; o3[k22] = m4[k4]; @@ -176,16 +502,16 @@ var require_file_command = __commonJS({ if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k4 in mod) if (k4 !== "default" && Object.prototype.hasOwnProperty.call(mod, k4)) __createBinding(result, mod, k4); + for (var k4 in mod) if (k4 !== "default" && Object.hasOwnProperty.call(mod, k4)) __createBinding(result, mod, k4); } __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.prepareKeyValueMessage = exports2.issueFileCommand = void 0; - var crypto3 = __importStar(require("crypto")); var fs4 = __importStar(require("fs")); var os3 = __importStar(require("os")); + var uuid_1 = (init_esm_node(), __toCommonJS(esm_node_exports)); var utils_1 = require_utils(); function issueFileCommand(command, message) { const filePath = process.env[`GITHUB_${command}`]; @@ -195,14 +521,14 @@ var require_file_command = __commonJS({ if (!fs4.existsSync(filePath)) { throw new Error(`Missing file at path: ${filePath}`); } - fs4.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os3.EOL}`, { + fs4.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os3.EOL}`, { encoding: "utf8" }); } exports2.issueFileCommand = issueFileCommand; function prepareKeyValueMessage(key, value) { - const delimiter = `ghadelimiter_${crypto3.randomUUID()}`; - const convertedValue = (0, utils_1.toCommandValue)(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}"`); } @@ -932,7 +1258,7 @@ var require_util = __commonJS({ var { InvalidArgumentError } = require_errors(); var { Blob: Blob5 } = require("buffer"); var nodeUtil = require("util"); - var { stringify: stringify2 } = require("querystring"); + var { stringify: stringify3 } = require("querystring"); var { headerNameLowerCasedRecord } = require_constants(); var [nodeMajor, nodeMinor] = process.versions.node.split(".").map((v2) => Number(v2)); function nop() { @@ -947,7 +1273,7 @@ var require_util = __commonJS({ if (url2.includes("?") || url2.includes("#")) { throw new Error('Query params cannot be passed when url already contains "?" or "#".'); } - const stringified = stringify2(queryParams); + const stringified = stringify3(queryParams); if (stringified) { url2 += "?" + stringified; } @@ -3623,11 +3949,11 @@ var require_util2 = __commonJS({ var assert = require("assert"); var { isUint8Array } = require("util/types"); var supportedHashes = []; - var crypto3; + var crypto6; try { - crypto3 = require("crypto"); + crypto6 = require("crypto"); const possibleRelevantHashes = ["sha256", "sha384", "sha512"]; - supportedHashes = crypto3.getHashes().filter((hash) => possibleRelevantHashes.includes(hash)); + supportedHashes = crypto6.getHashes().filter((hash) => possibleRelevantHashes.includes(hash)); } catch { } function responseURL(response) { @@ -3904,7 +4230,7 @@ var require_util2 = __commonJS({ } } function bytesMatch(bytes, metadataList) { - if (crypto3 === void 0) { + if (crypto6 === void 0) { return true; } const parsedMetadata = parseMetadata(metadataList); @@ -3919,7 +4245,7 @@ var require_util2 = __commonJS({ for (const item of metadata) { const algorithm = item.algo; const expectedValue = item.hash; - let actualValue = crypto3.createHash(algorithm).update(bytes).digest("base64"); + let actualValue = crypto6.createHash(algorithm).update(bytes).digest("base64"); if (actualValue[actualValue.length - 1] === "=") { if (actualValue[actualValue.length - 2] === "=") { actualValue = actualValue.slice(0, -2); @@ -5265,8 +5591,8 @@ var require_body = __commonJS({ var { parseMIMEType, serializeAMimeType } = require_dataURL(); var random; try { - const crypto3 = require("node:crypto"); - random = (max) => crypto3.randomInt(0, max); + const crypto6 = require("node:crypto"); + random = (max) => crypto6.randomInt(0, max); } catch { random = (max) => Math.floor(Math.random(max)); } @@ -11056,7 +11382,7 @@ var require_proxy_agent = __commonJS({ "node_modules/undici/lib/proxy-agent.js"(exports2, module2) { "use strict"; var { kProxy, kClose, kDestroy, kInterceptors } = require_symbols(); - var { URL: URL2 } = require("url"); + var { URL: URL3 } = require("url"); var Agent3 = require_agent(); var Pool = require_pool(); var DispatcherBase = require_dispatcher_base(); @@ -11105,7 +11431,7 @@ var require_proxy_agent = __commonJS({ this[kRequestTls] = opts.requestTls; this[kProxyTls] = opts.proxyTls; this[kProxyHeaders] = opts.headers || {}; - const resolvedUrl = new URL2(opts.uri); + const resolvedUrl = new URL3(opts.uri); const { origin: origin2, port, host, username, password } = resolvedUrl; if (opts.auth && opts.token) { throw new InvalidArgumentError("opts.auth cannot be used in combination with opts.token"); @@ -11160,7 +11486,7 @@ var require_proxy_agent = __commonJS({ }); } dispatch(opts, handler) { - const { host } = new URL2(opts.origin); + const { host } = new URL3(opts.origin); const headers = buildHeaders(opts.headers); throwIfProxyAuthIsSent(headers); return this[kAgent].dispatch( @@ -15572,7 +15898,7 @@ var require_util6 = __commonJS({ throw new Error("Invalid cookie max-age"); } } - function stringify2(cookie) { + function stringify3(cookie) { if (cookie.name.length === 0) { return null; } @@ -15626,7 +15952,7 @@ var require_util6 = __commonJS({ validateCookiePath, validateCookieValue, toIMFDate, - stringify: stringify2 + stringify: stringify3 }; } }); @@ -15776,7 +16102,7 @@ var require_cookies = __commonJS({ "node_modules/undici/lib/cookies/index.js"(exports2, module2) { "use strict"; var { parseSetCookie } = require_parse(); - var { stringify: stringify2 } = require_util6(); + var { stringify: stringify3 } = require_util6(); var { webidl } = require_webidl(); var { Headers: Headers6 } = require_headers(); function getCookies(headers) { @@ -15818,9 +16144,9 @@ var require_cookies = __commonJS({ webidl.argumentLengthCheck(arguments, 2, { header: "setCookie" }); webidl.brandCheck(headers, Headers6, { strict: false }); cookie = webidl.converters.Cookie(cookie); - const str2 = stringify2(cookie); + const str2 = stringify3(cookie); if (str2) { - headers.append("Set-Cookie", stringify2(cookie)); + headers.append("Set-Cookie", stringify3(cookie)); } } webidl.converters.DeleteCookieAttributes = webidl.dictionaryConverter([ @@ -16316,9 +16642,9 @@ var require_connection = __commonJS({ channels.open = diagnosticsChannel.channel("undici:websocket:open"); channels.close = diagnosticsChannel.channel("undici:websocket:close"); channels.socketError = diagnosticsChannel.channel("undici:websocket:socket_error"); - var crypto3; + var crypto6; try { - crypto3 = require("crypto"); + crypto6 = require("crypto"); } catch { } function establishWebSocketConnection(url2, protocols, ws, onEstablish, options) { @@ -16337,7 +16663,7 @@ var require_connection = __commonJS({ const headersList = new Headers6(options.headers)[kHeadersList]; request3.headersList = headersList; } - const keyValue = crypto3.randomBytes(16).toString("base64"); + const keyValue = crypto6.randomBytes(16).toString("base64"); request3.headersList.append("sec-websocket-key", keyValue); request3.headersList.append("sec-websocket-version", "13"); for (const protocol of protocols) { @@ -16366,7 +16692,7 @@ var require_connection = __commonJS({ return; } const secWSAccept = response.headersList.get("Sec-WebSocket-Accept"); - const digest = crypto3.createHash("sha1").update(keyValue + uid).digest("base64"); + const digest = crypto6.createHash("sha1").update(keyValue + uid).digest("base64"); if (secWSAccept !== digest) { failWebsocketConnection(ws, "Incorrect hash received in Sec-WebSocket-Accept header."); return; @@ -16446,9 +16772,9 @@ var require_frame = __commonJS({ "node_modules/undici/lib/websocket/frame.js"(exports2, module2) { "use strict"; var { maxUnsigned16Bit } = require_constants5(); - var crypto3; + var crypto6; try { - crypto3 = require("crypto"); + crypto6 = require("crypto"); } catch { } var WebsocketFrameSend = class { @@ -16457,7 +16783,7 @@ var require_frame = __commonJS({ */ constructor(data) { this.frameData = data; - this.maskKey = crypto3.randomBytes(4); + this.maskKey = crypto6.randomBytes(4); } createFrame(opcode) { const bodyLength = this.frameData?.byteLength ?? 0; @@ -18085,9 +18411,9 @@ var require_oidc_utils = __commonJS({ const encodedAudience = encodeURIComponent(audience); id_token_url = `${id_token_url}&audience=${encodedAudience}`; } - (0, core_1.debug)(`ID token url is ${id_token_url}`); + core_1.debug(`ID token url is ${id_token_url}`); const id_token = yield _OidcClient.getCall(id_token_url); - (0, core_1.setSecret)(id_token); + core_1.setSecret(id_token); return id_token; } catch (error) { throw new Error(`Error message: ${error.message}`); @@ -18399,13 +18725,9 @@ var require_path_utils = __commonJS({ "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o3, m4, k4, k22) { if (k22 === void 0) k22 = k4; - var desc = Object.getOwnPropertyDescriptor(m4, k4); - if (!desc || ("get" in desc ? !m4.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { - return m4[k4]; - } }; - } - Object.defineProperty(o3, k22, desc); + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k4]; + } }); } : function(o3, m4, k4, k22) { if (k22 === void 0) k22 = k4; o3[k22] = m4[k4]; @@ -18419,7 +18741,7 @@ var require_path_utils = __commonJS({ if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k4 in mod) if (k4 !== "default" && Object.prototype.hasOwnProperty.call(mod, k4)) __createBinding(result, mod, k4); + for (var k4 in mod) if (k4 !== "default" && Object.hasOwnProperty.call(mod, k4)) __createBinding(result, mod, k4); } __setModuleDefault(result, mod); return result; @@ -18442,6 +18764,230 @@ var require_path_utils = __commonJS({ } }); +// 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(o3, m4, k4, k22) { + if (k22 === void 0) k22 = k4; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k4]; + } }); + } : function(o3, m4, k4, k22) { + if (k22 === void 0) k22 = k4; + o3[k22] = m4[k4]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v2) { + Object.defineProperty(o3, "default", { enumerable: true, value: v2 }); + } : function(o3, v2) { + o3["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) { + for (var k4 in mod) if (k4 !== "default" && Object.hasOwnProperty.call(mod, k4)) __createBinding(result, mod, k4); + } + __setModuleDefault(result, mod); + return result; + }; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P3, generator) { + function adopt(value) { + return value instanceof P3 ? value : new P3(function(resolve) { + resolve(value); + }); + } + return new (P3 || (P3 = 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.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 os3 = __importStar(require("os")); + var path2 = __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)); + } + 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); + } + process.env["PATH"] = `${inputPath}${path2.delimiter}${process.env["PATH"]}`; + } + exports2.addPath = addPath; + function getInput(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 = getInput; + function getMultilineInput(name, options) { + const inputs = getInput(name, options).split("\n").filter((x2) => x2 !== ""); + if (options && options.trimWhitespace === false) { + return inputs; + } + return inputs.map((input) => input.trim()); + } + exports2.getMultilineInput = getMultilineInput; + function getBooleanInput(name, options) { + const trueValue = ["true", "True", "TRUE"]; + const falseValue = ["false", "False", "FALSE"]; + const val = getInput(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 = getBooleanInput; + function setOutput(name, value) { + const filePath = process.env["GITHUB_OUTPUT"] || ""; + if (filePath) { + return file_command_1.issueFileCommand("OUTPUT", file_command_1.prepareKeyValueMessage(name, value)); + } + process.stdout.write(os3.EOL); + command_1.issueCommand("set-output", { name }, utils_1.toCommandValue(value)); + } + exports2.setOutput = setOutput; + function setCommandEcho(enabled2) { + command_1.issue("echo", enabled2 ? "on" : "off"); + } + exports2.setCommandEcho = setCommandEcho; + function setFailed(message) { + process.exitCode = ExitCode.Failure; + error(message); + } + exports2.setFailed = setFailed; + function isDebug() { + return process.env["RUNNER_DEBUG"] === "1"; + } + exports2.isDebug = isDebug; + function debug3(message) { + command_1.issueCommand("debug", {}, message); + } + exports2.debug = debug3; + function error(message, properties = {}) { + command_1.issueCommand("error", utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + } + exports2.error = error; + function warning(message, properties = {}) { + command_1.issueCommand("warning", utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + } + exports2.warning = warning; + function notice(message, properties = {}) { + command_1.issueCommand("notice", utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + } + exports2.notice = notice; + function info(message) { + process.stdout.write(message + os3.EOL); + } + exports2.info = info; + function startGroup(name) { + command_1.issue("group", name); + } + exports2.startGroup = startGroup; + function endGroup() { + command_1.issue("endgroup"); + } + exports2.endGroup = endGroup; + function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup(name); + let result; + try { + result = yield fn(); + } finally { + endGroup(); + } + return result; + }); + } + 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)); + } + command_1.issueCommand("save-state", { name }, utils_1.toCommandValue(value)); + } + exports2.saveState = saveState; + function getState(name) { + return process.env[`STATE_${name}`] || ""; + } + exports2.getState = getState; + function getIDToken(aud) { + return __awaiter(this, void 0, void 0, function* () { + return yield oidc_utils_1.OidcClient.getIDToken(aud); + }); + } + 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/@actions/io/lib/io-util.js var require_io_util = __commonJS({ "node_modules/@actions/io/lib/io-util.js"(exports2) { @@ -19454,354 +20000,6 @@ var require_exec = __commonJS({ } }); -// node_modules/@actions/core/lib/platform.js -var require_platform = __commonJS({ - "node_modules/@actions/core/lib/platform.js"(exports2) { - "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o3, m4, k4, k22) { - if (k22 === void 0) k22 = k4; - var desc = Object.getOwnPropertyDescriptor(m4, k4); - if (!desc || ("get" in desc ? !m4.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { - return m4[k4]; - } }; - } - Object.defineProperty(o3, k22, desc); - } : function(o3, m4, k4, k22) { - if (k22 === void 0) k22 = k4; - o3[k22] = m4[k4]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v2) { - Object.defineProperty(o3, "default", { enumerable: true, value: v2 }); - } : function(o3, v2) { - o3["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) { - for (var k4 in mod) if (k4 !== "default" && Object.prototype.hasOwnProperty.call(mod, k4)) __createBinding(result, mod, k4); - } - __setModuleDefault(result, mod); - return result; - }; - var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P3, generator) { - function adopt(value) { - return value instanceof P3 ? value : new P3(function(resolve) { - resolve(value); - }); - } - return new (P3 || (P3 = 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()); - }); - }; - var __importDefault = exports2 && exports2.__importDefault || function(mod) { - return mod && mod.__esModule ? mod : { "default": mod }; - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getDetails = exports2.isLinux = exports2.isMacOS = exports2.isWindows = exports2.arch = exports2.platform = void 0; - var os_1 = __importDefault(require("os")); - var exec2 = __importStar(require_exec()); - var getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () { - const { stdout: version } = yield exec2.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', void 0, { - silent: true - }); - const { stdout: name } = yield exec2.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', void 0, { - silent: true - }); - return { - name: name.trim(), - version: version.trim() - }; - }); - var getMacOsInfo = () => __awaiter(void 0, void 0, void 0, function* () { - var _a5, _b2, _c2, _d2; - const { stdout } = yield exec2.getExecOutput("sw_vers", void 0, { - silent: true - }); - const version = (_b2 = (_a5 = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a5 === void 0 ? void 0 : _a5[1]) !== null && _b2 !== void 0 ? _b2 : ""; - const name = (_d2 = (_c2 = stdout.match(/ProductName:\s*(.+)/)) === null || _c2 === void 0 ? void 0 : _c2[1]) !== null && _d2 !== void 0 ? _d2 : ""; - return { - name, - version - }; - }); - var getLinuxInfo = () => __awaiter(void 0, void 0, void 0, function* () { - const { stdout } = yield exec2.getExecOutput("lsb_release", ["-i", "-r", "-s"], { - silent: true - }); - const [name, version] = stdout.trim().split("\n"); - return { - name, - version - }; - }); - exports2.platform = os_1.default.platform(); - exports2.arch = os_1.default.arch(); - exports2.isWindows = exports2.platform === "win32"; - exports2.isMacOS = exports2.platform === "darwin"; - exports2.isLinux = exports2.platform === "linux"; - function getDetails() { - return __awaiter(this, void 0, void 0, function* () { - return Object.assign(Object.assign({}, yield exports2.isWindows ? getWindowsInfo() : exports2.isMacOS ? getMacOsInfo() : getLinuxInfo()), { - platform: exports2.platform, - arch: exports2.arch, - isWindows: exports2.isWindows, - isMacOS: exports2.isMacOS, - isLinux: exports2.isLinux - }); - }); - } - exports2.getDetails = getDetails; - } -}); - -// 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(o3, m4, k4, k22) { - if (k22 === void 0) k22 = k4; - var desc = Object.getOwnPropertyDescriptor(m4, k4); - if (!desc || ("get" in desc ? !m4.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { - return m4[k4]; - } }; - } - Object.defineProperty(o3, k22, desc); - } : function(o3, m4, k4, k22) { - if (k22 === void 0) k22 = k4; - o3[k22] = m4[k4]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v2) { - Object.defineProperty(o3, "default", { enumerable: true, value: v2 }); - } : function(o3, v2) { - o3["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) { - for (var k4 in mod) if (k4 !== "default" && Object.prototype.hasOwnProperty.call(mod, k4)) __createBinding(result, mod, k4); - } - __setModuleDefault(result, mod); - return result; - }; - var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P3, generator) { - function adopt(value) { - return value instanceof P3 ? value : new P3(function(resolve) { - resolve(value); - }); - } - return new (P3 || (P3 = 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.platform = exports2.toPlatformPath = exports2.toWin32Path = exports2.toPosixPath = exports2.markdownSummary = exports2.summary = 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 os3 = __importStar(require("os")); - var path2 = __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 = ExitCode = {})); - function exportVariable(name, val) { - const convertedVal = (0, utils_1.toCommandValue)(val); - process.env[name] = convertedVal; - const filePath = process.env["GITHUB_ENV"] || ""; - if (filePath) { - return (0, file_command_1.issueFileCommand)("ENV", (0, file_command_1.prepareKeyValueMessage)(name, val)); - } - (0, command_1.issueCommand)("set-env", { name }, convertedVal); - } - exports2.exportVariable = exportVariable; - function setSecret(secret) { - (0, command_1.issueCommand)("add-mask", {}, secret); - } - exports2.setSecret = setSecret; - function addPath(inputPath) { - const filePath = process.env["GITHUB_PATH"] || ""; - if (filePath) { - (0, file_command_1.issueFileCommand)("PATH", inputPath); - } else { - (0, command_1.issueCommand)("add-path", {}, inputPath); - } - process.env["PATH"] = `${inputPath}${path2.delimiter}${process.env["PATH"]}`; - } - exports2.addPath = addPath; - function getInput(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 = getInput; - function getMultilineInput(name, options) { - const inputs = getInput(name, options).split("\n").filter((x2) => x2 !== ""); - if (options && options.trimWhitespace === false) { - return inputs; - } - return inputs.map((input) => input.trim()); - } - exports2.getMultilineInput = getMultilineInput; - function getBooleanInput(name, options) { - const trueValue = ["true", "True", "TRUE"]; - const falseValue = ["false", "False", "FALSE"]; - const val = getInput(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 = getBooleanInput; - function setOutput(name, value) { - const filePath = process.env["GITHUB_OUTPUT"] || ""; - if (filePath) { - return (0, file_command_1.issueFileCommand)("OUTPUT", (0, file_command_1.prepareKeyValueMessage)(name, value)); - } - process.stdout.write(os3.EOL); - (0, command_1.issueCommand)("set-output", { name }, (0, utils_1.toCommandValue)(value)); - } - exports2.setOutput = setOutput; - function setCommandEcho(enabled2) { - (0, command_1.issue)("echo", enabled2 ? "on" : "off"); - } - exports2.setCommandEcho = setCommandEcho; - function setFailed(message) { - process.exitCode = ExitCode.Failure; - error(message); - } - exports2.setFailed = setFailed; - function isDebug() { - return process.env["RUNNER_DEBUG"] === "1"; - } - exports2.isDebug = isDebug; - function debug3(message) { - (0, command_1.issueCommand)("debug", {}, message); - } - exports2.debug = debug3; - function error(message, properties = {}) { - (0, command_1.issueCommand)("error", (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); - } - exports2.error = error; - function warning(message, properties = {}) { - (0, command_1.issueCommand)("warning", (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); - } - exports2.warning = warning; - function notice(message, properties = {}) { - (0, command_1.issueCommand)("notice", (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); - } - exports2.notice = notice; - function info(message) { - process.stdout.write(message + os3.EOL); - } - exports2.info = info; - function startGroup(name) { - (0, command_1.issue)("group", name); - } - exports2.startGroup = startGroup; - function endGroup() { - (0, command_1.issue)("endgroup"); - } - exports2.endGroup = endGroup; - function group(name, fn) { - return __awaiter(this, void 0, void 0, function* () { - startGroup(name); - let result; - try { - result = yield fn(); - } finally { - endGroup(); - } - return result; - }); - } - exports2.group = group; - function saveState(name, value) { - const filePath = process.env["GITHUB_STATE"] || ""; - if (filePath) { - return (0, file_command_1.issueFileCommand)("STATE", (0, file_command_1.prepareKeyValueMessage)(name, value)); - } - (0, command_1.issueCommand)("save-state", { name }, (0, utils_1.toCommandValue)(value)); - } - exports2.saveState = saveState; - function getState(name) { - return process.env[`STATE_${name}`] || ""; - } - exports2.getState = getState; - function getIDToken(aud) { - return __awaiter(this, void 0, void 0, function* () { - return yield oidc_utils_1.OidcClient.getIDToken(aud); - }); - } - 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; - } }); - exports2.platform = __importStar(require_platform()); - } -}); - // node_modules/@actions/github/lib/context.js var require_context = __commonJS({ "node_modules/@actions/github/lib/context.js"(exports2) { @@ -20138,12 +20336,12 @@ var require_dist_node2 = __commonJS({ } return to; }; - var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var dist_src_exports = {}; __export2(dist_src_exports, { endpoint: () => endpoint }); - module2.exports = __toCommonJS(dist_src_exports); + module2.exports = __toCommonJS2(dist_src_exports); var import_universal_user_agent = require_dist_node(); var VERSION5 = "9.0.6"; var userAgent = `octokit-endpoint.js/${VERSION5} ${(0, import_universal_user_agent.getUserAgent)()}`; @@ -20384,7 +20582,7 @@ var require_dist_node2 = __commonJS({ return template.replace(/\/$/, ""); } } - function parse(options) { + function parse2(options) { let method = options.method.toUpperCase(); let url2 = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}"); let headers = Object.assign({}, options.headers); @@ -20448,7 +20646,7 @@ var require_dist_node2 = __commonJS({ ); } function endpointWithDefaults(defaults2, route, options) { - return parse(merge2(defaults2, route, options)); + return parse2(merge2(defaults2, route, options)); } function withDefaults(oldDefaults, newDefaults) { const DEFAULTS2 = merge2(oldDefaults, newDefaults); @@ -20457,7 +20655,7 @@ var require_dist_node2 = __commonJS({ DEFAULTS: DEFAULTS2, defaults: withDefaults.bind(null, DEFAULTS2), merge: merge2.bind(null, DEFAULTS2), - parse + parse: parse2 }); } var endpoint = withDefaults(null, DEFAULTS); @@ -20586,12 +20784,12 @@ var require_dist_node4 = __commonJS({ isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target, mod )); - var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var dist_src_exports = {}; __export2(dist_src_exports, { RequestError: () => RequestError }); - module2.exports = __toCommonJS(dist_src_exports); + module2.exports = __toCommonJS2(dist_src_exports); var import_deprecation = require_dist_node3(); var import_once = __toESM2(require_once()); var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation)); @@ -20668,12 +20866,12 @@ var require_dist_node5 = __commonJS({ } return to; }; - var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var dist_src_exports = {}; __export2(dist_src_exports, { request: () => request3 }); - module2.exports = __toCommonJS(dist_src_exports); + module2.exports = __toCommonJS2(dist_src_exports); var import_endpoint = require_dist_node2(); var import_universal_user_agent = require_dist_node(); var VERSION5 = "8.4.1"; @@ -20878,14 +21076,14 @@ var require_dist_node6 = __commonJS({ } return to; }; - var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var index_exports = {}; __export2(index_exports, { GraphqlResponseError: () => GraphqlResponseError, graphql: () => graphql2, withCustomRequest: () => withCustomRequest }); - module2.exports = __toCommonJS(index_exports); + module2.exports = __toCommonJS2(index_exports); var import_request3 = require_dist_node5(); var import_universal_user_agent = require_dist_node(); var VERSION5 = "7.1.1"; @@ -21015,12 +21213,12 @@ var require_dist_node7 = __commonJS({ } return to; }; - var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var dist_src_exports = {}; __export2(dist_src_exports, { createTokenAuth: () => createTokenAuth }); - module2.exports = __toCommonJS(dist_src_exports); + module2.exports = __toCommonJS2(dist_src_exports); var REGEX_IS_INSTALLATION_LEGACY = /^v1\./; var REGEX_IS_INSTALLATION = /^ghs_/; var REGEX_IS_USER_TO_SERVER = /^ghu_/; @@ -21086,12 +21284,12 @@ var require_dist_node8 = __commonJS({ } return to; }; - var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var index_exports = {}; __export2(index_exports, { Octokit: () => Octokit }); - module2.exports = __toCommonJS(index_exports); + module2.exports = __toCommonJS2(index_exports); var import_universal_user_agent = require_dist_node(); var import_before_after_hook = require_before_after_hook(); var import_request = require_dist_node5(); @@ -21245,13 +21443,13 @@ var require_dist_node9 = __commonJS({ } return to; }; - var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var dist_src_exports = {}; __export2(dist_src_exports, { legacyRestEndpointMethods: () => legacyRestEndpointMethods, restEndpointMethods: () => restEndpointMethods }); - module2.exports = __toCommonJS(dist_src_exports); + module2.exports = __toCommonJS2(dist_src_exports); var VERSION5 = "10.4.1"; var Endpoints = { actions: { @@ -23401,7 +23599,7 @@ var require_dist_node10 = __commonJS({ } return to; }; - var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var dist_src_exports = {}; __export2(dist_src_exports, { composePaginateRest: () => composePaginateRest, @@ -23409,7 +23607,7 @@ var require_dist_node10 = __commonJS({ paginateRest: () => paginateRest, paginatingEndpoints: () => paginatingEndpoints }); - module2.exports = __toCommonJS(dist_src_exports); + module2.exports = __toCommonJS2(dist_src_exports); var VERSION5 = "9.2.2"; function normalizePaginatedListResponse(response) { if (!response.data) { @@ -24069,11 +24267,11 @@ var require_main2 = __commonJS({ var fs4 = require("fs"); var path2 = require("path"); var os3 = require("os"); - var crypto3 = require("crypto"); + var crypto6 = require("crypto"); var packageJson = require_package(); - var version = packageJson.version; + var version2 = packageJson.version; var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg; - function parse(src) { + function parse2(src) { const obj = {}; let lines = src.toString(); lines = lines.replace(/\r\n?/mg, "\n"); @@ -24118,13 +24316,13 @@ var require_main2 = __commonJS({ return DotenvModule.parse(decrypted); } function _log(message) { - console.log(`[dotenv@${version}][INFO] ${message}`); + console.log(`[dotenv@${version2}][INFO] ${message}`); } function _warn(message) { - console.log(`[dotenv@${version}][WARN] ${message}`); + console.log(`[dotenv@${version2}][WARN] ${message}`); } function _debug(message) { - console.log(`[dotenv@${version}][DEBUG] ${message}`); + console.log(`[dotenv@${version2}][DEBUG] ${message}`); } function _dotenvKey(options) { if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) { @@ -24265,7 +24463,7 @@ var require_main2 = __commonJS({ const authTag = ciphertext.subarray(-16); ciphertext = ciphertext.subarray(12, -16); try { - const aesgcm = crypto3.createDecipheriv("aes-256-gcm", key, nonce); + const aesgcm = crypto6.createDecipheriv("aes-256-gcm", key, nonce); aesgcm.setAuthTag(authTag); return `${aesgcm.update(ciphertext)}${aesgcm.final()}`; } catch (error) { @@ -24316,7 +24514,7 @@ var require_main2 = __commonJS({ _parseVault, config: config6, decrypt, - parse, + parse: parse2, populate }; module2.exports.configDotenv = DotenvModule.configDotenv; @@ -27742,7 +27940,7 @@ var require_URL = __commonJS({ return; } const ctorRegistry = utils.initCtorRegistry(globalObject); - class URL2 { + class URL3 { constructor(url2) { if (arguments.length < 1) { throw new globalObject.TypeError( @@ -28035,7 +28233,7 @@ var require_URL = __commonJS({ return Impl.implementation.canParse(...args); } } - Object.defineProperties(URL2.prototype, { + Object.defineProperties(URL3.prototype, { toJSON: { enumerable: true }, href: { enumerable: true }, toString: { enumerable: true }, @@ -28052,18 +28250,18 @@ var require_URL = __commonJS({ hash: { enumerable: true }, [Symbol.toStringTag]: { value: "URL", configurable: true } }); - Object.defineProperties(URL2, { parse: { enumerable: true }, canParse: { enumerable: true } }); - ctorRegistry[interfaceName] = URL2; + Object.defineProperties(URL3, { parse: { enumerable: true }, canParse: { enumerable: true } }); + ctorRegistry[interfaceName] = URL3; Object.defineProperty(globalObject, interfaceName, { configurable: true, writable: true, - value: URL2 + value: URL3 }); if (globalNames.includes("Window")) { Object.defineProperty(globalObject, "webkitURL", { configurable: true, writable: true, - value: URL2 + value: URL3 }); } }; @@ -28075,9 +28273,9 @@ var require_URL = __commonJS({ var require_webidl2js_wrapper = __commonJS({ "node_modules/whatwg-url/webidl2js-wrapper.js"(exports2) { "use strict"; - var URL2 = require_URL(); + var URL3 = require_URL(); var URLSearchParams2 = require_URLSearchParams(); - exports2.URL = URL2; + exports2.URL = URL3; exports2.URLSearchParams = URLSearchParams2; } }); @@ -28086,11 +28284,11 @@ var require_webidl2js_wrapper = __commonJS({ var require_whatwg_url = __commonJS({ "node_modules/whatwg-url/index.js"(exports2) { "use strict"; - var { URL: URL2, URLSearchParams: URLSearchParams2 } = require_webidl2js_wrapper(); + var { URL: URL3, URLSearchParams: URLSearchParams2 } = require_webidl2js_wrapper(); var urlStateMachine = require_url_state_machine(); var percentEncoding = require_percent_encoding(); var sharedGlobalObject = { Array, Object, Promise, String, TypeError }; - URL2.install(sharedGlobalObject, ["Window"]); + URL3.install(sharedGlobalObject, ["Window"]); URLSearchParams2.install(sharedGlobalObject, ["Window"]); exports2.URL = sharedGlobalObject.URL; exports2.URLSearchParams = sharedGlobalObject.URLSearchParams; @@ -28935,12 +29133,12 @@ var require_lib3 = __commonJS({ configurable: true }); var INTERNALS$2 = Symbol("Request internals"); - var URL2 = Url.URL || whatwgUrl.URL; + var URL3 = Url.URL || whatwgUrl.URL; var parse_url = Url.parse; var format_url = Url.format; function parseURL(urlStr) { if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) { - urlStr = new URL2(urlStr).toString(); + urlStr = new URL3(urlStr).toString(); } return parse_url(urlStr); } @@ -31424,7 +31622,7 @@ var require_ms = __commonJS({ options = options || {}; var type2 = typeof val; if (type2 === "string" && val.length > 0) { - return parse(val); + return parse2(val); } else if (type2 === "number" && isFinite(val)) { return options.long ? fmtLong(val) : fmtShort(val); } @@ -31432,7 +31630,7 @@ var require_ms = __commonJS({ "val is not a non-empty string or a valid number. val=" + JSON.stringify(val) ); }; - function parse(str2) { + function parse2(str2) { str2 = String(str2); if (str2.length > 100) { return; @@ -46917,10 +47115,10 @@ var require_supports_color = __commonJS({ return 3; } if ("TERM_PROGRAM" in env2) { - const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10); + const version2 = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10); switch (env2.TERM_PROGRAM) { case "iTerm.app": - return version >= 3 ? 3 : 2; + return version2 >= 3 ? 3 : 2; case "Apple_Terminal": return 2; } @@ -47157,7 +47355,7 @@ var require_debug = __commonJS({ var require_follow_redirects = __commonJS({ "node_modules/follow-redirects/index.js"(exports2, module2) { var url2 = require("url"); - var URL2 = url2.URL; + var URL3 = url2.URL; var http3 = require("http"); var https3 = require("https"); var Writable = require("stream").Writable; @@ -47165,7 +47363,7 @@ var require_follow_redirects = __commonJS({ var debug3 = require_debug(); var useNativeURL = false; try { - assert(new URL2()); + assert(new URL3()); } catch (error) { useNativeURL = error.code === "ERR_INVALID_URL"; } @@ -47545,7 +47743,7 @@ var require_follow_redirects = __commonJS({ function parseUrl(input) { var parsed; if (useNativeURL) { - parsed = new URL2(input); + parsed = new URL3(input); } else { parsed = validateUrl(url2.parse(input)); if (!isString2(parsed.protocol)) { @@ -47555,7 +47753,7 @@ var require_follow_redirects = __commonJS({ return parsed; } function resolveUrl(relative, base) { - return useNativeURL ? new URL2(relative, base) : parseUrl(url2.resolve(base, relative)); + return useNativeURL ? new URL3(relative, base) : parseUrl(url2.resolve(base, relative)); } function validateUrl(input) { if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) { @@ -47632,7 +47830,7 @@ var require_follow_redirects = __commonJS({ return typeof value === "object" && "length" in value; } function isURL(value) { - return URL2 && value instanceof URL2; + return URL3 && value instanceof URL3; } module2.exports = wrap({ http: http3, https: https3 }); module2.exports.wrap = wrap; @@ -47793,12 +47991,12 @@ var require_tiktoken_bg = __commonJS({ wasm.tiktoken_name(retptr, this.__wbg_ptr); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; - let v1; + let v12; if (r0 !== 0) { - v1 = getStringFromWasm0(r0, r1).slice(); + v12 = getStringFromWasm0(r0, r1).slice(); wasm.__wbindgen_export_2(r0, r1 * 1, 1); } - return v1; + return v12; } finally { wasm.__wbindgen_add_to_stack_pointer(16); } @@ -47927,9 +48125,9 @@ var require_tiktoken_bg = __commonJS({ wasm.tiktoken_decode_single_token_bytes(retptr, this.__wbg_ptr, token); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; - var v1 = getArrayU8FromWasm0(r0, r1).slice(); + var v12 = getArrayU8FromWasm0(r0, r1).slice(); wasm.__wbindgen_export_2(r0, r1 * 1, 1); - return v1; + return v12; } finally { wasm.__wbindgen_add_to_stack_pointer(16); } @@ -50314,7 +50512,7 @@ var require_stringify = __commonJS({ return typeof v2 === "string" || typeof v2 === "number" || typeof v2 === "boolean" || typeof v2 === "symbol" || typeof v2 === "bigint"; }; var sentinel = {}; - var stringify2 = function stringify3(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter2, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) { + var stringify3 = function stringify4(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter2, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) { var obj = object; var tmpSc = sideChannel; var step = 0; @@ -50390,7 +50588,7 @@ var require_stringify = __commonJS({ sideChannel.set(object, step); var valueSideChannel = getSideChannel(); valueSideChannel.set(sentinel, sideChannel); - pushToArray(values, stringify3( + pushToArray(values, stringify4( value, keyPrefix, generateArrayPrefix, @@ -50506,7 +50704,7 @@ var require_stringify = __commonJS({ if (options.skipNulls && obj[key] === null) { continue; } - pushToArray(keys, stringify2( + pushToArray(keys, stringify3( obj[key], key, generateArrayPrefix, @@ -50772,13 +50970,13 @@ var require_parse2 = __commonJS({ var require_lib4 = __commonJS({ "node_modules/qs/lib/index.js"(exports2, module2) { "use strict"; - var stringify2 = require_stringify(); - var parse = require_parse2(); + var stringify3 = require_stringify(); + var parse2 = require_parse2(); var formats = require_formats(); module2.exports = { formats, - parse, - stringify: stringify2 + parse: parse2, + stringify: stringify3 }; } }); @@ -50881,8 +51079,8 @@ var require_custom_user_agent = __commonJS({ var config_1 = require_config(); var CustomUserAgentHook = class { beforeRequest(_3, request3) { - const version = config_1.SDK_METADATA.sdkVersion; - const ua = `mistral-client-typescript/${version}`; + const version2 = config_1.SDK_METADATA.sdkVersion; + const ua = `mistral-client-typescript/${version2}`; request3.headers.set("user-agent", ua); if (!request3.headers.get("user-agent")) { request3.headers.set("x-mistral-user-agent", ua); @@ -52011,11 +52209,11 @@ var require_types = __commonJS({ return new RegExp(`^${regex}$`); } exports2.datetimeRegex = datetimeRegex; - function isValidIP(ip, version) { - if ((version === "v4" || !version) && ipv4Regex.test(ip)) { + function isValidIP(ip, version2) { + if ((version2 === "v4" || !version2) && ipv4Regex.test(ip)) { return true; } - if ((version === "v6" || !version) && ipv6Regex.test(ip)) { + if ((version2 === "v6" || !version2) && ipv6Regex.test(ip)) { return true; } return false; @@ -55173,7 +55371,7 @@ var require_base64 = __commonJS({ exports2.zodInbound = exports2.zodOutbound = void 0; exports2.bytesToBase64 = bytesToBase64; exports2.bytesFromBase64 = bytesFromBase64; - exports2.stringToBytes = stringToBytes; + exports2.stringToBytes = stringToBytes2; exports2.stringFromBytes = stringFromBytes; exports2.stringToBase64 = stringToBase64; exports2.stringFromBase64 = stringFromBase64; @@ -55184,19 +55382,19 @@ var require_base64 = __commonJS({ function bytesFromBase64(encoded) { return Uint8Array.from(atob(encoded), (c2) => c2.charCodeAt(0)); } - function stringToBytes(str2) { + function stringToBytes2(str2) { return new TextEncoder().encode(str2); } function stringFromBytes(u8arr) { return new TextDecoder().decode(u8arr); } function stringToBase64(str2) { - return bytesToBase64(stringToBytes(str2)); + return bytesToBase64(stringToBytes2(str2)); } function stringFromBase64(b64str) { return stringFromBytes(bytesFromBase64(b64str)); } - exports2.zodOutbound = z3.instanceof(Uint8Array).or(z3.string().transform(stringToBytes)); + exports2.zodOutbound = z3.instanceof(Uint8Array).or(z3.string().transform(stringToBytes2)); exports2.zodInbound = z3.instanceof(Uint8Array).or(z3.string().transform(bytesFromBase64)); } }); @@ -56535,13 +56733,13 @@ var require_schemas = __commonJS({ "node_modules/@mistralai/mistralai/lib/schemas.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.parse = parse; + exports2.parse = parse2; exports2.safeParse = safeParse; exports2.collectExtraKeys = collectExtraKeys; var zod_1 = require_lib5(); var sdkvalidationerror_js_1 = require_sdkvalidationerror(); var fp_js_1 = require_fp(); - function parse(rawValue, fn, errorMessage) { + function parse2(rawValue, fn, errorMessage) { try { return fn(rawValue); } catch (err) { @@ -70082,10 +70280,10 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) { return 3; } if ("TERM_PROGRAM" in env) { - const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10); + const version2 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10); switch (env.TERM_PROGRAM) { case "iTerm.app": { - return version >= 3 ? 3 : 2; + return version2 >= 3 ? 3 : 2; } case "Apple_Terminal": { return 2; @@ -74709,7 +74907,7 @@ var transitional_default = { }; // node_modules/axios/lib/platform/node/index.js -var import_crypto = __toESM(require("crypto"), 1); +var import_crypto4 = __toESM(require("crypto"), 1); // node_modules/axios/lib/platform/node/classes/URLSearchParams.js var import_url = __toESM(require("url"), 1); @@ -74727,7 +74925,7 @@ var generateString = (size = 16, alphabet2 = ALPHABET.ALPHA_DIGIT) => { let str2 = ""; const { length } = alphabet2; const randomValues = new Uint32Array(size); - import_crypto.default.randomFillSync(randomValues); + import_crypto4.default.randomFillSync(randomValues); for (let i3 = 0; i3 < size; i3++) { str2 += alphabet2[randomValues[i3] % length]; } @@ -76856,23 +77054,23 @@ var validators = {}; }; }); var deprecatedWarnings = {}; -validators.transitional = function transitional(validator, version, message) { +validators.transitional = function transitional(validator, version2, message) { function formatMessage(opt, desc) { return "[Axios v" + VERSION2 + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : ""); } return (value, opt, opts) => { if (validator === false) { throw new AxiosError_default( - formatMessage(opt, " has been removed" + (version ? " in " + version : "")), + formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")), AxiosError_default.ERR_DEPRECATED ); } - if (version && !deprecatedWarnings[opt]) { + if (version2 && !deprecatedWarnings[opt]) { deprecatedWarnings[opt] = true; console.warn( formatMessage( opt, - " has been deprecated since v" + version + " and will be removed in the near future" + " has been deprecated since v" + version2 + " and will be removed in the near future" ) ); } @@ -77494,9 +77692,9 @@ function getErrorMessage(e3) { } // node_modules/@azure/core-util/dist/esm/uuidUtils.js -var import_crypto2 = require("crypto"); +var import_crypto5 = require("crypto"); var _a2; -var uuidFunction = typeof ((_a2 = globalThis === null || globalThis === void 0 ? void 0 : globalThis.crypto) === null || _a2 === void 0 ? void 0 : _a2.randomUUID) === "function" ? globalThis.crypto.randomUUID.bind(globalThis.crypto) : import_crypto2.randomUUID; +var uuidFunction = typeof ((_a2 = globalThis === null || globalThis === void 0 ? void 0 : globalThis.crypto) === null || _a2 === void 0 ? void 0 : _a2.randomUUID) === "function" ? globalThis.crypto.randomUUID.bind(globalThis.crypto) : import_crypto5.randomUUID; function randomUUID() { return uuidFunction(); } @@ -77598,8 +77796,8 @@ function __asyncValues(o3) { }; } function settle2(resolve, reject, d5, v2) { - Promise.resolve(v2).then(function(v3) { - resolve({ value: v3, done: d5 }); + Promise.resolve(v2).then(function(v6) { + resolve({ value: v6, done: d5 }); }, reject); } } @@ -81102,8 +81300,8 @@ function nonAzurePolicy() { } // node_modules/@azure/openai/dist-esm/src/OpenAIClient.js -function createOpenAIEndpoint(version) { - return `https://api.openai.com/v${version}`; +function createOpenAIEndpoint(version2) { + return `https://api.openai.com/v${version2}`; } function isCred(cred) { return isTokenCredential(cred) || cred.key !== void 0; @@ -87193,10 +87391,10 @@ function getEngine() { var COMMITLINT_LLM_CONFIG_PATH = `${process.env.PWD}/.opencommit-commitlint`; // src/modules/commitlint/crypto.ts -var import_crypto3 = __toESM(require("crypto"), 1); +var import_crypto6 = __toESM(require("crypto"), 1); var computeHash = async (content, algorithm = "sha256") => { try { - const hash = import_crypto3.default.createHash(algorithm); + const hash = import_crypto6.default.createHash(algorithm); hash.update(content); return hash.digest("hex"); } catch (error) {