@xyo-network/payload-model 3.6.0-rc.4 → 3.6.0-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/browser/Error.d.ts +32 -8
  2. package/dist/browser/Error.d.ts.map +1 -1
  3. package/dist/browser/Payload.d.ts +21 -13
  4. package/dist/browser/Payload.d.ts.map +1 -1
  5. package/dist/browser/Query.d.ts +1 -1
  6. package/dist/browser/Schema.d.ts +2 -2
  7. package/dist/browser/StorageMeta/Sequence.d.ts +59 -0
  8. package/dist/browser/StorageMeta/Sequence.d.ts.map +1 -0
  9. package/dist/browser/StorageMeta/SequenceParser.d.ts +23 -0
  10. package/dist/browser/StorageMeta/SequenceParser.d.ts.map +1 -0
  11. package/dist/browser/{StorageMeta.d.ts → StorageMeta/StorageMeta.d.ts} +4 -15
  12. package/dist/browser/StorageMeta/StorageMeta.d.ts.map +1 -0
  13. package/dist/browser/StorageMeta/index.d.ts +4 -0
  14. package/dist/browser/StorageMeta/index.d.ts.map +1 -0
  15. package/dist/browser/index.d.ts +1 -1
  16. package/dist/browser/index.d.ts.map +1 -1
  17. package/dist/browser/index.mjs +150 -17
  18. package/dist/browser/index.mjs.map +1 -1
  19. package/dist/browser/isPayload.d.ts +10 -10
  20. package/dist/browser/isPayload.d.ts.map +1 -1
  21. package/dist/neutral/Error.d.ts +32 -8
  22. package/dist/neutral/Error.d.ts.map +1 -1
  23. package/dist/neutral/Payload.d.ts +21 -13
  24. package/dist/neutral/Payload.d.ts.map +1 -1
  25. package/dist/neutral/Query.d.ts +1 -1
  26. package/dist/neutral/Schema.d.ts +2 -2
  27. package/dist/neutral/StorageMeta/Sequence.d.ts +59 -0
  28. package/dist/neutral/StorageMeta/Sequence.d.ts.map +1 -0
  29. package/dist/neutral/StorageMeta/SequenceParser.d.ts +23 -0
  30. package/dist/neutral/StorageMeta/SequenceParser.d.ts.map +1 -0
  31. package/dist/{node → neutral/StorageMeta}/StorageMeta.d.ts +4 -15
  32. package/dist/neutral/StorageMeta/StorageMeta.d.ts.map +1 -0
  33. package/dist/neutral/StorageMeta/index.d.ts +4 -0
  34. package/dist/neutral/StorageMeta/index.d.ts.map +1 -0
  35. package/dist/neutral/index.d.ts +1 -1
  36. package/dist/neutral/index.d.ts.map +1 -1
  37. package/dist/neutral/index.mjs +150 -17
  38. package/dist/neutral/index.mjs.map +1 -1
  39. package/dist/neutral/isPayload.d.ts +10 -10
  40. package/dist/neutral/isPayload.d.ts.map +1 -1
  41. package/dist/node/Error.d.ts +32 -8
  42. package/dist/node/Error.d.ts.map +1 -1
  43. package/dist/node/Payload.d.ts +21 -13
  44. package/dist/node/Payload.d.ts.map +1 -1
  45. package/dist/node/Query.d.ts +1 -1
  46. package/dist/node/Schema.d.ts +2 -2
  47. package/dist/node/StorageMeta/Sequence.d.ts +59 -0
  48. package/dist/node/StorageMeta/Sequence.d.ts.map +1 -0
  49. package/dist/node/StorageMeta/SequenceParser.d.ts +23 -0
  50. package/dist/node/StorageMeta/SequenceParser.d.ts.map +1 -0
  51. package/dist/{neutral → node/StorageMeta}/StorageMeta.d.ts +4 -15
  52. package/dist/node/StorageMeta/StorageMeta.d.ts.map +1 -0
  53. package/dist/node/StorageMeta/index.d.ts +4 -0
  54. package/dist/node/StorageMeta/index.d.ts.map +1 -0
  55. package/dist/node/index.d.ts +1 -1
  56. package/dist/node/index.d.ts.map +1 -1
  57. package/dist/node/index.mjs +150 -17
  58. package/dist/node/index.mjs.map +1 -1
  59. package/dist/node/isPayload.d.ts +10 -10
  60. package/dist/node/isPayload.d.ts.map +1 -1
  61. package/package.json +6 -4
  62. package/src/Payload.ts +44 -12
  63. package/src/Query.ts +1 -1
  64. package/src/StorageMeta/Sequence.ts +72 -0
  65. package/src/StorageMeta/SequenceParser.ts +125 -0
  66. package/src/{StorageMeta.ts → StorageMeta/StorageMeta.ts} +4 -26
  67. package/src/StorageMeta/index.ts +3 -0
  68. package/src/index.ts +1 -1
  69. package/dist/browser/StorageMeta.d.ts.map +0 -1
  70. package/dist/neutral/StorageMeta.d.ts.map +0 -1
  71. package/dist/node/StorageMeta.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/payload-model",
