@continuous-excellence/ze-great-dashboard-aws 0.28.2 → 0.28.4

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.
Files changed (2) hide show
  1. package/dist/lambda.mjs +420 -297
  2. package/package.json +2 -2
package/dist/lambda.mjs CHANGED
@@ -1081,17 +1081,17 @@ var init_schemaDeserializationMiddleware = __esm({
1081
1081
  response,
1082
1082
  output: parsed
1083
1083
  };
1084
- } catch (error62) {
1085
- Object.defineProperty(error62, "$response", {
1084
+ } catch (error63) {
1085
+ Object.defineProperty(error63, "$response", {
1086
1086
  value: response,
1087
1087
  enumerable: false,
1088
1088
  writable: false,
1089
1089
  configurable: false
1090
1090
  });
1091
- if (!("$metadata" in error62)) {
1091
+ if (!("$metadata" in error63)) {
1092
1092
  const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
1093
1093
  try {
1094
- error62.message += "\n " + hint;
1094
+ error63.message += "\n " + hint;
1095
1095
  } catch (ignored) {
1096
1096
  if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
1097
1097
  console.warn(hint);
@@ -1099,16 +1099,16 @@ var init_schemaDeserializationMiddleware = __esm({
1099
1099
  context.logger?.warn?.(hint);
1100
1100
  }
1101
1101
  }
1102
- if (typeof error62.$responseBodyText !== "undefined") {
1103
- if (error62.$response) {
1104
- error62.$response.body = error62.$responseBodyText;
1102
+ if (typeof error63.$responseBodyText !== "undefined") {
1103
+ if (error63.$response) {
1104
+ error63.$response.body = error63.$responseBodyText;
1105
1105
  }
1106
1106
  }
1107
1107
  try {
1108
1108
  if (HttpResponse.isInstance(response)) {
1109
1109
  const { headers = {}, statusCode } = response;
1110
1110
  const headerEntries = Object.entries(headers);
1111
- error62.$metadata = {
1111
+ error63.$metadata = {
1112
1112
  httpStatusCode: statusCode,
1113
1113
  requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
1114
1114
  extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
@@ -1118,7 +1118,7 @@ var init_schemaDeserializationMiddleware = __esm({
1118
1118
  } catch (ignored) {
1119
1119
  }
1120
1120
  }
1121
- throw error62;
1121
+ throw error63;
1122
1122
  }
1123
1123
  };
1124
1124
  findHeader = (pattern, headers) => {
@@ -1292,7 +1292,7 @@ var init_StructureSchema = __esm({
1292
1292
  });
1293
1293
 
1294
1294
  // node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js
1295
- var ErrorSchema, error61;
1295
+ var ErrorSchema, error62;
1296
1296
  var init_ErrorSchema = __esm({
1297
1297
  "node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js"() {
1298
1298
  init_Schema();
@@ -1302,7 +1302,7 @@ var init_ErrorSchema = __esm({
1302
1302
  ctor;
1303
1303
  symbol = _ErrorSchema.symbol;
1304
1304
  };
1305
- error61 = (namespace, name, traits, memberNames, memberList, _ctor) => Schema.assign(new ErrorSchema(), {
1305
+ error62 = (namespace, name, traits, memberNames, memberList, _ctor) => Schema.assign(new ErrorSchema(), {
1306
1306
  name,
1307
1307
  namespace,
1308
1308
  traits,
@@ -1806,7 +1806,7 @@ __export(schema_exports, {
1806
1806
  TypeRegistry: () => TypeRegistry,
1807
1807
  deref: () => deref,
1808
1808
  deserializerMiddlewareOption: () => deserializerMiddlewareOption,
1809
- error: () => error61,
1809
+ error: () => error62,
1810
1810
  getSchemaSerdePlugin: () => getSchemaSerdePlugin,
1811
1811
  isStaticSchema: () => isStaticSchema,
1812
1812
  list: () => list,
@@ -3560,17 +3560,17 @@ var init_deserializerMiddleware = __esm({
3560
3560
  response,
3561
3561
  output: parsed
3562
3562
  };
3563
- } catch (error62) {
3564
- Object.defineProperty(error62, "$response", {
3563
+ } catch (error63) {
3564
+ Object.defineProperty(error63, "$response", {
3565
3565
  value: response,
3566
3566
  enumerable: false,
3567
3567
  writable: false,
3568
3568
  configurable: false
3569
3569
  });
3570
- if (!("$metadata" in error62)) {
3570
+ if (!("$metadata" in error63)) {
3571
3571
  const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
3572
3572
  try {
3573
- error62.message += "\n " + hint;
3573
+ error63.message += "\n " + hint;
3574
3574
  } catch (ignored) {
3575
3575
  if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
3576
3576
  console.warn(hint);
@@ -3578,16 +3578,16 @@ var init_deserializerMiddleware = __esm({
3578
3578
  context.logger?.warn?.(hint);
3579
3579
  }
3580
3580
  }
3581
- if (typeof error62.$responseBodyText !== "undefined") {
3582
- if (error62.$response) {
3583
- error62.$response.body = error62.$responseBodyText;
3581
+ if (typeof error63.$responseBodyText !== "undefined") {
3582
+ if (error63.$response) {
3583
+ error63.$response.body = error63.$responseBodyText;
3584
3584
  }
3585
3585
  }
3586
3586
  try {
3587
3587
  if (HttpResponse.isInstance(response)) {
3588
3588
  const { headers = {} } = response;
3589
3589
  const headerEntries = Object.entries(headers);
3590
- error62.$metadata = {
3590
+ error63.$metadata = {
3591
3591
  httpStatusCode: response.statusCode,
3592
3592
  requestId: findHeader2(/^x-[\w-]+-request-?id$/, headerEntries),
3593
3593
  extendedRequestId: findHeader2(/^x-[\w-]+-id-2$/, headerEntries),
@@ -3597,7 +3597,7 @@ var init_deserializerMiddleware = __esm({
3597
3597
  } catch (ignored) {
3598
3598
  }
3599
3599
  }
3600
- throw error62;
3600
+ throw error63;
3601
3601
  }
3602
3602
  };
3603
3603
  findHeader2 = (pattern, headers) => {
@@ -3630,8 +3630,8 @@ var init_ProviderError = __esm({
3630
3630
  Object.setPrototypeOf(this, _ProviderError.prototype);
3631
3631
  logger2?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message2}`);
3632
3632
  }
3633
- static from(error62, options = true) {
3634
- return Object.assign(new this(error62.message, options), error62);
3633
+ static from(error63, options = true) {
3634
+ return Object.assign(new this(error63.message, options), error63);
3635
3635
  }
3636
3636
  };
3637
3637
  }
@@ -5695,9 +5695,9 @@ var init_getEndpointUrl = __esm({
5695
5695
  if (typeof expression === "string") {
5696
5696
  try {
5697
5697
  return new URL(expression);
5698
- } catch (error62) {
5699
- console.error(`Failed to construct URL with ${expression}`, error62);
5700
- throw error62;
5698
+ } catch (error63) {
5699
+ console.error(`Failed to construct URL with ${expression}`, error63);
5700
+ throw error63;
5701
5701
  }
5702
5702
  }
5703
5703
  throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
@@ -5828,7 +5828,7 @@ var init_evaluateErrorRule = __esm({
5828
5828
  init_evaluateConditions();
5829
5829
  init_evaluateExpression();
5830
5830
  evaluateErrorRule = (errorRule, options) => {
5831
- const { conditions, error: error62 } = errorRule;
5831
+ const { conditions, error: error63 } = errorRule;
5832
5832
  const { result, referenceRecord } = evaluateConditions(conditions, options);
5833
5833
  if (!result) {
5834
5834
  return;
@@ -5837,7 +5837,7 @@ var init_evaluateErrorRule = __esm({
5837
5837
  ...options,
5838
5838
  referenceRecord: { ...options.referenceRecord, ...referenceRecord }
5839
5839
  } : options;
5840
- throw new EndpointError(evaluateExpression(error62, "Error", errorRuleOptions));
5840
+ throw new EndpointError(evaluateExpression(error63, "Error", errorRuleOptions));
5841
5841
  };
5842
5842
  }
5843
5843
  });
@@ -6139,8 +6139,8 @@ var init_ChecksumStream = __esm({
6139
6139
  }
6140
6140
  this.push(null);
6141
6141
  };
6142
- onSourceError = (error62) => {
6143
- this.destroy(error62);
6142
+ onSourceError = (error63) => {
6143
+ this.destroy(error63);
6144
6144
  };
6145
6145
  onSourceClose = () => {
6146
6146
  if (!this.destroyed && !this.source.readableEnded) {
@@ -6150,13 +6150,13 @@ var init_ChecksumStream = __esm({
6150
6150
  _read(_size2) {
6151
6151
  this.source.resume();
6152
6152
  }
6153
- _destroy(error62, callback) {
6153
+ _destroy(error63, callback) {
6154
6154
  this.source?.removeListener("data", this.onSourceData);
6155
6155
  this.source?.removeListener("end", this.onSourceEnd);
6156
6156
  this.source?.removeListener("error", this.onSourceError);
6157
6157
  this.source?.removeListener("close", this.onSourceClose);
6158
6158
  this.source?.destroy();
6159
- callback(error62);
6159
+ callback(error63);
6160
6160
  }
6161
6161
  };
6162
6162
  }
@@ -6272,8 +6272,8 @@ var init_createChecksumStream_browser = __esm({
6272
6272
  const digest2 = await checksum.digest();
6273
6273
  const received = encoder3(digest2);
6274
6274
  if (expectedChecksum !== received) {
6275
- const error62 = new Error(`Checksum mismatch: expected "${expectedChecksum}" but received "${received}" in response header "${checksumSourceLocation}".`);
6276
- controller.error(error62);
6275
+ const error63 = new Error(`Checksum mismatch: expected "${expectedChecksum}" but received "${received}" in response header "${checksumSourceLocation}".`);
6276
+ controller.error(error63);
6277
6277
  } else {
6278
6278
  controller.terminate();
6279
6279
  }
@@ -8338,9 +8338,9 @@ function getMessageUnmarshaller(deserializer, toUtf83) {
8338
8338
  const exception = { [code]: message2 };
8339
8339
  const deserializedException = await deserializer(exception);
8340
8340
  if (deserializedException.$unknown) {
8341
- const error62 = new Error(toUtf83(message2.body));
8342
- error62.name = code;
8343
- throw error62;
8341
+ const error63 = new Error(toUtf83(message2.body));
8342
+ error63.name = code;
8343
+ throw error63;
8344
8344
  }
8345
8345
  throw deserializedException[code];
8346
8346
  } else if (messageType === "event") {
@@ -10005,17 +10005,17 @@ var init_constants4 = __esm({
10005
10005
  });
10006
10006
 
10007
10007
  // node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js
10008
- function isNodeJsHttp2TransientError(error62) {
10009
- return error62.code === "ERR_HTTP2_STREAM_ERROR" && error62.message.includes("NGHTTP2_REFUSED_STREAM");
10008
+ function isNodeJsHttp2TransientError(error63) {
10009
+ return error63.code === "ERR_HTTP2_STREAM_ERROR" && error63.message.includes("NGHTTP2_REFUSED_STREAM");
10010
10010
  }
10011
10011
  var isRetryableByTrait, isClockSkewError, isClockSkewCorrectedError, isBrowserNetworkError, isThrottlingError, isTransientError, isServerError;
10012
10012
  var init_service_error_classification = __esm({
10013
10013
  "node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js"() {
10014
10014
  init_constants4();
10015
- isRetryableByTrait = (error62) => error62?.$retryable !== void 0;
10016
- isClockSkewError = (error62) => CLOCK_SKEW_ERROR_CODES.includes(error62.name);
10017
- isClockSkewCorrectedError = (error62) => error62.$metadata?.clockSkewCorrected;
10018
- isBrowserNetworkError = (error62) => {
10015
+ isRetryableByTrait = (error63) => error63?.$retryable !== void 0;
10016
+ isClockSkewError = (error63) => CLOCK_SKEW_ERROR_CODES.includes(error63.name);
10017
+ isClockSkewCorrectedError = (error63) => error63.$metadata?.clockSkewCorrected;
10018
+ isBrowserNetworkError = (error63) => {
10019
10019
  const errorMessages = /* @__PURE__ */ new Set([
10020
10020
  "Failed to fetch",
10021
10021
  "NetworkError when attempting to fetch resource",
@@ -10023,18 +10023,18 @@ var init_service_error_classification = __esm({
10023
10023
  "Load failed",
10024
10024
  "Network request failed"
10025
10025
  ]);
10026
- const isValid = error62 && error62 instanceof TypeError;
10026
+ const isValid = error63 && error63 instanceof TypeError;
10027
10027
  if (!isValid) {
10028
10028
  return false;
10029
10029
  }
10030
- return errorMessages.has(error62.message);
10030
+ return errorMessages.has(error63.message);
10031
10031
  };
10032
- isThrottlingError = (error62) => error62.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error62.name) || error62.$retryable?.throttling == true;
10033
- isTransientError = (error62, depth = 0) => isRetryableByTrait(error62) || isClockSkewCorrectedError(error62) || error62.name === "InvalidSignatureException" && error62.message?.includes("Signature expired") || TRANSIENT_ERROR_CODES.includes(error62.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error62?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error62?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error62.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error62) || isNodeJsHttp2TransientError(error62) || error62.cause !== void 0 && depth <= 10 && isTransientError(error62.cause, depth + 1);
10034
- isServerError = (error62) => {
10035
- if (error62.$metadata?.httpStatusCode !== void 0) {
10036
- const statusCode = error62.$metadata.httpStatusCode;
10037
- if (500 <= statusCode && statusCode <= 599 && !isTransientError(error62)) {
10032
+ isThrottlingError = (error63) => error63.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error63.name) || error63.$retryable?.throttling == true;
10033
+ isTransientError = (error63, depth = 0) => isRetryableByTrait(error63) || isClockSkewCorrectedError(error63) || error63.name === "InvalidSignatureException" && error63.message?.includes("Signature expired") || TRANSIENT_ERROR_CODES.includes(error63.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error63?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error63?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error63.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error63) || isNodeJsHttp2TransientError(error63) || error63.cause !== void 0 && depth <= 10 && isTransientError(error63.cause, depth + 1);
10034
+ isServerError = (error63) => {
10035
+ if (error63.$metadata?.httpStatusCode !== void 0) {
10036
+ const statusCode = error63.$metadata.httpStatusCode;
10037
+ if (500 <= statusCode && statusCode <= 599 && !isTransientError(error63)) {
10038
10038
  return true;
10039
10039
  }
10040
10040
  return false;
@@ -10117,14 +10117,14 @@ var init_parseRetryAfterHeader = __esm({
10117
10117
  var asSdkError;
10118
10118
  var init_util = __esm({
10119
10119
  "node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js"() {
10120
- asSdkError = (error62) => {
10121
- if (error62 instanceof Error)
10122
- return error62;
10123
- if (error62 instanceof Object)
10124
- return Object.assign(new Error(), error62);
10125
- if (typeof error62 === "string")
10126
- return new Error(error62);
10127
- return new Error(`AWS SDK error wrapper for ${error62}`);
10120
+ asSdkError = (error63) => {
10121
+ if (error63 instanceof Error)
10122
+ return error63;
10123
+ if (error63 instanceof Object)
10124
+ return Object.assign(new Error(), error63);
10125
+ if (typeof error63 === "string")
10126
+ return new Error(error63);
10127
+ return new Error(`AWS SDK error wrapper for ${error63}`);
10128
10128
  };
10129
10129
  }
10130
10130
  });
@@ -10209,23 +10209,23 @@ var init_retryMiddleware = __esm({
10209
10209
  init_util();
10210
10210
  cooldown = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
10211
10211
  isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined";
10212
- getRetryErrorInfo = (error62, logger2) => {
10212
+ getRetryErrorInfo = (error63, logger2) => {
10213
10213
  const errorInfo = {
10214
- error: error62,
10215
- errorType: getRetryErrorType(error62)
10214
+ error: error63,
10215
+ errorType: getRetryErrorType(error63)
10216
10216
  };
10217
- const retryAfterHint = parseRetryAfterHeader(error62.$response, logger2);
10217
+ const retryAfterHint = parseRetryAfterHeader(error63.$response, logger2);
10218
10218
  if (retryAfterHint) {
10219
10219
  errorInfo.retryAfterHint = retryAfterHint;
10220
10220
  }
10221
10221
  return errorInfo;
10222
10222
  };
10223
- getRetryErrorType = (error62) => {
10224
- if (isThrottlingError(error62))
10223
+ getRetryErrorType = (error63) => {
10224
+ if (isThrottlingError(error63))
10225
10225
  return "THROTTLING";
10226
- if (isTransientError(error62))
10226
+ if (isTransientError(error63))
10227
10227
  return "TRANSIENT";
10228
- if (isServerError(error62))
10228
+ if (isServerError(error63))
10229
10229
  return "SERVER_ERROR";
10230
10230
  return "CLIENT_ERROR";
10231
10231
  };
@@ -10626,13 +10626,13 @@ var init_defaultRetryQuota = __esm({
10626
10626
  const retryCost = options?.retryCost ?? RETRY_COST;
10627
10627
  const timeoutRetryCost = options?.timeoutRetryCost ?? TIMEOUT_RETRY_COST;
10628
10628
  let availableCapacity = initialRetryTokens;
10629
- const getCapacityAmount = (error62) => error62.name === "TimeoutError" ? timeoutRetryCost : retryCost;
10630
- const hasRetryTokens = (error62) => getCapacityAmount(error62) <= availableCapacity;
10631
- const retrieveRetryTokens = (error62) => {
10632
- if (!hasRetryTokens(error62)) {
10629
+ const getCapacityAmount = (error63) => error63.name === "TimeoutError" ? timeoutRetryCost : retryCost;
10630
+ const hasRetryTokens = (error63) => getCapacityAmount(error63) <= availableCapacity;
10631
+ const retrieveRetryTokens = (error63) => {
10632
+ if (!hasRetryTokens(error63)) {
10633
10633
  throw new Error("No retry token available");
10634
10634
  }
10635
- const capacityAmount = getCapacityAmount(error62);
10635
+ const capacityAmount = getCapacityAmount(error63);
10636
10636
  availableCapacity -= capacityAmount;
10637
10637
  return capacityAmount;
10638
10638
  };
@@ -10663,11 +10663,11 @@ var defaultRetryDecider;
10663
10663
  var init_retryDecider = __esm({
10664
10664
  "node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/retryDecider.js"() {
10665
10665
  init_service_error_classification();
10666
- defaultRetryDecider = (error62) => {
10667
- if (!error62) {
10666
+ defaultRetryDecider = (error63) => {
10667
+ if (!error63) {
10668
10668
  return false;
10669
10669
  }
10670
- return isRetryableByTrait(error62) || isClockSkewError(error62) || isThrottlingError(error62) || isTransientError(error62);
10670
+ return isRetryableByTrait(error63) || isClockSkewError(error63) || isThrottlingError(error63) || isTransientError(error63);
10671
10671
  };
10672
10672
  }
10673
10673
  });
@@ -10697,8 +10697,8 @@ var init_StandardRetryStrategy2 = __esm({
10697
10697
  this.delayDecider = options?.delayDecider ?? defaultDelayDecider;
10698
10698
  this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(INITIAL_RETRY_TOKENS);
10699
10699
  }
10700
- shouldRetry(error62, attempts, maxAttempts) {
10701
- return attempts < maxAttempts && this.retryDecider(error62) && this.retryQuota.hasRetryTokens(error62);
10700
+ shouldRetry(error63, attempts, maxAttempts) {
10701
+ return attempts < maxAttempts && this.retryDecider(error63) && this.retryQuota.hasRetryTokens(error63);
10702
10702
  }
10703
10703
  async getMaxAttempts() {
10704
10704
  let maxAttempts;
@@ -11061,7 +11061,7 @@ var init_loggerMiddleware = __esm({
11061
11061
  metadata: $metadata
11062
11062
  });
11063
11063
  return response;
11064
- } catch (error62) {
11064
+ } catch (error63) {
11065
11065
  const { clientName, commandName, logger: logger2, dynamoDbDocumentClientOptions = {} } = context;
11066
11066
  const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
11067
11067
  const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
@@ -11069,10 +11069,10 @@ var init_loggerMiddleware = __esm({
11069
11069
  clientName,
11070
11070
  commandName,
11071
11071
  input: inputFilterSensitiveLog(args.input),
11072
- error: error62,
11073
- metadata: error62.$metadata
11072
+ error: error63,
11073
+ metadata: error63.$metadata
11074
11074
  });
11075
- throw error62;
11075
+ throw error63;
11076
11076
  }
11077
11077
  };
11078
11078
  loggerMiddlewareOptions = {
@@ -11447,8 +11447,8 @@ var init_httpSigningMiddleware = __esm({
11447
11447
  "node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js"() {
11448
11448
  init_protocols();
11449
11449
  init_transport();
11450
- defaultErrorHandler = (signingProperties) => (error62) => {
11451
- throw error62;
11450
+ defaultErrorHandler = (signingProperties) => (error63) => {
11451
+ throw error63;
11452
11452
  };
11453
11453
  defaultSuccessHandler = (httpResponse, signingProperties) => {
11454
11454
  };
@@ -13656,8 +13656,8 @@ var init_AwsSdkSigV4Signer = __esm({
13656
13656
  return signedRequest;
13657
13657
  }
13658
13658
  errorHandler(signingProperties) {
13659
- return (error62) => {
13660
- const errorException = error62;
13659
+ return (error63) => {
13660
+ const errorException = error63;
13661
13661
  if (!signingProperties._disableClockSkewCorrection) {
13662
13662
  const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response);
13663
13663
  if (serverTime) {
@@ -13675,7 +13675,7 @@ var init_AwsSdkSigV4Signer = __esm({
13675
13675
  }
13676
13676
  }
13677
13677
  }
13678
- throw error62;
13678
+ throw error63;
13679
13679
  };
13680
13680
  }
13681
13681
  successHandler(httpResponse, signingProperties) {
@@ -14883,12 +14883,12 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
14883
14883
  let token;
14884
14884
  try {
14885
14885
  token = (await getMetadataToken({ ...endpoint, timeout })).toString();
14886
- } catch (error62) {
14887
- if (error62?.statusCode === 400) {
14888
- throw Object.assign(error62, {
14886
+ } catch (error63) {
14887
+ if (error63?.statusCode === 400) {
14888
+ throw Object.assign(error63, {
14889
14889
  message: "EC2 Metadata token request returned error"
14890
14890
  });
14891
- } else if (error62.message === "TimeoutError" || [403, 404, 405].includes(error62.statusCode)) {
14891
+ } else if (error63.message === "TimeoutError" || [403, 404, 405].includes(error63.statusCode)) {
14892
14892
  disableFetchToken = true;
14893
14893
  }
14894
14894
  logger2?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
@@ -15019,12 +15019,12 @@ var require_dist_cjs5 = __commonJS({
15019
15019
  return timing.setTimeout(() => {
15020
15020
  let msg = `@smithy/node-http-handler - [${throwOnRequestTimeout ? "ERROR" : "WARN"}] a request has exceeded the configured ${timeoutInMs} ms requestTimeout.`;
15021
15021
  if (throwOnRequestTimeout) {
15022
- const error62 = Object.assign(new Error(msg), {
15022
+ const error63 = Object.assign(new Error(msg), {
15023
15023
  name: "TimeoutError",
15024
15024
  code: "ETIMEDOUT"
15025
15025
  });
15026
- req.destroy(error62);
15027
- reject(error62);
15026
+ req.destroy(error63);
15027
+ reject(error63);
15028
15028
  } else {
15029
15029
  msg += ` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;
15030
15030
  logger2?.warn?.(msg);
@@ -17634,20 +17634,20 @@ var init_ProtocolLib = __esm({
17634
17634
  decorateServiceException(exception, additions = {}) {
17635
17635
  if (this.queryCompat) {
17636
17636
  const msg = exception.Message ?? additions.Message;
17637
- const error62 = decorateServiceException(exception, additions);
17637
+ const error63 = decorateServiceException(exception, additions);
17638
17638
  if (msg) {
17639
- error62.message = msg;
17640
- }
17641
- const errorObj = error62.Error ?? {};
17642
- errorObj.Type = error62.Error?.Type;
17643
- errorObj.Code = error62.Error?.Code;
17644
- errorObj.Message = error62.Error?.message ?? error62.Error?.Message ?? msg;
17645
- error62.Error = errorObj;
17646
- const reqId = error62.$metadata.requestId;
17639
+ error63.message = msg;
17640
+ }
17641
+ const errorObj = error63.Error ?? {};
17642
+ errorObj.Type = error63.Error?.Type;
17643
+ errorObj.Code = error63.Error?.Code;
17644
+ errorObj.Message = error63.Error?.message ?? error63.Error?.Message ?? msg;
17645
+ error63.Error = errorObj;
17646
+ const reqId = error63.$metadata.requestId;
17647
17647
  if (reqId) {
17648
- error62.RequestId = reqId;
17648
+ error63.RequestId = reqId;
17649
17649
  }
17650
- return error62;
17650
+ return error63;
17651
17651
  }
17652
17652
  return decorateServiceException(exception, additions);
17653
17653
  }
@@ -22038,13 +22038,13 @@ var require_dist_cjs8 = __commonJS({
22038
22038
  expiresAt: newTokenExpiration.toISOString(),
22039
22039
  refreshToken: newSsoOidcToken.refreshToken
22040
22040
  });
22041
- } catch (error62) {
22041
+ } catch (error63) {
22042
22042
  }
22043
22043
  return {
22044
22044
  token: newSsoOidcToken.accessToken,
22045
22045
  expiration: newTokenExpiration
22046
22046
  };
22047
- } catch (error62) {
22047
+ } catch (error63) {
22048
22048
  validateTokenExpiry(existingToken);
22049
22049
  return existingToken;
22050
22050
  }
@@ -25306,9 +25306,9 @@ var require_dist_cjs11 = __commonJS({
25306
25306
  };
25307
25307
  await this.saveToken(updatedToken);
25308
25308
  return this.toCredentials(updatedToken.accessToken);
25309
- } catch (error62) {
25310
- if (error62.name === "AccessDeniedException") {
25311
- const errorType = error62.error;
25309
+ } catch (error63) {
25310
+ if (error63.name === "AccessDeniedException") {
25311
+ const errorType = error63.error;
25312
25312
  let message2;
25313
25313
  switch (errorType) {
25314
25314
  case "TOKEN_EXPIRED":
@@ -25321,7 +25321,7 @@ var require_dist_cjs11 = __commonJS({
25321
25321
  message2 = "Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";
25322
25322
  break;
25323
25323
  default:
25324
- message2 = `Failed to refresh token: ${String(error62)}. Please re-authenticate using \`aws login\``;
25324
+ message2 = `Failed to refresh token: ${String(error63)}. Please re-authenticate using \`aws login\``;
25325
25325
  }
25326
25326
  throw new CredentialsProviderError2(message2, {
25327
25327
  logger: this.logger,
@@ -25330,10 +25330,10 @@ var require_dist_cjs11 = __commonJS({
25330
25330
  }
25331
25331
  const tokenExpiry2 = new Date(freshToken.accessToken.expiresAt).getTime();
25332
25332
  if (tokenExpiry2 > Date.now()) {
25333
- this.logger?.warn?.(`Failed to refresh token: ${String(error62)}. Using existing token until expiry.`);
25333
+ this.logger?.warn?.(`Failed to refresh token: ${String(error63)}. Using existing token until expiry.`);
25334
25334
  return this.toCredentials(freshToken.accessToken);
25335
25335
  }
25336
- throw new CredentialsProviderError2(`Failed to refresh token: ${String(error62)}. Please re-authenticate using aws login`, { logger: this.logger });
25336
+ throw new CredentialsProviderError2(`Failed to refresh token: ${String(error63)}. Please re-authenticate using aws login`, { logger: this.logger });
25337
25337
  }
25338
25338
  }
25339
25339
  async loadToken() {
@@ -25352,8 +25352,8 @@ var require_dist_cjs11 = __commonJS({
25352
25352
  });
25353
25353
  }
25354
25354
  return token;
25355
- } catch (error62) {
25356
- throw new CredentialsProviderError2(`Failed to load token from ${tokenFilePath}: ${String(error62)}`, {
25355
+ } catch (error63) {
25356
+ throw new CredentialsProviderError2(`Failed to load token from ${tokenFilePath}: ${String(error63)}`, {
25357
25357
  logger: this.logger,
25358
25358
  tryNextLink: false
25359
25359
  });
@@ -25364,7 +25364,7 @@ var require_dist_cjs11 = __commonJS({
25364
25364
  const directory = dirname(tokenFilePath);
25365
25365
  try {
25366
25366
  await promises.mkdir(directory, { recursive: true });
25367
- } catch (error62) {
25367
+ } catch (error63) {
25368
25368
  }
25369
25369
  await promises.writeFile(tokenFilePath, JSON.stringify(token, null, 2), "utf8");
25370
25370
  }
@@ -25455,8 +25455,8 @@ var require_dist_cjs11 = __commonJS({
25455
25455
  const rawSignature = this.derToRawSignature(asn1Signature);
25456
25456
  const signatureB64 = rawSignature.toString("base64url");
25457
25457
  return `${message2}.${signatureB64}`;
25458
- } catch (error62) {
25459
- throw new CredentialsProviderError2(`Failed to generate Dpop proof: ${error62 instanceof Error ? error62.message : String(error62)}`, { logger: this.logger, tryNextLink: false });
25458
+ } catch (error63) {
25459
+ throw new CredentialsProviderError2(`Failed to generate Dpop proof: ${error63 instanceof Error ? error63.message : String(error63)}`, { logger: this.logger, tryNextLink: false });
25460
25460
  }
25461
25461
  }
25462
25462
  };
@@ -25532,8 +25532,8 @@ var require_dist_cjs12 = __commonJS({
25532
25532
  throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
25533
25533
  }
25534
25534
  return getValidatedProcessCredentials(profileName, data, profiles);
25535
- } catch (error62) {
25536
- throw new CredentialsProviderError2(error62.message, { logger: logger2 });
25535
+ } catch (error63) {
25536
+ throw new CredentialsProviderError2(error63.message, { logger: logger2 });
25537
25537
  }
25538
25538
  } else {
25539
25539
  throw new CredentialsProviderError2(`Profile ${profileName} did not contain credential_process.`, { logger: logger2 });
@@ -26039,7 +26039,7 @@ var require_dist_cjs16 = __commonJS({
26039
26039
  Region: { type: "builtInParams", name: "region" },
26040
26040
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
26041
26041
  };
26042
- var version2 = "3.1128.0";
26042
+ var version2 = "3.1129.0";
26043
26043
  var packageInfo = {
26044
26044
  version: version2
26045
26045
  };
@@ -27817,7 +27817,7 @@ var require_dist_cjs17 = __commonJS({
27817
27817
  Region: { type: "builtInParams", name: "region" },
27818
27818
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
27819
27819
  };
27820
- var version2 = "3.1128.0";
27820
+ var version2 = "3.1129.0";
27821
27821
  var packageInfo = {
27822
27822
  version: version2
27823
27823
  };
@@ -42108,8 +42108,8 @@ var require_directives = __commonJS({
42108
42108
  if (prefix) {
42109
42109
  try {
42110
42110
  return prefix + decodeURIComponent(suffix);
42111
- } catch (error62) {
42112
- onError(String(error62));
42111
+ } catch (error63) {
42112
+ onError(String(error63));
42113
42113
  return null;
42114
42114
  }
42115
42115
  }
@@ -42211,9 +42211,9 @@ var require_anchors = __commonJS({
42211
42211
  if (typeof ref === "object" && ref.anchor && (identity.isScalar(ref.node) || identity.isCollection(ref.node))) {
42212
42212
  ref.node.anchor = ref.anchor;
42213
42213
  } else {
42214
- const error62 = new Error("Failed to resolve repeated object (this should not happen)");
42215
- error62.source = source;
42216
- throw error62;
42214
+ const error63 = new Error("Failed to resolve repeated object (this should not happen)");
42215
+ error63.source = source;
42216
+ throw error63;
42217
42217
  }
42218
42218
  }
42219
42219
  },
@@ -45461,12 +45461,12 @@ var require_errors = __commonJS({
45461
45461
  super("YAMLWarning", pos2, code, message2);
45462
45462
  }
45463
45463
  };
45464
- var prettifyError2 = (src, lc) => (error62) => {
45465
- if (error62.pos[0] === -1)
45464
+ var prettifyError2 = (src, lc) => (error63) => {
45465
+ if (error63.pos[0] === -1)
45466
45466
  return;
45467
- error62.linePos = error62.pos.map((pos2) => lc.linePos(pos2));
45468
- const { line, col } = error62.linePos[0];
45469
- error62.message += ` at line ${line}, column ${col}`;
45467
+ error63.linePos = error63.pos.map((pos2) => lc.linePos(pos2));
45468
+ const { line, col } = error63.linePos[0];
45469
+ error63.message += ` at line ${line}, column ${col}`;
45470
45470
  let ci = col - 1;
45471
45471
  let lineStr = src.substring(lc.lineStarts[line - 1], lc.lineStarts[line]).replace(/[\n\r]+$/, "");
45472
45472
  if (ci >= 60 && lineStr.length > 80) {
@@ -45484,12 +45484,12 @@ var require_errors = __commonJS({
45484
45484
  }
45485
45485
  if (/[^ ]/.test(lineStr)) {
45486
45486
  let count = 1;
45487
- const end2 = error62.linePos[1];
45487
+ const end2 = error63.linePos[1];
45488
45488
  if (end2?.line === line && end2.col > col) {
45489
45489
  count = Math.max(1, Math.min(end2.col - col, 80 - ci));
45490
45490
  }
45491
45491
  const pointer = " ".repeat(ci) + "^".repeat(count);
45492
- error62.message += `:
45492
+ error63.message += `:
45493
45493
 
45494
45494
  ${lineStr}
45495
45495
  ${pointer}
@@ -46292,7 +46292,7 @@ var require_resolve_block_scalar = __commonJS({
46292
46292
  const mode = source[0];
46293
46293
  let indent = 0;
46294
46294
  let chomp = "";
46295
- let error62 = -1;
46295
+ let error63 = -1;
46296
46296
  for (let i5 = 1; i5 < source.length; ++i5) {
46297
46297
  const ch = source[i5];
46298
46298
  if (!chomp && (ch === "-" || ch === "+"))
@@ -46301,12 +46301,12 @@ var require_resolve_block_scalar = __commonJS({
46301
46301
  const n3 = Number(ch);
46302
46302
  if (!indent && n3)
46303
46303
  indent = n3;
46304
- else if (error62 === -1)
46305
- error62 = offset + i5;
46304
+ else if (error63 === -1)
46305
+ error63 = offset + i5;
46306
46306
  }
46307
46307
  }
46308
- if (error62 !== -1)
46309
- onError(error62, "UNEXPECTED_TOKEN", `Block scalar header includes extra characters: ${source}`);
46308
+ if (error63 !== -1)
46309
+ onError(error63, "UNEXPECTED_TOKEN", `Block scalar header includes extra characters: ${source}`);
46310
46310
  let hasSpace = false;
46311
46311
  let comment = "";
46312
46312
  let length = source.length;
@@ -46601,8 +46601,8 @@ var require_compose_scalar = __commonJS({
46601
46601
  try {
46602
46602
  const res = tag2.resolve(value, (msg) => onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg), ctx.options);
46603
46603
  scalar = identity.isScalar(res) ? res : new Scalar.Scalar(res);
46604
- } catch (error62) {
46605
- const msg = error62 instanceof Error ? error62.message : String(error62);
46604
+ } catch (error63) {
46605
+ const msg = error63 instanceof Error ? error63.message : String(error63);
46606
46606
  onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg);
46607
46607
  scalar = new Scalar.Scalar(value);
46608
46608
  }
@@ -46725,8 +46725,8 @@ var require_compose_node = __commonJS({
46725
46725
  node2 = composeCollection.composeCollection(CN, ctx, token, props, onError);
46726
46726
  if (anchor2)
46727
46727
  node2.anchor = anchor2.source.substring(1);
46728
- } catch (error62) {
46729
- const message2 = error62 instanceof Error ? error62.message : String(error62);
46728
+ } catch (error63) {
46729
+ const message2 = error63 instanceof Error ? error63.message : String(error63);
46730
46730
  onError(token, "RESOURCE_EXHAUSTION", message2);
46731
46731
  }
46732
46732
  break;
@@ -46991,11 +46991,11 @@ ${cb}` : comment;
46991
46991
  break;
46992
46992
  case "error": {
46993
46993
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
46994
- const error62 = new errors.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
46994
+ const error63 = new errors.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
46995
46995
  if (this.atDirectives || !this.doc)
46996
- this.errors.push(error62);
46996
+ this.errors.push(error63);
46997
46997
  else
46998
- this.doc.errors.push(error62);
46998
+ this.doc.errors.push(error63);
46999
46999
  break;
47000
47000
  }
47001
47001
  case "doc-end": {
@@ -48308,8 +48308,8 @@ var require_parser = __commonJS({
48308
48308
  peek(n3) {
48309
48309
  return this.stack[this.stack.length - n3];
48310
48310
  }
48311
- *pop(error62) {
48312
- const token = error62 ?? this.stack.pop();
48311
+ *pop(error63) {
48312
+ const token = error63 ?? this.stack.pop();
48313
48313
  if (!token) {
48314
48314
  const message2 = "Tried to pop an empty stack";
48315
48315
  yield { type: "error", offset: this.offset, source: "", message: message2 };
@@ -49136,9 +49136,9 @@ var handle = (app, { isContentTypeBinary } = { isContentTypeBinary: void 0 }) =>
49136
49136
  try {
49137
49137
  req = processor.createRequest(event);
49138
49138
  requestContext = getRequestContext(event);
49139
- } catch (error62) {
49140
- console.error("Error processing request:", error62);
49141
- const errorResponse3 = error62 instanceof TypeError ? new Response("Invalid request", { status: 400 }) : new Response("Internal Server Error", { status: 500 });
49139
+ } catch (error63) {
49140
+ console.error("Error processing request:", error63);
49141
+ const errorResponse3 = error63 instanceof TypeError ? new Response("Invalid request", { status: 400 }) : new Response("Internal Server Error", { status: 500 });
49142
49142
  return processor.createResult(event, errorResponse3, { isContentTypeBinary });
49143
49143
  }
49144
49144
  const res = await app.fetch(req, {
@@ -51023,10 +51023,10 @@ function node(obj, key, make) {
51023
51023
  }
51024
51024
  return obj[key];
51025
51025
  }
51026
- function flattenError(error62, mapper = (issue2) => issue2.message) {
51026
+ function flattenError(error63, mapper = (issue2) => issue2.message) {
51027
51027
  const fieldErrors = {};
51028
51028
  const formErrors = [];
51029
- for (const sub of error62.issues) {
51029
+ for (const sub of error63.issues) {
51030
51030
  if (sub.path.length > 0) {
51031
51031
  node(fieldErrors, sub.path[0], () => []).push(mapper(sub));
51032
51032
  } else {
@@ -51035,10 +51035,10 @@ function flattenError(error62, mapper = (issue2) => issue2.message) {
51035
51035
  }
51036
51036
  return { formErrors, fieldErrors };
51037
51037
  }
51038
- function formatError(error62, mapper = (issue2) => issue2.message) {
51038
+ function formatError(error63, mapper = (issue2) => issue2.message) {
51039
51039
  const fieldErrors = { _errors: [] };
51040
- const processError = (error63, path = []) => {
51041
- for (const issue2 of error63.issues) {
51040
+ const processError = (error64, path = []) => {
51041
+ for (const issue2 of error64.issues) {
51042
51042
  if (issue2.code === "invalid_union" && issue2.errors.length) {
51043
51043
  issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
51044
51044
  } else if (issue2.code === "invalid_key") {
@@ -51080,14 +51080,14 @@ function formatError(error62, mapper = (issue2) => issue2.message) {
51080
51080
  }
51081
51081
  }
51082
51082
  };
51083
- processError(error62);
51083
+ processError(error63);
51084
51084
  return fieldErrors;
51085
51085
  }
51086
- function treeifyError(error62, mapper = (issue2) => issue2.message) {
51086
+ function treeifyError(error63, mapper = (issue2) => issue2.message) {
51087
51087
  const result = { errors: [] };
51088
- const processError = (error63, path = []) => {
51088
+ const processError = (error64, path = []) => {
51089
51089
  var _a4;
51090
- for (const issue2 of error63.issues) {
51090
+ for (const issue2 of error64.issues) {
51091
51091
  if (issue2.code === "invalid_union" && issue2.errors.length) {
51092
51092
  issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
51093
51093
  } else if (issue2.code === "invalid_key") {
@@ -51129,7 +51129,7 @@ function treeifyError(error62, mapper = (issue2) => issue2.message) {
51129
51129
  }
51130
51130
  }
51131
51131
  };
51132
- processError(error62);
51132
+ processError(error63);
51133
51133
  return result;
51134
51134
  }
51135
51135
  function toDotPath(_path) {
@@ -51150,9 +51150,9 @@ function toDotPath(_path) {
51150
51150
  }
51151
51151
  return segs.join("");
51152
51152
  }
51153
- function prettifyError(error62) {
51153
+ function prettifyError(error63) {
51154
51154
  const lines = [];
51155
- const issues = [...error62.issues].sort((a5, b5) => (a5.path ?? []).length - (b5.path ?? []).length);
51155
+ const issues = [...error63.issues].sort((a5, b5) => (a5.path ?? []).length - (b5.path ?? []).length);
51156
51156
  for (const issue2 of issues) {
51157
51157
  lines.push(`\u2716 ${issue2.message}`);
51158
51158
  if (issue2.path?.length)
@@ -51208,19 +51208,19 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
51208
51208
  };
51209
51209
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
51210
51210
  function failure(Err, issues, ctx) {
51211
- let error62;
51211
+ let error63;
51212
51212
  return {
51213
51213
  success: false,
51214
51214
  get error() {
51215
- if (!error62) {
51216
- error62 = new Err(issues.map((iss) => finalizeIssue(iss, ctx, config())));
51215
+ if (!error63) {
51216
+ error63 = new Err(issues.map((iss) => finalizeIssue(iss, ctx, config())));
51217
51217
  issues = void 0;
51218
51218
  ctx = void 0;
51219
51219
  }
51220
- return error62;
51220
+ return error63;
51221
51221
  },
51222
51222
  set error(e5) {
51223
- error62 = e5;
51223
+ error63 = e5;
51224
51224
  issues = void 0;
51225
51225
  ctx = void 0;
51226
51226
  }
@@ -51984,7 +51984,7 @@ ${content.join("\n")}
51984
51984
  var version = {
51985
51985
  major: 4,
51986
51986
  minor: 6,
51987
- patch: 0
51987
+ patch: 1
51988
51988
  };
51989
51989
 
51990
51990
  // node_modules/zod/v4/core/schemas.js
@@ -53197,16 +53197,31 @@ function getDiscriminatedOption(union2, value) {
53197
53197
  const internals = union2._zod;
53198
53198
  let map4 = internals.bag.optionsMap;
53199
53199
  if (!map4) {
53200
- map4 = /* @__PURE__ */ new Map();
53201
- const { options, discriminator } = internals.def;
53202
- for (const option of options) {
53203
- for (const v of option._zod.propValues?.[discriminator] ?? [])
53204
- if (!map4.has(v))
53205
- map4.set(v, option);
53206
- }
53200
+ map4 = discriminatorMap(internals.def);
53207
53201
  internals.bag.optionsMap = map4;
53208
53202
  }
53209
- return map4.get(value);
53203
+ const option = map4.get(value);
53204
+ if (option === null)
53205
+ throw new Error(`Ambiguous discriminator value "${String(value)}"`);
53206
+ return option;
53207
+ }
53208
+ function discriminatorMap(def) {
53209
+ const map4 = /* @__PURE__ */ new Map();
53210
+ for (const option of def.options) {
53211
+ const values = option._zod.propValues?.[def.discriminator];
53212
+ if (!values || values.size === 0)
53213
+ throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
53214
+ for (const value of values) {
53215
+ if (map4.has(value)) {
53216
+ if (value !== void 0)
53217
+ throw new Error(`Duplicate discriminator value "${String(value)}"`);
53218
+ map4.set(value, null);
53219
+ } else {
53220
+ map4.set(value, option);
53221
+ }
53222
+ }
53223
+ }
53224
+ return map4;
53210
53225
  }
53211
53226
  var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
53212
53227
  def.inclusive = false;
@@ -53214,10 +53229,13 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
53214
53229
  const _super = inst._zod.parse;
53215
53230
  defineLazyInternal(inst, "propValues", (zod) => {
53216
53231
  const propValues = {};
53232
+ let undefinedCount = 0;
53217
53233
  for (const option of zod.def.options) {
53218
53234
  const pv = option._zod.propValues;
53219
53235
  if (!pv || Object.keys(pv).length === 0)
53220
53236
  throw new Error(`Invalid discriminated union option at index "${zod.def.options.indexOf(option)}"`);
53237
+ if (pv[zod.def.discriminator]?.has(void 0))
53238
+ undefinedCount++;
53221
53239
  for (const [k5, v] of Object.entries(pv)) {
53222
53240
  if (!Object.prototype.hasOwnProperty.call(propValues, k5)) {
53223
53241
  assignProp(propValues, k5, /* @__PURE__ */ new Set());
@@ -53227,6 +53245,8 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
53227
53245
  }
53228
53246
  }
53229
53247
  }
53248
+ if (!zod.def.unionFallback && undefinedCount > 1)
53249
+ propValues[zod.def.discriminator]?.delete(void 0);
53230
53250
  return propValues;
53231
53251
  });
53232
53252
  def.options.forEach((option, i5) => {
@@ -53235,22 +53255,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
53235
53255
  throw new Error(`Invalid discriminated union option at index "${i5}"`);
53236
53256
  }
53237
53257
  });
53238
- const disc = cached(() => {
53239
- const opts = def.options;
53240
- const map4 = /* @__PURE__ */ new Map();
53241
- for (const o3 of opts) {
53242
- const values = o3._zod.propValues?.[def.discriminator];
53243
- if (!values || values.size === 0)
53244
- throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o3)}"`);
53245
- for (const v of values) {
53246
- if (map4.has(v)) {
53247
- throw new Error(`Duplicate discriminator value "${String(v)}"`);
53248
- }
53249
- map4.set(v, o3);
53250
- }
53251
- }
53252
- return map4;
53253
- });
53258
+ const disc = cached(() => discriminatorMap(def));
53254
53259
  inst._zod.parse = (payload2, ctx) => {
53255
53260
  const input2 = payload2.value;
53256
53261
  if (!isObject(input2)) {
@@ -53262,8 +53267,9 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
53262
53267
  });
53263
53268
  return payload2;
53264
53269
  }
53265
- const opt = disc.value.get(input2?.[def.discriminator]);
53266
- if (opt) {
53270
+ const value = input2?.[def.discriminator];
53271
+ const opt = disc.value.get(value);
53272
+ if (opt && (value !== void 0 || ctx.direction !== "backward")) {
53267
53273
  return opt._zod.run(payload2, ctx);
53268
53274
  }
53269
53275
  if (def.unionFallback || ctx.direction === "backward") {
@@ -53274,7 +53280,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
53274
53280
  errors: [],
53275
53281
  note: "No matching discriminator",
53276
53282
  discriminator: def.discriminator,
53277
- options: Array.from(disc.value.keys()),
53283
+ options: Array.from(disc.value.keys()).filter((value2) => disc.value.get(value2) !== null),
53278
53284
  input: input2,
53279
53285
  path: [def.discriminator],
53280
53286
  inst
@@ -54762,6 +54768,7 @@ __export(locales_exports, {
54762
54768
  sl: () => sl_default,
54763
54769
  sv: () => sv_default,
54764
54770
  ta: () => ta_default,
54771
+ tg: () => tg_default,
54765
54772
  th: () => th_default,
54766
54773
  tk: () => tk_default,
54767
54774
  tr: () => tr_default,
@@ -60968,8 +60975,124 @@ function ta_default() {
60968
60975
  };
60969
60976
  }
60970
60977
 
60971
- // node_modules/zod/v4/locales/th.js
60978
+ // node_modules/zod/v4/locales/tg.js
60972
60979
  var error51 = () => {
60980
+ const Sizable = {
60981
+ string: { unit: "\u0430\u043B\u043E\u043C\u0430\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
60982
+ file: { unit: "\u0431\u0430\u0439\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
60983
+ array: { unit: "\u0443\u043D\u0441\u0443\u0440", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
60984
+ set: { unit: "\u0443\u043D\u0441\u0443\u0440", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
60985
+ map: { unit: "\u0441\u0430\u0431\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" }
60986
+ };
60987
+ function getSizing(origin) {
60988
+ return Sizable[origin] ?? null;
60989
+ }
60990
+ const FormatDictionary = {
60991
+ regex: "\u0432\u0443\u0440\u0443\u0434",
60992
+ email: "\u0441\u0443\u0440\u043E\u0493\u0430\u0438 email",
60993
+ url: "URL",
60994
+ emoji: "\u044D\u043C\u043E\u04B7\u0438",
60995
+ uuid: "UUID",
60996
+ uuidv4: "UUIDv4",
60997
+ uuidv6: "UUIDv6",
60998
+ nanoid: "nanoid",
60999
+ guid: "GUID",
61000
+ cuid: "cuid",
61001
+ cuid2: "cuid2",
61002
+ ulid: "ULID",
61003
+ xid: "XID",
61004
+ ksuid: "KSUID",
61005
+ datetime: "\u0441\u0430\u043D\u0430\u0432\u0443 \u0432\u0430\u049B\u0442\u0438 ISO",
61006
+ date: "\u0441\u0430\u043D\u0430\u0438 ISO",
61007
+ time: "\u0432\u0430\u049B\u0442\u0438 ISO",
61008
+ duration: "\u0434\u0430\u0432\u043E\u043C\u043D\u043E\u043A\u0438\u0438 ISO",
61009
+ ipv4: "\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv4",
61010
+ ipv6: "\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv6",
61011
+ mac: "\u0441\u0443\u0440\u043E\u0493\u0430\u0438 MAC",
61012
+ cidrv4: "\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv4",
61013
+ cidrv6: "\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv6",
61014
+ base64: "\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64",
61015
+ base64url: "\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64url",
61016
+ json_string: "\u0441\u0430\u0442\u0440\u0438 JSON",
61017
+ e164: "\u0440\u0430\u049B\u0430\u043C\u0438 E.164",
61018
+ credit_card: "\u0440\u0430\u049B\u0430\u043C\u0438 \u043A\u043E\u0440\u0442\u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u04E3",
61019
+ iban: "IBAN",
61020
+ jwt: "JWT",
61021
+ template_literal: "\u0432\u0443\u0440\u0443\u0434"
61022
+ };
61023
+ const TypeDictionary = {
61024
+ nan: "NaN",
61025
+ number: "\u0440\u0430\u049B\u0430\u043C",
61026
+ string: "\u0441\u0430\u0442\u0440",
61027
+ array: "\u043C\u0430\u0441\u0441\u0438\u0432",
61028
+ object: "\u043E\u0431\u044A\u0435\u043A\u0442",
61029
+ date: "\u0441\u0430\u043D\u0430"
61030
+ };
61031
+ return (issue2) => {
61032
+ switch (issue2.code) {
61033
+ case "invalid_type": {
61034
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
61035
+ const receivedType = parsedType(issue2.input);
61036
+ const received = TypeDictionary[receivedType] ?? receivedType;
61037
+ return `\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${expected} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442, ${received} \u0433\u0438\u0440\u0438\u0444\u0442\u0430 \u0448\u0443\u0434`;
61038
+ }
61039
+ case "invalid_value":
61040
+ if (issue2.values.length === 1)
61041
+ return `\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${stringifyPrimitive(issue2.values[0])} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;
61042
+ return `\u0418\u043D\u0442\u0438\u0445\u043E\u0431\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u044F\u043A\u0435 \u0430\u0437 ${joinValues(issue2.values, "|")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;
61043
+ case "too_big": {
61044
+ const adj = issue2.inclusive ? "<=" : "<";
61045
+ const sizing = getSizing(issue2.origin);
61046
+ if (sizing)
61047
+ return `\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${issue2.origin ?? "\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${adj}${issue2.maximum.toString()} ${sizing.unit} ${sizing.verb}`;
61048
+ return `\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${issue2.origin ?? "\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${adj}${issue2.maximum.toString()} \u0431\u043E\u0448\u0430\u0434`;
61049
+ }
61050
+ case "too_small": {
61051
+ const adj = issue2.inclusive ? ">=" : ">";
61052
+ const sizing = getSizing(issue2.origin);
61053
+ if (sizing)
61054
+ return `\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${issue2.origin} \u0431\u043E\u044F\u0434 ${adj}${issue2.minimum.toString()} ${sizing.unit} ${sizing.verb}`;
61055
+ return `\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${issue2.origin} \u0431\u043E\u044F\u0434 ${adj}${issue2.minimum.toString()} \u0431\u043E\u0448\u0430\u0434`;
61056
+ }
61057
+ case "invalid_format": {
61058
+ const _issue = issue2;
61059
+ if (_issue.format === "starts_with")
61060
+ return `\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${_issue.prefix}" \u043E\u0493\u043E\u0437 \u0448\u0430\u0432\u0430\u0434`;
61061
+ if (_issue.format === "ends_with")
61062
+ return `\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${_issue.suffix}" \u0430\u043D\u04B7\u043E\u043C \u0451\u0431\u0430\u0434`;
61063
+ if (_issue.format === "includes")
61064
+ return `\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 "${_issue.includes}"-\u0440\u043E \u0434\u0430\u0440 \u0431\u0430\u0440 \u0433\u0438\u0440\u0430\u0434`;
61065
+ if (_issue.format === "regex")
61066
+ return `\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 \u043D\u0430\u043C\u0443\u043D\u0430\u0438 ${_issue.pattern} \u043C\u0443\u0432\u043E\u0444\u0438\u049B\u0430\u0442 \u043A\u0443\u043D\u0430\u0434`;
61067
+ return `${FormatDictionary[_issue.format] ?? issue2.format}-\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442`;
61068
+ }
61069
+ case "not_multiple_of":
61070
+ return `\u0420\u0430\u049B\u0430\u043C\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 ${issue2.divisor} \u0431\u0435 \u0431\u0430\u049B\u0438\u044F \u0442\u0430\u049B\u0441\u0438\u043C \u0448\u0430\u0432\u0430\u0434`;
61071
+ case "unrecognized_keys":
61072
+ return `\u041A\u0430\u043B\u0438\u0434${issue2.keys.length > 1 ? "\u04B3\u043E\u0438" : "\u0438"} \u043D\u043E\u043C\u0430\u044A\u043B\u0443\u043C: ${joinValues(issue2.keys, ", ")}`;
61073
+ case "invalid_key":
61074
+ return `\u041A\u0430\u043B\u0438\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${issue2.origin}`;
61075
+ case "invalid_union":
61076
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
61077
+ const opts = issue2.options.map((o3) => `'${o3}'`).join(" | ");
61078
+ return `\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442\u0438 \u0434\u0438\u0441\u043A\u0440\u0438\u043C\u0438\u043D\u0430\u0442\u043E\u0440: ${opts} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;
61079
+ }
61080
+ return "\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442";
61081
+ case "invalid_element":
61082
+ return `\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${issue2.origin}`;
61083
+ default:
61084
+ return `\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442`;
61085
+ }
61086
+ };
61087
+ };
61088
+ function tg_default() {
61089
+ return {
61090
+ localeError: error51()
61091
+ };
61092
+ }
61093
+
61094
+ // node_modules/zod/v4/locales/th.js
61095
+ var error52 = () => {
60973
61096
  const Sizable = {
60974
61097
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
60975
61098
  file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -61079,12 +61202,12 @@ var error51 = () => {
61079
61202
  };
61080
61203
  function th_default() {
61081
61204
  return {
61082
- localeError: error51()
61205
+ localeError: error52()
61083
61206
  };
61084
61207
  }
61085
61208
 
61086
61209
  // node_modules/zod/v4/locales/tk.js
61087
- var error52 = () => {
61210
+ var error53 = () => {
61088
61211
  const Sizable = {
61089
61212
  string: { unit: "simwol", verb: "bolmaly" },
61090
61213
  file: { unit: "ba\xFDt", verb: "bolmaly" },
@@ -61186,12 +61309,12 @@ var error52 = () => {
61186
61309
  };
61187
61310
  function tk_default() {
61188
61311
  return {
61189
- localeError: error52()
61312
+ localeError: error53()
61190
61313
  };
61191
61314
  }
61192
61315
 
61193
61316
  // node_modules/zod/v4/locales/tr.js
61194
- var error53 = () => {
61317
+ var error54 = () => {
61195
61318
  const Sizable = {
61196
61319
  string: { unit: "karakter", verb: "olmal\u0131" },
61197
61320
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -61296,12 +61419,12 @@ var error53 = () => {
61296
61419
  };
61297
61420
  function tr_default() {
61298
61421
  return {
61299
- localeError: error53()
61422
+ localeError: error54()
61300
61423
  };
61301
61424
  }
61302
61425
 
61303
61426
  // node_modules/zod/v4/locales/uk.js
61304
- var error54 = () => {
61427
+ var error55 = () => {
61305
61428
  const Sizable = {
61306
61429
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
61307
61430
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -61409,7 +61532,7 @@ var error54 = () => {
61409
61532
  };
61410
61533
  function uk_default() {
61411
61534
  return {
61412
- localeError: error54()
61535
+ localeError: error55()
61413
61536
  };
61414
61537
  }
61415
61538
 
@@ -61419,7 +61542,7 @@ function ua_default() {
61419
61542
  }
61420
61543
 
61421
61544
  // node_modules/zod/v4/locales/ur.js
61422
- var error55 = () => {
61545
+ var error56 = () => {
61423
61546
  const Sizable = {
61424
61547
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
61425
61548
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -61529,12 +61652,12 @@ var error55 = () => {
61529
61652
  };
61530
61653
  function ur_default() {
61531
61654
  return {
61532
- localeError: error55()
61655
+ localeError: error56()
61533
61656
  };
61534
61657
  }
61535
61658
 
61536
61659
  // node_modules/zod/v4/locales/uz.js
61537
- var error56 = () => {
61660
+ var error57 = () => {
61538
61661
  const Sizable = {
61539
61662
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
61540
61663
  file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
@@ -61642,12 +61765,12 @@ var error56 = () => {
61642
61765
  };
61643
61766
  function uz_default() {
61644
61767
  return {
61645
- localeError: error56()
61768
+ localeError: error57()
61646
61769
  };
61647
61770
  }
61648
61771
 
61649
61772
  // node_modules/zod/v4/locales/vi.js
61650
- var error57 = () => {
61773
+ var error58 = () => {
61651
61774
  const Sizable = {
61652
61775
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
61653
61776
  file: { unit: "byte", verb: "c\xF3" },
@@ -61755,12 +61878,12 @@ var error57 = () => {
61755
61878
  };
61756
61879
  function vi_default() {
61757
61880
  return {
61758
- localeError: error57()
61881
+ localeError: error58()
61759
61882
  };
61760
61883
  }
61761
61884
 
61762
61885
  // node_modules/zod/v4/locales/zh-CN.js
61763
- var error58 = () => {
61886
+ var error59 = () => {
61764
61887
  const Sizable = {
61765
61888
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
61766
61889
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -61869,12 +61992,12 @@ var error58 = () => {
61869
61992
  };
61870
61993
  function zh_CN_default() {
61871
61994
  return {
61872
- localeError: error58()
61995
+ localeError: error59()
61873
61996
  };
61874
61997
  }
61875
61998
 
61876
61999
  // node_modules/zod/v4/locales/zh-TW.js
61877
- var error59 = () => {
62000
+ var error60 = () => {
61878
62001
  const Sizable = {
61879
62002
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
61880
62003
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -61981,12 +62104,12 @@ var error59 = () => {
61981
62104
  };
61982
62105
  function zh_TW_default() {
61983
62106
  return {
61984
- localeError: error59()
62107
+ localeError: error60()
61985
62108
  };
61986
62109
  }
61987
62110
 
61988
62111
  // node_modules/zod/v4/locales/yo.js
61989
- var error60 = () => {
62112
+ var error61 = () => {
61990
62113
  const Sizable = {
61991
62114
  string: { unit: "\xE0mi", verb: "n\xED" },
61992
62115
  file: { unit: "bytes", verb: "n\xED" },
@@ -62093,7 +62216,7 @@ var error60 = () => {
62093
62216
  };
62094
62217
  function yo_default() {
62095
62218
  return {
62096
- localeError: error60()
62219
+ localeError: error61()
62097
62220
  };
62098
62221
  }
62099
62222
 
@@ -69563,8 +69686,8 @@ async function adapterRouteResponse(result) {
69563
69686
  headers.set("content-type", "application/json; charset=utf-8");
69564
69687
  return { response: new Response(JSON.stringify(envelope), { status: 200, headers }), envelope };
69565
69688
  }
69566
- function safeNetworkCode(error62) {
69567
- const code = error62 && typeof error62 === "object" ? error62.code : void 0;
69689
+ function safeNetworkCode(error63) {
69690
+ const code = error63 && typeof error63 === "object" ? error63.code : void 0;
69568
69691
  return code === "ECONNREFUSED" || code === "ENOTFOUND" || code === "ETIMEDOUT" || code === "EAI_AGAIN" ? code : void 0;
69569
69692
  }
69570
69693
  function passthroughHeaders(upstream) {
@@ -69632,14 +69755,14 @@ async function fetchAzureDevOpsPipeline(args) {
69632
69755
  let upstream;
69633
69756
  try {
69634
69757
  upstream = await args.fetcher(call.url, { headers: call.headers });
69635
- } catch (error62) {
69758
+ } catch (error63) {
69636
69759
  return {
69637
69760
  response: errorResponse(
69638
- errorEnvelope(panel.id, "unreachable", error62, sourceLink(panel.pipeline, source))
69761
+ errorEnvelope(panel.id, "unreachable", error63, sourceLink(panel.pipeline, source))
69639
69762
  ),
69640
69763
  failure: {
69641
69764
  kind: "unreachable",
69642
- ...safeNetworkCode(error62) ? { networkCode: safeNetworkCode(error62) } : {}
69765
+ ...safeNetworkCode(error63) ? { networkCode: safeNetworkCode(error63) } : {}
69643
69766
  }
69644
69767
  };
69645
69768
  }
@@ -69704,13 +69827,13 @@ async function fetchAzureDevOpsPipeline(args) {
69704
69827
  },
69705
69828
  response: upstream
69706
69829
  };
69707
- } catch (error62) {
69830
+ } catch (error63) {
69708
69831
  return {
69709
69832
  response: errorResponse(
69710
69833
  errorEnvelope(
69711
69834
  panel.id,
69712
69835
  "upstream-error",
69713
- error62,
69836
+ error63,
69714
69837
  sourceLink(panel.pipeline, source),
69715
69838
  observedAt2(upstream.headers.get("date"))
69716
69839
  )
@@ -69817,8 +69940,8 @@ function sourceLink(definitionId, source) {
69817
69940
  function errorResponse(envelope) {
69818
69941
  return upstreamErrorResponse(envelope);
69819
69942
  }
69820
- function errorEnvelope(panelId, kind, error62, link, date6) {
69821
- return upstreamErrorEnvelope({ panelId, kind, error: error62, link, upstreamDate: date6 });
69943
+ function errorEnvelope(panelId, kind, error63, link, date6) {
69944
+ return upstreamErrorEnvelope({ panelId, kind, error: error63, link, upstreamDate: date6 });
69822
69945
  }
69823
69946
  function errorKind(status) {
69824
69947
  return upstreamErrorKind(status);
@@ -69905,8 +70028,8 @@ function createGithubClient(credentials, now = Date.now) {
69905
70028
  const exchange = exchangeInstallationToken({ appId, privateKey, installationId, fetcher, now }).then(({ token, expiresAt }) => {
69906
70029
  tokens.set(cacheKey, { token, expiresAt });
69907
70030
  return token;
69908
- }).catch((error62) => {
69909
- if (error62 instanceof GithubAuthenticationError) throw error62;
70031
+ }).catch((error63) => {
70032
+ if (error63 instanceof GithubAuthenticationError) throw error63;
69910
70033
  throw new GithubAuthenticationError();
69911
70034
  });
69912
70035
  pending2.set(cacheKey, exchange);
@@ -70152,22 +70275,22 @@ async function githubObservation(args, source, call, normalize) {
70152
70275
  let upstream;
70153
70276
  try {
70154
70277
  upstream = await githubFetch(call, { ...args, source, githubClient: githubClientFor(args) });
70155
- } catch (error62) {
70278
+ } catch (error63) {
70156
70279
  return {
70157
70280
  response: new Response(
70158
70281
  JSON.stringify(
70159
70282
  errorEnvelope2(
70160
70283
  args.panel.id,
70161
- error62 instanceof GithubAuthenticationError ? "unauthorized" : "unreachable",
70162
- error62,
70284
+ error63 instanceof GithubAuthenticationError ? "unauthorized" : "unreachable",
70285
+ error63,
70163
70286
  sourceLinkForRepository(source)
70164
70287
  )
70165
70288
  ),
70166
70289
  { status: 200 }
70167
70290
  ),
70168
70291
  failure: {
70169
- kind: error62 instanceof GithubAuthenticationError ? "unauthorized" : "unreachable",
70170
- ...safeNetworkCode(error62) ? { networkCode: safeNetworkCode(error62) } : {}
70292
+ kind: error63 instanceof GithubAuthenticationError ? "unauthorized" : "unreachable",
70293
+ ...safeNetworkCode(error63) ? { networkCode: safeNetworkCode(error63) } : {}
70171
70294
  }
70172
70295
  };
70173
70296
  }
@@ -70193,14 +70316,14 @@ async function githubObservation(args, source, call, normalize) {
70193
70316
  envelope: normalize(await upstream.json(), observedAt3(upstream.headers.get("date"))),
70194
70317
  response: upstream
70195
70318
  };
70196
- } catch (error62) {
70319
+ } catch (error63) {
70197
70320
  return {
70198
70321
  response: new Response(
70199
70322
  JSON.stringify(
70200
70323
  errorEnvelope2(
70201
70324
  args.panel.id,
70202
70325
  "upstream-error",
70203
- error62,
70326
+ error63,
70204
70327
  sourceLinkForRepository(source),
70205
70328
  observedAt3(upstream.headers.get("date"))
70206
70329
  )
@@ -70251,22 +70374,22 @@ async function fetchGithubActionsPipeline(args) {
70251
70374
  source: parsedSource,
70252
70375
  githubClient: githubClientFor(args)
70253
70376
  });
70254
- } catch (error62) {
70377
+ } catch (error63) {
70255
70378
  return {
70256
70379
  response: new Response(
70257
70380
  JSON.stringify(
70258
70381
  errorEnvelope2(
70259
70382
  args.panel.id,
70260
- error62 instanceof GithubAuthenticationError ? "unauthorized" : "unreachable",
70261
- error62,
70383
+ error63 instanceof GithubAuthenticationError ? "unauthorized" : "unreachable",
70384
+ error63,
70262
70385
  sourceLink2(args.panel, args.source)
70263
70386
  )
70264
70387
  ),
70265
70388
  { status: 200 }
70266
70389
  ),
70267
70390
  failure: {
70268
- kind: error62 instanceof GithubAuthenticationError ? "unauthorized" : "unreachable",
70269
- ...safeNetworkCode(error62) ? { networkCode: safeNetworkCode(error62) } : {}
70391
+ kind: error63 instanceof GithubAuthenticationError ? "unauthorized" : "unreachable",
70392
+ ...safeNetworkCode(error63) ? { networkCode: safeNetworkCode(error63) } : {}
70270
70393
  }
70271
70394
  };
70272
70395
  }
@@ -70337,14 +70460,14 @@ async function fetchGithubActionsPipeline(args) {
70337
70460
  signal
70338
70461
  };
70339
70462
  return { envelope, response: upstream };
70340
- } catch (error62) {
70463
+ } catch (error63) {
70341
70464
  return {
70342
70465
  response: new Response(
70343
70466
  JSON.stringify(
70344
70467
  errorEnvelope2(
70345
70468
  args.panel.id,
70346
70469
  "upstream-error",
70347
- error62,
70470
+ error63,
70348
70471
  sourceLink2(args.panel, args.source),
70349
70472
  observedAt3(upstream.headers.get("date"))
70350
70473
  )
@@ -70406,8 +70529,8 @@ function normalizeStatus2(status, conclusion) {
70406
70529
  function errorKind2(status) {
70407
70530
  return upstreamErrorKind(status);
70408
70531
  }
70409
- function errorEnvelope2(panelId, kind, error62, link, observedAt4 = (/* @__PURE__ */ new Date()).toISOString()) {
70410
- return upstreamErrorEnvelope({ panelId, kind, error: error62, link, upstreamDate: observedAt4 });
70532
+ function errorEnvelope2(panelId, kind, error63, link, observedAt4 = (/* @__PURE__ */ new Date()).toISOString()) {
70533
+ return upstreamErrorEnvelope({ panelId, kind, error: error63, link, upstreamDate: observedAt4 });
70411
70534
  }
70412
70535
  function sourceLink2(panel, source) {
70413
70536
  const parsedPanel = pipelinePanelSchema2.parse(panel);
@@ -70454,10 +70577,10 @@ async function fetchGitlabCiPipeline(args) {
70454
70577
  let upstream;
70455
70578
  try {
70456
70579
  upstream = await args.fetcher(call.url, { headers: call.headers });
70457
- } catch (error62) {
70458
- return failure2(panel.id, "unreachable", error62, sourceLink3(source), void 0, {
70580
+ } catch (error63) {
70581
+ return failure2(panel.id, "unreachable", error63, sourceLink3(source), void 0, {
70459
70582
  kind: "unreachable",
70460
- ...safeNetworkCode(error62) ? { networkCode: safeNetworkCode(error62) } : {}
70583
+ ...safeNetworkCode(error63) ? { networkCode: safeNetworkCode(error63) } : {}
70461
70584
  });
70462
70585
  }
70463
70586
  if (upstream.status === 304) return { response: upstream };
@@ -70506,11 +70629,11 @@ async function fetchGitlabCiPipeline(args) {
70506
70629
  signal
70507
70630
  };
70508
70631
  return { envelope, response: upstream };
70509
- } catch (error62) {
70632
+ } catch (error63) {
70510
70633
  return failure2(
70511
70634
  panel.id,
70512
70635
  "upstream-error",
70513
- error62,
70636
+ error63,
70514
70637
  sourceLink3(source),
70515
70638
  upstream.headers.get("date"),
70516
70639
  { kind: "upstream-error", upstreamStatus: upstream.status }
@@ -70542,10 +70665,10 @@ function timestamp3(value) {
70542
70665
  if (!value || !external_exports.iso.datetime().safeParse(value).success) return void 0;
70543
70666
  return Number.isFinite(new Date(value).valueOf()) ? value : void 0;
70544
70667
  }
70545
- function failure2(panelId, kind, error62, link, date6, failure3) {
70668
+ function failure2(panelId, kind, error63, link, date6, failure3) {
70546
70669
  return {
70547
70670
  response: upstreamErrorResponse(
70548
- upstreamErrorEnvelope({ panelId, kind, error: error62, link, upstreamDate: date6 })
70671
+ upstreamErrorEnvelope({ panelId, kind, error: error63, link, upstreamDate: date6 })
70549
70672
  ),
70550
70673
  ...failure3 ? { failure: failure3 } : { failure: { kind } }
70551
70674
  };
@@ -70569,12 +70692,12 @@ async function fetchHttpValue(args) {
70569
70692
  let upstream;
70570
70693
  try {
70571
70694
  upstream = await args.fetcher(call.url, { headers: call.headers });
70572
- } catch (error62) {
70695
+ } catch (error63) {
70573
70696
  return {
70574
- response: errorResponse2("unreachable", error62, panel),
70697
+ response: errorResponse2("unreachable", error63, panel),
70575
70698
  failure: {
70576
70699
  kind: "unreachable",
70577
- ...safeNetworkCode(error62) ? { networkCode: safeNetworkCode(error62) } : {}
70700
+ ...safeNetworkCode(error63) ? { networkCode: safeNetworkCode(error63) } : {}
70578
70701
  }
70579
70702
  };
70580
70703
  }
@@ -70604,9 +70727,9 @@ async function fetchHttpValue(args) {
70604
70727
  },
70605
70728
  response: upstream
70606
70729
  };
70607
- } catch (error62) {
70730
+ } catch (error63) {
70608
70731
  return {
70609
- response: errorResponse2("upstream-error", error62, panel, upstream),
70732
+ response: errorResponse2("upstream-error", error63, panel, upstream),
70610
70733
  failure: { kind: "upstream-error", upstreamStatus: upstream.status }
70611
70734
  };
70612
70735
  }
@@ -70655,12 +70778,12 @@ function extractJsonPath(value, path) {
70655
70778
  }
70656
70779
  return current;
70657
70780
  }
70658
- function errorResponse2(kind, error62, panel, response) {
70781
+ function errorResponse2(kind, error63, panel, response) {
70659
70782
  return upstreamErrorResponse(
70660
70783
  upstreamErrorEnvelope({
70661
70784
  panelId: panel.id,
70662
70785
  kind,
70663
- error: error62,
70786
+ error: error63,
70664
70787
  link: panel.link ?? panel.url,
70665
70788
  upstreamDate: response?.headers.get("date")
70666
70789
  })
@@ -70690,8 +70813,8 @@ function boardConfigurationLocation(config2, path) {
70690
70813
  }
70691
70814
  return configurationLocation(path);
70692
70815
  }
70693
- function schemaDiagnostics(error62, locate, kind = "schema") {
70694
- return error62.issues.map((issue2) => ({
70816
+ function schemaDiagnostics(error63, locate, kind = "schema") {
70817
+ return error63.issues.map((issue2) => ({
70695
70818
  kind,
70696
70819
  location: locate(issue2.path),
70697
70820
  constraint: correctiveConstraint(issue2)
@@ -70737,13 +70860,13 @@ function derive(config2, rejectUnsupported) {
70737
70860
  }
70738
70861
  if (capability.kind === "server")
70739
70862
  allowed.set(`${boardName}/${panel.id}`, new Set(capability.operations));
70740
- } catch (error62) {
70863
+ } catch (error63) {
70741
70864
  if (rejectUnsupported) {
70742
70865
  const location = `boards[${Object.keys(config2.boards).indexOf(boardName)}].panels[${board.panels.indexOf(panel)}]`;
70743
70866
  throw new ConfigurationError(
70744
- unsupportedPanelOperation(boardName, panel, source, error62).message,
70745
- error62 instanceof ZodError ? schemaDiagnostics(
70746
- error62,
70867
+ unsupportedPanelOperation(boardName, panel, source, error63).message,
70868
+ error63 instanceof ZodError ? schemaDiagnostics(
70869
+ error63,
70747
70870
  ([subject, ...path]) => {
70748
70871
  const root5 = subject === "source" ? ["sources", Object.keys(config2.sources).indexOf(panel.source ?? "")] : [
70749
70872
  "boards",
@@ -70763,7 +70886,7 @@ function derive(config2, rejectUnsupported) {
70763
70886
  ]
70764
70887
  );
70765
70888
  }
70766
- throw error62;
70889
+ throw error63;
70767
70890
  }
70768
70891
  }
70769
70892
  }
@@ -70799,10 +70922,10 @@ function panelCapability(panel, source) {
70799
70922
  if (panel.type === "pipeline-animation-demo") return { kind: "client-only" };
70800
70923
  return { kind: "unsupported" };
70801
70924
  }
70802
- function unsupportedPanelOperation(boardName, panel, source, error62) {
70925
+ function unsupportedPanelOperation(boardName, panel, source, error63) {
70803
70926
  const sourceName = panel.source ?? "(none)";
70804
70927
  const sourceType = source?.type ?? "(none)";
70805
- const detail = error62 instanceof Error && error62.message !== "no bounded operations" ? ` ${error62.message}` : "";
70928
+ const detail = error63 instanceof Error && error63.message !== "no bounded operations" ? ` ${error63.message}` : "";
70806
70929
  return new Error(
70807
70930
  `Unsupported configured panel operation: board "${boardName}", panel "${panel.id}", source "${sourceName}" (${sourceType}), signal "${panel.type}".${detail} Configure a supported panel/source combination and all adapter-required fields.`
70808
70931
  );
@@ -73553,8 +73676,8 @@ async function importWithAlgCache(cache6, jwk, entry) {
73553
73676
  if (key.type !== "public")
73554
73677
  throw new JWKSInvalid("JSON Web Key Set members must be public keys");
73555
73678
  return cached2[alg] = key, key;
73556
- }).catch((error62) => {
73557
- throw cached2[alg] === pending2 && delete cached2[alg], error62;
73679
+ }).catch((error63) => {
73680
+ throw cached2[alg] === pending2 && delete cached2[alg], error63;
73558
73681
  });
73559
73682
  cached2[alg] = pending2;
73560
73683
  }
@@ -73580,14 +73703,14 @@ function createLocalJWKSet(jwks) {
73580
73703
  if (!length)
73581
73704
  throw new JWKSNoMatchingKey();
73582
73705
  if (length !== 1) {
73583
- const error62 = new JWKSMultipleMatchingKeys();
73584
- throw error62[Symbol.asyncIterator] = async function* () {
73706
+ const error63 = new JWKSMultipleMatchingKeys();
73707
+ throw error63[Symbol.asyncIterator] = async function* () {
73585
73708
  for (const jwk2 of candidates)
73586
73709
  try {
73587
73710
  yield await importWithAlgCache(cached2, jwk2, entry);
73588
73711
  } catch {
73589
73712
  }
73590
- }, error62;
73713
+ }, error63;
73591
73714
  }
73592
73715
  return importWithAlgCache(cached2, jwk, entry);
73593
73716
  }, "jwks", {
@@ -73710,9 +73833,9 @@ async function createAccessTokenVerifier(auth, fetcher = globalThis.fetch) {
73710
73833
  if (typeof payload2.sub !== "string" || !payload2.sub)
73711
73834
  throw new Error("Access token has no subject.");
73712
73835
  if (!auth.allow.subjects.includes(payload2.sub)) {
73713
- const error62 = new Error("Authenticated subject is not allowed to view this dashboard.");
73714
- error62.name = "UnauthorizedSubjectError";
73715
- throw error62;
73836
+ const error63 = new Error("Authenticated subject is not allowed to view this dashboard.");
73837
+ error63.name = "UnauthorizedSubjectError";
73838
+ throw error63;
73716
73839
  }
73717
73840
  return { subject: payload2.sub };
73718
73841
  };
@@ -73726,8 +73849,8 @@ async function fetchJson(url2, fetcher) {
73726
73849
  throw new Error("OIDC discovery did not return JSON.");
73727
73850
  }
73728
73851
  }
73729
- function unauthorizedSubject(error62) {
73730
- return error62 instanceof Error && error62.name === "UnauthorizedSubjectError";
73852
+ function unauthorizedSubject(error63) {
73853
+ return error63 instanceof Error && error63.name === "UnauthorizedSubjectError";
73731
73854
  }
73732
73855
 
73733
73856
  // packages/server/src/template.ts
@@ -73774,9 +73897,9 @@ var TemplateCache = class {
73774
73897
  get(assetPath) {
73775
73898
  const existing = this.entries.get(assetPath);
73776
73899
  if (existing) return existing;
73777
- const pending2 = fetchTemplate(assetPath, this.fetcher).catch((error62) => {
73900
+ const pending2 = fetchTemplate(assetPath, this.fetcher).catch((error63) => {
73778
73901
  this.entries.delete(assetPath);
73779
- throw error62;
73902
+ throw error63;
73780
73903
  });
73781
73904
  this.entries.set(assetPath, pending2);
73782
73905
  return pending2;
@@ -73834,10 +73957,10 @@ function createApp(deps) {
73834
73957
  return c5.json({ error: "Authentication required." }, 401);
73835
73958
  try {
73836
73959
  await deps.accessTokenVerifier(authorization.slice("Bearer ".length));
73837
- } catch (error62) {
73960
+ } catch (error63) {
73838
73961
  return c5.json(
73839
- { error: unauthorizedSubject(error62) ? "Access denied." : "Invalid access token." },
73840
- unauthorizedSubject(error62) ? 403 : 401
73962
+ { error: unauthorizedSubject(error63) ? "Access denied." : "Invalid access token." },
73963
+ unauthorizedSubject(error63) ? 403 : 401
73841
73964
  );
73842
73965
  }
73843
73966
  return next();
@@ -74187,8 +74310,8 @@ async function loadBoardConfig(location, fetcher = globalThis.fetch, expectedSch
74187
74310
  let authoredSchemaUrl;
74188
74311
  try {
74189
74312
  authoredSchemaUrl = readBoardSchemaModeline(text, expectedSchemaUrl);
74190
- } catch (error62) {
74191
- throw new ConfigurationError(error62 instanceof Error ? error62.message : "Invalid modeline", [
74313
+ } catch (error63) {
74314
+ throw new ConfigurationError(error63 instanceof Error ? error63.message : "Invalid modeline", [
74192
74315
  {
74193
74316
  kind: "modeline",
74194
74317
  location: "line 1",
@@ -74199,8 +74322,8 @@ async function loadBoardConfig(location, fetcher = globalThis.fetch, expectedSch
74199
74322
  let parsed;
74200
74323
  try {
74201
74324
  parsed = (0, import_yaml2.parse)(text);
74202
- } catch (error62) {
74203
- const position = error62 instanceof import_yaml2.YAMLParseError ? error62.linePos?.[0] : void 0;
74325
+ } catch (error63) {
74326
+ const position = error63 instanceof import_yaml2.YAMLParseError ? error63.linePos?.[0] : void 0;
74204
74327
  const location2 = position ? `line ${position.line}, column ${position.col}` : "configuration";
74205
74328
  throw new ConfigurationError(
74206
74329
  `Invalid board configuration YAML at ${location2}: correct YAML syntax.`,
@@ -74263,15 +74386,15 @@ async function startup(options = {}) {
74263
74386
  const config2 = loadConfig2();
74264
74387
  const fetcher = options.fetcher ?? globalThis.fetch;
74265
74388
  const [, boardConfig] = await Promise.all([
74266
- waitForTemplate(config2, fetcher).catch((error62) => {
74267
- throw new StartupFailure("template", error62);
74389
+ waitForTemplate(config2, fetcher).catch((error63) => {
74390
+ throw new StartupFailure("template", error63);
74268
74391
  }),
74269
74392
  loadBoardConfig(
74270
74393
  config2.boardConfigUrl,
74271
74394
  fetcher,
74272
74395
  config2.assetPath.includes("__ASSET_PATH__") ? void 0 : schemaUrlForAssetPath(config2.assetPath)
74273
- ).catch((error62) => {
74274
- throw new StartupFailure("board-config", error62);
74396
+ ).catch((error63) => {
74397
+ throw new StartupFailure("board-config", error63);
74275
74398
  })
74276
74399
  ]);
74277
74400
  category = "board-config";
@@ -74300,8 +74423,8 @@ async function startup(options = {}) {
74300
74423
  }),
74301
74424
  config: resolvedConfig
74302
74425
  };
74303
- } catch (error62) {
74304
- const failure3 = error62 instanceof StartupFailure ? error62 : new StartupFailure(category, error62);
74426
+ } catch (error63) {
74427
+ const failure3 = error63 instanceof StartupFailure ? error63 : new StartupFailure(category, error63);
74305
74428
  logger2.log({
74306
74429
  event: "server.startup_failed",
74307
74430
  serverVersion: process.env.SERVER_RELEASE ?? "development",
@@ -74347,8 +74470,8 @@ async function waitForTemplate(config2, fetcher) {
74347
74470
  try {
74348
74471
  await fetchTemplate(config2.assetPath, fetcher);
74349
74472
  return;
74350
- } catch (error62) {
74351
- if (waited >= deadline) throw error62;
74473
+ } catch (error63) {
74474
+ if (waited >= deadline) throw error63;
74352
74475
  if (!announced) {
74353
74476
  console.log(`Waiting for the client at ${config2.assetPath} \u2026`);
74354
74477
  announced = true;
@@ -74372,9 +74495,9 @@ function warnAboutMissingAuth(config2, logger2) {
74372
74495
  // packages/server/src/lambda.ts
74373
74496
  var pending;
74374
74497
  function bootstrap() {
74375
- pending ??= startup().then(({ app }) => app).catch((error62) => {
74498
+ pending ??= startup().then(({ app }) => app).catch((error63) => {
74376
74499
  pending = void 0;
74377
- throw error62;
74500
+ throw error63;
74378
74501
  });
74379
74502
  return pending;
74380
74503
  }
@@ -74383,13 +74506,13 @@ var handler = handle({
74383
74506
  let app;
74384
74507
  try {
74385
74508
  app = await bootstrap();
74386
- } catch (error62) {
74387
- if (!(error62 instanceof StartupFailure)) throw error62;
74509
+ } catch (error63) {
74510
+ if (!(error63 instanceof StartupFailure)) throw error63;
74388
74511
  return Response.json(
74389
74512
  {
74390
74513
  code: "dashboard_startup_failed",
74391
74514
  guidance: "Find server.startup_failed in the server logs using this support reference. Correct the configuration or deployment and redeploy.",
74392
- supportReference: error62.diagnostic.supportReference
74515
+ supportReference: error63.diagnostic.supportReference
74393
74516
  },
74394
74517
  { status: 503, headers: { "Cache-Control": "no-store" } }
74395
74518
  );