jazz-tools 0.7.0-alpha.2 → 0.7.0-alpha.20
Sign up to get free protection for your applications and to get access to all the features.
- package/.turbo/turbo-build.log +84 -9
- package/CHANGELOG.md +110 -0
- package/dist/coValues/account.js +66 -33
- package/dist/coValues/account.js.map +1 -1
- package/dist/coValues/coList.js +147 -97
- package/dist/coValues/coList.js.map +1 -1
- package/dist/coValues/coMap.js +151 -164
- package/dist/coValues/coMap.js.map +1 -1
- package/dist/coValues/coStream.js +176 -70
- package/dist/coValues/coStream.js.map +1 -1
- package/dist/coValues/extensions/imageDef.js +10 -7
- package/dist/coValues/extensions/imageDef.js.map +1 -1
- package/dist/coValues/group.js +13 -35
- package/dist/coValues/group.js.map +1 -1
- package/dist/coValues/interfaces.js +6 -3
- package/dist/coValues/interfaces.js.map +1 -1
- package/dist/implementation/refs.js +13 -10
- package/dist/implementation/refs.js.map +1 -1
- package/dist/implementation/schema.js +36 -1
- package/dist/implementation/schema.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/tests/coList.test.js +5 -9
- package/dist/tests/coList.test.js.map +1 -1
- package/dist/tests/coMap.test.js +108 -38
- package/dist/tests/coMap.test.js.map +1 -1
- package/dist/tests/coStream.test.js +46 -51
- package/dist/tests/coStream.test.js.map +1 -1
- package/package.json +5 -4
- package/src/coValues/account.ts +98 -68
- package/src/coValues/coList.ts +188 -120
- package/src/coValues/coMap.ts +232 -276
- package/src/coValues/coStream.ts +265 -124
- package/src/coValues/extensions/imageDef.ts +7 -12
- package/src/coValues/group.ts +33 -80
- package/src/coValues/interfaces.ts +12 -10
- package/src/implementation/refs.ts +45 -18
- package/src/implementation/schema.ts +86 -31
- package/src/index.ts +10 -8
- package/src/tests/coList.test.ts +5 -9
- package/src/tests/coMap.test.ts +89 -53
- package/src/tests/coStream.test.ts +61 -66
package/.turbo/turbo-build.log
CHANGED
@@ -1,24 +1,99 @@
|
|
1
1
|
|
2
|
-
> jazz-
|
2
|
+
> jazz-tools@0.7.0-alpha.17 build /Users/anselm/jazz/jazz/packages/jazz-tools
|
3
3
|
> npm run lint && rm -rf ./dist && tsc --sourceMap --outDir dist
|
4
4
|
|
5
5
|
|
6
|
-
> jazz-
|
6
|
+
> jazz-tools@0.7.0-alpha.17 lint
|
7
7
|
> eslint src/**/*.ts
|
8
8
|
|
9
9
|
|
10
|
-
/Users/anselm/jazz/jazz/packages/jazz-
|
11
|
-
|
10
|
+
/Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/account.ts
|
11
|
+
48:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
12
|
+
59:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
13
|
+
97:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
14
|
+
106:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
15
|
+
180:11 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
16
|
+
239:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
17
|
+
257:67 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
18
|
+
260:67 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
19
|
+
311:12 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
20
|
+
317:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
21
|
+
317:39 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
22
|
+
|
23
|
+
/Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/coList.ts
|
24
|
+
31:62 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
25
|
+
35:56 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
26
|
+
57:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
27
|
+
89:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
28
|
+
107:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
29
|
+
233:71 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
30
|
+
238:75 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
31
|
+
271:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
32
|
+
|
33
|
+
/Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/coMap.ts
|
34
|
+
28:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
35
|
+
28:68 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
36
|
+
56:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
37
|
+
57:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
38
|
+
91:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
39
|
+
110:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
40
|
+
163:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
41
|
+
204:44 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
42
|
+
222:56 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
43
|
+
248:38 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
44
|
+
275:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
45
|
+
|
46
|
+
/Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/coStream.ts
|
47
|
+
47:66 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
48
|
+
51:58 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
49
|
+
68:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
50
|
+
87:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
51
|
+
167:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
52
|
+
288:73 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
53
|
+
386:73 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
54
|
+
|
55
|
+
/Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/group.ts
|
56
|
+
33:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
57
|
+
48:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
58
|
+
79:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
59
|
+
86:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
60
|
+
91:23 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
61
|
+
|
62
|
+
/Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/interfaces.ts
|
63
|
+
15:19 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
64
|
+
18:71 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
65
|
+
57:62 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
66
|
+
73:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
67
|
+
75:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
68
|
+
78:34 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
69
|
+
81:39 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
70
|
+
105:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
71
|
+
207:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
72
|
+
|
73
|
+
/Users/anselm/jazz/jazz/packages/jazz-tools/src/implementation/schema.ts
|
74
|
+
33:61 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
75
|
+
36:61 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
76
|
+
39:71 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
77
|
+
44:58 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
78
|
+
70:68 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
79
|
+
79:5 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
80
|
+
80:5 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
81
|
+
84:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
82
|
+
85:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
83
|
+
119:11 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
84
|
+
124:7 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
85
|
+
|
86
|
+
/Users/anselm/jazz/jazz/packages/jazz-tools/src/implementation/subscriptionScope.ts
|
87
|
+
6:23 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
12
88
|
|
13
|
-
/Users/anselm/jazz/jazz/packages/jazz-
|
89
|
+
/Users/anselm/jazz/jazz/packages/jazz-tools/src/tests/coList.test.ts
|
14
90
|
0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
|
15
91
|
|
16
|
-
/Users/anselm/jazz/jazz/packages/jazz-
|
92
|
+
/Users/anselm/jazz/jazz/packages/jazz-tools/src/tests/coMap.test.ts
|
17
93
|
0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
|
18
94
|
|
19
|
-
/Users/anselm/jazz/jazz/packages/jazz-
|
95
|
+
/Users/anselm/jazz/jazz/packages/jazz-tools/src/tests/coStream.test.ts
|
20
96
|
0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
|
21
97
|
|
22
|
-
✖
|
98
|
+
✖ 66 problems (0 errors, 66 warnings)
|
23
99
|
|
24
|
-
ELIFECYCLE Command failed.
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,115 @@
|
|
1
1
|
# jazz-autosub
|
2
2
|
|
3
|
+
## 0.7.0-alpha.20
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Make fast-check a direct dependency to help dev time resolution
|
8
|
+
|
9
|
+
## 0.7.0-alpha.19
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- More precise imports from @effect/schema
|
14
|
+
|
15
|
+
## 0.7.0-alpha.17
|
16
|
+
|
17
|
+
### Patch Changes
|
18
|
+
|
19
|
+
- Use effect 3.0
|
20
|
+
|
21
|
+
## 0.7.0-alpha.16
|
22
|
+
|
23
|
+
### Patch Changes
|
24
|
+
|
25
|
+
- Make CoMaps even more subclassable
|
26
|
+
|
27
|
+
## 0.7.0-alpha.15
|
28
|
+
|
29
|
+
### Patch Changes
|
30
|
+
|
31
|
+
- More superclass-compatible CoMaps
|
32
|
+
|
33
|
+
## 0.7.0-alpha.14
|
34
|
+
|
35
|
+
### Patch Changes
|
36
|
+
|
37
|
+
- Fix CoStream types
|
38
|
+
|
39
|
+
## 0.7.0-alpha.13
|
40
|
+
|
41
|
+
### Patch Changes
|
42
|
+
|
43
|
+
- Add .all to CoStreamEntry
|
44
|
+
|
45
|
+
## 0.7.0-alpha.12
|
46
|
+
|
47
|
+
### Patch Changes
|
48
|
+
|
49
|
+
- Fix variance of ID.\_\_type
|
50
|
+
|
51
|
+
## 0.7.0-alpha.11
|
52
|
+
|
53
|
+
### Patch Changes
|
54
|
+
|
55
|
+
- Support stricter TS lint rules
|
56
|
+
- Updated dependencies
|
57
|
+
- cojson@0.7.0-alpha.11
|
58
|
+
|
59
|
+
## 0.7.0-alpha.10
|
60
|
+
|
61
|
+
### Patch Changes
|
62
|
+
|
63
|
+
- Clean up API more & re-add jazz-nodejs
|
64
|
+
- Updated dependencies
|
65
|
+
- cojson@0.7.0-alpha.10
|
66
|
+
|
67
|
+
## 0.7.0-alpha.9
|
68
|
+
|
69
|
+
### Patch Changes
|
70
|
+
|
71
|
+
- Even friendlier for subclassing CoMap
|
72
|
+
|
73
|
+
## 0.7.0-alpha.8
|
74
|
+
|
75
|
+
### Patch Changes
|
76
|
+
|
77
|
+
- More subclass-friendly types in CoMap
|
78
|
+
|
79
|
+
## 0.7.0-alpha.7
|
80
|
+
|
81
|
+
### Patch Changes
|
82
|
+
|
83
|
+
- Consistent proxy based API
|
84
|
+
- Updated dependencies
|
85
|
+
- cojson@0.7.0-alpha.7
|
86
|
+
|
87
|
+
## 0.7.0-alpha.6
|
88
|
+
|
89
|
+
### Patch Changes
|
90
|
+
|
91
|
+
- CoMap fix
|
92
|
+
|
93
|
+
## 0.7.0-alpha.5
|
94
|
+
|
95
|
+
### Patch Changes
|
96
|
+
|
97
|
+
- Refactoring
|
98
|
+
- Updated dependencies
|
99
|
+
- cojson@0.7.0-alpha.5
|
100
|
+
|
101
|
+
## 0.7.0-alpha.4
|
102
|
+
|
103
|
+
### Patch Changes
|
104
|
+
|
105
|
+
- Make refs on list more precise
|
106
|
+
|
107
|
+
## 0.7.0-alpha.3
|
108
|
+
|
109
|
+
### Patch Changes
|
110
|
+
|
111
|
+
- Make refs type more precise
|
112
|
+
|
3
113
|
## 0.7.0-alpha.2
|
4
114
|
|
5
115
|
### Patch Changes
|
package/dist/coValues/account.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
var _a;
|
2
2
|
import { LocalNode } from "cojson";
|
3
3
|
import { Context } from "effect";
|
4
|
-
import { CoValueBase, Profile,
|
4
|
+
import { CoValueBase, Profile, Ref, SchemaInit, inspect, subscriptionsScopes, } from "../internal.js";
|
5
5
|
export class Account extends CoValueBase {
|
6
|
-
get
|
7
|
-
return this.constructor.
|
6
|
+
get _schema() {
|
7
|
+
return this.constructor._schema;
|
8
8
|
}
|
9
9
|
get _owner() {
|
10
10
|
return this;
|
@@ -18,12 +18,13 @@ export class Account extends CoValueBase {
|
|
18
18
|
const profileID = this._raw.get("profile");
|
19
19
|
const rootID = this._raw.get("root");
|
20
20
|
return {
|
21
|
-
profile: profileID &&
|
21
|
+
profile: profileID &&
|
22
|
+
new Ref(profileID, this._loadedAs, this._schema.profile),
|
22
23
|
root: rootID &&
|
23
|
-
new
|
24
|
+
new Ref(rootID, this._loadedAs, this._schema.root),
|
24
25
|
};
|
25
26
|
}
|
26
|
-
constructor(
|
27
|
+
constructor(_init, options) {
|
27
28
|
super();
|
28
29
|
this.acceptInvite = (async (valueID, inviteSecret, coValueClass) => {
|
29
30
|
if (!this.isMe) {
|
@@ -44,33 +45,12 @@ export class Account extends CoValueBase {
|
|
44
45
|
enumerable: false,
|
45
46
|
},
|
46
47
|
_raw: { value: options.fromRaw, enumerable: false },
|
47
|
-
profile: {
|
48
|
-
get: () => {
|
49
|
-
const ref = this._refs.profile;
|
50
|
-
return ref ? ref.accessFrom(this) : undefined;
|
51
|
-
},
|
52
|
-
set: (value) => {
|
53
|
-
if (value) {
|
54
|
-
this._raw.set("profile", value.id);
|
55
|
-
}
|
56
|
-
},
|
57
|
-
},
|
58
|
-
root: {
|
59
|
-
get: () => {
|
60
|
-
const ref = this._refs.root;
|
61
|
-
return ref ? ref.accessFrom(this) : undefined;
|
62
|
-
},
|
63
|
-
set: (value) => {
|
64
|
-
if (value) {
|
65
|
-
this._raw.set("root", value.id);
|
66
|
-
}
|
67
|
-
},
|
68
|
-
},
|
69
48
|
});
|
70
49
|
if (this.isMe) {
|
71
50
|
this.sessionID =
|
72
51
|
options.fromRaw.core.node.currentSessionID;
|
73
52
|
}
|
53
|
+
return new Proxy(this, AccountAndGroupProxyHandler);
|
74
54
|
}
|
75
55
|
myRole() {
|
76
56
|
if (this.isMe) {
|
@@ -118,18 +98,71 @@ export class Account extends CoValueBase {
|
|
118
98
|
[inspect]() {
|
119
99
|
return this.toJSON();
|
120
100
|
}
|
121
|
-
static encoding(fields) {
|
122
|
-
this._encoding || (this._encoding = {});
|
123
|
-
Object.assign(this._encoding, fields);
|
124
|
-
}
|
125
101
|
}
|
126
102
|
_a = Account;
|
127
103
|
(() => {
|
128
|
-
_a.
|
104
|
+
_a._schema = {
|
129
105
|
profile: { ref: () => Profile },
|
130
106
|
root: { json: true },
|
131
107
|
};
|
132
108
|
})();
|
109
|
+
export const AccountAndGroupProxyHandler = {
|
110
|
+
get(target, key, receiver) {
|
111
|
+
if (key === "profile") {
|
112
|
+
const ref = target._refs.profile;
|
113
|
+
return ref ? ref.accessFrom(receiver) : undefined;
|
114
|
+
}
|
115
|
+
else if (key === "root") {
|
116
|
+
const ref = target._refs.root;
|
117
|
+
return ref ? ref.accessFrom(receiver) : undefined;
|
118
|
+
}
|
119
|
+
else {
|
120
|
+
return Reflect.get(target, key, receiver);
|
121
|
+
}
|
122
|
+
},
|
123
|
+
set(target, key, value, receiver) {
|
124
|
+
var _b;
|
125
|
+
if ((key === "profile" || key === "root") &&
|
126
|
+
typeof value === "object" &&
|
127
|
+
SchemaInit in value) {
|
128
|
+
(_b = target.constructor)._schema || (_b._schema = {});
|
129
|
+
target.constructor._schema[key] =
|
130
|
+
value[SchemaInit];
|
131
|
+
return true;
|
132
|
+
}
|
133
|
+
else if (key === "profile") {
|
134
|
+
if (value) {
|
135
|
+
target._raw.set("profile", value.id);
|
136
|
+
}
|
137
|
+
subscriptionsScopes.get(receiver)?.onRefAccessedOrSet(value.id);
|
138
|
+
return true;
|
139
|
+
}
|
140
|
+
else if (key === "root") {
|
141
|
+
if (value) {
|
142
|
+
target._raw.set("root", value.id);
|
143
|
+
}
|
144
|
+
subscriptionsScopes.get(receiver)?.onRefAccessedOrSet(value.id);
|
145
|
+
return true;
|
146
|
+
}
|
147
|
+
else {
|
148
|
+
return Reflect.set(target, key, value, receiver);
|
149
|
+
}
|
150
|
+
},
|
151
|
+
defineProperty(target, key, descriptor) {
|
152
|
+
var _b;
|
153
|
+
if ((key === "profile" || key === "root") &&
|
154
|
+
typeof descriptor.value === "object" &&
|
155
|
+
SchemaInit in descriptor.value) {
|
156
|
+
(_b = target.constructor)._schema || (_b._schema = {});
|
157
|
+
target.constructor._schema[key] =
|
158
|
+
descriptor.value[SchemaInit];
|
159
|
+
return true;
|
160
|
+
}
|
161
|
+
else {
|
162
|
+
return Reflect.defineProperty(target, key, descriptor);
|
163
|
+
}
|
164
|
+
},
|
165
|
+
};
|
133
166
|
export class AccountCtx extends Context.Tag("Account")() {
|
134
167
|
}
|
135
168
|
export function isControlledAccount(account) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/coValues/account.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAYnC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAYjC,OAAO,
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/coValues/account.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAYnC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAYjC,OAAO,EACH,WAAW,EACX,OAAO,EACP,GAAG,EACH,UAAU,EACV,OAAO,EACP,mBAAmB,GACtB,MAAM,gBAAgB,CAAC;AAGxB,MAAM,OAAO,OAMT,SAAQ,WAAW;IAQnB,IAAI,OAAO;QAIP,OAAQ,IAAI,CAAC,WAA8B,CAAC,OAAO,CAAC;IACxD,CAAC;IAQD,IAAI,MAAM;QACN,OAAO,IAAe,CAAC;IAC3B,CAAC;IACD,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,IAAI;YACZ,CAAC,CAAE,IAAqB;YACxB,CAAC,CAAC,EAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IAKD,IAAI,KAAK;QAQL,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAE1B,CAAC;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAEpB,CAAC;QAChB,OAAO;YACH,OAAO,EACH,SAAS;gBACR,IAAI,GAAG,CACJ,SAAS,EACT,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,OAAO,CAAC,OAEZ,CACI;YACb,IAAI,EACA,MAAM;gBACL,IAAI,GAAG,CACJ,MAAM,EACN,IAAI,CAAC,SAAS,EACd,IAAI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