@digabi/exam-engine-core 17.0.0-alpha.1 → 18.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  2. package/dist/components/DocumentTitle.d.ts +1 -1
  3. package/dist/components/DocumentTitle.d.ts.map +1 -1
  4. package/dist/components/context/AttachmentContext.d.ts +1 -1
  5. package/dist/components/context/AttachmentContext.d.ts.map +1 -1
  6. package/dist/createRenderChildNodes.d.ts +1 -1
  7. package/dist/createRenderChildNodes.d.ts.map +1 -1
  8. package/dist/dom-utils.d.ts +1 -1
  9. package/dist/dom-utils.d.ts.map +1 -1
  10. package/dist/i18n/fi-FI.d.ts +3 -3
  11. package/dist/i18n/fi-FI.d.ts.map +1 -1
  12. package/dist/main-bundle.js +1 -1
  13. package/dist/parser/parseExamStructure.d.ts +2 -2
  14. package/dist/parser/parseExamStructure.d.ts.map +1 -1
  15. package/dist/store/answers/reducer.d.ts +1 -1
  16. package/dist/store/answers/reducer.d.ts.map +1 -1
  17. package/dist/store/audio/reducer.d.ts +1 -1
  18. package/dist/store/audio/reducer.d.ts.map +1 -1
  19. package/dist/store/cas/reducer.d.ts +2 -2
  20. package/dist/store/cas/reducer.d.ts.map +1 -1
  21. package/dist/store/index.d.ts +1 -1
  22. package/dist/store/index.d.ts.map +1 -1
  23. package/dist/types/ExamAnswer.d.ts +2 -2
  24. package/dist/types/ExamAnswer.d.ts.map +1 -1
  25. package/dist/types/ExamServerAPI.d.ts +6 -6
  26. package/dist/types/ExamServerAPI.d.ts.map +1 -1
  27. package/dist/types/GradingStructure.d.ts +1 -1
  28. package/dist/types/GradingStructure.d.ts.map +1 -1
  29. package/dist/types/Score.d.ts +3 -3
  30. package/dist/types/Score.d.ts.map +1 -1
  31. package/dist/url.d.ts +1 -1
  32. package/dist/url.d.ts.map +1 -1
  33. package/dist/validateAnswers.d.ts +1 -1
  34. package/dist/validateAnswers.d.ts.map +1 -1
  35. package/package.json +2 -2
  36. package/dist/components/grading/ChoiceAnswer.d.ts +0 -6
  37. package/dist/components/grading/ChoiceAnswer.d.ts.map +0 -1
  38. package/dist/components/grading/ChoiceAnswer.js +0 -57
  39. package/dist/components/grading/ChoiceAnswer.js.map +0 -1
  40. package/dist/components/grading/DropdownAnswer.d.ts +0 -6
  41. package/dist/components/grading/DropdownAnswer.d.ts.map +0 -1
  42. package/dist/components/grading/DropdownAnswer.js +0 -43
  43. package/dist/components/grading/DropdownAnswer.js.map +0 -1
  44. package/dist/components/grading/Grading.d.ts +0 -15
  45. package/dist/components/grading/Grading.d.ts.map +0 -1
  46. package/dist/components/grading/Grading.js +0 -69
  47. package/dist/components/grading/Grading.js.map +0 -1
  48. package/dist/components/grading/MultiLineAnswer.d.ts +0 -8
  49. package/dist/components/grading/MultiLineAnswer.d.ts.map +0 -1
  50. package/dist/components/grading/MultiLineAnswer.js +0 -21
  51. package/dist/components/grading/MultiLineAnswer.js.map +0 -1
  52. package/dist/components/grading/Question.d.ts +0 -5
  53. package/dist/components/grading/Question.d.ts.map +0 -1
  54. package/dist/components/grading/Question.js +0 -23
  55. package/dist/components/grading/Question.js.map +0 -1
  56. package/dist/components/grading/QuestionTitle.d.ts +0 -6
  57. package/dist/components/grading/QuestionTitle.d.ts.map +0 -1
  58. package/dist/components/grading/QuestionTitle.js +0 -21
  59. package/dist/components/grading/QuestionTitle.js.map +0 -1
  60. package/dist/components/grading/Results.d.ts +0 -15
  61. package/dist/components/grading/Results.d.ts.map +0 -1
  62. package/dist/components/grading/Results.js +0 -77
  63. package/dist/components/grading/Results.js.map +0 -1
  64. package/dist/components/grading/ScoredTextAnswer.d.ts +0 -6
  65. package/dist/components/grading/ScoredTextAnswer.d.ts.map +0 -1
  66. package/dist/components/grading/ScoredTextAnswer.js +0 -22
  67. package/dist/components/grading/ScoredTextAnswer.js.map +0 -1
  68. package/dist/components/grading/Section.d.ts +0 -5
  69. package/dist/components/grading/Section.d.ts.map +0 -1
  70. package/dist/components/grading/Section.js +0 -18
  71. package/dist/components/grading/Section.js.map +0 -1
  72. package/dist/components/grading/SingleLineAnswer.d.ts +0 -12
  73. package/dist/components/grading/SingleLineAnswer.d.ts.map +0 -1
  74. package/dist/components/grading/SingleLineAnswer.js +0 -23
  75. package/dist/components/grading/SingleLineAnswer.js.map +0 -1
  76. package/dist/components/grading/TextAnswer.d.ts +0 -7
  77. package/dist/components/grading/TextAnswer.d.ts.map +0 -1
  78. package/dist/components/grading/TextAnswer.js +0 -53
  79. package/dist/components/grading/TextAnswer.js.map +0 -1
  80. package/dist/components/grading/internal/AnnotationList.d.ts +0 -5
  81. package/dist/components/grading/internal/AnnotationList.d.ts.map +0 -1
  82. package/dist/components/grading/internal/AnnotationList.js +0 -43
  83. package/dist/components/grading/internal/AnnotationList.js.map +0 -1
  84. package/dist/components/grading/internal/QuestionAutoScore.d.ts +0 -10
  85. package/dist/components/grading/internal/QuestionAutoScore.d.ts.map +0 -1
  86. package/dist/components/grading/internal/QuestionAutoScore.js +0 -17
  87. package/dist/components/grading/internal/QuestionAutoScore.js.map +0 -1
  88. package/dist/components/grading/internal/QuestionManualScore.d.ts +0 -12
  89. package/dist/components/grading/internal/QuestionManualScore.d.ts.map +0 -1
  90. package/dist/components/grading/internal/QuestionManualScore.js +0 -61
  91. package/dist/components/grading/internal/QuestionManualScore.js.map +0 -1
  92. package/dist/components/grading/internal/QuestionScoresContainer.d.ts +0 -10
  93. package/dist/components/grading/internal/QuestionScoresContainer.d.ts.map +0 -1
  94. package/dist/components/grading/internal/QuestionScoresContainer.js +0 -12
  95. package/dist/components/grading/internal/QuestionScoresContainer.js.map +0 -1
  96. package/dist/editAnnotations.d.ts +0 -2
  97. package/dist/editAnnotations.d.ts.map +0 -1
  98. package/dist/editAnnotations.js +0 -8
  99. package/dist/editAnnotations.js.map +0 -1
  100. package/dist/editAnnotationsOld.d.ts +0 -3
  101. package/dist/editAnnotationsOld.d.ts.map +0 -1
  102. package/dist/editAnnotationsOld.js +0 -340
  103. package/dist/editAnnotationsOld.js.map +0 -1