3
- "version": "3.6.0-rc.4",
3
+ "version": "3.6.0-rc.6",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -37,13 +37,15 @@
37
37
  "module": "dist/neutral/index.mjs",
38
38
  "types": "dist/neutral/index.d.ts",
39
39
  "dependencies": {
40
- "@xylabs/hex": "^4.4.13",
41
- "@xylabs/object": "^4.4.13"
40
+ "@xylabs/arraybuffer": "^4.4.15",
41
+ "@xylabs/assert": "^4.4.15",
42
+ "@xylabs/hex": "^4.4.15",
43
+ "@xylabs/object": "^4.4.15"
42
44
  },
43
45
  "devDependencies": {
44
46
  "@xylabs/ts-scripts-yarn3": "^4.2.4",
45
47
  "@xylabs/tsconfig": "^4.2.4",
46
- "@xylabs/vitest-extended": "^4.4.13",
48
+ "@xylabs/vitest-extended": "^4.4.15",
47
49
  "typescript": "^5.7.2",
48
50
  "vitest": "^2.1.8"
49
51
  },
package/src/Payload.ts CHANGED
@@ -3,33 +3,65 @@ import type { EmptyObject } from '@xylabs/object'
3
3
 
4
4
  import type { Schema, WithSchema } from './Schema.ts'
5
5
 
