@mastra/observability 1.14.0-alpha.0 → 1.14.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/CHANGELOG.md +22 -0
- package/dist/config.d.ts +8 -8
- package/dist/config.d.ts.map +1 -1
- package/dist/exporters/auth-failure-cooldown.d.ts +25 -0
- package/dist/exporters/auth-failure-cooldown.d.ts.map +1 -0
- package/dist/exporters/cloud.d.ts +1 -0
- package/dist/exporters/cloud.d.ts.map +1 -1
- package/dist/exporters/mastra-platform.d.ts +1 -0
- package/dist/exporters/mastra-platform.d.ts.map +1 -1
- package/dist/index.cjs +703 -14304
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +666 -14267
- package/dist/index.js.map +1 -1
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @mastra/observability
|
|
2
2
|
|
|
3
|
+
## 1.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Support ingesting client-side tool telemetry. Spans, logs, and duration metrics captured by the client SDK during tool execution are forwarded through the observability bus to your existing exporters. Client tool durations are reported via the existing `mastra_tool_duration_ms` metric with a `toolType: 'client'` label to distinguish them from server-side tool durations. ([#16425](https://github.com/mastra-ai/mastra/pull/16425))
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Paused observability uploads after invalid credentials so exporters stop repeatedly sending unauthorized requests. ([#16743](https://github.com/mastra-ai/mastra/pull/16743))
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`cfa2e3a`](https://github.com/mastra-ai/mastra/commit/cfa2e3a5292322f48bb28b4d257d631da7f9d3cc), [`0cbece9`](https://github.com/mastra-ai/mastra/commit/0cbece9d832cb134a74cdbf3682d390a058215a4), [`2f5f58a`](https://github.com/mastra-ai/mastra/commit/2f5f58a9a8bb13bcdc6789db221eef7c9bf1ff02), [`7dfe1bc`](https://github.com/mastra-ai/mastra/commit/7dfe1bcfe71d261a6fd6bbf29b1dec49d78fb98f), [`ac442a4`](https://github.com/mastra-ai/mastra/commit/ac442a42fda0354ac2bcea772bf6691cb3e9dbb3), [`b7286f4`](https://github.com/mastra-ai/mastra/commit/b7286f4308267f5fd70e6bfee10dba9472640906), [`6096445`](https://github.com/mastra-ai/mastra/commit/60964459733f0ab384584d95e19c36607ffdf7b0), [`d72dc4b`](https://github.com/mastra-ai/mastra/commit/d72dc4b12d832546c05c20255fa96fe4eb515900), [`a481027`](https://github.com/mastra-ai/mastra/commit/a481027b549ba1018414990c8f045eaee7b9f413), [`1e5c067`](https://github.com/mastra-ai/mastra/commit/1e5c067d2e20a781af670578180d1ee249806d41), [`168fa09`](https://github.com/mastra-ai/mastra/commit/168fa09d6b39114cb8c13bd06f1dccb9bc81c6cd), [`df1947a`](https://github.com/mastra-ai/mastra/commit/df1947affa40f742067542251fac7ca759492ef4), [`ee59b74`](https://github.com/mastra-ai/mastra/commit/ee59b743ce73ad11784b4d9c6fbba8568edee1c8), [`a97b1a0`](https://github.com/mastra-ai/mastra/commit/a97b1a0abaed83946c3519d1e0f680d0815b8a67), [`008baaf`](https://github.com/mastra-ai/mastra/commit/008baafd8d851f831407045aebead5a2e3342eff), [`801baa0`](https://github.com/mastra-ai/mastra/commit/801baa07cccdbaec1d00942a92bdc831111744a2), [`8116436`](https://github.com/mastra-ai/mastra/commit/81164363eb225d774e41ff27da6a5ea611406688), [`c35b962`](https://github.com/mastra-ai/mastra/commit/c35b9625c7e854fcfdeee226a3338a750d0ff211), [`c27c4b9`](https://github.com/mastra-ai/mastra/commit/c27c4b9f137df5414fca4e45896aceccff6b0ed5), [`08b3b59`](https://github.com/mastra-ai/mastra/commit/08b3b590dd960dee6c9a6e39272f8927d803db6e), [`b3c3b18`](https://github.com/mastra-ai/mastra/commit/b3c3b189121489a3a51a8fd8204b569be9a89fe5), [`4084113`](https://github.com/mastra-ai/mastra/commit/408411370fc48a822e8b616b3b63f9409774e0e9), [`70cb714`](https://github.com/mastra-ai/mastra/commit/70cb7149c8f16f478e15b58498254a53181750a4), [`91cf0e0`](https://github.com/mastra-ai/mastra/commit/91cf0e027e511b871481a8576b56b7af83b15afd), [`7f9da22`](https://github.com/mastra-ai/mastra/commit/7f9da22efd5aa595e138a31de55a5f0f2f28b33d)]:
|
|
14
|
+
- @mastra/core@1.37.0
|
|
15
|
+
|
|
16
|
+
## 1.14.0-alpha.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Paused observability uploads after invalid credentials so exporters stop repeatedly sending unauthorized requests. ([#16743](https://github.com/mastra-ai/mastra/pull/16743))
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`0cbece9`](https://github.com/mastra-ai/mastra/commit/0cbece9d832cb134a74cdbf3682d390a058215a4), [`7dfe1bc`](https://github.com/mastra-ai/mastra/commit/7dfe1bcfe71d261a6fd6bbf29b1dec49d78fb98f), [`70cb714`](https://github.com/mastra-ai/mastra/commit/70cb7149c8f16f478e15b58498254a53181750a4), [`7f9da22`](https://github.com/mastra-ai/mastra/commit/7f9da22efd5aa595e138a31de55a5f0f2f28b33d)]:
|
|
23
|
+
- @mastra/core@1.37.0-alpha.6
|
|
24
|
+
|
|
3
25
|
## 1.14.0-alpha.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/dist/config.d.ts
CHANGED
|
@@ -163,7 +163,7 @@ export declare const samplingStrategySchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
163
163
|
probability: z.ZodNumber;
|
|
164
164
|
}, z.core.$strip>, z.ZodObject<{
|
|
165
165
|
type: z.ZodLiteral<SamplingStrategyType.CUSTOM>;
|
|
166
|
-
sampler: z.
|
|
166
|
+
sampler: z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>;
|
|
167
167
|
}, z.core.$strip>], "type">;
|
|
168
168
|
/**
|
|
169
169
|
* Zod schema for SerializationOptions
|
|
@@ -190,14 +190,14 @@ export declare const observabilityInstanceConfigSchema: z.ZodObject<{
|
|
|
190
190
|
probability: z.ZodNumber;
|
|
191
191
|
}, z.core.$strip>, z.ZodObject<{
|
|
192
192
|
type: z.ZodLiteral<SamplingStrategyType.CUSTOM>;
|
|
193
|
-
sampler: z.
|
|
193
|
+
sampler: z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>;
|
|
194
194
|
}, z.core.$strip>], "type">>;
|
|
195
195
|
exporters: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
196
196
|
bridge: z.ZodOptional<z.ZodAny>;
|
|
197
197
|
spanOutputProcessors: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
198
198
|
includeInternalSpans: z.ZodOptional<z.ZodBoolean>;
|
|
199
199
|
excludeSpanTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof SpanType>>>;
|
|
200
|
-
spanFilter: z.ZodOptional<z.
|
|
200
|
+
spanFilter: z.ZodOptional<z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>>;
|
|
201
201
|
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
202
202
|
serializationOptions: z.ZodOptional<z.ZodObject<{
|
|
203
203
|
maxStringLength: z.ZodOptional<z.ZodNumber>;
|
|
@@ -212,10 +212,10 @@ export declare const observabilityInstanceConfigSchema: z.ZodObject<{
|
|
|
212
212
|
logging: z.ZodOptional<z.ZodObject<{
|
|
213
213
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
214
214
|
level: z.ZodOptional<z.ZodEnum<{
|
|
215
|
+
error: "error";
|
|
215
216
|
debug: "debug";
|
|
216
217
|
info: "info";
|
|
217
218
|
warn: "warn";
|
|
218
|
-
error: "error";
|
|
219
219
|
fatal: "fatal";
|
|
220
220
|
}>>;
|
|
221
221
|
}, z.core.$strip>>;
|
|
@@ -236,14 +236,14 @@ export declare const observabilityConfigValueSchema: z.ZodObject<{
|
|
|
236
236
|
probability: z.ZodNumber;
|
|
237
237
|
}, z.core.$strip>, z.ZodObject<{
|
|
238
238
|
type: z.ZodLiteral<SamplingStrategyType.CUSTOM>;
|
|
239
|
-
sampler: z.
|
|
239
|
+
sampler: z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>;
|
|
240
240
|
}, z.core.$strip>], "type">>;
|
|
241
241
|
exporters: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
242
242
|
bridge: z.ZodOptional<z.ZodAny>;
|
|
243
243
|
spanOutputProcessors: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
244
244
|
includeInternalSpans: z.ZodOptional<z.ZodBoolean>;
|
|
245
245
|
excludeSpanTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof SpanType>>>;
|
|
246
|
-
spanFilter: z.ZodOptional<z.
|
|
246
|
+
spanFilter: z.ZodOptional<z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>>;
|
|
247
247
|
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
248
248
|
serializationOptions: z.ZodOptional<z.ZodObject<{
|
|
249
249
|
maxStringLength: z.ZodOptional<z.ZodNumber>;
|
|
@@ -258,10 +258,10 @@ export declare const observabilityConfigValueSchema: z.ZodObject<{
|
|
|
258
258
|
logging: z.ZodOptional<z.ZodObject<{
|
|
259
259
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
260
260
|
level: z.ZodOptional<z.ZodEnum<{
|
|
261
|
+
error: "error";
|
|
261
262
|
debug: "debug";
|
|
262
263
|
info: "info";
|
|
263
264
|
warn: "warn";
|
|
264
|
-
error: "error";
|
|
265
265
|
fatal: "fatal";
|
|
266
266
|
}>>;
|
|
267
267
|
}, z.core.$strip>>;
|
|
@@ -271,7 +271,7 @@ export declare const observabilityRegistryConfigSchema: z.ZodObject<{
|
|
|
271
271
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
272
272
|
}, z.core.$strip>>>;
|
|
273
273
|
configs: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>, z.ZodNull]>>;
|
|
274
|
-
configSelector: z.ZodOptional<z.
|
|
274
|
+
configSelector: z.ZodOptional<z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>>;
|
|
275
275
|
sensitiveDataFilter: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
276
276
|
sensitiveFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
277
277
|
redactionToken: z.ZodOptional<z.ZodString>;
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,QAAQ,EACR,eAAe,EAChB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAMpE;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,iB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AAG,EAAE,KAAK,OAAO,YAAjB,GAAG,EAAE,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;;;;iBAoOxD,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;uCA1OD,GAAG,EAAE,KAAK,OAAO,YAAjB,GAAG,EAAE,KAAK,OAAO;;;;;;;oDAAjB,GAAG,EAAE,KAAK,OAAO,YAAjB,GAAG,EAAE,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;;;iBAoP1D,CAAC;AAgBF,eAAO,MAAM,iCAAiC;;;;;wDApQJ,GAAG,EAAE,KAAK,OAAO,YAAjB,GAAG,EAAE,KAAK,OAAO;;;;;;;;;iBA0UxD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IMastraLogger } from '@mastra/core/logger';
|
|
2
|
+
export declare class AuthFailureError extends Error {
|
|
3
|
+
readonly status: number;
|
|
4
|
+
constructor(status: number, cause?: unknown);
|
|
5
|
+
}
|
|
6
|
+
export declare function isAuthFailureError(error: unknown): error is AuthFailureError;
|
|
7
|
+
export declare function fetchWithAuthFailureHandling(url: string, options: RequestInit, maxRetries: number): Promise<void>;
|
|
8
|
+
export declare class AuthFailureCooldown {
|
|
9
|
+
private readonly exporterName;
|
|
10
|
+
private readonly getLogger;
|
|
11
|
+
private failureCount;
|
|
12
|
+
private cooldownUntilMs;
|
|
13
|
+
private droppedEventsDuringCooldown;
|
|
14
|
+
constructor(exporterName: string, getLogger: () => IMastraLogger);
|
|
15
|
+
private shouldDropEvents;
|
|
16
|
+
dropEventIfCoolingDown(): boolean;
|
|
17
|
+
dropEventsIfCoolingDown(count: number): boolean;
|
|
18
|
+
reset(): number;
|
|
19
|
+
recordFailure(args: {
|
|
20
|
+
status: number;
|
|
21
|
+
failedSignals: string[];
|
|
22
|
+
droppedBatchSize: number;
|
|
23
|
+
}): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=auth-failure-cooldown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-failure-cooldown.d.ts","sourceRoot":"","sources":["../../src/exporters/auth-failure-cooldown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AASzD,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEZ,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAK5C;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAE5E;AAMD,wBAAsB,4BAA4B,CAChD,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAqBf;AAED,qBAAa,mBAAmB;IAM5B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAN5B,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,eAAe,CAAK;IAC5B,OAAO,CAAC,2BAA2B,CAAK;gBAGrB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,aAAa;IAGjD,OAAO,CAAC,gBAAgB;IAIxB,sBAAsB,IAAI,OAAO;IAIjC,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAS/C,KAAK,IAAI,MAAM;IAUf,aAAa,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,EAAE,CAAC;QAAC,gBAAgB,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;CAwBjG"}
|
|
@@ -29,6 +29,7 @@ export interface CloudExporterConfig extends BaseExporterConfig {
|
|
|
29
29
|
export declare class CloudExporter extends BaseExporter {
|
|
30
30
|
name: string;
|
|
31
31
|
private readonly cloudConfig;
|
|
32
|
+
private readonly authFailureCooldown;
|
|
32
33
|
private buffer;
|
|
33
34
|
private flushTimer;
|
|
34
35
|
private inFlightFlushes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud.d.ts","sourceRoot":"","sources":["../../src/exporters/cloud.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,EAEZ,QAAQ,EACR,WAAW,EACX,UAAU,EACV,aAAa,EACd,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AA+LD;;;;;;GAMG;AACH,qBAAa,aAAc,SAAQ,YAAY;IAC7C,IAAI,SAAyC;IAE7C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAgC;IAC5D,OAAO,CAAC,MAAM,CAAoB;IAClC,OAAO,CAAC,UAAU,CAA+B;IACjD,OAAO,CAAC,eAAe,CAA4B;gBAEvC,MAAM,GAAE,mBAAwB;
|
|
1
|
+
{"version":3,"file":"cloud.d.ts","sourceRoot":"","sources":["../../src/exporters/cloud.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,EAEZ,QAAQ,EACR,WAAW,EAC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,CAAC,IAAI,CAAC;IAa1D,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,gBAAgB;IAOxB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,UAAU;IAelB,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,cAAc;YAMR,mBAAmB;IAYjC,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,aAAa;YAoBP,WAAW;IAyEzB;;OAEG;YACW,WAAW;YAuBX,gBAAgB;IAmC9B,OAAO,CAAC,WAAW;IAUnB;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IA4BtB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAiChC"}
|
|
@@ -17,6 +17,7 @@ export interface MastraPlatformExporterConfig extends BaseExporterConfig {
|
|
|
17
17
|
export declare class MastraPlatformExporter extends BaseExporter {
|
|
18
18
|
name: string;
|
|
19
19
|
private readonly platformConfig;
|
|
20
|
+
private readonly authFailureCooldown;
|
|
20
21
|
private buffer;
|
|
21
22
|
private flushTimer;
|
|
22
23
|
private inFlightFlushes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mastra-platform.d.ts","sourceRoot":"","sources":["../../src/exporters/mastra-platform.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,EAEZ,QAAQ,EACR,WAAW,EACX,UAAU,EACV,aAAa,EACd,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,WAAW,4BAA6B,SAAQ,kBAAkB;IACtE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MA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