@zukhruf/nx 0.8.67 → 0.8.69

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 CHANGED
@@ -845,7 +845,7 @@ npx nx migrate --run-migrations
845
845
  | `add-prisma-client-inputs` | 0.8.40 | `...` and `{ "dependentTasksOutputFiles": "**/*.ts" }` in the `inputs` of `targetDefaults.typecheck` and `.build` of a repo with `@zukhruf/nx/prisma`, so a schema change rebuilds the db package (#4826); since 0.8.60 it writes the rule of ADR 0019 |
846
846
  | `add-migrate-check` | 0.8.44 | `migrate:check` in `targetDefaults.typecheck.dependsOn` of a repo with `@zukhruf/nx/prisma`, so the typecheck of a db package fails when its migrations do not build its schema (#4937, ADR 0018) |
847
847
  | `add-generated-source-defaults` | 0.8.60 | the rule of ADR 0019 in a repo whose `nx.json` lists the three plugins of `init`; removes the `dependsOn: ["^sdk"]` of a web `test` target; logs each other target that hides the rule (#5219) |
848
- | `add-sdk-build-edges` | 0.8.60 | `build-deps` in each node-app backend; `implicitDependencies` on the backend, `dependsOn: ["^build-deps"]` and the inputs of ADR 0021 in its client's `sdk`, when that target is the one `node-app` wrote; logs any other `sdk` target with the values to write (#5102) |
848
+ | `add-sdk-build-edges` | 0.8.69 | `build-deps` in each node-app backend; `implicitDependencies` on the backend, `dependsOn: ["^build-deps"]` and the inputs of ADR 0021 in its client's `sdk`; when either file is not the one `node-app` wrote, or the client has no stub, changes neither and logs both edits (#5102) |
849
849
  | `rename-eslint-react-config` | 0.8.66 | `zukhruf.configs['shadcn']` for `zukhruf.configs['react']` or `.react` (whatever the default import of `@zukhruf/eslint` is called) and `'zukhruf/shadcn'` for `'zukhruf/react'` in an `extends` array, in each `eslint.config.*`; `@zukhruf/eslint/react` stays; logs each edit (#5263, ADR 0017 decision 10) |
850
850
 
851
851
  ## release
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/generators/init/files.ts"],"names":[],"mappings":"A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AEX,CAAC;AAEF,eAAO,MAAM,gBAAgB;IAC3B,eAAe;CAKhB,CAAC;AAEF,eAAO,MAAM,MAAM,o2BAalB,CAAC;AAEF,eAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE3C"}
@@ -194,9 +194,10 @@ export const hooks = {
194
194
  // refuse a Node or npm version written as a number, an .npmrc without the
195
195
  // install policy, a package-lock.json that does not record each staged
196
196
  // package.json, a lockfile that installs react, react-dom or zod twice, a
197
- // package with an install script that allowScripts does not decide, a
198
- // Dockerfile that installs without the lockfile, a package.json that breaks
199
- // the lint, and a workflow or action under .github that breaks the lint.
197
+ // package linked from another checkout (npm link), a package with an install
198
+ // script that allowScripts does not decide, a Dockerfile that installs
199
+ // without the lockfile, a package.json that breaks the lint, and a workflow
200
+ // or action under .github that breaks the lint.
200
201
  import {
201
202
  DependencyChecks,
202
203
  DockerfileInstallsFromLockfile,
@@ -204,6 +205,7 @@ import {
204
205
  InstallScriptsReviewed,
205
206
  LockfileSync,
206
207
  NoNumericPins,
208
+ NoOutsideLinks,
207
209
  NpmrcPolicy,
208
210
  OneRuntimeCopy,
209
211
  Sync,
@@ -218,6 +220,7 @@ await preCommit([
218
220
  new NpmrcPolicy(),
219
221
  new LockfileSync(),
220
222
  new OneRuntimeCopy(),
223
+ new NoOutsideLinks(),
221
224
  new InstallScriptsReviewed(),
222
225
  new DockerfileInstallsFromLockfile(),
223
226
  new DependencyChecks(),
@@ -1 +1 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/generators/init/files.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,8EAA8E;AAC9E,wBAAwB;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BxB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;CAQ7B,CAAC;AAEF,MAAM,CAAC,MAAM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BAA0B,EAAE,IAAI;KACjC;IACD,gBAAgB,EAAE;QAChB,iBAAiB,EAAE,IAAI;QACvB,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;KACf;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,eAAe,EAAE;QACf,sBAAsB;QACtB,wBAAwB;QACxB,wBAAwB;KACzB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;;;;;;;;;;;;;CAarB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,cAAc,CAAC;AAErC,MAAM,UAAU,MAAM,CAAC,IAAY;IACjC,OAAO,KAAK,IAAI,qDAAqD,CAAC;AACxE,CAAC"}
@@ -4,8 +4,9 @@ import { type Tree } from '@nx/devkit';
4
4
  * package's generated client, but imports neither. Each backend gets
5
5
  * `build-deps`; its client gets the implicit dependency on the backend, and
6
6
  * its sdk runs `^build-deps` first and hashes the backend's production files
7
- * and its dependencies' generated `.ts`. A client whose sdk is not the shape
8
- * node-app wrote is logged, not edited (ADR 0017 decision 5).
7
+ * and its dependencies' generated `.ts`. The two edits are one change: when
8
+ * either file is not the shape node-app wrote, or the client has no stub,
9
+ * neither file changes and one log names both edits (ADR 0017 decision 5).
9
10
  */
10
11
  export default function addSdkBuildEdges(tree: Tree): Promise<void>;
11
12
  //# sourceMappingURL=add-sdk-build-edges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-sdk-build-edges.d.ts","sourceRoot":"","sources":["../../../src/migrations/update-0-8-69/add-sdk-build-edges.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,IAAI,EAOV,MAAM,YAAY,CAAC;AA2CpB;;;;;;;;GAQG;AACH,wBAA8B,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CA+BxE"}
@@ -0,0 +1,95 @@
1
+ import { isDeepStrictEqual } from 'node:util';
2
+ import { formatFiles, getProjects, joinPathFragments, logger, readJson, writeJson, } from '@nx/devkit';
3
+ import { buildDepsTarget, clientManifest, } from '../../generators/node-app/files.js';
4
+ import { projectRootsWith } from '../workspace.js';
5
+ /** The inputs of the client's sdk as node-app wrote them up to 0.8.59. */
6
+ const oldSdkInputs = (backend) => [
7
+ { projects: [backend], input: 'production' },
8
+ '{workspaceRoot}/package-lock.json',
9
+ '{projectRoot}/package.json',
10
+ ];
11
+ /**
12
+ * #5102: the sdk-it client reads the backend's types, and through them a db
13
+ * package's generated client, but imports neither. Each backend gets
14
+ * `build-deps`; its client gets the implicit dependency on the backend, and
15
+ * its sdk runs `^build-deps` first and hashes the backend's production files
16
+ * and its dependencies' generated `.ts`. The two edits are one change: when
17
+ * either file is not the shape node-app wrote, or the client has no stub,
18
+ * neither file changes and one log names both edits (ADR 0017 decision 5).
19
+ */
20
+ export default async function addSdkBuildEdges(tree) {
21
+ const roots = new Set(projectRootsWith(tree, 'sdk-it.config.ts'));
22
+ for (const [backend, { root }] of getProjects(tree)) {
23
+ if (!roots.has(root))
24
+ continue;
25
+ const backendPath = joinPathFragments(root, 'package.json');
26
+ const clientPath = joinPathFragments(root, '.sdk-it/package.json');
27
+ const build = buildDepsPlan(readJson(tree, backendPath), backendPath, backend);
28
+ const client = tree.exists(clientPath)
29
+ ? clientPlan(readJson(tree, clientPath), clientPath, backend)
30
+ : missingClient(clientPath, backend);
31
+ const plans = [build, client];
32
+ const reasons = plans.flatMap((plan) => plan.kind === 'by-hand' ? [plan.reason] : []);
33
+ if (reasons.length > 0) {
34
+ const steps = plans.flatMap((plan) => plan.kind === 'current' ? [] : [plan.step]);
35
+ logger.warn(`add-sdk-build-edges: ${reasons.join(', and ')}, so ${backendPath} and ${clientPath} stay as they are. ${steps.join(' ')} (#5102).`);
36
+ continue;
37
+ }
38
+ if (build.kind === 'edit')
39
+ writeJson(tree, backendPath, build.manifest);
40
+ if (client.kind === 'edit')
41
+ writeJson(tree, clientPath, client.manifest);
42
+ }
43
+ await formatFiles(tree);
44
+ }
45
+ function buildDepsPlan(manifest, path, backend) {
46
+ const targets = manifest.nx?.targets;
47
+ const own = targets?.['build-deps'];
48
+ if (isDeepStrictEqual(own, buildDepsTarget))
49
+ return { kind: 'current' };
50
+ const step = `In ${path}, set "build-deps": ${JSON.stringify(buildDepsTarget)} in nx.targets: the client's sdk runs it first to build ${backend}'s dependencies.`;
51
+ if (targets === undefined || own !== undefined) {
52
+ return {
53
+ kind: 'by-hand',
54
+ reason: `${backend}:build-deps in ${path} is ${JSON.stringify(own)}`,
55
+ step,
56
+ };
57
+ }
58
+ targets['build-deps'] = buildDepsTarget;
59
+ return { kind: 'edit', manifest, step };
60
+ }
61
+ function clientPlan(manifest, path, backend) {
62
+ const today = JSON.parse(clientManifest(manifest.name, backend));
63
+ const { nx } = manifest;
64
+ const sdk = nx?.targets?.['sdk'];
65
+ const wanted = today.nx.targets.sdk;
66
+ if (isDeepStrictEqual(nx?.implicitDependencies, today.nx.implicitDependencies) &&
67
+ isDeepStrictEqual(sdk?.dependsOn, wanted.dependsOn) &&
68
+ isDeepStrictEqual(sdk?.inputs, wanted.inputs)) {
69
+ return { kind: 'current' };
70
+ }
71
+ const step = `In ${path}, set "implicitDependencies": ${JSON.stringify(today.nx.implicitDependencies)} in its nx block, and replace the sdk's dependsOn with ${JSON.stringify(wanted.dependsOn)} and its inputs with ${JSON.stringify(wanted.inputs)}, so the db generator runs before sdk-it and a schema change makes a new client.`;
72
+ if (nx === undefined ||
73
+ sdk === undefined ||
74
+ nx.implicitDependencies !== undefined ||
75
+ sdk.dependsOn !== undefined ||
76
+ !isDeepStrictEqual(sdk.inputs, oldSdkInputs(backend))) {
77
+ return {
78
+ kind: 'by-hand',
79
+ reason: `the sdk target of ${path} is not the one node-app wrote`,
80
+ step,
81
+ };
82
+ }
83
+ nx.implicitDependencies = today.nx.implicitDependencies;
84
+ sdk.dependsOn = wanted.dependsOn;
85
+ sdk.inputs = wanted.inputs;
86
+ return { kind: 'edit', manifest, step };
87
+ }
88
+ function missingClient(path, backend) {
89
+ return {
90
+ kind: 'by-hand',
91
+ reason: `${backend} has no sdk-it client package at ${path}`,
92
+ step: `A web that reads the API another way (such as @sdk-it/vite) needs its readers to run after the generators that the backend's types read.`,
93
+ };
94
+ }
95
+ //# sourceMappingURL=add-sdk-build-edges.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-sdk-build-edges.js","sourceRoot":"","sources":["../../../src/migrations/update-0-8-69/add-sdk-build-edges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAGL,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,MAAM,EACN,QAAQ,EACR,SAAS,GACV,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,eAAe,EACf,cAAc,GACf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAwB,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAqBzE,0EAA0E;AAC1E,MAAM,YAAY,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC;IACxC,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE;IAC5C,mCAAmC;IACnC,4BAA4B;CAC7B,CAAC;AAWF;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,gBAAgB,CAAC,IAAU;IACvD,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,gBAAgB,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAClE,KAAK,MAAM,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;QACpD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,SAAS;QAC/B,MAAM,WAAW,GAAG,iBAAiB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QAC5D,MAAM,UAAU,GAAG,iBAAiB,CAAC,IAAI,E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C5D,IAAI,EAAE,0IAA0I;KACjJ,CAAC;AACJ,CAAC"}
package/migrations.json CHANGED
@@ -31,9 +31,9 @@
31
31
  "implementation": "./dist/migrations/update-0-8-60/add-generated-source-defaults.js"
32
32
  },
33
33
  "add-sdk-build-edges": {
34
- "version": "0.8.60",
35
- "description": "The sdk-it client runs after the db generator, hashes its output, and is affected by its backend: each node-app backend gets the target build-deps, and its .sdk-it/package.json gets implicitDependencies on the backend, sdk dependsOn [\"^build-deps\"] and the inputs ^production and { \"dependentTasksOutputFiles\": \"**/*.ts\", \"transitive\": true } when its sdk target is the one node-app wrote; another sdk target is logged (#5102).",
36
- "implementation": "./dist/migrations/update-0-8-60/add-sdk-build-edges.js"
34
+ "version": "0.8.69",
35
+ "description": "The sdk-it client runs after the db generator, hashes its output, and is affected by its backend: each node-app backend gets the target build-deps, and its .sdk-it/package.json gets implicitDependencies on the backend, sdk dependsOn [\"^build-deps\"] and the inputs ^production and { \"dependentTasksOutputFiles\": \"**/*.ts\", \"transitive\": true }; when either file is not the one node-app wrote, or the client has no stub, neither file changes and one log names both edits (#5102).",
36
+ "implementation": "./dist/migrations/update-0-8-69/add-sdk-build-edges.js"
37
37
  },
38
38
  "rename-eslint-react-config": {
39
39
  "version": "0.8.66",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zukhruf/nx",
3
- "version": "0.8.67",
3
+ "version": "0.8.69",
4
4
  "description": "The Nx part of the monorepo standard: inference plugins for format, test, lint, opentofu and prisma targets, and generators for the root files (preset, init), apps (node-app, react-app, pair, ui-package), a db package (prisma) and delivery (dokploy).",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -131,7 +131,7 @@
131
131
  "@nx/react": ">=24.0.6 <25.0.0",
132
132
  "@nx/vite": ">=24.0.6 <25.0.0",
133
133
  "@nx/vitest": ">=24.0.6 <25.0.0",
134
- "@zukhruf/testing": "^0.8.67",
134
+ "@zukhruf/testing": "^0.8.69",
135
135
  "nx": ">=24.0.6 <25.0.0",
136
136
  "prettier": "^3.0.0",
137
137
  "typescript": ">=5.8.0 <6.1.0"
@@ -154,9 +154,9 @@
154
154
  }
155
155
  },
156
156
  "devDependencies": {
157
- "@zukhruf/eslint": "^0.8.67",
158
- "@zukhruf/fs": "^0.8.67",
159
- "@zukhruf/testing": "^0.8.67",
157
+ "@zukhruf/eslint": "^0.8.69",
158
+ "@zukhruf/fs": "^0.8.69",
159
+ "@zukhruf/testing": "^0.8.69",
160
160
  "semver": "^7.8.5"
161
161
  }
162
162
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-sdk-build-edges.d.ts","sourceRoot":"","sources":["../../../src/migrations/update-0-8-60/add-sdk-build-edges.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,IAAI,EAKV,MAAM,YAAY,CAAC;AAsCpB;;;;;;;GAOG;AACH,wBAA8B,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAYxE"}
@@ -1,69 +0,0 @@
1
- import { isDeepStrictEqual } from 'node:util';
2
- import { formatFiles, getProjects, joinPathFragments, logger, } from '@nx/devkit';
3
- import { buildDepsTarget, clientManifest, } from '../../generators/node-app/files.js';
4
- import { projectRootsWith, updateJsonIfChanged, } from '../workspace.js';
5
- /** The inputs of the client's sdk as node-app wrote them up to 0.8.59. */
6
- const oldSdkInputs = (backend) => [
7
- { projects: [backend], input: 'production' },
8
- '{workspaceRoot}/package-lock.json',
9
- '{projectRoot}/package.json',
10
- ];
11
- /**
12
- * #5102: the sdk-it client reads the backend's types, and through them a db
13
- * package's generated client, but imports neither. Each backend gets
14
- * `build-deps`; its client gets the implicit dependency on the backend, and
15
- * its sdk runs `^build-deps` first and hashes the backend's production files
16
- * and its dependencies' generated `.ts`. A client whose sdk is not the shape
17
- * node-app wrote is logged, not edited (ADR 0017 decision 5).
18
- */
19
- export default async function addSdkBuildEdges(tree) {
20
- const roots = new Set(projectRootsWith(tree, 'sdk-it.config.ts'));
21
- for (const [backend, { root }] of getProjects(tree)) {
22
- if (!roots.has(root))
23
- continue;
24
- updateBuildDeps(tree, joinPathFragments(root, 'package.json'), backend);
25
- updateClient(tree, joinPathFragments(root, '.sdk-it/package.json'), backend);
26
- }
27
- await formatFiles(tree);
28
- }
29
- function updateBuildDeps(tree, path, backend) {
30
- updateJsonIfChanged(tree, path, (manifest) => {
31
- const targets = manifest.nx?.targets;
32
- const own = targets?.['build-deps'];
33
- if (targets !== undefined && own === undefined) {
34
- targets['build-deps'] = buildDepsTarget;
35
- }
36
- else if (!isDeepStrictEqual(own, buildDepsTarget)) {
37
- logger.warn(`add-sdk-build-edges: ${backend}:build-deps in ${path} is ${JSON.stringify(own)}, and its client's sdk runs it first to build ${backend}'s dependencies: make it ${JSON.stringify(buildDepsTarget)} (#5102).`);
38
- }
39
- });
40
- }
41
- function updateClient(tree, path, backend) {
42
- if (!tree.exists(path)) {
43
- logger.warn(`add-sdk-build-edges: ${backend} has no sdk-it client package at ${path}, so no sdk edge is written. A web that reads the API another way (such as @sdk-it/vite) needs its readers to run after the generators that the backend's types read (#5102).`);
44
- return;
45
- }
46
- updateJsonIfChanged(tree, path, (manifest) => {
47
- const today = JSON.parse(clientManifest(manifest.name, backend));
48
- const { nx } = manifest;
49
- const sdk = nx?.targets?.['sdk'];
50
- const wanted = today.nx.targets.sdk;
51
- if (isDeepStrictEqual(nx?.implicitDependencies, today.nx.implicitDependencies) &&
52
- isDeepStrictEqual(sdk?.dependsOn, wanted.dependsOn) &&
53
- isDeepStrictEqual(sdk?.inputs, wanted.inputs)) {
54
- return;
55
- }
56
- if (nx === undefined ||
57
- sdk === undefined ||
58
- nx.implicitDependencies !== undefined ||
59
- sdk.dependsOn !== undefined ||
60
- !isDeepStrictEqual(sdk.inputs, oldSdkInputs(backend))) {
61
- logger.warn(`add-sdk-build-edges: the sdk target of ${path} is not the one node-app wrote, so it stays. Set "implicitDependencies": ${JSON.stringify(today.nx.implicitDependencies)} in its nx block, and replace the sdk's dependsOn with ${JSON.stringify(wanted.dependsOn)} and its inputs with ${JSON.stringify(wanted.inputs)}, so the db generator runs before sdk-it and a schema change makes a new client (#5102).`);
62
- return;
63
- }
64
- nx.implicitDependencies = today.nx.implicitDependencies;
65
- sdk.dependsOn = wanted.dependsOn;
66
- sdk.inputs = wanted.inputs;
67
- });
68
- }
69
- //# sourceMappingURL=add-sdk-build-edges.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-sdk-build-edges.js","sourceRoot":"","sources":["../../../src/migrations/update-0-8-60/add-sdk-build-edges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAGL,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,MAAM,GACP,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,eAAe,EACf,cAAc,GACf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AAqBzB,0EAA0E;AAC1E,MAAM,YAAY,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC;IACxC,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE;IAC5C,mCAAmC;IACnC,4BAA4B;CAC7B,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,gBAAgB,CAAC,IAAU;IACvD,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,gBAAgB,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAClE,KAAK,MAAM,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;QACpD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,SAAS;QAC/B,eAAe,CAAC,IAAI,EAAE,iBAAiB,CAAC,IAAI,EAAE,cAAc,CAAC,EAAE,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