@agoric/internal 0.3.3-upgrade-18-dev-6ddbef0.0 → 0.3.3-upgrade-19-dev-c605745.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 +4 -4
- package/package.json +16 -15
- package/src/action-types.d.ts +49 -5
- package/src/action-types.d.ts.map +1 -1
- package/src/action-types.js +74 -17
- package/src/batched-deliver.d.ts.map +1 -1
- package/src/callback.d.ts +1 -1
- package/src/callback.d.ts.map +1 -1
- package/src/chain-storage-paths.d.ts.map +1 -1
- package/src/chain-utils.d.ts +25 -0
- package/src/chain-utils.d.ts.map +1 -0
- package/src/chain-utils.js +57 -0
- package/src/errors.d.ts +1 -1
- package/src/errors.d.ts.map +1 -1
- package/src/index.d.ts +3 -1
- package/src/index.js +3 -1
- package/src/js-utils.d.ts +14 -0
- package/src/js-utils.d.ts.map +1 -0
- package/src/js-utils.js +102 -0
- package/src/lib-chainStorage.d.ts +1 -23
- package/src/lib-chainStorage.d.ts.map +1 -1
- package/src/lib-nodejs/ava-unhandled-rejection.d.ts +13 -0
- package/src/lib-nodejs/ava-unhandled-rejection.d.ts.map +1 -0
- package/src/lib-nodejs/ava-unhandled-rejection.js +66 -0
- package/src/lib-nodejs/engine-gc.d.ts +1 -1
- package/src/marshal.d.ts +8 -2
- package/src/marshal.d.ts.map +1 -1
- package/src/marshal.js +7 -0
- package/src/natural-sort.d.ts +2 -0
- package/src/natural-sort.d.ts.map +1 -0
- package/src/natural-sort.js +48 -0
- package/src/netstring.d.ts +2 -2
- package/src/netstring.d.ts.map +1 -1
- package/src/netstring.js +1 -0
- package/src/node/buffer-line-transform.d.ts +3 -3
- package/src/node/buffer-line-transform.d.ts.map +1 -1
- package/src/node/fs-stream.js +2 -2
- package/src/node/shutdown.d.ts.map +1 -1
- package/src/node/shutdown.js +0 -1
- package/src/priority-senders.d.ts +1 -0
- package/src/priority-senders.d.ts.map +1 -1
- package/src/priority-senders.js +3 -0
- package/src/queue.d.ts +1 -1
- package/src/queue.d.ts.map +1 -1
- package/src/{utils.d.ts → ses-utils.d.ts} +3 -8
- package/src/ses-utils.d.ts.map +1 -0
- package/src/{utils.js → ses-utils.js} +16 -72
- package/src/storage-test-utils.d.ts +12 -4
- package/src/storage-test-utils.d.ts.map +1 -1
- package/src/storage-test-utils.js +81 -16
- package/src/tagged.d.ts +4 -1
- package/src/testing-utils.js +1 -1
- package/src/tokens.d.ts.map +1 -1
- package/src/typeGuards.d.ts +15 -0
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +12 -0
- package/src/types.d.ts +1 -1
- package/src/types.d.ts.map +1 -1
- package/src/types.ts +1 -1
- package/src/utils.d.ts.map +0 -1
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
import { Fail } from '@endo/errors';
|
|
3
3
|
import { Far } from '@endo/far';
|
|
4
4
|
import { makeMarshal, Remotable } from '@endo/marshal';
|
|
5
|
-
import { unmarshalFromVstorage } from './marshal.js';
|
|
6
5
|
import { makeTracer } from './debug.js';
|
|
6
|
+
import { NonNullish } from './errors.js';
|
|
7
7
|
import { isStreamCell, makeChainStorageRoot } from './lib-chainStorage.js';
|
|
8
|
+
import { unmarshalFromVstorage } from './marshal.js';
|
|
8
9
|
import { bindAllMethods } from './method-tools.js';
|
|
9
10
|
import { eventLoopIteration } from './testing-utils.js';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* @import {TotalMap} from './types.js';
|
|
13
|
-
* @import {Marshaller, StorageEntry, StorageMessage, StorageNode} from './lib-chainStorage.js';
|
|
14
|
+
* @import {Marshaller, StorageEntry, StorageMessage, StorageNode, StreamCell} from './lib-chainStorage.js';
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
const trace = makeTracer('StorTU', false);
|
|
@@ -33,6 +34,16 @@ export const defaultMarshaller = makeMarshal(undefined, slotToRemotable, {
|
|
|
33
34
|
serializeBodyFormat: 'smallcaps',
|
|
34
35
|
});
|
|
35
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Serialize/deserialize functions using {@link defaultMarshaller}
|
|
39
|
+
*/
|
|
40
|
+
export const defaultSerializer = {
|
|
41
|
+
/** @type {(text: string) => unknown} */
|
|
42
|
+
parse: txt => defaultMarshaller.fromCapData(JSON.parse(txt)),
|
|
43
|
+
/** @type {(obj: any) => string} */
|
|
44
|
+
stringify: obj => JSON.stringify(defaultMarshaller.toCapData(obj)),
|
|
45
|
+
};
|
|
46
|
+
|
|
36
47
|
/**
|
|
37
48
|
* A deserializer which produces slot strings instead of Remotables, so if `a =
|
|
38
49
|
* Far('iface')`, and serializing `{ a }` into `capData` assigned it slot
|
|
@@ -89,6 +100,14 @@ export const makeFakeStorageKit = (rootPath, rootOptions) => {
|
|
|
89
100
|
const resolvedOptions = { sequence: true, ...rootOptions };
|
|
90
101
|
/** @type {TotalMap<string, string>} */
|
|
91
102
|
const data = new Map();
|
|
103
|
+
let currentBlockHeight = 0;
|
|
104
|
+
|
|
105
|
+
const updateNewCellBlockHeight = (blockHeight = currentBlockHeight + 1) => {
|
|
106
|
+
blockHeight > currentBlockHeight ||
|
|
107
|
+
Fail`blockHeight ${blockHeight} must be greater than ${currentBlockHeight}`;
|
|
108
|
+
currentBlockHeight = blockHeight;
|
|
109
|
+
};
|
|
110
|
+
|
|
92
111
|
/** @param {string} prefix */
|
|
93
112
|
const getChildEntries = prefix => {
|
|
94
113
|
assert(prefix.endsWith('.'));
|
|
@@ -147,7 +166,7 @@ export const makeFakeStorageKit = (rootPath, rootOptions) => {
|
|
|
147
166
|
data.delete(key);
|
|
148
167
|
}
|
|
149
168
|
}
|
|
150
|
-
|
|
169
|
+
return true;
|
|
151
170
|
}
|
|
152
171
|
case 'append': {
|
|
153
172
|
trace('toStorage append', message);
|
|
@@ -155,8 +174,10 @@ export const makeFakeStorageKit = (rootPath, rootOptions) => {
|
|
|
155
174
|
const newEntries = message.args;
|
|
156
175
|
for (const [key, value] of newEntries) {
|
|
157
176
|
value != null || Fail`attempt to append with no value`;
|
|
158
|
-
|
|
159
|
-
|
|
177
|
+
|
|
178
|
+
/** @type {string | undefined} */
|
|
179
|
+
let oldVal = data.get(key);
|
|
180
|
+
/** @type {StreamCell | undefined} */
|
|
160
181
|
let streamCell;
|
|
161
182
|
if (oldVal != null) {
|
|
162
183
|
try {
|
|
@@ -165,17 +186,26 @@ export const makeFakeStorageKit = (rootPath, rootOptions) => {
|
|
|
165
186
|
} catch (_err) {
|
|
166
187
|
streamCell = undefined;
|
|
167
188
|
}
|
|
189
|
+
// StreamCells reset at block boundaries.
|
|
190
|
+
if (
|
|
191
|
+
streamCell &&
|
|
192
|
+
Number(streamCell.blockHeight) !== currentBlockHeight
|
|
193
|
+
) {
|
|
194
|
+
streamCell = undefined;
|
|
195
|
+
oldVal = undefined;
|
|
196
|
+
}
|
|
168
197
|
}
|
|
198
|
+
|
|
169
199
|
if (streamCell === undefined) {
|
|
170
200
|
streamCell = {
|
|
171
|
-
blockHeight:
|
|
201
|
+
blockHeight: String(currentBlockHeight),
|
|
172
202
|
values: oldVal != null ? [oldVal] : [],
|
|
173
203
|
};
|
|
174
204
|
}
|
|
175
205
|
streamCell.values.push(value);
|
|
176
206
|
data.set(key, JSON.stringify(streamCell));
|
|
177
207
|
}
|
|
178
|
-
|
|
208
|
+
return true;
|
|
179
209
|
}
|
|
180
210
|
case 'size':
|
|
181
211
|
// Intentionally incorrect because it counts non-child descendants,
|
|
@@ -189,10 +219,27 @@ export const makeFakeStorageKit = (rootPath, rootOptions) => {
|
|
|
189
219
|
},
|
|
190
220
|
);
|
|
191
221
|
const rootNode = makeChainStorageRoot(toStorage, rootPath, resolvedOptions);
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Get the values at a sequence node
|
|
225
|
+
*
|
|
226
|
+
* @param {string} path
|
|
227
|
+
* @returns {string[]}
|
|
228
|
+
*/
|
|
229
|
+
const getValues = path => {
|
|
230
|
+
assert(resolvedOptions.sequence);
|
|
231
|
+
const nodeData = data.get(path);
|
|
232
|
+
assert(nodeData, `no data at path ${path}`);
|
|
233
|
+
const wrapper = JSON.parse(nodeData);
|
|
234
|
+
return wrapper.values;
|
|
235
|
+
};
|
|
236
|
+
|
|
192
237
|
return {
|
|
193
238
|
rootNode,
|
|
194
239
|
// eslint-disable-next-line object-shorthand
|
|
195
240
|
data: /** @type {Map<string, string>} */ (data),
|
|
241
|
+
updateNewCellBlockHeight,
|
|
242
|
+
getValues,
|
|
196
243
|
messages,
|
|
197
244
|
toStorage,
|
|
198
245
|
};
|
|
@@ -250,30 +297,48 @@ export const makeMockChainStorageRoot = () => {
|
|
|
250
297
|
* @param {import('ava').ExecutionContext<unknown>} t
|
|
251
298
|
* @param {MockChainStorageRoot | FakeStorageKit} storage
|
|
252
299
|
* @param {({ note: string } | { node: string; owner: string }) &
|
|
253
|
-
* ({ pattern: string; replacement: string } | {})
|
|
300
|
+
* ({ pattern: string; replacement: string } | {}) & {
|
|
301
|
+
* showValue?: (v: string) => unknown;
|
|
302
|
+
* }} opts
|
|
254
303
|
*/
|
|
255
304
|
export const documentStorageSchema = async (t, storage, opts) => {
|
|
256
305
|
// chainStorage publication is unsynchronized
|
|
257
306
|
await eventLoopIteration();
|
|
258
307
|
|
|
308
|
+
const getLast = (/** @type {string} */ cell) =>
|
|
309
|
+
JSON.parse(cell).values.at(-1) || assert.fail();
|
|
310
|
+
const { showValue = s => s } = opts;
|
|
311
|
+
/** @type {(d: Map<string, string>, k: string) => unknown} */
|
|
312
|
+
const getBodyDefault = (d, k) => showValue(getLast(NonNullish(d.get(k))));
|
|
313
|
+
|
|
259
314
|
const [keys, getBody] =
|
|
260
315
|
'keys' in storage
|
|
261
316
|
? [storage.keys(), (/** @type {string} */ k) => storage.getBody(k)]
|
|
262
|
-
: [
|
|
317
|
+
: [
|
|
318
|
+
storage.data.keys(),
|
|
319
|
+
(/** @type {string} */ k) => getBodyDefault(storage.data, k),
|
|
320
|
+
];
|
|
263
321
|
|
|
264
322
|
const { pattern, replacement } =
|
|
265
323
|
'pattern' in opts
|
|
266
324
|
? opts
|
|
267
325
|
: { pattern: 'mockChainStorageRoot.', replacement: 'published.' };
|
|
268
|
-
|
|
326
|
+
|
|
327
|
+
const pruned = [...keys]
|
|
328
|
+
.sort()
|
|
329
|
+
.filter(
|
|
330
|
+
'node' in opts
|
|
331
|
+
? key =>
|
|
332
|
+
key
|
|
333
|
+
.replace(pattern, replacement)
|
|
334
|
+
.startsWith(`published.${opts.node}`)
|
|
335
|
+
: _entry => true,
|
|
336
|
+
);
|
|
337
|
+
|
|
338
|
+
const illustration = pruned.map(
|
|
269
339
|
/** @type {(k: string) => [string, unknown]} */
|
|
270
340
|
key => [key.replace(pattern, replacement), getBody(key)],
|
|
271
341
|
);
|
|
272
|
-
const pruned = illustration.filter(
|
|
273
|
-
'node' in opts
|
|
274
|
-
? ([key, _]) => key.startsWith(`published.${opts.node}`)
|
|
275
|
-
: _entry => true,
|
|
276
|
-
);
|
|
277
342
|
|
|
278
343
|
const note =
|
|
279
344
|
'note' in opts
|
|
@@ -283,5 +348,5 @@ export const documentStorageSchema = async (t, storage, opts) => {
|
|
|
283
348
|
The example below illustrates the schema of the data published there.
|
|
284
349
|
|
|
285
350
|
See also board marshalling conventions (_to appear_).`;
|
|
286
|
-
t.snapshot(
|
|
351
|
+
t.snapshot(illustration, note + boilerplate);
|
|
287
352
|
};
|
package/src/tagged.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/** @file adapted from https://raw.githubusercontent.com/sindresorhus/type-fest/main/source/
|
|
1
|
+
/** @file adapted from https://raw.githubusercontent.com/sindresorhus/type-fest/main/source/tagged.d.ts */
|
|
2
|
+
|
|
3
|
+
// different name to avoid confusion with pass-style "tagged"
|
|
4
|
+
export { Tagged as TypeTag };
|
|
2
5
|
|
|
3
6
|
declare const tag: unique symbol;
|
|
4
7
|
|
package/src/testing-utils.js
CHANGED
|
@@ -28,7 +28,7 @@ const stringOrTag = value => {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* @param {MapStore} store
|
|
31
|
-
* @returns {object} tree of the contents of the
|
|
31
|
+
* @returns {object} tree of the contents of the store
|
|
32
32
|
*/
|
|
33
33
|
export const inspectMapStore = store => {
|
|
34
34
|
/** @type {Record<string, unknown>} */
|
package/src/tokens.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["tokens.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;2BAEc,KAAK,GAAG,KAAK;AAA3B,4CAA4C;AAE5C;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["tokens.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;2BAEc,KAAK,GAAG,KAAK;AAA3B,4CAA4C;AAE5C;;;GAGG;AACH,mBAAY,KAAK,CAAC"}
|
package/src/typeGuards.d.ts
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
export const StorageNodeShape: import("@endo/patterns").Matcher;
|
|
2
2
|
/** To be used only for 'helper' facets where the calls are from trusted code. */
|
|
3
3
|
export const UnguardedHelperI: import("@endo/patterns").InterfaceGuard<any>;
|
|
4
|
+
/**
|
|
5
|
+
* @typedef {number | `${bigint}`} BridgeBigInt Ensure that callees passed a
|
|
6
|
+
* bridge message that was serialised from a Golang int64 or uint64 accept
|
|
7
|
+
* either a JS number or a stringified JS bigint.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @type {import('./types.js').TypedPattern<BridgeBigInt>}
|
|
11
|
+
*/
|
|
12
|
+
export const BridgeBigIntShape: import("./types.js").TypedPattern<BridgeBigInt>;
|
|
13
|
+
/**
|
|
14
|
+
* Ensure that callees passed a
|
|
15
|
+
* bridge message that was serialised from a Golang int64 or uint64 accept
|
|
16
|
+
* either a JS number or a stringified JS bigint.
|
|
17
|
+
*/
|
|
18
|
+
export type BridgeBigInt = number | `${bigint}`;
|
|
4
19
|
//# sourceMappingURL=typeGuards.d.ts.map
|
package/src/typeGuards.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAKA,gEAA2D;AAE3D,iFAAiF;AACjF,4EAKE;AAEF;;;;GAIG;AAEH;;GAEG;AACH,gCAFU,OAAO,YAAY,EAAE,YAAY,CAAC,YAAY,CAAC,CAEK;;;;;;2BARjD,MAAM,GAAG,GAAG,MAAM,EAAE"}
|
package/src/typeGuards.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
|
+
// @ts-check
|
|
2
3
|
|
|
3
4
|
import { M } from '@endo/patterns';
|
|
4
5
|
|
|
@@ -11,3 +12,14 @@ export const UnguardedHelperI = M.interface(
|
|
|
11
12
|
// not exposed so sloppy okay
|
|
12
13
|
{ sloppy: true },
|
|
13
14
|
);
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @typedef {number | `${bigint}`} BridgeBigInt Ensure that callees passed a
|
|
18
|
+
* bridge message that was serialised from a Golang int64 or uint64 accept
|
|
19
|
+
* either a JS number or a stringified JS bigint.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @type {import('./types.js').TypedPattern<BridgeBigInt>}
|
|
24
|
+
*/
|
|
25
|
+
export const BridgeBigIntShape = M.or(M.number(), M.string());
|
package/src/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ERef, RemotableBrand } from '@endo/eventual-send';
|
|
2
2
|
import type { Primitive } from '@endo/pass-style';
|
|
3
3
|
import type { Pattern } from '@endo/patterns';
|
|
4
|
-
import type { Callable } from './utils.js';
|
|
4
|
+
import type { Callable } from './ses-utils.js';
|
|
5
5
|
/**
|
|
6
6
|
* A map corresponding with a total function such that `get(key)` is assumed to
|
|
7
7
|
* always succeed.
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;;GAGG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG;IACpD,6EAA6E;IAC7E,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,IAC9C,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC;AAE3D,MAAM,CAAC,OAAO,OAAO,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,G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;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,OAAO,GAAG;IAAE,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC;AAEhE,MAAM,CAAC,OAAO,MAAM,WAAW,CAAC,EAAE,SAAS,YAAY,CAAC,GAAG,CAAC,IAC1D,EAAE,SAAS,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAG/C;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,MAAM,SAAS,GAAG,CAAC,CAAC,SAAS,OAAO,EAChD,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,CAAC,EACV,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,KACpB,OAAO,CAAC,QAAQ,IAAI,CAAC,SAAS,YAAY,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC"}
|
package/src/types.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { ERef, RemotableBrand } from '@endo/eventual-send';
|
|
3
3
|
import type { Primitive } from '@endo/pass-style';
|
|
4
4
|
import type { Pattern } from '@endo/patterns';
|
|
5
|
-
import type { Callable } from './utils.js';
|
|
5
|
+
import type { Callable } from './ses-utils.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A map corresponding with a total function such that `get(key)` is assumed to
|
package/src/utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAWA,kCAAoC;AAEpC,sCAAsC;AAEtC;;;;;GAKG;AAEH;;GAEG;AAEH;;;;;GAKG;AAEH;;;;;;;GAOG;AAEH;;;;;;GAMG;AACH,oCAFU,CAAC,CAAY,SAAF,EAAE,EAAE,gBAAgB,EAAE,CAAC,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAKxE;AAgDK,mCAJI,MAAM,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