@@ -1,340 +0,0 @@
1
- import $ from 'jquery';
2
- import * as _ from 'lodash-es';
3
- import * as Bacon from 'baconjs';
4
- import * as answerAnnotationsRendering from './annotations-rendering';
5
- $.fn.asEventStream = Bacon.$.asEventStream;
6
- const ESC = 27;
7
- const ENTER = 13;
8
- let isMouseDown = false;
9
- export function setupAnnotationEditing($containerElement, saveAnnotation, localize, isCensor) {
10
- setupAnnotationAddition($containerElement);
11
- setupAnnotationRemoval($containerElement);
12
- function setupAnnotationRemoval($answers) {
13
- $answers.on('mousedown', '.remove-annotation-area', (event) => {
14
- removeAnnotation($(event.target).closest('.answerAnnotation'));
15
- return false;
16
- });
17
- function removeAnnotation($annotationElem) {
18
- // eslint-disable-line no-shadow
19
- const $answerText = $annotationElem.closest('.answerText');
20
- const annotationIndex = Number($annotationElem.data('index'));
21
- const annotations = answerAnnotationsRendering.get($answerText);
22
- const updatedAnnotations = _.without(annotations, annotations[annotationIndex]);
23
- saveAnnotation(getAnswerId($answerText), updatedAnnotations);
24
- answerAnnotationsRendering.renderAnnotationsForElement($answerText, updatedAnnotations);
25
- }
26
- }
27
- function setupAnnotationAddition($containerElement) {
28
- preventDragSelectionFromOverlappingCensorAnswerText($containerElement);
29
- $containerElement
30
- .asEventStream('mouseup')
31
- .filter(hasTextSelectedInAnswerText)
32
- .map(() => {
33
- $('.remove-annotation-popup').remove();
34
- return getBrowserTextSelection().getRangeAt(0);
35
- })
36
- .filter((range) => {
37
- if (selectionHasNothingToUnderline(range)) {
38
- return false;
39
- }
40
- const $container = $(range.commonAncestorContainer);
41
- return (!$container.hasClass('add-annotation-popup') &&
42
- ($container.hasClass('answerText') || $container.parents('div.answerText').toArray().length > 0) &&
43
- !$container.parents('.answer').hasClass('autograded'));
44
- })
45
- .flatMapLatest(openPopupFromRange)
46
- .onValue(addAnnotation);
47
- $containerElement
48
- .asEventStream('mousedown')
49
- .filter((e) => !$(e.target).closest('.add-annotation-text').length && !$(e.target).closest('.annotation-message').length)
50
- .merge($containerElement.asEventStream('keyup').filter((e) => e.keyCode === ESC))
51
- .onValue(() => {
52
- getBrowserTextSelection().removeAllRanges();
53
- // Render annotations for all answers that have popup open. This clears the popup and annotation that was merged for rendering before opening popup.
54
- $('.add-annotation-popup').each((index, popup) => {
55
- answerAnnotationsRendering.renderAnnotationsForElement($(popup).closest('.answerText'));
56
- });
57
- });
58
- $containerElement
59
- .asEventStream('mousedown', 'img, .attachmentWrapper')
60
- .filter((e) => e.button === 0)
61
- .doAction(() => {
62
- isMouseDown = true;
63
- return false;
64
- })
65
- .flatMapLatest((se) => {
66
- const $target = $(se.currentTarget);
67
- // We have attached `mousedown` to `.attachmentWrapper` as well, so
68
- // the target isn't necessarily the image itself.
69
- const $image = $target.is('img') ? $target : $target.find('img');
70
- const $targetAnswerText = $image.on('dragstart', false).closest('.answerText');
71
- const attachmentIndex = $targetAnswerText.find('img').index($image);
72
- // The event will come from the topmost `.answerText`, which isn't
73
- // necessarily the correct one. So we need to find the correct
74
- // `.answerText` to add the annotation to.
75
- const $answerText = $targetAnswerText
76
- .parent()
77
- .children('.answerText' + (isCensor ? '.is_censor' : '.is_pregrading'));
78
- const $attachmentWrapper = answerAnnotationsRendering.wrapAttachment($answerText.find(`img:eq(${attachmentIndex})`));
79
- let $shape;
80
- const bbox = $attachmentWrapper[0].getBoundingClientRect();
81
- const startX = clamp((se.clientX - bbox.left) / bbox.width);
82
- const startY = clamp((se.clientY - bbox.top) / bbox.height);
83
- const lineThresholdPx = 10;
84
- const mouseUpE = $(window)
85
- .asEventStream('mouseup')
86
- .doAction(() => {
87
- isMouseDown = false;
88
- });
89
- return $(window)
90
- .asEventStream('mousemove')
91
- .takeUntil(mouseUpE)
92
- .flatMapLatest((e) => {
93
- const currentX = clamp((e.clientX - bbox.left) / bbox.width);
94
- const currentY = clamp((e.clientY - bbox.top) / bbox.height);
95
- const isVerticalLine = Math.abs(se.clientX - e.clientX) <= lineThresholdPx;
96
- const isHorizontalLine = Math.abs(se.clientY - e.clientY) <= lineThresholdPx;
97
- const type = isVerticalLine || isHorizontalLine ? 'line' : 'rect';
98
- switch (type) {
99
- case 'rect': {
100
- return {
101
- type: 'rect',
102
- attachmentIndex,
103
- x: Math.min(startX, currentX),
104
- y: Math.min(startY, currentY),
105
- width: Math.abs(currentX - startX),
106
- height: Math.abs(currentY - startY),
107
- };
108
- }
109
- case 'line': {
110
- return {
111
- type: 'line',
112
- attachmentIndex,
113
- x1: isVerticalLine ? startX : Math.min(startX, currentX),
114
- y1: isHorizontalLine ? startY : Math.min(startY, currentY),
115
- x2: isVerticalLine ? startX : Math.max(startX, currentX),
116
- y2: isHorizontalLine ? startY : Math.max(startY, currentY),
117
- };
118
- }
119
- }
120
- })
121
- .doAction((shape) => {
122
- const doAppend = $shape == null;
123
- $shape = answerAnnotationsRendering.renderShape(shape, $shape);
124
- if (doAppend) {
125
- $attachmentWrapper.append($shape);
126
- }
127
- })
128
- .last()
129
- .flatMapLatest((shape) => {
130
- const $answerText = $attachmentWrapper.closest('.answerText');
131
- const attachmentWrapperPosition = $attachmentWrapper.position();
132
- const shapePosition = $shape.position();
133
- const popupCss = {
134
- position: 'absolute',
135
- top: attachmentWrapperPosition.top + shapePosition.top + $shape.height() + 4,
136
- left: attachmentWrapperPosition.left + shapePosition.left,
137
- };
138
- return openPopup($answerText, shape, '', popupCss);
139
- });
140
- })
141
- .onValue(addAnnotation);
142
- function clamp(n) {
143
- return _.clamp(n, 0, 1);
144
- }
145
- function selectionHasNothingToUnderline(range) {
146
- const contents = range.cloneContents();
147
- let hasImages = _.includes(_.toArray(contents.childNodes).map((x) => x.tagName), 'IMG');
148
- return contents.textContent.length === 0 && !hasImages;
149
- }
150
- function preventDragSelectionFromOverlappingCensorAnswerText($containerElem) {
151
- if (isCensor) {
152
- $containerElem.on('mousedown mouseup', (e) => {
153
- $('.answerText.is_censor .answerAnnotation').toggleClass('no-mouse', e.type === 'mousedown');
154
- });
155
- }
156
- }
157
- function getPopupCss(range) {
158
- const container = $(range.startContainer).closest('.answer-text-container').get(0);
159
- const boundingRect = range.getBoundingClientRect();
160
- if (container) {
161
- const containerRect = container.getBoundingClientRect();
162
- return {
163
- position: 'absolute',
164
- top: boundingRect.bottom - containerRect.top + 10,
165
- left: boundingRect.left - containerRect.left,
166
- };
167
- }
168
- else {
169
- return {
170
- position: 'absolute',
171
- top: 0,
172
- left: 0,
173
- };
174
- }
175
- }
176
- function openPopupFromRange(range) {
177
- const popupCss = getPopupCss(range);
178
- let $answerText = $(range.startContainer).closest('.answerText');
179
- const annotationPos = answerAnnotationsRendering.calculatePosition($answerText, range);
180
- if (isCensor && !$answerText.hasClass('is_censor')) {
181
- // render annotations to censor answer text element even if event cought via double click
182
- $answerText = $(range.startContainer).closest('.answer').find('.answerText.is_censor');
183
- }
184
- const messages = answerAnnotationsRendering.getOverlappingMessages($answerText, annotationPos.startIndex, annotationPos.length);
185
- const renderedMessages = messages.reduceRight((msg, str) => `${str} / ${msg}`, '');
186
- getBrowserTextSelection().removeAllRanges();
187
- // Merge and render annotation to show what range it will contain if annotation gets added
188
- // Merged annotation not saved yet, so on cancel previous state is rendered
189
- const mergedAnnotations = answerAnnotationsRendering.mergeAnnotation($answerText, annotationPos);
190
- answerAnnotationsRendering.renderGivenAnnotations($answerText, mergedAnnotations);
191
- return openPopup($answerText, annotationPos, renderedMessages, popupCss);
192
- }
193
- function openPopup($answerText, annotation, message, popupCss) {
194
- const $popup = localize($('<div class="popup add-annotation-popup"><input class="add-annotation-text" type="text" value=""/><i class="fa fa-comment"></i><button data-i18n="arpa.annotate">Merkitse</button></div>'));
195
- $popup.get(0).firstChild.value = message;
196
- $answerText.append($popup);
197
- $popup.css(popupCss);
198
- $popup.find('input').focus();
199
- return $popup
200
- .find('button')
201
- .asEventStream('mousedown')
202
- .merge($popup.asEventStream('keyup').filter((e) => e.keyCode === ENTER))
203
- .map(() => {
204
- const message = $('.add-annotation-text').val().trim();
205
- return {
206
- $answerText,
207
- annotation: _.assign({}, annotation, { message }),
208
- };
209
- });
210
- }
211
- function addAnnotation(annotationData) {
212
- if (annotationData.annotation.length > 0 || annotationData.annotation.type != null) {
213
- const data = answerAnnotationsRendering.get(annotationData.$answerText);
214
- const annotations = data
215
- ? answerAnnotationsRendering.mergeAnnotation(annotationData.$answerText, annotationData.annotation)
216
- : [annotationData.annotation];
217
- saveAnnotation(getAnswerId(annotationData.$answerText), annotations);
218
- answerAnnotationsRendering.renderAnnotationsForElement(annotationData.$answerText, annotations);
219
- }
220
- }
221
- }
222
- }
223
- export function setupAnnotationDisplaying($answers, isCensor) {
224
- let fadeOutDelayTimeout = void 0;
225
- $answers.on('mouseenter', '.answerAnnotation', (event) => {
226
- const $annotation = $(event.target);
227
- if (isMouseDown || addAnnotationPopupIsVisible() || hasTextSelectedInAnswerText()) {
228
- return;
229
- }
230
- clearTimeout(fadeOutDelayTimeout);
231
- if (popupAlreadyShownForCurrentAnnotation(event)) {
232
- $annotation.find('.remove-annotation-popup').stop().show().css({ opacity: 1 });
233
- }
234
- else {
235
- clearAllRemovePopups();
236
- renderRemovePopup(event);
237
- }
238
- });
239
- $answers.on('mouseleave', '.answerAnnotation', (event) => {
240
- fadeOutDelayTimeout = setTimeout(() => {
241
- removeRemovePopup(event);
242
- }, 400);
243
- });
244
- function popupAlreadyShownForCurrentAnnotation(event) {
245
- const mouseOverAnnotationElem = $(event.target).closest('.answerAnnotation')[0];
246
- const popupsCurrentAnnotationElem = $('.remove-annotation-popup:visible').closest('.answerAnnotation')[0];
247
- return (event &&
248
- mouseOverAnnotationElem &&
249
- popupsCurrentAnnotationElem &&
250
- mouseOverAnnotationElem.isEqualNode(popupsCurrentAnnotationElem));
251
- }
252
- function addAnnotationPopupIsVisible() {
253
- return $('.add-annotation-popup').is(':visible');
254
- }
255
- function clearAllRemovePopups() {
256
- $('.remove-annotation-popup').remove();
257
- }
258
- function renderRemovePopup(event) {
259
- const $annotation = $(event.currentTarget);
260
- const $popup = popupWithMessage($annotation, $annotation.attr('data-message'));
261
- $annotation.append($popup);
262
- // Calculate limits for preventing overflow on either side
263
- const left = inlineLeftOffset(event.currentTarget);
264
- const pageMargin = 8;
265
- const leftLimit = -left + pageMargin;
266
- const rightLimit = $(window).width() - left - $popup.outerWidth() - pageMargin;
267
- const css = {
268
- left: Math.min(Math.max(mouseOffsetLeft(event) - $popup.outerWidth() / 2, leftLimit), rightLimit),
269
- };
270
- $popup.css(css);
271
- $popup.fadeIn();
272
- }
273
- function removeRemovePopup(event) {
274
- const $annotation = $(event.target).closest('.answerAnnotation');
275
- const popup = $annotation.find('.remove-annotation-popup');
276
- popup.fadeOut(100, () => {
277
- popup.remove();
278
- });
279
- }
280
- function popupWithMessage($annotation, message) {
281
- const $messageContainer = $('<span class="popup remove-annotation-popup"><span class="annotation-message"></span></span>');
282
- $messageContainer.find('.annotation-message').text(message || '-');
283
- if (isAllowedToRemoveAnnotation($annotation)) {
284
- $messageContainer.append('<i class="fa fa-times-circle remove-annotation-area"></i>');
285
- }
286
- return $messageContainer;
287
- }
288
- function isAllowedToRemoveAnnotation($annotation) {
289
- return isPregradingAndScoringEnabled() || isCensorAndOwnAnnotation();
290
- function isPregradingAndScoringEnabled() {
291
- const $body = $('body');
292
- return $body.hasClass('is_pregrading') && !$body.hasClass('preview');
293
- }
294
- function isCensorAndOwnAnnotation() {
295
- return isCensor && $annotation.closest('.answerText').hasClass('is_censor');
296
- }
297
- }
298
- function inlineLeftOffset(element) {
299
- return $(element).offsetParent().offset().left + element.offsetLeft;
300
- }
301
- function mouseOffsetLeft(mousemove) {
302
- const annotation = mousemove.target;
303
- const annotationLeftOffsetFromPageEdge = inlineLeftOffset(annotation);
304
- return mousemove.pageX - annotationLeftOffsetFromPageEdge;
305
- }
306
- }
307
- function getAnswerId($answerText) {
308
- return $answerText.closest('.answer').attr('data-answer-id');
309
- }
310
- function getBrowserTextSelection() {
311
- return typeof window.getSelection !== 'undefined'
312
- ? window.getSelection()
313
- : typeof document.selection !== 'undefined' && document.selection.type === 'Text'
314
- ? document.selection
315
- : undefined;
316
- }
317
- function hasTextSelectedInAnswerText() {
318
- const selection = getBrowserTextSelection();
319
- return (selection && selectionInAnswerText(selection) && (isRangeSelection(selection) || textSelectedInRange(selection)));
320
- function selectionInAnswerText(sel) {
321
- if (sel.type === 'None' || sel.type === 'Caret' || sel.rangeCount === 0)
322
- return false;
323
- const $startContainer = $(sel.getRangeAt(0).startContainer);
324
- return (sel.rangeCount &&
325
- $startContainer.closest('.answerText').length === 1 &&
326
- $startContainer.closest('.remove-annotation-popup').length === 0);
327
- }
328
- function isRangeSelection(sel) {
329
- return _.get(sel, 'type', '') === 'Range';
330
- }
331
- function textSelectedInRange(sel) {
332
- const range = sel.getRangeAt(0);
333
- return (_.get(sel, 'rangeCount', 0) > 0 &&
334
- (range.toString().length > 0 || isParentContainer(range.startContainer) || isParentContainer(range.endContainer)));
335
- }
336
- function isParentContainer(container) {
337
- return container && container.classList && container.classList.contains('answerText');
338
- }
339
- }
340
- //# sourceMappingURL=editAnnotationsOld.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editAnnotationsOld.js","sourceRoot":"","sources":["../src/editAnnotationsOld.js"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAA;AACtB,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,0BAA0B,MAAM,yBAAyB,CAAA;AAErE,CAAC,CAAC,EAAE,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,aAAa,CAAA;AAC1C,MAAM,GAAG,GAAG,EAAE,CAAA;AACd,MAAM,KAAK,GAAG,EAAE,CAAA;AAChB,IAAI,WAAW,GAAG,KAAK,CAAA;AAEvB,MAAM,UAAU,sBAAsB,CAAC,iBAAiB,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ;IAC1F,uBAAuB,CAAC,iBAAiB,CAAC,CAAA;IAC1C,sBAAsB,CAAC,iBAAiB,CAAC,CAAA;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