@gradientedge/cdk-utils 6.8.0 → 6.10.0

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 (131) hide show
  1. package/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +22 -12
  2. package/app/api-destined-function/layers/nodejs/node_modules/uuid/README.md +30 -73
  3. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  4. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  5. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  6. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  7. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  8. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  9. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  10. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  11. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  12. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  13. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  14. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  15. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  16. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  17. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  18. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  19. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/md5.js +23 -23
  20. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/native.js +4 -0
  21. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/parse.js +2 -2
  22. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/rng.js +4 -5
  23. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
  24. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
  25. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v1.js +17 -17
  26. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v3.js +1 -1
  27. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v35.js +12 -10
  28. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v4.js +9 -4
  29. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v5.js +1 -1
  30. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/version.js +1 -1
  31. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/native.js +4 -0
  32. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/stringify.js +7 -3
  33. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v1.js +2 -2
  34. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v35.js +6 -4
  35. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v4.js +7 -2
  36. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/version.js +1 -1
  37. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/index.js +18 -18
  38. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/native-browser.js +11 -0
  39. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/native.js +15 -0
  40. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng-browser.js +2 -3
  41. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/stringify.js +8 -3
  42. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v1.js +2 -2
  43. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v35.js +7 -5
  44. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v4.js +8 -2
  45. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/version.js +1 -1
  46. package/app/api-destined-function/layers/nodejs/node_modules/uuid/package.json +37 -41
  47. package/app/api-destined-function/layers/nodejs/package.json +1 -1
  48. package/app/api-destined-function/node_modules/.yarn-integrity +22 -12
  49. package/app/api-destined-function/node_modules/uuid/README.md +30 -73
  50. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  51. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  52. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  53. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  54. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  55. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  56. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  57. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  58. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  59. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  60. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  61. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  62. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  63. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  64. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  65. package/app/api-destined-function/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  66. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/md5.js +23 -23
  67. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/native.js +4 -0
  68. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/parse.js +2 -2
  69. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/rng.js +4 -5
  70. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
  71. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
  72. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v1.js +17 -17
  73. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v3.js +1 -1
  74. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v35.js +12 -10
  75. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v4.js +9 -4
  76. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v5.js +1 -1
  77. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/version.js +1 -1
  78. package/app/api-destined-function/node_modules/uuid/dist/esm-node/native.js +4 -0
  79. package/app/api-destined-function/node_modules/uuid/dist/esm-node/stringify.js +7 -3
  80. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v1.js +2 -2
  81. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v35.js +6 -4
  82. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v4.js +7 -2
  83. package/app/api-destined-function/node_modules/uuid/dist/esm-node/version.js +1 -1
  84. package/app/api-destined-function/node_modules/uuid/dist/index.js +18 -18
  85. package/app/api-destined-function/node_modules/uuid/dist/native-browser.js +11 -0
  86. package/app/api-destined-function/node_modules/uuid/dist/native.js +15 -0
  87. package/app/api-destined-function/node_modules/uuid/dist/rng-browser.js +2 -3
  88. package/app/api-destined-function/node_modules/uuid/dist/stringify.js +8 -3
  89. package/app/api-destined-function/node_modules/uuid/dist/v1.js +2 -2
  90. package/app/api-destined-function/node_modules/uuid/dist/v35.js +7 -5
  91. package/app/api-destined-function/node_modules/uuid/dist/v4.js +8 -2
  92. package/app/api-destined-function/node_modules/uuid/dist/version.js +1 -1
  93. package/app/api-destined-function/node_modules/uuid/package.json +37 -41
  94. package/app/api-destined-function/package.json +1 -1
  95. package/dist/src/lib/construct/api-to-lambda-target/index.d.ts +1 -0
  96. package/dist/src/lib/construct/api-to-lambda-target/index.js +17 -0
  97. package/dist/src/lib/construct/api-to-lambda-target/main.d.ts +48 -0
  98. package/dist/src/lib/construct/api-to-lambda-target/main.js +156 -0
  99. package/dist/src/lib/helper/api-to-lambda-target-rest-api.d.ts +36 -0
  100. package/dist/src/lib/helper/api-to-lambda-target-rest-api.js +30 -0
  101. package/dist/src/lib/helper/index.d.ts +1 -0
  102. package/dist/src/lib/helper/index.js +1 -0
  103. package/dist/src/lib/manager/aws/api-manager.d.ts +1 -1
  104. package/dist/src/lib/types/aws/index.d.ts +55 -0
  105. package/package.json +4 -4
  106. package/src/lib/construct/api-to-lambda-target/index.ts +1 -0
  107. package/src/lib/construct/api-to-lambda-target/main.ts +189 -0
  108. package/src/lib/helper/api-to-lambda-target-rest-api.ts +33 -0
  109. package/src/lib/helper/index.ts +1 -0
  110. package/src/lib/manager/aws/api-manager.ts +1 -1
  111. package/src/lib/types/aws/index.ts +54 -0
  112. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  113. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  114. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  115. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  116. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  117. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  118. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  119. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  120. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  121. package/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  122. package/app/api-destined-function/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  123. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  124. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  125. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  126. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  127. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  128. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  129. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  130. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  131. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
