aws-ec2-instance-running-scheduler 3.1.4 → 3.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12671,7 +12671,7 @@ var require_axios = __commonJS({
12671
12671
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
12672
12672
  })();
12673
12673
  var isContextDefined = (context) => !isUndefined(context) && context !== _global;
12674
- function merge() {
12674
+ function merge(...objs) {
12675
12675
  const {
12676
12676
  caseless,
12677
12677
  skipUndefined
@@ -12682,8 +12682,9 @@ var require_axios = __commonJS({
12682
12682
  return;
12683
12683
  }
12684
12684
  const targetKey = caseless && findKey(result, key) || key;
12685
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
12686
- result[targetKey] = merge(result[targetKey], val);
12685
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
12686
+ if (isPlainObject(existing) && isPlainObject(val)) {
12687
+ result[targetKey] = merge(existing, val);
12687
12688
  } else if (isPlainObject(val)) {
12688
12689
  result[targetKey] = merge({}, val);
12689
12690
  } else if (isArray(val)) {
@@ -12692,8 +12693,8 @@ var require_axios = __commonJS({
12692
12693
  result[targetKey] = val;
12693
12694
  }
12694
12695
  };
12695
- for (let i = 0, l = arguments.length; i < l; i++) {
12696
- arguments[i] && forEach(arguments[i], assignValue);
12696
+ for (let i = 0, l = objs.length; i < l; i++) {
12697
+ objs[i] && forEach(objs[i], assignValue);
12697
12698
  }
12698
12699
  return result;
12699
12700
  }
@@ -12703,6 +12704,9 @@ var require_axios = __commonJS({
12703
12704
  forEach(b, (val, key) => {
12704
12705
  if (thisArg && isFunction$1(val)) {
12705
12706
  Object.defineProperty(a, key, {
12707
+ // Null-proto descriptor so a polluted Object.prototype.get cannot
12708
+ // hijack defineProperty's accessor-vs-data resolution.
12709
+ __proto__: null,
12706
12710
  value: bind(val, thisArg),
12707
12711
  writable: true,
12708
12712
  enumerable: true,
@@ -12710,6 +12714,7 @@ var require_axios = __commonJS({
12710
12714
  });
12711
12715
  } else {
12712
12716
  Object.defineProperty(a, key, {
12717
+ __proto__: null,
12713
12718
  value: val,
12714
12719
  writable: true,
12715
12720
  enumerable: true,
@@ -12730,12 +12735,14 @@ var require_axios = __commonJS({
12730
12735
  var inherits = (constructor, superConstructor, props, descriptors) => {
12731
12736
  constructor.prototype = Object.create(superConstructor.prototype, descriptors);
12732
12737
  Object.defineProperty(constructor.prototype, "constructor", {
12738
+ __proto__: null,
12733
12739
  value: constructor,
12734
12740
  writable: true,
12735
12741
  enumerable: false,
12736
12742
  configurable: true
12737
12743
  });
12738
12744
  Object.defineProperty(constructor, "super", {
12745
+ __proto__: null,
12739
12746
  value: superConstructor.prototype
12740
12747
  });
12741
12748
  props && Object.assign(constructor.prototype, props);
@@ -12826,7 +12833,7 @@ var require_axios = __commonJS({
12826
12833
  };
12827
12834
  var freezeMethods = (obj) => {
12828
12835
  reduceDescriptors(obj, (descriptor, name) => {
12829
- if (isFunction$1(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
12836
+ if (isFunction$1(obj) && ["arguments", "caller", "callee"].includes(name)) {
12830
12837
  return false;
12831
12838
  }
12832
12839
  const value = obj[name];
@@ -12971,6 +12978,337 @@ var require_axios = __commonJS({
12971
12978
  asap,
12972
12979
  isIterable
12973
12980
  };
12981
+ var ignoreDuplicateOf = utils$1.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]);
12982
+ var parseHeaders = (rawHeaders) => {
12983
+ const parsed = {};
12984
+ let key;
12985
+ let val;
12986
+ let i;
12987
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
12988
+ i = line.indexOf(":");
12989
+ key = line.substring(0, i).trim().toLowerCase();
12990
+ val = line.substring(i + 1).trim();
12991
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12992
+ return;
12993
+ }
12994
+ if (key === "set-cookie") {
12995
+ if (parsed[key]) {
12996
+ parsed[key].push(val);
12997
+ } else {
12998
+ parsed[key] = [val];
12999
+ }
13000
+ } else {
13001
+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
13002
+ }
13003
+ });
13004
+ return parsed;
13005
+ };
13006
+ var $internals = /* @__PURE__ */ Symbol("internals");
13007
+ var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
13008
+ function trimSPorHTAB(str) {
13009
+ let start = 0;
13010
+ let end = str.length;
13011
+ while (start < end) {
13012
+ const code = str.charCodeAt(start);
13013
+ if (code !== 9 && code !== 32) {
13014
+ break;
13015
+ }
13016
+ start += 1;
13017
+ }
13018
+ while (end > start) {
13019
+ const code = str.charCodeAt(end - 1);
13020
+ if (code !== 9 && code !== 32) {
13021
+ break;
13022
+ }
13023
+ end -= 1;
13024
+ }
13025
+ return start === 0 && end === str.length ? str : str.slice(start, end);
13026
+ }
13027
+ function normalizeHeader(header) {
13028
+ return header && String(header).trim().toLowerCase();
13029
+ }
13030
+ function sanitizeHeaderValue(str) {
13031
+ return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
13032
+ }
13033
+ function normalizeValue(value) {
13034
+ if (value === false || value == null) {
13035
+ return value;
13036
+ }
13037
+ return utils$1.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
13038
+ }
13039
+ function parseTokens(str) {
13040
+ const tokens = /* @__PURE__ */ Object.create(null);
13041
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
13042
+ let match;
13043
+ while (match = tokensRE.exec(str)) {
13044
+ tokens[match[1]] = match[2];
13045
+ }
13046
+ return tokens;
13047
+ }
13048
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
13049
+ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
13050
+ if (utils$1.isFunction(filter)) {
13051
+ return filter.call(this, value, header);
13052
+ }
13053
+ if (isHeaderNameFilter) {
13054
+ value = header;
13055
+ }
13056
+ if (!utils$1.isString(value)) return;
13057
+ if (utils$1.isString(filter)) {
13058
+ return value.indexOf(filter) !== -1;
13059
+ }
13060
+ if (utils$1.isRegExp(filter)) {
13061
+ return filter.test(value);
13062
+ }
13063
+ }
13064
+ function formatHeader(header) {
13065
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
13066
+ return char.toUpperCase() + str;
13067
+ });
13068
+ }
13069
+ function buildAccessors(obj, header) {
13070
+ const accessorName = utils$1.toCamelCase(" " + header);
13071
+ ["get", "set", "has"].forEach((methodName) => {
13072
+ Object.defineProperty(obj, methodName + accessorName, {
13073
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
13074
+ // this data descriptor into an accessor descriptor on the way in.
13075
+ __proto__: null,
13076
+ value: function(arg1, arg2, arg3) {
13077
+ return this[methodName].call(this, header, arg1, arg2, arg3);
13078
+ },
13079
+ configurable: true
13080
+ });
13081
+ });
13082
+ }
13083
+ var AxiosHeaders = class {
13084
+ constructor(headers) {
13085
+ headers && this.set(headers);
13086
+ }
13087
+ set(header, valueOrRewrite, rewrite) {
13088
+ const self2 = this;
13089
+ function setHeader(_value, _header, _rewrite) {
13090
+ const lHeader = normalizeHeader(_header);
13091
+ if (!lHeader) {
13092
+ throw new Error("header name must be a non-empty string");
13093
+ }
13094
+ const key = utils$1.findKey(self2, lHeader);
13095
+ if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
13096
+ self2[key || _header] = normalizeValue(_value);
13097
+ }
13098
+ }
13099
+ const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
13100
+ if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
13101
+ setHeaders(header, valueOrRewrite);
13102
+ } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
13103
+ setHeaders(parseHeaders(header), valueOrRewrite);
13104
+ } else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
13105
+ let obj = {}, dest, key;
13106
+ for (const entry of header) {
13107
+ if (!utils$1.isArray(entry)) {
13108
+ throw TypeError("Object iterator must return a key-value pair");
13109
+ }
13110
+ obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
13111
+ }
13112
+ setHeaders(obj, valueOrRewrite);
13113
+ } else {
13114
+ header != null && setHeader(valueOrRewrite, header, rewrite);
13115
+ }
13116
+ return this;
13117
+ }
13118
+ get(header, parser) {
13119
+ header = normalizeHeader(header);
13120
+ if (header) {
13121
+ const key = utils$1.findKey(this, header);
13122
+ if (key) {
13123
+ const value = this[key];
13124
+ if (!parser) {
13125
+ return value;
13126
+ }
13127
+ if (parser === true) {
13128
+ return parseTokens(value);
13129
+ }
13130
+ if (utils$1.isFunction(parser)) {
13131
+ return parser.call(this, value, key);
13132
+ }
13133
+ if (utils$1.isRegExp(parser)) {
13134
+ return parser.exec(value);
13135
+ }
13136
+ throw new TypeError("parser must be boolean|regexp|function");
13137
+ }
13138
+ }
13139
+ }
13140
+ has(header, matcher) {
13141
+ header = normalizeHeader(header);
13142
+ if (header) {
13143
+ const key = utils$1.findKey(this, header);
13144
+ return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
13145
+ }
13146
+ return false;
13147
+ }
13148
+ delete(header, matcher) {
13149
+ const self2 = this;
13150
+ let deleted = false;
13151
+ function deleteHeader(_header) {
13152
+ _header = normalizeHeader(_header);
13153
+ if (_header) {
13154
+ const key = utils$1.findKey(self2, _header);
13155
+ if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
13156
+ delete self2[key];
13157
+ deleted = true;
13158
+ }
13159
+ }
13160
+ }
13161
+ if (utils$1.isArray(header)) {
13162
+ header.forEach(deleteHeader);
13163
+ } else {
13164
+ deleteHeader(header);
13165
+ }
13166
+ return deleted;
13167
+ }
13168
+ clear(matcher) {
13169
+ const keys = Object.keys(this);
13170
+ let i = keys.length;
13171
+ let deleted = false;
13172
+ while (i--) {
13173
+ const key = keys[i];
13174
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
13175
+ delete this[key];
13176
+ deleted = true;
13177
+ }
13178
+ }
13179
+ return deleted;
13180
+ }
13181
+ normalize(format) {
13182
+ const self2 = this;
13183
+ const headers = {};
13184
+ utils$1.forEach(this, (value, header) => {
13185
+ const key = utils$1.findKey(headers, header);
13186
+ if (key) {
13187
+ self2[key] = normalizeValue(value);
13188
+ delete self2[header];
13189
+ return;
13190
+ }
13191
+ const normalized = format ? formatHeader(header) : String(header).trim();
13192
+ if (normalized !== header) {
13193
+ delete self2[header];
13194
+ }
13195
+ self2[normalized] = normalizeValue(value);
13196
+ headers[normalized] = true;
13197
+ });
13198
+ return this;
13199
+ }
13200
+ concat(...targets) {
13201
+ return this.constructor.concat(this, ...targets);
13202
+ }
13203
+ toJSON(asStrings) {
13204
+ const obj = /* @__PURE__ */ Object.create(null);
13205
+ utils$1.forEach(this, (value, header) => {
13206
+ value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
13207
+ });
13208
+ return obj;
13209
+ }
13210
+ [Symbol.iterator]() {
13211
+ return Object.entries(this.toJSON())[Symbol.iterator]();
13212
+ }
13213
+ toString() {
13214
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
13215
+ }
13216
+ getSetCookie() {
13217
+ return this.get("set-cookie") || [];
13218
+ }
13219
+ get [Symbol.toStringTag]() {
13220
+ return "AxiosHeaders";
13221
+ }
13222
+ static from(thing) {
13223
+ return thing instanceof this ? thing : new this(thing);
13224
+ }
13225
+ static concat(first, ...targets) {
13226
+ const computed = new this(first);
13227
+ targets.forEach((target) => computed.set(target));
13228
+ return computed;
13229
+ }
13230
+ static accessor(header) {
13231
+ const internals = this[$internals] = this[$internals] = {
13232
+ accessors: {}
13233
+ };
13234
+ const accessors = internals.accessors;
13235
+ const prototype2 = this.prototype;
13236
+ function defineAccessor(_header) {
13237
+ const lHeader = normalizeHeader(_header);
13238
+ if (!accessors[lHeader]) {
13239
+ buildAccessors(prototype2, _header);
13240
+ accessors[lHeader] = true;
13241
+ }
13242
+ }
13243
+ utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
13244
+ return this;
13245
+ }
13246
+ };
13247
+ AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
13248
+ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({
13249
+ value
13250
+ }, key) => {
13251
+ let mapped = key[0].toUpperCase() + key.slice(1);
13252
+ return {
13253
+ get: () => value,
13254
+ set(headerValue) {
13255
+ this[mapped] = headerValue;
13256
+ }
13257
+ };
13258
+ });
13259
+ utils$1.freezeMethods(AxiosHeaders);
13260
+ var REDACTED = "[REDACTED ****]";
13261
+ function hasOwnOrPrototypeToJSON(source) {
13262
+ if (utils$1.hasOwnProp(source, "toJSON")) {
13263
+ return true;
13264
+ }
13265
+ let prototype2 = Object.getPrototypeOf(source);
13266
+ while (prototype2 && prototype2 !== Object.prototype) {
13267
+ if (utils$1.hasOwnProp(prototype2, "toJSON")) {
13268
+ return true;
13269
+ }
13270
+ prototype2 = Object.getPrototypeOf(prototype2);
13271
+ }
13272
+ return false;
13273
+ }
13274
+ function redactConfig(config, redactKeys) {
13275
+ const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
13276
+ const seen = [];
13277
+ const visit = (source) => {
13278
+ if (source === null || typeof source !== "object") return source;
13279
+ if (utils$1.isBuffer(source)) return source;
13280
+ if (seen.indexOf(source) !== -1) return void 0;
13281
+ if (source instanceof AxiosHeaders) {
13282
+ source = source.toJSON();
13283
+ }
13284
+ seen.push(source);
13285
+ let result;
13286
+ if (utils$1.isArray(source)) {
13287
+ result = [];
13288
+ source.forEach((v, i) => {
13289
+ const reducedValue = visit(v);
13290
+ if (!utils$1.isUndefined(reducedValue)) {
13291
+ result[i] = reducedValue;
13292
+ }
13293
+ });
13294
+ } else {
13295
+ if (!utils$1.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
13296
+ seen.pop();
13297
+ return source;
13298
+ }
13299
+ result = /* @__PURE__ */ Object.create(null);
13300
+ for (const [key, value] of Object.entries(source)) {
13301
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
13302
+ if (!utils$1.isUndefined(reducedValue)) {
13303
+ result[key] = reducedValue;
13304
+ }
13305
+ }
13306
+ }
13307
+ seen.pop();
13308
+ return result;
13309
+ };
13310
+ return visit(config);
13311
+ }
12974
13312
  var AxiosError = class _AxiosError extends Error {
12975
13313
  static from(error, code, config, request, response, customProps) {
12976
13314
  const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
@@ -12996,6 +13334,9 @@ var require_axios = __commonJS({
12996
13334
  constructor(message, code, config, request, response) {
12997
13335
  super(message);
12998
13336
  Object.defineProperty(this, "message", {
13337
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
13338
+ // this data descriptor into an accessor descriptor on the way in.
13339
+ __proto__: null,
12999
13340
  value: message,
13000
13341
  enumerable: true,
13001
13342
  writable: true,
@@ -13012,6 +13353,9 @@ var require_axios = __commonJS({
13012
13353
  }
13013
13354
  }
13014
13355
  toJSON() {
13356
+ const config = this.config;
13357
+ const redactKeys = config && utils$1.hasOwnProp(config, "redact") ? config.redact : void 0;
13358
+ const serializedConfig = utils$1.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils$1.toJSONObject(config);
13015
13359
  return {
13016
13360
  // Standard
13017
13361
  message: this.message,
@@ -13025,7 +13369,7 @@ var require_axios = __commonJS({
13025
13369
  columnNumber: this.columnNumber,
13026
13370
  stack: this.stack,
13027
13371
  // Axios
13028
- config: utils$1.toJSONObject(this.config),
13372
+ config: serializedConfig,
13029
13373
  code: this.code,
13030
13374
  status: this.status
13031
13375
  };
@@ -13035,6 +13379,7 @@ var require_axios = __commonJS({
13035
13379
  AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
13036
13380
  AxiosError.ECONNABORTED = "ECONNABORTED";
13037
13381
  AxiosError.ETIMEDOUT = "ETIMEDOUT";
13382
+ AxiosError.ECONNREFUSED = "ECONNREFUSED";
13038
13383
  AxiosError.ERR_NETWORK = "ERR_NETWORK";
13039
13384
  AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
13040
13385
  AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
@@ -13419,366 +13764,90 @@ var require_axios = __commonJS({
13419
13764
  if (isObjectPayload && utils$1.isHTMLForm(data)) {
13420
13765
  data = new FormData(data);
13421
13766
  }
13422
- const isFormData2 = utils$1.isFormData(data);
13423
- if (isFormData2) {
13424
- return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
13425
- }
13426
- if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
13427
- return data;
13428
- }
13429
- if (utils$1.isArrayBufferView(data)) {
13430
- return data.buffer;
13431
- }
13432
- if (utils$1.isURLSearchParams(data)) {
13433
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
13434
- return data.toString();
13435
- }
13436
- let isFileList2;
13437
- if (isObjectPayload) {
13438
- const formSerializer = own(this, "formSerializer");
13439
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
13440
- return toURLEncodedForm(data, formSerializer).toString();
13441
- }
13442
- if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
13443
- const env = own(this, "env");
13444
- const _FormData = env && env.FormData;
13445
- return toFormData(isFileList2 ? {
13446
- "files[]": data
13447
- } : data, _FormData && new _FormData(), formSerializer);
13448
- }
13449
- }
13450
- if (isObjectPayload || hasJSONContentType) {
13451
- headers.setContentType("application/json", false);
13452
- return stringifySafely(data);
13453
- }
13454
- return data;
13455
- }],
13456
- transformResponse: [function transformResponse(data) {
13457
- const transitional = own(this, "transitional") || defaults.transitional;
13458
- const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
13459
- const responseType = own(this, "responseType");
13460
- const JSONRequested = responseType === "json";
13461
- if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
13462
- return data;
13463
- }
13464
- if (data && utils$1.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
13465
- const silentJSONParsing = transitional && transitional.silentJSONParsing;
13466
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
13467
- try {
13468
- return JSON.parse(data, own(this, "parseReviver"));
13469
- } catch (e) {
13470
- if (strictJSONParsing) {
13471
- if (e.name === "SyntaxError") {
13472
- throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, "response"));
13473
- }
13474
- throw e;
13475
- }
13476
- }
13477
- }
13478
- return data;
13479
- }],
13480
- /**
13481
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
13482
- * timeout is not created.
13483
- */
13484
- timeout: 0,
13485
- xsrfCookieName: "XSRF-TOKEN",
13486
- xsrfHeaderName: "X-XSRF-TOKEN",
13487
- maxContentLength: -1,
13488
- maxBodyLength: -1,
13489
- env: {
13490
- FormData: platform.classes.FormData,
13491
- Blob: platform.classes.Blob
13492
- },
13493
- validateStatus: function validateStatus(status) {
13494
- return status >= 200 && status < 300;
13495
- },
13496
- headers: {
13497
- common: {
13498
- Accept: "application/json, text/plain, */*",
13499
- "Content-Type": void 0
13500
- }
13501
- }
13502
- };
13503
- utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
13504
- defaults.headers[method] = {};
13505
- });
13506
- var ignoreDuplicateOf = utils$1.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]);
13507
- var parseHeaders = (rawHeaders) => {
13508
- const parsed = {};
13509
- let key;
13510
- let val;
13511
- let i;
13512
- rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
13513
- i = line.indexOf(":");
13514
- key = line.substring(0, i).trim().toLowerCase();
13515
- val = line.substring(i + 1).trim();
13516
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
13517
- return;
13518
- }
13519
- if (key === "set-cookie") {
13520
- if (parsed[key]) {
13521
- parsed[key].push(val);
13522
- } else {
13523
- parsed[key] = [val];
13524
- }
13525
- } else {
13526
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
13527
- }
13528
- });
13529
- return parsed;
13530
- };
13531
- var $internals = /* @__PURE__ */ Symbol("internals");
13532
- var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
13533
- function trimSPorHTAB(str) {
13534
- let start = 0;
13535
- let end = str.length;
13536
- while (start < end) {
13537
- const code = str.charCodeAt(start);
13538
- if (code !== 9 && code !== 32) {
13539
- break;
13540
- }
13541
- start += 1;
13542
- }
13543
- while (end > start) {
13544
- const code = str.charCodeAt(end - 1);
13545
- if (code !== 9 && code !== 32) {
13546
- break;
13547
- }
13548
- end -= 1;
13549
- }
13550
- return start === 0 && end === str.length ? str : str.slice(start, end);
13551
- }
13552
- function normalizeHeader(header) {
13553
- return header && String(header).trim().toLowerCase();
13554
- }
13555
- function sanitizeHeaderValue(str) {
13556
- return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
13557
- }
13558
- function normalizeValue(value) {
13559
- if (value === false || value == null) {
13560
- return value;
13561
- }
13562
- return utils$1.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
13563
- }
13564
- function parseTokens(str) {
13565
- const tokens = /* @__PURE__ */ Object.create(null);
13566
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
13567
- let match;
13568
- while (match = tokensRE.exec(str)) {
13569
- tokens[match[1]] = match[2];
13570
- }
13571
- return tokens;
13572
- }
13573
- var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
13574
- function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
13575
- if (utils$1.isFunction(filter)) {
13576
- return filter.call(this, value, header);
13577
- }
13578
- if (isHeaderNameFilter) {
13579
- value = header;
13580
- }
13581
- if (!utils$1.isString(value)) return;
13582
- if (utils$1.isString(filter)) {
13583
- return value.indexOf(filter) !== -1;
13584
- }
13585
- if (utils$1.isRegExp(filter)) {
13586
- return filter.test(value);
13587
- }
13588
- }
13589
- function formatHeader(header) {
13590
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
13591
- return char.toUpperCase() + str;
13592
- });
13593
- }
13594
- function buildAccessors(obj, header) {
13595
- const accessorName = utils$1.toCamelCase(" " + header);
13596
- ["get", "set", "has"].forEach((methodName) => {
13597
- Object.defineProperty(obj, methodName + accessorName, {
13598
- value: function(arg1, arg2, arg3) {
13599
- return this[methodName].call(this, header, arg1, arg2, arg3);
13600
- },
13601
- configurable: true
13602
- });
13603
- });
13604
- }
13605
- var AxiosHeaders = class {
13606
- constructor(headers) {
13607
- headers && this.set(headers);
13608
- }
13609
- set(header, valueOrRewrite, rewrite) {
13610
- const self2 = this;
13611
- function setHeader(_value, _header, _rewrite) {
13612
- const lHeader = normalizeHeader(_header);
13613
- if (!lHeader) {
13614
- throw new Error("header name must be a non-empty string");
13615
- }
13616
- const key = utils$1.findKey(self2, lHeader);
13617
- if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
13618
- self2[key || _header] = normalizeValue(_value);
13619
- }
13620
- }
13621
- const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
13622
- if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
13623
- setHeaders(header, valueOrRewrite);
13624
- } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
13625
- setHeaders(parseHeaders(header), valueOrRewrite);
13626
- } else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
13627
- let obj = {}, dest, key;
13628
- for (const entry of header) {
13629
- if (!utils$1.isArray(entry)) {
13630
- throw TypeError("Object iterator must return a key-value pair");
13631
- }
13632
- obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
13633
- }
13634
- setHeaders(obj, valueOrRewrite);
13635
- } else {
13636
- header != null && setHeader(valueOrRewrite, header, rewrite);
13637
- }
13638
- return this;
13639
- }
13640
- get(header, parser) {
13641
- header = normalizeHeader(header);
13642
- if (header) {
13643
- const key = utils$1.findKey(this, header);
13644
- if (key) {
13645
- const value = this[key];
13646
- if (!parser) {
13647
- return value;
13648
- }
13649
- if (parser === true) {
13650
- return parseTokens(value);
13651
- }
13652
- if (utils$1.isFunction(parser)) {
13653
- return parser.call(this, value, key);
13654
- }
13655
- if (utils$1.isRegExp(parser)) {
13656
- return parser.exec(value);
13657
- }
13658
- throw new TypeError("parser must be boolean|regexp|function");
13659
- }
13660
- }
13661
- }
13662
- has(header, matcher) {
13663
- header = normalizeHeader(header);
13664
- if (header) {
13665
- const key = utils$1.findKey(this, header);
13666
- return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
13767
+ const isFormData2 = utils$1.isFormData(data);
13768
+ if (isFormData2) {
13769
+ return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
13667
13770
  }
13668
- return false;
13669
- }
13670
- delete(header, matcher) {
13671
- const self2 = this;
13672
- let deleted = false;
13673
- function deleteHeader(_header) {
13674
- _header = normalizeHeader(_header);
13675
- if (_header) {
13676
- const key = utils$1.findKey(self2, _header);
13677
- if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
13678
- delete self2[key];
13679
- deleted = true;
13680
- }
13681
- }
13771
+ if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
13772
+ return data;
13682
13773
  }
13683
- if (utils$1.isArray(header)) {
13684
- header.forEach(deleteHeader);
13685
- } else {
13686
- deleteHeader(header);
13774
+ if (utils$1.isArrayBufferView(data)) {
13775
+ return data.buffer;
13687
13776
  }
13688
- return deleted;
13689
- }
13690
- clear(matcher) {
13691
- const keys = Object.keys(this);
13692
- let i = keys.length;
13693
- let deleted = false;
13694
- while (i--) {
13695
- const key = keys[i];
13696
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
13697
- delete this[key];
13698
- deleted = true;
13699
- }
13777
+ if (utils$1.isURLSearchParams(data)) {
13778
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
13779
+ return data.toString();
13700
13780
  }
13701
- return deleted;
13702
- }
13703
- normalize(format) {
13704
- const self2 = this;
13705
- const headers = {};
13706
- utils$1.forEach(this, (value, header) => {
13707
- const key = utils$1.findKey(headers, header);
13708
- if (key) {
13709
- self2[key] = normalizeValue(value);
13710
- delete self2[header];
13711
- return;
13781
+ let isFileList2;
13782
+ if (isObjectPayload) {
13783
+ const formSerializer = own(this, "formSerializer");
13784
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
13785
+ return toURLEncodedForm(data, formSerializer).toString();
13712
13786
  }
13713
- const normalized = format ? formatHeader(header) : String(header).trim();
13714
- if (normalized !== header) {
13715
- delete self2[header];
13787
+ if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
13788
+ const env = own(this, "env");
13789
+ const _FormData = env && env.FormData;
13790
+ return toFormData(isFileList2 ? {
13791
+ "files[]": data
13792
+ } : data, _FormData && new _FormData(), formSerializer);
13716
13793
  }
13717
- self2[normalized] = normalizeValue(value);
13718
- headers[normalized] = true;
13719
- });
13720
- return this;
13721
- }
13722
- concat(...targets) {
13723
- return this.constructor.concat(this, ...targets);
13724
- }
13725
- toJSON(asStrings) {
13726
- const obj = /* @__PURE__ */ Object.create(null);
13727
- utils$1.forEach(this, (value, header) => {
13728
- value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
13729
- });
13730
- return obj;
13731
- }
13732
- [Symbol.iterator]() {
13733
- return Object.entries(this.toJSON())[Symbol.iterator]();
13734
- }
13735
- toString() {
13736
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
13737
- }
13738
- getSetCookie() {
13739
- return this.get("set-cookie") || [];
13740
- }
13741
- get [Symbol.toStringTag]() {
13742
- return "AxiosHeaders";
13743
- }
13744
- static from(thing) {
13745
- return thing instanceof this ? thing : new this(thing);
13746
- }
13747
- static concat(first, ...targets) {
13748
- const computed = new this(first);
13749
- targets.forEach((target) => computed.set(target));
13750
- return computed;
13751
- }
13752
- static accessor(header) {
13753
- const internals = this[$internals] = this[$internals] = {
13754
- accessors: {}
13755
- };
13756
- const accessors = internals.accessors;
13757
- const prototype2 = this.prototype;
13758
- function defineAccessor(_header) {
13759
- const lHeader = normalizeHeader(_header);
13760
- if (!accessors[lHeader]) {
13761
- buildAccessors(prototype2, _header);
13762
- accessors[lHeader] = true;
13794
+ }
13795
+ if (isObjectPayload || hasJSONContentType) {
13796
+ headers.setContentType("application/json", false);
13797
+ return stringifySafely(data);
13798
+ }
13799
+ return data;
13800
+ }],
13801
+ transformResponse: [function transformResponse(data) {
13802
+ const transitional = own(this, "transitional") || defaults.transitional;
13803
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
13804
+ const responseType = own(this, "responseType");
13805
+ const JSONRequested = responseType === "json";
13806
+ if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
13807
+ return data;
13808
+ }
13809
+ if (data && utils$1.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
13810
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
13811
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
13812
+ try {
13813
+ return JSON.parse(data, own(this, "parseReviver"));
13814
+ } catch (e) {
13815
+ if (strictJSONParsing) {
13816
+ if (e.name === "SyntaxError") {
13817
+ throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, "response"));
13818
+ }
13819
+ throw e;
13820
+ }
13763
13821
  }
13764
13822
  }
13765
- utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
13766
- return this;
13823
+ return data;
13824
+ }],
13825
+ /**
13826
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
13827
+ * timeout is not created.
13828
+ */
13829
+ timeout: 0,
13830
+ xsrfCookieName: "XSRF-TOKEN",
13831
+ xsrfHeaderName: "X-XSRF-TOKEN",
13832
+ maxContentLength: -1,
13833
+ maxBodyLength: -1,
13834
+ env: {
13835
+ FormData: platform.classes.FormData,
13836
+ Blob: platform.classes.Blob
13837
+ },
13838
+ validateStatus: function validateStatus(status) {
13839
+ return status >= 200 && status < 300;
13840
+ },
13841
+ headers: {
13842
+ common: {
13843
+ Accept: "application/json, text/plain, */*",
13844
+ "Content-Type": void 0
13845
+ }
13767
13846
  }
