@doenet/doenetml-headless 0.7.27-dev.0 → 0.7.27-dev.869

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.
@@ -1,204 +1,11 @@
1
1
  import me$2, { isTree, dopri, getComponent } from "math-expressions";
2
2
  import { readFile } from "node:fs/promises";
3
3
  import { fileURLToPath } from "node:url";
4
- let wasm;
5
- let cachedUint8ArrayMemory0 = null;
6
- function getUint8ArrayMemory0() {
7
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
8
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
9
- }
10
- return cachedUint8ArrayMemory0;
11
- }
12
- let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
13
- cachedTextDecoder.decode();
14
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
15
- let numBytesDecoded = 0;
16
- function decodeText(ptr, len) {
17
- numBytesDecoded += len;
18
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
19
- cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
20
- cachedTextDecoder.decode();
21
- numBytesDecoded = len;
22
- }
23
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
24
- }
25
- function getStringFromWasm0(ptr, len) {
26
- ptr = ptr >>> 0;
27
- return decodeText(ptr, len);
28
- }
29
- function logError(f2, args) {
30
- try {
31
- return f2.apply(this, args);
32
- } catch (e4) {
33
- let error = (function() {
34
- try {
35
- return e4 instanceof Error ? `${e4.message}
36
-
37
- Stack:
38
- ${e4.stack}` : e4.toString();
39
- } catch (_2) {
40
- return "<failed to stringify thrown value>";
41
- }
42
- })();
43
- console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:", error);
44
- throw e4;
45
- }
46
- }
47
- let WASM_VECTOR_LEN = 0;
48
- const cachedTextEncoder = new TextEncoder();
49
- if (!("encodeInto" in cachedTextEncoder)) {
50
- cachedTextEncoder.encodeInto = function(arg, view) {
51
- const buf = cachedTextEncoder.encode(arg);
52
- view.set(buf);
53
- return {
54
- read: arg.length,
55
- written: buf.length
56
- };
57
- };
58
- }
59
- function passStringToWasm0(arg, malloc, realloc) {
60
- if (typeof arg !== "string") throw new Error(`expected a string argument, found ${typeof arg}`);
61
- if (realloc === void 0) {
62
- const buf = cachedTextEncoder.encode(arg);
63
- const ptr2 = malloc(buf.length, 1) >>> 0;
64
- getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
65
- WASM_VECTOR_LEN = buf.length;
66
- return ptr2;
67
- }
68
- let len = arg.length;
69
- let ptr = malloc(len, 1) >>> 0;
70
- const mem = getUint8ArrayMemory0();
71
- let offset = 0;
72
- for (; offset < len; offset++) {
73
- const code = arg.charCodeAt(offset);
74
- if (code > 127) break;
75
- mem[ptr + offset] = code;
76
- }
77
- if (offset !== len) {
78
- if (offset !== 0) {
79
- arg = arg.slice(offset);
80
- }
81
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
82
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
83
- const ret = cachedTextEncoder.encodeInto(arg, view);
84
- if (ret.read !== arg.length) throw new Error("failed to pass whole string");
85
- offset += ret.written;
86
- ptr = realloc(ptr, len, offset, 1) >>> 0;
87
- }
88
- WASM_VECTOR_LEN = offset;
89
- return ptr;
90
- }
91
- let cachedDataViewMemory0 = null;
92
- function getDataViewMemory0() {
93
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
94
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
95
- }
96
- return cachedDataViewMemory0;
97
- }
98
- function debugString(val) {
99
- const type = typeof val;
100
- if (type == "number" || type == "boolean" || val == null) {
101
- return `${val}`;
102
- }
103
- if (type == "string") {
104
- return `"${val}"`;
105
- }
106
- if (type == "symbol") {
107
- const description = val.description;
108
- if (description == null) {
109
- return "Symbol";
110
- } else {
111
- return `Symbol(${description})`;
112
- }
113
- }
114
- if (type == "function") {
115
- const name2 = val.name;
116
- if (typeof name2 == "string" && name2.length > 0) {
117
- return `Function(${name2})`;
118
- } else {
119
- return "Function";
120
- }
121
- }
122
- if (Array.isArray(val)) {
123
- const length = val.length;
124
- let debug = "[";
125
- if (length > 0) {
126
- debug += debugString(val[0]);
127
- }
128
- for (let i2 = 1; i2 < length; i2++) {
129
- debug += ", " + debugString(val[i2]);
130
- }
131
- debug += "]";
132
- return debug;
133
- }
134
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
135
- let className;
136
- if (builtInMatches && builtInMatches.length > 1) {
137
- className = builtInMatches[1];
138
- } else {
139
- return toString.call(val);
140
- }
141
- if (className == "Object") {
142
- try {
143
- return "Object(" + JSON.stringify(val) + ")";
144
- } catch (_2) {
145
- return "Object";
146
- }
147
- }
148
- if (val instanceof Error) {
149
- return `${val.name}: ${val.message}
150
- ${val.stack}`;
151
- }
152
- return className;
153
- }
154
- function _assertBoolean(n2) {
155
- if (typeof n2 !== "boolean") {
156
- throw new Error(`expected a boolean argument, found ${typeof n2}`);
157
- }
158
- }
159
- function isLikeNone(x2) {
160
- return x2 === void 0 || x2 === null;
161
- }
162
- function _assertNum(n2) {
163
- if (typeof n2 !== "number") throw new Error(`expected a number argument, found ${typeof n2}`);
164
- }
165
- function addToExternrefTable0(obj) {
166
- const idx = wasm.__externref_table_alloc();
167
- wasm.__wbindgen_externrefs.set(idx, obj);
168
- return idx;
169
- }
170
- function handleError(f2, args) {
171
- try {
172
- return f2.apply(this, args);
173
- } catch (e4) {
174
- const idx = addToExternrefTable0(e4);
175
- wasm.__wbindgen_exn_store(idx);
176
- }
177
- }
178
- function getArrayJsValueFromWasm0(ptr, len) {
179
- ptr = ptr >>> 0;
180
- const mem = getDataViewMemory0();
181
- const result = [];
182
- for (let i2 = ptr; i2 < ptr + 4 * len; i2 += 4) {
183
- result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i2, true)));
184
- }
185
- wasm.__externref_drop_slice(ptr, len);
186
- return result;
187
- }
188
- function takeFromExternrefTable0(idx) {
189
- const value = wasm.__wbindgen_externrefs.get(idx);
190
- wasm.__externref_table_dealloc(idx);
191
- return value;
192
- }
193
- const PublicDoenetMLCoreFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
194
- }, unregister: () => {
195
- } } : new FinalizationRegistry((ptr) => wasm.__wbg_publicdoenetmlcore_free(ptr >>> 0, 1));
196
4
  let PublicDoenetMLCore$1 = class PublicDoenetMLCore {
197
5
  constructor() {
198
6
  throw new Error("cannot invoke `new` directly");
199
7
  }
200
8
  static __wrap(ptr) {
201
- ptr = ptr >>> 0;
202
9
  const obj = Object.create(PublicDoenetMLCore.prototype);
203
10
  obj.__wbg_ptr = ptr;
204
11
  PublicDoenetMLCoreFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -221,85 +28,45 @@ let PublicDoenetMLCore$1 = class PublicDoenetMLCore {
221
28
  if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
222
29
  _assertNum(this.__wbg_ptr);
223
30
  const ret = wasm.publicdoenetmlcore__get_tests(this.__wbg_ptr);
224
- var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
31
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
225
32
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
226
33
  return v1;
227
34
  }
228
35
  /**
229
- * @param {DastRoot} dast
230
- * @param {string} _source
36
+ * @param {string} test_name
231
37
  */
232
- set_source(dast, _source) {
38
+ _run_test(test_name) {
233
39
  if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
234
40
  _assertNum(this.__wbg_ptr);
235
- const ptr0 = passStringToWasm0(_source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
41
+ const ptr0 = passStringToWasm0(test_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
236
42
  const len0 = WASM_VECTOR_LEN;
237
- const ret = wasm.publicdoenetmlcore_set_source(this.__wbg_ptr, dast, ptr0, len0);
238
- if (ret[1]) {
239
- throw takeFromExternrefTable0(ret[0]);
240
- }
241
- }
242
- /**
243
- * @returns {FlatDastRoot}
244
- */
245
- return_dast() {
246
- if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
247
- _assertNum(this.__wbg_ptr);
248
- const ret = wasm.publicdoenetmlcore_return_dast(this.__wbg_ptr);
249
- if (ret[2]) {
250
- throw takeFromExternrefTable0(ret[1]);
251
- }
252
- return takeFromExternrefTable0(ret[0]);
43
+ wasm.publicdoenetmlcore__run_test(this.__wbg_ptr, ptr0, len0);
253
44
  }
254
45
  /**
255
- * @param {PathToCheck} path
256
- * @param {number} origin
257
- * @param {boolean} skip_parent_search
258
- * @returns {RefResolution}
46
+ * @param {FlatFragment} flat_fragment
47
+ * @param {IndexResolution} index_resolution
259
48
  */
260
- resolve_path(path, origin, skip_parent_search) {
49
+ add_nodes_to_resolver(flat_fragment, index_resolution) {
261
50
  if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
262
51
  _assertNum(this.__wbg_ptr);
263
- _assertNum(origin);
264
- _assertBoolean(skip_parent_search);
265
- const ret = wasm.publicdoenetmlcore_resolve_path(this.__wbg_ptr, path, origin, skip_parent_search);
266
- if (ret[2]) {
267
- throw takeFromExternrefTable0(ret[1]);
268
- }
269
- return takeFromExternrefTable0(ret[0]);
52
+ wasm.publicdoenetmlcore_add_nodes_to_resolver(this.__wbg_ptr, flat_fragment, index_resolution);
270
53
  }
271
54
  /**
272
- * Save a copy of the resolver before the document loads (D57).
55
+ * @returns {RootNames}
273
56
  */
274
- save_resolver() {
57
+ calculate_root_names() {
275
58
  if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
276
59
  _assertNum(this.__wbg_ptr);
277
- wasm.publicdoenetmlcore_save_resolver(this.__wbg_ptr);
60
+ const ret = wasm.publicdoenetmlcore_calculate_root_names(this.__wbg_ptr);
61
+ return ret;
278
62
  }
279
63
  /**
280
- * Get the current value of the prop named `prop_name` (camelCase) of the
281
- * component at `component_idx`, calculating it if needed. Returns `undefined`
282
- * if there is no such component or prop.
283
- *
284
- * Intended for tests that read one value at a time rather than going through
285
- * the renderer; the read does not affect what the next `return_dast` reports.
286
- * A math value comes back as `{ math_object: <JSON of the math-expressions tree> }`,
287
- * and an empty value (such as the `title` of a section without one) as `null`.
288
- * @param {number} component_idx
289
- * @param {string} prop_name
290
- * @returns {any}
64
+ * @param {NodeList} node_list
291
65
  */
292
- get_prop_value(component_idx, prop_name) {
66
+ delete_nodes_from_resolver(node_list) {
293
67
  if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
294
68
  _assertNum(this.__wbg_ptr);
295
- _assertNum(component_idx);
296
- const ptr0 = passStringToWasm0(prop_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
297
- const len0 = WASM_VECTOR_LEN;
298
- const ret = wasm.publicdoenetmlcore_get_prop_value(this.__wbg_ptr, component_idx, ptr0, len0);
299
- if (ret[2]) {
300
- throw takeFromExternrefTable0(ret[1]);
301
- }
302
- return takeFromExternrefTable0(ret[0]);
69
+ wasm.publicdoenetmlcore_delete_nodes_from_resolver(this.__wbg_ptr, node_list);
303
70
  }
304
71
  /**
305
72
  * Send an action to DoenetMLCore. This is often in response to a user
@@ -319,28 +86,6 @@ let PublicDoenetMLCore$1 = class PublicDoenetMLCore {
319
86
  }
320
87
  return takeFromExternrefTable0(ret[0]);
321
88
  }
322
- /**
323
- * Put back the resolver saved by `save_resolver`, for a load that is
324
- * rebuilt. Returns whether one was saved.
325
- * @returns {boolean}
326
- */
327
- restore_resolver() {
328
- if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
329
- _assertNum(this.__wbg_ptr);
330
- const ret = wasm.publicdoenetmlcore_restore_resolver(this.__wbg_ptr);
331
- return ret !== 0;
332
- }
333
- /**
334
- * @param {boolean} report_all
335
- * @returns {RootNameChanges}
336
- */
337
- update_root_names(report_all) {
338
- if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
339
- _assertNum(this.__wbg_ptr);
340
- _assertBoolean(report_all);
341
- const ret = wasm.publicdoenetmlcore_update_root_names(this.__wbg_ptr, report_all);
342
- return ret;
343
- }
344
89
  /**
345
90
  * Get the type of the component at `component_idx`, or `undefined` if there is none.
346
91
  *
@@ -355,28 +100,55 @@ let PublicDoenetMLCore$1 = class PublicDoenetMLCore {
355
100
  const ret = wasm.publicdoenetmlcore_get_component_type(this.__wbg_ptr, component_idx);
356
101
  let v1;
357
102
  if (ret[0] !== 0) {
358
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
103
+ v1 = getStringFromWasm0(ret[0], ret[1]);
359
104
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
360
105
  }
361
106
  return v1;
362
107
  }
363
108
  /**
364
- * @returns {RootNames}
109
+ * Get the current value of the prop named `prop_name` (camelCase) of the
110
+ * component at `component_idx`, calculating it if needed. Returns `undefined`
111
+ * if there is no such component or prop.
112
+ *
113
+ * Intended for tests that read one value at a time rather than going through
114
+ * the renderer; the read does not affect what the next `return_dast` reports.
115
+ * A math value comes back as `{ math_object: <JSON of the math-expressions tree> }`,
116
+ * and an empty value (such as the `title` of a section without one) as `null`.
117
+ * @param {number} component_idx
118
+ * @param {string} prop_name
119
+ * @returns {any}
365
120
  */
366
- calculate_root_names() {
121
+ get_prop_value(component_idx, prop_name) {
367
122
  if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
368
123
  _assertNum(this.__wbg_ptr);
369
- const ret = wasm.publicdoenetmlcore_calculate_root_names(this.__wbg_ptr);
370
- return ret;
124
+ _assertNum(component_idx);
125
+ const val2 = +component_idx;
126
+ const ptr0 = passStringToWasm0(prop_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
127
+ const len0 = WASM_VECTOR_LEN;
128
+ const ret = wasm.publicdoenetmlcore_get_prop_value(this.__wbg_ptr, val2, ptr0, len0);
129
+ if (ret[2]) {
130
+ throw takeFromExternrefTable0(ret[1]);
131
+ }
132
+ return takeFromExternrefTable0(ret[0]);
371
133
  }
372
134
  /**
373
- * @param {FlatFragment} flat_fragment
374
- * @param {IndexResolution} index_resolution
135
+ * @returns {PublicDoenetMLCore}
375
136
  */
376
- add_nodes_to_resolver(flat_fragment, index_resolution) {
137
+ static new() {
138
+ const ret = wasm.publicdoenetmlcore_new();
139
+ return PublicDoenetMLCore.__wrap(ret);
140
+ }
141
+ /**
142
+ * Drop the data that is only needed while initializing a core
143
+ * (currently the document's DAST, which for large documents holds
144
+ * megabytes of WASM linear memory). Called by the worker once the
145
+ * JavaScript core has consumed the normalized DAST; calling
146
+ * `set_source` again repopulates the data.
147
+ */
148
+ release_initialization_data() {
377
149
  if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
378
150
  _assertNum(this.__wbg_ptr);
379
- wasm.publicdoenetmlcore_add_nodes_to_resolver(this.__wbg_ptr, flat_fragment, index_resolution);
151
+ wasm.publicdoenetmlcore_release_initialization_data(this.__wbg_ptr);
380
152
  }
381
153
  /**
382
154
  * Drop the resolver saved by `save_resolver`, once the load is over,
@@ -388,24 +160,53 @@ let PublicDoenetMLCore$1 = class PublicDoenetMLCore {
388
160
  wasm.publicdoenetmlcore_release_saved_resolver(this.__wbg_ptr);
389
161
  }
390
162
  /**
391
- * @param {NodeList} node_list
163
+ * @param {ContentVector} components
164
+ * @param {IndexResolution} index_resolution
392
165
  */
393
- delete_nodes_from_resolver(node_list) {
166
+ replace_index_resolutions_in_resolver(components, index_resolution) {
394
167
  if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
395
168
  _assertNum(this.__wbg_ptr);
396
- wasm.publicdoenetmlcore_delete_nodes_from_resolver(this.__wbg_ptr, node_list);
169
+ wasm.publicdoenetmlcore_replace_index_resolutions_in_resolver(this.__wbg_ptr, components, index_resolution);
397
170
  }
398
171
  /**
399
- * Drop the data that is only needed while initializing a core
400
- * (currently the document's DAST, which for large documents holds
401
- * megabytes of WASM linear memory). Called by the worker once the
402
- * JavaScript core has consumed the normalized DAST; calling
403
- * `set_source` again repopulates the data.
172
+ * @param {PathToCheck} path
173
+ * @param {number} origin
174
+ * @param {boolean} skip_parent_search
175
+ * @returns {RefResolution}
404
176
  */
405
- release_initialization_data() {
177
+ resolve_path(path, origin, skip_parent_search) {
406
178
  if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
407
179
  _assertNum(this.__wbg_ptr);
408
- wasm.publicdoenetmlcore_release_initialization_data(this.__wbg_ptr);
180
+ _assertNum(origin);
181
+ _assertBoolean(skip_parent_search);
182
+ const ret = wasm.publicdoenetmlcore_resolve_path(this.__wbg_ptr, path, origin, skip_parent_search);
183
+ if (ret[2]) {
184
+ throw takeFromExternrefTable0(ret[1]);
185
+ }
186
+ return takeFromExternrefTable0(ret[0]);
187
+ }
188
+ /**
189
+ * Put back the resolver saved by `save_resolver`, for a load that is
190
+ * rebuilt. Returns whether one was saved.
191
+ * @returns {boolean}
192
+ */
193
+ restore_resolver() {
194
+ if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
195
+ _assertNum(this.__wbg_ptr);
196
+ const ret = wasm.publicdoenetmlcore_restore_resolver(this.__wbg_ptr);
197
+ return ret !== 0;
198
+ }
199
+ /**
200
+ * @returns {FlatDastRoot}
201
+ */
202
+ return_dast() {
203
+ if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
204
+ _assertNum(this.__wbg_ptr);
205
+ const ret = wasm.publicdoenetmlcore_return_dast(this.__wbg_ptr);
206
+ if (ret[2]) {
207
+ throw takeFromExternrefTable0(ret[1]);
208
+ }
209
+ return takeFromExternrefTable0(ret[0]);
409
210
  }
410
211
  /**
411
212
  * @returns {NormalizedRoot}
@@ -420,52 +221,496 @@ let PublicDoenetMLCore$1 = class PublicDoenetMLCore {
420
221
  return takeFromExternrefTable0(ret[0]);
421
222
  }
422
223
  /**
423
- * @param {ContentVector} components
424
- * @param {IndexResolution} index_resolution
224
+ * Save a copy of the resolver before the document loads (D57).
425
225
  */
426
- replace_index_resolutions_in_resolver(components, index_resolution) {
226
+ save_resolver() {
427
227
  if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
428
228
  _assertNum(this.__wbg_ptr);
429
- wasm.publicdoenetmlcore_replace_index_resolutions_in_resolver(this.__wbg_ptr, components, index_resolution);
229
+ wasm.publicdoenetmlcore_save_resolver(this.__wbg_ptr);
430
230
  }
431
231
  /**
432
- * @returns {PublicDoenetMLCore}
232
+ * @param {string} flags
433
233
  */
434
- static new() {
435
- const ret = wasm.publicdoenetmlcore_new();
436
- return PublicDoenetMLCore.__wrap(ret);
234
+ set_flags(flags) {
235
+ if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
236
+ _assertNum(this.__wbg_ptr);
237
+ const ptr0 = passStringToWasm0(flags, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
238
+ const len0 = WASM_VECTOR_LEN;
239
+ wasm.publicdoenetmlcore_set_flags(this.__wbg_ptr, ptr0, len0);
437
240
  }
438
241
  /**
439
- * @param {string} test_name
242
+ * @param {DastRoot} dast
243
+ * @param {string} _source
440
244
  */
441
- _run_test(test_name) {
245
+ set_source(dast, _source) {
442
246
  if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
443
247
  _assertNum(this.__wbg_ptr);
444
- const ptr0 = passStringToWasm0(test_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
248
+ const ptr0 = passStringToWasm0(_source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
445
249
  const len0 = WASM_VECTOR_LEN;
446
- wasm.publicdoenetmlcore__run_test(this.__wbg_ptr, ptr0, len0);
250
+ const ret = wasm.publicdoenetmlcore_set_source(this.__wbg_ptr, dast, ptr0, len0);
251
+ if (ret[1]) {
252
+ throw takeFromExternrefTable0(ret[0]);
253
+ }
447
254
  }
448
255
  /**
449
- * @param {string} flags
256
+ * @param {boolean} report_all
257
+ * @returns {RootNameChanges}
450
258
  */
451
- set_flags(flags) {
259
+ update_root_names(report_all) {
452
260
  if (this.__wbg_ptr == 0) throw new Error("Attempt to use a moved value");
453
261
  _assertNum(this.__wbg_ptr);
454
- const ptr0 = passStringToWasm0(flags, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
455
- const len0 = WASM_VECTOR_LEN;
456
- wasm.publicdoenetmlcore_set_flags(this.__wbg_ptr, ptr0, len0);
262
+ _assertBoolean(report_all);
263
+ const ret = wasm.publicdoenetmlcore_update_root_names(this.__wbg_ptr, report_all);
264
+ return ret;
457
265
  }
458
266
  };
459
267
  if (Symbol.dispose) PublicDoenetMLCore$1.prototype[Symbol.dispose] = PublicDoenetMLCore$1.prototype.free;
460
- typeof FinalizationRegistry === "undefined" ? {} : new FinalizationRegistry((ptr) => wasm.__wbg__typeexports_free(ptr >>> 0, 1));
461
- const EXPECTED_RESPONSE_TYPES = /* @__PURE__ */ new Set(["basic", "cors", "default"]);
268
+ function __wbg_get_imports() {
269
+ const import0 = {
270
+ __proto__: null,
271
+ __wbg_Error_208446807d0d1e30: function() {
272
+ return logError(function(arg0, arg1) {
273
+ const ret = Error(getStringFromWasm0(arg0, arg1));
274
+ return ret;
275
+ }, arguments);
276
+ },
277
+ __wbg_Number_ff192a72a0dcdf6d: function() {
278
+ return logError(function(arg0) {
279
+ const ret = Number(arg0);
280
+ return ret;
281
+ }, arguments);
282
+ },
283
+ __wbg_String_8564e559799eccda: function() {
284
+ return logError(function(arg0, arg1) {
285
+ const ret = String(arg1);
286
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
287
+ const len1 = WASM_VECTOR_LEN;
288
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
289
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
290
+ }, arguments);
291
+ },
292
+ __wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
293
+ const ret = debugString(arg1);
294
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
295
+ const len1 = WASM_VECTOR_LEN;
296
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
297
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
298
+ },
299
+ __wbg___wbindgen_is_string_fc456fee5d3317de: function(arg0) {
300
+ const ret = typeof arg0 === "string";
301
+ _assertBoolean(ret);
302
+ return ret;
303
+ },
304
+ __wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
305
+ const ret = arg0 === void 0;
306
+ _assertBoolean(ret);
307
+ return ret;
308
+ },
309
+ __wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
310
+ const obj = arg1;
311
+ const ret = typeof obj === "number" ? obj : void 0;
312
+ if (!isLikeNone(ret)) {
313
+ _assertNum(ret);
314
+ }
315
+ getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
316
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
317
+ },
318
+ __wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
319
+ const obj = arg1;
320
+ const ret = typeof obj === "string" ? obj : void 0;
321
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
322
+ var len1 = WASM_VECTOR_LEN;
323
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
324
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
325
+ },
326
+ __wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
327
+ throw new Error(getStringFromWasm0(arg0, arg1));
328
+ },
329
+ __wbg_error_757e9472f8410341: function() {
330
+ return logError(function(arg0, arg1) {
331
+ let deferred0_0;
332
+ let deferred0_1;
333
+ try {
334
+ deferred0_0 = arg0;
335
+ deferred0_1 = arg1;
336
+ console.error(getStringFromWasm0(arg0, arg1));
337
+ } finally {
338
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
339
+ }
340
+ }, arguments);
341
+ },
342
+ __wbg_evalWithMathExpressionsInScope_32a10f102b835667: function() {
343
+ return handleError(function(arg0) {
344
+ const ret = __forDoenetWorker.evalWithMathExpressionsInScope(arg0);
345
+ return ret;
346
+ }, arguments);
347
+ },
348
+ __wbg_evaluateToNumber_8c64c9429c798d8b: function() {
349
+ return handleError(function(arg0) {
350
+ const ret = __forDoenetWorker.evaluateToNumber(arg0);
351
+ return ret;
352
+ }, arguments);
353
+ },
354
+ __wbg_log_ff86bbb34c295e21: function() {
355
+ return logError(function(arg0) {
356
+ console.log(arg0);
357
+ }, arguments);
358
+ },
359
+ __wbg_new_37eb45aaf5eeb820: function() {
360
+ return logError(function() {
361
+ const ret = new Array();
362
+ return ret;
363
+ }, arguments);
364
+ },
365
+ __wbg_new_7075786089b89c5e: function() {
366
+ return logError(function() {
367
+ const ret = /* @__PURE__ */ new Map();
368
+ return ret;
369
+ }, arguments);
370
+ },
371
+ __wbg_new_bb74001155cb8ca8: function() {
372
+ return logError(function() {
373
+ const ret = new Error();
374
+ return ret;
375
+ }, arguments);
376
+ },
377
+ __wbg_new_cd4348290afae586: function() {
378
+ return logError(function() {
379
+ const ret = new Object();
380
+ return ret;
381
+ }, arguments);
382
+ },
383
+ __wbg_normalizeMath_a7b09154415a1573: function() {
384
+ return handleError(function(arg0, arg1, arg2, arg3, arg4) {
385
+ const ret = __forDoenetWorker.normalizeMath(arg0, arg1, arg2, arg3, arg4);
386
+ return ret;
387
+ }, arguments);
388
+ },
389
+ __wbg_parseLatexIntoMath_cae3e033ab0ac8f2: function() {
390
+ return handleError(function(arg0, arg1, arg2) {
391
+ const ret = __forDoenetWorker.parseLatexIntoMath(arg0, arg1, arg2);
392
+ return ret;
393
+ }, arguments);
394
+ },
395
+ __wbg_parseTextIntoMath_d0a9cb3c6cb50a05: function() {
396
+ return handleError(function(arg0, arg1, arg2) {
397
+ const ret = __forDoenetWorker.parseTextIntoMath(arg0, arg1, arg2);
398
+ return ret;
399
+ }, arguments);
400
+ },
401
+ __wbg_parseTextIntoNumber_fc15a7804b0eaf6f: function() {
402
+ return handleError(function(arg0) {
403
+ const ret = __forDoenetWorker.parseTextIntoNumber(arg0);
404
+ return ret;
405
+ }, arguments);
406
+ },
407
+ __wbg_parse_c7e066186c6c86eb: function() {
408
+ return logError(function(arg0, arg1) {
409
+ let deferred0_0;
410
+ let deferred0_1;
411
+ try {
412
+ deferred0_0 = arg0;
413
+ deferred0_1 = arg1;
414
+ const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
415
+ return ret;
416
+ } finally {
417
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
418
+ }
419
+ }, arguments);
420
+ },
421
+ __wbg_push_c9f4893fc209f768: function() {
422
+ return logError(function(arg0, arg1) {
423
+ const ret = arg0.push(arg1);
424
+ _assertNum(ret);
425
+ return ret;
426
+ }, arguments);
427
+ },
428
+ __wbg_set_8282f7e0d2d01336: function() {
429
+ return logError(function(arg0, arg1, arg2) {
430
+ const ret = arg0.set(arg1, arg2);
431
+ return ret;
432
+ }, arguments);
433
+ },
434
+ __wbg_set_d2d33b52458e984a: function() {
435
+ return logError(function(arg0, arg1, arg2) {
436
+ arg0[arg1 >>> 0] = arg2;
437
+ }, arguments);
438
+ },
439
+ __wbg_set_e4b9a833d288759a: function() {
440
+ return logError(function(arg0, arg1, arg2) {
441
+ arg0[arg1] = arg2;
442
+ }, arguments);
443
+ },
444
+ __wbg_stack_575c4e0918581b9c: function() {
445
+ return logError(function(arg0, arg1) {
446
+ const ret = arg1.stack;
447
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
448
+ const len1 = WASM_VECTOR_LEN;
449
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
450
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
451
+ }, arguments);
452
+ },
453
+ __wbg_stringify_4c0abddfd9938268: function() {
454
+ return logError(function(arg0, arg1) {
455
+ const ret = JSON.stringify(arg1);
456
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
457
+ var len1 = WASM_VECTOR_LEN;
458
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
459
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
460
+ }, arguments);
461
+ },
462
+ __wbg_substituteIntoMath_b30d591abcf8045b: function() {
463
+ return handleError(function(arg0, arg1) {
464
+ const ret = __forDoenetWorker.substituteIntoMath(arg0, arg1);
465
+ return ret;
466
+ }, arguments);
467
+ },
468
+ __wbg_toLatex_d304339a4b45072e: function() {
469
+ return handleError(function(arg0, arg1, arg2, arg3) {
470
+ const ret = __forDoenetWorker.toLatex(arg0, arg1, arg2, arg3);
471
+ return ret;
472
+ }, arguments);
473
+ },
474
+ __wbg_toText_6fbdb98f692ea75f: function() {
475
+ return handleError(function(arg0, arg1, arg2, arg3) {
476
+ const ret = __forDoenetWorker.toText(arg0, arg1, arg2, arg3);
477
+ return ret;
478
+ }, arguments);
479
+ },
480
+ __wbindgen_generic_0000000000000001: function() {
481
+ return logError(function(arg0) {
482
+ const ret = arg0;
483
+ return ret;
484
+ }, arguments);
485
+ },
486
+ __wbindgen_generic_0000000000000002: function() {
487
+ return logError(function(arg0) {
488
+ const ret = arg0;
489
+ return ret;
490
+ }, arguments);
491
+ },
492
+ __wbindgen_generic_0000000000000003: function() {
493
+ return logError(function(arg0, arg1) {
494
+ const ret = getStringFromWasm0(arg0, arg1);
495
+ return ret;
496
+ }, arguments);
497
+ },
498
+ __wbindgen_generic_0000000000000004: function() {
499
+ return logError(function(arg0) {
500
+ const ret = BigInt.asUintN(64, arg0);
501
+ return ret;
502
+ }, arguments);
503
+ },
504
+ __wbindgen_init_externref_table: function() {
505
+ const table = wasm.__wbindgen_externrefs;
506
+ table.set(0, void 0);
507
+ table.set(1024, void 0);
508
+ table.set(1025, null);
509
+ table.set(1026, true);
510
+ table.set(1027, false);
511
+ }
512
+ };
513
+ return {
514
+ __proto__: null,
515
+ "./lib_doenetml_worker_bg.js": import0
516
+ };
517
+ }
518
+ const PublicDoenetMLCoreFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
519
+ }, unregister: () => {
520
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_publicdoenetmlcore_free(ptr, 1));
521
+ typeof FinalizationRegistry === "undefined" ? {} : new FinalizationRegistry((ptr) => wasm.__wbg__typeexports_free(ptr, 1));
522
+ function addToExternrefTable0(obj) {
523
+ const idx = wasm.__externref_table_alloc();
524
+ wasm.__wbindgen_externrefs.set(idx, obj);
525
+ return idx;
526
+ }
527
+ function _assertBoolean(n2) {
528
+ if (typeof n2 !== "boolean") {
529
+ throw new Error(`expected a boolean argument, found ${typeof n2}`);
530
+ }
531
+ }
532
+ function _assertNum(n2) {
533
+ if (typeof n2 !== "number") throw new Error(`expected a number argument, found ${typeof n2}`);
534
+ }
535
+ function debugString(val) {
536
+ switch (typeof val) {
537
+ // primitive types
538
+ case "number":
539
+ case "boolean":
540
+ case "undefined":
541
+ return `${val}`;
542
+ case "string":
543
+ return JSON.stringify(val);
544
+ case "bigint":
545
+ return `${val}n`;
546
+ case "symbol":
547
+ return val.description !== void 0 ? `Symbol(${val.description})` : "Symbol";
548
+ case "function":
549
+ return typeof val.name === "string" && val.name !== "" ? `Function(${val.name})` : "Function";
550
+ case "object": {
551
+ if (val === null) {
552
+ return "null";
553
+ }
554
+ if (Array.isArray(val)) {
555
+ return "[" + Array.from(val, debugString).join(", ") + "]";
556
+ }
557
+ if (val instanceof Error) {
558
+ return `${val.name}: ${val.message}
559
+ ${val.stack}`;
560
+ }
561
+ const toStringOutput = toString.call(val);
562
+ const className = /\[object ([^\]]+)\]/.exec(toStringOutput)?.[1];
563
+ if (className === void 0) {
564
+ return toStringOutput;
565
+ }
566
+ if (className === "Object") {
567
+ try {
568
+ return "Object(" + JSON.stringify(val) + ")";
569
+ } catch (_2) {
570
+ return "Object";
571
+ }
572
+ }
573
+ return className;
574
+ }
575
+ }
576
+ }
577
+ function getArrayJsValueFromWasm0(ptr, len) {
578
+ ptr = ptr >>> 0;
579
+ const mem = getDataViewMemory0();
580
+ const result = [];
581
+ for (let i2 = ptr; i2 < ptr + 4 * len; i2 += 4) {
582
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i2, true)));
583
+ }
584
+ wasm.__externref_drop_slice(ptr, len);
585
+ return result;
586
+ }
587
+ let cachedDataViewMemory0 = null;
588
+ function getDataViewMemory0() {
589
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
590
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
591
+ }
592
+ return cachedDataViewMemory0;
593
+ }
594
+ function getStringFromWasm0(ptr, len) {
595
+ ptr = ptr >>> 0;
596
+ return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
597
+ }
598
+ let cachedUint8ArrayMemory0 = null;
599
+ function getUint8ArrayMemory0() {
600
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
601
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
602
+ }
603
+ return cachedUint8ArrayMemory0;
604
+ }
605
+ function handleError(f2, args) {
606
+ try {
607
+ return f2.apply(this, args);
608
+ } catch (e4) {
609
+ const idx = addToExternrefTable0(e4);
610
+ wasm.__wbindgen_exn_store(idx);
611
+ }
612
+ }
613
+ function isLikeNone(x2) {
614
+ return x2 === void 0 || x2 === null;
615
+ }
616
+ function logError(f2, args) {
617
+ try {
618
+ return f2.apply(this, args);
619
+ } catch (e4) {
620
+ let error = (function() {
621
+ try {
622
+ return e4 instanceof Error ? `${e4.message}
623
+
624
+ Stack:
625
+ ${e4.stack}` : e4.toString();
626
+ } catch (_2) {
627
+ return "<failed to stringify thrown value>";
628
+ }
629
+ })();
630
+ console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:", error);
631
+ throw e4;
632
+ }
633
+ }
634
+ function passStringToWasm0(arg, malloc, realloc) {
635
+ if (typeof arg !== "string") throw new Error(`expected a string argument, found ${typeof arg}`);
636
+ if (realloc === void 0) {
637
+ const buf = cachedTextEncoder.encode(arg);
638
+ const ptr2 = malloc(buf.length, 1) >>> 0;
639
+ getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
640
+ WASM_VECTOR_LEN = buf.length;
641
+ return ptr2;
642
+ }
643
+ let len = arg.length;
644
+ let ptr = malloc(len, 1) >>> 0;
645
+ const mem = getUint8ArrayMemory0();
646
+ let offset = 0;
647
+ for (; offset < len; offset++) {
648
+ const code = arg.charCodeAt(offset);
649
+ if (code > 127) break;
650
+ mem[ptr + offset] = code;
651
+ }
652
+ if (offset !== len) {
653
+ if (offset !== 0) {
654
+ arg = arg.slice(offset);
655
+ }
656
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
657
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
658
+ const ret = cachedTextEncoder.encodeInto(arg, view);
659
+ if (ret.read !== arg.length) throw new Error("failed to pass whole string");
660
+ offset += ret.written;
661
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
662
+ }
663
+ WASM_VECTOR_LEN = offset;
664
+ return ptr;
665
+ }
666
+ function takeFromExternrefTable0(idx) {
667
+ const value = wasm.__wbindgen_externrefs.get(idx);
668
+ wasm.__externref_table_dealloc(idx);
669
+ return value;
670
+ }
671
+ let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true });
672
+ cachedTextDecoder.decode();
673
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
674
+ let numBytesDecoded = 0;
675
+ function decodeText(bytes) {
676
+ numBytesDecoded += bytes.length;
677
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
678
+ cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true });
679
+ cachedTextDecoder.decode();
680
+ numBytesDecoded = bytes.length;
681
+ }
682
+ return cachedTextDecoder.decode(bytes);
683
+ }
684
+ const cachedTextEncoder = new TextEncoder();
685
+ if (!("encodeInto" in cachedTextEncoder)) {
686
+ cachedTextEncoder.encodeInto = function(arg, view) {
687
+ const buf = cachedTextEncoder.encode(arg);
688
+ view.set(buf);
689
+ return {
690
+ read: arg.length,
691
+ written: buf.length
692
+ };
693
+ };
694
+ }
695
+ let WASM_VECTOR_LEN = 0;
696
+ let wasm;
697
+ function __wbg_finalize_init(instance, module) {
698
+ wasm = instance.exports;
699
+ cachedDataViewMemory0 = null;
700
+ cachedUint8ArrayMemory0 = null;
701
+ wasm.__wbindgen_start();
702
+ return wasm;
703
+ }
462
704
  async function __wbg_load(module, imports) {
463
705
  if (typeof Response === "function" && module instanceof Response) {
706
+ if (!module.ok) {
707
+ throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
708
+ }
464
709
  if (typeof WebAssembly.instantiateStreaming === "function") {
465
710
  try {
466
711
  return await WebAssembly.instantiateStreaming(module, imports);
467
712
  } catch (e4) {
468
- const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
713
+ const validResponse = expectedResponseType(module.type);
469
714
  if (validResponse && module.headers.get("Content-Type") !== "application/wasm") {
470
715
  console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e4);
471
716
  } else {
@@ -483,272 +728,36 @@ async function __wbg_load(module, imports) {
483
728
  return instance;
484
729
  }
485
730
  }
731
+ function expectedResponseType(type) {
732
+ switch (type) {
733
+ case "basic":
734
+ case "cors":
735
+ case "default":
736
+ return true;
737
+ }
738
+ return false;
739
+ }
486
740
  }
487
- function __wbg_get_imports() {
488
- const imports = {};
489
- imports.wbg = {};
490
- imports.wbg.__wbg_Error_e83987f665cf5504 = function() {
491
- return logError(function(arg0, arg1) {
492
- const ret = Error(getStringFromWasm0(arg0, arg1));
493
- return ret;
494
- }, arguments);
495
- };
496
- imports.wbg.__wbg_Number_bb48ca12f395cd08 = function() {
497
- return logError(function(arg0) {
498
- const ret = Number(arg0);
499
- return ret;
500
- }, arguments);
501
- };
502
- imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function() {
503
- return logError(function(arg0, arg1) {
504
- const ret = String(arg1);
505
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
506
- const len1 = WASM_VECTOR_LEN;
507
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
508
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
509
- }, arguments);
510
- };
511
- imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
512
- const ret = debugString(arg1);
513
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
514
- const len1 = WASM_VECTOR_LEN;
515
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
516
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
517
- };
518
- imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
519
- const ret = typeof arg0 === "string";
520
- _assertBoolean(ret);
521
- return ret;
522
- };
523
- imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
524
- const ret = arg0 === void 0;
525
- _assertBoolean(ret);
526
- return ret;
527
- };
528
- imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
529
- const obj = arg1;
530
- const ret = typeof obj === "number" ? obj : void 0;
531
- if (!isLikeNone(ret)) {
532
- _assertNum(ret);
533
- }
534
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
535
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
536
- };
537
- imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
538
- const obj = arg1;
539
- const ret = typeof obj === "string" ? obj : void 0;
540
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
541
- var len1 = WASM_VECTOR_LEN;
542
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
543
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
544
- };
545
- imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
546
- throw new Error(getStringFromWasm0(arg0, arg1));
547
- };
548
- imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function() {
549
- return logError(function(arg0, arg1) {
550
- let deferred0_0;
551
- let deferred0_1;
552
- try {
553
- deferred0_0 = arg0;
554
- deferred0_1 = arg1;
555
- console.error(getStringFromWasm0(arg0, arg1));
556
- } finally {
557
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
558
- }
559
- }, arguments);
560
- };
561
- imports.wbg.__wbg_evalWithMathExpressionsInScope_f2c3945dcae25bf5 = function() {
562
- return handleError(function(arg0) {
563
- const ret = __forDoenetWorker.evalWithMathExpressionsInScope(arg0);
564
- return ret;
565
- }, arguments);
566
- };
567
- imports.wbg.__wbg_evaluateToNumber_c77d80e34ff1a84c = function() {
568
- return handleError(function(arg0) {
569
- const ret = __forDoenetWorker.evaluateToNumber(arg0);
570
- return ret;
571
- }, arguments);
572
- };
573
- imports.wbg.__wbg_log_8cec76766b8c0e33 = function() {
574
- return logError(function(arg0) {
575
- console.log(arg0);
576
- }, arguments);
577
- };
578
- imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
579
- return logError(function() {
580
- const ret = new Object();
581
- return ret;
582
- }, arguments);
583
- };
584
- imports.wbg.__wbg_new_68651c719dcda04e = function() {
585
- return logError(function() {
586
- const ret = /* @__PURE__ */ new Map();
587
- return ret;
588
- }, arguments);
589
- };
590
- imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
591
- return logError(function() {
592
- const ret = new Error();
593
- return ret;
594
- }, arguments);
595
- };
596
- imports.wbg.__wbg_new_e17d9f43105b08be = function() {
597
- return logError(function() {
598
- const ret = new Array();
599
- return ret;
600
- }, arguments);
601
- };
602
- imports.wbg.__wbg_normalizeMath_77b2b3b844087fa1 = function() {
603
- return handleError(function(arg0, arg1, arg2, arg3, arg4) {
604
- const ret = __forDoenetWorker.normalizeMath(arg0, arg1, arg2, arg3, arg4);
605
- return ret;
606
- }, arguments);
607
- };
608
- imports.wbg.__wbg_parseLatexIntoMath_d4550352c562f243 = function() {
609
- return handleError(function(arg0, arg1, arg2) {
610
- const ret = __forDoenetWorker.parseLatexIntoMath(arg0, arg1, arg2);
611
- return ret;
612
- }, arguments);
613
- };
614
- imports.wbg.__wbg_parseTextIntoMath_0326c56175d8a61a = function() {
615
- return handleError(function(arg0, arg1, arg2) {
616
- const ret = __forDoenetWorker.parseTextIntoMath(arg0, arg1, arg2);
617
- return ret;
618
- }, arguments);
619
- };
620
- imports.wbg.__wbg_parseTextIntoNumber_7e82fc583ed9674a = function() {
621
- return handleError(function(arg0) {
622
- const ret = __forDoenetWorker.parseTextIntoNumber(arg0);
623
- return ret;
624
- }, arguments);
625
- };
626
- imports.wbg.__wbg_parse_41503dcdc1dc43f2 = function() {
627
- return logError(function(arg0, arg1) {
628
- let deferred0_0;
629
- let deferred0_1;
630
- try {
631
- deferred0_0 = arg0;
632
- deferred0_1 = arg1;
633
- const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
634
- return ret;
635
- } finally {
636
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
637
- }
638
- }, arguments);
639
- };
640
- imports.wbg.__wbg_push_df81a39d04db858c = function() {
641
- return logError(function(arg0, arg1) {
642
- const ret = arg0.push(arg1);
643
- _assertNum(ret);
644
- return ret;
645
- }, arguments);
646
- };
647
- imports.wbg.__wbg_set_3f1d0b984ed272ed = function() {
648
- return logError(function(arg0, arg1, arg2) {
649
- arg0[arg1] = arg2;
650
- }, arguments);
651
- };
652
- imports.wbg.__wbg_set_907fb406c34a251d = function() {
653
- return logError(function(arg0, arg1, arg2) {
654
- const ret = arg0.set(arg1, arg2);
655
- return ret;
656
- }, arguments);
657
- };
658
- imports.wbg.__wbg_set_c213c871859d6500 = function() {
659
- return logError(function(arg0, arg1, arg2) {
660
- arg0[arg1 >>> 0] = arg2;
661
- }, arguments);
662
- };
663
- imports.wbg.__wbg_stack_0ed75d68575b0f3c = function() {
664
- return logError(function(arg0, arg1) {
665
- const ret = arg1.stack;
666
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
667
- const len1 = WASM_VECTOR_LEN;
668
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
669
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
670
- }, arguments);
671
- };
672
- imports.wbg.__wbg_stringify_404baa47f2ce77aa = function() {
673
- return logError(function(arg0, arg1) {
674
- const ret = JSON.stringify(arg1);
675
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
676
- var len1 = WASM_VECTOR_LEN;
677
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
678
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
679
- }, arguments);
680
- };
681
- imports.wbg.__wbg_substituteIntoMath_9e581faa20674758 = function() {
682
- return handleError(function(arg0, arg1) {
683
- const ret = __forDoenetWorker.substituteIntoMath(arg0, arg1);
684
- return ret;
685
- }, arguments);
686
- };
687
- imports.wbg.__wbg_toLatex_2428de01e6384b9e = function() {
688
- return handleError(function(arg0, arg1, arg2, arg3) {
689
- const ret = __forDoenetWorker.toLatex(arg0, arg1, arg2, arg3);
690
- return ret;
691
- }, arguments);
692
- };
693
- imports.wbg.__wbg_toText_7c33e65b3711acbe = function() {
694
- return handleError(function(arg0, arg1, arg2, arg3) {
695
- const ret = __forDoenetWorker.toText(arg0, arg1, arg2, arg3);
696
- return ret;
697
- }, arguments);
698
- };
699
- imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function() {
700
- return logError(function(arg0, arg1) {
701
- const ret = getStringFromWasm0(arg0, arg1);
702
- return ret;
703
- }, arguments);
704
- };
705
- imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function() {
706
- return logError(function(arg0) {
707
- const ret = BigInt.asUintN(64, arg0);
708
- return ret;
709
- }, arguments);
710
- };
711
- imports.wbg.__wbindgen_cast_9ae0607507abb057 = function() {
712
- return logError(function(arg0) {
713
- const ret = arg0;
714
- return ret;
715
- }, arguments);
716
- };
717
- imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function() {
718
- return logError(function(arg0) {
719
- const ret = arg0;
720
- return ret;
721
- }, arguments);
722
- };
723
- imports.wbg.__wbindgen_init_externref_table = function() {
724
- const table = wasm.__wbindgen_externrefs;
725
- const offset = table.grow(4);
726
- table.set(0, void 0);
727
- table.set(offset + 0, void 0);
728
- table.set(offset + 1, null);
729
- table.set(offset + 2, true);
730
- table.set(offset + 3, false);
731
- };
732
- return imports;
733
- }
734
- function __wbg_finalize_init(instance, module) {
735
- wasm = instance.exports;
736
- __wbg_init.__wbindgen_wasm_module = module;
737
- cachedDataViewMemory0 = null;
738
- cachedUint8ArrayMemory0 = null;
739
- wasm.__wbindgen_start();
740
- return wasm;
741
- }
741
+ let __wbg_init_promise;
742
742
  async function __wbg_init(module_or_path) {
743
743
  if (wasm !== void 0) return wasm;
744
- if (typeof module_or_path !== "undefined") {
744
+ if (__wbg_init_promise === void 0) {
745
+ __wbg_init_promise = __wbg_init_once(module_or_path);
746
+ __wbg_init_promise.catch(() => {
747
+ __wbg_init_promise = void 0;
748
+ });
749
+ }
750
+ return __wbg_init_promise;
751
+ }
752
+ async function __wbg_init_once(module_or_path) {
753
+ if (module_or_path !== void 0) {
745
754
  if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
746
755
  ({ module_or_path } = module_or_path);
747
756
  } else {
748
757
  console.warn("using deprecated parameters for the initialization function; pass a single object instead");
749
758
  }
750
759
  }
751
- if (typeof module_or_path === "undefined") {
760
+ if (module_or_path === void 0) {
752
761
  module_or_path = new URL(
753
762
  /* @vite-ignore */
754
763
  "lib_doenetml_worker_bg.wasm",
@@ -760,7 +769,7 @@ async function __wbg_init(module_or_path) {
760
769
  module_or_path = fetch(module_or_path);
761
770
  }
762
771
  const { instance, module } = await __wbg_load(await module_or_path, imports);
763
- return __wbg_finalize_init(instance, module);
772
+ return __wbg_finalize_init(instance);
764
773
  }
765
774
  const OPENERS = "([{";
766
775
  const CLOSERS = ")]}";
@@ -1895,7 +1904,7 @@ class Indent {
1895
1904
  }
1896
1905
  const chrome = "# Viewer chrome: buttons, panel headers, and other UI the reader interacts\n# with. Rendered on the main thread and selected by `uiLocale`.\n#\n# Message ids are lower-kebab-case Fluent identifiers, optionally with a\n# single `.attribute` suffix (`submit-button`, `answer-status.correct`).\n#\n# This catalog is the source of truth for every other locale: `lint:i18n`\n# rejects a translation that defines a key missing here. Run\n# `npm run codegen -w @doenet/i18n` after editing.\n\n\n## Answer submission — the check-work button and the status it reports.\n\nanswer-checking = Checking...\nanswer-submitting = Submitting...\n\n# Announced to a screen reader while the submission is in flight. Separate\n# from the button's own text, which is abbreviated.\nanswer-checking-status = Checking answer\nanswer-submitting-status = Submitting answer\n\nanswer-correct = Correct\nanswer-incorrect = Incorrect\n\n# Shown instead of a correctness verdict when the activity withholds\n# correctness: the response was recorded, nothing is claimed about it.\nanswer-response-saved = Response Saved\n\n# Partial credit. `-credit` is used when repeated attempts reduce the credit\n# available, `-correct` when they do not, and `-short` on a button too narrow\n# for a word.\nanswer-percent-credit = { $percent }% Credit\nanswer-percent-correct = { $percent }% Correct\nanswer-percent-short = { $percent } %\n\nmax-credit-available = Max credit available: { $percent }%\n\n# Fluent formats `{ $count }` with `Intl.NumberFormat`, so a four-digit\n# attempt count renders as \"1,000\" where the hand-built string said \"1000\".\n# That is the one place English output is not byte-identical to what this\n# replaced, and grouping is the locale-correct rendering, so it stands.\nattempts-remaining =\n { $count ->\n [0] no attempts remaining\n [one] { $count } attempt remaining\n *[other] { $count } attempts remaining\n }\n\n# Appended to an input's accessible name once its response has been graded,\n# so a screen reader reports the verdict along with the field.\nvalidation-correct = (Correct)\nvalidation-incorrect = (Incorrect)\nvalidation-partially-correct = (Partially correct)\n\n# Tooltip on the badge that reports how many responses have been submitted to\n# one answer, shown only to a host that asked for it. `$answerId` is the\n# answer's authored name and is never translated.\nanswer-show-responses =\n { $count ->\n [one] Show { $count } response to { $answerId }\n *[other] Show { $count } responses to { $answerId }\n }\n\n\n## Disclosure panels\n\nfeedback-heading = Feedback\n\n# Follows a disclosure panel's own heading — \"Solution (click to open)\" — and\n# is shared by `<solution>`, `<hint>`, and a collapsible `<section>`. The whole\n# parenthetical is one message: where the word for open or close falls inside\n# it is the translator's business.\ncollapsible-click-to-open = (click to open)\ncollapsible-click-to-close = (click to close)\n\n# Placeholder inside a panel that has been opened before its contents have\n# arrived from the core. Shared by `<solution>` and a collapsible `<section>`.\ncollapsible-initializing = Initializing...\n\n# Tooltip on a footnote marker, naming what activating it will do.\nfootnote-show = Show footnote\nfootnote-hide = Hide footnote\n\n# Tooltip on the ⓘ affordance that reveals an input's description.\ndescription-more-information = more information\n\n\n## Controls\n\nslider-previous = Prev\nslider-next = Next\n\nkeyboard-open = Open Keyboard\nkeyboard-close = Close Keyboard\n\n# Accessible name of the button that drops one selected choice from an inline\n# `<choiceInput selectMultiple>`. The button itself is drawn as a bare cross,\n# so `$choice` — the choice's own text, which is never translated — is the\n# only thing that says which chip it belongs to.\nchoice-input-remove-choice = Remove { $choice }\n\n# Accessible names of a matrix input's size controls, whose visible labels are\n# the symbols `r-` `r+` `c-` `c+`.\nmatrix-remove-row = Remove row\nmatrix-add-row = Add row\nmatrix-remove-column = Remove column\nmatrix-add-column = Add column\n\n# Modes and actions of the subset-of-reals input's control strip. The button\n# that selects all of the reals is the symbol `R`, not a word, and stays in\n# place.\nsubset-add-remove-points = Add/Remove points\nsubset-toggle-points-intervals = Toggle points and intervals\nsubset-move-points = Move Points\nsubset-clear = Clear\n\n# Buttons that edit an orbital diagram: rows hold boxes, boxes hold up to\n# three spin arrows.\norbital-add-row = Add Row\norbital-remove-row = Remove Row\norbital-add-box = Add Box\norbital-remove-box = Remove Box\norbital-add-up-arrow = Add Up Arrow\norbital-add-down-arrow = Add Down Arrow\norbital-remove-arrow = Remove Arrow\n\n# Accessible name of the text field naming one row of an orbital diagram,\n# counting from 1.\norbital-row-label = Label for row { $row }\n\n# Labels the answer column of a pretzel exercise's grid.\npretzel-answer = Answer\n\n# Caption above the table a `<summaryStatistics>` renders. It used to name the\n# data column being summarized; the statistics now come from values written in\n# the document, so there is no column to name and the message takes no\n# placeable. The table's own headings (`mean`, `stdev`, `quartile1`, …) are the\n# statistic ids an author references, not prose, and stay in place.\n#\n# Every translation of the old message named the column inside the sentence —\n# «Resumen estadístico de { $column }» — so none of them survives the placeable\n# being dropped, and the key was removed from the other catalogs rather than\n# truncated to whatever precedes the connector. Those locales fall back to\n# English here until the caption is translated again.\nsummary-statistics-caption = Summary statistics\n\n\n## Math input\n\n# Accessible name of the popover that previews the typed expression, and of\n# the rendered expression inside it.\nmath-input-preview-region = math expression preview\nmath-input-preview = Preview\nmath-input-invalid-expression = Invalid expression:\n\n\n## Document status\n\n# Shown while the core is still starting up and nothing can be rendered yet.\nviewer-initializing = Initializing...\n\n\n## Errors\n\n# Prefixes an error message wherever one is shown in place of content: an\n# `<error>` the core reported, the error boundary's fallback, and the\n# placeholder left where a renderer chunk failed to load.\nerror-heading = Error\n\n# Follows the error's own message inside that box, saying where in the source\n# the error was found. $span selects the sentence — one line or a range of\n# them — as a key rather than a phrase, so a translation is free to reorder the\n# whole of it. $startLine and $endLine are line numbers, and arrive as text\n# rather than as numbers so that line 1234 is not grouped as \"1,234\": a line\n# number is an identifier, not a quantity.\nerror-found-at =\n { $span ->\n [line] Found on line { $startLine }.\n *[lines] Found on lines { $startLine }–{ $endLine }.\n }\n\n# Banner above a document that compiled with at least one error in it.\ndocument-contains-errors = This document contains errors!\n\n# Headings of the tooltip the editor shows over a squiggle, naming what kind\n# of diagnostic it is. `-information` and `-hint` are styled identically but\n# are two different words; `-hint` is unreachable today, since nothing Doenet\n# raises is an LSP hint, and is here so the set is complete.\ndiagnostic-heading-error = Error\ndiagnostic-heading-warning = Warning\ndiagnostic-heading-information = Info\ndiagnostic-heading-hint = Hint\n\n# Headings of the same tooltip over an accessibility diagnostic, which says\n# what kind of problem it is rather than how severe. Level 1 is a failure\n# against the WCAG AA success criteria; level 2 is Doenet's own advice, which\n# no standard requires.\naccessibility-heading-level-1 = WCAG AA Accessibility Violation\naccessibility-heading-level-2 = Accessibility alert\n\n# Shown in place of the document when a renderer threw and the error boundary\n# caught it.\nsomething-went-wrong = Something went wrong.\n\n# Shown in place of a single renderer whose code chunk never arrived.\nrenderer-load-failed = a renderer failed to load. Please reload the page.\n\n# Shown in place of the document when the core worker could not be started\n# after retries, rather than leaving the pane blank.\ncore-start-failed = This document could not be started. Please reload the page.\n\n# Replaces `core-start-failed` when several documents were starting at the\n# same time — counted across every same-origin tab, so not necessarily all on\n# the page the reader sees. Naming the contention keeps the reader from\n# concluding the service is broken.\ncore-start-failed-busy = This document could not be started. Several documents were starting at once, which can take longer on a slower device. Reloading the page may help once the other documents have finished.\n\n# Shown for a core-start failure the reader can still retry, next to the\n# button that does it (`core-start-retry`). It leaves out the advice to\n# reload that the messages above carry: the button is the cheaper action,\n# and a reader told to reload will reload the whole page — restarting every\n# other document on it, which is what produced the failure in the first\n# place on a page that was already busy.\ncore-start-failed-retry = This document could not be started.\n\n# The contended variant of `core-start-failed-retry`, named for the same\n# reason `core-start-failed-busy` is: a reader who is told that several\n# documents were starting at once has a reason to try again in a moment\n# rather than concluding the service is broken.\ncore-start-failed-busy-retry = This document could not be started. Several documents were starting at once, which can take longer on a slower device.\n\n# Shown when the document itself could not be built, rather than the core\n# failing to start for a transient reason. No retry is offered and no reload\n# is advised, because the failure is deterministic: the same source through\n# the same code fails the same way. The cause follows this sentence.\ncore-start-failed-document = This document could not be built. There is a problem in the document itself, so reloading will not help.\n\n# Shown in place of a document that was working until something the reader\n# did created a circular dependency in it, which stops the document. It says\n# nothing about reloading: a reload starts the document again, but the same\n# step leads to the same problem. The cause follows this sentence.\ndocument-stopped = This document stopped working because of a problem in the document itself.\n\n# Label of the button that starts a failed document over without reloading\n# the page. Offered once per document; a retry that fails too falls back to\n# `core-start-failed` / `core-start-failed-busy`, which advise the reload.\ncore-start-retry = Try again\n\n# Shown beside a document that is on screen and working, when the host\n# answered `SPLICE.getState` with an error and so the document started\n# without the reader's saved work (#1741). The host's own wording follows\n# this lead-in, so it says what was lost rather than why.\nsaved-state-unavailable = Your saved work could not be loaded.\n\n# Follows `saved-state-unavailable` when the reason is that the saved work was\n# written by an earlier version of Doenet, whose saved state this version\n# cannot read (#1944). The document starts fresh; credit already recorded is\n# unaffected, since it is stored separately from the work itself.\nsaved-state-from-older-version = It was saved by an earlier version of Doenet, so this activity has started fresh.\n";
1897
1906
  const content = '# Worker-generated content: style descriptions ("thick red line"), boolean\n# words, and other prose the core computes into the document. Selected by\n# `documentLocale`, which follows the content\'s language rather than the\n# reader\'s UI language.\n#\n# Message ids are lower-kebab-case Fluent identifiers, optionally with a\n# single `.attribute` suffix (`color.blue`, `noun.line-segment`).\n\n\n## Style vocabulary\n##\n## The words the style pipeline derives from a component\'s numeric and\n## enumerated style values. A word an author writes directly — `lineColorWord`,\n## `markerStyleWord`, and their siblings — passes through untranslated: the\n## author chose those words, and rewriting them would be a surprise. So does a\n## CSS named color asked for by name ("rebeccapurple"), which\n## `resolveColorWord` deliberately preserves.\n##\n## Every adjective here is handed `$gender`, the grammatical gender of the noun\n## it describes (see `noun-gender`), and `$role`, the syntactic position the\n## phrase it belongs to is going into. English has no agreement and ignores\n## both; a language that inflects selects on them.\n##\n## `$role` is one of:\n##\n## standalone the phrase stands on its own, which is where all but\n## the three below are\n## border-clause inside `style-border-clause`, behind its preposition\n## background-clause the background colour inside `style-text`, behind its\n## preposition\n## text-clause the text colour beside it, inside `style-text`\n##\n## The last three exist because those words are rendered in two places each —\n## once alone, as `borderStyleDescription`, `backgroundColor` and `textColor`\n## report them, and once embedded in a clause. A language that inflects for\n## case needs a different form in each, and no amount of `$gender` can say\n## which is wanted. Which case a position governs is the catalog\'s business:\n## `border-clause` is a dative in German, an instrumental in Russian and\n## Polish, and nothing at all in a language that does not inflect.\n\n# The canonical color families a color value resolves to.\ncolor =\n .black = black\n .white = white\n .gray = gray\n .red = red\n .orange = orange\n .yellow = yellow\n .green = green\n .cyan = cyan\n .blue = blue\n .purple = purple\n .pink = pink\n .brown = brown\n\n# Stroke widths. Only the extremes are named — a middling width is described by\n# its color alone.\nline-width =\n .thick = thick\n .thin = thin\n\n# Dash patterns. A solid stroke is described by its color alone.\nline-style =\n .dashed = dashed\n .dotted = dotted\n\n# Patterns a shape\'s interior can be filled with. A solid fill is described by\n# its color alone.\nfill-style =\n .horizontal = horizontal lines\n .vertical = vertical lines\n .diagonal = diagonal lines\n .backdiagonal = reverse diagonal lines\n .dots = dots\n .diamonds = diamonds\n\n# The things being described. The shapes a point can be drawn as ("square",\n# "cross") are nouns too: a point\'s description names its marker shape rather\n# than always saying "point".\nnoun =\n .line = line\n .line-segment = line segment\n .ray = ray\n .vector = vector\n .curve = curve\n .function = function\n .slope-field = slope field\n .vector-field = vector field\n .parabola = parabola\n .polyline = polyline\n .polygon = polygon\n .triangle = triangle\n .rectangle = rectangle\n .circle = circle\n .region = region\n .point = point\n .square = square\n .diamond = diamond\n .cross = cross\n .plus = plus\n\n# A regular polygon names its side count, so it is a message of its own rather\n# than one of `noun`\'s attributes.\n#\n# `$part` splits the noun where a language needs it split: `head` is the word\n# the adjectives attach to, `tail` a complement that follows them. English\n# folds the side count into the head and has no tail; Spanish says "polígono\n# regular" and puts "de 5 lados" after the adjectives, so that they stay beside\n# the noun they agree with. `style-with-noun` and `style-filled-with-noun`\n# place the two halves.\n#\n# `$numSides` is a real number, so it is formatted by the locale\'s own rules —\n# a 1000-gon reads "1,000-sided" here and "de 1000 lados" in Spanish. That is\n# the number-formatting policy in the README, and the one place a description\n# is not character-for-character what the pre-catalog code produced.\nnoun-regular-polygon =\n { $part ->\n [tail] { "" }\n *[head] { $numSides }-sided regular polygon\n }\n\n# The grammatical gender of the noun being described, passed to every adjective\n# describing it so that translations can agree. English has no grammatical\n# gender, so every noun answers the same and the answer goes unused.\n#\n# `$noun` is one of `noun`\'s attribute names, `regular-polygon` for the shape\n# `noun-regular-polygon` names, or the head of a phrase the description builds\n# without naming it as a noun: `border`, `fill`, `text`, or `background`. A\n# word this message does not list falls to its default gender — which is also\n# what an author\'s own `markerStyleWord` gets, since the catalog has never seen\n# it.\nnoun-gender = neuter\n\n\n## Style composition\n##\n## `$parts` names which pieces the style actually supplies, so that a\n## translation can order and inflect each combination on its own terms instead\n## of substituting into a fixed English frame. An absent piece is a different\n## branch, never an empty placeable.\n\n# The adjectives describing a stroke: its width, its dash pattern, and its\n# color. Also describes a shape\'s border, where the color is dropped when it\n# matches the fill it surrounds.\nstyle-stroke =\n { $parts ->\n [width-style-color] { $width } { $lineStyle } { $color }\n [width-color] { $width } { $color }\n [style-color] { $lineStyle } { $color }\n [width-style] { $width } { $lineStyle }\n [width] { $width }\n [style] { $lineStyle }\n *[color] { $color }\n }\n\n# A style description followed by what it describes: "thick red line".\n#\n# `$nounTail` is the noun\'s trailing complement, for the nouns whose\n# translation splits around the adjectives (see `noun-regular-polygon`).\n# English has none today, so it only ever selects `noun` for itself — the other\n# variant is still what a partly-translated locale falls back to, and dropping\n# it would drop that locale\'s side count.\n#\n# The phrase it builds is never governed by anything, so its `$role` is always\n# `standalone`.\nstyle-with-noun =\n { $parts ->\n [noun-tail] { $description } { $noun } { $nounTail }\n *[noun] { $description } { $noun }\n }\n\n# The word marking a shape as filled.\n#\n# A key of its own, looked up by the code and handed to the messages below as\n# `$filled`, rather than literal text inside them: a language that inflects it\n# has to agree it with the shape. Referencing it from those messages would not\n# do — a term reference (`{ -filled }`) gets an empty scope and never sees\n# `$gender`, and a message reference resolves only inside its own bundle, so a\n# locale that translated `style-filled` but not this word would render the\n# reference literally instead of falling back to English.\n#\n# Said only of the shape itself, so its `$role` is always `standalone`.\nstyle-filled-word = filled\n\n# A filled shape, and the pattern its interior is drawn with, if any.\nstyle-filled =\n { $parts ->\n [pattern] { $filled } { $color } with { $pattern }\n *[plain] { $filled } { $color }\n }\n\n# The same, naming the shape: "filled blue circle with diamonds".\n#\n# The `-tail` variants carry the noun\'s trailing complement, as\n# `style-with-noun` does.\nstyle-filled-with-noun =\n { $parts ->\n [pattern] { $filled } { $color } { $noun } with { $pattern }\n [plain-tail] { $filled } { $color } { $noun } { $nounTail }\n [pattern-tail] { $filled } { $color } { $noun } { $nounTail } with { $pattern }\n *[plain] { $filled } { $color } { $noun }\n }\n\n# The border clause appended to a filled shape: "with a thick red border".\n#\n# `$parts` carries two distinctions English cares about: whether a fill pattern\n# was already mentioned, which makes this a further clause ("and") rather than\n# the first ("with"), and whether the surrounding description named the shape,\n# which is where English wants an article.\nstyle-border-clause =\n { $parts ->\n [with-article] with a { $border } border\n [and] and { $border } border\n [and-article] and a { $border } border\n *[with] with { $border } border\n }\n\n# How a shape\'s interior is filled, on its own: "blue diamonds".\nstyle-fill =\n { $parts ->\n [pattern] { $color } { $pattern }\n *[plain] { $color }\n }\n\nstyle-unfilled = unfilled\n\n# How a piece of text is styled: its color, and the background behind it.\n#\n# The only composition message with no `$role`: its two words sit in two\n# different positions, so they arrive already inflected for `text-clause` and\n# `background-clause` respectively and no one token would describe them both.\nstyle-text =\n { $parts ->\n [background] { $color } with a { $background } background\n *[plain] { $color }\n }\n\n# What `backgroundColor` answers when nothing is drawn behind the text.\nstyle-background-none = none\n\n\n## Boolean words\n##\n## What a `<boolean>` or `<booleanInput>` *displays*.\n##\n## Not what it parses or serializes. `true` and `false` are DoenetML syntax —\n## an author writes them in the source, `<award>` compares against them, and\n## saved state stores them — so they stay English everywhere, in every\n## language, exactly as `<` stays `<`. Only the word the reader sees moves.\n##\n## The consequence is that a value has two spellings in a translated document,\n## and both have to be accepted where one is read back in: see\n## `booleanFromWord` in the worker.\n\nboolean-true = true\nboolean-false = false\n\n\n## Answer buttons\n##\n## The default text on an answer\'s submit button. Only the *default* is\n## translated: an author who writes `submitLabel="Ready?"` gets "Ready?" in\n## every locale, because they chose those words for their document and a\n## translation of it is not Doenet\'s to make.\n\n# Shown when the answer will report whether the response was right.\nanswer-submit-label = Check Work\n\n# Shown when it will not — the reader submits, and is told nothing more.\nanswer-submit-label-no-correctness = Submit Response\n\n\n## Sectional blocks\n##\n## The word a sectional block calls itself, which the reader sees in its\n## heading and on a `<solution>`\'s reveal control. Keyed by the element the\n## author writes, so `<subsection>` and `<subsubsection>` share `.section` —\n## they are all called a section.\n##\n## An author who writes `renameTo` has named the block themselves, and that\n## name passes through in every language.\n\nsection-name =\n .activity = Activity\n .aside = Aside\n .cascade = Cascade\n .definition = Definition\n .example = Example\n .exercise = Exercise\n .exercises = Exercises\n .given-answer = Answer\n .note = Note\n .objectives = Objectives\n .paragraphs = Paragraphs\n .part = Part\n .problem = Problem\n .problems = Problems\n .proof = Proof\n .question = Question\n .section = Section\n .solution = Solution\n .task = Task\n .theorem = Theorem\n\n# The heading a section builds for itself: "Example 2", "Section 1.3: Limits".\n#\n# `$parts` names which pieces are present and whether a `<title>` follows, so\n# that a translation orders and punctuates each combination on its own terms\n# rather than substituting into an English frame. English puts the word first\n# and separates a title with a colon — or with a period when the heading is a\n# bare number — and none of that is a given.\n#\n# The `-title` variants end in the separator, because what follows them is the\n# title child, rendered separately. Fluent trims trailing whitespace, so the\n# separator is written as a string literal to keep its space.\n#\n# `$sectionNumber` arrives as text ("2", "1.3") rather than as a number: it is\n# an identifier made of counters, and it is not the catalog\'s to reformat.\nsection-title-prefix =\n { $parts ->\n [name] { $sectionName }\n [number] { $sectionNumber }\n [name-title] { $sectionName }{ ": " }\n [number-title] { $sectionNumber }{ ". " }\n [name-number-title] { $sectionName } { $sectionNumber }{ ": " }\n *[name-number] { $sectionName } { $sectionNumber }\n }\n\n# The heading a `<hint>` shows when the author gave it no `<title>`.\nhint-title = Hint\n\n\n## Tables and figures\n##\n## The name a `<table>` or `<figure>` gives itself, which the renderer sets in\n## bold at the head of the title or caption: "Table 2", "Figure 3". An\n## unnumbered one is named by the bare word.\n##\n## The word and the number are one message rather than a word the code\n## concatenates a number onto, so that a language which orders or punctuates\n## them differently can say so.\n##\n## `$enumeration` arrives as text rather than as a number: it identifies the\n## table, so the thousandth one is "Table 1000" and not "Table 1,000".\n##\n## The `-title` and `-caption` branches end in the separator joining the name\n## to the authored title or caption, which the renderer used to write as a\n## literal `": "` of its own. That child is arbitrary marked-up content\n## rendered after this string rather than an argument passed into it, so where\n## it sits is the one thing a translation cannot reorder — the same shape\n## `section-title-prefix` has.\n\n## The name a `<chart>` gives a series that the author did not label.\n##\n## This is not decoration: it is the text a screen reader announces on the\n## level between the chart and its marks, so a reader stopping there is told\n## which group they have reached. A bare number would be indistinguishable\n## from a value or a category, which are what the levels either side of it\n## announce.\n##\n## `$position` arrives as text rather than as a number, for the reason\n## `table-name`\'s `$enumeration` does: it identifies the series, so the\n## thousandth one is "series 1000" and not "series 1,000".\nchart-unlabeled-series =\n series { $position }\n\ntable-name =\n { $parts ->\n [numbered] Table { $enumeration }\n [numbered-title] Table { $enumeration }{ ": " }\n [unnumbered-title] Table{ ": " }\n *[unnumbered] Table\n }\n\nfigure-name =\n { $parts ->\n [numbered] Figure { $enumeration }\n [numbered-caption] Figure { $enumeration }{ ": " }\n [unnumbered-caption] Figure{ ": " }\n *[unnumbered] Figure\n }\n\n\n## Paginator controls\n##\n## The strip of controls that steps through a `<paginator>`\'s pages. All three\n## words are author-overridable attributes, so only the default is translated.\n\npaginator-previous = Previous\npaginator-next = Next\npaginator-page = Page\n\n# The status between the two buttons: "Page 3 of 5".\n#\n# Composed in the worker rather than in the renderer so that the whole of it is\n# in one language: `$pageLabel` is the `pageLabel` attribute, which an author\n# may have written themselves, and the words joining it to the counts have to\n# sit beside it in the same tongue.\n#\n# The two counts arrive as text, for the same reason `$enumeration` does above.\npaginator-page-status = { $pageLabel } { $currentPage } of { $numPages }\n\n\n## Piecewise functions\n##\n## `<piecewiseFunction>` renders each branch\'s domain as mathematics and writes\n## these three words around it: "if 1 < x < 2 or 4 < x < 5", and "otherwise"\n## for the branch that catches what the others leave. The inequalities are\n## notation and stay as they are; these are prose, and are read aloud as prose.\n##\n## `or` is the only conjunction the core composes into content. Everything else\n## that reads as "a, b, and c" is a diagnostic, and those are joined by\n## `Intl.ListFormat` at the moment the reader\'s language is known rather than\n## by a catalog word (see `DiagnosticListArg`).\n\npiecewise-condition-or = or\n\n# Introduces the domain a branch applies on; the mathematics follows it.\npiecewise-condition-if = if\n\n# The last branch, which applies wherever none of the earlier ones do.\npiecewise-condition-otherwise = otherwise\n\n\n## Chemistry\n##\n## The names the chemistry components generate. Symbols (`H`, `Fe`), formulas,\n## and anything an author\'s `<award>` compares against by value stay as they\n## are; only what is displayed as prose is here.\n##\n## Element names are keyed by symbol, which is the identifier the atom database\n## is read through and is itself never translated.\n##\n## An element\'s periodic group, its phase at STP and its metal category are not\n## here. They are enumerated values an author\'s `<award>` compares against —\n## `$atom.groupName = Noble Gas` — and translating one would break that\n## comparison the moment a document declared a language (#1577).\n\nelement-name =\n .h = Hydrogen\n .he = Helium\n .li = Lithium\n .be = Beryllium\n .b = Boron\n .c = Carbon\n .n = Nitrogen\n .o = Oxygen\n .f = Fluorine\n .ne = Neon\n .na = Sodium\n .mg = Magnesium\n .al = Aluminum\n .si = Silicon\n .p = Phosphorus\n .s = Sulfur\n .cl = Chlorine\n .ar = Argon\n .k = Potassium\n .ca = Calcium\n .sc = Scandium\n .ti = Titanium\n .v = Vanadium\n .cr = Chromium\n .mn = Manganese\n .fe = Iron\n .co = Cobalt\n .ni = Nickel\n .cu = Copper\n .zn = Zinc\n .ga = Gallium\n .ge = Germanium\n .as = Arsenic\n .se = Selenium\n .br = Bromine\n .kr = Krypton\n .rb = Rubidium\n .sr = Strontium\n .y = Yttrium\n .zr = Zirconium\n .nb = Niobium\n .mo = Molybdenum\n .tc = Technetium\n .ru = Ruthenium\n .rh = Rhodium\n .pd = Palladium\n .ag = Silver\n .cd = Cadmium\n .in = Indium\n .sn = Tin\n .sb = Antimony\n .te = Tellurium\n .i = Iodine\n .xe = Xenon\n .cs = Cesium\n .ba = Barium\n .la = Lanthanum\n .ce = Cerium\n .pr = Praseodymium\n .nd = Neodymium\n .pm = Promethium\n .sm = Samarium\n .eu = Europium\n .gd = Gadolinium\n .tb = Terbium\n .dy = Dysprosium\n .ho = Holmium\n .er = Erbium\n .tm = Thulium\n .yb = Ytterbium\n .lu = Lutetium\n .hf = Hafnium\n .ta = Tantalum\n .w = Tungsten\n .re = Rhenium\n .os = Osmium\n .ir = Iridium\n .pt = Platinum\n .au = Gold\n .hg = Mercury\n .tl = Thallium\n .pb = Lead\n .bi = Bismuth\n .po = Polonium\n .at = Astatine\n .rn = Radon\n .fr = Francium\n .ra = Radium\n .ac = Actinium\n .th = Thorium\n .pa = Protactinium\n .u = Uranium\n .np = Neptunium\n .pu = Plutonium\n .am = Americium\n .cm = Curium\n .bk = Berkelium\n .cf = Californium\n .es = Einsteinium\n .fm = Fermium\n .md = Mendelevium\n .no = Nobelium\n .lr = Lawrencium\n .rf = Rutherfordium\n .db = Dubnium\n .sg = Seaborgium\n .bh = Bohrium\n .hs = Hassium\n .mt = Meitnerium\n .ds = Darmstadtium\n .rg = Roentgenium\n .cn = Copernicium\n .nh = Nihonium\n .fl = Flerovium\n .mc = Moscovium\n .lv = Livermorium\n .ts = Tennessine\n .og = Oganesson\n\n# The name an anion takes, for the elements that have one.\n#\n# English derives these — strip a trailing "ine", add "ide", with a small table\n# for the words that rule does not fit — but that is English morphology, not a\n# fact about anions. So each language supplies the names it uses. An element\n# with no entry here is called by its own name, which is also what the English\n# rule does for everything it does not match.\nelement-anion-name =\n .h = Hydride\n .c = Carbide\n .n = Nitride\n .o = Oxide\n .f = Fluoride\n .p = Phosphide\n .s = Sulfide\n .cl = Chloride\n .br = Bromide\n .i = Iodide\n .at = Astatide\n .ts = Tennesside\n\n# A transition metal\'s ion, named with its oxidation state: "Iron (II)".\n#\n# The Roman numeral is IUPAC notation and is the same in every language. Where\n# it sits and how it is punctuated is not, which is why this is a message and\n# not a suffix the code appends.\nion-name-oxidation-state = { $name } ({ $numeral })\n\n# Shown in place of a chemical symbol or formula that names nothing. Rendered\n# into mathematics as well as into text, so the brackets around it are added by\n# the code — inside `\\text{}` for the LaTeX form — and are not part of the\n# message.\nchemistry-invalid-symbol = Invalid Chemical Symbol\nchemistry-invalid-ionic-compound = Invalid Ionic Compound\n\n## Missing values\n\n# Read by a screen reader in place of a missing value, which is shown as a\n# blank (_): a reference to something that is not there, such as an index\n# past the end of a list. Never shown on screen, so keep it to a word or two.\nmissing-value-blank = blank\n\n## Inputs embedded in math\n\n# Names the gap an input fills when it is drawn inside a typeset expression, so\n# that a screen reader reads "x equals blank plus 3" rather than skipping over\n# it. Written into the mathematics itself and never shown on screen, so keep it\n# to a word or two.\nmath-embedded-input-blank = blank\n\n# The same, when one expression has more than one gap, so that a reader can tell\n# which one they have reached.\nmath-embedded-input-blank-ordinal = blank { $ordinal } of { $total }\n\n# The five-number summary a `<chart type="box">` gives a screen reader on each\n# box it draws.\n#\n# Words rather than five bare numbers. A bar is announced as its category and\n# its value, and a point as its coordinates, because in both the position says\n# which number it is; a box reports five numbers at one position, and nothing\n# but the naming tells them apart. A histogram\'s bar needs a word for the same\n# reason — see `chart-histogram-bin` below, which names its count.\n#\n# Each number arrives as text, already written the way the chart writes the\n# numbers on its own axis. Passed as a number instead, a translation would\n# format it a second time — grouping it, and rounding it to three fraction\n# digits — so a reader would hear a different figure from the one drawn.\nchart-box-summary =\n minimum { $minimum }, first quartile { $quartile1 }, median { $median }, third quartile { $quartile3 }, maximum { $maximum }\n\n# The name a `<chart type="box">` gives one observation drawn beyond a whisker.\n#\n# Named rather than announced as a bare number, for the reason the summary\n# above is worded: after the five numbers of the box, a further number on its\n# own says nothing about why it is drawn apart from them.\nchart-box-outlier =\n outlier { $value }\n\n# What a `<chart type="histogram">` gives a screen reader on each bar it draws:\n# the stretch of the scale the bar covers, and how many observations fell in it.\n#\n# The count is named where the two cut points are not, because the position says\n# what they are — a reader hears them in the order they are drawn in, as the ends\n# of the bar — and says nothing about the third number, which is measured up the\n# other axis.\n#\n# Each number arrives as text, already written the way the chart writes the\n# numbers on its own axis, for the reason the box plot\'s summary gives: passed\n# as a number, a translation would format it a second time and a reader would\n# hear a different figure from the one drawn.\nchart-histogram-bin =\n { $from } to { $to }, count { $count }\n';
1898
- const diagnostics = '# Errors and warnings surfaced to the reader or author. Produced by the worker\n# but addressed to whoever is looking at the screen, so these are selected by\n# `uiLocale`, not `documentLocale`.\n#\n# Message ids are lower-kebab-case Fluent identifiers, optionally with a\n# single `.attribute` suffix (`invalid-attribute-value`).\n#\n# Reached by stable diagnostic code rather than by a literal `t("key")` call:\n# `DIAGNOSTIC_CODES` in `src/diagnostics.ts` maps `doenet-w0001` to the id\n# below, and `lint:i18n` treats that registry as the call site. Adding a\n# message here without registering a code for it fails the lint as an orphan.\n#\n# Translators: `through`, `endpoint`, `midpointOffset`, `numDimensions` and the\n# like are DoenetML attribute names. They are part of the language, not prose,\n# and must be left in English exactly as written.\n\n## `<lineSegment>`\n\n# $attributes is a list of attribute names; $attributesCount is its length.\nline-segment-attributes-ignored-with-endpoints =\n { $attributesCount ->\n [one] { $attributes } is ignored when two endpoints are specified\n *[other] { $attributes } are ignored when two endpoints are specified\n }\n\n# $attributes is a list of attribute names; $attributesCount is its length.\nline-segment-attributes-ignored-with-endpoint-and-midpoint =\n { $attributesCount ->\n [one] { $attributes } is ignored when an endpoint and a midpoint are both specified\n *[other] { $attributes } are ignored when an endpoint and a midpoint are both specified\n }\n\nline-segment-midpoint-offset-without-midpoint = midpointOffset has no effect without a midpoint\n\n## `<line>`\n\nline-points-undetermined-dimensions = Line through points of undetermined dimensions.\n\nline-points-too-few-dimensions = Line must be through points of at least two dimensions.\n\n# $variables is a bare enumeration of variable names, not an "and" list.\nline-points-depend-on-variables = Line is through points that depend on variables: { $variables }.\n\nline-equation-invalid-format = Invalid format for equation of line in variables { $variable1 } and { $variable2 }.\n\n## `<ray>`\n\nray-overprescribed-through = Ray is prescribed by through, endpoint, and direction. Ignoring specified through.\n\nray-dimension-mismatch = numDimensions mismatch in ray.\n\n## `<vector>`\n\nvector-overprescribed-head = Vector is prescribed by head, tail, and displacement. Ignoring specified head.\n\nvector-dimension-mismatch = numDimensions mismatch in vector.\n\n## Attracting and constraining\n\n# $component is the DoenetML tag of the child that was named, e.g. "polygon".\nattract-to-without-nearest-point = Cannot attract to a `<{ $component }>` as it doesn\'t have a nearestPoint state variable.\n\nconstrain-to-without-nearest-point = Cannot constrain to a `<{ $component }>` as it doesn\'t have a nearestPoint state variable.\n\nconstrain-to-interior-without-nearest-point = Cannot constrain to interior of a `<{ $component }>` as it doesn\'t have a nearestPoint state variable.\n\n## `<choiceInput>`\n\n# Translators: `labelPosition` is an attribute name and stays in English.\nchoice-input-label-position-ignored = labelPosition is ignored for non-inline choiceInput\n\n## Ordering children by index\n##\n## These name the component in prose rather than as a tag, matching how the\n## messages have always read. The component names stay in English; the nouns\n## around them are prose and should be translated.\n\nchoice-input-indices-count-mismatch = Ignoring indices specified for choiceInput as number of indices doesn\'t match number of choice children.\n\npretzel-indices-count-mismatch = Ignoring indices specified for problem as number of indices doesn\'t match number of problem children.\n\nshuffle-indices-count-mismatch = Ignoring indices specified for shuffle as number of indices doesn\'t match number of components.\n\n# $component is `choiceInput`, `pretzel` or `shuffle` — a DoenetML component\n# name, so it stays in English.\nindices-ignored-out-of-range = Ignoring indices specified for { $component } as some indices out of range.\n\npretzel-indices-repeated = Ignoring indices specified for pretzel as some indices are repeated.\n\npretzel-circuit-first-index = Ignoring indices specified for pretzel in circuit mode as the first index must be 1.\n\n## `<shuffle>` and `<sort>`\n\n# $component is `shuffle` or `sort`. These two components accept the same\n# children and fail the same ways, so they share their messages.\nstring-children-need-type = For `<{ $component }>` to work with string children, a `type` attribute must be specified.\n\n# $type is what the author wrote; math, text, number and boolean are attribute\n# values and stay in English.\ninvalid-type-defaulting-to-math = Invalid type { $type } for { $component } component. Must be one of math, text, number, or boolean. Defaulting to math.\n\n# Raised when `type` names something that is not one of the four readings. The\n# value is dropped rather than replaced by a guess, so the children are read as\n# though no type had been written. $type is what the author wrote.\ninvalid-type-ignored =\n Invalid type { $type } for { $component } component. Must be one of math, text, number, or boolean. Ignoring it and reading the values as though no type had been given.\n\n# $value is the string child that could not be used.\nstring-not-valid-component-to-arrange = String "{ $value }" is not a valid component to { $component }. Ignoring.\n\n## Types and variables\n\ninvalid-type-defaulting-to-number = Invalid type { $type }, setting type to number.\n\ninvalid-variable-value = Invalid value of a variable: `{ $value }`\n\n## Variants\n\n# $index is what the author wrote, reproduced verbatim rather than as a number:\n# it reached this message precisely because it was not one.\nvariant-index-must-be-number = Variant index { $index } must be a number\n\nvariant-index-must-be-integer = Variant index { $index } must be an integer\n\n# Translators: `variantsToInclude` and `variantsToExclude` ($attribute) are\n# attribute names and stay in English. $names lists the names written in\n# $attribute that are not variants, each already in backticks; $namesCount is\n# how many there are. $component is the tag whose variants they are\n# (`document`, `problem`, `section`, …). $numVariants is how many variants it\n# has, and $variants lists their names, each already in backticks, shortened\n# with `…` when there are many. $outcome is `allVariants` when\n# `variantsToInclude` names no variant at all, so every variant is included,\n# and `ignored` otherwise.\nvariant-name-unknown = `{ $attribute }` names { $names }, which { $namesCount ->\n [one] is not a variant\n *[other] are not variants\n } of this { $component ->\n [document] document\n *[other] `<{ $component }>`\n }. { $numVariants ->\n [one] Its one variant is named { $variants }.\n *[other] Its { $numVariants } variants are named { $variants }.\n } { $outcome ->\n [allVariants] As `{ $attribute }` names no variant, every variant is included.\n *[ignored] { $namesCount ->\n [one] The name is ignored.\n *[other] The names are ignored.\n }\n }\n\n# Translators: $attribute is an attribute of `<variantControl>`\n# (`numVariants`, `variantNames`, `seeds`, …), which stays in English. Each\n# reference (`$n`) written in it is ignored, since a document\'s variants are\n# decided before anything in it, so before a reference can be read; what is\n# written beside a reference is kept. Reported once for the attribute,\n# however many references it holds.\nvariant-control-reference = `{ $attribute }` of `<variantControl>` holds a reference. A document\'s variants are decided before anything else in it, so references can\'t be read there and are ignored. Write the value itself.\n\n# Translators: `variantNames` stays in English. $names lists the names\n# written again, each already in backticks, as written the second time;\n# $namesCount is how many there are. Names are compared without case, so\n# `x` and `X` are the same name.\nvariant-name-repeated = `variantNames` names { $names } again. Variant names are compared without case, so each must be different. { $namesCount ->\n [one] The name is kept where it is first written, and the repeat is ignored.\n *[other] Each name is kept where it is first written, and the repeats are ignored.\n }\n\n# Translators: `variantsToExclude` and `variantsToInclude` stay in English.\n# $component is the tag whose variants they are (`document`, `problem`, …).\n# $withInclude is `yes` when `variantsToInclude` is written too.\nvariants-all-excluded = `variantsToExclude` excludes every variant of this { $component ->\n [document] document\n *[other] `<{ $component }>`\n }{ $withInclude ->\n [yes] {" "}that `variantsToInclude` names\n *[no] {""}\n }, which leaves none. Every variant is included.\n\n# Translators: `<variantControl>`, `extend`, `copy` and `copyWithState` stay\n# in English. A document\'s variants are decided before anything else in it,\n# so a `<variantControl>` can\'t be made from another: the author must write\n# its attributes out.\nvariant-control-made-from = A `<variantControl>` can\'t be made with `extend`, `copy` or `copyWithState`. A document\'s variants are decided before any reference in it can be read. Write the attributes on the `<variantControl>` itself.\n\n## `<sideBySide>`\n\n# $component is `sideBySide` or `sbsGroup`.\nside-by-side-absolute-widths = `<{ $component }>` is not implemented for absolute measurements. Setting widths to relative.\n\nside-by-side-absolute-margins = `<{ $component }>` is not implemented for absolute measurements. Setting margins to relative.\n\nside-by-side-no-block-child = Invalid `<{ $component }>`: it must have at least one block child.\n\n## `<label>`\n\n# Translators: `for` is an attribute name and stays in English.\nlabel-for-ignored-on-graphical = The `for` attribute on graphical `<label>` is ignored.\n\nlabel-for-must-resolve-to-one = The `for` attribute on `<label>` must resolve to exactly one component.\n\nlabel-for-unresolved = The `for` attribute on `<label>` could not be resolved to a component.\n\nlabel-for-answer-with-authored-inputs = The `for` attribute on `<label>` references an `<answer>` with explicitly authored inputs; reference the input directly.\n\nlabel-for-answer-without-input = The `for` attribute on `<label>` references an `<answer>` without an input to label.\n\nlabel-for-must-reference-input-or-answer = The `for` attribute on `<label>` must reference an input or an answer.\n\n## Accessibility\n\n# $component is a DoenetML tag, e.g. "graph" or "image".\naccessibility-short-description-or-decorative = For accessibility, `<{ $component }>` must either have a short description or be specified as decorative.\n\naccessibility-video-short-description = For accessibility, `<video>` must have a short description.\n\naccessibility-input-short-description-or-label = For accessibility, `<{ $component }>` must have a short description or a label.\n\n# The companion to the message above, for the input an `<answer>` creates on the\n# author\'s behalf. Two messages rather than one with the subject passed in: the\n# subject is a phrase here, not a name, and a phrase handed over as an argument\n# would never reach a translator.\naccessibility-answer-input-short-description-or-label = For accessibility, an `<answer>` creating an input must have a short description or a label.\n\naccessibility-short-description-contains-math = Short descriptions should not contain math components such as `<{ $component }>`. Spell out any math with words.\n\n# $colorName is an attribute name and stays in English. $ratio and $threshold\n# are contrast ratios; $mode says which theme the shortfall was measured in,\n# and is `dark` or `light`.\naccessibility-section-title-insufficient-contrast =\n { $mode ->\n [dark] { $colorName } has insufficient contrast for the section heading text (dark mode) ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1).\n *[other] { $colorName } has insufficient contrast for the section heading text ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1).\n }\n\n## `<circle>`\n\n# $count is the number of through points.\ncircle-through-points-non-numerical = Haven\'t implemented `<circle>` through { $count } points in case where the points don\'t have numerical values.\n\ncircle-too-many-through-points = Cannot calculate circle through more than 3 points.\n\ncircle-overprescribed-radius-center-points = Cannot calculate circle with specified radius, center and through points.\n\ncircle-center-with-multiple-points = Cannot calculate circle with specified center through more than 1 point.\n\n# $distance and $radius arrive as strings, not numbers: $radius is the author\'s\n# own value echoed back for diagnosis, and formatting it as a quantity would\n# round a radius of 0.0001 away to 0.\ncircle-radius-too-small = Cannot calculate circle: given that the distance between the two points is { $distance }, the specified radius { $radius } is too small.\n\ncircle-radius-with-many-points = Cannot create circle through more than two points with a specified radius.\n\ncircle-invalid-center-or-through-points = Invalid center or through points of circle.\n\ncircle-radius-center-with-multiple-points = Cannot calculate radius of circle with specified center through more than 1 point.\n\ncircle-change-radius-non-numerical = Cannot change radius of circle with non-numerical through points\n\ncircle-radius-with-points-non-numerical = Cannot create circle through more than one point with specified radius when don\'t have numerical values.\n\ncircle-change-center-non-numerical = Haven\'t implemented changing center of circle through points with non numerical values.\n\n## `<function>`\n\n# Two independent counts in one sentence, so the variants multiply out. A\n# select\'s variants each need their own line, so the inner one spans lines too;\n# that is safe because newlines inside a placeable never reach the rendered\n# value. Only text continuing onto a further line would.\nfunction-domain-insufficient-dimensions =\n { $intervals ->\n [one] Insufficient dimensions for domain for function. Domain has { $intervals } interval but the function has { $inputs ->\n [one] { $inputs } input\n *[other] { $inputs } inputs\n }.\n *[other] Insufficient dimensions for domain for function. Domain has { $intervals } intervals but the function has { $inputs ->\n [one] { $inputs } input\n *[other] { $inputs } inputs\n }.\n }\n\nfunction-domain-invalid-format = Invalid format for domain for function.\n\n# $type is what was being read off the point. It selects the wording rather\n# than being substituted into it: "maximum", "slope" and the rest are English\n# nouns, and a noun handed over as an argument would never reach a translator.\n# The catch-all reproduces the pre-catalog behavior for a value not listed here.\nfunction-ignoring-non-numerical =\n { $type ->\n [maximum] Ignoring non-numerical maximum of function.\n [minimum] Ignoring non-numerical minimum of function.\n [extremum] Ignoring non-numerical extremum of function.\n [point] Ignoring non-numerical point of function.\n [slope] Ignoring non-numerical slope of function.\n *[other] Ignoring non-numerical { $type } of function.\n }\n\nfunction-ignoring-empty =\n { $type ->\n [maximum] Ignoring empty maximum of function.\n [minimum] Ignoring empty minimum of function.\n [extremum] Ignoring empty extremum of function.\n [point] Ignoring empty point of function.\n *[other] Ignoring empty { $type } of function.\n }\n\nfunction-points-too-close = Function contains two points with locations too close together. Can\'t define function.\n\nfunction-iterates-input-output-mismatch =\n { $inputs ->\n [one] Function iterates are possible only if the number of inputs of the function is equal to the number of outputs. This function has { $inputs } input and { $outputs ->\n [one] { $outputs } output\n *[other] { $outputs } outputs\n }.\n *[other] Function iterates are possible only if the number of inputs of the function is equal to the number of outputs. This function has { $inputs } inputs and { $outputs ->\n [one] { $outputs } output\n *[other] { $outputs } outputs\n }.\n }\n\n## `<sequence>`\n\nsequence-invalid-length = Invalid length of sequence. Must be a non-negative integer.\n\n# $type is a sequence type: number, letters, or math.\nsequence-invalid-step = Invalid step of sequence. Must be a number for sequence of type { $type }.\n\n# $attribute is `from` or `to` — an attribute name, so it stays in English.\nsequence-invalid-endpoint-number = Invalid "{ $attribute }" of number sequence. Must be a number.\n\nsequence-invalid-endpoint-letters = Invalid "{ $attribute }" of letters sequence. Must be a letter combination.\n\nsequence-invalid-endpoint = Invalid "{ $attribute }" of sequence.\n\nselect-from-sequence-coprime-not-numbers = coprime ignored since not selecting numbers\n\nselect-from-sequence-coprime-with-exclude-combinations = coprime ignored since excludeCombinations specified\n\n## Resolving a `target`\n##\n## Raised by the components that take a `target` attribute. They resolve it\n## through the same code and fail the same two ways, so they share these two\n## messages rather than spelling each one out per component: $source is the tag\n## of the component that raised it, part of the DoenetML language, so it stays\n## in English.\n\ntarget-not-found = Invalid target for `<{ $source }>`: cannot find target.\n\n# $property is the state variable that was looked for; $component is the tag it\n# was looked for on. $suggestion (when $hasSuggestion is `true`) is the\n# property in the case the component has it: property names are\n# case-sensitive (D51), so `$n.Value` suggests `value`, and an array entry is\n# suggested by index (`X1` on a point suggests `xs[1]`).\ntarget-state-variable-not-found = Invalid target for `<{ $source }>`: cannot find a state variable named "{ $property }" on a `<{ $component }>`{ $hasSuggestion ->\n [true] . Did you mean "{ $suggestion }"?\n *[other] .\n }\n\n## `<odeSystem>`\n\node-system-variables-match-independent = Variables of `<odeSystem>` must be different than independent variable.\n\node-system-duplicate-variable-names = Can\'t define ODE RHS functions with duplicate dependent variable names.\n\node-system-rhs-function-error = Cannot define ODE RHS function. Error creating mathjs function.\n\n## `<angle>`, `<parabola>`, and `<intersection>`\n\n# $count is how many line children were found.\nangle-too-many-lines = Cannot define an angle between { $count } lines\n\nangle-invalid-through-point = Invalid point in through of `<angle>`\n\nparabola-vertex-too-many-points = Haven\'t implemented parabola with vertex through more than 1 point.\n\nparabola-too-many-points = Haven\'t implemented parabola through more than 3 points.\n\nintersection-too-many-items = Haven\'t implemented intersection for more than two items\n\n## Other math components\n\nionic-compound-not-two-ions = Have not implemented ionic compound for anything other than two ions.\n\nionic-compound-needs-cation-and-anion = Ionic compound implemented only for one cation and one anion.\n\n# $equation is the equation as the author wrote it.\nsolve-equations-cannot-evaluate = Cannot solve equation as could not evaluate equation: { $equation }\n\n# Translators: `operandNumber` is an attribute name and stays in English.\nmath-operators-operand-number-required = Must specify a operandNumber when extracting a math operand.\n\neigen-decomposition-failed = Could not calculate eigenvalues of matrix\n\n## `<matchesPattern>`\n\n# Translators: `parameters` is an attribute name and stays in English.\n# $parameters lists the parameters as the author wrote them;\n# $parametersCount is how many there were.\nmatches-pattern-parameter-not-in-pattern =\n { $parametersCount ->\n [one] `<matchesPattern>`: the parameter { $parameters } does not occur in the pattern, so it will always match a blank.\n *[other] `<matchesPattern>`: the parameters { $parameters } do not occur in the pattern, so they will always match a blank.\n }\n\n## `<graph>`\n\n# Translators: grid is an attribute name and none, medium and dense are its\n# values; all four stay in English, as does the example. $grid is the value the\n# author wrote, reproduced verbatim — it reached this message precisely because\n# it was not one of the forms listed.\ngraph-grid-invalid = `<graph>`: cannot interpret grid="{ $grid }". It must be none, medium, dense, or two positive numbers separated by a space or a comma, such as grid="1 0.5". No grid is drawn.\n\n## `<slopeField>` and `<vectorField>`\n\n# $component is the field\'s tag and $alternative the sibling field component\'s,\n# or `none` when the function would not suit it either; both are DoenetML tags\n# and stay in English, as do the example expressions. $expected is how many\n# outputs the component needs, $found how many the given function has. What a\n# field draws a mark from is the function\'s outputs, so the wrong number of\n# them means there is nothing to draw — and the author almost always wanted the\n# other component.\nfield-function-wrong-num-outputs =\n `<{ $component }>` needs a function with { $expected ->\n [one] one output, the slope y\' at each point, such as `y - x`\n *[other] two outputs, the vector at each point, such as `(y, -x)`\n }, but the function it was given has { $found ->\n [one] { $found } output\n *[other] { $found } outputs\n }. { $alternative ->\n [none] Nothing is drawn.\n *[other] `<{ $alternative }>` is the component for that function. Nothing is drawn.\n }\n\n# Translators: retired. `function` is an attribute name and stays in English.\n# It warned that a field had been given its function both as an attribute and\n# inside the component; the attribute no longer exists, so the two can no\n# longer disagree. Kept because diagnostic codes are never reused.\nfield-function-attribute-ignored-with-child = The `function` attribute is ignored because the function is also given inside the component; the one inside is used. Give the function only one of the two ways.\n\n# Translators: `variables` and `function` are a DoenetML attribute and tag and\n# stay in English, as does $component, the field\'s own tag. The attribute names\n# the inputs of an expression written directly inside the component; when there\n# is no such expression there is nothing for it to name, and $reason says which\n# of the two ways that happened.\nfield-variables-ignored =\n `<{ $component }>`: the `variables` attribute names the variables of an expression written directly inside the component. { $reason ->\n [function-child] The function here is given as a `<function>` child, which names its own variables, so `variables` is ignored.\n *[no-expression] No such expression is given here, so `variables` is ignored.\n }\n\n## PreFigure renderer\n\n# Translators: xLabelPosition, yLabelPosition and their values are attribute\n# names and stay in English, as does the renderer\'s name.\nprefigure-x-label-position-unsupported = `<graph>`: xLabelPosition="left" is not supported in prefigure renderer; using right-position behavior.\n\nprefigure-y-label-position-unsupported = `<graph>`: yLabelPosition="bottom" is not supported in prefigure renderer; using top-position behavior.\n\nprefigure-invalid-axis-bounds = `<graph>`: invalid axis bounds for prefigure conversion; using default bbox (-10,-10,10,10).\n\nprefigure-invalid-width = `<graph>`: invalid width for prefigure conversion; using default diagram width 425.\n\nprefigure-invalid-aspect-ratio = `<graph>`: invalid aspectRatio for prefigure conversion; using default aspect ratio 1.\n\n# Translators: the renderer\'s name, prefigure, stays in English. "grid" here is\n# the coordinate grid itself rather than the attribute that asks for one, so it\n# is prose and is translated.\nprefigure-grid-spacing-too-fine = `<graph>`: the grid spacing is too fine for the axis limits; the grid is omitted in the prefigure renderer.\n\nprefigure-annotations-not-rendered = `<graph>`: annotations will not be rendered when not using the PreFigure renderer.\n\nmultiple-annotations-children = Multiple `<annotations>` children found in `<graph>`; all but the last one are ignored.\n\n## Referring to other components\n##\n## `<updateValue>`\'s own "cannot find target" messages are not here: it\n## resolves a target the same way `<animateFromSequence>` does and fails the\n## same ways, so the two share `target-not-found` and\n## `target-state-variable-not-found` above.\n\ncopy-unrecognized-component-type = Cannot extend or copy an unrecognized component type: { $type }.\n\ncopy-prop-not-found = Could not find prop { $property } on a component of type { $component }\n\ncollect-no-source = No source found for collect.\n\ncollect-invalid-component-type = Cannot collect components of type `<{ $component }>` as it is an invalid component type.\n\n# $reference is the reference exactly as the author wrote it, `$` and all —\n# the `$p.styleDescription[1]` of `<text extend="$p.styleDescription[1]" />`.\n# An index only means something applied to an array, and the thing named here\n# is not one. The reference is quoted back rather than explained because the\n# text in front of the author is the only part of this they can act on: the\n# state variable and component index the core knows about are its own business\n# and go to the console instead.\nreference-index-unavailable = Cannot reference index `{ $reference }`\n\n# An index on a component that makes nothing an index selects: `$sec[2]` on a\n# `<section>`, `$n[1]` on a `<number>`. $reference is the reference as the\n# author wrote it, with its `$`, and $component the tag name of what it\n# reached; both stay as written. An index selects among what a component makes\n# (the entries of a list, the iterations of a repeat), never among the children\n# of a component, which are reached by name.\n\nreference-index-selects-nothing = `{ $reference }`: an index cannot select anything in this `<{ $component }>`. An index selects among what a component makes, such as the entries of a list or the iterations of a repeat, not among the children of a component. To refer to a child, give it a name and write that name after a `.`.\n\n# An index after a `<group>` that holds several components, or none: `$g[2]`\n# on a `<group name="g">` holding two, or `$r[1][2]`, an index after an\n# iteration of a repeat that holds two. A group holding one component passes\n# the index to it (NAME-2); otherwise the reference names nothing, as an index\n# never selects one of a group\'s children.\n# $reference is the reference as the author wrote it, up to and including that\n# index, with its `$` (and, when the index ends it, the arguments of a function\n# reference: `$$f[2](2)`). $container is what the author wrote the group as:\n# `iteration` for an iteration of a repeat, `pick` for what a select picked,\n# `case` for what a `<conditionalContent>` shows, and `group` for a `<group>`;\n# $component is the tag name of that repeat, select or `<conditionalContent>`,\n# and `group` for a `<group>`. $count is how many components the group holds,\n# not counting blank text and `<setup>`s (any other text is one).\n# $child is `named` when the index is at a child with a name, `unnamed` when it\n# is at one with none, and `none` when the group has no child there;\n# $suggestion is the reference with that index replaced by `.` and the child\'s\n# name (or `x`, for a child with no name), followed by the arguments when\n# $reference has them. Tags, references and attributes stay as written.\n\nreference-index-selects-child =\n { $container ->\n [iteration] `{ $reference }` names nothing: this iteration of a `<{ $component }>` holds { $count ->\n [0] no components\n [one] one component\n *[other] { $count } components\n }, and an index passes into an iteration only when it holds one.\n [pick] `{ $reference }` names nothing: what the `<{ $component }>` picked holds { $count ->\n [0] no components\n [one] one component\n *[other] { $count } components\n }, and an index passes into a pick only when it holds one.\n [case] `{ $reference }` names nothing: what the `<{ $component }>` shows holds { $count ->\n [0] no components\n [one] one component\n *[other] { $count } components\n }, and an index passes into it only when it holds one.\n *[group] `{ $reference }` names nothing: the `<group>` holds { $count ->\n [0] no components\n [one] one component\n *[other] { $count } components\n }, and an index passes into a group only when it holds one.\n } An index never selects a child. { $child ->\n [named] To refer to the child, write `{ $suggestion }`.\n [unnamed] To refer to the child, give it a name, such as `name="x"`, and write `{ $suggestion }`.\n *[none] To refer to a child, give it a name and write that name after a `.`.\n }\n\n# An index on a component whose values are reached through one of its\n# properties rather than by indexing the component itself: `$ss[1]` on a\n# `<spreadsheet>`, whose cells are `$ss.cells[1][2]`. $reference is the\n# reference as the author wrote it, with its `$`; $component the tag name of\n# what it reached; $suggestion the same reference with the property put in\n# front of the index; $property that property. All stay as written.\n\nreference-index-use-property = `{ $reference }`: an index does not select anything in a `<{ $component }>` itself. Write `{ $suggestion }` to select among its `{ $property }`.\n\n# An index past what a repeat, a select or a collect made: `$s[3]` on a\n# `<select>` that picked two options. $reference is the reference as the author\n# wrote it, with its `$`, and $component the tag name of the repeat, select or\n# collect; both stay as written. $kind is `iteration` for a repeat, `pick` for\n# a select (or a `<selectFromSequence>`), and `item` for a component that\n# arranges or gathers what it is given (`<shuffle>`, `<sort>`, `<collect>`).\n# $count is how many it made, which can be 0.\n\nreference-index-past-instances =\n { $kind ->\n [iteration] { $count ->\n [0] `{ $reference }`: the `<{ $component }>` made no iterations.\n [one] `{ $reference }`: the `<{ $component }>` made only { $count } iteration.\n *[other] `{ $reference }`: the `<{ $component }>` made only { $count } iterations.\n }\n [item] { $count ->\n [0] `{ $reference }`: the `<{ $component }>` has no items.\n [one] `{ $reference }`: the `<{ $component }>` has only { $count } item.\n *[other] `{ $reference }`: the `<{ $component }>` has only { $count } items.\n }\n *[pick] { $count ->\n [0] `{ $reference }`: the `<{ $component }>` made no picks.\n [one] `{ $reference }`: the `<{ $component }>` made only { $count } pick.\n *[other] `{ $reference }`: the `<{ $component }>` made only { $count } picks.\n }\n }\n\n# A reference to a name declared in the branches of a `<conditionalContent>`\n# (its `<case>`s and its `<else>`) or of a `<select>` that picks one (its\n# `<option>`s) names nothing unless every branch declares the name, with the\n# same tag, so that what it names never changes type with the active branch.\n# $reference is the reference as the author wrote it, with its `$`, and $name\n# the name; both stay as written. $branch is `case`, `else` or `option`, the\n# branch that has no $name, and $ordinal which of its kind it is (1 for the\n# first case). $container is the name of the `<conditionalContent>` or\n# `<select>` when $hasName is "true", and its tag otherwise; DoenetML, so it\n# stays in English. $branch is `item` for a name after the `valueName` of a\n# `<repeat>` whose `for` holds items of several components (COLL-5), each\n# item being a branch, and $ordinal the item\'s place in the `for`; or\n# `someItem` when that place is not known when the document loads (an item\n# after anything in `for` other than a reference to a `<group>`, which may\n# give a number of items, or an order, decided as the document runs);\n# $container is then the `<repeat>`. An item that is an option or a case\n# is named as one, with $container the `<select>` or `<conditionalContent>`.\n\nreference-name-missing-in-branch = `{ $reference }` names nothing: { $branch ->\n [else] the `<else>`\n [option] option { $ordinal }\n [item] item { $ordinal } of the `for`\n [someItem] an item of the `for`\n *[case] case { $ordinal }\n } of { $hasName ->\n [true] `{ $container }`\n *[other] the `<{ $container }>`\n } has no `{ $name }`. Give it one, or use a name every { $branch ->\n [option] option\n [item] item\n [someItem] item\n *[other] case\n } has.\n\n# As `reference-name-missing-in-branch`, where two branches declare $name with\n# different tags, $firstType and $secondType, which stay in English. $branch is\n# `case`, `option` or `item`.\n\nreference-name-types-differ-in-branches = `{ $reference }` names nothing: `{ $name }` is a `<{ $firstType }>` in one { $branch ->\n [option] option\n [item] item of the `for`\n *[other] case\n } of { $hasName ->\n [true] `{ $container }`\n *[other] the `<{ $container }>`\n } and a `<{ $secondType }>` in another. Use the same type, or different names.\n\n# A property or an index after a `<select>` or `<conditionalContent>` whose\n# options or cases differ: some hold one component, to which it passes, and\n# others several, a container it does not pass into (#2520, D41). Decided at\n# load from every option or case. $reference is the reference as written,\n# with its `$`. $what is `index` or `property`. $branch is `option` or\n# `case`; $ordinals lists the options, or the cases (not the `<else>`), that\n# hold several, and $withElse is `true` when the `<else>` does too.\n# $container is the container\'s name when $hasName is `true`, else its tag\n# name. $suggestion (when $hasSuggestion is `true`) is the reference with\n# `.P` after the container and its first index. Tags, names and references\n# stay as written.\n\nreference-branches-hold-several = `{ $reference }`: { $what ->\n [index] an index\n *[property] a property\n } after { $hasName ->\n [true] `{ $container }`\n *[other] the `<{ $container }>`\n } passes into what { $branch ->\n [option] each pick\n *[case] the case shown\n } holds only when it holds one component, and { $branch ->\n [option] { $ordinalsCount ->\n [one] option { $ordinals } holds\n *[other] options { $ordinals } hold\n }\n *[case] { $withElse ->\n [true] { $ordinalsCount ->\n [0] the `<else>` holds\n [one] case { $ordinals } and the `<else>` hold\n *[other] cases { $ordinals } and the `<else>` hold\n }\n *[other] { $ordinalsCount ->\n [one] case { $ordinals } holds\n *[other] cases { $ordinals } hold\n }\n }\n } several. { $hasSuggestion ->\n [true] Give the component you mean a name in each, such as `name="P"`, and write `{ $suggestion }`.\n *[other] Give the component you mean a name in each, and write that name after a `.`.\n }\n\n# A property after a `<select>` or `<conditionalContent>` whose options or\n# cases each hold one component, where some of those components have the\n# property and others don\'t (D40, #2452): each that lacks it gives a blank.\n# Decided at load from every option or case. $reference is the reference as\n# written, with its `$`; $property the property and $lackingType the tag of a\n# component that lacks it, both as written. $container is the container\'s\n# name when $hasName is `true`, else its tag name. $branch is `option`,\n# `case`, or `item` (the items of a `<repeat>`, of types that differ through\n# its `for` or a `<conditionalContent>` in it). A name in only some options\n# or cases names nothing from outside\n# (`doenet-w0183`), so the message does not suggest reading one by name.\n\nreference-property-partly-held = `{ $reference }`: a `<{ $lackingType }>` in { $hasName ->\n [true] `{ $container }`\n *[other] the `<{ $container }>`\n } has no property `{ $property }`, so it gives a blank there. For a value from each, give every { $branch ->\n [option] option\n [item] item\n *[case] case\n } a component that has `{ $property }`.\n\n# A property after a `<group>` that holds several components: `$g.x` on a\n# `<group name="g">` holding two points, `$r.x` or `$r[1].x` after a repeat\n# whose template holds two (said as "each item holds 2"; authors are not\n# told of iterations as groups), `$s.x` after a pick that holds two, or `$cc.x` after\n# the case a `<conditionalContent>` shows, holding two (D41). A group holding\n# one component stands for it, and the property is that component\'s; with\n# several, the group is only a container, and the reference names nothing\n# there. The group\'s own settings (`$g.hide`) are not this.\n# $reference is the reference as the author wrote it, with its `$`.\n# $container and $component are as for `reference-index-selects-child`:\n# `iteration`, `pick`, `case` or `group`, and the tag name of the repeat,\n# select or `<conditionalContent>` (`group` for a `<group>`). $count is how\n# many components the group holds, not counting blank text and `<setup>`s.\n# $child is `named` when the first child that has the property has a name,\n# `reference` when it is a reference written alone (`$Q`), which cannot take\n# a name, else `unnamed`; $tag is, for `reference`, that reference written as\n# a tag with a name (`<point extend="$Q" name="P"/>`); $suggestion is the\n# reference with that child\'s name (or `P`) put before the property. Tags,\n# references and attributes stay as written.\nreference-property-after-several =\n { $container ->\n [iteration] `{ $reference }` names nothing: what is written inside the `<{ $component }>` holds { $count } components, so each item holds { $count }, and a property applies to an item only when it is one component.\n [pick] `{ $reference }` names nothing: what the `<{ $component }>` picked holds { $count } components, and a property passes into a pick only when it holds one.\n [case] `{ $reference }` names nothing: what the `<{ $component }>` shows holds { $count } components, and a property passes into it only when it holds one.\n *[group] `{ $reference }` names nothing: the `<group>` holds { $count } components, and a property passes into a group only when it holds one.\n } { $child ->\n [named] To read the property of a child, write `{ $suggestion }`.\n [reference] To read the property of a child, write it as a tag with a name, such as `{ $tag }`, and write `{ $suggestion }`.\n *[unnamed] To read the property of a child, give it a name, such as `name="P"`, and write `{ $suggestion }`.\n }\n\n## `<callAction>`\n\n# $action is the `actionName` the author asked for, part of the DoenetML\n# language, so it stays in English. $reference is the `target` as written.\ncomponent-action-unavailable = Cannot call { $action } on component `{ $reference }`\n\n# An action (`<callAction>`, `<updateValue>`, $componentType) whose `target`,\n# $reference as written, is in content not shown now: a case of a\n# `<conditionalContent>` that is not true, or an iteration a repeat no longer\n# has. Content that is not shown acts as missing from outside, so the action\n# did nothing. The tag and attribute names stay in English.\naction-target-not-shown = The `<{ $componentType }>` did nothing: its `target`, `{ $reference }`, is not shown now.\n\n## `<dataFrame>`\n\n# $componentIdx is an internal index, passed as a string so it is not grouped\n# like a quantity; the odd spacing before the colon is reproduced from the\n# original message.\ndata-frame-inconsistent-row-lengths = Data has invalid shape. Rows has inconsistent lengths. Found in componentIdx :{ $componentIdx }\n\ndata-frame-duplicate-column-names = Data has duplicate column names. Found in componentIdx :{ $componentIdx }\n\ndata-frame-missing-column-name = Data is missing a column name. Found in componentIdx :{ $componentIdx }\n\n## `<answer>` and scoring\n\nanswer-award-depends-on-own-response = An award for this answer is based on the answer tag\'s own submitted response, which will lead to unexpected behavior.\n\n# Translators: maxNumAttempts and sectionWideCheckWork are attribute names.\nanswer-max-num-attempts-in-section-wide-check-work = Setting `maxNumAttempts` on an `<answer>` inside a container with `sectionWideCheckWork` has no effect, as the number of attempts is controlled by the container. Set `maxNumAttempts` on the container instead.\n\nnested-section-wide-check-work-max-num-attempts = Setting `maxNumAttempts` on a container with `sectionWideCheckWork` that is inside another container with `sectionWideCheckWork` has no effect, as the number of attempts is controlled by the outer container. Set `maxNumAttempts` on the outer container instead.\n\n# Raised by a `<title>` written inside a `<cascade>`. A cascade only reveals its\n# children step by step; it has no heading of its own, so the title is not\n# shown. Translators: cascade, section and title are element names.\ncascade-title-not-shown = A `<cascade>` has no heading, so this `<title>` is not shown. To give it one, wrap the `<cascade>` in a `<section>` and move the `<title>` to the `<section>`.\n\n# $attributes is a list of attribute names; $attributesCount is its length.\nanswer-attributes-need-symbolic-equality =\n { $attributesCount ->\n [one] The { $attributes } attribute will have no effect without symbolicEquality set.\n *[other] The { $attributes } attributes will have no effect without symbolicEquality set.\n }\n\nanswer-invalid-type = Invalid type for answer: { $type }\n\n## `<module>`, `<conditionalContent>`, `<slider>`, `<pretzel>`\n\nmodule-attribute-child-needs-name = Since the component `<{ $component }>` does not have a name, it cannot be used for a module attribute\n\nmodule-attribute-name-already-defined = The component `<{ $component } name="{ $name }">` cannot be used as an attribute for a module because the `<module>` component type already has a "{ $name }" attribute defined.\n\nmodule-attribute-refers-to-itself = The `{ $name }` attribute of this `<module>` refers to the module\'s own `{ $name }`, so its value would depend on itself. The attribute is ignored. To use a component outside the module, give that component a different name.\n\nconditional-content-condition-ignored = Attribute `condition` is ignored on a `<conditionalContent>` component with case or else children.\n\nslider-markers-type-mismatch = Markers type doesn\'t match slider type.\n\npretzel-problem-needs-statement-and-answer = Invalid pretzel: each `<problem>` must contain one `<statement>` and one `<answer>`.\n\npretzel-problem-copy-not-supported = A `<problem>` that copies or extends another problem is not supported in a `<pretzel>` and is ignored. Write the problem out inside the `<pretzel>`.\n\n# Translators: retired. A `<pretzel extend>` given problems or a `mode` is an\n# error now, as any extend that would change what its source makes. Kept\n# because diagnostic codes are never reused.\npretzel-extend-changes-ignored = A `<pretzel>` that extends another shows the same problems in the same mode, so the problems or `mode` given to it are ignored. To add problems or change the mode, use `copy` instead of `extend`.\n\npretzel-circuit-first-problem-distractor = Invalid pretzel: in mode="circuit", the first `<problem>` cannot be a distractor.\n\n## Attribute values\n\n# $values is a list of the values that were rejected, each already in\n# backticks; $valuesCount is how many there were.\nattribute-invalid-values =\n { $valuesCount ->\n [one] Invalid value { $values } for attribute `{ $attribute }`; ignoring.\n *[other] Invalid values { $values } for attribute `{ $attribute }`; ignoring.\n }\n\nattribute-must-be-references = Invalid value `{ $value }` for attribute `{ $attribute }`. Attribute must be composed of references that begin with a `$`.\n\n# $names is a list of the rejected names, each already in single quotes.\nmath-input-invalid-function-names = <mathInput>: ignored invalid function name(s) in { $attribute }: { $names }. Each name\'s display segment must be at least 2 characters (letters or dashes); an optional `|<mathspeak alternative>` suffix may follow.\n\n## Building components from the source\n\n# Raised while the source is being turned into components, by throwing rather\n# than by building a record: the thrower is caught, the component becomes an\n# `_error`, and the diagnostic is re-raised from it.\n\n# $suggestion (when $hasSuggestion is `true`) is the tag the one written\n# differs from only in case: tags are case-sensitive, with `copy` or `extend`\n# as without (D51). Tag names stay in English.\ncomponent-type-invalid = Invalid component type: `<{ $componentType }>`{ $hasSuggestion ->\n [true] . Did you mean `<{ $suggestion }>`?\n *[other] {""}\n }\n\nattribute-repeated = Cannot repeat attribute { $attribute }.\n\n# $suggestion (when $hasSuggestion is `true`) is the attribute the one written\n# differs from only in case: attribute names are case-sensitive (D51).\n# Attribute and tag names stay in English.\nattribute-invalid-for-component = Invalid attribute "{ $attribute }" for a component of type `<{ $componentType }>`.{ $hasSuggestion ->\n [true] {" "}Did you mean "{ $suggestion }"?\n *[other] {""}\n }\n\n## Style definition contrast\n\n# $context names the pair being compared, $mode which colour scheme it was\n# rendered in. Both are symbolic — the phrase is chosen here so a translator\n# can rewrite it, rather than being handed over already in English.\nstyle-definition-insufficient-contrast =\n Style definition { $styleNumber } has insufficient contrast for { $context ->\n [text-on-background] text color against background color\n [high-contrast] high-contrast color against the canvas\n [line] line color against the canvas\n [marker] marker color against the canvas\n *[text-on-canvas] text color against the canvas\n }{ $mode ->\n [dark] { " (dark mode)" }\n *[light] { "" }\n } ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1).\n\n# $suggestion says whether a concrete replacement colour could be computed.\n# The attribute names and colour values in the `available` branch are\n# DoenetML source, not prose, and stay as they are in every language.\nstyle-definition-dark-mode-text-background-contrast =\n Although style definition { $styleNumber } has specified colors that provide sufficient contrast for light mode, the dark-mode colors derived from these values have insufficient contrast for the text color against the background color ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1). { $suggestion ->\n [available] To ensure sufficient contrast in dark mode, either increase the light-mode contrast (e.g., set { $lightAttribute }="{ $lightColor }") or override the dark-mode color (e.g., set { $darkAttribute }="{ $darkColor }").\n *[none] To ensure sufficient contrast in dark mode, increase the light-mode contrast or override the derived colors with textColorDarkMode and/or backgroundColorDarkMode.\n }\n\nstyle-definition-dark-mode-text-canvas-contrast =\n Although style definition { $styleNumber } has a specified text color that provides sufficient contrast for light mode, the dark-mode text color derived from this value has insufficient contrast against the canvas ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1). { $suggestion ->\n [available] To ensure sufficient contrast in dark mode, either increase the light-mode contrast (e.g., set textColor="{ $lightColor }") or override the dark-mode color (e.g., set textColorDarkMode="{ $darkColor }").\n *[none] To ensure sufficient contrast in dark mode, increase the light-mode contrast or override the derived color with textColorDarkMode.\n }\n\nsection-multiple-style-palettes = A section can select only one <stylePalette>; using the last one.\n\n## Unique variants\n\n# Explanations of why a component\'s unique variants could not be worked out.\n# $component is the tag that could not be analyzed and stays as written; the\n# reason is a separate message per situation, so a host can tell them apart by\n# code and a translator sees a whole sentence rather than a fragment.\n\nvariant-num-to-select-not-non-negative-integer = cannot determine unique variants of { $component } as numToSelect isn\'t a non-negative integer.\n\nvariant-num-to-select-not-constant-number = cannot determine unique variants of { $component } as numToSelect isn\'t constant number.\n\nvariant-with-replacement-not-constant-boolean = cannot determine unique variants of { $component } as withReplacement isn\'t constant boolean.\n\nvariant-select-weight-disables-unique = Unique variants for select disabled if have an option with selectWeight or selectForVariants specified\n\n# `option` is a DoenetML name and stays in English. `$o` is a reference as an\n# author writes it, and stays as written.\nvariant-select-options-not-written = cannot determine unique variants of select as a reference in it, such as $o, can stand for any number of options.\n\nvariant-coprime-undetermined = cannot determine unique variants of { $component } as cannot determine coprime is always false.\n\n# $attribute is an attribute name (`from`, `to`, `step`, `sort`, `length`) and\n# stays as written.\nvariant-attribute-not-constant = cannot determine unique variants of { $component } as { $attribute } isn\'t a constant.\n\nvariant-attribute-not-number = cannot determine unique variants of { $component } as { $attribute } isn\'t a number.\n\n# $type is the sequence type the component was declared with. $expected names\n# what the value had to be, symbolically, because which one applies depends on\n# both the type and the attribute.\nvariant-attribute-wrong-type-for-sequence =\n cannot determine unique variants of { $component } of { $type } type as { $attribute } isn\'t { $expected ->\n [letters-combination] a combination of letters\n [math-expression] a valid math expression\n [integer] an integer\n *[number] a number\n }.\n\nvariant-length-not-integer = cannot determine unique variants of { $component } as length isn\'t an integer.\n\nvariant-sort-not-implemented = have not implemented unique variants of a { $component } with sort\n\nvariant-exclude-combinations-not-implemented = have not implemented unique variants of a { $component } with excludeCombinations\n\nvariant-math-exclude-not-implemented = have not implemented unique variants of a { $component } of type math with exclude\n\nvariant-non-constant-exclude-not-implemented = have not implemented unique variants of a { $component } with non-constant exclude\n\n## PreFigure conversion\n\n# $subject identifies the component the warning is about, already written as\n# `<tag>` or `<tag> (name)`. It is composed in code rather than here because\n# Fluent terms cannot take a variable as an argument, so a shared subject\n# fragment cannot be parameterized from the catalog. It holds only a tag name,\n# a component name and punctuation — never a word — which is why a descendant\n# with no type reads `<?>` rather than `<unknown>`.\n\nprefigure-descendant-unsupported = { $subject }: unsupported in graph prefigure renderer; descendant skipped.\n\nprefigure-descendant-invalid-geometry = { $subject }: non-finite or incomplete geometry; descendant skipped.\n\nprefigure-curve-label-omitted = { $subject }: labels are not supported on converted curve elements; label omitted.\n\nprefigure-curve-unsupported-definition-type = { $subject }: unsupported curve function definition type \'{ $definitionType }\'; descendant skipped.\n\nprefigure-region-flip-functions-unsupported = { $subject }: unsupported flipFunctions attribute on regionBetweenCurves; descendant skipped.\n\nprefigure-region-non-formula-child = { $subject }: only formula-typed child functions are supported on regionBetweenCurves; descendant skipped.\n\n# $feature is the function, operator, or symbol as math-expressions names it\n# (for example `sign`, `prime`, or a free parameter `a`), shown verbatim.\nprefigure-formula-unsupported = { $subject }: the PreFigure renderer cannot evaluate \'{ $feature }\' in this formula; formula not drawn.\n\n# $labelKind says which family of object carried the label, since the advice\n# is the same but the object is not.\nprefigure-label-position-unsupported =\n { $subject }: unsupported labelPosition \'{ $labelPosition }\' for { $labelKind ->\n [line-family] line-family label\n *[point] point label\n }; default PreFigure alignment used.\n\n# Translators: PreFigure, `markLength`, `normalize` and `lineStyle` stay in\n# English. A field\'s lattice is the grid of points its marks are drawn at.\nprefigure-field-non-formula-function = { $subject }: PreFigure can draw a field only from a function given by a formula, not one of type \'{ $definitionType }\'; descendant skipped.\n\n# $point is the lattice point, already written as "(x, y)".\nprefigure-field-function-undefined = { $subject }: the function is undefined at { $point }, a point of the field\'s lattice, or too large to compute there, and PreFigure may then draw none of the field. Restrict the function\'s domain to avoid such points.\n\nprefigure-slope-field-mark-length-ignored = { $subject }: PreFigure sizes each slope mark from the lattice spacing, so `markLength` is ignored.\n\nprefigure-vector-field-normalize-unequal-scales = { $subject }: the graph\'s axes are scaled unequally, so PreFigure draws `normalize`d arrows at lengths that vary with their direction.\n\nprefigure-field-line-style-ignored = { $subject }: PreFigure draws a field\'s marks as solid lines; `lineStyle` \'{ $lineStyle }\' is ignored.\n\nprefigure-fill-style-unsupported = { $subject }: fill style \'{ $fillStyle }\' is unsupported by PreFigure; falling back to a solid fill.\n\nprefigure-line-style-unknown = { $subject }: unknown line style \'{ $lineStyle }\' omitted from PreFigure output.\n\nprefigure-marker-style-mapped-to-diamond = { $subject }: marker style \'{ $markerStyle }\' mapped to PreFigure style \'diamond\'.\n\nprefigure-marker-style-unsupported = { $subject }: marker style \'{ $markerStyle }\' is unsupported by PreFigure; default style used.\n\n## PreFigure annotations\n\nannotation-ref-unresolvable = `<annotation>`: invalid `ref`; cannot resolve target. Annotation omitted.\n\nannotation-ref-multiple-targets = `<annotation>`: `ref` resolved to multiple targets; using the first target.\n\nannotation-ref-outside-graph = `<annotation>`: invalid `ref`; target is outside the containing graph. Annotation omitted.\n\nannotation-ref-unsupported-target = `<annotation>`: invalid `ref`; target is not a supported graphical object in prefigure conversion. Annotation omitted.\n\nannotation-text-missing = `<annotation>`: missing or empty `text`; emitting empty text.\n\n## Composites and references\n\n# $componentType is the type the composite was asked to create, when it is\n# known; `none` when the composite did not say.\ncomposite-circular-dependency =\n { $componentType ->\n [none] Circular dependency detected.\n *[other] Circular dependency detected involving `<{ $componentType }>` component.\n }\n\n# $reference is the reference as the author wrote it, already carrying its `$`.\n# $suggestion (when $hasSuggestion is `true`) is the reference with its\n# property in the case the component has it: property names are\n# case-sensitive (D51), so `$P.X` names nothing and suggests `$P.x`. An array\n# entry is suggested by index (NAME-2): `$P.X1` suggests `$P.xs[1]`, and\n# `$poly.Vertex2` suggests `$poly.vertices[2]`.\nreference-no-referent = No referent found for reference: `{ $reference }`{ $hasSuggestion ->\n [true] . Did you mean `{ $suggestion }`?\n *[other] {""}\n }\n\nreference-multiple-referents = Multiple referents found for reference: `{ $reference }`\n\n# Raised when what was written between a reference\'s index brackets did not come\n# out as a whole number — usually because that component reported an error of its\n# own, which is the diagnostic the author should act on. This one says why the\n# reference then found nothing, so the two read together rather than the reference\n# failing silently.\nreference-index-not-a-number = The index of `{ $reference }` did not work out to a number, so the reference found nothing.\n\n# An `extend` of a composite or a list whose content is written rather than\n# made (an authored `<mathList>`) shows the same content as the component it\n# extends, so an attribute that would set that content, and children written\n# inside it, are not used. $attribute and $componentType are an attribute name\n# and an element name, part of the DoenetML language, so they stay in English,\n# as does `extend`.\nextend-attribute-ignored = The `{ $attribute }` attribute is ignored: a `<{ $componentType }>` with `extend` shows the same content as the component it extends.\n\nextend-children-ignored = Children written inside a `<{ $componentType }>` with `extend` are ignored: it shows the same content as the component it extends.\n\n# Children written inside a tag with `copy` (or `copyWithState`) are added to\n# those of what it copies, but some a $componentType doesn\'t use beside those:\n# a `<math>` beside the rows of a `<matrix>`, or a curve\'s functions beside its\n# `through` points. $componentType is DoenetML and stays in English, as does\n# `copy`.\ncopy-children-ignored = A child written inside a `<{ $componentType }>` with `copy` is ignored: a `<{ $componentType }>` doesn\'t use it beside the children of what it copies.\n\n# The `target` of an `<updateValue>` is a container of several things, which\n# has no one value to change (#2554, COLL-3): a `<group>` holding several\n# components ($container is `group`, and $count how many), or a `<repeat>` or\n# `<repeatForSequence>`, which makes an item for each iteration ($container is\n# `repeat`). $componentType is the action\'s tag name, $component the\n# container\'s, and $reference the target as the author wrote it, with its `$`.\n# Tag names and references stay as written.\naction-target-not-one-value = { $container ->\n [repeat] The `<{ $componentType }>` does nothing: its `target`, `{ $reference }`, is a `<{ $component }>`, which makes an item for each iteration and has no one value. Name the component to change inside one item, as `{ $reference }[1].x` for a component named `x`.\n *[group] The `<{ $componentType }>` does nothing: its `target`, `{ $reference }`, is a `<group>` of { $count } components, which has no one value. Name the component to change.\n }\n\n# The LaTeX of an `<m>`, `<me>` or `<men>` ($component) is read as math, as a\n# `<math>` around it reads it (`<math><m>…</m></math>`, or `$mm.math`), but it\n# isn\'t math that can be read (`\\text{hi}`), so the math is a blank (D46).\n# $latex is the LaTeX as written. The tags stay in English.\nlatex-not-read-as-math = The LaTeX of this `<{ $component }>`, `{ $latex }`, can\'t be read as math, so the math made from it is a blank.\n\n# A `<math>` child of a `<matrix>` that the matrix doesn\'t use (#2546). A\n# matrix uses one `<math>` child, the last one written. $reason is `several`\n# when more than one `<math>` is written, so the earlier ones are ignored, and\n# `rows` when a `<math>` is written beside `<row>` or `<column>` children,\n# which give the matrix its entries instead. Tag names stay in English.\nmatrix-math-child-ignored = { $reason ->\n [rows] A `<math>` written beside the `<row>` or `<column>` children of a `<matrix>` is ignored: the rows or columns give the matrix its entries.\n *[several] A `<matrix>` uses one `<math>` child, the last one written, so the others are ignored. To make one expression from several, write it in one `<math>`.\n }\n\n# An attribute the component does not have, written on a component with\n# `copy`, `copyWithState` or `extend` (#2332), including one that names\n# nothing. The component is still shown, as what it copies, or as a blank; the\n# attribute does nothing. Written on the component without `copy` or `extend`,\n# the same attribute is an error (`attribute-invalid-for-component`).\n# $attribute and $componentType are an attribute name and an element name,\n# part of the DoenetML language, so they stay in English. $suggestion (when\n# $hasSuggestion is `true`) is the attribute the component does have that the\n# one written differs from only in case: names are case-sensitive (D51).\ncopy-attribute-invalid-for-component = The `{ $attribute }` attribute is ignored: a `<{ $componentType }>` has no such attribute.{ $hasSuggestion ->\n [true] {" "}Did you mean `{ $suggestion }`?\n *[other] {""}\n }\n\n# An attribute written in another case than the component\'s spelling\n# (`xmin` for `xMin`). Names are case-sensitive (D51), but for now the\n# attribute is still applied, under the component\'s spelling, with this\n# warning; in a later release it will be an error, as a misspelled attribute\n# is. $attribute is the name as written, $suggestion the component\'s spelling,\n# and $componentType the element name, all part of the DoenetML language, so\n# they stay in English.\nattribute-name-case = Attribute names are case-sensitive: write `{ $suggestion }`, not `{ $attribute }`, on a `<{ $componentType }>`. It is applied for now, but will be an error in a later release.\n\n# An info, not a warning: a list written as text (`<mathList>`, a list\n# attribute, the text of a `<sum>` or `<sort>`) whose brackets don\'t balance\n# (#2492). That is valid DoenetML, often meant (`a) apple, b) banana`), so the\n# message only explains how the list was read. Brackets keep what is inside\n# them in one entry only when they all balance, so here none of them do: a\n# comma or space inside them separates entries like any other.\n# $componentType is an element name, part of the DoenetML language, so it\n# stays in English.\nlist-brackets-unmatched = The brackets in the list of `<{ $componentType }>` don\'t all match, so they are ignored: the commas or spaces inside them separate entries like any others. To keep one inside an entry, balance the brackets, or, in a list written between tags, write its entries as children.\n\n# An editor hint, not a run-time diagnostic: in a list separated by spaces\n# (`<mathList>`, `<textList>` and the other list tags), a reference written\n# with no space beside other text or another reference is part of the one\n# entry they make together, so `2$a` is one entry and `2 $a` two (#2168,\n# D40). The hint points at the entry so an author can see where the list was\n# split. $entry is the entry as written and $componentType an element name;\n# both are DoenetML, so they stay in English.\nlist-reference-joins-entry = `{ $entry }` is one entry of the `<{ $componentType }>`: a reference written with no space beside the text around it is part of the same entry. To make them separate entries, put a space between them.\n\n# An `extend` is the same component again: it shares its source\'s content and\n# state, so it can\'t change what the component makes or what its state can\n# hold (#2404). Each message names the tag, what it makes, why an extend can\'t\n# change it, and what to write instead. $componentType and $attribute are an\n# element name and an attribute name, and $source is the reference the extend\n# is of, as written (`$r`); all three are DoenetML, so they stay in English,\n# as do `extend` and `copy`.\nextend-attribute-changes-content = A `<{ $componentType }>` makes its content from `{ $attribute }`. An `extend` shows the same content as `{ $source }`, so it can\'t change `{ $attribute }`. To show the content of `{ $source }` again, remove `{ $attribute }`. To make a new `<{ $componentType }>` with a different `{ $attribute }`, use `copy`.\n\n# $kind says what the children would be: the template of a repeat, the options\n# of a select, the cases of a conditionalContent, the problems of a pretzel, or\n# else the inputs the tag makes its content from.\nextend-children-change-content =\n { $kind ->\n [template] Children written inside an `extend` of a `<{ $componentType }>` would be a new template, but an extend shows the same content as `{ $source }`. To repeat a different template, use `copy`.\n [options] Children written inside an `extend` of a `<{ $componentType }>` would be new options, but an extend shows the same choice as `{ $source }`. To choose from more options, use `copy`.\n [cases] Children written inside an `extend` of a `<{ $componentType }>` would be new cases, but an extend shows the same content as `{ $source }`. To choose from other cases, use `copy`.\n [problems] Children written inside an `extend` of a `<{ $componentType }>` would be new problems, but an extend shows the same problems as `{ $source }`, arranged the same way. To arrange more problems, use `copy`.\n *[other] Children written inside an `extend` of a `<{ $componentType }>` would be new inputs to what it makes, but an extend shows the same content as `{ $source }`. To make a `<{ $componentType }>` from different children, use `copy`.\n }\n\nextend-choice-input-choices = Choices written inside an `extend` of a `<choiceInput>` would be new choices, but an extend shares its selection with `{ $source }`, which has no such choice. To offer more choices, use `copy`.\n\nextend-choice-input-shuffle-order = An `extend` of a `<choiceInput>` shares its selection with `{ $source }`, which counts the choices in the order `{ $source }` shows them, so it can\'t change `shuffleOrder`. To show the choices in a different order, use `copy`.\n\n# An `extend` of an `<answer>` shares its responses, credit and attempts\n# with its source ($source, the reference as written), so it can\'t change an\n# attribute that decides them ($attribute, its name as the `<answer>` declares\n# it, whatever case it is written in) (REF-7, D32).\nextend-answer-grading-attribute = An `extend` of an `<answer>` shares its responses and credit with `{ $source }`, which grades them, so it can\'t change `{ $attribute }`. To grade with a different `{ $attribute }`, use `copy`.\n\n# Inputs, awards or responses written inside an `extend` of an `<answer>`,\n# which shares its responses and credit with its source ($source, the\n# reference as written) (REF-7, D32). A label or description may be written.\nextend-answer-children = What is written inside an `extend` of an `<answer>` would be new inputs, awards or responses, but an extend shares its responses and credit with `{ $source }`. To make an answer that grades more, use `copy`. An extend may be given a `<label>`.\n\nextend-module-attribute = A `<module>` makes its content from its attributes. An `extend` shows the same content as `{ $source }`, so it can\'t change `{ $attribute }`. To make the module with a different `{ $attribute }`, use `copy`.\n\n# $componentType is `case`, `else` or `option`, and $parentType the tag it is\n# part of: `conditionalContent` or `select`.\nextend-part-of-choosing-tag = `<{ $componentType }>` is part of a `<{ $parentType }>`, and means something only there, so it can\'t be extended.\n\n# An `extend` or `copyWithState` ($how) of an `<award>` or a `<choice>`\n# ($componentType), which can only be copied (D42). Its state records the last\n# submission of the `<answer>` or `<choiceInput>` ($parentType) holding it, so\n# neither sharing that record nor starting from another one means anything.\n# $source is the reference as written, as `$aw`.\nextend-award-or-choice = `<{ $componentType }>` records the submissions of the `<{ $parentType }>` holding it, so it can\'t be made with `{ $how }`. Use `copy` to write it again here: `<{ $componentType } copy="{ $source }"/>`.\n\n## A reference written as a different tag\n\n# An `extend` or `copy` written as a different tag than what it is of (D26):\n# `<math extend="$t"/>` asks for a math made from `$t`. That is allowed only\n# between related types, such as math, number, text and boolean, or point,\n# vector and coords. $componentType is the tag the extend or copy is written\n# as, $sourceType the type of what it is made from, and $source the reference,\n# as written (`$t`); all three are DoenetML, so they stay in English, as do\n# `extend`, `copy`, `bindValueTo`, `prefill` and `.text`.\ntype-change-unrelated = A `<{ $componentType }>` can\'t be made from `{ $source }`, which gives a `<{ $sourceType }>`. To show it as it is, write `{ $source }`.\n\n# $hasPrefill is "true" when the input has a `prefill` attribute.\ntype-change-input-from-value =\n { $hasPrefill ->\n [true] A `<{ $componentType }>` can\'t be made from `{ $source }`, a `<{ $sourceType }>`: an input isn\'t the same thing as its value. To edit `{ $source }`, write `<{ $componentType } bindValueTo="{ $source }"/>`. To start from its value, write `<{ $componentType } prefill="{ $source }"/>`.\n *[other] A `<{ $componentType }>` can\'t be made from `{ $source }`, a `<{ $sourceType }>`: an input isn\'t the same thing as its value. To edit `{ $source }`, write `<{ $componentType } bindValueTo="{ $source }"/>`.\n }\n\ntype-change-from-container = A `<{ $componentType }>` can\'t be made from `{ $source }`, a `<{ $sourceType }>` holding other content. To use its text, write `{ $source }.text`.\n\n# A tag written with `extend` or `copy` always makes one component (D36), so\n# it can be made from a composite only when the DoenetML guarantees that the\n# composite always holds exactly one component. $reason says why it may not:\n# `numToSelect` for a `<select>` or another selector\n# whose $attribute (`numToSelect` or `numSamples`) is not written as 1;\n# `anyNumber` for a composite such as a `<repeat>` or `<collect>`, which can\n# hold any number; and `count` when it, or one $part of it (`case`,\n# `option` or `iteration`), holds $count components. $sourceType is the tag\n# of the composite the reason is about, which may be one $source holds, or\n# the one `$source` indexes (an iteration of a `<repeat>`). $holdsNothing is\n# "true" when $count is zero. $indexSelectsOne is "true" when `$source[1]`\n# names one component, so the message suggests it. `numToSelect`, `<else>`\n# and the tags are DoenetML and stay in English.\ntype-change-composite-not-one =\n { $reason ->\n [numToSelect] { $indexSelectsOne ->\n [true] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and a `<{ $sourceType }>` holds one only when its `{ $attribute }` is written as 1 or left out. To use its first pick, write `{ $source }[1]`. To read all it picks as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n *[other] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and a `<{ $sourceType }>` holds one only when its `{ $attribute }` is written as 1 or left out. To read all it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n }\n [anyNumber] { $indexSelectsOne ->\n [true] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and a `<{ $sourceType }>` can hold any number. To use the first, write `{ $source }[1]`. To read them all as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n *[other] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and a `<{ $sourceType }>` can hold any number. To read them all as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n }\n *[count] { $part ->\n [case] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and a case of the `<{ $sourceType }>` holds { $holdsNothing ->\n [true] nothing\n *[other] { $count }\n }. To read what it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n [option] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and an option of the `<{ $sourceType }>` holds { $holdsNothing ->\n [true] nothing\n *[other] { $count }\n }. To read what it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n [iteration] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and an iteration of the `<{ $sourceType }>` holds { $holdsNothing ->\n [true] nothing\n *[other] { $count }\n }. To read what it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n *[other] { $holdsNothing ->\n [true] A `<{ $componentType }>` can\'t be made from `{ $source }`, a `<{ $sourceType }>` that holds nothing.\n *[other] { $indexSelectsOne ->\n [true] A `<{ $componentType }>` can be made from a `<{ $sourceType }>` only when it holds one component, and `{ $source }` holds { $count }. To use one of them, write `{ $source }[1]` or name it. To read them all as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n *[other] A `<{ $componentType }>` can be made from a `<{ $sourceType }>` only when it holds one component, and `{ $source }` holds { $count }. To use one of them, give it a name and refer to it by that name. To read them all as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n }\n }\n }\n }\n\n# $componentType is a tag that makes its list of values itself from its\n# attributes, such as `<sequence>` or `<sampleRandomNumbers>`. Written with\n# `extend` or `copy`, it can be made only from one component of its own type,\n# and `$source` isn\'t always one: it holds several, or another type, or it\n# is a property or an entry of a list. $makes is `content` when\n# $componentType is a tag that makes its content itself, such as `<repeat>`,\n# `<select>` or `<collect>`, and `$source` is a property or an entry of a\n# property or a list (`$s.value`, `$l[2]`), which is a value, never such a tag\n# (#2546); otherwise it is `values`. The tags and `$source` are DoenetML and\n# stay in English.\ntype-change-own-type-only = { $makes ->\n [content] A `<{ $componentType }>` makes its content itself, so it can be made only from another `<{ $componentType }>`, and `{ $source }` is a value. To show it as it is, write `{ $source }`.\n *[values] A `<{ $componentType }>` makes its values from its own attributes, so it can be made only from another `<{ $componentType }>`, and `{ $source }` isn\'t always one. To show it as it is, write `{ $source }`.\n }\n\n# What `$source` holds can be of more than one type, $types, a list of tags\n# already joined (`<math>`, `<number>`). $isList is "true" when\n# $componentType is a list, such as `<mathList>`, which takes any number of\n# components, all of one type.\ntype-change-composite-types-differ =\n { $isList ->\n [true] A `<{ $componentType }>` can be made from `{ $source }` only when what it holds is all of one type, and it holds { $types }. To read them all as one list, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n *[other] A `<{ $componentType }>` can be made from `{ $source }` only when what it holds is always of one type, and it can hold { $types }. To read what it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n }\n\n# What `$source` holds is a reference whose type the DoenetML does not give:\n# $what is `property` for a property, such as `$P.x`, and `reference` for\n# any other, such as an index or the value of a repeat.\ntype-change-composite-type-unknown =\n { $what ->\n [property] A `<{ $componentType }>` can be made from `{ $source }` only when the type of what it holds is known from the DoenetML, and it holds a property, whose type isn\'t. To read what it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n *[other] A `<{ $componentType }>` can be made from `{ $source }` only when the type of what it holds is known from the DoenetML, and it holds a reference whose type isn\'t. To read what it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n }\n\n# The index of `$source` names nothing now, such as an iteration past the\n# last one, so the tag $componentType is missing, and shown as a blank, until\n# the index names something again.\ntype-change-index-names-nothing = `{ $source }` names nothing now, so this `<{ $componentType }>` is missing until it does.\n\n# `$source` is a composite that holds nothing now, such as a\n# `<conditionalContent>` with no case true and no `<else>`, or one whose\n# active case holds nothing, so the tag $componentType is missing, and shown\n# as a blank, until it holds one component again.\ntype-change-composite-holds-nothing = `{ $source }` holds nothing now, so this `<{ $componentType }>` is missing until it holds one component.\n\n# `$source` is a property whose value is a list of values, each of the type\n# it is, such as the selected values of a `<choiceInput>` (`$ci`), and it\n# holds no value now ($holds is `none`) or $count values, two or more\n# ($holds is `several`), so the tag $componentType, made from one of them,\n# is missing, and shown as a blank, until it holds one (#2546).\ntype-change-property-not-one-value = { $holds ->\n [none] `{ $source }` holds no value now, so this `<{ $componentType }>` is missing until it holds one.\n *[several] `{ $source }` holds { $count } values now, so this `<{ $componentType }>` is missing until it holds one.\n }\n\n# $value is the value of `$source` now. $valueCheck says what it would have\n# to be: a tuple, such as (1, 2), for a point, vector or coords, or true or\n# false, a number or a relation, for a boolean.\ntype-change-value-not-convertible =\n { $valueCheck ->\n [tuple] A `<{ $componentType }>` can\'t be made from `{ $source }` while its value, { $value }, isn\'t a tuple of coordinates, so it is missing until it is.\n *[other] A `<{ $componentType }>` can\'t be made from `{ $source }` while its value, { $value }, isn\'t true or false, so it is missing until it is.\n }\n\n## Children that do not match\n\n# An attribute written with no value, such as `for=""` on a `<repeat>`, where\n# the attribute needs one: it is not a true/false attribute, for which an\n# empty value means true. $attribute is its name, as written, which is\n# DoenetML and stays in English.\nattribute-empty = The `{ $attribute }` attribute is empty, and it needs a value. Write one, as `{ $attribute }="…"`, or remove the attribute.\n\nchildren-invalid-attribute-format = Invalid format for attribute { $attribute } of `<{ $componentType }>`.\n\n# $children is the list of child types that did not match, already joined.\nchildren-invalid = Invalid children for `<{ $componentType }>`: Found invalid children: { $children }\n\n## Falling back to a default\n\n# The attribute had a default to fall back to, and the message names it: the\n# component went on to behave as though the author had written that value, and\n# an author not told which one goes looking for the difference in the wrong\n# place.\nattribute-value-invalid-using-default = Invalid value `{ $value }` for attribute `{ $attribute }`, using value `{ $default }`\n\n# The same rejection where the attribute has no default to fall back to, so\n# nothing stood in for the value and the component behaves as though the\n# attribute had not been written. A separate message rather than the one above\n# with a blank in it: "using value `null`" would describe a substitution that\n# did not happen, and name a value no author could have typed. What follows is\n# usually a second message from the component itself, saying what it did\n# without the attribute.\nattribute-value-invalid-ignoring = Invalid value `{ $value }` for attribute `{ $attribute }`, ignoring it\n\n## Loading a DoenetML version\n\n# $fallback is the version that will be used instead, or `none` when the\n# embedding page named a standalone bundle of its own.\ndoenetml-version-not-found =\n { $fallback ->\n [none] DoenetML version { $version } not found.\n *[other] DoenetML version { $version } not found. Falling back to version { $fallback }\n }\n\n## Reading the DoenetML\n\n# The parser\'s own diagnostics: what the author sees before anything runs, and\n# for a beginner usually the first Doenet message they ever read.\n#\n# The parser writes its English beside the code rather than rendering it from\n# here, because `@doenet/parser` is inside the language-server bundle and a\n# catalog there is dead weight on the editor\'s critical path\n# (`packages/lsp/scripts/check-server-bundle.mjs` fails if one arrives). The\n# two copies are held together by a test in that package, which parses a\n# corpus and asserts every coded error renders to exactly what the parser\n# wrote — so a message edited here without its counterpart fails there.\n#\n# $tag, $value, $attribute and their relatives quote the author\'s own source\n# back at them and stay exactly as written. The `Invalid DoenetML: ` opening is\n# repeated in each message instead of being a shared term: a term a locale\n# forgets to define renders as its own name, and a prefix on fifteen messages\n# is not worth that failure mode.\n\nparse-invalid-doenetml = Invalid DoenetML: { $content }\n\nparse-tag-missing-close-tag = Invalid DoenetML: The tag `{ $tag }` has no closing tag. Expected a self-closing tag or a `</{ $tagName }>` tag.\n\nparse-tag-error = Invalid DoenetML: Error in tag `<{ $tagName }>`\n\nparse-attribute-missing-value = Invalid DoenetML: Invalid attribute `{ $attribute }` appears to be missing a value.\n\nparse-attribute-invalid = Invalid DoenetML: Invalid attribute `{ $attribute }`\n\nparse-attribute-value-invalid = Invalid DoenetML: Invalid attribute value `{ $value }`\n\n# $quote is the quote character that would balance the pair: `"` or `\'`.\nparse-attribute-value-quote-mismatch = Invalid DoenetML: Invalid attribute value `{ $value }`. The quote marks do not match. You appear to be missing a `{ $quote }`\n\nparse-open-tag-name-missing = Invalid DoenetML: Found a tag without a tag name, e.g. `<`\n\nparse-tag-not-closed = Invalid DoenetML: Tag `{ $tag }` was not closed (a `>` appears to be missing).\n\nparse-self-closing-tag-name-missing = Invalid DoenetML: Found a tag without a tag name `<{ $content }>`\n\nparse-self-closing-tag-not-closed = Invalid DoenetML: Tag `{ $tag }` was not closed (`/>` appears to be missing).\n\nparse-tag-invalid-attributes = Invalid DoenetML: Tag `{ $tag }` is not valid. It may have incorrect attributes.\n\nparse-close-tag-name-missing = Invalid DoenetML: Found a closing tag without a tag name, e.g. `</`\n\n# $attribute is the attribute name and $value the unquoted token that followed\n# it, shown reassembled the way the author should have written it.\nparse-attribute-value-unquoted = Attribute values must be enclosed in quotes: `{ $attribute }="{ $value }"`\n\nparse-close-tag-without-open-tag = Invalid DoenetML: Found closing tag `{ $tag }`, but no corresponding opening tag\n\nparse-close-tag-mismatched = Invalid DoenetML: Mismatched closing tag. Expected `</{ $expected }>`. Found `{ $found }`\n\n# The conversion\'s fall-through: the syntax tree held a node shape it has no\n# case for. Reaching an author means the grammar and the conversion have gone\n# out of step, which is a bug in Doenet rather than in their document — hence\n# `parser-` rather than the `parse-` of every message above, which is about\n# what the author wrote. They are still the one looking at it, so it is\n# translated like any other error. $node is the node\'s own name and stays as\n# it is.\nparser-node-unconvertible = Could not convert node { $node } to Dast node.\n\n## Reference indices\n\n# Raised when an element sits in brackets immediately after a reference but the\n# brackets cannot be read as an index. $name is the reference as the author wrote\n# it, including its leading `$` — one for a reference and two for a\n# function reference. $reason says why the brackets could not be read, as a key\n# rather than a phrase, so the whole sentence is translatable rather than\n# assembled from halves.\n#\n# The `braces` branch is about `$x{…}`, which v0.7 no longer gives any meaning:\n# it still parses, but the braces and whatever is in them are dropped. So the\n# remedy is to delete them, not to write the index somewhere else around them.\n#\n# The other four: `parens` and `parensFunction` are `$(x)[…]` and `$$(f)[…]`,\n# which differ only in how many dollars the remedy shows — following the `$(…)` one\n# for a function reference would turn it into an ordinary reference. `arguments`\n# is `$$f(1)[…]`, where the argument list ran past the path. `unclosed` is the\n# default because it states a fact rather than offering a remedy.\n#\n# There is deliberately no branch for an index on a function reference that is\n# then called. `$$fs[<n/>](3)` picks which of the functions in `fs` to call and\n# is taken like any other index on an open path.\n#\n# The `parens` branch is about `$(x)[…]`. The index does belong inside the\n# parentheses, but an element written in there is not read as an index either —\n# what is between `$(` and `)` is read as text — so the remedy is to name the\n# element first and reference it inside the parentheses.\n#\n# The `arguments` branch is about `$$f(1)[…]`. Neither place around the\n# arguments takes the index the author wrote: inside the parentheses it would\n# become one more argument, and before them it would choose which function is\n# called rather than part of what the call returns. So the message offers the\n# one spelling that does work, which is to name the result and index that.\n\nindex-element-not-used-as-index =\n The element in brackets after `{ $name }` was not read as an index. { $reason ->\n [braces] `{"{…}"}` is not part of a reference, so `[…]` written after it is ordinary text. Remove the `{"{…}"}`.\n [parens] `$(…)` ends a reference, so `[…]` written after it is ordinary text. Give the element a name and write the index inside the parentheses, as `$(x[$idx])`.\n [parensFunction] `$$(…)` ends a function reference, so `[…]` written after it is ordinary text. Give the element a name and write the index inside the parentheses, as `$$(f[$idx])`.\n [arguments] A function reference\'s arguments end it, so `[…]` written after them is ordinary text. An index written before the arguments would pick which function to call rather than part of what it returns; to index the result, give the result a name and index that.\n *[unclosed] Its `[` is never closed.\n }\n\n## Names\n\n# $reason says which rule the name broke, as a key rather than a phrase, so the\n# whole sentence is translatable rather than assembled from two halves.\nname-attribute-invalid =\n Invalid attribute name=\'{ $name }\'. { $reason ->\n [characters] Names can contain only letters, numbers, underscores or hyphens.\n *[start] Names must start with a letter.\n }\n\ncomponent-name-invalid-start = Invalid component name "{ $name }". Names must start with a letter.\n\n# $attribute is an attribute name an author wrote, beginning with `_`, which\n# is kept for the attributes DoenetML sets itself.\nattribute-name-invalid-start = Invalid attribute "{ $attribute }". Attribute names cannot start with an underscore.\n\n# A `<repeat>` or `<repeatForSequence>` ($componentType) whose `valueName` and\n# `indexName` are the same name, $name, so a reference to it finds both. The\n# tag and attribute names stay in English.\nrepeat-value-name-is-index-name = `valueName` and `indexName` of `<{ $componentType }>` are both `{ $name }`. Give them different names.\n\n## `<answer>` sugar\n\nanswer-video-watched-missing-video = Answer with type videoWatched must have a video attribute\n\nanswer-video-watched-video-not-reference = Answer with type videoWatched must have video attribute that is a reference\n\nanswer-name-not-single-text = Answer name attribute must have a single text child\n\n## Referencing another document\n\n# $attribute is the attribute the URI was written in (`copyFrom`, `extend`, …)\n# and stays as written; $uri is the author\'s own value.\n\nexternal-doenetml-recursion-limit = Unable to retrieve external DoenetML due to too many levels of recursion. Is there a circular reference?\n\nexternal-doenetml-unavailable = Unable to retrieve DoenetML from { $attribute }="{ $uri }"\n\nexternal-doenetml-type-mismatch = Invalid DoenetML retrieved from { $attribute }="{ $uri }": it did not match the component type "{ $componentType }"\n\n## Deprecated syntax\n\n# $from and $to are attribute names and $component a tag name; all three stay\n# as written. $component is `none` for a rename that applies to every component\n# accepting the attribute, where naming one would be wrong.\n#\n# The `[deprecation]` opening is a literal marker shared by all the messages\n# in this group, not a word: leave it as it is.\n\ndeprecated-attribute-renamed =\n { $component ->\n [none] [deprecation] Attribute `{ $from }` is deprecated; use `{ $to }` instead.\n *[other] [deprecation] Attribute `{ $from }` on `<{ $component }>` is deprecated; use `{ $to }` instead.\n }\n\ndeprecated-attribute-renamed-conflict =\n { $component ->\n [none] [deprecation] Attribute `{ $from }` is deprecated and ignored because `{ $to }` is also specified.\n *[other] [deprecation] Attribute `{ $from }` on `<{ $component }>` is deprecated and ignored because `{ $to }` is also specified.\n }\n\ndeprecated-attribute-ignored = [deprecation] Attribute `{ $attribute }` on `<{ $component }>` is deprecated and ignored.\n\n# An attribute replaced by a child element rather than by another attribute:\n# $attribute and $component stay as written, and so does $child, which is the\n# tag name of the child to write instead.\n\ndeprecated-attribute-to-child = [deprecation] Attribute `{ $attribute }` on `<{ $component }>` is deprecated; use a `<{ $child }>` child instead.\n\n# One value of an attribute is deprecated while the attribute itself stays:\n# $value is what the author wrote and $to what to write instead, with\n# $attribute and $component naming where. All four stay as written.\n\ndeprecated-attribute-value-renamed = [deprecation] Value `{ $value }` of attribute `{ $attribute }` on `<{ $component }>` is deprecated; use `{ $to }` instead.\n\n# `modifyIndirectly`, which any component accepted, is dropped. $component is\n# the tag name it was written on and stays as written, as do `modifyIndirectly`,\n# `fixed` and `disabled`, which are attribute names. "This value" is the value\n# of that component, and "them" the other components that use it: `fixed` goes\n# on those, not on the component the warning names.\n\ndeprecated-attribute-modify-indirectly = [deprecation] Attribute `modifyIndirectly` on `<{ $component }>` is deprecated and ignored. To keep the components that use this value from changing it, add `fixed` to them. To keep users from changing an input, use `disabled`.\n\n# An index that selects a child of a container, rather than one of the items a\n# component makes, which an index is for: `$g[2]` on a `<group>`, or `$r[2][1]`\n# on an iteration of a `<repeat>` that holds several components. It still\n# selects the child, for now.\n#\n# $reference is what the author wrote, up to and including that index, with its\n# `$`; $suggestion is the reference to write instead, which names the child.\n# Both stay as written. $container is what the index was applied to:\n# `iteration` for an iteration of $component, `pick` for what $component picked,\n# `case` for what $component shows, and `group` for a `<group>` itself (for which\n# $component is `group`). $component is a tag name and stays as written.\n# $named is `yes` when the child has a name, and $suggestion then uses it;\n# otherwise the suggestion uses `x` as an example of a name to give it.\n\ndeprecated-index-selects-child =\n { $container ->\n [iteration] [deprecation] `{ $reference }` selects a child of an iteration of a `<{ $component }>` by its position, which is deprecated: an index selects among what a component makes, not among the children of one.\n [pick] [deprecation] `{ $reference }` selects a child of what a `<{ $component }>` picked by its position, which is deprecated: an index selects among what a component makes, not among the children of one.\n [case] [deprecation] `{ $reference }` selects a child of what a `<{ $component }>` shows by its position, which is deprecated: an index selects among what a component makes, not among the children of one.\n *[group] [deprecation] `{ $reference }` selects a child of a `<group>` by its position, which is deprecated: an index selects among what a component makes, not among the children of one.\n } { $named ->\n [yes] Write `{ $suggestion }` instead.\n *[no] Give the child a name, such as `name="x"`, and write `{ $suggestion }` instead.\n }\n\n\n## Language coverage\n\n# `<pluralize>` runs an English part-of-speech model over its text and puts the\n# nouns in the plural. There is no equivalent for an arbitrary language — a\n# correct plural needs that language\'s own morphology, and often its\n# dictionary — so in a document written in anything else the word is left as\n# the author typed it, and this says so rather than silently doing nothing.\n#\n# Raised only when there is nothing else to fall back on: a `pluralForm` is the\n# author supplying their own language\'s plural, and that is honored in every\n# language, which is why this can recommend it.\n#\n# $locale is the document\'s language tag, as declared.\npluralize-english-only = `<pluralize>` can only pluralize English, so its text is left unchanged in a document written in { $locale }. Write the plural form directly, or set it with the `pluralForm` attribute.\n\n\n## Checking against the schema\n\n# What the editor draws a squiggle under: the language server\'s own check of\n# the document against the DoenetML schema, run on every keystroke and\n# answered before anything is evaluated. A beginner meets these first, and\n# usually only these, because a document that does not pass them rarely gets\n# as far as producing a diagnostic from the core.\n#\n# `@doenet/lsp-tools` writes its English beside the code rather than rendering\n# it from here, for the same reason `@doenet/parser` does: it is inside the\n# language-server bundle, which `@doenet/codemirror` embeds verbatim and\n# starts as a blob worker, and a catalog on the editor\'s critical path is what\n# `packages/lsp/scripts/check-server-bundle.mjs` exists to reject. The two\n# copies are held together by a test in that package, which runs the checker\n# over a corpus and asserts every coded violation renders to exactly what the\n# checker wrote — so a message edited here without its counterpart fails\n# there.\n#\n# $tag, $parent and $attribute quote the author\'s own source back at them and\n# stay exactly as written; the angle brackets and backticks around them are\n# punctuation this catalog supplies, not part of the name.\n\nschema-element-unrecognized = Element `<{ $tag }>` is not a recognized Doenet element.\n\nschema-element-not-allowed-at-root = Element `<{ $tag }>` is not allowed at the root of the document.\n\nschema-element-not-allowed-inside = Element `<{ $tag }>` is not allowed inside of `<{ $parent }>`.\n\nschema-attribute-unrecognized = Element `<{ $tag }>` doesn\'t have an attribute called `{ $attribute }`.\n\n# $allowed is the attribute\'s permitted values, each already in double quotes\n# and joined for the reader\'s language. $isList says whether the attribute\n# takes several of them at once: one situation, two sentences, because the\n# reader has to be told they are choosing a whole list rather than a value.\nschema-attribute-value-not-allowed =\n { $isList ->\n [true] Attribute `{ $attribute }` of element `<{ $tag }>` must be a list whose items are each one of: { $allowed }\n *[other] Attribute `{ $attribute }` of element `<{ $tag }>` must be one of: { $allowed }\n }\n\n\n## The `<select>` family\'s error boxes\n##\n## The messages that replace the whole component with a red box rather than\n## warning beside it: nothing can be selected, so there is nothing to render.\n## They were the last uncoded `_error` path in the worker (#1581).\n##\n## Counts arrive as numbers rather than as text, so a language that agrees a\n## noun with them can select on them. English does not agree here — it says\n## "1 options" today and these messages reproduce it exactly, because the box\'s\n## text is what the existing suites pin.\n##\n## Being numbers, they are grouped: a count of 1500 renders as "1,500" in\n## English where the concatenated sentence these replaced wrote "1500". That is\n## the one way the English moved, and it moved in the right direction — these\n## are quantities, not identifiers like a line or a section number, which is\n## the distinction that decides between a number and a string everywhere in\n## these catalogs.\n##\n## Translators: component and attribute names — `selectFromSequence`,\n## `selectPrimeNumbers`, `from`, `to`, `step` — are DoenetML identifiers, not\n## words. They are written into these messages as they stand and must be left\n## in English exactly as written.\n\nselect-variant-name-option-count-mismatch = Invalid variant name for select. Variant name { $variantName } appears in { $numOptions } options but number to select is { $numToSelect }.\n\nselect-variant-name-without-options = Some variants are specified for select but no options are specified for possible variant name: { $variantName }.\n\nselect-variant-name-not-possible = Variant name { $variantName } that is specified for select is not a possible variant name.\n\nselect-too-few-options = Cannot select { $numToSelect } components from only { $numOptions }.\n\nselect-from-sequence-too-few-values = Cannot select { $numToSelect } values from a sequence of length { $length }.\n\nselect-from-sequence-indices-count-mismatch = Number of indices specified for select must match number to select\n\nselect-from-sequence-indices-not-integers = All indices specified for select must be integers\n\nselect-from-sequence-index-excluded = Specified index of selectfromsequence that was excluded\n\nselect-from-sequence-indices-excluded-combination = Specified indices of selectfromsequence that was an excluded combination\n\nselect-from-sequence-coprime-not-positive-integers = Cannot select coprime combinations as not selecting positive integers.\n\n# Translators: from, to and step are attribute names. They are written into\n# the message rather than passed in because these three never vary — an\n# argument is for a name that changes from one call to the next.\nselect-from-sequence-coprime-common-factor = Cannot select coprime numbers. All possible values share a common factor. (Specified values of "from" or "to" must be coprime with "step".)\n\nselect-from-sequence-coprime-single-number = Cannot select coprime combinations from a single number that is not 1.\n\nselect-from-sequence-excluded-too-many-combinations = Excluded over 70% of combinations in selectFromSequence\n\n# The sibling of `select-from-sequence-coprime-common-factor`, and a different\n# situation rather than a rewording of it: that one is decided up front, from\n# the sequence\'s own arithmetic. This one is what is left after two hundred\n# draws found no coprime combination among values that could have supplied one.\nselect-from-sequence-coprime-none-found = Could not select coprime numbers. All possible values share a common factor.\n\n# Not every value shares a factor, so a coprime selection may exist, but two\n# hundred random draws found none. Which draws are made depends on the variant.\nselect-from-sequence-coprime-draws-exhausted = Could not find coprime numbers among the values in 200 random draws, so nothing is selected.\n\nselect-from-sequence-too-few-unique-values = Cannot select { $numToSelect } unique values from sequence of length { $numPossibleValues }\n\nselect-prime-numbers-too-few-values = Cannot select { $numToSelect } values from a list of primes of length { $numValues }\n\nselect-prime-numbers-values-count-mismatch = Number of values specified for select must match number to select\n\nselect-prime-numbers-values-not-prime = All values specified for select prime number must be in the list of primes\n\nselect-prime-numbers-values-excluded-combination = Specified values of selectPrimeNumbers was an excluded combination\n\nselect-prime-numbers-excluded-too-many-combinations = Excluded over 70% of combinations in selectPrimeNumbers\n\n# Both flukes are shared by `<selectFromSequence>` and `<selectPrimeNumbers>`,\n# which say the same thing in the same words. Neither is reachable in practice\n# — each follows two hundred independent draws — but an unreachable box is\n# still a box, and it renders in whatever language the rest of the page does.\nselect-random-combination-fluke = By extremely unlikely fluke, couldn\'t select combination of random values\n\nselect-random-value-fluke = By extremely unlikely fluke, couldn\'t select random value\n\n## Inputs embedded in math\n\n# Translators: $component is the input\'s own DoenetML tag and stays in English,\n# as do the attribute names `inline`, `expanded` and `width`. An input written\n# inside `<m>` is drawn in the place it is written, inside the typeset\n# expression, which makes room for it as it grows. That needs a control small\n# enough to sit in a line of mathematics, with a width the expression can\n# measure, in an expression that is not drawn on a graph; $reason says which of\n# those this input fails. When it fails, the input is not shown at all, and the\n# expression is typeset with the input\'s value in its place — a text input\'s\n# text, a math input\'s mathematics — or with nothing there for a choice input.\nmath-embedded-input-shape-unsuitable =\n { $reason ->\n [not-inline] This `<{ $component }>` is not shown because it is inside math and is not `inline`. Add `inline` so it becomes a drop-down list, which fits inside an expression.\n [expanded] This `<{ $component }>` is not shown because it is inside math and is `expanded`. Remove `expanded`; a multi-line box does not fit inside an expression.\n [on-graph] This `<{ $component }>` is not shown because it is inside math drawn on a graph, which has no room for an input.\n *[relative-width] This `<{ $component }>` is not shown because it is inside math and has a relative width. Give the width in absolute units, such as `px`, instead.\n }\n\n## `<sampleRandomNumbers>` and `<selectRandomNumbers>`\n##\n## Translators: `mean`, `standardDeviation`, `variance`, `logMean`,\n## `logStandardDeviation`, `logVariance`, `means`, `standardDeviations`,\n## `variances`, `weights`, `numTotal`, `numSuccesses`,\n## `numDraws`, `numTrials`, `probability` and `numSamples` are\n## DoenetML attribute names. They are written into these messages as they stand\n## and must be left in English exactly as written. Each of these names the\n## attribute the author has to change, so a message that translated one would\n## point at an attribute that does not exist.\n\n# The spread reaches the sampler as a standard deviation however it was written,\n# so a negative `variance` arrives here as a `standardDeviation` of NaN and the\n# message has to name both for the author to know what to edit.\nsample-gaussian-parameters-invalid =\n Invalid mean ({ $mean }) or standardDeviation ({ $standardDeviation }) for a gaussian random variable. The mean must be a finite number, and the standardDeviation (or the variance it is derived from) must be finite and non-negative. No numbers can be sampled.\n\n# The log-normal\'s parameters describe the normal distribution its values are the\n# exponential of, not the values themselves, which is why they are named apart from\n# the gaussian\'s `mean` and `standardDeviation`. As there, a negative `logVariance`\n# arrives here as a `logStandardDeviation` of NaN, so both are named.\nsample-lognormal-parameters-invalid =\n Invalid logMean ({ $logMean }) or logStandardDeviation ({ $logStandardDeviation }) for a lognormal random variable. These describe the normal distribution the values are the exponential of: the logMean must be a finite number, and the logStandardDeviation (or the logVariance it is derived from) must be finite and non-negative. No numbers can be sampled.\n\n# The mixture\'s parameters are lists, one entry per component, which is why they are\n# named in the plural and why each arrives here already written out as a list. As\n# above, a negative `variances` entry arrives as a `standardDeviations` entry of NaN,\n# so both are named. `means` has no default, and leaving it off is the commonest way\n# to reach this message: it arrives as `not-set` then, exactly as the hypergeometric\n# attributes below do. Translate the "not set" wording, but leave the `not-set` key\n# that selects it untouched.\nsample-normal-mixture-parameters-invalid =\n Invalid means ({ $means ->\n [not-set] not set\n *[other] { $means }\n }), standardDeviations ({ $standardDeviations ->\n [not-set] not set\n *[other] { $standardDeviations }\n }), or weights ({ $weights ->\n [not-set] not set\n *[other] { $weights }\n }) for a normal mixture random variable. means must list at least one component and give a finite number for each. standardDeviations (or the variances they are derived from) and weights must each give either one finite, non-negative value per component or a single value standing for all of them, and the weights must add up to a total that is positive and finite. No numbers can be sampled.\n\n# These three attributes have no default, so leaving one out is the commonest way to\n# reach this message. Each arrives either as the number the author wrote or as\n# `not-set` for an attribute they left off entirely; translate the "not set" wording,\n# but leave the `not-set` key that selects it untouched.\nsample-hypergeometric-parameters-invalid =\n Invalid numTotal ({ $numTotal ->\n [not-set] not set\n *[other] { $numTotal }\n }), numSuccesses ({ $numSuccesses ->\n [not-set] not set\n *[other] { $numSuccesses }\n }), or numDraws ({ $numDraws ->\n [not-set] not set\n *[other] { $numDraws }\n }) for a hypergeometric random variable. numTotal must be a positive whole number, and numSuccesses and numDraws must be non-negative whole numbers no larger than numTotal. All three must also stay below about nine quadrillion, past which whole numbers can no longer be counted exactly.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\nsample-hypergeometric-draws-too-many =\n Drawing { $numDraws } items from a population of { $numTotal } would need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce numDraws, or bring it closer to numTotal.\n\nsample-binomial-parameters-invalid =\n Invalid numTrials ({ $numTrials }) or probability ({ $probability }) for a binomial random variable. numTrials must be a non-negative whole number below about nine quadrillion, past which whole numbers can no longer be counted exactly, and probability must be between 0 and 1.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\nsample-binomial-trials-too-many =\n Running { $numTrials } trials would need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce numTrials.\n\nsample-poisson-mean-invalid =\n Invalid mean ({ $mean }) for a poisson random variable. The mean must be a finite, non-negative number.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\nsample-poisson-mean-too-large =\n A poisson mean of { $mean } would need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce the mean.\n\n# $distribution names the distribution being sampled, e.g. "binomial" or\n# "multivariate hypergeometric"; $draws is roughly how many random draws each value\n# needs. Raised by `<sampleRandomNumbers>`, `<selectRandomNumbers>` and\n# `<sampleMultivariateRandomNumber>`, which count values with `numSamples`,\n# `numToSelect` and one vector respectively, so the wording names no attribute.\nsample-distribution-slow =\n Each value from this { $distribution } distribution needs about { $draws } random draws, so sampling may be slow. Reduce the distribution\'s parameters, or ask for fewer values, if the page feels sluggish.\n\n## List index operators\n\n# Raised by the index-returning list operators (`<indexOf>`, `<searchSorted>`)\n# when no `target` was given. $component names the tag the author wrote.\nindex-operator-missing-target =\n `{ $component }` has no `target` to look for, so it cannot report a position and gives 0.\n\n# Raised when the operator had no values to look through — an empty list, or one\n# whose only children were references that produced nothing.\nindex-operator-no-values =\n `{ $component }` has no values to look through, so it gives 0, which is not the index of any item.\n\n# Raised by `<searchSorted>` when its values are not in ascending order, which is\n# the one thing it asks of them. Deliberately names no offending value or\n# position: a list can pass through many arrangements while it is being built or\n# edited, and a message that changed with the arrangement would leave one entry\n# behind for each. `<sort>` is a DoenetML tag name and `allowUnsorted` is an\n# attribute name; both stay in English.\nindex-operator-values-not-sorted =\n `{ $component }` reports where a target belongs among values that are already in ascending order, and these are not in that order, so it gives 0, which is not the index of any item. Order the values first, such as with `<sort>`, or write `allowUnsorted` to have the position worked out from the values as they are.\n\n## `<sampleMultivariateRandomNumber>`\n##\n## Translators: `type`, `numInCategories` and `numDraws` are DoenetML attribute\n## names, and `hypergeometric` is one of the values `type` takes. They are written\n## into these messages as they stand and must be left in English exactly as\n## written. Each names the attribute the author has to change, so a message that\n## translated one would point at an attribute that does not exist.\n\n# Neither attribute has a default that names a population — numDraws has none at\n# all, and numInCategories falls back to a list with no categories in it — so\n# leaving one out is the commonest way to reach this message. Each arrives either\n# as the value the author wrote or as `not-set`: for numDraws when it is missing,\n# and for numInCategories when it names no categories, whether it was left off or\n# written empty. Translate the "not set" wording, but leave the `not-set` key that\n# selects it untouched.\nsample-multivariate-parameters-invalid =\n Invalid numInCategories ({ $numInCategories ->\n [not-set] not set\n *[other] { $numInCategories }\n }) or numDraws ({ $numDraws ->\n [not-set] not set\n *[other] { $numDraws }\n }) for a multivariate hypergeometric random variable. numInCategories must list at least one category, each a non-negative whole number, and numDraws must be a non-negative whole number no larger than their total. Each category, that total, and numDraws must also stay below about nine quadrillion, past which whole numbers can no longer be counted exactly.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\n# Drawing nearly the whole population is as cheap as drawing almost none of it, so\n# raising numDraws is a fix as well as lowering it. "could need" rather than "would\n# need": each category is counted at the most its draw could cost, so the count\n# these parameters are refused on is an upper bound on the work they really take.\nsample-multivariate-draws-too-many =\n Drawing { $numDraws } items from a population of { $numTotal } split into { $numCategories } categories could need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce numDraws, bring it closer to numTotal, or use fewer categories.\n\n# `type` has no default, so this is what leaving it off gets. A type the attribute\n# does not recognize falls back to no type at all and reaches this message too,\n# after a separate one naming the value that was rejected — hence "no distribution\n# was named" rather than wording that assumes the attribute is missing.\nsample-multivariate-type-not-specified =\n No multivariate distribution was named for this random variable, so nothing was sampled. Give the type attribute the name of a distribution, such as `type="hypergeometric"`.\n\n## Counting operators\n\n# Raised by `<tally>` when the author named `categories` explicitly and some\n# values matched none of them, so those values were not counted anywhere. Info\n# rather than a warning: a list fed by an input legitimately holds\n# non-categories while a student is typing. It deliberately does not say how\n# many such values there were: the diagnostics queue is append-only and\n# deduplicates by message, so a count would leave one permanent entry behind\n# for every number of stray values the list passed through while being typed.\ntally-values-outside-categories =\n Some values matched none of the declared categories, so they were not counted.\n\n# Raised by `<chart type="histogram">` when an observation falls outside the\n# outermost cut points. Only cut points an author wrote can leave any — bins the\n# chart chooses cover the data — so this says what a written `bins` left out.\n# Info rather than a warning, for the reason the message above is: leaving part\n# of a sample out of a picture is something an author may have meant, and a\n# column fed by an input passes through values outside the bins while a student\n# is typing. It deliberately does not say how many: the diagnostics queue is\n# append-only and deduplicates by message, so a count would leave one permanent\n# entry behind for every number the column passed through.\nchart-histogram-values-outside-bins =\n Some observations fell outside the `bins` cut points, so they were not counted in any bar.\n\n# Raised by `<tally>` when `categories` names the same category more than once.\n# A warning rather than info: unlike a stray value, a repeated category is a\n# property of what the author wrote, so it stays true of a settled document. The\n# message says what the counts will be, since the behavior is defensible but not\n# what an author who repeated a category by accident expects.\ntally-repeated-category =\n `categories` names the same category more than once. Each count reports the values equal to its own category, so the repeated ones all report the same number.\n\n# Raised by `<binCounts>` when no `bins` attribute was given, so there are no\n# intervals to count into. $component names the tag the author wrote.\nbin-counts-missing-bins =\n `{ $component }` has no `bins` cut points, so there are no intervals to count into and it gives no counts.\n\n# Raised by `<binCounts>` when `bins` held fewer than the two cut points needed\n# to define a single interval. $count is how many were given, and can be 0 or 1,\n# so the sentence is worded to read for both without forking on the number.\nbin-counts-too-few-cut-points =\n `bins` needs at least 2 cut points to define an interval, but received { $count }.\n\n# Raised by `<binCounts>` when its values are not all numeric, so they cannot be\n# placed between numeric cut points. $component names the tag the author wrote.\nbin-counts-values-not-numeric =\n `{ $component }` can only count numeric values into bins, but not every value it was given is numeric. All counts are 0.\n\n# Raised by `<binCounts>` when the `bins` cut points do not climb: one is\n# smaller than the one before it, so a bin would run backwards and its count\n# would come out negative, or one is not a number at all, which has the same\n# effect. Equal adjacent cut points are accepted, so the message says "at least\n# as large as" rather than "increasing": what is rejected is a decrease, not a\n# failure to strictly increase. Between two interior cut points that names an\n# empty bin; at either end the outermost-edge rule can still put a value in it.\nbin-counts-cut-points-decreasing =\n Each `bins` cut point must be a number at least as large as the one before it, but one is not a number or is smaller than its predecessor, so no counts were produced.\n\n## Charts\n\n# Raised by `<chart type="bar">` when a value is not a finite number, so it gets\n# no bar. The alternative reading of a missing bar is a value of zero, which the\n# author cannot distinguish by looking, so the absence is stated rather than left\n# to be inferred. No count: the queue is append-only and deduplicates by message,\n# and the number of such values changes as an input is typed into. (The message\n# key is `bar-chart-…` because a code names one situation forever and this one\n# was issued while the component was still spelled `<barChart>`.)\nbar-chart-values-not-drawable =\n A bar chart draws no bar for a value that is not a finite number, so those places on the chart are empty rather than zero.\n\n# Raised by `<chart type="bar">` when `barWidth` is outside the (0, 1] range a\n# fraction of a bar\'s slot can take. $barWidth is what the author wrote.\nbar-chart-bar-width-invalid =\n `barWidth` must be greater than 0 and at most 1, but { $barWidth } was given. Using 0.8 instead.\n\n# `type` has no default, so this is what `<chart>` on its own gets. A type the\n# attribute does not recognize falls back to no type at all and reaches this\n# message too, after a separate one naming the value that was rejected — hence\n# "no chart type was named" rather than wording that assumes the attribute is\n# missing.\nchart-type-not-specified =\n No chart type was named, so nothing was drawn. Give the type attribute the name of a chart, such as `type="bar"`.\n\n# Raised by `<chart>` when values are written beside its `<series>` children.\n# A value outside every series belongs to no group of the data, so there is no\n# place on the chart to draw it; saying so matters because the alternative\n# reading of the missing bar is that the value was zero.\nchart-values-outside-series =\n A chart with `<series>` children draws only the values inside them, so values written beside a series were not drawn. Move them into a series of their own.\n\n# Raised by `<chart type="line">` and `<chart type="scatter">` when a point\n# cannot be placed. Two situations reach it and the message covers both: a value\n# that is not a finite number, and a value with no `x` beside it — which is what\n# a series given fewer horizontal coordinates than values produces from the\n# position they run out. Neither is distinguishable by looking from having asked\n# for fewer points. No count: the queue deduplicates by message, and the number\n# changes as an input is typed into.\nchart-points-not-drawable =\n A point needs a finite number for both coordinates, so values with no coordinate beside them, and coordinates with no value, were not drawn.\n\n# Raised by `<chart type="pie">` for a value that is not a finite number. The\n# bar chart\'s message says the place on the chart is empty rather than zero; a\n# pie has no places, so this says the slice is missing instead. No count, for\n# the reason the others give: the queue deduplicates by message.\nchart-pie-values-not-drawable =\n A pie chart draws no slice for a value that is not a finite number, and leaves it out of the total.\n\n# Raised by `<chart type="pie">` for a negative value. Its own message rather\n# than the one above, because the reason is different in kind: a negative bar\n# hangs below the baseline it is measured from, and a pie has no baseline to\n# hang anything from, so a negative value is not merely undrawable but has no\n# reading as a share of a total. It is left out of the total as well, so the\n# slices that are drawn are shares of what was actually charted.\nchart-pie-negative-values =\n A slice is a share of a total, so a pie chart draws no slice for a negative value and leaves it out of the total.\n\n# Raised by `<chart type="pie">` when the values that could be shares of a\n# total came to zero. Nothing is drawn: there is no share to take of zero, and\n# dividing by it would put `NaN` in every angle. Not raised for a pie with no\n# values at all, which is one being written rather than one that is wrong, nor\n# for one whose every value was rejected — those already have a message naming\n# the reason.\nchart-pie-total-not-positive =\n The values of this pie chart total zero, so there are no shares to draw. A pie needs at least one value above zero.\n\n# Raised by `<chart type="pie">` holding more than one `<series>` that is not\n# hidden — a hidden one is dropped before the count, like any drawn child of a\n# container that is hidden on its own account. Concentric\n# rings are not a standard chart and a donut is a styling variant rather than a\n# second group, so there is nowhere on a pie for a second series to go.\nchart-pie-one-series =\n A pie chart draws one series, so only the first was drawn. Chart the others separately, or use a type that draws several series at once.\n\n# Raised by `<chart type="pie">` whose `<xLabel>` or `<yLabel>` child has text\n# in it; a blank one asks for nothing and is not reported. A pie\n# has no axes for either to name, so the text is authored prose with nowhere on\n# the page to go — which is worth a message where an ignored *attribute* is not,\n# because what was dropped is something the author wrote for a reader to see.\nchart-pie-axis-name-ignored =\n A pie chart has no axes, so an `<xLabel>` or `<yLabel>` was not drawn. Put the text in a `<title>` instead, or in prose beside the chart.\n\n# Raised by `<chart type="box">` for an observation that is not a finite\n# number. Left out of the summary rather than read as zero, which would move\n# every quartile of the box drawn from it. No count, for the reason the others\n# give: the queue deduplicates by message, and the number changes as an input is\n# typed into.\nchart-box-values-not-drawable =\n A box plot summarizes finite numbers, so an observation that is not one was left out of its summary.\n\n# Raised by `<chart type="box">` carrying a `categories` attribute. A box chart\n# has no categories: each of its series is one position on the axis and is named\n# by its own `<label>`, so the names in `categories` are authored text with\n# nowhere on the page to go — which is worth a message where an ignored\n# *attribute* is not, because what was dropped is something the author wrote for\n# a reader to see.\nchart-box-categories-ignored =\n A box plot names each of its boxes after the series it was drawn from, so `categories` was not used. Give each `<series>` a `<label>` instead.\n\n# Raised by `<chart type="histogram">` for an observation that is not a finite\n# number, which falls in no bin. Its own message rather than the box plot\'s,\n# because what is lost differs: there a quartile moves, here a bar is one\n# shorter. No count, for the reason the others give: the queue deduplicates by\n# message, and the number changes as an input is typed into.\nchart-histogram-values-not-drawable =\n A histogram counts finite numbers, so an observation that is not one fell in no bin.\n\n# Raised by `<chart type="histogram">` holding more than one `<series>` that is\n# not hidden — a hidden one is dropped before the count, like any drawn child of\n# a container that is hidden on its own account. Two samples counted into the\n# same bars would have to be stacked or drawn through each other, and neither is\n# a reading a histogram can be given without being told which was meant.\nchart-histogram-one-series =\n A histogram draws one series, so only the first was drawn. Chart the others separately, or compare them with `type="box"`.\n\n# Raised by `<chart type="histogram">` whose `bins` is a single number that is\n# not a number of bins: not a whole number, not positive, or more bins than a\n# picture can hold. $bins is what the author wrote and $maximum the most that\n# may be asked for. Two or more numbers are read as cut points instead, and are\n# reported by the message below.\nchart-histogram-bin-count-invalid =\n `bins` must be a whole number of bins from 1 to { $maximum }, or two or more cut points, but { $bins } was given. Choosing bins from the data instead.\n\n# Raised by `<chart type="histogram">` whose `bins` holds two or more numbers\n# that do not describe bins to draw. `<binCounts>` has a message of its own for\n# the same list, and this one differs in what happens next: a chart has data to\n# choose bins from, so it draws those rather than drawing nothing.\n#\n# A cut point that is not finite is reported here too, where `<binCounts>`\n# counts into a bin with no far end quite happily — a bar with no far end is not\n# something a picture can hold.\nchart-histogram-cut-points-invalid =\n Each `bins` cut point must be a finite number at least as large as the one before it. Choosing bins from the data instead.\n\n# Raised by `<chart type="histogram">` carrying a `categories` attribute. A\n# histogram has no categories: its positions are the bins it divided the scale\n# into, named by the numbers they run between, so the names in `categories` are\n# authored text with nowhere on the page to go — which is worth a message where\n# an ignored *attribute* is not, because what was dropped is something the\n# author wrote for a reader to see.\nchart-histogram-categories-ignored =\n A histogram names its bars by the cut points they run between, so `categories` was not used. Give `bins` the cut points you want instead.\n\n# Raised by `<chart type="histogram">` carrying a `barWidth` attribute. The gap\n# a `barWidth` below 1 leaves is what says two bars stand for separate things,\n# and a histogram\'s bars are neighboring stretches of one continuous scale —\n# so there is no slot for a width to be a fraction of.\nchart-histogram-bar-width-ignored =\n A histogram\'s bars are adjacent, with no gap between them, so `barWidth` was not used. Give `bins` fewer cut points to draw wider bars.\n\n## copy and copyWithState (D33)\n\n# `copyWithState` keeps the random choices of what it copies, so an attribute\n# written on it that decides what a choosing tag chooses, $attribute, such as\n# `numToSelect` on a `<select>`, can\'t take effect. `copy` makes a new\n# $componentType that chooses again. $attribute and $componentType stay in\n# English.\ncopy-with-state-changes-choice = `{ $attribute }` decides what this `<{ $componentType }>` chooses, so it can\'t be written on a `copyWithState`, which keeps the choices it copies. Use `copy` to make a new `<{ $componentType }>` that chooses again.\n\n# As `copy-with-state-changes-choice`, for a child $childType (an `<option>` of\n# a `<select>`, a `<choice>` of a `<choiceInput>` that shuffles its order)\n# added inside a `copyWithState`, which would change what it chooses. $kind is\n# `text` when what was added is text whose pieces become choices (the `4 5` of\n# `<shuffle copyWithState="$s">4 5</shuffle>`), and `element` otherwise.\ncopy-with-state-adds-options =\n { $kind ->\n [text] Adding text to a `copyWithState` of a `<{ $componentType }>` would add to what it chooses from, which a `copyWithState` keeps. Use `copy` to make a new `<{ $componentType }>` that chooses again.\n *[other] Adding a `<{ $childType }>` to a `copyWithState` of a `<{ $componentType }>` would change what it chooses, which a `copyWithState` keeps. Use `copy` to make a new `<{ $componentType }>` that chooses again.\n }\n\n# A random selection (a `<select>`, a `<selectFromSequence>`, ...) whose\n# parameter $attribute reads $reference, a reference as the author wrote it\n# (`$n`, `$P.x`), which reaches a `<{ $changeableType }>`. $kind is `sampler`\n# when that is a sampler (`<sampleRandomNumbers>`, ...), which draws again\n# when what it reads changes or when it is resampled, and `reader` otherwise:\n# something a reader can change, as an input, an answer, a slider, or\n# something a reader drags or writes to (a `<number>` a dragged point reads).\n# $componentType is the selection\'s own tag. A selection\'s parameters must\n# come from the DoenetML, so the selection is an error in every variant (D39,\n# SEL-1). The tags, attribute names and `indexName` stay in English.\nchoice-parameter-reader-changeable =\n { $kind ->\n [sampler] `{ $attribute }` of `<{ $componentType }>` reads `{ $reference }`, which reaches a `<{ $changeableType }>`, a sampler, which draws again when what it reads changes or when it is resampled. What a random selection chooses from must come from what the author wrote: literals, other random selections (not samplers), content that can\'t change, and a repeat\'s `indexName`.\n *[other] `{ $attribute }` of `<{ $componentType }>` reads `{ $reference }`, which reaches a `<{ $changeableType }>` that a reader can change. What a random selection chooses from must come from what the author wrote: literals, other random selections (not samplers), content that can\'t change, and a repeat\'s `indexName`.\n }\n\n# A random selection that can\'t select as written for some value its\n# parameters can take, decided at load (SEL-5). $when names those values, as\n# "`$a` = 1, `$i` = 2" (references are DoenetML, and stay as written); for\n# $kind "unproven" it gives the values at which it can\'t be decided, or, when\n# the values were bounded instead, their ranges, as "`$i` ∈ {1, 2, 3, …}"\n# (it can\'t be decided for some values in them).\n# $attribute is the parameter that isn\'t a number, or, for $kind "letters",\n# the `from` or `to` of a letters sequence whose text isn\'t letters (as text\n# with space around a letter isn\'t) (DoenetML). $variantName is a variant\n# name as the author wrote it. For $kind "variantOptions", $reference is the\n# reference an option is copied with, as written (DoenetML), and $when is\n# empty.\nchoice-not-always-possible =\n { $kind ->\n [values] `<{ $componentType }>` can\'t always select as written: when { $when }, it has { $numValues ->\n [one] 1 value\n *[other] { $numValues } values\n } to select { $numToSelect } from.\n [primes] `<{ $componentType }>` can\'t always select as written: when { $when }, it has { $numValues ->\n [one] 1 prime\n *[other] { $numValues } primes\n } to select { $numToSelect } from.\n [options] `<{ $componentType }>` can\'t always select as written: when { $when }, it has { $numValues ->\n [one] 1 option\n *[other] { $numValues } options\n } to select { $numToSelect } from.\n [coprime] `<{ $componentType }>` can\'t always select as written: when { $when }, no { $numToSelect } of its values have no common factor.\n [combinations] `<{ $componentType }>` can\'t always select as written: when { $when }, every combination of { $numToSelect } values is excluded.\n [variants] `<{ $componentType }>` can\'t always select as written: when { $when }, `numToSelect` is { $numToSelect }, but variant { $variantName } has { $numValues ->\n [one] 1 option\n *[other] { $numValues } options\n }.\n [number] `<{ $componentType }>` can\'t always select as written: when { $when }, `{ $attribute }` isn\'t a number.\n [letters] `<{ $componentType }>` can\'t always select as written: when { $when }, `{ $attribute }` isn\'t letters.\n [variantOptions] DoenetML can\'t show that `<{ $componentType }>` can always select as written: the option it copies with `{ $reference }` can be a different option in each variant, so a variant may have no option for it, while another option names the variants it is for (`selectForVariants`). Copy an option that the DoenetML decides, or name no variants.\n *[unproven] DoenetML can\'t show that `<{ $componentType }>` can always select as written: it can\'t decide whether it can when { $when }. Write its parameters so that it can, such as with `numToSelect` no larger than the fewest values it can have.\n }\n\n# A parameter of a random selection that the load-time check can\'t analyse\n# (SEL-6). $part is what isn\'t analysable, as written (DoenetML). With\n# $through "component", it is inside the `<{ $throughType }>` that\n# $reference names.\nchoice-parameter-not-analysable =\n { $through ->\n [component] `{ $attribute }` of `<{ $componentType }>` reads `{ $reference }`, a `<{ $throughType }>` holding `{ $part }`, which DoenetML can\'t analyse to show that the selection can always be made. A parameter can be a literal; a reference to one value another random selection selects, a repeat\'s index or value, a module attribute, or a `<number>`, `<integer>` or `<math>` of these; and these combined with `+`, `-`, `*`, `/`, `min`, `max`, `abs`, `floor`, `ceil` and `round`.\n *[other] `{ $attribute }` of `<{ $componentType }>` reads `{ $part }`, which DoenetML can\'t analyse to show that the selection can always be made. A parameter can be a literal; a reference to one value another random selection selects, a repeat\'s index or value, a module attribute, or a `<number>`, `<integer>` or `<math>` of these; and these combined with `+`, `-`, `*`, `/`, `min`, `max`, `abs`, `floor`, `ceil` and `round`.\n }\n\n# A random selection whose parameter $attribute (an attribute name, which\n# stays in English) isn\'t a number, or, with $kind "letters", isn\'t letters,\n# so it can\'t select as written (D39). $componentType is the tag.\nchoice-parameter-not-a-number =\n { $kind ->\n [letters] `<{ $componentType }>` can\'t select as written: `{ $attribute }` isn\'t letters.\n *[number] `<{ $componentType }>` can\'t select as written: `{ $attribute }` isn\'t a number.\n }\n\n# A document loaded from a URI, $uri, has no reader state, so a\n# `copyWithState` of it has nothing to carry and is made as a `copy`.\ncopy-with-state-of-uri = `copyWithState` of `{ $uri }` carries nothing more than `copy`, since a document loaded from a URI has no state. Write `copy`.\n\n# An attribute $attribute written on a `copyWithState` reaches a choosing tag\n# inside it, such as a `<module>` attribute that sets a nested `numToSelect`.\n# The choices copied with the state are kept, so it changes nothing there.\ncopy-with-state-attribute-reaches-choice = `{ $attribute }` reaches a choice inside this `copyWithState`, which keeps the choices it copies, so it does not change them. Use `copy` to make the choices again.\n\n# A `<sort>` or `<shuffle>` ($component) whose items are of more than one\n# type (COLL-4, D41). $first and $second are two of the items found, each\n# described by a kind: "one", a component of the tag $first; "piece", the\n# text $firstPiece the author wrote, read as the tag $first; "group", a\n# `<group>` of $firstCount components; or "item", the items of the\n# collection $first (`repeat`, `select`, `conditionalContent`), each holding\n# $firstCount components. Likewise for $second. $suggestType is `yes` when\n# one of them is text the author wrote and the other a number, math or text,\n# so that `type` (how to read the text) can make them one type; it can\'t\n# beside a `<p>`, a point, a boolean or a group. $wrap says how to make them\n# one type when one is content an author may take for a value (D46): `m`, an\n# `<m>` ($mTag: `m`, `me` or `men`) beside a math, which a `<math>` around it\n# reads as math; `label`, a `<label>` beside a text, which a `<text>` around it\n# reads as text; `no` otherwise. $mTag is `m` when $wrap isn\'t `m`.\nreorder-items-of-several-types = `<{ $component }>` takes items of one type, but it has { $firstKind ->\n [group] a `<group>` of { $firstCount } components\n [item] the items of a `<{ $first }>` (each of { $firstCount } components)\n [piece] `{ $firstPiece }` (read as a `<{ $first }>`)\n *[one] a `<{ $first }>`\n } and { $secondKind ->\n [group] a `<group>` of { $secondCount } components\n [item] the items of a `<{ $second }>` (each of { $secondCount } components)\n [piece] `{ $secondPiece }` (read as a `<{ $second }>`)\n *[one] a `<{ $second }>`\n }. Give each type a `<{ $component }>` of its own{ $suggestType ->\n [yes] , or write `type` to say how to read the text\n *[other] {""}\n }.{ $wrap ->\n [m] {" "}`<{ $mTag }>` shows LaTeX; it isn\'t a math. To sort or shuffle it with other maths, write `<math><{ $mTag }>…</{ $mTag }></math>` (or `<math>$mm</math>` for an `<{ $mTag }>` named `mm`), which reads its LaTeX as math.\n [label] {" "}A `<label>` shows its content; it isn\'t a text. To sort or shuffle it with other texts, write `<text><label>…</label></text>` (or `<text>$l</text>` for a `<label>` named `l`), which reads it as text.\n *[other] {""}\n }\n\n# A `<sort>` or `<sortIndices>` ($component) of items with no value to\n# compare, with no `sortByProp` (COLL-4, D46): content ($kind `content`, as a\n# `<p>`), or objects other than points and vectors ($kind `object`, as an\n# `<atom>` or a `<line>`). $item is the tag of the first item. $suggestText is\n# `yes` for content with a `text` property, which `sortByProp="text"` sorts by.\n# `sortByProp` and the tags stay in English.\nsort-needs-sort-by-prop = `<{ $component }>` can\'t compare its items: { $kind ->\n [content] `<{ $item }>` is content, with no value to sort by\n *[object] `<{ $item }>` has no value to sort by\n }. Add `sortByProp` naming the property to compare{ $suggestText ->\n [yes] , as `<{ $component } sortByProp="text">` compares the text each one shows\n *[other] , as `<{ $component } sortByProp="name">` does for a property `name`\n }.\n\n# A `<sort>` or `<sortIndices>` ($component) whose `sortByProp` names no\n# property ($property) of an item it sorts, the first such of the tag $item\n# (#2627 item 5, DIAG-3). Reported at load. $suggestion (when $hasSuggestion is\n# `true`) is the property in the case the item has it, as property names are\n# case-sensitive (D51). `sortByProp`,\n# the property and the tags stay in English.\nsort-by-prop-names-nothing = `sortByProp="{ $property }"` names no property of a `<{ $item }>`, so the `<{ $component }>` can\'t compare its items by it{ $hasSuggestion ->\n [true] . Did you mean `sortByProp="{ $suggestion }"`?\n *[other] .\n }\n\n# An `<answer>` reads a response from a `<conditionalContent>` that is of\n# one type, $firstType, in one case and of another, $secondType, in another\n# (TYPE-2, COMP-11): the response would change type as the case shown\n# changes, so it is an error at load, shown in place of the\n# `<conditionalContent>`. The tags stay in English.\nanswer-responses-of-several-types = An `<answer>` reads a response from this `<conditionalContent>` that is a `<{ $firstType }>` in one case and a `<{ $secondType }>` in another, but a response has one type, decided from what is written. Give it one type in every case.\n\n# The `for` of a `<repeat>` holds items of one type (COLL-5, D44), decided\n# at load. $reason is `mix` for items of more than one type, the first two\n# described as in `reorder-items-of-several-types` ($firstKind, $first,\n# $firstCount, $firstPiece and the same for $second); or `type` when the\n# repeat says `type="$type"` and an item, described by the $first\n# arguments, is of another type. $suggestText is `yes` when text written in\n# `for` is beside a text, so `type="text"` would read the text as text.\n# `for`, `type` and the tags stay in English.\nrepeat-for-items-of-several-types = { $reason ->\n [type] This `<repeat>` says `type="{ $type }"`, so every item of its `for` is to be a { $type }, but `for` has { $firstKind ->\n [group] a `<group>` of { $firstCount } components\n [item] the items of a `<{ $first }>` (each of { $firstCount } components)\n [piece] `{ $firstPiece }` (read as a `<{ $first }>`)\n *[one] a `<{ $first }>`\n }. Remove `type`, or give that item a `<repeat>` of its own.\n *[mix] The `for` of a `<repeat>` holds items of one type, but it has { $firstKind ->\n [group] a `<group>` of { $firstCount } components\n [item] the items of a `<{ $first }>` (each of { $firstCount } components)\n [piece] `{ $firstPiece }` (read as a `<{ $first }>`)\n *[one] a `<{ $first }>`\n } and { $secondKind ->\n [group] a `<group>` of { $secondCount } components\n [item] the items of a `<{ $second }>` (each of { $secondCount } components)\n [piece] `{ $secondPiece }` (read as a `<{ $second }>`)\n *[one] a `<{ $second }>`\n }. Give each type a `<repeat>` of its own{ $suggestText ->\n [yes] , or write `type="text"` to read the text written in `for` as text\n *[other] {""}\n }.\n }\n\n# A `<sort>` or `<sortIndices>` ($component) of an item holding several\n# components, which has nothing to be compared by (COLL-4, D41). The item is\n# described by $itemKind: "group", a `<group>` of $itemCount components, or\n# "item", the items of the collection $item, each holding $itemCount\n# components. The message names what to write instead: a `<collect>` of the\n# components, of the tag $firstType of the first of them, or a name in each\n# item; and, for a `<sort>`, a `<shuffle>`, which keeps them together.\nsort-item-of-several = { $itemKind ->\n [item] `<{ $component }>` can\'t compare the items of a `<{ $item }>`, each of { $itemCount } components. To sort one component of each, name it (`<{ $component }>$r.n</{ $component }>` sorts the `n` of each item of `r`), or sort a `<collect>` of the components (`<collect componentType="{ $firstType }" from="$r"/>`).\n *[group] `<{ $component }>` can\'t compare a `<group>` of { $itemCount } components. To sort its components, sort a `<collect>` of them (`<collect componentType="{ $firstType }" from="$g"/>` of a group `g`), or write them in the `<{ $component }>` without the group.\n }{ $component ->\n [sort] {" "}Use `<shuffle>` to keep each item\'s components together.\n *[other] {""}\n }\n';
1907
+ const diagnostics = '# Errors and warnings surfaced to the reader or author. Produced by the worker\n# but addressed to whoever is looking at the screen, so these are selected by\n# `uiLocale`, not `documentLocale`.\n#\n# Message ids are lower-kebab-case Fluent identifiers, optionally with a\n# single `.attribute` suffix (`invalid-attribute-value`).\n#\n# Reached by stable diagnostic code rather than by a literal `t("key")` call:\n# `DIAGNOSTIC_CODES` in `src/diagnostics.ts` maps `doenet-w0001` to the id\n# below, and `lint:i18n` treats that registry as the call site. Adding a\n# message here without registering a code for it fails the lint as an orphan.\n#\n# Translators: `through`, `endpoint`, `midpointOffset`, `numDimensions` and the\n# like are DoenetML attribute names. They are part of the language, not prose,\n# and must be left in English exactly as written.\n\n## `<lineSegment>`\n\n# $attributes is a list of attribute names; $attributesCount is its length.\nline-segment-attributes-ignored-with-endpoints =\n { $attributesCount ->\n [one] { $attributes } is ignored when two endpoints are specified\n *[other] { $attributes } are ignored when two endpoints are specified\n }\n\n# $attributes is a list of attribute names; $attributesCount is its length.\nline-segment-attributes-ignored-with-endpoint-and-midpoint =\n { $attributesCount ->\n [one] { $attributes } is ignored when an endpoint and a midpoint are both specified\n *[other] { $attributes } are ignored when an endpoint and a midpoint are both specified\n }\n\nline-segment-midpoint-offset-without-midpoint = midpointOffset has no effect without a midpoint\n\n## `<line>`\n\nline-points-undetermined-dimensions = Line through points of undetermined dimensions.\n\nline-points-too-few-dimensions = Line must be through points of at least two dimensions.\n\n# $variables is a bare enumeration of variable names, not an "and" list.\nline-points-depend-on-variables = Line is through points that depend on variables: { $variables }.\n\nline-equation-invalid-format = Invalid format for equation of line in variables { $variable1 } and { $variable2 }.\n\n## `<ray>`\n\nray-overprescribed-through = Ray is prescribed by through, endpoint, and direction. Ignoring specified through.\n\nray-dimension-mismatch = numDimensions mismatch in ray.\n\n## `<vector>`\n\nvector-overprescribed-head = Vector is prescribed by head, tail, and displacement. Ignoring specified head.\n\nvector-dimension-mismatch = numDimensions mismatch in vector.\n\n## Attracting and constraining\n\n# $component is the DoenetML tag of the child that was named, e.g. "polygon".\nattract-to-without-nearest-point = Cannot attract to a `<{ $component }>` as it doesn\'t have a nearestPoint state variable.\n\nconstrain-to-without-nearest-point = Cannot constrain to a `<{ $component }>` as it doesn\'t have a nearestPoint state variable.\n\nconstrain-to-interior-without-nearest-point = Cannot constrain to interior of a `<{ $component }>` as it doesn\'t have a nearestPoint state variable.\n\n## `<choiceInput>`\n\n# Translators: `labelPosition` is an attribute name and stays in English.\nchoice-input-label-position-ignored = labelPosition is ignored for non-inline choiceInput\n\n## Ordering children by index\n##\n## These name the component in prose rather than as a tag, matching how the\n## messages have always read. The component names stay in English; the nouns\n## around them are prose and should be translated.\n\nchoice-input-indices-count-mismatch = Ignoring indices specified for choiceInput as number of indices doesn\'t match number of choice children.\n\npretzel-indices-count-mismatch = Ignoring indices specified for problem as number of indices doesn\'t match number of problem children.\n\nshuffle-indices-count-mismatch = Ignoring indices specified for shuffle as number of indices doesn\'t match number of components.\n\n# $component is `choiceInput`, `pretzel` or `shuffle` — a DoenetML component\n# name, so it stays in English.\nindices-ignored-out-of-range = Ignoring indices specified for { $component } as some indices out of range.\n\npretzel-indices-repeated = Ignoring indices specified for pretzel as some indices are repeated.\n\npretzel-circuit-first-index = Ignoring indices specified for pretzel in circuit mode as the first index must be 1.\n\n## `<shuffle>` and `<sort>`\n\n# $component is `shuffle` or `sort`. These two components accept the same\n# children and fail the same ways, so they share their messages.\nstring-children-need-type = For `<{ $component }>` to work with string children, a `type` attribute must be specified.\n\n# $type is what the author wrote; math, text, number and boolean are attribute\n# values and stay in English.\ninvalid-type-defaulting-to-math = Invalid type { $type } for { $component } component. Must be one of math, text, number, or boolean. Defaulting to math.\n\n# Raised when `type` names something that is not one of the four readings. The\n# value is dropped rather than replaced by a guess, so the children are read as\n# though no type had been written. $type is what the author wrote.\ninvalid-type-ignored =\n Invalid type { $type } for { $component } component. Must be one of math, text, number, or boolean. Ignoring it and reading the values as though no type had been given.\n\n# $value is the string child that could not be used.\nstring-not-valid-component-to-arrange = String "{ $value }" is not a valid component to { $component }. Ignoring.\n\n## Types and variables\n\ninvalid-type-defaulting-to-number = Invalid type { $type }, setting type to number.\n\ninvalid-variable-value = Invalid value of a variable: `{ $value }`\n\n## Variants\n\n# $index is what the author wrote, reproduced verbatim rather than as a number:\n# it reached this message precisely because it was not one.\nvariant-index-must-be-number = Variant index { $index } must be a number\n\nvariant-index-must-be-integer = Variant index { $index } must be an integer\n\n# Translators: `variantsToInclude` and `variantsToExclude` ($attribute) are\n# attribute names and stay in English. $names lists the names written in\n# $attribute that are not variants, each already in backticks; $namesCount is\n# how many there are. $component is the tag whose variants they are\n# (`document`, `problem`, `section`, …). $numVariants is how many variants it\n# has, and $variants lists their names, each already in backticks, shortened\n# with `…` when there are many. $outcome is `allVariants` when\n# `variantsToInclude` names no variant at all, so every variant is included,\n# and `ignored` otherwise.\nvariant-name-unknown = `{ $attribute }` names { $names }, which { $namesCount ->\n [one] is not a variant\n *[other] are not variants\n } of this { $component ->\n [document] document\n *[other] `<{ $component }>`\n }. { $numVariants ->\n [one] Its one variant is named { $variants }.\n *[other] Its { $numVariants } variants are named { $variants }.\n } { $outcome ->\n [allVariants] As `{ $attribute }` names no variant, every variant is included.\n *[ignored] { $namesCount ->\n [one] The name is ignored.\n *[other] The names are ignored.\n }\n }\n\n# Translators: $attribute is an attribute of `<variantControl>`\n# (`numVariants`, `variantNames`, `seeds`, …), which stays in English. Each\n# reference (`$n`) written in it is ignored, since a document\'s variants are\n# decided before anything in it, so before a reference can be read; what is\n# written beside a reference is kept. Reported once for the attribute,\n# however many references it holds.\nvariant-control-reference = `{ $attribute }` of `<variantControl>` holds a reference. A document\'s variants are decided before anything else in it, so references can\'t be read there and are ignored. Write the value itself.\n\n# Translators: `variantNames` stays in English. $names lists the names\n# written again, each already in backticks, as written the second time;\n# $namesCount is how many there are. Names are compared without case, so\n# `x` and `X` are the same name.\nvariant-name-repeated = `variantNames` names { $names } again. Variant names are compared without case, so each must be different. { $namesCount ->\n [one] The name is kept where it is first written, and the repeat is ignored.\n *[other] Each name is kept where it is first written, and the repeats are ignored.\n }\n\n# Translators: `variantsToExclude` and `variantsToInclude` stay in English.\n# $component is the tag whose variants they are (`document`, `problem`, …).\n# $withInclude is `yes` when `variantsToInclude` is written too.\nvariants-all-excluded = `variantsToExclude` excludes every variant of this { $component ->\n [document] document\n *[other] `<{ $component }>`\n }{ $withInclude ->\n [yes] {" "}that `variantsToInclude` names\n *[no] {""}\n }, which leaves none. Every variant is included.\n\n# Translators: `<variantControl>`, `extend`, `copy` and `copyWithState` stay\n# in English. A document\'s variants are decided before anything else in it,\n# so a `<variantControl>` can\'t be made from another: the author must write\n# its attributes out.\nvariant-control-made-from = A `<variantControl>` can\'t be made with `extend`, `copy` or `copyWithState`. A document\'s variants are decided before any reference in it can be read. Write the attributes on the `<variantControl>` itself.\n\n# Translators: `<variantControl>` stays in English. A reference to a\n# `<variantControl>` (`$vc`, `$vc.numVariants`) names nothing: it shows\n# nothing, and nothing can be read from it, not even the properties every\n# component has (`hidden`). $reference is the reference as written,\n# with its `$`. When $isAttribute is `true`, $property is the name after it,\n# which is one of the `<variantControl>`\'s attributes (`numVariants`); both\n# are DoenetML and stay in English.\nreference-to-variant-control = `{ $reference }` names nothing to show. A `<variantControl>` only sets how the variants of the document or section it is written in are chosen, before anything in it is made, so it shows nothing and nothing can be read from it{ $isAttribute ->\n [true] : `{ $property }` is one of its attributes, which a reference can\'t read.\n *[other] .\n }\n\n## `<sideBySide>`\n\n# $component is `sideBySide` or `sbsGroup`.\nside-by-side-absolute-widths = `<{ $component }>` is not implemented for absolute measurements. Setting widths to relative.\n\nside-by-side-absolute-margins = `<{ $component }>` is not implemented for absolute measurements. Setting margins to relative.\n\nside-by-side-no-block-child = Invalid `<{ $component }>`: it must have at least one block child.\n\n## `<label>`\n\n# Translators: `for` is an attribute name and stays in English.\nlabel-for-ignored-on-graphical = The `for` attribute on graphical `<label>` is ignored.\n\nlabel-for-must-resolve-to-one = The `for` attribute on `<label>` must resolve to exactly one component.\n\nlabel-for-unresolved = The `for` attribute on `<label>` could not be resolved to a component.\n\nlabel-for-answer-with-authored-inputs = The `for` attribute on `<label>` references an `<answer>` with explicitly authored inputs; reference the input directly.\n\nlabel-for-answer-without-input = The `for` attribute on `<label>` references an `<answer>` without an input to label.\n\nlabel-for-must-reference-input-or-answer = The `for` attribute on `<label>` must reference an input or an answer.\n\n## Accessibility\n\n# $component is a DoenetML tag, e.g. "graph" or "image".\naccessibility-short-description-or-decorative = For accessibility, `<{ $component }>` must either have a short description or be specified as decorative.\n\naccessibility-video-short-description = For accessibility, `<video>` must have a short description.\n\naccessibility-input-short-description-or-label = For accessibility, `<{ $component }>` must have a short description or a label.\n\n# The companion to the message above, for the input an `<answer>` creates on the\n# author\'s behalf. Two messages rather than one with the subject passed in: the\n# subject is a phrase here, not a name, and a phrase handed over as an argument\n# would never reach a translator.\naccessibility-answer-input-short-description-or-label = For accessibility, an `<answer>` creating an input must have a short description or a label.\n\naccessibility-short-description-contains-math = Short descriptions should not contain math components such as `<{ $component }>`. Spell out any math with words.\n\n# $colorName is an attribute name and stays in English. $ratio and $threshold\n# are contrast ratios; $mode says which theme the shortfall was measured in,\n# and is `dark` or `light`.\naccessibility-section-title-insufficient-contrast =\n { $mode ->\n [dark] { $colorName } has insufficient contrast for the section heading text (dark mode) ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1).\n *[other] { $colorName } has insufficient contrast for the section heading text ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1).\n }\n\n## `<circle>`\n\n# $count is the number of through points.\ncircle-through-points-non-numerical = Haven\'t implemented `<circle>` through { $count } points in case where the points don\'t have numerical values.\n\ncircle-too-many-through-points = Cannot calculate circle through more than 3 points.\n\ncircle-overprescribed-radius-center-points = Cannot calculate circle with specified radius, center and through points.\n\ncircle-center-with-multiple-points = Cannot calculate circle with specified center through more than 1 point.\n\n# $distance and $radius arrive as strings, not numbers: $radius is the author\'s\n# own value echoed back for diagnosis, and formatting it as a quantity would\n# round a radius of 0.0001 away to 0.\ncircle-radius-too-small = Cannot calculate circle: given that the distance between the two points is { $distance }, the specified radius { $radius } is too small.\n\ncircle-radius-with-many-points = Cannot create circle through more than two points with a specified radius.\n\ncircle-invalid-center-or-through-points = Invalid center or through points of circle.\n\ncircle-radius-center-with-multiple-points = Cannot calculate radius of circle with specified center through more than 1 point.\n\ncircle-change-radius-non-numerical = Cannot change radius of circle with non-numerical through points\n\ncircle-radius-with-points-non-numerical = Cannot create circle through more than one point with specified radius when don\'t have numerical values.\n\ncircle-change-center-non-numerical = Haven\'t implemented changing center of circle through points with non numerical values.\n\n## `<function>`\n\n# Two independent counts in one sentence, so the variants multiply out. A\n# select\'s variants each need their own line, so the inner one spans lines too;\n# that is safe because newlines inside a placeable never reach the rendered\n# value. Only text continuing onto a further line would.\nfunction-domain-insufficient-dimensions =\n { $intervals ->\n [one] Insufficient dimensions for domain for function. Domain has { $intervals } interval but the function has { $inputs ->\n [one] { $inputs } input\n *[other] { $inputs } inputs\n }.\n *[other] Insufficient dimensions for domain for function. Domain has { $intervals } intervals but the function has { $inputs ->\n [one] { $inputs } input\n *[other] { $inputs } inputs\n }.\n }\n\nfunction-domain-invalid-format = Invalid format for domain for function.\n\n# $type is what was being read off the point. It selects the wording rather\n# than being substituted into it: "maximum", "slope" and the rest are English\n# nouns, and a noun handed over as an argument would never reach a translator.\n# The catch-all reproduces the pre-catalog behavior for a value not listed here.\nfunction-ignoring-non-numerical =\n { $type ->\n [maximum] Ignoring non-numerical maximum of function.\n [minimum] Ignoring non-numerical minimum of function.\n [extremum] Ignoring non-numerical extremum of function.\n [point] Ignoring non-numerical point of function.\n [slope] Ignoring non-numerical slope of function.\n *[other] Ignoring non-numerical { $type } of function.\n }\n\nfunction-ignoring-empty =\n { $type ->\n [maximum] Ignoring empty maximum of function.\n [minimum] Ignoring empty minimum of function.\n [extremum] Ignoring empty extremum of function.\n [point] Ignoring empty point of function.\n *[other] Ignoring empty { $type } of function.\n }\n\nfunction-points-too-close = Function contains two points with locations too close together. Can\'t define function.\n\nfunction-iterates-input-output-mismatch =\n { $inputs ->\n [one] Function iterates are possible only if the number of inputs of the function is equal to the number of outputs. This function has { $inputs } input and { $outputs ->\n [one] { $outputs } output\n *[other] { $outputs } outputs\n }.\n *[other] Function iterates are possible only if the number of inputs of the function is equal to the number of outputs. This function has { $inputs } inputs and { $outputs ->\n [one] { $outputs } output\n *[other] { $outputs } outputs\n }.\n }\n\n## `<sequence>`\n\nsequence-invalid-length = Invalid length of sequence. Must be a non-negative integer.\n\n# $type is a sequence type: number, letters, or math.\nsequence-invalid-step = Invalid step of sequence. Must be a number for sequence of type { $type }.\n\n# $attribute is `from` or `to` — an attribute name, so it stays in English.\nsequence-invalid-endpoint-number = Invalid "{ $attribute }" of number sequence. Must be a number.\n\nsequence-invalid-endpoint-letters = Invalid "{ $attribute }" of letters sequence. Must be a letter combination.\n\nsequence-invalid-endpoint = Invalid "{ $attribute }" of sequence.\n\nselect-from-sequence-coprime-not-numbers = coprime ignored since not selecting numbers\n\nselect-from-sequence-coprime-with-exclude-combinations = coprime ignored since excludeCombinations specified\n\n## Resolving a `target`\n##\n## Raised by the components that take a `target` attribute. They resolve it\n## through the same code and fail the same two ways, so they share these two\n## messages rather than spelling each one out per component: $source is the tag\n## of the component that raised it, part of the DoenetML language, so it stays\n## in English.\n\ntarget-not-found = Invalid target for `<{ $source }>`: cannot find target.\n\n# $property is the state variable that was looked for; $component is the tag it\n# was looked for on. $suggestion (when $hasSuggestion is `true`) is the\n# property in the case the component has it: property names are\n# case-sensitive (D51), so `$n.Value` suggests `value`, and an array entry is\n# suggested by index (`X1` on a point suggests `xs[1]`).\ntarget-state-variable-not-found = Invalid target for `<{ $source }>`: cannot find a state variable named "{ $property }" on a `<{ $component }>`{ $hasSuggestion ->\n [true] . Did you mean "{ $suggestion }"?\n *[other] .\n }\n\n## `<odeSystem>`\n\node-system-variables-match-independent = Variables of `<odeSystem>` must be different than independent variable.\n\node-system-duplicate-variable-names = Can\'t define ODE RHS functions with duplicate dependent variable names.\n\node-system-rhs-function-error = Cannot define ODE RHS function. Error creating mathjs function.\n\n## `<angle>`, `<parabola>`, and `<intersection>`\n\n# $count is how many line children were found.\nangle-too-many-lines = Cannot define an angle between { $count } lines\n\nangle-invalid-through-point = Invalid point in through of `<angle>`\n\nparabola-vertex-too-many-points = Haven\'t implemented parabola with vertex through more than 1 point.\n\nparabola-too-many-points = Haven\'t implemented parabola through more than 3 points.\n\nintersection-too-many-items = Haven\'t implemented intersection for more than two items\n\n## Other math components\n\nionic-compound-not-two-ions = Have not implemented ionic compound for anything other than two ions.\n\nionic-compound-needs-cation-and-anion = Ionic compound implemented only for one cation and one anion.\n\n# $equation is the equation as the author wrote it.\nsolve-equations-cannot-evaluate = Cannot solve equation as could not evaluate equation: { $equation }\n\n# Translators: `operandNumber` is an attribute name and stays in English.\nmath-operators-operand-number-required = Must specify a operandNumber when extracting a math operand.\n\neigen-decomposition-failed = Could not calculate eigenvalues of matrix\n\n## `<matchesPattern>`\n\n# Translators: `parameters` is an attribute name and stays in English.\n# $parameters lists the parameters as the author wrote them;\n# $parametersCount is how many there were.\nmatches-pattern-parameter-not-in-pattern =\n { $parametersCount ->\n [one] `<matchesPattern>`: the parameter { $parameters } does not occur in the pattern, so it will always match a blank.\n *[other] `<matchesPattern>`: the parameters { $parameters } do not occur in the pattern, so they will always match a blank.\n }\n\n## `<graph>`\n\n# Translators: grid is an attribute name and none, medium and dense are its\n# values; all four stay in English, as does the example. $grid is the value the\n# author wrote, reproduced verbatim — it reached this message precisely because\n# it was not one of the forms listed.\ngraph-grid-invalid = `<graph>`: cannot interpret grid="{ $grid }". It must be none, medium, dense, or two positive numbers separated by a space or a comma, such as grid="1 0.5". No grid is drawn.\n\n## `<slopeField>` and `<vectorField>`\n\n# $component is the field\'s tag and $alternative the sibling field component\'s,\n# or `none` when the function would not suit it either; both are DoenetML tags\n# and stay in English, as do the example expressions. $expected is how many\n# outputs the component needs, $found how many the given function has. What a\n# field draws a mark from is the function\'s outputs, so the wrong number of\n# them means there is nothing to draw — and the author almost always wanted the\n# other component.\nfield-function-wrong-num-outputs =\n `<{ $component }>` needs a function with { $expected ->\n [one] one output, the slope y\' at each point, such as `y - x`\n *[other] two outputs, the vector at each point, such as `(y, -x)`\n }, but the function it was given has { $found ->\n [one] { $found } output\n *[other] { $found } outputs\n }. { $alternative ->\n [none] Nothing is drawn.\n *[other] `<{ $alternative }>` is the component for that function. Nothing is drawn.\n }\n\n# Translators: retired. `function` is an attribute name and stays in English.\n# It warned that a field had been given its function both as an attribute and\n# inside the component; the attribute no longer exists, so the two can no\n# longer disagree. Kept because diagnostic codes are never reused.\nfield-function-attribute-ignored-with-child = The `function` attribute is ignored because the function is also given inside the component; the one inside is used. Give the function only one of the two ways.\n\n# Translators: `variables` and `function` are a DoenetML attribute and tag and\n# stay in English, as does $component, the field\'s own tag. The attribute names\n# the inputs of an expression written directly inside the component; when there\n# is no such expression there is nothing for it to name, and $reason says which\n# of the two ways that happened.\nfield-variables-ignored =\n `<{ $component }>`: the `variables` attribute names the variables of an expression written directly inside the component. { $reason ->\n [function-child] The function here is given as a `<function>` child, which names its own variables, so `variables` is ignored.\n *[no-expression] No such expression is given here, so `variables` is ignored.\n }\n\n## PreFigure renderer\n\n# Translators: xLabelPosition, yLabelPosition and their values are attribute\n# names and stay in English, as does the renderer\'s name.\nprefigure-x-label-position-unsupported = `<graph>`: xLabelPosition="left" is not supported in prefigure renderer; using right-position behavior.\n\nprefigure-y-label-position-unsupported = `<graph>`: yLabelPosition="bottom" is not supported in prefigure renderer; using top-position behavior.\n\nprefigure-invalid-axis-bounds = `<graph>`: invalid axis bounds for prefigure conversion; using default bbox (-10,-10,10,10).\n\nprefigure-invalid-width = `<graph>`: invalid width for prefigure conversion; using default diagram width 425.\n\nprefigure-invalid-aspect-ratio = `<graph>`: invalid aspectRatio for prefigure conversion; using default aspect ratio 1.\n\n# Translators: the renderer\'s name, prefigure, stays in English. "grid" here is\n# the coordinate grid itself rather than the attribute that asks for one, so it\n# is prose and is translated.\nprefigure-grid-spacing-too-fine = `<graph>`: the grid spacing is too fine for the axis limits; the grid is omitted in the prefigure renderer.\n\nprefigure-annotations-not-rendered = `<graph>`: annotations will not be rendered when not using the PreFigure renderer.\n\nmultiple-annotations-children = Multiple `<annotations>` children found in `<graph>`; all but the last one are ignored.\n\n## Referring to other components\n##\n## `<updateValue>`\'s own "cannot find target" messages are not here: it\n## resolves a target the same way `<animateFromSequence>` does and fails the\n## same ways, so the two share `target-not-found` and\n## `target-state-variable-not-found` above.\n\ncopy-unrecognized-component-type = Cannot extend or copy an unrecognized component type: { $type }.\n\ncopy-prop-not-found = Could not find prop { $property } on a component of type { $component }\n\ncollect-no-source = No source found for collect.\n\ncollect-invalid-component-type = Cannot collect components of type `<{ $component }>` as it is an invalid component type.\n\n# $reference is the reference exactly as the author wrote it, `$` and all —\n# the `$p.styleDescription[1]` of `<text extend="$p.styleDescription[1]" />`.\n# An index only means something applied to an array, and the thing named here\n# is not one. The reference is quoted back rather than explained because the\n# text in front of the author is the only part of this they can act on: the\n# state variable and component index the core knows about are its own business\n# and go to the console instead.\nreference-index-unavailable = Cannot reference index `{ $reference }`\n\n# An index on a component that makes nothing an index selects: `$sec[2]` on a\n# `<section>`, `$n[1]` on a `<number>`. $reference is the reference as the\n# author wrote it, with its `$`, and $component the tag name of what it\n# reached; both stay as written. An index selects among what a component makes\n# (the entries of a list, the iterations of a repeat), never among the children\n# of a component, which are reached by name.\n\nreference-index-selects-nothing = `{ $reference }`: an index cannot select anything in this `<{ $component }>`. An index selects among what a component makes, such as the entries of a list or the iterations of a repeat, not among the children of a component. To refer to a child, give it a name and write that name after a `.`.\n\n# An index after a `<group>` that holds several components, or none: `$g[2]`\n# on a `<group name="g">` holding two, or `$r[1][2]`, an index after an\n# iteration of a repeat that holds two. A group holding one component passes\n# the index to it (NAME-2); otherwise the reference names nothing, as an index\n# never selects one of a group\'s children.\n# $reference is the reference as the author wrote it, up to and including that\n# index, with its `$` (and, when the index ends it, the arguments of a function\n# reference: `$$f[2](2)`). $container is what the author wrote the group as:\n# `iteration` for an iteration of a repeat, `pick` for what a select picked,\n# `case` for what a `<conditionalContent>` shows, and `group` for a `<group>`;\n# $component is the tag name of that repeat, select or `<conditionalContent>`,\n# and `group` for a `<group>`. $count is how many components the group holds,\n# not counting blank text and `<setup>`s (any other text is one).\n# $child is `named` when the index is at a child with a name, `unnamed` when it\n# is at one with none, and `none` when the group has no child there;\n# $suggestion is the reference with that index replaced by `.` and the child\'s\n# name (or `x`, for a child with no name), followed by the arguments when\n# $reference has them. Tags, references and attributes stay as written.\n\nreference-index-selects-child =\n { $container ->\n [iteration] `{ $reference }` names nothing: this iteration of a `<{ $component }>` holds { $count ->\n [0] no components\n [one] one component\n *[other] { $count } components\n }, and an index passes into an iteration only when it holds one.\n [pick] `{ $reference }` names nothing: what the `<{ $component }>` picked holds { $count ->\n [0] no components\n [one] one component\n *[other] { $count } components\n }, and an index passes into a pick only when it holds one.\n [case] `{ $reference }` names nothing: what the `<{ $component }>` shows holds { $count ->\n [0] no components\n [one] one component\n *[other] { $count } components\n }, and an index passes into it only when it holds one.\n *[group] `{ $reference }` names nothing: the `<group>` holds { $count ->\n [0] no components\n [one] one component\n *[other] { $count } components\n }, and an index passes into a group only when it holds one.\n } An index never selects a child. { $child ->\n [named] To refer to the child, write `{ $suggestion }`.\n [unnamed] To refer to the child, give it a name, such as `name="x"`, and write `{ $suggestion }`.\n *[none] To refer to a child, give it a name and write that name after a `.`.\n }\n\n# An index on a component whose values are reached through one of its\n# properties rather than by indexing the component itself: `$ss[1]` on a\n# `<spreadsheet>`, whose cells are `$ss.cells[1][2]`. $reference is the\n# reference as the author wrote it, with its `$`; $component the tag name of\n# what it reached; $suggestion the same reference with the property put in\n# front of the index; $property that property. All stay as written.\n\nreference-index-use-property = `{ $reference }`: an index does not select anything in a `<{ $component }>` itself. Write `{ $suggestion }` to select among its `{ $property }`.\n\n# An index past what a repeat, a select or a collect made: `$s[3]` on a\n# `<select>` that picked two options. $reference is the reference as the author\n# wrote it, with its `$`, and $component the tag name of the repeat, select or\n# collect; both stay as written. $kind is `iteration` for a repeat, `pick` for\n# a select (or a `<selectFromSequence>`), and `item` for a component that\n# arranges or gathers what it is given (`<shuffle>`, `<sort>`, `<collect>`).\n# $count is how many it made, which can be 0.\n\nreference-index-past-instances =\n { $kind ->\n [iteration] { $count ->\n [0] `{ $reference }`: the `<{ $component }>` made no iterations.\n [one] `{ $reference }`: the `<{ $component }>` made only { $count } iteration.\n *[other] `{ $reference }`: the `<{ $component }>` made only { $count } iterations.\n }\n [item] { $count ->\n [0] `{ $reference }`: the `<{ $component }>` has no items.\n [one] `{ $reference }`: the `<{ $component }>` has only { $count } item.\n *[other] `{ $reference }`: the `<{ $component }>` has only { $count } items.\n }\n *[pick] { $count ->\n [0] `{ $reference }`: the `<{ $component }>` made no picks.\n [one] `{ $reference }`: the `<{ $component }>` made only { $count } pick.\n *[other] `{ $reference }`: the `<{ $component }>` made only { $count } picks.\n }\n }\n\n# A reference to a name declared in the branches of a `<conditionalContent>`\n# (its `<case>`s and its `<else>`) or of a `<select>` that picks one (its\n# `<option>`s) names nothing unless every branch declares the name, with the\n# same tag, so that what it names never changes type with the active branch.\n# $reference is the reference as the author wrote it, with its `$`, and $name\n# the name; both stay as written. $branch is `case`, `else` or `option`, the\n# branch that has no $name, and $ordinal which of its kind it is (1 for the\n# first case). $container is the name of the `<conditionalContent>` or\n# `<select>` when $hasName is "true", and its tag otherwise; DoenetML, so it\n# stays in English. $branch is `item` for a name after the `valueName` of a\n# `<repeat>` whose `for` holds items of several components (COLL-5), each\n# item being a branch, and $ordinal the item\'s place in the `for`; or\n# `someItem` when that place is not known when the document loads (an item\n# after anything in `for` other than a reference to a `<group>`, which may\n# give a number of items, or an order, decided as the document runs);\n# $container is then the `<repeat>`. An item that is an option or a case\n# is named as one, with $container the `<select>` or `<conditionalContent>`.\n\nreference-name-missing-in-branch = `{ $reference }` names nothing: { $branch ->\n [else] the `<else>`\n [option] option { $ordinal }\n [item] item { $ordinal } of the `for`\n [someItem] an item of the `for`\n *[case] case { $ordinal }\n } of { $hasName ->\n [true] `{ $container }`\n *[other] the `<{ $container }>`\n } has no `{ $name }`. Give it one, or use a name every { $branch ->\n [option] option\n [item] item\n [someItem] item\n *[other] case\n } has.\n\n# As `reference-name-missing-in-branch`, where two branches declare $name with\n# different tags, $firstType and $secondType, which stay in English. $branch is\n# `case`, `option` or `item`.\n\nreference-name-types-differ-in-branches = `{ $reference }` names nothing: `{ $name }` is a `<{ $firstType }>` in one { $branch ->\n [option] option\n [item] item of the `for`\n *[other] case\n } of { $hasName ->\n [true] `{ $container }`\n *[other] the `<{ $container }>`\n } and a `<{ $secondType }>` in another. Use the same type, or different names.\n\n# A property or an index after a `<select>` or `<conditionalContent>` whose\n# options or cases differ: some hold one component, to which it passes, and\n# others several, a container it does not pass into (#2520, D41). Decided at\n# load from every option or case. $reference is the reference as written,\n# with its `$`. $what is `index` or `property`. $branch is `option` or\n# `case`; $ordinals lists the options, or the cases (not the `<else>`), that\n# hold several, and $withElse is `true` when the `<else>` does too.\n# $container is the container\'s name when $hasName is `true`, else its tag\n# name. $suggestion (when $hasSuggestion is `true`) is the reference with\n# `.P` after the container and its first index. Tags, names and references\n# stay as written.\n\nreference-branches-hold-several = `{ $reference }`: { $what ->\n [index] an index\n *[property] a property\n } after { $hasName ->\n [true] `{ $container }`\n *[other] the `<{ $container }>`\n } passes into what { $branch ->\n [option] each pick\n *[case] the case shown\n } holds only when it holds one component, and { $branch ->\n [option] { $ordinalsCount ->\n [one] option { $ordinals } holds\n *[other] options { $ordinals } hold\n }\n *[case] { $withElse ->\n [true] { $ordinalsCount ->\n [0] the `<else>` holds\n [one] case { $ordinals } and the `<else>` hold\n *[other] cases { $ordinals } and the `<else>` hold\n }\n *[other] { $ordinalsCount ->\n [one] case { $ordinals } holds\n *[other] cases { $ordinals } hold\n }\n }\n } several. { $hasSuggestion ->\n [true] Give the component you mean a name in each, such as `name="P"`, and write `{ $suggestion }`.\n *[other] Give the component you mean a name in each, and write that name after a `.`.\n }\n\n# A property after a `<select>` or `<conditionalContent>` whose options or\n# cases each hold one component, where some of those components have the\n# property and others don\'t (D40, #2452): each that lacks it gives a blank.\n# Decided at load from every option or case. $reference is the reference as\n# written, with its `$`; $property the property and $lackingType the tag of a\n# component that lacks it, both as written. $container is the container\'s\n# name when $hasName is `true`, else its tag name. $branch is `option`,\n# `case`, or `item` (the items of a `<repeat>`, of types that differ through\n# its `for` or a `<conditionalContent>` in it). A name in only some options\n# or cases names nothing from outside\n# (`doenet-w0183`), so the message does not suggest reading one by name.\n\nreference-property-partly-held = `{ $reference }`: a `<{ $lackingType }>` in { $hasName ->\n [true] `{ $container }`\n *[other] the `<{ $container }>`\n } has no property `{ $property }`, so it gives a blank there. For a value from each, give every { $branch ->\n [option] option\n [item] item\n *[case] case\n } a component that has `{ $property }`.\n\n# A property after a `<group>` that holds several components: `$g.x` on a\n# `<group name="g">` holding two points, `$r.x` or `$r[1].x` after a repeat\n# whose template holds two (said as "each item holds 2"; authors are not\n# told of iterations as groups), `$s.x` after a pick that holds two, or `$cc.x` after\n# the case a `<conditionalContent>` shows, holding two (D41). A group holding\n# one component stands for it, and the property is that component\'s; with\n# several, the group is only a container, and the reference names nothing\n# there. The group\'s own settings (`$g.hide`) are not this.\n# $reference is the reference as the author wrote it, with its `$`.\n# $container and $component are as for `reference-index-selects-child`:\n# `iteration`, `pick`, `case` or `group`, and the tag name of the repeat,\n# select or `<conditionalContent>` (`group` for a `<group>`). $count is how\n# many components the group holds, not counting blank text and `<setup>`s.\n# $child is `named` when the first child that has the property has a name,\n# `reference` when it is a reference written alone (`$Q`), which cannot take\n# a name, else `unnamed`; $tag is, for `reference`, that reference written as\n# a tag with a name (`<point extend="$Q" name="P"/>`); $suggestion is the\n# reference with that child\'s name (or `P`) put before the property. Tags,\n# references and attributes stay as written.\nreference-property-after-several =\n { $container ->\n [iteration] `{ $reference }` names nothing: what is written inside the `<{ $component }>` holds { $count } components, so each item holds { $count }, and a property applies to an item only when it is one component.\n [pick] `{ $reference }` names nothing: what the `<{ $component }>` picked holds { $count } components, and a property passes into a pick only when it holds one.\n [case] `{ $reference }` names nothing: what the `<{ $component }>` shows holds { $count } components, and a property passes into it only when it holds one.\n *[group] `{ $reference }` names nothing: the `<group>` holds { $count } components, and a property passes into a group only when it holds one.\n } { $child ->\n [named] To read the property of a child, write `{ $suggestion }`.\n [reference] To read the property of a child, write it as a tag with a name, such as `{ $tag }`, and write `{ $suggestion }`.\n *[unnamed] To read the property of a child, give it a name, such as `name="P"`, and write `{ $suggestion }`.\n }\n\n## `<callAction>`\n\n# $action is the `actionName` the author asked for, part of the DoenetML\n# language, so it stays in English. $reference is the `target` as written.\ncomponent-action-unavailable = Cannot call { $action } on component `{ $reference }`\n\n# An action (`<callAction>`, `<updateValue>`, $componentType) whose `target`,\n# $reference as written, is in content not shown now: a case of a\n# `<conditionalContent>` that is not true, or an iteration a repeat no longer\n# has. Content that is not shown acts as missing from outside, so the action\n# did nothing. The tag and attribute names stay in English.\naction-target-not-shown = The `<{ $componentType }>` did nothing: its `target`, `{ $reference }`, is not shown now.\n\n## `<dataFrame>`\n\n# $componentIdx is an internal index, passed as a string so it is not grouped\n# like a quantity; the odd spacing before the colon is reproduced from the\n# original message.\ndata-frame-inconsistent-row-lengths = Data has invalid shape. Rows has inconsistent lengths. Found in componentIdx :{ $componentIdx }\n\ndata-frame-duplicate-column-names = Data has duplicate column names. Found in componentIdx :{ $componentIdx }\n\ndata-frame-missing-column-name = Data is missing a column name. Found in componentIdx :{ $componentIdx }\n\n## `<answer>` and scoring\n\nanswer-award-depends-on-own-response = An award for this answer is based on the answer tag\'s own submitted response, which will lead to unexpected behavior.\n\n# Translators: maxNumAttempts and sectionWideCheckWork are attribute names.\nanswer-max-num-attempts-in-section-wide-check-work = Setting `maxNumAttempts` on an `<answer>` inside a container with `sectionWideCheckWork` has no effect, as the number of attempts is controlled by the container. Set `maxNumAttempts` on the container instead.\n\nnested-section-wide-check-work-max-num-attempts = Setting `maxNumAttempts` on a container with `sectionWideCheckWork` that is inside another container with `sectionWideCheckWork` has no effect, as the number of attempts is controlled by the outer container. Set `maxNumAttempts` on the outer container instead.\n\n# Raised by a `<title>` written inside a `<cascade>`. A cascade only reveals its\n# children step by step; it has no heading of its own, so the title is not\n# shown. Translators: cascade, section and title are element names.\ncascade-title-not-shown = A `<cascade>` has no heading, so this `<title>` is not shown. To give it one, wrap the `<cascade>` in a `<section>` and move the `<title>` to the `<section>`.\n\n# $attributes is a list of attribute names; $attributesCount is its length.\nanswer-attributes-need-symbolic-equality =\n { $attributesCount ->\n [one] The { $attributes } attribute will have no effect without symbolicEquality set.\n *[other] The { $attributes } attributes will have no effect without symbolicEquality set.\n }\n\nanswer-invalid-type = Invalid type for answer: { $type }\n\n## `<module>`, `<conditionalContent>`, `<slider>`, `<pretzel>`\n\nmodule-attribute-child-needs-name = Since the component `<{ $component }>` does not have a name, it cannot be used for a module attribute\n\nmodule-attribute-name-already-defined = The component `<{ $component } name="{ $name }">` cannot be used as an attribute for a module because the `<module>` component type already has a "{ $name }" attribute defined.\n\nmodule-attribute-refers-to-itself = The `{ $name }` attribute of this `<module>` refers to the module\'s own `{ $name }`, so its value would depend on itself. The attribute is ignored. To use a component outside the module, give that component a different name.\n\nconditional-content-condition-ignored = Attribute `condition` is ignored on a `<conditionalContent>` component with case or else children.\n\nslider-markers-type-mismatch = Markers type doesn\'t match slider type.\n\npretzel-problem-needs-statement-and-answer = Invalid pretzel: each `<problem>` must contain one `<statement>` and one `<answer>`.\n\npretzel-problem-copy-not-supported = A `<problem>` that copies or extends another problem is not supported in a `<pretzel>` and is ignored. Write the problem out inside the `<pretzel>`.\n\n# Translators: retired. A `<pretzel extend>` given problems or a `mode` is an\n# error now, as any extend that would change what its source makes. Kept\n# because diagnostic codes are never reused.\npretzel-extend-changes-ignored = A `<pretzel>` that extends another shows the same problems in the same mode, so the problems or `mode` given to it are ignored. To add problems or change the mode, use `copy` instead of `extend`.\n\npretzel-circuit-first-problem-distractor = Invalid pretzel: in mode="circuit", the first `<problem>` cannot be a distractor.\n\n## Attribute values\n\n# $values is a list of the values that were rejected, each already in\n# backticks; $valuesCount is how many there were.\nattribute-invalid-values =\n { $valuesCount ->\n [one] Invalid value { $values } for attribute `{ $attribute }`; ignoring.\n *[other] Invalid values { $values } for attribute `{ $attribute }`; ignoring.\n }\n\nattribute-must-be-references = Invalid value `{ $value }` for attribute `{ $attribute }`. Attribute must be composed of references that begin with a `$`.\n\n# $names is a list of the rejected names, each already in single quotes.\nmath-input-invalid-function-names = <mathInput>: ignored invalid function name(s) in { $attribute }: { $names }. Each name\'s display segment must be at least 2 characters (letters or dashes); an optional `|<mathspeak alternative>` suffix may follow.\n\n## Building components from the source\n\n# Raised while the source is being turned into components, by throwing rather\n# than by building a record: the thrower is caught, the component becomes an\n# `_error`, and the diagnostic is re-raised from it.\n\n# $suggestion (when $hasSuggestion is `true`) is the tag the one written\n# differs from only in case: tags are case-sensitive, with `copy` or `extend`\n# as without (D51). Tag names stay in English.\ncomponent-type-invalid = Invalid component type: `<{ $componentType }>`{ $hasSuggestion ->\n [true] . Did you mean `<{ $suggestion }>`?\n *[other] {""}\n }\n\nattribute-repeated = Cannot repeat attribute { $attribute }.\n\n# $suggestion (when $hasSuggestion is `true`) is the attribute the one written\n# differs from only in case: attribute names are case-sensitive (D51).\n# Attribute and tag names stay in English.\nattribute-invalid-for-component = Invalid attribute "{ $attribute }" for a component of type `<{ $componentType }>`.{ $hasSuggestion ->\n [true] {" "}Did you mean "{ $suggestion }"?\n *[other] {""}\n }\n\n## Style definition contrast\n\n# $context names the pair being compared, $mode which colour scheme it was\n# rendered in. Both are symbolic — the phrase is chosen here so a translator\n# can rewrite it, rather than being handed over already in English.\nstyle-definition-insufficient-contrast =\n Style definition { $styleNumber } has insufficient contrast for { $context ->\n [text-on-background] text color against background color\n [high-contrast] high-contrast color against the canvas\n [line] line color against the canvas\n [marker] marker color against the canvas\n *[text-on-canvas] text color against the canvas\n }{ $mode ->\n [dark] { " (dark mode)" }\n *[light] { "" }\n } ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1).\n\n# $suggestion says whether a concrete replacement colour could be computed.\n# The attribute names and colour values in the `available` branch are\n# DoenetML source, not prose, and stay as they are in every language.\nstyle-definition-dark-mode-text-background-contrast =\n Although style definition { $styleNumber } has specified colors that provide sufficient contrast for light mode, the dark-mode colors derived from these values have insufficient contrast for the text color against the background color ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1). { $suggestion ->\n [available] To ensure sufficient contrast in dark mode, either increase the light-mode contrast (e.g., set { $lightAttribute }="{ $lightColor }") or override the dark-mode color (e.g., set { $darkAttribute }="{ $darkColor }").\n *[none] To ensure sufficient contrast in dark mode, increase the light-mode contrast or override the derived colors with textColorDarkMode and/or backgroundColorDarkMode.\n }\n\nstyle-definition-dark-mode-text-canvas-contrast =\n Although style definition { $styleNumber } has a specified text color that provides sufficient contrast for light mode, the dark-mode text color derived from this value has insufficient contrast against the canvas ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1). { $suggestion ->\n [available] To ensure sufficient contrast in dark mode, either increase the light-mode contrast (e.g., set textColor="{ $lightColor }") or override the dark-mode color (e.g., set textColorDarkMode="{ $darkColor }").\n *[none] To ensure sufficient contrast in dark mode, increase the light-mode contrast or override the derived color with textColorDarkMode.\n }\n\nsection-multiple-style-palettes = A section can select only one <stylePalette>; using the last one.\n\n## Unique variants\n\n# Explanations of why a component\'s unique variants could not be worked out.\n# $component is the tag that could not be analyzed and stays as written; the\n# reason is a separate message per situation, so a host can tell them apart by\n# code and a translator sees a whole sentence rather than a fragment.\n\nvariant-num-to-select-not-non-negative-integer = cannot determine unique variants of { $component } as numToSelect isn\'t a non-negative integer.\n\nvariant-num-to-select-not-constant-number = cannot determine unique variants of { $component } as numToSelect isn\'t constant number.\n\nvariant-with-replacement-not-constant-boolean = cannot determine unique variants of { $component } as withReplacement isn\'t constant boolean.\n\nvariant-select-weight-disables-unique = Unique variants for select disabled if have an option with selectWeight or selectForVariants specified\n\n# `option` is a DoenetML name and stays in English. `$o` is a reference as an\n# author writes it, and stays as written.\nvariant-select-options-not-written = cannot determine unique variants of select as a reference in it, such as $o, can stand for any number of options.\n\nvariant-coprime-undetermined = cannot determine unique variants of { $component } as cannot determine coprime is always false.\n\n# $attribute is an attribute name (`from`, `to`, `step`, `sort`, `length`) and\n# stays as written.\nvariant-attribute-not-constant = cannot determine unique variants of { $component } as { $attribute } isn\'t a constant.\n\nvariant-attribute-not-number = cannot determine unique variants of { $component } as { $attribute } isn\'t a number.\n\n# $type is the sequence type the component was declared with. $expected names\n# what the value had to be, symbolically, because which one applies depends on\n# both the type and the attribute.\nvariant-attribute-wrong-type-for-sequence =\n cannot determine unique variants of { $component } of { $type } type as { $attribute } isn\'t { $expected ->\n [letters-combination] a combination of letters\n [math-expression] a valid math expression\n [integer] an integer\n *[number] a number\n }.\n\nvariant-length-not-integer = cannot determine unique variants of { $component } as length isn\'t an integer.\n\nvariant-sort-not-implemented = have not implemented unique variants of a { $component } with sort\n\nvariant-exclude-combinations-not-implemented = have not implemented unique variants of a { $component } with excludeCombinations\n\nvariant-math-exclude-not-implemented = have not implemented unique variants of a { $component } of type math with exclude\n\nvariant-non-constant-exclude-not-implemented = have not implemented unique variants of a { $component } with non-constant exclude\n\n## PreFigure conversion\n\n# $subject identifies the component the warning is about, already written as\n# `<tag>` or `<tag> (name)`. It is composed in code rather than here because\n# Fluent terms cannot take a variable as an argument, so a shared subject\n# fragment cannot be parameterized from the catalog. It holds only a tag name,\n# a component name and punctuation — never a word — which is why a descendant\n# with no type reads `<?>` rather than `<unknown>`.\n\nprefigure-descendant-unsupported = { $subject }: unsupported in graph prefigure renderer; descendant skipped.\n\nprefigure-descendant-invalid-geometry = { $subject }: non-finite or incomplete geometry; descendant skipped.\n\nprefigure-curve-label-omitted = { $subject }: labels are not supported on converted curve elements; label omitted.\n\nprefigure-curve-unsupported-definition-type = { $subject }: unsupported curve function definition type \'{ $definitionType }\'; descendant skipped.\n\nprefigure-region-flip-functions-unsupported = { $subject }: unsupported flipFunctions attribute on regionBetweenCurves; descendant skipped.\n\nprefigure-region-non-formula-child = { $subject }: only formula-typed child functions are supported on regionBetweenCurves; descendant skipped.\n\n# $feature is the function, operator, or symbol as math-expressions names it\n# (for example `sign`, `prime`, or a free parameter `a`), shown verbatim.\nprefigure-formula-unsupported = { $subject }: the PreFigure renderer cannot evaluate \'{ $feature }\' in this formula; formula not drawn.\n\n# $labelKind says which family of object carried the label, since the advice\n# is the same but the object is not.\nprefigure-label-position-unsupported =\n { $subject }: unsupported labelPosition \'{ $labelPosition }\' for { $labelKind ->\n [line-family] line-family label\n *[point] point label\n }; default PreFigure alignment used.\n\n# Translators: PreFigure, `markLength`, `normalize` and `lineStyle` stay in\n# English. A field\'s lattice is the grid of points its marks are drawn at.\nprefigure-field-non-formula-function = { $subject }: PreFigure can draw a field only from a function given by a formula, not one of type \'{ $definitionType }\'; descendant skipped.\n\n# $point is the lattice point, already written as "(x, y)".\nprefigure-field-function-undefined = { $subject }: the function is undefined at { $point }, a point of the field\'s lattice, or too large to compute there, and PreFigure may then draw none of the field. Restrict the function\'s domain to avoid such points.\n\nprefigure-slope-field-mark-length-ignored = { $subject }: PreFigure sizes each slope mark from the lattice spacing, so `markLength` is ignored.\n\nprefigure-vector-field-normalize-unequal-scales = { $subject }: the graph\'s axes are scaled unequally, so PreFigure draws `normalize`d arrows at lengths that vary with their direction.\n\nprefigure-field-line-style-ignored = { $subject }: PreFigure draws a field\'s marks as solid lines; `lineStyle` \'{ $lineStyle }\' is ignored.\n\nprefigure-fill-style-unsupported = { $subject }: fill style \'{ $fillStyle }\' is unsupported by PreFigure; falling back to a solid fill.\n\nprefigure-line-style-unknown = { $subject }: unknown line style \'{ $lineStyle }\' omitted from PreFigure output.\n\nprefigure-marker-style-mapped-to-diamond = { $subject }: marker style \'{ $markerStyle }\' mapped to PreFigure style \'diamond\'.\n\nprefigure-marker-style-unsupported = { $subject }: marker style \'{ $markerStyle }\' is unsupported by PreFigure; default style used.\n\n## PreFigure annotations\n\nannotation-ref-unresolvable = `<annotation>`: invalid `ref`; cannot resolve target. Annotation omitted.\n\nannotation-ref-multiple-targets = `<annotation>`: `ref` resolved to multiple targets; using the first target.\n\nannotation-ref-outside-graph = `<annotation>`: invalid `ref`; target is outside the containing graph. Annotation omitted.\n\nannotation-ref-unsupported-target = `<annotation>`: invalid `ref`; target is not a supported graphical object in prefigure conversion. Annotation omitted.\n\nannotation-text-missing = `<annotation>`: missing or empty `text`; emitting empty text.\n\n## Composites and references\n\n# $componentType is the type the composite was asked to create, when it is\n# known; `none` when the composite did not say.\ncomposite-circular-dependency =\n { $componentType ->\n [none] Circular dependency detected.\n *[other] Circular dependency detected involving `<{ $componentType }>` component.\n }\n\n# $reference is the reference as the author wrote it, already carrying its `$`.\n# $suggestion (when $hasSuggestion is `true`) is the reference with its\n# property in the case the component has it: property names are\n# case-sensitive (D51), so `$P.X` names nothing and suggests `$P.x`. An array\n# entry is suggested by index (NAME-2): `$P.X1` suggests `$P.xs[1]`, and\n# `$poly.Vertex2` suggests `$poly.vertices[2]`.\nreference-no-referent = No referent found for reference: `{ $reference }`{ $hasSuggestion ->\n [true] . Did you mean `{ $suggestion }`?\n *[other] {""}\n }\n\nreference-multiple-referents = Multiple referents found for reference: `{ $reference }`\n\n# Raised when what was written between a reference\'s index brackets did not come\n# out as a whole number — usually because that component reported an error of its\n# own, which is the diagnostic the author should act on. This one says why the\n# reference then found nothing, so the two read together rather than the reference\n# failing silently.\nreference-index-not-a-number = The index of `{ $reference }` did not work out to a number, so the reference found nothing.\n\n# An `extend` of a composite or a list whose content is written rather than\n# made (an authored `<mathList>`) shows the same content as the component it\n# extends, so an attribute that would set that content, and children written\n# inside it, are not used. $attribute and $componentType are an attribute name\n# and an element name, part of the DoenetML language, so they stay in English,\n# as does `extend`.\nextend-attribute-ignored = The `{ $attribute }` attribute is ignored: a `<{ $componentType }>` with `extend` shows the same content as the component it extends.\n\nextend-children-ignored = Children written inside a `<{ $componentType }>` with `extend` are ignored: it shows the same content as the component it extends.\n\n# Children written inside a tag with `copy` (or `copyWithState`) are added to\n# those of what it copies, but some a $componentType doesn\'t use beside those:\n# a `<math>` beside the rows of a `<matrix>`, or a curve\'s functions beside its\n# `through` points. $componentType is DoenetML and stays in English, as does\n# `copy`.\ncopy-children-ignored = A child written inside a `<{ $componentType }>` with `copy` is ignored: a `<{ $componentType }>` doesn\'t use it beside the children of what it copies.\n\n# The `target` of an `<updateValue>` is a container of several things, which\n# has no one value to change (#2554, COLL-3): a `<group>` holding several\n# components ($container is `group`, and $count how many), or a `<repeat>` or\n# `<repeatForSequence>`, which makes an item for each iteration ($container is\n# `repeat`). $componentType is the action\'s tag name, $component the\n# container\'s, and $reference the target as the author wrote it, with its `$`.\n# Tag names and references stay as written.\naction-target-not-one-value = { $container ->\n [repeat] The `<{ $componentType }>` does nothing: its `target`, `{ $reference }`, is a `<{ $component }>`, which makes an item for each iteration and has no one value. Name the component to change inside one item, as `{ $reference }[1].x` for a component named `x`.\n *[group] The `<{ $componentType }>` does nothing: its `target`, `{ $reference }`, is a `<group>` of { $count } components, which has no one value. Name the component to change.\n }\n\n# The LaTeX of an `<m>`, `<me>` or `<men>` ($component) is read as math, as a\n# `<math>` around it reads it (`<math><m>…</m></math>`, or `$mm.math`), but it\n# isn\'t math that can be read (`\\text{hi}`), so the math is a blank (D46).\n# $latex is the LaTeX as written. The tags stay in English.\nlatex-not-read-as-math = The LaTeX of this `<{ $component }>`, `{ $latex }`, can\'t be read as math, so the math made from it is a blank.\n\n# A `<math>` child of a `<matrix>` that the matrix doesn\'t use (#2546). A\n# matrix uses one `<math>` child, the last one written. $reason is `several`\n# when more than one `<math>` is written, so the earlier ones are ignored, and\n# `rows` when a `<math>` is written beside `<row>` or `<column>` children,\n# which give the matrix its entries instead. Tag names stay in English.\nmatrix-math-child-ignored = { $reason ->\n [rows] A `<math>` written beside the `<row>` or `<column>` children of a `<matrix>` is ignored: the rows or columns give the matrix its entries.\n *[several] A `<matrix>` uses one `<math>` child, the last one written, so the others are ignored. To make one expression from several, write it in one `<math>`.\n }\n\n# An attribute the component does not have, written on a component with\n# `copy`, `copyWithState` or `extend` (#2332), including one that names\n# nothing. The component is still shown, as what it copies, or as a blank; the\n# attribute does nothing. Written on the component without `copy` or `extend`,\n# the same attribute is an error (`attribute-invalid-for-component`).\n# $attribute and $componentType are an attribute name and an element name,\n# part of the DoenetML language, so they stay in English. $suggestion (when\n# $hasSuggestion is `true`) is the attribute the component does have that the\n# one written differs from only in case: names are case-sensitive (D51).\ncopy-attribute-invalid-for-component = The `{ $attribute }` attribute is ignored: a `<{ $componentType }>` has no such attribute.{ $hasSuggestion ->\n [true] {" "}Did you mean `{ $suggestion }`?\n *[other] {""}\n }\n\n# An attribute written in another case than the component\'s spelling\n# (`xmin` for `xMin`). Names are case-sensitive (D51), but for now the\n# attribute is still applied, under the component\'s spelling, with this\n# warning; in a later release it will be an error, as a misspelled attribute\n# is. $attribute is the name as written, $suggestion the component\'s spelling,\n# and $componentType the element name, all part of the DoenetML language, so\n# they stay in English.\nattribute-name-case = Attribute names are case-sensitive: write `{ $suggestion }`, not `{ $attribute }`, on a `<{ $componentType }>`. It is applied for now, but will be an error in a later release.\n\n# An info, not a warning: a list written as text (`<mathList>`, a list\n# attribute, the text of a `<sum>` or `<sort>`) whose brackets don\'t balance\n# (#2492). That is valid DoenetML, often meant (`a) apple, b) banana`), so the\n# message only explains how the list was read. Brackets keep what is inside\n# them in one entry only when they all balance, so here none of them do: a\n# comma or space inside them separates entries like any other.\n# $componentType is an element name, part of the DoenetML language, so it\n# stays in English.\nlist-brackets-unmatched = The brackets in the list of `<{ $componentType }>` don\'t all match, so they are ignored: the commas or spaces inside them separate entries like any others. To keep one inside an entry, balance the brackets, or, in a list written between tags, write its entries as children.\n\n# An editor hint, not a run-time diagnostic: in a list separated by spaces\n# (`<mathList>`, `<textList>` and the other list tags), a reference written\n# with no space beside other text or another reference is part of the one\n# entry they make together, so `2$a` is one entry and `2 $a` two (#2168,\n# D40). The hint points at the entry so an author can see where the list was\n# split. $entry is the entry as written and $componentType an element name;\n# both are DoenetML, so they stay in English.\nlist-reference-joins-entry = `{ $entry }` is one entry of the `<{ $componentType }>`: a reference written with no space beside the text around it is part of the same entry. To make them separate entries, put a space between them.\n\n# An `extend` is the same component again: it shares its source\'s content and\n# state, so it can\'t change what the component makes or what its state can\n# hold (#2404). Each message names the tag, what it makes, why an extend can\'t\n# change it, and what to write instead. $componentType and $attribute are an\n# element name and an attribute name, and $source is the reference the extend\n# is of, as written (`$r`); all three are DoenetML, so they stay in English,\n# as do `extend` and `copy`.\nextend-attribute-changes-content = A `<{ $componentType }>` makes its content from `{ $attribute }`. An `extend` shows the same content as `{ $source }`, so it can\'t change `{ $attribute }`. To show the content of `{ $source }` again, remove `{ $attribute }`. To make a new `<{ $componentType }>` with a different `{ $attribute }`, use `copy`.\n\n# $kind says what the children would be: the template of a repeat, the options\n# of a select, the cases of a conditionalContent, the problems of a pretzel, or\n# else the inputs the tag makes its content from.\nextend-children-change-content =\n { $kind ->\n [template] Children written inside an `extend` of a `<{ $componentType }>` would be a new template, but an extend shows the same content as `{ $source }`. To repeat a different template, use `copy`.\n [options] Children written inside an `extend` of a `<{ $componentType }>` would be new options, but an extend shows the same choice as `{ $source }`. To choose from more options, use `copy`.\n [cases] Children written inside an `extend` of a `<{ $componentType }>` would be new cases, but an extend shows the same content as `{ $source }`. To choose from other cases, use `copy`.\n [problems] Children written inside an `extend` of a `<{ $componentType }>` would be new problems, but an extend shows the same problems as `{ $source }`, arranged the same way. To arrange more problems, use `copy`.\n *[other] Children written inside an `extend` of a `<{ $componentType }>` would be new inputs to what it makes, but an extend shows the same content as `{ $source }`. To make a `<{ $componentType }>` from different children, use `copy`.\n }\n\nextend-choice-input-choices = Choices written inside an `extend` of a `<choiceInput>` would be new choices, but an extend shares its selection with `{ $source }`, which has no such choice. To offer more choices, use `copy`.\n\nextend-choice-input-shuffle-order = An `extend` of a `<choiceInput>` shares its selection with `{ $source }`, which counts the choices in the order `{ $source }` shows them, so it can\'t change `shuffleOrder`. To show the choices in a different order, use `copy`.\n\n# An `extend` of an `<answer>` shares its responses, credit and attempts\n# with its source ($source, the reference as written), so it can\'t change an\n# attribute that decides them ($attribute, its name as the `<answer>` declares\n# it, whatever case it is written in) (REF-7, D32).\nextend-answer-grading-attribute = An `extend` of an `<answer>` shares its responses and credit with `{ $source }`, which grades them, so it can\'t change `{ $attribute }`. To grade with a different `{ $attribute }`, use `copy`.\n\n# Inputs, awards or responses written inside an `extend` of an `<answer>`,\n# which shares its responses and credit with its source ($source, the\n# reference as written) (REF-7, D32). A label or description may be written.\nextend-answer-children = What is written inside an `extend` of an `<answer>` would be new inputs, awards or responses, but an extend shares its responses and credit with `{ $source }`. To make an answer that grades more, use `copy`. An extend may be given a `<label>`.\n\nextend-module-attribute = A `<module>` makes its content from its attributes. An `extend` shows the same content as `{ $source }`, so it can\'t change `{ $attribute }`. To make the module with a different `{ $attribute }`, use `copy`.\n\n# $componentType is `case`, `else` or `option`, and $parentType the tag it is\n# part of: `conditionalContent` or `select`.\nextend-part-of-choosing-tag = `<{ $componentType }>` is part of a `<{ $parentType }>`, and means something only there, so it can\'t be extended.\n\n# An `extend` or `copyWithState` ($how) of an `<award>` or a `<choice>`\n# ($componentType), which can only be copied (D42). Its state records the last\n# submission of the `<answer>` or `<choiceInput>` ($parentType) holding it, so\n# neither sharing that record nor starting from another one means anything.\n# $source is the reference as written, as `$aw`.\nextend-award-or-choice = `<{ $componentType }>` records the submissions of the `<{ $parentType }>` holding it, so it can\'t be made with `{ $how }`. Use `copy` to write it again here: `<{ $componentType } copy="{ $source }"/>`.\n\n## A reference written as a different tag\n\n# An `extend` or `copy` written as a different tag than what it is of (D26):\n# `<math extend="$t"/>` asks for a math made from `$t`. That is allowed only\n# between related types, such as math, number, text and boolean, or point,\n# vector and coords. $componentType is the tag the extend or copy is written\n# as, $sourceType the type of what it is made from, and $source the reference,\n# as written (`$t`); all three are DoenetML, so they stay in English, as do\n# `extend`, `copy`, `bindValueTo`, `prefill` and `.text`.\ntype-change-unrelated = A `<{ $componentType }>` can\'t be made from `{ $source }`, which gives a `<{ $sourceType }>`. To show it as it is, write `{ $source }`.\n\n# $hasPrefill is "true" when the input has a `prefill` attribute.\ntype-change-input-from-value =\n { $hasPrefill ->\n [true] A `<{ $componentType }>` can\'t be made from `{ $source }`, a `<{ $sourceType }>`: an input isn\'t the same thing as its value. To edit `{ $source }`, write `<{ $componentType } bindValueTo="{ $source }"/>`. To start from its value, write `<{ $componentType } prefill="{ $source }"/>`.\n *[other] A `<{ $componentType }>` can\'t be made from `{ $source }`, a `<{ $sourceType }>`: an input isn\'t the same thing as its value. To edit `{ $source }`, write `<{ $componentType } bindValueTo="{ $source }"/>`.\n }\n\ntype-change-from-container = A `<{ $componentType }>` can\'t be made from `{ $source }`, a `<{ $sourceType }>` holding other content. To use its text, write `{ $source }.text`.\n\n# A tag written with `extend` or `copy` always makes one component (D36), so\n# it can be made from a composite only when the DoenetML guarantees that the\n# composite always holds exactly one component. $reason says why it may not:\n# `numToSelect` for a `<select>` or another selector\n# whose $attribute (`numToSelect` or `numSamples`) is not written as 1;\n# `anyNumber` for a composite such as a `<repeat>` or `<collect>`, which can\n# hold any number; and `count` when it, or one $part of it (`case`,\n# `option` or `iteration`), holds $count components. $sourceType is the tag\n# of the composite the reason is about, which may be one $source holds, or\n# the one `$source` indexes (an iteration of a `<repeat>`). $holdsNothing is\n# "true" when $count is zero. $indexSelectsOne is "true" when `$source[1]`\n# names one component, so the message suggests it. `numToSelect`, `<else>`\n# and the tags are DoenetML and stay in English.\ntype-change-composite-not-one =\n { $reason ->\n [numToSelect] { $indexSelectsOne ->\n [true] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and a `<{ $sourceType }>` holds one only when its `{ $attribute }` is written as 1 or left out. To use its first pick, write `{ $source }[1]`. To read all it picks as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n *[other] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and a `<{ $sourceType }>` holds one only when its `{ $attribute }` is written as 1 or left out. To read all it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n }\n [anyNumber] { $indexSelectsOne ->\n [true] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and a `<{ $sourceType }>` can hold any number. To use the first, write `{ $source }[1]`. To read them all as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n *[other] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and a `<{ $sourceType }>` can hold any number. To read them all as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n }\n *[count] { $part ->\n [case] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and a case of the `<{ $sourceType }>` holds { $holdsNothing ->\n [true] nothing\n *[other] { $count }\n }. To read what it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n [option] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and an option of the `<{ $sourceType }>` holds { $holdsNothing ->\n [true] nothing\n *[other] { $count }\n }. To read what it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n [iteration] A `<{ $componentType }>` can be made from `{ $source }` only when it always holds one component, and an iteration of the `<{ $sourceType }>` holds { $holdsNothing ->\n [true] nothing\n *[other] { $count }\n }. To read what it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n *[other] { $holdsNothing ->\n [true] A `<{ $componentType }>` can\'t be made from `{ $source }`, a `<{ $sourceType }>` that holds nothing.\n *[other] { $indexSelectsOne ->\n [true] A `<{ $componentType }>` can be made from a `<{ $sourceType }>` only when it holds one component, and `{ $source }` holds { $count }. To use one of them, write `{ $source }[1]` or name it. To read them all as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n *[other] A `<{ $componentType }>` can be made from a `<{ $sourceType }>` only when it holds one component, and `{ $source }` holds { $count }. To use one of them, give it a name and refer to it by that name. To read them all as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n }\n }\n }\n }\n\n# $componentType is a tag that makes its list of values itself from its\n# attributes, such as `<sequence>` or `<sampleRandomNumbers>`. Written with\n# `extend` or `copy`, it can be made only from one component of its own type,\n# and `$source` isn\'t always one: it holds several, or another type, or it\n# is a property or an entry of a list. $makes is `content` when\n# $componentType is a tag that makes its content itself, such as `<repeat>`,\n# `<select>` or `<collect>`, and `$source` is a property or an entry of a\n# property or a list (`$s.value`, `$l[2]`), which is a value, never such a tag\n# (#2546); otherwise it is `values`. The tags and `$source` are DoenetML and\n# stay in English.\ntype-change-own-type-only = { $makes ->\n [content] A `<{ $componentType }>` makes its content itself, so it can be made only from another `<{ $componentType }>`, and `{ $source }` is a value. To show it as it is, write `{ $source }`.\n *[values] A `<{ $componentType }>` makes its values from its own attributes, so it can be made only from another `<{ $componentType }>`, and `{ $source }` isn\'t always one. To show it as it is, write `{ $source }`.\n }\n\n# What `$source` holds can be of more than one type, $types, a list of tags\n# already joined (`<math>`, `<number>`). $isList is "true" when\n# $componentType is a list, such as `<mathList>`, which takes any number of\n# components, all of one type.\ntype-change-composite-types-differ =\n { $isList ->\n [true] A `<{ $componentType }>` can be made from `{ $source }` only when what it holds is all of one type, and it holds { $types }. To read them all as one list, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n *[other] A `<{ $componentType }>` can be made from `{ $source }` only when what it holds is always of one type, and it can hold { $types }. To read what it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n }\n\n# What `$source` holds is a reference whose type the DoenetML does not give:\n# $what is `property` for a property, such as `$P.x`, and `reference` for\n# any other, such as an index or the value of a repeat.\ntype-change-composite-type-unknown =\n { $what ->\n [property] A `<{ $componentType }>` can be made from `{ $source }` only when the type of what it holds is known from the DoenetML, and it holds a property, whose type isn\'t. To read what it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n *[other] A `<{ $componentType }>` can be made from `{ $source }` only when the type of what it holds is known from the DoenetML, and it holds a reference whose type isn\'t. To read what it holds as one value, write `<{ $componentType }>{ $source }</{ $componentType }>`.\n }\n\n# The index of `$source` names nothing now, such as an iteration past the\n# last one, so the tag $componentType is missing, and shown as a blank, until\n# the index names something again.\ntype-change-index-names-nothing = `{ $source }` names nothing now, so this `<{ $componentType }>` is missing until it does.\n\n# `$source` is a composite that holds nothing now, such as a\n# `<conditionalContent>` with no case true and no `<else>`, or one whose\n# active case holds nothing, so the tag $componentType is missing, and shown\n# as a blank, until it holds one component again.\ntype-change-composite-holds-nothing = `{ $source }` holds nothing now, so this `<{ $componentType }>` is missing until it holds one component.\n\n# `$source` is a property whose value is a list of values, each of the type\n# it is, such as the selected values of a `<choiceInput>` (`$ci`), and it\n# holds no value now ($holds is `none`) or $count values, two or more\n# ($holds is `several`), so the tag $componentType, made from one of them,\n# is missing, and shown as a blank, until it holds one (#2546).\ntype-change-property-not-one-value = { $holds ->\n [none] `{ $source }` holds no value now, so this `<{ $componentType }>` is missing until it holds one.\n *[several] `{ $source }` holds { $count } values now, so this `<{ $componentType }>` is missing until it holds one.\n }\n\n# $value is the value of `$source` now. $valueCheck says what it would have\n# to be: a tuple, such as (1, 2), for a point, vector or coords, or true or\n# false, a number or a relation, for a boolean.\ntype-change-value-not-convertible =\n { $valueCheck ->\n [tuple] A `<{ $componentType }>` can\'t be made from `{ $source }` while its value, { $value }, isn\'t a tuple of coordinates, so it is missing until it is.\n *[other] A `<{ $componentType }>` can\'t be made from `{ $source }` while its value, { $value }, isn\'t true or false, so it is missing until it is.\n }\n\n## Children that do not match\n\n# An attribute written with no value, such as `for=""` on a `<repeat>`, where\n# the attribute needs one: it is not a true/false attribute, for which an\n# empty value means true. $attribute is its name, as written, which is\n# DoenetML and stays in English.\nattribute-empty = The `{ $attribute }` attribute is empty, and it needs a value. Write one, as `{ $attribute }="…"`, or remove the attribute.\n\n# An attribute that needs a number, read before anything else in the\n# document (such as `numVariants` on a `<variantControl>`), written as text\n# that isn\'t one: `numVariants="abc"`. The attribute is ignored. $attribute\n# is its name and $value what was written, both DoenetML, which stay in\n# English.\nattribute-not-a-number = The `{ $attribute }` attribute needs a number, and `{ $value }` isn\'t one, so the attribute is ignored. Write a number, or remove the attribute.\n\nchildren-invalid-attribute-format = Invalid format for attribute { $attribute } of `<{ $componentType }>`.\n\n# $children is the list of child types that did not match, already joined.\nchildren-invalid = Invalid children for `<{ $componentType }>`: Found invalid children: { $children }\n\n## Falling back to a default\n\n# The attribute had a default to fall back to, and the message names it: the\n# component went on to behave as though the author had written that value, and\n# an author not told which one goes looking for the difference in the wrong\n# place.\nattribute-value-invalid-using-default = Invalid value `{ $value }` for attribute `{ $attribute }`, using value `{ $default }`\n\n# The same rejection where the attribute has no default to fall back to, so\n# nothing stood in for the value and the component behaves as though the\n# attribute had not been written. A separate message rather than the one above\n# with a blank in it: "using value `null`" would describe a substitution that\n# did not happen, and name a value no author could have typed. What follows is\n# usually a second message from the component itself, saying what it did\n# without the attribute.\nattribute-value-invalid-ignoring = Invalid value `{ $value }` for attribute `{ $attribute }`, ignoring it\n\n## Loading a DoenetML version\n\n# $fallback is the version that will be used instead, or `none` when the\n# embedding page named a standalone bundle of its own.\ndoenetml-version-not-found =\n { $fallback ->\n [none] DoenetML version { $version } not found.\n *[other] DoenetML version { $version } not found. Falling back to version { $fallback }\n }\n\n## Reading the DoenetML\n\n# The parser\'s own diagnostics: what the author sees before anything runs, and\n# for a beginner usually the first Doenet message they ever read.\n#\n# The parser writes its English beside the code rather than rendering it from\n# here, because `@doenet/parser` is inside the language-server bundle and a\n# catalog there is dead weight on the editor\'s critical path\n# (`packages/lsp/scripts/check-server-bundle.mjs` fails if one arrives). The\n# two copies are held together by a test in that package, which parses a\n# corpus and asserts every coded error renders to exactly what the parser\n# wrote — so a message edited here without its counterpart fails there.\n#\n# $tag, $value, $attribute and their relatives quote the author\'s own source\n# back at them and stay exactly as written. The `Invalid DoenetML: ` opening is\n# repeated in each message instead of being a shared term: a term a locale\n# forgets to define renders as its own name, and a prefix on fifteen messages\n# is not worth that failure mode.\n\nparse-invalid-doenetml = Invalid DoenetML: { $content }\n\nparse-tag-missing-close-tag = Invalid DoenetML: The tag `{ $tag }` has no closing tag. Expected a self-closing tag or a `</{ $tagName }>` tag.\n\nparse-tag-error = Invalid DoenetML: Error in tag `<{ $tagName }>`\n\nparse-attribute-missing-value = Invalid DoenetML: Invalid attribute `{ $attribute }` appears to be missing a value.\n\nparse-attribute-invalid = Invalid DoenetML: Invalid attribute `{ $attribute }`\n\nparse-attribute-value-invalid = Invalid DoenetML: Invalid attribute value `{ $value }`\n\n# $quote is the quote character that would balance the pair: `"` or `\'`.\nparse-attribute-value-quote-mismatch = Invalid DoenetML: Invalid attribute value `{ $value }`. The quote marks do not match. You appear to be missing a `{ $quote }`\n\nparse-open-tag-name-missing = Invalid DoenetML: Found a tag without a tag name, e.g. `<`\n\nparse-tag-not-closed = Invalid DoenetML: Tag `{ $tag }` was not closed (a `>` appears to be missing).\n\nparse-self-closing-tag-name-missing = Invalid DoenetML: Found a tag without a tag name `<{ $content }>`\n\nparse-self-closing-tag-not-closed = Invalid DoenetML: Tag `{ $tag }` was not closed (`/>` appears to be missing).\n\nparse-tag-invalid-attributes = Invalid DoenetML: Tag `{ $tag }` is not valid. It may have incorrect attributes.\n\nparse-close-tag-name-missing = Invalid DoenetML: Found a closing tag without a tag name, e.g. `</`\n\n# $attribute is the attribute name and $value the unquoted token that followed\n# it, shown reassembled the way the author should have written it.\nparse-attribute-value-unquoted = Attribute values must be enclosed in quotes: `{ $attribute }="{ $value }"`\n\nparse-close-tag-without-open-tag = Invalid DoenetML: Found closing tag `{ $tag }`, but no corresponding opening tag\n\nparse-close-tag-mismatched = Invalid DoenetML: Mismatched closing tag. Expected `</{ $expected }>`. Found `{ $found }`\n\n# The conversion\'s fall-through: the syntax tree held a node shape it has no\n# case for. Reaching an author means the grammar and the conversion have gone\n# out of step, which is a bug in Doenet rather than in their document — hence\n# `parser-` rather than the `parse-` of every message above, which is about\n# what the author wrote. They are still the one looking at it, so it is\n# translated like any other error. $node is the node\'s own name and stays as\n# it is.\nparser-node-unconvertible = Could not convert node { $node } to Dast node.\n\n## Reference indices\n\n# Raised when an element sits in brackets immediately after a reference but the\n# brackets cannot be read as an index. $name is the reference as the author wrote\n# it, including its leading `$` — one for a reference and two for a\n# function reference. $reason says why the brackets could not be read, as a key\n# rather than a phrase, so the whole sentence is translatable rather than\n# assembled from halves.\n#\n# The `braces` branch is about `$x{…}`, which v0.7 no longer gives any meaning:\n# it still parses, but the braces and whatever is in them are dropped. So the\n# remedy is to delete them, not to write the index somewhere else around them.\n#\n# The other four: `parens` and `parensFunction` are `$(x)[…]` and `$$(f)[…]`,\n# which differ only in how many dollars the remedy shows — following the `$(…)` one\n# for a function reference would turn it into an ordinary reference. `arguments`\n# is `$$f(1)[…]`, where the argument list ran past the path. `unclosed` is the\n# default because it states a fact rather than offering a remedy.\n#\n# There is deliberately no branch for an index on a function reference that is\n# then called. `$$fs[<n/>](3)` picks which of the functions in `fs` to call and\n# is taken like any other index on an open path.\n#\n# The `parens` branch is about `$(x)[…]`. The index does belong inside the\n# parentheses, but an element written in there is not read as an index either —\n# what is between `$(` and `)` is read as text — so the remedy is to name the\n# element first and reference it inside the parentheses.\n#\n# The `arguments` branch is about `$$f(1)[…]`. Neither place around the\n# arguments takes the index the author wrote: inside the parentheses it would\n# become one more argument, and before them it would choose which function is\n# called rather than part of what the call returns. So the message offers the\n# one spelling that does work, which is to name the result and index that.\n\nindex-element-not-used-as-index =\n The element in brackets after `{ $name }` was not read as an index. { $reason ->\n [braces] `{"{…}"}` is not part of a reference, so `[…]` written after it is ordinary text. Remove the `{"{…}"}`.\n [parens] `$(…)` ends a reference, so `[…]` written after it is ordinary text. Give the element a name and write the index inside the parentheses, as `$(x[$idx])`.\n [parensFunction] `$$(…)` ends a function reference, so `[…]` written after it is ordinary text. Give the element a name and write the index inside the parentheses, as `$$(f[$idx])`.\n [arguments] A function reference\'s arguments end it, so `[…]` written after them is ordinary text. An index written before the arguments would pick which function to call rather than part of what it returns; to index the result, give the result a name and index that.\n *[unclosed] Its `[` is never closed.\n }\n\n## Names\n\n# $reason says which rule the name broke, as a key rather than a phrase, so the\n# whole sentence is translatable rather than assembled from two halves.\nname-attribute-invalid =\n Invalid attribute name=\'{ $name }\'. { $reason ->\n [characters] Names can contain only letters, numbers, underscores or hyphens.\n *[start] Names must start with a letter.\n }\n\ncomponent-name-invalid-start = Invalid component name "{ $name }". Names must start with a letter.\n\n# $attribute is an attribute name an author wrote, beginning with `_`, which\n# is kept for the attributes DoenetML sets itself.\nattribute-name-invalid-start = Invalid attribute "{ $attribute }". Attribute names cannot start with an underscore.\n\n# A `<repeat>` or `<repeatForSequence>` ($componentType) whose `valueName` and\n# `indexName` are the same name, $name, so a reference to it finds both. The\n# tag and attribute names stay in English.\nrepeat-value-name-is-index-name = `valueName` and `indexName` of `<{ $componentType }>` are both `{ $name }`. Give them different names.\n\n## `<answer>` sugar\n\nanswer-video-watched-missing-video = Answer with type videoWatched must have a video attribute\n\nanswer-video-watched-video-not-reference = Answer with type videoWatched must have video attribute that is a reference\n\nanswer-name-not-single-text = Answer name attribute must have a single text child\n\n## Referencing another document\n\n# $attribute is the attribute the URI was written in (`copyFrom`, `extend`, …)\n# and stays as written; $uri is the author\'s own value.\n\nexternal-doenetml-recursion-limit = Unable to retrieve external DoenetML due to too many levels of recursion. Is there a circular reference?\n\nexternal-doenetml-unavailable = Unable to retrieve DoenetML from { $attribute }="{ $uri }"\n\nexternal-doenetml-type-mismatch = Invalid DoenetML retrieved from { $attribute }="{ $uri }": it did not match the component type "{ $componentType }"\n\n## Deprecated syntax\n\n# $from and $to are attribute names and $component a tag name; all three stay\n# as written. $component is `none` for a rename that applies to every component\n# accepting the attribute, where naming one would be wrong.\n#\n# The `[deprecation]` opening is a literal marker shared by all the messages\n# in this group, not a word: leave it as it is.\n\ndeprecated-attribute-renamed =\n { $component ->\n [none] [deprecation] Attribute `{ $from }` is deprecated; use `{ $to }` instead.\n *[other] [deprecation] Attribute `{ $from }` on `<{ $component }>` is deprecated; use `{ $to }` instead.\n }\n\ndeprecated-attribute-renamed-conflict =\n { $component ->\n [none] [deprecation] Attribute `{ $from }` is deprecated and ignored because `{ $to }` is also specified.\n *[other] [deprecation] Attribute `{ $from }` on `<{ $component }>` is deprecated and ignored because `{ $to }` is also specified.\n }\n\ndeprecated-attribute-ignored = [deprecation] Attribute `{ $attribute }` on `<{ $component }>` is deprecated and ignored.\n\n# An attribute replaced by a child element rather than by another attribute:\n# $attribute and $component stay as written, and so does $child, which is the\n# tag name of the child to write instead.\n\ndeprecated-attribute-to-child = [deprecation] Attribute `{ $attribute }` on `<{ $component }>` is deprecated; use a `<{ $child }>` child instead.\n\n# One value of an attribute is deprecated while the attribute itself stays:\n# $value is what the author wrote and $to what to write instead, with\n# $attribute and $component naming where. All four stay as written.\n\ndeprecated-attribute-value-renamed = [deprecation] Value `{ $value }` of attribute `{ $attribute }` on `<{ $component }>` is deprecated; use `{ $to }` instead.\n\n# `modifyIndirectly`, which any component accepted, is dropped. $component is\n# the tag name it was written on and stays as written, as do `modifyIndirectly`,\n# `fixed` and `disabled`, which are attribute names. "This value" is the value\n# of that component, and "them" the other components that use it: `fixed` goes\n# on those, not on the component the warning names.\n\ndeprecated-attribute-modify-indirectly = [deprecation] Attribute `modifyIndirectly` on `<{ $component }>` is deprecated and ignored. To keep the components that use this value from changing it, add `fixed` to them. To keep users from changing an input, use `disabled`.\n\n# An index that selects a child of a container, rather than one of the items a\n# component makes, which an index is for: `$g[2]` on a `<group>`, or `$r[2][1]`\n# on an iteration of a `<repeat>` that holds several components. It still\n# selects the child, for now.\n#\n# $reference is what the author wrote, up to and including that index, with its\n# `$`; $suggestion is the reference to write instead, which names the child.\n# Both stay as written. $container is what the index was applied to:\n# `iteration` for an iteration of $component, `pick` for what $component picked,\n# `case` for what $component shows, and `group` for a `<group>` itself (for which\n# $component is `group`). $component is a tag name and stays as written.\n# $named is `yes` when the child has a name, and $suggestion then uses it;\n# otherwise the suggestion uses `x` as an example of a name to give it.\n\ndeprecated-index-selects-child =\n { $container ->\n [iteration] [deprecation] `{ $reference }` selects a child of an iteration of a `<{ $component }>` by its position, which is deprecated: an index selects among what a component makes, not among the children of one.\n [pick] [deprecation] `{ $reference }` selects a child of what a `<{ $component }>` picked by its position, which is deprecated: an index selects among what a component makes, not among the children of one.\n [case] [deprecation] `{ $reference }` selects a child of what a `<{ $component }>` shows by its position, which is deprecated: an index selects among what a component makes, not among the children of one.\n *[group] [deprecation] `{ $reference }` selects a child of a `<group>` by its position, which is deprecated: an index selects among what a component makes, not among the children of one.\n } { $named ->\n [yes] Write `{ $suggestion }` instead.\n *[no] Give the child a name, such as `name="x"`, and write `{ $suggestion }` instead.\n }\n\n\n## Language coverage\n\n# `<pluralize>` runs an English part-of-speech model over its text and puts the\n# nouns in the plural. There is no equivalent for an arbitrary language — a\n# correct plural needs that language\'s own morphology, and often its\n# dictionary — so in a document written in anything else the word is left as\n# the author typed it, and this says so rather than silently doing nothing.\n#\n# Raised only when there is nothing else to fall back on: a `pluralForm` is the\n# author supplying their own language\'s plural, and that is honored in every\n# language, which is why this can recommend it.\n#\n# $locale is the document\'s language tag, as declared.\npluralize-english-only = `<pluralize>` can only pluralize English, so its text is left unchanged in a document written in { $locale }. Write the plural form directly, or set it with the `pluralForm` attribute.\n\n\n## Checking against the schema\n\n# What the editor draws a squiggle under: the language server\'s own check of\n# the document against the DoenetML schema, run on every keystroke and\n# answered before anything is evaluated. A beginner meets these first, and\n# usually only these, because a document that does not pass them rarely gets\n# as far as producing a diagnostic from the core.\n#\n# `@doenet/lsp-tools` writes its English beside the code rather than rendering\n# it from here, for the same reason `@doenet/parser` does: it is inside the\n# language-server bundle, which `@doenet/codemirror` embeds verbatim and\n# starts as a blob worker, and a catalog on the editor\'s critical path is what\n# `packages/lsp/scripts/check-server-bundle.mjs` exists to reject. The two\n# copies are held together by a test in that package, which runs the checker\n# over a corpus and asserts every coded violation renders to exactly what the\n# checker wrote — so a message edited here without its counterpart fails\n# there.\n#\n# $tag, $parent and $attribute quote the author\'s own source back at them and\n# stay exactly as written; the angle brackets and backticks around them are\n# punctuation this catalog supplies, not part of the name.\n\nschema-element-unrecognized = Element `<{ $tag }>` is not a recognized Doenet element.\n\nschema-element-not-allowed-at-root = Element `<{ $tag }>` is not allowed at the root of the document.\n\nschema-element-not-allowed-inside = Element `<{ $tag }>` is not allowed inside of `<{ $parent }>`.\n\nschema-attribute-unrecognized = Element `<{ $tag }>` doesn\'t have an attribute called `{ $attribute }`.\n\n# $allowed is the attribute\'s permitted values, each already in double quotes\n# and joined for the reader\'s language. $isList says whether the attribute\n# takes several of them at once: one situation, two sentences, because the\n# reader has to be told they are choosing a whole list rather than a value.\nschema-attribute-value-not-allowed =\n { $isList ->\n [true] Attribute `{ $attribute }` of element `<{ $tag }>` must be a list whose items are each one of: { $allowed }\n *[other] Attribute `{ $attribute }` of element `<{ $tag }>` must be one of: { $allowed }\n }\n\n\n## The `<select>` family\'s error boxes\n##\n## The messages that replace the whole component with a red box rather than\n## warning beside it: nothing can be selected, so there is nothing to render.\n## They were the last uncoded `_error` path in the worker (#1581).\n##\n## Counts arrive as numbers rather than as text, so a language that agrees a\n## noun with them can select on them. English does not agree here — it says\n## "1 options" today and these messages reproduce it exactly, because the box\'s\n## text is what the existing suites pin.\n##\n## Being numbers, they are grouped: a count of 1500 renders as "1,500" in\n## English where the concatenated sentence these replaced wrote "1500". That is\n## the one way the English moved, and it moved in the right direction — these\n## are quantities, not identifiers like a line or a section number, which is\n## the distinction that decides between a number and a string everywhere in\n## these catalogs.\n##\n## Translators: component and attribute names — `selectFromSequence`,\n## `selectPrimeNumbers`, `from`, `to`, `step` — are DoenetML identifiers, not\n## words. They are written into these messages as they stand and must be left\n## in English exactly as written.\n\nselect-variant-name-option-count-mismatch = Invalid variant name for select. Variant name { $variantName } appears in { $numOptions } options but number to select is { $numToSelect }.\n\nselect-variant-name-without-options = Some variants are specified for select but no options are specified for possible variant name: { $variantName }.\n\nselect-variant-name-not-possible = Variant name { $variantName } that is specified for select is not a possible variant name.\n\nselect-too-few-options = Cannot select { $numToSelect } components from only { $numOptions }.\n\nselect-from-sequence-too-few-values = Cannot select { $numToSelect } values from a sequence of length { $length }.\n\nselect-from-sequence-indices-count-mismatch = Number of indices specified for select must match number to select\n\nselect-from-sequence-indices-not-integers = All indices specified for select must be integers\n\nselect-from-sequence-index-excluded = Specified index of selectfromsequence that was excluded\n\nselect-from-sequence-indices-excluded-combination = Specified indices of selectfromsequence that was an excluded combination\n\nselect-from-sequence-coprime-not-positive-integers = Cannot select coprime combinations as not selecting positive integers.\n\n# Translators: from, to and step are attribute names. They are written into\n# the message rather than passed in because these three never vary — an\n# argument is for a name that changes from one call to the next.\nselect-from-sequence-coprime-common-factor = Cannot select coprime numbers. All possible values share a common factor. (Specified values of "from" or "to" must be coprime with "step".)\n\nselect-from-sequence-coprime-single-number = Cannot select coprime combinations from a single number that is not 1.\n\nselect-from-sequence-excluded-too-many-combinations = Excluded over 70% of combinations in selectFromSequence\n\n# The sibling of `select-from-sequence-coprime-common-factor`, and a different\n# situation rather than a rewording of it: that one is decided up front, from\n# the sequence\'s own arithmetic. This one is what is left after two hundred\n# draws found no coprime combination among values that could have supplied one.\nselect-from-sequence-coprime-none-found = Could not select coprime numbers. All possible values share a common factor.\n\n# Not every value shares a factor, so a coprime selection may exist, but two\n# hundred random draws found none. Which draws are made depends on the variant.\nselect-from-sequence-coprime-draws-exhausted = Could not find coprime numbers among the values in 200 random draws, so nothing is selected.\n\nselect-from-sequence-too-few-unique-values = Cannot select { $numToSelect } unique values from sequence of length { $numPossibleValues }\n\nselect-prime-numbers-too-few-values = Cannot select { $numToSelect } values from a list of primes of length { $numValues }\n\nselect-prime-numbers-values-count-mismatch = Number of values specified for select must match number to select\n\nselect-prime-numbers-values-not-prime = All values specified for select prime number must be in the list of primes\n\nselect-prime-numbers-values-excluded-combination = Specified values of selectPrimeNumbers was an excluded combination\n\nselect-prime-numbers-excluded-too-many-combinations = Excluded over 70% of combinations in selectPrimeNumbers\n\n# Both flukes are shared by `<selectFromSequence>` and `<selectPrimeNumbers>`,\n# which say the same thing in the same words. Neither is reachable in practice\n# — each follows two hundred independent draws — but an unreachable box is\n# still a box, and it renders in whatever language the rest of the page does.\nselect-random-combination-fluke = By extremely unlikely fluke, couldn\'t select combination of random values\n\nselect-random-value-fluke = By extremely unlikely fluke, couldn\'t select random value\n\n## Inputs embedded in math\n\n# Translators: $component is the input\'s own DoenetML tag and stays in English,\n# as do the attribute names `inline`, `expanded` and `width`. An input written\n# inside `<m>` is drawn in the place it is written, inside the typeset\n# expression, which makes room for it as it grows. That needs a control small\n# enough to sit in a line of mathematics, with a width the expression can\n# measure, in an expression that is not drawn on a graph; $reason says which of\n# those this input fails. When it fails, the input is not shown at all, and the\n# expression is typeset with the input\'s value in its place — a text input\'s\n# text, a math input\'s mathematics — or with nothing there for a choice input.\nmath-embedded-input-shape-unsuitable =\n { $reason ->\n [not-inline] This `<{ $component }>` is not shown because it is inside math and is not `inline`. Add `inline` so it becomes a drop-down list, which fits inside an expression.\n [expanded] This `<{ $component }>` is not shown because it is inside math and is `expanded`. Remove `expanded`; a multi-line box does not fit inside an expression.\n [on-graph] This `<{ $component }>` is not shown because it is inside math drawn on a graph, which has no room for an input.\n *[relative-width] This `<{ $component }>` is not shown because it is inside math and has a relative width. Give the width in absolute units, such as `px`, instead.\n }\n\n## `<sampleRandomNumbers>` and `<selectRandomNumbers>`\n##\n## Translators: `mean`, `standardDeviation`, `variance`, `logMean`,\n## `logStandardDeviation`, `logVariance`, `means`, `standardDeviations`,\n## `variances`, `weights`, `numTotal`, `numSuccesses`,\n## `numDraws`, `numTrials`, `probability` and `numSamples` are\n## DoenetML attribute names. They are written into these messages as they stand\n## and must be left in English exactly as written. Each of these names the\n## attribute the author has to change, so a message that translated one would\n## point at an attribute that does not exist.\n\n# The spread reaches the sampler as a standard deviation however it was written,\n# so a negative `variance` arrives here as a `standardDeviation` of NaN and the\n# message has to name both for the author to know what to edit.\nsample-gaussian-parameters-invalid =\n Invalid mean ({ $mean }) or standardDeviation ({ $standardDeviation }) for a gaussian random variable. The mean must be a finite number, and the standardDeviation (or the variance it is derived from) must be finite and non-negative. No numbers can be sampled.\n\n# The log-normal\'s parameters describe the normal distribution its values are the\n# exponential of, not the values themselves, which is why they are named apart from\n# the gaussian\'s `mean` and `standardDeviation`. As there, a negative `logVariance`\n# arrives here as a `logStandardDeviation` of NaN, so both are named.\nsample-lognormal-parameters-invalid =\n Invalid logMean ({ $logMean }) or logStandardDeviation ({ $logStandardDeviation }) for a lognormal random variable. These describe the normal distribution the values are the exponential of: the logMean must be a finite number, and the logStandardDeviation (or the logVariance it is derived from) must be finite and non-negative. No numbers can be sampled.\n\n# The mixture\'s parameters are lists, one entry per component, which is why they are\n# named in the plural and why each arrives here already written out as a list. As\n# above, a negative `variances` entry arrives as a `standardDeviations` entry of NaN,\n# so both are named. `means` has no default, and leaving it off is the commonest way\n# to reach this message: it arrives as `not-set` then, exactly as the hypergeometric\n# attributes below do. Translate the "not set" wording, but leave the `not-set` key\n# that selects it untouched.\nsample-normal-mixture-parameters-invalid =\n Invalid means ({ $means ->\n [not-set] not set\n *[other] { $means }\n }), standardDeviations ({ $standardDeviations ->\n [not-set] not set\n *[other] { $standardDeviations }\n }), or weights ({ $weights ->\n [not-set] not set\n *[other] { $weights }\n }) for a normal mixture random variable. means must list at least one component and give a finite number for each. standardDeviations (or the variances they are derived from) and weights must each give either one finite, non-negative value per component or a single value standing for all of them, and the weights must add up to a total that is positive and finite. No numbers can be sampled.\n\n# These three attributes have no default, so leaving one out is the commonest way to\n# reach this message. Each arrives either as the number the author wrote or as\n# `not-set` for an attribute they left off entirely; translate the "not set" wording,\n# but leave the `not-set` key that selects it untouched.\nsample-hypergeometric-parameters-invalid =\n Invalid numTotal ({ $numTotal ->\n [not-set] not set\n *[other] { $numTotal }\n }), numSuccesses ({ $numSuccesses ->\n [not-set] not set\n *[other] { $numSuccesses }\n }), or numDraws ({ $numDraws ->\n [not-set] not set\n *[other] { $numDraws }\n }) for a hypergeometric random variable. numTotal must be a positive whole number, and numSuccesses and numDraws must be non-negative whole numbers no larger than numTotal. All three must also stay below about nine quadrillion, past which whole numbers can no longer be counted exactly.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\nsample-hypergeometric-draws-too-many =\n Drawing { $numDraws } items from a population of { $numTotal } would need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce numDraws, or bring it closer to numTotal.\n\nsample-binomial-parameters-invalid =\n Invalid numTrials ({ $numTrials }) or probability ({ $probability }) for a binomial random variable. numTrials must be a non-negative whole number below about nine quadrillion, past which whole numbers can no longer be counted exactly, and probability must be between 0 and 1.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\nsample-binomial-trials-too-many =\n Running { $numTrials } trials would need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce numTrials.\n\nsample-poisson-mean-invalid =\n Invalid mean ({ $mean }) for a poisson random variable. The mean must be a finite, non-negative number.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\nsample-poisson-mean-too-large =\n A poisson mean of { $mean } would need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce the mean.\n\n# $distribution names the distribution being sampled, e.g. "binomial" or\n# "multivariate hypergeometric"; $draws is roughly how many random draws each value\n# needs. Raised by `<sampleRandomNumbers>`, `<selectRandomNumbers>` and\n# `<sampleMultivariateRandomNumber>`, which count values with `numSamples`,\n# `numToSelect` and one vector respectively, so the wording names no attribute.\nsample-distribution-slow =\n Each value from this { $distribution } distribution needs about { $draws } random draws, so sampling may be slow. Reduce the distribution\'s parameters, or ask for fewer values, if the page feels sluggish.\n\n## List index operators\n\n# Raised by the index-returning list operators (`<indexOf>`, `<searchSorted>`)\n# when no `target` was given. $component names the tag the author wrote.\nindex-operator-missing-target =\n `{ $component }` has no `target` to look for, so it cannot report a position and gives 0.\n\n# Raised when the operator had no values to look through — an empty list, or one\n# whose only children were references that produced nothing.\nindex-operator-no-values =\n `{ $component }` has no values to look through, so it gives 0, which is not the index of any item.\n\n# Raised by `<searchSorted>` when its values are not in ascending order, which is\n# the one thing it asks of them. Deliberately names no offending value or\n# position: a list can pass through many arrangements while it is being built or\n# edited, and a message that changed with the arrangement would leave one entry\n# behind for each. `<sort>` is a DoenetML tag name and `allowUnsorted` is an\n# attribute name; both stay in English.\nindex-operator-values-not-sorted =\n `{ $component }` reports where a target belongs among values that are already in ascending order, and these are not in that order, so it gives 0, which is not the index of any item. Order the values first, such as with `<sort>`, or write `allowUnsorted` to have the position worked out from the values as they are.\n\n## `<sampleMultivariateRandomNumber>`\n##\n## Translators: `type`, `numInCategories` and `numDraws` are DoenetML attribute\n## names, and `hypergeometric` is one of the values `type` takes. They are written\n## into these messages as they stand and must be left in English exactly as\n## written. Each names the attribute the author has to change, so a message that\n## translated one would point at an attribute that does not exist.\n\n# Neither attribute has a default that names a population — numDraws has none at\n# all, and numInCategories falls back to a list with no categories in it — so\n# leaving one out is the commonest way to reach this message. Each arrives either\n# as the value the author wrote or as `not-set`: for numDraws when it is missing,\n# and for numInCategories when it names no categories, whether it was left off or\n# written empty. Translate the "not set" wording, but leave the `not-set` key that\n# selects it untouched.\nsample-multivariate-parameters-invalid =\n Invalid numInCategories ({ $numInCategories ->\n [not-set] not set\n *[other] { $numInCategories }\n }) or numDraws ({ $numDraws ->\n [not-set] not set\n *[other] { $numDraws }\n }) for a multivariate hypergeometric random variable. numInCategories must list at least one category, each a non-negative whole number, and numDraws must be a non-negative whole number no larger than their total. Each category, that total, and numDraws must also stay below about nine quadrillion, past which whole numbers can no longer be counted exactly.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\n# Drawing nearly the whole population is as cheap as drawing almost none of it, so\n# raising numDraws is a fix as well as lowering it. "could need" rather than "would\n# need": each category is counted at the most its draw could cost, so the count\n# these parameters are refused on is an upper bound on the work they really take.\nsample-multivariate-draws-too-many =\n Drawing { $numDraws } items from a population of { $numTotal } split into { $numCategories } categories could need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce numDraws, bring it closer to numTotal, or use fewer categories.\n\n# `type` has no default, so this is what leaving it off gets. A type the attribute\n# does not recognize falls back to no type at all and reaches this message too,\n# after a separate one naming the value that was rejected — hence "no distribution\n# was named" rather than wording that assumes the attribute is missing.\nsample-multivariate-type-not-specified =\n No multivariate distribution was named for this random variable, so nothing was sampled. Give the type attribute the name of a distribution, such as `type="hypergeometric"`.\n\n## Counting operators\n\n# Raised by `<tally>` when the author named `categories` explicitly and some\n# values matched none of them, so those values were not counted anywhere. Info\n# rather than a warning: a list fed by an input legitimately holds\n# non-categories while a student is typing. It deliberately does not say how\n# many such values there were: the diagnostics queue is append-only and\n# deduplicates by message, so a count would leave one permanent entry behind\n# for every number of stray values the list passed through while being typed.\ntally-values-outside-categories =\n Some values matched none of the declared categories, so they were not counted.\n\n# Raised by `<chart type="histogram">` when an observation falls outside the\n# outermost cut points. Only cut points an author wrote can leave any — bins the\n# chart chooses cover the data — so this says what a written `bins` left out.\n# Info rather than a warning, for the reason the message above is: leaving part\n# of a sample out of a picture is something an author may have meant, and a\n# column fed by an input passes through values outside the bins while a student\n# is typing. It deliberately does not say how many: the diagnostics queue is\n# append-only and deduplicates by message, so a count would leave one permanent\n# entry behind for every number the column passed through.\nchart-histogram-values-outside-bins =\n Some observations fell outside the `bins` cut points, so they were not counted in any bar.\n\n# Raised by `<tally>` when `categories` names the same category more than once.\n# A warning rather than info: unlike a stray value, a repeated category is a\n# property of what the author wrote, so it stays true of a settled document. The\n# message says what the counts will be, since the behavior is defensible but not\n# what an author who repeated a category by accident expects.\ntally-repeated-category =\n `categories` names the same category more than once. Each count reports the values equal to its own category, so the repeated ones all report the same number.\n\n# Raised by `<binCounts>` when no `bins` attribute was given, so there are no\n# intervals to count into. $component names the tag the author wrote.\nbin-counts-missing-bins =\n `{ $component }` has no `bins` cut points, so there are no intervals to count into and it gives no counts.\n\n# Raised by `<binCounts>` when `bins` held fewer than the two cut points needed\n# to define a single interval. $count is how many were given, and can be 0 or 1,\n# so the sentence is worded to read for both without forking on the number.\nbin-counts-too-few-cut-points =\n `bins` needs at least 2 cut points to define an interval, but received { $count }.\n\n# Raised by `<binCounts>` when its values are not all numeric, so they cannot be\n# placed between numeric cut points. $component names the tag the author wrote.\nbin-counts-values-not-numeric =\n `{ $component }` can only count numeric values into bins, but not every value it was given is numeric. All counts are 0.\n\n# Raised by `<binCounts>` when the `bins` cut points do not climb: one is\n# smaller than the one before it, so a bin would run backwards and its count\n# would come out negative, or one is not a number at all, which has the same\n# effect. Equal adjacent cut points are accepted, so the message says "at least\n# as large as" rather than "increasing": what is rejected is a decrease, not a\n# failure to strictly increase. Between two interior cut points that names an\n# empty bin; at either end the outermost-edge rule can still put a value in it.\nbin-counts-cut-points-decreasing =\n Each `bins` cut point must be a number at least as large as the one before it, but one is not a number or is smaller than its predecessor, so no counts were produced.\n\n## Charts\n\n# Raised by `<chart type="bar">` when a value is not a finite number, so it gets\n# no bar. The alternative reading of a missing bar is a value of zero, which the\n# author cannot distinguish by looking, so the absence is stated rather than left\n# to be inferred. No count: the queue is append-only and deduplicates by message,\n# and the number of such values changes as an input is typed into. (The message\n# key is `bar-chart-…` because a code names one situation forever and this one\n# was issued while the component was still spelled `<barChart>`.)\nbar-chart-values-not-drawable =\n A bar chart draws no bar for a value that is not a finite number, so those places on the chart are empty rather than zero.\n\n# Raised by `<chart type="bar">` when `barWidth` is outside the (0, 1] range a\n# fraction of a bar\'s slot can take. $barWidth is what the author wrote.\nbar-chart-bar-width-invalid =\n `barWidth` must be greater than 0 and at most 1, but { $barWidth } was given. Using 0.8 instead.\n\n# `type` has no default, so this is what `<chart>` on its own gets. A type the\n# attribute does not recognize falls back to no type at all and reaches this\n# message too, after a separate one naming the value that was rejected — hence\n# "no chart type was named" rather than wording that assumes the attribute is\n# missing.\nchart-type-not-specified =\n No chart type was named, so nothing was drawn. Give the type attribute the name of a chart, such as `type="bar"`.\n\n# Raised by `<chart>` when values are written beside its `<series>` children.\n# A value outside every series belongs to no group of the data, so there is no\n# place on the chart to draw it; saying so matters because the alternative\n# reading of the missing bar is that the value was zero.\nchart-values-outside-series =\n A chart with `<series>` children draws only the values inside them, so values written beside a series were not drawn. Move them into a series of their own.\n\n# Raised by `<chart type="line">` and `<chart type="scatter">` when a point\n# cannot be placed. Two situations reach it and the message covers both: a value\n# that is not a finite number, and a value with no `x` beside it — which is what\n# a series given fewer horizontal coordinates than values produces from the\n# position they run out. Neither is distinguishable by looking from having asked\n# for fewer points. No count: the queue deduplicates by message, and the number\n# changes as an input is typed into.\nchart-points-not-drawable =\n A point needs a finite number for both coordinates, so values with no coordinate beside them, and coordinates with no value, were not drawn.\n\n# Raised by `<chart type="pie">` for a value that is not a finite number. The\n# bar chart\'s message says the place on the chart is empty rather than zero; a\n# pie has no places, so this says the slice is missing instead. No count, for\n# the reason the others give: the queue deduplicates by message.\nchart-pie-values-not-drawable =\n A pie chart draws no slice for a value that is not a finite number, and leaves it out of the total.\n\n# Raised by `<chart type="pie">` for a negative value. Its own message rather\n# than the one above, because the reason is different in kind: a negative bar\n# hangs below the baseline it is measured from, and a pie has no baseline to\n# hang anything from, so a negative value is not merely undrawable but has no\n# reading as a share of a total. It is left out of the total as well, so the\n# slices that are drawn are shares of what was actually charted.\nchart-pie-negative-values =\n A slice is a share of a total, so a pie chart draws no slice for a negative value and leaves it out of the total.\n\n# Raised by `<chart type="pie">` when the values that could be shares of a\n# total came to zero. Nothing is drawn: there is no share to take of zero, and\n# dividing by it would put `NaN` in every angle. Not raised for a pie with no\n# values at all, which is one being written rather than one that is wrong, nor\n# for one whose every value was rejected — those already have a message naming\n# the reason.\nchart-pie-total-not-positive =\n The values of this pie chart total zero, so there are no shares to draw. A pie needs at least one value above zero.\n\n# Raised by `<chart type="pie">` holding more than one `<series>` that is not\n# hidden — a hidden one is dropped before the count, like any drawn child of a\n# container that is hidden on its own account. Concentric\n# rings are not a standard chart and a donut is a styling variant rather than a\n# second group, so there is nowhere on a pie for a second series to go.\nchart-pie-one-series =\n A pie chart draws one series, so only the first was drawn. Chart the others separately, or use a type that draws several series at once.\n\n# Raised by `<chart type="pie">` whose `<xLabel>` or `<yLabel>` child has text\n# in it; a blank one asks for nothing and is not reported. A pie\n# has no axes for either to name, so the text is authored prose with nowhere on\n# the page to go — which is worth a message where an ignored *attribute* is not,\n# because what was dropped is something the author wrote for a reader to see.\nchart-pie-axis-name-ignored =\n A pie chart has no axes, so an `<xLabel>` or `<yLabel>` was not drawn. Put the text in a `<title>` instead, or in prose beside the chart.\n\n# Raised by `<chart type="box">` for an observation that is not a finite\n# number. Left out of the summary rather than read as zero, which would move\n# every quartile of the box drawn from it. No count, for the reason the others\n# give: the queue deduplicates by message, and the number changes as an input is\n# typed into.\nchart-box-values-not-drawable =\n A box plot summarizes finite numbers, so an observation that is not one was left out of its summary.\n\n# Raised by `<chart type="box">` carrying a `categories` attribute. A box chart\n# has no categories: each of its series is one position on the axis and is named\n# by its own `<label>`, so the names in `categories` are authored text with\n# nowhere on the page to go — which is worth a message where an ignored\n# *attribute* is not, because what was dropped is something the author wrote for\n# a reader to see.\nchart-box-categories-ignored =\n A box plot names each of its boxes after the series it was drawn from, so `categories` was not used. Give each `<series>` a `<label>` instead.\n\n# Raised by `<chart type="histogram">` for an observation that is not a finite\n# number, which falls in no bin. Its own message rather than the box plot\'s,\n# because what is lost differs: there a quartile moves, here a bar is one\n# shorter. No count, for the reason the others give: the queue deduplicates by\n# message, and the number changes as an input is typed into.\nchart-histogram-values-not-drawable =\n A histogram counts finite numbers, so an observation that is not one fell in no bin.\n\n# Raised by `<chart type="histogram">` holding more than one `<series>` that is\n# not hidden — a hidden one is dropped before the count, like any drawn child of\n# a container that is hidden on its own account. Two samples counted into the\n# same bars would have to be stacked or drawn through each other, and neither is\n# a reading a histogram can be given without being told which was meant.\nchart-histogram-one-series =\n A histogram draws one series, so only the first was drawn. Chart the others separately, or compare them with `type="box"`.\n\n# Raised by `<chart type="histogram">` whose `bins` is a single number that is\n# not a number of bins: not a whole number, not positive, or more bins than a\n# picture can hold. $bins is what the author wrote and $maximum the most that\n# may be asked for. Two or more numbers are read as cut points instead, and are\n# reported by the message below.\nchart-histogram-bin-count-invalid =\n `bins` must be a whole number of bins from 1 to { $maximum }, or two or more cut points, but { $bins } was given. Choosing bins from the data instead.\n\n# Raised by `<chart type="histogram">` whose `bins` holds two or more numbers\n# that do not describe bins to draw. `<binCounts>` has a message of its own for\n# the same list, and this one differs in what happens next: a chart has data to\n# choose bins from, so it draws those rather than drawing nothing.\n#\n# A cut point that is not finite is reported here too, where `<binCounts>`\n# counts into a bin with no far end quite happily — a bar with no far end is not\n# something a picture can hold.\nchart-histogram-cut-points-invalid =\n Each `bins` cut point must be a finite number at least as large as the one before it. Choosing bins from the data instead.\n\n# Raised by `<chart type="histogram">` carrying a `categories` attribute. A\n# histogram has no categories: its positions are the bins it divided the scale\n# into, named by the numbers they run between, so the names in `categories` are\n# authored text with nowhere on the page to go — which is worth a message where\n# an ignored *attribute* is not, because what was dropped is something the\n# author wrote for a reader to see.\nchart-histogram-categories-ignored =\n A histogram names its bars by the cut points they run between, so `categories` was not used. Give `bins` the cut points you want instead.\n\n# Raised by `<chart type="histogram">` carrying a `barWidth` attribute. The gap\n# a `barWidth` below 1 leaves is what says two bars stand for separate things,\n# and a histogram\'s bars are neighboring stretches of one continuous scale —\n# so there is no slot for a width to be a fraction of.\nchart-histogram-bar-width-ignored =\n A histogram\'s bars are adjacent, with no gap between them, so `barWidth` was not used. Give `bins` fewer cut points to draw wider bars.\n\n## copy and copyWithState (D33)\n\n# `copyWithState` keeps the random choices of what it copies, so an attribute\n# written on it that decides what a choosing tag chooses, $attribute, such as\n# `numToSelect` on a `<select>`, can\'t take effect. `copy` makes a new\n# $componentType that chooses again. $attribute and $componentType stay in\n# English.\ncopy-with-state-changes-choice = `{ $attribute }` decides what this `<{ $componentType }>` chooses, so it can\'t be written on a `copyWithState`, which keeps the choices it copies. Use `copy` to make a new `<{ $componentType }>` that chooses again.\n\n# As `copy-with-state-changes-choice`, for a child $childType (an `<option>` of\n# a `<select>`, a `<choice>` of a `<choiceInput>` that shuffles its order)\n# added inside a `copyWithState`, which would change what it chooses. $kind is\n# `text` when what was added is text whose pieces become choices (the `4 5` of\n# `<shuffle copyWithState="$s">4 5</shuffle>`), and `element` otherwise.\ncopy-with-state-adds-options =\n { $kind ->\n [text] Adding text to a `copyWithState` of a `<{ $componentType }>` would add to what it chooses from, which a `copyWithState` keeps. Use `copy` to make a new `<{ $componentType }>` that chooses again.\n *[other] Adding a `<{ $childType }>` to a `copyWithState` of a `<{ $componentType }>` would change what it chooses, which a `copyWithState` keeps. Use `copy` to make a new `<{ $componentType }>` that chooses again.\n }\n\n# A random selection (a `<select>`, a `<selectFromSequence>`, ...) whose\n# parameter $attribute reads $reference, a reference as the author wrote it\n# (`$n`, `$P.x`), which reaches a `<{ $changeableType }>`. $kind is `sampler`\n# when that is a sampler (`<sampleRandomNumbers>`, ...), which draws again\n# when what it reads changes or when it is resampled, and `reader` otherwise:\n# something a reader can change, as an input, an answer, a slider, or\n# something a reader drags or writes to (a `<number>` a dragged point reads).\n# $componentType is the selection\'s own tag. A selection\'s parameters must\n# come from the DoenetML, so the selection is an error in every variant (D39,\n# SEL-1). The tags, attribute names and `indexName` stay in English.\nchoice-parameter-reader-changeable =\n { $kind ->\n [sampler] `{ $attribute }` of `<{ $componentType }>` reads `{ $reference }`, which reaches a `<{ $changeableType }>`, a sampler, which draws again when what it reads changes or when it is resampled. What a random selection chooses from must come from what the author wrote: literals, other random selections (not samplers), content that can\'t change, and a repeat\'s `indexName`.\n *[other] `{ $attribute }` of `<{ $componentType }>` reads `{ $reference }`, which reaches a `<{ $changeableType }>` that a reader can change. What a random selection chooses from must come from what the author wrote: literals, other random selections (not samplers), content that can\'t change, and a repeat\'s `indexName`.\n }\n\n# A random selection that can\'t select as written for some value its\n# parameters can take, decided at load (SEL-5). $when names those values, as\n# "`$a` = 1, `$i` = 2" (references are DoenetML, and stay as written); for\n# $kind "unproven" it gives the values at which it can\'t be decided, or, when\n# the values were bounded instead, their ranges, as "`$i` ∈ {1, 2, 3, …}"\n# (it can\'t be decided for some values in them).\n# $attribute is the parameter that isn\'t a number, or, for $kind "letters",\n# the `from` or `to` of a letters sequence whose text isn\'t letters (as text\n# with space around a letter isn\'t) (DoenetML). $variantName is a variant\n# name as the author wrote it. For $kind "variantOptions", $reference is the\n# reference an option is copied with, as written (DoenetML), and $when is\n# empty.\nchoice-not-always-possible =\n { $kind ->\n [values] `<{ $componentType }>` can\'t always select as written: when { $when }, it has { $numValues ->\n [one] 1 value\n *[other] { $numValues } values\n } to select { $numToSelect } from.\n [primes] `<{ $componentType }>` can\'t always select as written: when { $when }, it has { $numValues ->\n [one] 1 prime\n *[other] { $numValues } primes\n } to select { $numToSelect } from.\n [options] `<{ $componentType }>` can\'t always select as written: when { $when }, it has { $numValues ->\n [one] 1 option\n *[other] { $numValues } options\n } to select { $numToSelect } from.\n [coprime] `<{ $componentType }>` can\'t always select as written: when { $when }, no { $numToSelect } of its values have no common factor.\n [combinations] `<{ $componentType }>` can\'t always select as written: when { $when }, every combination of { $numToSelect } values is excluded.\n [variants] `<{ $componentType }>` can\'t always select as written: when { $when }, `numToSelect` is { $numToSelect }, but variant { $variantName } has { $numValues ->\n [one] 1 option\n *[other] { $numValues } options\n }.\n [number] `<{ $componentType }>` can\'t always select as written: when { $when }, `{ $attribute }` isn\'t a number.\n [letters] `<{ $componentType }>` can\'t always select as written: when { $when }, `{ $attribute }` isn\'t letters.\n [variantOptions] DoenetML can\'t show that `<{ $componentType }>` can always select as written: the option it copies with `{ $reference }` can be a different option in each variant, so a variant may have no option for it, while another option names the variants it is for (`selectForVariants`). Copy an option that the DoenetML decides, or name no variants.\n *[unproven] DoenetML can\'t show that `<{ $componentType }>` can always select as written: it can\'t decide whether it can when { $when }. Write its parameters so that it can, such as with `numToSelect` no larger than the fewest values it can have.\n }\n\n# A parameter of a random selection that the load-time check can\'t analyse\n# (SEL-6). $part is what isn\'t analysable, as written (DoenetML). With\n# $through "component", it is inside the `<{ $throughType }>` that\n# $reference names.\nchoice-parameter-not-analysable =\n { $through ->\n [component] `{ $attribute }` of `<{ $componentType }>` reads `{ $reference }`, a `<{ $throughType }>` holding `{ $part }`, which DoenetML can\'t analyse to show that the selection can always be made. A parameter can be a literal; a reference to one value another random selection selects, a repeat\'s index or value, a module attribute, or a `<number>`, `<integer>` or `<math>` of these; and these combined with `+`, `-`, `*`, `/`, `min`, `max`, `abs`, `floor`, `ceil` and `round`.\n *[other] `{ $attribute }` of `<{ $componentType }>` reads `{ $part }`, which DoenetML can\'t analyse to show that the selection can always be made. A parameter can be a literal; a reference to one value another random selection selects, a repeat\'s index or value, a module attribute, or a `<number>`, `<integer>` or `<math>` of these; and these combined with `+`, `-`, `*`, `/`, `min`, `max`, `abs`, `floor`, `ceil` and `round`.\n }\n\n# A random selection whose parameter $attribute (an attribute name, which\n# stays in English) isn\'t a number, or, with $kind "letters", isn\'t letters,\n# so it can\'t select as written (D39). $componentType is the tag.\nchoice-parameter-not-a-number =\n { $kind ->\n [letters] `<{ $componentType }>` can\'t select as written: `{ $attribute }` isn\'t letters.\n *[number] `<{ $componentType }>` can\'t select as written: `{ $attribute }` isn\'t a number.\n }\n\n# A document loaded from a URI, $uri, has no reader state, so a\n# `copyWithState` of it has nothing to carry and is made as a `copy`.\ncopy-with-state-of-uri = `copyWithState` of `{ $uri }` carries nothing more than `copy`, since a document loaded from a URI has no state. Write `copy`.\n\n# An attribute $attribute written on a `copyWithState` reaches a choosing tag\n# inside it, such as a `<module>` attribute that sets a nested `numToSelect`.\n# The choices copied with the state are kept, so it changes nothing there.\ncopy-with-state-attribute-reaches-choice = `{ $attribute }` reaches a choice inside this `copyWithState`, which keeps the choices it copies, so it does not change them. Use `copy` to make the choices again.\n\n# A `<sort>` or `<shuffle>` ($component) whose items are of more than one\n# type (COLL-4, D41). $first and $second are two of the items found, each\n# described by a kind: "one", a component of the tag $first; "piece", the\n# text $firstPiece the author wrote, read as the tag $first; "group", a\n# `<group>` of $firstCount components; or "item", the items of the\n# collection $first (`repeat`, `select`, `conditionalContent`), each holding\n# $firstCount components. Likewise for $second. $suggestType is `yes` when\n# one of them is text the author wrote and the other a number, math or text,\n# so that `type` (how to read the text) can make them one type; it can\'t\n# beside a `<p>`, a point, a boolean or a group. $wrap says how to make them\n# one type when one is content an author may take for a value (D46): `m`, an\n# `<m>` ($mTag: `m`, `me` or `men`) beside a math, which a `<math>` around it\n# reads as math; `label`, a `<label>` beside a text, which a `<text>` around it\n# reads as text; `no` otherwise. $mTag is `m` when $wrap isn\'t `m`.\nreorder-items-of-several-types = `<{ $component }>` takes items of one type, but it has { $firstKind ->\n [group] a `<group>` of { $firstCount } components\n [item] the items of a `<{ $first }>` (each of { $firstCount } components)\n [piece] `{ $firstPiece }` (read as a `<{ $first }>`)\n *[one] a `<{ $first }>`\n } and { $secondKind ->\n [group] a `<group>` of { $secondCount } components\n [item] the items of a `<{ $second }>` (each of { $secondCount } components)\n [piece] `{ $secondPiece }` (read as a `<{ $second }>`)\n *[one] a `<{ $second }>`\n }. Give each type a `<{ $component }>` of its own{ $suggestType ->\n [yes] , or write `type` to say how to read the text\n *[other] {""}\n }.{ $wrap ->\n [m] {" "}`<{ $mTag }>` shows LaTeX; it isn\'t a math. To sort or shuffle it with other maths, write `<math><{ $mTag }>…</{ $mTag }></math>` (or `<math>$mm</math>` for an `<{ $mTag }>` named `mm`), which reads its LaTeX as math.\n [label] {" "}A `<label>` shows its content; it isn\'t a text. To sort or shuffle it with other texts, write `<text><label>…</label></text>` (or `<text>$l</text>` for a `<label>` named `l`), which reads it as text.\n *[other] {""}\n }\n\n# A `<sort>` or `<sortIndices>` ($component) of items with no value to\n# compare, with no `sortByProp` (COLL-4, D46): content ($kind `content`, as a\n# `<p>`), or objects other than points and vectors ($kind `object`, as an\n# `<atom>` or a `<line>`). $item is the tag of the first item. $suggestText is\n# `yes` for content with a `text` property, which `sortByProp="text"` sorts by.\n# `sortByProp` and the tags stay in English.\nsort-needs-sort-by-prop = `<{ $component }>` can\'t compare its items: { $kind ->\n [content] `<{ $item }>` is content, with no value to sort by\n *[object] `<{ $item }>` has no value to sort by\n }. Add `sortByProp` naming the property to compare{ $suggestText ->\n [yes] , as `<{ $component } sortByProp="text">` compares the text each one shows\n *[other] , as `<{ $component } sortByProp="name">` does for a property `name`\n }.\n\n# A `<sort>` or `<sortIndices>` ($component) whose `sortByProp` names no\n# property ($property) of an item it sorts, the first such of the tag $item\n# (#2627 item 5, DIAG-3). Reported at load. $suggestion (when $hasSuggestion is\n# `true`) is the property in the case the item has it, as property names are\n# case-sensitive (D51). `sortByProp`,\n# the property and the tags stay in English.\nsort-by-prop-names-nothing = `sortByProp="{ $property }"` names no property of a `<{ $item }>`, so the `<{ $component }>` can\'t compare its items by it{ $hasSuggestion ->\n [true] . Did you mean `sortByProp="{ $suggestion }"`?\n *[other] .\n }\n\n# An `<answer>` reads a response from a `<conditionalContent>` that is of\n# one type, $firstType, in one case and of another, $secondType, in another\n# (TYPE-2, COMP-11): the response would change type as the case shown\n# changes, so it is an error at load, shown in place of the\n# `<conditionalContent>`. The tags stay in English.\nanswer-responses-of-several-types = An `<answer>` reads a response from this `<conditionalContent>` that is a `<{ $firstType }>` in one case and a `<{ $secondType }>` in another, but a response has one type, decided from what is written. Give it one type in every case.\n\n# The `for` of a `<repeat>` holds items of one type (COLL-5, D44), decided\n# at load. $reason is `mix` for items of more than one type, the first two\n# described as in `reorder-items-of-several-types` ($firstKind, $first,\n# $firstCount, $firstPiece and the same for $second); or `type` when the\n# repeat says `type="$type"` and an item, described by the $first\n# arguments, is of another type. $suggestText is `yes` when text written in\n# `for` is beside a text, so `type="text"` would read the text as text.\n# `for`, `type` and the tags stay in English.\nrepeat-for-items-of-several-types = { $reason ->\n [type] This `<repeat>` says `type="{ $type }"`, so every item of its `for` is to be a { $type }, but `for` has { $firstKind ->\n [group] a `<group>` of { $firstCount } components\n [item] the items of a `<{ $first }>` (each of { $firstCount } components)\n [piece] `{ $firstPiece }` (read as a `<{ $first }>`)\n *[one] a `<{ $first }>`\n }. Remove `type`, or give that item a `<repeat>` of its own.\n *[mix] The `for` of a `<repeat>` holds items of one type, but it has { $firstKind ->\n [group] a `<group>` of { $firstCount } components\n [item] the items of a `<{ $first }>` (each of { $firstCount } components)\n [piece] `{ $firstPiece }` (read as a `<{ $first }>`)\n *[one] a `<{ $first }>`\n } and { $secondKind ->\n [group] a `<group>` of { $secondCount } components\n [item] the items of a `<{ $second }>` (each of { $secondCount } components)\n [piece] `{ $secondPiece }` (read as a `<{ $second }>`)\n *[one] a `<{ $second }>`\n }. Give each type a `<repeat>` of its own{ $suggestText ->\n [yes] , or write `type="text"` to read the text written in `for` as text\n *[other] {""}\n }.\n }\n\n# A `<sort>` or `<sortIndices>` ($component) of an item holding several\n# components, which has nothing to be compared by (COLL-4, D41). The item is\n# described by $itemKind: "group", a `<group>` of $itemCount components, or\n# "item", the items of the collection $item, each holding $itemCount\n# components. The message names what to write instead: a `<collect>` of the\n# components, of the tag $firstType of the first of them, or a name in each\n# item; and, for a `<sort>`, a `<shuffle>`, which keeps them together.\nsort-item-of-several = { $itemKind ->\n [item] `<{ $component }>` can\'t compare the items of a `<{ $item }>`, each of { $itemCount } components. To sort one component of each, name it (`<{ $component }>$r.n</{ $component }>` sorts the `n` of each item of `r`), or sort a `<collect>` of the components (`<collect componentType="{ $firstType }" from="$r"/>`).\n *[group] `<{ $component }>` can\'t compare a `<group>` of { $itemCount } components. To sort its components, sort a `<collect>` of them (`<collect componentType="{ $firstType }" from="$g"/>` of a group `g`), or write them in the `<{ $component }>` without the group.\n }{ $component ->\n [sort] {" "}Use `<shuffle>` to keep each item\'s components together.\n *[other] {""}\n }\n';
1899
1908
  const editor = '# Editor and language-server surfaces: the footer, the diagnostics panel, the\n# variant picker, the accessibility button, and the context-help panel beside\n# them. Selected by `uiLocale`.\n#\n# The editor binds to *one* language, and it is the one the viewer below it\n# resolved rather than the one the surrounding host chrome uses: the panel\n# lists diagnostics rendered down there, where an authored `<document lang>` is\n# known, and a footer in one language above a panel in another reads worse than\n# either choice on its own (#1580).\n#\n# The LSP ships bundled with its DoenetML version, so these catalogs are\n# version-correct rather than always-latest.\n#\n# Message ids are lower-kebab-case Fluent identifiers, optionally with a\n# single `.attribute` suffix (`format-document`).\n\n\n## The viewer\'s controls\n##\n## `editor-update-viewer` names the button that recompiles the document. Its\n## word depends on whether the source changed or only the document\'s state\n## did, which is a distinction the code makes and a `$action` says: the button\n## is otherwise identical, and splitting it into two messages would let the two\n## drift.\n##\n## The keyboard hint is a separate branch rather than text appended after the\n## title, because where a shortcut sits in a sentence is not the same in every\n## language. `$shortcut` is a key combination and stays as written.\n##\n## The tooltip takes the word as `$word` rather than referencing the message\n## above it: a message reference resolves only inside its own bundle, so a\n## locale that translated the tooltip but not the word would render the\n## reference literally instead of falling back to English. This is the shape\n## `paginator-page-status` already uses.\n\n# Button label. "Update" recompiles after a source edit; "Reset" reverts\n# only the document\'s live state to match — same button, different verb.\n# Keep both forms short enough to fit a toolbar button.\neditor-update-viewer =\n { $action ->\n [reset] Reset\n *[update] Update\n }\n\n# Tooltip on the button above. { $word } is that button\'s own current label\n# ("Update" or "Reset"), so this reads as e.g. "Update Viewer" or\n# "Reset Viewer". { $shortcut } appends the keyboard shortcut when one exists.\neditor-update-viewer-title =\n { $shortcut ->\n [none] { $word } Viewer\n *[other] { $word } Viewer { $shortcut }\n }\n\n\n## The variant picker\n\n# Label for the variant picker control itself (a noun, like a field label).\neditor-variant = Variant\n\n# Placeholder text shown in the empty filter input, before the user types\n# anything — not a button or instruction.\neditor-variant-filter = Filter...\n\n# Button/action label: advances to the next variant in the list.\neditor-variant-next = Select next variant\n\n# Button/action label: goes back to the previous variant in the list.\neditor-variant-previous = Select previous variant\n\n\n## The accessibility status button\n##\n## `WCAG AA` is the name of the standard and is not translated, the way\n## `accessibility-heading-level-1` already leaves it.\n##\n## The tooltip and the label are separate messages rather than one with an\n## extra clause: the label counts the violations and the tooltip does not, and\n## a screen reader and a hover are different audiences.\n##\n## `$action` is whether clicking opens or closes the report — an interpolated\n## English verb before this, which no locale could reach and which no language\n## has to place where English does.\n\neditor-accessibility-title =\n { $status ->\n [violations] WCAG AA accessibility violation identified. Click to { $action ->\n [close] close\n *[open] open\n } accessibility report.\n [advisories] Click to { $action ->\n [close] close\n *[open] open\n } accessibility report. No WCAG AA violations were found, but additional accessibility recommendations are available.\n *[clean] Click to { $action ->\n [close] close\n *[open] open\n } accessibility report. No accessibility issues were found.\n }\n\neditor-accessibility-label =\n { $status ->\n [violations] WCAG AA accessibility violation identified. { $count ->\n [one] { $count } WCAG AA violation\n *[other] { $count } WCAG AA violations\n } found. Click to { $action ->\n [close] close\n *[open] open\n } accessibility report.\n [advisories] No WCAG AA violations identified. { $count ->\n [one] { $count } additional accessibility recommendation\n *[other] { $count } additional accessibility recommendations\n } found. Click to { $action ->\n [close] close\n *[open] open\n } accessibility report.\n *[clean] No WCAG AA violations identified. Click to { $action ->\n [close] close\n *[open] open\n } accessibility report.\n }\n\n# The word on the button itself, beside the icon, when there are violations.\neditor-accessibility-badge = WCAG\n\n\n## The footer\n##\n## `$version` is a version number and stays as written.\n\neditor-version-title = DoenetML version { $version }\n\neditor-tab-help = Context-sensitive help\n# The word beside the icon on that tab, which has room for one word.\neditor-tab-help-short = Context\neditor-tab-errors = Errors\neditor-tab-warnings = Warnings\neditor-tab-info = Info\neditor-tab-accessibility = Accessibility\neditor-tab-responses = Submitted responses\n\n# A tab\'s accessible name when it carries a count: "Errors: 3".\neditor-tab-with-count = { $label }: { $count }\n\neditor-options = Editor options\neditor-format-as-doenetml = Format as DoenetML\neditor-format-as-xml = Format as XML\n\n\n## The diagnostics panel\n\n# Where in the source a diagnostic was found. `$line` arrives as text, not as a\n# number: it identifies the line, so line 1234 is "#1234" and not "#1,234".\neditor-diagnostic-line = Line #{ $line }\n\neditor-no-errors = No Errors\neditor-no-warnings = No Warnings\neditor-no-info = No Info Diagnostics\n\neditor-show-info-annotations = Show info diagnostics in editor\neditor-show-accessibility-annotations = Show accessibility diagnostics in editor\n\n# Links into the documentation, which has no translated pages yet. The words\n# move; where they point does not (#1580).\neditor-accessibility-learn-more = Learn how Doenet approaches accessibility\n\n# The heading over the WCAG AA failures. The standard\'s name is a link, so it\n# arrives as an argument rather than being written into the sentence — the\n# brackets around it are this catalog\'s punctuation, and the link is the code\'s.\neditor-accessibility-violations-heading = Accessibility violations ({ $standard })\n\neditor-accessibility-other-heading = Other accessibility issues\neditor-none-found = None found\n\n\n## Submitted responses\n\neditor-no-responses = No submitted responses yet\neditor-response-answer-id = Answer Id\neditor-response-response = Response\neditor-response-credit = Credit\neditor-response-submitted = Submitted\n\n\n## The context-help panel\n##\n## The panel beside the diagnostics, which explains whatever the cursor is on.\n## It is the last of the surfaces the header above names.\n##\n## Several of these sentences have marked-up fragments in them — an element\n## name in `<code>`, a link, a rendered piece of inline markdown. Those arrive\n## as arguments and are put back as React nodes after the message is formatted,\n## so a translation owns the whole sentence including where each fragment sits\n## and the punctuation around it. A translation that drops one simply renders\n## without it rather than losing the sentence.\n##\n## Element names, attribute names and `styleNumber` are DoenetML identifiers\n## and stay as written. The descriptions and summaries the panel shows come\n## from the schema, which is generated from the documentation and is not\n## translated, and the values it resolves — a color\'s derived word, a\n## function name, a type — come from the language server in the same state.\n## What is here is the panel\'s own prose around them (#1580).\n\nhelp-placeholder = Place cursor on a tag name, attribute, or { $ref } for documentation.\n\nhelp-unsupported-ref-chain = Help for multi-part references like { $example } is not yet supported.\n\nhelp-unresolved-ref =\n { $reason ->\n [notFound] No referent found for reference: { $ref }.\n [multiple] Multiple referents found for reference: { $ref }.\n *[indeterminate] A referent for { $ref } could not be determined.\n }\n\n# Both links end in an arrow, which is direction rather than punctuation and is\n# the same in every language this ships in — but it is inside the message, so a\n# language written right to left can turn it around.\nhelp-learn-about-references = Learn about references →\nhelp-reference-page = Reference page →\n\n# What can go where the cursor is. Two selectors joined: where the cursor sits,\n# and what the schema allows there.\nhelp-suggestions-header =\n { $location ->\n [inside] Inside { $element }\n *[top] At the top level\n }{ $allowed ->\n [none] { " — nothing goes here." }\n [text] { " — type text here." }\n [text-and-components] { " — type text here, or try:" }\n *[components] { " — things to try:" }\n }\n\n# `$shortcut` is a key combination and stays as written. `$total` is a real\n# count, so a language that agrees a noun with it can select on it.\nhelp-suggestions-footer = Press { $shortcut } to see all { $total } components.\n\n# An element\'s name joined to its one-line summary. `$name` is empty where the\n# panel has already printed the name beside this — a suggestion in the list —\n# and only the separator is wanted, so the message has to read as punctuation\n# on its own.\nhelp-name-summary = { $name } — { $summary }\n\n# `$line` is text, not a number: it identifies a line, so line 1234 is "1234"\n# and not "1,234". `none` is how a position that is not known selects a\n# sentence without one rather than substituting an empty parenthesis.\nhelp-ref-is-reference =\n { $line ->\n [none] { $ref } is a reference to { $target }.\n *[other] { $ref } is a reference to { $target } (line { $line }).\n }\n\nhelp-ref-derived-from =\n { $line ->\n [none] Introduced by { $owner } as { $role }.\n *[other] Introduced by { $owner } on line { $line } as { $role }.\n }\n\nhelp-property-is-reference =\n { $line ->\n [none] { $ref } is a reference to the { $property } property of { $element }.\n *[other] { $ref } is a reference to the { $property } property of { $element } (line { $line }).\n }\n\n# The badge on the title row saying what kind of thing the panel is explaining.\nhelp-kind-attribute = attribute\nhelp-kind-snippet = snippet\nhelp-kind-array-entry = array entry\n\nhelp-default = Default:\nhelp-active-default = Active default:\n\n# Appended after the active default\'s value. `styleNumber` is the attribute\'s\n# own name and stays as written; the space and brackets around it do not.\nhelp-style-number-annotation = { " " }(styleNumber { $styleNumber })\n\nhelp-allowed-values =\n { $perItem ->\n [true] Allowed values (one per item):\n *[other] Allowed values:\n }\n\n# Heading for values the editor offers without requiring: the attribute accepts\n# others too, and nothing warns about them. Distinct from `help-allowed-values`\n# so a translation can pick a word that suggests rather than constrains.\nhelp-suggested-values = Suggested values:\n\nhelp-inserts = Inserts:\n\nhelp-coordinates =\n { $count ->\n [one] Coordinate:\n *[other] Coordinates:\n }\n\nhelp-type = Type:\n\nhelp-resolved-style = Resolved style (styleNumber { $styleNumber }):\n\nhelp-resolved-function-names = Resolved function names:\nhelp-reset-list = Reset list on this input:\nhelp-added-on-input = Added on this input:\nhelp-removed-on-input = Removed on this input:\n\n# The three names are attributes an author writes, so they stay as written.\nhelp-reset-overrides = { $reset } overrides { $additional } and { $removed }.\n\n# Length syntax for a `componentSize` attribute (`width`, `height`). The values\n# listed alongside this label are examples the panel renders as chips.\nhelp-accepted-sizes = Accepted sizes:\nhelp-size-units = A bare number is pixels. A percentage is a share of the width around the component.\n\n# For a `height`, which is offered no percentage: the note must not raise a form\n# the attribute does not support.\nhelp-size-units-absolute = A bare number is pixels.\n\n# For a width that picks a named `size` preset (`<graph>`, `<image>`, `<video>`):\n# a percentage there is a share of the largest width any component may take, not\n# of the space around this one.\nhelp-size-units-preset = A bare number is pixels, and a percentage is a share of the widest a component can be.\n\n# For a side-by-side `width`, which is offered no absolute form: the same rule,\n# the other way round.\nhelp-size-units-relative = A percentage is a share of the width around the component.\n\n# `size` names a sibling attribute an author writes, so it stays as written.\nhelp-size-snaps-to-preset = This width picks the nearest { $size } preset rather than being used exactly.\n';
1900
1909
  const CATALOG_NAMESPACES = [
1901
1910
  "chrome",
@@ -4825,6 +4834,7 @@ const DIAGNOSTIC_CODES = {
4825
4834
  "doenet-w0196": "latex-not-read-as-math",
4826
4835
  "doenet-w0197": "attribute-name-case",
4827
4836
  "doenet-w0198": "sort-by-prop-names-nothing",
4837
+ "doenet-w0199": "reference-to-variant-control",
4828
4838
  "doenet-e0001": "pretzel-circuit-first-problem-distractor",
4829
4839
  "doenet-e0002": "component-type-invalid",
4830
4840
  "doenet-e0003": "attribute-repeated",
@@ -4913,6 +4923,7 @@ const DIAGNOSTIC_CODES = {
4913
4923
  "doenet-e0086": "variant-name-repeated",
4914
4924
  "doenet-e0087": "variants-all-excluded",
4915
4925
  "doenet-e0088": "variant-control-made-from",
4926
+ "doenet-e0089": "attribute-not-a-number",
4916
4927
  "doenet-a0001": "accessibility-short-description-or-decorative",
4917
4928
  "doenet-a0002": "accessibility-video-short-description",
4918
4929
  "doenet-a0003": "accessibility-input-short-description-or-label",
@@ -9278,7 +9289,7 @@ async function cidFromArrayBuffer$1(data2) {
9278
9289
  await crypto.subtle.digest("SHA-256", new Uint8Array());
9279
9290
  digest$1 = (data22) => crypto.subtle.digest("SHA-256", data22);
9280
9291
  } catch (e22) {
9281
- const sha256 = (await import("./sha256-8sXzDnE0-BnWUgPS4-DZNAsg63.js").then((n2) => n2.s)).default;
9292
+ const sha256 = (await import("./sha256-8sXzDnE0-C4pdx67T-kEkgTYoC.js").then((n2) => n2.s)).default;
9282
9293
  digest$1 = (data22) => sha256(data22, {
9283
9294
  asBytes: true
9284
9295
  });
@@ -12029,10 +12040,10 @@ function fieldFunctionFromDefinition(fDefinition) {
12029
12040
  return (x2, _y) => f2(x2);
12030
12041
  }
12031
12042
  function latticeRange(bounds, grid) {
12032
- const xIndA = (bounds.xMin - grid.xoffset) / grid.dx;
12033
- const xIndB = (bounds.xMax - grid.xoffset) / grid.dx;
12034
- const yIndA = (bounds.yMin - grid.yoffset) / grid.dy;
12035
- const yIndB = (bounds.yMax - grid.yoffset) / grid.dy;
12043
+ const xIndA = (bounds.xMin - grid.xOffset) / grid.dx;
12044
+ const xIndB = (bounds.xMax - grid.xOffset) / grid.dx;
12045
+ const yIndA = (bounds.yMin - grid.yOffset) / grid.dy;
12046
+ const yIndB = (bounds.yMax - grid.yOffset) / grid.dy;
12036
12047
  return {
12037
12048
  minXind: Math.ceil(Math.min(xIndA, xIndB)),
12038
12049
  maxXind: Math.floor(Math.max(xIndA, xIndB)),
@@ -12074,11 +12085,11 @@ function thinnedLatticeLines(bounds, grid, maxMarks) {
12074
12085
  const firstYind = Math.ceil(minYind / stride) * stride;
12075
12086
  const xs = [];
12076
12087
  for (let xind = firstXind; xind <= maxXind; xind += stride) {
12077
- xs.push(xind * grid.dx + grid.xoffset);
12088
+ xs.push(xind * grid.dx + grid.xOffset);
12078
12089
  }
12079
12090
  const ys = [];
12080
12091
  for (let yind = firstYind; yind <= maxYind; yind += stride) {
12081
- ys.push(yind * grid.dy + grid.yoffset);
12092
+ ys.push(yind * grid.dy + grid.yOffset);
12082
12093
  }
12083
12094
  return { xs, ys, stride };
12084
12095
  }
@@ -34930,10 +34941,14 @@ function arrayEntryInIndexForm(propName, info, byIndex) {
34930
34941
  if (keysOfName.length === 0) {
34931
34942
  continue;
34932
34943
  }
34933
- return sameEntries && byIndex ? `${arrayName}${indices.map((index2) => `[${index2}]`).join("")}` : `${prefix}${varEnding}`;
34944
+ return sameEntries && byIndex ? `${arrayNameForPrefix(prefix, arrayName, info)}${indices.map((index2) => `[${index2}]`).join("")}` : `${prefix}${varEnding}`;
34934
34945
  }
34935
34946
  return void 0;
34936
34947
  }
34948
+ function arrayNameForPrefix(prefix, arrayName, info) {
34949
+ const plural = `${prefix}s`;
34950
+ return plural !== arrayName && info.aliases?.[plural]?.target === arrayName ? plural : arrayName;
34951
+ }
34937
34952
  function subarrayKeys(indices, remainingSize) {
34938
34953
  let keys2 = [indices];
34939
34954
  for (const size of remainingSize) {
@@ -56896,6 +56911,7 @@ const PASS_THROUGH_TYPES = [
56896
56911
  const BRANCH_TYPES = ["case", "else", "option"];
56897
56912
  const NUMBER_PROPERTIES = /* @__PURE__ */ new Set([
56898
56913
  "sectionnumber",
56914
+ "ownnumber",
56899
56915
  "enumeration",
56900
56916
  "title",
56901
56917
  "titleprefix"
@@ -59224,7 +59240,7 @@ function checkChoiceParametersAtLoad({
59224
59240
  if (isPlacementLocation(property) && anchorIsPlaced(node, property, /* @__PURE__ */ new Set())) {
59225
59241
  return { reference, changeable: node };
59226
59242
  }
59227
- if (isA(type, "_sectioningComponent") && lower === "sectionnumber") {
59243
+ if (isA(type, "_sectioningComponent") && (lower === "sectionnumber" || lower === "ownnumber")) {
59228
59244
  return reachSectionNumber(node, reference, /* @__PURE__ */ new Set());
59229
59245
  }
59230
59246
  if (isA(type, "graph")) {
@@ -65265,6 +65281,93 @@ function heldCount(children) {
65265
65281
  (child) => typeof child === "string" ? child.trim() !== "" : child.componentType !== "setup"
65266
65282
  ).length;
65267
65283
  }
65284
+ function markReferencesToVariantControls({
65285
+ serializedComponents,
65286
+ componentInfoObjects,
65287
+ sources
65288
+ }) {
65289
+ const variantControls = /* @__PURE__ */ new Set();
65290
+ const references = [];
65291
+ const seen = /* @__PURE__ */ new Set();
65292
+ function gather(components) {
65293
+ for (const component of components) {
65294
+ if (typeof component !== "object" || component === null || seen.has(component)) {
65295
+ continue;
65296
+ }
65297
+ seen.add(component);
65298
+ if (component.componentType === "variantControl") {
65299
+ variantControls.add(component.componentIdx);
65300
+ }
65301
+ if (component.componentType === "_copy" && component.extending) {
65302
+ references.push(component);
65303
+ }
65304
+ for (const attribute of Object.values(
65305
+ component.attributes ?? {}
65306
+ )) {
65307
+ if (attribute?.component) {
65308
+ gather([attribute.component]);
65309
+ }
65310
+ gather(attribute?.references ?? []);
65311
+ gather(attribute?.children ?? []);
65312
+ }
65313
+ gather(component.children ?? []);
65314
+ }
65315
+ }
65316
+ gather(serializedComponents);
65317
+ if (variantControls.size === 0) {
65318
+ return [];
65319
+ }
65320
+ const variantControlClass = componentInfoObjects.allComponentClasses.variantControl;
65321
+ const inherited = new Set(
65322
+ Object.keys(
65323
+ Object.getPrototypeOf(variantControlClass).createAttributesObject()
65324
+ )
65325
+ );
65326
+ const attributeNames = Object.keys(
65327
+ variantControlClass.createAttributesObject()
65328
+ ).filter((name2) => !inherited.has(name2));
65329
+ const diagnostics2 = [];
65330
+ for (const copy of references) {
65331
+ const [sourceKey, ref] = Object.entries(copy.extending)[0];
65332
+ if (!variantControls.has(ref?.nodeIdx)) {
65333
+ continue;
65334
+ }
65335
+ const property = ref.unresolvedPath?.[0]?.name;
65336
+ if (sourceKey !== "Ref" && !(ref.unresolvedPath?.length > 0)) {
65337
+ continue;
65338
+ }
65339
+ const isAttribute = typeof property === "string" && attributeNames.includes(property);
65340
+ diagnostics2.push(
65341
+ codedDiagnostic({
65342
+ type: "warning",
65343
+ code: "doenet-w0199",
65344
+ args: {
65345
+ reference: doenetMLReferenceAsWritten(
65346
+ ref.originalPath,
65347
+ sources
65348
+ ),
65349
+ property: isAttribute ? property : "",
65350
+ isAttribute: isAttribute ? "true" : "false"
65351
+ },
65352
+ position: copy.position,
65353
+ sourceDoc: copy.sourceDoc
65354
+ })
65355
+ );
65356
+ copy.extending = {
65357
+ [sourceKey]: {
65358
+ ...ref,
65359
+ nodeIdx: -1,
65360
+ unresolvedPath: null,
65361
+ nodesInResolvedPath: []
65362
+ }
65363
+ };
65364
+ copy.doenetAttributes = {
65365
+ ...copy.doenetAttributes,
65366
+ noReferent: true
65367
+ };
65368
+ }
65369
+ return diagnostics2;
65370
+ }
65268
65371
  function withoutPathParentheses(reference) {
65269
65372
  const dollars = /^\$\$?(?=\()/.exec(reference)?.[0];
65270
65373
  if (dollars === void 0 || !reference.endsWith(")")) {
@@ -65729,6 +65832,13 @@ async function normalizedDastToSerializedComponents(normalized_root, componentIn
65729
65832
  };
65730
65833
  }
65731
65834
  }
65835
+ diagnostics2.push(
65836
+ ...markReferencesToVariantControls({
65837
+ serializedComponents: sugarResult.components,
65838
+ componentInfoObjects,
65839
+ sources: normalized_root.sources
65840
+ })
65841
+ );
65732
65842
  for (const {
65733
65843
  copy,
65734
65844
  code,
@@ -66212,6 +66322,23 @@ function expandAllUnflattenedAttributes({
66212
66322
  );
66213
66323
  continue;
66214
66324
  }
66325
+ if (attrDef.createPrimitiveOfType === "number" || attrDef.createPrimitiveOfType === "integer") {
66326
+ const written = attribute.children.map(
66327
+ (child) => typeof child === "string" ? child : ""
66328
+ ).join("").trim();
66329
+ if (!Number.isFinite(Number(written))) {
66330
+ diagnostics2.push(
66331
+ codedDiagnostic({
66332
+ type: "error",
66333
+ code: "doenet-e0089",
66334
+ args: { attribute: attrName, value: written },
66335
+ position: attribute.position,
66336
+ sourceDoc: attribute.sourceDoc
66337
+ })
66338
+ );
66339
+ continue;
66340
+ }
66341
+ }
66215
66342
  }
66216
66343
  let res = expandAttribute({
66217
66344
  attrDef,
@@ -108330,7 +108457,7 @@ function sampleGrid(expr, varString, xs) {
108330
108457
  }
108331
108458
  function find_local_global_minima({
108332
108459
  domain,
108333
- xscale,
108460
+ xScale,
108334
108461
  isInterpolatedFunction,
108335
108462
  xs,
108336
108463
  coeffs,
@@ -108733,7 +108860,7 @@ function find_local_global_minima({
108733
108860
  let { minx, maxx, openMin, openMax } = find_effective_domain({
108734
108861
  domain,
108735
108862
  truncateToFiniteDomain: true,
108736
- xscale
108863
+ xscale: xScale
108737
108864
  });
108738
108865
  let dx = (maxx - minx) / numIntervals;
108739
108866
  let globalMinimum = [-Infinity, Infinity];
@@ -108851,7 +108978,7 @@ function find_local_global_minima({
108851
108978
  ]);
108852
108979
  let recursionResult = find_local_global_minima({
108853
108980
  domain: [subDomain1],
108854
- xscale,
108981
+ xScale,
108855
108982
  isInterpolatedFunction,
108856
108983
  xs,
108857
108984
  coeffs,
@@ -108946,7 +109073,7 @@ function find_local_global_minima({
108946
109073
  }
108947
109074
  function find_local_global_maxima({
108948
109075
  domain,
108949
- xscale,
109076
+ xScale,
108950
109077
  isInterpolatedFunction,
108951
109078
  xs,
108952
109079
  coeffs,
@@ -108992,7 +109119,7 @@ function find_local_global_maxima({
108992
109119
  }
108993
109120
  let { localMinima, globalMinimum, globalInfimum } = find_local_global_minima({
108994
109121
  domain,
108995
- xscale,
109122
+ xScale,
108996
109123
  isInterpolatedFunction,
108997
109124
  xs,
108998
109125
  coeffs: coeffsFlip,
@@ -109242,8 +109369,8 @@ const attributesDefiningFunction = [
109242
109369
  "extrema",
109243
109370
  "through",
109244
109371
  "throughSlopes",
109245
- "xscale",
109246
- "yscale",
109372
+ "xScale",
109373
+ "yScale",
109247
109374
  "variables",
109248
109375
  "variable",
109249
109376
  "symbolic"
@@ -109391,17 +109518,17 @@ let Function$1 = class Function2 extends InlineComponent {
109391
109518
  defaultValue: false,
109392
109519
  public: true
109393
109520
  };
109394
- attributes.xscale = {
109521
+ attributes.xScale = {
109395
109522
  description: "Scale factor used along the x-axis.",
109396
109523
  createComponentOfType: "number",
109397
- createStateVariable: "xscale",
109524
+ createStateVariable: "xScale",
109398
109525
  defaultValue: 1,
109399
109526
  public: true
109400
109527
  };
109401
- attributes.yscale = {
109528
+ attributes.yScale = {
109402
109529
  description: "Scale factor used along the y-axis.",
109403
109530
  createComponentOfType: "number",
109404
- createStateVariable: "yscale",
109531
+ createStateVariable: "yScale",
109405
109532
  defaultValue: 1,
109406
109533
  public: true
109407
109534
  };
@@ -110473,13 +110600,13 @@ let Function$1 = class Function2 extends InlineComponent {
110473
110600
  };
110474
110601
  stateVariableDefinitions.interpolationPoints = {
110475
110602
  returnDependencies: () => ({
110476
- xscale: {
110603
+ xScale: {
110477
110604
  dependencyType: "stateVariable",
110478
- variableName: "xscale"
110605
+ variableName: "xScale"
110479
110606
  },
110480
- yscale: {
110607
+ yScale: {
110481
110608
  dependencyType: "stateVariable",
110482
- variableName: "yscale"
110609
+ variableName: "yScale"
110483
110610
  },
110484
110611
  prescribedPoints: {
110485
110612
  dependencyType: "stateVariable",
@@ -111823,7 +111950,7 @@ let Function$1 = class Function2 extends InlineComponent {
111823
111950
  childGroups: ["functions"],
111824
111951
  variableNames: [
111825
111952
  "domain",
111826
- "xscale",
111953
+ "xScale",
111827
111954
  "isInterpolatedFunction",
111828
111955
  "xs",
111829
111956
  "coeffs",
@@ -111891,9 +112018,9 @@ let Function$1 = class Function2 extends InlineComponent {
111891
112018
  dependencyType: "stateVariable",
111892
112019
  variableName: "variables"
111893
112020
  },
111894
- xscale: {
112021
+ xScale: {
111895
112022
  dependencyType: "stateVariable",
111896
- variableName: "xscale"
112023
+ variableName: "xScale"
111897
112024
  },
111898
112025
  functionChildrenInfoToCalculateExtrema: {
111899
112026
  dependencyType: "stateVariable",
@@ -111921,7 +112048,7 @@ let Function$1 = class Function2 extends InlineComponent {
111921
112048
  definition: function({ dependencyValues }) {
111922
112049
  let { localMinima, globalMinimum, globalInfimum } = find_local_global_minima({
111923
112050
  domain: dependencyValues.domain,
111924
- xscale: dependencyValues.xscale,
112051
+ xScale: dependencyValues.xScale,
111925
112052
  isInterpolatedFunction: dependencyValues.isInterpolatedFunction,
111926
112053
  xs: dependencyValues.xs,
111927
112054
  coeffs: dependencyValues.coeffs,
@@ -112339,9 +112466,9 @@ let Function$1 = class Function2 extends InlineComponent {
112339
112466
  dependencyType: "stateVariable",
112340
112467
  variableName: "variables"
112341
112468
  },
112342
- xscale: {
112469
+ xScale: {
112343
112470
  dependencyType: "stateVariable",
112344
- variableName: "xscale"
112471
+ variableName: "xScale"
112345
112472
  },
112346
112473
  functionChildrenInfoToCalculateExtrema: {
112347
112474
  dependencyType: "stateVariable",
@@ -112369,7 +112496,7 @@ let Function$1 = class Function2 extends InlineComponent {
112369
112496
  definition: function({ dependencyValues }) {
112370
112497
  let { localMaxima, globalMaximum, globalSupremum } = find_local_global_maxima({
112371
112498
  domain: dependencyValues.domain,
112372
- xscale: dependencyValues.xscale,
112499
+ xScale: dependencyValues.xScale,
112373
112500
  isInterpolatedFunction: dependencyValues.isInterpolatedFunction,
112374
112501
  xs: dependencyValues.xs,
112375
112502
  coeffs: dependencyValues.coeffs,
@@ -113359,8 +113486,8 @@ function calculateInterpolationPoints({ dependencyValues, numerics }) {
113359
113486
  }
113360
113487
  xPrev = p2.x;
113361
113488
  }
113362
- let xscale = dependencyValues.xscale;
113363
- let yscale = dependencyValues.yscale;
113489
+ let xscale = dependencyValues.xScale;
113490
+ let yscale = dependencyValues.yScale;
113364
113491
  xPrev = void 0;
113365
113492
  let yPrev, typePrev;
113366
113493
  let interpolationPoints = [];
@@ -117287,6 +117414,14 @@ class SectioningComponent extends BlockComponent {
117287
117414
  createComponentOfType: "text"
117288
117415
  },
117289
117416
  forRenderer: true
117417
+ },
117418
+ {
117419
+ variableName: "ownNumber",
117420
+ description: "This section's own position as a number: 3 for section 2.3, missing for an unnumbered section.",
117421
+ public: true,
117422
+ shadowingInstructions: {
117423
+ createComponentOfType: "number"
117424
+ }
117290
117425
  }
117291
117426
  ],
117292
117427
  stateVariablesDeterminingDependencies: ["isListItem"],
@@ -117312,14 +117447,16 @@ class SectioningComponent extends BlockComponent {
117312
117447
  return {
117313
117448
  setValue: {
117314
117449
  enumeration: [listItemNumber],
117315
- sectionNumber: String(listItemNumber)
117450
+ sectionNumber: String(listItemNumber),
117451
+ ownNumber: listItemNumber
117316
117452
  }
117317
117453
  };
117318
117454
  }
117319
117455
  return {
117320
117456
  setValue: {
117321
117457
  enumeration: dependencyValues.sectionAncestor?.stateValues.enumeration ?? [],
117322
- sectionNumber: null
117458
+ sectionNumber: null,
117459
+ ownNumber: null
117323
117460
  }
117324
117461
  };
117325
117462
  }
@@ -118276,6 +118413,14 @@ class SectioningComponentNumberWithSiblings extends SectioningComponent {
118276
118413
  createComponentOfType: "text"
118277
118414
  },
118278
118415
  forRenderer: true
118416
+ },
118417
+ {
118418
+ variableName: "ownNumber",
118419
+ description: "This section's own position as a number: 3 for section 2.3, missing for an unnumbered section.",
118420
+ public: true,
118421
+ shadowingInstructions: {
118422
+ createComponentOfType: "number"
118423
+ }
118279
118424
  }
118280
118425
  ],
118281
118426
  stateVariablesDeterminingDependencies: ["isListItem"],
@@ -118326,7 +118471,9 @@ class SectioningComponentNumberWithSiblings extends SectioningComponent {
118326
118471
  return {
118327
118472
  setValue: {
118328
118473
  enumeration,
118329
- sectionNumber: enumeration.join(".")
118474
+ sectionNumber: enumeration.join("."),
118475
+ // its own number, without its parent's (D56)
118476
+ ownNumber: enumeration[enumeration.length - 1]
118330
118477
  }
118331
118478
  };
118332
118479
  }
@@ -118353,11 +118500,25 @@ class UnnumberedSectioningComponent extends SectioningComponent {
118353
118500
  createComponentOfType: "text"
118354
118501
  },
118355
118502
  forRenderer: true
118503
+ },
118504
+ {
118505
+ variableName: "ownNumber",
118506
+ description: "This section's own position as a number: 3 for section 2.3, missing for an unnumbered section.",
118507
+ public: true,
118508
+ shadowingInstructions: {
118509
+ createComponentOfType: "number"
118510
+ }
118356
118511
  }
118357
118512
  ],
118358
118513
  returnDependencies: () => ({}),
118359
118514
  definition() {
118360
- return { setValue: { enumeration: [], sectionNumber: null } };
118515
+ return {
118516
+ setValue: {
118517
+ enumeration: [],
118518
+ sectionNumber: null,
118519
+ ownNumber: null
118520
+ }
118521
+ };
118361
118522
  }
118362
118523
  };
118363
118524
  return stateVariableDefinitions;
@@ -119237,7 +119398,7 @@ class ODESystem extends InlineComponent {
119237
119398
  createComponentOfType: "math",
119238
119399
  addAttributeComponentsShadowingStateVariables: returnNumberDisplayAttributeComponentShadowing()
119239
119400
  },
119240
- entryPrefixes: ["rhs", "righthandside"],
119401
+ entryPrefixes: ["rhs", "rightHandSide"],
119241
119402
  returnArraySizeDependencies: () => ({
119242
119403
  numDimensions: {
119243
119404
  dependencyType: "stateVariable",
@@ -119276,12 +119437,12 @@ class ODESystem extends InlineComponent {
119276
119437
  targetVariableName: "rhs1",
119277
119438
  description: "The right-hand-side expression of the first ODE in the system."
119278
119439
  };
119279
- stateVariableDefinitions.righthandside = {
119440
+ stateVariableDefinitions.rightHandSide = {
119280
119441
  isAlias: true,
119281
119442
  targetVariableName: "rhs1",
119282
119443
  description: "The right-hand-side expression of the first ODE in the system."
119283
119444
  };
119284
- stateVariableDefinitions.righthandsides = {
119445
+ stateVariableDefinitions.rightHandSides = {
119285
119446
  isAlias: true,
119286
119447
  targetVariableName: "rhss",
119287
119448
  description: "The right-hand-side expressions of each ODE in the system."
@@ -124508,13 +124669,13 @@ class Line extends GraphicalComponent {
124508
124669
  dependencyType: "stateVariable",
124509
124670
  variableName: "coeff0"
124510
124671
  },
124511
- coeffvar1: {
124672
+ coeffVar1: {
124512
124673
  dependencyType: "stateVariable",
124513
- variableName: "coeffvar1"
124674
+ variableName: "coeffVar1"
124514
124675
  },
124515
- coeffvar2: {
124676
+ coeffVar2: {
124516
124677
  dependencyType: "stateVariable",
124517
- variableName: "coeffvar2"
124678
+ variableName: "coeffVar2"
124518
124679
  },
124519
124680
  variables: {
124520
124681
  dependencyType: "stateVariable",
@@ -124706,27 +124867,27 @@ class Line extends GraphicalComponent {
124706
124867
  if (typeof point1x.tree === "number" && typeof point1y.tree === "number" && typeof point2x.tree === "number" && typeof point2y.tree === "number") {
124707
124868
  let numericalPoint1 = [point1x.tree, point1y.tree];
124708
124869
  let numericalPoint2 = [point2x.tree, point2y.tree];
124709
- let coeffvar12 = numericalPoint1[1] - numericalPoint2[1];
124710
- let coeffvar22 = numericalPoint2[0] - numericalPoint1[0];
124870
+ let coeffVar12 = numericalPoint1[1] - numericalPoint2[1];
124871
+ let coeffVar22 = numericalPoint2[0] - numericalPoint1[0];
124711
124872
  let coeff02 = numericalPoint1[0] * numericalPoint2[1] - numericalPoint1[1] * numericalPoint2[0];
124712
- let sVCoeffVar1 = await stateValues.coeffvar1;
124713
- let sVCoeffVar2 = await stateValues.coeffvar2;
124873
+ let sVCoeffVar1 = await stateValues.coeffVar1;
124874
+ let sVCoeffVar2 = await stateValues.coeffVar2;
124714
124875
  let prodDiff = Math.abs(
124715
- coeffvar12 * sVCoeffVar2 - sVCoeffVar1 * coeffvar22
124876
+ coeffVar12 * sVCoeffVar2 - sVCoeffVar1 * coeffVar22
124716
124877
  );
124717
124878
  let instructions = [];
124718
- if (prodDiff < Math.abs(coeffvar12 * sVCoeffVar2) * 1e-12) {
124719
- if (coeffvar12 !== 0) {
124720
- coeff02 *= sVCoeffVar1 / coeffvar12;
124879
+ if (prodDiff < Math.abs(coeffVar12 * sVCoeffVar2) * 1e-12) {
124880
+ if (coeffVar12 !== 0) {
124881
+ coeff02 *= sVCoeffVar1 / coeffVar12;
124721
124882
  } else {
124722
- coeff02 *= sVCoeffVar2 / coeffvar22;
124883
+ coeff02 *= sVCoeffVar2 / coeffVar22;
124723
124884
  }
124724
124885
  instructions.push({
124725
124886
  setDependency: "coeff0",
124726
124887
  desiredValue: coeff02,
124727
124888
  additionalDependencyValues: {
124728
- coeffvar1: sVCoeffVar1,
124729
- coeffvar2: sVCoeffVar2
124889
+ coeffVar1: sVCoeffVar1,
124890
+ coeffVar2: sVCoeffVar2
124730
124891
  }
124731
124892
  });
124732
124893
  } else {
@@ -124734,8 +124895,8 @@ class Line extends GraphicalComponent {
124734
124895
  setDependency: "coeff0",
124735
124896
  desiredValue: coeff02,
124736
124897
  additionalDependencyValues: {
124737
- coeffvar1: coeffvar12,
124738
- coeffvar2: coeffvar22
124898
+ coeffVar1: coeffVar12,
124899
+ coeffVar2: coeffVar22
124739
124900
  }
124740
124901
  });
124741
124902
  }
@@ -124748,8 +124909,8 @@ class Line extends GraphicalComponent {
124748
124909
  instructions
124749
124910
  };
124750
124911
  }
124751
- let coeffvar1 = point1y.subtract(point2y).simplify();
124752
- let coeffvar2 = point2x.subtract(point1x).simplify();
124912
+ let coeffVar1 = point1y.subtract(point2y).simplify();
124913
+ let coeffVar2 = point2x.subtract(point1x).simplify();
124753
124914
  let coeff0 = point1x.multiply(point2y).subtract(point1y.multiply(point2x)).simplify();
124754
124915
  return {
124755
124916
  success: true,
@@ -124758,8 +124919,8 @@ class Line extends GraphicalComponent {
124758
124919
  setDependency: "coeff0",
124759
124920
  desiredValue: coeff0,
124760
124921
  additionalDependencyValues: {
124761
- coeffvar1,
124762
- coeffvar2
124922
+ coeffVar1,
124923
+ coeffVar2
124763
124924
  }
124764
124925
  }
124765
124926
  ]
@@ -124883,25 +125044,25 @@ class Line extends GraphicalComponent {
124883
125044
  createComponentOfType: "math",
124884
125045
  addAttributeComponentsShadowingStateVariables: returnNumberDisplayAttributeComponentShadowing()
124885
125046
  },
124886
- description: "The constant term in the implicit line equation coeff0 + coeffvar1·x + coeffvar2·y = 0."
125047
+ description: "The constant term in the implicit line equation coeff0 + coeffVar1·x + coeffVar2·y = 0."
124887
125048
  },
124888
125049
  {
124889
- variableName: "coeffvar1",
125050
+ variableName: "coeffVar1",
124890
125051
  public: true,
124891
125052
  shadowingInstructions: {
124892
125053
  createComponentOfType: "math",
124893
125054
  addAttributeComponentsShadowingStateVariables: returnNumberDisplayAttributeComponentShadowing()
124894
125055
  },
124895
- description: "The coefficient of the first variable in the implicit line equation coeff0 + coeffvar1·x + coeffvar2·y = 0."
125056
+ description: "The coefficient of the first variable in the implicit line equation coeff0 + coeffVar1·x + coeffVar2·y = 0."
124896
125057
  },
124897
125058
  {
124898
- variableName: "coeffvar2",
125059
+ variableName: "coeffVar2",
124899
125060
  public: true,
124900
125061
  shadowingInstructions: {
124901
125062
  createComponentOfType: "math",
124902
125063
  addAttributeComponentsShadowingStateVariables: returnNumberDisplayAttributeComponentShadowing()
124903
125064
  },
124904
- description: "The coefficient of the second variable in the implicit line equation coeff0 + coeffvar1·x + coeffvar2·y = 0."
125065
+ description: "The coefficient of the second variable in the implicit line equation coeff0 + coeffVar1·x + coeffVar2·y = 0."
124905
125066
  }
124906
125067
  ],
124907
125068
  returnDependencies: function({ stateValues }) {
@@ -124953,19 +125114,19 @@ class Line extends GraphicalComponent {
124953
125114
  setValue: {
124954
125115
  equation: equation2,
124955
125116
  coeff0: blankMath2,
124956
- coeffvar1: blankMath2,
124957
- coeffvar2: blankMath2
125117
+ coeffVar1: blankMath2,
125118
+ coeffVar2: blankMath2
124958
125119
  },
124959
125120
  sendDiagnostics: result.sendDiagnostics
124960
125121
  };
124961
125122
  }
124962
- let { coeff0: coeff02, coeffvar1: coeffvar12, coeffvar2: coeffvar22 } = result;
125123
+ let { coeff0: coeff02, coeffVar1: coeffVar12, coeffVar2: coeffVar22 } = result;
124963
125124
  return {
124964
125125
  setValue: {
124965
125126
  equation: equation2,
124966
125127
  coeff0: coeff02,
124967
- coeffvar1: coeffvar12,
124968
- coeffvar2: coeffvar22
125128
+ coeffVar1: coeffVar12,
125129
+ coeffVar2: coeffVar22
124969
125130
  }
124970
125131
  };
124971
125132
  }
@@ -124979,8 +125140,8 @@ class Line extends GraphicalComponent {
124979
125140
  setValue: {
124980
125141
  equation: blankMath2,
124981
125142
  coeff0: blankMath2,
124982
- coeffvar1: blankMath2,
124983
- coeffvar2: blankMath2
125143
+ coeffVar1: blankMath2,
125144
+ coeffVar2: blankMath2
124984
125145
  },
124985
125146
  sendDiagnostics: [warning]
124986
125147
  };
@@ -124995,8 +125156,8 @@ class Line extends GraphicalComponent {
124995
125156
  setValue: {
124996
125157
  equation: blankMath2,
124997
125158
  coeff0: blankMath2,
124998
- coeffvar1: blankMath2,
124999
- coeffvar2: blankMath2
125159
+ coeffVar1: blankMath2,
125160
+ coeffVar2: blankMath2
125000
125161
  },
125001
125162
  conditionDiagnostics: [diagnostic]
125002
125163
  };
@@ -125025,8 +125186,8 @@ class Line extends GraphicalComponent {
125025
125186
  setValue: {
125026
125187
  equation: blankMath2,
125027
125188
  coeff0: blankMath2,
125028
- coeffvar1: blankMath2,
125029
- coeffvar2: blankMath2
125189
+ coeffVar1: blankMath2,
125190
+ coeffVar2: blankMath2
125030
125191
  },
125031
125192
  conditionDiagnostics: [diagnostic]
125032
125193
  };
@@ -125037,8 +125198,8 @@ class Line extends GraphicalComponent {
125037
125198
  setValue: {
125038
125199
  equation: blankMath2,
125039
125200
  coeff0: blankMath2,
125040
- coeffvar1: blankMath2,
125041
- coeffvar2: blankMath2
125201
+ coeffVar1: blankMath2,
125202
+ coeffVar2: blankMath2
125042
125203
  }
125043
125204
  };
125044
125205
  }
@@ -125048,21 +125209,21 @@ class Line extends GraphicalComponent {
125048
125209
  setValue: {
125049
125210
  equation: blankMath2,
125050
125211
  coeff0: zero,
125051
- coeffvar1: zero,
125052
- coeffvar2: zero
125212
+ coeffVar1: zero,
125213
+ coeffVar2: zero
125053
125214
  }
125054
125215
  };
125055
125216
  }
125056
- let coeffvar1 = point1y.subtract(point2y).simplify();
125057
- let coeffvar2 = point2x.subtract(point1x).simplify();
125217
+ let coeffVar1 = point1y.subtract(point2y).simplify();
125218
+ let coeffVar2 = point2x.subtract(point1x).simplify();
125058
125219
  let coeff0 = point1x.multiply(point2y).subtract(point1y.multiply(point2x)).simplify();
125059
125220
  let equation = me$2.fromAst([
125060
125221
  "=",
125061
125222
  ["+", ["*", "a", "x"], ["*", "b", "y"], "c"],
125062
125223
  0
125063
125224
  ]).substitute({
125064
- a: coeffvar1,
125065
- b: coeffvar2,
125225
+ a: coeffVar1,
125226
+ b: coeffVar2,
125066
125227
  c: coeff0,
125067
125228
  x: variables[0],
125068
125229
  y: variables[1]
@@ -125071,8 +125232,8 @@ class Line extends GraphicalComponent {
125071
125232
  setValue: {
125072
125233
  equation,
125073
125234
  coeff0,
125074
- coeffvar1,
125075
- coeffvar2
125235
+ coeffVar1,
125236
+ coeffVar2
125076
125237
  }
125077
125238
  };
125078
125239
  },
@@ -125098,7 +125259,7 @@ class Line extends GraphicalComponent {
125098
125259
  ]
125099
125260
  };
125100
125261
  }
125101
- if (!("coeff0" in desiredStateVariableValues && "coeffvar1" in desiredStateVariableValues && "coeffvar2" in desiredStateVariableValues)) {
125262
+ if (!("coeff0" in desiredStateVariableValues && "coeffVar1" in desiredStateVariableValues && "coeffVar2" in desiredStateVariableValues)) {
125102
125263
  console.log(
125103
125264
  `Haven't implemented inverting coeffs if not specifying all of them`
125104
125265
  );
@@ -125109,8 +125270,8 @@ class Line extends GraphicalComponent {
125109
125270
  0,
125110
125271
  ["+", ["*", "a", "x"], ["*", "b", "y"], "c"]
125111
125272
  ]).substitute({
125112
- a: desiredStateVariableValues.coeffvar1,
125113
- b: desiredStateVariableValues.coeffvar2,
125273
+ a: desiredStateVariableValues.coeffVar1,
125274
+ b: desiredStateVariableValues.coeffVar2,
125114
125275
  c: desiredStateVariableValues.coeff0,
125115
125276
  x: dependencyValues.variables[0],
125116
125277
  y: dependencyValues.variables[1]
@@ -125242,19 +125403,19 @@ class Line extends GraphicalComponent {
125242
125403
  dependencyType: "stateVariable",
125243
125404
  variableName: "coeff0"
125244
125405
  },
125245
- coeffvar1: {
125406
+ coeffVar1: {
125246
125407
  dependencyType: "stateVariable",
125247
- variableName: "coeffvar1"
125408
+ variableName: "coeffVar1"
125248
125409
  },
125249
- coeffvar2: {
125410
+ coeffVar2: {
125250
125411
  dependencyType: "stateVariable",
125251
- variableName: "coeffvar2"
125412
+ variableName: "coeffVar2"
125252
125413
  }
125253
125414
  }),
125254
125415
  definition: function({ dependencyValues }) {
125255
125416
  let numericalCoeff0 = dependencyValues.coeff0.evaluate_to_constant();
125256
- let numericalCoeffvar1 = dependencyValues.coeffvar1.evaluate_to_constant();
125257
- let numericalCoeffvar2 = dependencyValues.coeffvar2.evaluate_to_constant();
125417
+ let numericalCoeffvar1 = dependencyValues.coeffVar1.evaluate_to_constant();
125418
+ let numericalCoeffvar2 = dependencyValues.coeffVar2.evaluate_to_constant();
125258
125419
  return {
125259
125420
  setValue: {
125260
125421
  numericalCoeff0,
@@ -125273,24 +125434,24 @@ class Line extends GraphicalComponent {
125273
125434
  addAttributeComponentsShadowingStateVariables: returnNumberDisplayAttributeComponentShadowing()
125274
125435
  },
125275
125436
  returnDependencies: () => ({
125276
- coeffvar1: {
125437
+ coeffVar1: {
125277
125438
  dependencyType: "stateVariable",
125278
- variableName: "coeffvar1"
125439
+ variableName: "coeffVar1"
125279
125440
  },
125280
- coeffvar2: {
125441
+ coeffVar2: {
125281
125442
  dependencyType: "stateVariable",
125282
- variableName: "coeffvar2"
125443
+ variableName: "coeffVar2"
125283
125444
  }
125284
125445
  }),
125285
125446
  definition: function({ dependencyValues }) {
125286
125447
  let slope = me$2.fromAst(["-", ["/", "a", "b"]]).substitute({
125287
- a: dependencyValues.coeffvar1,
125288
- b: dependencyValues.coeffvar2
125448
+ a: dependencyValues.coeffVar1,
125449
+ b: dependencyValues.coeffVar2
125289
125450
  }).simplify();
125290
125451
  return { setValue: { slope } };
125291
125452
  }
125292
125453
  };
125293
- stateVariableDefinitions.xintercept = {
125454
+ stateVariableDefinitions.xIntercept = {
125294
125455
  description: "The x-intercept of the line.",
125295
125456
  public: true,
125296
125457
  isLocation: true,
@@ -125303,21 +125464,21 @@ class Line extends GraphicalComponent {
125303
125464
  dependencyType: "stateVariable",
125304
125465
  variableName: "coeff0"
125305
125466
  },
125306
- coeffvar1: {
125467
+ coeffVar1: {
125307
125468
  dependencyType: "stateVariable",
125308
- variableName: "coeffvar1"
125469
+ variableName: "coeffVar1"
125309
125470
  }
125310
125471
  }),
125311
125472
  definition: ({ dependencyValues }) => ({
125312
125473
  setValue: {
125313
- xintercept: me$2.fromAst(["-", ["/", "a", "b"]]).substitute({
125474
+ xIntercept: me$2.fromAst(["-", ["/", "a", "b"]]).substitute({
125314
125475
  a: dependencyValues.coeff0,
125315
- b: dependencyValues.coeffvar1
125476
+ b: dependencyValues.coeffVar1
125316
125477
  }).simplify()
125317
125478
  }
125318
125479
  })
125319
125480
  };
125320
- stateVariableDefinitions.yintercept = {
125481
+ stateVariableDefinitions.yIntercept = {
125321
125482
  description: "The y-intercept of the line.",
125322
125483
  public: true,
125323
125484
  isLocation: true,
@@ -125330,16 +125491,16 @@ class Line extends GraphicalComponent {
125330
125491
  dependencyType: "stateVariable",
125331
125492
  variableName: "coeff0"
125332
125493
  },
125333
- coeffvar2: {
125494
+ coeffVar2: {
125334
125495
  dependencyType: "stateVariable",
125335
- variableName: "coeffvar2"
125496
+ variableName: "coeffVar2"
125336
125497
  }
125337
125498
  }),
125338
125499
  definition: ({ dependencyValues }) => ({
125339
125500
  setValue: {
125340
- yintercept: me$2.fromAst(["-", ["/", "a", "b"]]).substitute({
125501
+ yIntercept: me$2.fromAst(["-", ["/", "a", "b"]]).substitute({
125341
125502
  a: dependencyValues.coeff0,
125342
- b: dependencyValues.coeffvar2
125503
+ b: dependencyValues.coeffVar2
125343
125504
  }).simplify()
125344
125505
  }
125345
125506
  })
@@ -125710,8 +125871,8 @@ function calculateCoeffsFromEquation({ equation, variables }) {
125710
125871
  return {
125711
125872
  success: true,
125712
125873
  coeff0: coeffs.coeff0.simplify(),
125713
- coeffvar1: coeffs.coeffvar1.simplify(),
125714
- coeffvar2: coeffs.coeffvar2.simplify()
125874
+ coeffVar1: coeffs.coeffVar1.simplify(),
125875
+ coeffVar2: coeffs.coeffVar2.simplify()
125715
125876
  };
125716
125877
  function getTermCoeffs(term) {
125717
125878
  let cv1 = 0, cv2 = 0, c0 = 0;
@@ -125740,14 +125901,14 @@ function calculateCoeffsFromEquation({ equation, variables }) {
125740
125901
  if (!coeffs2.success) {
125741
125902
  return coeffs2;
125742
125903
  }
125743
- cv1 = ["-", coeffs2.coeffvar1.tree];
125744
- cv2 = ["-", coeffs2.coeffvar2.tree];
125904
+ cv1 = ["-", coeffs2.coeffVar1.tree];
125905
+ cv2 = ["-", coeffs2.coeffVar2.tree];
125745
125906
  c0 = ["-", coeffs2.coeff0.tree];
125746
125907
  } else if (operator === "+") {
125747
125908
  let sum2 = {
125748
125909
  success: true,
125749
- coeffvar1: me$2.fromAst(0),
125750
- coeffvar2: me$2.fromAst(0),
125910
+ coeffVar1: me$2.fromAst(0),
125911
+ coeffVar2: me$2.fromAst(0),
125751
125912
  coeff0: me$2.fromAst(0)
125752
125913
  };
125753
125914
  for (const operand of operands) {
@@ -125755,8 +125916,8 @@ function calculateCoeffsFromEquation({ equation, variables }) {
125755
125916
  if (!coeffs2.success) {
125756
125917
  return coeffs2;
125757
125918
  }
125758
- sum2.coeffvar1 = sum2.coeffvar1.add(coeffs2.coeffvar1);
125759
- sum2.coeffvar2 = sum2.coeffvar2.add(coeffs2.coeffvar2);
125919
+ sum2.coeffVar1 = sum2.coeffVar1.add(coeffs2.coeffVar1);
125920
+ sum2.coeffVar2 = sum2.coeffVar2.add(coeffs2.coeffVar2);
125760
125921
  sum2.coeff0 = sum2.coeff0.add(coeffs2.coeff0);
125761
125922
  }
125762
125923
  return sum2;
@@ -125793,8 +125954,8 @@ function calculateCoeffsFromEquation({ equation, variables }) {
125793
125954
  if (!coeffs2.success) {
125794
125955
  return coeffs2;
125795
125956
  }
125796
- cv1 = ["/", coeffs2.coeffvar1.tree, operands[1]];
125797
- cv2 = ["/", coeffs2.coeffvar2.tree, operands[1]];
125957
+ cv1 = ["/", coeffs2.coeffVar1.tree, operands[1]];
125958
+ cv2 = ["/", coeffs2.coeffVar2.tree, operands[1]];
125798
125959
  c0 = ["/", coeffs2.coeff0.tree, operands[1]];
125799
125960
  } else if (operator === "_") {
125800
125961
  if (var1.equals(me$2.fromAst(term))) {
@@ -125810,16 +125971,16 @@ function calculateCoeffsFromEquation({ equation, variables }) {
125810
125971
  }
125811
125972
  return {
125812
125973
  success: true,
125813
- coeffvar1: me$2.fromAst(cv1),
125814
- coeffvar2: me$2.fromAst(cv2),
125974
+ coeffVar1: me$2.fromAst(cv1),
125975
+ coeffVar2: me$2.fromAst(cv2),
125815
125976
  coeff0: me$2.fromAst(c0)
125816
125977
  };
125817
125978
  }
125818
125979
  }
125819
125980
  function calculatePointsFromCoeffs({
125820
125981
  coeff0,
125821
- coeffvar1,
125822
- coeffvar2,
125982
+ coeffVar1,
125983
+ coeffVar2,
125823
125984
  variables,
125824
125985
  lastPointsFromInverting,
125825
125986
  equationDecidedByDoenetML
@@ -125828,7 +125989,7 @@ function calculatePointsFromCoeffs({
125828
125989
  let var2 = variables[1];
125829
125990
  let var1String = var1.toString();
125830
125991
  let var2String = var2.toString();
125831
- if (coeffvar1.variables(true).indexOf(var1String) !== -1 || coeffvar1.variables(true).indexOf(var2String) !== -1 || coeffvar2.variables(true).indexOf(var1String) !== -1 || coeffvar2.variables(true).indexOf(var2String) !== -1 || coeff0.variables(true).indexOf(var1String) !== -1 || coeff0.variables(true).indexOf(var2String) !== -1) {
125992
+ if (coeffVar1.variables(true).indexOf(var1String) !== -1 || coeffVar1.variables(true).indexOf(var2String) !== -1 || coeffVar2.variables(true).indexOf(var1String) !== -1 || coeffVar2.variables(true).indexOf(var2String) !== -1 || coeff0.variables(true).indexOf(var1String) !== -1 || coeff0.variables(true).indexOf(var2String) !== -1) {
125832
125993
  return {
125833
125994
  success: false,
125834
125995
  diagnostics: [
@@ -125841,7 +126002,7 @@ function calculatePointsFromCoeffs({
125841
126002
  };
125842
126003
  }
125843
126004
  let zero = me$2.fromAst(0);
125844
- if (coeffvar1.equals(zero) && coeffvar2.equals(zero)) {
126005
+ if (coeffVar1.equals(zero) && coeffVar2.equals(zero)) {
125845
126006
  return {
125846
126007
  success: false,
125847
126008
  diagnostics: [
@@ -125853,8 +126014,8 @@ function calculatePointsFromCoeffs({
125853
126014
  ]
125854
126015
  };
125855
126016
  }
125856
- let a2 = coeffvar1.evaluate_to_constant();
125857
- let b2 = coeffvar2.evaluate_to_constant();
126017
+ let a2 = coeffVar1.evaluate_to_constant();
126018
+ let b2 = coeffVar2.evaluate_to_constant();
125858
126019
  let c2 = coeff0.evaluate_to_constant();
125859
126020
  let point1x, point1y, point2x, point2y;
125860
126021
  let points = {};
@@ -125885,11 +126046,11 @@ function calculatePointsFromCoeffs({
125885
126046
  points["1,0"] = me$2.fromAst(point2x);
125886
126047
  points["1,1"] = me$2.fromAst(point2y);
125887
126048
  } else {
125888
- let denom = coeffvar1.pow(2).add(coeffvar2.pow(2));
125889
- point1x = coeffvar2.multiply(2).subtract(coeffvar1.multiply(coeff0)).divide(denom);
125890
- point1y = coeffvar1.multiply(-2).subtract(coeffvar2.multiply(coeff0)).divide(denom);
125891
- point2x = coeffvar2.subtract(coeffvar1.multiply(coeff0)).divide(denom);
125892
- point2y = coeffvar1.add(coeffvar2.multiply(coeff0)).multiply(-1).divide(denom);
126049
+ let denom = coeffVar1.pow(2).add(coeffVar2.pow(2));
126050
+ point1x = coeffVar2.multiply(2).subtract(coeffVar1.multiply(coeff0)).divide(denom);
126051
+ point1y = coeffVar1.multiply(-2).subtract(coeffVar2.multiply(coeff0)).divide(denom);
126052
+ point2x = coeffVar2.subtract(coeffVar1.multiply(coeff0)).divide(denom);
126053
+ point2y = coeffVar1.add(coeffVar2.multiply(coeff0)).multiply(-1).divide(denom);
125893
126054
  points["0,0"] = point1x;
125894
126055
  points["0,1"] = point1y;
125895
126056
  points["1,0"] = point2x;
@@ -135305,7 +135466,7 @@ class SideBySide extends BlockComponent {
135305
135466
  createComponentOfType: "_componentSizeList",
135306
135467
  description: "Two margin widths applied to every panel: the first on the panel's leading side and the second on its trailing side, following the writing direction."
135307
135468
  };
135308
- attributes.valign = {
135469
+ attributes.vAlign = {
135309
135470
  createComponentOfType: "text",
135310
135471
  toLowerCase: true,
135311
135472
  validValues: [
@@ -135321,7 +135482,7 @@ class SideBySide extends BlockComponent {
135321
135482
  ],
135322
135483
  description: "Default vertical alignment for all panels."
135323
135484
  };
135324
- attributes.valigns = {
135485
+ attributes.vAligns = {
135325
135486
  createComponentOfType: "textList",
135326
135487
  toLowerCase: true,
135327
135488
  validValues: [
@@ -136111,14 +136272,14 @@ class SideBySide extends BlockComponent {
136111
136272
  };
136112
136273
  }
136113
136274
  };
136114
- stateVariableDefinitions.valigns = {
136275
+ stateVariableDefinitions.vAligns = {
136115
136276
  description: "Vertical alignment of each child.",
136116
136277
  public: true,
136117
136278
  isArray: true,
136118
136279
  shadowingInstructions: {
136119
136280
  createComponentOfType: "text"
136120
136281
  },
136121
- entryPrefixes: ["valign"],
136282
+ entryPrefixes: ["vAlign"],
136122
136283
  forRenderer: true,
136123
136284
  returnArraySizeDependencies: () => ({
136124
136285
  numPanels: {
@@ -136133,12 +136294,12 @@ class SideBySide extends BlockComponent {
136133
136294
  let globalDependencies = {
136134
136295
  valignAttr: {
136135
136296
  dependencyType: "attributeComponent",
136136
- attributeName: "valign",
136297
+ attributeName: "vAlign",
136137
136298
  variableNames: ["value"]
136138
136299
  },
136139
136300
  valignsAttr: {
136140
136301
  dependencyType: "attributeComponent",
136141
- attributeName: "valigns",
136302
+ attributeName: "vAligns",
136142
136303
  variableNames: ["numComponents"]
136143
136304
  }
136144
136305
  };
@@ -136148,13 +136309,13 @@ class SideBySide extends BlockComponent {
136148
136309
  dependenciesByKey[arrayKey] = {
136149
136310
  valignsAttr: {
136150
136311
  dependencyType: "attributeComponent",
136151
- attributeName: "valigns",
136312
+ attributeName: "vAligns",
136152
136313
  variableNames: [`text${varEnding}`]
136153
136314
  },
136154
136315
  parentValign: {
136155
136316
  dependencyType: "parentStateVariable",
136156
136317
  parentComponentType: "sbsGroup",
136157
- variableName: `valign${varEnding}`
136318
+ variableName: `vAlign${varEnding}`
136158
136319
  },
136159
136320
  parentValignAbsolute: {
136160
136321
  dependencyType: "parentStateVariable",
@@ -136175,7 +136336,7 @@ class SideBySide extends BlockComponent {
136175
136336
  arrayKeys,
136176
136337
  arraySize
136177
136338
  }) {
136178
- let valigns = {};
136339
+ let vAligns = {};
136179
136340
  let nValignsSpecifiedFromAttrs;
136180
136341
  let usingSingleValign = false;
136181
136342
  if (globalDependencyValues.valignsAttr !== null) {
@@ -136190,33 +136351,33 @@ class SideBySide extends BlockComponent {
136190
136351
  let arrayIndex = Number(arrayKey);
136191
136352
  if (arrayIndex < nValignsSpecifiedFromAttrs) {
136192
136353
  if (usingSingleValign) {
136193
- valigns[arrayKey] = globalDependencyValues.valignAttr.stateValues.value.toLowerCase();
136354
+ vAligns[arrayKey] = globalDependencyValues.valignAttr.stateValues.value.toLowerCase();
136194
136355
  } else {
136195
136356
  let varEnding = arrayIndex + 1;
136196
- valigns[arrayKey] = dependencyValuesByKey[arrayKey].valignsAttr.stateValues[`text${varEnding}`].toLowerCase();
136357
+ vAligns[arrayKey] = dependencyValuesByKey[arrayKey].valignsAttr.stateValues[`text${varEnding}`].toLowerCase();
136197
136358
  }
136198
136359
  if (!["top", "middle", "bottom"].includes(
136199
- valigns[arrayKey]
136360
+ vAligns[arrayKey]
136200
136361
  )) {
136201
- valigns[arrayKey] = "top";
136362
+ vAligns[arrayKey] = "top";
136202
136363
  }
136203
136364
  } else {
136204
136365
  if (dependencyValuesByKey[arrayKey].parentValign) {
136205
136366
  if (dependencyValuesByKey[arrayKey].essentialValign === null) {
136206
- valigns[arrayKey] = dependencyValuesByKey[arrayKey].parentValign;
136367
+ vAligns[arrayKey] = dependencyValuesByKey[arrayKey].parentValign;
136207
136368
  } else {
136208
- valigns[arrayKey] = dependencyValuesByKey[arrayKey].essentialValign;
136369
+ vAligns[arrayKey] = dependencyValuesByKey[arrayKey].essentialValign;
136209
136370
  }
136210
136371
  } else {
136211
136372
  if (dependencyValuesByKey[arrayKey].essentialValign === null) {
136212
- valigns[arrayKey] = "top";
136373
+ vAligns[arrayKey] = "top";
136213
136374
  } else {
136214
- valigns[arrayKey] = dependencyValuesByKey[arrayKey].essentialValign;
136375
+ vAligns[arrayKey] = dependencyValuesByKey[arrayKey].essentialValign;
136215
136376
  }
136216
136377
  }
136217
136378
  }
136218
136379
  }
136219
- return { setValue: { valigns } };
136380
+ return { setValue: { vAligns } };
136220
136381
  },
136221
136382
  inverseArrayDefinitionByKey({
136222
136383
  desiredStateVariableValues,
@@ -136235,8 +136396,8 @@ class SideBySide extends BlockComponent {
136235
136396
  nValignsSpecifiedFromAttrs = 0;
136236
136397
  }
136237
136398
  let instructions = [];
136238
- for (let arrayKey in desiredStateVariableValues.valigns) {
136239
- let desiredValue = desiredStateVariableValues.valigns[arrayKey].toLowerCase();
136399
+ for (let arrayKey in desiredStateVariableValues.vAligns) {
136400
+ let desiredValue = desiredStateVariableValues.vAligns[arrayKey].toLowerCase();
136240
136401
  if (!["top", "middle", "bottom"].includes(desiredValue)) {
136241
136402
  continue;
136242
136403
  }
@@ -136311,7 +136472,7 @@ class SbsGroup extends BlockComponent {
136311
136472
  createComponentOfType: "_componentSizeList",
136312
136473
  description: "Two margin widths applied to every panel: the first on the panel's leading side and the second on its trailing side, following the writing direction."
136313
136474
  };
136314
- attributes.valign = {
136475
+ attributes.vAlign = {
136315
136476
  createComponentOfType: "text",
136316
136477
  toLowerCase: true,
136317
136478
  validValues: [
@@ -136327,7 +136488,7 @@ class SbsGroup extends BlockComponent {
136327
136488
  ],
136328
136489
  description: "Default vertical alignment for all panels."
136329
136490
  };
136330
- attributes.valigns = {
136491
+ attributes.vAligns = {
136331
136492
  createComponentOfType: "textList",
136332
136493
  toLowerCase: true,
136333
136494
  validValues: [
@@ -137024,14 +137185,14 @@ class SbsGroup extends BlockComponent {
137024
137185
  };
137025
137186
  }
137026
137187
  };
137027
- stateVariableDefinitions.valigns = {
137188
+ stateVariableDefinitions.vAligns = {
137028
137189
  public: true,
137029
137190
  description: "Vertical alignment of each child.",
137030
137191
  isArray: true,
137031
137192
  shadowingInstructions: {
137032
137193
  createComponentOfType: "text"
137033
137194
  },
137034
- entryPrefixes: ["valign"],
137195
+ entryPrefixes: ["vAlign"],
137035
137196
  // forRenderer: true,
137036
137197
  hasEssential: true,
137037
137198
  defaultValueByArrayKey: () => "top",
@@ -137048,12 +137209,12 @@ class SbsGroup extends BlockComponent {
137048
137209
  let globalDependencies = {
137049
137210
  valignAttr: {
137050
137211
  dependencyType: "attributeComponent",
137051
- attributeName: "valign",
137212
+ attributeName: "vAlign",
137052
137213
  variableNames: ["value"]
137053
137214
  },
137054
137215
  valignsAttr: {
137055
137216
  dependencyType: "attributeComponent",
137056
- attributeName: "valigns",
137217
+ attributeName: "vAligns",
137057
137218
  variableNames: ["numComponents"]
137058
137219
  }
137059
137220
  };
@@ -137063,7 +137224,7 @@ class SbsGroup extends BlockComponent {
137063
137224
  dependenciesByKey[arrayKey] = {
137064
137225
  valignsAttr: {
137065
137226
  dependencyType: "attributeComponent",
137066
- attributeName: "valigns",
137227
+ attributeName: "vAligns",
137067
137228
  variableNames: [`text${varEnding}`]
137068
137229
  }
137069
137230
  };
@@ -137076,7 +137237,7 @@ class SbsGroup extends BlockComponent {
137076
137237
  arrayKeys,
137077
137238
  arraySize
137078
137239
  }) {
137079
- let valigns = {};
137240
+ let vAligns = {};
137080
137241
  let essentialValigns = {};
137081
137242
  let nValignsSpecified;
137082
137243
  let usingSingleValign = false;
@@ -137092,27 +137253,27 @@ class SbsGroup extends BlockComponent {
137092
137253
  let arrayIndex = Number(arrayKey);
137093
137254
  if (arrayIndex < nValignsSpecified) {
137094
137255
  if (usingSingleValign) {
137095
- valigns[arrayKey] = globalDependencyValues.valignAttr.stateValues.value.toLowerCase();
137256
+ vAligns[arrayKey] = globalDependencyValues.valignAttr.stateValues.value.toLowerCase();
137096
137257
  } else {
137097
137258
  let varEnding = arrayIndex + 1;
137098
- valigns[arrayKey] = dependencyValuesByKey[arrayKey].valignsAttr.stateValues[`text${varEnding}`].toLowerCase();
137259
+ vAligns[arrayKey] = dependencyValuesByKey[arrayKey].valignsAttr.stateValues[`text${varEnding}`].toLowerCase();
137099
137260
  }
137100
137261
  if (!["top", "middle", "bottom"].includes(
137101
- valigns[arrayKey]
137262
+ vAligns[arrayKey]
137102
137263
  )) {
137103
- valigns[arrayKey] = "top";
137264
+ vAligns[arrayKey] = "top";
137104
137265
  }
137105
137266
  } else {
137106
137267
  essentialValigns[arrayKey] = true;
137107
137268
  }
137108
137269
  }
137109
137270
  let result = {};
137110
- if (Object.keys(valigns).length > 0) {
137111
- result.setValue = { valigns };
137271
+ if (Object.keys(vAligns).length > 0) {
137272
+ result.setValue = { vAligns };
137112
137273
  }
137113
137274
  if (Object.keys(essentialValigns).length > 0) {
137114
137275
  result.useEssentialOrDefaultValue = {
137115
- valigns: essentialValigns
137276
+ vAligns: essentialValigns
137116
137277
  };
137117
137278
  }
137118
137279
  return result;
@@ -137134,8 +137295,8 @@ class SbsGroup extends BlockComponent {
137134
137295
  nValignsSpecified = 0;
137135
137296
  }
137136
137297
  let instructions = [];
137137
- for (let arrayKey in desiredStateVariableValues.valigns) {
137138
- let desiredValue = desiredStateVariableValues.valigns[arrayKey].toLowerCase();
137298
+ for (let arrayKey in desiredStateVariableValues.vAligns) {
137299
+ let desiredValue = desiredStateVariableValues.vAligns[arrayKey].toLowerCase();
137139
137300
  if (!["top", "middle", "bottom"].includes(desiredValue)) {
137140
137301
  continue;
137141
137302
  }
@@ -137156,7 +137317,7 @@ class SbsGroup extends BlockComponent {
137156
137317
  }
137157
137318
  } else {
137158
137319
  instructions.push({
137159
- setEssentialValue: "valigns",
137320
+ setEssentialValue: "vAligns",
137160
137321
  value: { [arrayKey]: desiredValue }
137161
137322
  });
137162
137323
  }
@@ -149997,21 +150158,21 @@ class RegularPolygon extends Polygon {
149997
150158
  createComponentOfType: "point",
149998
150159
  description: "Center of the regular polygon."
149999
150160
  };
150000
- attributes.circumradius = {
150161
+ attributes.circumRadius = {
150001
150162
  createComponentOfType: "number",
150002
150163
  description: "Distance from center to a vertex (circumscribed-circle radius)."
150003
150164
  };
150004
150165
  attributes.radius = {
150005
150166
  createComponentOfType: "number",
150006
- description: "Alias for circumradius."
150167
+ description: "Alias for circumRadius."
150007
150168
  };
150008
- attributes.inradius = {
150169
+ attributes.inRadius = {
150009
150170
  createComponentOfType: "number",
150010
150171
  description: "Distance from center to the midpoint of a side (inscribed-circle radius)."
150011
150172
  };
150012
150173
  attributes.apothem = {
150013
150174
  createComponentOfType: "number",
150014
- description: "Alias for inradius."
150175
+ description: "Alias for inRadius."
150015
150176
  };
150016
150177
  attributes.sideLength = {
150017
150178
  createComponentOfType: "number",
@@ -150353,7 +150514,7 @@ class RegularPolygon extends Polygon {
150353
150514
  return {
150354
150515
  circumradiusAttr: {
150355
150516
  dependencyType: "attributeComponent",
150356
- attributeName: "circumradius",
150517
+ attributeName: "circumRadius",
150357
150518
  variableNames: ["value"]
150358
150519
  },
150359
150520
  radiusAttr: {
@@ -150427,7 +150588,7 @@ class RegularPolygon extends Polygon {
150427
150588
  return {
150428
150589
  inradiusAttr: {
150429
150590
  dependencyType: "attributeComponent",
150430
- attributeName: "inradius",
150591
+ attributeName: "inRadius",
150431
150592
  variableNames: ["value"]
150432
150593
  },
150433
150594
  apothemAttr: {
@@ -150706,24 +150867,24 @@ class RegularPolygon extends Polygon {
150706
150867
  } else {
150707
150868
  center = dependencyValues.essentialCenter;
150708
150869
  }
150709
- let circumradius;
150870
+ let circumRadius;
150710
150871
  if (dependencyValues.specifiedCircumradius !== null) {
150711
- circumradius = dependencyValues.specifiedCircumradius;
150872
+ circumRadius = dependencyValues.specifiedCircumradius;
150712
150873
  } else if (dependencyValues.specifiedInradius !== null) {
150713
- circumradius = dependencyValues.specifiedInradius / Math.cos(Math.PI / numVertices);
150874
+ circumRadius = dependencyValues.specifiedInradius / Math.cos(Math.PI / numVertices);
150714
150875
  } else if (dependencyValues.specifiedSideLength !== null) {
150715
- circumradius = dependencyValues.specifiedSideLength / (2 * Math.sin(Math.PI / numVertices));
150876
+ circumRadius = dependencyValues.specifiedSideLength / (2 * Math.sin(Math.PI / numVertices));
150716
150877
  } else if (dependencyValues.specifiedPerimeter !== null) {
150717
- circumradius = dependencyValues.specifiedPerimeter / (2 * numVertices * Math.sin(Math.PI / numVertices));
150878
+ circumRadius = dependencyValues.specifiedPerimeter / (2 * numVertices * Math.sin(Math.PI / numVertices));
150718
150879
  } else if (dependencyValues.specifiedArea !== null) {
150719
- circumradius = Math.sqrt(
150880
+ circumRadius = Math.sqrt(
150720
150881
  dependencyValues.specifiedArea / (numVertices / 2 * Math.sin(2 * Math.PI / numVertices))
150721
150882
  );
150722
150883
  } else {
150723
- circumradius = dependencyValues.essentialCircumradius;
150884
+ circumRadius = dependencyValues.essentialCircumradius;
150724
150885
  }
150725
150886
  unconstrainedDirectionWithRadius = dependencyValues.essentialDirection.map(
150726
- (x2) => x2 * circumradius
150887
+ (x2) => x2 * circumRadius
150727
150888
  );
150728
150889
  } else if (dependencyValues.haveSpecifiedCenter) {
150729
150890
  center = dependencyValues.specifiedCenter;
@@ -150735,24 +150896,24 @@ class RegularPolygon extends Polygon {
150735
150896
  vertex[1] - center[1]
150736
150897
  ];
150737
150898
  } else if (dependencyValues.numVerticesSpecified === 1) {
150738
- let circumradius;
150899
+ let circumRadius;
150739
150900
  if (dependencyValues.specifiedCircumradius !== null) {
150740
- circumradius = dependencyValues.specifiedCircumradius;
150901
+ circumRadius = dependencyValues.specifiedCircumradius;
150741
150902
  } else if (dependencyValues.specifiedInradius !== null) {
150742
- circumradius = dependencyValues.specifiedInradius / Math.cos(Math.PI / numVertices);
150903
+ circumRadius = dependencyValues.specifiedInradius / Math.cos(Math.PI / numVertices);
150743
150904
  } else if (dependencyValues.specifiedSideLength !== null) {
150744
- circumradius = dependencyValues.specifiedSideLength / (2 * Math.sin(Math.PI / numVertices));
150905
+ circumRadius = dependencyValues.specifiedSideLength / (2 * Math.sin(Math.PI / numVertices));
150745
150906
  } else if (dependencyValues.specifiedPerimeter !== null) {
150746
- circumradius = dependencyValues.specifiedPerimeter / (2 * numVertices * Math.sin(Math.PI / numVertices));
150907
+ circumRadius = dependencyValues.specifiedPerimeter / (2 * numVertices * Math.sin(Math.PI / numVertices));
150747
150908
  } else if (dependencyValues.specifiedArea !== null) {
150748
- circumradius = Math.sqrt(
150909
+ circumRadius = Math.sqrt(
150749
150910
  dependencyValues.specifiedArea / (numVertices / 2 * Math.sin(2 * Math.PI / numVertices))
150750
150911
  );
150751
150912
  } else {
150752
- circumradius = dependencyValues.essentialCircumradius;
150913
+ circumRadius = dependencyValues.essentialCircumradius;
150753
150914
  }
150754
150915
  unconstrainedDirectionWithRadius = dependencyValues.essentialDirection.map(
150755
- (x2) => x2 * circumradius
150916
+ (x2) => x2 * circumRadius
150756
150917
  );
150757
150918
  let vertex = dependencyValues.verticesAttr.stateValues.points[0].map(
150758
150919
  (x2) => evaluateToNumber(x2)
@@ -150779,14 +150940,14 @@ class RegularPolygon extends Polygon {
150779
150940
  let sideLength = Math.sqrt(
150780
150941
  sideVector[0] ** 2 + sideVector[1] ** 2
150781
150942
  );
150782
- let inradius = sideLength / (2 * Math.tan(Math.PI / numVertices));
150943
+ let inRadius = sideLength / (2 * Math.tan(Math.PI / numVertices));
150783
150944
  let inradiusDirection = [
150784
150945
  -sideVector[1] / sideLength,
150785
150946
  sideVector[0] / sideLength
150786
150947
  ];
150787
150948
  center = [
150788
- midpoint2[0] + inradiusDirection[0] * inradius,
150789
- midpoint2[1] + inradiusDirection[1] * inradius
150949
+ midpoint2[0] + inradiusDirection[0] * inRadius,
150950
+ midpoint2[1] + inradiusDirection[1] * inRadius
150790
150951
  ];
150791
150952
  unconstrainedDirectionWithRadius = [
150792
150953
  vertex1[0] - center[0],
@@ -151353,7 +151514,7 @@ class RegularPolygon extends Polygon {
151353
151514
  };
151354
151515
  }
151355
151516
  };
151356
- stateVariableDefinitions.circumradius = {
151517
+ stateVariableDefinitions.circumRadius = {
151357
151518
  description: "The radius of the circumscribed circle.",
151358
151519
  isLocation: true,
151359
151520
  public: true,
@@ -151378,10 +151539,10 @@ class RegularPolygon extends Polygon {
151378
151539
  let vertex1 = dependencyValues.vertex1.map(
151379
151540
  (x2) => evaluateToNumber(x2)
151380
151541
  );
151381
- let circumradius = Math.sqrt(
151542
+ let circumRadius = Math.sqrt(
151382
151543
  (vertex1[0] - center[0]) ** 2 + (vertex1[1] - center[1]) ** 2
151383
151544
  );
151384
- return { setValue: { circumradius } };
151545
+ return { setValue: { circumRadius } };
151385
151546
  },
151386
151547
  inverseDefinition({
151387
151548
  desiredStateVariableValues,
@@ -151400,7 +151561,7 @@ class RegularPolygon extends Polygon {
151400
151561
  let previousRadius = Math.sqrt(
151401
151562
  directionWithRadius[0] ** 2 + directionWithRadius[1] ** 2
151402
151563
  );
151403
- let desiredRadius = desiredStateVariableValues.circumradius;
151564
+ let desiredRadius = desiredStateVariableValues.circumRadius;
151404
151565
  let desiredDirectionWithRadius = directionWithRadius.map(
151405
151566
  (x2) => x2 / previousRadius * desiredRadius
151406
151567
  );
@@ -151421,10 +151582,10 @@ class RegularPolygon extends Polygon {
151421
151582
  };
151422
151583
  stateVariableDefinitions.radius = {
151423
151584
  isAlias: true,
151424
- targetVariableName: "circumradius",
151425
- description: "Distance from center to a vertex (alias for circumradius)."
151585
+ targetVariableName: "circumRadius",
151586
+ description: "Distance from center to a vertex (alias for circumRadius)."
151426
151587
  };
151427
- stateVariableDefinitions.inradius = {
151588
+ stateVariableDefinitions.inRadius = {
151428
151589
  description: "The radius of the inscribed circle.",
151429
151590
  isLocation: true,
151430
151591
  public: true,
@@ -151433,9 +151594,9 @@ class RegularPolygon extends Polygon {
151433
151594
  addAttributeComponentsShadowingStateVariables: returnNumberDisplayAttributeComponentShadowing()
151434
151595
  },
151435
151596
  returnDependencies: () => ({
151436
- circumradius: {
151597
+ circumRadius: {
151437
151598
  dependencyType: "stateVariable",
151438
- variableName: "circumradius"
151599
+ variableName: "circumRadius"
151439
151600
  },
151440
151601
  numVertices: {
151441
151602
  dependencyType: "stateVariable",
@@ -151443,23 +151604,23 @@ class RegularPolygon extends Polygon {
151443
151604
  }
151444
151605
  }),
151445
151606
  definition({ dependencyValues }) {
151446
- let circumradius = dependencyValues.circumradius;
151607
+ let circumRadius = dependencyValues.circumRadius;
151447
151608
  let numVertices = dependencyValues.numVertices;
151448
- let inradius = circumradius * Math.cos(Math.PI / numVertices);
151449
- return { setValue: { inradius } };
151609
+ let inRadius = circumRadius * Math.cos(Math.PI / numVertices);
151610
+ return { setValue: { inRadius } };
151450
151611
  },
151451
151612
  inverseDefinition({
151452
151613
  desiredStateVariableValues,
151453
151614
  dependencyValues
151454
151615
  }) {
151455
- let desiredInradius = desiredStateVariableValues.inradius;
151616
+ let desiredInradius = desiredStateVariableValues.inRadius;
151456
151617
  let numVertices = dependencyValues.numVertices;
151457
151618
  let desiredCircumradius = desiredInradius / Math.cos(Math.PI / numVertices);
151458
151619
  return {
151459
151620
  success: true,
151460
151621
  instructions: [
151461
151622
  {
151462
- setDependency: "circumradius",
151623
+ setDependency: "circumRadius",
151463
151624
  desiredValue: desiredCircumradius
151464
151625
  }
151465
151626
  ]
@@ -151468,8 +151629,8 @@ class RegularPolygon extends Polygon {
151468
151629
  };
151469
151630
  stateVariableDefinitions.apothem = {
151470
151631
  isAlias: true,
151471
- targetVariableName: "inradius",
151472
- description: "Distance from center to the midpoint of a side (alias for inradius)."
151632
+ targetVariableName: "inRadius",
151633
+ description: "Distance from center to the midpoint of a side (alias for inRadius)."
151473
151634
  };
151474
151635
  stateVariableDefinitions.sideLength = {
151475
151636
  description: "The length of each side.",
@@ -151480,9 +151641,9 @@ class RegularPolygon extends Polygon {
151480
151641
  addAttributeComponentsShadowingStateVariables: returnNumberDisplayAttributeComponentShadowing()
151481
151642
  },
151482
151643
  returnDependencies: () => ({
151483
- circumradius: {
151644
+ circumRadius: {
151484
151645
  dependencyType: "stateVariable",
151485
- variableName: "circumradius"
151646
+ variableName: "circumRadius"
151486
151647
  },
151487
151648
  numVertices: {
151488
151649
  dependencyType: "stateVariable",
@@ -151490,9 +151651,9 @@ class RegularPolygon extends Polygon {
151490
151651
  }
151491
151652
  }),
151492
151653
  definition({ dependencyValues }) {
151493
- let circumradius = dependencyValues.circumradius;
151654
+ let circumRadius = dependencyValues.circumRadius;
151494
151655
  let numVertices = dependencyValues.numVertices;
151495
- let sideLength = circumradius * (2 * Math.sin(Math.PI / numVertices));
151656
+ let sideLength = circumRadius * (2 * Math.sin(Math.PI / numVertices));
151496
151657
  return { setValue: { sideLength } };
151497
151658
  },
151498
151659
  inverseDefinition({
@@ -151506,7 +151667,7 @@ class RegularPolygon extends Polygon {
151506
151667
  success: true,
151507
151668
  instructions: [
151508
151669
  {
151509
- setDependency: "circumradius",
151670
+ setDependency: "circumRadius",
151510
151671
  desiredValue: desiredCircumradius
151511
151672
  }
151512
151673
  ]
@@ -151522,9 +151683,9 @@ class RegularPolygon extends Polygon {
151522
151683
  addAttributeComponentsShadowingStateVariables: returnNumberDisplayAttributeComponentShadowing()
151523
151684
  },
151524
151685
  returnDependencies: () => ({
151525
- circumradius: {
151686
+ circumRadius: {
151526
151687
  dependencyType: "stateVariable",
151527
- variableName: "circumradius"
151688
+ variableName: "circumRadius"
151528
151689
  },
151529
151690
  numVertices: {
151530
151691
  dependencyType: "stateVariable",
@@ -151532,9 +151693,9 @@ class RegularPolygon extends Polygon {
151532
151693
  }
151533
151694
  }),
151534
151695
  definition({ dependencyValues }) {
151535
- let circumradius = dependencyValues.circumradius;
151696
+ let circumRadius = dependencyValues.circumRadius;
151536
151697
  let numVertices = dependencyValues.numVertices;
151537
- let perimeter = circumradius * (2 * numVertices * Math.sin(Math.PI / numVertices));
151698
+ let perimeter = circumRadius * (2 * numVertices * Math.sin(Math.PI / numVertices));
151538
151699
  return { setValue: { perimeter } };
151539
151700
  },
151540
151701
  inverseDefinition({
@@ -151548,7 +151709,7 @@ class RegularPolygon extends Polygon {
151548
151709
  success: true,
151549
151710
  instructions: [
151550
151711
  {
151551
- setDependency: "circumradius",
151712
+ setDependency: "circumRadius",
151552
151713
  desiredValue: desiredCircumradius
151553
151714
  }
151554
151715
  ]
@@ -151564,9 +151725,9 @@ class RegularPolygon extends Polygon {
151564
151725
  addAttributeComponentsShadowingStateVariables: returnNumberDisplayAttributeComponentShadowing()
151565
151726
  },
151566
151727
  returnDependencies: () => ({
151567
- circumradius: {
151728
+ circumRadius: {
151568
151729
  dependencyType: "stateVariable",
151569
- variableName: "circumradius"
151730
+ variableName: "circumRadius"
151570
151731
  },
151571
151732
  numVertices: {
151572
151733
  dependencyType: "stateVariable",
@@ -151574,9 +151735,9 @@ class RegularPolygon extends Polygon {
151574
151735
  }
151575
151736
  }),
151576
151737
  definition({ dependencyValues }) {
151577
- let circumradius = dependencyValues.circumradius;
151738
+ let circumRadius = dependencyValues.circumRadius;
151578
151739
  let numVertices = dependencyValues.numVertices;
151579
- let area = circumradius ** 2 * (numVertices / 2 * Math.sin(2 * Math.PI / numVertices));
151740
+ let area = circumRadius ** 2 * (numVertices / 2 * Math.sin(2 * Math.PI / numVertices));
151580
151741
  return { setValue: { area } };
151581
151742
  },
151582
151743
  inverseDefinition({
@@ -151592,7 +151753,7 @@ class RegularPolygon extends Polygon {
151592
151753
  success: true,
151593
151754
  instructions: [
151594
151755
  {
151595
- setDependency: "circumradius",
151756
+ setDependency: "circumRadius",
151596
151757
  desiredValue: desiredCircumradius
151597
151758
  }
151598
151759
  ]
@@ -151687,7 +151848,7 @@ class RegularPolygon extends Polygon {
151687
151848
  {
151688
151849
  updateType: "updateValue",
151689
151850
  componentIdx: this.componentIdx,
151690
- stateVariable: "circumradius",
151851
+ stateVariable: "circumRadius",
151691
151852
  value: Math.max(1e-15, radius),
151692
151853
  sourceDetails
151693
151854
  }
@@ -159360,8 +159521,8 @@ class Angle extends GraphicalComponent {
159360
159521
  "points",
159361
159522
  "numDimensions",
159362
159523
  "coeff0",
159363
- "coeffvar1",
159364
- "coeffvar2",
159524
+ "coeffVar1",
159525
+ "coeffVar2",
159365
159526
  "nearestPoint"
159366
159527
  ]
159367
159528
  };
@@ -159879,11 +160040,11 @@ function calculateLineIntersection(line1, line2) {
159879
160040
  );
159880
160041
  return;
159881
160042
  }
159882
- let a1 = line1.stateValues.coeffvar1.evaluate_to_constant();
159883
- let b1 = line1.stateValues.coeffvar2.evaluate_to_constant();
160043
+ let a1 = line1.stateValues.coeffVar1.evaluate_to_constant();
160044
+ let b1 = line1.stateValues.coeffVar2.evaluate_to_constant();
159884
160045
  let c1 = line1.stateValues.coeff0.evaluate_to_constant();
159885
- let a2 = line2.stateValues.coeffvar1.evaluate_to_constant();
159886
- let b2 = line2.stateValues.coeffvar2.evaluate_to_constant();
160046
+ let a2 = line2.stateValues.coeffVar1.evaluate_to_constant();
160047
+ let b2 = line2.stateValues.coeffVar2.evaluate_to_constant();
159887
160048
  let c2 = line2.stateValues.coeff0.evaluate_to_constant();
159888
160049
  if (!(Number.isFinite(a1) && Number.isFinite(b1) && Number.isFinite(c1) && Number.isFinite(a2) && Number.isFinite(b2) && Number.isFinite(c2))) {
159889
160050
  console.log(
@@ -170932,17 +171093,17 @@ function returnFieldLatticeAttributes({
170932
171093
  forRenderer: true,
170933
171094
  description: `Vertical spacing between ${markNoun}.`
170934
171095
  },
170935
- xoffset: {
171096
+ xOffset: {
170936
171097
  createComponentOfType: "number",
170937
- createStateVariable: "xoffset",
171098
+ createStateVariable: "xOffset",
170938
171099
  defaultValue: 0,
170939
171100
  public: true,
170940
171101
  forRenderer: true,
170941
171102
  description: "Horizontal offset of the lattice origin."
170942
171103
  },
170943
- yoffset: {
171104
+ yOffset: {
170944
171105
  createComponentOfType: "number",
170945
- createStateVariable: "yoffset",
171106
+ createStateVariable: "yOffset",
170946
171107
  defaultValue: 0,
170947
171108
  public: true,
170948
171109
  forRenderer: true,
@@ -171093,8 +171254,8 @@ function fieldLattice(sv, definition, numInputs) {
171093
171254
  const spacing = {
171094
171255
  dx: Number(sv.dx),
171095
171256
  dy: Number(sv.dy),
171096
- xoffset: Number(sv.xoffset),
171097
- yoffset: Number(sv.yoffset)
171257
+ xOffset: Number(sv.xOffset),
171258
+ yOffset: Number(sv.yOffset)
171098
171259
  };
171099
171260
  const lines = thinnedLatticeLines(
171100
171261
  { xMin, xMax, yMin, yMax },
@@ -171191,7 +171352,7 @@ function fieldFunctionDefinitions({
171191
171352
  return [
171192
171353
  `${formulaName}(x,y)=${body}`,
171193
171354
  ...normalize2 ? [`${unitName}(v)=normalize(v/max(abs(v)))`] : [],
171194
- `${name2}(x,y)=${wrap2(`${formulaName}(${snap("x", grid.dx, grid.xoffset)},${snap("y", grid.dy, grid.yoffset)})`)}`
171355
+ `${name2}(x,y)=${wrap2(`${formulaName}(${snap("x", grid.dx, grid.xOffset)},${snap("y", grid.dy, grid.yOffset)})`)}`
171195
171356
  ].map((text) => `<definition>${escapeXml(text)}</definition>`).join("");
171196
171357
  }
171197
171358
  function warnIfUndefinedAtLatticePoint({
@@ -172120,8 +172281,8 @@ const GRAPHICAL_DESCENDANT_CONFIGS = [
172120
172281
  "fDefinitions",
172121
172282
  "dx",
172122
172283
  "dy",
172123
- "xoffset",
172124
- "yoffset",
172284
+ "xOffset",
172285
+ "yOffset",
172125
172286
  "markLength",
172126
172287
  "maxMarks",
172127
172288
  "selectedStyle",
@@ -172136,8 +172297,8 @@ const GRAPHICAL_DESCENDANT_CONFIGS = [
172136
172297
  "fDefinitions",
172137
172298
  "dx",
172138
172299
  "dy",
172139
- "xoffset",
172140
- "yoffset",
172300
+ "xOffset",
172301
+ "yOffset",
172141
172302
  "markLength",
172142
172303
  "maxMarks",
172143
172304
  "normalize",
@@ -175236,7 +175397,7 @@ class PiecewiseFunction extends Function$1 {
175236
175397
  childGroups: ["functions"],
175237
175398
  variableNames: [
175238
175399
  "domain",
175239
- "xscale",
175400
+ "xScale",
175240
175401
  "isInterpolatedFunction",
175241
175402
  "xs",
175242
175403
  "coeffs",
@@ -179930,17 +180091,17 @@ class Pegboard extends GraphicalComponent {
179930
180091
  forRenderer: true,
179931
180092
  description: "Vertical spacing between pegs."
179932
180093
  };
179933
- attributes.xoffset = {
180094
+ attributes.xOffset = {
179934
180095
  createComponentOfType: "number",
179935
- createStateVariable: "xoffset",
180096
+ createStateVariable: "xOffset",
179936
180097
  defaultValue: 0,
179937
180098
  public: true,
179938
180099
  forRenderer: true,
179939
180100
  description: "Horizontal offset of the peg grid origin."
179940
180101
  };
179941
- attributes.yoffset = {
180102
+ attributes.yOffset = {
179942
180103
  createComponentOfType: "number",
179943
- createStateVariable: "yoffset",
180104
+ createStateVariable: "yOffset",
179944
180105
  defaultValue: 0,
179945
180106
  public: true,
179946
180107
  forRenderer: true,
@@ -180008,24 +180169,24 @@ class ConstrainToGrid extends ConstraintComponent {
180008
180169
  defaultValue: 1,
180009
180170
  public: true
180010
180171
  };
180011
- attributes.xoffset = {
180172
+ attributes.xOffset = {
180012
180173
  description: "Horizontal offset of the grid origin.",
180013
180174
  createComponentOfType: "number",
180014
- createStateVariable: "xoffset",
180175
+ createStateVariable: "xOffset",
180015
180176
  defaultValue: 0,
180016
180177
  public: true
180017
180178
  };
180018
- attributes.yoffset = {
180179
+ attributes.yOffset = {
180019
180180
  description: "Vertical offset of the grid origin.",
180020
180181
  createComponentOfType: "number",
180021
- createStateVariable: "yoffset",
180182
+ createStateVariable: "yOffset",
180022
180183
  defaultValue: 0,
180023
180184
  public: true
180024
180185
  };
180025
- attributes.zoffset = {
180186
+ attributes.zOffset = {
180026
180187
  description: "Depth-wise offset of the grid origin.",
180027
180188
  createComponentOfType: "number",
180028
- createStateVariable: "zoffset",
180189
+ createStateVariable: "zOffset",
180029
180190
  defaultValue: 0,
180030
180191
  public: true
180031
180192
  };
@@ -180053,17 +180214,17 @@ class ConstrainToGrid extends ConstraintComponent {
180053
180214
  dependencyType: "stateVariable",
180054
180215
  variableName: "dz"
180055
180216
  },
180056
- xoffset: {
180217
+ xOffset: {
180057
180218
  dependencyType: "stateVariable",
180058
- variableName: "xoffset"
180219
+ variableName: "xOffset"
180059
180220
  },
180060
- yoffset: {
180221
+ yOffset: {
180061
180222
  dependencyType: "stateVariable",
180062
- variableName: "yoffset"
180223
+ variableName: "yOffset"
180063
180224
  },
180064
- zoffset: {
180225
+ zOffset: {
180065
180226
  dependencyType: "stateVariable",
180066
- variableName: "zoffset"
180227
+ variableName: "zOffset"
180067
180228
  }
180068
180229
  }),
180069
180230
  definition: ({ dependencyValues }) => ({
@@ -180075,8 +180236,8 @@ class ConstrainToGrid extends ConstraintComponent {
180075
180236
  return {};
180076
180237
  }
180077
180238
  let dx = dependencyValues.dx;
180078
- let xoffset = dependencyValues.xoffset;
180079
- let x1constrained = Math.round((x1 - xoffset) / dx) * dx + xoffset;
180239
+ let xOffset = dependencyValues.xOffset;
180240
+ let x1constrained = Math.round((x1 - xOffset) / dx) * dx + xOffset;
180080
180241
  if (Number.isFinite(x1constrained)) {
180081
180242
  return {
180082
180243
  constrained: true,
@@ -180092,8 +180253,8 @@ class ConstrainToGrid extends ConstraintComponent {
180092
180253
  return {};
180093
180254
  }
180094
180255
  let dy = dependencyValues.dy;
180095
- let yoffset = dependencyValues.yoffset;
180096
- let x2constrained = Math.round((x2 - yoffset) / dy) * dy + yoffset;
180256
+ let yOffset = dependencyValues.yOffset;
180257
+ let x2constrained = Math.round((x2 - yOffset) / dy) * dy + yOffset;
180097
180258
  if (Number.isFinite(x2constrained)) {
180098
180259
  return {
180099
180260
  constrained: true,
@@ -180109,8 +180270,8 @@ class ConstrainToGrid extends ConstraintComponent {
180109
180270
  return {};
180110
180271
  }
180111
180272
  let dz = dependencyValues.dz;
180112
- let zoffset = dependencyValues.zoffset;
180113
- let x3constrained = Math.round((x3 - zoffset) / dz) * dz + zoffset;
180273
+ let zOffset = dependencyValues.zOffset;
180274
+ let x3constrained = Math.round((x3 - zOffset) / dz) * dz + zOffset;
180114
180275
  if (Number.isFinite(x3constrained)) {
180115
180276
  return {
180116
180277
  constrained: true,
@@ -180266,44 +180427,44 @@ class AttractToGrid extends ConstraintComponent {
180266
180427
  public: true,
180267
180428
  description: "Depth-wise grid spacing."
180268
180429
  };
180269
- attributes.xoffset = {
180430
+ attributes.xOffset = {
180270
180431
  createComponentOfType: "number",
180271
- createStateVariable: "xoffset",
180432
+ createStateVariable: "xOffset",
180272
180433
  defaultValue: 0,
180273
180434
  public: true,
180274
180435
  description: "Horizontal offset of the grid origin."
180275
180436
  };
180276
- attributes.yoffset = {
180437
+ attributes.yOffset = {
180277
180438
  createComponentOfType: "number",
180278
- createStateVariable: "yoffset",
180439
+ createStateVariable: "yOffset",
180279
180440
  defaultValue: 0,
180280
180441
  public: true,
180281
180442
  description: "Vertical offset of the grid origin."
180282
180443
  };
180283
- attributes.zoffset = {
180444
+ attributes.zOffset = {
180284
180445
  createComponentOfType: "number",
180285
- createStateVariable: "zoffset",
180446
+ createStateVariable: "zOffset",
180286
180447
  defaultValue: 0,
180287
180448
  public: true,
180288
180449
  description: "Depth-wise offset of the grid origin."
180289
180450
  };
180290
- attributes.xthreshold = {
180451
+ attributes.xThreshold = {
180291
180452
  createComponentOfType: "number",
180292
- createStateVariable: "xthreshold",
180453
+ createStateVariable: "xThreshold",
180293
180454
  defaultValue: 0.2,
180294
180455
  public: true,
180295
180456
  description: "Horizontal distance within which the position attracts to a grid line."
180296
180457
  };
180297
- attributes.ythreshold = {
180458
+ attributes.yThreshold = {
180298
180459
  createComponentOfType: "number",
180299
- createStateVariable: "ythreshold",
180460
+ createStateVariable: "yThreshold",
180300
180461
  defaultValue: 0.2,
180301
180462
  public: true,
180302
180463
  description: "Vertical distance within which the position attracts to a grid line."
180303
180464
  };
180304
- attributes.zthreshold = {
180465
+ attributes.zThreshold = {
180305
180466
  createComponentOfType: "number",
180306
- createStateVariable: "zthreshold",
180467
+ createStateVariable: "zThreshold",
180307
180468
  defaultValue: 0.2,
180308
180469
  public: true,
180309
180470
  description: "Depth-wise distance within which the position attracts to a grid line."
@@ -180346,29 +180507,29 @@ class AttractToGrid extends ConstraintComponent {
180346
180507
  dependencyType: "stateVariable",
180347
180508
  variableName: "dz"
180348
180509
  },
180349
- xoffset: {
180510
+ xOffset: {
180350
180511
  dependencyType: "stateVariable",
180351
- variableName: "xoffset"
180512
+ variableName: "xOffset"
180352
180513
  },
180353
- yoffset: {
180514
+ yOffset: {
180354
180515
  dependencyType: "stateVariable",
180355
- variableName: "yoffset"
180516
+ variableName: "yOffset"
180356
180517
  },
180357
- zoffset: {
180518
+ zOffset: {
180358
180519
  dependencyType: "stateVariable",
180359
- variableName: "zoffset"
180520
+ variableName: "zOffset"
180360
180521
  },
180361
- xthreshold: {
180522
+ xThreshold: {
180362
180523
  dependencyType: "stateVariable",
180363
- variableName: "xthreshold"
180524
+ variableName: "xThreshold"
180364
180525
  },
180365
- ythreshold: {
180526
+ yThreshold: {
180366
180527
  dependencyType: "stateVariable",
180367
- variableName: "ythreshold"
180528
+ variableName: "yThreshold"
180368
180529
  },
180369
- zthreshold: {
180530
+ zThreshold: {
180370
180531
  dependencyType: "stateVariable",
180371
- variableName: "zthreshold"
180532
+ variableName: "zThreshold"
180372
180533
  }
180373
180534
  }),
180374
180535
  definition: ({ dependencyValues }) => ({
@@ -180380,12 +180541,12 @@ class AttractToGrid extends ConstraintComponent {
180380
180541
  return {};
180381
180542
  }
180382
180543
  let dx = dependencyValues.dx;
180383
- let xoffset = dependencyValues.xoffset;
180384
- let x1grid = Math.round((x1 - xoffset) / dx) * dx + xoffset;
180544
+ let xOffset = dependencyValues.xOffset;
180545
+ let x1grid = Math.round((x1 - xOffset) / dx) * dx + xOffset;
180385
180546
  if (!Number.isFinite(x1grid)) {
180386
180547
  return {};
180387
180548
  }
180388
- if (Math.abs(x1 - x1grid) < dependencyValues.xthreshold) {
180549
+ if (Math.abs(x1 - x1grid) < dependencyValues.xThreshold) {
180389
180550
  return {
180390
180551
  constrained: true,
180391
180552
  variables: { x1: x1grid }
@@ -180400,12 +180561,12 @@ class AttractToGrid extends ConstraintComponent {
180400
180561
  return {};
180401
180562
  }
180402
180563
  let dy = dependencyValues.dy;
180403
- let yoffset = dependencyValues.yoffset;
180404
- let x2grid = Math.round((x2 - yoffset) / dy) * dy + yoffset;
180564
+ let yOffset = dependencyValues.yOffset;
180565
+ let x2grid = Math.round((x2 - yOffset) / dy) * dy + yOffset;
180405
180566
  if (!Number.isFinite(x2grid)) {
180406
180567
  return {};
180407
180568
  }
180408
- if (Math.abs(x2 - x2grid) < dependencyValues.ythreshold) {
180569
+ if (Math.abs(x2 - x2grid) < dependencyValues.yThreshold) {
180409
180570
  return {
180410
180571
  constrained: true,
180411
180572
  variables: { x2: x2grid }
@@ -180420,9 +180581,9 @@ class AttractToGrid extends ConstraintComponent {
180420
180581
  return {};
180421
180582
  }
180422
180583
  let dz = dependencyValues.dz;
180423
- let zoffset = dependencyValues.zoffset;
180424
- let x3grid = Math.round((x3 - zoffset) / dz) * dz + zoffset;
180425
- if (Number.isFinite(x3grid) && Math.abs(x3 - x3grid) < dependencyValues.zthreshold) {
180584
+ let zOffset = dependencyValues.zOffset;
180585
+ let x3grid = Math.round((x3 - zOffset) / dz) * dz + zOffset;
180586
+ if (Number.isFinite(x3grid) && Math.abs(x3 - x3grid) < dependencyValues.zThreshold) {
180426
180587
  return {
180427
180588
  constrained: true,
180428
180589
  variables: { x3: x3grid }
@@ -180450,29 +180611,29 @@ class AttractToGrid extends ConstraintComponent {
180450
180611
  dependencyType: "stateVariable",
180451
180612
  variableName: "dz"
180452
180613
  },
180453
- xoffset: {
180614
+ xOffset: {
180454
180615
  dependencyType: "stateVariable",
180455
- variableName: "xoffset"
180616
+ variableName: "xOffset"
180456
180617
  },
180457
- yoffset: {
180618
+ yOffset: {
180458
180619
  dependencyType: "stateVariable",
180459
- variableName: "yoffset"
180620
+ variableName: "yOffset"
180460
180621
  },
180461
- zoffset: {
180622
+ zOffset: {
180462
180623
  dependencyType: "stateVariable",
180463
- variableName: "zoffset"
180624
+ variableName: "zOffset"
180464
180625
  },
180465
- xthreshold: {
180626
+ xThreshold: {
180466
180627
  dependencyType: "stateVariable",
180467
- variableName: "xthreshold"
180628
+ variableName: "xThreshold"
180468
180629
  },
180469
- ythreshold: {
180630
+ yThreshold: {
180470
180631
  dependencyType: "stateVariable",
180471
- variableName: "ythreshold"
180632
+ variableName: "yThreshold"
180472
180633
  },
180473
- zthreshold: {
180634
+ zThreshold: {
180474
180635
  dependencyType: "stateVariable",
180475
- variableName: "zthreshold"
180636
+ variableName: "zThreshold"
180476
180637
  },
180477
180638
  includeGridlines: {
180478
180639
  dependencyType: "stateVariable",
@@ -222635,7 +222796,7 @@ class Cell extends BaseComponent {
222635
222796
  forRenderer: true,
222636
222797
  description: "Number of columns this cell spans."
222637
222798
  };
222638
- attributes.halign = {
222799
+ attributes.hAlign = {
222639
222800
  createComponentOfType: "text",
222640
222801
  toLowerCase: true,
222641
222802
  validValues: returnHalignValidValues(),
@@ -222698,7 +222859,7 @@ class Cell extends BaseComponent {
222698
222859
  return { setValue: { columnIndex } };
222699
222860
  }
222700
222861
  };
222701
- stateVariableDefinitions.halign = {
222862
+ stateVariableDefinitions.hAlign = {
222702
222863
  description: "Horizontal alignment of the cell's content (start, center, end, or justify).",
222703
222864
  public: true,
222704
222865
  shadowingInstructions: {
@@ -222709,13 +222870,13 @@ class Cell extends BaseComponent {
222709
222870
  defaultValue: "start",
222710
222871
  // PreTeXt resolves a cell's alignment in the order cell, row,
222711
222872
  // col, tabular, and so does this chain. The row contributes
222712
- // `authoredHalign` rather than `halign`, because `halign` has
222873
+ // `authoredHalign` rather than `hAlign`, because `hAlign` has
222713
222874
  // already inherited the tabular's value and would otherwise hide
222714
- // the `<col>` behind a `<tabular halign>` the author set.
222875
+ // the `<col>` behind a `<tabular hAlign>` the author set.
222715
222876
  returnDependencies: () => ({
222716
222877
  halignAttr: {
222717
222878
  dependencyType: "attributeComponent",
222718
- attributeName: "halign",
222879
+ attributeName: "hAlign",
222719
222880
  variableNames: ["value"]
222720
222881
  },
222721
222882
  parentAuthoredHalign: {
@@ -222735,41 +222896,41 @@ class Cell extends BaseComponent {
222735
222896
  tabularHalign: {
222736
222897
  dependencyType: "ancestor",
222737
222898
  componentType: "tabular",
222738
- variableNames: ["halign"]
222899
+ variableNames: ["hAlign"]
222739
222900
  }
222740
222901
  }),
222741
222902
  definition({ dependencyValues, usedDefault }) {
222742
222903
  if (dependencyValues.halignAttr !== null) {
222743
- const halign = readVocabularyValue(
222904
+ const hAlign = readVocabularyValue(
222744
222905
  dependencyValues.halignAttr.stateValues.value,
222745
222906
  HALIGN_VALUES,
222746
222907
  "start"
222747
222908
  );
222748
- return { setValue: { halign } };
222909
+ return { setValue: { hAlign } };
222749
222910
  }
222750
222911
  if (dependencyValues.parentAuthoredHalign) {
222751
222912
  return {
222752
222913
  setValue: {
222753
- halign: dependencyValues.parentAuthoredHalign
222914
+ hAlign: dependencyValues.parentAuthoredHalign
222754
222915
  }
222755
222916
  };
222756
222917
  }
222757
222918
  const columnHalign = columnSettingForCell({
222758
222919
  dependencyValues,
222759
- setting: "halign",
222920
+ setting: "hAlign",
222760
222921
  columnIndex: dependencyValues.columnIndex
222761
222922
  });
222762
222923
  if (columnHalign) {
222763
- return { setValue: { halign: columnHalign } };
222924
+ return { setValue: { hAlign: columnHalign } };
222764
222925
  }
222765
222926
  if (!usedDefault.tabularHalign && dependencyValues.tabularHalign) {
222766
222927
  return {
222767
222928
  setValue: {
222768
- halign: dependencyValues.tabularHalign.stateValues.halign
222929
+ hAlign: dependencyValues.tabularHalign.stateValues.hAlign
222769
222930
  }
222770
222931
  };
222771
222932
  }
222772
- return { useEssentialOrDefaultValue: { halign: true } };
222933
+ return { useEssentialOrDefaultValue: { hAlign: true } };
222773
222934
  }
222774
222935
  };
222775
222936
  stateVariableDefinitions.bottomBorder = {
@@ -223169,13 +223330,13 @@ class Row extends BaseComponent {
223169
223330
  public: true,
223170
223331
  forRenderer: true
223171
223332
  };
223172
- attributes.halign = {
223333
+ attributes.hAlign = {
223173
223334
  createComponentOfType: "text",
223174
223335
  toLowerCase: true,
223175
223336
  validValues: returnHalignValidValues(),
223176
223337
  description: "Default horizontal alignment for cells in this row."
223177
223338
  };
223178
- attributes.valign = {
223339
+ attributes.vAlign = {
223179
223340
  createComponentOfType: "text",
223180
223341
  toLowerCase: true,
223181
223342
  validValues: returnValignValidValues(),
@@ -223221,7 +223382,7 @@ class Row extends BaseComponent {
223221
223382
  }
223222
223383
  static returnStateVariableDefinitions() {
223223
223384
  let stateVariableDefinitions = super.returnStateVariableDefinitions();
223224
- stateVariableDefinitions.halign = {
223385
+ stateVariableDefinitions.hAlign = {
223225
223386
  description: "Default horizontal alignment for cells in this row.",
223226
223387
  public: true,
223227
223388
  shadowingInstructions: {
@@ -223233,32 +223394,32 @@ class Row extends BaseComponent {
223233
223394
  returnDependencies: () => ({
223234
223395
  halignAttr: {
223235
223396
  dependencyType: "attributeComponent",
223236
- attributeName: "halign",
223397
+ attributeName: "hAlign",
223237
223398
  variableNames: ["value"]
223238
223399
  },
223239
223400
  parentHalign: {
223240
223401
  dependencyType: "parentStateVariable",
223241
- variableName: "halign"
223402
+ variableName: "hAlign"
223242
223403
  }
223243
223404
  }),
223244
223405
  definition({ dependencyValues, usedDefault }) {
223245
223406
  if (dependencyValues.halignAttr !== null) {
223246
- const halign = readVocabularyValue(
223407
+ const hAlign = readVocabularyValue(
223247
223408
  dependencyValues.halignAttr.stateValues.value,
223248
223409
  HALIGN_VALUES,
223249
223410
  "start"
223250
223411
  );
223251
- return { setValue: { halign } };
223412
+ return { setValue: { hAlign } };
223252
223413
  } else if (dependencyValues.parentHalign !== null && !usedDefault.parentHalign) {
223253
223414
  return {
223254
- setValue: { halign: dependencyValues.parentHalign }
223415
+ setValue: { hAlign: dependencyValues.parentHalign }
223255
223416
  };
223256
223417
  } else {
223257
- return { useEssentialOrDefaultValue: { halign: true } };
223418
+ return { useEssentialOrDefaultValue: { hAlign: true } };
223258
223419
  }
223259
223420
  }
223260
223421
  };
223261
- stateVariableDefinitions.valign = {
223422
+ stateVariableDefinitions.vAlign = {
223262
223423
  description: "Default vertical alignment for cells in this row.",
223263
223424
  public: true,
223264
223425
  shadowingInstructions: {
@@ -223270,28 +223431,28 @@ class Row extends BaseComponent {
223270
223431
  returnDependencies: () => ({
223271
223432
  valignAttr: {
223272
223433
  dependencyType: "attributeComponent",
223273
- attributeName: "valign",
223434
+ attributeName: "vAlign",
223274
223435
  variableNames: ["value"]
223275
223436
  },
223276
223437
  parentValign: {
223277
223438
  dependencyType: "parentStateVariable",
223278
- variableName: "valign"
223439
+ variableName: "vAlign"
223279
223440
  }
223280
223441
  }),
223281
223442
  definition({ dependencyValues, usedDefault }) {
223282
223443
  if (dependencyValues.valignAttr !== null) {
223283
- const valign = readVocabularyValue(
223444
+ const vAlign = readVocabularyValue(
223284
223445
  dependencyValues.valignAttr.stateValues.value,
223285
223446
  VALIGN_VALUES,
223286
223447
  "middle"
223287
223448
  );
223288
- return { setValue: { valign } };
223449
+ return { setValue: { vAlign } };
223289
223450
  } else if (dependencyValues.parentValign !== null && !usedDefault.parentValign) {
223290
223451
  return {
223291
- setValue: { valign: dependencyValues.parentValign }
223452
+ setValue: { vAlign: dependencyValues.parentValign }
223292
223453
  };
223293
223454
  } else {
223294
- return { useEssentialOrDefaultValue: { valign: true } };
223455
+ return { useEssentialOrDefaultValue: { vAlign: true } };
223295
223456
  }
223296
223457
  }
223297
223458
  };
@@ -223381,7 +223542,7 @@ class Row extends BaseComponent {
223381
223542
  returnDependencies: () => ({
223382
223543
  halignAttr: {
223383
223544
  dependencyType: "attributeComponent",
223384
- attributeName: "halign",
223545
+ attributeName: "hAlign",
223385
223546
  variableNames: ["value"]
223386
223547
  }
223387
223548
  }),
@@ -223540,10 +223701,10 @@ class Col extends BaseComponent {
223540
223701
  public: true,
223541
223702
  highlighted: true
223542
223703
  };
223543
- attributes.halign = {
223704
+ attributes.hAlign = {
223544
223705
  description: "Horizontal alignment for cells in this column.",
223545
223706
  createComponentOfType: "text",
223546
- createStateVariable: "halign",
223707
+ createStateVariable: "hAlign",
223547
223708
  defaultValue: null,
223548
223709
  public: true,
223549
223710
  highlighted: true,
@@ -223669,20 +223830,20 @@ class Tabular extends BlockComponent {
223669
223830
  public: true,
223670
223831
  forRenderer: true
223671
223832
  };
223672
- attributes.halign = {
223833
+ attributes.hAlign = {
223673
223834
  description: "Default horizontal alignment for cells.",
223674
223835
  createComponentOfType: "text",
223675
- createStateVariable: "halign",
223836
+ createStateVariable: "hAlign",
223676
223837
  defaultValue: "start",
223677
223838
  public: true,
223678
223839
  toLowerCase: true,
223679
223840
  validValues: returnHalignValidValues(),
223680
223841
  forRenderer: true
223681
223842
  };
223682
- attributes.valign = {
223843
+ attributes.vAlign = {
223683
223844
  description: "Default vertical alignment for cells.",
223684
223845
  createComponentOfType: "text",
223685
- createStateVariable: "valign",
223846
+ createStateVariable: "vAlign",
223686
223847
  defaultValue: "middle",
223687
223848
  public: true,
223688
223849
  toLowerCase: true,
@@ -223761,7 +223922,7 @@ class Tabular extends BlockComponent {
223761
223922
  childGroups: ["columns"],
223762
223923
  variableNames: [
223763
223924
  "width",
223764
- "halign",
223925
+ "hAlign",
223765
223926
  "topBorder",
223766
223927
  "endBorder"
223767
223928
  ]
@@ -223773,7 +223934,7 @@ class Tabular extends BlockComponent {
223773
223934
  columnAttributes: dependencyValues.columnChildren.map(
223774
223935
  (column) => ({
223775
223936
  width: column.stateValues.width ?? null,
223776
- halign: column.stateValues.halign ?? null,
223937
+ hAlign: column.stateValues.hAlign ?? null,
223777
223938
  topBorder: column.stateValues.topBorder ?? null,
223778
223939
  endBorder: column.stateValues.endBorder ?? null
223779
223940
  })
@@ -223834,7 +223995,7 @@ class Tabular extends BlockComponent {
223834
223995
  columnSpecs.push(
223835
223996
  columnAttributes[i2] ?? {
223836
223997
  width: null,
223837
- halign: null,
223998
+ hAlign: null,
223838
223999
  topBorder: null,
223839
224000
  endBorder: null
223840
224001
  }
@@ -239632,6 +239793,17 @@ function requireDist() {
239632
239793
  return dist;
239633
239794
  }
239634
239795
  var distExports = requireDist();
239796
+ async function loremParameters(component) {
239797
+ return [
239798
+ await component.stateValues.minSentencesPerParagraph,
239799
+ await component.stateValues.maxSentencesPerParagraph,
239800
+ await component.stateValues.minWordsPerSentence,
239801
+ await component.stateValues.maxWordsPerSentence,
239802
+ await component.stateValues.generateWords,
239803
+ await component.stateValues.generateSentences,
239804
+ await component.stateValues.generateParagraphs
239805
+ ];
239806
+ }
239635
239807
  class Lorem extends CompositeComponent {
239636
239808
  static componentType = "lorem";
239637
239809
  static componentDocs = {
@@ -239771,6 +239943,7 @@ class Lorem extends CompositeComponent {
239771
239943
  num: workspace.replacementsCreated
239772
239944
  };
239773
239945
  let diagnostics2 = [];
239946
+ workspace.parametersUsed = await loremParameters(component);
239774
239947
  const lorem = new distExports.LoremIpsum({
239775
239948
  sentencesPerParagraph: {
239776
239949
  max: await component.stateValues.maxSentencesPerParagraph,
@@ -239859,6 +240032,12 @@ class Lorem extends CompositeComponent {
239859
240032
  nComponents,
239860
240033
  workspace
239861
240034
  }) {
240035
+ const parameters = await loremParameters(component);
240036
+ if (workspace.parametersUsed && parameters.every(
240037
+ (value, i2) => Object.is(value, workspace.parametersUsed[i2])
240038
+ )) {
240039
+ return { replacementChanges: [], diagnostics: [], nComponents };
240040
+ }
239862
240041
  let diagnostics2 = [];
239863
240042
  let replacementResults = await this.createSerializedReplacements({
239864
240043
  component,
@@ -243132,10 +243311,10 @@ class SubsetOfRealsInput extends BlockComponent {
243132
243311
  forRenderer: true,
243133
243312
  excludeFromSchema: true
243134
243313
  };
243135
- attributes.xlabel = {
243314
+ attributes.xLabel = {
243136
243315
  description: "Label rendered for the x axis.",
243137
243316
  createComponentOfType: "text",
243138
- createStateVariable: "xlabel",
243317
+ createStateVariable: "xLabel",
243139
243318
  defaultValue: "",
243140
243319
  public: true,
243141
243320
  forRenderer: true,
@@ -244599,8 +244778,8 @@ class BestFitLine extends Line {
244599
244778
  setValue: {
244600
244779
  equation: blankMath2,
244601
244780
  coeff0: blankMath2,
244602
- coeffvar1: blankMath2,
244603
- coeffvar2: blankMath2
244781
+ coeffVar1: blankMath2,
244782
+ coeffVar2: blankMath2
244604
244783
  }
244605
244784
  };
244606
244785
  }
@@ -244619,8 +244798,8 @@ class BestFitLine extends Line {
244619
244798
  setValue: {
244620
244799
  equation: blankMath2,
244621
244800
  coeff0: blankMath2,
244622
- coeffvar1: blankMath2,
244623
- coeffvar2: blankMath2
244801
+ coeffVar1: blankMath2,
244802
+ coeffVar2: blankMath2
244624
244803
  }
244625
244804
  };
244626
244805
  }
@@ -244631,11 +244810,11 @@ class BestFitLine extends Line {
244631
244810
  let A2 = multiply(Xt2, X2);
244632
244811
  let s2 = lusolve(A2, b2);
244633
244812
  let coeff0 = me$2.fromAst(subset(s2, index$1(0, 0)));
244634
- let coeffvar1 = me$2.fromAst(subset(s2, index$1(1, 0)));
244635
- let coeffvar2 = me$2.fromAst(-1);
244813
+ let coeffVar1 = me$2.fromAst(subset(s2, index$1(1, 0)));
244814
+ let coeffVar2 = me$2.fromAst(-1);
244636
244815
  let variables = dependencyValues.variables;
244637
244816
  let rhs = me$2.fromAst(["+", ["*", "a", "x"], "c"]).substitute({
244638
- a: coeffvar1,
244817
+ a: coeffVar1,
244639
244818
  c: coeff0,
244640
244819
  x: variables[0]
244641
244820
  }).simplify();
@@ -244646,8 +244825,8 @@ class BestFitLine extends Line {
244646
244825
  setValue: {
244647
244826
  equation,
244648
244827
  coeff0,
244649
- coeffvar1,
244650
- coeffvar2
244828
+ coeffVar1,
244829
+ coeffVar2
244651
244830
  }
244652
244831
  };
244653
244832
  };
@@ -244659,13 +244838,13 @@ class BestFitLine extends Line {
244659
244838
  dependencyType: "stateVariable",
244660
244839
  variableName: "coeff0"
244661
244840
  },
244662
- coeffvar1: {
244841
+ coeffVar1: {
244663
244842
  dependencyType: "stateVariable",
244664
- variableName: "coeffvar1"
244843
+ variableName: "coeffVar1"
244665
244844
  },
244666
- coeffvar2: {
244845
+ coeffVar2: {
244667
244846
  dependencyType: "stateVariable",
244668
- variableName: "coeffvar2"
244847
+ variableName: "coeffVar2"
244669
244848
  },
244670
244849
  variables: {
244671
244850
  dependencyType: "stateVariable",
@@ -260892,7 +261071,7 @@ function entityStringToRawString(entityStr) {
260892
261071
  try {
260893
261072
  if (entityStr.charAt(1) === "#") {
260894
261073
  const val = entityStr.charAt(2) === "x" ? parseInt(entityStr.slice(3, entityStr.length - 1), 16) : parseInt(entityStr.slice(2, entityStr.length - 1), 10);
260895
- return String.fromCharCode(val);
261074
+ return String.fromCodePoint(val);
260896
261075
  }
260897
261076
  const trimmedEntityString = entityStr.slice(1, entityStr.length - 1);
260898
261077
  if (trimmedEntityString in ENTITY_MAP) {
@@ -260933,18 +261112,34 @@ function removeQuotes(str) {
260933
261112
  }
260934
261113
  function unescapeEntities(node, source) {
260935
261114
  const rawValue = extractContent(node, source);
260936
- const entities = node.getChildren("EntityReference");
261115
+ const entities = [
261116
+ ...node.getChildren("EntityReference"),
261117
+ ...node.getChildren("CharacterReference")
261118
+ ].sort((a2, b2) => a2.from - b2.from);
260937
261119
  if (entities.length === 0) {
260938
261120
  return rawValue;
260939
261121
  }
261122
+ const pieces = [];
260940
261123
  let i2 = 0;
260941
- let ret = "";
260942
261124
  for (const entity of entities) {
260943
- ret += rawValue.slice(i2, entity.from - node.from);
260944
- ret += entityToString(entity, source);
261125
+ pieces.push({
261126
+ text: rawValue.slice(i2, entity.from - node.from),
261127
+ isEntity: false
261128
+ });
261129
+ pieces.push({ text: entityToString(entity, source), isEntity: true });
260945
261130
  i2 = entity.to - node.from;
260946
261131
  }
260947
- ret += rawValue.slice(i2);
261132
+ pieces.push({ text: rawValue.slice(i2), isEntity: false });
261133
+ let ret = "";
261134
+ pieces.forEach((piece, idx) => {
261135
+ ret += piece.text;
261136
+ if (piece.isEntity && piece.text === "$") {
261137
+ const rest = pieces.slice(idx + 1).map((p2) => p2.text).join("");
261138
+ if (/^\$?[a-zA-Z_(]/.test(rest)) {
261139
+ ret += "​";
261140
+ }
261141
+ }
261142
+ });
260948
261143
  return ret;
260949
261144
  }
260950
261145
  function textNodeToText(node, source) {
@@ -263957,7 +264152,7 @@ function isUint8Array(value) {
263957
264152
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
263958
264153
  );
263959
264154
  }
263960
- const attributeNamesData = { "names": ["name", "hide", "disabled", "fixed", "fixLocation", "styleNumber", "isResponse", "extend", "copy", "copyWithState", "format", "simplify", "expand", "displayDigits", "displayDecimals", "displaySmallAsZero", "padZeros", "avoidScientificNotation", "renderMode", "unordered", "createVectors", "createIntervals", "functionSymbols", "referencesAreFunctionSymbols", "splitSymbols", "parseScientificNotation", "displayBlanks", "assumptions", "draggable", "layer", "anchor", "positionFromAnchor", "for", "forObject", "maskLabel", "aggregateScores", "weight", "sectionWideCheckWork", "maxNumAttempts", "showCorrectness", "colorCorrectness", "colorAnswersSeparately", "submitLabel", "submitLabelNoCorrectness", "displayDigitsForCreditAchieved", "condition", "number", "symbolicEquality", "expandOnCompare", "simplifyOnCompare", "unorderedCompare", "matchByExactPositions", "allowedErrorInNumbers", "includeErrorInNumberExponents", "allowedErrorIsAbsolute", "numSignErrorsMatched", "numPeriodicSetMatchesRequired", "caseInsensitiveMatch", "matchBlanks", "limits", "strict", "forceSymbolic", "forceNumeric", "lowerValue", "upperValue", "numDecimals", "numDigits", "threshold", "population", "type", "operandNumber", "argumentNumber", "asList", "target", "allowUnsorted", "side", "categories", "bins", "closed", "width", "size", "aspectRatio", "barWidth", "layout", "legend", "legendPosition", "xMin", "xMax", "yMin", "yMax", "displayValues", "markers", "showBorder", "displayMode", "horizontalAlign", "decorative", "labelIsName", "x", "xscale", "yscale", "numInputs", "numOutputs", "domain", "applyStyleToLabel", "labelPosition", "minima", "maxima", "extrema", "through", "throughSlopes", "variables", "variable", "symbolic", "nearestPointAsCurve", "lineStyle", "lineWidth", "derivVariables", "derivVariable", "isLatex", "boxed", "includeAutoName", "includeAutoNumber", "noAutoTitle", "includeAutoNameIfNoTitle", "includeAutoNumberIfNoTitle", "collapsible", "startOpen", "level", "completedColor", "completedColorRequiresCredit", "inProgressColor", "notStartedColor", "completedColorDarkMode", "inProgressColorDarkMode", "notStartedColorDarkMode", "includeParentNumber", "postponeRendering", "isDistractor", "renameTo", "marker", "independentVariable", "initialIndependentVariableValue", "chunkSize", "tolerance", "maxIterations", "hideInitialCondition", "initialConditions", "verticesDraggable", "vertices", "showCoordsWhenDragging", "rigid", "preserveSimilarity", "rotationHandleVertices", "rotateAround", "rotationCenter", "rotationVertex", "allowRotation", "allowTranslation", "allowDilation", "minShrink", "allowReflection", "attractThreshold", "numPoints", "numIterationsRequired", "initialPoint", "function", "lockToSolution", "defaultPoint", "markerStyle", "markerSize", "y", "z", "xs", "coords", "addControls", "hideOffGraphIndicator", "controlOrder", "stable", "switchable", "equation", "slope", "perpendicularTo", "parallelTo", "fillOpacity", "fillPatternOpacity", "fillStyle", "flipFunction", "numDiscretizationPoints", "periodic", "splineTension", "extrapolateBackward", "extrapolateForward", "splineForm", "parMin", "parMax", "symbol", "atomicNumber", "charge", "labels", "prefill", "prefillLabel", "code", "text", "lineColor", "lineColorWord", "lineColorDarkMode", "lineColorWordDarkMode", "lineOpacity", "lineWidthWord", "lineStyleWord", "markerColor", "markerColorWord", "markerColorDarkMode", "markerColorWordDarkMode", "markerOpacity", "markerStyleWord", "markerFilled", "fillColor", "fillColorWord", "fillColorDarkMode", "fillColorWordDarkMode", "fillStyleWord", "textColor", "textColorWord", "textColorDarkMode", "textColorWordDarkMode", "highContrastColor", "highContrastColorWord", "highContrastColorDarkMode", "highContrastColorWordDarkMode", "backgroundColor", "backgroundColorWord", "backgroundColorDarkMode", "backgroundColorWordDarkMode", "palette", "widths", "margins", "valign", "valigns", "initialPage", "previousLabel", "nextLabel", "pageLabel", "paginator", "forAnswer", "numRows", "numColumns", "showSizeControls", "defaultEntry", "bindValueTo", "unionFromU", "minComponentWidth", "prefillNumerator", "prefillDenominator", "xmlns", "lang", "maxNumber", "mergeMathLists", "from", "componentType", "to", "textType", "createButton", "endpointsDraggable", "endpoints", "midpoint", "length", "midpointOffset", "endpoint", "direction", "filled", "center", "height", "numVertices", "numSides", "circumradius", "radius", "inradius", "apothem", "sideLength", "perimeter", "area", "vertex", "alwaysVisible", "pointNumber", "headDraggable", "tailDraggable", "displacement", "head", "tail", "displayWithAngleBrackets", "chooseReflexAngle", "inDegrees", "radians", "degrees", "betweenLines", "emphasizeRightAngle", "handGraded", "matchPartial", "disableAfterCorrect", "displayDigitsForResponses", "inline", "forceFullCheckWorkButton", "forceSmallCheckWorkButton", "numAwardsCredited", "colorInputsSeparately", "selectMultiple", "shuffleOrder", "preserveLastChoice", "disableWrongChoices", "creditByAttempt", "expanded", "showPreview", "video", "videoCreditLabel", "credit", "feedbackCodes", "feedbackText", "referencesAreResponses", "prefillLatex", "additionalFunctionNames", "removedFunctionNames", "resetFunctionNames", "hideNaN", "removeStrings", "minWidth", "asToggleButton", "preselectChoice", "placeHolder", "preSelect", "renderAsMath", "convertBoolean", "valueOnNaN", "identicalAxisScales", "displayXAxis", "displayYAxis", "controlsPosition", "displayXAxisTicks", "displayYAxisTicks", "displayXAxisTickLabels", "displayYAxisTickLabels", "xLabelPosition", "xTickScaleFactor", "yLabelPosition", "yLabelAlignment", "yTickScaleFactor", "showNavigation", "fixAxes", "grid", "hideOffGraphIndicators", "renderer", "ref", "speech", "sonify", "circular", "selectForVariants", "selectWeight", "step", "exclude", "initialValue", "showControls", "showTicks", "rotateTickLabels", "showValue", "minNumRows", "minNumColumns", "columnHeaders", "rowHeaders", "fixedRowsTop", "fixedColumnsLeft", "hiddenColumns", "hiddenRows", "rowNum", "colNum", "colSpan", "halign", "bottomBorder", "endBorder", "header", "startBorder", "topBorder", "suppressTableNameInTitle", "suppressFigureNameInCaption", "valueName", "indexName", "dx", "dy", "xoffset", "yoffset", "dz", "zoffset", "buffer", "xthreshold", "ythreshold", "zthreshold", "includeGridlines", "relativeToGraphScales", "numVariants", "uniqueVariants", "variantsToInclude", "variantsToExclude", "variantNames", "seeds", "numToSelect", "withReplacement", "sort", "excludeCombinations", "coprime", "rendered", "animationOn", "animationMode", "animationInterval", "allowAdjustmentsWhileRunning", "input", "mean", "standardDeviation", "variance", "logMean", "logStandardDeviation", "logVariance", "means", "standardDeviations", "variances", "weights", "numTotal", "numSuccesses", "numDraws", "numTrials", "probability", "numSamples", "variantDeterminesSeed", "numInCategories", "match", "replacement", "matchWholeWord", "matchCase", "preserveCase", "minIndex", "maxIndex", "offsets", "period", "minIndexAsList", "maxIndexAsList", "source", "authorName", "authorUrl", "imageName", "originalUrl", "licenseName", "licenseUrl", "licenseCodes", "licenseVersion", "asFileName", "mimeType", "rotate", "youtube", "pluralForm", "basedOnNumber", "updateWith", "minSentencesPerParagraph", "maxSentencesPerParagraph", "minWordsPerSentence", "maxWordsPerSentence", "generateWords", "generateSentences", "generateParagraphs", "newValue", "triggerWhen", "triggerWith", "triggerWhenObjectsClicked", "triggerWhenObjectsFocused", "actionName", "numbers", "numIterates", "open", "sortVectorsBy", "sortByComponent", "sortByProp", "minVar", "maxVar", "splitBy", "data", "boundaryValues", "flipFunctions", "markLength", "maxMarks", "normalize", "horizontal", "boundaryValue", "greaterThan", "viewerRatio", "showResults", "showFormatter", "resultsLocation", "readOnly", "initialOpenTab", "renderedName", "staticName", "restrictDivision", "monomialFactorMustMatch", "allowOnlySignDifferences", "statisticsToDisplay", "position", "displayClosedSwatches", "pattern", "parameters", "allowImplicitIdentities", "allowPermutations", "requireNumericMatches", "requireVariableMatches", "excludeMatches", "matchExpressionWithBlanks", "angleThreshold", "maxNumColumns", "mode", "hideFutureSections", "revealAll", "boxAll"], "tags": { "title": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "rightHandSide": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "xLabel": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 32, 33, 28, 29, 34, 30, 31], "yLabel": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 32, 33, 28, 29, 34, 30, 31], "statement": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "introduction": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "conclusion": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "br": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "hr": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "cascadeMessage": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "else": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 45], "m": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 30, 31], "me": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 30, 31], "men": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 30, 31], "md": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 30, 31], "mdn": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 30, 31], "mrow": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 30, 31, 46], "not": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "and": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "or": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "xor": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "iff": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "implies": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "isInteger": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "isNumber": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "isBetween": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60], "sum": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "product": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "clampNumber": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 63, 64], "wrapNumberPeriodic": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 63, 64], "round": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 65, 66], "setSmallToZero": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 67], "convertSetToList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "ceil": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "floor": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "abs": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "sign": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "mean": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "median": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "variance": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62, 68], "standardDeviation": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62, 68], "count": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "min": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "max": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "mod": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "gcd": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "lcm": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "extractMath": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 69, 70, 71], "cumulativeSum": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 61, 62], "cumulativeProduct": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 61, 62], "cumulativeMin": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 61, 62], "cumulativeMax": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 61, 62], "differences": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 61, 62], "argMin": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 69], "argMax": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 69], "indexOf": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 73], "searchSorted": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 73, 74, 75], "tally": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 76], "binCounts": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 77, 78], "chart": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 80, 69, 77, 78, 81, 76, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95], "series": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 97], "clampFunction": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 98, 99, 100, 101, 102, 96, 103, 104, 29, 105, 106, 107, 108, 109, 110, 111, 112, 13, 14, 15, 16, 17, 113, 114, 115, 63, 64], "wrapFunctionPeriodic": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 98, 99, 100, 101, 102, 96, 103, 104, 29, 105, 106, 107, 108, 109, 110, 111, 112, 13, 14, 15, 16, 17, 113, 114, 115, 63, 64], "derivative": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 98, 99, 100, 101, 102, 96, 103, 104, 29, 105, 106, 107, 108, 109, 110, 111, 112, 13, 14, 15, 16, 17, 113, 114, 115, 116, 117], "extractMathOperator": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 118, 30, 31], "em": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "alert": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "delete": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "insert": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "q": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "sq": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "term": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "c": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "tag": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "tage": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "tagc": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "attr": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "ndash": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "mdash": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "nbsp": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "ellipsis": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "lq": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "rq": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "lsq": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "rsq": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "section": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "subsection": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "subsubsection": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "paragraphs": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "aside": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136], "objectives": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "problem": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 137], "exercise": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 137], "question": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 137], "activity": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 137], "example": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "definition": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "note": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "theorem": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "part": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "task": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "proof": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 138, 128, 129, 130, 131, 132, 133, 134, 136], "problems": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 138, 128, 129, 130, 131, 132, 133, 134, 135], "exercises": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 138, 128, 129, 130, 131, 132, 133, 134, 135], "ol": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 127, 139, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "ul": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 127, 139, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "li": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "odeSystem": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 140, 141, 13, 14, 15, 16, 17, 142, 143, 144, 145, 146, 110, 46], "cobwebPolyline": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 13, 14, 15, 16, 17, 161, 162, 111, 163, 164, 165, 166, 167], "equilibriumPoint": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 168, 169, 28, 97, 170, 171, 172, 173, 13, 14, 15, 16, 17, 104, 149, 174, 175, 176, 177, 178], "equilibriumLine": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 115, 28, 179, 108, 180, 181, 182, 110, 13, 14, 15, 16, 17, 104, 177, 178], "equilibriumCurve": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 115, 183, 184, 185, 28, 104, 186, 187, 188, 189, 190, 191, 192, 111, 108, 193, 194, 149, 113, 13, 14, 15, 16, 17, 177, 178], "atom": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 195, 196, 13, 14, 15, 16, 17], "ion": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 195, 196, 197], "ionicCompound": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 195, 196, 197], "electronConfiguration": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "orbitalDiagram": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 198], "orbitalDiagramInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 199, 200], "feedbackDefinition": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 201, 202], "styleDefinition": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 203, 204, 205, 206, 207, 115, 208, 114, 209, 210, 211, 212, 213, 214, 168, 215, 169, 216, 217, 218, 219, 220, 183, 184, 185, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233], "stylePalette": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 234], "sideBySide": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 235, 236, 237, 238], "sbsGroup": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 235, 236, 237, 238], "stack": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "div": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "span": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "pre": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "displayDoenetML": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "paginator": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 239], "paginatorControls": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 240, 241, 242, 243], "matrixInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 104, 244, 96, 245, 246, 247, 248, 199, 10, 22, 24, 25, 13, 14, 15, 16, 17, 249, 250, 251], "fractionInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 104, 244, 96, 252, 253, 10, 22, 24, 25, 13, 14, 15, 16, 17, 250, 251, 249], "solution": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "givenAnswer": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "document": [0, 4, 7, 8, 9, 37, 38, 39, 40, 41, 42, 43, 44, 254, 69, 255], "text": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 118, 30, 31], "textList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 72, 256, 19], "p": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "boolean": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "booleanList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 72, 256, 19], "math": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "mathList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19, 257, 22, 23, 24, 25], "tupleList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19, 257, 22, 23, 24, 25], "numberList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19], "collect": [0, 4, 7, 8, 9, 256, 258, 259, 72], "ref": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 260, 261, 262], "point": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 168, 169, 216, 28, 97, 170, 171, 172, 173, 13, 14, 15, 16, 17, 104, 149, 174, 175, 176], "coords": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "line": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 179, 108, 180, 181, 182, 110, 13, 14, 15, 16, 17, 104], "lineSegment": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 263, 264, 265, 180, 266, 267, 174, 149, 104, 13, 14, 15, 16, 17, 176], "ray": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 268, 108, 269, 104, 13, 14, 15, 16, 17], "polyline": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 13, 14, 15, 16, 17], "polygon": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 183, 184, 185, 28, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 13, 14, 15, 16, 17, 174, 270, 176], "triangle": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 183, 184, 185, 28, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 13, 14, 15, 16, 17, 174, 270, 176], "rectangle": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 183, 184, 185, 28, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 13, 14, 15, 16, 17, 174, 270, 176, 271, 79, 272], "regularPolygon": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 183, 184, 185, 28, 147, 148, 149, 150, 152, 153, 154, 155, 156, 157, 158, 159, 160, 13, 14, 15, 16, 17, 174, 270, 176, 273, 274, 271, 275, 276, 277, 278, 279, 280, 281], "circle": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 183, 184, 185, 28, 104, 186, 187, 188, 189, 190, 191, 192, 108, 149, 113, 13, 14, 15, 16, 17, 271, 276, 174, 270, 175, 176], "parabola": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 104, 186, 187, 188, 189, 190, 191, 192, 108, 149, 113, 13, 14, 15, 16, 17, 282], "curve": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 183, 184, 185, 28, 104, 186, 187, 188, 189, 190, 191, 192, 111, 108, 193, 194, 149, 113, 13, 14, 15, 16, 17], "bezierControls": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 283], "controlVectors": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19, 269, 284], "vector": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 285, 286, 97, 170, 171, 172, 287, 288, 289, 174, 104, 13, 14, 15, 16, 17, 290, 149, 176], "angle": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 183, 184, 185, 276, 291, 292, 293, 294, 108, 295, 13, 14, 15, 16, 17, 296], "answer": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 36, 297, 298, 38, 39, 40, 299, 42, 43, 300, 44, 301, 47, 302, 303, 49, 48, 50, 51, 304, 305, 52, 53, 54, 55, 56, 57, 58, 69, 306, 307, 308, 309, 310, 24, 25, 311, 312, 313, 314, 96], "award": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 315, 298, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 316, 317, 318, 24, 25], "when": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 298], "mathInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 104, 244, 96, 199, 319, 10, 22, 320, 321, 322, 24, 25, 13, 14, 15, 16, 17, 249, 250, 323, 324, 325, 312, 28, 30, 31], "textInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 104, 244, 96, 199, 249, 311, 79, 272, 28, 30, 31], "booleanInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 104, 244, 96, 199, 326, 249, 28, 30, 31], "choiceInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 104, 244, 96, 306, 298, 301, 307, 308, 327, 249, 328], "choice": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 315, 316, 317, 329], "number": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 330, 331, 332, 28, 29, 30, 31], "integer": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 330, 331, 332, 28, 29, 30, 31], "graph": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 86, 87, 88, 89, 79, 80, 81, 93, 94, 333, 334, 335, 174, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 13, 14, 15, 16, 17, 92, 349, 95, 350], "annotations": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "annotation": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 351, 202, 352, 353, 354], "function": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 98, 99, 100, 101, 102, 96, 103, 104, 29, 105, 106, 107, 108, 109, 110, 111, 112, 13, 14, 15, 16, 17, 113, 114, 115], "piecewiseFunction": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 98, 99, 102, 96, 103, 104, 29, 109, 110, 111, 112, 13, 14, 15, 16, 17, 113, 114, 115], "interval": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "option": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 355, 356], "sequence": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 258, 260, 357, 266, 358], "slider": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 69, 79, 272, 359, 360, 361, 362, 363, 258, 260, 357, 96, 13, 14, 15, 16, 17, 249], "spreadsheet": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 364, 365, 272, 366, 367, 368, 369, 370, 371], "cell": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 372, 373, 374, 375, 376, 377, 199], "row": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 372, 378, 375, 237, 379, 376, 22, 23, 24, 25], "column": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 373, 79, 22, 23, 24, 25], "col": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 375, 380, 377], "cellBlock": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 372, 373], "tabular": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 272, 375, 237, 380, 379, 376, 377], "table": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 381, 46], "figure": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 382, 46], "repeat": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 383, 384, 32, 69, 72], "repeatForSequence": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 69, 258, 260, 357, 266, 358, 383, 384, 72], "pegboard": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 29, 385, 386, 387, 388], "constrainToGrid": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 385, 386, 389, 387, 388, 390], "constrainToGraph": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 391], "attractToGrid": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 385, 386, 389, 387, 388, 390, 392, 393, 394, 395], "constrainTo": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 396], "attractTo": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 396, 67], "constraintUnion": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "attractToConstraint": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 67], "constrainToInterior": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 396], "intersection": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 72], "conditionalContent": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 45], "asList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "variantControl": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 397, 398, 399, 400, 401, 402], "selectFromSequence": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 258, 260, 357, 266, 358, 403, 404, 405, 406, 407], "select": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 403, 404, 69, 72], "group": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 408, 72], "animateFromSequence": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 69, 258, 260, 357, 266, 358, 73, 409, 410, 411, 412], "evaluate": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62, 165, 413], "selectRandomNumbers": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 258, 260, 357, 358, 424, 425, 426, 427, 428, 403], "sampleRandomNumbers": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 429, 69, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 258, 260, 357, 358, 424, 425, 426, 427, 428, 430], "sampleMultivariateRandomNumber": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 431, 426, 430], "selectPrimeNumbers": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 258, 260, 358, 403, 404, 405, 406], "samplePrimeNumbers": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 429, 258, 260, 358, 430], "substitute": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 69, 432, 433, 11, 13, 14, 15, 16, 17, 434, 435, 436], "periodicSet": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 437, 438, 439, 440, 441, 442], "image": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 80, 81, 93, 94, 95, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 28, 29, 30, 31, 454], "video": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 80, 81, 93, 94, 455, 443], "hint": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "intComma": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 118, 30, 31], "pluralize": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 118, 30, 31, 456, 457], "feedback": [0, 2, 3, 4, 5, 6, 7, 8, 9, 45, 458], "considerAsResponses": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "case": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 45], "lorem": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 459, 460, 461, 462, 463, 464, 465], "updateValue": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 73, 69, 466, 28, 30, 31, 96, 467, 468, 469, 470, 11], "callAction": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 73, 471, 28, 96, 30, 31, 467, 468, 469, 470, 472, 46], "triggerSet": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 30, 31, 96, 467, 468, 469, 470], "functionIterates": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 473, 61, 62, 359, 165], "module": [0, 1, 2, 3, 4, 6, 7, 8, 9, 408, 72], "moduleAttributes": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "setup": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "footnote": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "caption": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "endpoint": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 168, 169, 28, 97, 170, 171, 172, 173, 13, 14, 15, 16, 17, 104, 149, 174, 175, 176, 474, 178], "sort": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 475, 476, 477, 69, 72], "sortIndices": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 475, 476, 477, 69], "shuffle": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 69, 72], "solveEquations": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 110, 187, 478, 479], "subsetOfRealsInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 111, 10, 199, 249], "subsetOfReals": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 111, 93], "split": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 69, 480, 72], "bestFitLine": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 181, 182, 110, 13, 14, 15, 16, 17, 104, 481], "regionBetweenCurveXAxis": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 183, 184, 185, 482, 165], "regionBetweenCurves": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 183, 184, 185, 482, 483], "slopeField": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 29, 114, 115, 110, 385, 386, 387, 388, 484, 485], "vectorField": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 29, 114, 115, 110, 385, 386, 387, 388, 484, 485, 486], "regionHalfPlane": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 487, 488, 489], "codeEditor": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 199, 249, 79, 272, 490, 491, 492, 493, 494, 495, 496, 497], "hasSameFactoring": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 111, 498, 499, 500], "summaryStatistics": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 501, 13, 14, 15, 16, 17], "legend": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 502, 119, 503], "label": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 32, 33, 28, 29, 34, 30, 31], "matchesPattern": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 504, 505, 506, 507, 508, 509, 510, 511], "matrix": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 248, 245, 246], "eigenDecomposition": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17], "latex": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 118, 30, 31], "blockQuote": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "description": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "stickyGroup": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 396, 67, 512], "pretzel": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 36, 297, 298, 38, 39, 40, 299, 42, 43, 300, 44, 513, 514], "cascade": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 515, 516, 517, 128, 129, 130, 131, 132, 133, 134], "page": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "shortDescription": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "pointList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19], "intervalList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19], "vectorList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19], "matrixRow": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19, 257, 22, 23, 24, 25], "matrixColumn": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19, 257, 22, 23, 24, 25] } };
264155
+ const attributeNamesData = { "names": ["name", "hide", "disabled", "fixed", "fixLocation", "styleNumber", "isResponse", "extend", "copy", "copyWithState", "format", "simplify", "expand", "displayDigits", "displayDecimals", "displaySmallAsZero", "padZeros", "avoidScientificNotation", "renderMode", "unordered", "createVectors", "createIntervals", "functionSymbols", "referencesAreFunctionSymbols", "splitSymbols", "parseScientificNotation", "displayBlanks", "assumptions", "draggable", "layer", "anchor", "positionFromAnchor", "for", "forObject", "maskLabel", "aggregateScores", "weight", "sectionWideCheckWork", "maxNumAttempts", "showCorrectness", "colorCorrectness", "colorAnswersSeparately", "submitLabel", "submitLabelNoCorrectness", "displayDigitsForCreditAchieved", "condition", "number", "symbolicEquality", "expandOnCompare", "simplifyOnCompare", "unorderedCompare", "matchByExactPositions", "allowedErrorInNumbers", "includeErrorInNumberExponents", "allowedErrorIsAbsolute", "numSignErrorsMatched", "numPeriodicSetMatchesRequired", "caseInsensitiveMatch", "matchBlanks", "limits", "strict", "forceSymbolic", "forceNumeric", "lowerValue", "upperValue", "numDecimals", "numDigits", "threshold", "population", "type", "operandNumber", "argumentNumber", "asList", "target", "allowUnsorted", "side", "categories", "bins", "closed", "width", "size", "aspectRatio", "barWidth", "layout", "legend", "legendPosition", "xMin", "xMax", "yMin", "yMax", "displayValues", "markers", "showBorder", "displayMode", "horizontalAlign", "decorative", "labelIsName", "x", "xScale", "yScale", "numInputs", "numOutputs", "domain", "applyStyleToLabel", "labelPosition", "minima", "maxima", "extrema", "through", "throughSlopes", "variables", "variable", "symbolic", "nearestPointAsCurve", "lineStyle", "lineWidth", "derivVariables", "derivVariable", "isLatex", "boxed", "includeAutoName", "includeAutoNumber", "noAutoTitle", "includeAutoNameIfNoTitle", "includeAutoNumberIfNoTitle", "collapsible", "startOpen", "level", "completedColor", "completedColorRequiresCredit", "inProgressColor", "notStartedColor", "completedColorDarkMode", "inProgressColorDarkMode", "notStartedColorDarkMode", "includeParentNumber", "postponeRendering", "isDistractor", "renameTo", "marker", "independentVariable", "initialIndependentVariableValue", "chunkSize", "tolerance", "maxIterations", "hideInitialCondition", "initialConditions", "verticesDraggable", "vertices", "showCoordsWhenDragging", "rigid", "preserveSimilarity", "rotationHandleVertices", "rotateAround", "rotationCenter", "rotationVertex", "allowRotation", "allowTranslation", "allowDilation", "minShrink", "allowReflection", "attractThreshold", "numPoints", "numIterationsRequired", "initialPoint", "function", "lockToSolution", "defaultPoint", "markerStyle", "markerSize", "y", "z", "xs", "coords", "addControls", "hideOffGraphIndicator", "controlOrder", "stable", "switchable", "equation", "slope", "perpendicularTo", "parallelTo", "fillOpacity", "fillPatternOpacity", "fillStyle", "flipFunction", "numDiscretizationPoints", "periodic", "splineTension", "extrapolateBackward", "extrapolateForward", "splineForm", "parMin", "parMax", "symbol", "atomicNumber", "charge", "labels", "prefill", "prefillLabel", "code", "text", "lineColor", "lineColorWord", "lineColorDarkMode", "lineColorWordDarkMode", "lineOpacity", "lineWidthWord", "lineStyleWord", "markerColor", "markerColorWord", "markerColorDarkMode", "markerColorWordDarkMode", "markerOpacity", "markerStyleWord", "markerFilled", "fillColor", "fillColorWord", "fillColorDarkMode", "fillColorWordDarkMode", "fillStyleWord", "textColor", "textColorWord", "textColorDarkMode", "textColorWordDarkMode", "highContrastColor", "highContrastColorWord", "highContrastColorDarkMode", "highContrastColorWordDarkMode", "backgroundColor", "backgroundColorWord", "backgroundColorDarkMode", "backgroundColorWordDarkMode", "palette", "widths", "margins", "vAlign", "vAligns", "initialPage", "previousLabel", "nextLabel", "pageLabel", "paginator", "forAnswer", "numRows", "numColumns", "showSizeControls", "defaultEntry", "bindValueTo", "unionFromU", "minComponentWidth", "prefillNumerator", "prefillDenominator", "xmlns", "lang", "maxNumber", "mergeMathLists", "from", "componentType", "to", "textType", "createButton", "endpointsDraggable", "endpoints", "midpoint", "length", "midpointOffset", "endpoint", "direction", "filled", "center", "height", "numVertices", "numSides", "circumRadius", "radius", "inRadius", "apothem", "sideLength", "perimeter", "area", "vertex", "alwaysVisible", "pointNumber", "headDraggable", "tailDraggable", "displacement", "head", "tail", "displayWithAngleBrackets", "chooseReflexAngle", "inDegrees", "radians", "degrees", "betweenLines", "emphasizeRightAngle", "handGraded", "matchPartial", "disableAfterCorrect", "displayDigitsForResponses", "inline", "forceFullCheckWorkButton", "forceSmallCheckWorkButton", "numAwardsCredited", "colorInputsSeparately", "selectMultiple", "shuffleOrder", "preserveLastChoice", "disableWrongChoices", "creditByAttempt", "expanded", "showPreview", "video", "videoCreditLabel", "credit", "feedbackCodes", "feedbackText", "referencesAreResponses", "prefillLatex", "additionalFunctionNames", "removedFunctionNames", "resetFunctionNames", "hideNaN", "removeStrings", "minWidth", "asToggleButton", "preselectChoice", "placeHolder", "preSelect", "renderAsMath", "convertBoolean", "valueOnNaN", "identicalAxisScales", "displayXAxis", "displayYAxis", "controlsPosition", "displayXAxisTicks", "displayYAxisTicks", "displayXAxisTickLabels", "displayYAxisTickLabels", "xLabelPosition", "xTickScaleFactor", "yLabelPosition", "yLabelAlignment", "yTickScaleFactor", "showNavigation", "fixAxes", "grid", "hideOffGraphIndicators", "renderer", "ref", "speech", "sonify", "circular", "selectForVariants", "selectWeight", "step", "exclude", "initialValue", "showControls", "showTicks", "rotateTickLabels", "showValue", "minNumRows", "minNumColumns", "columnHeaders", "rowHeaders", "fixedRowsTop", "fixedColumnsLeft", "hiddenColumns", "hiddenRows", "rowNum", "colNum", "colSpan", "hAlign", "bottomBorder", "endBorder", "header", "startBorder", "topBorder", "suppressTableNameInTitle", "suppressFigureNameInCaption", "valueName", "indexName", "dx", "dy", "xOffset", "yOffset", "dz", "zOffset", "buffer", "xThreshold", "yThreshold", "zThreshold", "includeGridlines", "relativeToGraphScales", "numVariants", "uniqueVariants", "variantsToInclude", "variantsToExclude", "variantNames", "seeds", "numToSelect", "withReplacement", "sort", "excludeCombinations", "coprime", "rendered", "animationOn", "animationMode", "animationInterval", "allowAdjustmentsWhileRunning", "input", "mean", "standardDeviation", "variance", "logMean", "logStandardDeviation", "logVariance", "means", "standardDeviations", "variances", "weights", "numTotal", "numSuccesses", "numDraws", "numTrials", "probability", "numSamples", "variantDeterminesSeed", "numInCategories", "match", "replacement", "matchWholeWord", "matchCase", "preserveCase", "minIndex", "maxIndex", "offsets", "period", "minIndexAsList", "maxIndexAsList", "source", "authorName", "authorUrl", "imageName", "originalUrl", "licenseName", "licenseUrl", "licenseCodes", "licenseVersion", "asFileName", "mimeType", "rotate", "youtube", "pluralForm", "basedOnNumber", "updateWith", "minSentencesPerParagraph", "maxSentencesPerParagraph", "minWordsPerSentence", "maxWordsPerSentence", "generateWords", "generateSentences", "generateParagraphs", "newValue", "triggerWhen", "triggerWith", "triggerWhenObjectsClicked", "triggerWhenObjectsFocused", "actionName", "numbers", "numIterates", "open", "sortVectorsBy", "sortByComponent", "sortByProp", "minVar", "maxVar", "splitBy", "data", "boundaryValues", "flipFunctions", "markLength", "maxMarks", "normalize", "horizontal", "boundaryValue", "greaterThan", "viewerRatio", "showResults", "showFormatter", "resultsLocation", "readOnly", "initialOpenTab", "renderedName", "staticName", "restrictDivision", "monomialFactorMustMatch", "allowOnlySignDifferences", "statisticsToDisplay", "position", "displayClosedSwatches", "pattern", "parameters", "allowImplicitIdentities", "allowPermutations", "requireNumericMatches", "requireVariableMatches", "excludeMatches", "matchExpressionWithBlanks", "angleThreshold", "maxNumColumns", "mode", "hideFutureSections", "revealAll", "boxAll"], "tags": { "title": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "rightHandSide": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "xLabel": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 32, 33, 28, 29, 34, 30, 31], "yLabel": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 32, 33, 28, 29, 34, 30, 31], "statement": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "introduction": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "conclusion": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "br": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "hr": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "cascadeMessage": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "else": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 45], "m": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 30, 31], "me": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 30, 31], "men": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 30, 31], "md": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 30, 31], "mdn": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 30, 31], "mrow": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 30, 31, 46], "not": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "and": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "or": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "xor": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "iff": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "implies": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "isInteger": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "isNumber": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "isBetween": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60], "sum": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "product": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "clampNumber": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 63, 64], "wrapNumberPeriodic": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 63, 64], "round": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 65, 66], "setSmallToZero": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 67], "convertSetToList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "ceil": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "floor": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "abs": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "sign": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "mean": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "median": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "variance": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62, 68], "standardDeviation": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62, 68], "count": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "min": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "max": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "mod": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "gcd": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "lcm": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62], "extractMath": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 69, 70, 71], "cumulativeSum": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 61, 62], "cumulativeProduct": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 61, 62], "cumulativeMin": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 61, 62], "cumulativeMax": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 61, 62], "differences": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 61, 62], "argMin": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 69], "argMax": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 69], "indexOf": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 73], "searchSorted": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 73, 74, 75], "tally": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 76], "binCounts": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 77, 78], "chart": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 80, 69, 77, 78, 81, 76, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95], "series": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 97], "clampFunction": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 98, 99, 100, 101, 102, 96, 103, 104, 29, 105, 106, 107, 108, 109, 110, 111, 112, 13, 14, 15, 16, 17, 113, 114, 115, 63, 64], "wrapFunctionPeriodic": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 98, 99, 100, 101, 102, 96, 103, 104, 29, 105, 106, 107, 108, 109, 110, 111, 112, 13, 14, 15, 16, 17, 113, 114, 115, 63, 64], "derivative": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 98, 99, 100, 101, 102, 96, 103, 104, 29, 105, 106, 107, 108, 109, 110, 111, 112, 13, 14, 15, 16, 17, 113, 114, 115, 116, 117], "extractMathOperator": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 118, 30, 31], "em": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "alert": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "delete": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "insert": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "q": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "sq": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "term": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "c": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "tag": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "tage": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "tagc": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "attr": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "ndash": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "mdash": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "nbsp": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "ellipsis": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "lq": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "rq": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "lsq": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "rsq": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "section": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "subsection": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "subsubsection": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "paragraphs": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "aside": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136], "objectives": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "problem": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 137], "exercise": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 137], "question": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 137], "activity": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 137], "example": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "definition": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "note": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "theorem": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "part": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "task": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "proof": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 138, 128, 129, 130, 131, 132, 133, 134, 136], "problems": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 138, 128, 129, 130, 131, 132, 133, 134, 135], "exercises": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 119, 120, 121, 122, 123, 124, 72, 125, 126, 127, 138, 128, 129, 130, 131, 132, 133, 134, 135], "ol": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 127, 139, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "ul": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 127, 139, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "li": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "odeSystem": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 140, 141, 13, 14, 15, 16, 17, 142, 143, 144, 145, 146, 110, 46], "cobwebPolyline": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 13, 14, 15, 16, 17, 161, 162, 111, 163, 164, 165, 166, 167], "equilibriumPoint": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 168, 169, 28, 97, 170, 171, 172, 173, 13, 14, 15, 16, 17, 104, 149, 174, 175, 176, 177, 178], "equilibriumLine": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 115, 28, 179, 108, 180, 181, 182, 110, 13, 14, 15, 16, 17, 104, 177, 178], "equilibriumCurve": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 115, 183, 184, 185, 28, 104, 186, 187, 188, 189, 190, 191, 192, 111, 108, 193, 194, 149, 113, 13, 14, 15, 16, 17, 177, 178], "atom": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 195, 196, 13, 14, 15, 16, 17], "ion": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 195, 196, 197], "ionicCompound": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 195, 196, 197], "electronConfiguration": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "orbitalDiagram": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 198], "orbitalDiagramInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 199, 200], "feedbackDefinition": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 201, 202], "styleDefinition": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 203, 204, 205, 206, 207, 115, 208, 114, 209, 210, 211, 212, 213, 214, 168, 215, 169, 216, 217, 218, 219, 220, 183, 184, 185, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233], "stylePalette": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 234], "sideBySide": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 235, 236, 237, 238], "sbsGroup": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 235, 236, 237, 238], "stack": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "div": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "span": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "pre": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "displayDoenetML": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "paginator": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 239], "paginatorControls": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 240, 241, 242, 243], "matrixInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 104, 244, 96, 245, 246, 247, 248, 199, 10, 22, 24, 25, 13, 14, 15, 16, 17, 249, 250, 251], "fractionInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 104, 244, 96, 252, 253, 10, 22, 24, 25, 13, 14, 15, 16, 17, 250, 251, 249], "solution": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "givenAnswer": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "document": [0, 4, 7, 8, 9, 37, 38, 39, 40, 41, 42, 43, 44, 254, 69, 255], "text": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 118, 30, 31], "textList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 72, 256, 19], "p": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "boolean": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58], "booleanList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 72, 256, 19], "math": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "mathList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19, 257, 22, 23, 24, 25], "tupleList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19, 257, 22, 23, 24, 25], "numberList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19], "collect": [0, 4, 7, 8, 9, 256, 258, 259, 72], "ref": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 260, 261, 262], "point": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 168, 169, 216, 28, 97, 170, 171, 172, 173, 13, 14, 15, 16, 17, 104, 149, 174, 175, 176], "coords": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "line": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 179, 108, 180, 181, 182, 110, 13, 14, 15, 16, 17, 104], "lineSegment": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 263, 264, 265, 180, 266, 267, 174, 149, 104, 13, 14, 15, 16, 17, 176], "ray": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 268, 108, 269, 104, 13, 14, 15, 16, 17], "polyline": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 13, 14, 15, 16, 17], "polygon": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 183, 184, 185, 28, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 13, 14, 15, 16, 17, 174, 270, 176], "triangle": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 183, 184, 185, 28, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 13, 14, 15, 16, 17, 174, 270, 176], "rectangle": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 183, 184, 185, 28, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 13, 14, 15, 16, 17, 174, 270, 176, 271, 79, 272], "regularPolygon": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 183, 184, 185, 28, 147, 148, 149, 150, 152, 153, 154, 155, 156, 157, 158, 159, 160, 13, 14, 15, 16, 17, 174, 270, 176, 273, 274, 271, 275, 276, 277, 278, 279, 280, 281], "circle": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 183, 184, 185, 28, 104, 186, 187, 188, 189, 190, 191, 192, 108, 149, 113, 13, 14, 15, 16, 17, 271, 276, 174, 270, 175, 176], "parabola": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 104, 186, 187, 188, 189, 190, 191, 192, 108, 149, 113, 13, 14, 15, 16, 17, 282], "curve": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 183, 184, 185, 28, 104, 186, 187, 188, 189, 190, 191, 192, 111, 108, 193, 194, 149, 113, 13, 14, 15, 16, 17], "bezierControls": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 283], "controlVectors": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19, 269, 284], "vector": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 28, 285, 286, 97, 170, 171, 172, 287, 288, 289, 174, 104, 13, 14, 15, 16, 17, 290, 149, 176], "angle": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 183, 184, 185, 276, 291, 292, 293, 294, 108, 295, 13, 14, 15, 16, 17, 296], "answer": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 36, 297, 298, 38, 39, 40, 299, 42, 43, 300, 44, 301, 47, 302, 303, 49, 48, 50, 51, 304, 305, 52, 53, 54, 55, 56, 57, 58, 69, 306, 307, 308, 309, 310, 24, 25, 311, 312, 313, 314, 96], "award": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 315, 298, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 316, 317, 318, 24, 25], "when": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 298], "mathInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 104, 244, 96, 199, 319, 10, 22, 320, 321, 322, 24, 25, 13, 14, 15, 16, 17, 249, 250, 323, 324, 325, 312, 28, 30, 31], "textInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 104, 244, 96, 199, 249, 311, 79, 272, 28, 30, 31], "booleanInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 104, 244, 96, 199, 326, 249, 28, 30, 31], "choiceInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 104, 244, 96, 306, 298, 301, 307, 308, 327, 249, 328], "choice": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 315, 316, 317, 329], "number": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 330, 331, 332, 28, 29, 30, 31], "integer": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 330, 331, 332, 28, 29, 30, 31], "graph": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 86, 87, 88, 89, 79, 80, 81, 93, 94, 333, 334, 335, 174, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 13, 14, 15, 16, 17, 92, 349, 95, 350], "annotations": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "annotation": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 351, 202, 352, 353, 354], "function": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 98, 99, 100, 101, 102, 96, 103, 104, 29, 105, 106, 107, 108, 109, 110, 111, 112, 13, 14, 15, 16, 17, 113, 114, 115], "piecewiseFunction": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 98, 99, 102, 96, 103, 104, 29, 109, 110, 111, 112, 13, 14, 15, 16, 17, 113, 114, 115], "interval": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "option": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 355, 356], "sequence": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 258, 260, 357, 266, 358], "slider": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 69, 79, 272, 359, 360, 361, 362, 363, 258, 260, 357, 96, 13, 14, 15, 16, 17, 249], "spreadsheet": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 364, 365, 272, 366, 367, 368, 369, 370, 371], "cell": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 372, 373, 374, 375, 376, 377, 199], "row": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 372, 378, 375, 237, 379, 376, 22, 23, 24, 25], "column": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 373, 79, 22, 23, 24, 25], "col": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 375, 380, 377], "cellBlock": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 372, 373], "tabular": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 272, 375, 237, 380, 379, 376, 377], "table": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 381, 46], "figure": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 382, 46], "repeat": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 383, 384, 32, 69, 72], "repeatForSequence": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 69, 258, 260, 357, 266, 358, 383, 384, 72], "pegboard": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 29, 385, 386, 387, 388], "constrainToGrid": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 385, 386, 389, 387, 388, 390], "constrainToGraph": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 391], "attractToGrid": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 385, 386, 389, 387, 388, 390, 392, 393, 394, 395], "constrainTo": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 396], "attractTo": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 396, 67], "constraintUnion": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "attractToConstraint": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 67], "constrainToInterior": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 396], "intersection": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 72], "conditionalContent": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 45], "asList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "variantControl": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 397, 398, 399, 400, 401, 402], "selectFromSequence": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 258, 260, 357, 266, 358, 403, 404, 405, 406, 407], "select": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 403, 404, 69, 72], "group": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 408, 72], "animateFromSequence": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 69, 258, 260, 357, 266, 358, 73, 409, 410, 411, 412], "evaluate": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 61, 62, 165, 413], "selectRandomNumbers": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 258, 260, 357, 358, 424, 425, 426, 427, 428, 403], "sampleRandomNumbers": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 429, 69, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 258, 260, 357, 358, 424, 425, 426, 427, 428, 430], "sampleMultivariateRandomNumber": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 69, 431, 426, 430], "selectPrimeNumbers": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 258, 260, 358, 403, 404, 405, 406], "samplePrimeNumbers": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 429, 258, 260, 358, 430], "substitute": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 69, 432, 433, 11, 13, 14, 15, 16, 17, 434, 435, 436], "periodicSet": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 437, 438, 439, 440, 441, 442], "image": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 80, 81, 93, 94, 95, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 28, 29, 30, 31, 454], "video": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 79, 80, 81, 93, 94, 455, 443], "hint": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "intComma": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 118, 30, 31], "pluralize": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 118, 30, 31, 456, 457], "feedback": [0, 2, 3, 4, 5, 6, 7, 8, 9, 45, 458], "considerAsResponses": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "case": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 45], "lorem": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 459, 460, 461, 462, 463, 464, 465], "updateValue": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 73, 69, 466, 28, 30, 31, 96, 467, 468, 469, 470, 11], "callAction": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 73, 471, 28, 96, 30, 31, 467, 468, 469, 470, 472, 46], "triggerSet": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 30, 31, 96, 467, 468, 469, 470], "functionIterates": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 473, 61, 62, 359, 165], "module": [0, 1, 2, 3, 4, 6, 7, 8, 9, 408, 72], "moduleAttributes": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "setup": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "footnote": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "caption": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "endpoint": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 168, 169, 28, 97, 170, 171, 172, 173, 13, 14, 15, 16, 17, 104, 149, 174, 175, 176, 474, 178], "sort": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 475, 476, 477, 69, 72], "sortIndices": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 475, 476, 477, 69], "shuffle": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 69, 72], "solveEquations": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 110, 187, 478, 479], "subsetOfRealsInput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 111, 10, 199, 249], "subsetOfReals": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 111, 93], "split": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 69, 480, 72], "bestFitLine": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 114, 115, 181, 182, 110, 13, 14, 15, 16, 17, 104, 481], "regionBetweenCurveXAxis": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 183, 184, 185, 482, 165], "regionBetweenCurves": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 183, 184, 185, 482, 483], "slopeField": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 29, 114, 115, 110, 385, 386, 387, 388, 484, 485], "vectorField": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 29, 114, 115, 110, 385, 386, 387, 388, 484, 485, 486], "regionHalfPlane": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 487, 488, 489], "codeEditor": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 199, 249, 79, 272, 490, 491, 492, 493, 494, 495, 496, 497], "hasSameFactoring": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 111, 498, 499, 500], "summaryStatistics": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 501, 13, 14, 15, 16, 17], "legend": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 502, 119, 503], "label": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 32, 33, 28, 29, 34, 30, 31], "matchesPattern": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 504, 505, 506, 507, 508, 509, 510, 511], "matrix": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 248, 245, 246], "eigenDecomposition": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17], "latex": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 28, 29, 118, 30, 31], "blockQuote": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "description": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "stickyGroup": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 96, 103, 34, 29, 396, 67, 512], "pretzel": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 36, 297, 298, 38, 39, 40, 299, 42, 43, 300, 44, 513, 514], "cascade": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 515, 516, 517, 128, 129, 130, 131, 132, 133, 134], "page": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "shortDescription": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "pointList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19], "intervalList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19], "vectorList": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19], "matrixRow": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19, 257, 22, 23, 24, 25], "matrixColumn": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 72, 256, 19, 257, 22, 23, 24, 25] } };
263961
264156
  const data = attributeNamesData;
263962
264157
  const cache = /* @__PURE__ */ new Map();
263963
264158
  function attributeNamesOfTag(tag) {
@@ -265178,11 +265373,11 @@ const DEPRECATION_REGISTRY = {
265178
265373
  left: "start",
265179
265374
  right: "end"
265180
265375
  }),
265181
- // `halign` becomes `text-align`, whose `left`/`right` do not mirror
265376
+ // `hAlign` becomes `text-align`, whose `left`/`right` do not mirror
265182
265377
  // while everything around them does.
265183
265378
  ...renamedAttributeValuesAcross(
265184
265379
  TABULAR_HALIGN_COMPONENT_TYPES,
265185
- "halign",
265380
+ "hAlign",
265186
265381
  { left: "start", right: "end" }
265187
265382
  )
265188
265383
  }
@@ -268725,7 +268920,7 @@ async function cidFromArrayBuffer(data2) {
268725
268920
  await crypto.subtle.digest("SHA-256", new Uint8Array());
268726
268921
  digest = (data22) => crypto.subtle.digest("SHA-256", data22);
268727
268922
  } catch (e22) {
268728
- const sha256 = (await import("./sha256-8sXzDnE0-BhSvVUps.js").then((n2) => n2.s)).default;
268923
+ const sha256 = (await import("./sha256-8sXzDnE0-DBQws8nh.js").then((n2) => n2.s)).default;
268729
268924
  digest = (data22) => sha256(data22, {
268730
268925
  asBytes: true
268731
268926
  });
@@ -269088,4 +269283,4 @@ export {
269088
269283
  defaultCoreFactory as d,
269089
269284
  gradeState as g
269090
269285
  };
269091
- //# sourceMappingURL=gradeState-Cr5WMUhc.js.map
269286
+ //# sourceMappingURL=gradeState-DQqPAu1h.js.map