@etainabl/nodejs-sdk 1.3.114 → 1.3.115

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 (52) hide show
  1. package/dist/esm/{chunk-OWL7NKW5.js → chunk-64PZMULY.js} +2 -2
  2. package/dist/esm/{chunk-XXAWQ5GA.js → chunk-DDCT4ZYV.js} +102 -150
  3. package/dist/esm/chunk-DDCT4ZYV.js.map +1 -0
  4. package/dist/esm/chunk-EAEPE6LV.js +1414 -0
  5. package/dist/esm/chunk-EAEPE6LV.js.map +1 -0
  6. package/dist/esm/{chunk-UFTVLHTW.js → chunk-ITNQSW66.js} +46 -46
  7. package/dist/esm/chunk-ITNQSW66.js.map +1 -0
  8. package/dist/esm/{chunk-R63LRFTI.js → chunk-JVMEEBKP.js} +1 -27
  9. package/dist/esm/{chunk-R63LRFTI.js.map → chunk-JVMEEBKP.js.map} +1 -1
  10. package/dist/esm/chunk-UQAJZJ7E.js +11 -0
  11. package/dist/esm/chunk-UQAJZJ7E.js.map +1 -0
  12. package/dist/esm/{chunk-E6O4HVLA.js → chunk-V42NON4H.js} +33 -33
  13. package/dist/esm/chunk-V42NON4H.js.map +1 -0
  14. package/dist/esm/{chunk-CIKXN3GS.js → chunk-VSMDPKQT.js} +2 -2
  15. package/dist/esm/{chunk-BIVFO5LG.js → chunk-XSPB2DRU.js} +51 -158
  16. package/dist/esm/chunk-XSPB2DRU.js.map +1 -0
  17. package/dist/esm/chunk-YUPOEH3S.js +76 -0
  18. package/dist/esm/chunk-YUPOEH3S.js.map +1 -0
  19. package/dist/esm/{dist-es-FD7XXZCE.js → dist-es-43LBWNIP.js} +5 -5
  20. package/dist/esm/{dist-es-RHLCSE2G.js → dist-es-4PZVI2OP.js} +10 -10
  21. package/dist/esm/{dist-es-XEM2CDDP.js → dist-es-LEN5TBON.js} +3 -3
  22. package/dist/esm/{dist-es-QPNGCVTW.js → dist-es-MTQJIBCO.js} +3 -3
  23. package/dist/esm/{dist-es-4ZHJVMJ4.js → dist-es-SHHKSG6R.js} +3 -3
  24. package/dist/esm/{dist-es-X5IH3XCT.js → dist-es-UQHTRG6U.js} +2 -2
  25. package/dist/esm/{dist-es-MXGFLXV2.js → dist-es-W6M73SKO.js} +3 -3
  26. package/dist/esm/index.js +67 -65
  27. package/dist/esm/index.js.map +1 -1
  28. package/dist/esm/{loadSso-3QBKTJF3.js → loadSso-TNKRSJIY.js} +46 -42
  29. package/dist/esm/loadSso-TNKRSJIY.js.map +1 -0
  30. package/dist/esm/{sso-oidc-GZ3LZ3MF.js → sso-oidc-LXV5UW7C.js} +15 -11
  31. package/dist/esm/{sso-oidc-GZ3LZ3MF.js.map → sso-oidc-LXV5UW7C.js.map} +1 -1
  32. package/dist/esm/{sts-CIQKG7FB.js → sts-7CU5WIQI.js} +12 -10
  33. package/dist/esm/{sts-CIQKG7FB.js.map → sts-7CU5WIQI.js.map} +1 -1
  34. package/dist/index.js +1427 -1876
  35. package/dist/index.js.map +1 -1
  36. package/package.json +3 -3
  37. package/dist/esm/chunk-BIVFO5LG.js.map +0 -1
  38. package/dist/esm/chunk-E6O4HVLA.js.map +0 -1
  39. package/dist/esm/chunk-ITSE4X2J.js +0 -1733
  40. package/dist/esm/chunk-ITSE4X2J.js.map +0 -1
  41. package/dist/esm/chunk-UFTVLHTW.js.map +0 -1
  42. package/dist/esm/chunk-XXAWQ5GA.js.map +0 -1
  43. package/dist/esm/loadSso-3QBKTJF3.js.map +0 -1
  44. /package/dist/esm/{chunk-OWL7NKW5.js.map → chunk-64PZMULY.js.map} +0 -0
  45. /package/dist/esm/{chunk-CIKXN3GS.js.map → chunk-VSMDPKQT.js.map} +0 -0
  46. /package/dist/esm/{dist-es-FD7XXZCE.js.map → dist-es-43LBWNIP.js.map} +0 -0
  47. /package/dist/esm/{dist-es-RHLCSE2G.js.map → dist-es-4PZVI2OP.js.map} +0 -0
  48. /package/dist/esm/{dist-es-XEM2CDDP.js.map → dist-es-LEN5TBON.js.map} +0 -0
  49. /package/dist/esm/{dist-es-QPNGCVTW.js.map → dist-es-MTQJIBCO.js.map} +0 -0
  50. /package/dist/esm/{dist-es-4ZHJVMJ4.js.map → dist-es-SHHKSG6R.js.map} +0 -0
  51. /package/dist/esm/{dist-es-X5IH3XCT.js.map → dist-es-UQHTRG6U.js.map} +0 -0
  52. /package/dist/esm/{dist-es-MXGFLXV2.js.map → dist-es-W6M73SKO.js.map} +0 -0
package/dist/index.js CHANGED
@@ -8,9 +8,6 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
8
  var __esm = (fn, res) => function __init() {
9
9
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
10
  };
