@dbos-inc/dbos-sdk 1.18.3-preview → 1.18.5-preview

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  # Code of Conduct
2
- As contributors and maintainers of the DBOS Typescript SDK project, we pledge to respect everyone who contributes by posting issues, updating documentation, submitting pull requests, providing feedback in comments, and any other activities.
2
+ As contributors and maintainers of DBOS Transact, we pledge to respect everyone who contributes by posting issues, updating documentation, submitting pull requests, providing feedback in comments, and any other activities.
3
3
 
4
4
  ## Our Standards
5
5
  Examples of behavior that contributes to creating a positive environment include:
package/CONTRIBUTING.md CHANGED
@@ -1,10 +1,10 @@
1
- # Contributing to DBOS-TS
1
+ # Contributing to DBOS Transact
2
2
 
3
- Thank you for considering contributing to the DBOS Typescript SDK. We welcome contributions from everyone, including bug fixes, feature enhancements, documentation improvements, or any other form of contribution.
3
+ Thank you for considering contributing to DBOS Transact. We welcome contributions from everyone, including bug fixes, feature enhancements, documentation improvements, or any other form of contribution.
4
4
 
5
5
  ## How to Contribute
6
6
 
7
- To get started with DBOS-TS, please read the [README](README.md).
7
+ To get started with DBOS Transact, please read the [README](README.md).
8
8
 
9
9
  You can contribute in many ways. Some simple ways are:
10
10
  * Use the SDK and open issues to report any bugs, questions, concern with the SDK, samples or documentation.
package/README.md CHANGED
@@ -1,29 +1,35 @@
1
1
  # DBOS Transact
2
2
 
3
- DBOS Transact is a **transactional TypeScript framework** for developing database-backed applications with built-in once-and-only-once code execution.
3
+ DBOS Transact is a **modern TypeScript framework** for backend applications.
4
4
 
5
- You want to build your next application with DBOS Transact because:
5
+ You want to build your next application with DBOS Transact because you need:
6
6
 