@@ -0,0 +1,36 @@
1
+ import * as apig from 'aws-cdk-lib/aws-apigateway';
2
+ import * as acm from 'aws-cdk-lib/aws-certificatemanager';
3
+ import * as iam from 'aws-cdk-lib/aws-iam';
4
+ import * as route53 from 'aws-cdk-lib/aws-route53';
5
+ import * as sns from 'aws-cdk-lib/aws-sns';
6
+ import * as types from '../types/aws';
7
+ /**
8
+ * @stability stable
9
+ * @category cdk-utils.api-to-lambda-target
10
+ * @subcategory member
11
+ * @classdesc Provides a construct to contain api resources for ApiToLambdaTarget
12
+ */
13
+ export declare class ApiToLambdaTargetRestApi implements types.ApiToLambdaTargetRestApiType {
14
+ api: apig.RestApi;
15
+ basePathMappings: apig.BasePathMapping[];
16
+ certificate: acm.ICertificate;
17
+ domain: apig.DomainName;
18
+ errorResponseModel: apig.Model;
19
+ hostedZone: route53.IHostedZone;
20
+ integration: apig.Integration;
21
+ integrationErrorResponse: apig.IntegrationResponse;
22
+ integrationRequestParameters: {
23
+ [p: string]: string;
24
+ };
25
+ integrationRequestTemplates: {
26
+ [p: string]: string;
27
+ };
28
+ integrationResponse: apig.IntegrationResponse;
29
+ method: apig.Method;
30
+ methodErrorResponse: apig.MethodResponse;
31
+ methodResponse: apig.MethodResponse;
32
+ resource: apig.Resource;
33
+ responseModel: apig.Model;
34
+ topic: sns.Topic;
35
+ role: iam.Role;
36
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiToLambdaTargetRestApi = void 0;
4
+ /**
5
+ * @stability stable
6
+ * @category cdk-utils.api-to-lambda-target
7
+ * @subcategory member
8
+ * @classdesc Provides a construct to contain api resources for ApiToLambdaTarget
9
+ */
10
+ class ApiToLambdaTargetRestApi {
11
+ api;
12
+ basePathMappings = [];
13
+ certificate;
14
+ domain;
15
+ errorResponseModel;
16
+ hostedZone;
17
+ integration;
18
+ integrationErrorResponse;
19
+ integrationRequestParameters;
20
+ integrationRequestTemplates;
21
+ integrationResponse;
22
+ method;
23
+ methodErrorResponse;
24
+ methodResponse;
25
+ resource;
26
+ responseModel;
27
+ topic;
28
+ role;
29
+ }
30
+ exports.ApiToLambdaTargetRestApi = ApiToLambdaTargetRestApi;
@@ -1,2 +1,3 @@
1
1
  export * from './api-to-eventbridge-target-event';
2
2
  export * from './api-to-eventbridge-target-rest-api';
3
+ export * from './api-to-lambda-target-rest-api';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./api-to-eventbridge-target-event"), exports);
18
18
  __exportStar(require("./api-to-eventbridge-target-rest-api"), exports);
19
+ __exportStar(require("./api-to-lambda-target-rest-api"), exports);
@@ -31,7 +31,7 @@ export declare class ApiManager {
31
31
  * @param {AcmProps} props lambda rest restApi props
32
32
  * @param lambdaFunction
33
33
  */
34
- createLambdaRestApi(id: string, scope: common.CommonConstruct, props: apig.LambdaRestApiProps, lambdaFunction: lambda.Function): apig.LambdaRestApi;
34
+ createLambdaRestApi(id: string, scope: common.CommonConstruct, props: apig.LambdaRestApiProps, lambdaFunction: lambda.IFunction): apig.LambdaRestApi;
35
35
  /**
36
36
  * @summary Method to create custom restApi domain
37
37
  * @param {string} id scoped id of the resource
@@ -272,6 +272,36 @@ export interface ApiToEventBridgeTargetRestApiType {
272
272
  role?: iam.Role;
273
273
  policy?: iam.PolicyDocument;
274
274
  }
275
+ /**
276
+ * @category cdk-utils.api-to-lambda-target
277
+ * @subcategory Types
278
+ */
279
+ export interface ApiToLambdaTargetRestApiType {
280
+ api: apig.IRestApi;
281
+ authoriser?: apig.IAuthorizer;
282
+ basePathMappings: apig.BasePathMapping[];
283
+ certificate: acm.ICertificate;
284
+ domain: apig.DomainName;
285
+ errorResponseModel: apig.Model;
286
+ hostedZone: route53.IHostedZone;
287
+ integration: apig.Integration;
288
+ integrationErrorResponse: apig.IntegrationResponse;
289
+ integrationRequestParameters: {
290
+ [p: string]: string;
291
+ };
292
+ integrationRequestTemplates: {
293
+ [p: string]: string;
294
+ };
295
+ integrationResponse: apig.IntegrationResponse;
296
+ method: apig.Method;
297
+ methodErrorResponse: apig.MethodResponse;
298
+ methodResponse: apig.MethodResponse;
299
+ resource: apig.Resource;
300
+ responseModel: apig.Model;
301
+ topic?: sns.ITopic;
302
+ role?: iam.Role;
303
+ policy?: iam.PolicyDocument;
304
+ }
275
305
  /**
276
306
  * @category cdk-utils.api-to-eventbridge-target
277
307
  * @subcategory Types
@@ -345,6 +375,31 @@ export interface ApiToEventBridgeTargetProps extends CommonStackProps {
345
375
  timezone: string;
346
376
  useExistingHostedZone: boolean;
347
377
  }
378
+ /**
379
+ * @category cdk-utils.api-to-lambda-target
380
+ * @subcategory Properties
381
+ */
382
+ export interface ApiToLambdaTargetRestApiProps {
383
+ certificate: AcmProps;
384
+ restApi: apig.LambdaRestApiProps;
385
+ importedRestApiRef?: string;
386
+ importedRestApiRootResourceRef?: string;
387
+ useExisting: boolean;
388
+ }
389
+ /**
390
+ * @category cdk-utils.api-to-lambda-target
391
+ * @subcategory Properties
392
+ */
393
+ export interface ApiToLambdaTargetProps extends CommonStackProps {
394
+ apiRootPaths?: string[];
395
+ apiSubDomain: string;
396
+ api: ApiToLambdaTargetRestApiProps;
397
+ lambdaFunctionName: string;
398
+ logLevel: string;
399
+ nodeEnv: string;
400
+ timezone: string;
401
+ useExistingHostedZone: boolean;
402
+ }
348
403
  /**
349
404
  * @category cdk-utils.acm-manager
350
405
  * @subcategory Properties
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "6.8.0",
3
+ "version": "6.10.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -48,9 +48,9 @@
48
48
  "@types/lodash": "^4.14.185",
49
49
  "@types/node": "^18.7.18",
50
50
  "app-root-path": "^3.1.0",
51
- "aws-cdk-lib": "^2.41.0",
52
- "aws-sdk": "^2.1217.0",
53
- "constructs": "^10.1.104",
51
+ "aws-cdk-lib": "^2.42.0",
52
+ "aws-sdk": "^2.1218.0",
53
+ "constructs": "^10.1.106",
54
54
  "lodash": "^4.17.21",
55
55
  "moment": "^2.29.4",
56
56
  "nconf": "^0.12.0",
@@ -0,0 +1 @@
1
+ export * from './main'
@@ -0,0 +1,189 @@
1
+ import * as cdk from 'aws-cdk-lib'
2
+ import * as apig from 'aws-cdk-lib/aws-apigateway'
3
+ import * as lambda from 'aws-cdk-lib/aws-lambda'
4
+ import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager'
5
+ import { Construct } from 'constructs'
6
+ import { CommonConstruct } from '../../common'
7
+ import * as helper from '../../helper'
8
+ import * as types from '../../types/aws'
9
+
10
+ export class ApiToLambdaTarget extends CommonConstruct {
11
+ props: types.ApiToLambdaTargetProps
12
+ id: string
13
+
14
+ /* application related resources */
15
+ applicationSecrets: secretsmanager.ISecret[]
16
+
17
+ /* rest restApi related resources */
18
+ apiToLambdaTargetRestApi: types.ApiToLambdaTargetRestApiType
19
+
20
+ constructor(parent: Construct, id: string, props: types.ApiToLambdaTargetProps) {
21
+ super(parent, id, props)
22
+
23
+ this.props = props
24
+ this.id = id
25
+
26
+ this.apiToLambdaTargetRestApi = new helper.ApiToLambdaTargetRestApi()
27
+ }
28
+
29
+ protected initResources() {
30
+ /* application related resources */
31
+ this.resolveSecrets()
32
+
33
+ /* core resources */
34
+ this.resolveHostedZone()
35
+ this.resolveCertificate()
36
+
37
+ /* restApi related resources */
38
+ this.createApiToLambdaTargetRestApi()
39
+ this.createApiDomain()
40
+ this.createApiBasePathMapping()
41
+ this.createApiRouteAssets()
42
+ }
43
+
44
+ /**
45
+ * @summary Method to resolve secrets from SecretsManager
46
+ * - To be implemented in the overriding method in the implementation class
47
+ * @protected
48
+ */
49
+ protected resolveSecrets() {
50
+ this.applicationSecrets = []
51
+ }
52
+
53
+ /**
54
+ * @summary Method to resolve a hosted zone based on domain attributes
55
+ * @protected
56
+ */
57
+ protected resolveHostedZone() {
58
+ this.apiToLambdaTargetRestApi.hostedZone = this.route53Manager.withHostedZoneFromFullyQualifiedDomainName(
59
+ `${this.id}-hosted-zone`,
60
+ this,
61
+ this.props.useExistingHostedZone
62
+ )
63
+ }
64
+
65
+ /**
66
+ * @summary Method to resolve a certificate based on attributes
67
+ * @protected
68
+ */
69
+ protected resolveCertificate() {
70
+ if (this.props.api.useExisting) return
71
+ if (
72
+ this.props.api.certificate.useExistingCertificate &&
73
+ this.props.api.certificate.certificateSsmName &&
74
+ this.props.api.certificate.certificateRegion
75
+ ) {
76
+ this.props.api.certificate.certificateArn = this.ssmManager.readStringParameterFromRegion(
77
+ `${this.id}-certificate-param`,
78
+ this,
79
+ this.props.api.certificate.certificateSsmName,
80
+ this.props.api.certificate.certificateRegion
81
+ )
82
+ }
83
+
84
+ this.apiToLambdaTargetRestApi.certificate = this.acmManager.resolveCertificate(
85
+ `${this.id}-certificate`,
86
+ this,
87
+ this.props.api.certificate
88
+ )
89
+ }
90
+
91
+ /**
92
+ * @summary Method to create rest restApi for Api
93
+ * @protected
94
+ */
95
+ protected createApiToLambdaTargetRestApi() {
96
+ if (this.props.api.useExisting && this.props.api.importedRestApiRef) {
97
+ this.apiToLambdaTargetRestApi.api = apig.RestApi.fromRestApiId(
98
+ this,
99
+ `${this.id}-rest-api`,
100
+ cdk.Fn.importValue(this.props.api.importedRestApiRef)
101
+ )
102
+ return
103
+ }
104
+
105
+ const accessLogGroup = this.logManager.createLogGroup(`${this.id}-rest-api-access-log`, this, {
106
+ logGroupName: `/custom/api/${this.id}-rest-api-access`,
107
+ removalPolicy: cdk.RemovalPolicy.DESTROY,
108
+ })
109
+
110
+ this.props.api.restApi = {
111
+ ...this.props.api.restApi,
112
+ ...{
113
+ deployOptions: {
114
+ accessLogDestination: new apig.LogGroupLogDestination(accessLogGroup),
115
+ },
116
+ },
117
+ }
118
+
119
+ this.apiToLambdaTargetRestApi.api = this.apiManager.createLambdaRestApi(
120
+ `${this.id}-lambda-rest-api`,
121
+ this,
122
+ this.props.api.restApi,
123
+ lambda.Function.fromFunctionName(this, `${this.id}-lambda`, this.props.lambdaFunctionName)
124
+ )
125
+
126
+ this.addCfnOutput(`${this.id}-restApiId`, this.apiToLambdaTargetRestApi.api.restApiId)
127
+ this.addCfnOutput(`${this.id}-restApiRootResourceId`, this.apiToLambdaTargetRestApi.api.root.resourceId)
128
+ }
129
+
130
+ /**
131
+ * @summary Method to create custom restApi domain for Api API
132
+ * @protected
133
+ */
134
+ protected createApiDomain() {
135
+ if (this.props.api.useExisting) return
136
+ this.apiToLambdaTargetRestApi.domain = this.apiManager.createApiDomain(
137
+ `${this.id}-api-domain`,
138
+ this,
139
+ this.isProductionStage() || this.props.skipStageForARecords
140
+ ? `${this.props.apiSubDomain}.${this.fullyQualifiedDomainName}`
141
+ : `${this.props.apiSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`,
142
+ this.apiToLambdaTargetRestApi.certificate
143
+ )
144
+ }
145
+
146
+ /**
147
+ * @summary Method to create base path mappings for GraphQL API
148
+ * @protected
149
+ */
150
+ protected createApiBasePathMapping() {
151
+ const apiRootPaths = this.props.apiRootPaths
152
+ if (apiRootPaths && apiRootPaths.length > 0) {
153
+ apiRootPaths.forEach((apiRootPath: string) => {
154
+ this.apiToLambdaTargetRestApi.basePathMappings.push(
155
+ new apig.BasePathMapping(this, `${this.id}-base-bath-mapping-${apiRootPath}`, {
156
+ basePath: apiRootPath,
157
+ domainName: this.apiToLambdaTargetRestApi.domain,
158
+ restApi: this.apiToLambdaTargetRestApi.api,
159
+ stage: this.apiToLambdaTargetRestApi.api.deploymentStage,
160
+ })
161
+ )
162
+ })
163
+ return
164
+ }
165
+
166
+ // add default mapping if apiRootPaths not set
167
+ new apig.BasePathMapping(this, `${this.id}-base-bath-mapping`, {
168
+ domainName: this.apiToLambdaTargetRestApi.domain,
169
+ restApi: this.apiToLambdaTargetRestApi.api,
170
+ stage: this.apiToLambdaTargetRestApi.api.deploymentStage,
171
+ })
172
+ }
173
+
174
+ /**
175
+ * @summary Method to create route53 records for Api
176
+ * @protected
177
+ */
178
+ protected createApiRouteAssets() {
179
+ if (this.props.api.useExisting) return
180
+ this.route53Manager.createApiGatewayARecord(
181
+ `${this.id}-custom-domain-a-record`,
182
+ this,
183
+ this.props.apiSubDomain,
184
+ this.apiToLambdaTargetRestApi.domain,
185
+ this.apiToLambdaTargetRestApi.hostedZone,
186
+ this.props.skipStageForARecords
187
+ )
188
+ }
189
+ }
@@ -0,0 +1,33 @@
1
+ import * as apig from 'aws-cdk-lib/aws-apigateway'
2
+ import * as acm from 'aws-cdk-lib/aws-certificatemanager'
3
+ import * as iam from 'aws-cdk-lib/aws-iam'
4
+ import * as route53 from 'aws-cdk-lib/aws-route53'
5
+ import * as sns from 'aws-cdk-lib/aws-sns'
6
+ import * as types from '../types/aws'
7
+
8
+ /**
9
+ * @stability stable
10
+ * @category cdk-utils.api-to-lambda-target
11
+ * @subcategory member
12
+ * @classdesc Provides a construct to contain api resources for ApiToLambdaTarget
13
+ */
14
+ export class ApiToLambdaTargetRestApi implements types.ApiToLambdaTargetRestApiType {
15
+ api: apig.RestApi
16
+ basePathMappings: apig.BasePathMapping[] = []
17
+ certificate: acm.ICertificate
18
+ domain: apig.DomainName
19
+ errorResponseModel: apig.Model
20
+ hostedZone: route53.IHostedZone
21
+ integration: apig.Integration
22
+ integrationErrorResponse: apig.IntegrationResponse
23
+ integrationRequestParameters: { [p: string]: string }
24
+ integrationRequestTemplates: { [p: string]: string }
25
+ integrationResponse: apig.IntegrationResponse
26
+ method: apig.Method
27
+ methodErrorResponse: apig.MethodResponse
28
+ methodResponse: apig.MethodResponse
29
+ resource: apig.Resource
30
+ responseModel: apig.Model
31
+ topic: sns.Topic
32
+ role: iam.Role
33
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './api-to-eventbridge-target-event'
2
2
  export * from './api-to-eventbridge-target-rest-api'
3
+ export * from './api-to-lambda-target-rest-api'
@@ -37,7 +37,7 @@ export class ApiManager {
37
37
  id: string,
38
38
  scope: common.CommonConstruct,
39
39
  props: apig.LambdaRestApiProps,
40
- lambdaFunction: lambda.Function
40
+ lambdaFunction: lambda.IFunction
41
41
  ) {
42
42
  const api = new apig.LambdaRestApi(scope, `${id}`, {
43
43
  binaryMediaTypes: props.binaryMediaTypes,
@@ -288,6 +288,33 @@ export interface ApiToEventBridgeTargetRestApiType {
288
288
  policy?: iam.PolicyDocument
289
289
  }
290
290
 
291
+ /**
292
+ * @category cdk-utils.api-to-lambda-target
293
+ * @subcategory Types
294
+ */
295
+ export interface ApiToLambdaTargetRestApiType {
296
+ api: apig.IRestApi
297
+ authoriser?: apig.IAuthorizer
298
+ basePathMappings: apig.BasePathMapping[]
299
+ certificate: acm.ICertificate
300
+ domain: apig.DomainName
301
+ errorResponseModel: apig.Model
302
+ hostedZone: route53.IHostedZone
303
+ integration: apig.Integration
304
+ integrationErrorResponse: apig.IntegrationResponse
305
+ integrationRequestParameters: { [p: string]: string }
306
+ integrationRequestTemplates: { [p: string]: string }
307
+ integrationResponse: apig.IntegrationResponse
308
+ method: apig.Method
309
+ methodErrorResponse: apig.MethodResponse
310
+ methodResponse: apig.MethodResponse
311
+ resource: apig.Resource
312
+ responseModel: apig.Model
313
+ topic?: sns.ITopic
314
+ role?: iam.Role
315
+ policy?: iam.PolicyDocument
316
+ }
317
+
291
318
  /**
292
319
  * @category cdk-utils.api-to-eventbridge-target
293
320
  * @subcategory Types
@@ -366,6 +393,33 @@ export interface ApiToEventBridgeTargetProps extends CommonStackProps {
366
393
  useExistingHostedZone: boolean
367
394
  }
368
395
 
396
+ /**
397
+ * @category cdk-utils.api-to-lambda-target
398
+ * @subcategory Properties
399
+ */
400
+ export interface ApiToLambdaTargetRestApiProps {
401
+ certificate: AcmProps
402
+ restApi: apig.LambdaRestApiProps
403
+ importedRestApiRef?: string
404
+ importedRestApiRootResourceRef?: string
405
+ useExisting: boolean
406
+ }
407
+
408
+ /**
409
+ * @category cdk-utils.api-to-lambda-target
410
+ * @subcategory Properties
411
+ */
412
+ export interface ApiToLambdaTargetProps extends CommonStackProps {
413
+ apiRootPaths?: string[]
414
+ apiSubDomain: string
415
+ api: ApiToLambdaTargetRestApiProps
416
+ lambdaFunctionName: string
417
+ logLevel: string
418
+ nodeEnv: string
419
+ timezone: string
420
+ useExistingHostedZone: boolean
421
+ }
422
+
369
423
  /**
370
424
  * @category cdk-utils.acm-manager
371
425
  * @subcategory Properties
@@ -1 +0,0 @@
1
- !function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((r="undefined"!=typeof globalThis?globalThis:r||self).uuid={})}(this,(function(r){"use strict";var e,n=new Uint8Array(16);function t(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(n)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function a(r){return"string"==typeof r&&o.test(r)}for(var i,u,f=[],s=0;s<256;++s)f.push((s+256).toString(16).substr(1));function c(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(f[r[e+0]]+f[r[e+1]]+f[r[e+2]]+f[r[e+3]]+"-"+f[r[e+4]]+f[r[e+5]]+"-"+f[r[e+6]]+f[r[e+7]]+"-"+f[r[e+8]]+f[r[e+9]]+"-"+f[r[e+10]]+f[r[e+11]]+f[r[e+12]]+f[r[e+13]]+f[r[e+14]]+f[r[e+15]]).toLowerCase();if(!a(n))throw TypeError("Stringified UUID is invalid");return n}var l=0,d=0;function v(r){if(!a(r))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(r.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(r.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(r.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(r.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}function p(r,e,n){function t(r,t,o,a){if("string"==typeof r&&(r=function(r){r=unescape(encodeURIComponent(r));for(var e=[],n=0;n<r.length;++n)e.push(r.charCodeAt(n));return e}(r)),"string"==typeof t&&(t=v(t)),16!==t.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+r.length);if(i.set(t),i.set(r,t.length),(i=n(i))[6]=15&i[6]|e,i[8]=63&i[8]|128,o){a=a||0;for(var u=0;u<16;++u)o[a+u]=i[u];return o}return c(i)}try{t.name=r}catch(r){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function h(r){return 14+(r+64>>>9<<4)+1}function y(r,e){var n=(65535&r)+(65535&e);return(r>>16)+(e>>16)+(n>>16)<<16|65535&n}function g(r,e,n,t,o,a){return y((i=y(y(e,r),y(t,a)))<<(u=o)|i>>>32-u,n);var i,u}function m(r,e,n,t,o,a,i){return g(e&n|~e&t,r,e,o,a,i)}function w(r,e,n,t,o,a,i){return g(e&t|n&~t,r,e,o,a,i)}function b(r,e,n,t,o,a,i){return g(e^n^t,r,e,o,a,i)}function A(r,e,n,t,o,a,i){return g(n^(e|~t),r,e,o,a,i)}var U=p("v3",48,(function(r){if("string"==typeof r){var e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(var n=0;n<e.length;++n)r[n]=e.charCodeAt(n)}return function(r){for(var e=[],n=32*r.length,t="0123456789abcdef",o=0;o<n;o+=8){var a=r[o>>5]>>>o%32&255,i=parseInt(t.charAt(a>>>4&15)+t.charAt(15&a),16);e.push(i)}return e}(function(r,e){r[e>>5]|=128<<e%32,r[h(e)-1]=e;for(var n=1732584193,t=-271733879,o=-1732584194,a=271733878,i=0;i<r.length;i+=16){var u=n,f=t,s=o,c=a;n=m(n,t,o,a,r[i],7,-680876936),a=m(a,n,t,o,r[i+1],12,-389564586),o=m(o,a,n,t,r[i+2],17,606105819),t=m(t,o,a,n,r[i+3],22,-1044525330),n=m(n,t,o,a,r[i+4],7,-176418897),a=m(a,n,t,o,r[i+5],12,1200080426),o=m(o,a,n,t,r[i+6],17,-1473231341),t=m(t,o,a,n,r[i+7],22,-45705983),n=m(n,t,o,a,r[i+8],7,1770035416),a=m(a,n,t,o,r[i+9],12,-1958414417),o=m(o,a,n,t,r[i+10],17,-42063),t=m(t,o,a,n,r[i+11],22,-1990404162),n=m(n,t,o,a,r[i+12],7,1804603682),a=m(a,n,t,o,r[i+13],12,-40341101),o=m(o,a,n,t,r[i+14],17,-1502002290),n=w(n,t=m(t,o,a,n,r[i+15],22,1236535329),o,a,r[i+1],5,-165796510),a=w(a,n,t,o,r[i+6],9,-1069501632),o=w(o,a,n,t,r[i+11],14,643717713),t=w(t,o,a,n,r[i],20,-373897302),n=w(n,t,o,a,r[i+5],5,-701558691),a=w(a,n,t,o,r[i+10],9,38016083),o=w(o,a,n,t,r[i+15],14,-660478335),t=w(t,o,a,n,r[i+4],20,-405537848),n=w(n,t,o,a,r[i+9],5,568446438),a=w(a,n,t,o,r[i+14],9,-1019803690),o=w(o,a,n,t,r[i+3],14,-187363961),t=w(t,o,a,n,r[i+8],20,1163531501),n=w(n,t,o,a,r[i+13],5,-1444681467),a=w(a,n,t,o,r[i+2],9,-51403784),o=w(o,a,n,t,r[i+7],14,1735328473),n=b(n,t=w(t,o,a,n,r[i+12],20,-1926607734),o,a,r[i+5],4,-378558),a=b(a,n,t,o,r[i+8],11,-2022574463),o=b(o,a,n,t,r[i+11],16,1839030562),t=b(t,o,a,n,r[i+14],23,-35309556),n=b(n,t,o,a,r[i+1],4,-1530992060),a=b(a,n,t,o,r[i+4],11,1272893353),o=b(o,a,n,t,r[i+7],16,-155497632),t=b(t,o,a,n,r[i+10],23,-1094730640),n=b(n,t,o,a,r[i+13],4,681279174),a=b(a,n,t,o,r[i],11,-358537222),o=b(o,a,n,t,r[i+3],16,-722521979),t=b(t,o,a,n,r[i+6],23,76029189),n=b(n,t,o,a,r[i+9],4,-640364487),a=b(a,n,t,o,r[i+12],11,-421815835),o=b(o,a,n,t,r[i+15],16,530742520),n=A(n,t=b(t,o,a,n,r[i+2],23,-995338651),o,a,r[i],6,-198630844),a=A(a,n,t,o,r[i+7],10,1126891415),o=A(o,a,n,t,r[i+14],15,-1416354905),t=A(t,o,a,n,r[i+5],21,-57434055),n=A(n,t,o,a,r[i+12],6,1700485571),a=A(a,n,t,o,r[i+3],10,-1894986606),o=A(o,a,n,t,r[i+10],15,-1051523),t=A(t,o,a,n,r[i+1],21,-2054922799),n=A(n,t,o,a,r[i+8],6,1873313359),a=A(a,n,t,o,r[i+15],10,-30611744),o=A(o,a,n,t,r[i+6],15,-1560198380),t=A(t,o,a,n,r[i+13],21,1309151649),n=A(n,t,o,a,r[i+4],6,-145523070),a=A(a,n,t,o,r[i+11],10,-1120210379),o=A(o,a,n,t,r[i+2],15,718787259),t=A(t,o,a,n,r[i+9],21,-343485551),n=y(n,u),t=y(t,f),o=y(o,s),a=y(a,c)}return[n,t,o,a]}(function(r){if(0===r.length)return[];for(var e=8*r.length,n=new Uint32Array(h(e)),t=0;t<e;t+=8)n[t>>5]|=(255&r[t/8])<<t%32;return n}(r),8*r.length))}));function I(r,e,n,t){switch(r){case 0:return e&n^~e&t;case 1:return e^n^t;case 2:return e&n^e&t^n&t;case 3:return e^n^t}}function C(r,e){return r<<e|r>>>32-e}var R=p("v5",80,(function(r){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var t=unescape(encodeURIComponent(r));r=[];for(var o=0;o<t.length;++o)r.push(t.charCodeAt(o))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);for(var a=r.length/4+2,i=Math.ceil(a/16),u=new Array(i),f=0;f<i;++f){for(var s=new Uint32Array(16),c=0;c<16;++c)s[c]=r[64*f+4*c]<<24|r[64*f+4*c+1]<<16|r[64*f+4*c+2]<<8|r[64*f+4*c+3];u[f]=s}u[i-1][14]=8*(r.length-1)/Math.pow(2,32),u[i-1][14]=Math.floor(u[i-1][14]),u[i-1][15]=8*(r.length-1)&4294967295;for(var l=0;l<i;++l){for(var d=new Uint32Array(80),v=0;v<16;++v)d[v]=u[l][v];for(var p=16;p<80;++p)d[p]=C(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var h=n[0],y=n[1],g=n[2],m=n[3],w=n[4],b=0;b<80;++b){var A=Math.floor(b/20),U=C(h,5)+I(A,y,g,m)+w+e[A]+d[b]>>>0;w=m,m=g,g=C(y,30)>>>0,y=h,h=U}n[0]=n[0]+h>>>0,n[1]=n[1]+y>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+m>>>0,n[4]=n[4]+w>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));r.NIL="00000000-0000-0000-0000-000000000000",r.parse=v,r.stringify=c,r.v1=function(r,e,n){var o=e&&n||0,a=e||new Array(16),f=(r=r||{}).node||i,s=void 0!==r.clockseq?r.clockseq:u;if(null==f||null==s){var v=r.random||(r.rng||t)();null==f&&(f=i=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==s&&(s=u=16383&(v[6]<<8|v[7]))}var p=void 0!==r.msecs?r.msecs:Date.now(),h=void 0!==r.nsecs?r.nsecs:d+1,y=p-l+(h-d)/1e4;if(y<0&&void 0===r.clockseq&&(s=s+1&16383),(y<0||p>l)&&void 0===r.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,d=h,u=s;var g=(1e4*(268435455&(p+=122192928e5))+h)%4294967296;a[o++]=g>>>24&255,a[o++]=g>>>16&255,a[o++]=g>>>8&255,a[o++]=255&g;var m=p/4294967296*1e4&268435455;a[o++]=m>>>8&255,a[o++]=255&m,a[o++]=m>>>24&15|16,a[o++]=m>>>16&255,a[o++]=s>>>8|128,a[o++]=255&s;for(var w=0;w<6;++w)a[o+w]=f[w];return e||c(a)},r.v3=U,r.v4=function(r,e,n){var o=(r=r||{}).random||(r.rng||t)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(var a=0;a<16;++a)e[n+a]=o[a];return e}return c(o)},r.v5=R,r.validate=a,r.version=function(r){if(!a(r))throw TypeError("Invalid UUID");return parseInt(r.substr(14,1),16)},Object.defineProperty(r,"__esModule",{value:!0})}));
@@ -1 +0,0 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidNIL=n()}(this,(function(){"use strict";return"00000000-0000-0000-0000-000000000000"}));
@@ -1 +0,0 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidParse=n()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(n){if(!function(n){return"string"==typeof n&&e.test(n)}(n))throw TypeError("Invalid UUID");var t,i=new Uint8Array(16);return i[0]=(t=parseInt(n.slice(0,8),16))>>>24,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i[4]=(t=parseInt(n.slice(9,13),16))>>>8,i[5]=255&t,i[6]=(t=parseInt(n.slice(14,18),16))>>>8,i[7]=255&t,i[8]=(t=parseInt(n.slice(19,23),16))>>>8,i[9]=255&t,i[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,i[11]=t/4294967296&255,i[12]=t>>>24&255,i[13]=t>>>16&255,i[14]=t>>>8&255,i[15]=255&t,i}}));
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidStringify=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function t(t){return"string"==typeof t&&e.test(t)}for(var i=[],n=0;n<256;++n)i.push((n+256).toString(16).substr(1));return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,f=(i[e[n+0]]+i[e[n+1]]+i[e[n+2]]+i[e[n+3]]+"-"+i[e[n+4]]+i[e[n+5]]+"-"+i[e[n+6]]+i[e[n+7]]+"-"+i[e[n+8]]+i[e[n+9]]+"-"+i[e[n+10]]+i[e[n+11]]+i[e[n+12]]+i[e[n+13]]+i[e[n+14]]+i[e[n+15]]).toLowerCase();if(!t(f))throw TypeError("Stringified UUID is invalid");return f}}));
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidValidate=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(t){return"string"==typeof t&&e.test(t)}}));
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidVersion=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(t){if(!function(t){return"string"==typeof t&&e.test(t)}(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}}));
@@ -1 +0,0 @@
1
- !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidv1=o()}(this,(function(){"use strict";var e,o=new Uint8Array(16);function t(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(o)}var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function r(e){return"string"==typeof e&&n.test(e)}for(var i,u,s=[],a=0;a<256;++a)s.push((a+256).toString(16).substr(1));var d=0,f=0;return function(e,o,n){var a=o&&n||0,c=o||new Array(16),l=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:u;if(null==l||null==p){var v=e.random||(e.rng||t)();null==l&&(l=i=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==p&&(p=u=16383&(v[6]<<8|v[7]))}var y=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:f+1,g=y-d+(m-f)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||y>d)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=y,f=m,u=p;var h=(1e4*(268435455&(y+=122192928e5))+m)%4294967296;c[a++]=h>>>24&255,c[a++]=h>>>16&255,c[a++]=h>>>8&255,c[a++]=255&h;var w=y/4294967296*1e4&268435455;c[a++]=w>>>8&255,c[a++]=255&w,c[a++]=w>>>24&15|16,c[a++]=w>>>16&255,c[a++]=p>>>8|128,c[a++]=255&p;for(var b=0;b<6;++b)c[a+b]=l[b];return o||function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(s[e[o+0]]+s[e[o+1]]+s[e[o+2]]+s[e[o+3]]+"-"+s[e[o+4]]+s[e[o+5]]+"-"+s[e[o+6]]+s[e[o+7]]+"-"+s[e[o+8]]+s[e[o+9]]+"-"+s[e[o+10]]+s[e[o+11]]+s[e[o+12]]+s[e[o+13]]+s[e[o+14]]+s[e[o+15]]).toLowerCase();if(!r(t))throw TypeError("Stringified UUID is invalid");return t}(c)}}));
@@ -1 +0,0 @@
1
- !function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).uuidv3=r()}(this,(function(){"use strict";var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function r(r){return"string"==typeof r&&n.test(r)}for(var e=[],t=0;t<256;++t)e.push((t+256).toString(16).substr(1));function i(n){return 14+(n+64>>>9<<4)+1}function o(n,r){var e=(65535&n)+(65535&r);return(n>>16)+(r>>16)+(e>>16)<<16|65535&e}function a(n,r,e,t,i,a){return o((f=o(o(r,n),o(t,a)))<<(u=i)|f>>>32-u,e);var f,u}function f(n,r,e,t,i,o,f){return a(r&e|~r&t,n,r,i,o,f)}function u(n,r,e,t,i,o,f){return a(r&t|e&~t,n,r,i,o,f)}function c(n,r,e,t,i,o,f){return a(r^e^t,n,r,i,o,f)}function s(n,r,e,t,i,o,f){return a(e^(r|~t),n,r,i,o,f)}return function(n,t,i){function o(n,o,a,f){if("string"==typeof n&&(n=function(n){n=unescape(encodeURIComponent(n));for(var r=[],e=0;e<n.length;++e)r.push(n.charCodeAt(e));return r}(n)),"string"==typeof o&&(o=function(n){if(!r(n))throw TypeError("Invalid UUID");var e,t=new Uint8Array(16);return t[0]=(e=parseInt(n.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=255&e,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=255&e,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=255&e,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=255&e,t[10]=(e=parseInt(n.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=255&e,t}(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+n.length);if(u.set(o),u.set(n,o.length),(u=i(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,a){f=f||0;for(var c=0;c<16;++c)a[f+c]=u[c];return a}return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(e[n[t+0]]+e[n[t+1]]+e[n[t+2]]+e[n[t+3]]+"-"+e[n[t+4]]+e[n[t+5]]+"-"+e[n[t+6]]+e[n[t+7]]+"-"+e[n[t+8]]+e[n[t+9]]+"-"+e[n[t+10]]+e[n[t+11]]+e[n[t+12]]+e[n[t+13]]+e[n[t+14]]+e[n[t+15]]).toLowerCase();if(!r(i))throw TypeError("Stringified UUID is invalid");return i}(u)}try{o.name=n}catch(n){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}("v3",48,(function(n){if("string"==typeof n){var r=unescape(encodeURIComponent(n));n=new Uint8Array(r.length);for(var e=0;e<r.length;++e)n[e]=r.charCodeAt(e)}return function(n){for(var r=[],e=32*n.length,t="0123456789abcdef",i=0;i<e;i+=8){var o=n[i>>5]>>>i%32&255,a=parseInt(t.charAt(o>>>4&15)+t.charAt(15&o),16);r.push(a)}return r}(function(n,r){n[r>>5]|=128<<r%32,n[i(r)-1]=r;for(var e=1732584193,t=-271733879,a=-1732584194,l=271733878,d=0;d<n.length;d+=16){var p=e,h=t,v=a,g=l;e=f(e,t,a,l,n[d],7,-680876936),l=f(l,e,t,a,n[d+1],12,-389564586),a=f(a,l,e,t,n[d+2],17,606105819),t=f(t,a,l,e,n[d+3],22,-1044525330),e=f(e,t,a,l,n[d+4],7,-176418897),l=f(l,e,t,a,n[d+5],12,1200080426),a=f(a,l,e,t,n[d+6],17,-1473231341),t=f(t,a,l,e,n[d+7],22,-45705983),e=f(e,t,a,l,n[d+8],7,1770035416),l=f(l,e,t,a,n[d+9],12,-1958414417),a=f(a,l,e,t,n[d+10],17,-42063),t=f(t,a,l,e,n[d+11],22,-1990404162),e=f(e,t,a,l,n[d+12],7,1804603682),l=f(l,e,t,a,n[d+13],12,-40341101),a=f(a,l,e,t,n[d+14],17,-1502002290),e=u(e,t=f(t,a,l,e,n[d+15],22,1236535329),a,l,n[d+1],5,-165796510),l=u(l,e,t,a,n[d+6],9,-1069501632),a=u(a,l,e,t,n[d+11],14,643717713),t=u(t,a,l,e,n[d],20,-373897302),e=u(e,t,a,l,n[d+5],5,-701558691),l=u(l,e,t,a,n[d+10],9,38016083),a=u(a,l,e,t,n[d+15],14,-660478335),t=u(t,a,l,e,n[d+4],20,-405537848),e=u(e,t,a,l,n[d+9],5,568446438),l=u(l,e,t,a,n[d+14],9,-1019803690),a=u(a,l,e,t,n[d+3],14,-187363961),t=u(t,a,l,e,n[d+8],20,1163531501),e=u(e,t,a,l,n[d+13],5,-1444681467),l=u(l,e,t,a,n[d+2],9,-51403784),a=u(a,l,e,t,n[d+7],14,1735328473),e=c(e,t=u(t,a,l,e,n[d+12],20,-1926607734),a,l,n[d+5],4,-378558),l=c(l,e,t,a,n[d+8],11,-2022574463),a=c(a,l,e,t,n[d+11],16,1839030562),t=c(t,a,l,e,n[d+14],23,-35309556),e=c(e,t,a,l,n[d+1],4,-1530992060),l=c(l,e,t,a,n[d+4],11,1272893353),a=c(a,l,e,t,n[d+7],16,-155497632),t=c(t,a,l,e,n[d+10],23,-1094730640),e=c(e,t,a,l,n[d+13],4,681279174),l=c(l,e,t,a,n[d],11,-358537222),a=c(a,l,e,t,n[d+3],16,-722521979),t=c(t,a,l,e,n[d+6],23,76029189),e=c(e,t,a,l,n[d+9],4,-640364487),l=c(l,e,t,a,n[d+12],11,-421815835),a=c(a,l,e,t,n[d+15],16,530742520),e=s(e,t=c(t,a,l,e,n[d+2],23,-995338651),a,l,n[d],6,-198630844),l=s(l,e,t,a,n[d+7],10,1126891415),a=s(a,l,e,t,n[d+14],15,-1416354905),t=s(t,a,l,e,n[d+5],21,-57434055),e=s(e,t,a,l,n[d+12],6,1700485571),l=s(l,e,t,a,n[d+3],10,-1894986606),a=s(a,l,e,t,n[d+10],15,-1051523),t=s(t,a,l,e,n[d+1],21,-2054922799),e=s(e,t,a,l,n[d+8],6,1873313359),l=s(l,e,t,a,n[d+15],10,-30611744),a=s(a,l,e,t,n[d+6],15,-1560198380),t=s(t,a,l,e,n[d+13],21,1309151649),e=s(e,t,a,l,n[d+4],6,-145523070),l=s(l,e,t,a,n[d+11],10,-1120210379),a=s(a,l,e,t,n[d+2],15,718787259),t=s(t,a,l,e,n[d+9],21,-343485551),e=o(e,p),t=o(t,h),a=o(a,v),l=o(l,g)}return[e,t,a,l]}(function(n){if(0===n.length)return[];for(var r=8*n.length,e=new Uint32Array(i(r)),t=0;t<r;t+=8)e[t>>5]|=(255&n[t/8])<<t%32;return e}(n),8*n.length))}))}));
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).uuidv4=e()}(this,(function(){"use strict";var t,e=new Uint8Array(16);function o(){if(!t&&!(t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(e)}var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function r(t){return"string"==typeof t&&n.test(t)}for(var i=[],u=0;u<256;++u)i.push((u+256).toString(16).substr(1));return function(t,e,n){var u=(t=t||{}).random||(t.rng||o)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,e){n=n||0;for(var f=0;f<16;++f)e[n+f]=u[f];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]).toLowerCase();if(!r(o))throw TypeError("Stringified UUID is invalid");return o}(u)}}));
@@ -1 +0,0 @@
1
- !function(r,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(r="undefined"!=typeof globalThis?globalThis:r||self).uuidv5=e()}(this,(function(){"use strict";var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function e(e){return"string"==typeof e&&r.test(e)}for(var t=[],n=0;n<256;++n)t.push((n+256).toString(16).substr(1));function a(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function o(r,e){return r<<e|r>>>32-e}return function(r,n,a){function o(r,o,i,f){if("string"==typeof r&&(r=function(r){r=unescape(encodeURIComponent(r));for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}(r)),"string"==typeof o&&(o=function(r){if(!e(r))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(r.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(r.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(r.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(r.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(r.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+r.length);if(s.set(o),s.set(r,o.length),(s=a(s))[6]=15&s[6]|n,s[8]=63&s[8]|128,i){f=f||0;for(var u=0;u<16;++u)i[f+u]=s[u];return i}return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(t[r[n+0]]+t[r[n+1]]+t[r[n+2]]+t[r[n+3]]+"-"+t[r[n+4]]+t[r[n+5]]+"-"+t[r[n+6]]+t[r[n+7]]+"-"+t[r[n+8]]+t[r[n+9]]+"-"+t[r[n+10]]+t[r[n+11]]+t[r[n+12]]+t[r[n+13]]+t[r[n+14]]+t[r[n+15]]).toLowerCase();if(!e(a))throw TypeError("Stringified UUID is invalid");return a}(s)}try{o.name=r}catch(r){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}("v5",80,(function(r){var e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var n=unescape(encodeURIComponent(r));r=[];for(var i=0;i<n.length;++i)r.push(n.charCodeAt(i))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);for(var f=r.length/4+2,s=Math.ceil(f/16),u=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),p=0;p<16;++p)l[p]=r[64*c+4*p]<<24|r[64*c+4*p+1]<<16|r[64*c+4*p+2]<<8|r[64*c+4*p+3];u[c]=l}u[s-1][14]=8*(r.length-1)/Math.pow(2,32),u[s-1][14]=Math.floor(u[s-1][14]),u[s-1][15]=8*(r.length-1)&4294967295;for(var d=0;d<s;++d){for(var h=new Uint32Array(80),v=0;v<16;++v)h[v]=u[d][v];for(var y=16;y<80;++y)h[y]=o(h[y-3]^h[y-8]^h[y-14]^h[y-16],1);for(var g=t[0],b=t[1],w=t[2],U=t[3],A=t[4],I=0;I<80;++I){var m=Math.floor(I/20),C=o(g,5)+a(m,b,w,U)+A+e[m]+h[I]>>>0;A=U,U=w,w=o(b,30)>>>0,b=g,g=C}t[0]=t[0]+g>>>0,t[1]=t[1]+b>>>0,t[2]=t[2]+w>>>0,t[3]=t[3]+U>>>0,t[4]=t[4]+A>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,255&t[0],t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,255&t[1],t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,255&t[2],t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,255&t[3],t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,255&t[4]]}))}));
@@ -1 +0,0 @@
1
- !function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((r="undefined"!=typeof globalThis?globalThis:r||self).uuid={})}(this,(function(r){"use strict";var e,n=new Uint8Array(16);function t(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(n)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function a(r){return"string"==typeof r&&o.test(r)}for(var i,u,f=[],s=0;s<256;++s)f.push((s+256).toString(16).substr(1));function c(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(f[r[e+0]]+f[r[e+1]]+f[r[e+2]]+f[r[e+3]]+"-"+f[r[e+4]]+f[r[e+5]]+"-"+f[r[e+6]]+f[r[e+7]]+"-"+f[r[e+8]]+f[r[e+9]]+"-"+f[r[e+10]]+f[r[e+11]]+f[r[e+12]]+f[r[e+13]]+f[r[e+14]]+f[r[e+15]]).toLowerCase();if(!a(n))throw TypeError("Stringified UUID is invalid");return n}var l=0,d=0;function v(r){if(!a(r))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(r.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(r.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(r.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(r.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}function p(r,e,n){function t(r,t,o,a){if("string"==typeof r&&(r=function(r){r=unescape(encodeURIComponent(r));for(var e=[],n=0;n<r.length;++n)e.push(r.charCodeAt(n));return e}(r)),"string"==typeof t&&(t=v(t)),16!==t.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+r.length);if(i.set(t),i.set(r,t.length),(i=n(i))[6]=15&i[6]|e,i[8]=63&i[8]|128,o){a=a||0;for(var u=0;u<16;++u)o[a+u]=i[u];return o}return c(i)}try{t.name=r}catch(r){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function h(r){return 14+(r+64>>>9<<4)+1}function y(r,e){var n=(65535&r)+(65535&e);return(r>>16)+(e>>16)+(n>>16)<<16|65535&n}function g(r,e,n,t,o,a){return y((i=y(y(e,r),y(t,a)))<<(u=o)|i>>>32-u,n);var i,u}function m(r,e,n,t,o,a,i){return g(e&n|~e&t,r,e,o,a,i)}function w(r,e,n,t,o,a,i){return g(e&t|n&~t,r,e,o,a,i)}function b(r,e,n,t,o,a,i){return g(e^n^t,r,e,o,a,i)}function A(r,e,n,t,o,a,i){return g(n^(e|~t),r,e,o,a,i)}var U=p("v3",48,(function(r){if("string"==typeof r){var e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(var n=0;n<e.length;++n)r[n]=e.charCodeAt(n)}return function(r){for(var e=[],n=32*r.length,t="0123456789abcdef",o=0;o<n;o+=8){var a=r[o>>5]>>>o%32&255,i=parseInt(t.charAt(a>>>4&15)+t.charAt(15&a),16);e.push(i)}return e}(function(r,e){r[e>>5]|=128<<e%32,r[h(e)-1]=e;for(var n=1732584193,t=-271733879,o=-1732584194,a=271733878,i=0;i<r.length;i+=16){var u=n,f=t,s=o,c=a;n=m(n,t,o,a,r[i],7,-680876936),a=m(a,n,t,o,r[i+1],12,-389564586),o=m(o,a,n,t,r[i+2],17,606105819),t=m(t,o,a,n,r[i+3],22,-1044525330),n=m(n,t,o,a,r[i+4],7,-176418897),a=m(a,n,t,o,r[i+5],12,1200080426),o=m(o,a,n,t,r[i+6],17,-1473231341),t=m(t,o,a,n,r[i+7],22,-45705983),n=m(n,t,o,a,r[i+8],7,1770035416),a=m(a,n,t,o,r[i+9],12,-1958414417),o=m(o,a,n,t,r[i+10],17,-42063),t=m(t,o,a,n,r[i+11],22,-1990404162),n=m(n,t,o,a,r[i+12],7,1804603682),a=m(a,n,t,o,r[i+13],12,-40341101),o=m(o,a,n,t,r[i+14],17,-1502002290),n=w(n,t=m(t,o,a,n,r[i+15],22,1236535329),o,a,r[i+1],5,-165796510),a=w(a,n,t,o,r[i+6],9,-1069501632),o=w(o,a,n,t,r[i+11],14,643717713),t=w(t,o,a,n,r[i],20,-373897302),n=w(n,t,o,a,r[i+5],5,-701558691),a=w(a,n,t,o,r[i+10],9,38016083),o=w(o,a,n,t,r[i+15],14,-660478335),t=w(t,o,a,n,r[i+4],20,-405537848),n=w(n,t,o,a,r[i+9],5,568446438),a=w(a,n,t,o,r[i+14],9,-1019803690),o=w(o,a,n,t,r[i+3],14,-187363961),t=w(t,o,a,n,r[i+8],20,1163531501),n=w(n,t,o,a,r[i+13],5,-1444681467),a=w(a,n,t,o,r[i+2],9,-51403784),o=w(o,a,n,t,r[i+7],14,1735328473),n=b(n,t=w(t,o,a,n,r[i+12],20,-1926607734),o,a,r[i+5],4,-378558),a=b(a,n,t,o,r[i+8],11,-2022574463),o=b(o,a,n,t,r[i+11],16,1839030562),t=b(t,o,a,n,r[i+14],23,-35309556),n=b(n,t,o,a,r[i+1],4,-1530992060),a=b(a,n,t,o,r[i+4],11,1272893353),o=b(o,a,n,t,r[i+7],16,-155497632),t=b(t,o,a,n,r[i+10],23,-1094730640),n=b(n,t,o,a,r[i+13],4,681279174),a=b(a,n,t,o,r[i],11,-358537222),o=b(o,a,n,t,r[i+3],16,-722521979),t=b(t,o,a,n,r[i+6],23,76029189),n=b(n,t,o,a,r[i+9],4,-640364487),a=b(a,n,t,o,r[i+12],11,-421815835),o=b(o,a,n,t,r[i+15],16,530742520),n=A(n,t=b(t,o,a,n,r[i+2],23,-995338651),o,a,r[i],6,-198630844),a=A(a,n,t,o,r[i+7],10,1126891415),o=A(o,a,n,t,r[i+14],15,-1416354905),t=A(t,o,a,n,r[i+5],21,-57434055),n=A(n,t,o,a,r[i+12],6,1700485571),a=A(a,n,t,o,r[i+3],10,-1894986606),o=A(o,a,n,t,r[i+10],15,-1051523),t=A(t,o,a,n,r[i+1],21,-2054922799),n=A(n,t,o,a,r[i+8],6,1873313359),a=A(a,n,t,o,r[i+15],10,-30611744),o=A(o,a,n,t,r[i+6],15,-1560198380),t=A(t,o,a,n,r[i+13],21,1309151649),n=A(n,t,o,a,r[i+4],6,-145523070),a=A(a,n,t,o,r[i+11],10,-1120210379),o=A(o,a,n,t,r[i+2],15,718787259),t=A(t,o,a,n,r[i+9],21,-343485551),n=y(n,u),t=y(t,f),o=y(o,s),a=y(a,c)}return[n,t,o,a]}(function(r){if(0===r.length)return[];for(var e=8*r.length,n=new Uint32Array(h(e)),t=0;t<e;t+=8)n[t>>5]|=(255&r[t/8])<<t%32;return n}(r),8*r.length))}));function I(r,e,n,t){switch(r){case 0:return e&n^~e&t;case 1:return e^n^t;case 2:return e&n^e&t^n&t;case 3:return e^n^t}}function C(r,e){return r<<e|r>>>32-e}var R=p("v5",80,(function(r){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var t=unescape(encodeURIComponent(r));r=[];for(var o=0;o<t.length;++o)r.push(t.charCodeAt(o))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);for(var a=r.length/4+2,i=Math.ceil(a/16),u=new Array(i),f=0;f<i;++f){for(var s=new Uint32Array(16),c=0;c<16;++c)s[c]=r[64*f+4*c]<<24|r[64*f+4*c+1]<<16|r[64*f+4*c+2]<<8|r[64*f+4*c+3];u[f]=s}u[i-1][14]=8*(r.length-1)/Math.pow(2,32),u[i-1][14]=Math.floor(u[i-1][14]),u[i-1][15]=8*(r.length-1)&4294967295;for(var l=0;l<i;++l){for(var d=new Uint32Array(80),v=0;v<16;++v)d[v]=u[l][v];for(var p=16;p<80;++p)d[p]=C(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var h=n[0],y=n[1],g=n[2],m=n[3],w=n[4],b=0;b<80;++b){var A=Math.floor(b/20),U=C(h,5)+I(A,y,g,m)+w+e[A]+d[b]>>>0;w=m,m=g,g=C(y,30)>>>0,y=h,h=U}n[0]=n[0]+h>>>0,n[1]=n[1]+y>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+m>>>0,n[4]=n[4]+w>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));r.NIL="00000000-0000-0000-0000-000000000000",r.parse=v,r.stringify=c,r.v1=function(r,e,n){var o=e&&n||0,a=e||new Array(16),f=(r=r||{}).node||i,s=void 0!==r.clockseq?r.clockseq:u;if(null==f||null==s){var v=r.random||(r.rng||t)();null==f&&(f=i=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==s&&(s=u=16383&(v[6]<<8|v[7]))}var p=void 0!==r.msecs?r.msecs:Date.now(),h=void 0!==r.nsecs?r.nsecs:d+1,y=p-l+(h-d)/1e4;if(y<0&&void 0===r.clockseq&&(s=s+1&16383),(y<0||p>l)&&void 0===r.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,d=h,u=s;var g=(1e4*(268435455&(p+=122192928e5))+h)%4294967296;a[o++]=g>>>24&255,a[o++]=g>>>16&255,a[o++]=g>>>8&255,a[o++]=255&g;var m=p/4294967296*1e4&268435455;a[o++]=m>>>8&255,a[o++]=255&m,a[o++]=m>>>24&15|16,a[o++]=m>>>16&255,a[o++]=s>>>8|128,a[o++]=255&s;for(var w=0;w<6;++w)a[o+w]=f[w];return e||c(a)},r.v3=U,r.v4=function(r,e,n){var o=(r=r||{}).random||(r.rng||t)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(var a=0;a<16;++a)e[n+a]=o[a];return e}return c(o)},r.v5=R,r.validate=a,r.version=function(r){if(!a(r))throw TypeError("Invalid UUID");return parseInt(r.substr(14,1),16)},Object.defineProperty(r,"__esModule",{value:!0})}));
@@ -1 +0,0 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidNIL=n()}(this,(function(){"use strict";return"00000000-0000-0000-0000-000000000000"}));
@@ -1 +0,0 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidParse=n()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(n){if(!function(n){return"string"==typeof n&&e.test(n)}(n))throw TypeError("Invalid UUID");var t,i=new Uint8Array(16);return i[0]=(t=parseInt(n.slice(0,8),16))>>>24,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i[4]=(t=parseInt(n.slice(9,13),16))>>>8,i[5]=255&t,i[6]=(t=parseInt(n.slice(14,18),16))>>>8,i[7]=255&t,i[8]=(t=parseInt(n.slice(19,23),16))>>>8,i[9]=255&t,i[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,i[11]=t/4294967296&255,i[12]=t>>>24&255,i[13]=t>>>16&255,i[14]=t>>>8&255,i[15]=255&t,i}}));
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidStringify=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function t(t){return"string"==typeof t&&e.test(t)}for(var i=[],n=0;n<256;++n)i.push((n+256).toString(16).substr(1));return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,f=(i[e[n+0]]+i[e[n+1]]+i[e[n+2]]+i[e[n+3]]+"-"+i[e[n+4]]+i[e[n+5]]+"-"+i[e[n+6]]+i[e[n+7]]+"-"+i[e[n+8]]+i[e[n+9]]+"-"+i[e[n+10]]+i[e[n+11]]+i[e[n+12]]+i[e[n+13]]+i[e[n+14]]+i[e[n+15]]).toLowerCase();if(!t(f))throw TypeError("Stringified UUID is invalid");return f}}));
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidValidate=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(t){return"string"==typeof t&&e.test(t)}}));
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidVersion=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(t){if(!function(t){return"string"==typeof t&&e.test(t)}(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}}));
@@ -1 +0,0 @@
1
- !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidv1=o()}(this,(function(){"use strict";var e,o=new Uint8Array(16);function t(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(o)}var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function r(e){return"string"==typeof e&&n.test(e)}for(var i,u,s=[],a=0;a<256;++a)s.push((a+256).toString(16).substr(1));var d=0,f=0;return function(e,o,n){var a=o&&n||0,c=o||new Array(16),l=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:u;if(null==l||null==p){var v=e.random||(e.rng||t)();null==l&&(l=i=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==p&&(p=u=16383&(v[6]<<8|v[7]))}var y=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:f+1,g=y-d+(m-f)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||y>d)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=y,f=m,u=p;var h=(1e4*(268435455&(y+=122192928e5))+m)%4294967296;c[a++]=h>>>24&255,c[a++]=h>>>16&255,c[a++]=h>>>8&255,c[a++]=255&h;var w=y/4294967296*1e4&268435455;c[a++]=w>>>8&255,c[a++]=255&w,c[a++]=w>>>24&15|16,c[a++]=w>>>16&255,c[a++]=p>>>8|128,c[a++]=255&p;for(var b=0;b<6;++b)c[a+b]=l[b];return o||function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(s[e[o+0]]+s[e[o+1]]+s[e[o+2]]+s[e[o+3]]+"-"+s[e[o+4]]+s[e[o+5]]+"-"+s[e[o+6]]+s[e[o+7]]+"-"+s[e[o+8]]+s[e[o+9]]+"-"+s[e[o+10]]+s[e[o+11]]+s[e[o+12]]+s[e[o+13]]+s[e[o+14]]+s[e[o+15]]).toLowerCase();if(!r(t))throw TypeError("Stringified UUID is invalid");return t}(c)}}));
@@ -1 +0,0 @@
1
- !function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).uuidv3=r()}(this,(function(){"use strict";var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function r(r){return"string"==typeof r&&n.test(r)}for(var e=[],t=0;t<256;++t)e.push((t+256).toString(16).substr(1));function i(n){return 14+(n+64>>>9<<4)+1}function o(n,r){var e=(65535&n)+(65535&r);return(n>>16)+(r>>16)+(e>>16)<<16|65535&e}function a(n,r,e,t,i,a){return o((f=o(o(r,n),o(t,a)))<<(u=i)|f>>>32-u,e);var f,u}function f(n,r,e,t,i,o,f){return a(r&e|~r&t,n,r,i,o,f)}function u(n,r,e,t,i,o,f){return a(r&t|e&~t,n,r,i,o,f)}function c(n,r,e,t,i,o,f){return a(r^e^t,n,r,i,o,f)}function s(n,r,e,t,i,o,f){return a(e^(r|~t),n,r,i,o,f)}return function(n,t,i){function o(n,o,a,f){if("string"==typeof n&&(n=function(n){n=unescape(encodeURIComponent(n));for(var r=[],e=0;e<n.length;++e)r.push(n.charCodeAt(e));return r}(n)),"string"==typeof o&&(o=function(n){if(!r(n))throw TypeError("Invalid UUID");var e,t=new Uint8Array(16);return t[0]=(e=parseInt(n.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=255&e,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=255&e,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=255&e,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=255&e,t[10]=(e=parseInt(n.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=255&e,t}(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+n.length);if(u.set(o),u.set(n,o.length),(u=i(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,a){f=f||0;for(var c=0;c<16;++c)a[f+c]=u[c];return a}return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(e[n[t+0]]+e[n[t+1]]+e[n[t+2]]+e[n[t+3]]+"-"+e[n[t+4]]+e[n[t+5]]+"-"+e[n[t+6]]+e[n[t+7]]+"-"+e[n[t+8]]+e[n[t+9]]+"-"+e[n[t+10]]+e[n[t+11]]+e[n[t+12]]+e[n[t+13]]+e[n[t+14]]+e[n[t+15]]).toLowerCase();if(!r(i))throw TypeError("Stringified UUID is invalid");return i}(u)}try{o.name=n}catch(n){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}("v3",48,(function(n){if("string"==typeof n){var r=unescape(encodeURIComponent(n));n=new Uint8Array(r.length);for(var e=0;e<r.length;++e)n[e]=r.charCodeAt(e)}return function(n){for(var r=[],e=32*n.length,t="0123456789abcdef",i=0;i<e;i+=8){var o=n[i>>5]>>>i%32&255,a=parseInt(t.charAt(o>>>4&15)+t.charAt(15&o),16);r.push(a)}return r}(function(n,r){n[r>>5]|=128<<r%32,n[i(r)-1]=r;for(var e=1732584193,t=-271733879,a=-1732584194,l=271733878,d=0;d<n.length;d+=16){var p=e,h=t,v=a,g=l;e=f(e,t,a,l,n[d],7,-680876936),l=f(l,e,t,a,n[d+1],12,-389564586),a=f(a,l,e,t,n[d+2],17,606105819),t=f(t,a,l,e,n[d+3],22,-1044525330),e=f(e,t,a,l,n[d+4],7,-176418897),l=f(l,e,t,a,n[d+5],12,1200080426),a=f(a,l,e,t,n[d+6],17,-1473231341),t=f(t,a,l,e,n[d+7],22,-45705983),e=f(e,t,a,l,n[d+8],7,1770035416),l=f(l,e,t,a,n[d+9],12,-1958414417),a=f(a,l,e,t,n[d+10],17,-42063),t=f(t,a,l,e,n[d+11],22,-1990404162),e=f(e,t,a,l,n[d+12],7,1804603682),l=f(l,e,t,a,n[d+13],12,-40341101),a=f(a,l,e,t,n[d+14],17,-1502002290),e=u(e,t=f(t,a,l,e,n[d+15],22,1236535329),a,l,n[d+1],5,-165796510),l=u(l,e,t,a,n[d+6],9,-1069501632),a=u(a,l,e,t,n[d+11],14,643717713),t=u(t,a,l,e,n[d],20,-373897302),e=u(e,t,a,l,n[d+5],5,-701558691),l=u(l,e,t,a,n[d+10],9,38016083),a=u(a,l,e,t,n[d+15],14,-660478335),t=u(t,a,l,e,n[d+4],20,-405537848),e=u(e,t,a,l,n[d+9],5,568446438),l=u(l,e,t,a,n[d+14],9,-1019803690),a=u(a,l,e,t,n[d+3],14,-187363961),t=u(t,a,l,e,n[d+8],20,1163531501),e=u(e,t,a,l,n[d+13],5,-1444681467),l=u(l,e,t,a,n[d+2],9,-51403784),a=u(a,l,e,t,n[d+7],14,1735328473),e=c(e,t=u(t,a,l,e,n[d+12],20,-1926607734),a,l,n[d+5],4,-378558),l=c(l,e,t,a,n[d+8],11,-2022574463),a=c(a,l,e,t,n[d+11],16,1839030562),t=c(t,a,l,e,n[d+14],23,-35309556),e=c(e,t,a,l,n[d+1],4,-1530992060),l=c(l,e,t,a,n[d+4],11,1272893353),a=c(a,l,e,t,n[d+7],16,-155497632),t=c(t,a,l,e,n[d+10],23,-1094730640),e=c(e,t,a,l,n[d+13],4,681279174),l=c(l,e,t,a,n[d],11,-358537222),a=c(a,l,e,t,n[d+3],16,-722521979),t=c(t,a,l,e,n[d+6],23,76029189),e=c(e,t,a,l,n[d+9],4,-640364487),l=c(l,e,t,a,n[d+12],11,-421815835),a=c(a,l,e,t,n[d+15],16,530742520),e=s(e,t=c(t,a,l,e,n[d+2],23,-995338651),a,l,n[d],6,-198630844),l=s(l,e,t,a,n[d+7],10,1126891415),a=s(a,l,e,t,n[d+14],15,-1416354905),t=s(t,a,l,e,n[d+5],21,-57434055),e=s(e,t,a,l,n[d+12],6,1700485571),l=s(l,e,t,a,n[d+3],10,-1894986606),a=s(a,l,e,t,n[d+10],15,-1051523),t=s(t,a,l,e,n[d+1],21,-2054922799),e=s(e,t,a,l,n[d+8],6,1873313359),l=s(l,e,t,a,n[d+15],10,-30611744),a=s(a,l,e,t,n[d+6],15,-1560198380),t=s(t,a,l,e,n[d+13],21,1309151649),e=s(e,t,a,l,n[d+4],6,-145523070),l=s(l,e,t,a,n[d+11],10,-1120210379),a=s(a,l,e,t,n[d+2],15,718787259),t=s(t,a,l,e,n[d+9],21,-343485551),e=o(e,p),t=o(t,h),a=o(a,v),l=o(l,g)}return[e,t,a,l]}(function(n){if(0===n.length)return[];for(var r=8*n.length,e=new Uint32Array(i(r)),t=0;t<r;t+=8)e[t>>5]|=(255&n[t/8])<<t%32;return e}(n),8*n.length))}))}));