11
- var __commonJS = (cb2, mod) => function __require() {
12
- return mod || (0, cb2[__getOwnPropNames(cb2)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
- };
14
11
  var __export = (target, all) => {
15
12
  for (var name in all)
16
13
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -787,6 +784,13 @@ var init_setFeature = __esm({
787
784
  }
788
785
  });
789
786
 
787
+ // node_modules/@aws-sdk/core/dist-es/submodules/client/setTokenFeature.js
788
+ var init_setTokenFeature = __esm({
789
+ "node_modules/@aws-sdk/core/dist-es/submodules/client/setTokenFeature.js"() {
790
+ "use strict";
791
+ }
792
+ });
793
+
790
794
  // node_modules/@aws-sdk/core/dist-es/submodules/client/index.js
791
795
  var init_client2 = __esm({
792
796
  "node_modules/@aws-sdk/core/dist-es/submodules/client/index.js"() {
@@ -794,6 +798,7 @@ var init_client2 = __esm({
794
798
  init_emitWarningIfUnsupportedVersion();
795
799
  init_setCredentialFeature();
796
800
  init_setFeature();
801
+ init_setTokenFeature();
797
802
  }
798
803
  });
799
804
 
@@ -1276,7 +1281,6 @@ var init_getHttpAuthSchemePlugin = __esm({
1276
1281
  "node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js"() {
1277
1282
  "use strict";
1278
1283
  init_dist_es4();
1279
- init_httpAuthSchemeMiddleware();
1280
1284
  httpAuthSchemeMiddlewareOptions = {
1281
1285
  step: "serialize",
1282
1286
  tags: ["HTTP_AUTH_SCHEME"],
@@ -2410,7 +2414,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
2410
2414
  this.config?.httpAgent?.destroy();
2411
2415
  this.config?.httpsAgent?.destroy();
2412
2416
  }
2413
- async handle(request2, { abortSignal } = {}) {
2417
+ async handle(request2, { abortSignal, requestTimeout: requestTimeout2 } = {}) {
2414
2418
  if (!this.config) {
2415
2419
  this.config = await this.configProvider;
2416
2420
  }
@@ -2502,8 +2506,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
2502
2506
  abortSignal.onabort = onAbort;
2503
2507
  }
2504
2508
  }
2509
+ const effectiveRequestTimeout = requestTimeout2 ?? this.config.requestTimeout;
2505
2510
  timeouts.push(setConnectionTimeout(req, reject, this.config.connectionTimeout));
2506
- timeouts.push(setSocketTimeout(req, reject, this.config.requestTimeout));
2511
+ timeouts.push(setSocketTimeout(req, reject, effectiveRequestTimeout));
2507
2512
  const httpAgent = nodeHttpsOptions.agent;
2508
2513
  if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
2509
2514
  timeouts.push(setSocketKeepAlive(req, {
@@ -2511,7 +2516,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
2511
2516
  keepAliveMsecs: httpAgent.keepAliveMsecs
2512
2517
  }));
2513
2518
  }
2514
- writeRequestBodyPromise = writeRequestBody(req, request2, this.config.requestTimeout).catch((e5) => {
2519
+ writeRequestBodyPromise = writeRequestBody(req, request2, effectiveRequestTimeout).catch((e5) => {
2515
2520
  timeouts.forEach(timing.clearTimeout);
2516
2521
  return _reject(e5);
2517
2522
  });
@@ -2976,201 +2981,10 @@ var init_extended_encode_uri_component = __esm({
2976
2981
  }
2977
2982
  });
2978
2983
 
2979
- // node_modules/@smithy/core/dist-es/submodules/schema/deref.js
2980
- var init_deref = __esm({
2981
- "node_modules/@smithy/core/dist-es/submodules/schema/deref.js"() {
2982
- "use strict";
2983
- }
2984
- });
2985
-
2986
- // node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js
2987
- var init_schemaDeserializationMiddleware = __esm({
2988
- "node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js"() {
2989
- "use strict";
2990
- init_dist_es2();
2991
- init_dist_es3();
2992
- }
2993
- });
2994
-
2995
- // node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js
2996
- var init_schemaSerializationMiddleware = __esm({
2997
- "node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js"() {
2998
- "use strict";
2999
- init_dist_es3();
3000
- }
3001
- });
3002
-
3003
- // node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js
3004
- var init_getSchemaSerdePlugin = __esm({
3005
- "node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js"() {
3006
- "use strict";
3007
- init_schemaDeserializationMiddleware();
3008
- init_schemaSerializationMiddleware();
3009
- }
3010
- });
3011
-
3012
- // node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js
3013
- var TypeRegistry;
3014
- var init_TypeRegistry = __esm({
3015
- "node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js"() {
3016
- "use strict";
3017
- TypeRegistry = class _TypeRegistry {
3018
- constructor(namespace, schemas = /* @__PURE__ */ new Map()) {
3019
- this.namespace = namespace;
3020
- this.schemas = schemas;
3021
- }
3022
- static for(namespace) {
3023
- if (!_TypeRegistry.registries.has(namespace)) {
3024
- _TypeRegistry.registries.set(namespace, new _TypeRegistry(namespace));
3025
- }
3026
- return _TypeRegistry.registries.get(namespace);
3027
- }
3028
- register(shapeId, schema) {
3029
- const qualifiedName = this.normalizeShapeId(shapeId);
3030
- const registry = _TypeRegistry.for(this.getNamespace(shapeId));
3031
- registry.schemas.set(qualifiedName, schema);
3032
- }
3033
- getSchema(shapeId) {
3034
- const id = this.normalizeShapeId(shapeId);
3035
- if (!this.schemas.has(id)) {
3036
- throw new Error(`@smithy/core/schema - schema not found for ${id}`);
3037
- }
3038
- return this.schemas.get(id);
3039
- }
3040
- getBaseException() {
3041
- for (const [id, schema] of this.schemas.entries()) {
3042
- if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
3043
- return schema;
3044
- }
3045
- }
3046
- return void 0;
3047
- }
3048
- find(predicate) {
3049
- return [...this.schemas.values()].find(predicate);
3050
- }
3051
- destroy() {
3052
- _TypeRegistry.registries.delete(this.namespace);
3053
- this.schemas.clear();
3054
- }
3055
- normalizeShapeId(shapeId) {
3056
- if (shapeId.includes("#")) {
3057
- return shapeId;
3058
- }
3059
- return this.namespace + "#" + shapeId;
3060
- }
3061
- getNamespace(shapeId) {
3062
- return this.normalizeShapeId(shapeId).split("#")[0];
3063
- }
3064
- };
3065
- TypeRegistry.registries = /* @__PURE__ */ new Map();
3066
- }
3067
- });
3068
-
3069
- // node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js
3070
- var init_Schema = __esm({
3071
- "node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js"() {
3072
- "use strict";
3073
- }
3074
- });
3075
-
3076
- // node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js
3077
- var init_ListSchema = __esm({
3078
- "node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js"() {
3079
- "use strict";
3080
- init_TypeRegistry();
3081
- init_Schema();
3082
- }
3083
- });
3084
-
3085
- // node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js
3086
- var init_MapSchema = __esm({
3087
- "node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js"() {
3088
- "use strict";
3089
- init_TypeRegistry();
3090
- init_Schema();
3091
- }
3092
- });
3093
-
3094
- // node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js
3095
- var init_OperationSchema = __esm({
3096
- "node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js"() {
3097
- "use strict";
3098
- init_TypeRegistry();
3099
- init_Schema();
3100
- }
3101
- });
3102
-
3103
- // node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js
3104
- var init_StructureSchema = __esm({
3105
- "node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js"() {
3106
- "use strict";
3107
- init_TypeRegistry();
3108
- init_Schema();
3109
- }
3110
- });
3111
-
3112
- // node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js
3113
- var init_ErrorSchema = __esm({
3114
- "node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js"() {
3115
- "use strict";
3116
- init_TypeRegistry();
3117
- init_StructureSchema();
3118
- }
3119
- });
3120
-
3121
- // node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js
3122
- var init_sentinels2 = __esm({
3123
- "node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js"() {
3124
- "use strict";
3125
- }
3126
- });
3127
-
3128
- // node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js
3129
- var init_SimpleSchema = __esm({
3130
- "node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js"() {
3131
- "use strict";
3132
- init_TypeRegistry();
3133
- init_Schema();
3134
- }
3135
- });
3136
-
3137
- // node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
3138
- var init_NormalizedSchema = __esm({
3139
- "node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js"() {
3140
- "use strict";
3141
- init_deref();
3142
- init_ListSchema();
3143
- init_MapSchema();
3144
- init_sentinels2();
3145
- init_SimpleSchema();
3146
- init_StructureSchema();
3147
- }
3148
- });
3149
-
3150
- // node_modules/@smithy/core/dist-es/submodules/schema/index.js
3151
- var init_schema2 = __esm({
3152
- "node_modules/@smithy/core/dist-es/submodules/schema/index.js"() {
3153
- "use strict";
3154
- init_deref();
3155
- init_getSchemaSerdePlugin();
3156
- init_ListSchema();
3157
- init_MapSchema();
3158
- init_OperationSchema();
3159
- init_ErrorSchema();
3160
- init_NormalizedSchema();
3161
- init_Schema();
3162
- init_SimpleSchema();
3163
- init_StructureSchema();
3164
- init_sentinels2();
3165
- init_TypeRegistry();
3166
- }
3167
- });
3168
-
3169
2984
  // node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js
3170
2985
  var init_copyDocumentWithTransform = __esm({
3171
2986
  "node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js"() {
3172
2987
  "use strict";
3173
- init_schema2();
3174
2988
  }
3175
2989
  });
3176
2990
 
@@ -3449,21 +3263,110 @@ var init_date_utils = __esm({
3449
3263
  }
3450
3264
  });
3451
3265
 
3266
+ // node_modules/uuid/dist/esm-node/rng.js
3267
+ function rng() {
3268
+ if (poolPtr > rnds8Pool.length - 16) {
3269
+ import_crypto.default.randomFillSync(rnds8Pool);
3270
+ poolPtr = 0;
3271
+ }
3272
+ return rnds8Pool.slice(poolPtr, poolPtr += 16);
3273
+ }
3274
+ var import_crypto, rnds8Pool, poolPtr;
3275
+ var init_rng = __esm({
3276
+ "node_modules/uuid/dist/esm-node/rng.js"() {
3277
+ "use strict";
3278
+ import_crypto = __toESM(require("crypto"));
3279
+ rnds8Pool = new Uint8Array(256);
3280
+ poolPtr = rnds8Pool.length;
3281
+ }
3282
+ });
3283
+
3284
+ // node_modules/uuid/dist/esm-node/stringify.js
3285
+ function unsafeStringify(arr, offset = 0) {
3286
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
3287
+ }
3288
+ var byteToHex;
3289
+ var init_stringify = __esm({
3290
+ "node_modules/uuid/dist/esm-node/stringify.js"() {
3291
+ "use strict";
3292
+ byteToHex = [];
3293
+ for (let i5 = 0; i5 < 256; ++i5) {
3294
+ byteToHex.push((i5 + 256).toString(16).slice(1));
3295
+ }
3296
+ }
3297
+ });
3298
+
3299
+ // node_modules/uuid/dist/esm-node/native.js
3300
+ var import_crypto2, native_default;
3301
+ var init_native = __esm({
3302
+ "node_modules/uuid/dist/esm-node/native.js"() {
3303
+ "use strict";
3304
+ import_crypto2 = __toESM(require("crypto"));
3305
+ native_default = {
3306
+ randomUUID: import_crypto2.default.randomUUID
3307
+ };
3308
+ }
3309
+ });
3310
+
3311
+ // node_modules/uuid/dist/esm-node/v4.js
3312
+ function v4(options, buf, offset) {
3313
+ if (native_default.randomUUID && !buf && !options) {
3314
+ return native_default.randomUUID();
3315
+ }
3316
+ options = options || {};
3317
+ const rnds = options.random || (options.rng || rng)();
3318
+ rnds[6] = rnds[6] & 15 | 64;
3319
+ rnds[8] = rnds[8] & 63 | 128;
3320
+ if (buf) {
3321
+ offset = offset || 0;
3322
+ for (let i5 = 0; i5 < 16; ++i5) {
3323
+ buf[offset + i5] = rnds[i5];
3324
+ }
3325
+ return buf;
3326
+ }
3327
+ return unsafeStringify(rnds);
3328
+ }
3329
+ var v4_default;
3330
+ var init_v4 = __esm({
3331
+ "node_modules/uuid/dist/esm-node/v4.js"() {
3332
+ "use strict";
3333
+ init_native();
3334
+ init_rng();
3335
+ init_stringify();
3336
+ v4_default = v4;
3337
+ }
3338
+ });
3339
+
3340
+ // node_modules/uuid/dist/esm-node/index.js
3341
+ var init_esm_node = __esm({
3342
+ "node_modules/uuid/dist/esm-node/index.js"() {
3343
+ "use strict";
3344
+ init_v4();
3345
+ }
3346
+ });
3347
+
3348
+ // node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js
3349
+ var init_generateIdempotencyToken = __esm({
3350
+ "node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js"() {
3351
+ "use strict";
3352
+ }
3353
+ });
3354
+
3452
3355
  // node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js
3453
3356
  var LazyJsonString;
3454
3357
  var init_lazy_json = __esm({
3455
3358
  "node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js"() {
3456
3359
  "use strict";
3457
- LazyJsonString = function LazyJsonString2(val2) {
3458
- const str = Object.assign(new String(val2), {
3360
+ LazyJsonString = function LazyJsonString2(val) {
3361
+ const str = Object.assign(new String(val), {
3459
3362
  deserializeJSON() {
3460
- return JSON.parse(String(val2));
3363
+ return JSON.parse(String(val));
3461
3364
  },
3462
3365
  toString() {
3463
- return String(val2);
3366
+ return String(val);
3464
3367
  },
3465
3368
  toJSON() {
3466
- return String(val2);
3369
+ return String(val);
3467
3370
  }
3468
3371
  });
3469
3372
  return str;
@@ -3514,6 +3417,7 @@ var init_serde2 = __esm({
3514
3417
  "use strict";
3515
3418
  init_copyDocumentWithTransform();
3516
3419
  init_date_utils();
3420
+ init_generateIdempotencyToken();
3517
3421
  init_lazy_json();
3518
3422
  init_parse_utils();
3519
3423
  init_quote_header();
@@ -3523,27 +3427,12 @@ var init_serde2 = __esm({
3523
3427
  }
3524
3428
  });
3525
3429
 
3526
- // node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js
3527
- var init_HttpProtocol = __esm({
3528
- "node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js"() {
3529
- "use strict";
3530
- init_schema2();
3531
- init_serde2();
3532
- init_dist_es2();
3533
- init_dist_es14();
3534
- init_collect_stream_body();
3535
- }
3536
- });
3537
-
3538
3430
  // node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js
3539
3431
  var init_HttpBindingProtocol = __esm({
3540
3432
  "node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js"() {
3541
3433
  "use strict";
3542
- init_schema2();
3543
3434
  init_dist_es2();
3544
- init_collect_stream_body();
3545
- init_extended_encode_uri_component();
3546
- init_HttpProtocol();
3435
+ init_dist_es14();
3547
3436
  }
3548
3437
  });
3549
3438
 
@@ -3551,10 +3440,7 @@ var init_HttpBindingProtocol = __esm({
3551
3440
  var init_RpcProtocol = __esm({
3552
3441
  "node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js"() {
3553
3442
  "use strict";
3554
- init_schema2();
3555
3443
  init_dist_es2();
3556
- init_collect_stream_body();
3557
- init_HttpProtocol();
3558
3444
  }
3559
3445
  });
3560
3446
 
@@ -3658,7 +3544,6 @@ var init_requestBuilder = __esm({
3658
3544
  var init_determineTimestampFormat = __esm({
3659
3545
  "node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js"() {
3660
3546
  "use strict";
3661
- init_schema2();
3662
3547
  }
3663
3548
  });
3664
3549
 
@@ -3666,11 +3551,8 @@ var init_determineTimestampFormat = __esm({
3666
3551
  var init_FromStringShapeDeserializer = __esm({
3667
3552
  "node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js"() {
3668
3553
  "use strict";
3669
- init_schema2();
3670
- init_serde2();
3671
3554
  init_dist_es8();
3672
3555
  init_dist_es7();
3673
- init_determineTimestampFormat();
3674
3556
  }
3675
3557
  });
3676
3558
 
@@ -3678,9 +3560,7 @@ var init_FromStringShapeDeserializer = __esm({
3678
3560
  var init_HttpInterceptingShapeDeserializer = __esm({
3679
3561
  "node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js"() {
3680
3562
  "use strict";
3681
- init_schema2();
3682
3563
  init_dist_es7();
3683
- init_FromStringShapeDeserializer();
3684
3564
  }
3685
3565
  });
3686
3566
 
@@ -3688,10 +3568,7 @@ var init_HttpInterceptingShapeDeserializer = __esm({
3688
3568
  var init_ToStringShapeSerializer = __esm({
3689
3569
  "node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js"() {
3690
3570
  "use strict";
3691
- init_schema2();
3692
- init_serde2();
3693
3571
  init_dist_es8();
3694
- init_determineTimestampFormat();
3695
3572
  }
3696
3573
  });
3697
3574
 
@@ -3699,8 +3576,6 @@ var init_ToStringShapeSerializer = __esm({
3699
3576
  var init_HttpInterceptingShapeSerializer = __esm({
3700
3577
  "node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js"() {
3701
3578
  "use strict";
3702
- init_schema2();
3703
- init_ToStringShapeSerializer();
3704
3579
  }
3705
3580
  });
3706
3581
 
@@ -5748,7 +5623,6 @@ var init_object_mapping = __esm({
5748
5623
  var init_resolve_path2 = __esm({
5749
5624
  "node_modules/@smithy/smithy-client/dist-es/resolve-path.js"() {
5750
5625
  "use strict";
5751
- init_protocols();
5752
5626
  }
5753
5627
  });
5754
5628
 
@@ -5890,8 +5764,6 @@ var init_parseJsonBody = __esm({
5890
5764
  var init_JsonShapeDeserializer = __esm({
5891
5765
  "node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js"() {
5892
5766
  "use strict";
5893
- init_schema2();
5894
- init_serde2();
5895
5767
  init_dist_es8();
5896
5768
  }
5897
5769
  });
@@ -5900,9 +5772,6 @@ var init_JsonShapeDeserializer = __esm({
5900
5772
  var init_JsonShapeSerializer = __esm({
5901
5773
  "node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js"() {
5902
5774
  "use strict";
5903
- init_schema2();
5904
- init_serde2();
5905
- init_serde2();
5906
5775
  }
5907
5776
  });
5908
5777
 
@@ -5917,8 +5786,6 @@ var init_JsonCodec = __esm({
5917
5786
  var init_AwsJsonRpcProtocol = __esm({
5918
5787
  "node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js"() {
5919
5788
  "use strict";
5920
- init_protocols();
5921
- init_schema2();
5922
5789
  init_dist_es18();
5923
5790
  }
5924
5791
  });
@@ -5941,8 +5808,6 @@ var init_AwsJson1_1Protocol = __esm({
5941
5808
  var init_AwsRestJsonProtocol = __esm({
5942
5809
  "node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js"() {
5943
5810
  "use strict";
5944
- init_protocols();
5945
- init_schema2();
5946
5811
  init_dist_es18();
5947
5812
  }
5948
5813
  });
@@ -5956,381 +5821,358 @@ var init_awsExpectUnion = __esm({
5956
5821
  });
5957
5822
 
5958
5823
  // node_modules/fast-xml-parser/src/util.js
5959
- var require_util = __commonJS({
5960
- "node_modules/fast-xml-parser/src/util.js"(exports2) {
5961
- "use strict";
5962
- var nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
5963
- var nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
5964
- var nameRegexp = "[" + nameStartChar + "][" + nameChar + "]*";
5965
- var regexName = new RegExp("^" + nameRegexp + "$");
5966
- var getAllMatches = function(string, regex) {
5967
- const matches = [];
5968
- let match = regex.exec(string);
5969
- while (match) {
5970
- const allmatches = [];
5971
- allmatches.startIndex = regex.lastIndex - match[0].length;
5972
- const len = match.length;
5973
- for (let index = 0; index < len; index++) {
5974
- allmatches.push(match[index]);
5975
- }
5976
- matches.push(allmatches);
5977
- match = regex.exec(string);
5978
- }
5979
- return matches;
5980
- };
5981
- var isName = function(string) {
5824
+ function getAllMatches(string, regex) {
5825
+ const matches = [];
5826
+ let match = regex.exec(string);
5827
+ while (match) {
5828
+ const allmatches = [];
5829
+ allmatches.startIndex = regex.lastIndex - match[0].length;
5830
+ const len = match.length;
5831
+ for (let index = 0; index < len; index++) {
5832
+ allmatches.push(match[index]);
5833
+ }
5834
+ matches.push(allmatches);
5835
+ match = regex.exec(string);
5836
+ }
5837
+ return matches;
5838
+ }
5839
+ function isExist(v6) {
5840
+ return typeof v6 !== "undefined";
5841
+ }
5842
+ var nameStartChar, nameChar, nameRegexp, regexName, isName;
5843
+ var init_util2 = __esm({
5844
+ "node_modules/fast-xml-parser/src/util.js"() {
5845
+ "use strict";
5846
+ nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
5847
+ nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
5848
+ nameRegexp = "[" + nameStartChar + "][" + nameChar + "]*";
5849
+ regexName = new RegExp("^" + nameRegexp + "$");
5850
+ isName = function(string) {
5982
5851
  const match = regexName.exec(string);
5983
5852
  return !(match === null || typeof match === "undefined");
5984
5853
  };
5985
- exports2.isExist = function(v6) {
5986
- return typeof v6 !== "undefined";
5987
- };
5988
- exports2.isEmptyObject = function(obj) {
5989
- return Object.keys(obj).length === 0;
5990
- };
5991
- exports2.merge = function(target, a5, arrayMode) {
5992
- if (a5) {
5993
- const keys = Object.keys(a5);
5994
- const len = keys.length;
5995
- for (let i5 = 0; i5 < len; i5++) {
5996
- if (arrayMode === "strict") {
5997
- target[keys[i5]] = [a5[keys[i5]]];
5998
- } else {
5999
- target[keys[i5]] = a5[keys[i5]];
6000
- }
6001
- }
6002
- }
6003
- };
6004
- exports2.getValue = function(v6) {
6005
- if (exports2.isExist(v6)) {
6006
- return v6;
6007
- } else {
6008
- return "";
6009
- }
6010
- };
6011
- exports2.isName = isName;
6012
- exports2.getAllMatches = getAllMatches;
6013
- exports2.nameRegexp = nameRegexp;
6014
5854
  }
6015
5855
  });
6016
5856
 
6017
5857
  // node_modules/fast-xml-parser/src/validator.js
6018
- var require_validator = __commonJS({
6019
- "node_modules/fast-xml-parser/src/validator.js"(exports2) {
6020
- "use strict";
6021
- var util = require_util();
6022
- var defaultOptions = {
6023
- allowBooleanAttributes: false,
6024
- //A tag can have attributes without any value
6025
- unpairedTags: []
6026
- };
6027
- exports2.validate = function(xmlData, options) {
6028
- options = Object.assign({}, defaultOptions, options);
6029
- const tags = [];
6030
- let tagFound = false;
6031
- let reachedRoot = false;
6032
- if (xmlData[0] === "\uFEFF") {
6033
- xmlData = xmlData.substr(1);
6034
- }
6035
- for (let i5 = 0; i5 < xmlData.length; i5++) {
6036
- if (xmlData[i5] === "<" && xmlData[i5 + 1] === "?") {
6037
- i5 += 2;
6038
- i5 = readPI(xmlData, i5);
6039
- if (i5.err) return i5;
6040
- } else if (xmlData[i5] === "<") {
6041
- let tagStartPos = i5;
5858
+ function validate(xmlData, options) {
5859
+ options = Object.assign({}, defaultOptions, options);
5860
+ const tags = [];
5861
+ let tagFound = false;
5862
+ let reachedRoot = false;
5863
+ if (xmlData[0] === "\uFEFF") {
5864
+ xmlData = xmlData.substr(1);
5865
+ }
5866
+ for (let i5 = 0; i5 < xmlData.length; i5++) {
5867
+ if (xmlData[i5] === "<" && xmlData[i5 + 1] === "?") {
5868
+ i5 += 2;
5869
+ i5 = readPI(xmlData, i5);
5870
+ if (i5.err) return i5;
5871
+ } else if (xmlData[i5] === "<") {
5872
+ let tagStartPos = i5;
5873
+ i5++;
5874
+ if (xmlData[i5] === "!") {
5875
+ i5 = readCommentAndCDATA(xmlData, i5);
5876
+ continue;
5877
+ } else {
5878
+ let closingTag = false;
5879
+ if (xmlData[i5] === "/") {
5880
+ closingTag = true;
6042
5881
  i5++;
6043
- if (xmlData[i5] === "!") {
6044
- i5 = readCommentAndCDATA(xmlData, i5);
6045
- continue;
5882
+ }
5883
+ let tagName = "";
5884
+ for (; i5 < xmlData.length && xmlData[i5] !== ">" && xmlData[i5] !== " " && xmlData[i5] !== " " && xmlData[i5] !== "\n" && xmlData[i5] !== "\r"; i5++) {
5885
+ tagName += xmlData[i5];
5886
+ }
5887
+ tagName = tagName.trim();
5888
+ if (tagName[tagName.length - 1] === "/") {
5889
+ tagName = tagName.substring(0, tagName.length - 1);
5890
+ i5--;
5891
+ }
5892
+ if (!validateTagName(tagName)) {
5893
+ let msg;
5894
+ if (tagName.trim().length === 0) {
5895
+ msg = "Invalid space after '<'.";
6046
5896
  } else {
6047
- let closingTag = false;
6048
- if (xmlData[i5] === "/") {
6049
- closingTag = true;
6050
- i5++;
6051
- }
6052
- let tagName = "";
6053
- for (; i5 < xmlData.length && xmlData[i5] !== ">" && xmlData[i5] !== " " && xmlData[i5] !== " " && xmlData[i5] !== "\n" && xmlData[i5] !== "\r"; i5++) {
6054
- tagName += xmlData[i5];
6055
- }
6056
- tagName = tagName.trim();
6057
- if (tagName[tagName.length - 1] === "/") {
6058
- tagName = tagName.substring(0, tagName.length - 1);
6059
- i5--;
6060
- }
6061
- if (!validateTagName(tagName)) {
6062
- let msg;
6063
- if (tagName.trim().length === 0) {
6064
- msg = "Invalid space after '<'.";
6065
- } else {
6066
- msg = "Tag '" + tagName + "' is an invalid name.";
6067
- }
6068
- return getErrorObject("InvalidTag", msg, getLineNumberForPosition(xmlData, i5));
6069
- }
6070
- const result = readAttributeStr(xmlData, i5);
6071
- if (result === false) {
6072
- return getErrorObject("InvalidAttr", "Attributes for '" + tagName + "' have open quote.", getLineNumberForPosition(xmlData, i5));
6073
- }
6074
- let attrStr = result.value;
6075
- i5 = result.index;
6076
- if (attrStr[attrStr.length - 1] === "/") {
6077
- const attrStrStart = i5 - attrStr.length;
6078
- attrStr = attrStr.substring(0, attrStr.length - 1);
6079
- const isValid = validateAttributeString(attrStr, options);
6080
- if (isValid === true) {
6081
- tagFound = true;
6082
- } else {
6083
- return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line));
6084
- }
6085
- } else if (closingTag) {
6086
- if (!result.tagClosed) {
6087
- return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' doesn't have proper closing.", getLineNumberForPosition(xmlData, i5));
6088
- } else if (attrStr.trim().length > 0) {
6089
- return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, tagStartPos));
6090
- } else if (tags.length === 0) {
6091
- return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' has not been opened.", getLineNumberForPosition(xmlData, tagStartPos));
6092
- } else {
6093
- const otg = tags.pop();
6094
- if (tagName !== otg.tagName) {
6095
- let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos);
6096
- return getErrorObject(
6097
- "InvalidTag",
6098
- "Expected closing tag '" + otg.tagName + "' (opened in line " + openPos.line + ", col " + openPos.col + ") instead of closing tag '" + tagName + "'.",
6099
- getLineNumberForPosition(xmlData, tagStartPos)
6100
- );
6101
- }
6102
- if (tags.length == 0) {
6103
- reachedRoot = true;
6104
- }
6105
- }
6106
- } else {
6107
- const isValid = validateAttributeString(attrStr, options);
6108
- if (isValid !== true) {
6109
- return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i5 - attrStr.length + isValid.err.line));
6110
- }
6111
- if (reachedRoot === true) {
6112
- return getErrorObject("InvalidXml", "Multiple possible root nodes found.", getLineNumberForPosition(xmlData, i5));
6113
- } else if (options.unpairedTags.indexOf(tagName) !== -1) {
6114
- } else {
6115
- tags.push({ tagName, tagStartPos });
6116
- }
6117
- tagFound = true;
6118
- }
6119
- for (i5++; i5 < xmlData.length; i5++) {
6120
- if (xmlData[i5] === "<") {
6121
- if (xmlData[i5 + 1] === "!") {
6122
- i5++;
6123
- i5 = readCommentAndCDATA(xmlData, i5);
6124
- continue;
6125
- } else if (xmlData[i5 + 1] === "?") {
6126
- i5 = readPI(xmlData, ++i5);
6127
- if (i5.err) return i5;
6128
- } else {
6129
- break;
6130
- }
6131
- } else if (xmlData[i5] === "&") {
6132
- const afterAmp = validateAmpersand(xmlData, i5);
6133
- if (afterAmp == -1)
6134
- return getErrorObject("InvalidChar", "char '&' is not expected.", getLineNumberForPosition(xmlData, i5));
6135
- i5 = afterAmp;
6136
- } else {
6137
- if (reachedRoot === true && !isWhiteSpace(xmlData[i5])) {
6138
- return getErrorObject("InvalidXml", "Extra text at the end", getLineNumberForPosition(xmlData, i5));
6139
- }
6140
- }
5897
+ msg = "Tag '" + tagName + "' is an invalid name.";
5898
+ }
5899
+ return getErrorObject("InvalidTag", msg, getLineNumberForPosition(xmlData, i5));
5900
+ }
5901
+ const result = readAttributeStr(xmlData, i5);
5902
+ if (result === false) {
5903
+ return getErrorObject("InvalidAttr", "Attributes for '" + tagName + "' have open quote.", getLineNumberForPosition(xmlData, i5));
5904
+ }
5905
+ let attrStr = result.value;
5906
+ i5 = result.index;
5907
+ if (attrStr[attrStr.length - 1] === "/") {
5908
+ const attrStrStart = i5 - attrStr.length;
5909
+ attrStr = attrStr.substring(0, attrStr.length - 1);
5910
+ const isValid = validateAttributeString(attrStr, options);
5911
+ if (isValid === true) {
5912
+ tagFound = true;
5913
+ } else {
5914
+ return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line));
5915
+ }
5916
+ } else if (closingTag) {
5917
+ if (!result.tagClosed) {
5918
+ return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' doesn't have proper closing.", getLineNumberForPosition(xmlData, i5));
5919
+ } else if (attrStr.trim().length > 0) {
5920
+ return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, tagStartPos));
5921
+ } else if (tags.length === 0) {
5922
+ return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' has not been opened.", getLineNumberForPosition(xmlData, tagStartPos));
5923
+ } else {
5924
+ const otg = tags.pop();
5925
+ if (tagName !== otg.tagName) {
5926
+ let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos);
5927
+ return getErrorObject(
5928
+ "InvalidTag",
5929
+ "Expected closing tag '" + otg.tagName + "' (opened in line " + openPos.line + ", col " + openPos.col + ") instead of closing tag '" + tagName + "'.",
5930
+ getLineNumberForPosition(xmlData, tagStartPos)
5931
+ );
6141
5932
  }
6142
- if (xmlData[i5] === "<") {
6143
- i5--;
5933
+ if (tags.length == 0) {
5934
+ reachedRoot = true;
6144
5935
  }
6145
5936
  }
6146
5937
  } else {
6147
- if (isWhiteSpace(xmlData[i5])) {
6148
- continue;
5938
+ const isValid = validateAttributeString(attrStr, options);
5939
+ if (isValid !== true) {
5940
+ return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i5 - attrStr.length + isValid.err.line));
5941
+ }
5942
+ if (reachedRoot === true) {
5943
+ return getErrorObject("InvalidXml", "Multiple possible root nodes found.", getLineNumberForPosition(xmlData, i5));
5944
+ } else if (options.unpairedTags.indexOf(tagName) !== -1) {
5945
+ } else {
5946
+ tags.push({ tagName, tagStartPos });
6149
5947
  }
6150
- return getErrorObject("InvalidChar", "char '" + xmlData[i5] + "' is not expected.", getLineNumberForPosition(xmlData, i5));
5948
+ tagFound = true;
6151
5949
  }
6152
- }
6153
- if (!tagFound) {
6154
- return getErrorObject("InvalidXml", "Start tag expected.", 1);
6155
- } else if (tags.length == 1) {
6156
- return getErrorObject("InvalidTag", "Unclosed tag '" + tags[0].tagName + "'.", getLineNumberForPosition(xmlData, tags[0].tagStartPos));
6157
- } else if (tags.length > 0) {
6158
- return getErrorObject("InvalidXml", "Invalid '" + JSON.stringify(tags.map((t5) => t5.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
6159
- }
6160
- return true;
6161
- };
6162
- function isWhiteSpace(char) {
6163
- return char === " " || char === " " || char === "\n" || char === "\r";
6164
- }
6165
- function readPI(xmlData, i5) {
6166
- const start = i5;
6167
- for (; i5 < xmlData.length; i5++) {
6168
- if (xmlData[i5] == "?" || xmlData[i5] == " ") {
6169
- const tagname = xmlData.substr(start, i5 - start);
6170
- if (i5 > 5 && tagname === "xml") {
6171
- return getErrorObject("InvalidXml", "XML declaration allowed only at the start of the document.", getLineNumberForPosition(xmlData, i5));
6172
- } else if (xmlData[i5] == "?" && xmlData[i5 + 1] == ">") {
6173
- i5++;
6174
- break;
6175
- } else {
6176
- continue;
6177
- }
6178
- }
6179
- }
6180
- return i5;
6181
- }
6182
- function readCommentAndCDATA(xmlData, i5) {
6183
- if (xmlData.length > i5 + 5 && xmlData[i5 + 1] === "-" && xmlData[i5 + 2] === "-") {
6184
- for (i5 += 3; i5 < xmlData.length; i5++) {
6185
- if (xmlData[i5] === "-" && xmlData[i5 + 1] === "-" && xmlData[i5 + 2] === ">") {
6186
- i5 += 2;
6187
- break;
6188
- }
6189
- }
6190
- } else if (xmlData.length > i5 + 8 && xmlData[i5 + 1] === "D" && xmlData[i5 + 2] === "O" && xmlData[i5 + 3] === "C" && xmlData[i5 + 4] === "T" && xmlData[i5 + 5] === "Y" && xmlData[i5 + 6] === "P" && xmlData[i5 + 7] === "E") {
6191
- let angleBracketsCount = 1;
6192
- for (i5 += 8; i5 < xmlData.length; i5++) {
5950
+ for (i5++; i5 < xmlData.length; i5++) {
6193
5951
  if (xmlData[i5] === "<") {
6194
- angleBracketsCount++;
6195
- } else if (xmlData[i5] === ">") {
6196
- angleBracketsCount--;
6197
- if (angleBracketsCount === 0) {
5952
+ if (xmlData[i5 + 1] === "!") {
5953
+ i5++;
5954
+ i5 = readCommentAndCDATA(xmlData, i5);
5955
+ continue;
5956
+ } else if (xmlData[i5 + 1] === "?") {
5957
+ i5 = readPI(xmlData, ++i5);
5958
+ if (i5.err) return i5;
5959
+ } else {
6198
5960
  break;
6199
5961
  }
5962
+ } else if (xmlData[i5] === "&") {
5963
+ const afterAmp = validateAmpersand(xmlData, i5);
5964
+ if (afterAmp == -1)
5965
+ return getErrorObject("InvalidChar", "char '&' is not expected.", getLineNumberForPosition(xmlData, i5));
5966
+ i5 = afterAmp;
5967
+ } else {
5968
+ if (reachedRoot === true && !isWhiteSpace(xmlData[i5])) {
5969
+ return getErrorObject("InvalidXml", "Extra text at the end", getLineNumberForPosition(xmlData, i5));
5970
+ }
6200
5971
  }
6201
5972
  }
6202
- } else if (xmlData.length > i5 + 9 && xmlData[i5 + 1] === "[" && xmlData[i5 + 2] === "C" && xmlData[i5 + 3] === "D" && xmlData[i5 + 4] === "A" && xmlData[i5 + 5] === "T" && xmlData[i5 + 6] === "A" && xmlData[i5 + 7] === "[") {
6203
- for (i5 += 8; i5 < xmlData.length; i5++) {
6204
- if (xmlData[i5] === "]" && xmlData[i5 + 1] === "]" && xmlData[i5 + 2] === ">") {
6205
- i5 += 2;
6206
- break;
6207
- }
5973
+ if (xmlData[i5] === "<") {
5974
+ i5--;
6208
5975
  }
6209
5976
  }
6210
- return i5;
5977
+ } else {
5978
+ if (isWhiteSpace(xmlData[i5])) {
5979
+ continue;
5980
+ }
5981
+ return getErrorObject("InvalidChar", "char '" + xmlData[i5] + "' is not expected.", getLineNumberForPosition(xmlData, i5));
6211
5982
  }
6212
- var doubleQuote = '"';
6213
- var singleQuote = "'";
6214
- function readAttributeStr(xmlData, i5) {
6215
- let attrStr = "";
6216
- let startChar = "";
6217
- let tagClosed = false;
6218
- for (; i5 < xmlData.length; i5++) {
6219
- if (xmlData[i5] === doubleQuote || xmlData[i5] === singleQuote) {
6220
- if (startChar === "") {
6221
- startChar = xmlData[i5];
6222
- } else if (startChar !== xmlData[i5]) {
6223
- } else {
6224
- startChar = "";
6225
- }
6226
- } else if (xmlData[i5] === ">") {
6227
- if (startChar === "") {
6228
- tagClosed = true;
6229
- break;
6230
- }
6231
- }
6232
- attrStr += xmlData[i5];
5983
+ }
5984
+ if (!tagFound) {
5985
+ return getErrorObject("InvalidXml", "Start tag expected.", 1);
5986
+ } else if (tags.length == 1) {
5987
+ return getErrorObject("InvalidTag", "Unclosed tag '" + tags[0].tagName + "'.", getLineNumberForPosition(xmlData, tags[0].tagStartPos));
5988
+ } else if (tags.length > 0) {
5989
+ return getErrorObject("InvalidXml", "Invalid '" + JSON.stringify(tags.map((t5) => t5.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
5990
+ }
5991
+ return true;
5992
+ }
5993
+ function isWhiteSpace(char) {
5994
+ return char === " " || char === " " || char === "\n" || char === "\r";
5995
+ }
5996
+ function readPI(xmlData, i5) {
5997
+ const start = i5;
5998
+ for (; i5 < xmlData.length; i5++) {
5999
+ if (xmlData[i5] == "?" || xmlData[i5] == " ") {
6000
+ const tagname = xmlData.substr(start, i5 - start);
6001
+ if (i5 > 5 && tagname === "xml") {
6002
+ return getErrorObject("InvalidXml", "XML declaration allowed only at the start of the document.", getLineNumberForPosition(xmlData, i5));
6003
+ } else if (xmlData[i5] == "?" && xmlData[i5 + 1] == ">") {
6004
+ i5++;
6005
+ break;
6006
+ } else {
6007
+ continue;
6233
6008
  }
6234
- if (startChar !== "") {
6235
- return false;
6009
+ }
6010
+ }
6011
+ return i5;
6012
+ }
6013
+ function readCommentAndCDATA(xmlData, i5) {
6014
+ if (xmlData.length > i5 + 5 && xmlData[i5 + 1] === "-" && xmlData[i5 + 2] === "-") {
6015
+ for (i5 += 3; i5 < xmlData.length; i5++) {
6016
+ if (xmlData[i5] === "-" && xmlData[i5 + 1] === "-" && xmlData[i5 + 2] === ">") {
6017
+ i5 += 2;
6018
+ break;
6236
6019
  }
6237
- return {
6238
- value: attrStr,
6239
- index: i5,
6240
- tagClosed
6241
- };
6242
6020
  }
6243
- var validAttrStrRegxp = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
6244
- function validateAttributeString(attrStr, options) {
6245
- const matches = util.getAllMatches(attrStr, validAttrStrRegxp);
6246
- const attrNames = {};
6247
- for (let i5 = 0; i5 < matches.length; i5++) {
6248
- if (matches[i5][1].length === 0) {
6249
- return getErrorObject("InvalidAttr", "Attribute '" + matches[i5][2] + "' has no space in starting.", getPositionFromMatch(matches[i5]));
6250
- } else if (matches[i5][3] !== void 0 && matches[i5][4] === void 0) {
6251
- return getErrorObject("InvalidAttr", "Attribute '" + matches[i5][2] + "' is without value.", getPositionFromMatch(matches[i5]));
6252
- } else if (matches[i5][3] === void 0 && !options.allowBooleanAttributes) {
6253
- return getErrorObject("InvalidAttr", "boolean attribute '" + matches[i5][2] + "' is not allowed.", getPositionFromMatch(matches[i5]));
6254
- }
6255
- const attrName = matches[i5][2];
6256
- if (!validateAttrName(attrName)) {
6257
- return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(matches[i5]));
6258
- }
6259
- if (!attrNames.hasOwnProperty(attrName)) {
6260
- attrNames[attrName] = 1;
6261
- } else {
6262
- return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(matches[i5]));
6021
+ } else if (xmlData.length > i5 + 8 && xmlData[i5 + 1] === "D" && xmlData[i5 + 2] === "O" && xmlData[i5 + 3] === "C" && xmlData[i5 + 4] === "T" && xmlData[i5 + 5] === "Y" && xmlData[i5 + 6] === "P" && xmlData[i5 + 7] === "E") {
6022
+ let angleBracketsCount = 1;
6023
+ for (i5 += 8; i5 < xmlData.length; i5++) {
6024
+ if (xmlData[i5] === "<") {
6025
+ angleBracketsCount++;
6026
+ } else if (xmlData[i5] === ">") {
6027
+ angleBracketsCount--;
6028
+ if (angleBracketsCount === 0) {
6029
+ break;
6263
6030
  }
6264
6031
  }
6265
- return true;
6266
6032
  }
6267
- function validateNumberAmpersand(xmlData, i5) {
6268
- let re = /\d/;
6269
- if (xmlData[i5] === "x") {
6270
- i5++;
6271
- re = /[\da-fA-F]/;
6272
- }
6273
- for (; i5 < xmlData.length; i5++) {
6274
- if (xmlData[i5] === ";")
6275
- return i5;
6276
- if (!xmlData[i5].match(re))
6277
- break;
6033
+ } else if (xmlData.length > i5 + 9 && xmlData[i5 + 1] === "[" && xmlData[i5 + 2] === "C" && xmlData[i5 + 3] === "D" && xmlData[i5 + 4] === "A" && xmlData[i5 + 5] === "T" && xmlData[i5 + 6] === "A" && xmlData[i5 + 7] === "[") {
6034
+ for (i5 += 8; i5 < xmlData.length; i5++) {
6035
+ if (xmlData[i5] === "]" && xmlData[i5 + 1] === "]" && xmlData[i5 + 2] === ">") {
6036
+ i5 += 2;
6037
+ break;
6278
6038
  }
6279
- return -1;
6280
6039
  }
6281
- function validateAmpersand(xmlData, i5) {
6282
- i5++;
6283
- if (xmlData[i5] === ";")
6284
- return -1;
6285
- if (xmlData[i5] === "#") {
6286
- i5++;
6287
- return validateNumberAmpersand(xmlData, i5);
6040
+ }
6041
+ return i5;
6042
+ }
6043
+ function readAttributeStr(xmlData, i5) {
6044
+ let attrStr = "";
6045
+ let startChar = "";
6046
+ let tagClosed = false;
6047
+ for (; i5 < xmlData.length; i5++) {
6048
+ if (xmlData[i5] === doubleQuote || xmlData[i5] === singleQuote) {
6049
+ if (startChar === "") {
6050
+ startChar = xmlData[i5];
6051
+ } else if (startChar !== xmlData[i5]) {
6052
+ } else {
6053
+ startChar = "";
6288
6054
  }
6289
- let count = 0;
6290
- for (; i5 < xmlData.length; i5++, count++) {
6291
- if (xmlData[i5].match(/\w/) && count < 20)
6292
- continue;
6293
- if (xmlData[i5] === ";")
6294
- break;
6295
- return -1;
6055
+ } else if (xmlData[i5] === ">") {
6056
+ if (startChar === "") {
6057
+ tagClosed = true;
6058
+ break;
6296
6059
  }
6297
- return i5;
6298
6060
  }
6299
- function getErrorObject(code, message, lineNumber) {
6300
- return {
6301
- err: {
6302
- code,
6303
- msg: message,
6304
- line: lineNumber.line || lineNumber,
6305
- col: lineNumber.col
6306
- }
6307
- };
6308
- }
6309
- function validateAttrName(attrName) {
6310
- return util.isName(attrName);
6061
+ attrStr += xmlData[i5];
6062
+ }
6063
+ if (startChar !== "") {
6064
+ return false;
6065
+ }
6066
+ return {
6067
+ value: attrStr,
6068
+ index: i5,
6069
+ tagClosed
6070
+ };
6071
+ }
6072
+ function validateAttributeString(attrStr, options) {
6073
+ const matches = getAllMatches(attrStr, validAttrStrRegxp);
6074
+ const attrNames = {};
6075
+ for (let i5 = 0; i5 < matches.length; i5++) {
6076
+ if (matches[i5][1].length === 0) {
6077
+ return getErrorObject("InvalidAttr", "Attribute '" + matches[i5][2] + "' has no space in starting.", getPositionFromMatch(matches[i5]));
6078
+ } else if (matches[i5][3] !== void 0 && matches[i5][4] === void 0) {
6079
+ return getErrorObject("InvalidAttr", "Attribute '" + matches[i5][2] + "' is without value.", getPositionFromMatch(matches[i5]));
6080
+ } else if (matches[i5][3] === void 0 && !options.allowBooleanAttributes) {
6081
+ return getErrorObject("InvalidAttr", "boolean attribute '" + matches[i5][2] + "' is not allowed.", getPositionFromMatch(matches[i5]));
6311
6082
  }
6312
- function validateTagName(tagname) {
6313
- return util.isName(tagname);
6083
+ const attrName = matches[i5][2];
6084
+ if (!validateAttrName(attrName)) {
6085
+ return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(matches[i5]));
6314
6086
  }
6315
- function getLineNumberForPosition(xmlData, index) {
6316
- const lines = xmlData.substring(0, index).split(/\r?\n/);
6317
- return {
6318
- line: lines.length,
6319
- // column number is last line's length + 1, because column numbering starts at 1:
6320
- col: lines[lines.length - 1].length + 1
6321
- };
6087
+ if (!attrNames.hasOwnProperty(attrName)) {
6088
+ attrNames[attrName] = 1;
6089
+ } else {
6090
+ return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(matches[i5]));
6322
6091
  }
6323
- function getPositionFromMatch(match) {
6324
- return match.startIndex + match[1].length;
6092
+ }
6093
+ return true;
6094
+ }
6095
+ function validateNumberAmpersand(xmlData, i5) {
6096
+ let re = /\d/;
6097
+ if (xmlData[i5] === "x") {
6098
+ i5++;
6099
+ re = /[\da-fA-F]/;
6100
+ }
6101
+ for (; i5 < xmlData.length; i5++) {
6102
+ if (xmlData[i5] === ";")
6103
+ return i5;
6104
+ if (!xmlData[i5].match(re))
6105
+ break;
6106
+ }
6107
+ return -1;
6108
+ }
6109
+ function validateAmpersand(xmlData, i5) {
6110
+ i5++;
6111
+ if (xmlData[i5] === ";")
6112
+ return -1;
6113
+ if (xmlData[i5] === "#") {
6114
+ i5++;
6115
+ return validateNumberAmpersand(xmlData, i5);
6116
+ }
6117
+ let count = 0;
6118
+ for (; i5 < xmlData.length; i5++, count++) {
6119
+ if (xmlData[i5].match(/\w/) && count < 20)
6120
+ continue;
6121
+ if (xmlData[i5] === ";")
6122
+ break;
6123
+ return -1;
6124
+ }
6125
+ return i5;
6126
+ }
6127
+ function getErrorObject(code, message, lineNumber) {
6128
+ return {
6129
+ err: {
6130
+ code,
6131
+ msg: message,
6132
+ line: lineNumber.line || lineNumber,
6133
+ col: lineNumber.col
6325
6134
  }
6135
+ };
6136
+ }
6137
+ function validateAttrName(attrName) {
6138
+ return isName(attrName);
6139
+ }
6140
+ function validateTagName(tagname) {
6141
+ return isName(tagname);
6142
+ }
6143
+ function getLineNumberForPosition(xmlData, index) {
6144
+ const lines = xmlData.substring(0, index).split(/\r?\n/);
6145
+ return {
6146
+ line: lines.length,
6147
+ // column number is last line's length + 1, because column numbering starts at 1:
6148
+ col: lines[lines.length - 1].length + 1
6149
+ };
6150
+ }
6151
+ function getPositionFromMatch(match) {
6152
+ return match.startIndex + match[1].length;
6153
+ }
6154
+ var defaultOptions, doubleQuote, singleQuote, validAttrStrRegxp;
6155
+ var init_validator = __esm({
6156
+ "node_modules/fast-xml-parser/src/validator.js"() {
6157
+ "use strict";
6158
+ init_util2();
6159
+ defaultOptions = {
6160
+ allowBooleanAttributes: false,
6161
+ //A tag can have attributes without any value
6162
+ unpairedTags: []
6163
+ };
6164
+ doubleQuote = '"';
6165
+ singleQuote = "'";
6166
+ validAttrStrRegxp = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
6326
6167
  }
6327
6168
  });
6328
6169
 
6329
6170
  // node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
6330
- var require_OptionsBuilder = __commonJS({
6331
- "node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"(exports2) {
6171
+ var defaultOptions2, buildOptions;
6172
+ var init_OptionsBuilder = __esm({
6173
+ "node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"() {
6332
6174
  "use strict";
6333
- var defaultOptions = {
6175
+ defaultOptions2 = {
6334
6176
  preserveOrder: false,
6335
6177
  attributeNamePrefix: "@_",
6336
6178
  attributesGroupName: false,
@@ -6351,11 +6193,11 @@ var require_OptionsBuilder = __commonJS({
6351
6193
  leadingZeros: true,
6352
6194
  eNotation: true
6353
6195
  },
6354
- tagValueProcessor: function(tagName, val2) {
6355
- return val2;
6196
+ tagValueProcessor: function(tagName, val) {
6197
+ return val;
6356
6198
  },
6357
- attributeValueProcessor: function(attrName, val2) {
6358
- return val2;
6199
+ attributeValueProcessor: function(attrName, val) {
6200
+ return val;
6359
6201
  },
6360
6202
  stopNodes: [],
6361
6203
  //nested tags will not be parsed even for errors
@@ -6371,150 +6213,332 @@ var require_OptionsBuilder = __commonJS({
6371
6213
  transformAttributeName: false,
6372
6214
  updateTag: function(tagName, jPath, attrs) {
6373
6215
  return tagName;
6374
- }
6216
+ },
6375
6217
  // skipEmptyListItem: false
6218
+ captureMetaData: false
6376
6219
  };
6377
- var buildOptions = function(options) {
6378
- return Object.assign({}, defaultOptions, options);
6220
+ buildOptions = function(options) {
6221
+ return Object.assign({}, defaultOptions2, options);
6379
6222
  };
6380
- exports2.buildOptions = buildOptions;
6381
- exports2.defaultOptions = defaultOptions;
6382
6223
  }
6383
6224
  });
6384
6225
 
6385
6226
  // node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
6386
- var require_xmlNode = __commonJS({
6387
- "node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"(exports2, module2) {
6227
+ var METADATA_SYMBOL, XmlNode;
6228
+ var init_xmlNode = __esm({
6229
+ "node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"() {
6388
6230
  "use strict";
6389
- var XmlNode2 = class {
6231
+ if (typeof Symbol !== "function") {
6232
+ METADATA_SYMBOL = "@@xmlMetadata";
6233
+ } else {
6234
+ METADATA_SYMBOL = Symbol("XML Node Metadata");
6235
+ }
6236
+ XmlNode = class {
6390
6237
  constructor(tagname) {
6391
6238
  this.tagname = tagname;
6392
6239
  this.child = [];
6393
6240
  this[":@"] = {};
6394
6241
  }
6395
- add(key, val2) {
6242
+ add(key, val) {
6396
6243
  if (key === "__proto__") key = "#__proto__";
6397
- this.child.push({ [key]: val2 });
6244
+ this.child.push({ [key]: val });
6398
6245
  }
6399
- addChild(node) {
6246
+ addChild(node, startIndex) {
6400
6247
  if (node.tagname === "__proto__") node.tagname = "#__proto__";
6401
6248
  if (node[":@"] && Object.keys(node[":@"]).length > 0) {
6402
6249
  this.child.push({ [node.tagname]: node.child, [":@"]: node[":@"] });
6403
6250
  } else {
6404
6251
  this.child.push({ [node.tagname]: node.child });
6405
6252
  }
6253
+ if (startIndex !== void 0) {
6254
+ this.child[this.child.length - 1][METADATA_SYMBOL] = { startIndex };
6255
+ }
6256
+ }
6257
+ /** symbol used for metadata */
6258
+ static getMetaDataSymbol() {
6259
+ return METADATA_SYMBOL;
6406
6260
  }
6407
6261
  };
6408
- module2.exports = XmlNode2;
6409
6262
  }
6410
6263
  });
6411
6264
 
6412
6265
  // node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
6413
- var require_DocTypeReader = __commonJS({
6414
- "node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"(exports2, module2) {
6415
- "use strict";
6416
- var util = require_util();
6417
- function readDocType(xmlData, i5) {
6418
- const entities = {};
6419
- if (xmlData[i5 + 3] === "O" && xmlData[i5 + 4] === "C" && xmlData[i5 + 5] === "T" && xmlData[i5 + 6] === "Y" && xmlData[i5 + 7] === "P" && xmlData[i5 + 8] === "E") {
6420
- i5 = i5 + 9;
6421
- let angleBracketsCount = 1;
6422
- let hasBody = false, comment = false;
6423
- let exp = "";
6424
- for (; i5 < xmlData.length; i5++) {
6425
- if (xmlData[i5] === "<" && !comment) {
6426
- if (hasBody && isEntity(xmlData, i5)) {
6427
- i5 += 7;
6428
- [entityName, val, i5] = readEntityExp(xmlData, i5 + 1);
6429
- if (val.indexOf("&") === -1)
6430
- entities[validateEntityName(entityName)] = {
6431
- regx: RegExp(`&${entityName};`, "g"),
6432
- val
6433
- };
6434
- } else if (hasBody && isElement(xmlData, i5)) i5 += 8;
6435
- else if (hasBody && isAttlist(xmlData, i5)) i5 += 8;
6436
- else if (hasBody && isNotation(xmlData, i5)) i5 += 9;
6437
- else if (isComment) comment = true;
6438
- else throw new Error("Invalid DOCTYPE");
6439
- angleBracketsCount++;
6440
- exp = "";
6441
- } else if (xmlData[i5] === ">") {
6442
- if (comment) {
6443
- if (xmlData[i5 - 1] === "-" && xmlData[i5 - 2] === "-") {
6444
- comment = false;
6445
- angleBracketsCount--;
6446
- }
6447
- } else {
6448
- angleBracketsCount--;
6449
- }
6450
- if (angleBracketsCount === 0) {
6451
- break;
6452
- }
6453
- } else if (xmlData[i5] === "[") {
6454
- hasBody = true;
6455
- } else {
6456
- exp += xmlData[i5];
6266
+ function readDocType(xmlData, i5) {
6267
+ const entities = {};
6268
+ if (xmlData[i5 + 3] === "O" && xmlData[i5 + 4] === "C" && xmlData[i5 + 5] === "T" && xmlData[i5 + 6] === "Y" && xmlData[i5 + 7] === "P" && xmlData[i5 + 8] === "E") {
6269
+ i5 = i5 + 9;
6270
+ let angleBracketsCount = 1;
6271
+ let hasBody = false, comment = false;
6272
+ let exp = "";
6273
+ for (; i5 < xmlData.length; i5++) {
6274
+ if (xmlData[i5] === "<" && !comment) {
6275
+ if (hasBody && hasSeq(xmlData, "!ENTITY", i5)) {
6276
+ i5 += 7;
6277
+ let entityName, val;
6278
+ [entityName, val, i5] = readEntityExp(xmlData, i5 + 1);
6279
+ if (val.indexOf("&") === -1)
6280
+ entities[entityName] = {
6281
+ regx: RegExp(`&${entityName};`, "g"),
6282
+ val
6283
+ };
6284
+ } else if (hasBody && hasSeq(xmlData, "!ELEMENT", i5)) {
6285
+ i5 += 8;
6286
+ const { index } = readElementExp(xmlData, i5 + 1);
6287
+ i5 = index;
6288
+ } else if (hasBody && hasSeq(xmlData, "!ATTLIST", i5)) {
6289
+ i5 += 8;
6290
+ } else if (hasBody && hasSeq(xmlData, "!NOTATION", i5)) {
6291
+ i5 += 9;
6292
+ const { index } = readNotationExp(xmlData, i5 + 1);
6293
+ i5 = index;
6294
+ } else if (hasSeq(xmlData, "!--", i5)) comment = true;
6295
+ else throw new Error(`Invalid DOCTYPE`);
6296
+ angleBracketsCount++;
6297
+ exp = "";
6298
+ } else if (xmlData[i5] === ">") {
6299
+ if (comment) {
6300
+ if (xmlData[i5 - 1] === "-" && xmlData[i5 - 2] === "-") {
6301
+ comment = false;
6302
+ angleBracketsCount--;
6457
6303
  }
6304
+ } else {
6305
+ angleBracketsCount--;
6458
6306
  }
6459
- if (angleBracketsCount !== 0) {
6460
- throw new Error(`Unclosed DOCTYPE`);
6307
+ if (angleBracketsCount === 0) {
6308
+ break;
6461
6309
  }
6310
+ } else if (xmlData[i5] === "[") {
6311
+ hasBody = true;
6462
6312
  } else {
6463
- throw new Error(`Invalid Tag instead of DOCTYPE`);
6313
+ exp += xmlData[i5];
6464
6314
  }
6465
- return { entities, i: i5 };
6466
6315
  }
6467
- function readEntityExp(xmlData, i5) {
6468
- let entityName2 = "";
6469
- for (; i5 < xmlData.length && (xmlData[i5] !== "'" && xmlData[i5] !== '"'); i5++) {
6470
- entityName2 += xmlData[i5];
6471
- }
6472
- entityName2 = entityName2.trim();
6473
- if (entityName2.indexOf(" ") !== -1) throw new Error("External entites are not supported");
6474
- const startChar = xmlData[i5++];
6475
- let val2 = "";
6476
- for (; i5 < xmlData.length && xmlData[i5] !== startChar; i5++) {
6477
- val2 += xmlData[i5];
6478
- }
6479
- return [entityName2, val2, i5];
6316
+ if (angleBracketsCount !== 0) {
6317
+ throw new Error(`Unclosed DOCTYPE`);
6480
6318
  }
6481
- function isComment(xmlData, i5) {
6482
- if (xmlData[i5 + 1] === "!" && xmlData[i5 + 2] === "-" && xmlData[i5 + 3] === "-") return true;
6483
- return false;
6484
- }
6485
- function isEntity(xmlData, i5) {
6486
- if (xmlData[i5 + 1] === "!" && xmlData[i5 + 2] === "E" && xmlData[i5 + 3] === "N" && xmlData[i5 + 4] === "T" && xmlData[i5 + 5] === "I" && xmlData[i5 + 6] === "T" && xmlData[i5 + 7] === "Y") return true;
6487
- return false;
6488
- }
6489
- function isElement(xmlData, i5) {
6490
- if (xmlData[i5 + 1] === "!" && xmlData[i5 + 2] === "E" && xmlData[i5 + 3] === "L" && xmlData[i5 + 4] === "E" && xmlData[i5 + 5] === "M" && xmlData[i5 + 6] === "E" && xmlData[i5 + 7] === "N" && xmlData[i5 + 8] === "T") return true;
6491
- return false;
6319
+ } else {
6320
+ throw new Error(`Invalid Tag instead of DOCTYPE`);
6321
+ }
6322
+ return { entities, i: i5 };
6323
+ }
6324
+ function readEntityExp(xmlData, i5) {
6325
+ i5 = skipWhitespace(xmlData, i5);
6326
+ let entityName = "";
6327
+ while (i5 < xmlData.length && !/\s/.test(xmlData[i5]) && xmlData[i5] !== '"' && xmlData[i5] !== "'") {
6328
+ entityName += xmlData[i5];
6329
+ i5++;
6330
+ }
6331
+ validateEntityName(entityName);
6332
+ i5 = skipWhitespace(xmlData, i5);
6333
+ if (xmlData.substring(i5, i5 + 6).toUpperCase() === "SYSTEM") {
6334
+ throw new Error("External entities are not supported");
6335
+ } else if (xmlData[i5] === "%") {
6336
+ throw new Error("Parameter entities are not supported");
6337
+ }
6338
+ let entityValue = "";
6339
+ [i5, entityValue] = readIdentifierVal(xmlData, i5, "entity");
6340
+ i5--;
6341
+ return [entityName, entityValue, i5];
6342
+ }
6343
+ function readNotationExp(xmlData, i5) {
6344
+ i5 = skipWhitespace(xmlData, i5);
6345
+ let notationName = "";
6346
+ while (i5 < xmlData.length && !/\s/.test(xmlData[i5])) {
6347
+ notationName += xmlData[i5];
6348
+ i5++;
6349
+ }
6350
+ validateEntityName(notationName);
6351
+ i5 = skipWhitespace(xmlData, i5);
6352
+ const identifierType = xmlData.substring(i5, i5 + 6).toUpperCase();
6353
+ if (identifierType !== "SYSTEM" && identifierType !== "PUBLIC") {
6354
+ throw new Error(`Expected SYSTEM or PUBLIC, found "${identifierType}"`);
6355
+ }
6356
+ i5 += identifierType.length;
6357
+ i5 = skipWhitespace(xmlData, i5);
6358
+ let publicIdentifier = null;
6359
+ let systemIdentifier = null;
6360
+ if (identifierType === "PUBLIC") {
6361
+ [i5, publicIdentifier] = readIdentifierVal(xmlData, i5, "publicIdentifier");
6362
+ i5 = skipWhitespace(xmlData, i5);
6363
+ if (xmlData[i5] === '"' || xmlData[i5] === "'") {
6364
+ [i5, systemIdentifier] = readIdentifierVal(xmlData, i5, "systemIdentifier");
6492
6365
  }
6493
- function isAttlist(xmlData, i5) {
6494
- if (xmlData[i5 + 1] === "!" && xmlData[i5 + 2] === "A" && xmlData[i5 + 3] === "T" && xmlData[i5 + 4] === "T" && xmlData[i5 + 5] === "L" && xmlData[i5 + 6] === "I" && xmlData[i5 + 7] === "S" && xmlData[i5 + 8] === "T") return true;
6495
- return false;
6366
+ } else if (identifierType === "SYSTEM") {
6367
+ [i5, systemIdentifier] = readIdentifierVal(xmlData, i5, "systemIdentifier");
6368
+ if (!systemIdentifier) {
6369
+ throw new Error("Missing mandatory system identifier for SYSTEM notation");
6496
6370
  }
6497
- function isNotation(xmlData, i5) {
6498
- if (xmlData[i5 + 1] === "!" && xmlData[i5 + 2] === "N" && xmlData[i5 + 3] === "O" && xmlData[i5 + 4] === "T" && xmlData[i5 + 5] === "A" && xmlData[i5 + 6] === "T" && xmlData[i5 + 7] === "I" && xmlData[i5 + 8] === "O" && xmlData[i5 + 9] === "N") return true;
6499
- return false;
6371
+ }
6372
+ return { notationName, publicIdentifier, systemIdentifier, index: --i5 };
6373
+ }
6374
+ function readIdentifierVal(xmlData, i5, type) {
6375
+ let identifierVal = "";
6376
+ const startChar = xmlData[i5];
6377
+ if (startChar !== '"' && startChar !== "'") {
6378
+ throw new Error(`Expected quoted string, found "${startChar}"`);
6379
+ }
6380
+ i5++;
6381
+ while (i5 < xmlData.length && xmlData[i5] !== startChar) {
6382
+ identifierVal += xmlData[i5];
6383
+ i5++;
6384
+ }
6385
+ if (xmlData[i5] !== startChar) {
6386
+ throw new Error(`Unterminated ${type} value`);
6387
+ }
6388
+ i5++;
6389
+ return [i5, identifierVal];
6390
+ }
6391
+ function readElementExp(xmlData, i5) {
6392
+ i5 = skipWhitespace(xmlData, i5);
6393
+ let elementName = "";
6394
+ while (i5 < xmlData.length && !/\s/.test(xmlData[i5])) {
6395
+ elementName += xmlData[i5];
6396
+ i5++;
6397
+ }
6398
+ if (!validateEntityName(elementName)) {
6399
+ throw new Error(`Invalid element name: "${elementName}"`);
6400
+ }
6401
+ i5 = skipWhitespace(xmlData, i5);
6402
+ let contentModel = "";
6403
+ if (xmlData[i5] === "E" && hasSeq(xmlData, "MPTY", i5)) i5 += 4;
6404
+ else if (xmlData[i5] === "A" && hasSeq(xmlData, "NY", i5)) i5 += 2;
6405
+ else if (xmlData[i5] === "(") {
6406
+ i5++;
6407
+ while (i5 < xmlData.length && xmlData[i5] !== ")") {
6408
+ contentModel += xmlData[i5];
6409
+ i5++;
6500
6410
  }
6501
- function validateEntityName(name) {
6502
- if (util.isName(name))
6503
- return name;
6504
- else
6505
- throw new Error(`Invalid entity name ${name}`);
6411
+ if (xmlData[i5] !== ")") {
6412
+ throw new Error("Unterminated content model");
6506
6413
  }
6507
- module2.exports = readDocType;
6414
+ } else {
6415
+ throw new Error(`Invalid Element Expression, found "${xmlData[i5]}"`);
6416
+ }
6417
+ return {
6418
+ elementName,
6419
+ contentModel: contentModel.trim(),
6420
+ index: i5
6421
+ };
6422
+ }
6423
+ function hasSeq(data, seq, i5) {
6424
+ for (let j5 = 0; j5 < seq.length; j5++) {
6425
+ if (seq[j5] !== data[i5 + j5 + 1]) return false;
6426
+ }
6427
+ return true;
6428
+ }
6429
+ function validateEntityName(name) {
6430
+ if (isName(name))
6431
+ return name;
6432
+ else
6433
+ throw new Error(`Invalid entity name ${name}`);
6434
+ }
6435
+ var skipWhitespace;
6436
+ var init_DocTypeReader = __esm({
6437
+ "node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"() {
6438
+ "use strict";
6439
+ init_util2();
6440
+ skipWhitespace = (data, index) => {
6441
+ while (index < data.length && /\s/.test(data[index])) {
6442
+ index++;
6443
+ }
6444
+ return index;
6445
+ };
6508
6446
  }
6509
6447
  });
6510
6448
 
6511
6449
  // node_modules/strnum/strnum.js
6512
- var require_strnum = __commonJS({
6513
- "node_modules/strnum/strnum.js"(exports2, module2) {
6450
+ function toNumber(str, options = {}) {
6451
+ options = Object.assign({}, consider, options);
6452
+ if (!str || typeof str !== "string") return str;
6453
+ let trimmedStr = str.trim();
6454
+ if (options.skipLike !== void 0 && options.skipLike.test(trimmedStr)) return str;
6455
+ else if (str === "0") return 0;
6456
+ else if (options.hex && hexRegex.test(trimmedStr)) {
6457
+ return parse_int(trimmedStr, 16);
6458
+ } else if (trimmedStr.search(/.+[eE].+/) !== -1) {
6459
+ return resolveEnotation(str, trimmedStr, options);
6460
+ } else {
6461
+ const match = numRegex.exec(trimmedStr);
6462
+ if (match) {
6463
+ const sign = match[1] || "";
6464
+ const leadingZeros = match[2];
6465
+ let numTrimmedByZeros = trimZeros(match[3]);
6466
+ const decimalAdjacentToLeadingZeros = sign ? (
6467
+ // 0., -00., 000.
6468
+ str[leadingZeros.length + 1] === "."
6469
+ ) : str[leadingZeros.length] === ".";
6470
+ if (!options.leadingZeros && (leadingZeros.length > 1 || leadingZeros.length === 1 && !decimalAdjacentToLeadingZeros)) {
6471
+ return str;
6472
+ } else {
6473
+ const num = Number(trimmedStr);
6474
+ const parsedStr = String(num);
6475
+ if (num === 0) return num;
6476
+ if (parsedStr.search(/[eE]/) !== -1) {
6477
+ if (options.eNotation) return num;
6478
+ else return str;
6479
+ } else if (trimmedStr.indexOf(".") !== -1) {
6480
+ if (parsedStr === "0") return num;
6481
+ else if (parsedStr === numTrimmedByZeros) return num;
6482
+ else if (parsedStr === `${sign}${numTrimmedByZeros}`) return num;
6483
+ else return str;
6484
+ }
6485
+ let n5 = leadingZeros ? numTrimmedByZeros : trimmedStr;
6486
+ if (leadingZeros) {
6487
+ return n5 === parsedStr || sign + n5 === parsedStr ? num : str;
6488
+ } else {
6489
+ return n5 === parsedStr || n5 === sign + parsedStr ? num : str;
6490
+ }
6491
+ }
6492
+ } else {
6493
+ return str;
6494
+ }
6495
+ }
6496
+ }
6497
+ function resolveEnotation(str, trimmedStr, options) {
6498
+ if (!options.eNotation) return str;
6499
+ const notation = trimmedStr.match(eNotationRegx);
6500
+ if (notation) {
6501
+ let sign = notation[1] || "";
6502
+ const eChar = notation[3].indexOf("e") === -1 ? "E" : "e";
6503
+ const leadingZeros = notation[2];
6504
+ const eAdjacentToLeadingZeros = sign ? (
6505
+ // 0E.
6506
+ str[leadingZeros.length + 1] === eChar
6507
+ ) : str[leadingZeros.length] === eChar;
6508
+ if (leadingZeros.length > 1 && eAdjacentToLeadingZeros) return str;
6509
+ else if (leadingZeros.length === 1 && (notation[3].startsWith(`.${eChar}`) || notation[3][0] === eChar)) {
6510
+ return Number(trimmedStr);
6511
+ } else if (options.leadingZeros && !eAdjacentToLeadingZeros) {
6512
+ trimmedStr = (notation[1] || "") + notation[3];
6513
+ return Number(trimmedStr);
6514
+ } else return str;
6515
+ } else {
6516
+ return str;
6517
+ }
6518
+ }
6519
+ function trimZeros(numStr) {
6520
+ if (numStr && numStr.indexOf(".") !== -1) {
6521
+ numStr = numStr.replace(/0+$/, "");
6522
+ if (numStr === ".") numStr = "0";
6523
+ else if (numStr[0] === ".") numStr = "0" + numStr;
6524
+ else if (numStr[numStr.length - 1] === ".") numStr = numStr.substring(0, numStr.length - 1);
6525
+ return numStr;
6526
+ }
6527
+ return numStr;
6528
+ }
6529
+ function parse_int(numStr, base) {
6530
+ if (parseInt) return parseInt(numStr, base);
6531
+ else if (Number.parseInt) return Number.parseInt(numStr, base);
6532
+ else if (window && window.parseInt) return window.parseInt(numStr, base);
6533
+ else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
6534
+ }
6535
+ var hexRegex, numRegex, consider, eNotationRegx;
6536
+ var init_strnum = __esm({
6537
+ "node_modules/strnum/strnum.js"() {
6514
6538
  "use strict";
6515
- var hexRegex = /^[-+]?0x[a-fA-F0-9]+$/;
6516
- var numRegex = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/;
6517
- var consider = {
6539
+ hexRegex = /^[-+]?0x[a-fA-F0-9]+$/;
6540
+ numRegex = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/;
6541
+ consider = {
6518
6542
  hex: true,
6519
6543
  // oct: false,
6520
6544
  leadingZeros: true,
@@ -6522,90 +6546,299 @@ var require_strnum = __commonJS({
6522
6546
  eNotation: true
6523
6547
  //skipLike: /regex/
6524
6548
  };
6525
- function toNumber(str, options = {}) {
6526
- options = Object.assign({}, consider, options);
6527
- if (!str || typeof str !== "string") return str;
6528
- let trimmedStr = str.trim();
6529
- if (options.skipLike !== void 0 && options.skipLike.test(trimmedStr)) return str;
6530
- else if (str === "0") return 0;
6531
- else if (options.hex && hexRegex.test(trimmedStr)) {
6532
- return parse_int(trimmedStr, 16);
6533
- } else if (trimmedStr.search(/[eE]/) !== -1) {
6534
- const notation = trimmedStr.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);
6535
- if (notation) {
6536
- if (options.leadingZeros) {
6537
- trimmedStr = (notation[1] || "") + notation[3];
6549
+ eNotationRegx = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
6550
+ }
6551
+ });
6552
+
6553
+ // node_modules/fast-xml-parser/src/ignoreAttributes.js
6554
+ function getIgnoreAttributesFn(ignoreAttributes) {
6555
+ if (typeof ignoreAttributes === "function") {
6556
+ return ignoreAttributes;
6557
+ }
6558
+ if (Array.isArray(ignoreAttributes)) {
6559
+ return (attrName) => {
6560
+ for (const pattern of ignoreAttributes) {
6561
+ if (typeof pattern === "string" && attrName === pattern) {
6562
+ return true;
6563
+ }
6564
+ if (pattern instanceof RegExp && pattern.test(attrName)) {
6565
+ return true;
6566
+ }
6567
+ }
6568
+ };
6569
+ }
6570
+ return () => false;
6571
+ }
6572
+ var init_ignoreAttributes = __esm({
6573
+ "node_modules/fast-xml-parser/src/ignoreAttributes.js"() {
6574
+ "use strict";
6575
+ }
6576
+ });
6577
+
6578
+ // node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
6579
+ function addExternalEntities(externalEntities) {
6580
+ const entKeys = Object.keys(externalEntities);
6581
+ for (let i5 = 0; i5 < entKeys.length; i5++) {
6582
+ const ent = entKeys[i5];
6583
+ this.lastEntities[ent] = {
6584
+ regex: new RegExp("&" + ent + ";", "g"),
6585
+ val: externalEntities[ent]
6586
+ };
6587
+ }
6588
+ }
6589
+ function parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) {
6590
+ if (val !== void 0) {
6591
+ if (this.options.trimValues && !dontTrim) {
6592
+ val = val.trim();
6593
+ }
6594
+ if (val.length > 0) {
6595
+ if (!escapeEntities) val = this.replaceEntitiesValue(val);
6596
+ const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode);
6597
+ if (newval === null || newval === void 0) {
6598
+ return val;
6599
+ } else if (typeof newval !== typeof val || newval !== val) {
6600
+ return newval;
6601
+ } else if (this.options.trimValues) {
6602
+ return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
6603
+ } else {
6604
+ const trimmedVal = val.trim();
6605
+ if (trimmedVal === val) {
6606
+ return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
6607
+ } else {
6608
+ return val;
6609
+ }
6610
+ }
6611
+ }
6612
+ }
6613
+ }
6614
+ function resolveNameSpace(tagname) {
6615
+ if (this.options.removeNSPrefix) {
6616
+ const tags = tagname.split(":");
6617
+ const prefix = tagname.charAt(0) === "/" ? "/" : "";
6618
+ if (tags[0] === "xmlns") {
6619
+ return "";
6620
+ }
6621
+ if (tags.length === 2) {
6622
+ tagname = prefix + tags[1];
6623
+ }
6624
+ }
6625
+ return tagname;
6626
+ }
6627
+ function buildAttributesMap(attrStr, jPath, tagName) {
6628
+ if (this.options.ignoreAttributes !== true && typeof attrStr === "string") {
6629
+ const matches = getAllMatches(attrStr, attrsRegx);
6630
+ const len = matches.length;
6631
+ const attrs = {};
6632
+ for (let i5 = 0; i5 < len; i5++) {
6633
+ const attrName = this.resolveNameSpace(matches[i5][1]);
6634
+ if (this.ignoreAttributesFn(attrName, jPath)) {
6635
+ continue;
6636
+ }
6637
+ let oldVal = matches[i5][4];
6638
+ let aName = this.options.attributeNamePrefix + attrName;
6639
+ if (attrName.length) {
6640
+ if (this.options.transformAttributeName) {
6641
+ aName = this.options.transformAttributeName(aName);
6642
+ }
6643
+ if (aName === "__proto__") aName = "#__proto__";
6644
+ if (oldVal !== void 0) {
6645
+ if (this.options.trimValues) {
6646
+ oldVal = oldVal.trim();
6647
+ }
6648
+ oldVal = this.replaceEntitiesValue(oldVal);
6649
+ const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath);
6650
+ if (newVal === null || newVal === void 0) {
6651
+ attrs[aName] = oldVal;
6652
+ } else if (typeof newVal !== typeof oldVal || newVal !== oldVal) {
6653
+ attrs[aName] = newVal;
6538
6654
  } else {
6539
- if (notation[2] === "0" && notation[3][0] === ".") {
6540
- } else {
6541
- return str;
6542
- }
6655
+ attrs[aName] = parseValue(
6656
+ oldVal,
6657
+ this.options.parseAttributeValue,
6658
+ this.options.numberParseOptions
6659
+ );
6543
6660
  }
6544
- return options.eNotation ? Number(trimmedStr) : str;
6545
- } else {
6546
- return str;
6661
+ } else if (this.options.allowBooleanAttributes) {
6662
+ attrs[aName] = true;
6663
+ }
6664
+ }
6665
+ }
6666
+ if (!Object.keys(attrs).length) {
6667
+ return;
6668
+ }
6669
+ if (this.options.attributesGroupName) {
6670
+ const attrCollection = {};
6671
+ attrCollection[this.options.attributesGroupName] = attrs;
6672
+ return attrCollection;
6673
+ }
6674
+ return attrs;
6675
+ }
6676
+ }
6677
+ function addChild(currentNode, childNode, jPath, startIndex) {
6678
+ if (!this.options.captureMetaData) startIndex = void 0;
6679
+ const result = this.options.updateTag(childNode.tagname, jPath, childNode[":@"]);
6680
+ if (result === false) {
6681
+ } else if (typeof result === "string") {
6682
+ childNode.tagname = result;
6683
+ currentNode.addChild(childNode, startIndex);
6684
+ } else {
6685
+ currentNode.addChild(childNode, startIndex);
6686
+ }
6687
+ }
6688
+ function saveTextToParentTag(textData, currentNode, jPath, isLeafNode) {
6689
+ if (textData) {
6690
+ if (isLeafNode === void 0) isLeafNode = currentNode.child.length === 0;
6691
+ textData = this.parseTextData(
6692
+ textData,
6693
+ currentNode.tagname,
6694
+ jPath,
6695
+ false,
6696
+ currentNode[":@"] ? Object.keys(currentNode[":@"]).length !== 0 : false,
6697
+ isLeafNode
6698
+ );
6699
+ if (textData !== void 0 && textData !== "")
6700
+ currentNode.add(this.options.textNodeName, textData);
6701
+ textData = "";
6702
+ }
6703
+ return textData;
6704
+ }
6705
+ function isItStopNode(stopNodes, jPath, currentTagName) {
6706
+ const allNodesExp = "*." + currentTagName;
6707
+ for (const stopNodePath in stopNodes) {
6708
+ const stopNodeExp = stopNodes[stopNodePath];
6709
+ if (allNodesExp === stopNodeExp || jPath === stopNodeExp) return true;
6710
+ }
6711
+ return false;
6712
+ }
6713
+ function tagExpWithClosingIndex(xmlData, i5, closingChar = ">") {
6714
+ let attrBoundary;
6715
+ let tagExp = "";
6716
+ for (let index = i5; index < xmlData.length; index++) {
6717
+ let ch2 = xmlData[index];
6718
+ if (attrBoundary) {
6719
+ if (ch2 === attrBoundary) attrBoundary = "";
6720
+ } else if (ch2 === '"' || ch2 === "'") {
6721
+ attrBoundary = ch2;
6722
+ } else if (ch2 === closingChar[0]) {
6723
+ if (closingChar[1]) {
6724
+ if (xmlData[index + 1] === closingChar[1]) {
6725
+ return {
6726
+ data: tagExp,
6727
+ index
6728
+ };
6547
6729
  }
6548
6730
  } else {
6549
- const match = numRegex.exec(trimmedStr);
6550
- if (match) {
6551
- const sign = match[1];
6552
- const leadingZeros = match[2];
6553
- let numTrimmedByZeros = trimZeros(match[3]);
6554
- if (!options.leadingZeros && leadingZeros.length > 0 && sign && trimmedStr[2] !== ".") return str;
6555
- else if (!options.leadingZeros && leadingZeros.length > 0 && !sign && trimmedStr[1] !== ".") return str;
6556
- else if (options.leadingZeros && leadingZeros === str) return 0;
6557
- else {
6558
- const num = Number(trimmedStr);
6559
- const numStr = "" + num;
6560
- if (numStr.search(/[eE]/) !== -1) {
6561
- if (options.eNotation) return num;
6562
- else return str;
6563
- } else if (trimmedStr.indexOf(".") !== -1) {
6564
- if (numStr === "0" && numTrimmedByZeros === "") return num;
6565
- else if (numStr === numTrimmedByZeros) return num;
6566
- else if (sign && numStr === "-" + numTrimmedByZeros) return num;
6567
- else return str;
6568
- }
6569
- if (leadingZeros) {
6570
- return numTrimmedByZeros === numStr || sign + numTrimmedByZeros === numStr ? num : str;
6571
- } else {
6572
- return trimmedStr === numStr || trimmedStr === sign + numStr ? num : str;
6573
- }
6731
+ return {
6732
+ data: tagExp,
6733
+ index
6734
+ };
6735
+ }
6736
+ } else if (ch2 === " ") {
6737
+ ch2 = " ";
6738
+ }
6739
+ tagExp += ch2;
6740
+ }
6741
+ }
6742
+ function findClosingIndex(xmlData, str, i5, errMsg) {
6743
+ const closingIndex = xmlData.indexOf(str, i5);
6744
+ if (closingIndex === -1) {
6745
+ throw new Error(errMsg);
6746
+ } else {
6747
+ return closingIndex + str.length - 1;
6748
+ }
6749
+ }
6750
+ function readTagExp(xmlData, i5, removeNSPrefix, closingChar = ">") {
6751
+ const result = tagExpWithClosingIndex(xmlData, i5 + 1, closingChar);
6752
+ if (!result) return;
6753
+ let tagExp = result.data;
6754
+ const closeIndex = result.index;
6755
+ const separatorIndex = tagExp.search(/\s/);
6756
+ let tagName = tagExp;
6757
+ let attrExpPresent = true;
6758
+ if (separatorIndex !== -1) {
6759
+ tagName = tagExp.substring(0, separatorIndex);
6760
+ tagExp = tagExp.substring(separatorIndex + 1).trimStart();
6761
+ }
6762
+ const rawTagName = tagName;
6763
+ if (removeNSPrefix) {
6764
+ const colonIndex = tagName.indexOf(":");
6765
+ if (colonIndex !== -1) {
6766
+ tagName = tagName.substr(colonIndex + 1);
6767
+ attrExpPresent = tagName !== result.data.substr(colonIndex + 1);
6768
+ }
6769
+ }
6770
+ return {
6771
+ tagName,
6772
+ tagExp,
6773
+ closeIndex,
6774
+ attrExpPresent,
6775
+ rawTagName
6776
+ };
6777
+ }
6778
+ function readStopNodeData(xmlData, tagName, i5) {
6779
+ const startIndex = i5;
6780
+ let openTagCount = 1;
6781
+ for (; i5 < xmlData.length; i5++) {
6782
+ if (xmlData[i5] === "<") {
6783
+ if (xmlData[i5 + 1] === "/") {
6784
+ const closeIndex = findClosingIndex(xmlData, ">", i5, `${tagName} is not closed`);
6785
+ let closeTagName = xmlData.substring(i5 + 2, closeIndex).trim();
6786
+ if (closeTagName === tagName) {
6787
+ openTagCount--;
6788
+ if (openTagCount === 0) {
6789
+ return {
6790
+ tagContent: xmlData.substring(startIndex, i5),
6791
+ i: closeIndex
6792
+ };
6574
6793
  }
6575
- } else {
6576
- return str;
6794
+ }
6795
+ i5 = closeIndex;
6796
+ } else if (xmlData[i5 + 1] === "?") {
6797
+ const closeIndex = findClosingIndex(xmlData, "?>", i5 + 1, "StopNode is not closed.");
6798
+ i5 = closeIndex;
6799
+ } else if (xmlData.substr(i5 + 1, 3) === "!--") {
6800
+ const closeIndex = findClosingIndex(xmlData, "-->", i5 + 3, "StopNode is not closed.");
6801
+ i5 = closeIndex;
6802
+ } else if (xmlData.substr(i5 + 1, 2) === "![") {
6803
+ const closeIndex = findClosingIndex(xmlData, "]]>", i5, "StopNode is not closed.") - 2;
6804
+ i5 = closeIndex;
6805
+ } else {
6806
+ const tagData = readTagExp(xmlData, i5, ">");
6807
+ if (tagData) {
6808
+ const openTagName = tagData && tagData.tagName;
6809
+ if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== "/") {
6810
+ openTagCount++;
6811
+ }
6812
+ i5 = tagData.closeIndex;
6577
6813
  }
6578
6814
  }
6579
6815
  }
6580
- function trimZeros(numStr) {
6581
- if (numStr && numStr.indexOf(".") !== -1) {
6582
- numStr = numStr.replace(/0+$/, "");
6583
- if (numStr === ".") numStr = "0";
6584
- else if (numStr[0] === ".") numStr = "0" + numStr;
6585
- else if (numStr[numStr.length - 1] === ".") numStr = numStr.substr(0, numStr.length - 1);
6586
- return numStr;
6587
- }
6588
- return numStr;
6589
- }
6590
- function parse_int(numStr, base) {
6591
- if (parseInt) return parseInt(numStr, base);
6592
- else if (Number.parseInt) return Number.parseInt(numStr, base);
6593
- else if (window && window.parseInt) return window.parseInt(numStr, base);
6594
- else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
6816
+ }
6817
+ }
6818
+ function parseValue(val, shouldParse, options) {
6819
+ if (shouldParse && typeof val === "string") {
6820
+ const newval = val.trim();
6821
+ if (newval === "true") return true;
6822
+ else if (newval === "false") return false;
6823
+ else return toNumber(val, options);
6824
+ } else {
6825
+ if (isExist(val)) {
6826
+ return val;
6827
+ } else {
6828
+ return "";
6595
6829
  }
6596
- module2.exports = toNumber;
6597
6830
  }
6598
- });
6599
-
6600
- // node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
6601
- var require_OrderedObjParser = __commonJS({
6602
- "node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"(exports2, module2) {
6603
- "use strict";
6604
- var util = require_util();
6605
- var xmlNode = require_xmlNode();
6606
- var readDocType = require_DocTypeReader();
6607
- var toNumber = require_strnum();
6608
- var OrderedObjParser = class {
6831
+ }
6832
+ var OrderedObjParser, attrsRegx, parseXml, replaceEntitiesValue;
6833
+ var init_OrderedObjParser = __esm({
6834
+ "node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"() {
6835
+ "use strict";
6836
+ init_util2();
6837
+ init_xmlNode();
6838
+ init_DocTypeReader();
6839
+ init_strnum();
6840
+ init_ignoreAttributes();
6841
+ OrderedObjParser = class {
6609
6842
  constructor(options) {
6610
6843
  this.options = options;
6611
6844
  this.currentNode = null;
@@ -6632,8 +6865,8 @@ var require_OrderedObjParser = __commonJS({
6632
6865
  "copyright": { regex: /&(copy|#169);/g, val: "\xA9" },
6633
6866
  "reg": { regex: /&(reg|#174);/g, val: "\xAE" },
6634
6867
  "inr": { regex: /&(inr|#8377);/g, val: "\u20B9" },
6635
- "num_dec": { regex: /&#([0-9]{1,7});/g, val: (_2, str) => String.fromCharCode(Number.parseInt(str, 10)) },
6636
- "num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (_2, str) => String.fromCharCode(Number.parseInt(str, 16)) }
6868
+ "num_dec": { regex: /&#([0-9]{1,7});/g, val: (_2, str) => String.fromCodePoint(Number.parseInt(str, 10)) },
6869
+ "num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (_2, str) => String.fromCodePoint(Number.parseInt(str, 16)) }
6637
6870
  };
6638
6871
  this.addExternalEntities = addExternalEntities;
6639
6872
  this.parseXml = parseXml;
@@ -6645,107 +6878,13 @@ var require_OrderedObjParser = __commonJS({
6645
6878
  this.readStopNodeData = readStopNodeData;
6646
6879
  this.saveTextToParentTag = saveTextToParentTag;
6647
6880
  this.addChild = addChild;
6881
+ this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes);
6648
6882
  }
6649
6883
  };
6650
- function addExternalEntities(externalEntities) {
6651
- const entKeys = Object.keys(externalEntities);
6652
- for (let i5 = 0; i5 < entKeys.length; i5++) {
6653
- const ent = entKeys[i5];
6654
- this.lastEntities[ent] = {
6655
- regex: new RegExp("&" + ent + ";", "g"),
6656
- val: externalEntities[ent]
6657
- };
6658
- }
6659
- }
6660
- function parseTextData(val2, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) {
6661
- if (val2 !== void 0) {
6662
- if (this.options.trimValues && !dontTrim) {
6663
- val2 = val2.trim();
6664
- }
6665
- if (val2.length > 0) {
6666
- if (!escapeEntities) val2 = this.replaceEntitiesValue(val2);
6667
- const newval = this.options.tagValueProcessor(tagName, val2, jPath, hasAttributes, isLeafNode);
6668
- if (newval === null || newval === void 0) {
6669
- return val2;
6670
- } else if (typeof newval !== typeof val2 || newval !== val2) {
6671
- return newval;
6672
- } else if (this.options.trimValues) {
6673
- return parseValue(val2, this.options.parseTagValue, this.options.numberParseOptions);
6674
- } else {
6675
- const trimmedVal = val2.trim();
6676
- if (trimmedVal === val2) {
6677
- return parseValue(val2, this.options.parseTagValue, this.options.numberParseOptions);
6678
- } else {
6679
- return val2;
6680
- }
6681
- }
6682
- }
6683
- }
6684
- }
6685
- function resolveNameSpace(tagname) {
6686
- if (this.options.removeNSPrefix) {
6687
- const tags = tagname.split(":");
6688
- const prefix = tagname.charAt(0) === "/" ? "/" : "";
6689
- if (tags[0] === "xmlns") {
6690
- return "";
6691
- }
6692
- if (tags.length === 2) {
6693
- tagname = prefix + tags[1];
6694
- }
6695
- }
6696
- return tagname;
6697
- }
6698
- var attrsRegx = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
6699
- function buildAttributesMap(attrStr, jPath, tagName) {
6700
- if (!this.options.ignoreAttributes && typeof attrStr === "string") {
6701
- const matches = util.getAllMatches(attrStr, attrsRegx);
6702
- const len = matches.length;
6703
- const attrs = {};
6704
- for (let i5 = 0; i5 < len; i5++) {
6705
- const attrName = this.resolveNameSpace(matches[i5][1]);
6706
- let oldVal = matches[i5][4];
6707
- let aName = this.options.attributeNamePrefix + attrName;
6708
- if (attrName.length) {
6709
- if (this.options.transformAttributeName) {
6710
- aName = this.options.transformAttributeName(aName);
6711
- }
6712
- if (aName === "__proto__") aName = "#__proto__";
6713
- if (oldVal !== void 0) {
6714
- if (this.options.trimValues) {
6715
- oldVal = oldVal.trim();
6716
- }
6717
- oldVal = this.replaceEntitiesValue(oldVal);
6718
- const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath);
6719
- if (newVal === null || newVal === void 0) {
6720
- attrs[aName] = oldVal;
6721
- } else if (typeof newVal !== typeof oldVal || newVal !== oldVal) {
6722
- attrs[aName] = newVal;
6723
- } else {
6724
- attrs[aName] = parseValue(
6725
- oldVal,
6726
- this.options.parseAttributeValue,
6727
- this.options.numberParseOptions
6728
- );
6729
- }
6730
- } else if (this.options.allowBooleanAttributes) {
6731
- attrs[aName] = true;
6732
- }
6733
- }
6734
- }
6735
- if (!Object.keys(attrs).length) {
6736
- return;
6737
- }
6738
- if (this.options.attributesGroupName) {
6739
- const attrCollection = {};
6740
- attrCollection[this.options.attributesGroupName] = attrs;
6741
- return attrCollection;
6742
- }
6743
- return attrs;
6744
- }
6745
- }
6746
- var parseXml = function(xmlData) {
6884
+ attrsRegx = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
6885
+ parseXml = function(xmlData) {
6747
6886
  xmlData = xmlData.replace(/\r\n?/g, "\n");
6748
- const xmlObj = new xmlNode("!xml");
6887
+ const xmlObj = new XmlNode("!xml");
6749
6888
  let currentNode = xmlObj;
6750
6889
  let textData = "";
6751
6890
  let jPath = "";
@@ -6788,12 +6927,12 @@ var require_OrderedObjParser = __commonJS({
6788
6927
  textData = this.saveTextToParentTag(textData, currentNode, jPath);
6789
6928
  if (this.options.ignoreDeclaration && tagData.tagName === "?xml" || this.options.ignorePiTags) {
6790
6929
  } else {
6791
- const childNode = new xmlNode(tagData.tagName);
6930
+ const childNode = new XmlNode(tagData.tagName);
6792
6931
  childNode.add(this.options.textNodeName, "");
6793
6932
  if (tagData.tagName !== tagData.tagExp && tagData.attrExpPresent) {
6794
6933
  childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName);
6795
6934
  }
6796
- this.addChild(currentNode, childNode, jPath);
6935
+ this.addChild(currentNode, childNode, jPath, i5);
6797
6936
  }
6798
6937
  i5 = tagData.closeIndex + 1;
6799
6938
  } else if (xmlData.substr(i5 + 1, 3) === "!--") {
@@ -6812,12 +6951,12 @@ var require_OrderedObjParser = __commonJS({
6812
6951
  const closeIndex = findClosingIndex(xmlData, "]]>", i5, "CDATA is not closed.") - 2;
6813
6952
  const tagExp = xmlData.substring(i5 + 9, closeIndex);
6814
6953
  textData = this.saveTextToParentTag(textData, currentNode, jPath);
6815
- let val2 = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);
6816
- if (val2 == void 0) val2 = "";
6954
+ let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);
6955
+ if (val == void 0) val = "";
6817
6956
  if (this.options.cdataPropName) {
6818
6957
  currentNode.add(this.options.cdataPropName, [{ [this.options.textNodeName]: tagExp }]);
6819
6958
  } else {
6820
- currentNode.add(this.options.textNodeName, val2);
6959
+ currentNode.add(this.options.textNodeName, val);
6821
6960
  }
6822
6961
  i5 = closeIndex + 2;
6823
6962
  } else {
@@ -6843,6 +6982,7 @@ var require_OrderedObjParser = __commonJS({
6843
6982
  if (tagName !== xmlObj.tagname) {
6844
6983
  jPath += jPath ? "." + tagName : tagName;
6845
6984
  }
6985
+ const startIndex = i5;
6846
6986
  if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) {
6847
6987
  let tagContent = "";
6848
6988
  if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
@@ -6862,7 +7002,7 @@ var require_OrderedObjParser = __commonJS({
6862
7002
  i5 = result2.i;
6863
7003
  tagContent = result2.tagContent;
6864
7004
  }
6865
- const childNode = new xmlNode(tagName);
7005
+ const childNode = new XmlNode(tagName);
6866
7006
  if (tagName !== tagExp && attrExpPresent) {
6867
7007
  childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
6868
7008
  }
@@ -6871,7 +7011,7 @@ var require_OrderedObjParser = __commonJS({
6871
7011
  }
6872
7012
  jPath = jPath.substr(0, jPath.lastIndexOf("."));
6873
7013
  childNode.add(this.options.textNodeName, tagContent);
6874
- this.addChild(currentNode, childNode, jPath);
7014
+ this.addChild(currentNode, childNode, jPath, startIndex);
6875
7015
  } else {
6876
7016
  if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
6877
7017
  if (tagName[tagName.length - 1] === "/") {
@@ -6879,310 +7019,162 @@ var require_OrderedObjParser = __commonJS({
6879
7019
  jPath = jPath.substr(0, jPath.length - 1);
6880
7020
  tagExp = tagName;
6881
7021
  } else {
6882
- tagExp = tagExp.substr(0, tagExp.length - 1);
6883
- }
6884
- if (this.options.transformTagName) {
6885
- tagName = this.options.transformTagName(tagName);
6886
- }
6887
- const childNode = new xmlNode(tagName);
6888
- if (tagName !== tagExp && attrExpPresent) {
6889
- childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
6890
- }
6891
- this.addChild(currentNode, childNode, jPath);
6892
- jPath = jPath.substr(0, jPath.lastIndexOf("."));
6893
- } else {
6894
- const childNode = new xmlNode(tagName);
6895
- this.tagsNodeStack.push(currentNode);
6896
- if (tagName !== tagExp && attrExpPresent) {
6897
- childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
6898
- }
6899
- this.addChild(currentNode, childNode, jPath);
6900
- currentNode = childNode;
6901
- }
6902
- textData = "";
6903
- i5 = closeIndex;
6904
- }
6905
- }
6906
- } else {
6907
- textData += xmlData[i5];
6908
- }
6909
- }
6910
- return xmlObj.child;
6911
- };
6912
- function addChild(currentNode, childNode, jPath) {
6913
- const result = this.options.updateTag(childNode.tagname, jPath, childNode[":@"]);
6914
- if (result === false) {
6915
- } else if (typeof result === "string") {
6916
- childNode.tagname = result;
6917
- currentNode.addChild(childNode);
6918
- } else {
6919
- currentNode.addChild(childNode);
6920
- }
6921
- }
6922
- var replaceEntitiesValue = function(val2) {
6923
- if (this.options.processEntities) {
6924
- for (let entityName2 in this.docTypeEntities) {
6925
- const entity = this.docTypeEntities[entityName2];
6926
- val2 = val2.replace(entity.regx, entity.val);
6927
- }
6928
- for (let entityName2 in this.lastEntities) {
6929
- const entity = this.lastEntities[entityName2];
6930
- val2 = val2.replace(entity.regex, entity.val);
6931
- }
6932
- if (this.options.htmlEntities) {
6933
- for (let entityName2 in this.htmlEntities) {
6934
- const entity = this.htmlEntities[entityName2];
6935
- val2 = val2.replace(entity.regex, entity.val);
6936
- }
6937
- }
6938
- val2 = val2.replace(this.ampEntity.regex, this.ampEntity.val);
6939
- }
6940
- return val2;
6941
- };
6942
- function saveTextToParentTag(textData, currentNode, jPath, isLeafNode) {
6943
- if (textData) {
6944
- if (isLeafNode === void 0) isLeafNode = Object.keys(currentNode.child).length === 0;
6945
- textData = this.parseTextData(
6946
- textData,
6947
- currentNode.tagname,
6948
- jPath,
6949
- false,
6950
- currentNode[":@"] ? Object.keys(currentNode[":@"]).length !== 0 : false,
6951
- isLeafNode
6952
- );
6953
- if (textData !== void 0 && textData !== "")
6954
- currentNode.add(this.options.textNodeName, textData);
6955
- textData = "";
6956
- }
6957
- return textData;
6958
- }
6959
- function isItStopNode(stopNodes, jPath, currentTagName) {
6960
- const allNodesExp = "*." + currentTagName;
6961
- for (const stopNodePath in stopNodes) {
6962
- const stopNodeExp = stopNodes[stopNodePath];
6963
- if (allNodesExp === stopNodeExp || jPath === stopNodeExp) return true;
6964
- }
6965
- return false;
6966
- }
6967
- function tagExpWithClosingIndex(xmlData, i5, closingChar = ">") {
6968
- let attrBoundary;
6969
- let tagExp = "";
6970
- for (let index = i5; index < xmlData.length; index++) {
6971
- let ch2 = xmlData[index];
6972
- if (attrBoundary) {
6973
- if (ch2 === attrBoundary) attrBoundary = "";
6974
- } else if (ch2 === '"' || ch2 === "'") {
6975
- attrBoundary = ch2;
6976
- } else if (ch2 === closingChar[0]) {
6977
- if (closingChar[1]) {
6978
- if (xmlData[index + 1] === closingChar[1]) {
6979
- return {
6980
- data: tagExp,
6981
- index
6982
- };
6983
- }
6984
- } else {
6985
- return {
6986
- data: tagExp,
6987
- index
6988
- };
6989
- }
6990
- } else if (ch2 === " ") {
6991
- ch2 = " ";
6992
- }
6993
- tagExp += ch2;
6994
- }
6995
- }
6996
- function findClosingIndex(xmlData, str, i5, errMsg) {
6997
- const closingIndex = xmlData.indexOf(str, i5);
6998
- if (closingIndex === -1) {
6999
- throw new Error(errMsg);
7000
- } else {
7001
- return closingIndex + str.length - 1;
7002
- }
7003
- }
7004
- function readTagExp(xmlData, i5, removeNSPrefix, closingChar = ">") {
7005
- const result = tagExpWithClosingIndex(xmlData, i5 + 1, closingChar);
7006
- if (!result) return;
7007
- let tagExp = result.data;
7008
- const closeIndex = result.index;
7009
- const separatorIndex = tagExp.search(/\s/);
7010
- let tagName = tagExp;
7011
- let attrExpPresent = true;
7012
- if (separatorIndex !== -1) {
7013
- tagName = tagExp.substring(0, separatorIndex);
7014
- tagExp = tagExp.substring(separatorIndex + 1).trimStart();
7015
- }
7016
- const rawTagName = tagName;
7017
- if (removeNSPrefix) {
7018
- const colonIndex = tagName.indexOf(":");
7019
- if (colonIndex !== -1) {
7020
- tagName = tagName.substr(colonIndex + 1);
7021
- attrExpPresent = tagName !== result.data.substr(colonIndex + 1);
7022
- }
7023
- }
7024
- return {
7025
- tagName,
7026
- tagExp,
7027
- closeIndex,
7028
- attrExpPresent,
7029
- rawTagName
7030
- };
7031
- }
7032
- function readStopNodeData(xmlData, tagName, i5) {
7033
- const startIndex = i5;
7034
- let openTagCount = 1;
7035
- for (; i5 < xmlData.length; i5++) {
7036
- if (xmlData[i5] === "<") {
7037
- if (xmlData[i5 + 1] === "/") {
7038
- const closeIndex = findClosingIndex(xmlData, ">", i5, `${tagName} is not closed`);
7039
- let closeTagName = xmlData.substring(i5 + 2, closeIndex).trim();
7040
- if (closeTagName === tagName) {
7041
- openTagCount--;
7042
- if (openTagCount === 0) {
7043
- return {
7044
- tagContent: xmlData.substring(startIndex, i5),
7045
- i: closeIndex
7046
- };
7047
- }
7048
- }
7049
- i5 = closeIndex;
7050
- } else if (xmlData[i5 + 1] === "?") {
7051
- const closeIndex = findClosingIndex(xmlData, "?>", i5 + 1, "StopNode is not closed.");
7052
- i5 = closeIndex;
7053
- } else if (xmlData.substr(i5 + 1, 3) === "!--") {
7054
- const closeIndex = findClosingIndex(xmlData, "-->", i5 + 3, "StopNode is not closed.");
7055
- i5 = closeIndex;
7056
- } else if (xmlData.substr(i5 + 1, 2) === "![") {
7057
- const closeIndex = findClosingIndex(xmlData, "]]>", i5, "StopNode is not closed.") - 2;
7058
- i5 = closeIndex;
7059
- } else {
7060
- const tagData = readTagExp(xmlData, i5, ">");
7061
- if (tagData) {
7062
- const openTagName = tagData && tagData.tagName;
7063
- if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== "/") {
7064
- openTagCount++;
7022
+ tagExp = tagExp.substr(0, tagExp.length - 1);
7023
+ }
7024
+ if (this.options.transformTagName) {
7025
+ tagName = this.options.transformTagName(tagName);
7026
+ }
7027
+ const childNode = new XmlNode(tagName);
7028
+ if (tagName !== tagExp && attrExpPresent) {
7029
+ childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
7030
+ }
7031
+ this.addChild(currentNode, childNode, jPath, startIndex);
7032
+ jPath = jPath.substr(0, jPath.lastIndexOf("."));
7033
+ } else {
7034
+ const childNode = new XmlNode(tagName);
7035
+ this.tagsNodeStack.push(currentNode);
7036
+ if (tagName !== tagExp && attrExpPresent) {
7037
+ childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
7038
+ }
7039
+ this.addChild(currentNode, childNode, jPath, startIndex);
7040
+ currentNode = childNode;
7065
7041
  }
7066
- i5 = tagData.closeIndex;
7042
+ textData = "";
7043
+ i5 = closeIndex;
7067
7044
  }
7068
7045
  }
7046
+ } else {
7047
+ textData += xmlData[i5];
7069
7048
  }
7070
7049
  }
7071
- }
7072
- function parseValue(val2, shouldParse, options) {
7073
- if (shouldParse && typeof val2 === "string") {
7074
- const newval = val2.trim();
7075
- if (newval === "true") return true;
7076
- else if (newval === "false") return false;
7077
- else return toNumber(val2, options);
7078
- } else {
7079
- if (util.isExist(val2)) {
7080
- return val2;
7081
- } else {
7082
- return "";
7050
+ return xmlObj.child;
7051
+ };
7052
+ replaceEntitiesValue = function(val) {
7053
+ if (this.options.processEntities) {
7054
+ for (let entityName in this.docTypeEntities) {
7055
+ const entity = this.docTypeEntities[entityName];
7056
+ val = val.replace(entity.regx, entity.val);
7057
+ }
7058
+ for (let entityName in this.lastEntities) {
7059
+ const entity = this.lastEntities[entityName];
7060
+ val = val.replace(entity.regex, entity.val);
7061
+ }
7062
+ if (this.options.htmlEntities) {
7063
+ for (let entityName in this.htmlEntities) {
7064
+ const entity = this.htmlEntities[entityName];
7065
+ val = val.replace(entity.regex, entity.val);
7066
+ }
7083
7067
  }
7068
+ val = val.replace(this.ampEntity.regex, this.ampEntity.val);
7084
7069
  }
7085
- }
7086
- module2.exports = OrderedObjParser;
7070
+ return val;
7071
+ };
7087
7072
  }
7088
7073
  });
7089
7074
 
7090
7075
  // node_modules/fast-xml-parser/src/xmlparser/node2json.js
7091
- var require_node2json = __commonJS({
7092
- "node_modules/fast-xml-parser/src/xmlparser/node2json.js"(exports2) {
7093
- "use strict";
7094
- function prettify(node, options) {
7095
- return compress(node, options);
7096
- }
7097
- function compress(arr, options, jPath) {
7098
- let text;
7099
- const compressedObj = {};
7100
- for (let i5 = 0; i5 < arr.length; i5++) {
7101
- const tagObj = arr[i5];
7102
- const property = propName(tagObj);
7103
- let newJpath = "";
7104
- if (jPath === void 0) newJpath = property;
7105
- else newJpath = jPath + "." + property;
7106
- if (property === options.textNodeName) {
7107
- if (text === void 0) text = tagObj[property];
7108
- else text += "" + tagObj[property];
7109
- } else if (property === void 0) {
7110
- continue;
7111
- } else if (tagObj[property]) {
7112
- let val2 = compress(tagObj[property], options, newJpath);
7113
- const isLeaf = isLeafTag(val2, options);
7114
- if (tagObj[":@"]) {
7115
- assignAttributes(val2, tagObj[":@"], newJpath, options);
7116
- } else if (Object.keys(val2).length === 1 && val2[options.textNodeName] !== void 0 && !options.alwaysCreateTextNode) {
7117
- val2 = val2[options.textNodeName];
7118
- } else if (Object.keys(val2).length === 0) {
7119
- if (options.alwaysCreateTextNode) val2[options.textNodeName] = "";
7120
- else val2 = "";
7121
- }
7122
- if (compressedObj[property] !== void 0 && compressedObj.hasOwnProperty(property)) {
7123
- if (!Array.isArray(compressedObj[property])) {
7124
- compressedObj[property] = [compressedObj[property]];
7125
- }
7126
- compressedObj[property].push(val2);
7127
- } else {
7128
- if (options.isArray(property, newJpath, isLeaf)) {
7129
- compressedObj[property] = [val2];
7130
- } else {
7131
- compressedObj[property] = val2;
7132
- }
7133
- }
7134
- }
7135
- }
7136
- if (typeof text === "string") {
7137
- if (text.length > 0) compressedObj[options.textNodeName] = text;
7138
- } else if (text !== void 0) compressedObj[options.textNodeName] = text;
7139
- return compressedObj;
7140
- }
7141
- function propName(obj) {
7142
- const keys = Object.keys(obj);
7143
- for (let i5 = 0; i5 < keys.length; i5++) {
7144
- const key = keys[i5];
7145
- if (key !== ":@") return key;
7146
- }
7147
- }
7148
- function assignAttributes(obj, attrMap, jpath, options) {
7149
- if (attrMap) {
7150
- const keys = Object.keys(attrMap);
7151
- const len = keys.length;
7152
- for (let i5 = 0; i5 < len; i5++) {
7153
- const atrrName = keys[i5];
7154
- if (options.isArray(atrrName, jpath + "." + atrrName, true, true)) {
7155
- obj[atrrName] = [attrMap[atrrName]];
7156
- } else {
7157
- obj[atrrName] = attrMap[atrrName];
7158
- }
7076
+ function prettify(node, options) {
7077
+ return compress(node, options);
7078
+ }
7079
+ function compress(arr, options, jPath) {
7080
+ let text;
7081
+ const compressedObj = {};
7082
+ for (let i5 = 0; i5 < arr.length; i5++) {
7083
+ const tagObj = arr[i5];
7084
+ const property = propName(tagObj);
7085
+ let newJpath = "";
7086
+ if (jPath === void 0) newJpath = property;
7087
+ else newJpath = jPath + "." + property;
7088
+ if (property === options.textNodeName) {
7089
+ if (text === void 0) text = tagObj[property];
7090
+ else text += "" + tagObj[property];
7091
+ } else if (property === void 0) {
7092
+ continue;
7093
+ } else if (tagObj[property]) {
7094
+ let val = compress(tagObj[property], options, newJpath);
7095
+ const isLeaf = isLeafTag(val, options);
7096
+ if (tagObj[METADATA_SYMBOL2] !== void 0) {
7097
+ val[METADATA_SYMBOL2] = tagObj[METADATA_SYMBOL2];
7098
+ }
7099
+ if (tagObj[":@"]) {
7100
+ assignAttributes(val, tagObj[":@"], newJpath, options);
7101
+ } else if (Object.keys(val).length === 1 && val[options.textNodeName] !== void 0 && !options.alwaysCreateTextNode) {
7102
+ val = val[options.textNodeName];
7103
+ } else if (Object.keys(val).length === 0) {
7104
+ if (options.alwaysCreateTextNode) val[options.textNodeName] = "";
7105
+ else val = "";
7106
+ }
7107
+ if (compressedObj[property] !== void 0 && compressedObj.hasOwnProperty(property)) {
7108
+ if (!Array.isArray(compressedObj[property])) {
7109
+ compressedObj[property] = [compressedObj[property]];
7110
+ }
7111
+ compressedObj[property].push(val);
7112
+ } else {
7113
+ if (options.isArray(property, newJpath, isLeaf)) {
7114
+ compressedObj[property] = [val];
7115
+ } else {
7116
+ compressedObj[property] = val;
7159
7117
  }
7160
7118
  }
7161
7119
  }
7162
- function isLeafTag(obj, options) {
7163
- const { textNodeName } = options;
7164
- const propCount = Object.keys(obj).length;
7165
- if (propCount === 0) {
7166
- return true;
7167
- }
7168
- if (propCount === 1 && (obj[textNodeName] || typeof obj[textNodeName] === "boolean" || obj[textNodeName] === 0)) {
7169
- return true;
7120
+ }
7121
+ if (typeof text === "string") {
7122
+ if (text.length > 0) compressedObj[options.textNodeName] = text;
7123
+ } else if (text !== void 0) compressedObj[options.textNodeName] = text;
7124
+ return compressedObj;
7125
+ }
7126
+ function propName(obj) {
7127
+ const keys = Object.keys(obj);
7128
+ for (let i5 = 0; i5 < keys.length; i5++) {
7129
+ const key = keys[i5];
7130
+ if (key !== ":@") return key;
7131
+ }
7132
+ }
7133
+ function assignAttributes(obj, attrMap, jpath, options) {
7134
+ if (attrMap) {
7135
+ const keys = Object.keys(attrMap);
7136
+ const len = keys.length;
7137
+ for (let i5 = 0; i5 < len; i5++) {
7138
+ const atrrName = keys[i5];
7139
+ if (options.isArray(atrrName, jpath + "." + atrrName, true, true)) {
7140
+ obj[atrrName] = [attrMap[atrrName]];
7141
+ } else {
7142
+ obj[atrrName] = attrMap[atrrName];
7170
7143
  }
7171
- return false;
7172
7144
  }
7173
- exports2.prettify = prettify;
7145
+ }
7146
+ }
7147
+ function isLeafTag(obj, options) {
7148
+ const { textNodeName } = options;
7149
+ const propCount = Object.keys(obj).length;
7150
+ if (propCount === 0) {
7151
+ return true;
7152
+ }
7153
+ if (propCount === 1 && (obj[textNodeName] || typeof obj[textNodeName] === "boolean" || obj[textNodeName] === 0)) {
7154
+ return true;
7155
+ }
7156
+ return false;
7157
+ }
7158
+ var METADATA_SYMBOL2;
7159
+ var init_node2json = __esm({
7160
+ "node_modules/fast-xml-parser/src/xmlparser/node2json.js"() {
7161
+ "use strict";
7162
+ init_xmlNode();
7163
+ METADATA_SYMBOL2 = XmlNode.getMetaDataSymbol();
7174
7164
  }
7175
7165
  });
7176
7166
 
7177
7167
  // node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
7178
- var require_XMLParser = __commonJS({
7179
- "node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"(exports2, module2) {
7180
- "use strict";
7181
- var { buildOptions } = require_OptionsBuilder();
7182
- var OrderedObjParser = require_OrderedObjParser();
7183
- var { prettify } = require_node2json();
7184
- var validator = require_validator();
7185
- var XMLParser3 = class {
7168
+ var XMLParser;
7169
+ var init_XMLParser = __esm({
7170
+ "node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"() {
7171
+ "use strict";
7172
+ init_OptionsBuilder();
7173
+ init_OrderedObjParser();
7174
+ init_node2json();
7175
+ init_validator();
7176
+ init_xmlNode();
7177
+ XMLParser = class {
7186
7178
  constructor(options) {
7187
7179
  this.externalEntities = {};
7188
7180
  this.options = buildOptions(options);
@@ -7201,7 +7193,7 @@ var require_XMLParser = __commonJS({
7201
7193
  }
7202
7194
  if (validationOption) {
7203
7195
  if (validationOption === true) validationOption = {};
7204
- const result = validator.validate(xmlData, validationOption);
7196
+ const result = validate(xmlData, validationOption);
7205
7197
  if (result !== true) {
7206
7198
  throw Error(`${result.err.msg}:${result.err.line}:${result.err.col}`);
7207
7199
  }
@@ -7228,403 +7220,37 @@ var require_XMLParser = __commonJS({
7228
7220
  this.externalEntities[key] = value;
7229
7221
  }
7230
7222
  }
7231
- };
7232
- module2.exports = XMLParser3;
7233
- }
7234
- });
7235
-
7236
- // node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js
7237
- var require_orderedJs2Xml = __commonJS({
7238
- "node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"(exports2, module2) {
7239
- "use strict";
7240
- var EOL = "\n";
7241
- function toXml(jArray, options) {
7242
- let indentation = "";
7243
- if (options.format && options.indentBy.length > 0) {
7244
- indentation = EOL;
7245
- }
7246
- return arrToStr(jArray, options, "", indentation);
7247
- }
7248
- function arrToStr(arr, options, jPath, indentation) {
7249
- let xmlStr = "";
7250
- let isPreviousElementTag = false;
7251
- for (let i5 = 0; i5 < arr.length; i5++) {
7252
- const tagObj = arr[i5];
7253
- const tagName = propName(tagObj);
7254
- if (tagName === void 0) continue;
7255
- let newJPath = "";
7256
- if (jPath.length === 0) newJPath = tagName;
7257
- else newJPath = `${jPath}.${tagName}`;
7258
- if (tagName === options.textNodeName) {
7259
- let tagText = tagObj[tagName];
7260
- if (!isStopNode(newJPath, options)) {
7261
- tagText = options.tagValueProcessor(tagName, tagText);
7262
- tagText = replaceEntitiesValue(tagText, options);
7263
- }
7264
- if (isPreviousElementTag) {
7265
- xmlStr += indentation;
7266
- }
7267
- xmlStr += tagText;
7268
- isPreviousElementTag = false;
7269
- continue;
7270
- } else if (tagName === options.cdataPropName) {
7271
- if (isPreviousElementTag) {
7272
- xmlStr += indentation;
7273
- }
7274
- xmlStr += `<![CDATA[${tagObj[tagName][0][options.textNodeName]}]]>`;
7275
- isPreviousElementTag = false;
7276
- continue;
7277
- } else if (tagName === options.commentPropName) {
7278
- xmlStr += indentation + `<!--${tagObj[tagName][0][options.textNodeName]}-->`;
7279
- isPreviousElementTag = true;
7280
- continue;
7281
- } else if (tagName[0] === "?") {
7282
- const attStr2 = attr_to_str(tagObj[":@"], options);
7283
- const tempInd = tagName === "?xml" ? "" : indentation;
7284
- let piTextNodeName = tagObj[tagName][0][options.textNodeName];
7285
- piTextNodeName = piTextNodeName.length !== 0 ? " " + piTextNodeName : "";
7286
- xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr2}?>`;
7287
- isPreviousElementTag = true;
7288
- continue;
7289
- }
7290
- let newIdentation = indentation;
7291
- if (newIdentation !== "") {
7292
- newIdentation += options.indentBy;
7293
- }
7294
- const attStr = attr_to_str(tagObj[":@"], options);
7295
- const tagStart = indentation + `<${tagName}${attStr}`;
7296
- const tagValue = arrToStr(tagObj[tagName], options, newJPath, newIdentation);
7297
- if (options.unpairedTags.indexOf(tagName) !== -1) {
7298
- if (options.suppressUnpairedNode) xmlStr += tagStart + ">";
7299
- else xmlStr += tagStart + "/>";
7300
- } else if ((!tagValue || tagValue.length === 0) && options.suppressEmptyNode) {
7301
- xmlStr += tagStart + "/>";
7302
- } else if (tagValue && tagValue.endsWith(">")) {
7303
- xmlStr += tagStart + `>${tagValue}${indentation}</${tagName}>`;
7304
- } else {
7305
- xmlStr += tagStart + ">";
7306
- if (tagValue && indentation !== "" && (tagValue.includes("/>") || tagValue.includes("</"))) {
7307
- xmlStr += indentation + options.indentBy + tagValue + indentation;
7308
- } else {
7309
- xmlStr += tagValue;
7310
- }
7311
- xmlStr += `</${tagName}>`;
7312
- }
7313
- isPreviousElementTag = true;
7314
- }
7315
- return xmlStr;
7316
- }
7317
- function propName(obj) {
7318
- const keys = Object.keys(obj);
7319
- for (let i5 = 0; i5 < keys.length; i5++) {
7320
- const key = keys[i5];
7321
- if (!obj.hasOwnProperty(key)) continue;
7322
- if (key !== ":@") return key;
7323
- }
7324
- }
7325
- function attr_to_str(attrMap, options) {
7326
- let attrStr = "";
7327
- if (attrMap && !options.ignoreAttributes) {
7328
- for (let attr in attrMap) {
7329
- if (!attrMap.hasOwnProperty(attr)) continue;
7330
- let attrVal = options.attributeValueProcessor(attr, attrMap[attr]);
7331
- attrVal = replaceEntitiesValue(attrVal, options);
7332
- if (attrVal === true && options.suppressBooleanAttributes) {
7333
- attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}`;
7334
- } else {
7335
- attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}="${attrVal}"`;
7336
- }
7337
- }
7338
- }
7339
- return attrStr;
7340
- }
7341
- function isStopNode(jPath, options) {
7342
- jPath = jPath.substr(0, jPath.length - options.textNodeName.length - 1);
7343
- let tagName = jPath.substr(jPath.lastIndexOf(".") + 1);
7344
- for (let index in options.stopNodes) {
7345
- if (options.stopNodes[index] === jPath || options.stopNodes[index] === "*." + tagName) return true;
7346
- }
7347
- return false;
7348
- }
7349
- function replaceEntitiesValue(textValue, options) {
7350
- if (textValue && textValue.length > 0 && options.processEntities) {
7351
- for (let i5 = 0; i5 < options.entities.length; i5++) {
7352
- const entity = options.entities[i5];
7353
- textValue = textValue.replace(entity.regex, entity.val);
7354
- }
7355
- }
7356
- return textValue;
7357
- }
7358
- module2.exports = toXml;
7359
- }
7360
- });
7361
-
7362
- // node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
7363
- var require_json2xml = __commonJS({
7364
- "node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js"(exports2, module2) {
7365
- "use strict";
7366
- var buildFromOrderedJs = require_orderedJs2Xml();
7367
- var defaultOptions = {
7368
- attributeNamePrefix: "@_",
7369
- attributesGroupName: false,
7370
- textNodeName: "#text",
7371
- ignoreAttributes: true,
7372
- cdataPropName: false,
7373
- format: false,
7374
- indentBy: " ",
7375
- suppressEmptyNode: false,
7376
- suppressUnpairedNode: true,
7377
- suppressBooleanAttributes: true,
7378
- tagValueProcessor: function(key, a5) {
7379
- return a5;
7380
- },
7381
- attributeValueProcessor: function(attrName, a5) {
7382
- return a5;
7383
- },
7384
- preserveOrder: false,
7385
- commentPropName: false,
7386
- unpairedTags: [],
7387
- entities: [
7388
- { regex: new RegExp("&", "g"), val: "&amp;" },
7389
- //it must be on top
7390
- { regex: new RegExp(">", "g"), val: "&gt;" },
7391
- { regex: new RegExp("<", "g"), val: "&lt;" },
7392
- { regex: new RegExp("'", "g"), val: "&apos;" },
7393
- { regex: new RegExp('"', "g"), val: "&quot;" }
7394
- ],
7395
- processEntities: true,
7396
- stopNodes: [],
7397
- // transformTagName: false,
7398
- // transformAttributeName: false,
7399
- oneListGroup: false
7400
- };
7401
- function Builder(options) {
7402
- this.options = Object.assign({}, defaultOptions, options);
7403
- if (this.options.ignoreAttributes || this.options.attributesGroupName) {
7404
- this.isAttribute = function() {
7405
- return false;
7406
- };
7407
- } else {
7408
- this.attrPrefixLen = this.options.attributeNamePrefix.length;
7409
- this.isAttribute = isAttribute;
7410
- }
7411
- this.processTextOrObjNode = processTextOrObjNode;
7412
- if (this.options.format) {
7413
- this.indentate = indentate;
7414
- this.tagEndChar = ">\n";
7415
- this.newLine = "\n";
7416
- } else {
7417
- this.indentate = function() {
7418
- return "";
7419
- };
7420
- this.tagEndChar = ">";
7421
- this.newLine = "";
7422
- }
7423
- }
7424
- Builder.prototype.build = function(jObj) {
7425
- if (this.options.preserveOrder) {
7426
- return buildFromOrderedJs(jObj, this.options);
7427
- } else {
7428
- if (Array.isArray(jObj) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1) {
7429
- jObj = {
7430
- [this.options.arrayNodeName]: jObj
7431
- };
7432
- }
7433
- return this.j2x(jObj, 0).val;
7434
- }
7435
- };
7436
- Builder.prototype.j2x = function(jObj, level) {
7437
- let attrStr = "";
7438
- let val2 = "";
7439
- for (let key in jObj) {
7440
- if (!Object.prototype.hasOwnProperty.call(jObj, key)) continue;
7441
- if (typeof jObj[key] === "undefined") {
7442
- if (this.isAttribute(key)) {
7443
- val2 += "";
7444
- }
7445
- } else if (jObj[key] === null) {
7446
- if (this.isAttribute(key)) {
7447
- val2 += "";
7448
- } else if (key[0] === "?") {
7449
- val2 += this.indentate(level) + "<" + key + "?" + this.tagEndChar;
7450
- } else {
7451
- val2 += this.indentate(level) + "<" + key + "/" + this.tagEndChar;
7452
- }
7453
- } else if (jObj[key] instanceof Date) {
7454
- val2 += this.buildTextValNode(jObj[key], key, "", level);
7455
- } else if (typeof jObj[key] !== "object") {
7456
- const attr = this.isAttribute(key);
7457
- if (attr) {
7458
- attrStr += this.buildAttrPairStr(attr, "" + jObj[key]);
7459
- } else {
7460
- if (key === this.options.textNodeName) {
7461
- let newval = this.options.tagValueProcessor(key, "" + jObj[key]);
7462
- val2 += this.replaceEntitiesValue(newval);
7463
- } else {
7464
- val2 += this.buildTextValNode(jObj[key], key, "", level);
7465
- }
7466
- }
7467
- } else if (Array.isArray(jObj[key])) {
7468
- const arrLen = jObj[key].length;
7469
- let listTagVal = "";
7470
- let listTagAttr = "";
7471
- for (let j5 = 0; j5 < arrLen; j5++) {
7472
- const item = jObj[key][j5];
7473
- if (typeof item === "undefined") {
7474
- } else if (item === null) {
7475
- if (key[0] === "?") val2 += this.indentate(level) + "<" + key + "?" + this.tagEndChar;
7476
- else val2 += this.indentate(level) + "<" + key + "/" + this.tagEndChar;
7477
- } else if (typeof item === "object") {
7478
- if (this.options.oneListGroup) {
7479
- const result = this.j2x(item, level + 1);
7480
- listTagVal += result.val;
7481
- if (this.options.attributesGroupName && item.hasOwnProperty(this.options.attributesGroupName)) {
7482
- listTagAttr += result.attrStr;
7483
- }
7484
- } else {
7485
- listTagVal += this.processTextOrObjNode(item, key, level);
7486
- }
7487
- } else {
7488
- if (this.options.oneListGroup) {
7489
- let textValue = this.options.tagValueProcessor(key, item);
7490
- textValue = this.replaceEntitiesValue(textValue);
7491
- listTagVal += textValue;
7492
- } else {
7493
- listTagVal += this.buildTextValNode(item, key, "", level);
7494
- }
7495
- }
7496
- }
7497
- if (this.options.oneListGroup) {
7498
- listTagVal = this.buildObjectNode(listTagVal, key, listTagAttr, level);
7499
- }
7500
- val2 += listTagVal;
7501
- } else {
7502
- if (this.options.attributesGroupName && key === this.options.attributesGroupName) {
7503
- const Ks = Object.keys(jObj[key]);
7504
- const L2 = Ks.length;
7505
- for (let j5 = 0; j5 < L2; j5++) {
7506
- attrStr += this.buildAttrPairStr(Ks[j5], "" + jObj[key][Ks[j5]]);
7507
- }
7508
- } else {
7509
- val2 += this.processTextOrObjNode(jObj[key], key, level);
7510
- }
7511
- }
7512
- }
7513
- return { attrStr, val: val2 };
7514
- };
7515
- Builder.prototype.buildAttrPairStr = function(attrName, val2) {
7516
- val2 = this.options.attributeValueProcessor(attrName, "" + val2);
7517
- val2 = this.replaceEntitiesValue(val2);
7518
- if (this.options.suppressBooleanAttributes && val2 === "true") {
7519
- return " " + attrName;
7520
- } else return " " + attrName + '="' + val2 + '"';
7521
- };
7522
- function processTextOrObjNode(object, key, level) {
7523
- const result = this.j2x(object, level + 1);
7524
- if (object[this.options.textNodeName] !== void 0 && Object.keys(object).length === 1) {
7525
- return this.buildTextValNode(object[this.options.textNodeName], key, result.attrStr, level);
7526
- } else {
7527
- return this.buildObjectNode(result.val, key, result.attrStr, level);
7528
- }
7529
- }
7530
- Builder.prototype.buildObjectNode = function(val2, key, attrStr, level) {
7531
- if (val2 === "") {
7532
- if (key[0] === "?") return this.indentate(level) + "<" + key + attrStr + "?" + this.tagEndChar;
7533
- else {
7534
- return this.indentate(level) + "<" + key + attrStr + this.closeTag(key) + this.tagEndChar;
7535
- }
7536
- } else {
7537
- let tagEndExp = "</" + key + this.tagEndChar;
7538
- let piClosingChar = "";
7539
- if (key[0] === "?") {
7540
- piClosingChar = "?";
7541
- tagEndExp = "";
7542
- }
7543
- if ((attrStr || attrStr === "") && val2.indexOf("<") === -1) {
7544
- return this.indentate(level) + "<" + key + attrStr + piClosingChar + ">" + val2 + tagEndExp;
7545
- } else if (this.options.commentPropName !== false && key === this.options.commentPropName && piClosingChar.length === 0) {
7546
- return this.indentate(level) + `<!--${val2}-->` + this.newLine;
7547
- } else {
7548
- return this.indentate(level) + "<" + key + attrStr + piClosingChar + this.tagEndChar + val2 + this.indentate(level) + tagEndExp;
7549
- }
7550
- }
7551
- };
7552
- Builder.prototype.closeTag = function(key) {
7553
- let closeTag = "";
7554
- if (this.options.unpairedTags.indexOf(key) !== -1) {
7555
- if (!this.options.suppressUnpairedNode) closeTag = "/";
7556
- } else if (this.options.suppressEmptyNode) {
7557
- closeTag = "/";
7558
- } else {
7559
- closeTag = `></${key}`;
7560
- }
7561
- return closeTag;
7562
- };
7563
- Builder.prototype.buildTextValNode = function(val2, key, attrStr, level) {
7564
- if (this.options.cdataPropName !== false && key === this.options.cdataPropName) {
7565
- return this.indentate(level) + `<![CDATA[${val2}]]>` + this.newLine;
7566
- } else if (this.options.commentPropName !== false && key === this.options.commentPropName) {
7567
- return this.indentate(level) + `<!--${val2}-->` + this.newLine;
7568
- } else if (key[0] === "?") {
7569
- return this.indentate(level) + "<" + key + attrStr + "?" + this.tagEndChar;
7570
- } else {
7571
- let textValue = this.options.tagValueProcessor(key, val2);
7572
- textValue = this.replaceEntitiesValue(textValue);
7573
- if (textValue === "") {
7574
- return this.indentate(level) + "<" + key + attrStr + this.closeTag(key) + this.tagEndChar;
7575
- } else {
7576
- return this.indentate(level) + "<" + key + attrStr + ">" + textValue + "</" + key + this.tagEndChar;
7577
- }
7578
- }
7579
- };
7580
- Builder.prototype.replaceEntitiesValue = function(textValue) {
7581
- if (textValue && textValue.length > 0 && this.options.processEntities) {
7582
- for (let i5 = 0; i5 < this.options.entities.length; i5++) {
7583
- const entity = this.options.entities[i5];
7584
- textValue = textValue.replace(entity.regex, entity.val);
7585
- }
7223
+ /**
7224
+ * Returns a Symbol that can be used to access the metadata
7225
+ * property on a node.
7226
+ *
7227
+ * If Symbol is not available in the environment, an ordinary property is used
7228
+ * and the name of the property is here returned.
7229
+ *
7230
+ * The XMLMetaData property is only present when `captureMetaData`
7231
+ * is true in the options.
7232
+ */
7233
+ static getMetaDataSymbol() {
7234
+ return XmlNode.getMetaDataSymbol();
7586
7235
  }
7587
- return textValue;
7588
7236
  };
7589
- function indentate(level) {
7590
- return this.options.indentBy.repeat(level);
7591
- }
7592
- function isAttribute(name) {
7593
- if (name.startsWith(this.options.attributeNamePrefix) && name !== this.options.textNodeName) {
7594
- return name.substr(this.attrPrefixLen);
7595
- } else {
7596
- return false;
7597
- }
7598
- }
7599
- module2.exports = Builder;
7600
7237
  }
7601
7238
  });
7602
7239
 
7603
7240
  // node_modules/fast-xml-parser/src/fxp.js
7604
- var require_fxp = __commonJS({
7605
- "node_modules/fast-xml-parser/src/fxp.js"(exports2, module2) {
7241
+ var init_fxp = __esm({
7242
+ "node_modules/fast-xml-parser/src/fxp.js"() {
7606
7243
  "use strict";
7607
- var validator = require_validator();
7608
- var XMLParser3 = require_XMLParser();
7609
- var XMLBuilder = require_json2xml();
7610
- module2.exports = {
7611
- XMLParser: XMLParser3,
7612
- XMLValidator: validator,
7613
- XMLBuilder
7614
- };
7244
+ init_XMLParser();
7615
7245
  }
7616
7246
  });
7617
7247
 
7618
7248
  // node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js
7619
- var import_fast_xml_parser;
7620
7249
  var init_XmlShapeDeserializer = __esm({
7621
7250
  "node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js"() {
7622
7251
  "use strict";
7623
- init_protocols();
7624
- init_schema2();
7625
7252
  init_dist_es20();
7626
7253
  init_dist_es7();
7627
- import_fast_xml_parser = __toESM(require_fxp());
7628
7254
  }
7629
7255
  });
7630
7256
 
@@ -7632,8 +7258,6 @@ var init_XmlShapeDeserializer = __esm({
7632
7258
  var init_AwsQueryProtocol = __esm({
7633
7259
  "node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js"() {
7634
7260
  "use strict";
7635
- init_protocols();
7636
- init_schema2();
7637
7261
  init_dist_es18();
7638
7262
  }
7639
7263
  });
@@ -7646,23 +7270,23 @@ var init_AwsEc2QueryProtocol = __esm({
7646
7270
  });
7647
7271
 
7648
7272
  // node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js
7649
- var import_fast_xml_parser2, parseXmlBody, parseXmlErrorBody, loadRestXmlErrorCode;
7273
+ var parseXmlBody, parseXmlErrorBody, loadRestXmlErrorCode;
7650
7274
  var init_parseXmlBody = __esm({
7651
7275
  "node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js"() {
7652
7276
  "use strict";
7653
7277
  init_dist_es20();
7654
- import_fast_xml_parser2 = __toESM(require_fxp());
7278
+ init_fxp();
7655
7279
  init_common();
7656
7280
  parseXmlBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
7657
7281
  if (encoded.length) {
7658
- const parser = new import_fast_xml_parser2.XMLParser({
7282
+ const parser = new XMLParser({
7659
7283
  attributeNamePrefix: "",
7660
7284
  htmlEntities: true,
7661
7285
  ignoreAttributes: false,
7662
7286
  ignoreDeclaration: true,
7663
7287
  parseTagValue: false,
7664
7288
  trimValues: false,
7665
- tagValueProcessor: (_2, val2) => val2.trim() === "" && val2.includes("\n") ? "" : void 0
7289
+ tagValueProcessor: (_2, val) => val.trim() === "" && val.includes("\n") ? "" : void 0
7666
7290
  });
7667
7291
  parser.addEntity("#xD", "\r");
7668
7292
  parser.addEntity("#10", "\n");
@@ -7754,8 +7378,6 @@ var init_XmlShapeSerializer = __esm({
7754
7378
  "node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js"() {
7755
7379
  "use strict";
7756
7380
  init_dist_es21();
7757
- init_schema2();
7758
- init_serde2();
7759
7381
  init_dist_es20();
7760
7382
  init_dist_es8();
7761
7383
  }
@@ -7772,8 +7394,6 @@ var init_XmlCodec = __esm({
7772
7394
  var init_AwsRestXmlProtocol = __esm({
7773
7395
  "node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js"() {
7774
7396
  "use strict";
7775
- init_protocols();
7776
- init_schema2();
7777
7397
  init_dist_es18();
7778
7398
  }
7779
7399
  });
@@ -8079,11 +7699,11 @@ var init_EndpointCache = __esm({
8079
7699
  return false;
8080
7700
  }
8081
7701
  for (const param of parameters) {
8082
- const val2 = String(endpointParams[param] ?? "");
8083
- if (val2.includes("|;")) {
7702
+ const val = String(endpointParams[param] ?? "");
7703
+ if (val.includes("|;")) {
8084
7704
  return false;
8085
7705
  }
8086
- buffer += val2 + "|;";
7706
+ buffer += val + "|;";
8087
7707
  }
8088
7708
  return buffer;
8089
7709
  }
@@ -9211,25 +8831,87 @@ var init_partition = __esm({
9211
8831
  ...DEFAULT_PARTITION.outputs
9212
8832
  };
9213
8833
  };
9214
- getUserAgentPrefix = () => selectedUserAgentPrefix;
8834
+ getUserAgentPrefix = () => selectedUserAgentPrefix;
8835
+ }
8836
+ });
8837
+
8838
+ // node_modules/@aws-sdk/util-endpoints/dist-es/aws.js
8839
+ var awsEndpointFunctions;
8840
+ var init_aws = __esm({
8841
+ "node_modules/@aws-sdk/util-endpoints/dist-es/aws.js"() {
8842
+ "use strict";
8843
+ init_dist_es27();
8844
+ init_isVirtualHostableS3Bucket();
8845
+ init_parseArn();
8846
+ init_partition();
8847
+ awsEndpointFunctions = {
8848
+ isVirtualHostableS3Bucket,
8849
+ parseArn,
8850
+ partition
8851
+ };
8852
+ customEndpointFunctions.aws = awsEndpointFunctions;
8853
+ }
8854
+ });
8855
+
8856
+ // node_modules/@smithy/querystring-parser/dist-es/index.js
8857
+ function parseQueryString(querystring) {
8858
+ const query = {};
8859
+ querystring = querystring.replace(/^\?/, "");
8860
+ if (querystring) {
8861
+ for (const pair of querystring.split("&")) {
8862
+ let [key, value = null] = pair.split("=");
8863
+ key = decodeURIComponent(key);
8864
+ if (value) {
8865
+ value = decodeURIComponent(value);
8866
+ }
8867
+ if (!(key in query)) {
8868
+ query[key] = value;
8869
+ } else if (Array.isArray(query[key])) {
8870
+ query[key].push(value);
8871
+ } else {
8872
+ query[key] = [query[key], value];
8873
+ }
8874
+ }
8875
+ }
8876
+ return query;
8877
+ }
8878
+ var init_dist_es28 = __esm({
8879
+ "node_modules/@smithy/querystring-parser/dist-es/index.js"() {
8880
+ "use strict";
8881
+ }
8882
+ });
8883
+
8884
+ // node_modules/@smithy/url-parser/dist-es/index.js
8885
+ var parseUrl;
8886
+ var init_dist_es29 = __esm({
8887
+ "node_modules/@smithy/url-parser/dist-es/index.js"() {
8888
+ "use strict";
8889
+ init_dist_es28();
8890
+ parseUrl = (url) => {
8891
+ if (typeof url === "string") {
8892
+ return parseUrl(new URL(url));
8893
+ }
8894
+ const { hostname, pathname, port, protocol, search } = url;
8895
+ let query;
8896
+ if (search) {
8897
+ query = parseQueryString(search);
8898
+ }
8899
+ return {
8900
+ hostname,
8901
+ port: port ? parseInt(port) : void 0,
8902
+ protocol,
8903
+ path: pathname,
8904
+ query
8905
+ };
8906
+ };
9215
8907
  }
9216
8908
  });
9217
8909
 
9218
- // node_modules/@aws-sdk/util-endpoints/dist-es/aws.js
9219
- var awsEndpointFunctions;
9220
- var init_aws = __esm({
9221
- "node_modules/@aws-sdk/util-endpoints/dist-es/aws.js"() {
8910
+ // node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js
8911
+ var init_resolveDefaultAwsRegionalEndpointsConfig = __esm({
8912
+ "node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js"() {
9222
8913
  "use strict";
9223
- init_dist_es27();
9224
- init_isVirtualHostableS3Bucket();
9225
- init_parseArn();
9226
- init_partition();
9227
- awsEndpointFunctions = {
9228
- isVirtualHostableS3Bucket,
9229
- parseArn,
9230
- partition
9231
- };
9232
- customEndpointFunctions.aws = awsEndpointFunctions;
8914
+ init_dist_es29();
9233
8915
  }
9234
8916
  });
9235
8917
 
@@ -9298,12 +8980,13 @@ var init_types4 = __esm({
9298
8980
  });
9299
8981
 
9300
8982
  // node_modules/@aws-sdk/util-endpoints/dist-es/index.js
9301
- var init_dist_es28 = __esm({
8983
+ var init_dist_es30 = __esm({
9302
8984
  "node_modules/@aws-sdk/util-endpoints/dist-es/index.js"() {
9303
8985
  "use strict";
9304
8986
  init_aws();
9305
8987
  init_partition();
9306
8988
  init_isIpAddress2();
8989
+ init_resolveDefaultAwsRegionalEndpointsConfig();
9307
8990
  init_resolveEndpoint2();
9308
8991
  init_types4();
9309
8992
  }
@@ -9383,12 +9066,12 @@ var init_constants4 = __esm({
9383
9066
  function encodeFeatures(features) {
9384
9067
  let buffer = "";
9385
9068
  for (const key in features) {
9386
- const val2 = features[key];
9387
- if (buffer.length + val2.length + 1 <= BYTE_LIMIT) {
9069
+ const val = features[key];
9070
+ if (buffer.length + val.length + 1 <= BYTE_LIMIT) {
9388
9071
  if (buffer.length) {
9389
- buffer += "," + val2;
9072
+ buffer += "," + val;
9390
9073
  } else {
9391
- buffer += val2;
9074
+ buffer += val;
9392
9075
  }
9393
9076
  continue;
9394
9077
  }
@@ -9409,7 +9092,7 @@ var userAgentMiddleware, escapeUserAgent, getUserAgentMiddlewareOptions, getUser
9409
9092
  var init_user_agent_middleware = __esm({
9410
9093
  "node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js"() {
9411
9094
  "use strict";
9412
- init_dist_es28();
9095
+ init_dist_es30();
9413
9096
  init_dist_es2();
9414
9097
  init_check_features();
9415
9098
  init_constants4();
@@ -9485,7 +9168,7 @@ var init_user_agent_middleware = __esm({
9485
9168
  });
9486
9169
 
9487
9170
  // node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js
9488
- var init_dist_es29 = __esm({
9171
+ var init_dist_es31 = __esm({
9489
9172
  "node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js"() {
9490
9173
  "use strict";
9491
9174
  init_configurations();
@@ -9704,7 +9387,7 @@ var init_regionInfo = __esm({
9704
9387
  });
9705
9388
 
9706
9389
  // node_modules/@smithy/config-resolver/dist-es/index.js
9707
- var init_dist_es30 = __esm({
9390
+ var init_dist_es32 = __esm({
9708
9391
  "node_modules/@smithy/config-resolver/dist-es/index.js"() {
9709
9392
  "use strict";
9710
9393
  init_endpointsConfig();
@@ -9737,7 +9420,7 @@ function contentLengthMiddleware(bodyLengthChecker) {
9737
9420
  };
9738
9421
  }
9739
9422
  var CONTENT_LENGTH_HEADER2, contentLengthMiddlewareOptions, getContentLengthPlugin;
9740
- var init_dist_es31 = __esm({
9423
+ var init_dist_es33 = __esm({
9741
9424
  "node_modules/@smithy/middleware-content-length/dist-es/index.js"() {
9742
9425
  "use strict";
9743
9426
  init_dist_es2();
@@ -9832,6 +9515,9 @@ var init_createConfigValueProvider = __esm({
9832
9515
  }
9833
9516
  if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
9834
9517
  return async () => {
9518
+ if (config.isCustomEndpoint === false) {
9519
+ return void 0;
9520
+ }
9835
9521
  const endpoint = await configProvider();
9836
9522
  if (endpoint && typeof endpoint === "object") {
9837
9523
  if ("url" in endpoint) {
@@ -9931,15 +9617,15 @@ var init_getProfileName = __esm({
9931
9617
  });
9932
9618
 
9933
9619
  // node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js
9934
- var import_crypto, import_path2, getSSOTokenFilepath;
9620
+ var import_crypto3, import_path2, getSSOTokenFilepath;
9935
9621
  var init_getSSOTokenFilepath = __esm({
9936
9622
  "node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js"() {
9937
9623
  "use strict";
9938
- import_crypto = require("crypto");
9624
+ import_crypto3 = require("crypto");
9939
9625
  import_path2 = require("path");
9940
9626
  init_getHomeDir();
9941
9627
  getSSOTokenFilepath = (id) => {
9942
- const hasher = (0, import_crypto.createHash)("sha1");
9628
+ const hasher = (0, import_crypto3.createHash)("sha1");
9943
9629
  const cacheName = hasher.update(id).digest("hex");
9944
9630
  return (0, import_path2.join)(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
9945
9631
  };
@@ -10194,7 +9880,7 @@ var init_types5 = __esm({
10194
9880
  });
10195
9881
 
10196
9882
  // node_modules/@smithy/shared-ini-file-loader/dist-es/index.js
10197
- var init_dist_es32 = __esm({
9883
+ var init_dist_es34 = __esm({
10198
9884
  "node_modules/@smithy/shared-ini-file-loader/dist-es/index.js"() {
10199
9885
  "use strict";
10200
9886
  init_getHomeDir();
@@ -10214,7 +9900,7 @@ var init_fromSharedConfigFiles = __esm({
10214
9900
  "node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js"() {
10215
9901
  "use strict";
10216
9902
  init_dist_es16();
10217
- init_dist_es32();
9903
+ init_dist_es34();
10218
9904
  init_getSelectorName();
10219
9905
  fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
10220
9906
  const profile = getProfileName(init);
@@ -10265,7 +9951,7 @@ var init_configLoader = __esm({
10265
9951
  });
10266
9952
 
10267
9953
  // node_modules/@smithy/node-config-provider/dist-es/index.js
10268
- var init_dist_es33 = __esm({
9954
+ var init_dist_es35 = __esm({
10269
9955
  "node_modules/@smithy/node-config-provider/dist-es/index.js"() {
10270
9956
  "use strict";
10271
9957
  init_configLoader();
@@ -10277,7 +9963,7 @@ var ENV_ENDPOINT_URL, CONFIG_ENDPOINT_URL, getEndpointUrlConfig;
10277
9963
  var init_getEndpointUrlConfig = __esm({
10278
9964
  "node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js"() {
10279
9965
  "use strict";
10280
- init_dist_es32();
9966
+ init_dist_es34();
10281
9967
  ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
10282
9968
  CONFIG_ENDPOINT_URL = "endpoint_url";
10283
9969
  getEndpointUrlConfig = (serviceId) => ({
@@ -10316,72 +10002,18 @@ var getEndpointFromConfig;
10316
10002
  var init_getEndpointFromConfig = __esm({
10317
10003
  "node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js"() {
10318
10004
  "use strict";
10319
- init_dist_es33();
10005
+ init_dist_es35();
10320
10006
  init_getEndpointUrlConfig();
10321
10007
  getEndpointFromConfig = async (serviceId) => loadConfig(getEndpointUrlConfig(serviceId ?? ""))();
10322
10008
  }
10323
10009
  });
10324
10010
 
10325
- // node_modules/@smithy/querystring-parser/dist-es/index.js
10326
- function parseQueryString(querystring) {
10327
- const query = {};
10328
- querystring = querystring.replace(/^\?/, "");
10329
- if (querystring) {
10330
- for (const pair of querystring.split("&")) {
10331
- let [key, value = null] = pair.split("=");
10332
- key = decodeURIComponent(key);
10333
- if (value) {
10334
- value = decodeURIComponent(value);
10335
- }
10336
- if (!(key in query)) {
10337
- query[key] = value;
10338
- } else if (Array.isArray(query[key])) {
10339
- query[key].push(value);
10340
- } else {
10341
- query[key] = [query[key], value];
10342
- }
10343
- }
10344
- }
10345
- return query;
10346
- }
10347
- var init_dist_es34 = __esm({
10348
- "node_modules/@smithy/querystring-parser/dist-es/index.js"() {
10349
- "use strict";
10350
- }
10351
- });
10352
-
10353
- // node_modules/@smithy/url-parser/dist-es/index.js
10354
- var parseUrl;
10355
- var init_dist_es35 = __esm({
10356
- "node_modules/@smithy/url-parser/dist-es/index.js"() {
10357
- "use strict";
10358
- init_dist_es34();
10359
- parseUrl = (url) => {
10360
- if (typeof url === "string") {
10361
- return parseUrl(new URL(url));
10362
- }
10363
- const { hostname, pathname, port, protocol, search } = url;
10364
- let query;
10365
- if (search) {
10366
- query = parseQueryString(search);
10367
- }
10368
- return {
10369
- hostname,
10370
- port: port ? parseInt(port) : void 0,
10371
- protocol,
10372
- path: pathname,
10373
- query
10374
- };
10375
- };
10376
- }
10377
- });
10378
-
10379
10011
  // node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js
10380
10012
  var toEndpointV1;
10381
10013
  var init_toEndpointV1 = __esm({
10382
10014
  "node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js"() {
10383
10015
  "use strict";
10384
- init_dist_es35();
10016
+ init_dist_es29();
10385
10017
  toEndpointV1 = (endpoint) => {
10386
10018
  if (typeof endpoint === "object") {
10387
10019
  if ("url" in endpoint) {
@@ -10404,7 +10036,7 @@ var init_getEndpointFromInstructions = __esm({
10404
10036
  init_getEndpointFromConfig();
10405
10037
  init_toEndpointV1();
10406
10038
  getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => {
10407
- if (!clientConfig.endpoint) {
10039
+ if (!clientConfig.isCustomEndpoint) {
10408
10040
  let endpointFromConfig;
10409
10041
  if (clientConfig.serviceConfiguredEndpoint) {
10410
10042
  endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
@@ -10413,6 +10045,7 @@ var init_getEndpointFromInstructions = __esm({
10413
10045
  }
10414
10046
  if (endpointFromConfig) {
10415
10047
  clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
10048
+ clientConfig.isCustomEndpoint = true;
10416
10049
  }
10417
10050
  }
10418
10051
  const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
@@ -10474,7 +10107,7 @@ var init_endpointMiddleware = __esm({
10474
10107
  init_getEndpointFromInstructions();
10475
10108
  endpointMiddleware = ({ config, instructions }) => {
10476
10109
  return (next, context) => async (args) => {
10477
- if (config.endpoint) {
10110
+ if (config.isCustomEndpoint) {
10478
10111
  setFeature2(context, "ENDPOINT_OVERRIDE", "N");
10479
10112
  }
10480
10113
  const endpoint = await getEndpointFromInstructions(args.input, {
@@ -10966,88 +10599,6 @@ var init_dist_es38 = __esm({
10966
10599
  }
10967
10600
  });
10968
10601
 
10969
- // node_modules/uuid/dist/esm-node/rng.js
10970
- function rng() {
10971
- if (poolPtr > rnds8Pool.length - 16) {
10972
- import_crypto2.default.randomFillSync(rnds8Pool);
10973
- poolPtr = 0;
10974
- }
10975
- return rnds8Pool.slice(poolPtr, poolPtr += 16);
10976
- }
10977
- var import_crypto2, rnds8Pool, poolPtr;
10978
- var init_rng = __esm({
10979
- "node_modules/uuid/dist/esm-node/rng.js"() {
10980
- "use strict";
10981
- import_crypto2 = __toESM(require("crypto"));
10982
- rnds8Pool = new Uint8Array(256);
10983
- poolPtr = rnds8Pool.length;
10984
- }
10985
- });
10986
-
10987
- // node_modules/uuid/dist/esm-node/stringify.js
10988
- function unsafeStringify(arr, offset = 0) {
10989
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
10990
- }
10991
- var byteToHex;
10992
- var init_stringify = __esm({
10993
- "node_modules/uuid/dist/esm-node/stringify.js"() {
10994
- "use strict";
10995
- byteToHex = [];
10996
- for (let i5 = 0; i5 < 256; ++i5) {
10997
- byteToHex.push((i5 + 256).toString(16).slice(1));
10998
- }
10999
- }
11000
- });
11001
-
11002
- // node_modules/uuid/dist/esm-node/native.js
11003
- var import_crypto3, native_default;
11004
- var init_native = __esm({
11005
- "node_modules/uuid/dist/esm-node/native.js"() {
11006
- "use strict";
11007
- import_crypto3 = __toESM(require("crypto"));
11008
- native_default = {
11009
- randomUUID: import_crypto3.default.randomUUID
11010
- };
11011
- }
11012
- });
11013
-
11014
- // node_modules/uuid/dist/esm-node/v4.js
11015
- function v4(options, buf, offset) {
11016
- if (native_default.randomUUID && !buf && !options) {
11017
- return native_default.randomUUID();
11018
- }
11019
- options = options || {};
11020
- const rnds = options.random || (options.rng || rng)();
11021
- rnds[6] = rnds[6] & 15 | 64;
11022
- rnds[8] = rnds[8] & 63 | 128;
11023
- if (buf) {
11024
- offset = offset || 0;
11025
- for (let i5 = 0; i5 < 16; ++i5) {
11026
- buf[offset + i5] = rnds[i5];
11027
- }
11028
- return buf;
11029
- }
11030
- return unsafeStringify(rnds);
11031
- }
11032
- var v4_default;
11033
- var init_v4 = __esm({
11034
- "node_modules/uuid/dist/esm-node/v4.js"() {
11035
- "use strict";
11036
- init_native();
11037
- init_rng();
11038
- init_stringify();
11039
- v4_default = v4;
11040
- }
11041
- });
11042
-
11043
- // node_modules/uuid/dist/esm-node/index.js
11044
- var init_esm_node = __esm({
11045
- "node_modules/uuid/dist/esm-node/index.js"() {
11046
- "use strict";
11047
- init_v4();
11048
- }
11049
- });
11050
-
11051
10602
  // node_modules/@smithy/middleware-retry/dist-es/defaultRetryQuota.js
11052
10603
  var init_defaultRetryQuota = __esm({
11053
10604
  "node_modules/@smithy/middleware-retry/dist-es/defaultRetryQuota.js"() {
@@ -11074,7 +10625,7 @@ var init_retryDecider = __esm({
11074
10625
 
11075
10626
  // node_modules/@smithy/middleware-retry/dist-es/util.js
11076
10627
  var asSdkError;
11077
- var init_util2 = __esm({
10628
+ var init_util3 = __esm({
11078
10629
  "node_modules/@smithy/middleware-retry/dist-es/util.js"() {
11079
10630
  "use strict";
11080
10631
  asSdkError = (error) => {
@@ -11099,7 +10650,7 @@ var init_StandardRetryStrategy2 = __esm({
11099
10650
  init_defaultRetryQuota();
11100
10651
  init_delayDecider();
11101
10652
  init_retryDecider();
11102
- init_util2();
10653
+ init_util3();
11103
10654
  }
11104
10655
  });
11105
10656
 
@@ -11201,7 +10752,7 @@ var init_retryMiddleware = __esm({
11201
10752
  init_dist_es38();
11202
10753
  init_esm_node();
11203
10754
  init_isStreamingPayload();
11204
- init_util2();
10755
+ init_util3();
11205
10756
  retryMiddleware = (options) => (next, context) => async (args) => {
11206
10757
  let retryStrategy = await options.retryStrategy();
11207
10758
  const maxAttempts = await options.maxAttempts();
@@ -11621,8 +11172,8 @@ var getInstanceMetadataEndpoint, getFromEndpointConfig, getFromEndpointModeConfi
11621
11172
  var init_getInstanceMetadataEndpoint = __esm({
11622
11173
  "node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js"() {
11623
11174
  "use strict";
11624
- init_dist_es33();
11625
11175
  init_dist_es35();
11176
+ init_dist_es29();
11626
11177
  init_Endpoint();
11627
11178
  init_EndpointConfigOptions();
11628
11179
  init_EndpointMode();
@@ -11702,7 +11253,7 @@ var IMDS_PATH, IMDS_TOKEN_PATH, AWS_EC2_METADATA_V1_DISABLED, PROFILE_AWS_EC2_ME
11702
11253
  var init_fromInstanceMetadata = __esm({
11703
11254
  "node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js"() {
11704
11255
  "use strict";
11705
- init_dist_es33();
11256
+ init_dist_es35();
11706
11257
  init_dist_es16();
11707
11258
  init_InstanceMetadataV1FallbackError();
11708
11259
  init_httpRequest2();
@@ -12170,7 +11721,7 @@ var init_package = __esm({
12170
11721
  "node_modules/@aws-sdk/nested-clients/package.json"() {
12171
11722
  package_default2 = {
12172
11723
  name: "@aws-sdk/nested-clients",
12173
- version: "3.835.0",
11724
+ version: "3.864.0",
12174
11725
  description: "Nested clients for AWS SDK packages.",
12175
11726
  main: "./dist-cjs/index.js",
12176
11727
  module: "./dist-es/index.js",
@@ -12198,40 +11749,40 @@ var init_package = __esm({
12198
11749
  dependencies: {
12199
11750
  "@aws-crypto/sha256-browser": "5.2.0",
12200
11751
  "@aws-crypto/sha256-js": "5.2.0",
12201
- "@aws-sdk/core": "3.835.0",
12202
- "@aws-sdk/middleware-host-header": "3.821.0",
12203
- "@aws-sdk/middleware-logger": "3.821.0",
12204
- "@aws-sdk/middleware-recursion-detection": "3.821.0",
12205
- "@aws-sdk/middleware-user-agent": "3.835.0",
12206
- "@aws-sdk/region-config-resolver": "3.821.0",
12207
- "@aws-sdk/types": "3.821.0",
12208
- "@aws-sdk/util-endpoints": "3.828.0",
12209
- "@aws-sdk/util-user-agent-browser": "3.821.0",
12210
- "@aws-sdk/util-user-agent-node": "3.835.0",
12211
- "@smithy/config-resolver": "^4.1.4",
12212
- "@smithy/core": "^3.5.3",
12213
- "@smithy/fetch-http-handler": "^5.0.4",
12214
- "@smithy/hash-node": "^4.0.4",
12215
- "@smithy/invalid-dependency": "^4.0.4",
12216
- "@smithy/middleware-content-length": "^4.0.4",
12217
- "@smithy/middleware-endpoint": "^4.1.12",
12218
- "@smithy/middleware-retry": "^4.1.13",
12219
- "@smithy/middleware-serde": "^4.0.8",
12220
- "@smithy/middleware-stack": "^4.0.4",
12221
- "@smithy/node-config-provider": "^4.1.3",
12222
- "@smithy/node-http-handler": "^4.0.6",
12223
- "@smithy/protocol-http": "^5.1.2",
12224
- "@smithy/smithy-client": "^4.4.4",
12225
- "@smithy/types": "^4.3.1",
12226
- "@smithy/url-parser": "^4.0.4",
11752
+ "@aws-sdk/core": "3.864.0",
11753
+ "@aws-sdk/middleware-host-header": "3.862.0",
11754
+ "@aws-sdk/middleware-logger": "3.862.0",
11755
+ "@aws-sdk/middleware-recursion-detection": "3.862.0",
11756
+ "@aws-sdk/middleware-user-agent": "3.864.0",
11757
+ "@aws-sdk/region-config-resolver": "3.862.0",
11758
+ "@aws-sdk/types": "3.862.0",
11759
+ "@aws-sdk/util-endpoints": "3.862.0",
11760
+ "@aws-sdk/util-user-agent-browser": "3.862.0",
11761
+ "@aws-sdk/util-user-agent-node": "3.864.0",
11762
+ "@smithy/config-resolver": "^4.1.5",
11763
+ "@smithy/core": "^3.8.0",
11764
+ "@smithy/fetch-http-handler": "^5.1.1",
11765
+ "@smithy/hash-node": "^4.0.5",
11766
+ "@smithy/invalid-dependency": "^4.0.5",
11767
+ "@smithy/middleware-content-length": "^4.0.5",
11768
+ "@smithy/middleware-endpoint": "^4.1.18",
11769
+ "@smithy/middleware-retry": "^4.1.19",
11770
+ "@smithy/middleware-serde": "^4.0.9",
11771
+ "@smithy/middleware-stack": "^4.0.5",
11772
+ "@smithy/node-config-provider": "^4.1.4",
11773
+ "@smithy/node-http-handler": "^4.1.1",
11774
+ "@smithy/protocol-http": "^5.1.3",
11775
+ "@smithy/smithy-client": "^4.4.10",
11776
+ "@smithy/types": "^4.3.2",
11777
+ "@smithy/url-parser": "^4.0.5",
12227
11778
  "@smithy/util-base64": "^4.0.0",
12228
11779
  "@smithy/util-body-length-browser": "^4.0.0",
12229
11780
  "@smithy/util-body-length-node": "^4.0.0",
12230
- "@smithy/util-defaults-mode-browser": "^4.0.20",
12231
- "@smithy/util-defaults-mode-node": "^4.0.20",
12232
- "@smithy/util-endpoints": "^3.0.6",
12233
- "@smithy/util-middleware": "^4.0.4",
12234
- "@smithy/util-retry": "^4.0.6",
11781
+ "@smithy/util-defaults-mode-browser": "^4.0.26",
11782
+ "@smithy/util-defaults-mode-node": "^4.0.26",
11783
+ "@smithy/util-endpoints": "^3.0.7",
11784
+ "@smithy/util-middleware": "^4.0.5",
11785
+ "@smithy/util-retry": "^4.0.7",
12235
11786
  "@smithy/util-utf8": "^4.0.0",
12236
11787
  tslib: "^2.6.2"
12237
11788
  },
@@ -12353,7 +11904,7 @@ var UA_APP_ID_ENV_NAME, UA_APP_ID_INI_NAME, UA_APP_ID_INI_NAME_DEPRECATED, NODE_
12353
11904
  var init_nodeAppIdConfigOptions = __esm({
12354
11905
  "node_modules/@aws-sdk/util-user-agent-node/dist-es/nodeAppIdConfigOptions.js"() {
12355
11906
  "use strict";
12356
- init_dist_es29();
11907
+ init_dist_es31();
12357
11908
  UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
12358
11909
  UA_APP_ID_INI_NAME = "sdk_ua_app_id";
12359
11910
  UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
@@ -12489,7 +12040,7 @@ var cache2, defaultEndpointResolver2;
12489
12040
  var init_endpointResolver = __esm({
12490
12041
  "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js"() {
12491
12042
  "use strict";
12492
- init_dist_es28();
12043
+ init_dist_es30();
12493
12044
  init_dist_es27();
12494
12045
  init_ruleset();
12495
12046
  cache2 = new EndpointCache({
@@ -12514,7 +12065,7 @@ var init_runtimeConfig_shared = __esm({
12514
12065
  init_dist_es22();
12515
12066
  init_dist_es15();
12516
12067
  init_dist_es20();
12517
- init_dist_es35();
12068
+ init_dist_es29();
12518
12069
  init_dist_es8();
12519
12070
  init_dist_es7();
12520
12071
  init_httpAuthSchemeProvider();
@@ -12588,8 +12139,8 @@ var resolveDefaultsModeConfig, resolveNodeDefaultsModeAuto, inferPhysicalRegion;
12588
12139
  var init_resolveDefaultsModeConfig = __esm({
12589
12140
  "node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js"() {
12590
12141
  "use strict";
12591
- init_dist_es30();
12592
- init_dist_es33();
12142
+ init_dist_es32();
12143
+ init_dist_es35();
12593
12144
  init_dist_es16();
12594
12145
  init_constants8();
12595
12146
  init_defaultsModeConfig();
@@ -12657,10 +12208,10 @@ var init_runtimeConfig = __esm({
12657
12208
  init_package();
12658
12209
  init_dist_es22();
12659
12210
  init_dist_es43();
12660
- init_dist_es30();
12211
+ init_dist_es32();
12661
12212
  init_dist_es44();
12662
12213
  init_dist_es39();
12663
- init_dist_es33();
12214
+ init_dist_es35();
12664
12215
  init_dist_es11();
12665
12216
  init_dist_es45();
12666
12217
  init_dist_es38();
@@ -12845,10 +12396,10 @@ var init_SSOOIDCClient = __esm({
12845
12396
  init_dist_es23();
12846
12397
  init_dist_es24();
12847
12398
  init_dist_es25();
12848
- init_dist_es29();
12849
- init_dist_es30();
12850
- init_dist_es15();
12851
12399
  init_dist_es31();
12400
+ init_dist_es32();
12401
+ init_dist_es15();
12402
+ init_dist_es33();
12852
12403
  init_dist_es36();
12853
12404
  init_dist_es39();
12854
12405
  init_dist_es20();
@@ -13525,7 +13076,7 @@ var import_fs4, writeFile, writeSSOTokenToFile;
13525
13076
  var init_writeSSOTokenToFile = __esm({
13526
13077
  "node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js"() {
13527
13078
  "use strict";
13528
- init_dist_es32();
13079
+ init_dist_es34();
13529
13080
  import_fs4 = require("fs");
13530
13081
  ({ writeFile } = import_fs4.promises);
13531
13082
  writeSSOTokenToFile = (id, ssoToken) => {
@@ -13542,7 +13093,7 @@ var init_fromSso = __esm({
13542
13093
  "node_modules/@aws-sdk/token-providers/dist-es/fromSso.js"() {
13543
13094
  "use strict";
13544
13095
  init_dist_es16();
13545
- init_dist_es32();
13096
+ init_dist_es34();
13546
13097
  init_constants7();
13547
13098
  init_getNewSsoOidcToken();
13548
13099
  init_validateTokenExpiry();
@@ -13752,7 +13303,7 @@ var init_package2 = __esm({
13752
13303
  package_default3 = {
13753
13304
  name: "@aws-sdk/client-sso",
13754
13305
  description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
13755
- version: "3.835.0",
13306
+ version: "3.864.0",
13756
13307
  scripts: {
13757
13308
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
13758
13309
  "build:cjs": "node ../../scripts/compilation/inline client-sso",
@@ -13771,40 +13322,40 @@ var init_package2 = __esm({
13771
13322
  dependencies: {
13772
13323
  "@aws-crypto/sha256-browser": "5.2.0",
13773
13324
  "@aws-crypto/sha256-js": "5.2.0",
13774
- "@aws-sdk/core": "3.835.0",
13775
- "@aws-sdk/middleware-host-header": "3.821.0",
13776
- "@aws-sdk/middleware-logger": "3.821.0",
13777
- "@aws-sdk/middleware-recursion-detection": "3.821.0",
13778
- "@aws-sdk/middleware-user-agent": "3.835.0",
13779
- "@aws-sdk/region-config-resolver": "3.821.0",
13780
- "@aws-sdk/types": "3.821.0",
13781
- "@aws-sdk/util-endpoints": "3.828.0",
13782
- "@aws-sdk/util-user-agent-browser": "3.821.0",
13783
- "@aws-sdk/util-user-agent-node": "3.835.0",
13784
- "@smithy/config-resolver": "^4.1.4",
13785
- "@smithy/core": "^3.5.3",
13786
- "@smithy/fetch-http-handler": "^5.0.4",
13787
- "@smithy/hash-node": "^4.0.4",
13788
- "@smithy/invalid-dependency": "^4.0.4",
13789
- "@smithy/middleware-content-length": "^4.0.4",
13790
- "@smithy/middleware-endpoint": "^4.1.12",
13791
- "@smithy/middleware-retry": "^4.1.13",
13792
- "@smithy/middleware-serde": "^4.0.8",
13793
- "@smithy/middleware-stack": "^4.0.4",
13794
- "@smithy/node-config-provider": "^4.1.3",
13795
- "@smithy/node-http-handler": "^4.0.6",
13796
- "@smithy/protocol-http": "^5.1.2",
13797
- "@smithy/smithy-client": "^4.4.4",
13798
- "@smithy/types": "^4.3.1",
13799
- "@smithy/url-parser": "^4.0.4",
13325
+ "@aws-sdk/core": "3.864.0",
13326
+ "@aws-sdk/middleware-host-header": "3.862.0",
13327
+ "@aws-sdk/middleware-logger": "3.862.0",
13328
+ "@aws-sdk/middleware-recursion-detection": "3.862.0",
13329
+ "@aws-sdk/middleware-user-agent": "3.864.0",
13330
+ "@aws-sdk/region-config-resolver": "3.862.0",
13331
+ "@aws-sdk/types": "3.862.0",
13332
+ "@aws-sdk/util-endpoints": "3.862.0",
13333
+ "@aws-sdk/util-user-agent-browser": "3.862.0",
13334
+ "@aws-sdk/util-user-agent-node": "3.864.0",
13335
+ "@smithy/config-resolver": "^4.1.5",
13336
+ "@smithy/core": "^3.8.0",
13337
+ "@smithy/fetch-http-handler": "^5.1.1",
13338
+ "@smithy/hash-node": "^4.0.5",
13339
+ "@smithy/invalid-dependency": "^4.0.5",
13340
+ "@smithy/middleware-content-length": "^4.0.5",
13341
+ "@smithy/middleware-endpoint": "^4.1.18",
13342
+ "@smithy/middleware-retry": "^4.1.19",
13343
+ "@smithy/middleware-serde": "^4.0.9",
13344
+ "@smithy/middleware-stack": "^4.0.5",
13345
+ "@smithy/node-config-provider": "^4.1.4",
13346
+ "@smithy/node-http-handler": "^4.1.1",
13347
+ "@smithy/protocol-http": "^5.1.3",
13348
+ "@smithy/smithy-client": "^4.4.10",
13349
+ "@smithy/types": "^4.3.2",
13350
+ "@smithy/url-parser": "^4.0.5",
13800
13351
  "@smithy/util-base64": "^4.0.0",
13801
13352
  "@smithy/util-body-length-browser": "^4.0.0",
13802
13353
  "@smithy/util-body-length-node": "^4.0.0",
13803
- "@smithy/util-defaults-mode-browser": "^4.0.20",
13804
- "@smithy/util-defaults-mode-node": "^4.0.20",
13805
- "@smithy/util-endpoints": "^3.0.6",
13806
- "@smithy/util-middleware": "^4.0.4",
13807
- "@smithy/util-retry": "^4.0.6",
13354
+ "@smithy/util-defaults-mode-browser": "^4.0.26",
13355
+ "@smithy/util-defaults-mode-node": "^4.0.26",
13356
+ "@smithy/util-endpoints": "^3.0.7",
13357
+ "@smithy/util-middleware": "^4.0.5",
13358
+ "@smithy/util-retry": "^4.0.7",
13808
13359
  "@smithy/util-utf8": "^4.0.0",
13809
13360
  tslib: "^2.6.2"
13810
13361
  },
@@ -13889,7 +13440,7 @@ var cache3, defaultEndpointResolver3;
13889
13440
  var init_endpointResolver2 = __esm({
13890
13441
  "node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js"() {
13891
13442
  "use strict";
13892
- init_dist_es28();
13443
+ init_dist_es30();
13893
13444
  init_dist_es27();
13894
13445
  init_ruleset2();
13895
13446
  cache3 = new EndpointCache({
@@ -13914,7 +13465,7 @@ var init_runtimeConfig_shared2 = __esm({
13914
13465
  init_dist_es22();
13915
13466
  init_dist_es15();
13916
13467
  init_dist_es20();
13917
- init_dist_es35();
13468
+ init_dist_es29();
13918
13469
  init_dist_es8();
13919
13470
  init_dist_es7();
13920
13471
  init_httpAuthSchemeProvider2();
@@ -13958,10 +13509,10 @@ var init_runtimeConfig2 = __esm({
13958
13509
  init_package2();
13959
13510
  init_dist_es22();
13960
13511
  init_dist_es43();
13961
- init_dist_es30();
13512
+ init_dist_es32();
13962
13513
  init_dist_es44();
13963
13514
  init_dist_es39();
13964
- init_dist_es33();
13515
+ init_dist_es35();
13965
13516
  init_dist_es11();
13966
13517
  init_dist_es45();
13967
13518
  init_dist_es38();
@@ -14074,10 +13625,10 @@ var init_SSOClient = __esm({
14074
13625
  init_dist_es23();
14075
13626
  init_dist_es24();
14076
13627
  init_dist_es25();
14077
- init_dist_es29();
14078
- init_dist_es30();
14079
- init_dist_es15();
14080
13628
  init_dist_es31();
13629
+ init_dist_es32();
13630
+ init_dist_es15();
13631
+ init_dist_es33();
14081
13632
  init_dist_es36();
14082
13633
  init_dist_es39();
14083
13634
  init_dist_es20();
@@ -14636,7 +14187,7 @@ var init_resolveSSOCredentials = __esm({
14636
14187
  init_client2();
14637
14188
  init_dist_es48();
14638
14189
  init_dist_es16();
14639
- init_dist_es32();
14190
+ init_dist_es34();
14640
14191
  SHOULD_FAIL_CREDENTIAL_CHAIN = false;
14641
14192
  resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, profile, logger: logger2 }) => {
14642
14193
  let token;
@@ -14737,7 +14288,7 @@ var init_fromSSO = __esm({
14737
14288
  "node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js"() {
14738
14289
  "use strict";
14739
14290
  init_dist_es16();
14740
- init_dist_es32();
14291
+ init_dist_es34();
14741
14292
  init_isSsoProfile();
14742
14293
  init_resolveSSOCredentials();
14743
14294
  init_validateSsoProfile();
@@ -15005,7 +14556,7 @@ var cache4, defaultEndpointResolver4;
15005
14556
  var init_endpointResolver3 = __esm({
15006
14557
  "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js"() {
15007
14558
  "use strict";
15008
- init_dist_es28();
14559
+ init_dist_es30();
15009
14560
  init_dist_es27();
15010
14561
  init_ruleset3();
15011
14562
  cache4 = new EndpointCache({
@@ -15030,7 +14581,7 @@ var init_runtimeConfig_shared3 = __esm({
15030
14581
  init_dist_es22();
15031
14582
  init_dist_es15();
15032
14583
  init_dist_es20();
15033
- init_dist_es35();
14584
+ init_dist_es29();
15034
14585
  init_dist_es8();
15035
14586
  init_dist_es7();
15036
14587
  init_httpAuthSchemeProvider3();
@@ -15074,11 +14625,11 @@ var init_runtimeConfig3 = __esm({
15074
14625
  init_package();
15075
14626
  init_dist_es22();
15076
14627
  init_dist_es43();
15077
- init_dist_es30();
14628
+ init_dist_es32();
15078
14629
  init_dist_es15();
15079
14630
  init_dist_es44();
15080
14631
  init_dist_es39();
15081
- init_dist_es33();
14632
+ init_dist_es35();
15082
14633
  init_dist_es11();
15083
14634
  init_dist_es45();
15084
14635
  init_dist_es38();
@@ -15203,10 +14754,10 @@ var init_STSClient = __esm({
15203
14754
  init_dist_es23();
15204
14755
  init_dist_es24();
15205
14756
  init_dist_es25();
15206
- init_dist_es29();
15207
- init_dist_es30();
15208
- init_dist_es15();
15209
14757
  init_dist_es31();
14758
+ init_dist_es32();
14759
+ init_dist_es15();
14760
+ init_dist_es33();
15210
14761
  init_dist_es36();
15211
14762
  init_dist_es39();
15212
14763
  init_dist_es20();
@@ -16158,7 +15709,7 @@ var init_resolveAssumeRoleCredentials = __esm({
16158
15709
  "use strict";
16159
15710
  init_client2();
16160
15711
  init_dist_es16();
16161
- init_dist_es32();
15712
+ init_dist_es34();
16162
15713
  init_resolveCredentialSource();
16163
15714
  init_resolveProfileData();
16164
15715
  isAssumeRoleProfile = (arg, { profile = "default", logger: logger2 } = {}) => {
@@ -16267,20 +15818,20 @@ var init_getValidatedProcessCredentials = __esm({
16267
15818
  });
16268
15819
 
16269
15820
  // node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
16270
- var import_child_process, import_util8, resolveProcessCredentials;
15821
+ var import_child_process, import_util11, resolveProcessCredentials;
16271
15822
  var init_resolveProcessCredentials = __esm({
16272
15823
  "node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js"() {
16273
15824
  "use strict";
16274
15825
  init_dist_es16();
16275
15826
  import_child_process = require("child_process");
16276
- import_util8 = require("util");
15827
+ import_util11 = require("util");
16277
15828
  init_getValidatedProcessCredentials();
16278
15829
  resolveProcessCredentials = async (profileName, profiles, logger2) => {
16279
15830
  const profile = profiles[profileName];
16280
15831
  if (profiles[profileName]) {
16281
15832
  const credentialProcess = profile["credential_process"];
16282
15833
  if (credentialProcess !== void 0) {
16283
- const execPromise = (0, import_util8.promisify)(import_child_process.exec);
15834
+ const execPromise = (0, import_util11.promisify)(import_child_process.exec);
16284
15835
  try {
16285
15836
  const { stdout } = await execPromise(credentialProcess);
16286
15837
  let data;
@@ -16310,7 +15861,7 @@ var fromProcess;
16310
15861
  var init_fromProcess = __esm({
16311
15862
  "node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js"() {
16312
15863
  "use strict";
16313
- init_dist_es32();
15864
+ init_dist_es34();
16314
15865
  init_resolveProcessCredentials();
16315
15866
  fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
16316
15867
  init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
@@ -16536,7 +16087,7 @@ var fromIni;
16536
16087
  var init_fromIni = __esm({
16537
16088
  "node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js"() {
16538
16089
  "use strict";
16539
- init_dist_es32();
16090
+ init_dist_es34();
16540
16091
  init_resolveProfileData();
16541
16092
  fromIni = (_init = {}) => async ({ callerClientConfig } = {}) => {
16542
16093
  const init = {
@@ -17852,13 +17403,13 @@ var Prompt = class extends Model {
17852
17403
  options;
17853
17404
  constructor(schema, initialOptions = {}) {
17854
17405
  super();
17855
- const defaultOptions = {
17406
+ const defaultOptions3 = {
17856
17407
  temperature: 0,
17857
17408
  maxOutTokens: 1e4,
17858
17409
  model: "gpt-4.1-mini",
17859
17410
  instructions: ""
17860
17411
  };
17861
- const options = (0, import_rambda.merge)(defaultOptions)(initialOptions);
17412
+ const options = (0, import_rambda.merge)(defaultOptions3)(initialOptions);
17862
17413
  this.schema = schema;
17863
17414
  this.options = options;
17864
17415
  }
@@ -19682,7 +19233,7 @@ var getThrow200ExceptionsPlugin = (config) => ({
19682
19233
  });
19683
19234
 
19684
19235
  // node_modules/@aws-sdk/util-arn-parser/dist-es/index.js
19685
- var validate = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
19236
+ var validate2 = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
19686
19237
 
19687
19238
  // node_modules/@aws-sdk/middleware-sdk-s3/dist-es/bucket-endpoint-middleware.js
19688
19239
  function bucketEndpointMiddleware(options) {
@@ -19724,7 +19275,7 @@ var bucketEndpointMiddlewareOptions = {
19724
19275
  function validateBucketNameMiddleware({ bucketEndpoint }) {
19725
19276
  return (next) => async (args) => {
19726
19277
  const { input: { Bucket } } = args;
19727
- if (!bucketEndpoint && typeof Bucket === "string" && !validate(Bucket) && Bucket.indexOf("/") >= 0) {
19278
+ if (!bucketEndpoint && typeof Bucket === "string" && !validate2(Bucket) && Bucket.indexOf("/") >= 0) {
19728
19279
  const err = new Error(`Bucket name shouldn't contain '/', received '${Bucket}'`);
19729
19280
  err.name = "InvalidBucketName";
19730
19281
  throw err;
@@ -19746,8 +19297,8 @@ var getValidateBucketNamePlugin = (options) => ({
19746
19297
  });
19747
19298
 
19748
19299
  // node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
19749
- init_dist_es29();
19750
- init_dist_es30();
19300
+ init_dist_es31();
19301
+ init_dist_es32();
19751
19302
  init_dist_es15();
19752
19303
 
19753
19304
  // node_modules/@smithy/eventstream-serde-config-resolver/dist-es/EventStreamSerdeConfig.js
@@ -19756,7 +19307,7 @@ var resolveEventStreamSerdeConfig = (input) => Object.assign(input, {
19756
19307
  });
19757
19308
 
19758
19309
  // node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
19759
- init_dist_es31();
19310
+ init_dist_es33();
19760
19311
  init_dist_es36();
19761
19312
  init_dist_es39();
19762
19313
  init_dist_es20();
@@ -19863,7 +19414,7 @@ init_dist_es36();
19863
19414
  init_dist_es3();
19864
19415
 
19865
19416
  // node_modules/@aws-sdk/client-s3/dist-es/endpoint/endpointResolver.js
19866
- init_dist_es28();
19417
+ init_dist_es30();
19867
19418
  init_dist_es27();
19868
19419
 
19869
19420
  // node_modules/@aws-sdk/client-s3/dist-es/endpoint/ruleset.js
@@ -20947,7 +20498,7 @@ var CreateSessionCommand = class extends Command.classBuilder().ep({
20947
20498
  var package_default = {
20948
20499
  name: "@aws-sdk/client-s3",
20949
20500
  description: "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
20950
- version: "3.835.0",
20501
+ version: "3.864.0",
20951
20502
  scripts: {
20952
20503
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
20953
20504
  "build:cjs": "node ../../scripts/compilation/inline client-s3",
@@ -20975,64 +20526,64 @@ var package_default = {
20975
20526
  "@aws-crypto/sha1-browser": "5.2.0",
20976
20527
  "@aws-crypto/sha256-browser": "5.2.0",
20977
20528
  "@aws-crypto/sha256-js": "5.2.0",
20978
- "@aws-sdk/core": "3.835.0",
20979
- "@aws-sdk/credential-provider-node": "3.835.0",
20980
- "@aws-sdk/middleware-bucket-endpoint": "3.830.0",
20981
- "@aws-sdk/middleware-expect-continue": "3.821.0",
20982
- "@aws-sdk/middleware-flexible-checksums": "3.835.0",
20983
- "@aws-sdk/middleware-host-header": "3.821.0",
20984
- "@aws-sdk/middleware-location-constraint": "3.821.0",
20985
- "@aws-sdk/middleware-logger": "3.821.0",
20986
- "@aws-sdk/middleware-recursion-detection": "3.821.0",
20987
- "@aws-sdk/middleware-sdk-s3": "3.835.0",
20988
- "@aws-sdk/middleware-ssec": "3.821.0",
20989
- "@aws-sdk/middleware-user-agent": "3.835.0",
20990
- "@aws-sdk/region-config-resolver": "3.821.0",
20991
- "@aws-sdk/signature-v4-multi-region": "3.835.0",
20992
- "@aws-sdk/types": "3.821.0",
20993
- "@aws-sdk/util-endpoints": "3.828.0",
20994
- "@aws-sdk/util-user-agent-browser": "3.821.0",
20995
- "@aws-sdk/util-user-agent-node": "3.835.0",
20996
- "@aws-sdk/xml-builder": "3.821.0",
20997
- "@smithy/config-resolver": "^4.1.4",
20998
- "@smithy/core": "^3.5.3",
20999
- "@smithy/eventstream-serde-browser": "^4.0.4",
21000
- "@smithy/eventstream-serde-config-resolver": "^4.1.2",
21001
- "@smithy/eventstream-serde-node": "^4.0.4",
21002
- "@smithy/fetch-http-handler": "^5.0.4",
21003
- "@smithy/hash-blob-browser": "^4.0.4",
21004
- "@smithy/hash-node": "^4.0.4",
21005
- "@smithy/hash-stream-node": "^4.0.4",
21006
- "@smithy/invalid-dependency": "^4.0.4",
21007
- "@smithy/md5-js": "^4.0.4",
21008
- "@smithy/middleware-content-length": "^4.0.4",
21009
- "@smithy/middleware-endpoint": "^4.1.12",
21010
- "@smithy/middleware-retry": "^4.1.13",
21011
- "@smithy/middleware-serde": "^4.0.8",
21012
- "@smithy/middleware-stack": "^4.0.4",
21013
- "@smithy/node-config-provider": "^4.1.3",
21014
- "@smithy/node-http-handler": "^4.0.6",
21015
- "@smithy/protocol-http": "^5.1.2",
21016
- "@smithy/smithy-client": "^4.4.4",
21017
- "@smithy/types": "^4.3.1",
21018
- "@smithy/url-parser": "^4.0.4",
20529
+ "@aws-sdk/core": "3.864.0",
20530
+ "@aws-sdk/credential-provider-node": "3.864.0",
20531
+ "@aws-sdk/middleware-bucket-endpoint": "3.862.0",
20532
+ "@aws-sdk/middleware-expect-continue": "3.862.0",
20533
+ "@aws-sdk/middleware-flexible-checksums": "3.864.0",
20534
+ "@aws-sdk/middleware-host-header": "3.862.0",
20535
+ "@aws-sdk/middleware-location-constraint": "3.862.0",
20536
+ "@aws-sdk/middleware-logger": "3.862.0",
20537
+ "@aws-sdk/middleware-recursion-detection": "3.862.0",
20538
+ "@aws-sdk/middleware-sdk-s3": "3.864.0",
20539
+ "@aws-sdk/middleware-ssec": "3.862.0",
20540
+ "@aws-sdk/middleware-user-agent": "3.864.0",
20541
+ "@aws-sdk/region-config-resolver": "3.862.0",
20542
+ "@aws-sdk/signature-v4-multi-region": "3.864.0",
20543
+ "@aws-sdk/types": "3.862.0",
20544
+ "@aws-sdk/util-endpoints": "3.862.0",
20545
+ "@aws-sdk/util-user-agent-browser": "3.862.0",
20546
+ "@aws-sdk/util-user-agent-node": "3.864.0",
20547
+ "@aws-sdk/xml-builder": "3.862.0",
20548
+ "@smithy/config-resolver": "^4.1.5",
20549
+ "@smithy/core": "^3.8.0",
20550
+ "@smithy/eventstream-serde-browser": "^4.0.5",
20551
+ "@smithy/eventstream-serde-config-resolver": "^4.1.3",
20552
+ "@smithy/eventstream-serde-node": "^4.0.5",
20553
+ "@smithy/fetch-http-handler": "^5.1.1",
20554
+ "@smithy/hash-blob-browser": "^4.0.5",
20555
+ "@smithy/hash-node": "^4.0.5",
20556
+ "@smithy/hash-stream-node": "^4.0.5",
20557
+ "@smithy/invalid-dependency": "^4.0.5",
20558
+ "@smithy/md5-js": "^4.0.5",
20559
+ "@smithy/middleware-content-length": "^4.0.5",
20560
+ "@smithy/middleware-endpoint": "^4.1.18",
20561
+ "@smithy/middleware-retry": "^4.1.19",
20562
+ "@smithy/middleware-serde": "^4.0.9",
20563
+ "@smithy/middleware-stack": "^4.0.5",
20564
+ "@smithy/node-config-provider": "^4.1.4",
20565
+ "@smithy/node-http-handler": "^4.1.1",
20566
+ "@smithy/protocol-http": "^5.1.3",
20567
+ "@smithy/smithy-client": "^4.4.10",
20568
+ "@smithy/types": "^4.3.2",
20569
+ "@smithy/url-parser": "^4.0.5",
21019
20570
  "@smithy/util-base64": "^4.0.0",
21020
20571
  "@smithy/util-body-length-browser": "^4.0.0",
21021
20572
  "@smithy/util-body-length-node": "^4.0.0",
21022
- "@smithy/util-defaults-mode-browser": "^4.0.20",
21023
- "@smithy/util-defaults-mode-node": "^4.0.20",
21024
- "@smithy/util-endpoints": "^3.0.6",
21025
- "@smithy/util-middleware": "^4.0.4",
21026
- "@smithy/util-retry": "^4.0.6",
21027
- "@smithy/util-stream": "^4.2.2",
20573
+ "@smithy/util-defaults-mode-browser": "^4.0.26",
20574
+ "@smithy/util-defaults-mode-node": "^4.0.26",
20575
+ "@smithy/util-endpoints": "^3.0.7",
20576
+ "@smithy/util-middleware": "^4.0.5",
20577
+ "@smithy/util-retry": "^4.0.7",
20578
+ "@smithy/util-stream": "^4.2.4",
21028
20579
  "@smithy/util-utf8": "^4.0.0",
21029
- "@smithy/util-waiter": "^4.0.5",
20580
+ "@smithy/util-waiter": "^4.0.7",
21030
20581
  "@types/uuid": "^9.0.1",
21031
20582
  tslib: "^2.6.2",
21032
20583
  uuid: "^9.0.1"
21033
20584
  },
21034
20585
  devDependencies: {
21035
- "@aws-sdk/signature-v4-crt": "3.835.0",
20586
+ "@aws-sdk/signature-v4-crt": "3.864.0",
21036
20587
  "@tsconfig/node18": "18.2.4",
21037
20588
  "@types/node": "^18.19.69",
21038
20589
  concurrently: "7.0.0",
@@ -21078,7 +20629,7 @@ init_dist_es22();
21078
20629
  // node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
21079
20630
  init_dist_es40();
21080
20631
  init_dist_es16();
21081
- init_dist_es32();
20632
+ init_dist_es34();
21082
20633
 
21083
20634
  // node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js
21084
20635
  init_dist_es16();
@@ -21177,7 +20728,7 @@ init_dist_es2();
21177
20728
 
21178
20729
  // node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
21179
20730
  init_dist_es43();
21180
- init_dist_es30();
20731
+ init_dist_es32();
21181
20732
 
21182
20733
  // node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js
21183
20734
  init_dist_es13();
@@ -21784,7 +21335,7 @@ var readableStreamHasher = (hashCtor, readableStream) => {
21784
21335
 
21785
21336
  // node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
21786
21337
  init_dist_es39();
21787
- init_dist_es33();
21338
+ init_dist_es35();
21788
21339
  init_dist_es11();
21789
21340
  init_dist_es45();
21790
21341
  init_dist_es38();
@@ -21792,7 +21343,7 @@ init_dist_es38();
21792
21343
  // node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.shared.js
21793
21344
  init_dist_es22();
21794
21345
  init_dist_es20();
21795
- init_dist_es35();
21346
+ init_dist_es29();
21796
21347
  init_dist_es8();
21797
21348
  init_dist_es14();
21798
21349
  init_dist_es7();