@nakafa/aksara-contracts 8.15.0 → 8.17.0

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 (43) hide show
  1. package/dist/visual/base.d.ts +785 -0
  2. package/dist/visual/base.js +13 -0
  3. package/dist/visual/biology/ecosystem.d.ts +425 -0
  4. package/dist/visual/biology/ecosystem.js +140 -0
  5. package/dist/visual/biology/respiration.d.ts +286 -0
  6. package/dist/visual/biology/respiration.js +97 -0
  7. package/dist/visual/biology.d.ts +11158 -205
  8. package/dist/visual/biology.js +104 -0
  9. package/dist/visual/catalog.d.ts +16 -41206
  10. package/dist/visual/catalog.js +8 -216
  11. package/dist/visual/chemistry/green.d.ts +282 -0
  12. package/dist/visual/chemistry/green.js +98 -0
  13. package/dist/visual/chemistry/groups.d.ts +276 -0
  14. package/dist/visual/chemistry/groups.js +85 -0
  15. package/dist/visual/chemistry/industry.d.ts +420 -0
  16. package/dist/visual/chemistry/industry.js +126 -0
  17. package/dist/visual/chemistry/materials.d.ts +416 -0
  18. package/dist/visual/chemistry/materials.js +116 -0
  19. package/dist/visual/chemistry/organic.d.ts +416 -0
  20. package/dist/visual/chemistry/organic.js +128 -0
  21. package/dist/visual/chemistry/polymer.d.ts +422 -0
  22. package/dist/visual/chemistry/polymer.js +126 -0
  23. package/dist/visual/chemistry/solution.d.ts +278 -0
  24. package/dist/visual/chemistry/solution.js +89 -0
  25. package/dist/visual/chemistry/stoichiometry.d.ts +287 -0
  26. package/dist/visual/chemistry/stoichiometry.js +83 -0
  27. package/dist/visual/chemistry.d.ts +8827 -0
  28. package/dist/visual/chemistry.js +50 -0
  29. package/dist/visual/mathematics/derivative.d.ts +425 -0
  30. package/dist/visual/mathematics/derivative.js +132 -0
  31. package/dist/visual/mathematics/integral.d.ts +428 -0
  32. package/dist/visual/mathematics/integral.js +146 -0
  33. package/dist/visual/mathematics/limit.d.ts +425 -0
  34. package/dist/visual/mathematics/limit.js +139 -0
  35. package/dist/visual/mathematics/linear.d.ts +425 -0
  36. package/dist/visual/mathematics/linear.js +140 -0
  37. package/dist/visual/mathematics/vector.d.ts +419 -0
  38. package/dist/visual/mathematics/vector.js +129 -0
  39. package/dist/visual/mathematics.d.ts +5148 -0
  40. package/dist/visual/mathematics.js +41 -0
  41. package/dist/visual/physics.d.ts +17875 -0
  42. package/dist/visual/physics.js +70 -0
  43. package/package.json +1 -1
