@pie-element/select-text 13.1.2-next.1 → 13.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.
Files changed (82) hide show
  1. package/CHANGELOG.json +1422 -0
  2. package/CHANGELOG.md +2288 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +5 -0
  5. package/configure/CHANGELOG.json +1032 -0
  6. package/configure/CHANGELOG.md +2023 -0
  7. package/configure/lib/defaultConfiguration.js +177 -0
  8. package/configure/lib/defaultConfiguration.js.map +1 -0
  9. package/configure/lib/design.js +406 -0
  10. package/configure/lib/design.js.map +1 -0
  11. package/configure/lib/index.js +128 -0
  12. package/configure/lib/index.js.map +1 -0
  13. package/configure/lib/utils.js +92 -0
  14. package/configure/lib/utils.js.map +1 -0
  15. package/configure/package.json +25 -0
  16. package/controller/CHANGELOG.json +442 -0
  17. package/controller/CHANGELOG.md +1468 -0
  18. package/controller/lib/defaults.js +25 -0
  19. package/controller/lib/defaults.js.map +1 -0
  20. package/controller/lib/index.js +258 -0
  21. package/controller/lib/index.js.map +1 -0
  22. package/controller/package.json +16 -0
  23. package/docs/config-schema.json +2135 -0
  24. package/docs/config-schema.json.md +1579 -0
  25. package/docs/demo/config.js +8 -0
  26. package/docs/demo/generate.js +823 -0
  27. package/docs/demo/index.html +1 -0
  28. package/docs/demo/session.js +24 -0
  29. package/docs/pie-schema.json +1248 -0
  30. package/docs/pie-schema.json.md +711 -0
  31. package/lib/index.js +103 -0
  32. package/lib/index.js.map +1 -0
  33. package/lib/main.js +191 -0
  34. package/lib/main.js.map +1 -0
  35. package/lib/print.js +87 -0
  36. package/lib/print.js.map +1 -0
  37. package/lib/utils.js +80 -0
  38. package/lib/utils.js.map +1 -0
  39. package/package.json +21 -91
  40. package/configure.js +0 -2
  41. package/controller.js +0 -1
  42. package/dist/author/defaultConfiguration.d.ts +0 -179
  43. package/dist/author/defaultConfiguration.js +0 -141
  44. package/dist/author/design.d.ts +0 -38
  45. package/dist/author/design.js +0 -263
  46. package/dist/author/index.d.ts +0 -27
  47. package/dist/author/index.js +0 -74
  48. package/dist/author/utils.d.ts +0 -10
  49. package/dist/author/utils.js +0 -50
  50. package/dist/browser/Check-BEV41wEJ.js +0 -9254
  51. package/dist/browser/Check-BEV41wEJ.js.map +0 -1
  52. package/dist/browser/author/index.js +0 -41129
  53. package/dist/browser/author/index.js.map +0 -1
  54. package/dist/browser/controller/index.js +0 -194
  55. package/dist/browser/controller/index.js.map +0 -1
  56. package/dist/browser/delivery/index.js +0 -89
  57. package/dist/browser/delivery/index.js.map +0 -1
  58. package/dist/browser/dist-SG92p6xV.js +0 -319
  59. package/dist/browser/dist-SG92p6xV.js.map +0 -1
  60. package/dist/browser/main-gsFiosO8.js +0 -4804
  61. package/dist/browser/main-gsFiosO8.js.map +0 -1
  62. package/dist/browser/print/index.js +0 -41
  63. package/dist/browser/print/index.js.map +0 -1
  64. package/dist/browser/select-text.css +0 -2
  65. package/dist/controller/defaults.d.ts +0 -27
  66. package/dist/controller/defaults.js +0 -21
  67. package/dist/controller/index.d.ts +0 -25
  68. package/dist/controller/index.js +0 -121
  69. package/dist/delivery/index.d.ts +0 -19
  70. package/dist/delivery/index.js +0 -60
  71. package/dist/delivery/main.d.ts +0 -34
  72. package/dist/delivery/main.js +0 -136
  73. package/dist/delivery/utils.d.ts +0 -10
  74. package/dist/delivery/utils.js +0 -47
  75. package/dist/index.d.ts +0 -1
  76. package/dist/index.iife.d.ts +0 -8
  77. package/dist/index.iife.js +0 -167
  78. package/dist/index.js +0 -2
  79. package/dist/print/index.d.ts +0 -15
  80. package/dist/print/index.js +0 -41
  81. package/dist/runtime-support.d.ts +0 -12
  82. package/dist/runtime-support.js +0 -12
