dbctx 2.0.1 → 2.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/dist/index.mjs +6004 -279
- package/package.json +11 -8
- package/dist/app/assemble.d.mts +0 -5
- package/dist/app/assemble.d.mts.map +0 -1
- package/dist/app/assemble.mjs +0 -182
- package/dist/app/config.d.mts +0 -9
- package/dist/app/config.d.mts.map +0 -1
- package/dist/app/config.mjs +0 -49
- package/dist/app/db.d.mts +0 -9
- package/dist/app/db.d.mts.map +0 -1
- package/dist/app/db.mjs +0 -182
- package/dist/app/detect.d.mts +0 -14
- package/dist/app/detect.d.mts.map +0 -1
- package/dist/app/detect.mjs +0 -108
- package/dist/app/list.d.mts +0 -4
- package/dist/app/list.d.mts.map +0 -1
- package/dist/app/list.mjs +0 -93
- package/dist/app/load-introspection.d.mts +0 -26
- package/dist/app/load-introspection.d.mts.map +0 -1
- package/dist/app/load-introspection.mjs +0 -89
- package/dist/app/login.d.mts +0 -2
- package/dist/app/login.d.mts.map +0 -1
- package/dist/app/login.mjs +0 -69
- package/dist/app/open-url.d.mts +0 -6
- package/dist/app/open-url.d.mts.map +0 -1
- package/dist/app/open-url.mjs +0 -33
- package/dist/app/sample.d.mts +0 -24
- package/dist/app/sample.d.mts.map +0 -1
- package/dist/app/sample.mjs +0 -257
- package/dist/app/session.d.mts +0 -9
- package/dist/app/session.d.mts.map +0 -1
- package/dist/app/session.mjs +0 -195
- package/dist/app/ssh.d.mts +0 -3
- package/dist/app/ssh.d.mts.map +0 -1
- package/dist/app/ssh.mjs +0 -218
- package/dist/app/tail.d.mts +0 -13
- package/dist/app/tail.d.mts.map +0 -1
- package/dist/app/tail.mjs +0 -168
- package/dist/db/analyze.d.mts +0 -3
- package/dist/db/analyze.d.mts.map +0 -1
- package/dist/db/analyze.mjs +0 -16
- package/dist/db/attributes.d.mts +0 -16
- package/dist/db/attributes.d.mts.map +0 -1
- package/dist/db/attributes.mjs +0 -37
- package/dist/db/check-constraints.d.mts +0 -9
- package/dist/db/check-constraints.d.mts.map +0 -1
- package/dist/db/check-constraints.mjs +0 -17
- package/dist/db/custom-types.d.mts +0 -26
- package/dist/db/custom-types.d.mts.map +0 -1
- package/dist/db/custom-types.mjs +0 -61
- package/dist/db/enums.d.mts +0 -8
- package/dist/db/enums.d.mts.map +0 -1
- package/dist/db/enums.mjs +0 -24
- package/dist/db/extensions.d.mts +0 -8
- package/dist/db/extensions.d.mts.map +0 -1
- package/dist/db/extensions.mjs +0 -14
- package/dist/db/file-stats.d.mts +0 -11
- package/dist/db/file-stats.d.mts.map +0 -1
- package/dist/db/file-stats.mjs +0 -43
- package/dist/db/foreign-keys.d.mts +0 -14
- package/dist/db/foreign-keys.d.mts.map +0 -1
- package/dist/db/foreign-keys.mjs +0 -44
- package/dist/db/functions.d.mts +0 -11
- package/dist/db/functions.d.mts.map +0 -1
- package/dist/db/functions.mjs +0 -23
- package/dist/db/index.d.mts +0 -19
- package/dist/db/index.d.mts.map +0 -1
- package/dist/db/index.mjs +0 -19
- package/dist/db/indexes.d.mts +0 -16
- package/dist/db/indexes.d.mts.map +0 -1
- package/dist/db/indexes.mjs +0 -38
- package/dist/db/planner-stats.d.mts +0 -33
- package/dist/db/planner-stats.d.mts.map +0 -1
- package/dist/db/planner-stats.mjs +0 -103
- package/dist/db/relations.d.mts +0 -11
- package/dist/db/relations.d.mts.map +0 -1
- package/dist/db/relations.mjs +0 -32
- package/dist/db/rls.d.mts +0 -21
- package/dist/db/rls.d.mts.map +0 -1
- package/dist/db/rls.mjs +0 -48
- package/dist/db/sample.d.mts +0 -16
- package/dist/db/sample.d.mts.map +0 -1
- package/dist/db/sample.mjs +0 -73
- package/dist/db/sequences.d.mts +0 -15
- package/dist/db/sequences.d.mts.map +0 -1
- package/dist/db/sequences.mjs +0 -31
- package/dist/db/stats.d.mts +0 -12
- package/dist/db/stats.d.mts.map +0 -1
- package/dist/db/stats.mjs +0 -34
- package/dist/db/triggers.d.mts +0 -11
- package/dist/db/triggers.d.mts.map +0 -1
- package/dist/db/triggers.mjs +0 -21
- package/dist/db/version.d.mts +0 -14
- package/dist/db/version.d.mts.map +0 -1
- package/dist/db/version.mjs +0 -27
- package/dist/flow/events.d.mts +0 -115
- package/dist/flow/events.d.mts.map +0 -1
- package/dist/flow/events.mjs +0 -2
- package/dist/flow/interpreter.d.mts +0 -21
- package/dist/flow/interpreter.d.mts.map +0 -1
- package/dist/flow/interpreter.mjs +0 -605
- package/dist/flow/projection.d.mts +0 -17
- package/dist/flow/projection.d.mts.map +0 -1
- package/dist/flow/projection.mjs +0 -83
- package/dist/flow/projection.test.d.mts +0 -2
- package/dist/flow/projection.test.d.mts.map +0 -1
- package/dist/flow/projection.test.mjs +0 -162
- package/dist/flow/reducer.d.mts +0 -5
- package/dist/flow/reducer.d.mts.map +0 -1
- package/dist/flow/reducer.mjs +0 -306
- package/dist/flow/reducer.test.d.mts +0 -2
- package/dist/flow/reducer.test.d.mts.map +0 -1
- package/dist/flow/reducer.test.mjs +0 -479
- package/dist/flow/run.d.mts +0 -3
- package/dist/flow/run.d.mts.map +0 -1
- package/dist/flow/run.mjs +0 -89
- package/dist/flow/states.d.mts +0 -54
- package/dist/flow/states.d.mts.map +0 -1
- package/dist/flow/states.mjs +0 -39
- package/dist/index.d.mts +0 -29
- package/dist/index.d.mts.map +0 -1
- package/dist/lib/atomic-write.d.mts +0 -4
- package/dist/lib/atomic-write.d.mts.map +0 -1
- package/dist/lib/atomic-write.mjs +0 -75
- package/dist/lib/env.d.mts +0 -2
- package/dist/lib/env.d.mts.map +0 -1
- package/dist/lib/env.mjs +0 -4
- package/dist/lib/stream-job.d.mts +0 -19
- package/dist/lib/stream-job.d.mts.map +0 -1
- package/dist/lib/stream-job.mjs +0 -55
- package/dist/lib/trpc-url.d.mts +0 -2
- package/dist/lib/trpc-url.d.mts.map +0 -1
- package/dist/lib/trpc-url.mjs +0 -5
- package/dist/lib/trpc.d.mts +0 -7
- package/dist/lib/trpc.d.mts.map +0 -1
- package/dist/lib/trpc.mjs +0 -37
- package/dist/lib/trpc.react.d.mts +0 -4
- package/dist/lib/trpc.react.d.mts.map +0 -1
- package/dist/lib/trpc.react.mjs +0 -3
- package/dist/lib/version.d.mts +0 -2
- package/dist/lib/version.d.mts.map +0 -1
- package/dist/lib/version.mjs +0 -5
- package/dist/logger.d.mts +0 -3
- package/dist/logger.d.mts.map +0 -1
- package/dist/logger.mjs +0 -11
- package/dist/providers/TrpcProvider.d.ts +0 -9
- package/dist/providers/TrpcProvider.d.ts.map +0 -1
- package/dist/providers/TrpcProvider.js +0 -41
- package/dist/store.d.mts +0 -176
- package/dist/store.d.mts.map +0 -1
- package/dist/store.mjs +0 -147
- package/dist/types/connection.d.mts +0 -17
- package/dist/types/connection.d.mts.map +0 -1
- package/dist/types/connection.mjs +0 -2
- package/dist/ui/App.d.ts +0 -10
- package/dist/ui/App.d.ts.map +0 -1
- package/dist/ui/App.js +0 -41
- package/dist/ui/components/Analyze.d.ts +0 -10
- package/dist/ui/components/Analyze.d.ts.map +0 -1
- package/dist/ui/components/Analyze.js +0 -54
- package/dist/ui/components/Billing.d.ts +0 -10
- package/dist/ui/components/Billing.d.ts.map +0 -1
- package/dist/ui/components/Billing.js +0 -40
- package/dist/ui/components/DB.d.ts +0 -10
- package/dist/ui/components/DB.d.ts.map +0 -1
- package/dist/ui/components/DB.js +0 -22
- package/dist/ui/components/DatabasePicker.d.ts +0 -13
- package/dist/ui/components/DatabasePicker.d.ts.map +0 -1
- package/dist/ui/components/DatabasePicker.js +0 -79
- package/dist/ui/components/Enrich.d.ts +0 -10
- package/dist/ui/components/Enrich.d.ts.map +0 -1
- package/dist/ui/components/Enrich.js +0 -41
- package/dist/ui/components/Error.d.ts +0 -7
- package/dist/ui/components/Error.d.ts.map +0 -1
- package/dist/ui/components/Error.js +0 -6
- package/dist/ui/components/Gate.d.ts +0 -10
- package/dist/ui/components/Gate.d.ts.map +0 -1
- package/dist/ui/components/Gate.js +0 -15
- package/dist/ui/components/Introspect.d.ts +0 -10
- package/dist/ui/components/Introspect.d.ts.map +0 -1
- package/dist/ui/components/Introspect.js +0 -66
- package/dist/ui/components/IntrospectionUpload.d.ts +0 -10
- package/dist/ui/components/IntrospectionUpload.d.ts.map +0 -1
- package/dist/ui/components/IntrospectionUpload.js +0 -30
- package/dist/ui/components/Login.d.ts +0 -19
- package/dist/ui/components/Login.d.ts.map +0 -1
- package/dist/ui/components/Login.js +0 -38
- package/dist/ui/components/OutputJson.d.ts +0 -10
- package/dist/ui/components/OutputJson.d.ts.map +0 -1
- package/dist/ui/components/OutputJson.js +0 -18
- package/dist/ui/components/PasswordInput.d.ts +0 -7
- package/dist/ui/components/PasswordInput.d.ts.map +0 -1
- package/dist/ui/components/PasswordInput.js +0 -32
- package/dist/ui/components/SSH.d.ts +0 -10
- package/dist/ui/components/SSH.d.ts.map +0 -1
- package/dist/ui/components/SSH.js +0 -22
- package/dist/ui/components/SamplesUpload.d.ts +0 -10
- package/dist/ui/components/SamplesUpload.d.ts.map +0 -1
- package/dist/ui/components/SamplesUpload.js +0 -24
- package/dist/ui/components/Sampling.d.ts +0 -10
- package/dist/ui/components/Sampling.d.ts.map +0 -1
- package/dist/ui/components/Sampling.js +0 -58
- package/dist/ui/components/Session.d.ts +0 -10
- package/dist/ui/components/Session.d.ts.map +0 -1
- package/dist/ui/components/Session.js +0 -47
- package/dist/ui/components/Spinner.d.ts +0 -3
- package/dist/ui/components/Spinner.d.ts.map +0 -1
- package/dist/ui/components/Spinner.js +0 -30
- package/dist/ui/components/Splash.d.ts +0 -3
- package/dist/ui/components/Splash.d.ts.map +0 -1
- package/dist/ui/components/Splash.js +0 -13
- package/dist/ui/components/TextInput.d.ts +0 -11
- package/dist/ui/components/TextInput.d.ts.map +0 -1
- package/dist/ui/components/TextInput.js +0 -286
- package/dist/ui/components/UserExplanation.d.ts +0 -10
- package/dist/ui/components/UserExplanation.d.ts.map +0 -1
- package/dist/ui/components/UserExplanation.js +0 -34
- package/dist/validatePaths.d.mts +0 -13
- package/dist/validatePaths.d.mts.map +0 -1
- package/dist/validatePaths.mjs +0 -58
package/dist/flow/events.d.mts
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import type { TPostIntrospectionStage } from '@dbctx/common';
|
|
2
|
-
import type { TSensitiveMask, TTableSampleEvent } from '../app/sample.mjs';
|
|
3
|
-
export type TFlowEvent = {
|
|
4
|
-
readonly kind: 'start';
|
|
5
|
-
} | {
|
|
6
|
-
readonly kind: 'stop-after-reached';
|
|
7
|
-
} | {
|
|
8
|
-
readonly kind: 'ssh-connected';
|
|
9
|
-
} | {
|
|
10
|
-
readonly kind: 'ssh-failed';
|
|
11
|
-
readonly error: string;
|
|
12
|
-
} | {
|
|
13
|
-
readonly kind: 'ssh-not-needed';
|
|
14
|
-
} | {
|
|
15
|
-
readonly kind: 'db-connected';
|
|
16
|
-
} | {
|
|
17
|
-
readonly kind: 'db-failed';
|
|
18
|
-
readonly error: string;
|
|
19
|
-
} | {
|
|
20
|
-
readonly kind: 'introspection-loaded';
|
|
21
|
-
} | {
|
|
22
|
-
readonly kind: 'introspection-failed';
|
|
23
|
-
readonly error: string;
|
|
24
|
-
} | {
|
|
25
|
-
readonly kind: 'output-json-written';
|
|
26
|
-
} | {
|
|
27
|
-
readonly kind: 'output-json-skipped';
|
|
28
|
-
} | {
|
|
29
|
-
readonly kind: 'output-json-failed';
|
|
30
|
-
readonly error: string;
|
|
31
|
-
} | {
|
|
32
|
-
readonly kind: 'output-json-not-requested';
|
|
33
|
-
} | {
|
|
34
|
-
readonly kind: 'session-created';
|
|
35
|
-
readonly sessionId: string;
|
|
36
|
-
} | {
|
|
37
|
-
readonly kind: 'session-failed';
|
|
38
|
-
readonly error: string;
|
|
39
|
-
} | {
|
|
40
|
-
readonly kind: 'auth-confirmed';
|
|
41
|
-
readonly token: string;
|
|
42
|
-
} | {
|
|
43
|
-
readonly kind: 'auth-failed';
|
|
44
|
-
readonly error: string;
|
|
45
|
-
} | {
|
|
46
|
-
readonly kind: 'auth-not-needed';
|
|
47
|
-
} | {
|
|
48
|
-
readonly kind: 'fast-path-completed';
|
|
49
|
-
readonly sessionId: string;
|
|
50
|
-
readonly token: string;
|
|
51
|
-
} | {
|
|
52
|
-
readonly kind: 'explanation-given';
|
|
53
|
-
readonly value: string;
|
|
54
|
-
} | {
|
|
55
|
-
readonly kind: 'check-introspection-hit';
|
|
56
|
-
readonly revisionId: string;
|
|
57
|
-
readonly samplesExist: boolean;
|
|
58
|
-
readonly tablesNeedingSamples: readonly string[];
|
|
59
|
-
readonly postIntrospectionJobId: string | null;
|
|
60
|
-
} | {
|
|
61
|
-
readonly kind: 'check-introspection-miss';
|
|
62
|
-
} | {
|
|
63
|
-
readonly kind: 'introspection-ingested';
|
|
64
|
-
readonly revisionId: string;
|
|
65
|
-
readonly samplesExist: boolean;
|
|
66
|
-
readonly tablesNeedingSamples: readonly string[];
|
|
67
|
-
readonly postIntrospectionJobId: string | null;
|
|
68
|
-
} | {
|
|
69
|
-
readonly kind: 'ingest-failed';
|
|
70
|
-
readonly error: string;
|
|
71
|
-
} | {
|
|
72
|
-
readonly kind: 'mask-loaded';
|
|
73
|
-
readonly mask: TSensitiveMask;
|
|
74
|
-
} | {
|
|
75
|
-
readonly kind: 'mask-fetch-failed';
|
|
76
|
-
readonly error: string;
|
|
77
|
-
} | {
|
|
78
|
-
readonly kind: 'sample-table-yielded';
|
|
79
|
-
readonly event: TTableSampleEvent;
|
|
80
|
-
} | {
|
|
81
|
-
readonly kind: 'sampling-completed';
|
|
82
|
-
} | {
|
|
83
|
-
readonly kind: 'sampling-failed';
|
|
84
|
-
readonly error: string;
|
|
85
|
-
} | {
|
|
86
|
-
readonly kind: 'sampling-not-needed';
|
|
87
|
-
} | {
|
|
88
|
-
readonly kind: 'sample-chunk-uploaded';
|
|
89
|
-
readonly chunkSize: number;
|
|
90
|
-
} | {
|
|
91
|
-
readonly kind: 'samples-upload-completed';
|
|
92
|
-
} | {
|
|
93
|
-
readonly kind: 'samples-upload-failed';
|
|
94
|
-
readonly error: string;
|
|
95
|
-
} | {
|
|
96
|
-
readonly kind: 'samples-upload-not-needed';
|
|
97
|
-
} | {
|
|
98
|
-
readonly kind: 'post-introspection-progress';
|
|
99
|
-
readonly stage: TPostIntrospectionStage;
|
|
100
|
-
readonly tokensIn: number | null;
|
|
101
|
-
readonly tokensOut: number | null;
|
|
102
|
-
readonly columnsDone: number | null;
|
|
103
|
-
readonly columnsTotal: number | null;
|
|
104
|
-
} | {
|
|
105
|
-
readonly kind: 'post-introspection-completed';
|
|
106
|
-
} | {
|
|
107
|
-
readonly kind: 'post-introspection-failed';
|
|
108
|
-
readonly error: string;
|
|
109
|
-
} | {
|
|
110
|
-
readonly kind: 'post-sampling-completed';
|
|
111
|
-
} | {
|
|
112
|
-
readonly kind: 'post-sampling-failed';
|
|
113
|
-
readonly error: string;
|
|
114
|
-
};
|
|
115
|
-
//# sourceMappingURL=events.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.mts","sourceRoot":"./src/","sources":["flow/events.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EAAC,cAAc,EAAE,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAKzE,MAAM,MAAM,UAAU,GAEhB;IAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAC,GACxB;IAAC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAA;CAAC,GAGrC;IAAC,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAA;CAAC,GAChC;IAAC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAC,GACrD;IAAC,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAA;CAAC,GAGjC;IAAC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;C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1wbGVzLXVwbG9hZC1mYWlsZWQnOyByZWFkb25seSBlcnJvcjogc3RyaW5nfVxuICAgIHwge3JlYWRvbmx5IGtpbmQ6ICdzYW1wbGVzLXVwbG9hZC1ub3QtbmVlZGVkJ31cblxuICAgIC8vIFBvc3QtaW50cm9zcGVjdGlvbiAoYmFja2dyb3VuZDsgY2FuIHJlc29sdmUgaW4gYW55IHBoYXNlKVxuICAgIHwge1xuICAgICAgICAgIHJlYWRvbmx5IGtpbmQ6ICdwb3N0LWludHJvc3BlY3Rpb24tcHJvZ3Jlc3MnO1xuICAgICAgICAgIHJlYWRvbmx5IHN0YWdlOiBUUG9zdEludHJvc3BlY3Rpb25TdGFnZTtcbiAgICAgICAgICByZWFkb25seSB0b2tlbnNJbjogbnVtYmVyIHwgbnVsbDtcbiAgICAgICAgICByZWFkb25seSB0b2tlbnNPdXQ6IG51bWJlciB8IG51bGw7XG4gICAgICAgICAgcmVhZG9ubHkgY29sdW1uc0RvbmU6IG51bWJlciB8IG51bGw7XG4gICAgICAgICAgcmVhZG9ubHkgY29sdW1uc1RvdGFsOiBudW1iZXIgfCBudWxsO1xuICAgICAgfVxuICAgIHwge3JlYWRvbmx5IGtpbmQ6ICdwb3N0LWludHJvc3BlY3Rpb24tY29tcGxldGVkJ31cbiAgICB8IHtyZWFkb25seSBraW5kOiAncG9zdC1pbnRyb3NwZWN0aW9uLWZhaWxlZCc7IHJlYWRvbmx5IGVycm9yOiBzdHJpbmd9XG5cbiAgICAvLyBQb3N0LXNhbXBsaW5nXG4gICAgfCB7cmVhZG9ubHkga2luZDogJ3Bvc3Qtc2FtcGxpbmctY29tcGxldGVkJ31cbiAgICB8IHtyZWFkb25seSBraW5kOiAncG9zdC1zYW1wbGluZy1mYWlsZWQnOyByZWFkb25seSBlcnJvcjogc3RyaW5nfTtcbiJdfQ==
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { TRPCClient } from '@trpc/client';
|
|
2
|
-
import type { TAppRouter } from '@dbctx/core';
|
|
3
|
-
import { type TDBConnection } from '../app/db.mjs';
|
|
4
|
-
import { assembleDatabase } from '../app/assemble.mjs';
|
|
5
|
-
import type { TStore } from '../store.mjs';
|
|
6
|
-
import type { TFlowEvent } from './events.mjs';
|
|
7
|
-
import type { TFlowState } from './states.mjs';
|
|
8
|
-
export type TInterpreterContext = {
|
|
9
|
-
cleanupSSH: (() => void) | null;
|
|
10
|
-
db: TDBConnection | null;
|
|
11
|
-
introspection: Awaited<ReturnType<typeof assembleDatabase>> | null;
|
|
12
|
-
authed: TRPCClient<TAppRouter> | null;
|
|
13
|
-
postIntrospectionPoll: Promise<void> | null;
|
|
14
|
-
explanation: string | null;
|
|
15
|
-
};
|
|
16
|
-
export declare const initialContext: () => TInterpreterContext;
|
|
17
|
-
type TDispatch = (event: TFlowEvent) => void;
|
|
18
|
-
export declare const driveSide: (prev: TFlowState | null, curr: TFlowState, store: TStore, ctx: TInterpreterContext, dispatch: TDispatch) => Promise<void>;
|
|
19
|
-
export declare const cleanup: (ctx: TInterpreterContext) => void;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=interpreter.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interpreter.d.mts","sourceRoot":"./src/","sources":["flow/interpreter.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAC,UAAU,EAAiB,MAAM,aAAa,CAAC;AAK5D,OAAO,EAAY,KAAK,aAAa,EAAC,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AA8BrD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAM7C,MAAM,MAAM,mBAAmB,GAAG;IA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