13768
13847
  };
13769
- AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
13770
- utils$1.reduceDescriptors(AxiosHeaders.prototype, ({
13771
- value
13772
- }, key) => {
13773
- let mapped = key[0].toUpperCase() + key.slice(1);
13774
- return {
13775
- get: () => value,
13776
- set(headerValue) {
13777
- this[mapped] = headerValue;
13778
- }
13779
- };
13848
+ utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
13849
+ defaults.headers[method] = {};
13780
13850
  });
13781
- utils$1.freezeMethods(AxiosHeaders);
13782
13851
  function transformData(fns, response) {
13783
13852
  const config = this || defaults;
13784
13853
  const context = response || config;
@@ -13814,7 +13883,7 @@ var require_axios = __commonJS({
13814
13883
  if (!response.status || !validateStatus || validateStatus(response.status)) {
13815
13884
  resolve(response);
13816
13885
  } else {
13817
- reject(new AxiosError("Request failed with status code " + response.status, [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));
13886
+ reject(new AxiosError("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE, response.config, response.request, response));
13818
13887
  }
13819
13888
  }
13820
13889
  function isAbsoluteURL(url2) {
@@ -13898,9 +13967,9 @@ var require_axios = __commonJS({
13898
13967
  function getEnv(key) {
13899
13968
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13900
13969
  }
13901
- var VERSION = "1.15.2";
13970
+ var VERSION = "1.16.0";
13902
13971
  function parseProtocol(url2) {
13903
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
13972
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13904
13973
  return match && match[1] || "";
13905
13974
  }
13906
13975
  var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
@@ -14111,7 +14180,7 @@ var require_axios = __commonJS({
14111
14180
  throw TypeError("FormData instance required");
14112
14181
  }
14113
14182
  if (boundary.length < 1 || boundary.length > 70) {
14114
- throw Error("boundary must be 10-70 characters long");
14183
+ throw Error("boundary must be 1-70 characters long");
14115
14184
  }
14116
14185
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
14117
14186
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -14228,6 +14297,20 @@ var require_axios = __commonJS({
14228
14297
  }
14229
14298
  return [entryHost, entryPort];
14230
14299
  };
14300
+ var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
14301
+ var IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
14302
+ var unmapIPv4MappedIPv6 = (host) => {
14303
+ if (typeof host !== "string" || host.indexOf(":") === -1) return host;
14304
+ const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
14305
+ if (dotted) return dotted[1];
14306
+ const hex = host.match(IPV4_MAPPED_HEX_RE);
14307
+ if (hex) {
14308
+ const high = parseInt(hex[1], 16);
14309
+ const low = parseInt(hex[2], 16);
14310
+ return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
14311
+ }
14312
+ return host;
14313
+ };
14231
14314
  var normalizeNoProxyHost = (hostname) => {
14232
14315
  if (!hostname) {
14233
14316
  return hostname;
@@ -14235,7 +14318,7 @@ var require_axios = __commonJS({
14235
14318
  if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
14236
14319
  hostname = hostname.slice(1, -1);
14237
14320
  }
14238
- return hostname.replace(/\.+$/, "");
14321
+ return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
14239
14322
  };
14240
14323
  function shouldBypassProxy(location) {
14241
14324
  let parsed;
@@ -14416,10 +14499,32 @@ var require_axios = __commonJS({
14416
14499
  }
14417
14500
  }
14418
14501
  const groups = Math.floor(effectiveLen / 4);
14419
- const bytes = groups * 3 - (pad || 0);
14420
- return bytes > 0 ? bytes : 0;
14502
+ const bytes2 = groups * 3 - (pad || 0);
14503
+ return bytes2 > 0 ? bytes2 : 0;
14421
14504
  }
14422
- return Buffer.byteLength(body, "utf8");
14505
+ if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
14506
+ return Buffer.byteLength(body, "utf8");
14507
+ }
14508
+ let bytes = 0;
14509
+ for (let i = 0, len = body.length; i < len; i++) {
14510
+ const c = body.charCodeAt(i);
14511
+ if (c < 128) {
14512
+ bytes += 1;
14513
+ } else if (c < 2048) {
14514
+ bytes += 2;
14515
+ } else if (c >= 55296 && c <= 56319 && i + 1 < len) {
14516
+ const next = body.charCodeAt(i + 1);
14517
+ if (next >= 56320 && next <= 57343) {
14518
+ bytes += 4;
14519
+ i++;
14520
+ } else {
14521
+ bytes += 3;
14522
+ }
14523
+ } else {
14524
+ bytes += 3;
14525
+ }
14526
+ }
14527
+ return bytes;
14423
14528
  }
14424
14529
  var zlibOptions = {
14425
14530
  flush: zlib.constants.Z_SYNC_FLUSH,
@@ -14435,11 +14540,33 @@ var require_axios = __commonJS({
14435
14540
  https: httpsFollow
14436
14541
  } = followRedirects;
14437
14542
  var isHttps = /https:?/;
14543
+ var FORM_DATA_CONTENT_HEADERS$1 = ["content-type", "content-length"];
14544
+ function setFormDataHeaders$1(headers, formHeaders, policy) {
14545
+ if (policy !== "content-only") {
14546
+ headers.set(formHeaders);
14547
+ return;
14548
+ }
14549
+ Object.entries(formHeaders).forEach(([key, val]) => {
14550
+ if (FORM_DATA_CONTENT_HEADERS$1.includes(key.toLowerCase())) {
14551
+ headers.set(key, val);
14552
+ }
14553
+ });
14554
+ }
14438
14555
  var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
14439
14556
  var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
14440
14557
  var supportedProtocols = platform.protocols.map((protocol) => {
14441
14558
  return protocol + ":";
14442
14559
  });
14560
+ var decodeURIComponentSafe = (value) => {
14561
+ if (!utils$1.isString(value)) {
14562
+ return value;
14563
+ }
14564
+ try {
14565
+ return decodeURIComponent(value);
14566
+ } catch (error) {
14567
+ return value;
14568
+ }
14569
+ };
14443
14570
  var flushOnFinish = (stream2, [throttled, flush]) => {
14444
14571
  stream2.on("end", flush).on("error", flush);
14445
14572
  return throttled;
@@ -14516,15 +14643,15 @@ var require_axios = __commonJS({
14516
14643
  }
14517
14644
  };
14518
14645
  var http2Sessions = new Http2Sessions();
14519
- function dispatchBeforeRedirect(options, responseDetails) {
14646
+ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
14520
14647
  if (options.beforeRedirects.proxy) {
14521
14648
  options.beforeRedirects.proxy(options);
14522
14649
  }
14523
14650
  if (options.beforeRedirects.config) {
14524
- options.beforeRedirects.config(options, responseDetails);
14651
+ options.beforeRedirects.config(options, responseDetails, requestDetails);
14525
14652
  }
14526
14653
  }
14527
- function setProxy(options, configProxy, location) {
14654
+ function setProxy(options, configProxy, location, isRedirect) {
14528
14655
  let proxy = configProxy;
14529
14656
  if (!proxy && proxy !== false) {
14530
14657
  const proxyUrl = getProxyForUrl(location);
@@ -14534,34 +14661,59 @@ var require_axios = __commonJS({
14534
14661
  }
14535
14662
  }
14536
14663
  }
14537
- if (proxy) {
14538
- if (proxy.username) {
14539
- proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
14664
+ if (isRedirect && options.headers) {
14665
+ for (const name of Object.keys(options.headers)) {
14666
+ if (name.toLowerCase() === "proxy-authorization") {
14667
+ delete options.headers[name];
14668
+ }
14540
14669
  }
14541
- if (proxy.auth) {
14542
- const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
14670
+ }
14671
+ if (proxy) {
14672
+ const isProxyURL = proxy instanceof URL;
14673
+ const readProxyField = (key) => isProxyURL || utils$1.hasOwnProp(proxy, key) ? proxy[key] : void 0;
14674
+ const proxyUsername = readProxyField("username");
14675
+ const proxyPassword = readProxyField("password");
14676
+ let proxyAuth = utils$1.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
14677
+ if (proxyUsername) {
14678
+ proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
14679
+ }
14680
+ if (proxyAuth) {
14681
+ const authIsObject = typeof proxyAuth === "object";
14682
+ const authUsername = authIsObject && utils$1.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
14683
+ const authPassword = authIsObject && utils$1.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
14684
+ const validProxyAuth = Boolean(authUsername || authPassword);
14543
14685
  if (validProxyAuth) {
14544
- proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
14545
- } else if (typeof proxy.auth === "object") {
14686
+ proxyAuth = (authUsername || "") + ":" + (authPassword || "");
14687
+ } else if (authIsObject) {
14546
14688
  throw new AxiosError("Invalid proxy authorization", AxiosError.ERR_BAD_OPTION, {
14547
14689
  proxy
14548
14690
  });
14549
14691
  }
14550
- const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
14692
+ const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
14551
14693
  options.headers["Proxy-Authorization"] = "Basic " + base64;
14552
14694
  }
14553
- options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
14554
- const proxyHost = proxy.hostname || proxy.host;
14695
+ let hasUserHostHeader = false;
14696
+ for (const name of Object.keys(options.headers)) {
14697
+ if (name.toLowerCase() === "host") {
14698
+ hasUserHostHeader = true;
14699
+ break;
14700
+ }
14701
+ }
14702
+ if (!hasUserHostHeader) {
14703
+ options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
14704
+ }
14705
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
14555
14706
  options.hostname = proxyHost;
14556
14707
  options.host = proxyHost;
14557
- options.port = proxy.port;
14708
+ options.port = readProxyField("port");
14558
14709
  options.path = location;
14559
- if (proxy.protocol) {
14560
- options.protocol = proxy.protocol.includes(":") ? proxy.protocol : `${proxy.protocol}:`;
14710
+ const proxyProtocol = readProxyField("protocol");
14711
+ if (proxyProtocol) {
14712
+ options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
14561
14713
  }
14562
14714
  }
14563
14715
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
14564
- setProxy(redirectOptions, configProxy, redirectOptions.href);
14716
+ setProxy(redirectOptions, configProxy, redirectOptions.href, true);
14565
14717
  };
14566
14718
  }
14567
14719
  var isHttpAdapterSupported = typeof process !== "undefined" && utils$1.kindOf(process) === "process";
@@ -14651,6 +14803,7 @@ var require_axios = __commonJS({
14651
14803
  let isDone;
14652
14804
  let rejected = false;
14653
14805
  let req;
14806
+ let connectPhaseTimer;
14654
14807
  httpVersion = +httpVersion;
14655
14808
  if (Number.isNaN(httpVersion)) {
14656
14809
  throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
@@ -14679,8 +14832,23 @@ var require_axios = __commonJS({
14679
14832
  console.warn("emit error", err);
14680
14833
  }
14681
14834
  }
14835
+ function clearConnectPhaseTimer() {
14836
+ if (connectPhaseTimer) {
14837
+ clearTimeout(connectPhaseTimer);
14838
+ connectPhaseTimer = null;
14839
+ }
14840
+ }
14841
+ function createTimeoutError() {
14842
+ let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
14843
+ const transitional = config.transitional || transitionalDefaults;
14844
+ if (config.timeoutErrorMessage) {
14845
+ timeoutErrorMessage = config.timeoutErrorMessage;
14846
+ }
14847
+ return new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, req);
14848
+ }
14682
14849
  abortEmitter.once("abort", reject);
14683
14850
  const onFinished = () => {
14851
+ clearConnectPhaseTimer();
14684
14852
  if (config.cancelToken) {
14685
14853
  config.cancelToken.unsubscribe(abort);
14686
14854
  }
@@ -14697,6 +14865,7 @@ var require_axios = __commonJS({
14697
14865
  }
14698
14866
  onDone((response, isRejected) => {
14699
14867
  isDone = true;
14868
+ clearConnectPhaseTimer();
14700
14869
  if (isRejected) {
14701
14870
  rejected = true;
14702
14871
  onFinished();
@@ -14778,7 +14947,7 @@ var require_axios = __commonJS({
14778
14947
  boundary: userBoundary && userBoundary[1] || void 0
14779
14948
  });
14780
14949
  } else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
14781
- headers.set(data.getHeaders());
14950
+ setFormDataHeaders$1(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
14782
14951
  if (!headers.hasContentLength()) {
14783
14952
  try {
14784
14953
  const knownLength = await util2.promisify(data.getLength).call(data);
@@ -14830,8 +14999,8 @@ var require_axios = __commonJS({
14830
14999
  auth = username + ":" + password;
14831
15000
  }
14832
15001
  if (!auth && parsed.username) {
14833
- const urlUsername = parsed.username;
14834
- const urlPassword = parsed.password;
15002
+ const urlUsername = decodeURIComponentSafe(parsed.username);
15003
+ const urlPassword = decodeURIComponentSafe(parsed.password);
14835
15004
  auth = urlUsername + ":" + urlPassword;
14836
15005
  }
14837
15006
  auth && headers.delete("authorization");
@@ -14881,6 +15050,7 @@ var require_axios = __commonJS({
14881
15050
  setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
14882
15051
  }
14883
15052
  let transport;
15053
+ let isNativeTransport = false;
14884
15054
  const isHttpsRequest = isHttps.test(options.protocol);
14885
15055
  options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
14886
15056
  if (isHttp2) {
@@ -14891,6 +15061,7 @@ var require_axios = __commonJS({
14891
15061
  transport = configTransport;
14892
15062
  } else if (config.maxRedirects === 0) {
14893
15063
  transport = isHttpsRequest ? https : http;
15064
+ isNativeTransport = true;
14894
15065
  } else {
14895
15066
  if (config.maxRedirects) {
14896
15067
  options.maxRedirects = config.maxRedirects;
@@ -14909,6 +15080,7 @@ var require_axios = __commonJS({
14909
15080
  }
14910
15081
  options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
14911
15082
  req = transport.request(options, function handleResponse(res) {
15083
+ clearConnectPhaseTimer();
14912
15084
  if (req.destroyed) return;
14913
15085
  const streams = [res];
14914
15086
  const responseLength = utils$1.toFiniteNumber(res.headers["content-length"]);
@@ -14990,13 +15162,13 @@ var require_axios = __commonJS({
14990
15162
  if (rejected) {
14991
15163
  return;
14992
15164
  }
14993
- const err = new AxiosError("stream has been aborted", AxiosError.ERR_BAD_RESPONSE, config, lastRequest);
15165
+ const err = new AxiosError("stream has been aborted", AxiosError.ERR_BAD_RESPONSE, config, lastRequest, response);
14994
15166
  responseStream.destroy(err);
14995
15167
  reject(err);
14996
15168
  });
14997
15169
  responseStream.on("error", function handleStreamError(err) {
14998
- if (req.destroyed) return;
14999
- reject(AxiosError.from(err, null, config, lastRequest));
15170
+ if (rejected) return;
15171
+ reject(AxiosError.from(err, null, config, lastRequest, response));
15000
15172
  });
15001
15173
  responseStream.on("end", function handleStreamEnd() {
15002
15174
  try {
@@ -15031,6 +15203,7 @@ var require_axios = __commonJS({
15031
15203
  req.on("error", function handleRequestError(err) {
15032
15204
  reject(AxiosError.from(err, null, config, req));
15033
15205
  });
15206
+ const boundSockets = /* @__PURE__ */ new Set();
15034
15207
  req.on("socket", function handleRequestSocket(socket) {
15035
15208
  socket.setKeepAlive(true, 1e3 * 60);
15036
15209
  if (!socket[kAxiosSocketListener]) {
@@ -15043,11 +15216,16 @@ var require_axios = __commonJS({
15043
15216
  socket[kAxiosSocketListener] = true;
15044
15217
  }
15045
15218
  socket[kAxiosCurrentReq] = req;
15046
- req.once("close", function clearCurrentReq() {
15219
+ boundSockets.add(socket);
15220
+ });
15221
+ req.once("close", function clearCurrentReq() {
15222
+ clearConnectPhaseTimer();
15223
+ for (const socket of boundSockets) {
15047
15224
  if (socket[kAxiosCurrentReq] === req) {
15048
15225
  socket[kAxiosCurrentReq] = null;
15049
15226
  }
15050
- });
15227
+ }
15228
+ boundSockets.clear();
15051
15229
  });
15052
15230
  if (config.timeout) {
15053
15231
  const timeout = parseInt(config.timeout, 10);
@@ -15055,15 +15233,14 @@ var require_axios = __commonJS({
15055
15233
  abort(new AxiosError("error trying to parse `config.timeout` to int", AxiosError.ERR_BAD_OPTION_VALUE, config, req));
15056
15234
  return;
15057
15235
  }
15058
- req.setTimeout(timeout, function handleRequestTimeout() {
15236
+ const handleTimeout = function handleTimeout2() {
15059
15237
  if (isDone) return;
15060
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
15061
- const transitional = config.transitional || transitionalDefaults;
15062
- if (config.timeoutErrorMessage) {
15063
- timeoutErrorMessage = config.timeoutErrorMessage;
15064
- }
15065
- abort(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, req));
15066
- });
15238
+ abort(createTimeoutError());
15239
+ };
15240
+ if (isNativeTransport && timeout > 0) {
15241
+ connectPhaseTimer = setTimeout(handleTimeout, timeout);
15242
+ }
15243
+ req.setTimeout(timeout, handleTimeout);
15067
15244
  } else {
15068
15245
  req.setTimeout(0);
15069
15246
  }
@@ -15135,8 +15312,15 @@ var require_axios = __commonJS({
15135
15312
  },
15136
15313
  read(name) {
15137
15314
  if (typeof document === "undefined") return null;
15138
- const match = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
15139
- return match ? decodeURIComponent(match[1]) : null;
15315
+ const cookies2 = document.cookie.split(";");
15316
+ for (let i = 0; i < cookies2.length; i++) {
15317
+ const cookie = cookies2[i].replace(/^\s+/, "");
15318
+ const eq = cookie.indexOf("=");
15319
+ if (eq !== -1 && cookie.slice(0, eq) === name) {
15320
+ return decodeURIComponent(cookie.slice(eq + 1));
15321
+ }
15322
+ }
15323
+ return null;
15140
15324
  },
15141
15325
  remove(name) {
15142
15326
  this.write(name, "", Date.now() - 864e5, "/");
@@ -15161,6 +15345,9 @@ var require_axios = __commonJS({
15161
15345
  config2 = config2 || {};
15162
15346
  const config = /* @__PURE__ */ Object.create(null);
15163
15347
  Object.defineProperty(config, "hasOwnProperty", {
15348
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
15349
+ // this data descriptor into an accessor descriptor on the way in.
15350
+ __proto__: null,
15164
15351
  value: Object.prototype.hasOwnProperty,
15165
15352
  enumerable: false,
15166
15353
  writable: true,
@@ -15249,6 +15436,19 @@ var require_axios = __commonJS({
15249
15436
  });
15250
15437
  return config;
15251
15438
  }
15439
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
15440
+ function setFormDataHeaders(headers, formHeaders, policy) {
15441
+ if (policy !== "content-only") {
15442
+ headers.set(formHeaders);
15443
+ return;
15444
+ }
15445
+ Object.entries(formHeaders).forEach(([key, val]) => {
15446
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
15447
+ headers.set(key, val);
15448
+ }
15449
+ });
15450
+ }
15451
+ var encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
15252
15452
  var resolveConfig = (config) => {
15253
15453
  const newConfig = mergeConfig({}, config);
15254
15454
  const own2 = (key) => utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
@@ -15264,19 +15464,13 @@ var require_axios = __commonJS({
15264
15464
  newConfig.headers = headers = AxiosHeaders.from(headers);
15265
15465
  newConfig.url = buildURL(buildFullPath(baseURL, url2, allowAbsoluteUrls), config.params, config.paramsSerializer);
15266
15466
  if (auth) {
15267
- headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")));
15467
+ headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")));
15268
15468
  }
15269
15469
  if (utils$1.isFormData(data)) {
15270
15470
  if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
15271
15471
  headers.setContentType(void 0);
15272
15472
  } else if (utils$1.isFunction(data.getHeaders)) {
15273
- const formHeaders = data.getHeaders();
15274
- const allowedHeaders = ["content-type", "content-length"];
15275
- Object.entries(formHeaders).forEach(([key, val]) => {
15276
- if (allowedHeaders.includes(key.toLowerCase())) {
15277
- headers.set(key, val);
15278
- }
15279
- });
15473
+ setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
15280
15474
  }
15281
15475
  }
15282
15476
  if (platform.hasStandardBrowserEnv) {
@@ -15346,7 +15540,7 @@ var require_axios = __commonJS({
15346
15540
  if (!request || request.readyState !== 4) {
15347
15541
  return;
15348
15542
  }
15349
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
15543
+ if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
15350
15544
  return;
15351
15545
  }
15352
15546
  setTimeout(onloadend);
@@ -15357,6 +15551,7 @@ var require_axios = __commonJS({
15357
15551
  return;
15358
15552
  }
15359
15553
  reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
15554
+ done();
15360
15555
  request = null;
15361
15556
  };
15362
15557
  request.onerror = function handleError(event) {
@@ -15364,6 +15559,7 @@ var require_axios = __commonJS({
15364
15559
  const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
15365
15560
  err.event = event || null;
15366
15561
  reject(err);
15562
+ done();
15367
15563
  request = null;
15368
15564
  };
15369
15565
  request.ontimeout = function handleTimeout() {
@@ -15373,6 +15569,7 @@ var require_axios = __commonJS({
15373
15569
  timeoutErrorMessage = _config.timeoutErrorMessage;
15374
15570
  }
15375
15571
  reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
15572
+ done();
15376
15573
  request = null;
15377
15574
  };
15378
15575
  requestData === void 0 && requestHeaders.setContentType(null);
@@ -15403,6 +15600,7 @@ var require_axios = __commonJS({
15403
15600
  }
15404
15601
  reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
15405
15602
  request.abort();
15603
+ done();
15406
15604
  request = null;
15407
15605
  };
15408
15606
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
@@ -15411,7 +15609,7 @@ var require_axios = __commonJS({
15411
15609
  }
15412
15610
  }
15413
15611
  const protocol = parseProtocol(_config.url);
15414
- if (protocol && platform.protocols.indexOf(protocol) === -1) {
15612
+ if (protocol && !platform.protocols.includes(protocol)) {
15415
15613
  reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
15416
15614
  return;
15417
15615
  }
@@ -15540,17 +15738,6 @@ var require_axios = __commonJS({
15540
15738
  var {
15541
15739
  isFunction
15542
15740
  } = utils$1;
15543
- var globalFetchAPI = (({
15544
- Request,
15545
- Response
15546
- }) => ({
15547
- Request,
15548
- Response
15549
- }))(utils$1.global);
15550
- var {
15551
- ReadableStream: ReadableStream$1,
15552
- TextEncoder: TextEncoder$1
15553
- } = utils$1.global;
15554
15741
  var test = (fn, ...args) => {
15555
15742
  try {
15556
15743
  return !!fn(...args);
@@ -15559,9 +15746,18 @@ var require_axios = __commonJS({
15559
15746
  }
15560
15747
  };
15561
15748
  var factory = (env) => {
15749
+ var _utils$global;
15750
+ const globalObject = (_utils$global = utils$1.global) !== null && _utils$global !== void 0 ? _utils$global : globalThis;
15751
+ const {
15752
+ ReadableStream: ReadableStream2,
15753
+ TextEncoder: TextEncoder2
15754
+ } = globalObject;
15562
15755
  env = utils$1.merge.call({
15563
15756
  skipUndefined: true
15564
- }, globalFetchAPI, env);
15757
+ }, {
15758
+ Request: globalObject.Request,
15759
+ Response: globalObject.Response
15760
+ }, env);
15565
15761
  const {
15566
15762
  fetch: envFetch,
15567
15763
  Request,
@@ -15573,12 +15769,12 @@ var require_axios = __commonJS({
15573
15769
  if (!isFetchSupported) {
15574
15770
  return false;
15575
15771
  }
15576
- const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
15577
- const encodeText = isFetchSupported && (typeof TextEncoder$1 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder$1()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
15772
+ const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream2);
15773
+ const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
15578
15774
  const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
15579
15775
  let duplexAccessed = false;
15580
15776
  const request = new Request(platform.origin, {
15581
- body: new ReadableStream$1(),
15777
+ body: new ReadableStream2(),
15582
15778
  method: "POST",
15583
15779
  get duplex() {
15584
15780
  duplexAccessed = true;
@@ -15647,8 +15843,12 @@ var require_axios = __commonJS({
15647
15843
  responseType,
15648
15844
  headers,
15649
15845
  withCredentials = "same-origin",
15650
- fetchOptions
15846
+ fetchOptions,
15847
+ maxContentLength,
15848
+ maxBodyLength
15651
15849
  } = resolveConfig(config);
15850
+ const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
15851
+ const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
15652
15852
  let _fetch = envFetch || fetch;
15653
15853
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
15654
15854
  let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
@@ -15658,6 +15858,18 @@ var require_axios = __commonJS({
15658
15858
  });
15659
15859
  let requestContentLength;
15660
15860
  try {
15861
+ if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
15862
+ const estimated = estimateDataURLDecodedBytes(url2);
15863
+ if (estimated > maxContentLength) {
15864
+ throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
15865
+ }
15866
+ }
15867
+ if (hasMaxBodyLength && method !== "get" && method !== "head") {
15868
+ const outboundLength = await resolveBodyLength(headers, data);
15869
+ if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
15870
+ throw new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config, request);
15871
+ }
15872
+ }
15661
15873
  if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
15662
15874
  let _request = new Request(url2, {
15663
15875
  method: "POST",
@@ -15683,6 +15895,7 @@ var require_axios = __commonJS({
15683
15895
  headers.delete("content-type");
15684
15896
  }
15685
15897
  }
15898
+ headers.set("User-Agent", "axios/" + VERSION, false);
15686
15899
  const resolvedOptions = {
15687
15900
  ...fetchOptions,
15688
15901
  signal: composedSignal,
@@ -15694,21 +15907,52 @@ var require_axios = __commonJS({
15694
15907
  };
15695
15908
  request = isRequestSupported && new Request(url2, resolvedOptions);
15696
15909
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
15910
+ if (hasMaxContentLength) {
15911
+ const declaredLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
15912
+ if (declaredLength != null && declaredLength > maxContentLength) {
15913
+ throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
15914
+ }
15915
+ }
15697
15916
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
15698
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
15917
+ if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
15699
15918
  const options = {};
15700
15919
  ["status", "statusText", "headers"].forEach((prop) => {
15701
15920
  options[prop] = response[prop];
15702
15921
  });
15703
15922
  const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
15704
15923
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
15705
- response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
15924
+ let bytesRead = 0;
15925
+ const onChunkProgress = (loadedBytes) => {
15926
+ if (hasMaxContentLength) {
15927
+ bytesRead = loadedBytes;
15928
+ if (bytesRead > maxContentLength) {
15929
+ throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
15930
+ }
15931
+ }
15932
+ onProgress && onProgress(loadedBytes);
15933
+ };
15934
+ response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
15706
15935
  flush && flush();
15707
15936
  unsubscribe && unsubscribe();
15708
15937
  }), options);
15709
15938
  }
15710
15939
  responseType = responseType || "text";
15711
15940
  let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
15941
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
15942
+ let materializedSize;
15943
+ if (responseData != null) {
15944
+ if (typeof responseData.byteLength === "number") {
15945
+ materializedSize = responseData.byteLength;
15946
+ } else if (typeof responseData.size === "number") {
15947
+ materializedSize = responseData.size;
15948
+ } else if (typeof responseData === "string") {
15949
+ materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
15950
+ }
15951
+ }
15952
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
15953
+ throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
15954
+ }
15955
+ }
15712
15956
  !isStreamResponse && unsubscribe && unsubscribe();
15713
15957
  return await new Promise((resolve, reject) => {
15714
15958
  settle(resolve, reject, {
@@ -15722,6 +15966,13 @@ var require_axios = __commonJS({
15722
15966
  });
15723
15967
  } catch (err) {
15724
15968
  unsubscribe && unsubscribe();
15969
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError) {
15970
+ const canceledError = composedSignal.reason;
15971
+ canceledError.config = config;
15972
+ request && (canceledError.request = request);
15973
+ err !== canceledError && (canceledError.cause = err);
15974
+ throw canceledError;
15975
+ }
15725
15976
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
15726
15977
  throw Object.assign(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request, err && err.response), {
15727
15978
  cause: err.cause || err
@@ -15761,11 +16012,13 @@ var require_axios = __commonJS({
15761
16012
  if (fn) {
15762
16013
  try {
15763
16014
  Object.defineProperty(fn, "name", {
16015
+ __proto__: null,
15764
16016
  value
15765
16017
  });
15766
16018
  } catch (e) {
15767
16019
  }
15768
16020
  Object.defineProperty(fn, "adapterName", {
16021
+ __proto__: null,
15769
16022
  value
15770
16023
  });
15771
16024
  }
@@ -15832,14 +16085,24 @@ var require_axios = __commonJS({
15832
16085
  const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
15833
16086
  return adapter(config).then(function onAdapterResolution(response) {
15834
16087
  throwIfCancellationRequested(config);
15835
- response.data = transformData.call(config, config.transformResponse, response);
16088
+ config.response = response;
16089
+ try {
16090
+ response.data = transformData.call(config, config.transformResponse, response);
16091
+ } finally {
16092
+ delete config.response;
16093
+ }
15836
16094
  response.headers = AxiosHeaders.from(response.headers);
15837
16095
  return response;
15838
16096
  }, function onAdapterRejection(reason) {
15839
16097
  if (!isCancel(reason)) {
15840
16098
  throwIfCancellationRequested(config);
15841
16099
  if (reason && reason.response) {
15842
- reason.response.data = transformData.call(config, config.transformResponse, reason.response);
16100
+ config.response = reason.response;
16101
+ try {
16102
+ reason.response.data = transformData.call(config, config.transformResponse, reason.response);
16103
+ } finally {
16104
+ delete config.response;
16105
+ }
15843
16106
  reason.response.headers = AxiosHeaders.from(reason.response.headers);
15844
16107
  }
15845
16108
  }
@@ -15993,7 +16256,7 @@ var require_axios = __commonJS({
15993
16256
  }, true);
15994
16257
  config.method = (config.method || this.defaults.method || "get").toLowerCase();
15995
16258
  let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
15996
- headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
16259
+ headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
15997
16260
  delete headers[method];
15998
16261
  });
15999
16262
  config.headers = AxiosHeaders.concat(contextHeaders, headers);
@@ -16069,7 +16332,7 @@ var require_axios = __commonJS({
16069
16332
  }));
16070
16333
  };
16071
16334
  });
16072
- utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
16335
+ utils$1.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
16073
16336
  function generateHTTPMethod(isForm) {
16074
16337
  return function httpMethod(url2, data, config) {
16075
16338
  return this.request(mergeConfig(config || {}, {
@@ -16083,7 +16346,9 @@ var require_axios = __commonJS({
16083
16346
  };
16084
16347
  }
16085
16348
  Axios.prototype[method] = generateHTTPMethod();
16086
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
16349
+ if (method !== "query") {
16350
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
16351
+ }
16087
16352
  });
16088
16353
  var CancelToken = class _CancelToken {
16089
16354
  constructor(executor) {
@@ -22547,7 +22812,7 @@ var createDefaultLogger = (executionContext) => {
22547
22812
  return new DefaultLogger(executionContext);
22548
22813
  };
22549
22814
  var SDK_NAME = "@aws/durable-execution-sdk-js";
22550
- var SDK_VERSION = "1.1.1";
22815
+ var SDK_VERSION = "1.1.2";
22551
22816
  var defaultLambdaClient;
22552
22817
  var DurableExecutionApiClient = class {
22553
22818
  client;
@@ -23101,7 +23366,7 @@ mime-types/index.js:
23101
23366
  *)
23102
23367
 
23103
23368
  axios/dist/node/axios.cjs:
23104
- (*! Axios v1.15.2 Copyright (c) 2026 Matt Zabriskie and contributors *)
23369
+ (*! Axios v1.16.0 Copyright (c) 2026 Matt Zabriskie and contributors *)
23105
23370
 
23106
23371
  safe-buffer/index.js:
23107
23372
  (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)