@mark1russell7/room-view 0.1.0 → 0.1.2

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
@@ -223,12 +223,36 @@ Two rooms have one wall between them, but each survey gives the full thickness t
223
223
  | `error` | The model cannot show the record correctly. | An opening that is longer than its wall, an outlet on a wall that the room does not have. |
224
224
  | `warning` | The record is possible, but it is probably a mistake. | Two objects that overlap, an object in a wall, an outlet in a door. |
225
225
 
226
- Each finding has a code, the kind and the `id` of the record, and a message with the values. `FINDING_CODES` has each code.
226
+ Each finding has a code, the kind and the `id` of the record, and a message with the values. `FINDING_CODES` has each code. A fault between two records also has the `id` of the second record in `other`. An example is the other object of an overlap.
227
227
 
228
228
  The model does not stop on a record with faults. It does not make the solids that it cannot make, and the checks tell why.
229
229
 
230
230
  The model has a range of lengths. A size of 0.001 mm or less is 0 for the checks. A length above 1 000 km (`LARGEST_LENGTH`) is a fault, and the model does not make a part with such a length. Thus each number of the model is finite.
231
231
 
232
+ ## Anchors and layers
233
+
234
+ An add-on puts the records of one topic on the core, for example the outlets of an electrical add-on. The core names no topic.
235
+
236
+ - `Scene.layers` keeps the records of each add-on, by the name of the format of its layer, for example `electrical/1`. The core does not read a layer.
237
+ - An anchor is a place for a record: on a face of a wall, on the floor, on the ceiling or on a placed object.
238
+ - `sceneSpace` gives the space of a scene. Its function `frame` gives the point of an anchor and the direction out of its surface, in meters.
239
+ - `checkAnchor` gives the faults of an anchor. An error tells that the anchor has no position. A warning tells a fault that the model can show.
240
+
241
+ An add-on is an `AddOn` value: the name of the format of its layer, and the functions `parse`, `anchors`, `withAnchors` and `check`. `checkLayers` examines the layers of a scene with a list of add-ons:
242
+
243
+ ```ts
244
+ import { checkLayers } from "@mark1russell7/room-view";
245
+
246
+ const findings = checkLayers(scene, addOns);
247
+ ```
248
+
249
+ - Each layer gets the faults of its form, of each anchor and of the meaning of its records.
250
+ - A layer of no add-on of the list gets a warning, and the scene keeps the layer.
251
+ - The findings are in the order of the layer keys, then of the record keys. Thus equal inputs give equal findings.
252
+ - The add-ons do not know each other. Two add-ons can put records on one object.
253
+
254
+ `ANCHOR_CODES` and `LAYER_CODES` have the codes of the core. The design of the add-ons is in `docs/ADD-ONS.md` of the repository.
255
+
232
256
  ## The loads of the circuits
233
257
 
234
258
  `circuitStates` gives the load of each circuit against its limit, with a level: `ok`, `near`, `over` or `unknown`. The loads are input data of the scene. This package does not calculate the power of a computer.
