@blockcast/mmt-base 0.1.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.
package/README.md ADDED
@@ -0,0 +1,120 @@
1
+ # @blockcast/mmt-base
2
+
3
+ The shared MMTP packet-parsing leaf for libmmt's TypeScript packages. It hosts the low-level MMTP / MPU / MFU header parsers, FEC payload-id predicates, and ALTA-trailer extractor — everything that operates on raw MMTP packet bytes **with zero FEC-decode dependency**. RFC 6330 OTI geometry belongs to `@blockcast/mmt-fec`.
4
+
5
+ It exists for one structural reason. Both `@blockcast/mmt-fec` and `@blockcast/mmt-container` need these primitives. Before this package they lived in `mmt-container`, so `mmt-fec` had to import `mmt-container` for them — while `mmt-container`'s `FecManager` already imports `mmt-fec`. That is a circular dependency. Extracting the primitives into this leaf breaks the cycle: both packages now import **down** into `mmt-base` rather than across into each other. Its only dependency is `@blockcast/mmt-alta-parse` (for the ALTA trailer types it re-exports).
6
+
7
+ ```bash
8
+ pnpm add @blockcast/mmt-base
9
+ ```
10
+
11
+ ## Quick start
12
+
13
+ ```ts
14
+ import {
15
+ unwrapMMTP, extractMFUPayload, extractTimestamp,
16
+ isFecRepairPacket, hasSourceFecPayloadId,
17
+ PACKET_TYPE_MPU,
18
+ } from "@blockcast/mmt-base"
19
+
20
+ const pkt = unwrapMMTP(datagram) // { header, payload }
21
+ if (pkt.header.packetType === PACKET_TYPE_MPU) {
22
+ const mfu = extractMFUPayload(datagram) // { data, fragmentationIndicator, mpuSequenceNumber, ... }
23
+ const ts = extractTimestamp(datagram) // bigint MPU timestamp
24
+ }
25
+
26
+ if (isFecRepairPacket(datagram)) {
27
+ // repair flow — hand the payload to @blockcast/mmt-fec
28
+ }
29
+ ```
30
+
31
+ ## Exports
32
+
33
+ Single entry point — `package.json#exports` declares only `.`, and `src/index.ts` re-exports the packet primitives. Group them as three families:
34
+
35
+ ### Header, MPU & MFU parsing
36
+
37
+ | Symbol | Kind | Purpose |
38
+ |--------|------|---------|
39
+ | `parseMMTPHeader` | function | Parse the 12-byte MMTP header → `MMTPHeader` |
40
+ | `unwrapMMTP` | function | Header + payload split → `MMTPPacket` |
41
+ | `parseMPUHeader` | function | Parse the 8-byte MPU header → `MPUHeader` |
42
+ | `extractMFUPayload` | function | Pull the MFU data unit out of an MMTP packet → `MFUExtraction` (handles timed `T=1` and non-timed `T=0` DU headers) |
43
+ | `extractNALUnit` | function | Extract the NAL unit bytes from an MMTP packet |
44
+ | `extractTimestamp` | function | MPU presentation timestamp as `bigint` |
45
+ | `MMTPHeader`, `MPUHeader`, `MMTPPacket`, `MFUExtraction` | type | Parsed-structure shapes |
46
+ | `MMTP_HEADER_SIZE` (12), `MPU_HEADER_SIZE` (8), `MFU_DU_HEADER_SIZE_TIMED` (14), `MFU_DU_HEADER_SIZE_NONTIMED` (4) | const | Fixed header sizes |
47
+ | `PACKET_TYPE_MPU` (0x00), `PACKET_TYPE_SIGNALING` (0x02), `PACKET_TYPE_REPAIR` (0x03) | const | MMTP `packet_type` values |
48
+
49
+ MPU `payload_length` is interpreted strictly as ISO's length-after-field value: six remaining MPU-header bytes plus the data-unit header and media. ALTA and Source FEC Payload ID suffixes are outside that span; malformed, zero-length, media-only, and ambiguous declarations are rejected.
50
+
51
+ ### FEC payload-id, repair & AL-FEC signaling
52
+
53
+ | Symbol | Kind | Purpose |
54
+ |--------|------|---------|
55
+ | `isFecRepairPacket` | function | Is this a `PACKET_TYPE_REPAIR` packet? |
56
+ | `hasSourceFecPayloadId` | function | Strict predicate for a source packet's declared four-byte FEC payload ID |
57
+ | `extractFecPayloadId` | function | `{ ssId }` from a source packet's FEC payload id (or `null`) |
58
+ | `extractRepairFecPayloadId` | function | Repair-flow FEC payload id (13-byte, `REPAIR_FEC_PID_SIZE`) |
59
+ | `parseMoqRepairFrame` | function | Strictly parse a mode-0 MMTP Annex C repair frame → `MoqRepairFrame` |
60
+ | `parseAlFecMessage` | function | Parse an AL-FEC signaling message → `AlFecConfig` |
61
+ | `MoqRepairFrame`, `AlFecConfig` | type | Repair-frame / AL-FEC config shapes |
62
+ | `ALFEC_MESSAGE_ID` (0x0203), `FEC_CODE_XOR` (1), `FEC_CODE_RAPTORQ` (2), `REPAIR_FEC_PID_SIZE` (13) | const | AL-FEC signaling + payload-id constants |
63
+
64
+ ### ALTA trailer (re-exported from `@blockcast/mmt-alta-parse`)
65
+
66
+ | Symbol | Kind | Purpose |
67
+ |--------|------|---------|
68
+ | `extractAltaTrailer` | function | Extract the ALTA authentication trailer from an MMTP packet |
69
+ | `AltaTrailer` | type | Parsed trailer shape |
70
+ | `MMTP_EXT_TYPE_ALTA_AUTH`, `MMTP_EXT_TRAILER_HEADER_SIZE` | const | ALTA extension-header identifiers |
71
+
72
+ These four are re-exported so callers that already pull MMTP primitives from here don't need a second import from `@blockcast/mmt-alta-parse` just for the trailer.
73
+
74
+ ## Why this package exists
75
+
76
+ ```
77
+ before after
78
+ ┌──────────────┐ ┌──────────────┐
79
+ │ mmt-fec │──needs primitives──► │ mmt-fec │─┐
80
+ └──────────────┘ └──────────────┘ │ import down
81
+ ┌──────────────┐ ┌──────────────┐ │
82
+ │ mmt-container│◄─FecManager needs─┐ │ mmt-container│─┤
83
+ │ (hosts the │ mmt-fec │ └──────────────┘ │
84
+ │ primitives) │───────────────────┘ ▼
85
+ └──────────────┘ ⟲ CYCLE ┌──────────────────────────┐
86
+ │ @blockcast/mmt-base │
87
+ │ (MMTP/MPU/MFU/PID) │
88
+ └──────────────────────────┘
89
+ ```
90
+
91
+ - `@blockcast/mmt-fec` imports the parsers in `src/block-processor.ts` (splitting a decoded FEC block back into MFU fragments).
92
+ - `@blockcast/mmt-container` imports these primitives directly. The obsolete
93
+ container re-export shim and `@blockcast/mmt-container/mmtp` subpath were
94
+ removed so there is one parser authority.
95
+
96
+ Keep this package dependency-light. OTI geometry and anything that needs the WASM FEC decoder belong in `@blockcast/mmt-fec`; anything that needs catalog/CMAF/reassembly state belongs in `@blockcast/mmt-container`. `mmt-base` stays pure MMTP packet parsing so both can depend on it without pulling in the other.
97
+
98
+ ## Build & test
99
+
100
+ ```bash
101
+ npm run build # tsc → dist/
102
+ npm run typecheck # tsc --noEmit
103
+ npm test # vitest run
104
+ ```
105
+
106
+ The direct suite owns header parsing, MFU extraction, payload-ID predicates,
107
+ declared-boundary rejection, C/X optional headers, and
108
+ ALTA/FEC suffix coverage. Downstream suites exercise integration only.
109
+
110
+ ## Related packages
111
+
112
+ | Package | Relationship |
113
+ |---------|-------------|
114
+ | [`@blockcast/mmt-alta-parse`](../mmt-alta-parse) | Only dependency — supplies the ALTA trailer types this package re-exports |
115
+ | [`@blockcast/mmt-fec`](../fec) | Imports these parsers in `block-processor` to turn decoded FEC blocks back into MFU fragments |
116
+ | [`@blockcast/mmt-container`](../container) | Imports these primitives directly and builds the `FecManager`, MFU reassembler, and CMAF demuxer on top |
117
+
118
+ ## License
119
+
120
+ Apache-2.0 — see `LICENSE`.
File without changes
@@ -0,0 +1,2 @@
1
+ export * from './mmtp.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './mmtp.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
package/dist/mmtp.d.ts ADDED
@@ -0,0 +1,271 @@
1
+ import { extractAltaTrailer as _leafExtractAltaTrailer, type AltaTrailer as _LeafAltaTrailer } from '@blockcast/mmt-alta-parse';
2
+ /**
3
+ * @mmt/container - MMTP Parser
4
+ *
5
+ * MMTP (MMT Protocol) packet parser based on ISO/IEC 23008-1:2023 Section 9.2
6
+ *
7
+ * MMTP header format (12 bytes):
8
+ * - Byte 0: V(2) | C(1) | FEC_type(2) | r(1) | X(1) | R(1)
9
+ * - Byte 1: reserved(2) | packet_type(6)
10
+ * - Bytes 2-3: packet_id (big-endian)
11
+ * - Bytes 4-7: timestamp (big-endian, 32-bit)
12
+ * - Bytes 8-11: sequence_number (big-endian)
13
+ *
14
+ * FEC_type values:
15
+ * - 0: No FEC / source packet
16
+ * - 1: FEC mode 0 (source with FEC payload ID)
17
+ * - 2: FEC repair packet mode 0
18
+ * - 3: FEC repair packet mode 1
19
+ *
20
+ * @packageDocumentation
21
+ */
22
+ export interface MMTPHeader {
23
+ version: number;
24
+ /** Packet type: 0x00=MPU, 0x02=Signaling, 0x03=Repair */
25
+ packetType: number;
26
+ packetId: number;
27
+ timestamp: bigint;
28
+ sequenceNumber: number;
29
+ payloadLength: number;
30
+ fecType: number;
31
+ /** C flag: header carries a 32-bit packet_counter. */
32
+ packetCounterFlag: boolean;
33
+ packetCounter?: number;
34
+ /** X flag: header carries an extension header and value. */
35
+ extensionFlag: boolean;
36
+ extension?: {
37
+ type: number;
38
+ data: Uint8Array;
39
+ };
40
+ /** Byte offset at which the MMTP payload begins. */
41
+ headerLength: number;
42
+ /** Random Access Point flag - indicates keyframe (ISO 23008-1, byte 0 bit 0) */
43
+ rapFlag: boolean;
44
+ }
45
+ export interface MPUHeader {
46
+ mpuSequenceNumber: number;
47
+ fragmentationIndicator: number;
48
+ /** 8-bit MPU fragment_counter from byte 3. */
49
+ fragmentCounter: number;
50
+ /** T flag: 1=timed media (14-byte MFU DU header), 0=non-timed (4-byte header) */
51
+ timedFlag: number;
52
+ /** A flag: aggregated MPU payload. This strict profile requires A=0. */
53
+ aggregationFlag: boolean;
54
+ /** MPU payload_length (bytes 0-1): bytes after the length field, including
55
+ * the remaining six MPU-header bytes and all data-unit bytes. */
56
+ payloadLength: number;
57
+ }
58
+ export interface MFUDuHeader {
59
+ movieFragmentSequenceNumber: number;
60
+ sampleNumber: number;
61
+ offset: number;
62
+ priority: number;
63
+ dependencyCounter: number;
64
+ }
65
+ export interface MMTPPacket {
66
+ header: MMTPHeader;
67
+ payload: Uint8Array;
68
+ }
69
+ export declare const MMTP_HEADER_SIZE = 12;
70
+ export declare const MPU_HEADER_SIZE = 8;
71
+ export declare const MFU_DU_HEADER_SIZE_TIMED = 14;
72
+ export declare const MFU_DU_HEADER_SIZE_NONTIMED = 4;
73
+ export declare const PACKET_TYPE_MPU = 0;
74
+ export declare const PACKET_TYPE_SIGNALING = 2;
75
+ export declare const PACKET_TYPE_REPAIR = 3;
76
+ export declare const ALFEC_MESSAGE_ID = 515;
77
+ export declare const FEC_CODE_XOR = 1;
78
+ export declare const FEC_CODE_RAPTORQ = 2;
79
+ /**
80
+ * Parse MMTP header from buffer
81
+ */
82
+ export declare function parseMMTPHeader(buffer: Uint8Array): MMTPHeader;
83
+ /**
84
+ * Unwrap MMTP packet to extract payload
85
+ */
86
+ export declare function unwrapMMTP(buffer: Uint8Array): MMTPPacket;
87
+ /**
88
+ * Parse MPU header from payload
89
+ * ISO/IEC 23008-1:2023 Section 9.2.3.3
90
+ *
91
+ * MPU Header format (8 bytes) as written by FFmpeg/libmmt:
92
+ * - Bytes 0-1: payload_length (16 bits, big-endian)
93
+ * - Byte 2: FT(4) | T(1) | FI(2) | A(1)
94
+ * - Byte 3: fragment_counter (8 bits)
95
+ * - Bytes 4-7: MPU_sequence_number (32 bits, big-endian)
96
+ */
97
+ export declare function parseMPUHeader(payload: Uint8Array): MPUHeader;
98
+ export declare function parseTimedMfuDuHeader(payload: Uint8Array, offset: number): MFUDuHeader | null;
99
+ /**
100
+ * Extract NAL unit payload from MMTP packet
101
+ */
102
+ export declare function extractNALUnit(mmtpPacket: Uint8Array): Uint8Array;
103
+ /** Result of extracting MFU payload from an MMTP packet */
104
+ export interface MFUExtraction {
105
+ /** MMTP header fields */
106
+ header: MMTPHeader;
107
+ /** MPU header fields */
108
+ mpu: MPUHeader;
109
+ /** Fragment type (FT field, 4 bits): 0=metadata, 2=MFU data */
110
+ fragmentType: number;
111
+ /** MFU payload data (video/audio bytes, headers stripped, FEC ID excluded) */
112
+ data: Uint8Array;
113
+ /** Parsed timed MFU DU header when present, otherwise null */
114
+ mfuDuHeader: MFUDuHeader | null;
115
+ /** Non-timed MFU Item_ID when the 4-byte DU header is present. */
116
+ itemId: number | null;
117
+ /** Source FEC Payload ID if present (`FEC_type == 1`), or null */
118
+ fecPayloadId: {
119
+ ssId: number;
120
+ } | null;
121
+ }
122
+ /**
123
+ * Extract MFU payload from a raw MMTP packet.
124
+ *
125
+ * Handles all the byte arithmetic for:
126
+ * - MMTP header (12 bytes)
127
+ * - MPU sub-header (8 bytes, payloadLength field)
128
+ * - MFU DU header (14 bytes timed / 4 bytes non-timed, only for FI ≤ 1)
129
+ * - Source FEC Payload ID (4 bytes at end, only when `FEC_type == 1`)
130
+ *
131
+ * `payloadLength` is the ISO length-after-field value: six remaining MPU-header
132
+ * bytes, then the MFU DU header when present, then media. ALTA and Source FEC
133
+ * trailers are outside that declared span and must consume the exact suffix.
134
+ *
135
+ * @param mmtpPacket Raw MMTP packet (from multicast or MoQ)
136
+ * @param options.skipFecId When true, do NOT subtract the 4-byte Source FEC Payload ID
137
+ * from the payload boundary, even if fecType >= 1 in the MMTP header. Use this for
138
+ * FEC-recovered symbols where the FEC PID was already stripped before WASM decoding
139
+ * but the fecType bits in byte 0 still reflect the original packet (FEC Type=1 per
140
+ * draft-ramadan-moq-mmt-00 §3.1).
141
+ * @returns Extracted MFU data + metadata, or null if packet is too small
142
+ */
143
+ export declare function extractMFUPayload(mmtpPacket: Uint8Array, options?: {
144
+ skipFecId?: boolean;
145
+ }): MFUExtraction | null;
146
+ /**
147
+ * Extract timestamp from MMTP packet
148
+ */
149
+ export declare function extractTimestamp(mmtpPacket: Uint8Array): bigint;
150
+ /**
151
+ * Check if MMTP packet is an FEC repair packet
152
+ * FEC_type 2 and 3 are repair packets
153
+ */
154
+ export declare function isFecRepairPacket(mmtpPacket: Uint8Array): boolean;
155
+ /**
156
+ * Extract Source FEC Payload ID (SS_ID) from the last 4 bytes of an MMTP
157
+ * source packet per ISO/IEC 23008-1:2023 Section C.5.2 Figure C.10.
158
+ *
159
+ * SS_ID is a flat 32-bit monotonic counter (incremented by 1 per packet
160
+ * for ssbg_mode0 and ssbg_mode1). Block membership and ESI are derived
161
+ * at recovery time from repair packet SS_Start and SSB_length:
162
+ * SBN = floor(SS_ID / K), ESI = SS_ID % K
163
+ * SS_Start = SBN * K (first SS_ID of the block)
164
+ *
165
+ * This matches FFmpeg moqenc_mmt.c, the drafts (draft-ramadan-moq-fec §6.2),
166
+ * and ATSC A/331 §8.1.2.5 which defers to ISO 23008-1 Annex C.
167
+ */
168
+ export declare function extractFecPayloadId(mmtpPacket: Uint8Array): {
169
+ ssId: number;
170
+ } | null;
171
+ /**
172
+ * Return true when FEC_type=1 and the exact suffix after the ISO-declared MPU
173
+ * payload contains a four-byte Source FEC Payload ID.
174
+ */
175
+ export declare function hasSourceFecPayloadId(mmtpPacket: Uint8Array): boolean;
176
+ /**
177
+ * MMTP header-extension ext_type assigned to the detached ALTA authenticator
178
+ * trailer (Path 2 / 08-07). Carried in an `[ext_type][ext_length][auth]`
179
+ * block appended after the MPU's declared payload bytes, before the 4-byte
180
+ * Source FEC Payload ID. MMTP X-bit stays 0 — non-ALTA MMTP receivers treat
181
+ * the trailer as bytes past `payload_length` and skip it (per ISO 23008-1
182
+ * §9.2.2 "may be discarded without impacting correct processing").
183
+ */
184
+ export declare const MMTP_EXT_TYPE_ALTA_AUTH = 61601;
185
+ export declare const MMTP_EXT_TRAILER_HEADER_SIZE = 4;
186
+ export type AltaTrailer = _LeafAltaTrailer;
187
+ export declare const extractAltaTrailer: typeof _leafExtractAltaTrailer;
188
+ /** Size of Repair FEC Payload ID per ISO/IEC 23008-1 Section C.5.3 */
189
+ export declare const REPAIR_FEC_PID_SIZE = 13;
190
+ /**
191
+ * Extract Repair FEC Payload ID from a raw-multicast MMTP repair packet.
192
+ * Per ISO/IEC 23008-1:2023 Section C.5.3 (ssbg_mode0, one-stage, no FFSRP_TS):
193
+ * [MMTP header][SS_Start:4][RSB_length:3][RS_ID:3][SSB_length:3][repair data]
194
+ * OTI is delivered via AL-FEC signaling message (Table C.3), not per-packet.
195
+ *
196
+ * Byte 1 is reserved(2)|packet_type(6) for V=0, so repair type 0x03 is 0x03.
197
+ * Pre-migration high-bits bytes (0x0c) are rejected — no compatibility decode.
198
+ */
199
+ export declare function extractRepairFecPayloadId(mmtpPacket: Uint8Array): {
200
+ ssStart: number;
201
+ rsbLength: number;
202
+ rsId: number;
203
+ ssbLength: number;
204
+ } | null;
205
+ /** Parsed MoQ repair frame per ISO/IEC 23008-1 Section C.4.3 + C.5.3 */
206
+ export interface MoqRepairFrame {
207
+ /** MMTP packetId (1=video, 2=audio) — for routing to correct FEC decoder */
208
+ packetId: number;
209
+ /** SS_Start (32 bits): SS_ID of first source symbol in block */
210
+ ssStart: number;
211
+ /** RSB_length (24 bits): number of repair symbols (P) */
212
+ rsbLength: number;
213
+ /** RS_ID (24 bits): repair symbol index (0-based) */
214
+ rsId: number;
215
+ /** SSB_length (24 bits): number of source symbols (K) */
216
+ ssbLength: number;
217
+ /** Repair symbol data after the dynamic MMTP header and 13-byte FEC payload ID. */
218
+ symbolData: Uint8Array;
219
+ }
220
+ /**
221
+ * Parse a MoQ repair frame (ISO/IEC 23008-1 Annex C format).
222
+ *
223
+ * Wire format per ISO 23008-1 §C.4.3 + §C.5.3:
224
+ * MMTP Header: fixed 12 bytes plus C/X optional fields
225
+ * then SS_Start (4 bytes) → block identifier
226
+ * then RSB_length (3 bytes) → P
227
+ * then RS_ID (3 bytes) → ESI = K + RS_ID
228
+ * then SSB_length (3 bytes) → K
229
+ * then Repair Symbol Data (T bytes)
230
+ *
231
+ * @param frame - Raw MoQ repair frame bytes
232
+ * @returns Parsed frame or null if invalid
233
+ */
234
+ export declare function parseMoqRepairFrame(frame: Uint8Array): MoqRepairFrame | null;
235
+ /**
236
+ * AL-FEC signaling configuration parsed from ISO/IEC 23008-1:2023 Table C.3 message.
237
+ */
238
+ export interface AlFecConfig {
239
+ fecCodeId: number;
240
+ fecPayloadIdMode: 0;
241
+ repairSymbolSize: number;
242
+ maximumK: number;
243
+ maximumP: number;
244
+ interleaveDepth: number;
245
+ oti: Uint8Array;
246
+ }
247
+ /**
248
+ * Parse AL-FEC signaling message from a full MMTP signaling packet.
249
+ *
250
+ * Wire format (ISO/IEC 23008-1:2023 Table C.3, Amendment 1:2025):
251
+ * [12-byte MMTP header (packet_type=0x02)]
252
+ * message_id(2) = 0x0203
253
+ * version(1)
254
+ * message_length(2) = length of remaining payload
255
+ * flags(1) = fec_flag(1) | private_fec_flag(1) | reserved(6)
256
+ * fec_flow_descriptor:
257
+ * length(2)
258
+ * num_flows(1)
259
+ * per flow:
260
+ * fec_flow_id(1), source_flow_id(1), num_assets(1), packet_ids(2*N),
261
+ * coding_params(1), repair_symbol_size(2),
262
+ * [one-stage]: repair_flow_id(2), fec_code_id(1),
263
+ * [private_fec_flag]: private_header(1){flag(1)|len(7)},
264
+ * current RaptorQ profile OTI(12) + interleave_depth(1)
265
+ * max_k(3), max_p(3), protection_window_time(4), protection_window_size(4)
266
+ *
267
+ * @param mmtpPacket Full MMTP packet including 12-byte header
268
+ * @returns Parsed config or null if not an AL-FEC signaling message
269
+ */
270
+ export declare function parseAlFecMessage(mmtpPacket: Uint8Array): AlFecConfig | null;
271
+ //# sourceMappingURL=mmtp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mmtp.d.ts","sourceRoot":"","sources":["../src/mmtp.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,kBAAkB,IAAI,uBAAuB,EAC7C,KAAK,WAAW,IAAI,gBAAgB,EACrC,MAAM,2BAA2B,CAAA;AAElC;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;I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