@dudousxd/nestjs-durable-dashboard 0.2.2 → 0.3.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/server/durable-api.controller.d.ts +1 -1
- package/dist/server/durable-api.controller.d.ts.map +1 -1
- package/dist/server/durable-api.controller.js +2 -2
- package/dist/server/durable-api.controller.js.map +1 -1
- package/dist/server/durable-dashboard.module.d.ts +14 -7
- package/dist/server/durable-dashboard.module.d.ts.map +1 -1
- package/dist/server/durable-dashboard.module.js +34 -13
- package/dist/server/durable-dashboard.module.js.map +1 -1
- package/dist/server/durable-ui.controller.d.ts +5 -2
- package/dist/server/durable-ui.controller.d.ts.map +1 -1
- package/dist/server/durable-ui.controller.js +10 -4
- package/dist/server/durable-ui.controller.js.map +1 -1
- package/dist/spa/assets/{index-CbJZ4TWp.js → index-COjl0KEs.js} +1 -1
- package/dist/spa/index.html +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RunStatus } from '@dudousxd/nestjs-durable-core';
|
|
2
2
|
import { DashboardService } from './dashboard.service.js';
|
|
3
|
-
/** JSON API consumed by the control-plane SPA. Mounted at
|
|
3
|
+
/** JSON API consumed by the control-plane SPA. Mounted at `apiBasePath` (set by RouterModule). */
|
|
4
4
|
export declare class DurableApiController {
|
|
5
5
|
private readonly dashboard;
|
|
6
6
|
constructor(dashboard: DashboardService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durable-api.controller.d.ts","sourceRoot":"","sources":["../../src/server/durable-api.controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,
|
|
1
|
+
{"version":3,"file":"durable-api.controller.d.ts","sourceRoot":"","sources":["../../src/server/durable-api.controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,kGAAkG;AAClG,qBACa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,gBAAgB;IAGxD,IAAI,CAAkB,MAAM,CAAC,EAAE,SAAS,EAAqB,QAAQ,CAAC,EAAE,MAAM;IAKxE,GAAG,CAAc,EAAE,EAAE,MAAM;IAOjC,KAAK,CAAc,EAAE,EAAE,MAAM;IAKvB,MAAM,CAAc,EAAE,EAAE,MAAM;CAKrC"}
|
|
@@ -12,7 +12,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
};
|
|
13
13
|
import { Controller, Get, NotFoundException, Param, Post, Query } from '@nestjs/common';
|
|
14
14
|
import { DashboardService } from './dashboard.service.js';
|
|
15
|
-
/** JSON API consumed by the control-plane SPA. Mounted at
|
|
15
|
+
/** JSON API consumed by the control-plane SPA. Mounted at `apiBasePath` (set by RouterModule). */
|
|
16
16
|
let DurableApiController = class DurableApiController {
|
|
17
17
|
dashboard;
|
|
18
18
|
constructor(dashboard) {
|
|
@@ -67,7 +67,7 @@ __decorate([
|
|
|
67
67
|
__metadata("design:returntype", Promise)
|
|
68
68
|
], DurableApiController.prototype, "cancel", null);
|
|
69
69
|
DurableApiController = __decorate([
|
|
70
|
-
Controller(
|
|
70
|
+
Controller(),
|
|
71
71
|
__metadata("design:paramtypes", [DashboardService])
|
|
72
72
|
], DurableApiController);
|
|
73
73
|
export { DurableApiController };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durable-api.controller.js","sourceRoot":"","sources":["../../src/server/durable-api.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,iBAAiB,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACxF,OAA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,MAAM,CAAC;IACN,WAAA,KAAK,CAAC,QAAQ,CAAC,CAAA;IAAsB,WAAA,KAAK,CAAC,UAAU,CAAC,CAAA;;;;gDAE3D;AAGK;IADL,GAAG,CAAC,UAAU,CAAC;IACL,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;;;;+CAIrB;AAGD;IADC,IAAI,CAAC,gBAAgB,CAAC;IAChB,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;;;;iDAEjB;AAGK;IADL,IAAI,CAAC,iBAAiB,CAAC;IACV,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;;;;kDAIxB;AAzBU,oBAAoB;IADhC,UAAU,EAAE;qCAE6B,gBAAgB;GAD7C,oBAAoB,CA0BhC"}
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
import { type DynamicModule } from '@nestjs/common';
|
|
2
2
|
export interface DurableDashboardOptions {
|
|
3
3
|
/**
|
|
4
|
-
* Where
|
|
5
|
-
*
|
|
6
|
-
* `/api` prefix (so its auth/proxy rules cover the dashboard API too).
|
|
4
|
+
* Where the SPA (UI) is served. Default `/durable`. This is a page route — keep it out of an
|
|
5
|
+
* `/api` prefix so it reads as a UI, not an endpoint.
|
|
7
6
|
*/
|
|
8
7
|
basePath?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Where the JSON API is mounted (what the SPA fetches). Default `<basePath>/api`. Set it under
|
|
10
|
+
* your app's `/api` prefix — e.g. `/api/durable` — so the API inherits the app's auth/proxy rules
|
|
11
|
+
* while the UI stays at `basePath`.
|
|
12
|
+
*/
|
|
13
|
+
apiBasePath?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Holds the JSON API controller + its read service, mounted on its own path by `forRoot`. */
|
|
16
|
+
export declare class DurableApiModule {
|
|
9
17
|
}
|
|
10
18
|
/**
|
|
11
|
-
* Mounts the control plane
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* guard/middleware on the base route to protect it.
|
|
19
|
+
* Mounts the control plane: the bundled React SPA at `basePath` and its JSON API at `apiBasePath`
|
|
20
|
+
* (default `<basePath>/api`). Import via `DurableDashboardModule.forRoot(...)` alongside
|
|
21
|
+
* `DurableModule` (global), so it resolves the engine and store. Front the routes with a guard.
|
|
15
22
|
*/
|
|
16
23
|
export declare class DurableDashboardModule {
|
|
17
24
|
static forRoot(options?: DurableDashboardOptions): DynamicModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durable-dashboard.module.d.ts","sourceRoot":"","sources":["../../src/server/durable-dashboard.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAU,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"durable-dashboard.module.d.ts","sourceRoot":"","sources":["../../src/server/durable-dashboard.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAU,MAAM,gBAAgB,CAAC;AAU5D,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAOD,8FAA8F;AAC9F,qBAKa,gBAAgB;CAAG;AAEhC;;;;GAIG;AACH,qBACa,sBAAsB;IACjC,MAAM,CAAC,OAAO,CAAC,OAAO,GAAE,uBAA4B,GAAG,aAAa;CAqBrE"}
|
|
@@ -9,26 +9,47 @@ import { Module } from '@nestjs/common';
|
|
|
9
9
|
import { RouterModule } from '@nestjs/core';
|
|
10
10
|
import { DashboardService } from './dashboard.service.js';
|
|
11
11
|
import { DurableApiController } from './durable-api.controller.js';
|
|
12
|
-
import { DASHBOARD_BASE_PATH, DurableUiController } from './durable-ui.controller.js';
|
|
13
|
-
/** Leading slash, no trailing slash
|
|
14
|
-
function
|
|
15
|
-
return `/${
|
|
12
|
+
import { DASHBOARD_API_PATH, DASHBOARD_BASE_PATH, DurableUiController, } from './durable-ui.controller.js';
|
|
13
|
+
/** Leading slash, no trailing slash. */
|
|
14
|
+
function normalize(path) {
|
|
15
|
+
return `/${path.replace(/^\/+|\/+$/g, '')}`;
|
|
16
16
|
}
|
|
17
|
+
/** Holds the JSON API controller + its read service, mounted on its own path by `forRoot`. */
|
|
18
|
+
let DurableApiModule = class DurableApiModule {
|
|
19
|
+
};
|
|
20
|
+
DurableApiModule = __decorate([
|
|
21
|
+
Module({
|
|
22
|
+
controllers: [DurableApiController],
|
|
23
|
+
providers: [DashboardService],
|
|
24
|
+
exports: [DashboardService],
|
|
25
|
+
})
|
|
26
|
+
], DurableApiModule);
|
|
27
|
+
export { DurableApiModule };
|
|
17
28
|
/**
|
|
18
|
-
* Mounts the control plane
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* guard/middleware on the base route to protect it.
|
|
29
|
+
* Mounts the control plane: the bundled React SPA at `basePath` and its JSON API at `apiBasePath`
|
|
30
|
+
* (default `<basePath>/api`). Import via `DurableDashboardModule.forRoot(...)` alongside
|
|
31
|
+
* `DurableModule` (global), so it resolves the engine and store. Front the routes with a guard.
|
|
22
32
|
*/
|
|
23
33
|
let DurableDashboardModule = DurableDashboardModule_1 = class DurableDashboardModule {
|
|
24
34
|
static forRoot(options = {}) {
|
|
25
|
-
const basePath =
|
|
35
|
+
const basePath = normalize(options.basePath ?? '/durable');
|
|
36
|
+
const apiBasePath = normalize(options.apiBasePath ?? `${basePath}/api`);
|
|
26
37
|
return {
|
|
27
38
|
module: DurableDashboardModule_1,
|
|
28
|
-
imports: [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
39
|
+
imports: [
|
|
40
|
+
DurableApiModule,
|
|
41
|
+
RouterModule.register([
|
|
42
|
+
{ path: basePath, module: DurableDashboardModule_1 }, // the UI controller below
|
|
43
|
+
{ path: apiBasePath, module: DurableApiModule },
|
|
44
|
+
]),
|
|
45
|
+
],
|
|
46
|
+
controllers: [DurableUiController],
|
|
47
|
+
providers: [
|
|
48
|
+
{ provide: DASHBOARD_BASE_PATH, useValue: basePath },
|
|
49
|
+
{ provide: DASHBOARD_API_PATH, useValue: apiBasePath },
|
|
50
|
+
],
|
|
51
|
+
// Re-export the API module so its DashboardService reaches importers (e.g. flip's own controllers).
|
|
52
|
+
exports: [DurableApiModule],
|
|
32
53
|
};
|
|
33
54
|
}
|
|
34
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durable-dashboard.module.js","sourceRoot":"","sources":["../../src/server/durable-dashboard.module.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAsB,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,
|
|
1
|
+
{"version":3,"file":"durable-dashboard.module.js","sourceRoot":"","sources":["../../src/server/durable-dashboard.module.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAsB,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AAgBpC,wCAAwC;AACxC,SAAS,SAAS,CAAC,IAAY;IAC7B,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,EAAE,CAAC;AAC9C,CAAC;AAED,8FAA8F;AAMvF,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAG,CAAA;AAAnB,gBAAgB;IAL5B,MAAM,CAAC;QACN,WAAW,EAAE,CAAC,oBAAoB,CAAC;QACnC,SAAS,EAAE,CAAC,gBAAgB,CAAC;QAC7B,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC5B,CAAC;GACW,gBAAgB,CAAG;;AAEhC;;;;GAIG;AAEI,IAAM,sBAAsB,8BAA5B,MAAM,sBAAsB;IACjC,MAAM,CAAC,OAAO,CAAC,UAAmC,EAAE;QAClD,MAAM,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,QAAQ,IAAI,UAAU,CAAC,CAAC;QAC3D,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,CAAC,WAAW,IAAI,GAAG,QAAQ,MAAM,CAAC,CAAC;QACxE,OAAO;YACL,MAAM,EAAE,wBAAsB;YAC9B,OAAO,EAAE;gBACP,gBAAgB;gBAChB,YAAY,CAAC,QAAQ,CAAC;oBACpB,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,wBAAsB,EAAE,EAAE,0BAA0B;oBAC9E,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE;iBAChD,CAAC;aACH;YACD,WAAW,EAAE,CAAC,mBAAmB,CAAC;YAClC,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,QAAQ,EAAE;gBACpD,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,WAAW,EAAE;aACvD;YACD,oGAAoG;YACpG,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC5B,CAAC;IACJ,CAAC;CACF,CAAA;AAtBY,sBAAsB;IADlC,MAAM,CAAC,EAAE,CAAC;GACE,sBAAsB,CAsBlC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { StreamableFile } from '@nestjs/common';
|
|
2
|
-
/** DI token carrying the
|
|
2
|
+
/** DI token carrying the UI mount base (e.g. `/durable`). */
|
|
3
3
|
export declare const DASHBOARD_BASE_PATH: unique symbol;
|
|
4
|
+
/** DI token carrying the JSON API base the SPA fetches from (e.g. `/api/durable`). */
|
|
5
|
+
export declare const DASHBOARD_API_PATH: unique symbol;
|
|
4
6
|
/**
|
|
5
7
|
* Serves the bundled control-plane SPA at the configured base (+ hashed assets at `<base>/assets`).
|
|
6
8
|
* The path comes from `RouterModule` (set by `DurableDashboardModule.forRoot({ basePath })`), so the
|
|
@@ -8,8 +10,9 @@ export declare const DASHBOARD_BASE_PATH: unique symbol;
|
|
|
8
10
|
*/
|
|
9
11
|
export declare class DurableUiController {
|
|
10
12
|
private readonly basePath;
|
|
13
|
+
private readonly apiBasePath;
|
|
11
14
|
private readonly dir;
|
|
12
|
-
constructor(basePath: string);
|
|
15
|
+
constructor(basePath: string, apiBasePath: string);
|
|
13
16
|
index(): string;
|
|
14
17
|
asset(file: string): StreamableFile;
|
|
15
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durable-ui.controller.d.ts","sourceRoot":"","sources":["../../src/server/durable-ui.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAOL,cAAc,EACf,MAAM,gBAAgB,CAAC;AAExB,
|
|
1
|
+
{"version":3,"file":"durable-ui.controller.d.ts","sourceRoot":"","sources":["../../src/server/durable-ui.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAOL,cAAc,EACf,MAAM,gBAAgB,CAAC;AAExB,6DAA6D;AAC7D,eAAO,MAAM,mBAAmB,eAAgC,CAAC;AACjE,sFAAsF;AACtF,eAAO,MAAM,kBAAkB,eAA+B,CAAC;AAoB/D;;;;GAIG;AACH,qBACa,mBAAmB;IAIC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAC1B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAJ1D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAY;gBAGgB,QAAQ,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM;IAQlE,KAAK,IAAI,MAAM;IAkBf,KAAK,CAAgB,IAAI,EAAE,MAAM,GAAG,cAAc;CAWnD"}
|
|
@@ -14,8 +14,10 @@ import { existsSync, readFileSync } from 'node:fs';
|
|
|
14
14
|
import { basename, extname, join, resolve, sep } from 'node:path';
|
|
15
15
|
import { fileURLToPath } from 'node:url';
|
|
16
16
|
import { Controller, Get, Header, Inject, NotFoundException, Param, StreamableFile, } from '@nestjs/common';
|
|
17
|
-
/** DI token carrying the
|
|
17
|
+
/** DI token carrying the UI mount base (e.g. `/durable`). */
|
|
18
18
|
export const DASHBOARD_BASE_PATH = Symbol('DASHBOARD_BASE_PATH');
|
|
19
|
+
/** DI token carrying the JSON API base the SPA fetches from (e.g. `/api/durable`). */
|
|
20
|
+
export const DASHBOARD_API_PATH = Symbol('DASHBOARD_API_PATH');
|
|
19
21
|
/** The base the SPA bundle was built with (Vite `base`); rewritten to the configured base at serve time. */
|
|
20
22
|
const BUILD_BASE = '/durable';
|
|
21
23
|
/** dist/server/durable-ui.controller.js -> ../spa (the Vite build output). */
|
|
@@ -38,9 +40,11 @@ const CONTENT_TYPES = {
|
|
|
38
40
|
*/
|
|
39
41
|
let DurableUiController = class DurableUiController {
|
|
40
42
|
basePath;
|
|
43
|
+
apiBasePath;
|
|
41
44
|
dir = spaDir();
|
|
42
|
-
constructor(basePath) {
|
|
45
|
+
constructor(basePath, apiBasePath) {
|
|
43
46
|
this.basePath = basePath;
|
|
47
|
+
this.apiBasePath = apiBasePath;
|
|
44
48
|
}
|
|
45
49
|
// index.html references hash-named bundles, so it MUST NOT be cached (stale bundle = the
|
|
46
50
|
// classic "stuck loading after a deploy"). The hashed assets below are immutable.
|
|
@@ -52,7 +56,8 @@ let DurableUiController = class DurableUiController {
|
|
|
52
56
|
// The bundle was built with Vite base `/durable/`; rewrite asset URLs to the configured base so
|
|
53
57
|
// the SPA loads from `<base>/assets` wherever it's mounted, and tell the client its API base.
|
|
54
58
|
const html = readFileSync(indexPath, 'utf8').replaceAll(`="${BUILD_BASE}/`, `="${this.basePath}/`);
|
|
55
|
-
|
|
59
|
+
// __DURABLE_BASE__ = where assets load; __DURABLE_API__ = where the SPA fetches the JSON API.
|
|
60
|
+
const inject = `<script>window.__DURABLE_BASE__='${this.basePath}';window.__DURABLE_API__='${this.apiBasePath}';</script>`;
|
|
56
61
|
return html.includes('</head>') ? html.replace('</head>', `${inject}</head>`) : inject + html;
|
|
57
62
|
}
|
|
58
63
|
asset(file) {
|
|
@@ -87,7 +92,8 @@ __decorate([
|
|
|
87
92
|
DurableUiController = __decorate([
|
|
88
93
|
Controller(),
|
|
89
94
|
__param(0, Inject(DASHBOARD_BASE_PATH)),
|
|
90
|
-
|
|
95
|
+
__param(1, Inject(DASHBOARD_API_PATH)),
|
|
96
|
+
__metadata("design:paramtypes", [String, String])
|
|
91
97
|
], DurableUiController);
|
|
92
98
|
export { DurableUiController };
|
|
93
99
|
//# sourceMappingURL=durable-ui.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durable-ui.controller.js","sourceRoot":"","sources":["../../src/server/durable-ui.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,UAAU,EACV,GAAG,EACH,MAAM,EACN,MAAM,EACN,iBAAiB,EACjB,KAAK,EACL,cAAc,GACf,MAAM,gBAAgB,CAAC;AAExB,
|
|
1
|
+
{"version":3,"file":"durable-ui.controller.js","sourceRoot":"","sources":["../../src/server/durable-ui.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,UAAU,EAC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