package/build/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { C as metersPer, S as lengthsInRange, _ as WallFace, a as Opening, b as LENGTH_UNITS, c as PlacedObject, d as Room, f as SCENE_SCHEMA, g as Wall, h as WALL_SIDES, i as OPENING_KINDS, l as PlanPoint, m as WALL_FACES, n as CircuitLoad, o as OpeningKind, p as Scene, r as Floor, s as Outlet, t as Circuit, u as ROOM_SCHEMA, v as WallSide, w as unitsPer, x as LengthUnit, y as LARGEST_LENGTH } from "./room-BUlXejkm.js";
2
- import { A as solidVolume, B as wallTransform, C as SolidShape, D as roomSolids, E as objectTransforms, F as wallFootprints, I as WallFrame, L as wallFrames, M as JoinOptions, N as MITER_LIMIT, O as sceneSolids, P as WallFootprint, R as wallHasOutline, S as SolidOptions, T as boundsOfSolids, _ as PlacedBox, a as LoadLevel, b as Solid, c as SHAPE_OUTLINES, d as levelShape, f as outletLevels, g as OUTLET_PLATE, h as GLASS_THICKNESS, i as LevelShape, j as JOIN_TOLERANCE, k as solidCorners, l as ShapeOutline, m as FLOOR_DEPTH, n as LEVEL_SHAPES, o as LoadOptions, p as shapeRing, r as LOAD_LEVELS, s as NEAR_LIMIT, t as CircuitState, u as circuitStates, v as Prism, w as TO_Y_UP, x as SolidKind, y as SOLID_KINDS, z as wallPoint } from "./loads-H-VFEx6b.js";
3
- import { A as SurveyTurn, C as SurveyCheckResult, D as SurveyOutlet, E as SurveyOptions, M as expandSurvey, O as SurveyResult, S as SurveyCheck, T as SurveyObject, _ as expandLevel, a as ConnectionFault, b as SURVEY_SCHEMA, c as Level, d as LevelOptions, f as LevelResult, g as RoomPlace, h as ROOM_PLACES, i as ConnectionEnd, j as convertSurvey, k as SurveySide, l as LevelConnection, m as LevelRoomResult, n as CONNECTION_TURN_LIMIT, o as ConnectionUse, p as LevelRoom, r as CONNECTION_USES, s as LEVEL_SCHEMA, t as CONNECTION_FAULTS, u as LevelConnectionResult, v as CLOSURE_LIMIT, w as SurveyClosure, x as Survey, y as SQUARE_TURNS } from "./level-84nrw7oL.js";
4
- import { Ring } from "@mark1russell7/layout-contract";
1
+ import { C as lengthsInRange, S as LengthUnit, T as unitsPer, _ as WallFace, a as Opening, b as LARGEST_LENGTH, c as PlacedObject, d as Room, f as SCENE_SCHEMA, g as Wall, h as WALL_SIDES, i as OPENING_KINDS, l as PlanPoint, m as WALL_FACES, n as CircuitLoad, o as OpeningKind, p as Scene, r as Floor, s as Outlet, t as Circuit, u as ROOM_SCHEMA, v as WallSide, w as metersPer, x as LENGTH_UNITS, y as isLayerName } from "./room-x9FxGjGi.js";
2
+ import { A as solidVolume, B as wallTransform, C as SolidShape, D as roomSolids, E as objectTransforms, F as wallFootprints, I as WallFrame, L as wallFrames, M as JoinOptions, N as MITER_LIMIT, O as sceneSolids, P as WallFootprint, R as wallHasOutline, S as SolidOptions, T as boundsOfSolids, _ as PlacedBox, a as LoadLevel, b as Solid, c as SHAPE_OUTLINES, d as levelShape, f as outletLevels, g as OUTLET_PLATE, h as GLASS_THICKNESS, i as LevelShape, j as JOIN_TOLERANCE, k as solidCorners, l as ShapeOutline, m as FLOOR_DEPTH, n as LEVEL_SHAPES, o as LoadOptions, p as shapeRing, r as LOAD_LEVELS, s as NEAR_LIMIT, t as CircuitState, u as circuitStates, v as Prism, w as TO_Y_UP, x as SolidKind, y as SOLID_KINDS, z as wallPoint } from "./loads-spBbQkb0.js";
3
+ import { A as SurveyTurn, C as SurveyCheckResult, D as SurveyOutlet, E as SurveyOptions, M as expandSurvey, O as SurveyResult, S as SurveyCheck, T as SurveyObject, _ as expandLevel, a as ConnectionFault, b as SURVEY_SCHEMA, c as Level, d as LevelOptions, f as LevelResult, g as RoomPlace, h as ROOM_PLACES, i as ConnectionEnd, j as convertSurvey, k as SurveySide, l as LevelConnection, m as LevelRoomResult, n as CONNECTION_TURN_LIMIT, o as ConnectionUse, p as LevelRoom, r as CONNECTION_USES, s as LEVEL_SCHEMA, t as CONNECTION_FAULTS, u as LevelConnectionResult, v as CLOSURE_LIMIT, w as SurveyClosure, x as Survey, y as SQUARE_TURNS } from "./level-Cgja5fXb.js";
4
+ import { Point3, Ring, Transform3 } from "@mark1russell7/layout-contract";
5
5
  /** The outline of one solid in the plan of a room: the solid as a camera above the room sees it. */
