@memberjunction/notifications 6.3.0-edge.0 → 6.3.0-edge.2
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 +20 -2
- package/dist/NotificationEngine.d.ts +43 -1
- package/dist/NotificationEngine.d.ts.map +1 -1
- package/dist/NotificationEngine.js +94 -13
- package/dist/NotificationEngine.js.map +1 -1
- package/dist/__tests__/NotificationEngine.test.js +99 -0
- package/dist/__tests__/NotificationEngine.test.js.map +1 -1
- package/dist/__tests__/scoped-notification-config-resolver.test.js +17 -0
- package/dist/__tests__/scoped-notification-config-resolver.test.js.map +1 -1
- package/dist/scoped-notification-config-resolver.d.ts +21 -3
- package/dist/scoped-notification-config-resolver.d.ts.map +1 -1
- package/dist/scoped-notification-config-resolver.js +38 -12
- package/dist/scoped-notification-config-resolver.js.map +1 -1
- package/dist/shareNotificationHandler.d.ts.map +1 -1
- package/dist/shareNotificationHandler.js +54 -4
- package/dist/shareNotificationHandler.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +9 -9
|
@@ -30,6 +30,11 @@ export interface ScopedNotificationConfigRow {
|
|
|
30
30
|
Email: ChannelAccess;
|
|
31
31
|
SMS: ChannelAccess;
|
|
32
32
|
IsLocked: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Reserved. Rows are sorted by it inside a specificity level, but `decide()` gives Deny the win over Allow at
|
|
35
|
+
* equal specificity whatever the order, so today it changes no outcome. Kept so a later rule can use it without a
|
|
36
|
+
* schema change.
|
|
37
|
+
*/
|
|
33
38
|
Priority: number;
|
|
34
39
|
Status: string;
|
|
35
40
|
}
|
|
@@ -60,8 +65,12 @@ export interface ScopedChannelDecisions {
|
|
|
60
65
|
* In scope: a global row (no primary record, no secondary scopes); a row whose primary record is the caller's primary
|
|
61
66
|
* scope, the recipient, or a role the recipient holds; and in every case a row whose secondary scopes all match the
|
|
62
67
|
* notice's. Specificity is the primitive's score: secondary match +4, primary record +2, global +1, ties by `Priority`.
|
|
63
|
-
* At equal specificity one `Deny` beats any `Allow`, MJ's permission rule. A `Deny` on a row with `IsLocked`
|
|
64
|
-
*
|
|
68
|
+
* At equal specificity one `Deny` beats any `Allow`, MJ's permission rule. A `Deny` on a row with `IsLocked` turns the
|
|
69
|
+
* channel off regardless of specificity, and the recipient's own preference cannot turn it back on. `Priority` is
|
|
70
|
+
* reserved: it orders rows inside a level but decides nothing (see {@link ScopedNotificationConfigRow.Priority}).
|
|
71
|
+
*
|
|
72
|
+
* A row whose `SecondaryScopes` is not a JSON object is out of scope for every notice and is logged once: read as
|
|
73
|
+
* "no secondary scopes" it would apply to every caller.
|
|
65
74
|
*
|
|
66
75
|
* Pluggable through `ClassFactory`: `CreateScopedNotificationConfigResolver()` returns a host's
|
|
67
76
|
* `@RegisterClass(ScopedNotificationConfigResolver)` subclass when one is registered, else this base. The base itself
|
|
@@ -81,8 +90,17 @@ export declare class ScopedNotificationConfigResolver {
|
|
|
81
90
|
protected score(c: ScopedNotificationConfigRow): number;
|
|
82
91
|
/** The most specific non-null answer for one channel, Deny winning a tie, with the lock noted. */
|
|
83
92
|
private decide;
|
|
84
|
-
|
|
93
|
+
/** The row's secondary scopes; `{}` when it has none, `null` when the stored value is not a JSON object. */
|
|
94
|
+
protected parseScopes(json: string | null | undefined): Record<string, SecondaryScopeValue> | null;
|
|
95
|
+
/** Row IDs already reported as malformed, so a cached bad row is logged once per process, not per notice. */
|
|
96
|
+
private static readonly loggedMalformed;
|
|
97
|
+
private logMalformedScopes;
|
|
85
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Parses a scoped config's `SecondaryScopes`: `{}` for empty, the object when it is a JSON object, `null` for anything
|
|
101
|
+
* else (bad JSON, an array, a scalar). Shared with the entity's server-side validation.
|
|
102
|
+
*/
|
|
103
|
+
export declare function ParseSecondaryScopes(json: string | null | undefined): Record<string, SecondaryScopeValue> | null;
|
|
86
104
|
/** The resolver the engine uses: the base class, or a host's registered subclass. */
|
|
87
105
|
export declare function CreateScopedNotificationConfigResolver(): ScopedNotificationConfigResolver;
|
|
88
106
|
/** One channel's inputs from every level, in the order the engine resolves them. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scoped-notification-config-resolver.d.ts","sourceRoot":"","sources":["../src/scoped-notification-config-resolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scoped-notification-config-resolver.d.ts","sourceRoot":"","sources":["../src/scoped-notification-config-resolver.ts"],"names":[],"mappings":"AAGA,uFAAuF;AACvF,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;CACvD;AAED,2FAA2F;AAC3F,eAAO,MAAM,yBAAyB,WAAW,CAAC;AAClD,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEpE,uGAAuG;AACvG,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC;IACrB,GAAG,EAAE,aAAa,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB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B,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAAG,IAAI,CAQhH;AAED,qFAAqF;AACrF,wBAAgB,sCAAsC,IAAI,gCAAgC,CAEzF;AAED,oFAAoF;AACpF,MAAM,WAAW,aAAa;IAC5B,0CAA0C;IAC1C,WAAW,EAAE,OAAO,CAAC;IACrB,oCAAoC;IACpC,MAAM,EAAE,qBAAqB,CAAC;IAC9B,uGAAuG;IACvG,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAM7D"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LogError } from '@memberjunction/core';
|
|
1
2
|
import { MJGlobal, UUIDsEqual } from '@memberjunction/global';
|
|
2
3
|
/** The well-known secondary dimension this package sets: who or what caused the notice. */
|
|
3
4
|
export const NOTIFICATION_ORIGIN_SCOPE = 'origin';
|
|
@@ -11,8 +12,12 @@ const RESOLVABLE_STATUSES = new Set(['Active', 'Provisional']);
|
|
|
11
12
|
* In scope: a global row (no primary record, no secondary scopes); a row whose primary record is the caller's primary
|
|
12
13
|
* scope, the recipient, or a role the recipient holds; and in every case a row whose secondary scopes all match the
|
|
13
14
|
* notice's. Specificity is the primitive's score: secondary match +4, primary record +2, global +1, ties by `Priority`.
|
|
14
|
-
* At equal specificity one `Deny` beats any `Allow`, MJ's permission rule. A `Deny` on a row with `IsLocked`
|
|
15
|
-
*
|
|
15
|
+
* At equal specificity one `Deny` beats any `Allow`, MJ's permission rule. A `Deny` on a row with `IsLocked` turns the
|
|
16
|
+
* channel off regardless of specificity, and the recipient's own preference cannot turn it back on. `Priority` is
|
|
17
|
+
* reserved: it orders rows inside a level but decides nothing (see {@link ScopedNotificationConfigRow.Priority}).
|
|
18
|
+
*
|
|
19
|
+
* A row whose `SecondaryScopes` is not a JSON object is out of scope for every notice and is logged once: read as
|
|
20
|
+
* "no secondary scopes" it would apply to every caller.
|
|
16
21
|
*
|
|
17
22
|
* Pluggable through `ClassFactory`: `CreateScopedNotificationConfigResolver()` returns a host's
|
|
18
23
|
* `@RegisterClass(ScopedNotificationConfigResolver)` subclass when one is registered, else this base. The base itself
|
|
@@ -50,6 +55,10 @@ export class ScopedNotificationConfigResolver {
|
|
|
50
55
|
return false;
|
|
51
56
|
}
|
|
52
57
|
const rowScopes = this.parseScopes(c.SecondaryScopes);
|
|
58
|
+
if (rowScopes === null) {
|
|
59
|
+
this.logMalformedScopes(c);
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
53
62
|
for (const key of Object.keys(rowScopes)) {
|
|
54
63
|
const sent = scope?.secondaryScopes?.[key];
|
|
55
64
|
if (sent === undefined || String(sent) !== String(rowScopes[key]))
|
|
@@ -62,7 +71,7 @@ export class ScopedNotificationConfigResolver {
|
|
|
62
71
|
let s = 1;
|
|
63
72
|
if (c.PrimaryScopeRecordID)
|
|
64
73
|
s += 2;
|
|
65
|
-
if (Object.keys(this.parseScopes(c.SecondaryScopes)).length > 0)
|
|
74
|
+
if (Object.keys(this.parseScopes(c.SecondaryScopes) ?? {}).length > 0)
|
|
66
75
|
s += 4;
|
|
67
76
|
return s;
|
|
68
77
|
}
|
|
@@ -84,16 +93,33 @@ export class ScopedNotificationConfigResolver {
|
|
|
84
93
|
}
|
|
85
94
|
return { value: null, lockedOff: false };
|
|
86
95
|
}
|
|
96
|
+
/** The row's secondary scopes; `{}` when it has none, `null` when the stored value is not a JSON object. */
|
|
87
97
|
parseScopes(json) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return
|
|
96
|
-
|
|
98
|
+
return ParseSecondaryScopes(json);
|
|
99
|
+
}
|
|
100
|
+
/** Row IDs already reported as malformed, so a cached bad row is logged once per process, not per notice. */
|
|
101
|
+
static { this.loggedMalformed = new Set(); }
|
|
102
|
+
logMalformedScopes(c) {
|
|
103
|
+
const key = c.ID.toLowerCase();
|
|
104
|
+
if (ScopedNotificationConfigResolver.loggedMalformed.has(key))
|
|
105
|
+
return;
|
|
106
|
+
ScopedNotificationConfigResolver.loggedMalformed.add(key);
|
|
107
|
+
LogError(`Scoped notification config ${c.ID} is skipped: its SecondaryScopes is not a JSON object (${c.SecondaryScopes}).`);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Parses a scoped config's `SecondaryScopes`: `{}` for empty, the object when it is a JSON object, `null` for anything
|
|
112
|
+
* else (bad JSON, an array, a scalar). Shared with the entity's server-side validation.
|
|
113
|
+
*/
|
|
114
|
+
export function ParseSecondaryScopes(json) {
|
|
115
|
+
if (!json || !json.trim())
|
|
116
|
+
return {};
|
|
117
|
+
try {
|
|
118
|
+
const parsed = JSON.parse(json);
|
|
119
|
+
return parsed && typeof parsed === 'object' && !Array.isArray(parsed) ? parsed : null;
|
|
120
|
+
}
|
|
121
|
+
catch {
|
|
122
|
+
return null;
|
|
97
123
|
}
|
|
98
124
|
}
|
|
99
125
|
/** The resolver the engine uses: the base class, or a host's registered subclass. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scoped-notification-config-resolver.js","sourceRoot":"","sources":["../src/scoped-notification-config-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAiB9D,2FAA2F;AAC3F,MAAM,CAAC,MAAM,yBAAyB,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"scoped-notification-config-resolver.js","sourceRoot":"","sources":["../src/scoped-notification-config-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAiB9D,2FAA2F;A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,EAAE,CAAC;AACrK,CAAC;AAYD;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,MAAqB;IAClD,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1C,IAAI,MAAM,CAAC,cAAc,KAAK,IAAI;QAAE,OAAO,MAAM,CAAC,cAAc,CAAC;IACjE,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM;QAAE,OAAO,KAAK,CAAC;IACjD,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;QAAE,OAAO,IAAI,CAAC;IACjD,OAAO,MAAM,CAAC,WAAW,CAAC;AAC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shareNotificationHandler.d.ts","sourceRoot":"","sources":["../src/shareNotificationHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,wBAAwB,EAG3B,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAA6B,KAAK,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAgB3G;;;;;GAKG;AACH,wBAAgB,2BAA2B,IAAI,wBAAwB,
|
|
1
|
+
{"version":3,"file":"shareNotificationHandler.d.ts","sourceRoot":"","sources":["../src/shareNotificationHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,wBAAwB,EAG3B,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAA6B,KAAK,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAgB3G;;;;;GAKG;AACH,wBAAgB,2BAA2B,IAAI,wBAAwB,CA6DtE;AAED,2DAA2D;AAC3D,wBAAgB,2BAA2B,IAAI,wBAAwB,CAEtE;AAED;;;;GAIG;AACH,wBAAgB,yCAAyC,IAAI,IAAI,CAEhE;AAkBD,wGAAwG;AACxG,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,kBAAkB,CAEzF"}
|
|
@@ -27,13 +27,15 @@ export function CreateResourceSharedHandler() {
|
|
|
27
27
|
// Ensure the engine is configured. Safe to call repeatedly — BaseEngine
|
|
28
28
|
// short-circuits when already loaded. Guards against calls that arrive
|
|
29
29
|
// before the server's explicit startup Config().
|
|
30
|
-
await NotificationEngine.Instance.Config(false, input.ContextUser);
|
|
30
|
+
await NotificationEngine.Instance.Config(false, input.ContextUser, input.Provider);
|
|
31
31
|
const grantor = await resolveGrantor(input);
|
|
32
32
|
const grantorName = grantor.name;
|
|
33
33
|
const resourceTypeLabel = input.ResourceTypeLabel || 'resource';
|
|
34
34
|
const resourceName = input.ResourceName ?? `a ${resourceTypeLabel.toLowerCase()}`;
|
|
35
35
|
const actionsSummary = input.ActionsSummary ?? '';
|
|
36
|
+
const permissionLevel = resolvePermissionLevel(input);
|
|
36
37
|
const resourceTypeId = await resolveResourceTypeId(input);
|
|
38
|
+
const resourceUrl = buildShareResourceUrl(input);
|
|
37
39
|
const defaultTitle = `${grantorName} shared ${resourceTypeLabel} with you`;
|
|
38
40
|
const defaultMessage = actionsSummary
|
|
39
41
|
? `${grantorName} shared "${input.ResourceName ?? resourceTypeLabel}" with you (${actionsSummary}).`
|
|
@@ -47,14 +49,20 @@ export function CreateResourceSharedHandler() {
|
|
|
47
49
|
resourceRecordId: input.ResourceRecordID,
|
|
48
50
|
resourceConfiguration: {
|
|
49
51
|
DomainName: input.ResourceTypeLabel,
|
|
52
|
+
...(input.ResourceTypeName ? { ResourceTypeName: input.ResourceTypeName } : {}),
|
|
53
|
+
ResourceRecordID: input.ResourceRecordID,
|
|
54
|
+
...(permissionLevel ? { PermissionLevel: permissionLevel } : {}),
|
|
50
55
|
...input.ExtraConfiguration
|
|
51
56
|
},
|
|
52
57
|
templateData: {
|
|
53
58
|
grantorName,
|
|
54
59
|
resourceName,
|
|
55
60
|
resourceTypeLabel,
|
|
61
|
+
...(input.ResourceTypeName ? { resourceTypeName: input.ResourceTypeName } : {}),
|
|
62
|
+
resourceRecordId: input.ResourceRecordID,
|
|
63
|
+
permissionLevel: permissionLevel ?? actionsSummary,
|
|
56
64
|
actionsSummary,
|
|
57
|
-
resourceUrl
|
|
65
|
+
resourceUrl
|
|
58
66
|
},
|
|
59
67
|
// Who caused the share: the system (Owner-type) user writing a grant as plumbing, or a person.
|
|
60
68
|
// `MJ: Scoped Notification Configs` can quiet one and not the other.
|
|
@@ -98,13 +106,55 @@ async function resolveGrantor(input) {
|
|
|
98
106
|
export function OriginForUserType(userType) {
|
|
99
107
|
return (userType ?? '').trim().toLowerCase() === 'owner' ? 'System' : 'Person';
|
|
100
108
|
}
|
|
109
|
+
function resolvePermissionLevel(input) {
|
|
110
|
+
if (input.PermissionLevel && input.PermissionLevel.trim().length > 0) {
|
|
111
|
+
return input.PermissionLevel.trim();
|
|
112
|
+
}
|
|
113
|
+
const extraLevel = input.ExtraConfiguration?.['PermissionLevel'];
|
|
114
|
+
if (typeof extraLevel === 'string' && extraLevel.trim().length > 0) {
|
|
115
|
+
return extraLevel.trim();
|
|
116
|
+
}
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
119
|
+
function buildShareResourceUrl(input) {
|
|
120
|
+
const rawBase = process.env.APP_BASE_URL?.trim() ||
|
|
121
|
+
process.env.MJ_MAGIC_LINK_EXPLORER_URL?.trim() ||
|
|
122
|
+
'';
|
|
123
|
+
if (!rawBase) {
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
126
|
+
const baseUrl = rawBase.replace(/\/+$/, '');
|
|
127
|
+
const recordId = encodeURIComponent(input.ResourceRecordID);
|
|
128
|
+
const key = (input.ResourceTypeName ?? input.ResourceTypeLabel ?? '').trim().toLowerCase();
|
|
129
|
+
switch (key) {
|
|
130
|
+
case 'artifacts':
|
|
131
|
+
case 'artifact':
|
|
132
|
+
return `${baseUrl}/resource/artifact/${recordId}`;
|
|
133
|
+
case 'dashboards':
|
|
134
|
+
case 'dashboard':
|
|
135
|
+
return `${baseUrl}/resource/dashboard/${recordId}`;
|
|
136
|
+
case 'conversations':
|
|
137
|
+
case 'conversation':
|
|
138
|
+
return `${baseUrl}/app/chat/conversations?conversationId=${recordId}`;
|
|
139
|
+
case 'lists':
|
|
140
|
+
case 'list':
|
|
141
|
+
return `${baseUrl}/resource/record/MJ%3A%20Lists/${recordId}`;
|
|
142
|
+
case 'collections':
|
|
143
|
+
case 'collection':
|
|
144
|
+
return `${baseUrl}/resource/record/MJ%3A%20Collections/${recordId}`;
|
|
145
|
+
default:
|
|
146
|
+
return null;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
101
149
|
async function resolveResourceTypeId(input) {
|
|
102
150
|
const name = input.ResourceTypeName;
|
|
103
151
|
if (!name)
|
|
104
152
|
return undefined;
|
|
105
153
|
try {
|
|
106
|
-
const engine = ResourcePermissionEngine.
|
|
107
|
-
|
|
154
|
+
const engine = input.Provider && typeof ResourcePermissionEngine.GetProviderInstance === 'function'
|
|
155
|
+
? ResourcePermissionEngine.GetProviderInstance(input.Provider, ResourcePermissionEngine)
|
|
156
|
+
: ResourcePermissionEngine.Instance;
|
|
157
|
+
await engine.Config(false, input.ContextUser, input.Provider);
|
|
108
158
|
return engine.ResourceTypeIdByName(name) ?? undefined;
|
|
109
159
|
}
|
|
110
160
|
catch {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shareNotificationHandler.js","sourceRoot":"","sources":["../src/shareNotificationHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACH,gCAAgC,EAGhC,wBAAwB,EAC3B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAA2B,MAAM,uCAAuC,CAAC;AAE3G;;;;;;;;;;;GAWG;AACH,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B;IACvC,OAAO,KAAK,EAAE,KAA6B,EAAoB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