@@ -0,0 +1,823 @@
1
+ const tokens = () => [
2
+ {
3
+ text: "If 'tweren't for sight and sound and smell,",
4
+ start: 0,
5
+ end: 43,
6
+ },
7
+ {
8
+ text: "I'd like the city pretty well,",
9
+ start: 44,
10
+ end: 74,
11
+ },
12
+ {
13
+ text: 'But when it comes to getting rest,',
14
+ start: 75,
15
+ end: 109,
16
+ },
17
+ {
18
+ text: 'I like the country lots the best.',
19
+ start: 110,
20
+ end: 143,
21
+ },
22
+ {
23
+ text: 'Sometimes it seems to me I must',
24
+ start: 145,
25
+ end: 176,
26
+ },
27
+ {
28
+ text: "Just quit the city's din and dust,",
29
+ start: 177,
30
+ end: 211,
31
+ },
32
+ {
33
+ text: 'And get out where the sky is blue,',
34
+ start: 212,
35
+ end: 246,
36
+ },
37
+ {
38
+ text: 'And say, now, how does it seem to you?',
39
+ start: 247,
40
+ end: 285,
41
+ },
42
+ ];
43
+
44
+ const mathSampleTokens = [
45
+ {
46
+ start: 583,
47
+ end: 1465,
48
+ text: '<span class="lrn_token"><math xmlns="http://www.w3.org/1998/Math/MathML">\n <mstyle displaystyle="true">\n <mrow>\n <mo>[</mo>\n <mn>6</mn>\n <mi>x</mi>\n <mrow>\n <mo>(</mo>\n <mo>-</mo>\n <msup>\n <mi>x</mi>\n <mn>2</mn>\n </msup>\n <mo>+</mo>\n <mn>3</mn>\n <mi>x</mi>\n <mo>-</mo>\n <mn>1</mn>\n <mo>)</mo>\n </mrow>\n <mo>+</mo>\n <mn>2</mn>\n <mrow>\n <mo>(</mo>\n <mo>-</mo>\n <msup>\n <mi>x</mi>\n <mn>2</mn>\n </msup>\n <mo>+</mo>\n <mn>3</mn>\n <mi>x</mi>\n <mo>-</mo>\n <mn>1</mn>\n <mo>)</mo>\n </mrow>\n <mo>]</mo>\n </mrow>\n <mrow>\n <mo>(</mo>\n <msup>\n <mi>x</mi>\n <mn>2</mn>\n </msup>\n <mo>)</mo>\n </mrow>\n </mstyle>\n</math></span>',
49
+ correct: true,
50
+ },
51
+ { start: 1474, end: 2218 },
52
+ { start: 2227, end: 2797 },
53
+ { start: 2806, end: 3112 },
54
+ ];
55
+
56
+ const base = (extras) =>
57
+ Object.assign(
58
+ {},
59
+ {
60
+ // highlightChoices: true,
61
+ feedback: {
62
+ correct: {
63
+ type: 'default',
64
+ default: 'Correct',
65
+ },
66
+ incorrect: {
67
+ type: 'default',
68
+ default: 'Incorrect',
69
+ },
70
+ partial: {
71
+ type: 'default',
72
+ default: 'Nearly',
73
+ },
74
+ },
75
+ partialScoring: false,
76
+ maxSelections: 2,
77
+ mode: 'sentence',
78
+ rationale: 'Rationale goes here.',
79
+ prompt: 'What sentences contain the character 6 in them?',
80
+ promptEnabled: true,
81
+ toolbarEditorPosition: 'bottom',
82
+ // text: `<p>Warhol was born in 1928 in Pittsburgh, Pennsylvania. When he was eight years old, he became very sick and had to stay in bed for months. To help him pass the time his mother, who was an artist, taught him how to draw. He took to it like a fish to water. Art became the center of Andy's world. A year later he added picture-taking to his interests when his mother gave him a camera. He also became fascinated with movies.</p><p>Andy studied art in school and learned many ways to make art. He learned how to use different art materials, such as oil paints, metal, clay, and wood. In 1949 he moved to New York City, where he got a job drawing and painting pictures for magazines.</p>`,
83
+ text: `<p>If 'tweren't for sight and sound and smell,<br />
84
+ I'd like the city pretty well,<br />
85
+ But when it comes to getting rest,<br />
86
+ I like the country lots the best.</p>
87
+
88
+ <p>Sometimes it seems to me I must<br />
89
+ Just quit the city's din and dust,<br />
90
+ And get out where the sky is blue,<br />
91
+ And say, now, how does it seem to you?</p>`,
92
+ tokens: tokens(),
93
+ },
94
+ extras,
95
+ );
96
+
97
+ const mathSample = (extras) => {
98
+ return Object.assign(
99
+ {},
100
+ {
101
+ highlightChoices: false,
102
+ feedback: {
103
+ correct: {
104
+ type: 'default',
105
+ default: 'Correct',
106
+ },
107
+ incorrect: {
108
+ type: 'default',
109
+ default: 'Incorrect',
110
+ },
111
+ partial: {
112
+ type: 'default',
113
+ default: 'Nearly',
114
+ },
115
+ },
116
+ partialScoring: false,
117
+ maxSelections: 2,
118
+ prompt: 'What sentences contain the character 6 in them?',
119
+ text: `<p>If 'tweren't for sight and sound and smell,<br />
120
+ I'd like the city pretty well,<br />
121
+ But when it comes to getting rest,<br />
122
+ I like the country lots the best.</p>
123
+
124
+ <p>Sometimes it seems to me I must<br />
125
+ Just quit the city's din and dust,<br />
126
+ And get out where the sky is blue,<br />
127
+ And say, now, how does it seem to you?</p>`,
128
+ tokens: mathSampleTokens,
129
+ },
130
+ extras,
131
+ );
132
+ };
133
+
134
+ exports.mathSample = (id, element) => {
135
+ return Object.assign({}, { id, element }, mathSample({}));
136
+ };
137
+
138
+ exports.htmlSample = (id, element) => {
139
+ return Object.assign(
140
+ {},
141
+ { id, element },
142
+ {
143
+ highlightChoices: true,
144
+ feedback: {
145
+ correct: {
146
+ type: 'default',
147
+ default: 'Correct',
148
+ },
149
+ incorrect: {
150
+ type: 'default',
151
+ default: 'Incorrect',
152
+ },
153
+ partial: {
154
+ type: 'default',
155
+ default: 'Nearly',
156
+ },
157
+ },
158
+ partialScoring: false,
159
+ text: '<p style=\'padding: 20px\'>A flicker and then gone. In its wake, only <span class="lrn_token">the after-echo of a distant high-pitched ringing that vibrated through him even as it returned to silence once again</span>, as he stared into the smiling faces of the crew and told himself that yes he was meant to be here, that <span class="lrn_token">it had been his destiny to succeed and so he had succeeded</span>, the sense of panic already replaced by the pride of his accomplishment, replaced so completely that he would not remember that flicker, would not allow himself to remember, <span class="lrn_token">even after everything else had happened</span>. In his memory of that moment, <span class="lrn_token">he was an astronaut and they were welcoming him aboard the space station</span>. And in his memory he was smiling. Is this not what he was meant to do? Is the answer not as fixed and indisputable as any equation he might have been tasked to solve?</p>\n',
160
+ prompt:
161
+ '<p>Select the <span class="relative-emphasis">one</span> phrase below that suggests that in the future, Keith may interpret this moment differently.</p>',
162
+ maxSelections: 2,
163
+ mode: 'sentence',
164
+ rationale: 'Rationale goes here.',
165
+ tokens: [
166
+ {
167
+ correct: false,
168
+ start: 67,
169
+ end: 215,
170
+ text: '<span class="lrn_token">the after-echo of a distant high-pitched ringing that vibrated through him even as it returned to silence once again</span>',
171
+ },
172
+ {
173
+ correct: false,
174
+ start: 321,
175
+ end: 410,
176
+ text: '<span class="lrn_token">it had been his destiny to succeed and so he had succeeded</span>',
177
+ },
178
+ {
179
+ correct: true,
180
+ start: 585,
181
+ end: 655,
182
+ text: '<span class="lrn_token">even after everything else had happened</span>',
183
+ },
184
+ {
185
+ correct: false,
186
+ start: 687,
187
+ end: 790,
188
+ text: '<span class="lrn_token">he was an astronaut and they were welcoming him aboard the space station</span>',
189
+ },
190
+ ],
191
+ },
192
+ );
193
+ };
194
+
195
+ exports.htmlAscii = (id, element) => ({
196
+ id,
197
+ element,
198
+ highlightChoices: true,
199
+ prompt: 'Select the parts that have references for Lucy',
200
+ text: '<p>&#8220;Lucy? Are you using your time wisely to plan your project?&#8221; Mr. Wilson asked.</p><p>&nbsp;Lucy looked a little confused at first.</p>',
201
+ tokens: [
202
+ {
203
+ start: 10,
204
+ end: 68,
205
+ text: 'Lucy? Are you using your time wisely to plan your project?',
206
+ },
207
+ {
208
+ start: 106,
209
+ end: 145,
210
+ text: 'Lucy looked a little confused at first.',
211
+ },
212
+ ],
213
+ });
214
+
215
+ // table
216
+ const E556799 = {
217
+ partialScoring: true,
218
+ tokens: [
219
+ {
220
+ correct: false,
221
+ start: 77,
222
+ end: 201,
223
+ text: 'In 1982, he married his childhood sweetheart, Nanette, and co–authored <em>The Artist’s Guide to Sketching with Gurney</em>.',
224
+ oldStart: 70,
225
+ oldEnd: 206,
226
+ },
227
+ {
228
+ correct: false,
229
+ start: 209,
230
+ end: 342,
231
+ text: 'He and Gurney went on to be employed by Ralph Bakshi Studios to create background art for the animated feature <em>Fire and Ice</em>.',
232
+ oldStart: 214,
233
+ oldEnd: 347,
234
+ },
235
+ {
236
+ correct: false,
237
+ start: 350,
238
+ end: 463,
239
+ text: 'From 1984 to 1989, Kinkade published many paintings, so that by 1994, he was a published artist in his own right.',
240
+ oldStart: 355,
241
+ oldEnd: 468,
242
+ },
243
+ {
244
+ correct: false,
245
+ start: 471,
246
+ end: 598,
247
+ text: 'That year, he earned the honorary title of Artist of the Year from the National Association of Limited Edition Dealers (NALED).',
248
+ oldStart: 476,
249
+ oldEnd: 603,
250
+ },
251
+ {
252
+ correct: false,
253
+ start: 606,
254
+ end: 697,
255
+ text: 'An era in landscape artistry had begun that would make a lasting impression in art history.',
256
+ oldStart: 611,
257
+ oldEnd: 702,
258
+ },
259
+ {
260
+ correct: false,
261
+ start: 705,
262
+ end: 827,
263
+ text: 'He went on to publish more art books and receive more recognition, collecting fans as rapidly as they collected his works.',
264
+ oldStart: 710,
265
+ oldEnd: 832,
266
+ },
267
+ {
268
+ correct: true,
269
+ start: 857,
270
+ end: 972,
271
+ text: "One of the unique qualities of Kinkade's work is that he hides messages to his wife and daughters in each painting.",
272
+ oldStart: 862,
273
+ oldEnd: 977,
274
+ },
275
+ {
276
+ correct: true,
277
+ start: 980,
278
+ end: 1060,
279
+ text: 'For example, for his wife, Nanette, he paints a hidden letter “N” in each piece.',
280
+ oldStart: 985,
281
+ oldEnd: 1077,
282
+ },
283
+ {
284
+ correct: true,
285
+ start: 1068,
286
+ end: 1144,
287
+ text: "His four daughters' names, as well as their faces, also appear in his works.",
288
+ oldStart: 1085,
289
+ oldEnd: 1161,
290
+ },
291
+ {
292
+ correct: false,
293
+ start: 1152,
294
+ end: 1293,
295
+ text: 'Some people say that Kinkade is a passing craze of the twenty–first century; however, it is clear that he has staying power in the art world.',
296
+ oldStart: 1169,
297
+ oldEnd: 1316,
298
+ },
299
+ {
300
+ correct: false,
301
+ start: 1301,
302
+ end: 1430,
303
+ text: 'His works soothe the senses and inspire the mind because he captures the essence of light, the force on which human life thrives.',
304
+ oldStart: 1324,
305
+ oldEnd: 1453,
306
+ },
307
+ ],
308
+ text: '<table><tbody><tr><td style="border:solid 1px black;"><p class="kds-indent"> In 1982, he married his childhood sweetheart, Nanette, and co–authored <em>The Artist’s Guide to Sketching with Gurney</em>. &nbsp; He and Gurney went on to be employed by Ralph Bakshi Studios to create background art for the animated feature <em>Fire and Ice</em>. &nbsp; From 1984 to 1989, Kinkade published many paintings, so that by 1994, he was a published artist in his own right. &nbsp; That year, he earned the honorary title of Artist of the Year from the National Association of Limited Edition Dealers (NALED). &nbsp; An era in landscape artistry had begun that would make a lasting impression in art history. &nbsp; He went on to publish more art books and receive more recognition, collecting fans as rapidly as they collected his works. </p><p class="kds-indent"> One of the unique qualities of Kinkade\'s work is that he hides messages to his wife and daughters in each painting. &nbsp; For example, for his wife, Nanette, he paints a hidden letter “N” in each piece. &nbsp; His four daughters\' names, as well as their faces, also appear in his works. &nbsp; Some people say that Kinkade is a passing craze of the twenty–first century; however, it is clear that he has staying power in the art world. &nbsp; His works soothe the senses and inspire the mind because he captures the essence of light, the force on which human life thrives. </p></td></tr></tbody></table>',
309
+ prompt:
310
+ '<div>The reader can infer that Kinkade is dedicated to his family.&#160; Click on the <em>three</em> sentences in the text that <em>best</em> support this inference. </div>',
311
+ feedbackEnabled: false,
312
+ highlightChoices: false,
313
+ maxSelections: 3,
314
+ mode: 'sentence',
315
+ promptEnabled: true,
316
+ rationale: '',
317
+ rationaleEnabled: true,
318
+ scoringType: 'auto',
319
+ studentInstructionsEnabled: true,
320
+ teacherInstructions: '',
321
+ teacherInstructionsEnabled: true,
322
+ toolbarEditorPosition: 'bottom',
323
+ };
324
+
325
+ // br lines
326
+ const E231099 = {
327
+ partialScoring: true,
328
+ tokens: [
329
+ {
330
+ correct: false,
331
+ start: 3,
332
+ end: 88,
333
+ text: 'Why, who makes much of a miracle?<br />\nAs to me I know of nothing else but miracles.',
334
+ },
335
+ {
336
+ correct: false,
337
+ start: 95,
338
+ end: 198,
339
+ text: 'Whether I walk the streets of Manhattan,<br />\nOr dart my sight over the roofs of houses toward the sky',
340
+ },
341
+ {
342
+ correct: false,
343
+ start: 205,
344
+ end: 316,
345
+ text: 'Or wade with naked feet along the beach just in the edge of the water,<br />\nOr stand under trees in the woods,',
346
+ },
347
+ {
348
+ correct: true,
349
+ start: 323,
350
+ end: 513,
351
+ text: 'Or talk by day with any one I love, or sleep in the bed at night with any one I love,<br />\nOr sit at table at dinner with the rest,<br />\nOr look at strangers opposite me riding in the car,',
352
+ },
353
+ {
354
+ correct: false,
355
+ start: 520,
356
+ end: 681,
357
+ text: 'Or watch honey-bees buys around the hive of a summer forenoon,<br />\nOr animals feeding in the fields,<br />\nOr birds, or the wonderfulness of insects in the air',
358
+ },
359
+ ],
360
+ text: '<p>Why, who makes much of a miracle?<br />\nAs to me I know of nothing else but miracles.<br />\nWhether I walk the streets of Manhattan,<br />\nOr dart my sight over the roofs of houses toward the sky<br />\nOr wade with naked feet along the beach just in the edge of the water,<br />\nOr stand under trees in the woods,<br />\nOr talk by day with any one I love, or sleep in the bed at night with any one I love,<br />\nOr sit at table at dinner with the rest,<br />\nOr look at strangers opposite me riding in the car,<br />\nOr watch honey-bees buys around the hive of a summer forenoon,<br />\nOr animals feeding in the fields,<br />\nOr birds, or the wonderfulness of insects in the air</p>\n',
361
+ prompt:
362
+ '<p>Select the ONE set of lines from the poem that describes how human interactions&#160;can be miracles.</p>',
363
+ rationale:
364
+ '<p>Lines 7&#8211;9 are correct because they describe the miracle of strangers as well as the miracle of loved ones.</p>',
365
+ maxSelections: 1,
366
+ };
367
+
368
+ // superscript markup
369
+ const E684376 = {
370
+ teacherInstructions: '',
371
+ partialScoring: true,
372
+ tokens: [
373
+ {
374
+ correct: false,
375
+ start: 3,
376
+ end: 188,
377
+ text: 'And most of all, we are honored to be in the presence of men and women whose lives are a testament to the endurance and the strength of the human spirit &#8212; the inspiring survivors.',
378
+ },
379
+ {
380
+ correct: false,
381
+ start: 249,
382
+ end: 479,
383
+ text: 'As I&#8217;ve told some of you before, I grew up hearing stories about my great uncle &#8212; a soldier in the 89th Infantry Division who was stunned and shaken by what he saw when he helped to liberate Ordruf, part of Buchenwald.',
384
+ },
385
+ {
386
+ correct: false,
387
+ start: 480,
388
+ end: 641,
389
+ text: 'And I&#8217;ll never forget what I saw at Buchenwald, where so many perished with the words of Sh&#8217;ma Yis&#8217;ra&#8217;eil<sup>1</sup>&#160;on their lips.',
390
+ },
391
+ {
392
+ correct: false,
393
+ start: 650,
394
+ end: 811,
395
+ text: 'I&#8217;ve stood with survivors, in the old Warsaw ghettos, where a monument honors heroes who said we will not go quietly; we will stand up, we will fight back.',
396
+ },
397
+ {
398
+ correct: false,
399
+ start: 812,
400
+ end: 971,
401
+ text: 'And I&#8217;ve walked those sacred grounds at Yad Vashem,<sup>2</sup>&#160;with its lesson for all nations &#8212; the Shoah<sup>3</sup>&#160;cannot be denied.',
402
+ },
403
+ {
404
+ correct: true,
405
+ start: 1267,
406
+ end: 1339,
407
+ text: 'That&#8217;s why we&#8217;re here. Not simply to remember, but to speak.',
408
+ },
409
+ ],
410
+ text: '<p>And most of all, we are honored to be in the presence of men and women whose lives are a testament to the endurance and the strength of the human spirit &#8212; the inspiring survivors. It is a privilege to be with you, on a very personal level. As I&#8217;ve told some of you before, I grew up hearing stories about my great uncle &#8212; a soldier in the 89th Infantry Division who was stunned and shaken by what he saw when he helped to liberate Ordruf, part of Buchenwald. And I&#8217;ll never forget what I saw at Buchenwald, where so many perished with the words of Sh&#8217;ma Yis&#8217;ra&#8217;eil<sup>1</sup>&#160;on their lips.</p>\n\n<p>I&#8217;ve stood with survivors, in the old Warsaw ghettos, where a monument honors heroes who said we will not go quietly; we will stand up, we will fight back. And I&#8217;ve walked those sacred grounds at Yad Vashem,<sup>2</sup>&#160;with its lesson for all nations &#8212; the Shoah<sup>3</sup>&#160;cannot be denied.</p>\n\n<p>&#160;During my visit to Yad Vashem I was given a gift, inscribed with those words from the Book of Joel: "Has the like of this happened in your days or in the days of your fathers? Tell your children about it, and let your children tell theirs, and their children the next generation." That&#8217;s why we&#8217;re here. Not simply to remember, but to speak.</p>\n',
411
+ prompt:
412
+ '<p>Select the detail in paragraphs 5 through 7 of the speech that <span class="relative-emphasis">best</span> supports the speech\'s main idea.</p>',
413
+ rationale:
414
+ "<p>The importance of speaking out about the Holocaust is highlighted as the main idea. The message of teaching future generations about the Holocaust is conveyed in Joel's words, but the specific detail \"That's why we're here. Not simply to remember, but to speak\" strongly emphasizes the significance of not just&#160;preserving&#160;the history of the Holocaust,&#160;but also actively speaking up about it.</p>",
415
+ maxSelections: 1,
416
+ };
417
+
418
+ // bold markup
419
+ const E576047 = {
420
+ partialScoring: true,
421
+ tokens: [
422
+ {
423
+ correct: false,
424
+ start: 112,
425
+ end: 194,
426
+ text: 'Gorillas eat mostly leaves, stems, and other plant parts found in the rainforests.',
427
+ },
428
+ {
429
+ correct: false,
430
+ start: 201,
431
+ end: 247,
432
+ text: 'Adult males eat about 45 pounds of food a day.',
433
+ },
434
+ {
435
+ correct: false,
436
+ start: 254,
437
+ end: 295,
438
+ text: 'Females eat only about 30 pounds of food.',
439
+ },
440
+ {
441
+ correct: false,
442
+ start: 302,
443
+ end: 354,
444
+ text: 'The troop will not stay in the same place every day.',
445
+ },
446
+ {
447
+ correct: false,
448
+ start: 361,
449
+ end: 402,
450
+ text: 'They move so they do not run out of food.',
451
+ },
452
+ {
453
+ correct: false,
454
+ start: 409,
455
+ end: 447,
456
+ text: 'Gorillas spend most of the day eating.',
457
+ },
458
+ {
459
+ correct: false,
460
+ start: 475,
461
+ end: 551,
462
+ text: 'Over time, gorillas have developed a way of life to continue their survival.',
463
+ },
464
+ {
465
+ correct: false,
466
+ start: 558,
467
+ end: 626,
468
+ text: 'They spend most of their day eating and relaxing in the rainforests.',
469
+ },
470
+ {
471
+ correct: true,
472
+ start: 633,
473
+ end: 678,
474
+ text: 'They are the gentle giants of the rainforest.',
475
+ },
476
+ ],
477
+ text: '<table><tr><td style="border:solid 1px black;"><strong>Food Sources <br /><br /></strong><p class="kds-indent"> Gorillas eat mostly leaves, stems, and other plant parts found in the rainforests. &#160;Adult males eat about 45 pounds of food a day. &#160;Females eat only about 30 pounds of food. &#160;The troop will not stay in the same place every day. &#160;They move so they do not run out of food. &#160;Gorillas spend most of the day eating. </p><p class="kds-indent"> Over time, gorillas have developed a way of life to continue their survival.&#160; They spend most of their day eating and relaxing in the rainforests. &#160;They are the gentle giants of the rainforest. </p></td></tr></table>',
478
+ prompt: '<div>Click on the sentence that BEST describes the main idea of the passage.</div>',
479
+ };
480
+
481
+ // break markup
482
+ const E562770 = {
483
+ partialScoring: true,
484
+ tokens: [
485
+ {
486
+ correct: false,
487
+ start: 47,
488
+ end: 117,
489
+ text: 'Birdie, rest a little longer,<br />Till thy little wings are stronger.',
490
+ },
491
+ {
492
+ correct: true,
493
+ start: 123,
494
+ end: 178,
495
+ text: 'So she rests a little longer,<br />Then she flies away.',
496
+ },
497
+ {
498
+ correct: false,
499
+ start: 185,
500
+ end: 243,
501
+ text: 'What does little baby say,<br />In her bed at peep of day?',
502
+ },
503
+ {
504
+ correct: true,
505
+ start: 250,
506
+ end: 311,
507
+ text: 'Baby says, like little birdie,<br />Let me rise and fly away.',
508
+ },
509
+ {
510
+ correct: false,
511
+ start: 318,
512
+ end: 387,
513
+ text: 'Baby, sleep a little longer,<br />Till thy little limbs are stronger.',
514
+ },
515
+ {
516
+ correct: true,
517
+ start: 394,
518
+ end: 454,
519
+ text: 'If she sleeps a little longer,<br />Baby too shall fly away.',
520
+ },
521
+ ],
522
+ text: '<table><tr><td style="border:solid 1px black;">Birdie, rest a little longer,<br />Till thy little wings are stronger.<br />So she rests a little longer,<br />Then she flies away. <br />What does little baby say,<br />In her bed at peep of day? <br />Baby says, like little birdie,<br />Let me rise and fly away. <br />Baby, sleep a little longer,<br />Till thy little limbs are stronger. <br />If she sleeps a little longer,<br />Baby too shall fly away. </td></tr></table>',
523
+ prompt:
524
+ '<div>Read this conclusion about the text and the directions that follow.<br /><br /><table><tbody><tr><td style="border:solid 1px black;">When children eventually grow up and become independent, they seek to leave their parents\' homes and venture into the world alone.</td></tr></tbody></table><br />Click on the <em>three</em> sentences that <em>best</em> supports this conclusion.</div>',
525
+ };
526
+
527
+ // underline markup
528
+ const E264494 = {
529
+ partialScoring: true,
530
+ tokens: [
531
+ {
532
+ correct: false,
533
+ start: 111,
534
+ end: 115,
535
+ text: 'good',
536
+ },
537
+ {
538
+ correct: true,
539
+ start: 118,
540
+ end: 127,
541
+ text: 'wonderful',
542
+ },
543
+ {
544
+ correct: true,
545
+ start: 374,
546
+ end: 385,
547
+ text: 'celebration',
548
+ },
549
+ {
550
+ correct: false,
551
+ start: 388,
552
+ end: 393,
553
+ text: 'party',
554
+ },
555
+ ],
556
+ text: '<p>The community garden looks beautiful this summer! The roses in the flower section are blooming and their <u>good / wonderful</u> smell covers the whole area. The cucumbers and tomatoes are almost ripe and ready to eat. Our entire block is proud of what we did this year. It took many people and many hours of work to complete the garden, but we did it! We will have a <u>celebration / party</u> next week.</p>\n',
557
+ prompt:
558
+ '<p>A student is writing a story and wants to revise it to make the language clearer. For each underlined pair of words, select the word that is the most descriptive choice for the story.</p>',
559
+ rationale:
560
+ '<p>The best choice from each pair is&#160;<span class="word-callout">wonderful</span> and <span class="word-callout">celebration</span>.</p><p>Both choices are more specific and descriptive of the subject.</p><p></p>',
561
+ maxSelections: 2,
562
+ };
563
+
564
+ // list markup - ul list
565
+ const E225699 = {
566
+ partialScoring: true,
567
+ tokens: [
568
+ {
569
+ correct: false,
570
+ start: 45,
571
+ end: 84,
572
+ text: 'Solar panels are not 100% efficient yet',
573
+ },
574
+ {
575
+ correct: false,
576
+ start: 86,
577
+ end: 151,
578
+ text: 'Therefore, single solar panels are not enough to get the job done',
579
+ },
580
+ {
581
+ correct: false,
582
+ start: 153,
583
+ end: 233,
584
+ text: 'Anyone looking to utilize solar energy should be prepared to get multiple panels',
585
+ },
586
+ {
587
+ correct: false,
588
+ start: 273,
589
+ end: 340,
590
+ text: 'Unfortunately, pollution degrades solar panels over periods of time',
591
+ },
592
+ {
593
+ correct: false,
594
+ start: 384,
595
+ end: 454,
596
+ text: 'Like pollution, clouds also reduce the energy of the Sun&#8217;s rays.',
597
+ },
598
+ {
599
+ correct: false,
600
+ start: 455,
601
+ end: 506,
602
+ text: 'Solar energy is most useful when the Sun is shining',
603
+ },
604
+ {
605
+ correct: false,
606
+ start: 508,
607
+ end: 648,
608
+ text: 'During the nighttime hours (or in areas like Seattle, Washington, that do not normally have a lot of sunny days), solar equipment is useless',
609
+ },
610
+ {
611
+ correct: false,
612
+ start: 650,
613
+ end: 745,
614
+ text: 'Solar battery chargers may eliminate this concern, but it costs more money to purchase chargers',
615
+ },
616
+ {
617
+ correct: false,
618
+ start: 786,
619
+ end: 837,
620
+ text: 'A ton of solar panels on the exterior of your home?',
621
+ },
622
+ {
623
+ correct: false,
624
+ start: 838,
625
+ end: 847,
626
+ text: 'No thanks',
627
+ },
628
+ {
629
+ correct: false,
630
+ start: 849,
631
+ end: 916,
632
+ text: 'If you are opting for solar energy, there is no other way around it',
633
+ },
634
+ {
635
+ correct: false,
636
+ start: 918,
637
+ end: 1014,
638
+ text: 'Solar panels must be placed on the outside of your home in order to reflect the Sun&#8217;s rays',
639
+ },
640
+ {
641
+ correct: false,
642
+ start: 1016,
643
+ end: 1079,
644
+ text: 'Do this and you risk decreasing the overall beauty of your home',
645
+ },
646
+ {
647
+ correct: false,
648
+ start: 1149,
649
+ end: 1234,
650
+ text: 'The production of solar cells and the disposal of solar cells can&#8217;t be ignored.',
651
+ },
652
+ {
653
+ correct: true,
654
+ start: 1235,
655
+ end: 1367,
656
+ text: 'Chemicals from the production of solar panels can leak into the water supply, and gases may be released into the air from production',
657
+ },
658
+ {
659
+ correct: false,
660
+ start: 1369,
661
+ end: 1417,
662
+ text: 'That&#8217;s not good for the environment, is it',
663
+ },
664
+ {
665
+ correct: false,
666
+ start: 1417,
667
+ end: 1418,
668
+ text: '?',
669
+ },
670
+ ],
671
+ text: '<ul>\n\t<li><strong>Less is not more:</strong> Solar panels are not 100% efficient yet. Therefore, single solar panels are not enough to get the job done. Anyone looking to utilize solar energy should be prepared to get multiple panels.</li>\n\t<li><strong>Pollution:</strong> Unfortunately, pollution degrades solar panels over periods of time.</li>\n\t<li><strong>On cloud nine:</strong> Like pollution, clouds also reduce the energy of the Sun&#8217;s rays. Solar energy is most useful when the Sun is shining. During the nighttime hours (or in areas like Seattle, Washington, that do not normally have a lot of sunny days), solar equipment is useless. Solar battery chargers may eliminate this concern, but it costs more money to purchase chargers.</li>\n\t<li><strong>Appearance:</strong> A ton of solar panels on the exterior of your home? No thanks. If you are opting for solar energy, there is no other way around it. Solar panels must be placed on the outside of your home in order to reflect the Sun&#8217;s rays. Do this and you risk decreasing the overall beauty of your home.</li>\n\t<li><strong>Production and disposal of solar panels:</strong> The production of solar cells and the disposal of solar cells can&#8217;t be ignored. Chemicals from the production of solar panels can leak into the water supply, and gases may be released into the air from production. That&#8217;s not good for the environment, is it?</li>\n</ul>\n',
672
+ prompt:
673
+ '<p>The author of "Say Yes to Solar Energy" states, "What&#8217;s the best part about this? There are no harmful fuels or threats to the environment."</p><p>Select the sentence&#160;below from "Say No to Solar Energy" that directly opposes this claim.</p>',
674
+ rationale:
675
+ '<p>The highlighted sentence in the last section&#160;provides evidence that there may indeed be harmful side effects to the environment from the production of solar panels. The other sentences also describe drawbacks, but none of them directly oppose the claim&#160;of the first author.</p>',
676
+ maxSelections: 1,
677
+ };
678
+
679
+ // list markup - ol list
680
+ const E557261 = {
681
+ teacherInstructions: '',
682
+ partialScoring: true,
683
+ tokens: [
684
+ {
685
+ correct: false,
686
+ start: 103,
687
+ end: 192,
688
+ text: 'When some of the water in a lake or ocean rises up and moves across the top of the water.',
689
+ },
690
+ {
691
+ correct: true,
692
+ start: 216,
693
+ end: 278,
694
+ text: 'You move your hand or arm up and down or backward and forward.',
695
+ },
696
+ ],
697
+ text: '<table><tbody><tr><td style="border:solid 1px black;"><strong>Wave</strong> [weIv]<br>Noun<br><ol><li> When some of the water in a lake or ocean rises up and moves across the top of the water.</li></ol> Verb<ol><li> You move your hand or arm up and down or backward and forward.</li></ol></td></tr></tbody></table>',
698
+ prompt:
699
+ '<div>Click the BEST definition for the underlined word.<br />&#160;<table><tbody><tr><td style="border:solid 1px black;">I <span class="kds-underline">wave</span> every time I see one of my friends.</td></tr></tbody></table></div>',
700
+ rationale: '<p>You move your hand or arm up and down or backward and forward.</p>',
701
+ };
702
+
703
+ // text center
704
+ const E211874 = {
705
+ partialScoring: true,
706
+ tokens: [
707
+ {
708
+ correct: false,
709
+ start: 146,
710
+ end: 261,
711
+ text: 'Horizontal hydraulic fracturing, or &#8220;fracking,&#8221; is a drilling method commonly used in the United States',
712
+ },
713
+ {
714
+ correct: false,
715
+ start: 263,
716
+ end: 340,
717
+ text: 'It helps release shale gas from shale deposits deep below Earth&#8217;s crust',
718
+ },
719
+ {
720
+ correct: false,
721
+ start: 342,
722
+ end: 387,
723
+ text: 'High-powered drills push deep into the ground',
724
+ },
725
+ {
726
+ correct: false,
727
+ start: 389,
728
+ end: 493,
729
+ text: 'Just before they reach the thick layers of shale, the drills turn and dig horizontally through the shale',
730
+ },
731
+ {
732
+ correct: false,
733
+ start: 495,
734
+ end: 593,
735
+ text: 'After that, small underground explosions are created to fracture or make small cracks in the shale',
736
+ },
737
+ {
738
+ correct: false,
739
+ start: 595,
740
+ end: 695,
741
+ text: 'Then, large amounts of water and a 1-percent mixture of sand and chemicals are forced into the holes',
742
+ },
743
+ {
744
+ correct: false,
745
+ start: 697,
746
+ end: 763,
747
+ text: 'The sand and water keep the cracks open to release the natural gas',
748
+ },
749
+ {
750
+ correct: true,
751
+ start: 765,
752
+ end: 863,
753
+ text: 'Fracking has many benefits, and the United States should continue to use it to produce natural gas',
754
+ },
755
+ ],
756
+ text: '<p class="text-center"><span class="no-number"><strong>America&#8217;s Alternative Energy Source</strong></span></p>\n\n<p>&#160;&#160;&#160;&#160; Horizontal hydraulic fracturing, or &#8220;fracking,&#8221; is a drilling method commonly used in the United States. It helps release shale gas from shale deposits deep below Earth&#8217;s crust. High-powered drills push deep into the ground. Just before they reach the thick layers of shale, the drills turn and dig horizontally through the shale. After that, small underground explosions are created to fracture or make small cracks in the shale. Then, large amounts of water and a 1-percent mixture of sand and chemicals are forced into the holes. The sand and water keep the cracks open to release the natural gas. Fracking has many benefits, and the United States should continue to use it to produce natural gas.</p>\n',
757
+ prompt:
758
+ '<p>Select <span class="relative-emphasis">one</span> sentence from below that <span class="relative-emphasis">best</span> shows the author&#8217;s main purpose for writing the text.</p>',
759
+ rationale:
760
+ "<p>This sentence best reveals the author's purpose: to show that fracking has many benefits and should be continued.</p>",
761
+ maxSelections: 1,
762
+ };
763
+
764
+ const defaultModel = base({
765
+ // "id": "8a808081701d693801703174fb900421",
766
+ teacherInstructions: '',
767
+ partialScoring: true,
768
+ prompt:
769
+ '<p>Select the sentence from&#160;&#34;The Gymnast&#34; that <span class="relative-emphasis">best</span> represents the theme.</p>',
770
+ rationale:
771
+ '<p>The final sentence of the passage best exemplifies the theme of the short story because Natasha&#39;s practice and determination finally pays off.</p>',
772
+ tokens: [
773
+ {
774
+ text: 'She thought about what she had to do, struggling to rein in her wild, fearful thoughts.',
775
+ end: 90,
776
+ start: 3,
777
+ correct: false,
778
+ },
779
+ {
780
+ start: 449,
781
+ end: 585,
782
+ text: 'Just for a hair of a moment, Natasha wondered if she really wanted a perfect 10, so weary was she of trying for but never achieving one.',
783
+ correct: false,
784
+ },
785
+ {
786
+ end: 627,
787
+ correct: false,
788
+ text: "At last Natasha's moment arrived.",
789
+ start: 594,
790
+ },
791
+ {
792
+ end: 743,
793
+ text: "The faces of past giants of gymnastics swam before her mind's eye, now razor&#8211;sharp with fierce determination.",
794
+ correct: false,
795
+ start: 628,
796
+ },
797
+ {
798
+ text: 'Suddenly, the din of the gymnasium was silent to her.',
799
+ end: 997,
800
+ correct: false,
801
+ start: 944,
802
+ },
803
+ {
804
+ end: 1087,
805
+ start: 998,
806
+ correct: false,
807
+ text: 'Forcing all sound out of her mind, she focused on the gleaming balance beam ahead of her.',
808
+ },
809
+ {
810
+ correct: true,
811
+ start: 1088,
812
+ end: 1225,
813
+ text: 'Taking a deep breath, Natasha made her graceful, yet powerful approach, mounted the beam flawlessly, and...executed her first perfect 10.',
814
+ },
815
+ ],
816
+ // "element": "select-text",
817
+ text: "<p>She thought about what she had to do, struggling to rein in her wild, fearful thoughts. Coach Cummings always said that an undisciplined mind never scored a perfect 10. Natasha wanted to please her Coach, yet sometimes his approval wasn't as exciting as his anger. The gymnasts were unanimous about one thing: Coach Cummings's fits of disapproving rage were much more humorous to witness than his infrequent, backslapping moments of high praise. Just for a hair of a moment, Natasha wondered if she really wanted a perfect 10, so weary was she of trying for but never achieving one.</p>\n\n<p>At last Natasha's moment arrived. The faces of past giants of gymnastics swam before her mind's eye, now razor&#8211;sharp with fierce determination. \"I am talented. I am not afraid. I will make a perfect 10,\" she spoke aloud to herself, as she approached the mat, dusted her hands with chalk to prevent slippage, and returned to her starting point. Suddenly, the din of the gymnasium was silent to her. Forcing all sound out of her mind, she focused on the gleaming balance beam ahead of her. Taking a deep breath, Natasha made her graceful, yet powerful approach, mounted the beam flawlessly, and...executed her first perfect 10.</p>\n",
818
+ rubricEnabled: false,
819
+ });
820
+
821
+ exports.model = (id, element) => {
822
+ return Object.assign({}, { id, element }, defaultModel);
823
+ };