@digitaldefiance/ecies-lib 4.10.8 → 4.11.1

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 (39) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
  3. package/src/enumerations/guid-brand-type.d.ts +1 -1
  4. package/src/enumerations/guid-brand-type.d.ts.map +1 -1
  5. package/src/enumerations/guid-brand-type.js +1 -1
  6. package/src/enumerations/guid-brand-type.js.map +1 -1
  7. package/src/errors/guid.d.ts +3 -3
  8. package/src/errors/guid.d.ts.map +1 -1
  9. package/src/errors/guid.js.map +1 -1
  10. package/src/examples/typed-configuration-usage.js +2 -2
  11. package/src/examples/typed-configuration-usage.js.map +1 -1
  12. package/src/index.d.ts +1 -0
  13. package/src/index.d.ts.map +1 -1
  14. package/src/index.js +1 -0
  15. package/src/index.js.map +1 -1
  16. package/src/interfaces/guid.d.ts +42 -8
  17. package/src/interfaces/guid.d.ts.map +1 -1
  18. package/src/interfaces/platform-id.d.ts +2 -2
  19. package/src/interfaces/platform-id.d.ts.map +1 -1
  20. package/src/lib/guid.d.ts +115 -77
  21. package/src/lib/guid.d.ts.map +1 -1
  22. package/src/lib/guid.js +342 -241
  23. package/src/lib/guid.js.map +1 -1
  24. package/src/lib/id-providers/guidv4-provider.d.ts +4 -3
  25. package/src/lib/id-providers/guidv4-provider.d.ts.map +1 -1
  26. package/src/lib/id-providers/guidv4-provider.js +22 -21
  27. package/src/lib/id-providers/guidv4-provider.js.map +1 -1
  28. package/src/typed-configuration.d.ts +1 -1
  29. package/src/typed-configuration.d.ts.map +1 -1
  30. package/src/types/guid-versions.d.ts +34 -0
  31. package/src/types/guid-versions.d.ts.map +1 -0
  32. package/src/types/guid-versions.js +7 -0
  33. package/src/types/guid-versions.js.map +1 -0
  34. package/src/types.d.ts +1 -1
  35. package/src/types.d.ts.map +1 -1
  36. package/src/utils.d.ts +1 -0
  37. package/src/utils.d.ts.map +1 -1
  38. package/src/utils.js +4 -0
  39. package/src/utils.js.map +1 -1
package/src/lib/guid.d.ts CHANGED
@@ -1,20 +1,21 @@
1
1
  import { GuidBrandType } from '../enumerations/guid-brand-type';
2
- import { IGuidV4 } from '../interfaces/guid';
3
- import { Base64Guid, BigIntGuid, FullHexGuid, RawGuidBuffer, ShortHexGuid } from '../types';
4
- export type GuidInput = string | FullHexGuid | ShortHexGuid | Base64Guid | BigIntGuid | RawGuidBuffer | bigint | Uint8Array;
2
+ import type { IGuid } from '../interfaces/guid';
3
+ import type { Base64Guid, BigIntGuid, FullHexGuid, RawGuidPlatformBuffer, ShortHexGuid } from '../types';
4
+ export type GuidInput = string | FullHexGuid | ShortHexGuid | Base64Guid | BigIntGuid | RawGuidPlatformBuffer | bigint | Uint8Array;
5
5
  /**
6
- * GuidV4 represents a GUID (Globally Unique Identifier) that is compliant with the RFC 4122 standard.
7
- * GuidV4 instances can be created from a variety of input types, including:
6
+ * Guid represents a GUID/UUID (Globally Unique Identifier) that is compliant with the RFC 4122 standard.
7
+ * Supports all UUID versions (v1-v5), with factory methods for v3, v4, and v5.
8
+ * Guid instances can be created from a variety of input types, including:
8
9
  * - FullHexGuid: A 36-character string representation of the GUID, including dashes
9
10
  * - ShortHexGuid: A 32-character string representation of the GUID, excluding dashes
10
11
  * - Base64Guid: A 24-character base64-encoded string representation of the GUID
11
12
  * - BigIntGuid: A bigint representation of the GUID
12
- * - RawGuidBuffer: A 16-byte Buffer representation of the GUID
13
- * GuidV4 instances can be converted to any of these representations using the appropriate method.
13
+ * - RawGuidUint8Array: A 16-byte Uint8Array representation of the GUID
14
+ * Guid instances can be converted to any of these representations using the appropriate method.
14
15
  */