7
- - **It's reliable by default**. If your workflows are interrupted for any reason, they [will always resume from where they left off](https://docs.dbos.dev/tutorials/workflow-tutorial#reliability-guarantees). Reliable message delivery is [built in](https://docs.dbos.dev/tutorials/workflow-communication-tutorial#reliability-guarantees-1). Idempotency is [built in](https://docs.dbos.dev/tutorials/idempotency-tutorial).
8
- - **It's simple**. Write your business logic with serverless functions and either [self-host them](https://docs.dbos.dev/tutorials/self-hosting) or [deploy them to DBOS cloud](https://docs.dbos.dev/getting-started/quickstart#deploying-to-dbos-cloud) in minutes. Store your data in any PostgreSQL-compatible database—we'll manage the transactions for you.
9
- - **It makes debugging easy**. With our [time travel debugger](https://docs.dbos.dev/cloud-tutorials/timetravel-debugging), you can "rewind time" and replay any DBOS Cloud trace locally on your computer, exactly as it originally happened.
7
+ - **Resilience to any failure**. If your app is interrupted for any reason, it [automatically resumes from where it left off](https://docs.dbos.dev/tutorials/workflow-tutorial#reliability-guarantees). Reliable message delivery is [built in](https://docs.dbos.dev/tutorials/workflow-communication-tutorial#reliability-guarantees-1). Idempotency is [built in](https://docs.dbos.dev/tutorials/idempotency-tutorial).
8
+ - **Built-in observability**. Automatically emit [OpenTelemetry](https://opentelemetry.io/)-compatible [logs and traces](https://docs.dbos.dev/tutorials/logging) from any application. Query your app's history from the [command line](https://docs.dbos.dev/api-reference/cli#workflow-management-commands) or [with SQL](https://docs.dbos.dev/api-reference/system-tables).
9
+ - **A framework built for the tools you love**. Build with TypeScript and **any** PostgreSQL-compatible database. Use raw SQL or your favorite query builder or ORM—we support [Knex](https://docs.dbos.dev/tutorials/using-knex), [TypeORM](https://docs.dbos.dev/tutorials/using-typeorm), and [Prisma](https://docs.dbos.dev/tutorials/using-prisma) out of the box.
10
+ - **Blazing-fast, developer-friendly serverless**. Develop your project locally and run it anywhere. When you're ready, [deploy it for free to DBOS Cloud](https://docs.dbos.dev/getting-started/quickstart#deploying-to-dbos-cloud) and we'll host it for you, [25x faster](https://www.dbos.dev/blog/dbos-vs-aws-step-functions-benchmark) and [15x cheaper](https://www.dbos.dev/blog/dbos-vs-lambda-cost) than AWS Lambda.
10
11
 
11
12
  ## Getting Started
12
13
 
13
14
  The fastest way to get started is by following the [quickstart](https://docs.dbos.dev/getting-started/quickstart), where you'll learn how to get a DBOS Transact application running in less than five minutes.
14
15
 
16
+ ## Documentation
17
+
18
+ Check out the full documentation at [https://docs.dbos.dev/](https://docs.dbos.dev/).
19
+
15
20
  ## Main Features
16
21
 
17
22
  Here are some of the core features of DBOS Transact:
18
23
 
19
24
  | Feature | Description
20
25
  | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
21
- | [Transactions](https://docs.dbos.dev/tutorials/transaction-tutorial) | Easily and safely query your application database
26
+ | [Transactions](https://docs.dbos.dev/tutorials/transaction-tutorial) | Easily and safely query your application database using [Knex](https://docs.dbos.dev/tutorials/using-knex), [TypeORM](https://docs.dbos.dev/tutorials/using-typeorm), [Prisma](https://docs.dbos.dev/tutorials/using-prisma), or raw SQL.
22
27
  | [Workflows](https://docs.dbos.dev/tutorials/workflow-tutorial) | Reliable workflow orchestration—resume your program after any failure.
23
28
  | [HTTP Serving](https://docs.dbos.dev/tutorials/http-serving-tutorial) | Set up endpoints to serve requests from your application.
24
29
  | [Idempotency](https://docs.dbos.dev/tutorials/idempotency-tutorial) | Automatically make any request idempotent, so your requests happen exactly once.
25
30
  | [Authentication and Authorization](https://docs.dbos.dev/tutorials/authentication-authorization) | Secure your HTTP endpoints so only authorized users can access them.
26
31
  | [Kafka Integration](https://docs.dbos.dev/tutorials/kafka-integration) | Consume Kafka messages exactly-once with transactions or workflows.
32
+ | [Scheduled Workflows](https://docs.dbos.dev/tutorials/scheduled-workflows) | Schedule your workflows to run exactly-once per time interval with cron-like syntax.
27
33
  | [Testing and Debugging](https://docs.dbos.dev/tutorials/testing-tutorial) | Easily write unit tests for your applications, compatible with Jest and other popular testing frameworks.
28
34
  | [Self-Hosting](https://docs.dbos.dev/tutorials/self-hosting) | Host your applications anywhere, as long as they have a Postgres database to connect to.
29
35
 
@@ -32,26 +38,13 @@ And DBOS Cloud:
32
38
  | Feature | Description
33
39
  | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
34
40
  | [Serverless App Deployment](https://docs.dbos.dev/cloud-tutorials/application-management) | Deploy apps to DBOS Cloud in minutes.
41
+ | [Interactive Time Travel](https://docs.dbos.dev/cloud-tutorials/interactive-timetravel) | Query your application database as of any past point in time.
35
42
  | [Time Travel Debugging](https://docs.dbos.dev/cloud-tutorials/timetravel-debugging) | Replay any DBOS Cloud trace locally on your computer.
36
- | [Cloud Database Management](https://docs.dbos.dev/cloud-tutorials/database-management) | Provision cloud Postgres instances for your applications.
43
+ | [Cloud Database Management](https://docs.dbos.dev/cloud-tutorials/database-management) | Provision cloud Postgres instances for your applications. Alternatively, [bring your own database](https://docs.dbos.dev/cloud-tutorials/byod-management).
37
44
  | [Built-in Observability](https://docs.dbos.dev/cloud-tutorials/monitoring-dashboard) | Built-in log capture, request tracing, and dashboards.
38
45
 
39
- ## Documentation
40
-
41
- You can find our full documentation at [https://docs.dbos.dev/](https://docs.dbos.dev/).
42
-
43
- Check out our [Getting Started](https://docs.dbos.dev/getting-started/) for an overview of how to start with DBOS Transact.
44
-
45
- Our documentation has the following sections:
46
-
47
- - [Getting Started](https://docs.dbos.dev/getting-started)
48
- - [DBOS Transact Tutorials](https://docs.dbos.dev/category/dbos-transact-tutorials)
49
- - [DBOS Cloud Tutorials](https://docs.dbos.dev/category/dbos-cloud-tutorials)
50
- - [API Reference](https://docs.dbos.dev/category/reference)
51
- - [Concepts and Explanations](https://docs.dbos.dev/category/concepts-and-explanations)
52
-
53
46
  ## Community
54
47
 
55
- Please join our community on [Discord](https://discord.gg/fMwQjeW5zg)!
48
+ If you're interested in building with us, please star our repository and join our community on [Discord](https://discord.gg/fMwQjeW5zg)!
56
49
  If you see a bug or have a feature request, don't hesitate to open an issue here on GitHub.
57
50
  If you're interested in contributing, check out our [contributions guide](./CONTRIBUTING.md).
@@ -11,8 +11,8 @@ async function debugWorkflow(dbosConfig, runtimeConfig, workflowUUID, proxy) {
11
11
  try {
12
12
  const dbosExec = new dbos_executor_1.DBOSExecutor(dbosConfig);
13
13
  dbosExec.logger.debug(`Loading classes from entrypoints: ${JSON.stringify(runtimeConfig.entrypoints)}`);
14
- const classes = await runtime_1.DBOSRuntime.loadClasses(runtimeConfig.entrypoints);
15
- await dbosExec.init(classes);
14
+ await runtime_1.DBOSRuntime.loadClasses(runtimeConfig.entrypoints);
15
+ await dbosExec.init();
16
16
  // Invoke the workflow in debug mode.
17
17
  const handle = await dbosExec.executeWorkflowUUID(workflowUUID);
18
18
  await handle.getResult();
@@ -1 +1 @@
1
- {"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../src/dbos-runtime/debug.ts"],"names":[],"mappings":";;;AAAA,oDAA4D;AAC5D,oCAAwG;AACxG,4CAAiD;AACjD,uCAA2D;AAEpD,KAAK,UAAU,aAAa,CAAC,UAAsB,EAAE,aAAgC,EAAE,YAAoB,EAAE,KAAc;IAChI,UAAU,GAAG,EAAE,GAAG,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IACnE,MAAM,MAAM,GAAG,IAAI,mBAAY,EAAE,CAAC;IAClC,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,IAAI,4BAAY,CAAC,UAAU,CAAC,CAAC;QAC9C,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,qCAAqC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACxG,MAAM,OAAO,GAAG,MAAM,qBAAW,CAAC,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;QACzE,MAAM,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAE7B,qCAAqC;QACrC,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;QAChE,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;QAEzB,2BAA2B;QAC3B,MAAM,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,UAAU,GAAG,kBAAkB,CAAC;QACtC,MAAM,CAAC,KAAK,CAAC,GAAG,UAAU,KAAM,CAAW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AEG;WACU,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAyBlE,SAAS,IAAI,IAAI;IAOjB;;OAEG;IACG,OAAO;CAWd"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAe5D,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd;AACD,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AAEtD,qBAAa,WAAW;IAMc,OAAO,CAAC,QAAQ,CAAC,aAAa;IALlE,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,QAAQ,CAA6B;IAC7C,OAAO,CAAC,OAAO,CAAyD;IACxE,OAAO,CAAC,SAAS,CAA8B;gBAEnC,UAAU,EAAE,UAAU,EAAmB,aAAa,EAAE,iBAAiB;IAKrF;;OAEG;IACG,YAAY;IAiClB;;OAEG;WACU,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAyBlE,SAAS,IAAI,IAAI;IAOjB;;OAEG;IACG,OAAO;CAWd"}
@@ -35,7 +35,6 @@ const error_1 = require("../error");
35
35
  const node_path_1 = __importDefault(require("node:path"));
36
36
  const url_1 = require("url");
37
37
  const scheduler_1 = require("../scheduler/scheduler");
38
- const decorators_1 = require("../decorators");
39
38
  exports.defaultEntryPoint = "dist/operations.js";
40
39
  class DBOSRuntime {
41
40
  runtimeConfig;
@@ -55,12 +54,8 @@ class DBOSRuntime {
55
54
  try {
56
55
  this.dbosExec = new dbos_executor_1.DBOSExecutor(this.dbosConfig);
57
56
  this.dbosExec.logger.debug(`Loading classes from entrypoints ${JSON.stringify(this.runtimeConfig.entrypoints)}`);
58
- const classes = await DBOSRuntime.loadClasses(this.runtimeConfig.entrypoints);
59
- for (const cls of (0, decorators_1.getAllRegisteredClasses)()) {
60
- if (!classes.includes(cls))
61
- classes.push(cls);
62
- }
63
- await this.dbosExec.init(classes);
57
+ await DBOSRuntime.loadClasses(this.runtimeConfig.entrypoints);
58
+ await this.dbosExec.init();
64
59
  const server = new server_1.DBOSHttpServer(this.dbosExec);
65
60
  this.servers = await server.listen(this.runtimeConfig.port);
66
61
  this.dbosExec.logRegisteredHTTPUrls();
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/dbos-runtime/runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA4D;AAC5D,iDAAsD;AACtD,uCAAyB;AACzB,mCAAkC;AAClC,oCAAuD;AACvD,0DAA6B;AAE7B,6BAAoC;AACpC,sDAAuD;AACvD,8CAAwD;AAW3C,QAAA,iBAAiB,GAAG,oBAAoB,CAAC;AAEtD,MAAa,WAAW;IAM+B;IAL7C,UAAU,CAAa;IACvB,QAAQ,GAAwB,IAAI,CAAC;IACrC,OAAO,CAAyD;IAChE,SAAS,GAAyB,IAAI,CAAC;IAE/C,YAAY,UAAsB,EAAmB,aAAgC;QAAhC,kBAAa,GAAb,aAAa,CAAmB;QACnF,gCAAgC;QAChC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY;QAChB,IAAI,CAAC;YACH,IAAI,CAAC,QAAQ,GAAG,IAAI,4BAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAClD,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,oCAAoC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;YACjH,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,CAA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AC,WAAW,CAAC,KAAK,EAAE,CAAC;QACnC,CAAC;QACD,MAAM,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACjC,CAAC;CACF;AAhGD,kCAgGC"}
@@ -1 +1 @@
1
- {"version":3,"file":"workflow_management.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/workflow_management.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAgB,MAAM,IAAI,CAAC;AAGjE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAe,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAG3D,wBAAsB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,OAAO,iBAMpG;AAED,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG;IAClE,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB,CAAA;AAyBD,wBAAsB,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,eAK9F;AAGD,wBAAsB,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iBAI5E;AAED,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB,GAAG,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,oBAcnJ"}
1
+ {"version":3,"file":"workflow_management.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/workflow_management.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAgB,MAAM,IAAI,CAAC;AAGjE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAe,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE3D,wBAAsB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,OAAO,iBAMpG;AAED,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG;IAClE,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB,CAAA;AAyBD,wBAAsB,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,eAK9F;AAGD,wBAAsB,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iBAI5E;AAED,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB,GAAG,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,oBAanJ"}
@@ -6,7 +6,6 @@ const __1 = require("..");
6
6
  const system_database_1 = require("../system_database");
7
7
  const dbos_executor_1 = require("../dbos-executor");
8
8
  const runtime_1 = require("./runtime");
9
- const decorators_1 = require("../decorators");
10
9
  async function listWorkflows(config, input, getRequest) {
11
10
  const systemDatabase = new system_database_1.PostgresSystemDatabase(config.poolConfig, config.system_database, (0, winston_1.createLogger)());
12
11
  const workflowUUIDs = (await systemDatabase.getWorkflows(input)).workflowUUIDs.reverse(); // Reverse so most recent entries are printed last
@@ -54,12 +53,10 @@ async function cancelWorkflow(config, workflowUUID) {
54
53
  exports.cancelWorkflow = cancelWorkflow;
55
54
  async function reattemptWorkflow(config, runtimeConfig, workflowUUID, startNewWorkflow) {
56
55
  const dbosExec = new dbos_executor_1.DBOSExecutor(config);
57
- const classes = runtimeConfig !== null ? await runtime_1.DBOSRuntime.loadClasses(runtimeConfig.entrypoints) : [];
58
- for (const cls of (0, decorators_1.getAllRegisteredClasses)()) {
59
- if (!classes.includes(cls))
60
- classes.push(cls);
56
+ if (runtimeConfig !== null) {
57
+ await runtime_1.DBOSRuntime.loadClasses(runtimeConfig.entrypoints);
61
58
  }
62
- await dbosExec.init(classes);
59
+ await dbosExec.init();
63
60
  if (!startNewWorkflow) {
64
61
  await dbosExec.systemDatabase.setWorkflowStatus(workflowUUID, __1.StatusString.PENDING, true);
65
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"workflow_management.js","sourceRoot":"","sources":["../../../src/dbos-runtime/workflow_management.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,0BAAiE;AACjE,wDAA4E;AAI5E,oDAAgD;AAChD,uCAA2D;AAC3D,8CAAwD;AAEjD,KAAK,UAAU,aAAa,CAAC,MAAkB,EAAE,KAAwB,EAAE,UAAmB;IACnG,MAAM,cAAc,GAAG,IAAI,wCAAsB,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,eAAe,EAAE,IAAA,sBAAY,GAA6B,CAAC,CAAA;IACvI,MAAM,aAAa,GAAG,CAAC,MAAM,cAAc,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,kDAAkD;IAC5I,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,MAAM,eAAe,CAAC,cAAc,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAA;IAC7H,MAAM,cAAc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