6
6
  export interface PlanShape {
7
7
  /** The `id` of the solid. */
@@ -35,6 +35,76 @@ export interface PlanOptions extends SolidOptions {
35
35
  * Thus a drawing in this sequence shows the room as a camera above it sees the room.
36
36
  */
37
37
  export declare function planShapes(scene: Scene, options?: PlanOptions): readonly PlanShape[];
38
+ /** These are the surfaces that an anchor can be on. */
39
+ export declare const ANCHOR_SURFACES: readonly ["wall", "floor", "ceiling", "object"];
40
+ /** A surface of an anchor. */
41
+ export type AnchorSurface = (typeof ANCHOR_SURFACES)[number];
42
+ /** An anchor on a face of a wall. The lengths are in the unit of the room. */
43
+ export interface WallAnchor {
44
+ readonly on: "wall";
45
+ /** The `id` of the wall. */
46
+ readonly wall: string;
47
+ readonly face: WallFace;
48
+ /** The distance along the line of the wall, from `from` to the anchor. */
49
+ readonly offset: number;
50
+ /** The height of the anchor above the floor. */
51
+ readonly height: number;
52
+ }
53
+ /** An anchor on the floor, at a point of the plan. */
54
+ export interface FloorAnchor {
55
+ readonly on: "floor";
56
+ readonly at: PlanPoint;
57
+ /** The `id` of the floor that has the point. Without it, the point is on any floor of the room. */
58
+ readonly floor?: string | undefined;
59
+ }
60
+ /** An anchor on the ceiling, above a point of the plan. The ceiling is at the height of the room. */
61
+ export interface CeilingAnchor {
62
+ readonly on: "ceiling";
63
+ readonly at: PlanPoint;
64
+ /** The `id` of the floor below the point. Without it, the point is above any floor of the room. */
65
+ readonly floor?: string | undefined;
66
+ }
67
+ /**
68
+ * An anchor on a placed object. The point and the direction are in the frame of the object, before its turn.
69
+ * The origin of that frame is the center of the bottom of the object.
70
+ */
71
+ export interface ObjectAnchor {
72
+ readonly on: "object";
73
+ /** The `id` of the placed object. */
74
+ readonly object: string;
75
+ /** The point in the frame of the object. The default is the center of its top. */
76
+ readonly at?: readonly [number, number, number] | undefined;
77
+ /** The direction out of the surface, in the frame of the object. The default is up: `[0, 0, 1]`. */
78
+ readonly out?: readonly [number, number, number] | undefined;
79
+ }
80
+ /** An anchor: a place in the space of the core, for a record of an add-on. */
81
+ export type Anchor = WallAnchor | FloorAnchor | CeilingAnchor | ObjectAnchor;
82
+ /** The position of an anchor in the room, in meters. */
83
+ export interface AnchorFrame {
84
+ /** The point of the anchor. */
85
+ readonly at: Point3;
86
+ /** The unit vector out of the surface, into the space of the room. */
87
+ readonly out: Point3;
88
+ }
89
+ /**
90
+ * The space of a scene, for the add-ons. It reads each wall, object and anchor of the scene.
91
+ * Make it once with `sceneSpace`, and give it to each add-on.
92
+ */
93
+ export interface SceneSpace {
94
+ readonly scene: Scene;
95
+ /** The length of the unit of the room, in meters. */
96
+ readonly scale: number;
97
+ /** This function gives the frame of a wall in meters, or `undefined` when the room does not have the wall. */
98
+ readonly wall: (id: string) => WallFrame | undefined;
99
+ /** This function gives a placed object of the scene, or `undefined` when the scene does not have it. */
100
+ readonly object: (id: string) => PlacedObject | undefined;
101
+ /** This function gives the transform of a placed object in meters, or `undefined` when the object has no place. */
102
+ readonly transform: (id: string) => Transform3 | undefined;
103
+ /** This function gives the position of an anchor, or `undefined` when the anchor has no position. `checkAnchor` tells the reason. */
104
+ readonly frame: (anchor: Anchor) => AnchorFrame | undefined;
105
+ }
106
+ /** This function gives the space of a scene. The transforms of the objects are calculated one time, at the first use. */
107
+ export declare function sceneSpace(scene: Scene): SceneSpace;
38
108
  /** These are the levels of a finding. An error is a fault that the model cannot show. A warning is a fault that the model can show. */
39
109
  export declare const FINDING_LEVELS: readonly ["error", "warning"];
40
110
  /** A level of a finding. */
@@ -43,6 +113,16 @@ export type FindingLevel = (typeof FINDING_LEVELS)[number];
43
113
  export declare const RECORD_KINDS: readonly ["room", "wall", "opening", "floor", "outlet", "circuit", "object", "load"];
44
114
  /** A kind of record. */
45
115
  export type RecordKind = (typeof RECORD_KINDS)[number];
116
+ /**
117
+ * This function gives the name of a record: its kind, a colon and its `id`, for example `object:desk`.
118
+ * The kind of a record of a layer is the name of the layer, for example `electrical/1`. A finding, a mark and the selection use this name.
119
+ */
120
+ export declare function recordName(kind: string, id: string): string;
121
+ /** This function gives the kind and the `id` of a record name, or `undefined` for a text with no kind. A kind has no colon, so the first colon ends it. */
122
+ export declare function parseRecordName(name: string): {
123
+ readonly kind: string;
124
+ readonly id: string;
125
+ } | undefined;
46
126
  /** These are the codes of the findings. */
47
127
  export declare const FINDING_CODES: readonly ["number-not-finite", "number-too-large", "id-duplicate", "size-not-positive", "wall-length", "wall-short", "wall-overlap", "opening-wall", "opening-range", "opening-height", "opening-overlap", "outlet-wall", "outlet-circuit", "outlet-range", "outlet-in-opening", "floor-ring", "circuit-limit", "object-parent", "object-cycle", "object-outlet", "object-outside", "object-overlap", "object-in-wall", "load-circuit", "load-watts"];
48
128
  /** A code of a finding. */
@@ -57,6 +137,11 @@ export interface Finding {
57
137
  readonly at: string;
58
138
  /** The fault in plain words, with the values. */
59
139
  readonly message: string;
140
+ /**
141
+ * The `id` of the second record of the fault. It is the other opening or the other object of an overlap, or the opening that an outlet is in.
142
+ * It is also the wall that an object overlaps, or the parent or the outlet that an object names. A fault of one record has none.
143
+ */
144
+ readonly other?: string | undefined;
60
145
  }
61
146
  /** The options of the checks. Give the options that the model gets. */
62
147
  export interface CheckOptions {
@@ -74,5 +159,89 @@ export declare function checkRoom(room: Room, options?: CheckOptions): readonly
74
159
  * A scene with no finding of the level `error` gives a full model.
75
160
  */
76
161
  export declare function checkScene(scene: Scene, options?: CheckOptions): readonly Finding[];
77
- export { CLOSURE_LIMIT, CONNECTION_FAULTS, CONNECTION_TURN_LIMIT, CONNECTION_USES, Circuit, CircuitLoad, CircuitState, ConnectionEnd, ConnectionFault, ConnectionUse, FLOOR_DEPTH, Floor, GLASS_THICKNESS, JOIN_TOLERANCE, JoinOptions, LARGEST_LENGTH, LENGTH_UNITS, LEVEL_SCHEMA, LEVEL_SHAPES, LOAD_LEVELS, LengthUnit, Level, LevelConnection, LevelConnectionResult, LevelOptions, LevelResult, LevelRoom, LevelRoomResult, LevelShape, LoadLevel, LoadOptions, MITER_LIMIT, NEAR_LIMIT, OPENING_KINDS, OUTLET_PLATE, Opening, OpeningKind, Outlet, PlacedBox, PlacedObject, PlanPoint, Prism, ROOM_PLACES, ROOM_SCHEMA, Room, RoomPlace, SCENE_SCHEMA, SHAPE_OUTLINES, SOLID_KINDS, SQUARE_TURNS, SURVEY_SCHEMA, Scene, ShapeOutline, Solid, SolidKind, SolidOptions, SolidShape, Survey, SurveyCheck, SurveyCheckResult, SurveyClosure, SurveyObject, SurveyOptions, SurveyOutlet, SurveyResult, SurveySide, SurveyTurn, TO_Y_UP, WALL_FACES, WALL_SIDES, Wall, WallFace, WallFootprint, WallFrame, WallSide, boundsOfSolids, circuitStates, convertSurvey, expandLevel, expandSurvey, lengthsInRange, levelShape, metersPer, objectTransforms, outletLevels, roomSolids, sceneSolids, shapeRing, solidCorners, solidVolume, unitsPer, wallFootprints, wallFrames, wallHasOutline, wallPoint, wallTransform };
162
+ /** These are the codes of the faults of an anchor. */
163
+ export declare const ANCHOR_CODES: readonly ["anchor-not-finite", "anchor-wall", "anchor-object", "anchor-floor", "anchor-range", "anchor-direction", "anchor-in-opening", "anchor-outside"];
164
+ /** A code of a fault of an anchor. */
165
+ export type AnchorCode = (typeof ANCHOR_CODES)[number];
166
+ /** A fault of an anchor. `checkLayers` gives it the layer and the key of the anchor. */
167
+ export interface AnchorFault {
168
+ readonly level: FindingLevel;
169
+ readonly code: AnchorCode;
170
+ /** The fault in plain words, with the values. */
171
+ readonly message: string;
172
+ /** The `id` of the second record of the fault: the opening that the anchor is in. A different fault has none. */
173
+ readonly other?: string | undefined;
174
+ }
175
+ /**
176
+ * This function gives the faults of an anchor in the space of a scene. `name` starts each message.
177
+ * An error tells that the anchor has no position. A warning tells a fault that the model can show.
178
+ */
179
+ export declare function checkAnchor(anchor: Anchor, space: SceneSpace, name?: string): readonly AnchorFault[];
180
+ /** The result of the read of a layer: the layer, or the faults of its form. */
181
+ export type LayerParse<Layer> = {
182
+ readonly ok: true;
183
+ readonly layer: Layer;
184
+ } | {
185
+ readonly ok: false;
186
+ readonly errors: readonly string[];
187
+ };
188
+ /** A fault that an add-on finds in its layer. */
189
+ export interface AddOnFault {
190
+ readonly level: FindingLevel;
191
+ /** The code of the fault. The add-on gives its own codes. */
192
+ readonly code: string;
193
+ /** The `id` of the record with the fault. For the layer, it is empty. */
194
+ readonly at: string;
195
+ /** The fault in plain words, with the values. */
196
+ readonly message: string;
197
+ /** The `id` of the second record of the fault. A fault of one record has none. */
198
+ readonly other?: string | undefined;
199
+ }
200
+ /**
201
+ * An add-on: one topic on the core, for example electrical, plumbing or light.
202
+ * A host gives a list of add-ons to `checkLayers`. The core knows only this type.
203
+ */
204
+ export interface AddOn<Layer> {
205
+ /** The name of the format of the layer, for example `electrical/1`. It is the key of the layer in `Scene.layers`. */
206
+ readonly schema: string;
207
+ /** This function reads the JSON of a layer. */
208
+ parse(value: unknown): LayerParse<Layer>;
209
+ /**
210
+ * This function gives the anchors of the records of a layer, by a key.
211
+ * The key is the `id` of a record, or the `id` and a position for a record with many anchors.
212
+ */
213
+ anchors(layer: Layer): ReadonlyMap<string, Anchor>;
214
+ /** This function gives the layer with new anchors, by the keys of `anchors`. The core uses it when it moves the records of a room. */
215
+ withAnchors(layer: Layer, anchors: ReadonlyMap<string, Anchor>): Layer;
216
+ /** This function gives the faults of the meaning of a layer. The core examines the anchors, so this function does not. */
217
+ check(layer: Layer, space: SceneSpace): readonly AddOnFault[];
218
+ }
219
+ /** These are the codes of the faults of a layer that the core finds. */
220
+ export declare const LAYER_CODES: readonly ["layer-name", "layer-unknown", "layer-form"];
221
+ /** A finding of a layer: a fault of its form, of an anchor or of the meaning of its records. */
222
+ export interface LayerFinding {
223
+ readonly level: FindingLevel;
224
+ /** A code of `LAYER_CODES` or `ANCHOR_CODES`, or a code of the add-on. */
225
+ readonly code: string;
226
+ /** The key of the layer in `Scene.layers`. */
227
+ readonly layer: string;
228
+ /** The key of the anchor, or the `id` of the record with the fault. For the layer, it is empty. */
229
+ readonly at: string;
230
+ /** The fault in plain words, with the values. */
231
+ readonly message: string;
232
+ /** The `id` of the second record of the fault. A fault of one record has none. */
233
+ readonly other?: string | undefined;
234
+ }
235
+ /** This function reads the layer of an add-on in a scene. It gives `undefined` when the scene has no layer of the add-on. */
236
+ export declare function readLayer<Layer>(scene: Scene, addOn: AddOn<Layer>): LayerParse<Layer> | undefined;
237
+ /**
238
+ * This function gives the findings of the layers of a scene, with a list of add-ons.
239
+ * Each layer gets the faults of its form, of each anchor and of the meaning of its records. A layer of no add-on of the list gets a warning.
240
+ * The findings are in the order of the layer keys, then of the record keys. Thus equal inputs give equal findings.
241
+ *
242
+ * The name of the record of a finding is `recordName(finding.layer, finding.at)`, so a finding selects its mark.
243
+ * `checkScene` examines the core, and this function examines the layers.
244
+ */
245
+ export declare function checkLayers(scene: Scene, addOns: readonly AddOn<unknown>[]): readonly LayerFinding[];
246
+ export { CLOSURE_LIMIT, CONNECTION_FAULTS, CONNECTION_TURN_LIMIT, CONNECTION_USES, Circuit, CircuitLoad, CircuitState, ConnectionEnd, ConnectionFault, ConnectionUse, FLOOR_DEPTH, Floor, GLASS_THICKNESS, JOIN_TOLERANCE, JoinOptions, LARGEST_LENGTH, LENGTH_UNITS, LEVEL_SCHEMA, LEVEL_SHAPES, LOAD_LEVELS, LengthUnit, Level, LevelConnection, LevelConnectionResult, LevelOptions, LevelResult, LevelRoom, LevelRoomResult, LevelShape, LoadLevel, LoadOptions, MITER_LIMIT, NEAR_LIMIT, OPENING_KINDS, OUTLET_PLATE, Opening, OpeningKind, Outlet, PlacedBox, PlacedObject, PlanPoint, Prism, ROOM_PLACES, ROOM_SCHEMA, Room, RoomPlace, SCENE_SCHEMA, SHAPE_OUTLINES, SOLID_KINDS, SQUARE_TURNS, SURVEY_SCHEMA, Scene, ShapeOutline, Solid, SolidKind, SolidOptions, SolidShape, Survey, SurveyCheck, SurveyCheckResult, SurveyClosure, SurveyObject, SurveyOptions, SurveyOutlet, SurveyResult, SurveySide, SurveyTurn, TO_Y_UP, WALL_FACES, WALL_SIDES, Wall, WallFace, WallFootprint, WallFrame, WallSide, boundsOfSolids, circuitStates, convertSurvey, expandLevel, expandSurvey, isLayerName, lengthsInRange, levelShape, metersPer, objectTransforms, outletLevels, roomSolids, sceneSolids, shapeRing, solidCorners, solidVolume, unitsPer, wallFootprints, wallFrames, wallHasOutline, wallPoint, wallTransform };
78
247
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/plan.ts","../src/check.ts"],"mappings":";;;;;iBAKiB;;WAEN;WACA,MAAM;;WAEN;;WAEA,MAAM;;WAEN;;WAEA;;;;;;wBAOK,UAAU,OAAO,QAAQ;;iBAgBxB,oBAAoB;;;;;WAK1B;;;;;;;wBAQK,WAAW,OAAO,OAAO,UAAS,uBAA4B;;qBC5CjE;;YAGD,uBAAuB;;qBAGtB;;YAYD,qBAAqB;;qBAGpB;;YAuDD,sBAAsB;;iBAGjB;WACN,OAAO;WACP,MAAM;;WAEN,QAAQ;;WAER;;WAEA;;;iBAIM;;WAEN,QAAQ;;;;;;;wBA2CH,UAAU,MAAM,MAAM,UAAS,wBAA6B;;;;;wBAsK5D,WAAW,OAAO,OAAO,UAAS,wBAA6B"}
1
+ {"version":3,"file":"index.d.ts","names":[],"s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