diff --git a/.config/webpack.config.mjs b/.config/webpack.config.mjs index 682c171d..065d8f61 100644 --- a/.config/webpack.config.mjs +++ b/.config/webpack.config.mjs @@ -56,6 +56,10 @@ export class PluginLicenses extends LicenseWebpackPlugin { }); }); env.addFilter('escape', (s) => s.replaceAll(/[<>]/gu, '\\$&')); + delete modules + .find(({ name }) => name === '@azure/core-http') + ?.packageJson + ?.['homepage']; return env.render(options.templatePath, { modules }); }, handleMissingLicenseText: (name, license) => { diff --git a/dist/NOTICE.md b/dist/NOTICE.md index 436a98a7..e5297cb8 100644 --- a/dist/NOTICE.md +++ b/dist/NOTICE.md @@ -20,15 +20,18 @@ This software incorporates the following third-party software components: - [`@azure/storage-blob`](#azurestorage-blob) - [`@fastify/busboy`](#fastifybusboy) - [`@opentelemetry/api`](#opentelemetryapi) +- [`ansi-styles`](#ansi-styles) +- [`array-from-async`](#array-from-async) - [`asynckit`](#asynckit) - [`balanced-match`](#balanced-match) - [`brace-expansion`](#brace-expansion) - [`class-transformer`](#class-transformer) +- [`clean-stack`](#clean-stack) - [`combined-stream`](#combined-stream) - [`concat-map`](#concat-map) -- [`core-js`](#core-js) - [`delayed-stream`](#delayed-stream) - [`deline`](#deline) +- [`escape-string-regexp`](#escape-string-regexp) - [`form-data`](#form-data) - [`lru-cache`](#lru-cache) - [`mime-db`](#mime-db) @@ -40,6 +43,7 @@ This software incorporates the following third-party software components: - [`semver`](#semver) - [`temporal-polyfill`](#temporal-polyfill) - [`ts-mixer`](#ts-mixer) +- [`ts-pattern`](#ts-pattern) - [`tslib`](#tslib) - [`tunnel`](#tunnel) - [`unctx`](#unctx) @@ -243,7 +247,7 @@ SOFTWARE. Copyright (c) Microsoft Corporation -URL: +URL: License: `MIT` @@ -705,6 +709,65 @@ License: `Apache-2.0` limitations under the License. ``` +## `ansi-styles` + +Copyright (c) Sindre Sorhus \<\> () + +URL: + +License: `MIT` + +``` +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +``` + +## `array-from-async` + +Copyright (c) J. S. Choi \ (https://jschoi.org/) + +URL: + +License: `BSD-3-Clause` + +``` +Copyright 2021 J. S. Choi + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +**This software is provided by the copyright holders and contributors +“as is” and any express or implied warranties, including, but not +limited to, the implied warranties of merchantability and fitness for a +particular purpose are disclaimed. In no event shall the copyright +holder or contributors be liable for any direct, indirect, incidental, +special, exemplary, or consequential damages (including, but not limited +to, procurement of substitute goods or services; loss of use, data, or +profits; or business interruption) however caused and on any theory of +liability, whether in contract, strict liability, or tort (including +negligence or otherwise) arising in any way out of the use of this +software, even if advised of the possibility of such damage.** +``` + ## `asynckit` Copyright (c) Alex Indigo \ @@ -833,6 +896,26 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` +## `clean-stack` + +Copyright (c) Sindre Sorhus \<\> () + +URL: + +License: `MIT` + +``` +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +``` + ## `combined-stream` Copyright (c) Felix Geisendörfer \ (http://debuggable.com/) @@ -892,36 +975,6 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` -## `core-js` - -Copyright (c) Denis Pushkarev \<\> () - -URL: - -License: `MIT` - -``` -Copyright (c) 2014-2023 Denis Pushkarev - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -``` - ## `delayed-stream` Copyright (c) Felix Geisendörfer \ (http://debuggable.com/) @@ -984,6 +1037,26 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` +## `escape-string-regexp` + +Copyright (c) Sindre Sorhus \<\> () + +URL: + +License: `MIT` + +``` +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +``` + ## `form-data` Copyright (c) Felix Geisendörfer \ (http://debuggable.com/) @@ -1314,6 +1387,38 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` +## `ts-pattern` + +Copyright (c) Gabriel Vergnaud + +URL: + +License: `MIT` + +``` +MIT License + +Copyright (c) 2021 Gabriel Vergnaud + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +``` + ## `tslib` Copyright (c) Microsoft Corp. diff --git a/dist/index.mjs b/dist/index.mjs index 32440d96..d187588c 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -1,5 +1,12 @@ -import { createRequire } from 'node:module'; -const require = createRequire(import.meta.url); +await import('node:module').then(({ createRequire }) => { + Object.defineProperty(globalThis, 'require', { + value: createRequire(import.meta.url), + configurable: false, + enumerable: false, + writable: false, + }); +}); + var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; @@ -7,17 +14,15 @@ var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __knownSymbol = (name2, symbol) => { - if (symbol = Symbol[name2]) - return symbol; - throw Error("Symbol." + name2 + " is not defined"); + return (symbol = Symbol[name2]) ? symbol : Symbol.for("Symbol." + name2); }; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, { - get: (a2, b2) => (typeof require !== "undefined" ? require : a2)[b2] -}) : x2)(function(x2) { +var __require = /* @__PURE__ */ ((x3) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x3, { + get: (a3, b3) => (typeof require !== "undefined" ? require : a3)[b3] +}) : x3)(function(x3) { if (typeof require !== "undefined") return require.apply(this, arguments); - throw Error('Dynamic require of "' + x2 + '" is not supported'); + throw Error('Dynamic require of "' + x3 + '" is not supported'); }); var __esm = (fn2, res) => function __init() { return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res; @@ -48,8 +53,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var __decorateClass = (decorators2, target, key, kind) => { var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target; - for (var i2 = decorators2.length - 1, decorator; i2 >= 0; i2--) - if (decorator = decorators2[i2]) + for (var i3 = decorators2.length - 1, decorator; i3 >= 0; i3--) + if (decorator = decorators2[i3]) result = (kind ? decorator(target, key, result) : decorator(result)) || result; if (kind && result) __defProp(target, key, result); @@ -99,18 +104,18 @@ var __using = (stack, value, async) => { return value; }; var __callDispose = (stack, error, hasError) => { - var E2 = typeof SuppressedError === "function" ? SuppressedError : function(e2, s2, m3, _2) { - return _2 = Error(m3), _2.name = "SuppressedError", _2.error = e2, _2.suppressed = s2, _2; + var E3 = typeof SuppressedError === "function" ? SuppressedError : function(e3, s3, m4, _3) { + return _3 = Error(m4), _3.name = "SuppressedError", _3.error = e3, _3.suppressed = s3, _3; }; - var fail = (e2) => error = hasError ? new E2(e2, error, "An error was suppressed during disposal") : (hasError = true, e2); + var fail = (e3) => error = hasError ? new E3(e3, error, "An error was suppressed during disposal") : (hasError = true, e3); var next = (it2) => { while (it2 = stack.pop()) { try { var result = it2[1] && it2[1].call(it2[2]); if (it2[0]) - return Promise.resolve(result).then(next, (e2) => (fail(e2), next())); - } catch (e2) { - fail(e2); + return Promise.resolve(result).then(next, (e3) => (fail(e3), next())); + } catch (e3) { + fail(e3); } } if (hasError) @@ -119,729 +124,6 @@ var __callDispose = (stack, error, hasError) => { return next(); }; -// node_modules/core-js/internals/global.js -var require_global = __commonJS({ - "node_modules/core-js/internals/global.js"(exports, module) { - "use strict"; - var check = function(it2) { - return it2 && it2.Math === Math && it2; - }; - module.exports = // eslint-disable-next-line es/no-global-this -- safe - check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe - check(typeof self == "object" && self) || check(typeof global == "object" && global) || // eslint-disable-next-line no-new-func -- fallback - function() { - return this; - }() || exports || Function("return this")(); - } -}); - -// node_modules/core-js/internals/path.js -var require_path = __commonJS({ - "node_modules/core-js/internals/path.js"(exports, module) { - "use strict"; - var global4 = require_global(); - module.exports = global4; - } -}); - -// node_modules/core-js/internals/fails.js -var require_fails = __commonJS({ - "node_modules/core-js/internals/fails.js"(exports, module) { - "use strict"; - module.exports = function(exec2) { - try { - return !!exec2(); - } catch (error) { - return true; - } - }; - } -}); - -// node_modules/core-js/internals/function-bind-native.js -var require_function_bind_native = __commonJS({ - "node_modules/core-js/internals/function-bind-native.js"(exports, module) { - "use strict"; - var fails = require_fails(); - module.exports = !fails(function() { - var test = function() { - }.bind(); - return typeof test != "function" || test.hasOwnProperty("prototype"); - }); - } -}); - -// node_modules/core-js/internals/function-uncurry-this.js -var require_function_uncurry_this = __commonJS({ - "node_modules/core-js/internals/function-uncurry-this.js"(exports, module) { - "use strict"; - var NATIVE_BIND = require_function_bind_native(); - var FunctionPrototype = Function.prototype; - var call = FunctionPrototype.call; - var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); - module.exports = NATIVE_BIND ? uncurryThisWithBind : function(fn2) { - return function() { - return call.apply(fn2, arguments); - }; - }; - } -}); - -// node_modules/core-js/internals/is-null-or-undefined.js -var require_is_null_or_undefined = __commonJS({ - "node_modules/core-js/internals/is-null-or-undefined.js"(exports, module) { - "use strict"; - module.exports = function(it2) { - return it2 === null || it2 === void 0; - }; - } -}); - -// node_modules/core-js/internals/require-object-coercible.js -var require_require_object_coercible = __commonJS({ - "node_modules/core-js/internals/require-object-coercible.js"(exports, module) { - "use strict"; - var isNullOrUndefined = require_is_null_or_undefined(); - var $TypeError = TypeError; - module.exports = function(it2) { - if (isNullOrUndefined(it2)) - throw new $TypeError("Can't call method on " + it2); - return it2; - }; - } -}); - -// node_modules/core-js/internals/to-object.js -var require_to_object = __commonJS({ - "node_modules/core-js/internals/to-object.js"(exports, module) { - "use strict"; - var requireObjectCoercible = require_require_object_coercible(); - var $Object = Object; - module.exports = function(argument) { - return $Object(requireObjectCoercible(argument)); - }; - } -}); - -// node_modules/core-js/internals/has-own-property.js -var require_has_own_property = __commonJS({ - "node_modules/core-js/internals/has-own-property.js"(exports, module) { - "use strict"; - var uncurryThis = require_function_uncurry_this(); - var toObject = require_to_object(); - var hasOwnProperty = uncurryThis({}.hasOwnProperty); - module.exports = Object.hasOwn || function hasOwn(it2, key) { - return hasOwnProperty(toObject(it2), key); - }; - } -}); - -// node_modules/core-js/internals/is-pure.js -var require_is_pure = __commonJS({ - "node_modules/core-js/internals/is-pure.js"(exports, module) { - "use strict"; - module.exports = false; - } -}); - -// node_modules/core-js/internals/define-global-property.js -var require_define_global_property = __commonJS({ - "node_modules/core-js/internals/define-global-property.js"(exports, module) { - "use strict"; - var global4 = require_global(); - var defineProperty3 = Object.defineProperty; - module.exports = function(key, value) { - try { - defineProperty3(global4, key, { value, configurable: true, writable: true }); - } catch (error) { - global4[key] = value; - } - return value; - }; - } -}); - -// node_modules/core-js/internals/shared-store.js -var require_shared_store = __commonJS({ - "node_modules/core-js/internals/shared-store.js"(exports, module) { - "use strict"; - var global4 = require_global(); - var defineGlobalProperty = require_define_global_property(); - var SHARED = "__core-js_shared__"; - var store = global4[SHARED] || defineGlobalProperty(SHARED, {}); - module.exports = store; - } -}); - -// node_modules/core-js/internals/shared.js -var require_shared = __commonJS({ - "node_modules/core-js/internals/shared.js"(exports, module) { - "use strict"; - var IS_PURE = require_is_pure(); - var store = require_shared_store(); - (module.exports = function(key, value) { - return store[key] || (store[key] = value !== void 0 ? value : {}); - })("versions", []).push({ - version: "3.33.0", - mode: IS_PURE ? "pure" : "global", - copyright: "\xA9 2014-2023 Denis Pushkarev (zloirock.ru)", - license: "https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE", - source: "https://github.com/zloirock/core-js" - }); - } -}); - -// node_modules/core-js/internals/uid.js -var require_uid = __commonJS({ - "node_modules/core-js/internals/uid.js"(exports, module) { - "use strict"; - var uncurryThis = require_function_uncurry_this(); - var id = 0; - var postfix = Math.random(); - var toString3 = uncurryThis(1 .toString); - module.exports = function(key) { - return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString3(++id + postfix, 36); - }; - } -}); - -// node_modules/core-js/internals/engine-user-agent.js -var require_engine_user_agent = __commonJS({ - "node_modules/core-js/internals/engine-user-agent.js"(exports, module) { - "use strict"; - module.exports = typeof navigator != "undefined" && String(navigator.userAgent) || ""; - } -}); - -// node_modules/core-js/internals/engine-v8-version.js -var require_engine_v8_version = __commonJS({ - "node_modules/core-js/internals/engine-v8-version.js"(exports, module) { - "use strict"; - var global4 = require_global(); - var userAgent = require_engine_user_agent(); - var process2 = global4.process; - var Deno2 = global4.Deno; - var versions = process2 && process2.versions || Deno2 && Deno2.version; - var v8 = versions && versions.v8; - var match; - var version4; - if (v8) { - match = v8.split("."); - version4 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); - } - if (!version4 && userAgent) { - match = userAgent.match(/Edge\/(\d+)/); - if (!match || match[1] >= 74) { - match = userAgent.match(/Chrome\/(\d+)/); - if (match) - version4 = +match[1]; - } - } - module.exports = version4; - } -}); - -// node_modules/core-js/internals/symbol-constructor-detection.js -var require_symbol_constructor_detection = __commonJS({ - "node_modules/core-js/internals/symbol-constructor-detection.js"(exports, module) { - "use strict"; - var V8_VERSION = require_engine_v8_version(); - var fails = require_fails(); - var global4 = require_global(); - var $String = global4.String; - module.exports = !!Object.getOwnPropertySymbols && !fails(function() { - var symbol = Symbol("symbol detection"); - return !$String(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances - !Symbol.sham && V8_VERSION && V8_VERSION < 41; - }); - } -}); - -// node_modules/core-js/internals/use-symbol-as-uid.js -var require_use_symbol_as_uid = __commonJS({ - "node_modules/core-js/internals/use-symbol-as-uid.js"(exports, module) { - "use strict"; - var NATIVE_SYMBOL = require_symbol_constructor_detection(); - module.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == "symbol"; - } -}); - -// node_modules/core-js/internals/well-known-symbol.js -var require_well_known_symbol = __commonJS({ - "node_modules/core-js/internals/well-known-symbol.js"(exports, module) { - "use strict"; - var global4 = require_global(); - var shared = require_shared(); - var hasOwn = require_has_own_property(); - var uid = require_uid(); - var NATIVE_SYMBOL = require_symbol_constructor_detection(); - var USE_SYMBOL_AS_UID = require_use_symbol_as_uid(); - var Symbol4 = global4.Symbol; - var WellKnownSymbolsStore = shared("wks"); - var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol4["for"] || Symbol4 : Symbol4 && Symbol4.withoutSetter || uid; - module.exports = function(name2) { - if (!hasOwn(WellKnownSymbolsStore, name2)) { - WellKnownSymbolsStore[name2] = NATIVE_SYMBOL && hasOwn(Symbol4, name2) ? Symbol4[name2] : createWellKnownSymbol("Symbol." + name2); - } - return WellKnownSymbolsStore[name2]; - }; - } -}); - -// node_modules/core-js/internals/well-known-symbol-wrapped.js -var require_well_known_symbol_wrapped = __commonJS({ - "node_modules/core-js/internals/well-known-symbol-wrapped.js"(exports) { - "use strict"; - var wellKnownSymbol = require_well_known_symbol(); - exports.f = wellKnownSymbol; - } -}); - -// node_modules/core-js/internals/descriptors.js -var require_descriptors = __commonJS({ - "node_modules/core-js/internals/descriptors.js"(exports, module) { - "use strict"; - var fails = require_fails(); - module.exports = !fails(function() { - return Object.defineProperty({}, 1, { get: function() { - return 7; - } })[1] !== 7; - }); - } -}); - -// node_modules/core-js/internals/document-all.js -var require_document_all = __commonJS({ - "node_modules/core-js/internals/document-all.js"(exports, module) { - "use strict"; - var documentAll = typeof document == "object" && document.all; - var IS_HTMLDDA = typeof documentAll == "undefined" && documentAll !== void 0; - module.exports = { - all: documentAll, - IS_HTMLDDA - }; - } -}); - -// node_modules/core-js/internals/is-callable.js -var require_is_callable = __commonJS({ - "node_modules/core-js/internals/is-callable.js"(exports, module) { - "use strict"; - var $documentAll = require_document_all(); - var documentAll = $documentAll.all; - module.exports = $documentAll.IS_HTMLDDA ? function(argument) { - return typeof argument == "function" || argument === documentAll; - } : function(argument) { - return typeof argument == "function"; - }; - } -}); - -// node_modules/core-js/internals/is-object.js -var require_is_object = __commonJS({ - "node_modules/core-js/internals/is-object.js"(exports, module) { - "use strict"; - var isCallable = require_is_callable(); - var $documentAll = require_document_all(); - var documentAll = $documentAll.all; - module.exports = $documentAll.IS_HTMLDDA ? function(it2) { - return typeof it2 == "object" ? it2 !== null : isCallable(it2) || it2 === documentAll; - } : function(it2) { - return typeof it2 == "object" ? it2 !== null : isCallable(it2); - }; - } -}); - -// node_modules/core-js/internals/document-create-element.js -var require_document_create_element = __commonJS({ - "node_modules/core-js/internals/document-create-element.js"(exports, module) { - "use strict"; - var global4 = require_global(); - var isObject2 = require_is_object(); - var document2 = global4.document; - var EXISTS = isObject2(document2) && isObject2(document2.createElement); - module.exports = function(it2) { - return EXISTS ? document2.createElement(it2) : {}; - }; - } -}); - -// node_modules/core-js/internals/ie8-dom-define.js -var require_ie8_dom_define = __commonJS({ - "node_modules/core-js/internals/ie8-dom-define.js"(exports, module) { - "use strict"; - var DESCRIPTORS = require_descriptors(); - var fails = require_fails(); - var createElement = require_document_create_element(); - module.exports = !DESCRIPTORS && !fails(function() { - return Object.defineProperty(createElement("div"), "a", { - get: function() { - return 7; - } - }).a !== 7; - }); - } -}); - -// node_modules/core-js/internals/v8-prototype-define-bug.js -var require_v8_prototype_define_bug = __commonJS({ - "node_modules/core-js/internals/v8-prototype-define-bug.js"(exports, module) { - "use strict"; - var DESCRIPTORS = require_descriptors(); - var fails = require_fails(); - module.exports = DESCRIPTORS && fails(function() { - return Object.defineProperty(function() { - }, "prototype", { - value: 42, - writable: false - }).prototype !== 42; - }); - } -}); - -// node_modules/core-js/internals/an-object.js -var require_an_object = __commonJS({ - "node_modules/core-js/internals/an-object.js"(exports, module) { - "use strict"; - var isObject2 = require_is_object(); - var $String = String; - var $TypeError = TypeError; - module.exports = function(argument) { - if (isObject2(argument)) - return argument; - throw new $TypeError($String(argument) + " is not an object"); - }; - } -}); - -// node_modules/core-js/internals/function-call.js -var require_function_call = __commonJS({ - "node_modules/core-js/internals/function-call.js"(exports, module) { - "use strict"; - var NATIVE_BIND = require_function_bind_native(); - var call = Function.prototype.call; - module.exports = NATIVE_BIND ? call.bind(call) : function() { - return call.apply(call, arguments); - }; - } -}); - -// node_modules/core-js/internals/get-built-in.js -var require_get_built_in = __commonJS({ - "node_modules/core-js/internals/get-built-in.js"(exports, module) { - "use strict"; - var global4 = require_global(); - var isCallable = require_is_callable(); - var aFunction = function(argument) { - return isCallable(argument) ? argument : void 0; - }; - module.exports = function(namespace, method) { - return arguments.length < 2 ? aFunction(global4[namespace]) : global4[namespace] && global4[namespace][method]; - }; - } -}); - -// node_modules/core-js/internals/object-is-prototype-of.js -var require_object_is_prototype_of = __commonJS({ - "node_modules/core-js/internals/object-is-prototype-of.js"(exports, module) { - "use strict"; - var uncurryThis = require_function_uncurry_this(); - module.exports = uncurryThis({}.isPrototypeOf); - } -}); - -// node_modules/core-js/internals/is-symbol.js -var require_is_symbol = __commonJS({ - "node_modules/core-js/internals/is-symbol.js"(exports, module) { - "use strict"; - var getBuiltIn = require_get_built_in(); - var isCallable = require_is_callable(); - var isPrototypeOf = require_object_is_prototype_of(); - var USE_SYMBOL_AS_UID = require_use_symbol_as_uid(); - var $Object = Object; - module.exports = USE_SYMBOL_AS_UID ? function(it2) { - return typeof it2 == "symbol"; - } : function(it2) { - var $Symbol = getBuiltIn("Symbol"); - return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it2)); - }; - } -}); - -// node_modules/core-js/internals/try-to-string.js -var require_try_to_string = __commonJS({ - "node_modules/core-js/internals/try-to-string.js"(exports, module) { - "use strict"; - var $String = String; - module.exports = function(argument) { - try { - return $String(argument); - } catch (error) { - return "Object"; - } - }; - } -}); - -// node_modules/core-js/internals/a-callable.js -var require_a_callable = __commonJS({ - "node_modules/core-js/internals/a-callable.js"(exports, module) { - "use strict"; - var isCallable = require_is_callable(); - var tryToString = require_try_to_string(); - var $TypeError = TypeError; - module.exports = function(argument) { - if (isCallable(argument)) - return argument; - throw new $TypeError(tryToString(argument) + " is not a function"); - }; - } -}); - -// node_modules/core-js/internals/get-method.js -var require_get_method = __commonJS({ - "node_modules/core-js/internals/get-method.js"(exports, module) { - "use strict"; - var aCallable = require_a_callable(); - var isNullOrUndefined = require_is_null_or_undefined(); - module.exports = function(V2, P2) { - var func = V2[P2]; - return isNullOrUndefined(func) ? void 0 : aCallable(func); - }; - } -}); - -// node_modules/core-js/internals/ordinary-to-primitive.js -var require_ordinary_to_primitive = __commonJS({ - "node_modules/core-js/internals/ordinary-to-primitive.js"(exports, module) { - "use strict"; - var call = require_function_call(); - var isCallable = require_is_callable(); - var isObject2 = require_is_object(); - var $TypeError = TypeError; - module.exports = function(input, pref) { - var fn2, val; - if (pref === "string" && isCallable(fn2 = input.toString) && !isObject2(val = call(fn2, input))) - return val; - if (isCallable(fn2 = input.valueOf) && !isObject2(val = call(fn2, input))) - return val; - if (pref !== "string" && isCallable(fn2 = input.toString) && !isObject2(val = call(fn2, input))) - return val; - throw new $TypeError("Can't convert object to primitive value"); - }; - } -}); - -// node_modules/core-js/internals/to-primitive.js -var require_to_primitive = __commonJS({ - "node_modules/core-js/internals/to-primitive.js"(exports, module) { - "use strict"; - var call = require_function_call(); - var isObject2 = require_is_object(); - var isSymbol = require_is_symbol(); - var getMethod = require_get_method(); - var ordinaryToPrimitive = require_ordinary_to_primitive(); - var wellKnownSymbol = require_well_known_symbol(); - var $TypeError = TypeError; - var TO_PRIMITIVE = wellKnownSymbol("toPrimitive"); - module.exports = function(input, pref) { - if (!isObject2(input) || isSymbol(input)) - return input; - var exoticToPrim = getMethod(input, TO_PRIMITIVE); - var result; - if (exoticToPrim) { - if (pref === void 0) - pref = "default"; - result = call(exoticToPrim, input, pref); - if (!isObject2(result) || isSymbol(result)) - return result; - throw new $TypeError("Can't convert object to primitive value"); - } - if (pref === void 0) - pref = "number"; - return ordinaryToPrimitive(input, pref); - }; - } -}); - -// node_modules/core-js/internals/to-property-key.js -var require_to_property_key = __commonJS({ - "node_modules/core-js/internals/to-property-key.js"(exports, module) { - "use strict"; - var toPrimitive = require_to_primitive(); - var isSymbol = require_is_symbol(); - module.exports = function(argument) { - var key = toPrimitive(argument, "string"); - return isSymbol(key) ? key : key + ""; - }; - } -}); - -// node_modules/core-js/internals/object-define-property.js -var require_object_define_property = __commonJS({ - "node_modules/core-js/internals/object-define-property.js"(exports) { - "use strict"; - var DESCRIPTORS = require_descriptors(); - var IE8_DOM_DEFINE = require_ie8_dom_define(); - var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug(); - var anObject = require_an_object(); - var toPropertyKey = require_to_property_key(); - var $TypeError = TypeError; - var $defineProperty = Object.defineProperty; - var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - var ENUMERABLE = "enumerable"; - var CONFIGURABLE = "configurable"; - var WRITABLE = "writable"; - exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty3(O2, P2, Attributes) { - anObject(O2); - P2 = toPropertyKey(P2); - anObject(Attributes); - if (typeof O2 === "function" && P2 === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { - var current = $getOwnPropertyDescriptor(O2, P2); - if (current && current[WRITABLE]) { - O2[P2] = Attributes.value; - Attributes = { - configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE], - enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], - writable: false - }; - } - } - return $defineProperty(O2, P2, Attributes); - } : $defineProperty : function defineProperty3(O2, P2, Attributes) { - anObject(O2); - P2 = toPropertyKey(P2); - anObject(Attributes); - if (IE8_DOM_DEFINE) - try { - return $defineProperty(O2, P2, Attributes); - } catch (error) { - } - if ("get" in Attributes || "set" in Attributes) - throw new $TypeError("Accessors not supported"); - if ("value" in Attributes) - O2[P2] = Attributes.value; - return O2; - }; - } -}); - -// node_modules/core-js/internals/well-known-symbol-define.js -var require_well_known_symbol_define = __commonJS({ - "node_modules/core-js/internals/well-known-symbol-define.js"(exports, module) { - "use strict"; - var path14 = require_path(); - var hasOwn = require_has_own_property(); - var wrappedWellKnownSymbolModule = require_well_known_symbol_wrapped(); - var defineProperty3 = require_object_define_property().f; - module.exports = function(NAME) { - var Symbol4 = path14.Symbol || (path14.Symbol = {}); - if (!hasOwn(Symbol4, NAME)) - defineProperty3(Symbol4, NAME, { - value: wrappedWellKnownSymbolModule.f(NAME) - }); - }; - } -}); - -// node_modules/core-js/internals/object-property-is-enumerable.js -var require_object_property_is_enumerable = __commonJS({ - "node_modules/core-js/internals/object-property-is-enumerable.js"(exports) { - "use strict"; - var $propertyIsEnumerable = {}.propertyIsEnumerable; - var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor; - var NASHORN_BUG = getOwnPropertyDescriptor3 && !$propertyIsEnumerable.call({ 1: 2 }, 1); - exports.f = NASHORN_BUG ? function propertyIsEnumerable(V2) { - var descriptor = getOwnPropertyDescriptor3(this, V2); - return !!descriptor && descriptor.enumerable; - } : $propertyIsEnumerable; - } -}); - -// node_modules/core-js/internals/create-property-descriptor.js -var require_create_property_descriptor = __commonJS({ - "node_modules/core-js/internals/create-property-descriptor.js"(exports, module) { - "use strict"; - module.exports = function(bitmap, value) { - return { - enumerable: !(bitmap & 1), - configurable: !(bitmap & 2), - writable: !(bitmap & 4), - value - }; - }; - } -}); - -// node_modules/core-js/internals/classof-raw.js -var require_classof_raw = __commonJS({ - "node_modules/core-js/internals/classof-raw.js"(exports, module) { - "use strict"; - var uncurryThis = require_function_uncurry_this(); - var toString3 = uncurryThis({}.toString); - var stringSlice = uncurryThis("".slice); - module.exports = function(it2) { - return stringSlice(toString3(it2), 8, -1); - }; - } -}); - -// node_modules/core-js/internals/indexed-object.js -var require_indexed_object = __commonJS({ - "node_modules/core-js/internals/indexed-object.js"(exports, module) { - "use strict"; - var uncurryThis = require_function_uncurry_this(); - var fails = require_fails(); - var classof = require_classof_raw(); - var $Object = Object; - var split = uncurryThis("".split); - module.exports = fails(function() { - return !$Object("z").propertyIsEnumerable(0); - }) ? function(it2) { - return classof(it2) === "String" ? split(it2, "") : $Object(it2); - } : $Object; - } -}); - -// node_modules/core-js/internals/to-indexed-object.js -var require_to_indexed_object = __commonJS({ - "node_modules/core-js/internals/to-indexed-object.js"(exports, module) { - "use strict"; - var IndexedObject = require_indexed_object(); - var requireObjectCoercible = require_require_object_coercible(); - module.exports = function(it2) { - return IndexedObject(requireObjectCoercible(it2)); - }; - } -}); - -// node_modules/core-js/internals/object-get-own-property-descriptor.js -var require_object_get_own_property_descriptor = __commonJS({ - "node_modules/core-js/internals/object-get-own-property-descriptor.js"(exports) { - "use strict"; - var DESCRIPTORS = require_descriptors(); - var call = require_function_call(); - var propertyIsEnumerableModule = require_object_property_is_enumerable(); - var createPropertyDescriptor = require_create_property_descriptor(); - var toIndexedObject = require_to_indexed_object(); - var toPropertyKey = require_to_property_key(); - var hasOwn = require_has_own_property(); - var IE8_DOM_DEFINE = require_ie8_dom_define(); - var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor3(O2, P2) { - O2 = toIndexedObject(O2); - P2 = toPropertyKey(P2); - if (IE8_DOM_DEFINE) - try { - return $getOwnPropertyDescriptor(O2, P2); - } catch (error) { - } - if (hasOwn(O2, P2)) - return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O2, P2), O2[P2]); - }; - } -}); - // node_modules/@actions/core/lib/utils.js var require_utils = __commonJS({ "node_modules/@actions/core/lib/utils.js"(exports) { @@ -878,41 +160,41 @@ var require_utils = __commonJS({ var require_command = __commonJS({ "node_modules/@actions/core/lib/command.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.issue = exports.issueCommand = void 0; - var os3 = __importStar(__require("os")); + var os4 = __importStar(__require("os")); var utils_1 = require_utils(); function issueCommand(command, properties, message) { const cmd = new Command(command, properties, message); - process.stdout.write(cmd.toString() + os3.EOL); + process.stdout.write(cmd.toString() + os4.EOL); } exports.issueCommand = issueCommand; function issue(name2, message = "") { @@ -952,11 +234,11 @@ var require_command = __commonJS({ return cmdStr; } }; - function escapeData(s2) { - return utils_1.toCommandValue(s2).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); + function escapeData(s3) { + return utils_1.toCommandValue(s3).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); } - function escapeProperty(s2) { - return utils_1.toCommandValue(s2).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); + function escapeProperty(s3) { + return utils_1.toCommandValue(s3).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); } } }); @@ -1011,8 +293,8 @@ var init_stringify = __esm({ "node_modules/@actions/core/node_modules/uuid/dist/esm-node/stringify.js"() { init_validate(); byteToHex = []; - for (let i2 = 0; i2 < 256; ++i2) { - byteToHex.push((i2 + 256).toString(16).substr(1)); + for (let i3 = 0; i3 < 256; ++i3) { + byteToHex.push((i3 + 256).toString(16).substr(1)); } stringify_default = stringify; } @@ -1020,8 +302,8 @@ var init_stringify = __esm({ // node_modules/@actions/core/node_modules/uuid/dist/esm-node/v1.js function v1(options, buf, offset) { - let i2 = buf && offset || 0; - const b2 = buf || new Array(16); + 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; @@ -1051,21 +333,21 @@ function v1(options, buf, offset) { _clockseq = clockseq; msecs += 122192928e5; const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; - b2[i2++] = tl >>> 24 & 255; - b2[i2++] = tl >>> 16 & 255; - b2[i2++] = tl >>> 8 & 255; - b2[i2++] = tl & 255; + 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; - b2[i2++] = tmh >>> 8 & 255; - b2[i2++] = tmh & 255; - b2[i2++] = tmh >>> 24 & 15 | 16; - b2[i2++] = tmh >>> 16 & 255; - b2[i2++] = clockseq >>> 8 | 128; - b2[i2++] = clockseq & 255; - for (let n2 = 0; n2 < 6; ++n2) { - b2[i2 + n2] = node[n2]; + 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 n3 = 0; n3 < 6; ++n3) { + b3[i3 + n3] = node[n3]; } - return buf || stringify_default(b2); + return buf || stringify_default(b3); } var _nodeId, _clockseq, _lastMSecs, _lastNSecs, v1_default; var init_v1 = __esm({ @@ -1083,24 +365,24 @@ function parse(uuid) { if (!validate_default(uuid)) { throw TypeError("Invalid UUID"); } - let v2; + let v6; 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; + arr[0] = (v6 = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v6 >>> 16 & 255; + arr[2] = v6 >>> 8 & 255; + arr[3] = v6 & 255; + arr[4] = (v6 = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v6 & 255; + arr[6] = (v6 = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v6 & 255; + arr[8] = (v6 = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v6 & 255; + arr[10] = (v6 = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; + arr[11] = v6 / 4294967296 & 255; + arr[12] = v6 >>> 24 & 255; + arr[13] = v6 >>> 16 & 255; + arr[14] = v6 >>> 8 & 255; + arr[15] = v6 & 255; return arr; } var parse_default; @@ -1115,8 +397,8 @@ var init_parse = __esm({ function stringToBytes(str) { str = unescape(encodeURIComponent(str)); const bytes = []; - for (let i2 = 0; i2 < str.length; ++i2) { - bytes.push(str.charCodeAt(i2)); + for (let i3 = 0; i3 < str.length; ++i3) { + bytes.push(str.charCodeAt(i3)); } return bytes; } @@ -1139,8 +421,8 @@ function v35_default(name2, version4, hashfunc) { bytes[8] = bytes[8] & 63 | 128; if (buf) { offset = offset || 0; - for (let i2 = 0; i2 < 16; ++i2) { - buf[offset + i2] = bytes[i2]; + for (let i3 = 0; i3 < 16; ++i3) { + buf[offset + i3] = bytes[i3]; } return buf; } @@ -1200,8 +482,8 @@ function v4(options, buf, offset) { rnds[8] = rnds[8] & 63 | 128; if (buf) { offset = offset || 0; - for (let i2 = 0; i2 < 16; ++i2) { - buf[offset + i2] = rnds[i2]; + for (let i3 = 0; i3 < 16; ++i3) { + buf[offset + i3] = rnds[i3]; } return buf; } @@ -1298,30 +580,30 @@ var init_esm_node = __esm({ var require_file_command = __commonJS({ "node_modules/@actions/core/lib/file-command.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; @@ -1329,7 +611,7 @@ var require_file_command = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; var fs3 = __importStar(__require("fs")); - var os3 = __importStar(__require("os")); + var os4 = __importStar(__require("os")); var uuid_1 = (init_esm_node(), __toCommonJS(esm_node_exports)); var utils_1 = require_utils(); function issueFileCommand(command, message) { @@ -1340,7 +622,7 @@ var require_file_command = __commonJS({ if (!fs3.existsSync(filePath)) { throw new Error(`Missing file at path: ${filePath}`); } - fs3.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os3.EOL}`, { + fs3.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os4.EOL}`, { encoding: "utf8" }); } @@ -1354,7 +636,7 @@ var require_file_command = __commonJS({ if (convertedValue.includes(delimiter2)) { throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter2}"`); } - return `${key}<<${delimiter2}${os3.EOL}${convertedValue}${os3.EOL}${delimiter2}`; + return `${key}<<${delimiter2}${os4.EOL}${convertedValue}${os4.EOL}${delimiter2}`; } exports.prepareKeyValueMessage = prepareKeyValueMessage; } @@ -1366,7 +648,7 @@ var require_proxy = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkBypass = exports.getProxyUrl = void 0; - function getProxyUrl(reqUrl) { + function getProxyUrl2(reqUrl) { const usingSsl = reqUrl.protocol === "https:"; if (checkBypass(reqUrl)) { return void 0; @@ -1389,7 +671,7 @@ var require_proxy = __commonJS({ return void 0; } } - exports.getProxyUrl = getProxyUrl; + exports.getProxyUrl = getProxyUrl2; function checkBypass(reqUrl) { if (!reqUrl.hostname) { return false; @@ -1414,8 +696,8 @@ var require_proxy = __commonJS({ if (typeof reqPort === "number") { upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); } - for (const upperNoProxyItem of noProxy.split(",").map((x2) => x2.trim().toUpperCase()).filter((x2) => x2)) { - if (upperNoProxyItem === "*" || upperReqHosts.some((x2) => x2 === upperNoProxyItem || x2.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(".") && x2.endsWith(`${upperNoProxyItem}`))) { + for (const upperNoProxyItem of noProxy.split(",").map((x3) => x3.trim().toUpperCase()).filter((x3) => x3)) { + if (upperNoProxyItem === "*" || upperReqHosts.some((x3) => x3 === upperNoProxyItem || x3.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(".") && x3.endsWith(`${upperNoProxyItem}`))) { return true; } } @@ -1435,7 +717,7 @@ var require_tunnel = __commonJS({ "use strict"; var net = __require("net"); var tls = __require("tls"); - var http4 = __require("http"); + var http3 = __require("http"); var https3 = __require("https"); var events = __require("events"); var assert = __require("assert"); @@ -1446,12 +728,12 @@ var require_tunnel = __commonJS({ exports.httpsOverHttps = httpsOverHttps2; function httpOverHttp2(options) { var agent = new TunnelingAgent(options); - agent.request = http4.request; + agent.request = http3.request; return agent; } function httpsOverHttp2(options) { var agent = new TunnelingAgent(options); - agent.request = http4.request; + agent.request = http3.request; agent.createSocket = createSecureSocket; agent.defaultPort = 443; return agent; @@ -1472,15 +754,15 @@ var require_tunnel = __commonJS({ var self2 = this; self2.options = options || {}; self2.proxyOptions = self2.options.proxy || {}; - self2.maxSockets = self2.options.maxSockets || http4.Agent.defaultMaxSockets; + self2.maxSockets = self2.options.maxSockets || http3.Agent.defaultMaxSockets; self2.requests = []; self2.sockets = []; self2.on("free", function onFree(socket, host, port, localAddress) { var options2 = toOptions(host, port, localAddress); - for (var i2 = 0, len = self2.requests.length; i2 < len; ++i2) { - var pending = self2.requests[i2]; + for (var i3 = 0, len = self2.requests.length; i3 < len; ++i3) { + var pending = self2.requests[i3]; if (pending.host === options2.host && pending.port === options2.port) { - self2.requests.splice(i2, 1); + self2.requests.splice(i3, 1); pending.request.onSocket(socket); return; } @@ -1626,14 +908,14 @@ var require_tunnel = __commonJS({ return host; } function mergeOptions(target) { - for (var i2 = 1, len = arguments.length; i2 < len; ++i2) { - var overrides = arguments[i2]; + for (var i3 = 1, len = arguments.length; i3 < len; ++i3) { + var overrides = arguments[i3]; if (typeof overrides === "object") { var keys = Object.keys(overrides); - for (var j2 = 0, keyLen = keys.length; j2 < keyLen; ++j2) { - var k2 = keys[j2]; - if (overrides[k2] !== void 0) { - target[k2] = overrides[k2]; + for (var j3 = 0, keyLen = keys.length; j3 < keyLen; ++j3) { + var k3 = keys[j3]; + if (overrides[k3] !== void 0) { + target[k3] = overrides[k3]; } } } @@ -1728,7 +1010,9 @@ var require_symbols = __commonJS({ kHTTP2BuildRequest: Symbol("http2 build request"), kHTTP1BuildRequest: Symbol("http1 build request"), kHTTP2CopyHeaders: Symbol("http2 copy headers"), - kHTTPConnVersion: Symbol("http connection version") + kHTTPConnVersion: Symbol("http connection version"), + kRetryHandlerDefaultRetry: Symbol("retry agent default retry"), + kConstruct: Symbol("constructable") }; } }); @@ -1911,6 +1195,18 @@ var require_errors = __commonJS({ this.code = "UND_ERR_RES_EXCEEDED_MAX_SIZE"; } }; + var RequestRetryError = class _RequestRetryError extends UndiciError { + constructor(message, code, { headers, data }) { + super(message); + Error.captureStackTrace(this, _RequestRetryError); + this.name = "RequestRetryError"; + this.message = message || "Request retry error"; + this.code = "UND_ERR_REQ_RETRY"; + this.statusCode = code; + this.data = data; + this.headers = headers; + } + }; module.exports = { HTTPParserError, UndiciError, @@ -1930,7 +1226,8 @@ var require_errors = __commonJS({ NotSupportedError, ResponseContentLengthMismatchError, BalancedPoolMissingUpstreamError, - ResponseExceededMaxSizeError + ResponseExceededMaxSizeError, + RequestRetryError }; } }); @@ -1948,7 +1245,7 @@ var require_util = __commonJS({ var { Blob: Blob4 } = __require("buffer"); var nodeUtil = __require("util"); var { stringify: stringify3 } = __require("querystring"); - var [nodeMajor, nodeMinor] = process.versions.node.split(".").map((v2) => Number(v2)); + var [nodeMajor, nodeMinor] = process.versions.node.split(".").map((v6) => Number(v6)); function nop() { } function isStream(obj) { @@ -1999,14 +1296,14 @@ var require_util = __commonJS({ } const port = url2.port != null ? url2.port : url2.protocol === "https:" ? 443 : 80; let origin = url2.origin != null ? url2.origin : `${url2.protocol}//${url2.hostname}:${port}`; - let path14 = url2.path != null ? url2.path : `${url2.pathname || ""}${url2.search || ""}`; + let path15 = url2.path != null ? url2.path : `${url2.pathname || ""}${url2.search || ""}`; if (origin.endsWith("/")) { origin = origin.substring(0, origin.length - 1); } - if (path14 && !path14.startsWith("/")) { - path14 = `/${path14}`; + if (path15 && !path15.startsWith("/")) { + path15 = `/${path15}`; } - url2 = new URL(origin + path14); + url2 = new URL(origin + path15); } return url2; } @@ -2021,12 +1318,12 @@ var require_util = __commonJS({ if (host[0] === "[") { const idx2 = host.indexOf("]"); assert(idx2 !== -1); - return host.substr(1, idx2 - 1); + return host.substring(1, idx2); } const idx = host.indexOf(":"); if (idx === -1) return host; - return host.substr(0, idx); + return host.substring(0, idx); } function getServerName(host) { if (!host) { @@ -2069,7 +1366,7 @@ var require_util = __commonJS({ return isDestroyed(stream2) && state && !state.endEmitted; } function destroy2(stream2, err) { - if (!isStream(stream2) || isDestroyed(stream2)) { + if (stream2 == null || !isStream(stream2) || isDestroyed(stream2)) { return; } if (typeof stream2.destroy === "function") { @@ -2088,27 +1385,27 @@ var require_util = __commonJS({ } var KEEPALIVE_TIMEOUT_EXPR = /timeout=(\d+)/; function parseKeepAliveTimeout(val) { - const m3 = val.toString().match(KEEPALIVE_TIMEOUT_EXPR); - return m3 ? parseInt(m3[1], 10) * 1e3 : null; + const m4 = val.toString().match(KEEPALIVE_TIMEOUT_EXPR); + return m4 ? parseInt(m4[1], 10) * 1e3 : null; } function parseHeaders2(headers, obj = {}) { if (!Array.isArray(headers)) return headers; - for (let i2 = 0; i2 < headers.length; i2 += 2) { - const key = headers[i2].toString().toLowerCase(); + for (let i3 = 0; i3 < headers.length; i3 += 2) { + const key = headers[i3].toString().toLowerCase(); let val = obj[key]; if (!val) { - if (Array.isArray(headers[i2 + 1])) { - obj[key] = headers[i2 + 1]; + if (Array.isArray(headers[i3 + 1])) { + obj[key] = headers[i3 + 1].map((x3) => x3.toString("utf8")); } else { - obj[key] = headers[i2 + 1].toString("utf8"); + obj[key] = headers[i3 + 1].toString("utf8"); } } else { if (!Array.isArray(val)) { val = [val]; obj[key] = val; } - val.push(headers[i2 + 1].toString("utf8")); + val.push(headers[i3 + 1].toString("utf8")); } } if ("content-length" in obj && "content-disposition" in obj) { @@ -2120,9 +1417,9 @@ var require_util = __commonJS({ const ret = []; let hasContentLength = false; let contentDispositionIdx = -1; - for (let n2 = 0; n2 < headers.length; n2 += 2) { - const key = headers[n2 + 0].toString(); - const val = headers[n2 + 1].toString("utf8"); + for (let n3 = 0; n3 < headers.length; n3 += 2) { + const key = headers[n3 + 0].toString(); + const val = headers[n3 + 1].toString("utf8"); if (key.length === 14 && (key === "content-length" || key.toLowerCase() === "content-length")) { ret.push(key, val); hasContentLength = true; @@ -2249,16 +1546,7 @@ var require_util = __commonJS({ } } } - var events; function addAbortListener(signal, listener) { - if (typeof Symbol.dispose === "symbol") { - if (!events) { - events = __require("events"); - } - if (typeof events.addAbortListener === "function" && "aborted" in signal) { - return events.addAbortListener(signal, listener); - } - } if ("addEventListener" in signal) { signal.addEventListener("abort", listener, { once: true }); return () => signal.removeEventListener("abort", listener); @@ -2275,6 +1563,16 @@ var require_util = __commonJS({ } return `${val}`; } + function parseRangeHeader(range2) { + if (range2 == null || range2 === "") + return { start: 0, end: null, size: null }; + const m4 = range2 ? range2.match(/^bytes (\d+)-(\d+)\/(\d+)?$/) : null; + return m4 ? { + start: parseInt(m4[1]), + end: m4[2] ? parseInt(m4[2]) : null, + size: m4[3] ? parseInt(m4[3]) : null + } : null; + } var kEnumerableProperty = /* @__PURE__ */ Object.create(null); kEnumerableProperty.enumerable = true; module.exports = { @@ -2307,9 +1605,11 @@ var require_util = __commonJS({ buildURL, throwIfAborted, addAbortListener, + parseRangeHeader, nodeMajor, nodeMinor, - nodeHasAutoSelectFamily: nodeMajor > 18 || nodeMajor === 18 && nodeMinor >= 13 + nodeHasAutoSelectFamily: nodeMajor > 18 || nodeMajor === 18 && nodeMinor >= 13, + safeHTTPMethods: ["GET", "HEAD", "OPTIONS", "TRACE"] }; } }); @@ -2423,8 +1723,8 @@ var require_sbmh = __commonJS({ this._needle = needle; this._bufpos = 0; this._lookbehind = Buffer.alloc(needleLength); - for (var i2 = 0; i2 < needleLength - 1; ++i2) { - this._occ[needle[i2]] = needleLength - 1 - i2; + for (var i3 = 0; i3 < needleLength - 1; ++i3) { + this._occ[needle[i3]] = needleLength - 1 - i3; } } inherits(SBMH, EventEmitter3); @@ -2439,11 +1739,11 @@ var require_sbmh = __commonJS({ } const chlen = chunk.length; this._bufpos = pos || 0; - let r2; - while (r2 !== chlen && this.matches < this.maxMatches) { - r2 = this._sbmh_feed(chunk); + let r3; + while (r3 !== chlen && this.matches < this.maxMatches) { + r3 = this._sbmh_feed(chunk); } - return r2; + return r3; }; SBMH.prototype._sbmh_feed = function(data) { const len = data.length; @@ -2522,8 +1822,8 @@ var require_sbmh = __commonJS({ return pos < 0 ? this._lookbehind[this._lookbehind_size + pos] : data[pos]; }; SBMH.prototype._sbmh_memcmp = function(data, pos, len) { - for (var i2 = 0; i2 < len; ++i2) { - if (this._sbmh_lookup_char(data, pos + i2) !== this._needle[i2]) { + for (var i3 = 0; i3 < len; ++i3) { + if (this._sbmh_lookup_char(data, pos + i3) !== this._needle[i3]) { return false; } } @@ -2543,7 +1843,7 @@ var require_PartStream = __commonJS({ ReadableStream.call(this, opts); } inherits(PartStream, ReadableStream); - PartStream.prototype._read = function(n2) { + PartStream.prototype._read = function(n3) { }; module.exports = PartStream; } @@ -2607,9 +1907,9 @@ var require_HeaderParser = __commonJS({ } inherits(HeaderParser, EventEmitter3); HeaderParser.prototype.push = function(data) { - const r2 = this.ss.push(data); + const r3 = this.ss.push(data); if (this.finished) { - return r2; + return r3; } }; HeaderParser.prototype.reset = function() { @@ -2635,27 +1935,27 @@ var require_HeaderParser = __commonJS({ if (this.npairs === this.maxHeaderPairs) { return; } - const lines = this.buffer.split(RE_CRLF); - const len = lines.length; - let m3, h2; - for (var i2 = 0; i2 < len; ++i2) { - if (lines[i2].length === 0) { + const lines2 = this.buffer.split(RE_CRLF); + const len = lines2.length; + let m4, h3; + for (var i3 = 0; i3 < len; ++i3) { + if (lines2[i3].length === 0) { continue; } - if (lines[i2][0] === " " || lines[i2][0] === " ") { - if (h2) { - this.header[h2][this.header[h2].length - 1] += lines[i2]; + if (lines2[i3][0] === " " || lines2[i3][0] === " ") { + if (h3) { + this.header[h3][this.header[h3].length - 1] += lines2[i3]; continue; } } - const posColon = lines[i2].indexOf(":"); + const posColon = lines2[i3].indexOf(":"); if (posColon === -1 || posColon === 0) { return; } - m3 = RE_HDR.exec(lines[i2]); - h2 = m3[1].toLowerCase(); - this.header[h2] = this.header[h2] || []; - this.header[h2].push(m3[2] || ""); + m4 = RE_HDR.exec(lines2[i3]); + h3 = m4[1].toLowerCase(); + this.header[h3] = this.header[h3] || []; + this.header[h3].push(m4[2] || ""); if (++this.npairs === this.maxHeaderPairs) { break; } @@ -2753,9 +2053,9 @@ var require_Dicer = __commonJS({ this._ignore(); } } - const r2 = this._hparser.push(data); - if (!this._inHeader && r2 !== void 0 && r2 < data.length) { - data = data.slice(r2); + const r3 = this._hparser.push(data); + if (!this._inHeader && r3 !== void 0 && r3 < data.length) { + data = data.slice(r3); } else { return cb(); } @@ -2793,13 +2093,13 @@ var require_Dicer = __commonJS({ Dicer.prototype._oninfo = function(isMatch, data, start, end) { let buf; const self2 = this; - let i2 = 0; - let r2; + let i3 = 0; + let r3; let shouldWriteMore = true; if (!this._part && this._justMatched && data) { - while (this._dashes < 2 && start + i2 < end) { - if (data[start + i2] === DASH) { - ++i2; + while (this._dashes < 2 && start + i3 < end) { + if (data[start + i3] === DASH) { + ++i3; ++this._dashes; } else { if (this._dashes) { @@ -2810,8 +2110,8 @@ var require_Dicer = __commonJS({ } } if (this._dashes === 2) { - if (start + i2 < end && this._events.trailer) { - this.emit("trailer", data.slice(start + i2, end)); + if (start + i3 < end && this._events.trailer) { + this.emit("trailer", data.slice(start + i3, end)); } this.reset(); this._finished = true; @@ -2830,7 +2130,7 @@ var require_Dicer = __commonJS({ } if (!this._part) { this._part = new PartStream(this._partOpts); - this._part._read = function(n2) { + this._part._read = function(n3) { self2._unpause(); }; if (this._isPreamble && this._events.preamble) { @@ -2857,9 +2157,9 @@ var require_Dicer = __commonJS({ if (buf) { this._hparser.push(buf); } - r2 = this._hparser.push(data.slice(start, end)); - if (!this._inHeader && r2 !== void 0 && r2 < end) { - this._oninfo(false, data, start + r2, end); + r3 = this._hparser.push(data.slice(start, end)); + if (!this._inHeader && r3 !== void 0 && r3 < end) { + this._oninfo(false, data, start + r3, end); } } } @@ -2914,20 +2214,98 @@ var require_decodeText = __commonJS({ ["utf-8", utf8Decoder], ["utf8", utf8Decoder] ]); - function decodeText(text, textEncoding, destEncoding) { - if (text) { - if (textDecoders.has(destEncoding)) { - try { - return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding)); - } catch (e2) { - } - } else { + function getDecoder(charset) { + let lc; + while (true) { + switch (charset) { + case "utf-8": + case "utf8": + return decoders.utf8; + case "latin1": + case "ascii": + case "us-ascii": + case "iso-8859-1": + case "iso8859-1": + case "iso88591": + case "iso_8859-1": + case "windows-1252": + case "iso_8859-1:1987": + case "cp1252": + case "x-cp1252": + return decoders.latin1; + case "utf16le": + case "utf-16le": + case "ucs2": + case "ucs-2": + return decoders.utf16le; + case "base64": + return decoders.base64; + default: + if (lc === void 0) { + lc = true; + charset = charset.toLowerCase(); + continue; + } + return decoders.other.bind(charset); + } + } + } + var decoders = { + utf8: (data, sourceEncoding) => { + if (data.length === 0) { + return ""; + } + if (typeof data === "string") { + data = Buffer.from(data, sourceEncoding); + } + return data.utf8Slice(0, data.length); + }, + latin1: (data, sourceEncoding) => { + if (data.length === 0) { + return ""; + } + if (typeof data === "string") { + return data; + } + return data.latin1Slice(0, data.length); + }, + utf16le: (data, sourceEncoding) => { + if (data.length === 0) { + return ""; + } + if (typeof data === "string") { + data = Buffer.from(data, sourceEncoding); + } + return data.ucs2Slice(0, data.length); + }, + base64: (data, sourceEncoding) => { + if (data.length === 0) { + return ""; + } + if (typeof data === "string") { + data = Buffer.from(data, sourceEncoding); + } + return data.base64Slice(0, data.length); + }, + other: (data, sourceEncoding) => { + if (data.length === 0) { + return ""; + } + if (typeof data === "string") { + data = Buffer.from(data, sourceEncoding); + } + if (textDecoders.has(exports.toString())) { try { - textDecoders.set(destEncoding, new TextDecoder(destEncoding)); - return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding)); - } catch (e2) { + return textDecoders.get(exports).decode(data); + } catch (e3) { } } + return typeof data === "string" ? data : data.toString(); + } + }; + function decodeText(text, sourceEncoding, destEncoding) { + if (text) { + return getDecoder(destEncoding)(text, sourceEncoding); } return text; } @@ -2940,20 +2318,511 @@ var require_parseParams = __commonJS({ "node_modules/@fastify/busboy/lib/utils/parseParams.js"(exports, module) { "use strict"; var decodeText = require_decodeText(); - var RE_ENCODED = /%([a-fA-F0-9]{2})/g; - function encodedReplacer(match, byte) { - return String.fromCharCode(parseInt(byte, 16)); - } + var RE_ENCODED = /%[a-fA-F0-9][a-fA-F0-9]/g; + var EncodedLookup = { + "%00": "\0", + "%01": "", + "%02": "", + "%03": "", + "%04": "", + "%05": "", + "%06": "", + "%07": "\x07", + "%08": "\b", + "%09": " ", + "%0a": "\n", + "%0A": "\n", + "%0b": "\v", + "%0B": "\v", + "%0c": "\f", + "%0C": "\f", + "%0d": "\r", + "%0D": "\r", + "%0e": "", + "%0E": "", + "%0f": "", + "%0F": "", + "%10": "", + "%11": "", + "%12": "", + "%13": "", + "%14": "", + "%15": "", + "%16": "", + "%17": "", + "%18": "", + "%19": "", + "%1a": "", + "%1A": "", + "%1b": "\x1B", + "%1B": "\x1B", + "%1c": "", + "%1C": "", + "%1d": "", + "%1D": "", + "%1e": "", + "%1E": "", + "%1f": "", + "%1F": "", + "%20": " ", + "%21": "!", + "%22": '"', + "%23": "#", + "%24": "$", + "%25": "%", + "%26": "&", + "%27": "'", + "%28": "(", + "%29": ")", + "%2a": "*", + "%2A": "*", + "%2b": "+", + "%2B": "+", + "%2c": ",", + "%2C": ",", + "%2d": "-", + "%2D": "-", + "%2e": ".", + "%2E": ".", + "%2f": "/", + "%2F": "/", + "%30": "0", + "%31": "1", + "%32": "2", + "%33": "3", + "%34": "4", + "%35": "5", + "%36": "6", + "%37": "7", + "%38": "8", + "%39": "9", + "%3a": ":", + "%3A": ":", + "%3b": ";", + "%3B": ";", + "%3c": "<", + "%3C": "<", + "%3d": "=", + "%3D": "=", + "%3e": ">", + "%3E": ">", + "%3f": "?", + "%3F": "?", + "%40": "@", + "%41": "A", + "%42": "B", + "%43": "C", + "%44": "D", + "%45": "E", + "%46": "F", + "%47": "G", + "%48": "H", + "%49": "I", + "%4a": "J", + "%4A": "J", + "%4b": "K", + "%4B": "K", + "%4c": "L", + "%4C": "L", + "%4d": "M", + "%4D": "M", + "%4e": "N", + "%4E": "N", + "%4f": "O", + "%4F": "O", + "%50": "P", + "%51": "Q", + "%52": "R", + "%53": "S", + "%54": "T", + "%55": "U", + "%56": "V", + "%57": "W", + "%58": "X", + "%59": "Y", + "%5a": "Z", + "%5A": "Z", + "%5b": "[", + "%5B": "[", + "%5c": "\\", + "%5C": "\\", + "%5d": "]", + "%5D": "]", + "%5e": "^", + "%5E": "^", + "%5f": "_", + "%5F": "_", + "%60": "`", + "%61": "a", + "%62": "b", + "%63": "c", + "%64": "d", + "%65": "e", + "%66": "f", + "%67": "g", + "%68": "h", + "%69": "i", + "%6a": "j", + "%6A": "j", + "%6b": "k", + "%6B": "k", + "%6c": "l", + "%6C": "l", + "%6d": "m", + "%6D": "m", + "%6e": "n", + "%6E": "n", + "%6f": "o", + "%6F": "o", + "%70": "p", + "%71": "q", + "%72": "r", + "%73": "s", + "%74": "t", + "%75": "u", + "%76": "v", + "%77": "w", + "%78": "x", + "%79": "y", + "%7a": "z", + "%7A": "z", + "%7b": "{", + "%7B": "{", + "%7c": "|", + "%7C": "|", + "%7d": "}", + "%7D": "}", + "%7e": "~", + "%7E": "~", + "%7f": "\x7F", + "%7F": "\x7F", + "%80": "\x80", + "%81": "\x81", + "%82": "\x82", + "%83": "\x83", + "%84": "\x84", + "%85": "\x85", + "%86": "\x86", + "%87": "\x87", + "%88": "\x88", + "%89": "\x89", + "%8a": "\x8A", + "%8A": "\x8A", + "%8b": "\x8B", + "%8B": "\x8B", + "%8c": "\x8C", + "%8C": "\x8C", + "%8d": "\x8D", + "%8D": "\x8D", + "%8e": "\x8E", + "%8E": "\x8E", + "%8f": "\x8F", + "%8F": "\x8F", + "%90": "\x90", + "%91": "\x91", + "%92": "\x92", + "%93": "\x93", + "%94": "\x94", + "%95": "\x95", + "%96": "\x96", + "%97": "\x97", + "%98": "\x98", + "%99": "\x99", + "%9a": "\x9A", + "%9A": "\x9A", + "%9b": "\x9B", + "%9B": "\x9B", + "%9c": "\x9C", + "%9C": "\x9C", + "%9d": "\x9D", + "%9D": "\x9D", + "%9e": "\x9E", + "%9E": "\x9E", + "%9f": "\x9F", + "%9F": "\x9F", + "%a0": "\xA0", + "%A0": "\xA0", + "%a1": "\xA1", + "%A1": "\xA1", + "%a2": "\xA2", + "%A2": "\xA2", + "%a3": "\xA3", + "%A3": "\xA3", + "%a4": "\xA4", + "%A4": "\xA4", + "%a5": "\xA5", + "%A5": "\xA5", + "%a6": "\xA6", + "%A6": "\xA6", + "%a7": "\xA7", + "%A7": "\xA7", + "%a8": "\xA8", + "%A8": "\xA8", + "%a9": "\xA9", + "%A9": "\xA9", + "%aa": "\xAA", + "%Aa": "\xAA", + "%aA": "\xAA", + "%AA": "\xAA", + "%ab": "\xAB", + "%Ab": "\xAB", + "%aB": "\xAB", + "%AB": "\xAB", + "%ac": "\xAC", + "%Ac": "\xAC", + "%aC": "\xAC", + "%AC": "\xAC", + "%ad": "\xAD", + "%Ad": "\xAD", + "%aD": "\xAD", + "%AD": "\xAD", + "%ae": "\xAE", + "%Ae": "\xAE", + "%aE": "\xAE", + "%AE": "\xAE", + "%af": "\xAF", + "%Af": "\xAF", + "%aF": "\xAF", + "%AF": "\xAF", + "%b0": "\xB0", + "%B0": "\xB0", + "%b1": "\xB1", + "%B1": "\xB1", + "%b2": "\xB2", + "%B2": "\xB2", + "%b3": "\xB3", + "%B3": "\xB3", + "%b4": "\xB4", + "%B4": "\xB4", + "%b5": "\xB5", + "%B5": "\xB5", + "%b6": "\xB6", + "%B6": "\xB6", + "%b7": "\xB7", + "%B7": "\xB7", + "%b8": "\xB8", + "%B8": "\xB8", + "%b9": "\xB9", + "%B9": "\xB9", + "%ba": "\xBA", + "%Ba": "\xBA", + "%bA": "\xBA", + "%BA": "\xBA", + "%bb": "\xBB", + "%Bb": "\xBB", + "%bB": "\xBB", + "%BB": "\xBB", + "%bc": "\xBC", + "%Bc": "\xBC", + "%bC": "\xBC", + "%BC": "\xBC", + "%bd": "\xBD", + "%Bd": "\xBD", + "%bD": "\xBD", + "%BD": "\xBD", + "%be": "\xBE", + "%Be": "\xBE", + "%bE": "\xBE", + "%BE": "\xBE", + "%bf": "\xBF", + "%Bf": "\xBF", + "%bF": "\xBF", + "%BF": "\xBF", + "%c0": "\xC0", + "%C0": "\xC0", + "%c1": "\xC1", + "%C1": "\xC1", + "%c2": "\xC2", + "%C2": "\xC2", + "%c3": "\xC3", + "%C3": "\xC3", + "%c4": "\xC4", + "%C4": "\xC4", + "%c5": "\xC5", + "%C5": "\xC5", + "%c6": "\xC6", + "%C6": "\xC6", + "%c7": "\xC7", + "%C7": "\xC7", + "%c8": "\xC8", + "%C8": "\xC8", + "%c9": "\xC9", + "%C9": "\xC9", + "%ca": "\xCA", + "%Ca": "\xCA", + "%cA": "\xCA", + "%CA": "\xCA", + "%cb": "\xCB", + "%Cb": "\xCB", + "%cB": "\xCB", + "%CB": "\xCB", + "%cc": "\xCC", + "%Cc": "\xCC", + "%cC": "\xCC", + "%CC": "\xCC", + "%cd": "\xCD", + "%Cd": "\xCD", + "%cD": "\xCD", + "%CD": "\xCD", + "%ce": "\xCE", + "%Ce": "\xCE", + "%cE": "\xCE", + "%CE": "\xCE", + "%cf": "\xCF", + "%Cf": "\xCF", + "%cF": "\xCF", + "%CF": "\xCF", + "%d0": "\xD0", + "%D0": "\xD0", + "%d1": "\xD1", + "%D1": "\xD1", + "%d2": "\xD2", + "%D2": "\xD2", + "%d3": "\xD3", + "%D3": "\xD3", + "%d4": "\xD4", + "%D4": "\xD4", + "%d5": "\xD5", + "%D5": "\xD5", + "%d6": "\xD6", + "%D6": "\xD6", + "%d7": "\xD7", + "%D7": "\xD7", + "%d8": "\xD8", + "%D8": "\xD8", + "%d9": "\xD9", + "%D9": "\xD9", + "%da": "\xDA", + "%Da": "\xDA", + "%dA": "\xDA", + "%DA": "\xDA", + "%db": "\xDB", + "%Db": "\xDB", + "%dB": "\xDB", + "%DB": "\xDB", + "%dc": "\xDC", + "%Dc": "\xDC", + "%dC": "\xDC", + "%DC": "\xDC", + "%dd": "\xDD", + "%Dd": "\xDD", + "%dD": "\xDD", + "%DD": "\xDD", + "%de": "\xDE", + "%De": "\xDE", + "%dE": "\xDE", + "%DE": "\xDE", + "%df": "\xDF", + "%Df": "\xDF", + "%dF": "\xDF", + "%DF": "\xDF", + "%e0": "\xE0", + "%E0": "\xE0", + "%e1": "\xE1", + "%E1": "\xE1", + "%e2": "\xE2", + "%E2": "\xE2", + "%e3": "\xE3", + "%E3": "\xE3", + "%e4": "\xE4", + "%E4": "\xE4", + "%e5": "\xE5", + "%E5": "\xE5", + "%e6": "\xE6", + "%E6": "\xE6", + "%e7": "\xE7", + "%E7": "\xE7", + "%e8": "\xE8", + "%E8": "\xE8", + "%e9": "\xE9", + "%E9": "\xE9", + "%ea": "\xEA", + "%Ea": "\xEA", + "%eA": "\xEA", + "%EA": "\xEA", + "%eb": "\xEB", + "%Eb": "\xEB", + "%eB": "\xEB", + "%EB": "\xEB", + "%ec": "\xEC", + "%Ec": "\xEC", + "%eC": "\xEC", + "%EC": "\xEC", + "%ed": "\xED", + "%Ed": "\xED", + "%eD": "\xED", + "%ED": "\xED", + "%ee": "\xEE", + "%Ee": "\xEE", + "%eE": "\xEE", + "%EE": "\xEE", + "%ef": "\xEF", + "%Ef": "\xEF", + "%eF": "\xEF", + "%EF": "\xEF", + "%f0": "\xF0", + "%F0": "\xF0", + "%f1": "\xF1", + "%F1": "\xF1", + "%f2": "\xF2", + "%F2": "\xF2", + "%f3": "\xF3", + "%F3": "\xF3", + "%f4": "\xF4", + "%F4": "\xF4", + "%f5": "\xF5", + "%F5": "\xF5", + "%f6": "\xF6", + "%F6": "\xF6", + "%f7": "\xF7", + "%F7": "\xF7", + "%f8": "\xF8", + "%F8": "\xF8", + "%f9": "\xF9", + "%F9": "\xF9", + "%fa": "\xFA", + "%Fa": "\xFA", + "%fA": "\xFA", + "%FA": "\xFA", + "%fb": "\xFB", + "%Fb": "\xFB", + "%fB": "\xFB", + "%FB": "\xFB", + "%fc": "\xFC", + "%Fc": "\xFC", + "%fC": "\xFC", + "%FC": "\xFC", + "%fd": "\xFD", + "%Fd": "\xFD", + "%fD": "\xFD", + "%FD": "\xFD", + "%fe": "\xFE", + "%Fe": "\xFE", + "%fE": "\xFE", + "%FE": "\xFE", + "%ff": "\xFF", + "%Ff": "\xFF", + "%fF": "\xFF", + "%FF": "\xFF" + }; + function encodedReplacer(match) { + return EncodedLookup[match]; + } + var STATE_KEY = 0; + var STATE_VALUE = 1; + var STATE_CHARSET = 2; + var STATE_LANG = 3; function parseParams(str) { const res = []; - let state = "key"; + let state = STATE_KEY; let charset = ""; let inquote = false; let escaping = false; - let p2 = 0; + let p3 = 0; let tmp = ""; - for (var i2 = 0, len = str.length; i2 < len; ++i2) { - const char = str[i2]; + const len = str.length; + for (var i3 = 0; i3 < len; ++i3) { + const char = str[i3]; if (char === "\\" && inquote) { if (escaping) { escaping = false; @@ -2965,7 +2834,7 @@ var require_parseParams = __commonJS({ if (!escaping) { if (inquote) { inquote = false; - state = "key"; + state = STATE_KEY; } else { inquote = true; } @@ -2978,26 +2847,22 @@ var require_parseParams = __commonJS({ tmp += "\\"; } escaping = false; - if ((state === "charset" || state === "lang") && char === "'") { - if (state === "charset") { - state = "lang"; + if ((state === STATE_CHARSET || state === STATE_LANG) && char === "'") { + if (state === STATE_CHARSET) { + state = STATE_LANG; charset = tmp.substring(1); } else { - state = "value"; + state = STATE_VALUE; } tmp = ""; continue; - } else if (state === "key" && (char === "*" || char === "=") && res.length) { - if (char === "*") { - state = "charset"; - } else { - state = "value"; - } - res[p2] = [tmp, void 0]; + } else if (state === STATE_KEY && (char === "*" || char === "=") && res.length) { + state = char === "*" ? STATE_CHARSET : STATE_VALUE; + res[p3] = [tmp, void 0]; tmp = ""; continue; } else if (!inquote && char === ";") { - state = "key"; + state = STATE_KEY; if (charset) { if (tmp.length) { tmp = decodeText( @@ -3010,13 +2875,13 @@ var require_parseParams = __commonJS({ } else if (tmp.length) { tmp = decodeText(tmp, "binary", "utf8"); } - if (res[p2] === void 0) { - res[p2] = tmp; + if (res[p3] === void 0) { + res[p3] = tmp; } else { - res[p2][1] = tmp; + res[p3][1] = tmp; } tmp = ""; - ++p2; + ++p3; continue; } else if (!inquote && (char === " " || char === " ")) { continue; @@ -3033,12 +2898,12 @@ var require_parseParams = __commonJS({ } else if (tmp) { tmp = decodeText(tmp, "binary", "utf8"); } - if (res[p2] === void 0) { + if (res[p3] === void 0) { if (tmp) { - res[p2] = tmp; + res[p3] = tmp; } } else { - res[p2][1] = tmp; + res[p3][1] = tmp; } return res; } @@ -3050,19 +2915,19 @@ var require_parseParams = __commonJS({ var require_basename = __commonJS({ "node_modules/@fastify/busboy/lib/utils/basename.js"(exports, module) { "use strict"; - module.exports = function basename(path14) { - if (typeof path14 !== "string") { + module.exports = function basename2(path15) { + if (typeof path15 !== "string") { return ""; } - for (var i2 = path14.length - 1; i2 >= 0; --i2) { - switch (path14.charCodeAt(i2)) { + for (var i3 = path15.length - 1; i3 >= 0; --i3) { + switch (path15.charCodeAt(i3)) { case 47: case 92: - path14 = path14.slice(i2 + 1); - return path14 === ".." || path14 === "." ? "" : path14; + path15 = path15.slice(i3 + 1); + return path15 === ".." || path15 === "." ? "" : path15; } } - return path14 === ".." || path14 === "." ? "" : path14; + return path15 === ".." || path15 === "." ? "" : path15; }; } }); @@ -3076,7 +2941,7 @@ var require_multipart = __commonJS({ var Dicer = require_Dicer(); var parseParams = require_parseParams(); var decodeText = require_decodeText(); - var basename = require_basename(); + var basename2 = require_basename(); var getLimit = require_getLimit(); var RE_BOUNDARY = /^boundary$/i; var RE_FIELD = /^form-data$/i; @@ -3085,7 +2950,7 @@ var require_multipart = __commonJS({ var RE_NAME = /^name$/i; Multipart.detect = /^multipart\/form-data/i; function Multipart(boy, cfg) { - let i2; + let i3; let len; const self2 = this; let boundary; @@ -3095,9 +2960,9 @@ var require_multipart = __commonJS({ const defCharset = cfg.defCharset || "utf8"; const preservePath = cfg.preservePath; const fileOpts = { highWaterMark: cfg.fileHwm }; - for (i2 = 0, len = parsedConType.length; i2 < len; ++i2) { - if (Array.isArray(parsedConType[i2]) && RE_BOUNDARY.test(parsedConType[i2][0])) { - boundary = parsedConType[i2][1]; + for (i3 = 0, len = parsedConType.length; i3 < len; ++i3) { + if (Array.isArray(parsedConType[i3]) && RE_BOUNDARY.test(parsedConType[i3][0])) { + boundary = parsedConType[i3][1]; break; } } @@ -3168,9 +3033,9 @@ var require_multipart = __commonJS({ parsed = parseParams(header["content-type"][0]); if (parsed[0]) { contype = parsed[0].toLowerCase(); - for (i2 = 0, len = parsed.length; i2 < len; ++i2) { - if (RE_CHARSET.test(parsed[i2][0])) { - charset = parsed[i2][1].toLowerCase(); + for (i3 = 0, len = parsed.length; i3 < len; ++i3) { + if (RE_CHARSET.test(parsed[i3][0])) { + charset = parsed[i3][1].toLowerCase(); break; } } @@ -3187,13 +3052,13 @@ var require_multipart = __commonJS({ if (!RE_FIELD.test(parsed[0])) { return skipPart(part); } - for (i2 = 0, len = parsed.length; i2 < len; ++i2) { - if (RE_NAME.test(parsed[i2][0])) { - fieldname = parsed[i2][1]; - } else if (RE_FILENAME.test(parsed[i2][0])) { - filename = parsed[i2][1]; + for (i3 = 0, len = parsed.length; i3 < len; ++i3) { + if (RE_NAME.test(parsed[i3][0])) { + fieldname = parsed[i3][1]; + } else if (RE_FILENAME.test(parsed[i3][0])) { + filename = parsed[i3][1]; if (!preservePath) { - filename = basename(filename); + filename = basename2(filename); } } } @@ -3232,7 +3097,7 @@ var require_multipart = __commonJS({ cb(); } }); - file._read = function(n2) { + file._read = function(n3) { if (!self2._pause) { return; } @@ -3313,11 +3178,11 @@ var require_multipart = __commonJS({ }); } Multipart.prototype.write = function(chunk, cb) { - const r2 = this.parser.write(chunk); - if (r2 && !this._pause) { + const r3 = this.parser.write(chunk); + if (r3 && !this._pause) { cb(); } else { - this._needDrain = !r2; + this._needDrain = !r3; this._cb = cb; } }; @@ -3341,7 +3206,7 @@ var require_multipart = __commonJS({ this.truncated = false; } inherits(FileStream, Readable5); - FileStream.prototype._read = function(n2) { + FileStream.prototype._read = function(n3) { }; module.exports = Multipart; } @@ -3488,34 +3353,34 @@ var require_Decoder = __commonJS({ Decoder.prototype.write = function(str) { str = str.replace(RE_PLUS, " "); let res = ""; - let i2 = 0; - let p2 = 0; + let i3 = 0; + let p3 = 0; const len = str.length; - for (; i2 < len; ++i2) { + for (; i3 < len; ++i3) { if (this.buffer !== void 0) { - if (!HEX[str.charCodeAt(i2)]) { + if (!HEX[str.charCodeAt(i3)]) { res += "%" + this.buffer; this.buffer = void 0; - --i2; + --i3; } else { - this.buffer += str[i2]; - ++p2; + this.buffer += str[i3]; + ++p3; if (this.buffer.length === 2) { res += String.fromCharCode(parseInt(this.buffer, 16)); this.buffer = void 0; } } - } else if (str[i2] === "%") { - if (i2 > p2) { - res += str.substring(p2, i2); - p2 = i2; + } else if (str[i3] === "%") { + if (i3 > p3) { + res += str.substring(p3, i3); + p3 = i3; } this.buffer = ""; - ++p2; + ++p3; } } - if (p2 < len && this.buffer === void 0) { - res += str.substring(p2); + if (p3 < len && this.buffer === void 0) { + res += str.substring(p3); } return res; }; @@ -3543,9 +3408,9 @@ var require_urlencoded = __commonJS({ this.fieldNameSizeLimit = getLimit(limits, "fieldNameSize", 100); this.fieldsLimit = getLimit(limits, "fields", Infinity); let charset; - for (var i2 = 0, len = parsedConType.length; i2 < len; ++i2) { - if (Array.isArray(parsedConType[i2]) && RE_CHARSET.test(parsedConType[i2][0])) { - charset = parsedConType[i2][1].toLowerCase(); + for (var i3 = 0, len = parsedConType.length; i3 < len; ++i3) { + if (Array.isArray(parsedConType[i3]) && RE_CHARSET.test(parsedConType[i3][0])) { + charset = parsedConType[i3][1].toLowerCase(); break; } } @@ -3575,21 +3440,21 @@ var require_urlencoded = __commonJS({ } let idxeq; let idxamp; - let i2; - let p2 = 0; + let i3; + let p3 = 0; const len = data.length; - while (p2 < len) { + while (p3 < len) { if (this._state === "key") { idxeq = idxamp = void 0; - for (i2 = p2; i2 < len; ++i2) { + for (i3 = p3; i3 < len; ++i3) { if (!this._checkingBytes) { - ++p2; + ++p3; } - if (data[i2] === 61) { - idxeq = i2; + if (data[i3] === 61) { + idxeq = i3; break; - } else if (data[i2] === 38) { - idxamp = i2; + } else if (data[i3] === 38) { + idxamp = i3; break; } if (this._checkingBytes && this._bytesKey === this.fieldNameSizeLimit) { @@ -3600,8 +3465,8 @@ var require_urlencoded = __commonJS({ } } if (idxeq !== void 0) { - if (idxeq > p2) { - this._key += this.decoder.write(data.toString("binary", p2, idxeq)); + if (idxeq > p3) { + this._key += this.decoder.write(data.toString("binary", p3, idxeq)); } this._state = "val"; this._hitLimit = false; @@ -3610,13 +3475,13 @@ var require_urlencoded = __commonJS({ this._bytesVal = 0; this._valTrunc = false; this.decoder.reset(); - p2 = idxeq + 1; + p3 = idxeq + 1; } else if (idxamp !== void 0) { ++this._fields; let key; const keyTrunc = this._keyTrunc; - if (idxamp > p2) { - key = this._key += this.decoder.write(data.toString("binary", p2, idxamp)); + if (idxamp > p3) { + key = this._key += this.decoder.write(data.toString("binary", p3, idxamp)); } else { key = this._key; } @@ -3635,33 +3500,33 @@ var require_urlencoded = __commonJS({ false ); } - p2 = idxamp + 1; + p3 = idxamp + 1; if (this._fields === this.fieldsLimit) { return cb(); } } else if (this._hitLimit) { - if (i2 > p2) { - this._key += this.decoder.write(data.toString("binary", p2, i2)); + if (i3 > p3) { + this._key += this.decoder.write(data.toString("binary", p3, i3)); } - p2 = i2; + p3 = i3; if ((this._bytesKey = this._key.length) === this.fieldNameSizeLimit) { this._checkingBytes = false; this._keyTrunc = true; } } else { - if (p2 < len) { - this._key += this.decoder.write(data.toString("binary", p2)); + if (p3 < len) { + this._key += this.decoder.write(data.toString("binary", p3)); } - p2 = len; + p3 = len; } } else { idxamp = void 0; - for (i2 = p2; i2 < len; ++i2) { + for (i3 = p3; i3 < len; ++i3) { if (!this._checkingBytes) { - ++p2; + ++p3; } - if (data[i2] === 38) { - idxamp = i2; + if (data[i3] === 38) { + idxamp = i3; break; } if (this._checkingBytes && this._bytesVal === this.fieldSizeLimit) { @@ -3673,8 +3538,8 @@ var require_urlencoded = __commonJS({ } if (idxamp !== void 0) { ++this._fields; - if (idxamp > p2) { - this._val += this.decoder.write(data.toString("binary", p2, idxamp)); + if (idxamp > p3) { + this._val += this.decoder.write(data.toString("binary", p3, idxamp)); } this.boy.emit( "field", @@ -3690,24 +3555,24 @@ var require_urlencoded = __commonJS({ this._bytesKey = 0; this._keyTrunc = false; this.decoder.reset(); - p2 = idxamp + 1; + p3 = idxamp + 1; if (this._fields === this.fieldsLimit) { return cb(); } } else if (this._hitLimit) { - if (i2 > p2) { - this._val += this.decoder.write(data.toString("binary", p2, i2)); + if (i3 > p3) { + this._val += this.decoder.write(data.toString("binary", p3, i3)); } - p2 = i2; + p3 = i3; if (this._val === "" && this.fieldSizeLimit === 0 || (this._bytesVal = this._val.length) === this.fieldSizeLimit) { this._checkingBytes = false; this._valTrunc = true; } } else { - if (p2 < len) { - this._val += this.decoder.write(data.toString("binary", p2)); + if (p3 < len) { + this._val += this.decoder.write(data.toString("binary", p3)); } - p2 = len; + p3 = len; } } } @@ -3826,8 +3691,10 @@ var require_constants = __commonJS({ "use strict"; var { MessageChannel, receiveMessageOnPort } = __require("worker_threads"); var corsSafeListedMethods = ["GET", "HEAD", "POST"]; + var corsSafeListedMethodsSet = new Set(corsSafeListedMethods); var nullBodyStatus = [101, 204, 205, 304]; var redirectStatus = [301, 302, 303, 307, 308]; + var redirectStatusSet = new Set(redirectStatus); var badPorts = [ "1", "7", @@ -3910,6 +3777,7 @@ var require_constants = __commonJS({ "6697", "10080" ]; + var badPortsSet = new Set(badPorts); var referrerPolicy = [ "", "no-referrer", @@ -3921,8 +3789,10 @@ var require_constants = __commonJS({ "strict-origin-when-cross-origin", "unsafe-url" ]; + var referrerPolicySet = new Set(referrerPolicy); var requestRedirect = ["follow", "manual", "error"]; var safeMethods = ["GET", "HEAD", "OPTIONS", "TRACE"]; + var safeMethodsSet = new Set(safeMethods); var requestMode = ["navigate", "same-origin", "no-cors", "cors"]; var requestCredentials = ["omit", "same-origin", "include"]; var requestCache = [ @@ -3948,6 +3818,7 @@ var require_constants = __commonJS({ "half" ]; var forbiddenMethods = ["CONNECT", "TRACE", "TRACK"]; + var forbiddenMethodsSet = new Set(forbiddenMethods); var subresource = [ "audio", "audioworklet", @@ -3962,6 +3833,7 @@ var require_constants = __commonJS({ "xslt", "" ]; + var subresourceSet = new Set(subresource); var DOMException2 = globalThis.DOMException ?? (() => { try { atob("~"); @@ -4000,13 +3872,20 @@ var require_constants = __commonJS({ nullBodyStatus, safeMethods, badPorts, - requestDuplex + requestDuplex, + subresourceSet, + badPortsSet, + redirectStatusSet, + corsSafeListedMethodsSet, + safeMethodsSet, + forbiddenMethodsSet, + referrerPolicySet }; } }); // node_modules/undici/lib/fetch/global.js -var require_global2 = __commonJS({ +var require_global = __commonJS({ "node_modules/undici/lib/fetch/global.js"(exports, module) { "use strict"; var globalOrigin = Symbol.for("undici.globalOrigin.1"); @@ -4045,8 +3924,8 @@ var require_global2 = __commonJS({ var require_util2 = __commonJS({ "node_modules/undici/lib/fetch/util.js"(exports, module) { "use strict"; - var { redirectStatus, badPorts, referrerPolicy: referrerPolicyTokens } = require_constants(); - var { getGlobalOrigin } = require_global2(); + var { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = require_constants(); + var { getGlobalOrigin } = require_global(); var { performance: performance2 } = __require("perf_hooks"); var { isBlobLike, toUSVString, ReadableStreamFrom } = require_util(); var assert = __require("assert"); @@ -4062,7 +3941,7 @@ var require_util2 = __commonJS({ return length === 0 ? null : urlList[length - 1].toString(); } function responseLocationURL(response, requestFragment) { - if (!redirectStatus.includes(response.status)) { + if (!redirectStatusSet.has(response.status)) { return null; } let location = response.headersList.get("location"); @@ -4079,7 +3958,7 @@ var require_util2 = __commonJS({ } function requestBadPort(request) { const url2 = requestCurrentURL(request); - if (urlIsHttpHttpsScheme(url2) && badPorts.includes(url2.port)) { + if (urlIsHttpHttpsScheme(url2) && badPortsSet.has(url2.port)) { return "blocked"; } return "allowed"; @@ -4088,35 +3967,52 @@ var require_util2 = __commonJS({ return object instanceof Error || (object?.constructor?.name === "Error" || object?.constructor?.name === "DOMException"); } function isValidReasonPhrase(statusText) { - for (let i2 = 0; i2 < statusText.length; ++i2) { - const c2 = statusText.charCodeAt(i2); - if (!(c2 === 9 || // HTAB - c2 >= 32 && c2 <= 126 || // SP / VCHAR - c2 >= 128 && c2 <= 255)) { + for (let i3 = 0; i3 < statusText.length; ++i3) { + const c3 = statusText.charCodeAt(i3); + if (!(c3 === 9 || // HTAB + c3 >= 32 && c3 <= 126 || // SP / VCHAR + c3 >= 128 && c3 <= 255)) { return false; } } return true; } - function isTokenChar(c2) { - return !(c2 >= 127 || c2 <= 32 || c2 === "(" || c2 === ")" || c2 === "<" || c2 === ">" || c2 === "@" || c2 === "," || c2 === ";" || c2 === ":" || c2 === "\\" || c2 === '"' || c2 === "/" || c2 === "[" || c2 === "]" || c2 === "?" || c2 === "=" || c2 === "{" || c2 === "}"); + function isTokenCharCode(c3) { + switch (c3) { + case 34: + case 40: + case 41: + case 44: + case 47: + case 58: + case 59: + case 60: + case 61: + case 62: + case 63: + case 64: + case 91: + case 92: + case 93: + case 123: + case 125: + return false; + default: + return c3 >= 33 && c3 <= 126; + } } function isValidHTTPToken(characters) { - if (!characters || typeof characters !== "string") { + if (characters.length === 0) { return false; } - for (let i2 = 0; i2 < characters.length; ++i2) { - const c2 = characters.charCodeAt(i2); - if (c2 > 127 || !isTokenChar(c2)) { + for (let i3 = 0; i3 < characters.length; ++i3) { + if (!isTokenCharCode(characters.charCodeAt(i3))) { return false; } } return true; } function isValidHeaderName(potentialValue) { - if (potentialValue.length === 0) { - return false; - } return isValidHTTPToken(potentialValue); } function isValidHeaderValue(potentialValue) { @@ -4133,9 +4029,9 @@ var require_util2 = __commonJS({ const policyHeader = (headersList.get("referrer-policy") ?? "").split(","); let policy = ""; if (policyHeader.length > 0) { - for (let i2 = policyHeader.length; i2 !== 0; i2--) { - const token = policyHeader[i2 - 1].trim(); - if (referrerPolicyTokens.includes(token)) { + for (let i3 = policyHeader.length; i3 !== 0; i3--) { + const token = policyHeader[i3 - 1].trim(); + if (referrerPolicyTokens.has(token)) { policy = token; break; } @@ -4312,7 +4208,7 @@ var require_util2 = __commonJS({ if (parsedMetadata.length === 0) { return true; } - const list3 = parsedMetadata.sort((c2, d2) => d2.algo.localeCompare(c2.algo)); + const list3 = parsedMetadata.sort((c3, d3) => d3.algo.localeCompare(c3.algo)); const strongest = list3[0].algo; const metadata3 = list3.filter((item) => item.algo === strongest); for (const item of metadata3) { @@ -4361,11 +4257,11 @@ var require_util2 = __commonJS({ } function tryUpgradeRequestToAPotentiallyTrustworthyURL(request) { } - function sameOrigin(A2, B2) { - if (A2.origin === B2.origin && A2.origin === "null") { + function sameOrigin(A3, B3) { + if (A3.origin === B3.origin && A3.origin === "null") { return true; } - if (A2.protocol === B2.protocol && A2.hostname === B2.hostname && A2.port === B2.port) { + if (A3.protocol === B3.protocol && A3.hostname === B3.hostname && A3.port === B3.port) { return true; } return false; @@ -4373,8 +4269,8 @@ var require_util2 = __commonJS({ function createDeferredPromise() { let res; let rej; - const promise = new Promise((resolve2, reject) => { - res = resolve2; + const promise = new Promise((resolve3, reject) => { + res = resolve3; rej = reject; }); return { promise, resolve: res, reject: rej }; @@ -4385,8 +4281,23 @@ var require_util2 = __commonJS({ function isCancelled(fetchParams) { return fetchParams.controller.state === "aborted" || fetchParams.controller.state === "terminated"; } + var normalizeMethodRecord = { + delete: "DELETE", + DELETE: "DELETE", + get: "GET", + GET: "GET", + head: "HEAD", + HEAD: "HEAD", + options: "OPTIONS", + OPTIONS: "OPTIONS", + post: "POST", + POST: "POST", + put: "PUT", + PUT: "PUT" + }; + Object.setPrototypeOf(normalizeMethodRecord, null); function normalizeMethod(method) { - return /^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(method) ? method.toUpperCase() : method; + return normalizeMethodRecord[method.toLowerCase()] ?? method; } function serializeJavascriptValueToJSONString(value) { const result = JSON.stringify(value); @@ -4403,9 +4314,9 @@ var require_util2 = __commonJS({ kind, target: iterator }; - const i2 = { + const i3 = { next() { - if (Object.getPrototypeOf(this) !== i2) { + if (Object.getPrototypeOf(this) !== i3) { throw new TypeError( `'next' called on an object that does not implement interface ${name2} Iterator.` ); @@ -4424,8 +4335,8 @@ var require_util2 = __commonJS({ // result of concatenating the identifier of the interface and the string " Iterator". [Symbol.toStringTag]: `${name2} Iterator` }; - Object.setPrototypeOf(i2, esIteratorPrototype); - return Object.setPrototypeOf({}, i2); + Object.setPrototypeOf(i3, esIteratorPrototype); + return Object.setPrototypeOf({}, i3); } function iteratorResult(pair, kind) { let result; @@ -4451,15 +4362,15 @@ var require_util2 = __commonJS({ let reader; try { reader = body2.stream.getReader(); - } catch (e2) { - errorSteps(e2); + } catch (e3) { + errorSteps(e3); return; } try { const result = await readAllBytes(reader); successSteps(result); - } catch (e2) { - errorSteps(e2); + } catch (e3) { + errorSteps(e3); } } var ReadableStream = globalThis.ReadableStream; @@ -4486,8 +4397,8 @@ var require_util2 = __commonJS({ } } function isomorphicEncode(input) { - for (let i2 = 0; i2 < input.length; i2++) { - assert(input.charCodeAt(i2) <= 255); + for (let i3 = 0; i3 < input.length; i3++) { + assert(input.charCodeAt(i3) <= 255); } return input; } @@ -4566,7 +4477,8 @@ var require_util2 = __commonJS({ urlIsLocal, urlHasHttpsScheme, urlIsHttpHttpsScheme, - readAllBytes + readAllBytes, + normalizeMethodRecord }; } }); @@ -4674,51 +4586,51 @@ var require_webidl = __commonJS({ lowerBound = Math.pow(-2, bitLength) - 1; upperBound = Math.pow(2, bitLength - 1) - 1; } - let x2 = Number(V2); - if (x2 === 0) { - x2 = 0; + let x3 = Number(V2); + if (x3 === 0) { + x3 = 0; } if (opts.enforceRange === true) { - if (Number.isNaN(x2) || x2 === Number.POSITIVE_INFINITY || x2 === Number.NEGATIVE_INFINITY) { + if (Number.isNaN(x3) || x3 === Number.POSITIVE_INFINITY || x3 === Number.NEGATIVE_INFINITY) { throw webidl.errors.exception({ header: "Integer conversion", message: `Could not convert ${V2} to an integer.` }); } - x2 = webidl.util.IntegerPart(x2); - if (x2 < lowerBound || x2 > upperBound) { + x3 = webidl.util.IntegerPart(x3); + if (x3 < lowerBound || x3 > upperBound) { throw webidl.errors.exception({ header: "Integer conversion", - message: `Value must be between ${lowerBound}-${upperBound}, got ${x2}.` + message: `Value must be between ${lowerBound}-${upperBound}, got ${x3}.` }); } - return x2; + return x3; } - if (!Number.isNaN(x2) && opts.clamp === true) { - x2 = Math.min(Math.max(x2, lowerBound), upperBound); - if (Math.floor(x2) % 2 === 0) { - x2 = Math.floor(x2); + if (!Number.isNaN(x3) && opts.clamp === true) { + x3 = Math.min(Math.max(x3, lowerBound), upperBound); + if (Math.floor(x3) % 2 === 0) { + x3 = Math.floor(x3); } else { - x2 = Math.ceil(x2); + x3 = Math.ceil(x3); } - return x2; + return x3; } - if (Number.isNaN(x2) || x2 === 0 && Object.is(0, x2) || x2 === Number.POSITIVE_INFINITY || x2 === Number.NEGATIVE_INFINITY) { + if (Number.isNaN(x3) || x3 === 0 && Object.is(0, x3) || x3 === Number.POSITIVE_INFINITY || x3 === Number.NEGATIVE_INFINITY) { return 0; } - x2 = webidl.util.IntegerPart(x2); - x2 = x2 % Math.pow(2, bitLength); - if (signedness === "signed" && x2 >= Math.pow(2, bitLength) - 1) { - return x2 - Math.pow(2, bitLength); + x3 = webidl.util.IntegerPart(x3); + x3 = x3 % Math.pow(2, bitLength); + if (signedness === "signed" && x3 >= Math.pow(2, bitLength) - 1) { + return x3 - Math.pow(2, bitLength); } - return x2; + return x3; }; - webidl.util.IntegerPart = function(n2) { - const r2 = Math.floor(Math.abs(n2)); - if (n2 < 0) { - return -1 * r2; + webidl.util.IntegerPart = function(n3) { + const r3 = Math.floor(Math.abs(n3)); + if (n3 < 0) { + return -1 * r3; } - return r2; + return r3; }; webidl.sequenceConverter = function(converter) { return (V2) => { @@ -4747,41 +4659,41 @@ var require_webidl = __commonJS({ }; }; webidl.recordConverter = function(keyConverter, valueConverter) { - return (O2) => { - if (webidl.util.Type(O2) !== "Object") { + return (O3) => { + if (webidl.util.Type(O3) !== "Object") { throw webidl.errors.exception({ header: "Record", - message: `Value of type ${webidl.util.Type(O2)} is not an Object.` + message: `Value of type ${webidl.util.Type(O3)} is not an Object.` }); } const result = {}; - if (!types.isProxy(O2)) { - const keys2 = Object.keys(O2); + if (!types.isProxy(O3)) { + const keys2 = Object.keys(O3); for (const key of keys2) { const typedKey = keyConverter(key); - const typedValue = valueConverter(O2[key]); + const typedValue = valueConverter(O3[key]); result[typedKey] = typedValue; } return result; } - const keys = Reflect.ownKeys(O2); + const keys = Reflect.ownKeys(O3); for (const key of keys) { - const desc = Reflect.getOwnPropertyDescriptor(O2, key); + const desc = Reflect.getOwnPropertyDescriptor(O3, key); if (desc?.enumerable) { const typedKey = keyConverter(key); - const typedValue = valueConverter(O2[key]); + const typedValue = valueConverter(O3[key]); result[typedKey] = typedValue; } } return result; }; }; - webidl.interfaceConverter = function(i2) { + webidl.interfaceConverter = function(i3) { return (V2, opts = {}) => { - if (opts.strict !== false && !(V2 instanceof i2)) { + if (opts.strict !== false && !(V2 instanceof i3)) { throw webidl.errors.exception({ - header: i2.name, - message: `Expected ${V2} to be an instance of ${i2.name}.` + header: i3.name, + message: `Expected ${V2} to be an instance of ${i3.name}.` }); } return V2; @@ -4846,40 +4758,39 @@ var require_webidl = __commonJS({ return String(V2); }; webidl.converters.ByteString = function(V2) { - const x2 = webidl.converters.DOMString(V2); - for (let index = 0; index < x2.length; index++) { - const charCode = x2.charCodeAt(index); - if (charCode > 255) { + const x3 = webidl.converters.DOMString(V2); + for (let index = 0; index < x3.length; index++) { + if (x3.charCodeAt(index) > 255) { throw new TypeError( - `Cannot convert argument to a ByteString because the character at index ${index} has a value of ${charCode} which is greater than 255.` + `Cannot convert argument to a ByteString because the character at index ${index} has a value of ${x3.charCodeAt(index)} which is greater than 255.` ); } } - return x2; + return x3; }; webidl.converters.USVString = toUSVString; webidl.converters.boolean = function(V2) { - const x2 = Boolean(V2); - return x2; + const x3 = Boolean(V2); + return x3; }; webidl.converters.any = function(V2) { return V2; }; webidl.converters["long long"] = function(V2) { - const x2 = webidl.util.ConvertToInt(V2, 64, "signed"); - return x2; + const x3 = webidl.util.ConvertToInt(V2, 64, "signed"); + return x3; }; webidl.converters["unsigned long long"] = function(V2) { - const x2 = webidl.util.ConvertToInt(V2, 64, "unsigned"); - return x2; + const x3 = webidl.util.ConvertToInt(V2, 64, "unsigned"); + return x3; }; webidl.converters["unsigned long"] = function(V2) { - const x2 = webidl.util.ConvertToInt(V2, 32, "unsigned"); - return x2; + const x3 = webidl.util.ConvertToInt(V2, 32, "unsigned"); + return x3; }; webidl.converters["unsigned short"] = function(V2, opts) { - const x2 = webidl.util.ConvertToInt(V2, 16, "unsigned", opts); - return x2; + const x3 = webidl.util.ConvertToInt(V2, 16, "unsigned", opts); + return x3; }; webidl.converters.ArrayBuffer = function(V2, opts = {}) { if (webidl.util.Type(V2) !== "Object" || !types.isAnyArrayBuffer(V2)) { @@ -4897,12 +4808,12 @@ var require_webidl = __commonJS({ } return V2; }; - webidl.converters.TypedArray = function(V2, T2, opts = {}) { - if (webidl.util.Type(V2) !== "Object" || !types.isTypedArray(V2) || V2.constructor.name !== T2.name) { + webidl.converters.TypedArray = function(V2, T3, opts = {}) { + if (webidl.util.Type(V2) !== "Object" || !types.isTypedArray(V2) || V2.constructor.name !== T3.name) { throw webidl.errors.conversionFailed({ - prefix: `${T2.name}`, + prefix: `${T3.name}`, argument: `${V2}`, - types: [T2.name] + types: [T3.name] }); } if (opts.allowShared === false && types.isSharedArrayBuffer(V2.buffer)) { @@ -5004,15 +4915,12 @@ var require_dataURL = __commonJS({ return { mimeType: mimeTypeRecord, body: body2 }; } function URLSerializer(url2, excludeFragment = false) { - const href = url2.href; if (!excludeFragment) { - return href; + return url2.href; } - const hash = href.lastIndexOf("#"); - if (hash === -1) { - return href; - } - return href.slice(0, hash); + const href = url2.href; + const hashLength = url2.hash.length; + return hashLength === 0 ? href : href.substring(0, href.length - hashLength); } function collectASequenceOfCodePoints(condition, input, position) { let result = ""; @@ -5038,17 +4946,17 @@ var require_dataURL = __commonJS({ } function percentDecode(input) { const output = []; - for (let i2 = 0; i2 < input.length; i2++) { - const byte = input[i2]; + for (let i3 = 0; i3 < input.length; i3++) { + const byte = input[i3]; if (byte !== 37) { output.push(byte); - } else if (byte === 37 && !/^[0-9A-Fa-f]{2}$/i.test(String.fromCharCode(input[i2 + 1], input[i2 + 2]))) { + } else if (byte === 37 && !/^[0-9A-Fa-f]{2}$/i.test(String.fromCharCode(input[i3 + 1], input[i3 + 2]))) { output.push(37); } else { - const nextTwoBytes = String.fromCharCode(input[i2 + 1], input[i2 + 2]); + const nextTwoBytes = String.fromCharCode(input[i3 + 1], input[i3 + 2]); const bytePoint = Number.parseInt(nextTwoBytes, 16); output.push(bytePoint); - i2 += 2; + i3 += 2; } } return Uint8Array.from(output); @@ -5259,31 +5167,32 @@ var require_file = __commonJS({ var { webidl } = require_webidl(); var { parseMIMEType, serializeAMimeType } = require_dataURL(); var { kEnumerableProperty } = require_util(); + var encoder = new TextEncoder(); var File = class _File extends Blob4 { constructor(fileBits, fileName, options = {}) { webidl.argumentLengthCheck(arguments, 2, { header: "File constructor" }); fileBits = webidl.converters["sequence"](fileBits); fileName = webidl.converters.USVString(fileName); options = webidl.converters.FilePropertyBag(options); - const n2 = fileName; - let t2 = options.type; - let d2; + const n3 = fileName; + let t3 = options.type; + let d3; substep: { - if (t2) { - t2 = parseMIMEType(t2); - if (t2 === "failure") { - t2 = ""; + if (t3) { + t3 = parseMIMEType(t3); + if (t3 === "failure") { + t3 = ""; break substep; } - t2 = serializeAMimeType(t2).toLowerCase(); + t3 = serializeAMimeType(t3).toLowerCase(); } - d2 = options.lastModified; + d3 = options.lastModified; } - super(processBlobParts(fileBits, options), { type: t2 }); + super(processBlobParts(fileBits, options), { type: t3 }); this[kState] = { - name: n2, - lastModified: d2, - type: t2 + name: n3, + lastModified: d3, + type: t3 }; } get name() { @@ -5301,14 +5210,14 @@ var require_file = __commonJS({ }; var FileLike = class _FileLike { constructor(blobLike, fileName, options = {}) { - const n2 = fileName; - const t2 = options.type; - const d2 = options.lastModified ?? Date.now(); + const n3 = fileName; + const t3 = options.type; + const d3 = options.lastModified ?? Date.now(); this[kState] = { blobLike, - name: n2, - type: t2, - lastModified: d2 + name: n3, + type: t3, + lastModified: d3 }; } stream(...args) { @@ -5400,11 +5309,11 @@ var require_file = __commonJS({ const bytes = []; for (const element of parts) { if (typeof element === "string") { - let s2 = element; + let s3 = element; if (options.endings === "native") { - s2 = convertLineEndingsNative(s2); + s3 = convertLineEndingsNative(s3); } - bytes.push(new TextEncoder().encode(s2)); + bytes.push(encoder.encode(s3)); } else if (types.isAnyArrayBuffer(element) || types.isTypedArray(element)) { if (!element.buffer) { bytes.push(new Uint8Array(element)); @@ -5419,12 +5328,12 @@ var require_file = __commonJS({ } return bytes; } - function convertLineEndingsNative(s2) { + function convertLineEndingsNative(s3) { let nativeLineEnding = "\n"; if (process.platform === "win32") { nativeLineEnding = "\r\n"; } - return s2.replace(/\r?\n/g, nativeLineEnding); + return s3.replace(/\r?\n/g, nativeLineEnding); } function isFileLike(object) { return NativeFile && object instanceof NativeFile || object instanceof File || object && (typeof object.stream === "function" || typeof object.arrayBuffer === "function") && object[Symbol.toStringTag] === "File"; @@ -5616,6 +5525,8 @@ var require_body = __commonJS({ var { parseMIMEType, serializeAMimeType } = require_dataURL(); var ReadableStream = globalThis.ReadableStream; var File = NativeFile ?? UndiciFile; + var textEncoder = new TextEncoder(); + var textDecoder = new TextDecoder(); function extractBody(object, keepalive = false) { if (!ReadableStream) { ReadableStream = __require("stream/web").ReadableStream; @@ -5629,7 +5540,7 @@ var require_body = __commonJS({ stream = new ReadableStream({ async pull(controller) { controller.enqueue( - typeof source === "string" ? new TextEncoder().encode(source) : source + typeof source === "string" ? textEncoder.encode(source) : source ); queueMicrotask(() => readableStreamClose(controller)); }, @@ -5660,21 +5571,20 @@ Content-Disposition: form-data`; /*! formdata-polyfill. MIT License. Jimmy Wärting */ const escape2 = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"); const normalizeLinefeeds = (value) => value.replace(/\r?\n|\r/g, "\r\n"); - const enc = new TextEncoder(); const blobParts = []; const rn2 = new Uint8Array([13, 10]); length = 0; let hasUnknownSizeValue = false; for (const [name2, value] of object) { if (typeof value === "string") { - const chunk2 = enc.encode(prefix2 + `; name="${escape2(normalizeLinefeeds(name2))}"\r + const chunk2 = textEncoder.encode(prefix2 + `; name="${escape2(normalizeLinefeeds(name2))}"\r \r ${normalizeLinefeeds(value)}\r `); blobParts.push(chunk2); length += chunk2.byteLength; } else { - const chunk2 = enc.encode(`${prefix2}; name="${escape2(normalizeLinefeeds(name2))}"` + (value.name ? `; filename="${escape2(value.name)}"` : "") + `\r + const chunk2 = textEncoder.encode(`${prefix2}; name="${escape2(normalizeLinefeeds(name2))}"` + (value.name ? `; filename="${escape2(value.name)}"` : "") + `\r Content-Type: ${value.type || "application/octet-stream"}\r \r `); @@ -5686,7 +5596,7 @@ Content-Type: ${value.type || "application/octet-stream"}\r } } } - const chunk = enc.encode(`--${boundary}--`); + const chunk = textEncoder.encode(`--${boundary}--`); blobParts.push(chunk); length += chunk.byteLength; if (hasUnknownSizeValue) { @@ -5862,8 +5772,8 @@ Content-Type: ${value.type || "application/octet-stream"}\r }); } }); - const busboyResolve = new Promise((resolve2, reject) => { - busboy.on("finish", resolve2); + const busboyResolve = new Promise((resolve3, reject) => { + busboy.on("finish", resolve3); busboy.on("error", (err) => reject(new TypeError(err))); }); if (this.body !== null) @@ -5876,14 +5786,14 @@ Content-Type: ${value.type || "application/octet-stream"}\r let entries; try { let text = ""; - const textDecoder = new TextDecoder("utf-8", { ignoreBOM: true }); + const streamingDecoder = new TextDecoder("utf-8", { ignoreBOM: true }); for await (const chunk of consumeBody2(this[kState].body)) { if (!isUint8Array(chunk)) { throw new TypeError("Expected Uint8Array chunk"); } - text += textDecoder.decode(chunk, { stream: true }); + text += streamingDecoder.decode(chunk, { stream: true }); } - text += textDecoder.decode(); + text += streamingDecoder.decode(); entries = new URLSearchParams(text); } catch (err) { throw Object.assign(new TypeError(), { cause: err }); @@ -5919,8 +5829,8 @@ Content-Type: ${value.type || "application/octet-stream"}\r const successSteps = (data) => { try { promise.resolve(convertBytesToJSValue(data)); - } catch (e2) { - errorSteps(e2); + } catch (e3) { + errorSteps(e3); } }; if (object[kState].body == null) { @@ -5940,7 +5850,7 @@ Content-Type: ${value.type || "application/octet-stream"}\r if (buffer[0] === 239 && buffer[1] === 187 && buffer[2] === 191) { buffer = buffer.subarray(3); } - const output = new TextDecoder().decode(buffer); + const output = textDecoder.decode(buffer); return output; } function parseJSONFromBytes(bytes) { @@ -5996,7 +5906,7 @@ var require_request = __commonJS({ } var Request2 = class _Request { constructor(origin, { - path: path14, + path: path15, method, body: body2, headers, @@ -6010,11 +5920,11 @@ var require_request = __commonJS({ throwOnError, expectContinue }, handler) { - if (typeof path14 !== "string") { + if (typeof path15 !== "string") { throw new InvalidArgumentError("path must be a string"); - } else if (path14[0] !== "/" && !(path14.startsWith("http://") || path14.startsWith("https://")) && method !== "CONNECT") { + } else if (path15[0] !== "/" && !(path15.startsWith("http://") || path15.startsWith("https://")) && method !== "CONNECT") { throw new InvalidArgumentError("path must be an absolute URL or start with a slash"); - } else if (invalidPathRegex.exec(path14) !== null) { + } else if (invalidPathRegex.exec(path15) !== null) { throw new InvalidArgumentError("invalid request path"); } if (typeof method !== "string") { @@ -6041,10 +5951,26 @@ var require_request = __commonJS({ this.bodyTimeout = bodyTimeout; this.throwOnError = throwOnError === true; this.method = method; + this.abort = null; if (body2 == null) { this.body = null; } else if (util3.isStream(body2)) { this.body = body2; + const rState = this.body._readableState; + if (!rState || !rState.autoDestroy) { + this.endHandler = function autoDestroy() { + util3.destroy(this); + }; + this.body.on("end", this.endHandler); + } + this.errorHandler = (err) => { + if (this.abort) { + this.abort(err); + } else { + this.error = err; + } + }; + this.body.on("error", this.errorHandler); } else if (util3.isBuffer(body2)) { this.body = body2.byteLength ? body2 : null; } else if (ArrayBuffer.isView(body2)) { @@ -6061,7 +5987,7 @@ var require_request = __commonJS({ this.completed = false; this.aborted = false; this.upgrade = upgrade || null; - this.path = query ? util3.buildURL(path14, query) : path14; + this.path = query ? util3.buildURL(path15, query) : path15; this.origin = origin; this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent; this.blocking = blocking == null ? false : blocking; @@ -6075,13 +6001,13 @@ var require_request = __commonJS({ if (headers.length % 2 !== 0) { throw new InvalidArgumentError("headers array must be even"); } - for (let i2 = 0; i2 < headers.length; i2 += 2) { - processHeader(this, headers[i2], headers[i2 + 1]); + for (let i3 = 0; i3 < headers.length; i3 += 2) { + processHeader(this, headers[i3], headers[i3 + 1]); } } else if (headers && typeof headers === "object") { const keys = Object.keys(headers); - for (let i2 = 0; i2 < keys.length; i2++) { - const key = keys[i2]; + for (let i3 = 0; i3 < keys.length; i3++) { + const key = keys[i3]; processHeader(this, key, headers[key]); } } else if (headers != null) { @@ -6117,9 +6043,9 @@ var require_request = __commonJS({ onBodySent(chunk) { if (this[kHandler].onBodySent) { try { - this[kHandler].onBodySent(chunk); + return this[kHandler].onBodySent(chunk); } catch (err) { - this.onError(err); + this.abort(err); } } } @@ -6127,11 +6053,23 @@ var require_request = __commonJS({ if (channels.bodySent.hasSubscribers) { channels.bodySent.publish({ request: this }); } + if (this[kHandler].onRequestSent) { + try { + return this[kHandler].onRequestSent(); + } catch (err) { + this.abort(err); + } + } } onConnect(abort) { assert(!this.aborted); assert(!this.completed); - return this[kHandler].onConnect(abort); + if (this.error) { + abort(this.error); + } else { + this.abort = abort; + return this[kHandler].onConnect(abort); + } } onHeaders(statusCode, headers, resume, statusText) { assert(!this.aborted); @@ -6139,12 +6077,21 @@ var require_request = __commonJS({ if (channels.headers.hasSubscribers) { channels.headers.publish({ request: this, response: { statusCode, headers, statusText } }); } - return this[kHandler].onHeaders(statusCode, headers, resume, statusText); + try { + return this[kHandler].onHeaders(statusCode, headers, resume, statusText); + } catch (err) { + this.abort(err); + } } onData(chunk) { assert(!this.aborted); assert(!this.completed); - return this[kHandler].onData(chunk); + try { + return this[kHandler].onData(chunk); + } catch (err) { + this.abort(err); + return false; + } } onUpgrade(statusCode, headers, socket) { assert(!this.aborted); @@ -6152,14 +6099,20 @@ var require_request = __commonJS({ return this[kHandler].onUpgrade(statusCode, headers, socket); } onComplete(trailers) { + this.onFinally(); assert(!this.aborted); this.completed = true; if (channels.trailers.hasSubscribers) { channels.trailers.publish({ request: this, trailers }); } - return this[kHandler].onComplete(trailers); + try { + return this[kHandler].onComplete(trailers); + } catch (err) { + this.onError(err); + } } onError(error) { + this.onFinally(); if (channels.error.hasSubscribers) { channels.error.publish({ request: this, error }); } @@ -6169,6 +6122,16 @@ var require_request = __commonJS({ this.aborted = true; return this[kHandler].onError(error); } + onFinally() { + if (this.errorHandler) { + this.body.off("error", this.errorHandler); + this.errorHandler = null; + } + if (this.endHandler) { + this.body.off("end", this.endHandler); + this.endHandler = null; + } + } // TODO: adjust to support H2 addHeader(key, value) { processHeader(this, key, value); @@ -6186,13 +6149,13 @@ var require_request = __commonJS({ if (headers.length % 2 !== 0) { throw new InvalidArgumentError("headers array must be even"); } - for (let i2 = 0; i2 < headers.length; i2 += 2) { - processHeader(request, headers[i2], headers[i2 + 1], true); + for (let i3 = 0; i3 < headers.length; i3 += 2) { + processHeader(request, headers[i3], headers[i3 + 1], true); } } else if (headers && typeof headers === "object") { const keys = Object.keys(headers); - for (let i2 = 0; i2 < keys.length; i2++) { - const key = keys[i2]; + for (let i3 = 0; i3 < keys.length; i3++) { + const key = keys[i3]; processHeader(request, key, headers[key], true); } } else if (headers != null) { @@ -6267,14 +6230,14 @@ var require_request = __commonJS({ throw new InvalidArgumentError("invalid header key"); } else { if (Array.isArray(val)) { - for (let i2 = 0; i2 < val.length; i2++) { + for (let i3 = 0; i3 < val.length; i3++) { if (skipAppend) { if (request.headers[key]) - request.headers[key] += `,${processHeaderValue(key, val[i2], skipAppend)}`; + request.headers[key] += `,${processHeaderValue(key, val[i3], skipAppend)}`; else - request.headers[key] = processHeaderValue(key, val[i2], skipAppend); + request.headers[key] = processHeaderValue(key, val[i3], skipAppend); } else { - request.headers += processHeaderValue(key, val[i2]); + request.headers += processHeaderValue(key, val[i3]); } } } else { @@ -6344,8 +6307,8 @@ var require_dispatcher_base = __commonJS({ } set interceptors(newInterceptors) { if (newInterceptors) { - for (let i2 = newInterceptors.length - 1; i2 >= 0; i2--) { - const interceptor = this[kInterceptors][i2]; + for (let i3 = newInterceptors.length - 1; i3 >= 0; i3--) { + const interceptor = this[kInterceptors][i3]; if (typeof interceptor !== "function") { throw new InvalidArgumentError("interceptor must be an function"); } @@ -6355,9 +6318,9 @@ var require_dispatcher_base = __commonJS({ } close(callback) { if (callback === void 0) { - return new Promise((resolve2, reject) => { + return new Promise((resolve3, reject) => { this.close((err, data) => { - return err ? reject(err) : resolve2(data); + return err ? reject(err) : resolve3(data); }); }); } @@ -6381,8 +6344,8 @@ var require_dispatcher_base = __commonJS({ const onClosed = () => { const callbacks = this[kOnClosed]; this[kOnClosed] = null; - for (let i2 = 0; i2 < callbacks.length; i2++) { - callbacks[i2](null, null); + for (let i3 = 0; i3 < callbacks.length; i3++) { + callbacks[i3](null, null); } }; this[kClose]().then(() => this.destroy()).then(() => { @@ -6395,12 +6358,12 @@ var require_dispatcher_base = __commonJS({ err = null; } if (callback === void 0) { - return new Promise((resolve2, reject) => { + return new Promise((resolve3, reject) => { this.destroy(err, (err2, data) => { return err2 ? ( /* istanbul ignore next: should never error */ reject(err2) - ) : resolve2(data); + ) : resolve3(data); }); }); } @@ -6424,8 +6387,8 @@ var require_dispatcher_base = __commonJS({ const onDestroyed = () => { const callbacks = this[kOnDestroyed]; this[kOnDestroyed] = null; - for (let i2 = 0; i2 < callbacks.length; i2++) { - callbacks[i2](null, null); + for (let i3 = 0; i3 < callbacks.length; i3++) { + callbacks[i3](null, null); } }; this[kDestroy](err).then(() => { @@ -6438,8 +6401,8 @@ var require_dispatcher_base = __commonJS({ return this[kDispatch](opts, handler); } let dispatch = this[kDispatch].bind(this); - for (let i2 = this[kInterceptors].length - 1; i2 >= 0; i2--) { - dispatch = this[kInterceptors][i2](dispatch); + for (let i3 = this[kInterceptors].length - 1; i3 >= 0; i3--) { + dispatch = this[kInterceptors][i3](dispatch); } this[kInterceptedDispatch] = dispatch; return dispatch(opts, handler); @@ -6605,11 +6568,11 @@ var require_connect = __commonJS({ }; } let s1 = null; - let s2 = null; + let s22 = null; const timeoutId = setTimeout(() => { s1 = setImmediate(() => { if (process.platform === "win32") { - s2 = setImmediate(() => onConnectTimeout2()); + s22 = setImmediate(() => onConnectTimeout2()); } else { onConnectTimeout2(); } @@ -6618,7 +6581,7 @@ var require_connect = __commonJS({ return () => { clearTimeout(timeoutId); clearImmediate(s1); - clearImmediate(s2); + clearImmediate(s22); }; } function onConnectTimeout(socket) { @@ -6828,9 +6791,9 @@ var require_constants2 = __commonJS({ FINISH2[FINISH2["UNSAFE"] = 2] = "UNSAFE"; })(FINISH = exports.FINISH || (exports.FINISH = {})); exports.ALPHA = []; - for (let i2 = "A".charCodeAt(0); i2 <= "Z".charCodeAt(0); i2++) { - exports.ALPHA.push(String.fromCharCode(i2)); - exports.ALPHA.push(String.fromCharCode(i2 + 32)); + for (let i3 = "A".charCodeAt(0); i3 <= "Z".charCodeAt(0); i3++) { + exports.ALPHA.push(String.fromCharCode(i3)); + exports.ALPHA.push(String.fromCharCode(i3 + 32)); } exports.NUM_MAP = { 0: 0, @@ -6916,8 +6879,8 @@ var require_constants2 = __commonJS({ "~" ].concat(exports.ALPHANUM); exports.URL_CHAR = exports.STRICT_URL_CHAR.concat([" ", "\f"]); - for (let i2 = 128; i2 <= 255; i2++) { - exports.URL_CHAR.push(i2); + for (let i3 = 128; i3 <= 255; i3++) { + exports.URL_CHAR.push(i3); } exports.HEX = exports.NUM.concat(["a", "b", "c", "d", "e", "f", "A", "B", "C", "D", "E", "F"]); exports.STRICT_TOKEN = [ @@ -6939,12 +6902,12 @@ var require_constants2 = __commonJS({ ].concat(exports.ALPHANUM); exports.TOKEN = exports.STRICT_TOKEN.concat([" "]); exports.HEADER_CHARS = [" "]; - for (let i2 = 32; i2 <= 255; i2++) { - if (i2 !== 127) { - exports.HEADER_CHARS.push(i2); + for (let i3 = 32; i3 <= 255; i3++) { + if (i3 !== 127) { + exports.HEADER_CHARS.push(i3); } } - exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c2) => c2 !== 44); + exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c3) => c3 !== 44); exports.MAJOR = exports.NUM_MAP; exports.MINOR = exports.MAJOR; var HEADER_STATE; @@ -7041,9 +7004,9 @@ var require_RedirectHandler = __commonJS({ return this.handler.onHeaders(statusCode, headers, resume, statusText); } const { origin, pathname, search } = util3.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin))); - const path14 = search ? `${pathname}${search}` : pathname; + const path15 = search ? `${pathname}${search}` : pathname; this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin); - this.opts.path = path14; + this.opts.path = path15; this.opts.origin = origin; this.opts.maxRedirections = 0; this.opts.query = null; @@ -7077,9 +7040,9 @@ var require_RedirectHandler = __commonJS({ if (redirectableStatusCodes.indexOf(statusCode) === -1) { return null; } - for (let i2 = 0; i2 < headers.length; i2 += 2) { - if (headers[i2].toString().toLowerCase() === "location") { - return headers[i2 + 1]; + for (let i3 = 0; i3 < headers.length; i3 += 2) { + if (headers[i3].toString().toLowerCase() === "location") { + return headers[i3 + 1]; } } } @@ -7089,9 +7052,9 @@ var require_RedirectHandler = __commonJS({ function cleanRequestHeaders(headers, removeContent, unknownOrigin) { const ret = []; if (Array.isArray(headers)) { - for (let i2 = 0; i2 < headers.length; i2 += 2) { - if (!shouldRemoveHeader(headers[i2], removeContent, unknownOrigin)) { - ret.push(headers[i2], headers[i2 + 1]); + for (let i3 = 0; i3 < headers.length; i3 += 2) { + if (!shouldRemoveHeader(headers[i3], removeContent, unknownOrigin)) { + ret.push(headers[i3], headers[i3 + 1]); } } } else if (headers && typeof headers === "object") { @@ -7151,7 +7114,7 @@ var require_client = __commonJS({ "use strict"; var assert = __require("assert"); var net = __require("net"); - var http4 = __require("http"); + var http3 = __require("http"); var { pipeline } = __require("stream"); var util3 = require_util(); var timers = require_timers(); @@ -7373,7 +7336,7 @@ var require_client = __commonJS({ this[kConnector] = connect2; this[kSocket] = null; this[kPipelining] = pipelining != null ? pipelining : 1; - this[kMaxHeadersSize] = maxHeaderSize || http4.maxHeaderSize; + this[kMaxHeadersSize] = maxHeaderSize || http3.maxHeaderSize; this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout; this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 6e5 : keepAliveMaxTimeout; this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 1e3 : keepAliveTimeoutThreshold; @@ -7450,19 +7413,19 @@ var require_client = __commonJS({ return this[kNeedDrain] < 2; } async [kClose]() { - return new Promise((resolve2) => { + return new Promise((resolve3) => { if (!this[kSize]) { - resolve2(null); + resolve3(null); } else { - this[kClosedResolve] = resolve2; + this[kClosedResolve] = resolve3; } }); } async [kDestroy](err) { - return new Promise((resolve2) => { + return new Promise((resolve3) => { const requests = this[kQueue].splice(this[kPendingIdx]); - for (let i2 = 0; i2 < requests.length; i2++) { - const request = requests[i2]; + for (let i3 = 0; i3 < requests.length; i3++) { + const request = requests[i3]; errorRequest(this, request, err); } const callback = () => { @@ -7470,7 +7433,7 @@ var require_client = __commonJS({ this[kClosedResolve](); this[kClosedResolve] = null; } - resolve2(); + resolve3(); }; if (this[kHTTP2Session] != null) { util3.destroy(this[kHTTP2Session], err); @@ -7510,8 +7473,8 @@ var require_client = __commonJS({ if (client.destroyed) { assert(this[kPending] === 0); const requests = client[kQueue].splice(client[kRunningIdx]); - for (let i2 = 0; i2 < requests.length; i2++) { - const request = requests[i2]; + for (let i3 = 0; i3 < requests.length; i3++) { + const request = requests[i3]; errorRequest(this, request, err); } } else if (client[kRunning] > 0) { @@ -7537,45 +7500,45 @@ var require_client = __commonJS({ let mod; try { mod = await WebAssembly.compile(Buffer.from(require_llhttp_simd_wasm(), "base64")); - } catch (e2) { + } catch (e3) { mod = await WebAssembly.compile(Buffer.from(llhttpWasmData || require_llhttp_wasm(), "base64")); } return await WebAssembly.instantiate(mod, { env: { /* eslint-disable camelcase */ - wasm_on_url: (p2, at2, len) => { + wasm_on_url: (p3, at2, len) => { return 0; }, - wasm_on_status: (p2, at2, len) => { - assert.strictEqual(currentParser.ptr, p2); + wasm_on_status: (p3, at2, len) => { + assert.strictEqual(currentParser.ptr, p3); const start = at2 - currentBufferPtr + currentBufferRef.byteOffset; return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0; }, - wasm_on_message_begin: (p2) => { - assert.strictEqual(currentParser.ptr, p2); + wasm_on_message_begin: (p3) => { + assert.strictEqual(currentParser.ptr, p3); return currentParser.onMessageBegin() || 0; }, - wasm_on_header_field: (p2, at2, len) => { - assert.strictEqual(currentParser.ptr, p2); + wasm_on_header_field: (p3, at2, len) => { + assert.strictEqual(currentParser.ptr, p3); const start = at2 - currentBufferPtr + currentBufferRef.byteOffset; return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0; }, - wasm_on_header_value: (p2, at2, len) => { - assert.strictEqual(currentParser.ptr, p2); + wasm_on_header_value: (p3, at2, len) => { + assert.strictEqual(currentParser.ptr, p3); const start = at2 - currentBufferPtr + currentBufferRef.byteOffset; return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0; }, - wasm_on_headers_complete: (p2, statusCode, upgrade, shouldKeepAlive) => { - assert.strictEqual(currentParser.ptr, p2); + wasm_on_headers_complete: (p3, statusCode, upgrade, shouldKeepAlive) => { + assert.strictEqual(currentParser.ptr, p3); return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0; }, - wasm_on_body: (p2, at2, len) => { - assert.strictEqual(currentParser.ptr, p2); + wasm_on_body: (p3, at2, len) => { + assert.strictEqual(currentParser.ptr, p3); const start = at2 - currentBufferPtr + currentBufferRef.byteOffset; return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0; }, - wasm_on_message_complete: (p2) => { - assert.strictEqual(currentParser.ptr, p2); + wasm_on_message_complete: (p3) => { + assert.strictEqual(currentParser.ptr, p3); return currentParser.onMessageComplete() || 0; } /* eslint-enable camelcase */ @@ -7856,11 +7819,8 @@ var require_client = __commonJS({ } else { socket[kReset] = true; } - let pause; - try { - pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false; - } catch (err) { - util3.destroy(socket, err); + const pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false; + if (request.aborted) { return -1; } if (request.method === "HEAD") { @@ -7894,13 +7854,8 @@ var require_client = __commonJS({ return -1; } this.bytesRead += buf.length; - try { - if (request.onData(buf) === false) { - return constants.ERROR.PAUSED; - } - } catch (err) { - util3.destroy(socket, err); - return -1; + if (request.onData(buf) === false) { + return constants.ERROR.PAUSED; } } onMessageComplete() { @@ -7930,11 +7885,7 @@ var require_client = __commonJS({ util3.destroy(socket, new ResponseContentLengthMismatchError()); return -1; } - try { - request.onComplete(headers); - } catch (err) { - errorRequest(client, request, err); - } + request.onComplete(headers); client[kQueue][client[kRunningIdx]++] = null; if (socket[kWriting]) { assert.strictEqual(client[kRunning], 0); @@ -7971,7 +7922,9 @@ var require_client = __commonJS({ } function onSocketReadable() { const { [kParser]: parser } = this; - parser.readMore(); + if (parser) { + parser.readMore(); + } } function onSocketError(err) { const { [kClient]: client, [kParser]: parser } = this; @@ -7989,8 +7942,8 @@ var require_client = __commonJS({ if (client[kRunning] === 0 && err.code !== "UND_ERR_INFO" && err.code !== "UND_ERR_SOCKET") { assert(client[kPendingIdx] === client[kRunningIdx]); const requests = client[kQueue].splice(client[kRunningIdx]); - for (let i2 = 0; i2 < requests.length; i2++) { - const request = requests[i2]; + for (let i3 = 0; i3 < requests.length; i3++) { + const request = requests[i3]; errorRequest(client, request, err); } assert(client[kSize] === 0); @@ -8020,8 +7973,8 @@ var require_client = __commonJS({ if (client.destroyed) { assert(client[kPending] === 0); const requests = client[kQueue].splice(client[kRunningIdx]); - for (let i2 = 0; i2 < requests.length; i2++) { - const request = requests[i2]; + for (let i3 = 0; i3 < requests.length; i3++) { + const request = requests[i3]; errorRequest(client, request, err); } } else if (client[kRunning] > 0 && err.code !== "UND_ERR_INFO") { @@ -8041,7 +7994,7 @@ var require_client = __commonJS({ if (hostname[0] === "[") { const idx = hostname.indexOf("]"); assert(idx !== -1); - const ip = hostname.substr(1, idx - 1); + const ip = hostname.substring(1, idx); assert(net.isIP(ip)); hostname = ip; } @@ -8060,7 +8013,7 @@ var require_client = __commonJS({ }); } try { - const socket = await new Promise((resolve2, reject) => { + const socket = await new Promise((resolve3, reject) => { client[kConnector]({ host, hostname, @@ -8072,7 +8025,7 @@ var require_client = __commonJS({ if (err) { reject(err); } else { - resolve2(socket2); + resolve3(socket2); } }); }); @@ -8265,21 +8218,7 @@ var require_client = __commonJS({ if (client[kRunning] > 0 && (request.upgrade || request.method === "CONNECT")) { return; } - if (util3.isStream(request.body) && util3.bodyLength(request.body) === 0) { - request.body.on( - "data", - /* istanbul ignore next */ - function() { - assert(false); - } - ).on("error", function(err) { - errorRequest(client, request, err); - }).on("end", function() { - util3.destroy(this); - }); - request.body = null; - } - if (client[kRunning] > 0 && (util3.isStream(request.body) || util3.isAsyncIterable(request.body))) { + if (client[kRunning] > 0 && util3.bodyLength(request.body) !== 0 && (util3.isStream(request.body) || util3.isAsyncIterable(request.body))) { return; } if (!request.aborted && write(client, request)) { @@ -8289,24 +8228,28 @@ var require_client = __commonJS({ } } } + function shouldSendContentLength(method) { + return method !== "GET" && method !== "HEAD" && method !== "OPTIONS" && method !== "TRACE" && method !== "CONNECT"; + } function write(client, request) { if (client[kHTTPConnVersion] === "h2") { writeH2(client, client[kHTTP2Session], request); return; } - const { body: body2, method, path: path14, host, upgrade, headers, blocking, reset } = request; + const { body: body2, method, path: path15, host, upgrade, headers, blocking, reset } = request; const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH"; if (body2 && typeof body2.read === "function") { body2.read(0); } - let contentLength2 = util3.bodyLength(body2); + const bodyLength = util3.bodyLength(body2); + let contentLength2 = bodyLength; if (contentLength2 === null) { contentLength2 = request.contentLength; } if (contentLength2 === 0 && !expectsPayload) { contentLength2 = null; } - if (request.contentLength !== null && request.contentLength !== contentLength2) { + if (shouldSendContentLength(method) && contentLength2 > 0 && request.contentLength !== null && request.contentLength !== contentLength2) { if (client[kStrictContentLength]) { errorRequest(client, request, new RequestContentLengthMismatchError()); return false; @@ -8343,7 +8286,7 @@ var require_client = __commonJS({ if (blocking) { socket[kBlocking] = true; } - let header = `${method} ${path14} HTTP/1.1\r + let header = `${method} ${path15} HTTP/1.1\r `; if (typeof host === "string") { header += `host: ${host}\r @@ -8366,7 +8309,7 @@ upgrade: ${upgrade}\r if (channels.sendHeaders.hasSubscribers) { channels.sendHeaders.publish({ request, headers: header, socket }); } - if (!body2) { + if (!body2 || bodyLength === 0) { if (contentLength2 === 0) { socket.write(`${header}content-length: 0\r \r @@ -8406,7 +8349,7 @@ upgrade: ${upgrade}\r return true; } function writeH2(client, session, request) { - const { body: body2, method, path: path14, host, upgrade, expectContinue, signal, headers: reqHeaders } = request; + const { body: body2, method, path: path15, host, upgrade, expectContinue, signal, headers: reqHeaders } = request; let headers; if (typeof reqHeaders === "string") headers = Request2[kHTTP2CopyHeaders](reqHeaders.trim()); @@ -8452,7 +8395,7 @@ upgrade: ${upgrade}\r }); return true; } - headers[HTTP2_HEADER_PATH] = path14; + headers[HTTP2_HEADER_PATH] = path15; headers[HTTP2_HEADER_SCHEME] = "https"; const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH"; if (body2 && typeof body2.read === "function") { @@ -8465,7 +8408,7 @@ upgrade: ${upgrade}\r if (contentLength2 === 0 || !expectsPayload) { contentLength2 = null; } - if (request.contentLength != null && request.contentLength !== contentLength2) { + if (shouldSendContentLength(method) && contentLength2 > 0 && request.contentLength != null && request.contentLength !== contentLength2) { if (client[kStrictContentLength]) { errorRequest(client, request, new RequestContentLengthMismatchError()); return false; @@ -8491,7 +8434,8 @@ upgrade: ${upgrade}\r } ++h2State.openStreams; stream.once("response", (headers2) => { - if (request.onHeaders(Number(headers2[HTTP2_HEADER_STATUS]), headers2, stream.resume.bind(stream), "") === false) { + const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } = headers2; + if (request.onHeaders(Number(statusCode), realHeaders, stream.resume.bind(stream), "") === false) { stream.pause(); } }); @@ -8499,13 +8443,15 @@ upgrade: ${upgrade}\r request.onComplete([]); }); stream.on("data", (chunk) => { - if (request.onData(chunk) === false) + if (request.onData(chunk) === false) { stream.pause(); + } }); stream.once("close", () => { h2State.openStreams -= 1; - if (h2State.openStreams === 0) + if (h2State.openStreams === 0) { session.unref(); + } }); stream.once("error", function(err) { if (client[kHTTP2Session] && !client[kHTTP2Session].destroyed && !this.closed && !this.destroyed) { @@ -8632,7 +8578,11 @@ upgrade: ${upgrade}\r } }; const onAbort = function() { - onFinished(new RequestAbortedError()); + if (finished) { + return; + } + const err = new RequestAbortedError(); + queueMicrotask(() => onFinished(err)); }; const onFinished = function(err) { if (finished) { @@ -8702,12 +8652,12 @@ upgrade: ${upgrade}\r cb(); } } - const waitForDrain = () => new Promise((resolve2, reject) => { + const waitForDrain = () => new Promise((resolve3, reject) => { assert(callback === null); if (socket[kError]) { reject(socket[kError]); } else { - callback = resolve2; + callback = resolve3; } }); if (client[kHTTPConnVersion] === "h2") { @@ -9001,7 +8951,7 @@ var require_pool_base = __commonJS({ pool.emit("drain", origin, [pool, ...targets]); } if (pool[kClosedResolve] && queue.isEmpty()) { - Promise.all(pool[kClients].map((c2) => c2.close())).then(pool[kClosedResolve]); + Promise.all(pool[kClients].map((c3) => c3.close())).then(pool[kClosedResolve]); } }; this[kOnConnect] = (origin, targets) => { @@ -9050,10 +9000,10 @@ var require_pool_base = __commonJS({ } async [kClose]() { if (this[kQueue].isEmpty()) { - return Promise.all(this[kClients].map((c2) => c2.close())); + return Promise.all(this[kClients].map((c3) => c3.close())); } else { - return new Promise((resolve2) => { - this[kClosedResolve] = resolve2; + return new Promise((resolve3) => { + this[kClosedResolve] = resolve3; }); } } @@ -9065,7 +9015,7 @@ var require_pool_base = __commonJS({ } item.handler.onError(err); } - return Promise.all(this[kClients].map((c2) => c2.destroy(err))); + return Promise.all(this[kClients].map((c3) => c3.destroy(err))); } [kDispatch](opts, handler) { const dispatcher = this[kGetDispatcher](); @@ -9166,7 +9116,7 @@ var require_pool = __commonJS({ maxCachedSessions, allowH2, socketPath, - timeout: connectTimeout == null ? 1e4 : connectTimeout, + timeout: connectTimeout, ...util3.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0, ...connect }); @@ -9221,10 +9171,10 @@ var require_balanced_pool = __commonJS({ var kWeight = Symbol("kWeight"); var kMaxWeightPerServer = Symbol("kMaxWeightPerServer"); var kErrorPenalty = Symbol("kErrorPenalty"); - function getGreatestCommonDivisor(a2, b2) { - if (b2 === 0) - return a2; - return getGreatestCommonDivisor(b2, a2 % b2); + function getGreatestCommonDivisor(a3, b3) { + if (b3 === 0) + return a3; + return getGreatestCommonDivisor(b3, a3 % b3); } function defaultFactory(origin, opts) { return new Pool(origin, opts); @@ -9278,7 +9228,7 @@ var require_balanced_pool = __commonJS({ return this; } _updateBalancedPoolStats() { - this[kGreatestCommonDivisor] = this[kClients].map((p2) => p2[kWeight]).reduce(getGreatestCommonDivisor, 0); + this[kGreatestCommonDivisor] = this[kClients].map((p3) => p3[kWeight]).reduce(getGreatestCommonDivisor, 0); } removeUpstream(upstream) { const upstreamOrigin = parseOrigin(upstream).origin; @@ -9289,7 +9239,7 @@ var require_balanced_pool = __commonJS({ return this; } get upstreams() { - return this[kClients].filter((dispatcher) => dispatcher.closed !== true && dispatcher.destroyed !== true).map((p2) => p2[kUrl].origin); + return this[kClients].filter((dispatcher) => dispatcher.closed !== true && dispatcher.destroyed !== true).map((p3) => p3[kUrl].origin); } [kGetDispatcher]() { if (this[kClients].length === 0) { @@ -9299,7 +9249,7 @@ var require_balanced_pool = __commonJS({ if (!dispatcher) { return; } - const allClientsBusy = this[kClients].map((pool) => pool[kNeedDrain]).reduce((a2, b2) => a2 && b2, true); + const allClientsBusy = this[kClients].map((pool) => pool[kNeedDrain]).reduce((a3, b3) => a3 && b3, true); if (allClientsBusy) { return; } @@ -9505,6 +9455,8 @@ var require_readable = __commonJS({ var kBody = Symbol("kBody"); var kAbort = Symbol("abort"); var kContentType = Symbol("kContentType"); + var noop = () => { + }; module.exports = class BodyReadable extends Readable5 { constructor({ resume, @@ -9606,37 +9558,40 @@ var require_readable = __commonJS({ } return this[kBody]; } - async dump(opts) { + dump(opts) { let limit = opts && Number.isFinite(opts.limit) ? opts.limit : 262144; const signal = opts && opts.signal; - const abortFn = () => { - this.destroy(); - }; - let signalListenerCleanup; if (signal) { - if (typeof signal !== "object" || !("aborted" in signal)) { - throw new InvalidArgumentError("signal must be an AbortSignal"); - } - util3.throwIfAborted(signal); - signalListenerCleanup = util3.addAbortListener(signal, abortFn); - } - try { - for await (const chunk of this) { - util3.throwIfAborted(signal); - limit -= Buffer.byteLength(chunk); - if (limit < 0) { - return; + try { + if (typeof signal !== "object" || !("aborted" in signal)) { + throw new InvalidArgumentError("signal must be an AbortSignal"); } + util3.throwIfAborted(signal); + } catch (err) { + return Promise.reject(err); } - } catch { - util3.throwIfAborted(signal); - } finally { - if (typeof signalListenerCleanup === "function") { - signalListenerCleanup(); - } else if (signalListenerCleanup) { - signalListenerCleanup[Symbol.dispose](); - } } + if (this.closed) { + return Promise.resolve(null); + } + return new Promise((resolve3, reject) => { + const signalListenerCleanup = signal ? util3.addAbortListener(signal, () => { + this.destroy(); + }) : noop; + this.on("close", function() { + signalListenerCleanup(); + if (signal && signal.aborted) { + reject(signal.reason || Object.assign(new Error("The operation was aborted"), { name: "AbortError" })); + } else { + resolve3(null); + } + }).on("error", noop).on("data", function(chunk) { + limit -= chunk.length; + if (limit <= 0) { + this.destroy(); + } + }).resume(); + }); } }; function isLocked(self2) { @@ -9650,11 +9605,11 @@ var require_readable = __commonJS({ throw new TypeError("unusable"); } assert(!stream[kConsume]); - return new Promise((resolve2, reject) => { + return new Promise((resolve3, reject) => { stream[kConsume] = { type: type3, stream, - resolve: resolve2, + resolve: resolve3, reject, length: 0, body: [] @@ -9689,12 +9644,12 @@ var require_readable = __commonJS({ } } function consumeEnd(consume2) { - const { type: type3, body: body2, resolve: resolve2, stream, length } = consume2; + const { type: type3, body: body2, resolve: resolve3, stream, length } = consume2; try { if (type3 === "text") { - resolve2(toUSVString(Buffer.concat(body2))); + resolve3(toUSVString(Buffer.concat(body2))); } else if (type3 === "json") { - resolve2(JSON.parse(Buffer.concat(body2))); + resolve3(JSON.parse(Buffer.concat(body2))); } else if (type3 === "arrayBuffer") { const dst = new Uint8Array(length); let pos = 0; @@ -9702,12 +9657,12 @@ var require_readable = __commonJS({ dst.set(buf, pos); pos += buf.byteLength; } - resolve2(dst); + resolve3(dst.buffer); } else if (type3 === "blob") { if (!Blob4) { Blob4 = __require("buffer").Blob; } - resolve2(new Blob4(body2, { type: stream[kContentType] })); + resolve3(new Blob4(body2, { type: stream[kContentType] })); } consumeFinish(consume2); } catch (err) { @@ -9962,9 +9917,9 @@ var require_api_request = __commonJS({ }; function request(opts, callback) { if (callback === void 0) { - return new Promise((resolve2, reject) => { + return new Promise((resolve3, reject) => { request.call(this, opts, (err, data) => { - return err ? reject(err) : resolve2(data); + return err ? reject(err) : resolve3(data); }); }); } @@ -9979,6 +9934,7 @@ var require_api_request = __commonJS({ } } module.exports = request; + module.exports.RequestHandler = RequestHandler; } }); @@ -10072,6 +10028,9 @@ var require_api_stream = __commonJS({ { callback, body: res, contentType: contentType2, statusCode, statusMessage, headers } ); } else { + if (factory === null) { + return; + } res = this.runInAsyncScope(factory, null, { statusCode, headers, @@ -10101,11 +10060,14 @@ var require_api_stream = __commonJS({ } onData(chunk) { const { res } = this; - return res.write(chunk); + return res ? res.write(chunk) : true; } onComplete(trailers) { const { res } = this; removeSignal(this); + if (!res) { + return; + } this.trailers = util3.parseHeaders(trailers); res.end(); } @@ -10130,9 +10092,9 @@ var require_api_stream = __commonJS({ }; function stream(opts, factory, callback) { if (callback === void 0) { - return new Promise((resolve2, reject) => { + return new Promise((resolve3, reject) => { stream.call(this, opts, factory, (err, data) => { - return err ? reject(err) : resolve2(data); + return err ? reject(err) : resolve3(data); }); }); } @@ -10413,9 +10375,9 @@ var require_api_upgrade = __commonJS({ }; function upgrade(opts, callback) { if (callback === void 0) { - return new Promise((resolve2, reject) => { + return new Promise((resolve3, reject) => { upgrade.call(this, opts, (err, data) => { - return err ? reject(err) : resolve2(data); + return err ? reject(err) : resolve3(data); }); }); } @@ -10504,9 +10466,9 @@ var require_api_connect = __commonJS({ }; function connect(opts, callback) { if (callback === void 0) { - return new Promise((resolve2, reject) => { + return new Promise((resolve3, reject) => { connect.call(this, opts, (err, data) => { - return err ? reject(err) : resolve2(data); + return err ? reject(err) : resolve3(data); }); }); } @@ -10625,9 +10587,9 @@ var require_mock_utils = __commonJS({ } function getHeaderByName(headers, key) { if (Array.isArray(headers)) { - for (let i2 = 0; i2 < headers.length; i2 += 2) { - if (headers[i2].toLocaleLowerCase() === key.toLocaleLowerCase()) { - return headers[i2 + 1]; + for (let i3 = 0; i3 < headers.length; i3 += 2) { + if (headers[i3].toLocaleLowerCase() === key.toLocaleLowerCase()) { + return headers[i3 + 1]; } } return void 0; @@ -10666,20 +10628,20 @@ var require_mock_utils = __commonJS({ } return true; } - function safeUrl(path14) { - if (typeof path14 !== "string") { - return path14; + function safeUrl(path15) { + if (typeof path15 !== "string") { + return path15; } - const pathSegments = path14.split("?"); + const pathSegments = path15.split("?"); if (pathSegments.length !== 2) { - return path14; + return path15; } const qp = new URLSearchParams(pathSegments.pop()); qp.sort(); return [...pathSegments, qp.toString()].join("?"); } - function matchKey(mockDispatch2, { path: path14, method, body: body2, headers }) { - const pathMatch = matchValue(mockDispatch2.path, path14); + function matchKey(mockDispatch2, { path: path15, method, body: body2, headers }) { + const pathMatch = matchValue(mockDispatch2.path, path15); const methodMatch = matchValue(mockDispatch2.method, method); const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body2) : true; const headersMatch = matchHeaders(mockDispatch2, headers); @@ -10697,7 +10659,7 @@ var require_mock_utils = __commonJS({ function getMockDispatch(mockDispatches, key) { const basePath = key.query ? buildURL(key.path, key.query) : key.path; const resolvedPath = typeof basePath === "string" ? safeUrl(basePath) : basePath; - let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path14 }) => matchValue(safeUrl(path14), resolvedPath)); + let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path15 }) => matchValue(safeUrl(path15), resolvedPath)); if (matchedMockDispatches.length === 0) { throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`); } @@ -10734,9 +10696,9 @@ var require_mock_utils = __commonJS({ } } function buildKey(opts) { - const { path: path14, method, body: body2, headers, query } = opts; + const { path: path15, method, body: body2, headers, query } = opts; return { - path: path14, + path: path15, method, body: body2, headers, @@ -10747,7 +10709,7 @@ var require_mock_utils = __commonJS({ return Object.entries(data).reduce((keyValuePairs, [key, value]) => [ ...keyValuePairs, Buffer.from(`${key}`), - Array.isArray(value) ? value.map((x2) => Buffer.from(`${x2}`)) : Buffer.from(`${value}`) + Array.isArray(value) ? value.map((x3) => Buffer.from(`${x3}`)) : Buffer.from(`${value}`) ], []); } function getStatusText(statusCode) { @@ -11185,10 +11147,10 @@ var require_pending_interceptors_formatter = __commonJS({ } format(pendingInterceptors) { const withPrettyHeaders = pendingInterceptors.map( - ({ method, path: path14, data: { statusCode }, persist, times, timesInvoked, origin }) => ({ + ({ method, path: path15, data: { statusCode }, persist, times, timesInvoked, origin }) => ({ Method: method, Origin: origin, - Path: path14, + Path: path15, "Status code": statusCode, Persistent: persist ? "\u2705" : "\u274C", Invocations: timesInvoked, @@ -11395,15 +11357,17 @@ var require_proxy_agent = __commonJS({ this[kRequestTls] = opts.requestTls; this[kProxyTls] = opts.proxyTls; this[kProxyHeaders] = opts.headers || {}; + const resolvedUrl = new URL4(opts.uri); + const { origin, port, host, username, password } = resolvedUrl; if (opts.auth && opts.token) { throw new InvalidArgumentError("opts.auth cannot be used in combination with opts.token"); } else if (opts.auth) { this[kProxyHeaders]["proxy-authorization"] = `Basic ${opts.auth}`; } else if (opts.token) { this[kProxyHeaders]["proxy-authorization"] = opts.token; + } else if (username && password) { + this[kProxyHeaders]["proxy-authorization"] = `Basic ${Buffer.from(`${decodeURIComponent(username)}:${decodeURIComponent(password)}`).toString("base64")}`; } - const resolvedUrl = new URL4(opts.uri); - const { origin, port, host } = resolvedUrl; const connect = buildConnector({ ...opts.proxyTls }); this[kConnectEndpoint] = buildConnector({ ...opts.requestTls }); this[kClient] = clientFactory(resolvedUrl, { connect }); @@ -11428,7 +11392,7 @@ var require_proxy_agent = __commonJS({ if (statusCode !== 200) { socket.on("error", () => { }).destroy(); - callback(new RequestAbortedError("Proxy response !== 200 when HTTP Tunneling")); + callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`)); } if (opts2.protocol !== "https:") { callback(null, socket); @@ -11474,8 +11438,8 @@ var require_proxy_agent = __commonJS({ function buildHeaders(headers) { if (Array.isArray(headers)) { const headersPair = {}; - for (let i2 = 0; i2 < headers.length; i2 += 2) { - headersPair[headers[i2]] = headers[i2 + 1]; + for (let i3 = 0; i3 < headers.length; i3 += 2) { + headersPair[headers[i3]] = headers[i3 + 1]; } return headersPair; } @@ -11491,8 +11455,276 @@ var require_proxy_agent = __commonJS({ } }); +// node_modules/undici/lib/handler/RetryHandler.js +var require_RetryHandler = __commonJS({ + "node_modules/undici/lib/handler/RetryHandler.js"(exports, module) { + var assert = __require("assert"); + var { kRetryHandlerDefaultRetry } = require_symbols(); + var { RequestRetryError } = require_errors(); + var { isDisturbed, parseHeaders: parseHeaders2, parseRangeHeader } = require_util(); + function calculateRetryAfterHeader(retryAfter) { + const current = Date.now(); + const diff = new Date(retryAfter).getTime() - current; + return diff; + } + var RetryHandler = class _RetryHandler { + constructor(opts, handlers) { + const { retryOptions, ...dispatchOpts } = opts; + const { + // Retry scoped + retry: retryFn, + maxRetries, + maxTimeout, + minTimeout, + timeoutFactor, + // Response scoped + methods, + errorCodes, + retryAfter, + statusCodes + } = retryOptions ?? {}; + this.dispatch = handlers.dispatch; + this.handler = handlers.handler; + this.opts = dispatchOpts; + this.abort = null; + this.aborted = false; + this.retryOpts = { + retry: retryFn ?? _RetryHandler[kRetryHandlerDefaultRetry], + retryAfter: retryAfter ?? true, + maxTimeout: maxTimeout ?? 30 * 1e3, + // 30s, + timeout: minTimeout ?? 500, + // .5s + timeoutFactor: timeoutFactor ?? 2, + maxRetries: maxRetries ?? 5, + // What errors we should retry + methods: methods ?? ["GET", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE"], + // Indicates which errors to retry + statusCodes: statusCodes ?? [500, 502, 503, 504, 429], + // List of errors to retry + errorCodes: errorCodes ?? [ + "ECONNRESET", + "ECONNREFUSED", + "ENOTFOUND", + "ENETDOWN", + "ENETUNREACH", + "EHOSTDOWN", + "EHOSTUNREACH", + "EPIPE" + ] + }; + this.retryCount = 0; + this.start = 0; + this.end = null; + this.etag = null; + this.resume = null; + this.handler.onConnect((reason) => { + this.aborted = true; + if (this.abort) { + this.abort(reason); + } else { + this.reason = reason; + } + }); + } + onRequestSent() { + if (this.handler.onRequestSent) { + this.handler.onRequestSent(); + } + } + onUpgrade(statusCode, headers, socket) { + if (this.handler.onUpgrade) { + this.handler.onUpgrade(statusCode, headers, socket); + } + } + onConnect(abort) { + if (this.aborted) { + abort(this.reason); + } else { + this.abort = abort; + } + } + onBodySent(chunk) { + if (this.handler.onBodySent) + return this.handler.onBodySent(chunk); + } + static [kRetryHandlerDefaultRetry](err, { state, opts }, cb) { + const { statusCode, code, headers } = err; + const { method, retryOptions } = opts; + const { + maxRetries, + timeout, + maxTimeout, + timeoutFactor, + statusCodes, + errorCodes, + methods + } = retryOptions; + let { counter, currentTimeout } = state; + currentTimeout = currentTimeout != null && currentTimeout > 0 ? currentTimeout : timeout; + if (code && code !== "UND_ERR_REQ_RETRY" && code !== "UND_ERR_SOCKET" && !errorCodes.includes(code)) { + cb(err); + return; + } + if (Array.isArray(methods) && !methods.includes(method)) { + cb(err); + return; + } + if (statusCode != null && Array.isArray(statusCodes) && !statusCodes.includes(statusCode)) { + cb(err); + return; + } + if (counter > maxRetries) { + cb(err); + return; + } + let retryAfterHeader = headers != null && headers["retry-after"]; + if (retryAfterHeader) { + retryAfterHeader = Number(retryAfterHeader); + retryAfterHeader = isNaN(retryAfterHeader) ? calculateRetryAfterHeader(retryAfterHeader) : retryAfterHeader * 1e3; + } + const retryTimeout = retryAfterHeader > 0 ? Math.min(retryAfterHeader, maxTimeout) : Math.min(currentTimeout * timeoutFactor ** counter, maxTimeout); + state.currentTimeout = retryTimeout; + setTimeout(() => cb(null), retryTimeout); + } + onHeaders(statusCode, rawHeaders, resume, statusMessage) { + const headers = parseHeaders2(rawHeaders); + this.retryCount += 1; + if (statusCode >= 300) { + this.abort( + new RequestRetryError("Request failed", statusCode, { + headers, + count: this.retryCount + }) + ); + return false; + } + if (this.resume != null) { + this.resume = null; + if (statusCode !== 206) { + return true; + } + const contentRange = parseRangeHeader(headers["content-range"]); + if (!contentRange) { + this.abort( + new RequestRetryError("Content-Range mismatch", statusCode, { + headers, + count: this.retryCount + }) + ); + return false; + } + if (this.etag != null && this.etag !== headers.etag) { + this.abort( + new RequestRetryError("ETag mismatch", statusCode, { + headers, + count: this.retryCount + }) + ); + return false; + } + const { start, size, end = size } = contentRange; + assert(this.start === start, "content-range mismatch"); + assert(this.end == null || this.end === end, "content-range mismatch"); + this.resume = resume; + return true; + } + if (this.end == null) { + if (statusCode === 206) { + const range2 = parseRangeHeader(headers["content-range"]); + if (range2 == null) { + return this.handler.onHeaders( + statusCode, + rawHeaders, + resume, + statusMessage + ); + } + const { start, size, end = size } = range2; + assert( + start != null && Number.isFinite(start) && this.start !== start, + "content-range mismatch" + ); + assert(Number.isFinite(start)); + assert( + end != null && Number.isFinite(end) && this.end !== end, + "invalid content-length" + ); + this.start = start; + this.end = end; + } + if (this.end == null) { + const contentLength2 = headers["content-length"]; + this.end = contentLength2 != null ? Number(contentLength2) : null; + } + assert(Number.isFinite(this.start)); + assert( + this.end == null || Number.isFinite(this.end), + "invalid content-length" + ); + this.resume = resume; + this.etag = headers.etag != null ? headers.etag : null; + return this.handler.onHeaders( + statusCode, + rawHeaders, + resume, + statusMessage + ); + } + const err = new RequestRetryError("Request failed", statusCode, { + headers, + count: this.retryCount + }); + this.abort(err); + return false; + } + onData(chunk) { + this.start += chunk.length; + return this.handler.onData(chunk); + } + onComplete(rawTrailers) { + this.retryCount = 0; + return this.handler.onComplete(rawTrailers); + } + onError(err) { + if (this.aborted || isDisturbed(this.opts.body)) { + return this.handler.onError(err); + } + this.retryOpts.retry( + err, + { + state: { counter: this.retryCount++, currentTimeout: this.retryAfter }, + opts: { retryOptions: this.retryOpts, ...this.opts } + }, + onRetry.bind(this) + ); + function onRetry(err2) { + if (err2 != null || this.aborted || isDisturbed(this.opts.body)) { + return this.handler.onError(err2); + } + if (this.start !== 0) { + this.opts = { + ...this.opts, + headers: { + ...this.opts.headers, + range: `bytes=${this.start}-${this.end ?? ""}` + } + }; + } + try { + this.dispatch(this.opts, this); + } catch (err3) { + this.handler.onError(err3); + } + } + } + }; + module.exports = RetryHandler; + } +}); + // node_modules/undici/lib/global.js -var require_global3 = __commonJS({ +var require_global2 = __commonJS({ "node_modules/undici/lib/global.js"(exports, module) { "use strict"; var globalDispatcher = Symbol.for("undici.globalDispatcher.1"); @@ -11559,7 +11791,7 @@ var require_DecoratorHandler = __commonJS({ var require_headers = __commonJS({ "node_modules/undici/lib/fetch/headers.js"(exports, module) { "use strict"; - var { kHeadersList } = require_symbols(); + var { kHeadersList, kConstruct } = require_symbols(); var { kGuard } = require_symbols2(); var { kEnumerableProperty } = require_util(); var { @@ -11571,26 +11803,34 @@ var require_headers = __commonJS({ var assert = __require("assert"); var kHeadersMap = Symbol("headers map"); var kHeadersSortedMap = Symbol("headers map sorted"); + function isHTTPWhiteSpaceCharCode(code) { + return code === 10 || code === 13 || code === 9 || code === 32; + } function headerValueNormalize(potentialValue) { - let i2 = potentialValue.length; - while (/[\r\n\t ]/.test(potentialValue.charAt(--i2))) - ; - return potentialValue.slice(0, i2 + 1).replace(/^[\r\n\t ]+/, ""); + let i3 = 0; + let j3 = potentialValue.length; + while (j3 > i3 && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(j3 - 1))) + --j3; + while (j3 > i3 && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(i3))) + ++i3; + return i3 === 0 && j3 === potentialValue.length ? potentialValue : potentialValue.substring(i3, j3); } function fill(headers, object) { if (Array.isArray(object)) { - for (const header of object) { + for (let i3 = 0; i3 < object.length; ++i3) { + const header = object[i3]; if (header.length !== 2) { throw webidl.errors.exception({ header: "Headers constructor", message: `expected name/value pair to be length 2, found ${header.length}.` }); } - headers.append(header[0], header[1]); + appendHeader(headers, header[0], header[1]); } } else if (typeof object === "object" && object !== null) { - for (const [key, value] of Object.entries(object)) { - headers.append(key, value); + const keys = Object.keys(object); + for (let i3 = 0; i3 < keys.length; ++i3) { + appendHeader(headers, keys[i3], object[keys[i3]]); } } else { throw webidl.errors.conversionFailed({ @@ -11600,6 +11840,27 @@ var require_headers = __commonJS({ }); } } + function appendHeader(headers, name2, value) { + value = headerValueNormalize(value); + if (!isValidHeaderName(name2)) { + throw webidl.errors.invalidArgument({ + prefix: "Headers.append", + value: name2, + type: "header name" + }); + } else if (!isValidHeaderValue(value)) { + throw webidl.errors.invalidArgument({ + prefix: "Headers.append", + value, + type: "header value" + }); + } + if (headers[kGuard] === "immutable") { + throw new TypeError("immutable"); + } else if (headers[kGuard] === "request-no-cors") { + } + return headers[kHeadersList].append(name2, value); + } var HeadersList = class _HeadersList { /** @type {[string, string][]|null} */ cookies = null; @@ -11607,7 +11868,7 @@ var require_headers = __commonJS({ if (init2 instanceof _HeadersList) { this[kHeadersMap] = new Map(init2[kHeadersMap]); this[kHeadersSortedMap] = init2[kHeadersSortedMap]; - this.cookies = init2.cookies; + this.cookies = init2.cookies === null ? null : [...init2.cookies]; } else { this[kHeadersMap] = new Map(init2); this[kHeadersSortedMap] = null; @@ -11649,7 +11910,7 @@ var require_headers = __commonJS({ if (lowercaseName === "set-cookie") { this.cookies = [value]; } - return this[kHeadersMap].set(lowercaseName, { name: name2, value }); + this[kHeadersMap].set(lowercaseName, { name: name2, value }); } // https://fetch.spec.whatwg.org/#concept-header-list-delete delete(name2) { @@ -11658,14 +11919,12 @@ var require_headers = __commonJS({ if (name2 === "set-cookie") { this.cookies = null; } - return this[kHeadersMap].delete(name2); + this[kHeadersMap].delete(name2); } // https://fetch.spec.whatwg.org/#concept-header-list-get get(name2) { - if (!this.contains(name2)) { - return null; - } - return this[kHeadersMap].get(name2.toLowerCase())?.value ?? null; + const value = this[kHeadersMap].get(name2.toLowerCase()); + return value === void 0 ? null : value.value; } *[Symbol.iterator]() { for (const [name2, { value }] of this[kHeadersMap]) { @@ -11684,6 +11943,9 @@ var require_headers = __commonJS({ }; var Headers2 = class _Headers { constructor(init2 = void 0) { + if (init2 === kConstruct) { + return; + } this[kHeadersList] = new HeadersList(); this[kGuard] = "none"; if (init2 !== void 0) { @@ -11697,25 +11959,7 @@ var require_headers = __commonJS({ webidl.argumentLengthCheck(arguments, 2, { header: "Headers.append" }); name2 = webidl.converters.ByteString(name2); value = webidl.converters.ByteString(value); - value = headerValueNormalize(value); - if (!isValidHeaderName(name2)) { - throw webidl.errors.invalidArgument({ - prefix: "Headers.append", - value: name2, - type: "header name" - }); - } else if (!isValidHeaderValue(value)) { - throw webidl.errors.invalidArgument({ - prefix: "Headers.append", - value, - type: "header value" - }); - } - if (this[kGuard] === "immutable") { - throw new TypeError("immutable"); - } else if (this[kGuard] === "request-no-cors") { - } - return this[kHeadersList].append(name2, value); + return appendHeader(this, name2, value); } // https://fetch.spec.whatwg.org/#dom-headers-delete delete(name2) { @@ -11736,7 +11980,7 @@ var require_headers = __commonJS({ if (!this[kHeadersList].contains(name2)) { return; } - return this[kHeadersList].delete(name2); + this[kHeadersList].delete(name2); } // https://fetch.spec.whatwg.org/#dom-headers-get get(name2) { @@ -11790,7 +12034,7 @@ var require_headers = __commonJS({ throw new TypeError("immutable"); } else if (this[kGuard] === "request-no-cors") { } - return this[kHeadersList].set(name2, value); + this[kHeadersList].set(name2, value); } // https://fetch.spec.whatwg.org/#dom-headers-getsetcookie getSetCookie() { @@ -11807,12 +12051,13 @@ var require_headers = __commonJS({ return this[kHeadersList][kHeadersSortedMap]; } const headers = []; - const names = [...this[kHeadersList]].sort((a2, b2) => a2[0] < b2[0] ? -1 : 1); + const names = [...this[kHeadersList]].sort((a3, b3) => a3[0] < b3[0] ? -1 : 1); const cookies = this[kHeadersList].cookies; - for (const [name2, value] of names) { + for (let i3 = 0; i3 < names.length; ++i3) { + const [name2, value] = names[i3]; if (name2 === "set-cookie") { - for (const value2 of cookies) { - headers.push([name2, value2]); + for (let j3 = 0; j3 < cookies.length; ++j3) { + headers.push([name2, cookies[j3]]); } } else { assert(value !== null); @@ -11824,6 +12069,14 @@ var require_headers = __commonJS({ } keys() { webidl.brandCheck(this, _Headers); + if (this[kGuard] === "immutable") { + const value = this[kHeadersSortedMap]; + return makeIterator( + () => value, + "Headers", + "key" + ); + } return makeIterator( () => [...this[kHeadersSortedMap].values()], "Headers", @@ -11832,6 +12085,14 @@ var require_headers = __commonJS({ } values() { webidl.brandCheck(this, _Headers); + if (this[kGuard] === "immutable") { + const value = this[kHeadersSortedMap]; + return makeIterator( + () => value, + "Headers", + "value" + ); + } return makeIterator( () => [...this[kHeadersSortedMap].values()], "Headers", @@ -11840,6 +12101,14 @@ var require_headers = __commonJS({ } entries() { webidl.brandCheck(this, _Headers); + if (this[kGuard] === "immutable") { + const value = this[kHeadersSortedMap]; + return makeIterator( + () => value, + "Headers", + "key+value" + ); + } return makeIterator( () => [...this[kHeadersSortedMap].values()], "Headers", @@ -11924,19 +12193,20 @@ var require_response = __commonJS({ isomorphicEncode } = require_util2(); var { - redirectStatus, + redirectStatusSet, nullBodyStatus, DOMException: DOMException2 } = require_constants(); var { kState, kHeaders, kGuard, kRealm } = require_symbols2(); var { webidl } = require_webidl(); var { FormData: FormData2 } = require_formdata(); - var { getGlobalOrigin } = require_global2(); + var { getGlobalOrigin } = require_global(); var { URLSerializer } = require_dataURL(); - var { kHeadersList } = require_symbols(); + var { kHeadersList, kConstruct } = require_symbols(); var assert = __require("assert"); var { types } = __require("util"); var ReadableStream = globalThis.ReadableStream || __require("stream/web").ReadableStream; + var textEncoder = new TextEncoder("utf-8"); var Response2 = class _Response { // Creates network error Response. static error() { @@ -11955,7 +12225,7 @@ var require_response = __commonJS({ if (init2 !== null) { init2 = webidl.converters.ResponseInit(init2); } - const bytes = new TextEncoder("utf-8").encode( + const bytes = textEncoder.encode( serializeJavascriptValueToJSONString(data) ); const body2 = extractBody(bytes); @@ -11981,7 +12251,7 @@ var require_response = __commonJS({ cause: err }); } - if (!redirectStatus.includes(status)) { + if (!redirectStatusSet.has(status)) { throw new RangeError("Invalid status code " + status); } const responseObject = new _Response(); @@ -12001,7 +12271,7 @@ var require_response = __commonJS({ init2 = webidl.converters.ResponseInit(init2); this[kRealm] = { settingsObject: {} }; this[kState] = makeResponse({}); - this[kHeaders] = new Headers2(); + this[kHeaders] = new Headers2(kConstruct); this[kHeaders][kGuard] = "response"; this[kHeaders][kHeadersList] = this[kState].headersList; this[kHeaders][kRealm] = this[kRealm]; @@ -12145,12 +12415,12 @@ var require_response = __commonJS({ ...state }; return new Proxy(response, { - get(target, p2) { - return p2 in state ? state[p2] : target[p2]; + get(target, p3) { + return p3 in state ? state[p3] : target[p3]; }, - set(target, p2, value) { - assert(!(p2 in state)); - target[p2] = value; + set(target, p3, value) { + assert(!(p3 in state)); + target[p3] = value; return true; } }); @@ -12237,7 +12507,7 @@ var require_response = __commonJS({ if (isBlobLike(V2)) { return webidl.converters.Blob(V2, { strict: false }); } - if (types.isAnyArrayBuffer(V2) || types.isTypedArray(V2) || types.isDataView(V2)) { + if (types.isArrayBuffer(V2) || types.isTypedArray(V2) || types.isDataView(V2)) { return webidl.converters.BufferSource(V2); } if (util3.isFormDataLike(V2)) { @@ -12296,11 +12566,12 @@ var require_request2 = __commonJS({ isValidHTTPToken, sameOrigin, normalizeMethod, - makePolicyContainer + makePolicyContainer, + normalizeMethodRecord } = require_util2(); var { - forbiddenMethods, - corsSafeListedMethods, + forbiddenMethodsSet, + corsSafeListedMethodsSet, referrerPolicy, requestRedirect, requestMode, @@ -12311,13 +12582,12 @@ var require_request2 = __commonJS({ var { kEnumerableProperty } = util3; var { kHeaders, kSignal, kState, kGuard, kRealm } = require_symbols2(); var { webidl } = require_webidl(); - var { getGlobalOrigin } = require_global2(); + var { getGlobalOrigin } = require_global(); var { URLSerializer } = require_dataURL(); - var { kHeadersList } = require_symbols(); + var { kHeadersList, kConstruct } = require_symbols(); var assert = __require("assert"); var { getMaxListeners, setMaxListeners, getEventListeners, defaultMaxListeners } = __require("events"); var TransformStream = globalThis.TransformStream; - var kInit = Symbol("init"); var kAbortController = Symbol("abortController"); var requestFinalizer = new FinalizationRegistry(({ signal, abort }) => { signal.removeEventListener("abort", abort); @@ -12325,7 +12595,7 @@ var require_request2 = __commonJS({ var Request2 = class _Request { // https://fetch.spec.whatwg.org/#dom-request constructor(input, init2 = {}) { - if (input === kInit) { + if (input === kConstruct) { return; } webidl.argumentLengthCheck(arguments, 1, { header: "Request constructor" }); @@ -12417,7 +12687,8 @@ var require_request2 = __commonJS({ // URL list A clone of request’s URL list. urlList: [...request.urlList] }); - if (Object.keys(init2).length > 0) { + const initHasKey = Object.keys(init2).length !== 0; + if (initHasKey) { if (request.mode === "navigate") { request.mode = "same-origin"; } @@ -12479,7 +12750,7 @@ var require_request2 = __commonJS({ if (init2.redirect !== void 0) { request.redirect = init2.redirect; } - if (init2.integrity !== void 0 && init2.integrity != null) { + if (init2.integrity != null) { request.integrity = String(init2.integrity); } if (init2.keepalive !== void 0) { @@ -12487,13 +12758,13 @@ var require_request2 = __commonJS({ } if (init2.method !== void 0) { let method = init2.method; - if (!isValidHTTPToken(init2.method)) { - throw TypeError(`'${init2.method}' is not a valid HTTP method.`); + if (!isValidHTTPToken(method)) { + throw new TypeError(`'${method}' is not a valid HTTP method.`); } - if (forbiddenMethods.indexOf(method.toUpperCase()) !== -1) { - throw TypeError(`'${init2.method}' HTTP method is unsupported.`); + if (forbiddenMethodsSet.has(method.toUpperCase())) { + throw new TypeError(`'${method}' HTTP method is unsupported.`); } - method = normalizeMethod(init2.method); + method = normalizeMethodRecord[method] ?? normalizeMethod(method); request.method = method; } if (init2.signal !== void 0) { @@ -12532,28 +12803,27 @@ var require_request2 = __commonJS({ requestFinalizer.register(ac, { signal, abort }); } } - this[kHeaders] = new Headers2(); + this[kHeaders] = new Headers2(kConstruct); this[kHeaders][kHeadersList] = request.headersList; this[kHeaders][kGuard] = "request"; this[kHeaders][kRealm] = this[kRealm]; if (mode === "no-cors") { - if (!corsSafeListedMethods.includes(request.method)) { + if (!corsSafeListedMethodsSet.has(request.method)) { throw new TypeError( `'${request.method} is unsupported in no-cors mode.` ); } this[kHeaders][kGuard] = "request-no-cors"; } - if (Object.keys(init2).length !== 0) { - let headers = new Headers2(this[kHeaders]); - if (init2.headers !== void 0) { - headers = init2.headers; - } - this[kHeaders][kHeadersList].clear(); - if (headers.constructor.name === "Headers") { + if (initHasKey) { + const headersList = this[kHeaders][kHeadersList]; + const headers = init2.headers !== void 0 ? init2.headers : new HeadersList(headersList); + headersList.clear(); + if (headers instanceof HeadersList) { for (const [key, val] of headers) { - this[kHeaders].append(key, val); + headersList.append(key, val); } + headersList.cookies = headers.cookies; } else { fillHeaders(this[kHeaders], headers); } @@ -12729,10 +12999,10 @@ var require_request2 = __commonJS({ throw new TypeError("unusable"); } const clonedRequest = cloneRequest(this[kState]); - const clonedRequestObject = new _Request(kInit); + const clonedRequestObject = new _Request(kConstruct); clonedRequestObject[kState] = clonedRequest; clonedRequestObject[kRealm] = this[kRealm]; - clonedRequestObject[kHeaders] = new Headers2(); + clonedRequestObject[kHeaders] = new Headers2(kConstruct); clonedRequestObject[kHeaders][kHeadersList] = clonedRequest.headersList; clonedRequestObject[kHeaders][kGuard] = this[kHeaders][kGuard]; clonedRequestObject[kHeaders][kRealm] = this[kHeaders][kRealm]; @@ -12971,11 +13241,11 @@ var require_fetch = __commonJS({ var assert = __require("assert"); var { safelyExtractBody } = require_body(); var { - redirectStatus, + redirectStatusSet, nullBodyStatus, - safeMethods, + safeMethodsSet, requestBodyHeader, - subresource, + subresourceSet, DOMException: DOMException2 } = require_constants(); var { kHeadersList } = require_symbols(); @@ -12984,9 +13254,10 @@ var require_fetch = __commonJS({ var { addAbortListener, isErrored, isReadable, nodeMajor, nodeMinor } = require_util(); var { dataURLProcessor, serializeAMimeType } = require_dataURL(); var { TransformStream } = __require("stream/web"); - var { getGlobalDispatcher } = require_global3(); + var { getGlobalDispatcher } = require_global2(); var { webidl } = require_webidl(); var { STATUS_CODES: STATUS_CODES3 } = __require("http"); + var GET_OR_HEAD = ["GET", "HEAD"]; var resolveObjectURL; var ReadableStream = globalThis.ReadableStream; var Fetch = class extends EE { @@ -13020,20 +13291,20 @@ var require_fetch = __commonJS({ this.emit("terminated", error); } }; - async function fetch2(input, init2 = {}) { + function fetch2(input, init2 = {}) { webidl.argumentLengthCheck(arguments, 1, { header: "globalThis.fetch" }); - const p2 = createDeferredPromise(); + const p3 = createDeferredPromise(); let requestObject; try { requestObject = new Request2(input, init2); - } catch (e2) { - p2.reject(e2); - return p2.promise; + } catch (e3) { + p3.reject(e3); + return p3.promise; } const request = requestObject[kState]; if (requestObject.signal.aborted) { - abortFetch(p2, request, null, requestObject.signal.reason); - return p2.promise; + abortFetch(p3, request, null, requestObject.signal.reason); + return p3.promise; } const globalObject = request.client.globalObject; if (globalObject?.constructor?.name === "ServiceWorkerGlobalScope") { @@ -13049,23 +13320,23 @@ var require_fetch = __commonJS({ locallyAborted = true; assert(controller != null); controller.abort(requestObject.signal.reason); - abortFetch(p2, request, responseObject, requestObject.signal.reason); + abortFetch(p3, request, responseObject, requestObject.signal.reason); } ); const handleFetchDone = (response) => finalizeAndReportTiming(response, "fetch"); const processResponse = (response) => { if (locallyAborted) { - return; + return Promise.resolve(); } if (response.aborted) { - abortFetch(p2, request, responseObject, controller.serializedAbortReason); - return; + abortFetch(p3, request, responseObject, controller.serializedAbortReason); + return Promise.resolve(); } if (response.type === "error") { - p2.reject( + p3.reject( Object.assign(new TypeError("fetch failed"), { cause: response.error }) ); - return; + return Promise.resolve(); } responseObject = new Response2(); responseObject[kState] = response; @@ -13073,7 +13344,7 @@ var require_fetch = __commonJS({ responseObject[kHeaders][kHeadersList] = response.headersList; responseObject[kHeaders][kGuard] = "immutable"; responseObject[kHeaders][kRealm] = relevantRealm; - p2.resolve(responseObject); + p3.resolve(responseObject); }; controller = fetching({ request, @@ -13082,7 +13353,7 @@ var require_fetch = __commonJS({ dispatcher: init2.dispatcher ?? getGlobalDispatcher() // undici }); - return p2.promise; + return p3.promise; } function finalizeAndReportTiming(response, initiatorType = "other") { if (response.type === "error" && response.aborted) { @@ -13100,7 +13371,7 @@ var require_fetch = __commonJS({ if (timingInfo === null) { return; } - if (!timingInfo.timingAllowPassed) { + if (!response.timingAllowPassed) { timingInfo = createOpaqueTimingInfo({ startTime: timingInfo.startTime }); @@ -13121,11 +13392,11 @@ var require_fetch = __commonJS({ performance.markResourceTiming(timingInfo, originalURL.href, initiatorType, globalThis2, cacheState); } } - function abortFetch(p2, request, responseObject, error) { + function abortFetch(p3, request, responseObject, error) { if (!error) { error = new DOMException2("The operation was aborted.", "AbortError"); } - p2.reject(error); + p3.reject(error); if (request.body != null && isReadable(request.body?.stream)) { request.body.stream.cancel(error).catch((err) => { if (err.code === "ERR_INVALID_STATE") { @@ -13205,7 +13476,7 @@ var require_fetch = __commonJS({ } if (request.priority === null) { } - if (subresource.includes(request.destination)) { + if (subresourceSet.has(request.destination)) { } mainFetch(fetchParams).catch((err) => { fetchParams.controller.terminate(err); @@ -13309,15 +13580,15 @@ var require_fetch = __commonJS({ fetchFinale(fetchParams, response); } } - async function schemeFetch(fetchParams) { + function schemeFetch(fetchParams) { if (isCancelled(fetchParams) && fetchParams.request.redirectCount === 0) { - return makeAppropriateNetworkError(fetchParams); + return Promise.resolve(makeAppropriateNetworkError(fetchParams)); } const { request } = fetchParams; const { protocol: scheme } = requestCurrentURL(request); switch (scheme) { case "about:": { - return makeNetworkError("about scheme is not supported"); + return Promise.resolve(makeNetworkError("about scheme is not supported")); } case "blob:": { if (!resolveObjectURL) { @@ -13325,11 +13596,11 @@ var require_fetch = __commonJS({ } const blobURLEntry = requestCurrentURL(request); if (blobURLEntry.search.length !== 0) { - return makeNetworkError("NetworkError when attempting to fetch resource."); + return Promise.resolve(makeNetworkError("NetworkError when attempting to fetch resource.")); } const blobURLEntryObject = resolveObjectURL(blobURLEntry.toString()); if (request.method !== "GET" || !isBlobLike(blobURLEntryObject)) { - return makeNetworkError("invalid method"); + return Promise.resolve(makeNetworkError("invalid method")); } const bodyWithType = safelyExtractBody(blobURLEntryObject); const body2 = bodyWithType[0]; @@ -13343,32 +13614,32 @@ var require_fetch = __commonJS({ ] }); response.body = body2; - return response; + return Promise.resolve(response); } case "data:": { const currentURL = requestCurrentURL(request); const dataURLStruct = dataURLProcessor(currentURL); if (dataURLStruct === "failure") { - return makeNetworkError("failed to fetch the data URL"); + return Promise.resolve(makeNetworkError("failed to fetch the data URL")); } const mimeType = serializeAMimeType(dataURLStruct.mimeType); - return makeResponse({ + return Promise.resolve(makeResponse({ statusText: "OK", headersList: [ ["content-type", { name: "Content-Type", value: mimeType }] ], body: safelyExtractBody(dataURLStruct.body)[0] - }); + })); } case "file:": { - return makeNetworkError("not implemented... yet..."); + return Promise.resolve(makeNetworkError("not implemented... yet...")); } case "http:": case "https:": { - return await httpFetch(fetchParams).catch((err) => makeNetworkError(err)); + return httpFetch(fetchParams).catch((err) => makeNetworkError(err)); } default: { - return makeNetworkError("unknown scheme"); + return Promise.resolve(makeNetworkError("unknown scheme")); } } } @@ -13378,7 +13649,7 @@ var require_fetch = __commonJS({ queueMicrotask(() => fetchParams.processResponseDone(response)); } } - async function fetchFinale(fetchParams, response) { + function fetchFinale(fetchParams, response) { if (response.type === "error") { response.urlList = [fetchParams.request.urlList[0]]; response.timingInfo = createOpaqueTimingInfo({ @@ -13422,8 +13693,9 @@ var require_fetch = __commonJS({ if (response.body == null) { queueMicrotask(() => processBody(null)); } else { - await fullyReadBody(response.body, processBody, processBodyError); + return fullyReadBody(response.body, processBody, processBodyError); } + return Promise.resolve(); } } async function httpFetch(fetchParams) { @@ -13453,7 +13725,7 @@ var require_fetch = __commonJS({ ) === "blocked") { return makeNetworkError("blocked"); } - if (redirectStatus.includes(actualResponse.status)) { + if (redirectStatusSet.has(actualResponse.status)) { if (request.redirect !== "manual") { fetchParams.controller.connection.destroy(); } @@ -13470,7 +13742,7 @@ var require_fetch = __commonJS({ response.timingInfo = timingInfo; return response; } - async function httpRedirectFetch(fetchParams, response) { + function httpRedirectFetch(fetchParams, response) { const request = fetchParams.request; const actualResponse = response.internalResponse ? response.internalResponse : response; let locationURL; @@ -13483,27 +13755,27 @@ var require_fetch = __commonJS({ return response; } } catch (err) { - return makeNetworkError(err); + return Promise.resolve(makeNetworkError(err)); } if (!urlIsHttpHttpsScheme(locationURL)) { - return makeNetworkError("URL scheme must be a HTTP(S) scheme"); + return Promise.resolve(makeNetworkError("URL scheme must be a HTTP(S) scheme")); } if (request.redirectCount === 20) { - return makeNetworkError("redirect count exceeded"); + return Promise.resolve(makeNetworkError("redirect count exceeded")); } request.redirectCount += 1; if (request.mode === "cors" && (locationURL.username || locationURL.password) && !sameOrigin(request, locationURL)) { - return makeNetworkError('cross origin not allowed for request mode "cors"'); + return Promise.resolve(makeNetworkError('cross origin not allowed for request mode "cors"')); } if (request.responseTainting === "cors" && (locationURL.username || locationURL.password)) { - return makeNetworkError( + return Promise.resolve(makeNetworkError( 'URL cannot contain credentials for request mode "cors"' - ); + )); } if (actualResponse.status !== 303 && request.body != null && request.body.source == null) { - return makeNetworkError(); + return Promise.resolve(makeNetworkError()); } - if ([301, 302].includes(actualResponse.status) && request.method === "POST" || actualResponse.status === 303 && !["GET", "HEAD"].includes(request.method)) { + if ([301, 302].includes(actualResponse.status) && request.method === "POST" || actualResponse.status === 303 && !GET_OR_HEAD.includes(request.method)) { request.method = "GET"; request.body = null; for (const headerName of requestBodyHeader) { @@ -13606,7 +13878,7 @@ var require_fetch = __commonJS({ includeCredentials, isNewConnectionFetch ); - if (!safeMethods.includes(httpRequest.method) && forwardResponse.status >= 200 && forwardResponse.status <= 399) { + if (!safeMethodsSet.has(httpRequest.method) && forwardResponse.status >= 200 && forwardResponse.status <= 399) { } if (revalidatingFlag && forwardResponse.status === 304) { } @@ -13690,14 +13962,14 @@ var require_fetch = __commonJS({ fetchParams.processRequestEndOfBody(); } }; - const processBodyError = (e2) => { + const processBodyError = (e3) => { if (isCancelled(fetchParams)) { return; } - if (e2.name === "AbortError") { + if (e3.name === "AbortError") { fetchParams.controller.abort(); } else { - fetchParams.controller.terminate(e2); + fetchParams.controller.terminate(e3); } }; requestBody = async function* () { @@ -13816,12 +14088,12 @@ var require_fetch = __commonJS({ async function dispatch({ body: body2 }) { const url2 = requestCurrentURL(request); const agent = fetchParams.controller.dispatcher; - return new Promise((resolve2, reject) => agent.dispatch( + return new Promise((resolve3, reject) => agent.dispatch( { path: url2.pathname + url2.search, origin: url2.origin, method: request.method, - body: fetchParams.controller.dispatcher.isMockActive ? request.body && request.body.source : body2, + body: fetchParams.controller.dispatcher.isMockActive ? request.body && (request.body.source || request.body.stream) : body2, headers: request.headersList.entries, maxRedirections: 0, upgrade: request.mode === "websocket" ? "websocket" : void 0 @@ -13846,31 +14118,31 @@ var require_fetch = __commonJS({ let location = ""; const headers = new Headers2(); if (Array.isArray(headersList)) { - for (let n2 = 0; n2 < headersList.length; n2 += 2) { - const key = headersList[n2 + 0].toString("latin1"); - const val = headersList[n2 + 1].toString("latin1"); + for (let n3 = 0; n3 < headersList.length; n3 += 2) { + const key = headersList[n3 + 0].toString("latin1"); + const val = headersList[n3 + 1].toString("latin1"); if (key.toLowerCase() === "content-encoding") { - codings = val.toLowerCase().split(",").map((x2) => x2.trim()); + codings = val.toLowerCase().split(",").map((x3) => x3.trim()); } else if (key.toLowerCase() === "location") { location = val; } - headers.append(key, val); + headers[kHeadersList].append(key, val); } } else { const keys = Object.keys(headersList); for (const key of keys) { const val = headersList[key]; if (key.toLowerCase() === "content-encoding") { - codings = val.toLowerCase().split(",").map((x2) => x2.trim()).reverse(); + codings = val.toLowerCase().split(",").map((x3) => x3.trim()).reverse(); } else if (key.toLowerCase() === "location") { location = val; } - headers.append(key, val); + headers[kHeadersList].append(key, val); } } this.body = new Readable5({ read: resume }); const decoders = []; - const willFollow = request.redirect === "follow" && location && redirectStatus.includes(status); + const willFollow = request.redirect === "follow" && location && redirectStatusSet.has(status); if (request.method !== "HEAD" && request.method !== "CONNECT" && !nullBodyStatus.includes(status) && !willFollow) { for (const coding of codings) { if (coding === "x-gzip" || coding === "gzip") { @@ -13892,7 +14164,7 @@ var require_fetch = __commonJS({ } } } - resolve2({ + resolve3({ status, statusText, headersList: headers[kHeadersList], @@ -13930,12 +14202,12 @@ var require_fetch = __commonJS({ return; } const headers = new Headers2(); - for (let n2 = 0; n2 < headersList.length; n2 += 2) { - const key = headersList[n2 + 0].toString("latin1"); - const val = headersList[n2 + 1].toString("latin1"); - headers.append(key, val); + for (let n3 = 0; n3 < headersList.length; n3 += 2) { + const key = headersList[n3 + 0].toString("latin1"); + const val = headersList[n3 + 1].toString("latin1"); + headers[kHeadersList].append(key, val); } - resolve2({ + resolve3({ status, statusText: STATUS_CODES3[status], headersList: headers[kHeadersList], @@ -14416,8 +14688,8 @@ var require_util4 = __commonJS({ } })(); } - function fireAProgressEvent(e2, reader) { - const event = new ProgressEvent(e2, { + function fireAProgressEvent(e3, reader) { + const event = new ProgressEvent(e3, { bubbles: false, cancelable: false }); @@ -14482,25 +14754,25 @@ var require_util4 = __commonJS({ return new TextDecoder(encoding).decode(sliced); } function BOMSniffing(ioQueue) { - const [a2, b2, c2] = ioQueue; - if (a2 === 239 && b2 === 187 && c2 === 191) { + const [a3, b3, c3] = ioQueue; + if (a3 === 239 && b3 === 187 && c3 === 191) { return "UTF-8"; - } else if (a2 === 254 && b2 === 255) { + } else if (a3 === 254 && b3 === 255) { return "UTF-16BE"; - } else if (a2 === 255 && b2 === 254) { + } else if (a3 === 255 && b3 === 254) { return "UTF-16LE"; } return null; } function combineByteSequences(sequences) { - const size = sequences.reduce((a2, b2) => { - return a2 + b2.byteLength; + const size = sequences.reduce((a3, b3) => { + return a3 + b3.byteLength; }, 0); let offset = 0; - return sequences.reduce((a2, b2) => { - a2.set(b2, offset); - offset += b2.byteLength; - return a2; + return sequences.reduce((a3, b3) => { + a3.set(b3, offset); + offset += b3.byteLength; + return a3; }, new Uint8Array(size)); } module.exports = { @@ -14775,7 +15047,7 @@ var require_symbols4 = __commonJS({ "node_modules/undici/lib/cache/symbols.js"(exports, module) { "use strict"; module.exports = { - kConstruct: Symbol("constructable") + kConstruct: require_symbols().kConstruct }; } }); @@ -14787,9 +15059,9 @@ var require_util5 = __commonJS({ var assert = __require("assert"); var { URLSerializer } = require_dataURL(); var { isValidHeaderName } = require_util2(); - function urlEquals(A2, B2, excludeFragment = false) { - const serializedA = URLSerializer(A2, excludeFragment); - const serializedB = URLSerializer(B2, excludeFragment); + function urlEquals(A3, B3, excludeFragment = false) { + const serializedA = URLSerializer(A3, excludeFragment); + const serializedB = URLSerializer(B3, excludeFragment); return serializedA === serializedB; } function fieldValues(header) { @@ -14828,7 +15100,7 @@ var require_cache = __commonJS({ var { fetching } = require_fetch(); var { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = require_util2(); var assert = __require("assert"); - var { getGlobalDispatcher } = require_global3(); + var { getGlobalDispatcher } = require_global2(); var Cache = class _Cache { /** * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list @@ -14846,26 +15118,26 @@ var require_cache = __commonJS({ webidl.argumentLengthCheck(arguments, 1, { header: "Cache.match" }); request = webidl.converters.RequestInfo(request); options = webidl.converters.CacheQueryOptions(options); - const p2 = await this.matchAll(request, options); - if (p2.length === 0) { + const p3 = await this.matchAll(request, options); + if (p3.length === 0) { return; } - return p2[0]; + return p3[0]; } async matchAll(request = void 0, options = {}) { webidl.brandCheck(this, _Cache); if (request !== void 0) request = webidl.converters.RequestInfo(request); options = webidl.converters.CacheQueryOptions(options); - let r2 = null; + let r3 = null; if (request !== void 0) { if (request instanceof Request2) { - r2 = request[kState]; - if (r2.method !== "GET" && !options.ignoreMethod) { + r3 = request[kState]; + if (r3.method !== "GET" && !options.ignoreMethod) { return []; } } else if (typeof request === "string") { - r2 = new Request2(request)[kState]; + r3 = new Request2(request)[kState]; } } const responses = []; @@ -14874,7 +15146,7 @@ var require_cache = __commonJS({ responses.push(requestResponse[1]); } } else { - const requestResponses = this.#queryCache(r2, options); + const requestResponses = this.#queryCache(r3, options); for (const requestResponse of requestResponses) { responses.push(requestResponse[1]); } @@ -14909,8 +15181,8 @@ var require_cache = __commonJS({ if (typeof request === "string") { continue; } - const r2 = request[kState]; - if (!urlIsHttpHttpsScheme(r2.url) || r2.method !== "GET") { + const r3 = request[kState]; + if (!urlIsHttpHttpsScheme(r3.url) || r3.method !== "GET") { throw webidl.errors.exception({ header: "Cache.addAll", message: "Expected http/s scheme when method is not GET." @@ -14919,19 +15191,19 @@ var require_cache = __commonJS({ } const fetchControllers = []; for (const request of requests) { - const r2 = new Request2(request)[kState]; - if (!urlIsHttpHttpsScheme(r2.url)) { + const r3 = new Request2(request)[kState]; + if (!urlIsHttpHttpsScheme(r3.url)) { throw webidl.errors.exception({ header: "Cache.addAll", message: "Expected http/s scheme." }); } - r2.initiator = "fetch"; - r2.destination = "subresource"; - requestList.push(r2); + r3.initiator = "fetch"; + r3.destination = "subresource"; + requestList.push(r3); const responsePromise = createDeferredPromise(); fetchControllers.push(fetching({ - request: r2, + request: r3, dispatcher: getGlobalDispatcher(), processResponse(response) { if (response.type === "error" || response.status === 206 || response.status < 200 || response.status > 299) { @@ -14965,8 +15237,8 @@ var require_cache = __commonJS({ })); responsePromises.push(responsePromise.promise); } - const p2 = Promise.all(responsePromises); - const responses = await p2; + const p3 = Promise.all(responsePromises); + const responses = await p3; const operations = []; let index = 0; for (const response of responses) { @@ -14985,8 +15257,8 @@ var require_cache = __commonJS({ let errorData = null; try { this.#batchCacheOperations(operations); - } catch (e2) { - errorData = e2; + } catch (e3) { + errorData = e3; } queueMicrotask(() => { if (errorData === null) { @@ -15065,8 +15337,8 @@ var require_cache = __commonJS({ let errorData = null; try { this.#batchCacheOperations(operations); - } catch (e2) { - errorData = e2; + } catch (e3) { + errorData = e3; } queueMicrotask(() => { if (errorData === null) { @@ -15082,20 +15354,20 @@ var require_cache = __commonJS({ webidl.argumentLengthCheck(arguments, 1, { header: "Cache.delete" }); request = webidl.converters.RequestInfo(request); options = webidl.converters.CacheQueryOptions(options); - let r2 = null; + let r3 = null; if (request instanceof Request2) { - r2 = request[kState]; - if (r2.method !== "GET" && !options.ignoreMethod) { + r3 = request[kState]; + if (r3.method !== "GET" && !options.ignoreMethod) { return false; } } else { assert(typeof request === "string"); - r2 = new Request2(request)[kState]; + r3 = new Request2(request)[kState]; } const operations = []; const operation = { type: "delete", - request: r2, + request: r3, options }; operations.push(operation); @@ -15104,8 +15376,8 @@ var require_cache = __commonJS({ let requestResponses; try { requestResponses = this.#batchCacheOperations(operations); - } catch (e2) { - errorData = e2; + } catch (e3) { + errorData = e3; } queueMicrotask(() => { if (errorData === null) { @@ -15127,15 +15399,15 @@ var require_cache = __commonJS({ if (request !== void 0) request = webidl.converters.RequestInfo(request); options = webidl.converters.CacheQueryOptions(options); - let r2 = null; + let r3 = null; if (request !== void 0) { if (request instanceof Request2) { - r2 = request[kState]; - if (r2.method !== "GET" && !options.ignoreMethod) { + r3 = request[kState]; + if (r3.method !== "GET" && !options.ignoreMethod) { return []; } } else if (typeof request === "string") { - r2 = new Request2(request)[kState]; + r3 = new Request2(request)[kState]; } } const promise = createDeferredPromise(); @@ -15145,7 +15417,7 @@ var require_cache = __commonJS({ requests.push(requestResponse[0]); } } else { - const requestResponses = this.#queryCache(r2, options); + const requestResponses = this.#queryCache(r3, options); for (const requestResponse of requestResponses) { requests.push(requestResponse[0]); } @@ -15209,14 +15481,14 @@ var require_cache = __commonJS({ message: "put operation should have an associated response" }); } - const r2 = operation.request; - if (!urlIsHttpHttpsScheme(r2.url)) { + const r3 = operation.request; + if (!urlIsHttpHttpsScheme(r3.url)) { throw webidl.errors.exception({ header: "Cache.#batchCacheOperations", message: "expected http or https scheme" }); } - if (r2.method !== "GET") { + if (r3.method !== "GET") { throw webidl.errors.exception({ header: "Cache.#batchCacheOperations", message: "not get method" @@ -15240,10 +15512,10 @@ var require_cache = __commonJS({ resultList.push([operation.request, operation.response]); } return resultList; - } catch (e2) { + } catch (e3) { this.#relevantRequestResponseList.length = 0; this.#relevantRequestResponseList = backupCache; - throw e2; + throw e3; } } /** @@ -15500,8 +15772,8 @@ var require_util6 = __commonJS({ } } } - function validateCookiePath(path14) { - for (const char of path14) { + function validateCookiePath(path15) { + for (const char of path15) { const code = char.charCodeAt(0); if (code < 33 || char === ";") { throw new Error("Invalid cookie path"); @@ -16213,8 +16485,8 @@ var require_util7 = __commonJS({ function isClosed(ws) { return ws[kReadyState] === states.CLOSED; } - function fireEvent(e2, target, eventConstructor = Event, eventInitDict) { - const event = new eventConstructor(e2, eventInitDict); + function fireEvent(e3, target, eventConstructor = Event, eventInitDict) { + const event = new eventConstructor(e3, eventInitDict); target.dispatchEvent(event); } function websocketMessageReceived(ws, type3, data) { @@ -16304,7 +16576,7 @@ var require_connection = __commonJS({ var { makeRequest } = require_request2(); var { fetching } = require_fetch(); var { Headers: Headers2 } = require_headers(); - var { getGlobalDispatcher } = require_global3(); + var { getGlobalDispatcher } = require_global2(); var { kHeadersList } = require_symbols(); var channels = {}; channels.open = diagnosticsChannel.channel("undici:websocket:open"); @@ -16481,8 +16753,8 @@ var require_frame = __commonJS({ buffer.writeUIntBE(bodyLength, 4, 6); } buffer[1] |= 128; - for (let i2 = 0; i2 < bodyLength; i2++) { - buffer[offset + i2] = this.frameData[i2] ^ this.maskKey[i2 % 4]; + for (let i3 = 0; i3 < bodyLength; i3++) { + buffer[offset + i3] = this.frameData[i3] ^ this.maskKey[i3 % 4]; } return buffer; } @@ -16520,7 +16792,7 @@ var require_receiver = __commonJS({ * @param {Buffer} chunk * @param {() => void} callback */ - _write(chunk, _2, callback) { + _write(chunk, _3, callback) { this.#buffers.push(chunk); this.#byteOffset += chunk.length; this.run(callback); @@ -16664,34 +16936,34 @@ var require_receiver = __commonJS({ * @param {number} n * @returns {Buffer|null} */ - consume(n2) { - if (n2 > this.#byteOffset) { + consume(n3) { + if (n3 > this.#byteOffset) { return null; - } else if (n2 === 0) { + } else if (n3 === 0) { return emptyBuffer; } - if (this.#buffers[0].length === n2) { + if (this.#buffers[0].length === n3) { this.#byteOffset -= this.#buffers[0].length; return this.#buffers.shift(); } - const buffer = Buffer.allocUnsafe(n2); + const buffer = Buffer.allocUnsafe(n3); let offset = 0; - while (offset !== n2) { + while (offset !== n3) { const next = this.#buffers[0]; const { length } = next; - if (length + offset === n2) { + if (length + offset === n3) { buffer.set(this.#buffers.shift(), offset); break; - } else if (length + offset > n2) { - buffer.set(next.subarray(0, n2 - offset), offset); - this.#buffers[0] = next.subarray(n2 - offset); + } else if (length + offset > n3) { + buffer.set(next.subarray(0, n3 - offset), offset); + this.#buffers[0] = next.subarray(n3 - offset); break; } else { buffer.set(this.#buffers.shift(), offset); offset += next.length; } } - this.#byteOffset -= n2; + this.#byteOffset -= n3; return buffer; } parseCloseBody(onlyCode, data) { @@ -16736,7 +17008,7 @@ var require_websocket = __commonJS({ var { webidl } = require_webidl(); var { DOMException: DOMException2 } = require_constants(); var { URLSerializer } = require_dataURL(); - var { getGlobalOrigin } = require_global2(); + var { getGlobalOrigin } = require_global(); var { staticPropertyDescriptors, states, opcodes, emptyBuffer } = require_constants4(); var { kWebSocketURL, @@ -16752,7 +17024,7 @@ var require_websocket = __commonJS({ var { WebsocketFrameSend } = require_frame(); var { ByteParser } = require_receiver(); var { kEnumerableProperty, isBlobLike } = require_util(); - var { getGlobalDispatcher } = require_global3(); + var { getGlobalDispatcher } = require_global2(); var { types } = __require("util"); var experimentalWarned = false; var WebSocket = class _WebSocket extends EventTarget { @@ -16785,8 +17057,8 @@ var require_websocket = __commonJS({ let urlRecord; try { urlRecord = new URL(url2, baseURL); - } catch (e2) { - throw new DOMException2(e2, "SyntaxError"); + } catch (e3) { + throw new DOMException2(e3, "SyntaxError"); } if (urlRecord.protocol === "http:") { urlRecord.protocol = "ws:"; @@ -16805,10 +17077,10 @@ var require_websocket = __commonJS({ if (typeof protocols === "string") { protocols = [protocols]; } - if (protocols.length !== new Set(protocols.map((p2) => p2.toLowerCase())).size) { + if (protocols.length !== new Set(protocols.map((p3) => p3.toLowerCase())).size) { throw new DOMException2("Invalid Sec-WebSocket-Protocol value", "SyntaxError"); } - if (protocols.length > 0 && !protocols.every((p2) => isValidSubprotocol(p2))) { + if (protocols.length > 0 && !protocols.every((p3) => isValidSubprotocol(p3))) { throw new DOMException2("Invalid Sec-WebSocket-Protocol value", "SyntaxError"); } this[kWebSocketURL] = new URL(urlRecord.href); @@ -17153,7 +17425,8 @@ var require_undici = __commonJS({ var MockPool = require_mock_pool(); var mockErrors = require_mock_errors(); var ProxyAgent = require_proxy_agent(); - var { getGlobalDispatcher, setGlobalDispatcher } = require_global3(); + var RetryHandler = require_RetryHandler(); + var { getGlobalDispatcher, setGlobalDispatcher } = require_global2(); var DecoratorHandler = require_DecoratorHandler(); var RedirectHandler = require_RedirectHandler(); var createRedirectInterceptor = require_redirectInterceptor(); @@ -17171,6 +17444,7 @@ var require_undici = __commonJS({ module.exports.BalancedPool = BalancedPool; module.exports.Agent = Agent3; module.exports.ProxyAgent = ProxyAgent; + module.exports.RetryHandler = RetryHandler; module.exports.DecoratorHandler = DecoratorHandler; module.exports.RedirectHandler = RedirectHandler; module.exports.createRedirectInterceptor = createRedirectInterceptor; @@ -17192,11 +17466,11 @@ var require_undici = __commonJS({ if (typeof opts.path !== "string") { throw new InvalidArgumentError("invalid opts.path"); } - let path14 = opts.path; + let path15 = opts.path; if (!opts.path.startsWith("/")) { - path14 = `/${path14}`; + path15 = `/${path15}`; } - url2 = new URL(util3.parseOrigin(url2).origin + path14); + url2 = new URL(util3.parseOrigin(url2).origin + path15); } else { if (!opts) { opts = typeof url2 === "object" ? url2 : {}; @@ -17238,7 +17512,7 @@ var require_undici = __commonJS({ module.exports.FormData = require_formdata().FormData; module.exports.File = require_file().File; module.exports.FileReader = require_filereader().FileReader; - const { setGlobalOrigin, getGlobalOrigin } = require_global2(); + const { setGlobalOrigin, getGlobalOrigin } = require_global(); module.exports.setGlobalOrigin = setGlobalOrigin; module.exports.getGlobalOrigin = getGlobalOrigin; const { CacheStorage } = require_cachestorage(); @@ -17275,68 +17549,68 @@ var require_undici = __commonJS({ var require_lib = __commonJS({ "node_modules/@actions/http-client/lib/index.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - var desc = Object.getOwnPropertyDescriptor(m3, k2); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + k22 = k3; + var desc = Object.getOwnPropertyDescriptor(m4, k3); + if (!desc || ("get" in desc ? !m4.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k2]; + return m4[k3]; } }; } - Object.defineProperty(o2, k22, desc); - } : function(o2, m3, k2, k22) { + Object.defineProperty(o3, k22, desc); + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; }; - var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P3, generator) { function adopt(value) { - return value instanceof P2 ? value : new P2(function(resolve2) { - resolve2(value); + return value instanceof P3 ? value : new P3(function(resolve3) { + resolve3(value); }); } - return new (P2 || (P2 = Promise))(function(resolve2, reject) { + return new (P3 || (P3 = Promise))(function(resolve3, reject) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0; - var http4 = __importStar(__require("http")); + var http3 = __importStar(__require("http")); var https3 = __importStar(__require("https")); var pm = __importStar(require_proxy()); var tunnel2 = __importStar(require_tunnel2()); @@ -17380,11 +17654,11 @@ var require_lib = __commonJS({ (function(MediaTypes2) { MediaTypes2["ApplicationJson"] = "application/json"; })(MediaTypes || (exports.MediaTypes = MediaTypes = {})); - function getProxyUrl(serverUrl) { + function getProxyUrl2(serverUrl) { const proxyUrl = pm.getProxyUrl(new URL(serverUrl)); return proxyUrl ? proxyUrl.href : ""; } - exports.getProxyUrl = getProxyUrl; + exports.getProxyUrl = getProxyUrl2; var HttpRedirectCodes = [ HttpCodes2.MovedPermanently, HttpCodes2.ResourceMoved, @@ -17415,26 +17689,26 @@ var require_lib = __commonJS({ } readBody() { return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve2) => __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve3) => __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", () => { - resolve2(output.toString()); + resolve3(output.toString()); }); })); }); } readBodyBuffer() { return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve2) => __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve3) => __awaiter(this, void 0, void 0, function* () { const chunks = []; this.message.on("data", (chunk) => { chunks.push(chunk); }); this.message.on("end", () => { - resolve2(Buffer.concat(chunks)); + resolve3(Buffer.concat(chunks)); }); })); }); @@ -17643,14 +17917,14 @@ var require_lib = __commonJS({ */ requestRaw(info3, data) { return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve2, reject) => { + return new Promise((resolve3, reject) => { function callbackForResult(err, res) { if (err) { reject(err); } else if (!res) { reject(new Error("Unknown error")); } else { - resolve2(res); + resolve3(res); } } this.requestRawWithCallback(info3, data, callbackForResult); @@ -17728,7 +18002,7 @@ var require_lib = __commonJS({ const info3 = {}; info3.parsedUrl = requestUrl; const usingSsl = info3.parsedUrl.protocol === "https:"; - info3.httpModule = usingSsl ? https3 : http4; + info3.httpModule = usingSsl ? https3 : http3; const defaultPort = usingSsl ? 443 : 80; info3.options = {}; info3.options.host = info3.parsedUrl.hostname; @@ -17776,7 +18050,7 @@ var require_lib = __commonJS({ const usingSsl = parsedUrl.protocol === "https:"; let maxSockets = 100; if (this.requestOptions) { - maxSockets = this.requestOptions.maxSockets || http4.globalAgent.maxSockets; + maxSockets = this.requestOptions.maxSockets || http3.globalAgent.maxSockets; } if (proxyUrl && proxyUrl.hostname) { const agentOptions = { @@ -17798,7 +18072,7 @@ var require_lib = __commonJS({ } if (!agent) { const options = { keepAlive: this._keepAlive, maxSockets }; - agent = usingSsl ? new https3.Agent(options) : new http4.Agent(options); + agent = usingSsl ? new https3.Agent(options) : new http3.Agent(options); this._agent = agent; } if (usingSsl && this._ignoreSslError) { @@ -17832,12 +18106,12 @@ var require_lib = __commonJS({ return __awaiter(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); - return new Promise((resolve2) => setTimeout(() => resolve2(), ms)); + return new Promise((resolve3) => setTimeout(() => resolve3(), ms)); }); } _processResponse(res, options) { return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve2, reject) => __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve3, reject) => __awaiter(this, void 0, void 0, function* () { const statusCode = res.message.statusCode || 0; const response = { statusCode, @@ -17845,13 +18119,13 @@ var require_lib = __commonJS({ headers: {} }; if (statusCode === HttpCodes2.NotFound) { - resolve2(response); + resolve3(response); } function dateTimeDeserializer(key, value) { if (typeof value === "string") { - const a2 = new Date(value); - if (!isNaN(a2.valueOf())) { - return a2; + const a3 = new Date(value); + if (!isNaN(a3.valueOf())) { + return a3; } } return value; @@ -17884,14 +18158,14 @@ var require_lib = __commonJS({ err.result = response.result; reject(err); } else { - resolve2(response); + resolve3(response); } })); }); } }; exports.HttpClient = HttpClient2; - var lowercaseKeys = (obj) => Object.keys(obj).reduce((c2, k2) => (c2[k2.toLowerCase()] = obj[k2], c2), {}); + var lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k3) => (c3[k3.toLowerCase()] = obj[k3], c3), {}); } }); @@ -17899,29 +18173,29 @@ var require_lib = __commonJS({ var require_auth = __commonJS({ "node_modules/@actions/http-client/lib/auth.js"(exports) { "use strict"; - var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P3, generator) { function adopt(value) { - return value instanceof P2 ? value : new P2(function(resolve2) { - resolve2(value); + return value instanceof P3 ? value : new P3(function(resolve3) { + resolve3(value); }); } - return new (P2 || (P2 = Promise))(function(resolve2, reject) { + return new (P3 || (P3 = Promise))(function(resolve3, reject) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -18003,29 +18277,29 @@ var require_auth = __commonJS({ var require_oidc_utils = __commonJS({ "node_modules/@actions/core/lib/oidc-utils.js"(exports) { "use strict"; - var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P3, generator) { function adopt(value) { - return value instanceof P2 ? value : new P2(function(resolve2) { - resolve2(value); + return value instanceof P3 ? value : new P3(function(resolve3) { + resolve3(value); }); } - return new (P2 || (P2 = Promise))(function(resolve2, reject) { + return new (P3 || (P3 = Promise))(function(resolve3, reject) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -18101,29 +18375,29 @@ var require_oidc_utils = __commonJS({ var require_summary = __commonJS({ "node_modules/@actions/core/lib/summary.js"(exports) { "use strict"; - var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P3, generator) { function adopt(value) { - return value instanceof P2 ? value : new P2(function(resolve2) { - resolve2(value); + return value instanceof P3 ? value : new P3(function(resolve3) { + resolve3(value); }); } - return new (P2 || (P2 = Promise))(function(resolve2, reject) { + return new (P3 || (P3 = Promise))(function(resolve3, reject) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -18395,37 +18669,37 @@ var require_summary = __commonJS({ var require_path_utils = __commonJS({ "node_modules/@actions/core/lib/path-utils.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0; - var path14 = __importStar(__require("path")); + var path15 = __importStar(__require("path")); function toPosixPath(pth) { return pth.replace(/[\\]/g, "/"); } @@ -18435,7 +18709,7 @@ var require_path_utils = __commonJS({ } exports.toWin32Path = toWin32Path; function toPlatformPath(pth) { - return pth.replace(/[/\\]/g, path14.sep); + return pth.replace(/[/\\]/g, path15.sep); } exports.toPlatformPath = toPlatformPath; } @@ -18445,57 +18719,57 @@ var require_path_utils = __commonJS({ var require_core = __commonJS({ "node_modules/@actions/core/lib/core.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; }; - var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P3, generator) { function adopt(value) { - return value instanceof P2 ? value : new P2(function(resolve2) { - resolve2(value); + return value instanceof P3 ? value : new P3(function(resolve3) { + resolve3(value); }); } - return new (P2 || (P2 = Promise))(function(resolve2, reject) { + return new (P3 || (P3 = Promise))(function(resolve3, reject) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -18505,8 +18779,8 @@ var require_core = __commonJS({ var command_1 = require_command(); var file_command_1 = require_file_command(); var utils_1 = require_utils(); - var os3 = __importStar(__require("os")); - var path14 = __importStar(__require("path")); + var os4 = __importStar(__require("os")); + var path15 = __importStar(__require("path")); var oidc_utils_1 = require_oidc_utils(); var ExitCode; (function(ExitCode2) { @@ -18534,7 +18808,7 @@ var require_core = __commonJS({ } else { command_1.issueCommand("add-path", {}, inputPath); } - process.env["PATH"] = `${inputPath}${path14.delimiter}${process.env["PATH"]}`; + process.env["PATH"] = `${inputPath}${path15.delimiter}${process.env["PATH"]}`; } exports.addPath = addPath2; function getInput2(name2, options) { @@ -18549,7 +18823,7 @@ var require_core = __commonJS({ } exports.getInput = getInput2; function getMultilineInput(name2, options) { - const inputs = getInput2(name2, options).split("\n").filter((x2) => x2 !== ""); + const inputs = getInput2(name2, options).split("\n").filter((x3) => x3 !== ""); if (options && options.trimWhitespace === false) { return inputs; } @@ -18573,7 +18847,7 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); if (filePath) { return file_command_1.issueFileCommand("OUTPUT", file_command_1.prepareKeyValueMessage(name2, value)); } - process.stdout.write(os3.EOL); + process.stdout.write(os4.EOL); command_1.issueCommand("set-output", { name: name2 }, utils_1.toCommandValue(value)); } exports.setOutput = setOutput3; @@ -18586,10 +18860,10 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); error(message); } exports.setFailed = setFailed2; - function isDebug2() { + function isDebug3() { return process.env["RUNNER_DEBUG"] === "1"; } - exports.isDebug = isDebug2; + exports.isDebug = isDebug3; function debug3(message) { command_1.issueCommand("debug", {}, message); } @@ -18607,7 +18881,7 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); } exports.notice = notice2; function info3(message) { - process.stdout.write(message + os3.EOL); + process.stdout.write(message + os4.EOL); } exports.info = info3; function startGroup(name2) { @@ -18674,57 +18948,57 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); var require_io_util = __commonJS({ "node_modules/@actions/io/lib/io-util.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; }; - var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P3, generator) { function adopt(value) { - return value instanceof P2 ? value : new P2(function(resolve2) { - resolve2(value); + return value instanceof P3 ? value : new P3(function(resolve3) { + resolve3(value); }); } - return new (P2 || (P2 = Promise))(function(resolve2, reject) { + return new (P3 || (P3 = Promise))(function(resolve3, reject) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -18733,7 +19007,7 @@ var require_io_util = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0; var fs3 = __importStar(__require("fs")); - var path14 = __importStar(__require("path")); + var path15 = __importStar(__require("path")); _a2 = fs3.promises, exports.chmod = _a2.chmod, exports.copyFile = _a2.copyFile, exports.lstat = _a2.lstat, exports.mkdir = _a2.mkdir, exports.open = _a2.open, exports.readdir = _a2.readdir, exports.readlink = _a2.readlink, exports.rename = _a2.rename, exports.rm = _a2.rm, exports.rmdir = _a2.rmdir, exports.stat = _a2.stat, exports.symlink = _a2.symlink, exports.unlink = _a2.unlink; exports.IS_WINDOWS = process.platform === "win32"; exports.UV_FS_O_EXLOCK = 268435456; @@ -18759,15 +19033,15 @@ var require_io_util = __commonJS({ }); } exports.isDirectory = isDirectory; - function isRooted(p2) { - p2 = normalizeSeparators(p2); - if (!p2) { + function isRooted(p3) { + p3 = normalizeSeparators(p3); + if (!p3) { throw new Error('isRooted() parameter "p" cannot be empty'); } if (exports.IS_WINDOWS) { - return p2.startsWith("\\") || /^[A-Z]:/i.test(p2); + return p3.startsWith("\\") || /^[A-Z]:/i.test(p3); } - return p2.startsWith("/"); + return p3.startsWith("/"); } exports.isRooted = isRooted; function tryGetExecutablePath(filePath, extensions) { @@ -18782,7 +19056,7 @@ var require_io_util = __commonJS({ } if (stats && stats.isFile()) { if (exports.IS_WINDOWS) { - const upperExt = path14.extname(filePath).toUpperCase(); + const upperExt = path15.extname(filePath).toUpperCase(); if (extensions.some((validExt) => validExt.toUpperCase() === upperExt)) { return filePath; } @@ -18806,11 +19080,11 @@ var require_io_util = __commonJS({ if (stats && stats.isFile()) { if (exports.IS_WINDOWS) { try { - const directory = path14.dirname(filePath); - const upperName = path14.basename(filePath).toUpperCase(); + const directory = path15.dirname(filePath); + const upperName = path15.basename(filePath).toUpperCase(); for (const actualName of yield exports.readdir(directory)) { if (upperName === actualName.toUpperCase()) { - filePath = path14.join(directory, actualName); + filePath = path15.join(directory, actualName); break; } } @@ -18829,13 +19103,13 @@ var require_io_util = __commonJS({ }); } exports.tryGetExecutablePath = tryGetExecutablePath; - function normalizeSeparators(p2) { - p2 = p2 || ""; + function normalizeSeparators(p3) { + p3 = p3 || ""; if (exports.IS_WINDOWS) { - p2 = p2.replace(/\//g, "\\"); - return p2.replace(/\\\\+/g, "\\"); + p3 = p3.replace(/\//g, "\\"); + return p3.replace(/\\\\+/g, "\\"); } - return p2.replace(/\/\/+/g, "/"); + return p3.replace(/\/\/+/g, "/"); } function isUnixExecutable(stats) { return (stats.mode & 1) > 0 || (stats.mode & 8) > 0 && stats.gid === process.getgid() || (stats.mode & 64) > 0 && stats.uid === process.getuid(); @@ -18852,57 +19126,57 @@ var require_io_util = __commonJS({ var require_io = __commonJS({ "node_modules/@actions/io/lib/io.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; }; - var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P3, generator) { function adopt(value) { - return value instanceof P2 ? value : new P2(function(resolve2) { - resolve2(value); + return value instanceof P3 ? value : new P3(function(resolve3) { + resolve3(value); }); } - return new (P2 || (P2 = Promise))(function(resolve2, reject) { + return new (P3 || (P3 = Promise))(function(resolve3, reject) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -18910,7 +19184,7 @@ var require_io = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0; var assert_1 = __require("assert"); - var path14 = __importStar(__require("path")); + var path15 = __importStar(__require("path")); var ioUtil = __importStar(require_io_util()); function cp(source, dest, options = {}) { return __awaiter(this, void 0, void 0, function* () { @@ -18919,7 +19193,7 @@ var require_io = __commonJS({ if (destStat && destStat.isFile() && !force) { return; } - const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? path14.join(dest, path14.basename(source)) : dest; + const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? path15.join(dest, path15.basename(source)) : dest; if (!(yield ioUtil.exists(source))) { throw new Error(`no such file or directory: ${source}`); } @@ -18931,7 +19205,7 @@ var require_io = __commonJS({ yield cpDirRecursive(source, newDest, 0, force); } } else { - if (path14.relative(source, newDest) === "") { + if (path15.relative(source, newDest) === "") { throw new Error(`'${newDest}' and '${source}' are the same file`); } yield copyFile(source, newDest, force); @@ -18944,7 +19218,7 @@ var require_io = __commonJS({ if (yield ioUtil.exists(dest)) { let destExists = true; if (yield ioUtil.isDirectory(dest)) { - dest = path14.join(dest, path14.basename(source)); + dest = path15.join(dest, path15.basename(source)); destExists = yield ioUtil.exists(dest); } if (destExists) { @@ -18955,7 +19229,7 @@ var require_io = __commonJS({ } } } - yield mkdirP(path14.dirname(dest)); + yield mkdirP(path15.dirname(dest)); yield ioUtil.rename(source, dest); }); } @@ -19018,7 +19292,7 @@ var require_io = __commonJS({ } const extensions = []; if (ioUtil.IS_WINDOWS && process.env["PATHEXT"]) { - for (const extension of process.env["PATHEXT"].split(path14.delimiter)) { + for (const extension of process.env["PATHEXT"].split(path15.delimiter)) { if (extension) { extensions.push(extension); } @@ -19031,20 +19305,20 @@ var require_io = __commonJS({ } return []; } - if (tool.includes(path14.sep)) { + if (tool.includes(path15.sep)) { return []; } const directories = []; if (process.env.PATH) { - for (const p2 of process.env.PATH.split(path14.delimiter)) { - if (p2) { - directories.push(p2); + for (const p3 of process.env.PATH.split(path15.delimiter)) { + if (p3) { + directories.push(p3); } } } const matches = []; for (const directory of directories) { - const filePath = yield ioUtil.tryGetExecutablePath(path14.join(directory, tool), extensions); + const filePath = yield ioUtil.tryGetExecutablePath(path15.join(directory, tool), extensions); if (filePath) { matches.push(filePath); } @@ -19085,8 +19359,8 @@ var require_io = __commonJS({ try { yield ioUtil.lstat(destFile); yield ioUtil.unlink(destFile); - } catch (e2) { - if (e2.code === "EPERM") { + } catch (e3) { + if (e3.code === "EPERM") { yield ioUtil.chmod(destFile, "0666"); yield ioUtil.unlink(destFile); } @@ -19105,67 +19379,67 @@ var require_io = __commonJS({ var require_toolrunner = __commonJS({ "node_modules/@actions/exec/lib/toolrunner.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; }; - var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P3, generator) { function adopt(value) { - return value instanceof P2 ? value : new P2(function(resolve2) { - resolve2(value); + return value instanceof P3 ? value : new P3(function(resolve3) { + resolve3(value); }); } - return new (P2 || (P2 = Promise))(function(resolve2, reject) { + return new (P3 || (P3 = Promise))(function(resolve3, reject) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.argStringToArray = exports.ToolRunner = void 0; - var os3 = __importStar(__require("os")); + var os4 = __importStar(__require("os")); var events = __importStar(__require("events")); var child = __importStar(__require("child_process")); - var path14 = __importStar(__require("path")); + var path15 = __importStar(__require("path")); var io2 = __importStar(require_io()); var ioUtil = __importStar(require_io_util()); var timers_1 = __require("timers"); @@ -19192,39 +19466,39 @@ var require_toolrunner = __commonJS({ if (IS_WINDOWS) { if (this._isCmdFile()) { cmd += toolPath; - for (const a2 of args) { - cmd += ` ${a2}`; + for (const a3 of args) { + cmd += ` ${a3}`; } } else if (options.windowsVerbatimArguments) { cmd += `"${toolPath}"`; - for (const a2 of args) { - cmd += ` ${a2}`; + for (const a3 of args) { + cmd += ` ${a3}`; } } else { cmd += this._windowsQuoteCmdArg(toolPath); - for (const a2 of args) { - cmd += ` ${this._windowsQuoteCmdArg(a2)}`; + for (const a3 of args) { + cmd += ` ${this._windowsQuoteCmdArg(a3)}`; } } } else { cmd += toolPath; - for (const a2 of args) { - cmd += ` ${a2}`; + for (const a3 of args) { + cmd += ` ${a3}`; } } return cmd; } _processLineBuffer(data, strBuffer, onLine) { try { - let s2 = strBuffer + data.toString(); - let n2 = s2.indexOf(os3.EOL); - while (n2 > -1) { - const line = s2.substring(0, n2); + let s3 = strBuffer + data.toString(); + let n3 = s3.indexOf(os4.EOL); + while (n3 > -1) { + const line = s3.substring(0, n3); onLine(line); - s2 = s2.substring(n2 + os3.EOL.length); - n2 = s2.indexOf(os3.EOL); + s3 = s3.substring(n3 + os4.EOL.length); + n3 = s3.indexOf(os4.EOL); } - return s2; + return s3; } catch (err) { this._debug(`error processing line. Failed with error ${err}`); return ""; @@ -19242,9 +19516,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]; @@ -19292,7 +19566,7 @@ var require_toolrunner = __commonJS({ ]; let needsQuotes = false; for (const char of arg) { - if (cmdSpecialChars.some((x2) => x2 === char)) { + if (cmdSpecialChars.some((x3) => x3 === char)) { needsQuotes = true; break; } @@ -19302,11 +19576,11 @@ var require_toolrunner = __commonJS({ } let reverse = '"'; let quoteHit = true; - for (let i2 = arg.length; i2 > 0; i2--) { - reverse += arg[i2 - 1]; - if (quoteHit && arg[i2 - 1] === "\\") { + for (let i3 = arg.length; i3 > 0; i3--) { + reverse += arg[i3 - 1]; + if (quoteHit && arg[i3 - 1] === "\\") { reverse += "\\"; - } else if (arg[i2 - 1] === '"') { + } else if (arg[i3 - 1] === '"') { quoteHit = true; reverse += '"'; } else { @@ -19328,11 +19602,11 @@ var require_toolrunner = __commonJS({ } let reverse = '"'; let quoteHit = true; - for (let i2 = arg.length; i2 > 0; i2--) { - reverse += arg[i2 - 1]; - if (quoteHit && arg[i2 - 1] === "\\") { + for (let i3 = arg.length; i3 > 0; i3--) { + reverse += arg[i3 - 1]; + if (quoteHit && arg[i3 - 1] === "\\") { reverse += "\\"; - } else if (arg[i2 - 1] === '"') { + } else if (arg[i3 - 1] === '"') { quoteHit = true; reverse += "\\"; } else { @@ -19380,10 +19654,10 @@ var require_toolrunner = __commonJS({ exec() { return __awaiter(this, void 0, void 0, function* () { if (!ioUtil.isRooted(this.toolPath) && (this.toolPath.includes("/") || IS_WINDOWS && this.toolPath.includes("\\"))) { - this.toolPath = path14.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath); + this.toolPath = path15.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath); } this.toolPath = yield io2.which(this.toolPath, true); - return new Promise((resolve2, reject) => __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve3, reject) => __awaiter(this, void 0, void 0, function* () { this._debug(`exec tool: ${this.toolPath}`); this._debug("arguments:"); for (const arg of this.args) { @@ -19391,7 +19665,7 @@ var require_toolrunner = __commonJS({ } const optionsNonNull = this._cloneExecOptions(this.options); if (!optionsNonNull.silent && optionsNonNull.outStream) { - optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + os3.EOL); + optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + os4.EOL); } const state = new ExecState(optionsNonNull, this.toolPath); state.on("debug", (message) => { @@ -19426,8 +19700,8 @@ var require_toolrunner = __commonJS({ this.options.listeners.stderr(data); } if (!optionsNonNull.silent && optionsNonNull.errStream && optionsNonNull.outStream) { - const s2 = optionsNonNull.failOnStdErr ? optionsNonNull.errStream : optionsNonNull.outStream; - s2.write(data); + const s3 = optionsNonNull.failOnStdErr ? optionsNonNull.errStream : optionsNonNull.outStream; + s3.write(data); } errbuffer = this._processLineBuffer(data, errbuffer, (line) => { if (this.options.listeners && this.options.listeners.errline) { @@ -19466,7 +19740,7 @@ var require_toolrunner = __commonJS({ if (error) { reject(error); } else { - resolve2(exitCode); + resolve3(exitCode); } }); if (this.options.input) { @@ -19485,39 +19759,39 @@ var require_toolrunner = __commonJS({ let inQuotes = false; let escaped = false; let arg = ""; - function append(c2) { - if (escaped && c2 !== '"') { + function append(c3) { + if (escaped && c3 !== '"') { arg += "\\"; } - arg += c2; + arg += c3; escaped = false; } - for (let i2 = 0; i2 < argString.length; i2++) { - const c2 = argString.charAt(i2); - if (c2 === '"') { + for (let i3 = 0; i3 < argString.length; i3++) { + const c3 = argString.charAt(i3); + if (c3 === '"') { if (!escaped) { inQuotes = !inQuotes; } else { - append(c2); + append(c3); } continue; } - if (c2 === "\\" && escaped) { - append(c2); + if (c3 === "\\" && escaped) { + append(c3); continue; } - if (c2 === "\\" && inQuotes) { + if (c3 === "\\" && inQuotes) { escaped = true; continue; } - if (c2 === " " && !inQuotes) { + if (c3 === " " && !inQuotes) { if (arg.length > 0) { args.push(arg); arg = ""; } continue; } - append(c2); + append(c3); } if (arg.length > 0) { args.push(arg.trim()); @@ -19594,57 +19868,57 @@ var require_toolrunner = __commonJS({ var require_exec = __commonJS({ "node_modules/@actions/exec/lib/exec.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; }; - var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P3, generator) { function adopt(value) { - return value instanceof P2 ? value : new P2(function(resolve2) { - resolve2(value); + return value instanceof P3 ? value : new P3(function(resolve3) { + resolve3(value); }); } - return new (P2 || (P2 = Promise))(function(resolve2, reject) { + return new (P3 || (P3 = Promise))(function(resolve3, reject) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -19669,7 +19943,7 @@ var require_exec = __commonJS({ function getExecOutput2(commandLine, args, options) { var _a2, _b2; return __awaiter(this, void 0, void 0, function* () { - let stdout = ""; + let stdout2 = ""; let stderr = ""; const stdoutDecoder = new string_decoder_1.StringDecoder("utf8"); const stderrDecoder = new string_decoder_1.StringDecoder("utf8"); @@ -19682,18 +19956,18 @@ var require_exec = __commonJS({ } }; const stdOutListener = (data) => { - stdout += stdoutDecoder.write(data); + stdout2 += stdoutDecoder.write(data); if (originalStdoutListener) { originalStdoutListener(data); } }; const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), { stdout: stdOutListener, stderr: stdErrListener }); const exitCode = yield exec2(commandLine, args, Object.assign(Object.assign({}, options), { listeners })); - stdout += stdoutDecoder.end(); + stdout2 += stdoutDecoder.end(); stderr += stderrDecoder.end(); return { exitCode, - stdout, + stdout: stdout2, stderr }; }); @@ -19706,30 +19980,30 @@ var require_exec = __commonJS({ var require_internal_glob_options_helper = __commonJS({ "node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; @@ -19767,30 +20041,30 @@ var require_internal_glob_options_helper = __commonJS({ var require_internal_path_helper = __commonJS({ "node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path-helper.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; @@ -19800,15 +20074,15 @@ var require_internal_path_helper = __commonJS({ }; Object.defineProperty(exports, "__esModule", { value: true }); exports.safeTrimTrailingSeparator = exports.normalizeSeparators = exports.hasRoot = exports.hasAbsoluteRoot = exports.ensureAbsoluteRoot = exports.dirname = void 0; - var path14 = __importStar(__require("path")); + var path15 = __importStar(__require("path")); var assert_1 = __importDefault(__require("assert")); var IS_WINDOWS = process.platform === "win32"; - function dirname(p2) { - p2 = safeTrimTrailingSeparator(p2); - if (IS_WINDOWS && /^\\\\[^\\]+(\\[^\\]+)?$/.test(p2)) { - return p2; + function dirname(p3) { + p3 = safeTrimTrailingSeparator(p3); + if (IS_WINDOWS && /^\\\\[^\\]+(\\[^\\]+)?$/.test(p3)) { + return p3; } - let result = path14.dirname(p2); + let result = path15.dirname(p3); if (IS_WINDOWS && /^\\\\[^\\]+\\[^\\]+\\$/.test(result)) { result = safeTrimTrailingSeparator(result); } @@ -19846,7 +20120,7 @@ var require_internal_path_helper = __commonJS({ assert_1.default(hasAbsoluteRoot(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`); if (root.endsWith("/") || IS_WINDOWS && root.endsWith("\\")) { } else { - root += path14.sep; + root += path15.sep; } return root + itemPath; } @@ -19869,31 +20143,31 @@ var require_internal_path_helper = __commonJS({ return itemPath.startsWith("/"); } exports.hasRoot = hasRoot; - function normalizeSeparators(p2) { - p2 = p2 || ""; + function normalizeSeparators(p3) { + p3 = p3 || ""; if (IS_WINDOWS) { - p2 = p2.replace(/\//g, "\\"); - const isUnc = /^\\\\+[^\\]/.test(p2); - return (isUnc ? "\\" : "") + p2.replace(/\\\\+/g, "\\"); + p3 = p3.replace(/\//g, "\\"); + const isUnc = /^\\\\+[^\\]/.test(p3); + return (isUnc ? "\\" : "") + p3.replace(/\\\\+/g, "\\"); } - return p2.replace(/\/\/+/g, "/"); + return p3.replace(/\/\/+/g, "/"); } exports.normalizeSeparators = normalizeSeparators; - function safeTrimTrailingSeparator(p2) { - if (!p2) { + function safeTrimTrailingSeparator(p3) { + if (!p3) { return ""; } - p2 = normalizeSeparators(p2); - if (!p2.endsWith(path14.sep)) { - return p2; + p3 = normalizeSeparators(p3); + if (!p3.endsWith(path15.sep)) { + return p3; } - if (p2 === path14.sep) { - return p2; + if (p3 === path15.sep) { + return p3; } - if (IS_WINDOWS && /^[A-Z]:\\$/i.test(p2)) { - return p2; + if (IS_WINDOWS && /^[A-Z]:\\$/i.test(p3)) { + return p3; } - return p2.substr(0, p2.length - 1); + return p3.substr(0, p3.length - 1); } exports.safeTrimTrailingSeparator = safeTrimTrailingSeparator; } @@ -19919,30 +20193,30 @@ var require_internal_match_kind = __commonJS({ var require_internal_pattern_helper = __commonJS({ "node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; @@ -19953,7 +20227,7 @@ var require_internal_pattern_helper = __commonJS({ var internal_match_kind_1 = require_internal_match_kind(); var IS_WINDOWS = process.platform === "win32"; function getSearchPaths(patterns) { - patterns = patterns.filter((x2) => !x2.negate); + patterns = patterns.filter((x3) => !x3.negate); const searchPathMap = {}; for (const pattern of patterns) { const key = IS_WINDOWS ? pattern.searchPath.toUpperCase() : pattern.searchPath; @@ -19997,7 +20271,7 @@ var require_internal_pattern_helper = __commonJS({ } exports.match = match; function partialMatch(patterns, itemPath) { - return patterns.some((x2) => !x2.negate && x2.partialMatch(itemPath)); + return patterns.some((x3) => !x3.negate && x3.partialMatch(itemPath)); } exports.partialMatch = partialMatch; } @@ -20008,12 +20282,12 @@ var require_concat_map = __commonJS({ "node_modules/concat-map/index.js"(exports, module) { module.exports = function(xs, fn2) { var res = []; - for (var i2 = 0; i2 < xs.length; i2++) { - var x2 = fn2(xs[i2], i2); - if (isArray(x2)) - res.push.apply(res, x2); + for (var i3 = 0; i3 < xs.length; i3++) { + var x3 = fn2(xs[i3], i3); + if (isArray(x3)) + res.push.apply(res, x3); else - res.push(x2); + res.push(x3); } return res; }; @@ -20028,40 +20302,40 @@ var require_balanced_match = __commonJS({ "node_modules/balanced-match/index.js"(exports, module) { "use strict"; module.exports = balanced; - function balanced(a2, b2, str) { - if (a2 instanceof RegExp) - a2 = maybeMatch(a2, str); - if (b2 instanceof RegExp) - b2 = maybeMatch(b2, str); - var r2 = range2(a2, b2, str); - return r2 && { - start: r2[0], - end: r2[1], - pre: str.slice(0, r2[0]), - body: str.slice(r2[0] + a2.length, r2[1]), - post: str.slice(r2[1] + b2.length) + function balanced(a3, b3, str) { + if (a3 instanceof RegExp) + a3 = maybeMatch(a3, str); + if (b3 instanceof RegExp) + b3 = maybeMatch(b3, str); + var r3 = range2(a3, b3, str); + return r3 && { + start: r3[0], + end: r3[1], + pre: str.slice(0, r3[0]), + body: str.slice(r3[0] + a3.length, r3[1]), + post: str.slice(r3[1] + b3.length) }; } function maybeMatch(reg, str) { - var m3 = str.match(reg); - return m3 ? m3[0] : null; + var m4 = str.match(reg); + return m4 ? m4[0] : null; } balanced.range = range2; - function range2(a2, b2, str) { + function range2(a3, b3, str) { var begs, beg, left, right, result; - var ai = str.indexOf(a2); - var bi = str.indexOf(b2, ai + 1); - var i2 = ai; + var ai = str.indexOf(a3); + var bi = str.indexOf(b3, ai + 1); + var i3 = ai; if (ai >= 0 && bi > 0) { - if (a2 === b2) { + if (a3 === b3) { return [ai, bi]; } begs = []; left = str.length; - while (i2 >= 0 && !result) { - if (i2 == ai) { - begs.push(i2); - ai = str.indexOf(a2, i2 + 1); + while (i3 >= 0 && !result) { + if (i3 == ai) { + begs.push(i3); + ai = str.indexOf(a3, i3 + 1); } else if (begs.length == 1) { result = [begs.pop(), bi]; } else { @@ -20070,9 +20344,9 @@ var require_balanced_match = __commonJS({ left = beg; right = bi; } - bi = str.indexOf(b2, i2 + 1); + bi = str.indexOf(b3, i3 + 1); } - i2 = ai < bi && ai >= 0 ? ai : bi; + i3 = ai < bi && ai >= 0 ? ai : bi; } if (begs.length) { result = [left, right]; @@ -20107,20 +20381,20 @@ var require_brace_expansion = __commonJS({ if (!str) return [""]; var parts = []; - var m3 = balanced("{", "}", str); - if (!m3) + var m4 = balanced("{", "}", str); + if (!m4) return str.split(","); - var pre = m3.pre; - var body2 = m3.body; - var post2 = m3.post; - var p2 = pre.split(","); - p2[p2.length - 1] += "{" + body2 + "}"; + var pre = m4.pre; + var body2 = m4.body; + var post2 = m4.post; + var p3 = pre.split(","); + p3[p3.length - 1] += "{" + body2 + "}"; var postParts = parseCommaParts(post2); if (post2.length) { - p2[p2.length - 1] += postParts.shift(); - p2.push.apply(p2, postParts); + p3[p3.length - 1] += postParts.shift(); + p3.push.apply(p3, postParts); } - parts.push.apply(parts, p2); + parts.push.apply(parts, p3); return parts; } function expandTop(str) { @@ -20137,88 +20411,88 @@ var require_brace_expansion = __commonJS({ function isPadded(el) { return /^-?0\d/.test(el); } - function lte(i2, y2) { - return i2 <= y2; + function lte(i3, y3) { + return i3 <= y3; } - function gte(i2, y2) { - return i2 >= y2; + function gte(i3, y3) { + return i3 >= y3; } function expand(str, isTop) { var expansions = []; - var m3 = balanced("{", "}", str); - if (!m3 || /\$$/.test(m3.pre)) + var m4 = balanced("{", "}", str); + if (!m4 || /\$$/.test(m4.pre)) return [str]; - var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m3.body); - var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m3.body); + var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m4.body); + var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m4.body); var isSequence = isNumericSequence || isAlphaSequence; - var isOptions = m3.body.indexOf(",") >= 0; + var isOptions = m4.body.indexOf(",") >= 0; if (!isSequence && !isOptions) { - if (m3.post.match(/,.*\}/)) { - str = m3.pre + "{" + m3.body + escClose + m3.post; + if (m4.post.match(/,.*\}/)) { + str = m4.pre + "{" + m4.body + escClose + m4.post; return expand(str); } return [str]; } - var n2; + var n3; if (isSequence) { - n2 = m3.body.split(/\.\./); + n3 = m4.body.split(/\.\./); } else { - n2 = parseCommaParts(m3.body); - if (n2.length === 1) { - n2 = expand(n2[0], false).map(embrace); - if (n2.length === 1) { - var post2 = m3.post.length ? expand(m3.post, false) : [""]; - return post2.map(function(p2) { - return m3.pre + n2[0] + p2; + n3 = parseCommaParts(m4.body); + if (n3.length === 1) { + n3 = expand(n3[0], false).map(embrace); + if (n3.length === 1) { + var post2 = m4.post.length ? expand(m4.post, false) : [""]; + return post2.map(function(p3) { + return m4.pre + n3[0] + p3; }); } } } - var pre = m3.pre; - var post2 = m3.post.length ? expand(m3.post, false) : [""]; - var N2; + var pre = m4.pre; + var post2 = m4.post.length ? expand(m4.post, false) : [""]; + var N3; if (isSequence) { - var x2 = numeric(n2[0]); - var y2 = numeric(n2[1]); - var width = Math.max(n2[0].length, n2[1].length); - var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1; + var x3 = numeric(n3[0]); + var y3 = numeric(n3[1]); + var width = Math.max(n3[0].length, n3[1].length); + var incr = n3.length == 3 ? Math.abs(numeric(n3[2])) : 1; var test = lte; - var reverse = y2 < x2; + var reverse = y3 < x3; if (reverse) { incr *= -1; test = gte; } - var pad = n2.some(isPadded); - N2 = []; - for (var i2 = x2; test(i2, y2); i2 += incr) { - var c2; + var pad = n3.some(isPadded); + N3 = []; + for (var i3 = x3; test(i3, y3); i3 += incr) { + var c3; if (isAlphaSequence) { - c2 = String.fromCharCode(i2); - if (c2 === "\\") - c2 = ""; + c3 = String.fromCharCode(i3); + if (c3 === "\\") + c3 = ""; } else { - c2 = String(i2); + c3 = String(i3); if (pad) { - var need = width - c2.length; + var need = width - c3.length; if (need > 0) { var z2 = new Array(need + 1).join("0"); - if (i2 < 0) - c2 = "-" + z2 + c2.slice(1); + if (i3 < 0) + c3 = "-" + z2 + c3.slice(1); else - c2 = z2 + c2; + c3 = z2 + c3; } } } - N2.push(c2); + N3.push(c3); } } else { - N2 = concatMap(n2, function(el) { + N3 = concatMap(n3, function(el) { return expand(el, false); }); } - for (var j2 = 0; j2 < N2.length; j2++) { - for (var k2 = 0; k2 < post2.length; k2++) { - var expansion = pre + N2[j2] + post2[k2]; + for (var j3 = 0; j3 < N3.length; j3++) { + for (var k3 = 0; k3 < post2.length; k3++) { + var expansion = pre + N3[j3] + post2[k3]; if (!isTop || isSequence || expansion) expansions.push(expansion); } @@ -20233,15 +20507,15 @@ var require_minimatch = __commonJS({ "node_modules/minimatch/minimatch.js"(exports, module) { module.exports = minimatch; minimatch.Minimatch = Minimatch; - var path14 = function() { + var path15 = function() { try { return __require("path"); - } catch (e2) { + } catch (e3) { } }() || { sep: "/" }; - minimatch.sep = path14.sep; + minimatch.sep = path15.sep; var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; var expand = require_brace_expansion(); var plTypes = { @@ -20256,9 +20530,9 @@ var require_minimatch = __commonJS({ var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; var reSpecials = charSet("().*{}+?[]^$\\!"); - function charSet(s2) { - return s2.split("").reduce(function(set2, c2) { - set2[c2] = true; + function charSet(s3) { + return s3.split("").reduce(function(set2, c3) { + set2[c3] = true; return set2; }, {}); } @@ -20266,63 +20540,63 @@ var require_minimatch = __commonJS({ minimatch.filter = filter; function filter(pattern, options) { options = options || {}; - return function(p2, i2, list3) { - return minimatch(p2, pattern, options); + return function(p3, i3, list3) { + return minimatch(p3, pattern, options); }; } - function ext(a2, b2) { - b2 = b2 || {}; - var t2 = {}; - Object.keys(a2).forEach(function(k2) { - t2[k2] = a2[k2]; + function ext(a3, b3) { + b3 = b3 || {}; + var t3 = {}; + Object.keys(a3).forEach(function(k3) { + t3[k3] = a3[k3]; }); - Object.keys(b2).forEach(function(k2) { - t2[k2] = b2[k2]; + Object.keys(b3).forEach(function(k3) { + t3[k3] = b3[k3]; }); - return t2; + return t3; } minimatch.defaults = function(def) { if (!def || typeof def !== "object" || !Object.keys(def).length) { return minimatch; } var orig = minimatch; - var m3 = function minimatch2(p2, pattern, options) { - return orig(p2, pattern, ext(def, options)); + var m4 = function minimatch2(p3, pattern, options) { + return orig(p3, pattern, ext(def, options)); }; - m3.Minimatch = function Minimatch2(pattern, options) { + m4.Minimatch = function Minimatch2(pattern, options) { return new orig.Minimatch(pattern, ext(def, options)); }; - m3.Minimatch.defaults = function defaults(options) { + m4.Minimatch.defaults = function defaults(options) { return orig.defaults(ext(def, options)).Minimatch; }; - m3.filter = function filter2(pattern, options) { + m4.filter = function filter2(pattern, options) { return orig.filter(pattern, ext(def, options)); }; - m3.defaults = function defaults(options) { + m4.defaults = function defaults(options) { return orig.defaults(ext(def, options)); }; - m3.makeRe = function makeRe2(pattern, options) { + m4.makeRe = function makeRe2(pattern, options) { return orig.makeRe(pattern, ext(def, options)); }; - m3.braceExpand = function braceExpand2(pattern, options) { + m4.braceExpand = function braceExpand2(pattern, options) { return orig.braceExpand(pattern, ext(def, options)); }; - m3.match = function(list3, pattern, options) { + m4.match = function(list3, pattern, options) { return orig.match(list3, pattern, ext(def, options)); }; - return m3; + return m4; }; Minimatch.defaults = function(def) { return minimatch.defaults(def).Minimatch; }; - function minimatch(p2, pattern, options) { + function minimatch(p3, pattern, options) { assertValidPattern(pattern); if (!options) options = {}; if (!options.nocomment && pattern.charAt(0) === "#") { return false; } - return new Minimatch(pattern, options).match(p2); + return new Minimatch(pattern, options).match(p3); } function Minimatch(pattern, options) { if (!(this instanceof Minimatch)) { @@ -20332,8 +20606,8 @@ var require_minimatch = __commonJS({ if (!options) options = {}; pattern = pattern.trim(); - if (!options.allowWindowsEscape && path14.sep !== "/") { - pattern = pattern.split(path14.sep).join("/"); + if (!options.allowWindowsEscape && path15.sep !== "/") { + pattern = pattern.split(path15.sep).join("/"); } this.options = options; this.set = []; @@ -20366,16 +20640,16 @@ var require_minimatch = __commonJS({ console.error.apply(console, arguments); }; this.debug(this.pattern, set2); - set2 = this.globParts = set2.map(function(s2) { - return s2.split(slashSplit); + set2 = this.globParts = set2.map(function(s3) { + return s3.split(slashSplit); }); this.debug(this.pattern, set2); - set2 = set2.map(function(s2, si, set3) { - return s2.map(this.parse, this); + set2 = set2.map(function(s3, si, set3) { + return s3.map(this.parse, this); }, this); this.debug(this.pattern, set2); - set2 = set2.filter(function(s2) { - return s2.indexOf(false) === -1; + set2 = set2.filter(function(s3) { + return s3.indexOf(false) === -1; }); this.debug(this.pattern, set2); this.set = set2; @@ -20388,7 +20662,7 @@ var require_minimatch = __commonJS({ var negateOffset = 0; if (options.nonegate) return; - for (var i2 = 0, l2 = pattern.length; i2 < l2 && pattern.charAt(i2) === "!"; i2++) { + for (var i3 = 0, l3 = pattern.length; i3 < l3 && pattern.charAt(i3) === "!"; i3++) { negate = !negate; negateOffset++; } @@ -20467,14 +20741,14 @@ var require_minimatch = __commonJS({ stateChar = false; } } - for (var i2 = 0, len = pattern.length, c2; i2 < len && (c2 = pattern.charAt(i2)); i2++) { - this.debug("%s %s %s %j", pattern, i2, re3, c2); - if (escaping && reSpecials[c2]) { - re3 += "\\" + c2; + for (var i3 = 0, len = pattern.length, c3; i3 < len && (c3 = pattern.charAt(i3)); i3++) { + this.debug("%s %s %s %j", pattern, i3, re3, c3); + if (escaping && reSpecials[c3]) { + re3 += "\\" + c3; escaping = false; continue; } - switch (c2) { + switch (c3) { case "/": { return false; } @@ -20487,17 +20761,17 @@ var require_minimatch = __commonJS({ case "+": case "@": case "!": - this.debug("%s %s %s %j <-- stateChar", pattern, i2, re3, c2); + this.debug("%s %s %s %j <-- stateChar", pattern, i3, re3, c3); if (inClass) { this.debug(" in class"); - if (c2 === "!" && i2 === classStart + 1) - c2 = "^"; - re3 += c2; + if (c3 === "!" && i3 === classStart + 1) + c3 = "^"; + re3 += c3; continue; } self2.debug("call clearStateChar %j", stateChar); clearStateChar(); - stateChar = c2; + stateChar = c3; if (options.noext) clearStateChar(); continue; @@ -20512,7 +20786,7 @@ var require_minimatch = __commonJS({ } patternListStack.push({ type: stateChar, - start: i2 - 1, + start: i3 - 1, reStart: re3.length, open: plTypes[stateChar].open, close: plTypes[stateChar].close @@ -20547,21 +20821,21 @@ var require_minimatch = __commonJS({ case "[": clearStateChar(); if (inClass) { - re3 += "\\" + c2; + re3 += "\\" + c3; continue; } inClass = true; - classStart = i2; + classStart = i3; reClassStart = re3.length; - re3 += c2; + re3 += c3; continue; case "]": - if (i2 === classStart + 1 || !inClass) { - re3 += "\\" + c2; + if (i3 === classStart + 1 || !inClass) { + re3 += "\\" + c3; escaping = false; continue; } - var cs = pattern.substring(classStart + 1, i2); + var cs = pattern.substring(classStart + 1, i3); try { RegExp("[" + cs + "]"); } catch (er2) { @@ -20573,16 +20847,16 @@ var require_minimatch = __commonJS({ } hasMagic = true; inClass = false; - re3 += c2; + re3 += c3; continue; default: clearStateChar(); if (escaping) { escaping = false; - } else if (reSpecials[c2] && !(c2 === "^" && inClass)) { + } else if (reSpecials[c3] && !(c3 === "^" && inClass)) { re3 += "\\"; } - re3 += c2; + re3 += c3; } } if (inClass) { @@ -20594,16 +20868,16 @@ var require_minimatch = __commonJS({ for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) { var tail = re3.slice(pl.reStart + pl.open.length); this.debug("setting tail", re3, pl); - tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function(_2, $1, $2) { - if (!$2) { - $2 = "\\"; + tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function(_3, $1, $22) { + if (!$22) { + $22 = "\\"; } - return $1 + $1 + $2 + "|"; + return $1 + $1 + $22 + "|"; }); this.debug("tail=%j\n %s", tail, tail, pl, re3); - var t2 = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type; + var t3 = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type; hasMagic = true; - re3 = re3.slice(0, pl.reStart) + t2 + "\\(" + tail; + re3 = re3.slice(0, pl.reStart) + t3 + "\\(" + tail; } clearStateChar(); if (escaping) { @@ -20616,8 +20890,8 @@ var require_minimatch = __commonJS({ case "(": addPatternStart = true; } - for (var n2 = negativeLists.length - 1; n2 > -1; n2--) { - var nl = negativeLists[n2]; + for (var n3 = negativeLists.length - 1; n3 > -1; n3--) { + var nl = negativeLists[n3]; var nlBefore = re3.slice(0, nl.reStart); var nlFirst = re3.slice(nl.reStart, nl.reEnd - 8); var nlLast = re3.slice(nl.reEnd - 8, nl.reEnd); @@ -20625,7 +20899,7 @@ var require_minimatch = __commonJS({ nlLast += nlAfter; var openParensBefore = nlBefore.split("(").length - 1; var cleanAfter = nlAfter; - for (i2 = 0; i2 < openParensBefore; i2++) { + for (i3 = 0; i3 < openParensBefore; i3++) { cleanAfter = cleanAfter.replace(/\)[+*?]?/, ""); } nlAfter = cleanAfter; @@ -20674,8 +20948,8 @@ var require_minimatch = __commonJS({ var twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot; var flags = options.nocase ? "i" : ""; var re3 = set2.map(function(pattern) { - return pattern.map(function(p2) { - return p2 === GLOBSTAR ? twoStar : typeof p2 === "string" ? regExpEscape(p2) : p2._src; + return pattern.map(function(p3) { + return p3 === GLOBSTAR ? twoStar : typeof p3 === "string" ? regExpEscape(p3) : p3._src; }).join("\\/"); }).join("|"); re3 = "^(?:" + re3 + ")$"; @@ -20691,42 +20965,42 @@ var require_minimatch = __commonJS({ minimatch.match = function(list3, pattern, options) { options = options || {}; var mm = new Minimatch(pattern, options); - list3 = list3.filter(function(f2) { - return mm.match(f2); + list3 = list3.filter(function(f3) { + return mm.match(f3); }); if (mm.options.nonull && !list3.length) { list3.push(pattern); } return list3; }; - Minimatch.prototype.match = function match(f2, partial) { + Minimatch.prototype.match = function match(f3, partial) { if (typeof partial === "undefined") partial = this.partial; - this.debug("match", f2, this.pattern); + this.debug("match", f3, this.pattern); if (this.comment) return false; if (this.empty) - return f2 === ""; - if (f2 === "/" && partial) + return f3 === ""; + if (f3 === "/" && partial) return true; var options = this.options; - if (path14.sep !== "/") { - f2 = f2.split(path14.sep).join("/"); + if (path15.sep !== "/") { + f3 = f3.split(path15.sep).join("/"); } - f2 = f2.split(slashSplit); - this.debug(this.pattern, "split", f2); + f3 = f3.split(slashSplit); + this.debug(this.pattern, "split", f3); var set2 = this.set; this.debug(this.pattern, "set", set2); var filename; - var i2; - for (i2 = f2.length - 1; i2 >= 0; i2--) { - filename = f2[i2]; + var i3; + for (i3 = f3.length - 1; i3 >= 0; i3--) { + filename = f3[i3]; if (filename) break; } - for (i2 = 0; i2 < set2.length; i2++) { - var pattern = set2[i2]; - var file = f2; + for (i3 = 0; i3 < set2.length; i3++) { + var pattern = set2[i3]; + var file = f3; if (options.matchBase && pattern.length === 1) { file = [filename]; } @@ -20750,13 +21024,13 @@ var require_minimatch = __commonJS({ this.debug("matchOne", file.length, pattern.length); for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) { this.debug("matchOne loop"); - var p2 = pattern[pi]; - var f2 = file[fi]; - this.debug(pattern, p2, f2); - if (p2 === false) + var p3 = pattern[pi]; + var f3 = file[fi]; + this.debug(pattern, p3, f3); + if (p3 === false) return false; - if (p2 === GLOBSTAR) { - this.debug("GLOBSTAR", [pattern, p2, f2]); + if (p3 === GLOBSTAR) { + this.debug("GLOBSTAR", [pattern, p3, f3]); var fr2 = fi; var pr2 = pi + 1; if (pr2 === pl) { @@ -20790,12 +21064,12 @@ var require_minimatch = __commonJS({ return false; } var hit; - if (typeof p2 === "string") { - hit = f2 === p2; - this.debug("string match", p2, f2, hit); + if (typeof p3 === "string") { + hit = f3 === p3; + this.debug("string match", p3, f3, hit); } else { - hit = f2.match(p2); - this.debug("pattern match", p2, f2, hit); + hit = f3.match(p3); + this.debug("pattern match", p3, f3, hit); } if (!hit) return false; @@ -20809,11 +21083,11 @@ var require_minimatch = __commonJS({ } throw new Error("wtf?"); }; - function globUnescape(s2) { - return s2.replace(/\\(.)/g, "$1"); + function globUnescape(s3) { + return s3.replace(/\\(.)/g, "$1"); } - function regExpEscape(s2) { - return s2.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + function regExpEscape(s3) { + return s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); } } }); @@ -20822,30 +21096,30 @@ var require_minimatch = __commonJS({ var require_internal_path = __commonJS({ "node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-path.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; @@ -20855,7 +21129,7 @@ var require_internal_path = __commonJS({ }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Path = void 0; - var path14 = __importStar(__require("path")); + var path15 = __importStar(__require("path")); var pathHelper = __importStar(require_internal_path_helper()); var assert_1 = __importDefault(__require("assert")); var IS_WINDOWS = process.platform === "win32"; @@ -20870,13 +21144,13 @@ var require_internal_path = __commonJS({ assert_1.default(itemPath, `Parameter 'itemPath' must not be empty`); itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); if (!pathHelper.hasRoot(itemPath)) { - this.segments = itemPath.split(path14.sep); + this.segments = itemPath.split(path15.sep); } else { let remaining = itemPath; let dir = pathHelper.dirname(remaining); while (dir !== remaining) { - const basename = path14.basename(remaining); - this.segments.unshift(basename); + const basename2 = path15.basename(remaining); + this.segments.unshift(basename2); remaining = dir; dir = pathHelper.dirname(remaining); } @@ -20884,16 +21158,16 @@ var require_internal_path = __commonJS({ } } else { assert_1.default(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`); - for (let i2 = 0; i2 < itemPath.length; i2++) { - let segment = itemPath[i2]; + for (let i3 = 0; i3 < itemPath.length; i3++) { + let segment = itemPath[i3]; assert_1.default(segment, `Parameter 'itemPath' must not contain any empty segments`); - segment = pathHelper.normalizeSeparators(itemPath[i2]); - if (i2 === 0 && pathHelper.hasRoot(segment)) { + segment = pathHelper.normalizeSeparators(itemPath[i3]); + if (i3 === 0 && pathHelper.hasRoot(segment)) { segment = pathHelper.safeTrimTrailingSeparator(segment); assert_1.default(segment === pathHelper.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`); this.segments.push(segment); } else { - assert_1.default(!segment.includes(path14.sep), `Parameter 'itemPath' contains unexpected path separators`); + assert_1.default(!segment.includes(path15.sep), `Parameter 'itemPath' contains unexpected path separators`); this.segments.push(segment); } } @@ -20904,14 +21178,14 @@ var require_internal_path = __commonJS({ */ toString() { let result = this.segments[0]; - let skipSlash = result.endsWith(path14.sep) || IS_WINDOWS && /^[A-Z]:$/i.test(result); - for (let i2 = 1; i2 < this.segments.length; i2++) { + let skipSlash = result.endsWith(path15.sep) || IS_WINDOWS && /^[A-Z]:$/i.test(result); + for (let i3 = 1; i3 < this.segments.length; i3++) { if (skipSlash) { skipSlash = false; } else { - result += path14.sep; + result += path15.sep; } - result += this.segments[i2]; + result += this.segments[i3]; } return result; } @@ -20924,30 +21198,30 @@ var require_internal_path = __commonJS({ var require_internal_pattern = __commonJS({ "node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; @@ -20957,8 +21231,8 @@ var require_internal_pattern = __commonJS({ }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Pattern = void 0; - var os3 = __importStar(__require("os")); - var path14 = __importStar(__require("path")); + var os4 = __importStar(__require("os")); + var path15 = __importStar(__require("path")); var pathHelper = __importStar(require_internal_path_helper()); var assert_1 = __importDefault(__require("assert")); var minimatch_1 = require_minimatch(); @@ -20987,10 +21261,10 @@ var require_internal_pattern = __commonJS({ } pattern = _Pattern.fixupPattern(pattern, homedir); this.segments = new internal_path_1.Path(pattern).segments; - this.trailingSeparator = pathHelper.normalizeSeparators(pattern).endsWith(path14.sep); + this.trailingSeparator = pathHelper.normalizeSeparators(pattern).endsWith(path15.sep); pattern = pathHelper.safeTrimTrailingSeparator(pattern); let foundGlob = false; - const searchSegments = this.segments.map((x2) => _Pattern.getLiteral(x2)).filter((x2) => !foundGlob && !(foundGlob = x2 === "")); + const searchSegments = this.segments.map((x3) => _Pattern.getLiteral(x3)).filter((x3) => !foundGlob && !(foundGlob = x3 === "")); this.searchPath = new internal_path_1.Path(searchSegments).toString(); this.rootRegExp = new RegExp(_Pattern.regExpEscape(searchSegments[0]), IS_WINDOWS ? "i" : ""); this.isImplicitPattern = isImplicitPattern; @@ -21011,8 +21285,8 @@ var require_internal_pattern = __commonJS({ match(itemPath) { if (this.segments[this.segments.length - 1] === "**") { itemPath = pathHelper.normalizeSeparators(itemPath); - if (!itemPath.endsWith(path14.sep) && this.isImplicitPattern === false) { - itemPath = `${itemPath}${path14.sep}`; + if (!itemPath.endsWith(path15.sep) && this.isImplicitPattern === false) { + itemPath = `${itemPath}${path15.sep}`; } } else { itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); @@ -21035,22 +21309,22 @@ var require_internal_pattern = __commonJS({ /** * Escapes glob patterns within a path */ - static globEscape(s2) { - return (IS_WINDOWS ? s2 : s2.replace(/\\/g, "\\\\")).replace(/(\[)(?=[^/]+\])/g, "[[]").replace(/\?/g, "[?]").replace(/\*/g, "[*]"); + static globEscape(s3) { + return (IS_WINDOWS ? s3 : s3.replace(/\\/g, "\\\\")).replace(/(\[)(?=[^/]+\])/g, "[[]").replace(/\?/g, "[?]").replace(/\*/g, "[*]"); } /** * Normalizes slashes and ensures absolute root */ static fixupPattern(pattern, homedir) { assert_1.default(pattern, "pattern cannot be empty"); - const literalSegments = new internal_path_1.Path(pattern).segments.map((x2) => _Pattern.getLiteral(x2)); - assert_1.default(literalSegments.every((x2, i2) => (x2 !== "." || i2 === 0) && x2 !== ".."), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`); + const literalSegments = new internal_path_1.Path(pattern).segments.map((x3) => _Pattern.getLiteral(x3)); + assert_1.default(literalSegments.every((x3, i3) => (x3 !== "." || i3 === 0) && x3 !== ".."), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`); assert_1.default(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`); pattern = pathHelper.normalizeSeparators(pattern); - if (pattern === "." || pattern.startsWith(`.${path14.sep}`)) { + if (pattern === "." || pattern.startsWith(`.${path15.sep}`)) { pattern = _Pattern.globEscape(process.cwd()) + pattern.substr(1); - } else if (pattern === "~" || pattern.startsWith(`~${path14.sep}`)) { - homedir = homedir || os3.homedir(); + } else if (pattern === "~" || pattern.startsWith(`~${path15.sep}`)) { + homedir = homedir || os4.homedir(); assert_1.default(homedir, "Unable to determine HOME directory"); assert_1.default(pathHelper.hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`); pattern = _Pattern.globEscape(homedir) + pattern.substr(1); @@ -21077,17 +21351,17 @@ var require_internal_pattern = __commonJS({ */ static getLiteral(segment) { let literal = ""; - for (let i2 = 0; i2 < segment.length; i2++) { - const c2 = segment[i2]; - if (c2 === "\\" && !IS_WINDOWS && i2 + 1 < segment.length) { - literal += segment[++i2]; + for (let i3 = 0; i3 < segment.length; i3++) { + const c3 = segment[i3]; + if (c3 === "\\" && !IS_WINDOWS && i3 + 1 < segment.length) { + literal += segment[++i3]; continue; - } else if (c2 === "*" || c2 === "?") { + } else if (c3 === "*" || c3 === "?") { return ""; - } else if (c2 === "[" && i2 + 1 < segment.length) { + } else if (c3 === "[" && i3 + 1 < segment.length) { let set2 = ""; let closed = -1; - for (let i22 = i2 + 1; i22 < segment.length; i22++) { + for (let i22 = i3 + 1; i22 < segment.length; i22++) { const c22 = segment[i22]; if (c22 === "\\" && !IS_WINDOWS && i22 + 1 < segment.length) { set2 += segment[++i22]; @@ -21105,12 +21379,12 @@ var require_internal_pattern = __commonJS({ } if (set2) { literal += set2; - i2 = closed; + i3 = closed; continue; } } } - literal += c2; + literal += c3; } return literal; } @@ -21118,8 +21392,8 @@ var require_internal_pattern = __commonJS({ * Escapes regexp special characters * https://javascript.info/regexp-escaping */ - static regExpEscape(s2) { - return s2.replace(/[[\\^$.|?*+()]/g, "\\$&"); + static regExpEscape(s3) { + return s3.replace(/[[\\^$.|?*+()]/g, "\\$&"); } }; exports.Pattern = Pattern; @@ -21133,8 +21407,8 @@ var require_internal_search_state = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); exports.SearchState = void 0; var SearchState = class { - constructor(path14, level) { - this.path = path14; + constructor(path15, level) { + this.path = path15; this.level = level; } }; @@ -21146,108 +21420,108 @@ var require_internal_search_state = __commonJS({ var require_internal_globber = __commonJS({ "node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-globber.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m3[k2]; + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m4[k3]; } }); - } : function(o2, m3, k2, k22) { + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; }; - var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P3, generator) { function adopt(value) { - return value instanceof P2 ? value : new P2(function(resolve2) { - resolve2(value); + return value instanceof P3 ? value : new P3(function(resolve3) { + resolve3(value); }); } - return new (P2 || (P2 = Promise))(function(resolve2, reject) { + return new (P3 || (P3 = Promise))(function(resolve3, reject) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var __asyncValues2 = exports && exports.__asyncValues || function(o2) { + var __asyncValues2 = exports && exports.__asyncValues || function(o3) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m3 = o2[Symbol.asyncIterator], i2; - return m3 ? m3.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() { + var m4 = o3[Symbol.asyncIterator], i3; + return m4 ? m4.call(o3) : (o3 = typeof __values === "function" ? __values(o3) : o3[Symbol.iterator](), i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() { return this; - }, i2); - function verb(n2) { - i2[n2] = o2[n2] && function(v2) { - return new Promise(function(resolve2, reject) { - v2 = o2[n2](v2), settle(resolve2, reject, v2.done, v2.value); + }, i3); + function verb(n3) { + i3[n3] = o3[n3] && function(v6) { + return new Promise(function(resolve3, reject) { + v6 = o3[n3](v6), settle(resolve3, reject, v6.done, v6.value); }); }; } - function settle(resolve2, reject, d2, v2) { - Promise.resolve(v2).then(function(v6) { - resolve2({ value: v6, done: d2 }); + function settle(resolve3, reject, d3, v6) { + Promise.resolve(v6).then(function(v7) { + resolve3({ value: v7, done: d3 }); }, reject); } }; - var __await2 = exports && exports.__await || function(v2) { - return this instanceof __await2 ? (this.v = v2, this) : new __await2(v2); + var __await2 = exports && exports.__await || function(v6) { + return this instanceof __await2 ? (this.v = v6, this) : new __await2(v6); }; var __asyncGenerator2 = exports && exports.__asyncGenerator || function(thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = []; - return i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() { + var g3 = generator.apply(thisArg, _arguments || []), i3, q2 = []; + return i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() { return this; - }, i2; - function verb(n2) { - if (g2[n2]) - i2[n2] = function(v2) { - return new Promise(function(a2, b2) { - q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2); + }, i3; + function verb(n3) { + if (g3[n3]) + i3[n3] = function(v6) { + return new Promise(function(a3, b3) { + q2.push([n3, v6, a3, b3]) > 1 || resume(n3, v6); }); }; } - function resume(n2, v2) { + function resume(n3, v6) { try { - step(g2[n2](v2)); - } catch (e2) { - settle(q2[0][3], e2); + step(g3[n3](v6)); + } catch (e3) { + settle(q2[0][3], e3); } } - function step(r2) { - r2.value instanceof __await2 ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2); + function step(r3) { + r3.value instanceof __await2 ? Promise.resolve(r3.value.v).then(fulfill, reject) : settle(q2[0][2], r3); } function fulfill(value) { resume("next", value); @@ -21255,8 +21529,8 @@ var require_internal_globber = __commonJS({ function reject(value) { resume("throw", value); } - function settle(f2, v2) { - if (f2(v2), q2.shift(), q2.length) + function settle(f3, v6) { + if (f3(v6), q2.shift(), q2.length) resume(q2[0][0], q2[0][1]); } }; @@ -21265,7 +21539,7 @@ var require_internal_globber = __commonJS({ var core2 = __importStar(require_core()); var fs3 = __importStar(__require("fs")); var globOptionsHelper = __importStar(require_internal_glob_options_helper()); - var path14 = __importStar(__require("path")); + var path15 = __importStar(__require("path")); var patternHelper = __importStar(require_internal_pattern_helper()); var internal_match_kind_1 = require_internal_match_kind(); var internal_pattern_1 = require_internal_pattern(); @@ -21348,7 +21622,7 @@ var require_internal_globber = __commonJS({ continue; } const childLevel = item.level + 1; - const childItems = (yield __await2(fs3.promises.readdir(item.path))).map((x2) => new internal_search_state_1.SearchState(path14.join(item.path, x2), childLevel)); + const childItems = (yield __await2(fs3.promises.readdir(item.path))).map((x3) => new internal_search_state_1.SearchState(path15.join(item.path, x3), childLevel)); stack.push(...childItems.reverse()); } else if (match & internal_match_kind_1.MatchKind.File) { yield yield __await2(item.path); @@ -21366,8 +21640,8 @@ var require_internal_globber = __commonJS({ patterns = patterns.replace(/\r\n/g, "\n"); patterns = patterns.replace(/\r/g, "\n"); } - const lines = patterns.split("\n").map((x2) => x2.trim()); - for (const line of lines) { + const lines2 = patterns.split("\n").map((x3) => x3.trim()); + for (const line of lines2) { if (!line || line.startsWith("#")) { continue; } else { @@ -21402,7 +21676,7 @@ var require_internal_globber = __commonJS({ while (traversalChain.length >= item.level) { traversalChain.pop(); } - if (traversalChain.some((x2) => x2 === realPath)) { + if (traversalChain.some((x3) => x3 === realPath)) { core2.debug(`Symlink cycle detected for path '${item.path}' and realpath '${realPath}'`); return void 0; } @@ -21420,29 +21694,29 @@ var require_internal_globber = __commonJS({ var require_glob = __commonJS({ "node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.js"(exports) { "use strict"; - var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P3, generator) { function adopt(value) { - return value instanceof P2 ? value : new P2(function(resolve2) { - resolve2(value); + return value instanceof P3 ? value : new P3(function(resolve3) { + resolve3(value); }); } - return new (P2 || (P2 = Promise))(function(resolve2, reject) { + return new (P3 || (P3 = Promise))(function(resolve3, reject) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -21464,7 +21738,7 @@ var require_constants5 = __commonJS({ "node_modules/semver/internal/constants.js"(exports, module) { var SEMVER_SPEC_VERSION = "2.0.0"; var MAX_LENGTH = 256; - var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ + var MAX_SAFE_INTEGER2 = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991; var MAX_SAFE_COMPONENT_LENGTH = 16; var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6; @@ -21481,7 +21755,7 @@ var require_constants5 = __commonJS({ MAX_LENGTH, MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, - MAX_SAFE_INTEGER, + MAX_SAFE_INTEGER: MAX_SAFE_INTEGER2, RELEASE_TYPES, SEMVER_SPEC_VERSION, FLAG_INCLUDE_PRERELEASE: 1, @@ -21512,7 +21786,7 @@ var require_re = __commonJS({ var re3 = exports.re = []; var safeRe = exports.safeRe = []; var src = exports.src = []; - var t2 = exports.t = {}; + var t3 = exports.t = {}; var R2 = 0; var LETTERDASHNUMBER = "[a-zA-Z0-9-]"; var safeRegexReplacements = [ @@ -21530,7 +21804,7 @@ var require_re = __commonJS({ const safe = makeSafeRegex(value); const index = R2++; debug3(name2, index, value); - t2[name2] = index; + t3[name2] = index; src[index] = value; re3[index] = new RegExp(value, isGlobal ? "g" : void 0); safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0); @@ -21538,43 +21812,43 @@ var require_re = __commonJS({ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*"); createToken("NUMERICIDENTIFIERLOOSE", "\\d+"); createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`); - createToken("MAINVERSION", `(${src[t2.NUMERICIDENTIFIER]})\\.(${src[t2.NUMERICIDENTIFIER]})\\.(${src[t2.NUMERICIDENTIFIER]})`); - createToken("MAINVERSIONLOOSE", `(${src[t2.NUMERICIDENTIFIERLOOSE]})\\.(${src[t2.NUMERICIDENTIFIERLOOSE]})\\.(${src[t2.NUMERICIDENTIFIERLOOSE]})`); - createToken("PRERELEASEIDENTIFIER", `(?:${src[t2.NUMERICIDENTIFIER]}|${src[t2.NONNUMERICIDENTIFIER]})`); - createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t2.NUMERICIDENTIFIERLOOSE]}|${src[t2.NONNUMERICIDENTIFIER]})`); - createToken("PRERELEASE", `(?:-(${src[t2.PRERELEASEIDENTIFIER]}(?:\\.${src[t2.PRERELEASEIDENTIFIER]})*))`); - createToken("PRERELEASELOOSE", `(?:-?(${src[t2.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t2.PRERELEASEIDENTIFIERLOOSE]})*))`); + createToken("MAINVERSION", `(${src[t3.NUMERICIDENTIFIER]})\\.(${src[t3.NUMERICIDENTIFIER]})\\.(${src[t3.NUMERICIDENTIFIER]})`); + createToken("MAINVERSIONLOOSE", `(${src[t3.NUMERICIDENTIFIERLOOSE]})\\.(${src[t3.NUMERICIDENTIFIERLOOSE]})\\.(${src[t3.NUMERICIDENTIFIERLOOSE]})`); + createToken("PRERELEASEIDENTIFIER", `(?:${src[t3.NUMERICIDENTIFIER]}|${src[t3.NONNUMERICIDENTIFIER]})`); + createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t3.NUMERICIDENTIFIERLOOSE]}|${src[t3.NONNUMERICIDENTIFIER]})`); + createToken("PRERELEASE", `(?:-(${src[t3.PRERELEASEIDENTIFIER]}(?:\\.${src[t3.PRERELEASEIDENTIFIER]})*))`); + createToken("PRERELEASELOOSE", `(?:-?(${src[t3.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t3.PRERELEASEIDENTIFIERLOOSE]})*))`); createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`); - createToken("BUILD", `(?:\\+(${src[t2.BUILDIDENTIFIER]}(?:\\.${src[t2.BUILDIDENTIFIER]})*))`); - createToken("FULLPLAIN", `v?${src[t2.MAINVERSION]}${src[t2.PRERELEASE]}?${src[t2.BUILD]}?`); - createToken("FULL", `^${src[t2.FULLPLAIN]}$`); - createToken("LOOSEPLAIN", `[v=\\s]*${src[t2.MAINVERSIONLOOSE]}${src[t2.PRERELEASELOOSE]}?${src[t2.BUILD]}?`); - createToken("LOOSE", `^${src[t2.LOOSEPLAIN]}$`); + createToken("BUILD", `(?:\\+(${src[t3.BUILDIDENTIFIER]}(?:\\.${src[t3.BUILDIDENTIFIER]})*))`); + createToken("FULLPLAIN", `v?${src[t3.MAINVERSION]}${src[t3.PRERELEASE]}?${src[t3.BUILD]}?`); + createToken("FULL", `^${src[t3.FULLPLAIN]}$`); + createToken("LOOSEPLAIN", `[v=\\s]*${src[t3.MAINVERSIONLOOSE]}${src[t3.PRERELEASELOOSE]}?${src[t3.BUILD]}?`); + createToken("LOOSE", `^${src[t3.LOOSEPLAIN]}$`); createToken("GTLT", "((?:<|>)?=?)"); - createToken("XRANGEIDENTIFIERLOOSE", `${src[t2.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`); - createToken("XRANGEIDENTIFIER", `${src[t2.NUMERICIDENTIFIER]}|x|X|\\*`); - createToken("XRANGEPLAIN", `[v=\\s]*(${src[t2.XRANGEIDENTIFIER]})(?:\\.(${src[t2.XRANGEIDENTIFIER]})(?:\\.(${src[t2.XRANGEIDENTIFIER]})(?:${src[t2.PRERELEASE]})?${src[t2.BUILD]}?)?)?`); - createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:${src[t2.PRERELEASELOOSE]})?${src[t2.BUILD]}?)?)?`); - createToken("XRANGE", `^${src[t2.GTLT]}\\s*${src[t2.XRANGEPLAIN]}$`); - createToken("XRANGELOOSE", `^${src[t2.GTLT]}\\s*${src[t2.XRANGEPLAINLOOSE]}$`); + createToken("XRANGEIDENTIFIERLOOSE", `${src[t3.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`); + createToken("XRANGEIDENTIFIER", `${src[t3.NUMERICIDENTIFIER]}|x|X|\\*`); + createToken("XRANGEPLAIN", `[v=\\s]*(${src[t3.XRANGEIDENTIFIER]})(?:\\.(${src[t3.XRANGEIDENTIFIER]})(?:\\.(${src[t3.XRANGEIDENTIFIER]})(?:${src[t3.PRERELEASE]})?${src[t3.BUILD]}?)?)?`); + createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t3.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t3.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t3.XRANGEIDENTIFIERLOOSE]})(?:${src[t3.PRERELEASELOOSE]})?${src[t3.BUILD]}?)?)?`); + createToken("XRANGE", `^${src[t3.GTLT]}\\s*${src[t3.XRANGEPLAIN]}$`); + createToken("XRANGELOOSE", `^${src[t3.GTLT]}\\s*${src[t3.XRANGEPLAINLOOSE]}$`); createToken("COERCE", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`); - createToken("COERCERTL", src[t2.COERCE], true); + createToken("COERCERTL", src[t3.COERCE], true); createToken("LONETILDE", "(?:~>?)"); - createToken("TILDETRIM", `(\\s*)${src[t2.LONETILDE]}\\s+`, true); + createToken("TILDETRIM", `(\\s*)${src[t3.LONETILDE]}\\s+`, true); exports.tildeTrimReplace = "$1~"; - createToken("TILDE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAIN]}$`); - createToken("TILDELOOSE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAINLOOSE]}$`); + createToken("TILDE", `^${src[t3.LONETILDE]}${src[t3.XRANGEPLAIN]}$`); + createToken("TILDELOOSE", `^${src[t3.LONETILDE]}${src[t3.XRANGEPLAINLOOSE]}$`); createToken("LONECARET", "(?:\\^)"); - createToken("CARETTRIM", `(\\s*)${src[t2.LONECARET]}\\s+`, true); + createToken("CARETTRIM", `(\\s*)${src[t3.LONECARET]}\\s+`, true); exports.caretTrimReplace = "$1^"; - createToken("CARET", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAIN]}$`); - createToken("CARETLOOSE", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAINLOOSE]}$`); - createToken("COMPARATORLOOSE", `^${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]})$|^$`); - createToken("COMPARATOR", `^${src[t2.GTLT]}\\s*(${src[t2.FULLPLAIN]})$|^$`); - createToken("COMPARATORTRIM", `(\\s*)${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]}|${src[t2.XRANGEPLAIN]})`, true); + createToken("CARET", `^${src[t3.LONECARET]}${src[t3.XRANGEPLAIN]}$`); + createToken("CARETLOOSE", `^${src[t3.LONECARET]}${src[t3.XRANGEPLAINLOOSE]}$`); + createToken("COMPARATORLOOSE", `^${src[t3.GTLT]}\\s*(${src[t3.LOOSEPLAIN]})$|^$`); + createToken("COMPARATOR", `^${src[t3.GTLT]}\\s*(${src[t3.FULLPLAIN]})$|^$`); + createToken("COMPARATORTRIM", `(\\s*)${src[t3.GTLT]}\\s*(${src[t3.LOOSEPLAIN]}|${src[t3.XRANGEPLAIN]})`, true); exports.comparatorTrimReplace = "$1$2$3"; - createToken("HYPHENRANGE", `^\\s*(${src[t2.XRANGEPLAIN]})\\s+-\\s+(${src[t2.XRANGEPLAIN]})\\s*$`); - createToken("HYPHENRANGELOOSE", `^\\s*(${src[t2.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t2.XRANGEPLAINLOOSE]})\\s*$`); + createToken("HYPHENRANGE", `^\\s*(${src[t3.XRANGEPLAIN]})\\s+-\\s+(${src[t3.XRANGEPLAIN]})\\s*$`); + createToken("HYPHENRANGELOOSE", `^\\s*(${src[t3.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t3.XRANGEPLAINLOOSE]})\\s*$`); createToken("STAR", "(<|>)?=?\\s*\\*"); createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"); createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$"); @@ -21603,16 +21877,16 @@ var require_parse_options = __commonJS({ var require_identifiers = __commonJS({ "node_modules/semver/internal/identifiers.js"(exports, module) { var numeric = /^[0-9]+$/; - var compareIdentifiers = (a2, b2) => { - const anum = numeric.test(a2); - const bnum = numeric.test(b2); + var compareIdentifiers = (a3, b3) => { + const anum = numeric.test(a3); + const bnum = numeric.test(b3); if (anum && bnum) { - a2 = +a2; - b2 = +b2; + a3 = +a3; + b3 = +b3; } - return a2 === b2 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a2 < b2 ? -1 : 1; + return a3 === b3 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a3 < b3 ? -1 : 1; }; - var rcompareIdentifiers = (a2, b2) => compareIdentifiers(b2, a2); + var rcompareIdentifiers = (a3, b3) => compareIdentifiers(b3, a3); module.exports = { compareIdentifiers, rcompareIdentifiers @@ -21624,8 +21898,8 @@ var require_identifiers = __commonJS({ var require_semver = __commonJS({ "node_modules/semver/classes/semver.js"(exports, module) { var debug3 = require_debug(); - var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants5(); - var { safeRe: re3, t: t2 } = require_re(); + var { MAX_LENGTH, MAX_SAFE_INTEGER: MAX_SAFE_INTEGER2 } = require_constants5(); + var { safeRe: re3, t: t3 } = require_re(); var parseOptions = require_parse_options(); var { compareIdentifiers } = require_identifiers(); var SemVer = class _SemVer { @@ -21649,37 +21923,37 @@ var require_semver = __commonJS({ this.options = options; this.loose = !!options.loose; this.includePrerelease = !!options.includePrerelease; - const m3 = version4.trim().match(options.loose ? re3[t2.LOOSE] : re3[t2.FULL]); - if (!m3) { + const m4 = version4.trim().match(options.loose ? re3[t3.LOOSE] : re3[t3.FULL]); + if (!m4) { throw new TypeError(`Invalid Version: ${version4}`); } this.raw = version4; - this.major = +m3[1]; - this.minor = +m3[2]; - this.patch = +m3[3]; - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { + this.major = +m4[1]; + this.minor = +m4[2]; + this.patch = +m4[3]; + if (this.major > MAX_SAFE_INTEGER2 || this.major < 0) { throw new TypeError("Invalid major version"); } - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { + if (this.minor > MAX_SAFE_INTEGER2 || this.minor < 0) { throw new TypeError("Invalid minor version"); } - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { + if (this.patch > MAX_SAFE_INTEGER2 || this.patch < 0) { throw new TypeError("Invalid patch version"); } - if (!m3[4]) { + if (!m4[4]) { this.prerelease = []; } else { - this.prerelease = m3[4].split(".").map((id) => { + this.prerelease = m4[4].split(".").map((id) => { if (/^[0-9]+$/.test(id)) { const num = +id; - if (num >= 0 && num < MAX_SAFE_INTEGER) { + if (num >= 0 && num < MAX_SAFE_INTEGER2) { return num; } } return id; }); } - this.build = m3[5] ? m3[5].split(".") : []; + this.build = m4[5] ? m4[5].split(".") : []; this.format(); } format() { @@ -21722,45 +21996,45 @@ var require_semver = __commonJS({ } else if (!this.prerelease.length && !other.prerelease.length) { return 0; } - let i2 = 0; + let i3 = 0; do { - const a2 = this.prerelease[i2]; - const b2 = other.prerelease[i2]; - debug3("prerelease compare", i2, a2, b2); - if (a2 === void 0 && b2 === void 0) { + const a3 = this.prerelease[i3]; + const b3 = other.prerelease[i3]; + debug3("prerelease compare", i3, a3, b3); + if (a3 === void 0 && b3 === void 0) { return 0; - } else if (b2 === void 0) { + } else if (b3 === void 0) { return 1; - } else if (a2 === void 0) { + } else if (a3 === void 0) { return -1; - } else if (a2 === b2) { + } else if (a3 === b3) { continue; } else { - return compareIdentifiers(a2, b2); + return compareIdentifiers(a3, b3); } - } while (++i2); + } while (++i3); } compareBuild(other) { if (!(other instanceof _SemVer)) { other = new _SemVer(other, this.options); } - let i2 = 0; + let i3 = 0; do { - const a2 = this.build[i2]; - const b2 = other.build[i2]; - debug3("prerelease compare", i2, a2, b2); - if (a2 === void 0 && b2 === void 0) { + const a3 = this.build[i3]; + const b3 = other.build[i3]; + debug3("prerelease compare", i3, a3, b3); + if (a3 === void 0 && b3 === void 0) { return 0; - } else if (b2 === void 0) { + } else if (b3 === void 0) { return 1; - } else if (a2 === void 0) { + } else if (a3 === void 0) { return -1; - } else if (a2 === b2) { + } else if (a3 === b3) { continue; } else { - return compareIdentifiers(a2, b2); + return compareIdentifiers(a3, b3); } - } while (++i2); + } while (++i3); } // preminor will bump the version up to the next minor release, and immediately // down to pre-release. premajor and prepatch work the same way. @@ -21819,14 +22093,14 @@ var require_semver = __commonJS({ if (this.prerelease.length === 0) { this.prerelease = [base]; } else { - let i2 = this.prerelease.length; - while (--i2 >= 0) { - if (typeof this.prerelease[i2] === "number") { - this.prerelease[i2]++; - i2 = -2; + let i3 = this.prerelease.length; + while (--i3 >= 0) { + if (typeof this.prerelease[i3] === "number") { + this.prerelease[i3]++; + i3 = -2; } } - if (i2 === -1) { + if (i3 === -1) { if (identifier === this.prerelease.join(".") && identifierBase === false) { throw new Error("invalid increment argument: identifier already exists"); } @@ -21888,8 +22162,8 @@ var require_valid = __commonJS({ "node_modules/semver/functions/valid.js"(exports, module) { var parse5 = require_parse2(); var valid = (version4, options) => { - const v2 = parse5(version4, options); - return v2 ? v2.version : null; + const v6 = parse5(version4, options); + return v6 ? v6.version : null; }; module.exports = valid; } @@ -21900,8 +22174,8 @@ var require_clean = __commonJS({ "node_modules/semver/functions/clean.js"(exports, module) { var parse5 = require_parse2(); var clean = (version4, options) => { - const s2 = parse5(version4.trim().replace(/^[=v]+/, ""), options); - return s2 ? s2.version : null; + const s3 = parse5(version4.trim().replace(/^[=v]+/, ""), options); + return s3 ? s3.version : null; }; module.exports = clean; } @@ -21936,14 +22210,14 @@ var require_diff = __commonJS({ var parse5 = require_parse2(); var diff = (version1, version22) => { const v12 = parse5(version1, null, true); - const v2 = parse5(version22, null, true); - const comparison = v12.compare(v2); + const v22 = parse5(version22, null, true); + const comparison = v12.compare(v22); if (comparison === 0) { return null; } const v1Higher = comparison > 0; - const highVersion = v1Higher ? v12 : v2; - const lowVersion = v1Higher ? v2 : v12; + const highVersion = v1Higher ? v12 : v22; + const lowVersion = v1Higher ? v22 : v12; const highHasPre = !!highVersion.prerelease.length; const lowHasPre = !!lowVersion.prerelease.length; if (lowHasPre && !highHasPre) { @@ -21959,13 +22233,13 @@ var require_diff = __commonJS({ return "major"; } const prefix2 = highHasPre ? "pre" : ""; - if (v12.major !== v2.major) { + if (v12.major !== v22.major) { return prefix2 + "major"; } - if (v12.minor !== v2.minor) { + if (v12.minor !== v22.minor) { return prefix2 + "minor"; } - if (v12.patch !== v2.patch) { + if (v12.patch !== v22.patch) { return prefix2 + "patch"; } return "prerelease"; @@ -21978,7 +22252,7 @@ var require_diff = __commonJS({ var require_major = __commonJS({ "node_modules/semver/functions/major.js"(exports, module) { var SemVer = require_semver(); - var major2 = (a2, loose) => new SemVer(a2, loose).major; + var major2 = (a3, loose) => new SemVer(a3, loose).major; module.exports = major2; } }); @@ -21987,7 +22261,7 @@ var require_major = __commonJS({ var require_minor = __commonJS({ "node_modules/semver/functions/minor.js"(exports, module) { var SemVer = require_semver(); - var minor = (a2, loose) => new SemVer(a2, loose).minor; + var minor = (a3, loose) => new SemVer(a3, loose).minor; module.exports = minor; } }); @@ -21996,7 +22270,7 @@ var require_minor = __commonJS({ var require_patch = __commonJS({ "node_modules/semver/functions/patch.js"(exports, module) { var SemVer = require_semver(); - var patch2 = (a2, loose) => new SemVer(a2, loose).patch; + var patch2 = (a3, loose) => new SemVer(a3, loose).patch; module.exports = patch2; } }); @@ -22017,7 +22291,7 @@ var require_prerelease = __commonJS({ var require_compare = __commonJS({ "node_modules/semver/functions/compare.js"(exports, module) { var SemVer = require_semver(); - var compare = (a2, b2, loose) => new SemVer(a2, loose).compare(new SemVer(b2, loose)); + var compare = (a3, b3, loose) => new SemVer(a3, loose).compare(new SemVer(b3, loose)); module.exports = compare; } }); @@ -22026,7 +22300,7 @@ var require_compare = __commonJS({ var require_rcompare = __commonJS({ "node_modules/semver/functions/rcompare.js"(exports, module) { var compare = require_compare(); - var rcompare = (a2, b2, loose) => compare(b2, a2, loose); + var rcompare = (a3, b3, loose) => compare(b3, a3, loose); module.exports = rcompare; } }); @@ -22035,7 +22309,7 @@ var require_rcompare = __commonJS({ var require_compare_loose = __commonJS({ "node_modules/semver/functions/compare-loose.js"(exports, module) { var compare = require_compare(); - var compareLoose = (a2, b2) => compare(a2, b2, true); + var compareLoose = (a3, b3) => compare(a3, b3, true); module.exports = compareLoose; } }); @@ -22044,9 +22318,9 @@ var require_compare_loose = __commonJS({ var require_compare_build = __commonJS({ "node_modules/semver/functions/compare-build.js"(exports, module) { var SemVer = require_semver(); - var compareBuild = (a2, b2, loose) => { - const versionA = new SemVer(a2, loose); - const versionB = new SemVer(b2, loose); + var compareBuild = (a3, b3, loose) => { + const versionA = new SemVer(a3, loose); + const versionB = new SemVer(b3, loose); return versionA.compare(versionB) || versionA.compareBuild(versionB); }; module.exports = compareBuild; @@ -22057,7 +22331,7 @@ var require_compare_build = __commonJS({ var require_sort = __commonJS({ "node_modules/semver/functions/sort.js"(exports, module) { var compareBuild = require_compare_build(); - var sort = (list3, loose) => list3.sort((a2, b2) => compareBuild(a2, b2, loose)); + var sort = (list3, loose) => list3.sort((a3, b3) => compareBuild(a3, b3, loose)); module.exports = sort; } }); @@ -22066,7 +22340,7 @@ var require_sort = __commonJS({ var require_rsort = __commonJS({ "node_modules/semver/functions/rsort.js"(exports, module) { var compareBuild = require_compare_build(); - var rsort = (list3, loose) => list3.sort((a2, b2) => compareBuild(b2, a2, loose)); + var rsort = (list3, loose) => list3.sort((a3, b3) => compareBuild(b3, a3, loose)); module.exports = rsort; } }); @@ -22075,7 +22349,7 @@ var require_rsort = __commonJS({ var require_gt = __commonJS({ "node_modules/semver/functions/gt.js"(exports, module) { var compare = require_compare(); - var gt2 = (a2, b2, loose) => compare(a2, b2, loose) > 0; + var gt2 = (a3, b3, loose) => compare(a3, b3, loose) > 0; module.exports = gt2; } }); @@ -22084,7 +22358,7 @@ var require_gt = __commonJS({ var require_lt = __commonJS({ "node_modules/semver/functions/lt.js"(exports, module) { var compare = require_compare(); - var lt2 = (a2, b2, loose) => compare(a2, b2, loose) < 0; + var lt2 = (a3, b3, loose) => compare(a3, b3, loose) < 0; module.exports = lt2; } }); @@ -22093,7 +22367,7 @@ var require_lt = __commonJS({ var require_eq = __commonJS({ "node_modules/semver/functions/eq.js"(exports, module) { var compare = require_compare(); - var eq = (a2, b2, loose) => compare(a2, b2, loose) === 0; + var eq = (a3, b3, loose) => compare(a3, b3, loose) === 0; module.exports = eq; } }); @@ -22102,7 +22376,7 @@ var require_eq = __commonJS({ var require_neq = __commonJS({ "node_modules/semver/functions/neq.js"(exports, module) { var compare = require_compare(); - var neq = (a2, b2, loose) => compare(a2, b2, loose) !== 0; + var neq = (a3, b3, loose) => compare(a3, b3, loose) !== 0; module.exports = neq; } }); @@ -22111,7 +22385,7 @@ var require_neq = __commonJS({ var require_gte = __commonJS({ "node_modules/semver/functions/gte.js"(exports, module) { var compare = require_compare(); - var gte = (a2, b2, loose) => compare(a2, b2, loose) >= 0; + var gte = (a3, b3, loose) => compare(a3, b3, loose) >= 0; module.exports = gte; } }); @@ -22120,7 +22394,7 @@ var require_gte = __commonJS({ var require_lte = __commonJS({ "node_modules/semver/functions/lte.js"(exports, module) { var compare = require_compare(); - var lte = (a2, b2, loose) => compare(a2, b2, loose) <= 0; + var lte = (a3, b3, loose) => compare(a3, b3, loose) <= 0; module.exports = lte; } }); @@ -22134,38 +22408,38 @@ var require_cmp = __commonJS({ var gte = require_gte(); var lt2 = require_lt(); var lte = require_lte(); - var cmp = (a2, op, b2, loose) => { + var cmp = (a3, op, b3, loose) => { switch (op) { case "===": - if (typeof a2 === "object") { - a2 = a2.version; + if (typeof a3 === "object") { + a3 = a3.version; } - if (typeof b2 === "object") { - b2 = b2.version; + if (typeof b3 === "object") { + b3 = b3.version; } - return a2 === b2; + return a3 === b3; case "!==": - if (typeof a2 === "object") { - a2 = a2.version; + if (typeof a3 === "object") { + a3 = a3.version; } - if (typeof b2 === "object") { - b2 = b2.version; + if (typeof b3 === "object") { + b3 = b3.version; } - return a2 !== b2; + return a3 !== b3; case "": case "=": case "==": - return eq(a2, b2, loose); + return eq(a3, b3, loose); case "!=": - return neq(a2, b2, loose); + return neq(a3, b3, loose); case ">": - return gt2(a2, b2, loose); + return gt2(a3, b3, loose); case ">=": - return gte(a2, b2, loose); + return gte(a3, b3, loose); case "<": - return lt2(a2, b2, loose); + return lt2(a3, b3, loose); case "<=": - return lte(a2, b2, loose); + return lte(a3, b3, loose); default: throw new TypeError(`Invalid operator: ${op}`); } @@ -22179,7 +22453,7 @@ var require_coerce = __commonJS({ "node_modules/semver/functions/coerce.js"(exports, module) { var SemVer = require_semver(); var parse5 = require_parse2(); - var { safeRe: re3, t: t2 } = require_re(); + var { safeRe: re3, t: t3 } = require_re(); var coerce = (version4, options) => { if (version4 instanceof SemVer) { return version4; @@ -22193,16 +22467,16 @@ var require_coerce = __commonJS({ options = options || {}; let match = null; if (!options.rtl) { - match = version4.match(re3[t2.COERCE]); + match = version4.match(re3[t3.COERCE]); } else { let next; - while ((next = re3[t2.COERCERTL].exec(version4)) && (!match || match.index + match[0].length !== version4.length)) { + while ((next = re3[t3.COERCERTL].exec(version4)) && (!match || match.index + match[0].length !== version4.length)) { if (!match || next.index + next[0].length !== match.index + match[0].length) { match = next; } - re3[t2.COERCERTL].lastIndex = next.index + next[1].length + next[2].length; + re3[t3.COERCERTL].lastIndex = next.index + next[1].length + next[2].length; } - re3[t2.COERCERTL].lastIndex = -1; + re3[t3.COERCERTL].lastIndex = -1; } if (match === null) { return null; @@ -22213,9 +22487,9 @@ var require_coerce = __commonJS({ } }); -// node_modules/semver/node_modules/yallist/iterator.js +// node_modules/yallist/iterator.js var require_iterator = __commonJS({ - "node_modules/semver/node_modules/yallist/iterator.js"(exports, module) { + "node_modules/yallist/iterator.js"(exports, module) { "use strict"; module.exports = function(Yallist) { Yallist.prototype[Symbol.iterator] = function* () { @@ -22227,9 +22501,9 @@ var require_iterator = __commonJS({ } }); -// node_modules/semver/node_modules/yallist/yallist.js +// node_modules/yallist/yallist.js var require_yallist = __commonJS({ - "node_modules/semver/node_modules/yallist/yallist.js"(exports, module) { + "node_modules/yallist/yallist.js"(exports, module) { "use strict"; module.exports = Yallist; Yallist.Node = Node; @@ -22247,8 +22521,8 @@ var require_yallist = __commonJS({ self2.push(item); }); } else if (arguments.length > 0) { - for (var i2 = 0, l2 = arguments.length; i2 < l2; i2++) { - self2.push(arguments[i2]); + for (var i3 = 0, l3 = arguments.length; i3 < l3; i3++) { + self2.push(arguments[i3]); } } return self2; @@ -22316,14 +22590,14 @@ var require_yallist = __commonJS({ this.length++; }; Yallist.prototype.push = function() { - for (var i2 = 0, l2 = arguments.length; i2 < l2; i2++) { - push(this, arguments[i2]); + for (var i3 = 0, l3 = arguments.length; i3 < l3; i3++) { + push(this, arguments[i3]); } return this.length; }; Yallist.prototype.unshift = function() { - for (var i2 = 0, l2 = arguments.length; i2 < l2; i2++) { - unshift(this, arguments[i2]); + for (var i3 = 0, l3 = arguments.length; i3 < l3; i3++) { + unshift(this, arguments[i3]); } return this.length; }; @@ -22357,31 +22631,31 @@ var require_yallist = __commonJS({ }; Yallist.prototype.forEach = function(fn2, thisp) { thisp = thisp || this; - for (var walker = this.head, i2 = 0; walker !== null; i2++) { - fn2.call(thisp, walker.value, i2, this); + for (var walker = this.head, i3 = 0; walker !== null; i3++) { + fn2.call(thisp, walker.value, i3, this); walker = walker.next; } }; Yallist.prototype.forEachReverse = function(fn2, thisp) { thisp = thisp || this; - for (var walker = this.tail, i2 = this.length - 1; walker !== null; i2--) { - fn2.call(thisp, walker.value, i2, this); + for (var walker = this.tail, i3 = this.length - 1; walker !== null; i3--) { + fn2.call(thisp, walker.value, i3, this); walker = walker.prev; } }; - Yallist.prototype.get = function(n2) { - for (var i2 = 0, walker = this.head; walker !== null && i2 < n2; i2++) { + Yallist.prototype.get = function(n3) { + for (var i3 = 0, walker = this.head; walker !== null && i3 < n3; i3++) { walker = walker.next; } - if (i2 === n2 && walker !== null) { + if (i3 === n3 && walker !== null) { return walker.value; } }; - Yallist.prototype.getReverse = function(n2) { - for (var i2 = 0, walker = this.tail; walker !== null && i2 < n2; i2++) { + Yallist.prototype.getReverse = function(n3) { + for (var i3 = 0, walker = this.tail; walker !== null && i3 < n3; i3++) { walker = walker.prev; } - if (i2 === n2 && walker !== null) { + if (i3 === n3 && walker !== null) { return walker.value; } }; @@ -22414,8 +22688,8 @@ var require_yallist = __commonJS({ } else { throw new TypeError("Reduce of empty list with no initial value"); } - for (var i2 = 0; walker !== null; i2++) { - acc = fn2(acc, walker.value, i2); + for (var i3 = 0; walker !== null; i3++) { + acc = fn2(acc, walker.value, i3); walker = walker.next; } return acc; @@ -22431,24 +22705,24 @@ var require_yallist = __commonJS({ } else { throw new TypeError("Reduce of empty list with no initial value"); } - for (var i2 = this.length - 1; walker !== null; i2--) { - acc = fn2(acc, walker.value, i2); + for (var i3 = this.length - 1; walker !== null; i3--) { + acc = fn2(acc, walker.value, i3); walker = walker.prev; } return acc; }; Yallist.prototype.toArray = function() { var arr = new Array(this.length); - for (var i2 = 0, walker = this.head; walker !== null; i2++) { - arr[i2] = walker.value; + for (var i3 = 0, walker = this.head; walker !== null; i3++) { + arr[i3] = walker.value; walker = walker.next; } return arr; }; Yallist.prototype.toArrayReverse = function() { var arr = new Array(this.length); - for (var i2 = 0, walker = this.tail; walker !== null; i2++) { - arr[i2] = walker.value; + for (var i3 = 0, walker = this.tail; walker !== null; i3++) { + arr[i3] = walker.value; walker = walker.prev; } return arr; @@ -22472,10 +22746,10 @@ var require_yallist = __commonJS({ if (to2 > this.length) { to2 = this.length; } - for (var i2 = 0, walker = this.head; walker !== null && i2 < from; i2++) { + for (var i3 = 0, walker = this.head; walker !== null && i3 < from; i3++) { walker = walker.next; } - for (; walker !== null && i2 < to2; i2++, walker = walker.next) { + for (; walker !== null && i3 < to2; i3++, walker = walker.next) { ret.push(walker.value); } return ret; @@ -22499,10 +22773,10 @@ var require_yallist = __commonJS({ if (to2 > this.length) { to2 = this.length; } - for (var i2 = this.length, walker = this.tail; walker !== null && i2 > to2; i2--) { + for (var i3 = this.length, walker = this.tail; walker !== null && i3 > to2; i3--) { walker = walker.prev; } - for (; walker !== null && i2 > from; i2--, walker = walker.prev) { + for (; walker !== null && i3 > from; i3--, walker = walker.prev) { ret.push(walker.value); } return ret; @@ -22514,11 +22788,11 @@ var require_yallist = __commonJS({ if (start < 0) { start = this.length + start; } - for (var i2 = 0, walker = this.head; walker !== null && i2 < start; i2++) { + for (var i3 = 0, walker = this.head; walker !== null && i3 < start; i3++) { walker = walker.next; } var ret = []; - for (var i2 = 0; walker && i2 < deleteCount; i2++) { + for (var i3 = 0; walker && i3 < deleteCount; i3++) { ret.push(walker.value); walker = this.removeNode(walker); } @@ -22528,8 +22802,8 @@ var require_yallist = __commonJS({ if (walker !== this.head && walker !== this.tail) { walker = walker.prev; } - for (var i2 = 0; i2 < nodes.length; i2++) { - walker = insert(this, walker, nodes[i2]); + for (var i3 = 0; i3 < nodes.length; i3++) { + walker = insert(this, walker, nodes[i3]); } return ret; }; @@ -22537,9 +22811,9 @@ var require_yallist = __commonJS({ var head = this.head; var tail = this.tail; for (var walker = head; walker !== null; walker = walker.prev) { - var p2 = walker.prev; + var p3 = walker.prev; walker.prev = walker.next; - walker.next = p2; + walker.next = p3; } this.head = tail; this.tail = head; @@ -22697,10 +22971,10 @@ var require_lru_cache = __commonJS({ } } keys() { - return this[LRU_LIST].toArray().map((k2) => k2.key); + return this[LRU_LIST].toArray().map((k3) => k3.key); } values() { - return this[LRU_LIST].toArray().map((k2) => k2.value); + return this[LRU_LIST].toArray().map((k3) => k3.value); } reset() { if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) { @@ -22715,7 +22989,7 @@ var require_lru_cache = __commonJS({ k: hit.key, v: hit.value, e: hit.now + (hit.maxAge || 0) - }).toArray().filter((h2) => h2); + }).toArray().filter((h3) => h3); } dumpLru() { return this[LRU_LIST]; @@ -22783,8 +23057,8 @@ var require_lru_cache = __commonJS({ load(arr) { this.reset(); const now = Date.now(); - for (let l2 = arr.length - 1; l2 >= 0; l2--) { - const hit = arr[l2]; + for (let l3 = arr.length - 1; l3 >= 0; l3--) { + const hit = arr[l3]; const expiresAt = hit.e || 0; if (expiresAt === 0) this.set(hit.k, hit.v); @@ -22889,19 +23163,19 @@ var require_range = __commonJS({ this.loose = !!options.loose; this.includePrerelease = !!options.includePrerelease; this.raw = range2.trim().split(/\s+/).join(" "); - this.set = this.raw.split("||").map((r2) => this.parseRange(r2.trim())).filter((c2) => c2.length); + this.set = this.raw.split("||").map((r3) => this.parseRange(r3.trim())).filter((c3) => c3.length); if (!this.set.length) { throw new TypeError(`Invalid SemVer Range: ${this.raw}`); } if (this.set.length > 1) { const first = this.set[0]; - this.set = this.set.filter((c2) => !isNullSet(c2[0])); + this.set = this.set.filter((c3) => !isNullSet(c3[0])); if (this.set.length === 0) { this.set = [first]; } else if (this.set.length > 1) { - for (const c2 of this.set) { - if (c2.length === 1 && isAny(c2[0])) { - this.set = [c2]; + for (const c3 of this.set) { + if (c3.length === 1 && isAny(c3[0])) { + this.set = [c3]; break; } } @@ -22924,20 +23198,20 @@ var require_range = __commonJS({ return cached; } const loose = this.options.loose; - const hr2 = loose ? re3[t2.HYPHENRANGELOOSE] : re3[t2.HYPHENRANGE]; + const hr2 = loose ? re3[t3.HYPHENRANGELOOSE] : re3[t3.HYPHENRANGE]; range2 = range2.replace(hr2, hyphenReplace(this.options.includePrerelease)); debug3("hyphen replace", range2); - range2 = range2.replace(re3[t2.COMPARATORTRIM], comparatorTrimReplace); + range2 = range2.replace(re3[t3.COMPARATORTRIM], comparatorTrimReplace); debug3("comparator trim", range2); - range2 = range2.replace(re3[t2.TILDETRIM], tildeTrimReplace); + range2 = range2.replace(re3[t3.TILDETRIM], tildeTrimReplace); debug3("tilde trim", range2); - range2 = range2.replace(re3[t2.CARETTRIM], caretTrimReplace); + range2 = range2.replace(re3[t3.CARETTRIM], caretTrimReplace); debug3("caret trim", range2); let rangeList = range2.split(" ").map((comp26) => parseComparator(comp26, this.options)).join(" ").split(/\s+/).map((comp26) => replaceGTE0(comp26, this.options)); if (loose) { rangeList = rangeList.filter((comp26) => { debug3("loose invalid filter", comp26, this.options); - return !!comp26.match(re3[t2.COMPARATORLOOSE]); + return !!comp26.match(re3[t3.COMPARATORLOOSE]); }); } debug3("range list", rangeList); @@ -22982,8 +23256,8 @@ var require_range = __commonJS({ return false; } } - for (let i2 = 0; i2 < this.set.length; i2++) { - if (testSet(this.set[i2], version4, this.options)) { + for (let i3 = 0; i3 < this.set.length; i3++) { + if (testSet(this.set[i3], version4, this.options)) { return true; } } @@ -22999,14 +23273,14 @@ var require_range = __commonJS({ var SemVer = require_semver(); var { safeRe: re3, - t: t2, + t: t3, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re(); var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants5(); - var isNullSet = (c2) => c2.value === "<0.0.0-0"; - var isAny = (c2) => c2.value === ""; + var isNullSet = (c3) => c3.value === "<0.0.0-0"; + var isAny = (c3) => c3.value === ""; var isSatisfiable = (comparators, options) => { let result = true; const remainingComparators = comparators.slice(); @@ -23033,70 +23307,70 @@ var require_range = __commonJS({ }; var isX = (id) => !id || id.toLowerCase() === "x" || id === "*"; var replaceTildes = (comp26, options) => { - return comp26.trim().split(/\s+/).map((c2) => replaceTilde(c2, options)).join(" "); + return comp26.trim().split(/\s+/).map((c3) => replaceTilde(c3, options)).join(" "); }; var replaceTilde = (comp26, options) => { - const r2 = options.loose ? re3[t2.TILDELOOSE] : re3[t2.TILDE]; - return comp26.replace(r2, (_2, M2, m3, p2, pr2) => { - debug3("tilde", comp26, _2, M2, m3, p2, pr2); + const r3 = options.loose ? re3[t3.TILDELOOSE] : re3[t3.TILDE]; + return comp26.replace(r3, (_3, M2, m4, p3, pr2) => { + debug3("tilde", comp26, _3, M2, m4, p3, pr2); let ret; if (isX(M2)) { ret = ""; - } else if (isX(m3)) { + } else if (isX(m4)) { ret = `>=${M2}.0.0 <${+M2 + 1}.0.0-0`; - } else if (isX(p2)) { - ret = `>=${M2}.${m3}.0 <${M2}.${+m3 + 1}.0-0`; + } else if (isX(p3)) { + ret = `>=${M2}.${m4}.0 <${M2}.${+m4 + 1}.0-0`; } else if (pr2) { debug3("replaceTilde pr", pr2); - ret = `>=${M2}.${m3}.${p2}-${pr2} <${M2}.${+m3 + 1}.0-0`; + ret = `>=${M2}.${m4}.${p3}-${pr2} <${M2}.${+m4 + 1}.0-0`; } else { - ret = `>=${M2}.${m3}.${p2} <${M2}.${+m3 + 1}.0-0`; + ret = `>=${M2}.${m4}.${p3} <${M2}.${+m4 + 1}.0-0`; } debug3("tilde return", ret); return ret; }); }; var replaceCarets = (comp26, options) => { - return comp26.trim().split(/\s+/).map((c2) => replaceCaret(c2, options)).join(" "); + return comp26.trim().split(/\s+/).map((c3) => replaceCaret(c3, options)).join(" "); }; var replaceCaret = (comp26, options) => { debug3("caret", comp26, options); - const r2 = options.loose ? re3[t2.CARETLOOSE] : re3[t2.CARET]; + const r3 = options.loose ? re3[t3.CARETLOOSE] : re3[t3.CARET]; const z2 = options.includePrerelease ? "-0" : ""; - return comp26.replace(r2, (_2, M2, m3, p2, pr2) => { - debug3("caret", comp26, _2, M2, m3, p2, pr2); + return comp26.replace(r3, (_3, M2, m4, p3, pr2) => { + debug3("caret", comp26, _3, M2, m4, p3, pr2); let ret; if (isX(M2)) { ret = ""; - } else if (isX(m3)) { + } else if (isX(m4)) { ret = `>=${M2}.0.0${z2} <${+M2 + 1}.0.0-0`; - } else if (isX(p2)) { + } else if (isX(p3)) { if (M2 === "0") { - ret = `>=${M2}.${m3}.0${z2} <${M2}.${+m3 + 1}.0-0`; + ret = `>=${M2}.${m4}.0${z2} <${M2}.${+m4 + 1}.0-0`; } else { - ret = `>=${M2}.${m3}.0${z2} <${+M2 + 1}.0.0-0`; + ret = `>=${M2}.${m4}.0${z2} <${+M2 + 1}.0.0-0`; } } else if (pr2) { debug3("replaceCaret pr", pr2); if (M2 === "0") { - if (m3 === "0") { - ret = `>=${M2}.${m3}.${p2}-${pr2} <${M2}.${m3}.${+p2 + 1}-0`; + if (m4 === "0") { + ret = `>=${M2}.${m4}.${p3}-${pr2} <${M2}.${m4}.${+p3 + 1}-0`; } else { - ret = `>=${M2}.${m3}.${p2}-${pr2} <${M2}.${+m3 + 1}.0-0`; + ret = `>=${M2}.${m4}.${p3}-${pr2} <${M2}.${+m4 + 1}.0-0`; } } else { - ret = `>=${M2}.${m3}.${p2}-${pr2} <${+M2 + 1}.0.0-0`; + ret = `>=${M2}.${m4}.${p3}-${pr2} <${+M2 + 1}.0.0-0`; } } else { debug3("no pr"); if (M2 === "0") { - if (m3 === "0") { - ret = `>=${M2}.${m3}.${p2}${z2} <${M2}.${m3}.${+p2 + 1}-0`; + if (m4 === "0") { + ret = `>=${M2}.${m4}.${p3}${z2} <${M2}.${m4}.${+p3 + 1}-0`; } else { - ret = `>=${M2}.${m3}.${p2}${z2} <${M2}.${+m3 + 1}.0-0`; + ret = `>=${M2}.${m4}.${p3}${z2} <${M2}.${+m4 + 1}.0-0`; } } else { - ret = `>=${M2}.${m3}.${p2} <${+M2 + 1}.0.0-0`; + ret = `>=${M2}.${m4}.${p3} <${+M2 + 1}.0.0-0`; } } debug3("caret return", ret); @@ -23105,16 +23379,16 @@ var require_range = __commonJS({ }; var replaceXRanges = (comp26, options) => { debug3("replaceXRanges", comp26, options); - return comp26.split(/\s+/).map((c2) => replaceXRange(c2, options)).join(" "); + return comp26.split(/\s+/).map((c3) => replaceXRange(c3, options)).join(" "); }; var replaceXRange = (comp26, options) => { comp26 = comp26.trim(); - const r2 = options.loose ? re3[t2.XRANGELOOSE] : re3[t2.XRANGE]; - return comp26.replace(r2, (ret, gtlt, M2, m3, p2, pr2) => { - debug3("xRange", comp26, ret, gtlt, M2, m3, p2, pr2); + const r3 = options.loose ? re3[t3.XRANGELOOSE] : re3[t3.XRANGE]; + return comp26.replace(r3, (ret, gtlt, M2, m4, p3, pr2) => { + debug3("xRange", comp26, ret, gtlt, M2, m4, p3, pr2); const xM = isX(M2); - const xm = xM || isX(m3); - const xp = xm || isX(p2); + const xm = xM || isX(m4); + const xp = xm || isX(p3); const anyX = xp; if (gtlt === "=" && anyX) { gtlt = ""; @@ -23128,35 +23402,35 @@ var require_range = __commonJS({ } } else if (gtlt && anyX) { if (xm) { - m3 = 0; + m4 = 0; } - p2 = 0; + p3 = 0; if (gtlt === ">") { gtlt = ">="; if (xm) { M2 = +M2 + 1; - m3 = 0; - p2 = 0; + m4 = 0; + p3 = 0; } else { - m3 = +m3 + 1; - p2 = 0; + m4 = +m4 + 1; + p3 = 0; } } else if (gtlt === "<=") { gtlt = "<"; if (xm) { M2 = +M2 + 1; } else { - m3 = +m3 + 1; + m4 = +m4 + 1; } } if (gtlt === "<") { pr2 = "-0"; } - ret = `${gtlt + M2}.${m3}.${p2}${pr2}`; + ret = `${gtlt + M2}.${m4}.${p3}${pr2}`; } else if (xm) { ret = `>=${M2}.0.0${pr2} <${+M2 + 1}.0.0-0`; } else if (xp) { - ret = `>=${M2}.${m3}.0${pr2} <${M2}.${+m3 + 1}.0-0`; + ret = `>=${M2}.${m4}.0${pr2} <${M2}.${+m4 + 1}.0-0`; } debug3("xRange return", ret); return ret; @@ -23164,11 +23438,11 @@ var require_range = __commonJS({ }; var replaceStars = (comp26, options) => { debug3("replaceStars", comp26, options); - return comp26.trim().replace(re3[t2.STAR], ""); + return comp26.trim().replace(re3[t3.STAR], ""); }; var replaceGTE0 = (comp26, options) => { debug3("replaceGTE0", comp26, options); - return comp26.trim().replace(re3[options.includePrerelease ? t2.GTE0PRE : t2.GTE0], ""); + return comp26.trim().replace(re3[options.includePrerelease ? t3.GTE0PRE : t3.GTE0], ""); }; var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to2, tM, tm, tp, tpr, tb) => { if (isX(fM)) { @@ -23198,19 +23472,19 @@ var require_range = __commonJS({ return `${from} ${to2}`.trim(); }; var testSet = (set2, version4, options) => { - for (let i2 = 0; i2 < set2.length; i2++) { - if (!set2[i2].test(version4)) { + for (let i3 = 0; i3 < set2.length; i3++) { + if (!set2[i3].test(version4)) { return false; } } if (version4.prerelease.length && !options.includePrerelease) { - for (let i2 = 0; i2 < set2.length; i2++) { - debug3(set2[i2].semver); - if (set2[i2].semver === Comparator.ANY) { + for (let i3 = 0; i3 < set2.length; i3++) { + debug3(set2[i3].semver); + if (set2[i3].semver === Comparator.ANY) { continue; } - if (set2[i2].semver.prerelease.length > 0) { - const allowed = set2[i2].semver; + if (set2[i3].semver.prerelease.length > 0) { + const allowed = set2[i3].semver; if (allowed.major === version4.major && allowed.minor === version4.minor && allowed.patch === version4.patch) { return true; } @@ -23253,19 +23527,19 @@ var require_comparator = __commonJS({ debug3("comp", this); } parse(comp26) { - const r2 = this.options.loose ? re3[t2.COMPARATORLOOSE] : re3[t2.COMPARATOR]; - const m3 = comp26.match(r2); - if (!m3) { + const r3 = this.options.loose ? re3[t3.COMPARATORLOOSE] : re3[t3.COMPARATOR]; + const m4 = comp26.match(r3); + if (!m4) { throw new TypeError(`Invalid comparator: ${comp26}`); } - this.operator = m3[1] !== void 0 ? m3[1] : ""; + this.operator = m4[1] !== void 0 ? m4[1] : ""; if (this.operator === "=") { this.operator = ""; } - if (!m3[2]) { + if (!m4[2]) { this.semver = ANY; } else { - this.semver = new SemVer(m3[2], this.options.loose); + this.semver = new SemVer(m4[2], this.options.loose); } } toString() { @@ -23327,7 +23601,7 @@ var require_comparator = __commonJS({ }; module.exports = Comparator; var parseOptions = require_parse_options(); - var { safeRe: re3, t: t2 } = require_re(); + var { safeRe: re3, t: t3 } = require_re(); var cmp = require_cmp(); var debug3 = require_debug(); var SemVer = require_semver(); @@ -23355,7 +23629,7 @@ var require_satisfies = __commonJS({ var require_to_comparators = __commonJS({ "node_modules/semver/ranges/to-comparators.js"(exports, module) { var Range3 = require_range(); - var toComparators = (range2, options) => new Range3(range2, options).set.map((comp26) => comp26.map((c2) => c2.value).join(" ").trim().split(" ")); + var toComparators = (range2, options) => new Range3(range2, options).set.map((comp26) => comp26.map((c3) => c3.value).join(" ").trim().split(" ")); module.exports = toComparators; } }); @@ -23374,10 +23648,10 @@ var require_max_satisfying = __commonJS({ } catch (er2) { return null; } - versions.forEach((v2) => { - if (rangeObj.test(v2)) { - if (!max || maxSV.compare(v2) === -1) { - max = v2; + versions.forEach((v6) => { + if (rangeObj.test(v6)) { + if (!max || maxSV.compare(v6) === -1) { + max = v6; maxSV = new SemVer(max, options); } } @@ -23402,10 +23676,10 @@ var require_min_satisfying = __commonJS({ } catch (er2) { return null; } - versions.forEach((v2) => { - if (rangeObj.test(v2)) { - if (!min || minSV.compare(v2) === 1) { - min = v2; + versions.forEach((v6) => { + if (rangeObj.test(v6)) { + if (!min || minSV.compare(v6) === 1) { + min = v6; minSV = new SemVer(min, options); } } @@ -23433,8 +23707,8 @@ var require_min_version = __commonJS({ return minver; } minver = null; - for (let i2 = 0; i2 < range2.set.length; ++i2) { - const comparators = range2.set[i2]; + for (let i3 = 0; i3 < range2.set.length; ++i3) { + const comparators = range2.set[i3]; let setMin = null; comparators.forEach((comparator) => { const compver = new SemVer(comparator.semver.version); @@ -23524,8 +23798,8 @@ var require_outside = __commonJS({ if (satisfies(version4, range2, options)) { return false; } - for (let i2 = 0; i2 < range2.set.length; ++i2) { - const comparators = range2.set[i2]; + for (let i3 = 0; i3 < range2.set.length; ++i3) { + const comparators = range2.set[i3]; let high = null; let low = null; comparators.forEach((comparator) => { @@ -23577,10 +23851,10 @@ var require_ltr = __commonJS({ var require_intersects = __commonJS({ "node_modules/semver/ranges/intersects.js"(exports, module) { var Range3 = require_range(); - var intersects = (r1, r2, options) => { + var intersects = (r1, r22, options) => { r1 = new Range3(r1, options); - r2 = new Range3(r2, options); - return r1.intersects(r2, options); + r22 = new Range3(r22, options); + return r1.intersects(r22, options); }; module.exports = intersects; } @@ -23595,8 +23869,8 @@ var require_simplify = __commonJS({ const set2 = []; let first = null; let prev = null; - const v2 = versions.sort((a2, b2) => compare(a2, b2, options)); - for (const version4 of v2) { + const v6 = versions.sort((a3, b3) => compare(a3, b3, options)); + for (const version4 of v6) { const included = satisfies(version4, range2, options); if (included) { prev = version4; @@ -23618,11 +23892,11 @@ var require_simplify = __commonJS({ for (const [min, max] of set2) { if (min === max) { ranges.push(min); - } else if (!max && min === v2[0]) { + } else if (!max && min === v6[0]) { ranges.push("*"); } else if (!max) { ranges.push(`>=${min}`); - } else if (min === v2[0]) { + } else if (min === v6[0]) { ranges.push(`<=${max}`); } else { ranges.push(`${min} - ${max}`); @@ -23689,13 +23963,13 @@ var require_subset = __commonJS({ } const eqSet = /* @__PURE__ */ new Set(); let gt2, lt2; - for (const c2 of sub) { - if (c2.operator === ">" || c2.operator === ">=") { - gt2 = higherGT(gt2, c2, options); - } else if (c2.operator === "<" || c2.operator === "<=") { - lt2 = lowerLT(lt2, c2, options); + for (const c3 of sub) { + if (c3.operator === ">" || c3.operator === ">=") { + gt2 = higherGT(gt2, c3, options); + } else if (c3.operator === "<" || c3.operator === "<=") { + lt2 = lowerLT(lt2, c3, options); } else { - eqSet.add(c2.semver); + eqSet.add(c3.semver); } } if (eqSet.size > 1) { @@ -23717,8 +23991,8 @@ var require_subset = __commonJS({ if (lt2 && !satisfies(eq, String(lt2), options)) { return null; } - for (const c2 of dom) { - if (!satisfies(eq, String(c2), options)) { + for (const c3 of dom) { + if (!satisfies(eq, String(c3), options)) { return false; } } @@ -23731,40 +24005,40 @@ var require_subset = __commonJS({ if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt2.operator === "<" && needDomLTPre.prerelease[0] === 0) { needDomLTPre = false; } - for (const c2 of dom) { - hasDomGT = hasDomGT || c2.operator === ">" || c2.operator === ">="; - hasDomLT = hasDomLT || c2.operator === "<" || c2.operator === "<="; + for (const c3 of dom) { + hasDomGT = hasDomGT || c3.operator === ">" || c3.operator === ">="; + hasDomLT = hasDomLT || c3.operator === "<" || c3.operator === "<="; if (gt2) { if (needDomGTPre) { - if (c2.semver.prerelease && c2.semver.prerelease.length && c2.semver.major === needDomGTPre.major && c2.semver.minor === needDomGTPre.minor && c2.semver.patch === needDomGTPre.patch) { + if (c3.semver.prerelease && c3.semver.prerelease.length && c3.semver.major === needDomGTPre.major && c3.semver.minor === needDomGTPre.minor && c3.semver.patch === needDomGTPre.patch) { needDomGTPre = false; } } - if (c2.operator === ">" || c2.operator === ">=") { - higher = higherGT(gt2, c2, options); - if (higher === c2 && higher !== gt2) { + if (c3.operator === ">" || c3.operator === ">=") { + higher = higherGT(gt2, c3, options); + if (higher === c3 && higher !== gt2) { return false; } - } else if (gt2.operator === ">=" && !satisfies(gt2.semver, String(c2), options)) { + } else if (gt2.operator === ">=" && !satisfies(gt2.semver, String(c3), options)) { return false; } } if (lt2) { if (needDomLTPre) { - if (c2.semver.prerelease && c2.semver.prerelease.length && c2.semver.major === needDomLTPre.major && c2.semver.minor === needDomLTPre.minor && c2.semver.patch === needDomLTPre.patch) { + if (c3.semver.prerelease && c3.semver.prerelease.length && c3.semver.major === needDomLTPre.major && c3.semver.minor === needDomLTPre.minor && c3.semver.patch === needDomLTPre.patch) { needDomLTPre = false; } } - if (c2.operator === "<" || c2.operator === "<=") { - lower = lowerLT(lt2, c2, options); - if (lower === c2 && lower !== lt2) { + if (c3.operator === "<" || c3.operator === "<=") { + lower = lowerLT(lt2, c3, options); + if (lower === c3 && lower !== lt2) { return false; } - } else if (lt2.operator === "<=" && !satisfies(lt2.semver, String(c2), options)) { + } else if (lt2.operator === "<=" && !satisfies(lt2.semver, String(c3), options)) { return false; } } - if (!c2.operator && (lt2 || gt2) && gtltComp !== 0) { + if (!c3.operator && (lt2 || gt2) && gtltComp !== 0) { return false; } } @@ -23779,19 +24053,19 @@ var require_subset = __commonJS({ } return true; }; - var higherGT = (a2, b2, options) => { - if (!a2) { - return b2; + var higherGT = (a3, b3, options) => { + if (!a3) { + return b3; } - const comp26 = compare(a2.semver, b2.semver, options); - return comp26 > 0 ? a2 : comp26 < 0 ? b2 : b2.operator === ">" && a2.operator === ">=" ? b2 : a2; + const comp26 = compare(a3.semver, b3.semver, options); + return comp26 > 0 ? a3 : comp26 < 0 ? b3 : b3.operator === ">" && a3.operator === ">=" ? b3 : a3; }; - var lowerLT = (a2, b2, options) => { - if (!a2) { - return b2; + var lowerLT = (a3, b3, options) => { + if (!a3) { + return b3; } - const comp26 = compare(a2.semver, b2.semver, options); - return comp26 < 0 ? a2 : comp26 > 0 ? b2 : b2.operator === "<" && a2.operator === "<=" ? b2 : a2; + const comp26 = compare(a3.semver, b3.semver, options); + return comp26 < 0 ? a3 : comp26 > 0 ? b3 : b3.operator === "<" && a3.operator === "<=" ? b3 : a3; }; module.exports = subset; } @@ -23905,34 +24179,34 @@ var require_rng = __commonJS({ var require_bytesToUuid = __commonJS({ "node_modules/uuid/lib/bytesToUuid.js"(exports, module) { var byteToHex3 = []; - for (i2 = 0; i2 < 256; ++i2) { - byteToHex3[i2] = (i2 + 256).toString(16).substr(1); + for (i3 = 0; i3 < 256; ++i3) { + byteToHex3[i3] = (i3 + 256).toString(16).substr(1); } - var i2; + var i3; function bytesToUuid(buf, offset) { - var i3 = offset || 0; + var i4 = offset || 0; var bth = byteToHex3; return [ - bth[buf[i3++]], - bth[buf[i3++]], - bth[buf[i3++]], - bth[buf[i3++]], + bth[buf[i4++]], + bth[buf[i4++]], + bth[buf[i4++]], + bth[buf[i4++]], "-", - bth[buf[i3++]], - bth[buf[i3++]], + bth[buf[i4++]], + bth[buf[i4++]], "-", - bth[buf[i3++]], - bth[buf[i3++]], + bth[buf[i4++]], + bth[buf[i4++]], "-", - bth[buf[i3++]], - bth[buf[i3++]], + bth[buf[i4++]], + bth[buf[i4++]], "-", - bth[buf[i3++]], - bth[buf[i3++]], - bth[buf[i3++]], - bth[buf[i3++]], - bth[buf[i3++]], - bth[buf[i3++]] + bth[buf[i4++]], + bth[buf[i4++]], + bth[buf[i4++]], + bth[buf[i4++]], + bth[buf[i4++]], + bth[buf[i4++]] ].join(""); } module.exports = bytesToUuid; @@ -23949,8 +24223,8 @@ var require_v1 = __commonJS({ var _lastMSecs2 = 0; var _lastNSecs2 = 0; function v12(options, buf, offset) { - var i2 = buf && offset || 0; - var b2 = buf || []; + var i3 = buf && offset || 0; + var b3 = buf || []; options = options || {}; var node = options.node || _nodeId2; var clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq2; @@ -23987,21 +24261,21 @@ var require_v1 = __commonJS({ _clockseq2 = clockseq; msecs += 122192928e5; var tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; - b2[i2++] = tl >>> 24 & 255; - b2[i2++] = tl >>> 16 & 255; - b2[i2++] = tl >>> 8 & 255; - b2[i2++] = tl & 255; + b3[i3++] = tl >>> 24 & 255; + b3[i3++] = tl >>> 16 & 255; + b3[i3++] = tl >>> 8 & 255; + b3[i3++] = tl & 255; var tmh = msecs / 4294967296 * 1e4 & 268435455; - b2[i2++] = tmh >>> 8 & 255; - b2[i2++] = tmh & 255; - b2[i2++] = tmh >>> 24 & 15 | 16; - b2[i2++] = tmh >>> 16 & 255; - b2[i2++] = clockseq >>> 8 | 128; - b2[i2++] = clockseq & 255; - for (var n2 = 0; n2 < 6; ++n2) { - b2[i2 + n2] = node[n2]; + 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 (var n3 = 0; n3 < 6; ++n3) { + b3[i3 + n3] = node[n3]; } - return buf ? buf : bytesToUuid(b2); + return buf ? buf : bytesToUuid(b3); } module.exports = v12; } @@ -24013,7 +24287,7 @@ var require_v4 = __commonJS({ var rng3 = require_rng(); var bytesToUuid = require_bytesToUuid(); function v43(options, buf, offset) { - var i2 = buf && offset || 0; + var i3 = buf && offset || 0; if (typeof options == "string") { buf = options === "binary" ? new Array(16) : null; options = null; @@ -24024,7 +24298,7 @@ var require_v4 = __commonJS({ rnds[8] = rnds[8] & 63 | 128; if (buf) { for (var ii = 0; ii < 16; ++ii) { - buf[i2 + ii] = rnds[ii]; + buf[i3 + ii] = rnds[ii]; } } return buf || bytesToUuid(rnds); @@ -24081,82 +24355,82 @@ var require_constants6 = __commonJS({ var require_cacheUtils = __commonJS({ "node_modules/@actions/cache/lib/internal/cacheUtils.js"(exports) { "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) { + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - var desc = Object.getOwnPropertyDescriptor(m3, k2); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + k22 = k3; + var desc = Object.getOwnPropertyDescriptor(m4, k3); + if (!desc || ("get" in desc ? !m4.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k2]; + return m4[k3]; } }; } - Object.defineProperty(o2, k22, desc); - } : function(o2, m3, k2, k22) { + Object.defineProperty(o3, k22, desc); + } : function(o3, m4, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m3[k2]; + k22 = k3; + o3[k22] = m4[k3]; }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v2) { - Object.defineProperty(o2, "default", { enumerable: true, value: v2 }); - } : function(o2, v2) { - o2["default"] = v2; + var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v6) { + Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); + } : function(o3, v6) { + o3["default"] = v6; }); var __importStar = exports && exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2)) - __createBinding(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) + __createBinding(result, mod, k3); } __setModuleDefault(result, mod); return result; }; - var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) { + var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P3, generator) { function adopt(value) { - return value instanceof P2 ? value : new P2(function(resolve2) { - resolve2(value); + return value instanceof P3 ? value : new P3(function(resolve3) { + resolve3(value); }); } - return new (P2 || (P2 = Promise))(function(resolve2, reject) { + return new (P3 || (P3 = Promise))(function(resolve3, reject) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e2) { - reject(e2); + } catch (e3) { + reject(e3); } } function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var __asyncValues2 = exports && exports.__asyncValues || function(o2) { + var __asyncValues2 = exports && exports.__asyncValues || function(o3) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m3 = o2[Symbol.asyncIterator], i2; - return m3 ? m3.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() { + var m4 = o3[Symbol.asyncIterator], i3; + return m4 ? m4.call(o3) : (o3 = typeof __values === "function" ? __values(o3) : o3[Symbol.iterator](), i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() { return this; - }, i2); - function verb(n2) { - i2[n2] = o2[n2] && function(v2) { - return new Promise(function(resolve2, reject) { - v2 = o2[n2](v2), settle(resolve2, reject, v2.done, v2.value); + }, i3); + function verb(n3) { + i3[n3] = o3[n3] && function(v6) { + return new Promise(function(resolve3, reject) { + v6 = o3[n3](v6), settle(resolve3, reject, v6.done, v6.value); }); }; } - function settle(resolve2, reject, d2, v2) { - Promise.resolve(v2).then(function(v6) { - resolve2({ value: v6, done: d2 }); + function settle(resolve3, reject, d3, v6) { + Promise.resolve(v6).then(function(v7) { + resolve3({ value: v7, done: d3 }); }, reject); } }; @@ -24167,8 +24441,8 @@ var require_cacheUtils = __commonJS({ var glob = __importStar(require_glob()); var io2 = __importStar(require_io()); var fs3 = __importStar(__require("fs")); - var path14 = __importStar(__require("path")); - var semver2 = __importStar(require_semver2()); + var path15 = __importStar(__require("path")); + var semver = __importStar(require_semver2()); var util3 = __importStar(__require("util")); var uuid_1 = require_uuid(); var constants_1 = require_constants6(); @@ -24187,9 +24461,9 @@ var require_cacheUtils = __commonJS({ baseLocation = "/home"; } } - tempDirectory = path14.join(baseLocation, "actions", "temp"); + tempDirectory = path15.join(baseLocation, "actions", "temp"); } - const dest = path14.join(tempDirectory, (0, uuid_1.v4)()); + const dest = path15.join(tempDirectory, (0, uuid_1.v4)()); yield io2.mkdirP(dest); return dest; }); @@ -24214,7 +24488,7 @@ var require_cacheUtils = __commonJS({ _e2 = false; try { const file = _c2; - const relativeFile = path14.relative(workspace, file).replace(new RegExp(`\\${path14.sep}`, "g"), "/"); + const relativeFile = path15.relative(workspace, file).replace(new RegExp(`\\${path15.sep}`, "g"), "/"); core2.debug(`Matched: ${relativeFile}`); if (relativeFile === "") { paths.push("."); @@ -24271,7 +24545,7 @@ var require_cacheUtils = __commonJS({ function getCompressionMethod() { return __awaiter(this, void 0, void 0, function* () { const versionOutput = yield getVersion("zstd", ["--quiet"]); - const version4 = semver2.clean(versionOutput); + const version4 = semver.clean(versionOutput); core2.debug(`zstd version: ${version4}`); if (versionOutput === "") { return constants_1.CompressionMethod.Gzip; @@ -24344,7 +24618,7 @@ var init_httpHeaders = __esm({ set(headerName, headerValue) { this._headersMap[getHeaderKey(headerName)] = { name: headerName, - value: headerValue.toString() + value: headerValue.toString().trim() }; } /** @@ -24394,8 +24668,8 @@ var init_httpHeaders = __esm({ headerNames() { const headerNames = []; const headers = this.headersArray(); - for (let i2 = 0; i2 < headers.length; ++i2) { - headerNames.push(headers[i2].name); + for (let i3 = 0; i3 < headers.length; ++i3) { + headerNames.push(headers[i3].name); } return headerNames; } @@ -24405,8 +24679,8 @@ var init_httpHeaders = __esm({ headerValues() { const headerValues = []; const headers = this.headersArray(); - for (let i2 = 0; i2 < headers.length; ++i2) { - headerValues.push(headers[i2].value); + for (let i3 = 0; i3 < headers.length; ++i3) { + headerValues.push(headers[i3].value); } return headerValues; } @@ -24470,7 +24744,7 @@ var init_constants = __esm({ /** * The core-http version */ - coreHttpVersion: "3.0.3", + coreHttpVersion: "3.0.4", /** * Specifies HTTP. */ @@ -24596,8 +24870,8 @@ var init_stringify2 = __esm({ "node_modules/@azure/core-http/node_modules/uuid/dist/esm-node/stringify.js"() { init_validate2(); byteToHex2 = []; - for (let i2 = 0; i2 < 256; ++i2) { - byteToHex2.push((i2 + 256).toString(16).substr(1)); + for (let i3 = 0; i3 < 256; ++i3) { + byteToHex2.push((i3 + 256).toString(16).substr(1)); } stringify_default2 = stringify2; } @@ -24611,8 +24885,8 @@ function v42(options, buf, offset) { rnds[8] = rnds[8] & 63 | 128; if (buf) { offset = offset || 0; - for (let i2 = 0; i2 < 16; ++i2) { - buf[offset + i2] = rnds[i2]; + for (let i3 = 0; i3 < 16; ++i3) { + buf[offset + i3] = rnds[i3]; } return buf; } @@ -24727,20 +25001,20 @@ function splitSerializeName(prop) { } return classes; } -function dateToUnixTime(d2) { - if (!d2) { +function dateToUnixTime(d3) { + if (!d3) { return void 0; } - if (typeof d2.valueOf() === "string") { - d2 = new Date(d2); + if (typeof d3.valueOf() === "string") { + d3 = new Date(d3); } - return Math.floor(d2.getTime() / 1e3); + return Math.floor(d3.getTime() / 1e3); } -function unixTimeToDate(n2) { - if (!n2) { +function unixTimeToDate(n3) { + if (!n3) { return void 0; } - return new Date(n2 * 1e3); + return new Date(n3 * 1e3); } function serializeBasicTypes(typeName, objectName, value) { if (value !== null && value !== void 0) { @@ -24843,20 +25117,20 @@ function serializeSequenceType(serializer4, mapper, object, objectName, isXml, o throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${objectName}.`); } const tempArray = []; - for (let i2 = 0; i2 < object.length; i2++) { - const serializedValue = serializer4.serialize(elementType, object[i2], objectName, options); + for (let i3 = 0; i3 < object.length; i3++) { + const serializedValue = serializer4.serialize(elementType, object[i3], objectName, options); if (isXml && elementType.xmlNamespace) { const xmlnsKey = elementType.xmlNamespacePrefix ? `xmlns:${elementType.xmlNamespacePrefix}` : "xmlns"; if (elementType.type.name === "Composite") { - tempArray[i2] = Object.assign({}, serializedValue); - tempArray[i2][XML_ATTRKEY] = { [xmlnsKey]: elementType.xmlNamespace }; + tempArray[i3] = Object.assign({}, serializedValue); + tempArray[i3][XML_ATTRKEY] = { [xmlnsKey]: elementType.xmlNamespace }; } else { - tempArray[i2] = {}; - tempArray[i2][options.xmlCharKey] = serializedValue; - tempArray[i2][XML_ATTRKEY] = { [xmlnsKey]: elementType.xmlNamespace }; + tempArray[i3] = {}; + tempArray[i3][options.xmlCharKey] = serializedValue; + tempArray[i3][XML_ATTRKEY] = { [xmlnsKey]: elementType.xmlNamespace }; } } else { - tempArray[i2] = serializedValue; + tempArray[i3] = serializedValue; } } return tempArray; @@ -25071,9 +25345,9 @@ function deserializeCompositeType(serializer4, mapper, responseBody, objectName, if (Array.isArray(responseBody[key]) && modelProps[key].serializedName === "") { propertyInstance = responseBody[key]; const arrayInstance = serializer4.deserialize(propertyMapper, propertyInstance, propertyObjectName, options); - for (const [k2, v2] of Object.entries(instance)) { - if (!Object.prototype.hasOwnProperty.call(arrayInstance, k2)) { - arrayInstance[k2] = v2; + for (const [k3, v6] of Object.entries(instance)) { + if (!Object.prototype.hasOwnProperty.call(arrayInstance, k3)) { + arrayInstance[k3] = v6; } } instance = arrayInstance; @@ -25132,8 +25406,8 @@ function deserializeSequenceType(serializer4, mapper, responseBody, objectName, responseBody = [responseBody]; } const tempArray = []; - for (let i2 = 0; i2 < responseBody.length; i2++) { - tempArray[i2] = serializer4.deserialize(element, responseBody[i2], `${objectName}[${i2}]`, options); + for (let i3 = 0; i3 < responseBody.length; i3++) { + tempArray[i3] = serializer4.deserialize(element, responseBody[i3], `${objectName}[${i3}]`, options); } return tempArray; } @@ -25163,9 +25437,9 @@ function getPolymorphicDiscriminatorRecursively(serializer4, mapper) { function getPolymorphicDiscriminatorSafely(serializer4, typeName) { return typeName && serializer4.modelMappers[typeName] && serializer4.modelMappers[typeName].type.polymorphicDiscriminator; } -function strEnum(o2) { +function strEnum(o3) { const result = {}; - for (const key of o2) { + for (const key of o3) { result[key] = key; } return result; @@ -25229,7 +25503,7 @@ var init_serializer = __esm({ failValidation("Pattern", Pattern); } } - if (UniqueItems && valueAsArray.some((item, i2, ar2) => ar2.indexOf(item) !== i2)) { + if (UniqueItems && valueAsArray.some((item, i3, ar2) => ar2.indexOf(item) !== i3)) { failValidation("UniqueItems", UniqueItems); } } @@ -25690,7 +25964,7 @@ function consumeBody() { let accum = []; let accumBytes = 0; let abort = false; - return new Body.Promise(function(resolve2, reject) { + return new Body.Promise(function(resolve3, reject) { let resTimeout; if (_this4.timeout) { resTimeout = setTimeout(function() { @@ -25724,7 +25998,7 @@ function consumeBody() { } clearTimeout(resTimeout); try { - resolve2(Buffer.concat(accum, accumBytes)); + resolve3(Buffer.concat(accum, accumBytes)); } catch (err) { reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, "system", err)); } @@ -25778,18 +26052,18 @@ function isBlob(obj) { return typeof obj === "object" && typeof obj.arrayBuffer === "function" && typeof obj.type === "string" && typeof obj.stream === "function" && typeof obj.constructor === "function" && typeof obj.constructor.name === "string" && /^(Blob|File)$/.test(obj.constructor.name) && /^(Blob|File)$/.test(obj[Symbol.toStringTag]); } function clone(instance) { - let p1, p2; + let p1, p22; let body2 = instance.body; if (instance.bodyUsed) { throw new Error("cannot clone body after it is used"); } if (body2 instanceof Stream && typeof body2.getBoundary !== "function") { p1 = new PassThrough(); - p2 = new PassThrough(); + p22 = new PassThrough(); body2.pipe(p1); - body2.pipe(p2); + body2.pipe(p22); instance[INTERNALS].body = p1; - body2 = p2; + body2 = p22; } return body2; } @@ -25871,12 +26145,12 @@ function find(map, name2) { function getHeaders(headers) { let kind = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "key+value"; const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === "key" ? function(k2) { - return k2.toLowerCase(); - } : kind === "value" ? function(k2) { - return headers[MAP][k2].join(", "); - } : function(k2) { - return [k2.toLowerCase(), headers[MAP][k2].join(", ")]; + return keys.map(kind === "key" ? function(k3) { + return k3.toLowerCase(); + } : kind === "value" ? function(k3) { + return headers[MAP][k3].join(", "); + } : function(k3) { + return [k3.toLowerCase(), headers[MAP][k3].join(", ")]; }); } function createHeadersIterator(target, kind) { @@ -25987,7 +26261,7 @@ function fetch(url2, opts) { throw new Error("native promise missing, set fetch.Promise to your favorite alternative"); } Body.Promise = fetch.Promise; - return new fetch.Promise(function(resolve2, reject) { + return new fetch.Promise(function(resolve3, reject) { const request = new Request(url2, opts); const options = getNodeRequestOptions(request); const send = (options.protocol === "https:" ? https : http).request; @@ -26046,9 +26320,9 @@ function fetch(url2, opts) { } }); if (parseInt(process.version.substring(1)) < 14) { - req.on("socket", function(s2) { - s2.addListener("close", function(hadError) { - const hasDataListener = s2.listenerCount("data") > 0; + req.on("socket", function(s3) { + s3.addListener("close", function(hadError) { + const hasDataListener = s3.listenerCount("data") > 0; if (response && hasDataListener && !hadError && !(signal && signal.aborted)) { const err = new Error("Premature close"); err.code = "ERR_STREAM_PREMATURE_CLOSE"; @@ -26122,7 +26396,7 @@ function fetch(url2, opts) { requestOpts.body = void 0; requestOpts.headers.delete("content-length"); } - resolve2(fetch(new Request(locationURL, requestOpts))); + resolve3(fetch(new Request(locationURL, requestOpts))); finalize(); return; } @@ -26144,7 +26418,7 @@ function fetch(url2, opts) { const codings = headers.get("Content-Encoding"); if (!request.compress || request.method === "HEAD" || codings === null || res.statusCode === 204 || res.statusCode === 304) { response = new Response(body2, response_options); - resolve2(response); + resolve3(response); return; } const zlibOptions = { @@ -26154,7 +26428,7 @@ function fetch(url2, opts) { if (codings == "gzip" || codings == "x-gzip") { body2 = body2.pipe(zlib.createGunzip(zlibOptions)); response = new Response(body2, response_options); - resolve2(response); + resolve3(response); return; } if (codings == "deflate" || codings == "x-deflate") { @@ -26166,12 +26440,12 @@ function fetch(url2, opts) { body2 = body2.pipe(zlib.createInflateRaw()); } response = new Response(body2, response_options); - resolve2(response); + resolve3(response); }); raw.on("end", function() { if (!response) { response = new Response(body2, response_options); - resolve2(response); + resolve3(response); } }); return; @@ -26179,19 +26453,19 @@ function fetch(url2, opts) { if (codings == "br" && typeof zlib.createBrotliDecompress === "function") { body2 = body2.pipe(zlib.createBrotliDecompress()); response = new Response(body2, response_options); - resolve2(response); + resolve3(response); return; } response = new Response(body2, response_options); - resolve2(response); + resolve3(response); }); writeToStream(req, request); }); } function fixResponseChunkedTransferBadEnding(request, errorCallback) { let socket; - request.on("socket", function(s2) { - socket = s2; + request.on("socket", function(s3) { + socket = s3; }); request.on("response", function(response) { const headers = response.headers; @@ -26229,10 +26503,10 @@ var init_lib = __esm({ const buffers = []; let size = 0; if (blobParts) { - const a2 = blobParts; - const length = Number(a2.length); - for (let i2 = 0; i2 < length; i2++) { - const element = a2[i2]; + const a3 = blobParts; + const length = Number(a3.length); + for (let i3 = 0; i3 < length; i3++) { + const element = a3[i3]; let buffer; if (element instanceof Buffer) { buffer = element; @@ -26323,7 +26597,7 @@ var init_lib = __esm({ FetchError.prototype.name = "FetchError"; try { convert = __require("encoding").convert; - } catch (e2) { + } catch (e3) { } INTERNALS = Symbol("Body internals"); PassThrough = Stream.PassThrough; @@ -26505,13 +26779,13 @@ var init_lib = __esm({ forEach(callback) { let thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : void 0; let pairs = getHeaders(this); - let i2 = 0; - while (i2 < pairs.length) { - var _pairs$i = pairs[i2]; + let i3 = 0; + while (i3 < pairs.length) { + var _pairs$i = pairs[i3]; const name2 = _pairs$i[0], value = _pairs$i[1]; callback.call(thisArg, value, name2, this); pairs = getHeaders(this); - i2++; + i3++; } } /** @@ -26847,7 +27121,7 @@ var init_lib = __esm({ } }); -// src/shim/abort-controller.ts +// src/polyfill/pure/abort-controller.ts var abort_controller_exports = {}; __export(abort_controller_exports, { AbortController: () => AbortController2, @@ -26856,7 +27130,7 @@ __export(abort_controller_exports, { }); var AbortController2, AbortSignal2; var init_abort_controller = __esm({ - "src/shim/abort-controller.ts"() { + "src/polyfill/pure/abort-controller.ts"() { "use strict"; init_lib(); ({ AbortController: AbortController2, AbortSignal: AbortSignal2 } = globalThis); @@ -26978,8 +27252,8 @@ function nextPort(tokenizer) { } } function nextPath(tokenizer) { - const path14 = readUntilCharacter(tokenizer, "?"); - tokenizer._currentToken = URLToken.path(path14); + const path15 = readUntilCharacter(tokenizer, "?"); + tokenizer._currentToken = URLToken.path(path15); if (!hasCurrentCharacter(tokenizer)) { tokenizer._currentState = "DONE"; } else { @@ -27071,8 +27345,8 @@ var init_url = __esm({ let currentState = "ParameterName"; let parameterName = ""; let parameterValue = ""; - for (let i2 = 0; i2 < text.length; ++i2) { - const currentCharacter = text[i2]; + for (let i3 = 0; i3 < text.length; ++i3) { + const currentCharacter = text[i3]; switch (currentState) { case "ParameterName": switch (currentCharacter) { @@ -27168,16 +27442,16 @@ var init_url = __esm({ * Set the path for this URL. If the provided path contains a query, then it will be added to * this URL as well. */ - setPath(path14) { - if (!path14) { + setPath(path15) { + if (!path15) { this._path = void 0; } else { - const schemeIndex = path14.indexOf("://"); + const schemeIndex = path15.indexOf("://"); if (schemeIndex !== -1) { - const schemeStart = path14.lastIndexOf("/", schemeIndex); - this.set(schemeStart === -1 ? path14 : path14.substr(schemeStart + 1), "SCHEME"); + const schemeStart = path15.lastIndexOf("/", schemeIndex); + this.set(schemeStart === -1 ? path15 : path15.substr(schemeStart + 1), "SCHEME"); } else { - this.set(path14, "PATH"); + this.set(path15, "PATH"); } } } @@ -27185,19 +27459,19 @@ var init_url = __esm({ * Append the provided path to this URL's existing path. If the provided path contains a query, * then it will be added to this URL as well. */ - appendPath(path14) { - if (path14) { + appendPath(path15) { + if (path15) { let currentPath = this.getPath(); if (currentPath) { if (!currentPath.endsWith("/")) { currentPath += "/"; } - if (path14.startsWith("/")) { - path14 = path14.substring(1); + if (path15.startsWith("/")) { + path15 = path15.substring(1); } - path14 = currentPath + path14; + path15 = currentPath + path15; } - this.set(path14, "PATH"); + this.set(path15, "PATH"); } } /** @@ -27512,9 +27786,9 @@ var require_delayed_stream = __commonJS({ this._bufferedEvents = []; }; DelayedStream.prototype.pipe = function() { - var r2 = Stream2.prototype.pipe.apply(this, arguments); + var r3 = Stream2.prototype.pipe.apply(this, arguments); this.resume(); - return r2; + return r3; }; DelayedStream.prototype._handleEmit = function(args) { if (this._released) { @@ -36312,11 +36586,11 @@ var require_mime_types = __commonJS({ } return exts[0]; } - function lookup(path14) { - if (!path14 || typeof path14 !== "string") { + function lookup(path15) { + if (!path15 || typeof path15 !== "string") { return false; } - var extension2 = extname("x." + path14).toLowerCase().substr(1); + var extension2 = extname("x." + path15).toLowerCase().substr(1); if (!extension2) { return false; } @@ -36331,8 +36605,8 @@ var require_mime_types = __commonJS({ return; } extensions[type3] = exts; - for (var i2 = 0; i2 < exts.length; i2++) { - var extension2 = exts[i2]; + for (var i3 = 0; i3 < exts.length; i3++) { + var extension2 = exts[i3]; if (types[extension2]) { var from = preference.indexOf(db[types[extension2]].source); var to2 = preference.indexOf(mime.source); @@ -36447,8 +36721,8 @@ var require_state = __commonJS({ size: isNamedList ? Object.keys(list3).length : list3.length }; if (sortMethod) { - initState.keyedList.sort(isNamedList ? sortMethod : function(a2, b2) { - return sortMethod(list3[a2], list3[b2]); + initState.keyedList.sort(isNamedList ? sortMethod : function(a3, b3) { + return sortMethod(list3[a3], list3[b3]); }); } return initState; @@ -36525,11 +36799,11 @@ var require_serialOrdered = __commonJS({ }); return terminator.bind(state, callback); } - function ascending(a2, b2) { - return a2 < b2 ? -1 : a2 > b2 ? 1 : 0; + function ascending(a3, b3) { + return a3 < b3 ? -1 : a3 > b3 ? 1 : 0; } - function descending(a2, b2) { - return -1 * ascending(a2, b2); + function descending(a3, b3) { + return -1 * ascending(a3, b3); } } }); @@ -36573,8 +36847,8 @@ var require_form_data = __commonJS({ "node_modules/@azure/core-http/node_modules/form-data/lib/form_data.js"(exports, module) { var CombinedStream = require_combined_stream(); var util3 = __require("util"); - var path14 = __require("path"); - var http4 = __require("http"); + var path15 = __require("path"); + var http3 = __require("http"); var https3 = __require("https"); var parseUrl = __require("url").parse; var fs3 = __require("fs"); @@ -36700,11 +36974,11 @@ var require_form_data = __commonJS({ FormData2.prototype._getContentDisposition = function(value, options) { var filename, contentDisposition; if (typeof options.filepath === "string") { - filename = path14.normalize(options.filepath).replace(/\\/g, "/"); + filename = path15.normalize(options.filepath).replace(/\\/g, "/"); } else if (options.filename || value.name || value.path) { - filename = path14.basename(options.filename || value.name || value.path); + filename = path15.basename(options.filename || value.name || value.path); } else if (value.readable && value.hasOwnProperty("httpVersion")) { - filename = path14.basename(value.client._httpMessage.path || ""); + filename = path15.basename(value.client._httpMessage.path || ""); } if (filename) { contentDisposition = 'filename="' + filename + '"'; @@ -36767,14 +37041,14 @@ var require_form_data = __commonJS({ FormData2.prototype.getBuffer = function() { var dataBuffer = new Buffer.alloc(0); var boundary = this.getBoundary(); - for (var i2 = 0, len = this._streams.length; i2 < len; i2++) { - if (typeof this._streams[i2] !== "function") { - if (Buffer.isBuffer(this._streams[i2])) { - dataBuffer = Buffer.concat([dataBuffer, this._streams[i2]]); + for (var i3 = 0, len = this._streams.length; i3 < len; i3++) { + if (typeof this._streams[i3] !== "function") { + if (Buffer.isBuffer(this._streams[i3])) { + dataBuffer = Buffer.concat([dataBuffer, this._streams[i3]]); } else { - dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i2])]); + dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i3])]); } - if (typeof this._streams[i2] !== "string" || this._streams[i2].substring(2, boundary.length + 2) !== boundary) { + if (typeof this._streams[i3] !== "string" || this._streams[i3].substring(2, boundary.length + 2) !== boundary) { dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData2.LINE_BREAK)]); } } @@ -36783,7 +37057,7 @@ var require_form_data = __commonJS({ }; FormData2.prototype._generateBoundary = function() { var boundary = "--------------------------"; - for (var i2 = 0; i2 < 24; i2++) { + for (var i3 = 0; i3 < 24; i3++) { boundary += Math.floor(Math.random() * 10).toString(16); } this._boundary = boundary; @@ -36845,7 +37119,7 @@ var require_form_data = __commonJS({ if (options.protocol == "https:") { request = https3.request(options); } else { - request = http4.request(options); + request = http3.request(options); } this.getLength(function(err, length) { if (err && err !== "Unknown stream") { @@ -36936,8 +37210,8 @@ var init_sanitizer = __esm({ constructor({ allowedHeaderNames = [], allowedQueryParameters = [] } = {}) { allowedHeaderNames = Array.isArray(allowedHeaderNames) ? defaultAllowedHeaderNames.concat(allowedHeaderNames) : defaultAllowedHeaderNames; allowedQueryParameters = Array.isArray(allowedQueryParameters) ? defaultAllowedQueryParameters.concat(allowedQueryParameters) : defaultAllowedQueryParameters; - this.allowedHeaderNames = new Set(allowedHeaderNames.map((n2) => n2.toLowerCase())); - this.allowedQueryParameters = new Set(allowedQueryParameters.map((p2) => p2.toLowerCase())); + this.allowedHeaderNames = new Set(allowedHeaderNames.map((n3) => n3.toLowerCase())); + this.allowedQueryParameters = new Set(allowedQueryParameters.map((p3) => p3.toLowerCase())); } sanitize(obj) { const seen = /* @__PURE__ */ new Set(); @@ -36967,21 +37241,21 @@ var init_sanitizer = __esm({ }, 2); } sanitizeHeaders(value) { - return this.sanitizeObject(value, this.allowedHeaderNames, (v2, k2) => v2[k2].value); + return this.sanitizeObject(value, this.allowedHeaderNames, (v6, k3) => v6[k3].value); } sanitizeQuery(value) { - return this.sanitizeObject(value, this.allowedQueryParameters, (v2, k2) => v2[k2]); + return this.sanitizeObject(value, this.allowedQueryParameters, (v6, k3) => v6[k3]); } sanitizeObject(value, allowedKeys, accessor) { if (typeof value !== "object" || value === null) { return value; } const sanitized = {}; - for (const k2 of Object.keys(value)) { - if (allowedKeys.has(k2.toLowerCase())) { - sanitized[k2] = accessor(value, k2); + for (const k3 of Object.keys(value)) { + if (allowedKeys.has(k3.toLowerCase())) { + sanitized[k3] = accessor(value, k3); } else { - sanitized[k2] = RedactedString; + sanitized[k3] = RedactedString; } } return sanitized; @@ -36996,9 +37270,9 @@ var init_sanitizer = __esm({ return value; } const query = URLQuery.parse(queryString); - for (const k2 of query.keys()) { - if (!this.allowedQueryParameters.has(k2.toLowerCase())) { - query.set(k2, RedactedString); + for (const k3 of query.keys()) { + if (!this.allowedQueryParameters.has(k3.toLowerCase())) { + query.set(k3, RedactedString); } } urlBuilder.setQuery(query.toString()); @@ -37048,10 +37322,10 @@ var init_restError = __esm({ }); // node_modules/@azure/logger/dist-esm/src/log.js -import { EOL } from "os"; +import { EOL as EOL2 } from "os"; import util from "util"; function log(message, ...args) { - process.stderr.write(`${util.format(message, ...args)}${EOL}`); + process.stderr.write(`${util.format(message, ...args)}${EOL2}`); } var init_log = __esm({ "node_modules/@azure/logger/dist-esm/src/log.js"() { @@ -37247,13 +37521,13 @@ function isReadableStream(body2) { return body2 && typeof body2.pipe === "function"; } function isStreamComplete(stream, aborter) { - return new Promise((resolve2) => { + return new Promise((resolve3) => { stream.once("close", () => { aborter === null || aborter === void 0 ? void 0 : aborter.abort(); - resolve2(); + resolve3(); }); - stream.once("end", resolve2); - stream.once("error", resolve2); + stream.once("end", resolve3); + stream.once("error", resolve3); }); } function parseHeaders(headers) { @@ -37335,8 +37609,8 @@ var init_nodeFetchHttpClient = __esm({ for (const formKey of Object.keys(formData)) { const formValue = formData[formKey]; if (Array.isArray(formValue)) { - for (let j2 = 0; j2 < formValue.length; j2++) { - appendFormValue(formKey, formValue[j2]); + for (let j3 = 0; j3 < formValue.length; j3++) { + appendFormValue(formKey, formValue[j3]); } } else { appendFormValue(formKey, formValue); @@ -37425,8 +37699,8 @@ var init_nodeFetchHttpClient = __esm({ var _a3; (_a3 = httpRequest.abortSignal) === null || _a3 === void 0 ? void 0 : _a3.removeEventListener("abort", abortListener); return; - }).catch((e2) => { - logger.warning("Error when cleaning up abortListener on httpRequest", e2); + }).catch((e3) => { + logger.warning("Error when cleaning up abortListener on httpRequest", e3); }); } } @@ -37515,59 +37789,59 @@ var init_httpPipelineLogLevel = __esm({ }); // node_modules/tslib/tslib.es6.mjs -function __rest(s2, e2) { - var t2 = {}; - for (var p2 in s2) - if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0) - t2[p2] = s2[p2]; - if (s2 != null && typeof Object.getOwnPropertySymbols === "function") - for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2); i2 < p2.length; i2++) { - if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2])) - t2[p2[i2]] = s2[p2[i2]]; - } - return t2; -} -function __values2(o2) { - var s2 = typeof Symbol === "function" && Symbol.iterator, m3 = s2 && o2[s2], i2 = 0; - if (m3) - return m3.call(o2); - if (o2 && typeof o2.length === "number") +function __rest(s3, e3) { + var t3 = {}; + for (var p3 in s3) + if (Object.prototype.hasOwnProperty.call(s3, p3) && e3.indexOf(p3) < 0) + t3[p3] = s3[p3]; + if (s3 != null && typeof Object.getOwnPropertySymbols === "function") + for (var i3 = 0, p3 = Object.getOwnPropertySymbols(s3); i3 < p3.length; i3++) { + if (e3.indexOf(p3[i3]) < 0 && Object.prototype.propertyIsEnumerable.call(s3, p3[i3])) + t3[p3[i3]] = s3[p3[i3]]; + } + return t3; +} +function __values2(o3) { + var s3 = typeof Symbol === "function" && Symbol.iterator, m4 = s3 && o3[s3], i3 = 0; + if (m4) + return m4.call(o3); + if (o3 && typeof o3.length === "number") return { next: function() { - if (o2 && i2 >= o2.length) - o2 = void 0; - return { value: o2 && o2[i2++], done: !o2 }; + if (o3 && i3 >= o3.length) + o3 = void 0; + return { value: o3 && o3[i3++], done: !o3 }; } }; - throw new TypeError(s2 ? "Object is not iterable." : "Symbol.iterator is not defined."); + throw new TypeError(s3 ? "Object is not iterable." : "Symbol.iterator is not defined."); } -function __await(v2) { - return this instanceof __await ? (this.v = v2, this) : new __await(v2); +function __await(v6) { + return this instanceof __await ? (this.v = v6, this) : new __await(v6); } function __asyncGenerator(thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = []; - return i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() { + var g3 = generator.apply(thisArg, _arguments || []), i3, q2 = []; + return i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() { return this; - }, i2; - function verb(n2) { - if (g2[n2]) - i2[n2] = function(v2) { - return new Promise(function(a2, b2) { - q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2); + }, i3; + function verb(n3) { + if (g3[n3]) + i3[n3] = function(v6) { + return new Promise(function(a3, b3) { + q2.push([n3, v6, a3, b3]) > 1 || resume(n3, v6); }); }; } - function resume(n2, v2) { + function resume(n3, v6) { try { - step(g2[n2](v2)); - } catch (e2) { - settle(q2[0][3], e2); + step(g3[n3](v6)); + } catch (e3) { + settle(q2[0][3], e3); } } - function step(r2) { - r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2); + function step(r3) { + r3.value instanceof __await ? Promise.resolve(r3.value.v).then(fulfill, reject) : settle(q2[0][2], r3); } function fulfill(value) { resume("next", value); @@ -37575,41 +37849,41 @@ function __asyncGenerator(thisArg, _arguments, generator) { function reject(value) { resume("throw", value); } - function settle(f2, v2) { - if (f2(v2), q2.shift(), q2.length) + function settle(f3, v6) { + if (f3(v6), q2.shift(), q2.length) resume(q2[0][0], q2[0][1]); } } -function __asyncDelegator(o2) { - var i2, p2; - return i2 = {}, verb("next"), verb("throw", function(e2) { - throw e2; - }), verb("return"), i2[Symbol.iterator] = function() { +function __asyncDelegator(o3) { + var i3, p3; + return i3 = {}, verb("next"), verb("throw", function(e3) { + throw e3; + }), verb("return"), i3[Symbol.iterator] = function() { return this; - }, i2; - function verb(n2, f2) { - i2[n2] = o2[n2] ? function(v2) { - return (p2 = !p2) ? { value: __await(o2[n2](v2)), done: false } : f2 ? f2(v2) : v2; - } : f2; + }, i3; + function verb(n3, f3) { + i3[n3] = o3[n3] ? function(v6) { + return (p3 = !p3) ? { value: __await(o3[n3](v6)), done: false } : f3 ? f3(v6) : v6; + } : f3; } } -function __asyncValues(o2) { +function __asyncValues(o3) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m3 = o2[Symbol.asyncIterator], i2; - return m3 ? m3.call(o2) : (o2 = typeof __values2 === "function" ? __values2(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() { + var m4 = o3[Symbol.asyncIterator], i3; + return m4 ? m4.call(o3) : (o3 = typeof __values2 === "function" ? __values2(o3) : o3[Symbol.iterator](), i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() { return this; - }, i2); - function verb(n2) { - i2[n2] = o2[n2] && function(v2) { - return new Promise(function(resolve2, reject) { - v2 = o2[n2](v2), settle(resolve2, reject, v2.done, v2.value); + }, i3); + function verb(n3) { + i3[n3] = o3[n3] && function(v6) { + return new Promise(function(resolve3, reject) { + v6 = o3[n3](v6), settle(resolve3, reject, v6.done, v6.value); }); }; } - function settle(resolve2, reject, d2, v2) { - Promise.resolve(v2).then(function(v6) { - resolve2({ value: v6, done: d2 }); + function settle(resolve3, reject, d3, v6) { + Promise.resolve(v6).then(function(v7) { + resolve3({ value: v7, done: d3 }); }, reject); } } @@ -37777,13 +38051,13 @@ var require_Utility = __commonJS({ (function() { var assign, getValue, isArray, isEmpty, isFunction, isObject2, isPlainObject, slice = [].slice, hasProp = {}.hasOwnProperty; assign = function() { - var i2, key, len, source, sources, target; + var i3, key, len, source, sources, target; target = arguments[0], sources = 2 <= arguments.length ? slice.call(arguments, 1) : []; if (isFunction(Object.assign)) { Object.assign.apply(null, arguments); } else { - for (i2 = 0, len = sources.length; i2 < len; i2++) { - source = sources[i2]; + for (i3 = 0, len = sources.length; i3 < len; i3++) { + source = sources[i3]; if (source != null) { for (key in source) { if (!hasProp.call(source, key)) @@ -38173,7 +38447,7 @@ var require_XMLElement = __commonJS({ module.exports = XMLElement = function(superClass) { extend2(XMLElement2, superClass); function XMLElement2(parent, name2, attributes) { - var child, j2, len, ref1; + var child, j3, len, ref1; XMLElement2.__super__.constructor.call(this, parent); if (name2 == null) { throw new Error("Missing element name. " + this.debugInfo()); @@ -38191,8 +38465,8 @@ var require_XMLElement = __commonJS({ parent.rootObject = this; if (parent.children) { ref1 = parent.children; - for (j2 = 0, len = ref1.length; j2 < len; j2++) { - child = ref1[j2]; + for (j3 = 0, len = ref1.length; j3 < len; j3++) { + child = ref1[j3]; if (child.type === NodeType.DocType) { child.name = this.name; break; @@ -38292,14 +38566,14 @@ var require_XMLElement = __commonJS({ return this; }; XMLElement2.prototype.removeAttribute = function(name2) { - var attName, j2, len; + var attName, j3, len; if (name2 == null) { throw new Error("Missing attribute name. " + this.debugInfo()); } name2 = getValue(name2); if (Array.isArray(name2)) { - for (j2 = 0, len = name2.length; j2 < len; j2++) { - attName = name2[j2]; + for (j3 = 0, len = name2.length; j3 < len; j3++) { + attName = name2[j3]; delete this.attribs[attName]; } } else { @@ -38389,7 +38663,7 @@ var require_XMLElement = __commonJS({ throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement2.prototype.isEqualNode = function(node) { - var i2, j2, ref1; + var i3, j3, ref1; if (!XMLElement2.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) { return false; } @@ -38405,8 +38679,8 @@ var require_XMLElement = __commonJS({ if (node.attribs.length !== this.attribs.length) { return false; } - for (i2 = j2 = 0, ref1 = this.attribs.length - 1; 0 <= ref1 ? j2 <= ref1 : j2 >= ref1; i2 = 0 <= ref1 ? ++j2 : --j2) { - if (!this.attribs[i2].isEqualNode(node.attribs[i2])) { + for (i3 = j3 = 0, ref1 = this.attribs.length - 1; 0 <= ref1 ? j3 <= ref1 : j3 >= ref1; i3 = 0 <= ref1 ? ++j3 : --j3) { + if (!this.attribs[i3].isEqualNode(node.attribs[i3])) { return false; } } @@ -38918,13 +39192,13 @@ var require_XMLDocType = __commonJS({ module.exports = XMLDocType = function(superClass) { extend2(XMLDocType2, superClass); function XMLDocType2(parent, pubID, sysID) { - var child, i2, len, ref, ref1, ref2; + var child, i3, len, ref, ref1, ref2; XMLDocType2.__super__.constructor.call(this, parent); this.type = NodeType.DocType; if (parent.children) { ref = parent.children; - for (i2 = 0, len = ref.length; i2 < len; i2++) { - child = ref[i2]; + for (i3 = 0, len = ref.length; i3 < len; i3++) { + child = ref[i3]; if (child.type === NodeType.Element) { this.name = child.name; break; @@ -38947,11 +39221,11 @@ var require_XMLDocType = __commonJS({ } Object.defineProperty(XMLDocType2.prototype, "entities", { get: function() { - var child, i2, len, nodes, ref; + var child, i3, len, nodes, ref; nodes = {}; ref = this.children; - for (i2 = 0, len = ref.length; i2 < len; i2++) { - child = ref[i2]; + for (i3 = 0, len = ref.length; i3 < len; i3++) { + child = ref[i3]; if (child.type === NodeType.EntityDeclaration && !child.pe) { nodes[child.name] = child; } @@ -38961,11 +39235,11 @@ var require_XMLDocType = __commonJS({ }); Object.defineProperty(XMLDocType2.prototype, "notations", { get: function() { - var child, i2, len, nodes, ref; + var child, i3, len, nodes, ref; nodes = {}; ref = this.children; - for (i2 = 0, len = ref.length; i2 < len; i2++) { - child = ref[i2]; + for (i3 = 0, len = ref.length; i3 < len; i3++) { + child = ref[i3]; if (child.type === NodeType.NotationDeclaration) { nodes[child.name] = child; } @@ -39390,16 +39664,16 @@ var require_XMLNode = __commonJS({ }); Object.defineProperty(XMLNode2.prototype, "previousSibling", { get: function() { - var i2; - i2 = this.parent.children.indexOf(this); - return this.parent.children[i2 - 1] || null; + var i3; + i3 = this.parent.children.indexOf(this); + return this.parent.children[i3 - 1] || null; } }); Object.defineProperty(XMLNode2.prototype, "nextSibling", { get: function() { - var i2; - i2 = this.parent.children.indexOf(this); - return this.parent.children[i2 + 1] || null; + var i3; + i3 = this.parent.children.indexOf(this); + return this.parent.children[i3 + 1] || null; } }); Object.defineProperty(XMLNode2.prototype, "ownerDocument", { @@ -39409,12 +39683,12 @@ var require_XMLNode = __commonJS({ }); Object.defineProperty(XMLNode2.prototype, "textContent", { get: function() { - var child, j2, len, ref2, str; + var child, j3, len, ref2, str; if (this.nodeType === NodeType.Element || this.nodeType === NodeType.DocumentFragment) { str = ""; ref2 = this.children; - for (j2 = 0, len = ref2.length; j2 < len; j2++) { - child = ref2[j2]; + for (j3 = 0, len = ref2.length; j3 < len; j3++) { + child = ref2[j3]; if (child.textContent) { str += child.textContent; } @@ -39429,7 +39703,7 @@ var require_XMLNode = __commonJS({ } }); XMLNode2.prototype.setParent = function(parent) { - var child, j2, len, ref2, results; + var child, j3, len, ref2, results; this.parent = parent; if (parent) { this.options = parent.options; @@ -39437,14 +39711,14 @@ var require_XMLNode = __commonJS({ } ref2 = this.children; results = []; - for (j2 = 0, len = ref2.length; j2 < len; j2++) { - child = ref2[j2]; + for (j3 = 0, len = ref2.length; j3 < len; j3++) { + child = ref2[j3]; results.push(child.setParent(this)); } return results; }; XMLNode2.prototype.element = function(name2, attributes, text) { - var childNode, item, j2, k2, key, lastChild, len, len1, ref2, ref3, val; + var childNode, item, j3, k3, key, lastChild, len, len1, ref2, ref3, val; lastChild = null; if (attributes === null && text == null) { ref2 = [{}, null], attributes = ref2[0], text = ref2[1]; @@ -39460,8 +39734,8 @@ var require_XMLNode = __commonJS({ name2 = getValue(name2); } if (Array.isArray(name2)) { - for (j2 = 0, len = name2.length; j2 < len; j2++) { - item = name2[j2]; + for (j3 = 0, len = name2.length; j3 < len; j3++) { + item = name2[j3]; lastChild = this.element(item); } } else if (isFunction(name2)) { @@ -39483,8 +39757,8 @@ var require_XMLNode = __commonJS({ } else if (!this.options.keepNullNodes && val == null) { lastChild = this.dummy(); } else if (!this.options.separateArrayItems && Array.isArray(val)) { - for (k2 = 0, len1 = val.length; k2 < len1; k2++) { - item = val[k2]; + for (k3 = 0, len1 = val.length; k3 < len1; k3++) { + item = val[k3]; childNode = {}; childNode[key] = item; lastChild = this.element(childNode); @@ -39523,14 +39797,14 @@ var require_XMLNode = __commonJS({ return lastChild; }; XMLNode2.prototype.insertBefore = function(name2, attributes, text) { - var child, i2, newChild, refChild, removed; + var child, i3, newChild, refChild, removed; if (name2 != null ? name2.type : void 0) { newChild = name2; refChild = attributes; newChild.setParent(this); if (refChild) { - i2 = children.indexOf(refChild); - removed = children.splice(i2); + i3 = children.indexOf(refChild); + removed = children.splice(i3); children.push(newChild); Array.prototype.push.apply(children, removed); } else { @@ -39541,31 +39815,31 @@ var require_XMLNode = __commonJS({ if (this.isRoot) { throw new Error("Cannot insert elements at root level. " + this.debugInfo(name2)); } - i2 = this.parent.children.indexOf(this); - removed = this.parent.children.splice(i2); + i3 = this.parent.children.indexOf(this); + removed = this.parent.children.splice(i3); child = this.parent.element(name2, attributes, text); Array.prototype.push.apply(this.parent.children, removed); return child; } }; XMLNode2.prototype.insertAfter = function(name2, attributes, text) { - var child, i2, removed; + var child, i3, removed; if (this.isRoot) { throw new Error("Cannot insert elements at root level. " + this.debugInfo(name2)); } - i2 = this.parent.children.indexOf(this); - removed = this.parent.children.splice(i2 + 1); + i3 = this.parent.children.indexOf(this); + removed = this.parent.children.splice(i3 + 1); child = this.parent.element(name2, attributes, text); Array.prototype.push.apply(this.parent.children, removed); return child; }; XMLNode2.prototype.remove = function() { - var i2, ref2; + var i3, ref2; if (this.isRoot) { throw new Error("Cannot remove the root element. " + this.debugInfo()); } - i2 = this.parent.children.indexOf(this); - [].splice.apply(this.parent.children, [i2, i2 - i2 + 1].concat(ref2 = [])), ref2; + i3 = this.parent.children.indexOf(this); + [].splice.apply(this.parent.children, [i3, i3 - i3 + 1].concat(ref2 = [])), ref2; return this.parent; }; XMLNode2.prototype.node = function(name2, attributes, text) { @@ -39607,17 +39881,17 @@ var require_XMLNode = __commonJS({ return this; }; XMLNode2.prototype.commentBefore = function(value) { - var child, i2, removed; - i2 = this.parent.children.indexOf(this); - removed = this.parent.children.splice(i2); + var child, i3, removed; + i3 = this.parent.children.indexOf(this); + removed = this.parent.children.splice(i3); child = this.parent.comment(value); Array.prototype.push.apply(this.parent.children, removed); return this; }; XMLNode2.prototype.commentAfter = function(value) { - var child, i2, removed; - i2 = this.parent.children.indexOf(this); - removed = this.parent.children.splice(i2 + 1); + var child, i3, removed; + i3 = this.parent.children.indexOf(this); + removed = this.parent.children.splice(i3 + 1); child = this.parent.comment(value); Array.prototype.push.apply(this.parent.children, removed); return this; @@ -39634,7 +39908,7 @@ var require_XMLNode = __commonJS({ return child; }; XMLNode2.prototype.instruction = function(target, value) { - var insTarget, insValue, instruction, j2, len; + var insTarget, insValue, instruction, j3, len; if (target != null) { target = getValue(target); } @@ -39642,8 +39916,8 @@ var require_XMLNode = __commonJS({ value = getValue(value); } if (Array.isArray(target)) { - for (j2 = 0, len = target.length; j2 < len; j2++) { - insTarget = target[j2]; + for (j3 = 0, len = target.length; j3 < len; j3++) { + insTarget = target[j3]; this.instruction(insTarget); } } else if (isObject2(target)) { @@ -39663,17 +39937,17 @@ var require_XMLNode = __commonJS({ return this; }; XMLNode2.prototype.instructionBefore = function(target, value) { - var child, i2, removed; - i2 = this.parent.children.indexOf(this); - removed = this.parent.children.splice(i2); + var child, i3, removed; + i3 = this.parent.children.indexOf(this); + removed = this.parent.children.splice(i3); child = this.parent.instruction(target, value); Array.prototype.push.apply(this.parent.children, removed); return this; }; XMLNode2.prototype.instructionAfter = function(target, value) { - var child, i2, removed; - i2 = this.parent.children.indexOf(this); - removed = this.parent.children.splice(i2 + 1); + var child, i3, removed; + i3 = this.parent.children.indexOf(this); + removed = this.parent.children.splice(i3 + 1); child = this.parent.instruction(target, value); Array.prototype.push.apply(this.parent.children, removed); return this; @@ -39692,22 +39966,22 @@ var require_XMLNode = __commonJS({ return doc.root() || doc; }; XMLNode2.prototype.dtd = function(pubID, sysID) { - var child, doc, doctype, i2, j2, k2, len, len1, ref2, ref3; + var child, doc, doctype, i3, j3, k3, len, len1, ref2, ref3; doc = this.document(); doctype = new XMLDocType(doc, pubID, sysID); ref2 = doc.children; - for (i2 = j2 = 0, len = ref2.length; j2 < len; i2 = ++j2) { - child = ref2[i2]; + for (i3 = j3 = 0, len = ref2.length; j3 < len; i3 = ++j3) { + child = ref2[i3]; if (child.type === NodeType.DocType) { - doc.children[i2] = doctype; + doc.children[i3] = doctype; return doctype; } } ref3 = doc.children; - for (i2 = k2 = 0, len1 = ref3.length; k2 < len1; i2 = ++k2) { - child = ref3[i2]; + for (i3 = k3 = 0, len1 = ref3.length; k3 < len1; i3 = ++k3) { + child = ref3[i3]; if (child.isRoot) { - doc.children.splice(i2, 0, doctype); + doc.children.splice(i3, 0, doctype); return doctype; } } @@ -39748,20 +40022,20 @@ var require_XMLNode = __commonJS({ return this.document().end(options); }; XMLNode2.prototype.prev = function() { - var i2; - i2 = this.parent.children.indexOf(this); - if (i2 < 1) { + var i3; + i3 = this.parent.children.indexOf(this); + if (i3 < 1) { throw new Error("Already at the first node. " + this.debugInfo()); } - return this.parent.children[i2 - 1]; + return this.parent.children[i3 - 1]; }; XMLNode2.prototype.next = function() { - var i2; - i2 = this.parent.children.indexOf(this); - if (i2 === -1 || i2 === this.parent.children.length - 1) { + var i3; + i3 = this.parent.children.indexOf(this); + if (i3 === -1 || i3 === this.parent.children.length - 1) { throw new Error("Already at the last node. " + this.debugInfo()); } - return this.parent.children[i2 + 1]; + return this.parent.children[i3 + 1]; }; XMLNode2.prototype.importDocument = function(doc) { var clonedRoot; @@ -39895,15 +40169,15 @@ var require_XMLNode = __commonJS({ throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLNode2.prototype.isEqualNode = function(node) { - var i2, j2, ref2; + var i3, j3, ref2; if (node.nodeType !== this.nodeType) { return false; } if (node.children.length !== this.children.length) { return false; } - for (i2 = j2 = 0, ref2 = this.children.length - 1; 0 <= ref2 ? j2 <= ref2 : j2 >= ref2; i2 = 0 <= ref2 ? ++j2 : --j2) { - if (!this.children[i2].isEqualNode(node.children[i2])) { + for (i3 = j3 = 0, ref2 = this.children.length - 1; 0 <= ref2 ? j3 <= ref2 : j3 >= ref2; i3 = 0 <= ref2 ? ++j3 : --j3) { + if (!this.children[i3].isEqualNode(node.children[i3])) { return false; } } @@ -39925,10 +40199,10 @@ var require_XMLNode = __commonJS({ return other === this || this.isDescendant(other); }; XMLNode2.prototype.isDescendant = function(node) { - var child, isDescendantChild, j2, len, ref2; + var child, isDescendantChild, j3, len, ref2; ref2 = this.children; - for (j2 = 0, len = ref2.length; j2 < len; j2++) { - child = ref2[j2]; + for (j3 = 0, len = ref2.length; j3 < len; j3++) { + child = ref2[j3]; if (node === child) { return true; } @@ -39979,11 +40253,11 @@ var require_XMLNode = __commonJS({ } }; XMLNode2.prototype.foreachTreeNode = function(node, func) { - var child, j2, len, ref2, res; + var child, j3, len, ref2, res; node || (node = this.document()); ref2 = node.children; - for (j2 = 0, len = ref2.length; j2 < len; j2++) { - child = ref2[j2]; + for (j3 = 0, len = ref2.length; j3 < len; j3++) { + child = ref2[j3]; if (res = func(child)) { return res; } else { @@ -40307,132 +40581,132 @@ var require_XMLWriterBase = __commonJS({ } }; XMLWriterBase2.prototype.attribute = function(att, options, level) { - var r2; + var r3; this.openAttribute(att, options, level); - r2 = " " + att.name + '="' + att.value + '"'; + r3 = " " + att.name + '="' + att.value + '"'; this.closeAttribute(att, options, level); - return r2; + return r3; }; XMLWriterBase2.prototype.cdata = function(node, options, level) { - var r2; + var r3; this.openNode(node, options, level); options.state = WriterState.OpenTag; - r2 = this.indent(node, options, level) + "" + this.endline(node, options, level); + r3 += "]]>" + this.endline(node, options, level); options.state = WriterState.None; this.closeNode(node, options, level); - return r2; + return r3; }; XMLWriterBase2.prototype.comment = function(node, options, level) { - var r2; + var r3; this.openNode(node, options, level); options.state = WriterState.OpenTag; - r2 = this.indent(node, options, level) + "" + this.endline(node, options, level); + r3 += " -->" + this.endline(node, options, level); options.state = WriterState.None; this.closeNode(node, options, level); - return r2; + return r3; }; XMLWriterBase2.prototype.declaration = function(node, options, level) { - var r2; + var r3; this.openNode(node, options, level); options.state = WriterState.OpenTag; - r2 = this.indent(node, options, level) + ""; - r2 += this.endline(node, options, level); + r3 += options.spaceBeforeSlash + "?>"; + r3 += this.endline(node, options, level); options.state = WriterState.None; this.closeNode(node, options, level); - return r2; + return r3; }; XMLWriterBase2.prototype.docType = function(node, options, level) { - var child, i2, len, r2, ref; + var child, i3, len, r3, ref; level || (level = 0); this.openNode(node, options, level); options.state = WriterState.OpenTag; - r2 = this.indent(node, options, level); - r2 += " 0) { - r2 += " ["; - r2 += this.endline(node, options, level); + r3 += " ["; + r3 += this.endline(node, options, level); options.state = WriterState.InsideTag; ref = node.children; - for (i2 = 0, len = ref.length; i2 < len; i2++) { - child = ref[i2]; - r2 += this.writeChildNode(child, options, level + 1); + for (i3 = 0, len = ref.length; i3 < len; i3++) { + child = ref[i3]; + r3 += this.writeChildNode(child, options, level + 1); } options.state = WriterState.CloseTag; - r2 += "]"; + r3 += "]"; } options.state = WriterState.CloseTag; - r2 += options.spaceBeforeSlash + ">"; - r2 += this.endline(node, options, level); + r3 += options.spaceBeforeSlash + ">"; + r3 += this.endline(node, options, level); options.state = WriterState.None; this.closeNode(node, options, level); - return r2; + return r3; }; XMLWriterBase2.prototype.element = function(node, options, level) { - var att, child, childNodeCount, firstChildNode, i2, j2, len, len1, name2, prettySuppressed, r2, ref, ref1, ref2; + var att, child, childNodeCount, firstChildNode, i3, j3, len, len1, name2, prettySuppressed, r3, ref, ref1, ref2; level || (level = 0); prettySuppressed = false; - r2 = ""; + r3 = ""; this.openNode(node, options, level); options.state = WriterState.OpenTag; - r2 += this.indent(node, options, level) + "<" + node.name; + r3 += this.indent(node, options, level) + "<" + node.name; ref = node.attribs; for (name2 in ref) { if (!hasProp.call(ref, name2)) continue; att = ref[name2]; - r2 += this.attribute(att, options, level); + r3 += this.attribute(att, options, level); } childNodeCount = node.children.length; firstChildNode = childNodeCount === 0 ? null : node.children[0]; - if (childNodeCount === 0 || node.children.every(function(e2) { - return (e2.type === NodeType.Text || e2.type === NodeType.Raw) && e2.value === ""; + if (childNodeCount === 0 || node.children.every(function(e3) { + return (e3.type === NodeType.Text || e3.type === NodeType.Raw) && e3.value === ""; })) { if (options.allowEmpty) { - r2 += ">"; + r3 += ">"; options.state = WriterState.CloseTag; - r2 += "" + this.endline(node, options, level); + r3 += "" + this.endline(node, options, level); } else { options.state = WriterState.CloseTag; - r2 += options.spaceBeforeSlash + "/>" + this.endline(node, options, level); + r3 += options.spaceBeforeSlash + "/>" + this.endline(node, options, level); } } else if (options.pretty && childNodeCount === 1 && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw) && firstChildNode.value != null) { - r2 += ">"; + r3 += ">"; options.state = WriterState.InsideTag; options.suppressPrettyCount++; prettySuppressed = true; - r2 += this.writeChildNode(firstChildNode, options, level + 1); + r3 += this.writeChildNode(firstChildNode, options, level + 1); options.suppressPrettyCount--; prettySuppressed = false; options.state = WriterState.CloseTag; - r2 += "" + this.endline(node, options, level); + r3 += "" + this.endline(node, options, level); } else { if (options.dontPrettyTextNodes) { ref1 = node.children; - for (i2 = 0, len = ref1.length; i2 < len; i2++) { - child = ref1[i2]; + for (i3 = 0, len = ref1.length; i3 < len; i3++) { + child = ref1[i3]; if ((child.type === NodeType.Text || child.type === NodeType.Raw) && child.value != null) { options.suppressPrettyCount++; prettySuppressed = true; @@ -40440,23 +40714,23 @@ var require_XMLWriterBase = __commonJS({ } } } - r2 += ">" + this.endline(node, options, level); + r3 += ">" + this.endline(node, options, level); options.state = WriterState.InsideTag; ref2 = node.children; - for (j2 = 0, len1 = ref2.length; j2 < len1; j2++) { - child = ref2[j2]; - r2 += this.writeChildNode(child, options, level + 1); + for (j3 = 0, len1 = ref2.length; j3 < len1; j3++) { + child = ref2[j3]; + r3 += this.writeChildNode(child, options, level + 1); } options.state = WriterState.CloseTag; - r2 += this.indent(node, options, level) + ""; + r3 += this.indent(node, options, level) + ""; if (prettySuppressed) { options.suppressPrettyCount--; } - r2 += this.endline(node, options, level); + r3 += this.endline(node, options, level); options.state = WriterState.None; } this.closeNode(node, options, level); - return r2; + return r3; }; XMLWriterBase2.prototype.writeChildNode = function(node, options, level) { switch (node.type) { @@ -40491,127 +40765,127 @@ var require_XMLWriterBase = __commonJS({ } }; XMLWriterBase2.prototype.processingInstruction = function(node, options, level) { - var r2; + var r3; this.openNode(node, options, level); options.state = WriterState.OpenTag; - r2 = this.indent(node, options, level) + ""; - r2 += this.endline(node, options, level); + r3 += options.spaceBeforeSlash + "?>"; + r3 += this.endline(node, options, level); options.state = WriterState.None; this.closeNode(node, options, level); - return r2; + return r3; }; XMLWriterBase2.prototype.raw = function(node, options, level) { - var r2; + var r3; this.openNode(node, options, level); options.state = WriterState.OpenTag; - r2 = this.indent(node, options, level); + r3 = this.indent(node, options, level); options.state = WriterState.InsideTag; - r2 += node.value; + r3 += node.value; options.state = WriterState.CloseTag; - r2 += this.endline(node, options, level); + r3 += this.endline(node, options, level); options.state = WriterState.None; this.closeNode(node, options, level); - return r2; + return r3; }; XMLWriterBase2.prototype.text = function(node, options, level) { - var r2; + var r3; this.openNode(node, options, level); options.state = WriterState.OpenTag; - r2 = this.indent(node, options, level); + r3 = this.indent(node, options, level); options.state = WriterState.InsideTag; - r2 += node.value; + r3 += node.value; options.state = WriterState.CloseTag; - r2 += this.endline(node, options, level); + r3 += this.endline(node, options, level); options.state = WriterState.None; this.closeNode(node, options, level); - return r2; + return r3; }; XMLWriterBase2.prototype.dtdAttList = function(node, options, level) { - var r2; + var r3; this.openNode(node, options, level); options.state = WriterState.OpenTag; - r2 = this.indent(node, options, level) + "" + this.endline(node, options, level); + r3 += options.spaceBeforeSlash + ">" + this.endline(node, options, level); options.state = WriterState.None; this.closeNode(node, options, level); - return r2; + return r3; }; XMLWriterBase2.prototype.dtdElement = function(node, options, level) { - var r2; + var r3; this.openNode(node, options, level); options.state = WriterState.OpenTag; - r2 = this.indent(node, options, level) + "" + this.endline(node, options, level); + r3 += options.spaceBeforeSlash + ">" + this.endline(node, options, level); options.state = WriterState.None; this.closeNode(node, options, level); - return r2; + return r3; }; XMLWriterBase2.prototype.dtdEntity = function(node, options, level) { - var r2; + var r3; this.openNode(node, options, level); options.state = WriterState.OpenTag; - r2 = this.indent(node, options, level) + "" + this.endline(node, options, level); + r3 += options.spaceBeforeSlash + ">" + this.endline(node, options, level); options.state = WriterState.None; this.closeNode(node, options, level); - return r2; + return r3; }; XMLWriterBase2.prototype.dtdNotation = function(node, options, level) { - var r2; + var r3; this.openNode(node, options, level); options.state = WriterState.OpenTag; - r2 = this.indent(node, options, level) + "" + this.endline(node, options, level); + r3 += options.spaceBeforeSlash + ">" + this.endline(node, options, level); options.state = WriterState.None; this.closeNode(node, options, level); - return r2; + return r3; }; XMLWriterBase2.prototype.openNode = function(node, options, level) { }; @@ -40651,18 +40925,18 @@ var require_XMLStringWriter = __commonJS({ XMLStringWriter2.__super__.constructor.call(this, options); } XMLStringWriter2.prototype.document = function(doc, options) { - var child, i2, len, r2, ref; + var child, i3, len, r3, ref; options = this.filterOptions(options); - r2 = ""; + r3 = ""; ref = doc.children; - for (i2 = 0, len = ref.length; i2 < len; i2++) { - child = ref[i2]; - r2 += this.writeChildNode(child, options, 0); + for (i3 = 0, len = ref.length; i3 < len; i3++) { + child = ref[i3]; + r3 += this.writeChildNode(child, options, 0); } - if (options.pretty && r2.slice(-options.newline.length) === options.newline) { - r2 = r2.slice(0, -options.newline.length); + if (options.pretty && r3.slice(-options.newline.length) === options.newline) { + r3 = r3.slice(0, -options.newline.length); } - return r2; + return r3; }; return XMLStringWriter2; }(XMLWriterBase); @@ -40714,10 +40988,10 @@ var require_XMLDocument = __commonJS({ }); Object.defineProperty(XMLDocument2.prototype, "doctype", { get: function() { - var child, i2, len, ref; + var child, i3, len, ref; ref = this.children; - for (i2 = 0, len = ref.length; i2 < len; i2++) { - child = ref[i2]; + for (i3 = 0, len = ref.length; i3 < len; i3++) { + child = ref[i3]; if (child.type === NodeType.DocType) { return child; } @@ -40931,7 +41205,7 @@ var require_XMLDocumentCB = __commonJS({ this.root = null; } XMLDocumentCB2.prototype.createChildNode = function(node) { - var att, attName, attributes, child, i2, len, ref1, ref2; + var att, attName, attributes, child, i3, len, ref1, ref2; switch (node.type) { case NodeType.CData: this.cdata(node.value); @@ -40966,8 +41240,8 @@ var require_XMLDocumentCB = __commonJS({ throw new Error("This XML node type is not supported in a JS object: " + node.constructor.name); } ref2 = node.children; - for (i2 = 0, len = ref2.length; i2 < len; i2++) { - child = ref2[i2]; + for (i3 = 0, len = ref2.length; i3 < len; i3++) { + child = ref2[i3]; this.createChildNode(child); if (child.type === NodeType.Element) { this.up(); @@ -41005,7 +41279,7 @@ var require_XMLDocumentCB = __commonJS({ return this; }; XMLDocumentCB2.prototype.element = function(name2, attributes, text) { - var child, i2, len, oldValidationFlag, ref1, root; + var child, i3, len, oldValidationFlag, ref1, root; if (this.currentNode && this.currentNode.type === NodeType.DocType) { this.dtdElement.apply(this, arguments); } else { @@ -41016,8 +41290,8 @@ var require_XMLDocumentCB = __commonJS({ root.element(name2); this.options.noValidation = oldValidationFlag; ref1 = root.children; - for (i2 = 0, len = ref1.length; i2 < len; i2++) { - child = ref1[i2]; + for (i3 = 0, len = ref1.length; i3 < len; i3++) { + child = ref1[i3]; this.createChildNode(child); if (child.type === NodeType.Element) { this.up(); @@ -41085,7 +41359,7 @@ var require_XMLDocumentCB = __commonJS({ return this; }; XMLDocumentCB2.prototype.instruction = function(target, value) { - var i2, insTarget, insValue, len, node; + var i3, insTarget, insValue, len, node; this.openCurrent(); if (target != null) { target = getValue(target); @@ -41094,8 +41368,8 @@ var require_XMLDocumentCB = __commonJS({ value = getValue(value); } if (Array.isArray(target)) { - for (i2 = 0, len = target.length; i2 < len; i2++) { - insTarget = target[i2]; + for (i3 = 0, len = target.length; i3 < len; i3++) { + insTarget = target[i3]; this.instruction(insTarget); } } else if (isObject2(target)) { @@ -41382,17 +41656,17 @@ var require_XMLStreamWriter = __commonJS({ } }; XMLStreamWriter2.prototype.document = function(doc, options) { - var child, i2, j2, k2, len, len1, ref, ref1, results; + var child, i3, j3, k3, len, len1, ref, ref1, results; ref = doc.children; - for (i2 = j2 = 0, len = ref.length; j2 < len; i2 = ++j2) { - child = ref[i2]; - child.isLastRootNode = i2 === doc.children.length - 1; + for (i3 = j3 = 0, len = ref.length; j3 < len; i3 = ++j3) { + child = ref[i3]; + child.isLastRootNode = i3 === doc.children.length - 1; } options = this.filterOptions(options); ref1 = doc.children; results = []; - for (k2 = 0, len1 = ref1.length; k2 < len1; k2++) { - child = ref1[k2]; + for (k3 = 0, len1 = ref1.length; k3 < len1; k3++) { + child = ref1[k3]; results.push(this.writeChildNode(child, options, 0)); } return results; @@ -41410,7 +41684,7 @@ var require_XMLStreamWriter = __commonJS({ return this.stream.write(XMLStreamWriter2.__super__.declaration.call(this, node, options, level)); }; XMLStreamWriter2.prototype.docType = function(node, options, level) { - var child, j2, len, ref; + var child, j3, len, ref; level || (level = 0); this.openNode(node, options, level); options.state = WriterState.OpenTag; @@ -41426,8 +41700,8 @@ var require_XMLStreamWriter = __commonJS({ this.stream.write(this.endline(node, options, level)); options.state = WriterState.InsideTag; ref = node.children; - for (j2 = 0, len = ref.length; j2 < len; j2++) { - child = ref[j2]; + for (j3 = 0, len = ref.length; j3 < len; j3++) { + child = ref[j3]; this.writeChildNode(child, options, level + 1); } options.state = WriterState.CloseTag; @@ -41440,7 +41714,7 @@ var require_XMLStreamWriter = __commonJS({ return this.closeNode(node, options, level); }; XMLStreamWriter2.prototype.element = function(node, options, level) { - var att, child, childNodeCount, firstChildNode, j2, len, name2, prettySuppressed, ref, ref1; + var att, child, childNodeCount, firstChildNode, j3, len, name2, prettySuppressed, ref, ref1; level || (level = 0); this.openNode(node, options, level); options.state = WriterState.OpenTag; @@ -41454,8 +41728,8 @@ var require_XMLStreamWriter = __commonJS({ } childNodeCount = node.children.length; firstChildNode = childNodeCount === 0 ? null : node.children[0]; - if (childNodeCount === 0 || node.children.every(function(e2) { - return (e2.type === NodeType.Text || e2.type === NodeType.Raw) && e2.value === ""; + if (childNodeCount === 0 || node.children.every(function(e3) { + return (e3.type === NodeType.Text || e3.type === NodeType.Raw) && e3.value === ""; })) { if (options.allowEmpty) { this.stream.write(">"); @@ -41479,8 +41753,8 @@ var require_XMLStreamWriter = __commonJS({ this.stream.write(">" + this.endline(node, options, level)); options.state = WriterState.InsideTag; ref1 = node.children; - for (j2 = 0, len = ref1.length; j2 < len; j2++) { - child = ref1[j2]; + for (j3 = 0, len = ref1.length; j3 < len; j3++) { + child = ref1[j3]; this.writeChildNode(child, options, level + 1); } options.state = WriterState.CloseTag; @@ -41616,7 +41890,7 @@ var require_builder = __commonJS({ } else { rootName = this.options.rootName; } - render = function(_this) { + render = /* @__PURE__ */ function(_this) { return function(element, obj) { var attr, child, entry, index, key, value; if (typeof obj !== "object") { @@ -41758,7 +42032,7 @@ var require_sax = __commonJS({ parser.tag = parser.error = null; parser.strict = !!strict; parser.noscript = !!(strict || parser.opt.noscript); - parser.state = S2.BEGIN; + parser.state = S3.BEGIN; parser.strictEntities = parser.opt.strictEntities; parser.ENTITIES = parser.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES); parser.attribList = []; @@ -41772,30 +42046,30 @@ var require_sax = __commonJS({ emit(parser, "onready"); } if (!Object.create) { - Object.create = function(o2) { + Object.create = function(o3) { function F2() { } - F2.prototype = o2; + F2.prototype = o3; var newf = new F2(); return newf; }; } if (!Object.keys) { - Object.keys = function(o2) { - var a2 = []; - for (var i2 in o2) - if (o2.hasOwnProperty(i2)) - a2.push(i2); - return a2; + Object.keys = function(o3) { + var a3 = []; + for (var i3 in o3) + if (o3.hasOwnProperty(i3)) + a3.push(i3); + return a3; }; } function checkBufferLength(parser) { var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10); var maxActual = 0; - for (var i2 = 0, l2 = buffers.length; i2 < l2; i2++) { - var len = parser[buffers[i2]].length; + for (var i3 = 0, l3 = buffers.length; i3 < l3; i3++) { + var len = parser[buffers[i3]].length; if (len > maxAllowed) { - switch (buffers[i2]) { + switch (buffers[i3]) { case "textNode": closeText(parser); break; @@ -41808,17 +42082,17 @@ var require_sax = __commonJS({ parser.script = ""; break; default: - error(parser, "Max buffer length exceeded: " + buffers[i2]); + error(parser, "Max buffer length exceeded: " + buffers[i3]); } } maxActual = Math.max(maxActual, len); } - var m3 = sax.MAX_BUFFER_LENGTH - maxActual; - parser.bufferCheckPosition = m3 + parser.position; + var m4 = sax.MAX_BUFFER_LENGTH - maxActual; + parser.bufferCheckPosition = m4 + parser.position; } function clearBuffers(parser) { - for (var i2 = 0, l2 = buffers.length; i2 < l2; i2++) { - parser[buffers[i2]] = ""; + for (var i3 = 0, l3 = buffers.length; i3 < l3; i3++) { + parser[buffers[i3]] = ""; } } function flushBuffers(parser) { @@ -41886,13 +42160,13 @@ var require_sax = __commonJS({ get: function() { return me2._parser["on" + ev]; }, - set: function(h2) { - if (!h2) { + set: function(h3) { + if (!h3) { me2.removeAllListeners(ev); - me2._parser["on" + ev] = h2; - return h2; + me2._parser["on" + ev] = h3; + return h3; } - me2.on(ev, h2); + me2.on(ev, h3); }, enumerable: true, configurable: false @@ -41943,94 +42217,94 @@ var require_sax = __commonJS({ var nameBody = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/; var entityStart = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/; var entityBody = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/; - function isWhitespace(c2) { - return c2 === " " || c2 === "\n" || c2 === "\r" || c2 === " "; + function isWhitespace(c3) { + return c3 === " " || c3 === "\n" || c3 === "\r" || c3 === " "; } - function isQuote(c2) { - return c2 === '"' || c2 === "'"; + function isQuote(c3) { + return c3 === '"' || c3 === "'"; } - function isAttribEnd(c2) { - return c2 === ">" || isWhitespace(c2); + function isAttribEnd(c3) { + return c3 === ">" || isWhitespace(c3); } - function isMatch(regex, c2) { - return regex.test(c2); + function isMatch(regex, c3) { + return regex.test(c3); } - function notMatch(regex, c2) { - return !isMatch(regex, c2); + function notMatch(regex, c3) { + return !isMatch(regex, c3); } - var S2 = 0; + var S3 = 0; sax.STATE = { - BEGIN: S2++, + BEGIN: S3++, // leading byte order mark or whitespace - BEGIN_WHITESPACE: S2++, + BEGIN_WHITESPACE: S3++, // leading whitespace - TEXT: S2++, + TEXT: S3++, // general stuff - TEXT_ENTITY: S2++, + TEXT_ENTITY: S3++, // & and such. - OPEN_WAKA: S2++, + OPEN_WAKA: S3++, // < - SGML_DECL: S2++, + SGML_DECL: S3++, // - SCRIPT: S2++, + SCRIPT: S3++, //