@itwin/imodel-transformer 0.4.1 → 0.4.18-fedguidopt.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/CHANGELOG.md +1 -9
- package/lib/cjs/Algo.d.ts +7 -0
- package/lib/cjs/Algo.d.ts.map +1 -0
- package/lib/cjs/Algo.js +50 -0
- package/lib/cjs/Algo.js.map +1 -0
- package/lib/cjs/BranchProvenanceInitializer.d.ts +10 -3
- package/lib/cjs/BranchProvenanceInitializer.d.ts.map +1 -1
- package/lib/cjs/BranchProvenanceInitializer.js +82 -10
- package/lib/cjs/BranchProvenanceInitializer.js.map +1 -1
- package/lib/cjs/IModelCloneContext.d.ts.map +1 -1
- package/lib/cjs/IModelCloneContext.js +0 -2
- package/lib/cjs/IModelCloneContext.js.map +1 -1
- package/lib/cjs/IModelExporter.d.ts +31 -8
- package/lib/cjs/IModelExporter.d.ts.map +1 -1
- package/lib/cjs/IModelExporter.js +82 -36
- package/lib/cjs/IModelExporter.js.map +1 -1
- package/lib/cjs/IModelTransformer.d.ts +161 -25
- package/lib/cjs/IModelTransformer.d.ts.map +1 -1
- package/lib/cjs/IModelTransformer.js +933 -220
- package/lib/cjs/IModelTransformer.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessToken, Id64String } from "@itwin/core-bentley";
|
|
1
|
+
import { AccessToken, Id64Array, Id64String } from "@itwin/core-bentley";
|
|
2
2
|
import * as ECSchemaMetaData from "@itwin/ecschema-metadata";
|
|
3
3
|
import { Element, ElementAspect, ElementMultiAspect, ElementUniqueAspect, Entity, IModelDb, Model, Relationship, RelationshipProps, SQLiteDb } from "@itwin/core-backend";
|
|
4
4
|
import { CodeSpec, ElementAspectProps, ElementProps, EntityReference, EntityReferenceSet, ExternalSourceAspectProps, FontProps, ModelProps, Placement2d, Placement3d } from "@itwin/core-common";
|
|
@@ -13,7 +13,8 @@ import { IModelCloneContext } from "./IModelCloneContext";
|
|
|
13
13
|
*/
|
|
14
14
|
export interface IModelTransformOptions {
|
|
15
15
|
/** The Id of the Element in the **target** iModel that represents the **source** repository as a whole and scopes its [ExternalSourceAspect]($backend) instances.
|
|
16
|
-
*
|
|
16
|
+
* It is always a good idea to define this, although particularly necessary in any multi-source scenario such as multiple branches that reverse synchronize
|
|
17
|
+
* or physical consolidation.
|
|
17
18
|
*/
|
|
18
19
|
targetScopeElementId?: Id64String;
|
|
19
20
|
/** Set to `true` if IModelTransformer should not record its provenance.
|
|
@@ -100,6 +101,28 @@ export interface IModelTransformOptions {
|
|
|
100
101
|
* @beta
|
|
101
102
|
*/
|
|
102
103
|
optimizeGeometry?: OptimizeGeometryOptions;
|
|
104
|
+
/**
|
|
105
|
+
* force the insertion of external source aspects to provide provenance, even if there are federation guids
|
|
106
|
+
* in the source that we can use. This can make some operations (like transforming new elements or initializing forks)
|
|
107
|
+
* much slower due to needing to insert aspects, but prevents requiring change information for future merges.
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
forceExternalSourceAspectProvenance?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Do not detach the change cache that we build. Use this if you want to do multiple transformations to
|
|
113
|
+
* the same iModels, to avoid the performance cost of reinitializing the change cache which can be
|
|
114
|
+
* expensive. You should only use this if you know the cache will be reused.
|
|
115
|
+
* @note You must detach the change cache yourself.
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
noDetachChangeCache?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Do not check that processChanges is called from the next changeset index.
|
|
121
|
+
* This is an unsafe option (e.g. it can cause data loss in future branch operations)
|
|
122
|
+
* and you should not use it.
|
|
123
|
+
* @default false
|
|
124
|
+
*/
|
|
125
|
+
ignoreMissingChangesetsInSynchronizations?: boolean;
|
|
103
126
|
}
|
|
104
127
|
/**
|
|
105
128
|
* A container for tracking the state of a partially committed entity and finalizing it when it's ready to be fully committed
|
|
@@ -123,10 +146,10 @@ declare class PartiallyCommittedEntity {
|
|
|
123
146
|
resolveReference(id: EntityReference): void;
|
|
124
147
|
forceComplete(): void;
|
|
125
148
|
}
|
|
126
|
-
/** Arguments you can pass to [[IModelTransformer.
|
|
149
|
+
/** Arguments you can pass to [[IModelTransformer.initialize]]
|
|
127
150
|
* @beta
|
|
128
151
|
*/
|
|
129
|
-
export interface
|
|
152
|
+
export interface InitOptions {
|
|
130
153
|
accessToken?: AccessToken;
|
|
131
154
|
/**
|
|
132
155
|
* Include changes from this changeset up through and including the current changeset.
|
|
@@ -144,6 +167,10 @@ export interface InitFromExternalSourceAspectsArgs {
|
|
|
144
167
|
*/
|
|
145
168
|
export interface ProcessChangesOptions extends ExportChangesOptions {
|
|
146
169
|
}
|
|
170
|
+
/** Arguments you can pass to [[IModelTransformer.initExternalSourceAspects]]
|
|
171
|
+
* @deprecated in 0.1.0. Use [[InitOptions]] (and [[IModelTransformer.initialize]]) instead.
|
|
172
|
+
*/
|
|
173
|
+
export type InitFromExternalSourceAspectsArgs = InitOptions;
|
|
147
174
|
/** Base class used to transform a source iModel into a different target iModel.
|
|
148
175
|
* @see [iModel Transformation and Data Exchange]($docs/learning/transformer/index.md), [IModelExporter]($transformer), [IModelImporter]($transformer)
|
|
149
176
|
* @beta
|
|
@@ -166,10 +193,16 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
166
193
|
/** map of (unprocessed element, referencing processed element) pairs to the partially committed element that needs the reference resolved
|
|
167
194
|
* and have some helper methods below for now */
|
|
168
195
|
protected _pendingReferences: PendingReferenceMap<PartiallyCommittedEntity>;
|
|
196
|
+
/** a set of elements for which source provenance will be explicitly tracked by ExternalSourceAspects */
|
|
197
|
+
protected _elementsWithExplicitlyTrackedProvenance: Set<string>;
|
|
169
198
|
/** map of partially committed entities to their partial commit progress */
|
|
170
199
|
protected _partiallyCommittedEntities: EntityMap<PartiallyCommittedEntity>;
|
|
171
200
|
/** the options that were used to initialize this transformer */
|
|
172
201
|
private readonly _options;
|
|
202
|
+
private _isSynchronization;
|
|
203
|
+
private get _isReverseSynchronization();
|
|
204
|
+
private get _isForwardSynchronization();
|
|
205
|
+
private _changesetRanges;
|
|
173
206
|
/** Set if it can be determined whether this is the first source --> target synchronization. */
|
|
174
207
|
private _isFirstSynchronization?;
|
|
175
208
|
/** The element classes that are considered to define provenance in the iModel */
|
|
@@ -205,6 +238,20 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
205
238
|
isReverseSynchronization: boolean;
|
|
206
239
|
targetScopeElementId: Id64String;
|
|
207
240
|
}): ExternalSourceAspectProps;
|
|
241
|
+
static initRelationshipProvenanceOptions(sourceRelInstanceId: Id64String, targetRelInstanceId: Id64String, args: {
|
|
242
|
+
sourceDb: IModelDb;
|
|
243
|
+
targetDb: IModelDb;
|
|
244
|
+
isReverseSynchronization: boolean;
|
|
245
|
+
targetScopeElementId: Id64String;
|
|
246
|
+
forceOldRelationshipProvenanceMethod: boolean;
|
|
247
|
+
}): ExternalSourceAspectProps;
|
|
248
|
+
/**
|
|
249
|
+
* Previously the transformer would insert provenance always pointing to the "target" relationship.
|
|
250
|
+
* It should (and now by default does) instead insert provenance pointing to the provenanceSource
|
|
251
|
+
* SEE: https://github.com/iTwin/imodel-transformer/issues/54
|
|
252
|
+
* This exists only to facilitate testing that the transformer can handle the older, flawed method
|
|
253
|
+
*/
|
|
254
|
+
private _forceOldRelationshipProvenanceMethod;
|
|
208
255
|
/** Create an ExternalSourceAspectProps in a standard way for an Element in an iModel --> iModel transformation. */
|
|
209
256
|
private initElementProvenance;
|
|
210
257
|
/** Create an ExternalSourceAspectProps in a standard way for a Relationship in an iModel --> iModel transformations.
|
|
@@ -213,9 +260,38 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
213
260
|
* The ECInstanceId of the relationship in the target iModel will be stored in the JsonProperties of the ExternalSourceAspect.
|
|
214
261
|
*/
|
|
215
262
|
private initRelationshipProvenance;
|
|
216
|
-
|
|
217
|
-
private
|
|
218
|
-
/**
|
|
263
|
+
/** NOTE: the json properties must be converted to string before insertion */
|
|
264
|
+
private _targetScopeProvenanceProps;
|
|
265
|
+
/**
|
|
266
|
+
* Index of the changeset that the transformer was at when the transformation begins (was constructed).
|
|
267
|
+
* Used to determine at the end which changesets were part of a synchronization.
|
|
268
|
+
*/
|
|
269
|
+
private _startingChangesetIndices;
|
|
270
|
+
private _cachedSynchronizationVersion;
|
|
271
|
+
/** the changeset in the scoping element's source version found for this transformation
|
|
272
|
+
* @note: the version depends on whether this is a reverse synchronization or not, as
|
|
273
|
+
* it is stored separately for both synchronization directions
|
|
274
|
+
* @note: empty string and -1 for changeset and index if it has never been transformed
|
|
275
|
+
*/
|
|
276
|
+
private get _synchronizationVersion();
|
|
277
|
+
/**
|
|
278
|
+
* Make sure there are no conflicting other scope-type external source aspects on the *target scope element*,
|
|
279
|
+
* If there are none at all, insert one, then this must be a first synchronization.
|
|
280
|
+
* @returns the last synced version (changesetId) on the target scope's external source aspect,
|
|
281
|
+
* if this was a [BriefcaseDb]($backend)
|
|
282
|
+
*/
|
|
283
|
+
private initScopeProvenance;
|
|
284
|
+
/**
|
|
285
|
+
* @returns the id and version of an aspect with the given element, scope, kind, and identifier
|
|
286
|
+
* May also return a reverseSyncVersion from json properties if requested
|
|
287
|
+
*/
|
|
288
|
+
private queryScopeExternalSource;
|
|
289
|
+
/**
|
|
290
|
+
* Iterate all matching federation guids and ExternalSourceAspects in the provenance iModel (target unless reverse sync)
|
|
291
|
+
* and call a function for each one.
|
|
292
|
+
* @note provenance is done by federation guids where possible
|
|
293
|
+
* @note this may execute on each element more than once! Only use in cases where that is handled
|
|
294
|
+
*/
|
|
219
295
|
static forEachTrackedElement(args: {
|
|
220
296
|
provenanceSourceDb: IModelDb;
|
|
221
297
|
provenanceDb: IModelDb;
|
|
@@ -230,19 +306,30 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
230
306
|
* @note Passing an [[InitFromExternalSourceAspectsArgs]] is required when processing changes, to remap any elements that may have been deleted.
|
|
231
307
|
* You must await the returned promise as well in this case. The synchronous behavior has not changed but is deprecated and won't process everything.
|
|
232
308
|
*/
|
|
233
|
-
initFromExternalSourceAspects(args?:
|
|
234
|
-
/**
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*/
|
|
238
|
-
private
|
|
309
|
+
initFromExternalSourceAspects(args?: InitOptions): void | Promise<void>;
|
|
310
|
+
/**
|
|
311
|
+
* Scan changesets for deleted entities, if in a reverse synchronization, provenance has
|
|
312
|
+
* already been deleted, so we must scan for that as well.
|
|
313
|
+
*/
|
|
314
|
+
private remapDeletedSourceEntities;
|
|
315
|
+
private _queryProvenanceForElement;
|
|
316
|
+
private _queryProvenanceForRelationship;
|
|
317
|
+
private _queryTargetRelId;
|
|
318
|
+
private _targetClassNameToClassIdCache;
|
|
319
|
+
private _targetClassNameToClassId;
|
|
320
|
+
private _getRelClassId;
|
|
321
|
+
private _queryElemIdByFedGuid;
|
|
239
322
|
/** Returns `true` if *brute force* delete detections should be run.
|
|
240
323
|
* @note Not relevant for processChanges when change history is known.
|
|
241
324
|
*/
|
|
242
325
|
protected shouldDetectDeletes(): boolean;
|
|
243
|
-
/**
|
|
244
|
-
*
|
|
245
|
-
*
|
|
326
|
+
/**
|
|
327
|
+
* Detect Element deletes using ExternalSourceAspects in the target iModel and a *brute force* comparison against Elements
|
|
328
|
+
* in the source iModel.
|
|
329
|
+
* @deprecated in 0.1.x. This method is only called during [[processAll]] when the option
|
|
330
|
+
* [[IModelTransformerOptions.forceExternalSourceAspectProvenance]] is enabled. It is not
|
|
331
|
+
* necessary when using [[processChanges]] since changeset information is sufficient.
|
|
332
|
+
* @note you do not need to call this directly unless processing a subset of an iModel.
|
|
246
333
|
* @throws [[IModelError]] If the required provenance information is not available to detect deletes.
|
|
247
334
|
*/
|
|
248
335
|
detectElementDeletes(): Promise<void>;
|
|
@@ -257,12 +344,15 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
257
344
|
* @note This can be called more than once for an element in arbitrary order, so it should not have side-effects.
|
|
258
345
|
*/
|
|
259
346
|
onTransformElement(sourceElement: Element): ElementProps;
|
|
347
|
+
private _hasElementChangedCache?;
|
|
348
|
+
private _deletedSourceRelationshipData?;
|
|
349
|
+
private _cacheSourceChanges;
|
|
260
350
|
/** Returns true if a change within sourceElement is detected.
|
|
261
351
|
* @param sourceElement The Element from the source iModel
|
|
262
352
|
* @param targetElementId The Element from the target iModel to compare against.
|
|
263
353
|
* @note A subclass can override this method to provide custom change detection behavior.
|
|
264
354
|
*/
|
|
265
|
-
protected hasElementChanged(sourceElement: Element,
|
|
355
|
+
protected hasElementChanged(sourceElement: Element, _targetElementId: Id64String): boolean;
|
|
266
356
|
private static transformCallbackFor;
|
|
267
357
|
/** callback to perform when a partial element says it's ready to be completed
|
|
268
358
|
* transforms the source element with all references now valid, then updates the partial element with the results
|
|
@@ -335,6 +425,19 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
335
425
|
* @deprecated in 3.x. This method is no longer necessary since the transformer no longer needs to defer elements
|
|
336
426
|
*/
|
|
337
427
|
processDeferredElements(_numRetries?: number): Promise<void>;
|
|
428
|
+
/** called at the end ([[finalizeTransformation]]) of a transformation,
|
|
429
|
+
* updates the target scope element to say that transformation up through the
|
|
430
|
+
* source's changeset has been performed. Also stores all changesets that occurred
|
|
431
|
+
* during the transformation as "pending synchronization changeset indices"
|
|
432
|
+
*
|
|
433
|
+
* You generally should not call this function yourself and use [[processChanges]] instead.
|
|
434
|
+
* It is public for unsupported use cases of custom synchronization transforms.
|
|
435
|
+
* @note if you are not running processChanges in this transformation, this will fail
|
|
436
|
+
* without setting the `force` option to `true`
|
|
437
|
+
*/
|
|
438
|
+
updateSynchronizationVersion({ force }?: {
|
|
439
|
+
force?: boolean | undefined;
|
|
440
|
+
}): void;
|
|
338
441
|
private finalizeTransformation;
|
|
339
442
|
/** Imports all relationships that subclass from the specified base class.
|
|
340
443
|
* @param baseRelClassFullName The specified base relationship class.
|
|
@@ -355,6 +458,7 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
355
458
|
onDeleteRelationship(sourceRelInstanceId: Id64String): void;
|
|
356
459
|
private _yieldManager;
|
|
357
460
|
/** Detect Relationship deletes using ExternalSourceAspects in the target iModel and a *brute force* comparison against relationships in the source iModel.
|
|
461
|
+
* @deprecated
|
|
358
462
|
* @see processChanges
|
|
359
463
|
* @note This method is called from [[processAll]] and is not needed by [[processChanges]], so it only needs to be called directly when processing a subset of an iModel.
|
|
360
464
|
* @throws [[IModelError]] If the required provenance information is not available to detect deletes.
|
|
@@ -429,17 +533,22 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
429
533
|
processSubject(sourceSubjectId: Id64String, targetSubjectId: Id64String): Promise<void>;
|
|
430
534
|
/** state to prevent reinitialization, @see [[initialize]] */
|
|
431
535
|
private _initialized;
|
|
536
|
+
/** length === 0 when _changeDataState = "no-change", length > 0 means "has-changes", otherwise undefined */
|
|
537
|
+
private _changeSummaryIds?;
|
|
538
|
+
private _sourceChangeDataState;
|
|
432
539
|
/**
|
|
433
|
-
* Initialize prerequisites of processing, you must initialize with an [[
|
|
434
|
-
* are intending process changes, but prefer using [[processChanges]]
|
|
435
|
-
* Called by all `process*` functions implicitly.
|
|
540
|
+
* Initialize prerequisites of processing, you must initialize with an [[InitOptions]] if you
|
|
541
|
+
* are intending to process changes, but prefer using [[processChanges]] explicitly since it calls this.
|
|
542
|
+
* @note Called by all `process*` functions implicitly.
|
|
436
543
|
* Overriders must call `super.initialize()` first
|
|
437
544
|
*/
|
|
438
|
-
initialize(args?:
|
|
545
|
+
initialize(args?: InitOptions): Promise<void>;
|
|
546
|
+
private _tryInitChangesetData;
|
|
439
547
|
/** Export everything from the source iModel and import the transformed entities into the target iModel.
|
|
440
548
|
* @note [[processSchemas]] is not called automatically since the target iModel may want a different collection of schemas.
|
|
441
549
|
*/
|
|
442
550
|
processAll(): Promise<void>;
|
|
551
|
+
/** previous provenance, either a federation guid, a `${sourceFedGuid}/${targetFedGuid}` pair, or required aspect props */
|
|
443
552
|
private _lastProvenanceEntityInfo;
|
|
444
553
|
private markLastProvenance;
|
|
445
554
|
/** @internal the name of the table where javascript state of the transformer is serialized in transformer state dumps */
|
|
@@ -454,6 +563,9 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
454
563
|
*/
|
|
455
564
|
protected loadStateFromDb(db: SQLiteDb): void;
|
|
456
565
|
/**
|
|
566
|
+
* @deprecated in 0.1.x, this is buggy, and it is now equivalently efficient to simply restart the transformation
|
|
567
|
+
* from the original changeset
|
|
568
|
+
*
|
|
457
569
|
* Return a new transformer instance with the same remappings state as saved from a previous [[IModelTransformer.saveStateToFile]] call.
|
|
458
570
|
* This allows you to "resume" an iModel transformation, you will have to call [[IModelTransformer.processChanges]]/[[IModelTransformer.processAll]]
|
|
459
571
|
* again but the remapping state will cause already mapped elements to be skipped.
|
|
@@ -483,6 +595,9 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
483
595
|
*/
|
|
484
596
|
protected saveStateToDb(db: SQLiteDb): void;
|
|
485
597
|
/**
|
|
598
|
+
* @deprecated in 0.1.x, this is buggy, and it is now equivalently efficient to simply restart the transformation
|
|
599
|
+
* from the original changeset
|
|
600
|
+
*
|
|
486
601
|
* Save the state of the active transformation to a file path, if a file at the path already exists, it will be overwritten
|
|
487
602
|
* This state can be used by [[IModelTransformer.resumeTransformation]] to resume a transformation from this point.
|
|
488
603
|
* The serialization format is a custom sqlite database.
|
|
@@ -493,12 +608,33 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
493
608
|
*/
|
|
494
609
|
saveStateToFile(nativeStatePath: string): void;
|
|
495
610
|
/** Export changes from the source iModel and import the transformed entities into the target iModel.
|
|
496
|
-
*
|
|
497
|
-
*
|
|
611
|
+
* Inserts, updates, and deletes are determined by inspecting the changeset(s).
|
|
612
|
+
* @note the transformer assumes that you saveChanges after processing changes. You should not
|
|
613
|
+
* modify the iModel after processChanges until saveChanges, failure to do so may result in corrupted
|
|
614
|
+
* data loss in future branch operations
|
|
615
|
+
* @param accessToken A valid access token string
|
|
616
|
+
* @param startChangesetId Include changes from this changeset up through and including the current changeset.
|
|
617
|
+
* @note if no startChangesetId or startChangeset option is provided, the next unsynchronized changeset
|
|
618
|
+
* will automatically be determined and used
|
|
619
|
+
* @note To form a range of versions to process, set `startChangesetId` for the start (inclusive) of the desired range and open the source iModel as of the end (inclusive) of the desired range.
|
|
620
|
+
*/
|
|
621
|
+
processChanges(options: ProcessChangesOptions): Promise<void>;
|
|
622
|
+
/**
|
|
623
|
+
* @deprecated in 0.1.x, use a single [[ProcessChangesOptions]] object instead
|
|
624
|
+
* This overload follows the older behavior of defaulting an undefined startChangesetId to the
|
|
625
|
+
* current changeset.
|
|
498
626
|
*/
|
|
499
|
-
processChanges(args: ProcessChangesOptions): Promise<void>;
|
|
500
|
-
/** @deprecated in 0.1.x, use a single [[ProcessChangesOptions]] object instead */
|
|
501
627
|
processChanges(accessToken: AccessToken, startChangesetId?: string): Promise<void>;
|
|
628
|
+
/** Changeset data must be initialized in order to build correct changeOptions.
|
|
629
|
+
* Call [[IModelTransformer.initialize]] for initialization of synchronization provenance data
|
|
630
|
+
*/
|
|
631
|
+
private getExportInitOpts;
|
|
632
|
+
/** Combine an array of source elements into a single target element.
|
|
633
|
+
* All source and target elements must be created before calling this method.
|
|
634
|
+
* The "combine" operation is a remap and no properties from the source elements will be exported into the target
|
|
635
|
+
* and provenance will be explicitly tracked by ExternalSourceAspects
|
|
636
|
+
*/
|
|
637
|
+
combineElements(sourceElementIds: Id64Array, targetElementId: Id64String): void;
|
|
502
638
|
}
|
|
503
639
|
/** IModelTransformer that clones the contents of a template model.
|
|
504
640
|
* @beta
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IModelTransformer.d.ts","sourceRoot":"","sources":["../../src/IModelTransformer.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"IModelTransformer.d.ts","sourceRoot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