15
- export declare class GuidV4 implements IGuidV4 {
16
+ export declare class Guid implements IGuid {
16
17
  /**
17
- * GUID is stored internally as a raw 16-byte Buffer.
18
+ * GUID is stored internally as a raw 16-byte Uint8Array.
18
19
  */
19
20
  private readonly _value;
20
21
  /**
@@ -49,10 +50,6 @@ export declare class GuidV4 implements IGuidV4 {
49
50
  * Type guard to check if a value is a Uint8Array
50
51
  */
51
52
  private static isUint8Array;
52
- /**
53
- * Type guard to check if a value is a Buffer or Uint8Array
54
- */
55
- private static isBufferLike;
56
53
  /**
57
54
  * Cached empty/nil GUID constant (all zeros)
58
55
  */
@@ -60,60 +57,65 @@ export declare class GuidV4 implements IGuidV4 {
60
57
  /**
61
58
  * Empty/nil GUID constant (all zeros)
62
59
  */
63
- static get Empty(): GuidV4;
60
+ static get Empty(): Guid;
64
61
  constructor(value: GuidInput);
65
62
  /**
66
- * Validates input and converts to raw buffer with comprehensive error handling.
63
+ * Validates input and converts to raw array with comprehensive error handling.
67
64
  * This centralizes all validation logic for better maintainability.
68
65
  * @param value The input value to validate and convert
69
- * @returns The validated raw GUID buffer
66
+ * @returns The validated raw GUID array
70
67
  * @throws {GuidError} If validation fails
71
68
  */
72
69
  private static validateAndConvert;
73
70
  static validateUuid(value: string): boolean;
74
71
  serialize(): string;
75
- static hydrate(value: string): GuidV4;
72
+ static hydrate(value: string): Guid;
76
73
  private static readonly LengthMap;
77
74
  private static readonly ReverseLengthMap;
78
75
  private static readonly VerifyFunctions;
79
76
  /**
80
- * Returns the GUID as a raw Buffer.
77
+ * Returns the GUID as a raw Uint8Array.
81
78
  * NOTE: Returns a defensive copy to prevent external mutation.
82
- * Use asRawGuidBufferUnsafe() if you need the internal buffer and guarantee no mutation.
79
+ * Use asRawGuidUint8ArrayUnsafe() if you need the internal array and guarantee no mutation.
83
80
  */
84
- get asRawGuidBuffer(): RawGuidBuffer;
81
+ get asRawGuidPlatformBuffer(): RawGuidPlatformBuffer;
85
82
  /**
86
- * Returns the internal raw Buffer without copying.
87
- * ⚠️ WARNING: Do NOT mutate the returned buffer! This is for performance-critical paths only.
88
- * Mutating this buffer will corrupt the GUID instance.
83
+ * Returns the internal raw Uint8Array without copying.
84
+ * ⚠️ WARNING: Do NOT mutate the returned array! This is for performance-critical paths only.
85
+ * Mutating this array will corrupt the GUID instance.
89
86
  * @internal
90
87
  */
91
- get asRawGuidBufferUnsafe(): RawGuidBuffer;
88
+ get asRawGuidPlatformBufferUnsafe(): RawGuidPlatformBuffer;
92
89
  /**
93
90
  * Generates a new random v4 GUID.
94
- * @returns A new GuidV4 instance with a randomly generated value
91
+ * @returns A new Guid instance with a randomly generated value
95
92
  */
96
- static generate(): GuidV4;
93
+ static generate(): Guid;
94
+ /**
95
+ * Alias for generate() to create a v4 GUID.
96
+ * @returns A new Guid instance with a randomly generated v4 value
97
+ */
98
+ static v4(): Guid;
97
99
  /**
98
100
  * Alias for generate() for backward compatibility.
99
101
  * @deprecated Use generate() instead for clearer intent
100
102
  */
101
- static new(): GuidV4;
103
+ static new(): Guid;
102
104
  /**
103
105
  * Parses a GUID from any valid format, throwing on invalid input.
104
106
  * This is the primary parsing method for when you expect valid input.
105
107
  * @param value The value to parse
106
- * @returns A new GuidV4 instance
108
+ * @returns A new Guid instance
107
109
  * @throws {GuidError} If the value is not a valid GUID
108
110
  */
109
- static parse(value: GuidInput): GuidV4;
111
+ static parse(value: GuidInput): Guid;
110
112
  /**
111
113
  * Attempts to parse a GUID, returning null on failure instead of throwing.
112
114
  * Use this when you're uncertain if the input is valid.
113
115
  * @param value The value to parse
114
- * @returns A new GuidV4 instance or null if parsing fails
116
+ * @returns A new Guid instance or null if parsing fails
115
117
  */
116
- static tryParse(value: GuidInput): GuidV4 | null;
118
+ static tryParse(value: GuidInput): Guid | null;
117
119
  /**
118
120
  * Validates whether a value is a valid GUID without creating an instance.
119
121
  * More efficient than tryParse when you only need validation.
@@ -124,62 +126,56 @@ export declare class GuidV4 implements IGuidV4 {
124
126
  /**
125
127
  * Factory method to create a GUID from a full hex string.
126
128
  * @param fullHex The full hex string (with dashes)
127
- * @returns A new GuidV4 instance
129
+ * @returns A new Guid instance
128
130
  */
129
- static fromFullHex(fullHex: string): GuidV4;
131
+ static fromFullHex(fullHex: string): Guid;
130
132
  /**
131
133
  * Factory method to create a GUID from a short hex string.
132
134
  * @param shortHex The short hex string (without dashes)
133
- * @returns A new GuidV4 instance
135
+ * @returns A new Guid instance
134
136
  */
135
- static fromShortHex(shortHex: string): GuidV4;
137
+ static fromShortHex(shortHex: string): Guid;
136
138
  /**
137
139
  * Factory method to create a GUID from a base64 string.
138
140
  * @param base64 The base64 encoded string
139
- * @returns A new GuidV4 instance
141
+ * @returns A new Guid instance
140
142
  */
141
- static fromBase64(base64: string): GuidV4;
143
+ static fromBase64(base64: string): Guid;
142
144
  /**
143
145
  * Factory method to create a GUID from a bigint.
144
146
  * @param bigint The bigint value
145
- * @returns A new GuidV4 instance
146
- */
147
- static fromBigInt(bigint: bigint): GuidV4;
148
- /**
149
- * Factory method to create a GUID from a raw buffer.
150
- * @param buffer The raw 16-byte buffer
151
- * @returns A new GuidV4 instance
147
+ * @returns A new Guid instance
152
148
  */
153
- static fromBuffer(buffer: Uint8Array): GuidV4;
149
+ static fromBigInt(bigint: bigint): Guid;
154
150
  /**
155
151
  * Factory method to create a GUID from a raw Uint8Array.
156
152
  * This is an explicit alias for fromBuffer(), provided for clarity when working
157
153
  * with browser environments where Uint8Array is the native binary type.
158
154
  * @param bytes The raw 16-byte Uint8Array
159
- * @returns A new GuidV4 instance
155
+ * @returns A new Guid instance
160
156
  */
161
- static fromUint8Array(bytes: Uint8Array): GuidV4;
157
+ static fromPlatformBuffer(bytes: Uint8Array): Guid;
162
158
  /**
163
159
  * Creates a namespace-based v3 GUID (MD5 hash).
164
160
  * Use this for deterministic GUIDs based on a namespace and name.
165
- * @param namespace The namespace GUID (e.g., uuid.v3.DNS)
166
161
  * @param name The name to hash within the namespace
167
- * @returns A new GuidV4 instance containing the v3 GUID
162
+ * @param namespace The namespace GUID (e.g., Guid.Namespaces.DNS)
163
+ * @returns A new Guid instance containing the v3 GUID
168
164
  * @example
169
- * const guid = GuidV4.v3('example.com', uuid.v3.DNS);
165
+ * const guid = Guid.v3('example.com', Guid.Namespaces.DNS);
170
166
  */
171
- static v3(name: string, namespace: string | Buffer): GuidV4;
167
+ static v3(name: string, namespace: string | Uint8Array): Guid;
172
168
  /**
173
169
  * Creates a namespace-based v5 GUID (SHA-1 hash).
174
170
  * Use this for deterministic GUIDs based on a namespace and name.
175
171
  * Preferred over v3 as SHA-1 is stronger than MD5.
176
- * @param namespace The namespace GUID (e.g., uuid.v5.DNS)
177
172
  * @param name The name to hash within the namespace
178
- * @returns A new GuidV4 instance containing the v5 GUID
173
+ * @param namespace The namespace GUID (e.g., Guid.Namespaces.DNS)
174
+ * @returns A new Guid instance containing the v5 GUID
179
175
  * @example
180
- * const guid = GuidV4.v5('example.com', uuid.v5.DNS);
176
+ * const guid = Guid.v5('example.com', Guid.Namespaces.DNS);
181
177
  */
182
- static v5(name: string, namespace: string | Buffer): GuidV4;
178
+ static v5(name: string, namespace: string | Uint8Array): Guid;
183
179
  /**
184
180
  * Common namespace constants for use with v3/v5 GUIDs.
185
181
  * These are the standard RFC 4122 namespace UUIDs, defined inline for browser compatibility.
@@ -199,7 +195,7 @@ export declare class GuidV4 implements IGuidV4 {
199
195
  /**
200
196
  * Returns the GUID as a raw Uint8Array.
201
197
  */
202
- get asUint8Array(): Uint8Array;
198
+ get asPlatformBuffer(): Uint8Array;
203
199
  /**
204
200
  * Returns the GUID as a short hex string.
205
201
  * Result is cached for performance.
@@ -245,10 +241,10 @@ export declare class GuidV4 implements IGuidV4 {
245
241
  /**
246
242
  * Returns the brand of the GUID for the given length.
247
243
  * @param length The length of the GUID to get the brand for.
248
- * @param isBuffer Whether the GUID is a Buffer.
244
+ * @param isUint8Array Whether the GUID is a Uint8Array.
249
245
  * @returns The brand of the GUID for the given length.
250
246
  */
251
- static lengthToGuidBrand(length: number, isBuffer: boolean): GuidBrandType;
247
+ static lengthToGuidBrand(length: number, isUint8Array: boolean): GuidBrandType;
252
248
  /**
253
249
  * Verifies if a given GUID is a valid full hex GUID.
254
250
  * @param fullHexGuidValue The full hex GUID to verify.
@@ -268,11 +264,11 @@ export declare class GuidV4 implements IGuidV4 {
268
264
  */
269
265
  static isBase64Guid(value: GuidInput): boolean;
270
266
  /**
271
- * Verifies if a given GUID is a valid raw GUID buffer.
272
- * @param value The raw GUID buffer to verify.
273
- * @returns True if the GUID is a valid raw GUID buffer, false otherwise.
267
+ * Verifies if a given GUID is a valid raw GUID array.
268
+ * @param value The raw GUID array to verify.
269
+ * @returns True if the GUID is a valid raw GUID array, false otherwise.
274
270
  */
275
- static isRawGuidBuffer(value: GuidInput): boolean;
271
+ static isRawGuidUint8Array(value: GuidInput): boolean;
276
272
  /**
277
273
  * Verifies if a given GUID is a valid bigint GUID.
278
274
  * @param value The bigint GUID to verify.
@@ -296,8 +292,8 @@ export declare class GuidV4 implements IGuidV4 {
296
292
  * @param guid The GUID value to convert.
297
293
  * @returns The GUID value as a full hex GUID.
298
294
  */
299
- static toFullHexGuid(guid: RawGuidBuffer | BigIntGuid | Base64Guid | ShortHexGuid | FullHexGuid | string): FullHexGuid;
300
- static toShortHexGuid(guid: RawGuidBuffer | BigIntGuid | Base64Guid | ShortHexGuid | FullHexGuid | string): ShortHexGuid;
295
+ static toFullHexGuid(guid: RawGuidPlatformBuffer | BigIntGuid | Base64Guid | ShortHexGuid | FullHexGuid | string): FullHexGuid;
296
+ static toShortHexGuid(guid: RawGuidPlatformBuffer | BigIntGuid | Base64Guid | ShortHexGuid | FullHexGuid | string): ShortHexGuid;
301
297
  /**
302
298
  * Converts a given bigint to a full hex GUID.
303
299
  * @param bigInt The bigint to convert.
@@ -305,18 +301,18 @@ export declare class GuidV4 implements IGuidV4 {
305
301
  */
306
302
  static toFullHexFromBigInt(bigInt: bigint): FullHexGuid;
307
303
  /**
308
- * Converts a given GUID value to a raw GUID buffer.
304
+ * Converts a given GUID value to a raw GUID array.
309
305
  * @param value The GUID value to convert.
310
- * @returns The GUID value as a raw GUID buffer.
306
+ * @returns The GUID value as a raw GUID array.
311
307
  */
312
- static toRawGuidBuffer(value: GuidInput): RawGuidBuffer;
308
+ static toRawGuidPlatformBuffer(value: GuidInput): RawGuidPlatformBuffer;
313
309
  /**
314
- * Compare two GuidV4 instances for equality.
315
- * @param other - The other GuidV4 instance to compare (can be null/undefined)
310
+ * Compare two Guid instances for equality.
311
+ * @param other - The other Guid instance to compare (can be null/undefined)
316
312
  * @param constantTime - Use constant-time comparison to prevent timing attacks (default: false)
317
- * @returns True if the two GuidV4 instances are equal, false otherwise
313
+ * @returns True if the two Guid instances are equal, false otherwise
318
314
  */
319
- equals(other: IGuidV4 | null | undefined, constantTime?: boolean): boolean;
315
+ equals(other: IGuid | null | undefined, constantTime?: boolean): boolean;
320
316
  /**
321
317
  * Checks if this GUID is empty (all zeros).
322
318
  * @returns True if the GUID is all zeros, false otherwise
@@ -327,14 +323,14 @@ export declare class GuidV4 implements IGuidV4 {
327
323
  * @param guid The GUID to check
328
324
  * @returns True if the GUID is null, undefined, or empty
329
325
  */
330
- static isNilOrEmpty(guid: IGuidV4 | null | undefined): boolean;
326
+ static isNilOrEmpty(guid: IGuid | null | undefined): boolean;
331
327
  /**
332
- * Creates a new GuidV4 instance with the same value as this one.
333
- * @returns A new GuidV4 instance with identical value
328
+ * Creates a new Guid instance with the same value as this one.
329
+ * @returns A new Guid instance with identical value
334
330
  */
335
- clone(): GuidV4;
331
+ clone(): Guid;
336
332
  /**
337
- * Returns the hash code for this GUID based on its buffer content.
333
+ * Returns the hash code for this GUID based on its array content.
338
334
  * Useful for using GUIDs as Map/Set keys.
339
335
  * @returns A numeric hash code
340
336
  */
@@ -345,18 +341,60 @@ export declare class GuidV4 implements IGuidV4 {
345
341
  * @returns The version number (1-5) or undefined
346
342
  */
347
343
  getVersion(): number | undefined;
344
+ /**
345
+ * Validates that this GUID is a proper v3 GUID according to RFC 4122.
346
+ * @returns True if valid v3 GUID, false otherwise
347
+ */
348
+ isValidV3(): boolean;
348
349
  /**
349
350
  * Validates that this GUID is a proper v4 GUID according to RFC 4122.
350
351
  * Boundary values (all zeros/all Fs) return true as they're mathematically valid.
351
352
  * @returns True if valid v4 GUID or boundary value, false otherwise
352
353
  */
353
354
  isValidV4(): boolean;
355
+ /**
356
+ * Validates that this GUID is a proper v5 GUID according to RFC 4122.
357
+ * @returns True if valid v5 GUID, false otherwise
358
+ */
359
+ isValidV5(): boolean;
360
+ /**
361
+ * Returns a human-readable string representation.
362
+ */
363
+ toDebugString(): string;
354
364
  /**
355
365
  * Compares two GUIDs for ordering.
356
366
  * Useful for sorting GUID arrays.
357
367
  * @param other The other GUID to compare to
358
368
  * @returns -1 if this < other, 0 if equal, 1 if this > other
359
369
  */
360
- compareTo(other: IGuidV4): number;
370
+ compareTo(other: IGuid): number;
371
+ /**
372
+ * Returns the timestamp from a v1 GUID.
373
+ * @returns Date object or undefined if not a v1 GUID
374
+ */
375
+ getTimestamp(): Date | undefined;
376
+ /**
377
+ * Extracts the variant from the GUID.
378
+ * @returns The variant (0-2) or undefined
379
+ */
380
+ getVariant(): number | undefined;
381
+ /**
382
+ * Creates a v1 GUID (time-based).
383
+ * @returns A new Guid instance containing a v1 GUID
384
+ */
385
+ static v1(): Guid;
386
+ /**
387
+ * Validates that this GUID is a proper v1 GUID.
388
+ * @returns True if valid v1 GUID, false otherwise
389
+ */
390
+ isValidV1(): boolean;
391
+ /**
392
+ * Returns a URL-safe base64 representation (no padding, URL-safe chars).
393
+ */
394
+ get asUrlSafeBase64(): string;
395
+ /**
396
+ * Creates a GUID from URL-safe base64.
397
+ */
398
+ static fromUrlSafeBase64(urlSafe: string): Guid;
361
399
  }
362
400
  //# sourceMappingURL=guid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"guid.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-ecies-lib/src/lib/guid.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAGhE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EACL,UAAU,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,YAAY,EACb,MAAM,UAAU,CAAC;AAIlB,MAA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SAAS,GAAG,aAAa;IAoD9D;;;;;OAKG;IACI,MAAM,CACX,KAAK,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,EACjC,YAAY,UAAQ,GACnB,OAAO;IAsBV;;;OAGG;IACI,OAAO,IAAI,OAAO;IAUzB;;;;OAIG;WACW,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO;IAIrE;;;OAGG;IACI,KAAK,IAAI,MAAM;IAItB;;;;OAIG;IACI,QAAQ,IAAI,MAAM;IASzB;;;;OAIG;IACI,UAAU,IAAI,MAAM,GAAG,SAAS;IAcvC;;;;OAIG;IACI,SAAS,IAAI,OAAO;IAU3B;;;;;OAKG;IACI,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM;CAGzC"}
1
+ {"version":3,"file":"guid.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-ecies-lib/src/lib/guid.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAGhE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,YAAY,EACb,MAAM,UAAU,CAAC;AAGlB,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,WAAW,GACX,YAAY,GACZ,UAAU,GACV,UAAU,GACV,qBAAqB,GACrB,MAAM,GACN,UAAU,CAAC;AAEf;;;;;;;;;;GAUG;AACH,qBAAa,IAAK,YAAW,KAAK;IAChC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAE/C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAK5B;IAEX;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAEtC;IAEF;;OAEG;IACH,OAAO,CAAC,cAAc,CAAC,CAAc;IAErC;;OAE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