@@ -0,0 +1,416 @@
1
+ import { Schema } from "effect";
2
+ import type { RichSlot } from "#contracts/visual/card";
3
+ /**
4
+ * Organic carbon-compound labs covering alkane/alkene isomerism, reflux
5
+ * esterification, and crude-oil fractional distillation.
6
+ */
7
+ export declare function organicVisuals<E>(rich: RichSlot<E>): {
8
+ AlkaneAlkeneIsomerLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
9
+ readonly description: RichSlot<E>;
10
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
11
+ readonly marks?: readonly [{
12
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
13
+ } | {
14
+ readonly attrs: {
15
+ readonly href: string;
16
+ };
17
+ readonly type: "link";
18
+ } | {
19
+ readonly attrs: {
20
+ readonly variant: "success" | "warning" | null;
21
+ };
22
+ readonly type: "highlight";
23
+ }, ...({
24
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
25
+ } | {
26
+ readonly attrs: {
27
+ readonly href: string;
28
+ };
29
+ readonly type: "link";
30
+ } | {
31
+ readonly attrs: {
32
+ readonly variant: "success" | "warning" | null;
33
+ };
34
+ readonly type: "highlight";
35
+ })[]];
36
+ readonly text: string;
37
+ readonly type: "text";
38
+ } | {
39
+ readonly attrs: {
40
+ readonly latex: string;
41
+ };
42
+ readonly marks?: readonly [{
43
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
44
+ } | {
45
+ readonly attrs: {
46
+ readonly href: string;
47
+ };
48
+ readonly type: "link";
49
+ } | {
50
+ readonly attrs: {
51
+ readonly variant: "success" | "warning" | null;
52
+ };
53
+ readonly type: "highlight";
54
+ }, ...({
55
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
56
+ } | {
57
+ readonly attrs: {
58
+ readonly href: string;
59
+ };
60
+ readonly type: "link";
61
+ } | {
62
+ readonly attrs: {
63
+ readonly variant: "success" | "warning" | null;
64
+ };
65
+ readonly type: "highlight";
66
+ })[]];
67
+ readonly type: "mathInline";
68
+ }, ...({
69
+ readonly marks?: readonly [{
70
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
71
+ } | {
72
+ readonly attrs: {
73
+ readonly href: string;
74
+ };
75
+ readonly type: "link";
76
+ } | {
77
+ readonly attrs: {
78
+ readonly variant: "success" | "warning" | null;
79
+ };
80
+ readonly type: "highlight";
81
+ }, ...({
82
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
83
+ } | {
84
+ readonly attrs: {
85
+ readonly href: string;
86
+ };
87
+ readonly type: "link";
88
+ } | {
89
+ readonly attrs: {
90
+ readonly variant: "success" | "warning" | null;
91
+ };
92
+ readonly type: "highlight";
93
+ })[]];
94
+ readonly text: string;
95
+ readonly type: "text";
96
+ } | {
97
+ readonly attrs: {
98
+ readonly latex: string;
99
+ };
100
+ readonly marks?: readonly [{
101
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
102
+ } | {
103
+ readonly attrs: {
104
+ readonly href: string;
105
+ };
106
+ readonly type: "link";
107
+ } | {
108
+ readonly attrs: {
109
+ readonly variant: "success" | "warning" | null;
110
+ };
111
+ readonly type: "highlight";
112
+ }, ...({
113
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
114
+ } | {
115
+ readonly attrs: {
116
+ readonly href: string;
117
+ };
118
+ readonly type: "link";
119
+ } | {
120
+ readonly attrs: {
121
+ readonly variant: "success" | "warning" | null;
122
+ };
123
+ readonly type: "highlight";
124
+ })[]];
125
+ readonly type: "mathInline";
126
+ })[]], E, never, never>>;
127
+ readonly title: RichSlot<E>;
128
+ readonly compounds: Schema.NonEmptyArray<Schema.Literals<readonly ["butane", "methylpropane", "but1ene", "but2ene"]>>;
129
+ readonly labels: Schema.Struct<{
130
+ readonly bromineTest: Schema.optionalKey<RichSlot<E>>;
131
+ readonly compound: Schema.Trimmed;
132
+ readonly compounds: Schema.$Record<Schema.Literals<readonly ["butane", "methylpropane", "but1ene", "but2ene"]>, Schema.optionalKey<Schema.Struct<{
133
+ readonly bromineTest: RichSlot<E>;
134
+ readonly formula: RichSlot<E>;
135
+ readonly name: Schema.Trimmed;
136
+ }>>>;
137
+ readonly formula: Schema.optionalKey<RichSlot<E>>;
138
+ readonly parts: Schema.$Record<Schema.Literals<readonly ["carbonAtom", "hydrogenAtom", "singleBond", "doubleBond", "bromineDrop"]>, Schema.Trimmed>;
139
+ readonly view: Schema.Trimmed;
140
+ }>;
141
+ }>, "figure">;
142
+ EsterificationRefluxLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
143
+ readonly description: RichSlot<E>;
144
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
145
+ readonly marks?: readonly [{
146
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
147
+ } | {
148
+ readonly attrs: {
149
+ readonly href: string;
150
+ };
151
+ readonly type: "link";
152
+ } | {
153
+ readonly attrs: {
154
+ readonly variant: "success" | "warning" | null;
155
+ };
156
+ readonly type: "highlight";
157
+ }, ...({
158
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
159
+ } | {
160
+ readonly attrs: {
161
+ readonly href: string;
162
+ };
163
+ readonly type: "link";
164
+ } | {
165
+ readonly attrs: {
166
+ readonly variant: "success" | "warning" | null;
167
+ };
168
+ readonly type: "highlight";
169
+ })[]];
170
+ readonly text: string;
171
+ readonly type: "text";
172
+ } | {
173
+ readonly attrs: {
174
+ readonly latex: string;
175
+ };
176
+ readonly marks?: readonly [{
177
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
178
+ } | {
179
+ readonly attrs: {
180
+ readonly href: string;
181
+ };
182
+ readonly type: "link";
183
+ } | {
184
+ readonly attrs: {
185
+ readonly variant: "success" | "warning" | null;
186
+ };
187
+ readonly type: "highlight";
188
+ }, ...({
189
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
190
+ } | {
191
+ readonly attrs: {
192
+ readonly href: string;
193
+ };
194
+ readonly type: "link";
195
+ } | {
196
+ readonly attrs: {
197
+ readonly variant: "success" | "warning" | null;
198
+ };
199
+ readonly type: "highlight";
200
+ })[]];
201
+ readonly type: "mathInline";
202
+ }, ...({
203
+ readonly marks?: readonly [{
204
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
205
+ } | {
206
+ readonly attrs: {
207
+ readonly href: string;
208
+ };
209
+ readonly type: "link";
210
+ } | {
211
+ readonly attrs: {
212
+ readonly variant: "success" | "warning" | null;
213
+ };
214
+ readonly type: "highlight";
215
+ }, ...({
216
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
217
+ } | {
218
+ readonly attrs: {
219
+ readonly href: string;
220
+ };
221
+ readonly type: "link";
222
+ } | {
223
+ readonly attrs: {
224
+ readonly variant: "success" | "warning" | null;
225
+ };
226
+ readonly type: "highlight";
227
+ })[]];
228
+ readonly text: string;
229
+ readonly type: "text";
230
+ } | {
231
+ readonly attrs: {
232
+ readonly latex: string;
233
+ };
234
+ readonly marks?: readonly [{
235
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
236
+ } | {
237
+ readonly attrs: {
238
+ readonly href: string;
239
+ };
240
+ readonly type: "link";
241
+ } | {
242
+ readonly attrs: {
243
+ readonly variant: "success" | "warning" | null;
244
+ };
245
+ readonly type: "highlight";
246
+ }, ...({
247
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
248
+ } | {
249
+ readonly attrs: {
250
+ readonly href: string;
251
+ };
252
+ readonly type: "link";
253
+ } | {
254
+ readonly attrs: {
255
+ readonly variant: "success" | "warning" | null;
256
+ };
257
+ readonly type: "highlight";
258
+ })[]];
259
+ readonly type: "mathInline";
260
+ })[]], E, never, never>>;
261
+ readonly title: RichSlot<E>;
262
+ readonly esters: Schema.NonEmptyArray<Schema.Literals<readonly ["ethylEthanoate", "propylEthanoate", "butylEthanoate"]>>;
263
+ readonly labels: Schema.Struct<{
264
+ readonly aroma: Schema.optionalKey<RichSlot<E>>;
265
+ readonly equation: Schema.optionalKey<RichSlot<E>>;
266
+ readonly ester: Schema.Trimmed;
267
+ readonly esters: Schema.$Record<Schema.Literals<readonly ["ethylEthanoate", "propylEthanoate", "butylEthanoate"]>, Schema.optionalKey<Schema.Struct<{
268
+ readonly aroma: RichSlot<E>;
269
+ readonly equation: RichSlot<E>;
270
+ readonly name: Schema.Trimmed;
271
+ }>>>;
272
+ readonly parts: Schema.$Record<Schema.Literals<readonly ["roundFlask", "condenser", "waterBath", "esterLayer", "catalystDrop"]>, Schema.Trimmed>;
273
+ readonly temperature: Schema.Trimmed;
274
+ readonly view: Schema.Trimmed;
275
+ }>;
276
+ readonly temperature: Schema.Struct<{
277
+ readonly max: Schema.Finite;
278
+ readonly min: Schema.Finite;
279
+ readonly value: Schema.Finite;
280
+ }>;
281
+ }>, "figure">;
282
+ FractionalDistillationLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
283
+ readonly description: RichSlot<E>;
284
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
285
+ readonly marks?: readonly [{
286
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
287
+ } | {
288
+ readonly attrs: {
289
+ readonly href: string;
290
+ };
291
+ readonly type: "link";
292
+ } | {
293
+ readonly attrs: {
294
+ readonly variant: "success" | "warning" | null;
295
+ };
296
+ readonly type: "highlight";
297
+ }, ...({
298
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
299
+ } | {
300
+ readonly attrs: {
301
+ readonly href: string;
302
+ };
303
+ readonly type: "link";
304
+ } | {
305
+ readonly attrs: {
306
+ readonly variant: "success" | "warning" | null;
307
+ };
308
+ readonly type: "highlight";
309
+ })[]];
310
+ readonly text: string;
311
+ readonly type: "text";
312
+ } | {
313
+ readonly attrs: {
314
+ readonly latex: string;
315
+ };
316
+ readonly marks?: readonly [{
317
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
318
+ } | {
319
+ readonly attrs: {
320
+ readonly href: string;
321
+ };
322
+ readonly type: "link";
323
+ } | {
324
+ readonly attrs: {
325
+ readonly variant: "success" | "warning" | null;
326
+ };
327
+ readonly type: "highlight";
328
+ }, ...({
329
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
330
+ } | {
331
+ readonly attrs: {
332
+ readonly href: string;
333
+ };
334
+ readonly type: "link";
335
+ } | {
336
+ readonly attrs: {
337
+ readonly variant: "success" | "warning" | null;
338
+ };
339
+ readonly type: "highlight";
340
+ })[]];
341
+ readonly type: "mathInline";
342
+ }, ...({
343
+ readonly marks?: readonly [{
344
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
345
+ } | {
346
+ readonly attrs: {
347
+ readonly href: string;
348
+ };
349
+ readonly type: "link";
350
+ } | {
351
+ readonly attrs: {
352
+ readonly variant: "success" | "warning" | null;
353
+ };
354
+ readonly type: "highlight";
355
+ }, ...({
356
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
357
+ } | {
358
+ readonly attrs: {
359
+ readonly href: string;
360
+ };
361
+ readonly type: "link";
362
+ } | {
363
+ readonly attrs: {
364
+ readonly variant: "success" | "warning" | null;
365
+ };
366
+ readonly type: "highlight";
367
+ })[]];
368
+ readonly text: string;
369
+ readonly type: "text";
370
+ } | {
371
+ readonly attrs: {
372
+ readonly latex: string;
373
+ };
374
+ readonly marks?: readonly [{
375
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
376
+ } | {
377
+ readonly attrs: {
378
+ readonly href: string;
379
+ };
380
+ readonly type: "link";
381
+ } | {
382
+ readonly attrs: {
383
+ readonly variant: "success" | "warning" | null;
384
+ };
385
+ readonly type: "highlight";
386
+ }, ...({
387
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
388
+ } | {
389
+ readonly attrs: {
390
+ readonly href: string;
391
+ };
392
+ readonly type: "link";
393
+ } | {
394
+ readonly attrs: {
395
+ readonly variant: "success" | "warning" | null;
396
+ };
397
+ readonly type: "highlight";
398
+ })[]];
399
+ readonly type: "mathInline";
400
+ })[]], E, never, never>>;
401
+ readonly title: RichSlot<E>;
402
+ readonly fractions: Schema.NonEmptyArray<Schema.Literals<readonly ["refineryGas", "petrol", "kerosene", "diesel", "bitumen"]>>;
403
+ readonly labels: Schema.Struct<{
404
+ readonly boilingRange: Schema.optionalKey<RichSlot<E>>;
405
+ readonly fraction: Schema.Trimmed;
406
+ readonly fractions: Schema.$Record<Schema.Literals<readonly ["refineryGas", "petrol", "kerosene", "diesel", "bitumen"]>, Schema.optionalKey<Schema.Struct<{
407
+ readonly boilingRange: RichSlot<E>;
408
+ readonly name: Schema.Trimmed;
409
+ readonly useNote: RichSlot<E>;
410
+ }>>>;
411
+ readonly parts: Schema.$Record<Schema.Literals<readonly ["furnace", "column", "bubbleCap", "vaporStream", "outletPipe"]>, Schema.Trimmed>;
412
+ readonly useNote: Schema.optionalKey<RichSlot<E>>;
413
+ readonly view: Schema.Trimmed;
414
+ }>;
415
+ }>, "figure">;
416
+ };
@@ -0,0 +1,128 @@
1
+ import { Schema } from "effect";
2
+ import { byIds, byPickedIds, cardFields, namesEach, TextSchema, } from "#contracts/visual/card";
3
+ import { answerAt, figure } from "#contracts/visual/entry";
4
+ const PositiveSchema = Schema.Finite.check(Schema.isGreaterThan(0));
5
+ const PositiveSliderSchema = Schema.Struct({
6
+ max: PositiveSchema,
7
+ min: PositiveSchema,
8
+ value: PositiveSchema,
9
+ }).check(Schema.makeFilter(({ max, min, value }) => min < max && min <= value && value <= max, {
10
+ message: "Expected a positive slider range whose minimum is below its maximum, with the starting value between them.",
11
+ }));
12
+ const ISOMER_COMPOUNDS = [
13
+ "butane",
14
+ "methylpropane",
15
+ "but1ene",
16
+ "but2ene",
17
+ ];
18
+ const ESTERS = ["ethylEthanoate", "propylEthanoate", "butylEthanoate"];
19
+ const PETROLEUM_FRACTIONS = [
20
+ "refineryGas",
21
+ "petrol",
22
+ "kerosene",
23
+ "diesel",
24
+ "bitumen",
25
+ ];
26
+ /**
27
+ * Props of `AlkaneAlkeneIsomerLab`: a 3D ball-and-stick hydrocarbon explorer
28
+ * comparing C4 structural isomers (butane, methylpropane, but-1-ene, but-2-ene)
29
+ * and the bromine-water unsaturation test. Formula and bromine-test readouts
30
+ * are optional answer state.
31
+ */
32
+ function alkaneAlkeneIsomerLab(rich) {
33
+ return figure(Schema.Struct({
34
+ ...cardFields(rich),
35
+ compounds: Schema.NonEmptyArray(Schema.Literals(ISOMER_COMPOUNDS)).check(Schema.isUnique()),
36
+ labels: Schema.Struct({
37
+ bromineTest: Schema.optionalKey(rich),
38
+ compound: TextSchema,
39
+ compounds: byPickedIds(ISOMER_COMPOUNDS, Schema.Struct({
40
+ bromineTest: rich,
41
+ formula: rich,
42
+ name: TextSchema,
43
+ })),
44
+ formula: Schema.optionalKey(rich),
45
+ parts: byIds([
46
+ "carbonAtom",
47
+ "hydrogenAtom",
48
+ "singleBond",
49
+ "doubleBond",
50
+ "bromineDrop",
51
+ ], TextSchema),
52
+ view: TextSchema,
53
+ }),
54
+ }).check(Schema.makeFilter(({ compounds, labels }) => namesEach(compounds, labels.compounds), {
55
+ message: "Expected a name, formula, and bromine-test note for every hydrocarbon isomer shown, and no other.",
56
+ })), answerAt(["labels", "bromineTest"], ["labels", "formula"]));
57
+ }
58
+ /**
59
+ * Props of `EsterificationRefluxLab`: a 3D reflux apparatus heating an alcohol
60
+ * and carboxylic acid with concentrated sulfuric acid catalyst to synthesise
61
+ * sweet-smelling esters. Aroma and reaction equation readouts are optional
62
+ * answer state.
63
+ */
64
+ function esterificationRefluxLab(rich) {
65
+ return figure(Schema.Struct({
66
+ ...cardFields(rich),
67
+ esters: Schema.NonEmptyArray(Schema.Literals(ESTERS)).check(Schema.isUnique()),
68
+ labels: Schema.Struct({
69
+ aroma: Schema.optionalKey(rich),
70
+ equation: Schema.optionalKey(rich),
71
+ ester: TextSchema,
72
+ esters: byPickedIds(ESTERS, Schema.Struct({
73
+ aroma: rich,
74
+ equation: rich,
75
+ name: TextSchema,
76
+ })),
77
+ parts: byIds([
78
+ "roundFlask",
79
+ "condenser",
80
+ "waterBath",
81
+ "esterLayer",
82
+ "catalystDrop",
83
+ ], TextSchema),
84
+ temperature: TextSchema,
85
+ view: TextSchema,
86
+ }),
87
+ temperature: PositiveSliderSchema,
88
+ }).check(Schema.makeFilter(({ esters, labels }) => namesEach(esters, labels.esters), {
89
+ message: "Expected a name, aroma, and equation for every ester synthesis shown, and no other.",
90
+ })), answerAt(["labels", "aroma"], ["labels", "equation"]));
91
+ }
92
+ /**
93
+ * Props of `FractionalDistillationLab`: a 3D crude-oil fractionating column
94
+ * with vertical temperature gradient separating refinery gas, petrol,
95
+ * kerosene, diesel, and bitumen by boiling point and carbon-chain length.
96
+ * Boiling range and fuel-use readouts are optional answer state.
97
+ */
98
+ function fractionalDistillationLab(rich) {
99
+ return figure(Schema.Struct({
100
+ ...cardFields(rich),
101
+ fractions: Schema.NonEmptyArray(Schema.Literals(PETROLEUM_FRACTIONS)).check(Schema.isUnique()),
102
+ labels: Schema.Struct({
103
+ boilingRange: Schema.optionalKey(rich),
104
+ fraction: TextSchema,
105
+ fractions: byPickedIds(PETROLEUM_FRACTIONS, Schema.Struct({
106
+ boilingRange: rich,
107
+ name: TextSchema,
108
+ useNote: rich,
109
+ })),
110
+ parts: byIds(["furnace", "column", "bubbleCap", "vaporStream", "outletPipe"], TextSchema),
111
+ useNote: Schema.optionalKey(rich),
112
+ view: TextSchema,
113
+ }),
114
+ }).check(Schema.makeFilter(({ fractions, labels }) => namesEach(fractions, labels.fractions), {
115
+ message: "Expected a name, boiling range, and use note for every petroleum fraction shown, and no other.",
116
+ })), answerAt(["labels", "boilingRange"], ["labels", "useNote"]));
117
+ }
118
+ /**
119
+ * Organic carbon-compound labs covering alkane/alkene isomerism, reflux
120
+ * esterification, and crude-oil fractional distillation.
121
+ */
122
+ export function organicVisuals(rich) {
123
+ return {
124
+ AlkaneAlkeneIsomerLab: alkaneAlkeneIsomerLab(rich),
125
+ EsterificationRefluxLab: esterificationRefluxLab(rich),
126
+ FractionalDistillationLab: fractionalDistillationLab(rich),
127
+ };
128
+ }