6
- /** Additional fields for a payload */
7
- export interface PayloadFields extends EmptyObject {
8
- schema: Schema
6
+ export interface SchemaField<T extends Schema = Schema> {
7
+ schema: T
9
8
  }
10
9
 
11
- export type WithPayload<T extends EmptyObject | void = void> = WithSchema<T extends EmptyObject ? PayloadFields & T : PayloadFields>
10
+ /** Additional fields for a payload */
11
+ export interface PayloadFields extends SchemaField {}
12
+
13
+ export type WithPayload<T extends EmptyObject | void = void> =
14
+ DeepRestrictToStringKeys<WithoutMeta<WithSchema<T extends EmptyObject ? PayloadFields & T : PayloadFields>>>
12
15
 
13
16
  /** Base Type for Payloads */
14
17
  export type Payload<T extends void | EmptyObject | WithSchema = void, S extends Schema | void = void> =
15
18
  T extends WithSchema ?
16
19
  S extends Schema ?
17
20
  /* T (w/Schema) & S provided */
18
- WithPayload<Omit<T, 'schema'> & { schema: S } & PayloadFields>
21
+ WithPayload<Omit<T, 'schema'> & { schema: S }>
19
22
  : /* Only T (w/Schema) provided */ WithPayload<T>
20
23
  : T extends object ?
21
24
  S extends Schema ?
22
25
  /* T (w/o Schema) & S provided */
23
- WithPayload<T & { schema: S } & PayloadFields>
24
- : /* Only T (w/o Schema) provided */ WithPayload<T & { schema: Schema } & PayloadFields>
26
+ WithPayload<T & { schema: S }>
27
+ : /* Only T (w/o Schema) provided */ WithPayload<T & PayloadFields>
25
28
  : /* Either just S or neither S or T provided */
26
- {
27
- schema: S extends Schema ? S : Schema
28
- } & PayloadFields
29
+ WithPayload<{
30
+ schema: S extends Schema ? S : Schema
31
+ }>
29
32
 
30
- export type OverridablePayload<T extends Payload> = Omit<T, 'schema'> & { schema: string }
33
+ export type OverridablePayload<T extends Payload> = WithoutMeta<Omit<T, 'schema'> & PayloadFields>
31
34
 
32
35
  export type WithSources<T extends EmptyObject> = T & { sources?: Hash[] }
33
36
  export type PayloadWithSources<T extends void | EmptyObject | WithSchema = void, S extends Schema | void = void> = WithSources<Payload<T, S>>
34
37
 
35
- export type WithAnySchema<T extends Payload> = Omit<T, 'schema'> & { schema: string }
38
+ export type WithAnySchema<T extends Payload> = OverridablePayload<T>
39
+
40
+ export type DeepOmitStartsWith<T, Prefix extends string> = T extends (infer U)[]
41
+ ? DeepOmitStartsWith<U, Prefix>[] // Special handling for arrays
42
+ : T extends object
43
+ ? {
44
+ [K in keyof T as K extends string
45
+ ? K extends `${Prefix}${string}`
46
+ ? never
47
+ : K
48
+ : K]: DeepOmitStartsWith<T[K], Prefix>;
49
+ }
50
+ : T
51
+
52
+ export type DeepRestrictToStringKeys<T> = {
53
+ [K in keyof T as K extends string ? K : never]: T[K] extends (infer U)[]
54
+ ? DeepRestrictToStringKeys<U>[] // Handle arrays recursively
55
+ : T[K] extends object
56
+ ? DeepRestrictToStringKeys<T[K]> // Handle objects recursively
57
+ : T[K]; // Leave other types untouched
58
+ }
59
+
60
+ export type WithoutClientMeta<T extends EmptyObject> = DeepOmitStartsWith<T, '$'>
61
+ export type WithoutStorageMeta<T extends EmptyObject> = DeepOmitStartsWith<T, '_'>
62
+ export type WithoutPrivateStorageMeta<T extends EmptyObject> = DeepOmitStartsWith<T, '__'>
63
+ export type WithoutMeta<T extends EmptyObject> = WithoutClientMeta<WithoutStorageMeta<T>>
64
+
65
+ export type WithoutSchema<T extends WithOptionalSchema<Payload>> = Omit<T, 'schema'>
66
+
67
+ export type WithOptionalSchema<T extends EmptyObject = EmptyObject> = WithoutSchema<T> & Partial<T & SchemaField>
package/src/Query.ts CHANGED
@@ -22,7 +22,7 @@ export type Query<T extends void | EmptyObject | WithSchema = void, S extends Sc
22
22
  T extends void ? QueryFields : T & QueryFields,
23
23
  S extends void ?
24
24
  T extends WithSchema ? T['schema']
25
- : T extends void ? string
25
+ : T extends void ? Schema
26
26
  : void
27
27
  : S
28
28
  >
@@ -0,0 +1,72 @@
1
+ import type { Address, Hex } from '@xylabs/hex'
2
+ import { isHex } from '@xylabs/hex'
3
+
4
+ // we use Exclude to intentionally make the type not equal to string
5
+ export type LocalSequence = Hex & Exclude<string, 'reserved-local-sequence-value'>
6
+ export type QualifiedSequence = Hex & Exclude<string, 'reserved-qualified-sequence-value'>
7
+ export type Sequence = LocalSequence | QualifiedSequence
8
+
9
+ export type Epoch = Hex & Exclude<string, 'reserved-epoch-sequence-value'>
10
+
11
+ export const isEpoch = (value: unknown): value is Epoch => {
12
+ return isHex(value) && (value as string).length === SequenceConstants.epochBytes * 2
13
+ }
14
+
15
+ export type Nonce = Hex & Exclude<string, 'reserved-nonce-sequence-value'>
16
+
17
+ export const isNonce = (value: unknown): value is Epoch => {
18
+ return isHex(value) && (value as string).length === SequenceConstants.nonceBytes * 2
19
+ }
20
+
21
+ export const isLocalSequence = (value: unknown): value is Sequence => {
22
+ return isHex(value) && (value as string).length === SequenceConstants.localSequenceBytes * 2
23
+ }
24
+
25
+ export const isQualifiedSequence = (value: unknown): value is Sequence => {
26
+ return isHex(value) && (value as string).length === SequenceConstants.qualifiedSequenceBytes * 2
27
+ }
28
+
29
+ export const isSequence = (value: unknown): value is Sequence => {
30
+ return isLocalSequence(value) || isQualifiedSequence(value)
31
+ }
32
+
33
+ export const SequenceComponentLengths = {
34
+ epochBytes: 8,
35
+ nonceBytes: 8,
36
+ addressBytes: 20,
37
+ }
38
+
39
+ export const SequenceComponentMinMax = {
40
+ minEpoch: '0'.repeat(SequenceComponentLengths.epochBytes * 2) as Epoch,
41
+ maxEpoch: 'f'.repeat(SequenceComponentLengths.epochBytes * 2) as Epoch,
42
+ minNonce: '0'.repeat(SequenceComponentLengths.nonceBytes * 2) as Nonce,
43
+ maxNonce: 'f'.repeat(SequenceComponentLengths.nonceBytes * 2) as Nonce,
44
+ minAddress: '0'.repeat(SequenceComponentLengths.addressBytes * 2) as Address,
45
+ maxAddress: 'f'.repeat(SequenceComponentLengths.addressBytes * 2) as Address,
46
+ }
47
+
48
+ export const LocalSequenceConstants = {
49
+ ...SequenceComponentLengths,
50
+ ...SequenceComponentMinMax,
51
+ localSequenceBytes: SequenceComponentLengths.epochBytes + SequenceComponentLengths.nonceBytes,
52
+ minLocalSequence: SequenceComponentMinMax.minEpoch + SequenceComponentMinMax.minNonce as LocalSequence,
53
+ maxLocalSequence: SequenceComponentMinMax.maxEpoch + SequenceComponentMinMax.maxNonce as LocalSequence,
54
+ }
55
+
56
+ export const QualifiedSequenceConstants = {
57
+ qualifiedSequenceBytes: LocalSequenceConstants.localSequenceBytes + SequenceComponentLengths.addressBytes,
58
+ minLocalSequence: LocalSequenceConstants.minLocalSequence + SequenceComponentMinMax.minAddress as QualifiedSequence,
59
+ maxLocalSequence: LocalSequenceConstants.maxLocalSequence + SequenceComponentMinMax.maxAddress as QualifiedSequence,
60
+ }
61
+
62
+ export const SequenceConstants = {
63
+ ...LocalSequenceConstants,
64
+ ...QualifiedSequenceConstants,
65
+ }
66
+
67
+ // "11111111111111112222222222222222" is and example of a local sequence string
68
+
69
+ // "111111111111111122222222222222223333333333333333333333333333333333333333" is and example of a local sequence string
70
+ // epoch = "1111111111111111"
71
+ // nonce = "2222222222222222"
72
+ // address = "3333333333333333333333333333333333333333"
@@ -0,0 +1,125 @@
1
+ import { toUint8Array } from '@xylabs/arraybuffer'
2
+ import { assertEx } from '@xylabs/assert'
3
+ import {
4
+ type Address,
5
+ type Hash, type Hex,
6
+ isAddress,
7
+ toHex,
8
+ } from '@xylabs/hex'
9
+
10
+ import type {
11
+ Epoch, LocalSequence, Nonce, QualifiedSequence,
12
+ Sequence,
13
+ } from './Sequence.ts'
14
+ import {
15
+ isQualifiedSequence, isSequence, SequenceConstants,
16
+ } from './Sequence.ts'
17
+
18
+ export class SequenceParser {
19
+ protected static privateConstructorKey = Date.now().toString()
20
+
21
+ private readonly data: Readonly<Uint8Array>
22
+
23
+ protected constructor(privateConstructorKey: string, hex: Hex) {
24
+ assertEx(SequenceParser.privateConstructorKey === privateConstructorKey, () => 'Use create function instead of constructor')
25
+ const paddedHex = toHex(hex, {
26
+ prefix: false,
27
+ bitLength: (hex.length <= SequenceConstants.localSequenceBytes * 2)
28
+ ? SequenceConstants.localSequenceBytes * 8
29
+ : SequenceConstants.qualifiedSequenceBytes * 8,
30
+ })
31
+ this.data = toUint8Array(paddedHex)
32
+ }
33
+
34
+ get address(): Address {
35
+ const start = SequenceConstants.localSequenceBytes
36
+ const end = SequenceConstants.qualifiedSequenceBytes
37
+ return toHex(this.data.slice(start, end).buffer, { prefix: false })
38
+ }
39
+
40
+ get epoch(): Epoch {
41
+ const start = 0
42
+ const end = SequenceConstants.epochBytes
43
+ return toHex(this.data.slice(start, end).buffer, { prefix: false })
44
+ }
45
+
46
+ get localSequence(): LocalSequence {
47
+ const start = 0
48
+ const end = SequenceConstants.localSequenceBytes
49
+ return toHex(this.data.slice(start, end).buffer, { prefix: false })
50
+ }
51
+
52
+ get nonce(): Nonce {
53
+ const start = SequenceConstants.epochBytes
54
+ const end = SequenceConstants.localSequenceBytes
55
+ return toHex(this.data.slice(start, end).buffer, { prefix: false })
56
+ }
57
+
58
+ get qualifiedSequence(): QualifiedSequence {
59
+ const start = 0
60
+ const end = SequenceConstants.qualifiedSequenceBytes
61
+ return toHex(this.data.slice(start, end).buffer, { prefix: false })
62
+ }
63
+
64
+ static from(sequence: Sequence, address?: Address): SequenceParser
65
+ static from(timestamp: Hex, hash: Hash, address?: Address): SequenceParser
66
+ static from(timestamp: Hex, hash: Hex, address?: Address): SequenceParser
67
+ static from(timestamp: Hex, nonce: Nonce, address?: Address): SequenceParser
68
+ static from(timestamp: number, hash: Hash, address?: Address): SequenceParser
69
+ static from(timestamp: number, hash: Hex, address?: Address): SequenceParser
70
+ static from(timestamp: number, nonce: Nonce, address?: Address): SequenceParser
71
+ static from(timestampOrSequence: Sequence | Hex | number, nonceOrAddress: Hash | Nonce, address?: Address): SequenceParser {
72
+ if (isSequence(timestampOrSequence)) {
73
+ if (nonceOrAddress) {
74
+ assertEx(!isQualifiedSequence(timestampOrSequence), () => 'Providing both a qualified sequence and a address is not allowed')
75
+ assertEx(isAddress(nonceOrAddress), () => 'Invalid address provided')
76
+ return new this(SequenceParser.privateConstructorKey, (timestampOrSequence + address) as Hex)
77
+ }
78
+ return new this(SequenceParser.privateConstructorKey, timestampOrSequence)
79
+ }
80
+ const epoch = SequenceParser.toEpoch(timestampOrSequence)
81
+ const nonce = SequenceParser.toNonce(nonceOrAddress)
82
+ const addressHex: Hex = address ? toHex(address, { bitLength: SequenceConstants.addressBytes * 8 }) : '' as Hex
83
+ const hexString = (epoch + nonce + addressHex) as Hex
84
+ assertEx(isSequence(hexString), () => `Invalid sequence [${hexString}] [${epoch}, ${nonce}, ${addressHex}]`)
85
+ return new this(SequenceParser.privateConstructorKey, hexString)
86
+ }
87
+
88
+ static parse(value: Hex | string | ArrayBufferLike): SequenceParser {
89
+ const hex = toHex(value)
90
+ if (isSequence(hex)) {
91
+ return new this(SequenceParser.privateConstructorKey, hex)
92
+ }
93
+ throw new Error(`Invalid sequence [${value}]`)
94
+ }
95
+
96
+ // can convert a short number/hex to an epoch (treats it as the whole value) or extract an epoch from a sequence
97
+ static toEpoch(value: number | Hex | Epoch): Epoch {
98
+ assertEx(
99
+ typeof value !== 'number' || Number.isInteger(value),
100
+ () => 'Value must be in integer',
101
+ )
102
+ const hex = toHex(value, { prefix: false })
103
+ if (hex.length <= SequenceConstants.epochBytes * 2) {
104
+ return toHex(value, { prefix: false, bitLength: SequenceConstants.epochBytes * 8 }) as Epoch
105
+ }
106
+ if (isSequence(hex)) {
107
+ return hex.slice(0, SequenceConstants.epochBytes * 2) as Epoch
108
+ }
109
+ throw new Error(`Value could not be converted to epoch [${hex}]`)
110
+ }
111
+
112
+ // can convert a short number/hex to a nonce (treats it as the whole value) or extract an nonce from a sequence
113
+ static toNonce(value: Hash | Hex): Nonce {
114
+ assertEx(
115
+ typeof value !== 'number' || Number.isInteger(value),
116
+ () => 'Value must be in integer',
117
+ )
118
+ const hex = toHex(value, { prefix: false })
119
+ if (isSequence(hex)) {
120
+ return hex.slice(SequenceConstants.epochBytes * 2, SequenceConstants.localSequenceBytes * 2) as Nonce
121
+ }
122
+ const hash = toHex((hex as string), { prefix: false, bitLength: SequenceConstants.nonceBytes * 8 })
123
+ return hash.slice(-SequenceConstants.nonceBytes * 2) as Nonce
124
+ }
125
+ }
@@ -1,11 +1,10 @@
1
- import {
2
- type Hash, type Hex, isHash,
3
- } from '@xylabs/hex'
1
+ import { type Hash, isHash } from '@xylabs/hex'
4
2
 
5
- import type { Payload } from './Payload.ts'
3
+ import type { Payload } from '../Payload.ts'
4
+ import type { Sequence } from './Sequence.ts'
6
5
 
7
6
  export interface SequenceMeta {
8
- _sequence: Hex
7
+ _sequence: Sequence
9
8
  }
10
9
 
11
10
  export type WithPartialSequenceMeta<T extends Payload = Payload> = Partial<WithSequenceMeta<T>>
@@ -27,27 +26,6 @@ export type WithPartialStorageMeta<T extends Payload = Payload> = Partial<WithSt
27
26
 
28
27
  export type WithStorageMeta<T extends Payload = Payload> = T & StorageMeta
29
28
 
30
- const StorageMetaComponentConstants = {
31
- epochBytes: 8,
32
- nonceBytes: 8,
33
- addressBytes: 20,
34
- }
35
-
36
- const StorageMetaLocalConstants = {
37
- maxEpoch: Math.pow(256, StorageMetaComponentConstants.epochBytes) - 1,
38
- localSequenceBytes: StorageMetaComponentConstants.epochBytes + StorageMetaComponentConstants.nonceBytes,
39
- minLocalSequence: '00000000000000000000000000000000' as Hex,
40
- maxLocalSequence: 'ffffffffffffffffffffffffffffffff' as Hex,
41
- ...StorageMetaComponentConstants,
42
- }
43
-
44
- export const StorageMetaConstants = {
45
- qualifiedSequenceBytes: StorageMetaLocalConstants.localSequenceBytes + StorageMetaComponentConstants.addressBytes,
46
- minSequence: `${StorageMetaLocalConstants}0000000000000000000000000000000000000000` as Hex,
47
- maxSequence: `${StorageMetaLocalConstants}ffffffffffffffffffffffffffffffffffffffff` as Hex,
48
- ...StorageMetaLocalConstants,
49
- }
50
-
51
29
  export const isSequenceMeta = (value: unknown): value is SequenceMeta => {
52
30
  return (value as WithSequenceMeta)?._sequence !== undefined
53
31
  }
@@ -0,0 +1,3 @@
1
+ export * from './Sequence.ts'
2
+ export * from './SequenceParser.ts'
3
+ export * from './StorageMeta.ts'
package/src/index.ts CHANGED
@@ -8,4 +8,4 @@ export * from './PayloadValidationFunction.ts'
8
8
  export * from './PayloadValueExpression.ts'
9
9
  export * from './Query.ts'
10
10
  export * from './Schema.ts'
11
- export * from './StorageMeta.ts'
11
+ export * from './StorageMeta/index.ts'
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageMeta.d.ts","sourceRoot":"","sources":["../../src/StorageMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,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