@doenet/v06-to-v07 0.7.21-dev.368 → 0.7.21-dev.372
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{index-CdNFDkf5.js → index-COAzIB6H.js} +498 -302
- package/{index-CdNFDkf5.js.map → index-COAzIB6H.js.map} +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{sha256-1m3pbIuR-C9EeBBiw-C-sYwf5C.js → sha256-1m3pbIuR-B97MC1vQ-CFB3Jzu1.js} +2 -2
- package/{sha256-1m3pbIuR-C9EeBBiw-C-sYwf5C.js.map → sha256-1m3pbIuR-B97MC1vQ-CFB3Jzu1.js.map} +1 -1
|
@@ -42123,6 +42123,108 @@ function returnTextStyleDescriptionDefinitions() {
|
|
|
42123
42123
|
)
|
|
42124
42124
|
};
|
|
42125
42125
|
}
|
|
42126
|
+
const DEFAULT_MATH_INPUT_FUNCTION_NAMES = [
|
|
42127
|
+
"arg",
|
|
42128
|
+
"deg",
|
|
42129
|
+
"det",
|
|
42130
|
+
"dim",
|
|
42131
|
+
"exp",
|
|
42132
|
+
"gcd",
|
|
42133
|
+
"hom",
|
|
42134
|
+
"ker",
|
|
42135
|
+
"lg",
|
|
42136
|
+
"lim",
|
|
42137
|
+
"ln",
|
|
42138
|
+
"log",
|
|
42139
|
+
"max",
|
|
42140
|
+
"min",
|
|
42141
|
+
"Pr",
|
|
42142
|
+
"cos",
|
|
42143
|
+
"cosh",
|
|
42144
|
+
"acos",
|
|
42145
|
+
"acosh",
|
|
42146
|
+
"arccos",
|
|
42147
|
+
"arccosh",
|
|
42148
|
+
"cot",
|
|
42149
|
+
"coth",
|
|
42150
|
+
"acot",
|
|
42151
|
+
"acoth",
|
|
42152
|
+
"arccot",
|
|
42153
|
+
"arccoth",
|
|
42154
|
+
"csc",
|
|
42155
|
+
"csch",
|
|
42156
|
+
"acsc",
|
|
42157
|
+
"acsch",
|
|
42158
|
+
"arccsc",
|
|
42159
|
+
"arccsch",
|
|
42160
|
+
"sec",
|
|
42161
|
+
"sech",
|
|
42162
|
+
"asec",
|
|
42163
|
+
"asech",
|
|
42164
|
+
"arcsec",
|
|
42165
|
+
"arcsech",
|
|
42166
|
+
"sin",
|
|
42167
|
+
"sinh",
|
|
42168
|
+
"asin",
|
|
42169
|
+
"asinh",
|
|
42170
|
+
"arcsin",
|
|
42171
|
+
"arcsinh",
|
|
42172
|
+
"tan",
|
|
42173
|
+
"tanh",
|
|
42174
|
+
"atan",
|
|
42175
|
+
"atanh",
|
|
42176
|
+
"arctan",
|
|
42177
|
+
"arctanh",
|
|
42178
|
+
"nPr",
|
|
42179
|
+
"nCr"
|
|
42180
|
+
];
|
|
42181
|
+
function isValidMathQuillFunctionName(token) {
|
|
42182
|
+
if (!/^[a-z|-]+$/i.test(token)) return false;
|
|
42183
|
+
const parts = token.split("|");
|
|
42184
|
+
if (parts.length > 2) return false;
|
|
42185
|
+
if (parts[0].length < 2) return false;
|
|
42186
|
+
return true;
|
|
42187
|
+
}
|
|
42188
|
+
function buildEffectiveMathInputFunctionNames({
|
|
42189
|
+
additional = [],
|
|
42190
|
+
removed = [],
|
|
42191
|
+
reset = null
|
|
42192
|
+
}) {
|
|
42193
|
+
if (reset !== null) {
|
|
42194
|
+
const seen2 = /* @__PURE__ */ new Set();
|
|
42195
|
+
const out2 = [];
|
|
42196
|
+
const droppedFromReset = [];
|
|
42197
|
+
for (const name2 of reset) {
|
|
42198
|
+
if (seen2.has(name2)) continue;
|
|
42199
|
+
seen2.add(name2);
|
|
42200
|
+
if (!isValidMathQuillFunctionName(name2)) {
|
|
42201
|
+
droppedFromReset.push(name2);
|
|
42202
|
+
continue;
|
|
42203
|
+
}
|
|
42204
|
+
out2.push(name2);
|
|
42205
|
+
}
|
|
42206
|
+
return { names: out2, droppedFromAdditional: [], droppedFromReset };
|
|
42207
|
+
}
|
|
42208
|
+
const removedSet = new Set(removed);
|
|
42209
|
+
const seen = /* @__PURE__ */ new Set();
|
|
42210
|
+
const out = [];
|
|
42211
|
+
for (const name2 of DEFAULT_MATH_INPUT_FUNCTION_NAMES) {
|
|
42212
|
+
if (removedSet.has(name2) || seen.has(name2)) continue;
|
|
42213
|
+
seen.add(name2);
|
|
42214
|
+
out.push(name2);
|
|
42215
|
+
}
|
|
42216
|
+
const droppedFromAdditional = [];
|
|
42217
|
+
for (const name2 of additional) {
|
|
42218
|
+
if (removedSet.has(name2) || seen.has(name2)) continue;
|
|
42219
|
+
seen.add(name2);
|
|
42220
|
+
if (!isValidMathQuillFunctionName(name2)) {
|
|
42221
|
+
droppedFromAdditional.push(name2);
|
|
42222
|
+
continue;
|
|
42223
|
+
}
|
|
42224
|
+
out.push(name2);
|
|
42225
|
+
}
|
|
42226
|
+
return { names: out, droppedFromAdditional, droppedFromReset: [] };
|
|
42227
|
+
}
|
|
42126
42228
|
function printDoenetMLrange(position2) {
|
|
42127
42229
|
if (position2.start.line === position2.end.line) {
|
|
42128
42230
|
return `line ${position2.start.line}`;
|
|
@@ -42591,7 +42693,7 @@ async function cidFromArrayBuffer(data) {
|
|
|
42591
42693
|
await crypto.subtle.digest("SHA-256", new Uint8Array());
|
|
42592
42694
|
digest = (data2) => crypto.subtle.digest("SHA-256", data2);
|
|
42593
42695
|
} catch (e22) {
|
|
42594
|
-
const sha256 = (await import("./sha256-1m3pbIuR-
|
|
42696
|
+
const sha256 = (await import("./sha256-1m3pbIuR-B97MC1vQ-CFB3Jzu1.js").then((n2) => n2.s)).default;
|
|
42595
42697
|
digest = (data2) => sha256(data2, {
|
|
42596
42698
|
asBytes: true
|
|
42597
42699
|
});
|
|
@@ -45034,108 +45136,6 @@ const functionOperatorDefinitions = {
|
|
|
45034
45136
|
}
|
|
45035
45137
|
}
|
|
45036
45138
|
};
|
|
45037
|
-
const DEFAULT_MATH_INPUT_FUNCTION_NAMES = [
|
|
45038
|
-
"arg",
|
|
45039
|
-
"deg",
|
|
45040
|
-
"det",
|
|
45041
|
-
"dim",
|
|
45042
|
-
"exp",
|
|
45043
|
-
"gcd",
|
|
45044
|
-
"hom",
|
|
45045
|
-
"ker",
|
|
45046
|
-
"lg",
|
|
45047
|
-
"lim",
|
|
45048
|
-
"ln",
|
|
45049
|
-
"log",
|
|
45050
|
-
"max",
|
|
45051
|
-
"min",
|
|
45052
|
-
"Pr",
|
|
45053
|
-
"cos",
|
|
45054
|
-
"cosh",
|
|
45055
|
-
"acos",
|
|
45056
|
-
"acosh",
|
|
45057
|
-
"arccos",
|
|
45058
|
-
"arccosh",
|
|
45059
|
-
"cot",
|
|
45060
|
-
"coth",
|
|
45061
|
-
"acot",
|
|
45062
|
-
"acoth",
|
|
45063
|
-
"arccot",
|
|
45064
|
-
"arccoth",
|
|
45065
|
-
"csc",
|
|
45066
|
-
"csch",
|
|
45067
|
-
"acsc",
|
|
45068
|
-
"acsch",
|
|
45069
|
-
"arccsc",
|
|
45070
|
-
"arccsch",
|
|
45071
|
-
"sec",
|
|
45072
|
-
"sech",
|
|
45073
|
-
"asec",
|
|
45074
|
-
"asech",
|
|
45075
|
-
"arcsec",
|
|
45076
|
-
"arcsech",
|
|
45077
|
-
"sin",
|
|
45078
|
-
"sinh",
|
|
45079
|
-
"asin",
|
|
45080
|
-
"asinh",
|
|
45081
|
-
"arcsin",
|
|
45082
|
-
"arcsinh",
|
|
45083
|
-
"tan",
|
|
45084
|
-
"tanh",
|
|
45085
|
-
"atan",
|
|
45086
|
-
"atanh",
|
|
45087
|
-
"arctan",
|
|
45088
|
-
"arctanh",
|
|
45089
|
-
"nPr",
|
|
45090
|
-
"nCr"
|
|
45091
|
-
];
|
|
45092
|
-
function isValidMathQuillFunctionName(token) {
|
|
45093
|
-
if (!/^[a-z|-]+$/i.test(token)) return false;
|
|
45094
|
-
const parts = token.split("|");
|
|
45095
|
-
if (parts.length > 2) return false;
|
|
45096
|
-
if (parts[0].length < 2) return false;
|
|
45097
|
-
return true;
|
|
45098
|
-
}
|
|
45099
|
-
function buildEffectiveMathInputFunctionNames({
|
|
45100
|
-
additional = [],
|
|
45101
|
-
removed = [],
|
|
45102
|
-
reset = null
|
|
45103
|
-
}) {
|
|
45104
|
-
if (reset !== null) {
|
|
45105
|
-
const seen2 = /* @__PURE__ */ new Set();
|
|
45106
|
-
const out2 = [];
|
|
45107
|
-
const droppedFromReset = [];
|
|
45108
|
-
for (const name2 of reset) {
|
|
45109
|
-
if (seen2.has(name2)) continue;
|
|
45110
|
-
seen2.add(name2);
|
|
45111
|
-
if (!isValidMathQuillFunctionName(name2)) {
|
|
45112
|
-
droppedFromReset.push(name2);
|
|
45113
|
-
continue;
|
|
45114
|
-
}
|
|
45115
|
-
out2.push(name2);
|
|
45116
|
-
}
|
|
45117
|
-
return { names: out2, droppedFromAdditional: [], droppedFromReset };
|
|
45118
|
-
}
|
|
45119
|
-
const removedSet = new Set(removed);
|
|
45120
|
-
const seen = /* @__PURE__ */ new Set();
|
|
45121
|
-
const out = [];
|
|
45122
|
-
for (const name2 of DEFAULT_MATH_INPUT_FUNCTION_NAMES) {
|
|
45123
|
-
if (removedSet.has(name2) || seen.has(name2)) continue;
|
|
45124
|
-
seen.add(name2);
|
|
45125
|
-
out.push(name2);
|
|
45126
|
-
}
|
|
45127
|
-
const droppedFromAdditional = [];
|
|
45128
|
-
for (const name2 of additional) {
|
|
45129
|
-
if (removedSet.has(name2) || seen.has(name2)) continue;
|
|
45130
|
-
seen.add(name2);
|
|
45131
|
-
if (!isValidMathQuillFunctionName(name2)) {
|
|
45132
|
-
droppedFromAdditional.push(name2);
|
|
45133
|
-
continue;
|
|
45134
|
-
}
|
|
45135
|
-
out.push(name2);
|
|
45136
|
-
}
|
|
45137
|
-
return { names: out, droppedFromAdditional, droppedFromReset: [] };
|
|
45138
|
-
}
|
|
45139
45139
|
const creativeCommonsVersions = [
|
|
45140
45140
|
"1.0",
|
|
45141
45141
|
"2.0",
|
|
@@ -46357,7 +46357,7 @@ class Indent {
|
|
|
46357
46357
|
}
|
|
46358
46358
|
const chrome$1 = "# 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 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. `$column` is the\n# authored name of the data column being summarized and is never translated.\n# The table's own headings (`mean`, `stdev`, `quartile1`, …) are the statistic\n# ids an author references, not prose, and stay in place.\nsummary-statistics-caption = Summary statistics of { $column }\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# Banner above a document that compiled with at least one error in it.\ndocument-contains-errors = This document contains errors!\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 = The document viewer could not be started. Please reload the page.\n";
|
|
46359
46359
|
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`). English has no agreement and ignores it; a\n## language that inflects selects on it.\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 .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.\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.\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.\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';
|
|
46360
|
-
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# $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## `<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.\ntarget-state-variable-not-found = Invalid target for `<{ $source }>`: cannot find a state variable named "{ $property }" on a `<{ $component }>`.\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';
|
|
46360
|
+
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# $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## `<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.\ntarget-state-variable-not-found = Invalid target for `<{ $source }>`: cannot find a state variable named "{ $property }" on a `<{ $component }>`.\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## 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\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## `<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# $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\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-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\ncomponent-type-invalid = Invalid component type: `<{ $componentType }>`\n\nattribute-repeated = Cannot repeat attribute { $attribute }.\n\nattribute-invalid-for-component = Invalid attribute "{ $attribute }" for a component of type `<{ $componentType }>`.\n';
|
|
46361
46361
|
const editor = "# Editor and language-server surfaces: formatter labels, completion detail\n# text, hover help. Selected by `uiLocale`.\n#\n# Intentionally empty in i18n Phase 0 (#1515). A later phase moves the editor\n# strings into this file; note that the LSP ships bundled with its DoenetML\n# version, so these catalogs are 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";
|
|
46362
46362
|
const CATALOG_NAMESPACES = [
|
|
46363
46363
|
"chrome",
|
|
@@ -46717,7 +46717,7 @@ function normalizeLocaleTag(tag2) {
|
|
|
46717
46717
|
}
|
|
46718
46718
|
const esChrome = "# Spanish viewer chrome. Translated from `locales/en/chrome.ftl`, which is the\n# source of truth: `lint:i18n` rejects a key that does not exist there, and\n# reports a key that exists there but not here as missing coverage.\n#\n# Message ids are never translated — only the text to the right of `=`.\n#\n# Register: impersonal throughout — infinitives and bare nouns, never a `tú`\n# or `usted` verb form. The viewer does not know how formally a deployment\n# addresses its readers, and an impersonal label is correct for both.\n\n\n## Answer submission\n\nanswer-checking = Comprobando...\nanswer-submitting = Enviando...\n\nanswer-checking-status = Comprobando la respuesta\nanswer-submitting-status = Enviando la respuesta\n\nanswer-correct = Correcto\nanswer-incorrect = Incorrecto\n\nanswer-response-saved = Respuesta guardada\n\n# Spanish typographic convention puts a space before the percent sign.\nanswer-percent-credit = { $percent } % de crédito\nanswer-percent-correct = { $percent } % correcto\nanswer-percent-short = { $percent } %\n\nmax-credit-available = Crédito máximo disponible: { $percent } %\n\nattempts-remaining =\n { $count ->\n [0] no quedan intentos\n [one] queda { $count } intento\n *[other] quedan { $count } intentos\n }\n\nvalidation-correct = (Correcto)\nvalidation-incorrect = (Incorrecto)\nvalidation-partially-correct = (Parcialmente correcto)\n\n# `Mostrar` is the infinitive, per the register note above.\nanswer-show-responses =\n { $count ->\n [one] Mostrar { $count } respuesta a { $answerId }\n *[other] Mostrar { $count } respuestas a { $answerId }\n }\n\n\n## Disclosure panels\n\nfeedback-heading = Comentarios\n\ncollapsible-click-to-open = (clic para abrir)\ncollapsible-click-to-close = (clic para cerrar)\ncollapsible-initializing = Inicializando...\n\nfootnote-show = Mostrar la nota al pie\nfootnote-hide = Ocultar la nota al pie\n\ndescription-more-information = más información\n\n\n## Controls\n\nslider-previous = Anterior\nslider-next = Siguiente\n\nkeyboard-open = Abrir el teclado\nkeyboard-close = Cerrar el teclado\n\nmatrix-remove-row = Eliminar fila\nmatrix-add-row = Añadir fila\nmatrix-remove-column = Eliminar columna\nmatrix-add-column = Añadir columna\n\nsubset-add-remove-points = Añadir/Eliminar puntos\nsubset-toggle-points-intervals = Alternar puntos e intervalos\nsubset-move-points = Mover puntos\nsubset-clear = Borrar\n\norbital-add-row = Añadir fila\norbital-remove-row = Eliminar fila\norbital-add-box = Añadir casilla\norbital-remove-box = Eliminar casilla\norbital-add-up-arrow = Añadir flecha hacia arriba\norbital-add-down-arrow = Añadir flecha hacia abajo\norbital-remove-arrow = Eliminar flecha\n\norbital-row-label = Etiqueta de la fila { $row }\n\npretzel-answer = Respuesta\n\nsummary-statistics-caption = Resumen estadístico de { $column }\n\n\n## Math input\n\nmath-input-preview-region = vista previa de la expresión matemática\nmath-input-preview = Vista previa\nmath-input-invalid-expression = Expresión no válida:\n\n\n## Document status\n\nviewer-initializing = Inicializando...\n\n\n## Errors\n\nerror-heading = Error\n\ndocument-contains-errors = ¡Este documento contiene errores!\n\nsomething-went-wrong = Algo salió mal.\n\n# Follows `error-heading` and a colon, so it begins in lower case, as in\n# English. The instruction is an infinitive, per the register note above.\nrenderer-load-failed = no se pudo cargar un componente. Recargar la página.\n\ncore-start-failed = No se pudo iniciar el visor del documento. Recargar la página.\n";
|
|
46719
46719
|
const esContent = "# Spanish content catalog: the prose the core computes into the document.\n# Selected by `documentLocale` — the language the activity was written in.\n#\n# Spanish inflects. Adjectives follow their noun and agree with it in gender,\n# so every adjective below selects on `$gender`, the gender of the noun it\n# describes, and the composition messages put the noun first. Neither is\n# expressible by substituting into the English word order, which is why the\n# catalog controls the order and not the code.\n\n\n## Vocabulario de estilos\n\ncolor =\n .black =\n { $gender ->\n [f] negra\n *[m] negro\n }\n .white =\n { $gender ->\n [f] blanca\n *[m] blanco\n }\n .gray = gris\n .red =\n { $gender ->\n [f] roja\n *[m] rojo\n }\n .orange = naranja\n .yellow =\n { $gender ->\n [f] amarilla\n *[m] amarillo\n }\n .green = verde\n .cyan = cian\n .blue = azul\n .purple =\n { $gender ->\n [f] morada\n *[m] morado\n }\n .pink = rosa\n .brown = marrón\n\nline-width =\n .thick =\n { $gender ->\n [f] gruesa\n *[m] grueso\n }\n .thin =\n { $gender ->\n [f] delgada\n *[m] delgado\n }\n\nline-style =\n .dashed =\n { $gender ->\n [f] discontinua\n *[m] discontinuo\n }\n .dotted =\n { $gender ->\n [f] punteada\n *[m] punteado\n }\n\n# Sintagmas nominales: van detrás de «con» y no concuerdan con nada.\nfill-style =\n .horizontal = líneas horizontales\n .vertical = líneas verticales\n .diagonal = líneas diagonales\n .backdiagonal = líneas diagonales inversas\n .dots = puntos\n .diamonds = rombos\n\nnoun =\n .line = línea\n .line-segment = segmento\n .ray = semirrecta\n .vector = vector\n .curve = curva\n .function = función\n .parabola = parábola\n .polyline = polilínea\n .polygon = polígono\n .triangle = triángulo\n .rectangle = rectángulo\n .circle = círculo\n .region = región\n .point = punto\n .square = cuadrado\n .diamond = rombo\n .cross = cruz\n .plus = signo más\n\n# El nombre se parte: «polígono regular» lleva los adjetivos y «de 5 lados»\n# cierra el sintagma detrás de ellos. Si el complemento fuera delante, los\n# adjetivos quedarían separados del nombre con el que concuerdan («polígono\n# regular de 5 lados grueso rojo»).\nnoun-regular-polygon =\n { $part ->\n [tail] de { $numSides } lados\n *[head] polígono regular\n }\n\n# Además de los nombres de arriba, `$noun` puede ser «regular-polygon» (el\n# nombre que compone `noun-regular-polygon`) o el núcleo de un sintagma que no\n# se nombra en la descripción: «border», «fill», «text» y «background». Todos\n# ellos son masculinos en español —polígono, borde, relleno, texto, fondo—, así\n# que caen en el caso por defecto.\nnoun-gender =\n { $noun ->\n [line] f\n [ray] f\n [curve] f\n [function] f\n [parabola] f\n [polyline] f\n [region] f\n [cross] f\n *[other] m\n }\n\n\n## Composición de estilos\n\nstyle-stroke =\n { $parts ->\n [width-style-color] { $lineStyle } { $width } { $color }\n [width-color] { $width } { $color }\n [style-color] { $lineStyle } { $color }\n [width-style] { $lineStyle } { $width }\n [width] { $width }\n [style] { $lineStyle }\n *[color] { $color }\n }\n\n# El nombre va delante y los adjetivos detrás: «línea discontinua gruesa roja».\n# El complemento del nombre, si lo hay, cierra el sintagma: «polígono regular\n# grueso rojo de 5 lados».\nstyle-with-noun =\n { $parts ->\n [noun-tail] { $noun } { $description } { $nounTail }\n *[noun] { $noun } { $description }\n }\n\nstyle-filled-word =\n { $gender ->\n [f] rellena\n *[m] relleno\n }\n\nstyle-filled =\n { $parts ->\n [pattern] { $color } { $filled } con { $pattern }\n *[plain] { $color } { $filled }\n }\n\n# Aquí el complemento va pegado al nombre, y no al final como en\n# `style-with-noun`: «relleno de …» se lee como «lleno de …», así que «relleno\n# de 5 lados» diría otra cosa. «Polígono regular de 5 lados azul relleno».\nstyle-filled-with-noun =\n { $parts ->\n [pattern] { $noun } { $color } { $filled } con { $pattern }\n [plain-tail] { $noun } { $nounTail } { $color } { $filled }\n [pattern-tail] { $noun } { $nounTail } { $color } { $filled } con { $pattern }\n *[plain] { $noun } { $color } { $filled }\n }\n\n# «borde» es masculino, así que los adjetivos del borde concuerdan con él y no\n# con la figura que rodea.\nstyle-border-clause =\n { $parts ->\n [with-article] con un borde { $border }\n [and] y borde { $border }\n [and-article] y un borde { $border }\n *[with] con borde { $border }\n }\n\n# «de color» evita tener que concordar el color con un patrón en plural.\nstyle-fill =\n { $parts ->\n [pattern] { $pattern } de color { $color }\n *[plain] { $color }\n }\n\nstyle-unfilled = sin relleno\n\nstyle-text =\n { $parts ->\n [background] { $color } con un fondo { $background }\n *[plain] { $color }\n }\n\nstyle-background-none = ninguno\n";
|
|
46720
|
-
const esDiagnostics = '# Advertencias y errores mostrados a quien lee o escribe el documento.\n# Seleccionados por `uiLocale`.\n#\n# Los nombres de atributos y componentes de DoenetML (`through`, `endpoint`,\n# `numDimensions`, …) forman parte del lenguaje y se dejan en inglés.\n\n## `<lineSegment>`\n\nline-segment-attributes-ignored-with-endpoints =\n { $attributesCount ->\n [one] { $attributes } se ignora cuando se especifican los dos extremos\n *[other] { $attributes } se ignoran cuando se especifican los dos extremos\n }\n\nline-segment-attributes-ignored-with-endpoint-and-midpoint =\n { $attributesCount ->\n [one] { $attributes } se ignora cuando se especifican un extremo y el punto medio\n *[other] { $attributes } se ignoran cuando se especifican un extremo y el punto medio\n }\n\nline-segment-midpoint-offset-without-midpoint = midpointOffset no tiene efecto sin un punto medio\n\n## `<line>`\n\n# «Recta», no «línea», aunque `noun.line` en content.ftl diga «línea»: no es\n# una incoherencia, sino la diferencia entre describir el trazo dibujado («una\n# línea azul gruesa») y hablar del objeto geométrico, que en matemáticas es\n# una recta —de ahí «la ecuación de la recta».\n\nline-points-undetermined-dimensions = La recta pasa por puntos de dimensiones indeterminadas.\n\nline-points-too-few-dimensions = La recta debe pasar por puntos de al menos dos dimensiones.\n\nline-points-depend-on-variables = La recta pasa por puntos que dependen de las variables: { $variables }.\n\n# Enumeradas con coma en vez de «y»: las variables de <line> son `x` e `y` por\n# omisión, y «en las variables x y y» sería a la vez incorrecto (ante el sonido\n# /i/ la conjunción es «e») e ilegible. La coma es correcta sea cual sea el\n# nombre de la variable, que aquí no se conoce de antemano.\nline-equation-invalid-format = Formato no válido para la ecuación de la recta en las variables { $variable1 }, { $variable2 }.\n\n## `<ray>`\n\nray-overprescribed-through = La semirrecta está determinada por through, endpoint y direction. Se ignora el through especificado.\n\nray-dimension-mismatch = Discrepancia de numDimensions en la semirrecta.\n\n## `<vector>`\n\nvector-overprescribed-head = El vector está determinado por head, tail y displacement. Se ignora el head especificado.\n\nvector-dimension-mismatch = Discrepancia de numDimensions en el vector.\n\n## Atraer y restringir\n\nattract-to-without-nearest-point = No se puede atraer a un `<{ $component }>` porque no tiene la variable de estado nearestPoint.\n\nconstrain-to-without-nearest-point = No se puede restringir a un `<{ $component }>` porque no tiene la variable de estado nearestPoint.\n\nconstrain-to-interior-without-nearest-point = No se puede restringir al interior de un `<{ $component }>` porque no tiene la variable de estado nearestPoint.\n\n## `<choiceInput>`\n\nchoice-input-label-position-ignored = labelPosition se ignora en un choiceInput que no es inline\n\n## Ordenar hijos por índice\n\nchoice-input-indices-count-mismatch = Se ignoran los índices especificados para choiceInput porque su cantidad no coincide con la cantidad de hijos choice.\n\npretzel-indices-count-mismatch = Se ignoran los índices especificados para problem porque su cantidad no coincide con la cantidad de hijos problem.\n\nshuffle-indices-count-mismatch = Se ignoran los índices especificados para shuffle porque su cantidad no coincide con la cantidad de componentes.\n\nindices-ignored-out-of-range = Se ignoran los índices especificados para { $component } porque algunos están fuera de rango.\n\npretzel-indices-repeated = Se ignoran los índices especificados para pretzel porque algunos están repetidos.\n\npretzel-circuit-first-index = Se ignoran los índices especificados para pretzel en modo circuit porque el primer índice debe ser 1.\n\n## `<shuffle>` y `<sort>`\n\nstring-children-need-type = Para que `<{ $component }>` funcione con hijos de texto, se debe especificar el atributo `type`.\n\ninvalid-type-defaulting-to-math = Tipo no válido { $type } para el componente { $component }. Debe ser math, text, number o boolean. Se usa math.\n\nstring-not-valid-component-to-arrange = La cadena "{ $value }" no es un componente válido para { $component }. Se ignora.\n\n## Tipos y variables\n\ninvalid-type-defaulting-to-number = Tipo no válido { $type }, se establece el tipo en number.\n\ninvalid-variable-value = Valor no válido de una variable: `{ $value }`\n\n## Variantes\n\nvariant-index-must-be-number = El índice de variante { $index } debe ser un número\n\nvariant-index-must-be-integer = El índice de variante { $index } debe ser un número entero\n\n## `<sideBySide>`\n\nside-by-side-absolute-widths = `<{ $component }>` no está implementado para medidas absolutas. Los anchos se establecen como relativos.\n\nside-by-side-absolute-margins = `<{ $component }>` no está implementado para medidas absolutas. Los márgenes se establecen como relativos.\n\nside-by-side-no-block-child = `<{ $component }>` no es válido: debe tener al menos un hijo de bloque.\n\n## `<label>`\n\nlabel-for-ignored-on-graphical = Se ignora el atributo `for` en un `<label>` gráfico.\n\nlabel-for-must-resolve-to-one = El atributo `for` de `<label>` debe corresponder exactamente a un componente.\n\nlabel-for-unresolved = No se pudo resolver el atributo `for` de `<label>` a un componente.\n\nlabel-for-answer-with-authored-inputs = El atributo `for` de `<label>` hace referencia a un `<answer>` con entradas escritas explícitamente; haz referencia a la entrada directamente.\n\nlabel-for-answer-without-input = El atributo `for` de `<label>` hace referencia a un `<answer>` que no tiene ninguna entrada que etiquetar.\n\nlabel-for-must-reference-input-or-answer = El atributo `for` de `<label>` debe hacer referencia a una entrada o a un `<answer>`.\n\n## Accesibilidad\n\naccessibility-short-description-or-decorative = Por accesibilidad, `<{ $component }>` debe tener una descripción breve o estar marcado como decorativo.\n\naccessibility-video-short-description = Por accesibilidad, `<video>` debe tener una descripción breve.\n\naccessibility-input-short-description-or-label = Por accesibilidad, `<{ $component }>` debe tener una descripción breve o una etiqueta.\n\naccessibility-answer-input-short-description-or-label = Por accesibilidad, la entrada creada por un `<answer>` debe tener una descripción breve o una etiqueta.\n\naccessibility-short-description-contains-math = Las descripciones breves no deben contener componentes matemáticos como `<{ $component }>`. Expresa las matemáticas con palabras.\n\naccessibility-section-title-insufficient-contrast =\n { $mode ->\n [dark] { $colorName } no tiene suficiente contraste con el texto del encabezado de sección (modo oscuro) ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; se requiere al menos { $threshold }:1).\n *[other] { $colorName } no tiene suficiente contraste con el texto del encabezado de sección ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; se requiere al menos { $threshold }:1).\n }\n\n## `<circle>`\n\ncircle-through-points-non-numerical = No está implementado un `<circle>` que pase por { $count } puntos cuando los puntos no tienen valores numéricos.\n\ncircle-too-many-through-points = No se puede calcular una circunferencia que pase por más de 3 puntos.\n\ncircle-overprescribed-radius-center-points = No se puede calcular una circunferencia con radio, centro y puntos de paso especificados a la vez.\n\ncircle-center-with-multiple-points = No se puede calcular una circunferencia con centro especificado que pase por más de 1 punto.\n\ncircle-radius-too-small = No se puede calcular la circunferencia: dado que la distancia entre los dos puntos es { $distance }, el radio especificado { $radius } es demasiado pequeño.\n\ncircle-radius-with-many-points = No se puede crear una circunferencia que pase por más de dos puntos con un radio especificado.\n\ncircle-invalid-center-or-through-points = El centro o los puntos de paso de la circunferencia no son válidos.\n\ncircle-radius-center-with-multiple-points = No se puede calcular el radio de una circunferencia con centro especificado que pase por más de 1 punto.\n\ncircle-change-radius-non-numerical = No se puede cambiar el radio de una circunferencia con puntos de paso no numéricos\n\ncircle-radius-with-points-non-numerical = No se puede crear una circunferencia que pase por más de un punto con un radio especificado cuando no hay valores numéricos.\n\ncircle-change-center-non-numerical = No está implementado cambiar el centro de una circunferencia que pasa por puntos con valores no numéricos.\n\n## `<function>`\n\nfunction-domain-insufficient-dimensions =\n { $intervals ->\n [one] Dimensiones insuficientes para el dominio de la función. El dominio tiene { $intervals } intervalo pero la función tiene { $inputs ->\n [one] { $inputs } entrada\n *[other] { $inputs } entradas\n }.\n *[other] Dimensiones insuficientes para el dominio de la función. El dominio tiene { $intervals } intervalos pero la función tiene { $inputs ->\n [one] { $inputs } entrada\n *[other] { $inputs } entradas\n }.\n }\n\nfunction-domain-invalid-format = Formato no válido para el dominio de la función.\n\nfunction-ignoring-non-numerical =\n { $type ->\n [maximum] Se ignora el máximo no numérico de la función.\n [minimum] Se ignora el mínimo no numérico de la función.\n [extremum] Se ignora el extremo no numérico de la función.\n [point] Se ignora el punto no numérico de la función.\n [slope] Se ignora la pendiente no numérica de la función.\n *[other] Se ignora { $type } no numérico de la función.\n }\n\nfunction-ignoring-empty =\n { $type ->\n [maximum] Se ignora el máximo vacío de la función.\n [minimum] Se ignora el mínimo vacío de la función.\n [extremum] Se ignora el extremo vacío de la función.\n [point] Se ignora el punto vacío de la función.\n *[other] Se ignora { $type } vacío de la función.\n }\n\nfunction-points-too-close = La función contiene dos puntos demasiado próximos entre sí. No se puede definir la función.\n\nfunction-iterates-input-output-mismatch =\n { $inputs ->\n [one] Las iteraciones de una función solo son posibles si el número de entradas es igual al número de salidas. Esta función tiene { $inputs } entrada y { $outputs ->\n [one] { $outputs } salida\n *[other] { $outputs } salidas\n }.\n *[other] Las iteraciones de una función solo son posibles si el número de entradas es igual al número de salidas. Esta función tiene { $inputs } entradas y { $outputs ->\n [one] { $outputs } salida\n *[other] { $outputs } salidas\n }.\n }\n\n## `<sequence>`\n\nsequence-invalid-length = Longitud de la secuencia no válida. Debe ser un entero no negativo.\n\nsequence-invalid-step = Paso de la secuencia no válido. Debe ser un número para una secuencia de tipo { $type }.\n\nsequence-invalid-endpoint-number = El valor de "{ $attribute }" de la secuencia numérica no es válido. Debe ser un número.\n\nsequence-invalid-endpoint-letters = El valor de "{ $attribute }" de la secuencia de letras no es válido. Debe ser una combinación de letras.\n\nsequence-invalid-endpoint = El valor de "{ $attribute }" de la secuencia no es válido.\n\nselect-from-sequence-coprime-not-numbers = Se ignora coprime porque no se están seleccionando números\n\nselect-from-sequence-coprime-with-exclude-combinations = Se ignora coprime porque se especificó excludeCombinations\n\n## Resolución de `target`\n\ntarget-not-found = Destino no válido para `<{ $source }>`: no se encuentra el destino.\n\ntarget-state-variable-not-found = Destino no válido para `<{ $source }>`: no se encuentra una variable de estado llamada "{ $property }" en un `<{ $component }>`.\n\n## `<odeSystem>`\n\node-system-variables-match-independent = Las variables de `<odeSystem>` deben ser distintas de la variable independiente.\n\node-system-duplicate-variable-names = No se pueden definir las funciones del lado derecho de la EDO con nombres de variables dependientes repetidos.\n\node-system-rhs-function-error = No se puede definir la función del lado derecho de la EDO. Error al crear la función de mathjs.\n\n## `<angle>`, `<parabola>` e `<intersection>`\n\nangle-too-many-lines = No se puede definir un ángulo entre { $count } rectas\n\nangle-invalid-through-point = Punto no válido en through de `<angle>`\n\nparabola-vertex-too-many-points = No está implementada una parábola con vértice que pase por más de 1 punto.\n\nparabola-too-many-points = No está implementada una parábola que pase por más de 3 puntos.\n\nintersection-too-many-items = No está implementada la intersección de más de dos objetos\n\n## Otros componentes matemáticos\n\nionic-compound-not-two-ions = No está implementado el compuesto iónico para algo distinto de dos iones.\n\nionic-compound-needs-cation-and-anion = El compuesto iónico solo está implementado para un catión y un anión.\n\nsolve-equations-cannot-evaluate = No se puede resolver la ecuación porque no se pudo evaluar: { $equation }\n\nmath-operators-operand-number-required = Se debe especificar operandNumber al extraer un operando matemático.\n\neigen-decomposition-failed = No se pudieron calcular los valores propios de la matriz\n';
|
|
46720
|
+
const esDiagnostics = '# Advertencias y errores mostrados a quien lee o escribe el documento.\n# Seleccionados por `uiLocale`.\n#\n# Los nombres de atributos y componentes de DoenetML (`through`, `endpoint`,\n# `numDimensions`, …) forman parte del lenguaje y se dejan en inglés.\n\n## `<lineSegment>`\n\nline-segment-attributes-ignored-with-endpoints =\n { $attributesCount ->\n [one] { $attributes } se ignora cuando se especifican los dos extremos\n *[other] { $attributes } se ignoran cuando se especifican los dos extremos\n }\n\nline-segment-attributes-ignored-with-endpoint-and-midpoint =\n { $attributesCount ->\n [one] { $attributes } se ignora cuando se especifican un extremo y el punto medio\n *[other] { $attributes } se ignoran cuando se especifican un extremo y el punto medio\n }\n\nline-segment-midpoint-offset-without-midpoint = midpointOffset no tiene efecto sin un punto medio\n\n## `<line>`\n\n# «Recta», no «línea», aunque `noun.line` en content.ftl diga «línea»: no es\n# una incoherencia, sino la diferencia entre describir el trazo dibujado («una\n# línea azul gruesa») y hablar del objeto geométrico, que en matemáticas es\n# una recta —de ahí «la ecuación de la recta».\n\nline-points-undetermined-dimensions = La recta pasa por puntos de dimensiones indeterminadas.\n\nline-points-too-few-dimensions = La recta debe pasar por puntos de al menos dos dimensiones.\n\nline-points-depend-on-variables = La recta pasa por puntos que dependen de las variables: { $variables }.\n\n# Enumeradas con coma en vez de «y»: las variables de <line> son `x` e `y` por\n# omisión, y «en las variables x y y» sería a la vez incorrecto (ante el sonido\n# /i/ la conjunción es «e») e ilegible. La coma es correcta sea cual sea el\n# nombre de la variable, que aquí no se conoce de antemano.\nline-equation-invalid-format = Formato no válido para la ecuación de la recta en las variables { $variable1 }, { $variable2 }.\n\n## `<ray>`\n\nray-overprescribed-through = La semirrecta está determinada por through, endpoint y direction. Se ignora el through especificado.\n\nray-dimension-mismatch = Discrepancia de numDimensions en la semirrecta.\n\n## `<vector>`\n\nvector-overprescribed-head = El vector está determinado por head, tail y displacement. Se ignora el head especificado.\n\nvector-dimension-mismatch = Discrepancia de numDimensions en el vector.\n\n## Atraer y restringir\n\nattract-to-without-nearest-point = No se puede atraer a un `<{ $component }>` porque no tiene la variable de estado nearestPoint.\n\nconstrain-to-without-nearest-point = No se puede restringir a un `<{ $component }>` porque no tiene la variable de estado nearestPoint.\n\nconstrain-to-interior-without-nearest-point = No se puede restringir al interior de un `<{ $component }>` porque no tiene la variable de estado nearestPoint.\n\n## `<choiceInput>`\n\nchoice-input-label-position-ignored = labelPosition se ignora en un choiceInput que no es inline\n\n## Ordenar hijos por índice\n\nchoice-input-indices-count-mismatch = Se ignoran los índices especificados para choiceInput porque su cantidad no coincide con la cantidad de hijos choice.\n\npretzel-indices-count-mismatch = Se ignoran los índices especificados para problem porque su cantidad no coincide con la cantidad de hijos problem.\n\nshuffle-indices-count-mismatch = Se ignoran los índices especificados para shuffle porque su cantidad no coincide con la cantidad de componentes.\n\nindices-ignored-out-of-range = Se ignoran los índices especificados para { $component } porque algunos están fuera de rango.\n\npretzel-indices-repeated = Se ignoran los índices especificados para pretzel porque algunos están repetidos.\n\npretzel-circuit-first-index = Se ignoran los índices especificados para pretzel en modo circuit porque el primer índice debe ser 1.\n\n## `<shuffle>` y `<sort>`\n\nstring-children-need-type = Para que `<{ $component }>` funcione con hijos de texto, se debe especificar el atributo `type`.\n\ninvalid-type-defaulting-to-math = Tipo no válido { $type } para el componente { $component }. Debe ser math, text, number o boolean. Se usa math.\n\nstring-not-valid-component-to-arrange = La cadena "{ $value }" no es un componente válido para { $component }. Se ignora.\n\n## Tipos y variables\n\ninvalid-type-defaulting-to-number = Tipo no válido { $type }, se establece el tipo en number.\n\ninvalid-variable-value = Valor no válido de una variable: `{ $value }`\n\n## Variantes\n\nvariant-index-must-be-number = El índice de variante { $index } debe ser un número\n\nvariant-index-must-be-integer = El índice de variante { $index } debe ser un número entero\n\n## `<sideBySide>`\n\nside-by-side-absolute-widths = `<{ $component }>` no está implementado para medidas absolutas. Los anchos se establecen como relativos.\n\nside-by-side-absolute-margins = `<{ $component }>` no está implementado para medidas absolutas. Los márgenes se establecen como relativos.\n\nside-by-side-no-block-child = `<{ $component }>` no es válido: debe tener al menos un hijo de bloque.\n\n## `<label>`\n\nlabel-for-ignored-on-graphical = Se ignora el atributo `for` en un `<label>` gráfico.\n\nlabel-for-must-resolve-to-one = El atributo `for` de `<label>` debe corresponder exactamente a un componente.\n\nlabel-for-unresolved = No se pudo resolver el atributo `for` de `<label>` a un componente.\n\nlabel-for-answer-with-authored-inputs = El atributo `for` de `<label>` hace referencia a un `<answer>` con entradas escritas explícitamente; haz referencia a la entrada directamente.\n\nlabel-for-answer-without-input = El atributo `for` de `<label>` hace referencia a un `<answer>` que no tiene ninguna entrada que etiquetar.\n\nlabel-for-must-reference-input-or-answer = El atributo `for` de `<label>` debe hacer referencia a una entrada o a un `<answer>`.\n\n## Accesibilidad\n\naccessibility-short-description-or-decorative = Por accesibilidad, `<{ $component }>` debe tener una descripción breve o estar marcado como decorativo.\n\naccessibility-video-short-description = Por accesibilidad, `<video>` debe tener una descripción breve.\n\naccessibility-input-short-description-or-label = Por accesibilidad, `<{ $component }>` debe tener una descripción breve o una etiqueta.\n\naccessibility-answer-input-short-description-or-label = Por accesibilidad, la entrada creada por un `<answer>` debe tener una descripción breve o una etiqueta.\n\naccessibility-short-description-contains-math = Las descripciones breves no deben contener componentes matemáticos como `<{ $component }>`. Expresa las matemáticas con palabras.\n\naccessibility-section-title-insufficient-contrast =\n { $mode ->\n [dark] { $colorName } no tiene suficiente contraste con el texto del encabezado de sección (modo oscuro) ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; se requiere al menos { $threshold }:1).\n *[other] { $colorName } no tiene suficiente contraste con el texto del encabezado de sección ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; se requiere al menos { $threshold }:1).\n }\n\n## `<circle>`\n\ncircle-through-points-non-numerical = No está implementado un `<circle>` que pase por { $count } puntos cuando los puntos no tienen valores numéricos.\n\ncircle-too-many-through-points = No se puede calcular una circunferencia que pase por más de 3 puntos.\n\ncircle-overprescribed-radius-center-points = No se puede calcular una circunferencia con radio, centro y puntos de paso especificados a la vez.\n\ncircle-center-with-multiple-points = No se puede calcular una circunferencia con centro especificado que pase por más de 1 punto.\n\ncircle-radius-too-small = No se puede calcular la circunferencia: dado que la distancia entre los dos puntos es { $distance }, el radio especificado { $radius } es demasiado pequeño.\n\ncircle-radius-with-many-points = No se puede crear una circunferencia que pase por más de dos puntos con un radio especificado.\n\ncircle-invalid-center-or-through-points = El centro o los puntos de paso de la circunferencia no son válidos.\n\ncircle-radius-center-with-multiple-points = No se puede calcular el radio de una circunferencia con centro especificado que pase por más de 1 punto.\n\ncircle-change-radius-non-numerical = No se puede cambiar el radio de una circunferencia con puntos de paso no numéricos\n\ncircle-radius-with-points-non-numerical = No se puede crear una circunferencia que pase por más de un punto con un radio especificado cuando no hay valores numéricos.\n\ncircle-change-center-non-numerical = No está implementado cambiar el centro de una circunferencia que pasa por puntos con valores no numéricos.\n\n## `<function>`\n\nfunction-domain-insufficient-dimensions =\n { $intervals ->\n [one] Dimensiones insuficientes para el dominio de la función. El dominio tiene { $intervals } intervalo pero la función tiene { $inputs ->\n [one] { $inputs } entrada\n *[other] { $inputs } entradas\n }.\n *[other] Dimensiones insuficientes para el dominio de la función. El dominio tiene { $intervals } intervalos pero la función tiene { $inputs ->\n [one] { $inputs } entrada\n *[other] { $inputs } entradas\n }.\n }\n\nfunction-domain-invalid-format = Formato no válido para el dominio de la función.\n\nfunction-ignoring-non-numerical =\n { $type ->\n [maximum] Se ignora el máximo no numérico de la función.\n [minimum] Se ignora el mínimo no numérico de la función.\n [extremum] Se ignora el extremo no numérico de la función.\n [point] Se ignora el punto no numérico de la función.\n [slope] Se ignora la pendiente no numérica de la función.\n *[other] Se ignora { $type } no numérico de la función.\n }\n\nfunction-ignoring-empty =\n { $type ->\n [maximum] Se ignora el máximo vacío de la función.\n [minimum] Se ignora el mínimo vacío de la función.\n [extremum] Se ignora el extremo vacío de la función.\n [point] Se ignora el punto vacío de la función.\n *[other] Se ignora { $type } vacío de la función.\n }\n\nfunction-points-too-close = La función contiene dos puntos demasiado próximos entre sí. No se puede definir la función.\n\nfunction-iterates-input-output-mismatch =\n { $inputs ->\n [one] Las iteraciones de una función solo son posibles si el número de entradas es igual al número de salidas. Esta función tiene { $inputs } entrada y { $outputs ->\n [one] { $outputs } salida\n *[other] { $outputs } salidas\n }.\n *[other] Las iteraciones de una función solo son posibles si el número de entradas es igual al número de salidas. Esta función tiene { $inputs } entradas y { $outputs ->\n [one] { $outputs } salida\n *[other] { $outputs } salidas\n }.\n }\n\n## `<sequence>`\n\nsequence-invalid-length = Longitud de la secuencia no válida. Debe ser un entero no negativo.\n\nsequence-invalid-step = Paso de la secuencia no válido. Debe ser un número para una secuencia de tipo { $type }.\n\nsequence-invalid-endpoint-number = El valor de "{ $attribute }" de la secuencia numérica no es válido. Debe ser un número.\n\nsequence-invalid-endpoint-letters = El valor de "{ $attribute }" de la secuencia de letras no es válido. Debe ser una combinación de letras.\n\nsequence-invalid-endpoint = El valor de "{ $attribute }" de la secuencia no es válido.\n\nselect-from-sequence-coprime-not-numbers = Se ignora coprime porque no se están seleccionando números\n\nselect-from-sequence-coprime-with-exclude-combinations = Se ignora coprime porque se especificó excludeCombinations\n\n## Resolución de `target`\n\ntarget-not-found = Destino no válido para `<{ $source }>`: no se encuentra el destino.\n\ntarget-state-variable-not-found = Destino no válido para `<{ $source }>`: no se encuentra una variable de estado llamada "{ $property }" en un `<{ $component }>`.\n\n## `<odeSystem>`\n\node-system-variables-match-independent = Las variables de `<odeSystem>` deben ser distintas de la variable independiente.\n\node-system-duplicate-variable-names = No se pueden definir las funciones del lado derecho de la EDO con nombres de variables dependientes repetidos.\n\node-system-rhs-function-error = No se puede definir la función del lado derecho de la EDO. Error al crear la función de mathjs.\n\n## `<angle>`, `<parabola>` e `<intersection>`\n\nangle-too-many-lines = No se puede definir un ángulo entre { $count } rectas\n\nangle-invalid-through-point = Punto no válido en through de `<angle>`\n\nparabola-vertex-too-many-points = No está implementada una parábola con vértice que pase por más de 1 punto.\n\nparabola-too-many-points = No está implementada una parábola que pase por más de 3 puntos.\n\nintersection-too-many-items = No está implementada la intersección de más de dos objetos\n\n## Otros componentes matemáticos\n\nionic-compound-not-two-ions = No está implementado el compuesto iónico para algo distinto de dos iones.\n\nionic-compound-needs-cation-and-anion = El compuesto iónico solo está implementado para un catión y un anión.\n\nsolve-equations-cannot-evaluate = No se puede resolver la ecuación porque no se pudo evaluar: { $equation }\n\nmath-operators-operand-number-required = Se debe especificar operandNumber al extraer un operando matemático.\n\neigen-decomposition-failed = No se pudieron calcular los valores propios de la matriz\n\n## Renderizador PreFigure\n\nprefigure-x-label-position-unsupported = `<graph>`: xLabelPosition="left" no es compatible con el renderizador prefigure; se usa el comportamiento de posición derecha.\n\nprefigure-y-label-position-unsupported = `<graph>`: yLabelPosition="bottom" no es compatible con el renderizador prefigure; se usa el comportamiento de posición superior.\n\nprefigure-invalid-axis-bounds = `<graph>`: los límites de los ejes no son válidos para la conversión a prefigure; se usa el bbox predeterminado (-10,-10,10,10).\n\nprefigure-invalid-width = `<graph>`: el ancho no es válido para la conversión a prefigure; se usa el ancho de diagrama predeterminado 425.\n\nprefigure-invalid-aspect-ratio = `<graph>`: aspectRatio no es válido para la conversión a prefigure; se usa la relación de aspecto predeterminada 1.\n\nprefigure-annotations-not-rendered = `<graph>`: las anotaciones no se representan si no se usa el renderizador PreFigure.\n\nmultiple-annotations-children = Se encontraron varios hijos `<annotations>` en `<graph>`; se ignoran todos menos el último.\n\n## Referencias a otros componentes\n\ncopy-unrecognized-component-type = No se puede extender ni copiar un tipo de componente desconocido: { $type }.\n\ncopy-prop-not-found = No se encontró la propiedad { $property } en un componente de tipo { $component }\n\ncollect-no-source = No se encontró ninguna fuente para collect.\n\ncollect-invalid-component-type = No se pueden recolectar componentes de tipo `<{ $component }>` porque no es un tipo de componente válido.\n\n## `<dataFrame>`\n\ndata-frame-inconsistent-row-lengths = Los datos tienen una forma no válida. Las filas tienen longitudes distintas. Encontrado en componentIdx :{ $componentIdx }\n\ndata-frame-duplicate-column-names = Los datos tienen nombres de columna repetidos. Encontrado en componentIdx :{ $componentIdx }\n\ndata-frame-missing-column-name = A los datos les falta el nombre de una columna. Encontrado en componentIdx :{ $componentIdx }\n\n## `<answer>` y puntuación\n\nanswer-award-depends-on-own-response = Un award de esta respuesta depende de la respuesta enviada por el propio answer, lo que provocará un comportamiento inesperado.\n\nanswer-max-num-attempts-in-section-wide-check-work = Establecer `maxNumAttempts` en un `<answer>` dentro de un contenedor con `sectionWideCheckWork` no tiene efecto, porque el número de intentos lo controla el contenedor. Establece `maxNumAttempts` en el contenedor.\n\nnested-section-wide-check-work-max-num-attempts = Establecer `maxNumAttempts` en un contenedor con `sectionWideCheckWork` que está dentro de otro contenedor con `sectionWideCheckWork` no tiene efecto, porque el número de intentos lo controla el contenedor exterior. Establece `maxNumAttempts` en el contenedor exterior.\n\nanswer-attributes-need-symbolic-equality =\n { $attributesCount ->\n [one] El atributo { $attributes } no tendrá efecto si no se establece symbolicEquality.\n *[other] Los atributos { $attributes } no tendrán efecto si no se establece symbolicEquality.\n }\n\nanswer-invalid-type = Tipo no válido para answer: { $type }\n\n## `<module>`, `<conditionalContent>`, `<slider>` y pretzel\n\nmodule-attribute-child-needs-name = Como el componente `<{ $component }>` no tiene nombre, no se puede usar como atributo de módulo\n\nmodule-attribute-name-already-defined = El componente `<{ $component } name="{ $name }">` no se puede usar como atributo de un módulo porque el tipo de componente `<module>` ya tiene definido un atributo "{ $name }".\n\nconditional-content-condition-ignored = Se ignora el atributo `condition` en un `<conditionalContent>` que tiene hijos case o else.\n\nslider-markers-type-mismatch = El tipo de los marcadores no coincide con el tipo del slider.\n\npretzel-problem-needs-statement-and-answer = Pretzel no válido: cada `<problem>` debe contener un `<statement>` y un `<answer>`.\n\npretzel-circuit-first-problem-distractor = Pretzel no válido: en mode="circuit", el primer `<problem>` no puede ser un distractor.\n\n## Valores de atributos\n\nattribute-invalid-values =\n { $valuesCount ->\n [one] Valor no válido { $values } para el atributo `{ $attribute }`; se ignora.\n *[other] Valores no válidos { $values } para el atributo `{ $attribute }`; se ignoran.\n }\n\nattribute-must-be-references = Valor no válido `{ $value }` para el atributo `{ $attribute }`. El atributo debe estar compuesto de referencias que empiecen por `$`.\n\nmath-input-invalid-function-names = <mathInput>: se ignoran nombres de función no válidos en { $attribute }: { $names }. El segmento visible de cada nombre debe tener al menos 2 caracteres (letras o guiones); puede añadirse un sufijo opcional `|<alternativa de mathspeak>`.\n\n## Construcción de componentes a partir del código fuente\n\ncomponent-type-invalid = Tipo de componente no válido: `<{ $componentType }>`\n\nattribute-repeated = No se puede repetir el atributo { $attribute }.\n\nattribute-invalid-for-component = Atributo "{ $attribute }" no válido para un componente de tipo `<{ $componentType }>`.\n';
|
|
46721
46721
|
const BUNDLED_TRANSLATIONS = {
|
|
46722
46722
|
es: {
|
|
46723
46723
|
chrome: esChrome,
|
|
@@ -46777,6 +46777,10 @@ const DIAGNOSTIC_CODES = {
|
|
|
46777
46777
|
"doenet-i0015": "sequence-invalid-endpoint-letters",
|
|
46778
46778
|
"doenet-i0016": "sequence-invalid-endpoint",
|
|
46779
46779
|
"doenet-i0017": "angle-too-many-lines",
|
|
46780
|
+
"doenet-i0018": "copy-prop-not-found",
|
|
46781
|
+
"doenet-i0019": "prefigure-annotations-not-rendered",
|
|
46782
|
+
"doenet-i0020": "multiple-annotations-children",
|
|
46783
|
+
"doenet-i0021": "attribute-invalid-values",
|
|
46780
46784
|
"doenet-w0001": "line-points-undetermined-dimensions",
|
|
46781
46785
|
"doenet-w0002": "line-points-too-few-dimensions",
|
|
46782
46786
|
"doenet-w0003": "line-points-depend-on-variables",
|
|
@@ -46836,6 +46840,33 @@ const DIAGNOSTIC_CODES = {
|
|
|
46836
46840
|
"doenet-w0057": "solve-equations-cannot-evaluate",
|
|
46837
46841
|
"doenet-w0058": "math-operators-operand-number-required",
|
|
46838
46842
|
"doenet-w0059": "eigen-decomposition-failed",
|
|
46843
|
+
"doenet-w0060": "prefigure-x-label-position-unsupported",
|
|
46844
|
+
"doenet-w0061": "prefigure-y-label-position-unsupported",
|
|
46845
|
+
"doenet-w0062": "prefigure-invalid-axis-bounds",
|
|
46846
|
+
"doenet-w0063": "prefigure-invalid-width",
|
|
46847
|
+
"doenet-w0064": "prefigure-invalid-aspect-ratio",
|
|
46848
|
+
"doenet-w0065": "copy-unrecognized-component-type",
|
|
46849
|
+
"doenet-w0066": "data-frame-inconsistent-row-lengths",
|
|
46850
|
+
"doenet-w0067": "data-frame-duplicate-column-names",
|
|
46851
|
+
"doenet-w0068": "data-frame-missing-column-name",
|
|
46852
|
+
"doenet-w0069": "answer-award-depends-on-own-response",
|
|
46853
|
+
"doenet-w0070": "answer-max-num-attempts-in-section-wide-check-work",
|
|
46854
|
+
"doenet-w0071": "answer-attributes-need-symbolic-equality",
|
|
46855
|
+
"doenet-w0072": "collect-no-source",
|
|
46856
|
+
"doenet-w0073": "collect-invalid-component-type",
|
|
46857
|
+
"doenet-w0074": "module-attribute-child-needs-name",
|
|
46858
|
+
"doenet-w0075": "module-attribute-name-already-defined",
|
|
46859
|
+
"doenet-w0076": "pretzel-problem-needs-statement-and-answer",
|
|
46860
|
+
"doenet-w0077": "attribute-must-be-references",
|
|
46861
|
+
"doenet-w0078": "answer-invalid-type",
|
|
46862
|
+
"doenet-w0079": "conditional-content-condition-ignored",
|
|
46863
|
+
"doenet-w0080": "slider-markers-type-mismatch",
|
|
46864
|
+
"doenet-w0081": "nested-section-wide-check-work-max-num-attempts",
|
|
46865
|
+
"doenet-w0082": "math-input-invalid-function-names",
|
|
46866
|
+
"doenet-e0001": "pretzel-circuit-first-problem-distractor",
|
|
46867
|
+
"doenet-e0002": "component-type-invalid",
|
|
46868
|
+
"doenet-e0003": "attribute-repeated",
|
|
46869
|
+
"doenet-e0004": "attribute-invalid-for-component",
|
|
46839
46870
|
"doenet-a0001": "accessibility-short-description-or-decorative",
|
|
46840
46871
|
"doenet-a0002": "accessibility-video-short-description",
|
|
46841
46872
|
"doenet-a0003": "accessibility-input-short-description-or-label",
|
|
@@ -48365,13 +48396,64 @@ function narrowPositionToOpeningTag(position2, source) {
|
|
|
48365
48396
|
}
|
|
48366
48397
|
};
|
|
48367
48398
|
}
|
|
48399
|
+
function codedDiagnostic({
|
|
48400
|
+
type,
|
|
48401
|
+
code,
|
|
48402
|
+
args,
|
|
48403
|
+
position: position2,
|
|
48404
|
+
sourceDoc,
|
|
48405
|
+
level
|
|
48406
|
+
}) {
|
|
48407
|
+
return {
|
|
48408
|
+
type,
|
|
48409
|
+
message: formatEnglishDiagnostic(code, args),
|
|
48410
|
+
code,
|
|
48411
|
+
...args === void 0 ? {} : { args },
|
|
48412
|
+
...position2 === void 0 ? {} : { position: position2 },
|
|
48413
|
+
...sourceDoc === void 0 ? {} : { sourceDoc },
|
|
48414
|
+
...level === void 0 ? {} : { level }
|
|
48415
|
+
};
|
|
48416
|
+
}
|
|
48417
|
+
class DiagnosticError extends Error {
|
|
48418
|
+
constructor({
|
|
48419
|
+
code,
|
|
48420
|
+
args
|
|
48421
|
+
}) {
|
|
48422
|
+
super(formatEnglishDiagnostic(code, args));
|
|
48423
|
+
this.name = "DiagnosticError";
|
|
48424
|
+
this.code = code;
|
|
48425
|
+
if (args !== void 0) {
|
|
48426
|
+
this.args = args;
|
|
48427
|
+
}
|
|
48428
|
+
}
|
|
48429
|
+
}
|
|
48430
|
+
function diagnosticCodeFrom(value) {
|
|
48431
|
+
if (typeof value !== "object" || value === null || !("code" in value)) {
|
|
48432
|
+
return {};
|
|
48433
|
+
}
|
|
48434
|
+
const code = value.code;
|
|
48435
|
+
if (typeof code !== "string" || !isDiagnosticCode(code)) {
|
|
48436
|
+
return {};
|
|
48437
|
+
}
|
|
48438
|
+
const args = value.args;
|
|
48439
|
+
const argsAreUsable = typeof args === "object" && args !== null && !Array.isArray(args);
|
|
48440
|
+
return {
|
|
48441
|
+
code,
|
|
48442
|
+
...argsAreUsable ? { args } : {}
|
|
48443
|
+
};
|
|
48444
|
+
}
|
|
48445
|
+
function errorComponentState(message, source) {
|
|
48446
|
+
const codeAndArgs = diagnosticCodeFrom(source);
|
|
48447
|
+
return { message, ...codeAndArgs };
|
|
48448
|
+
}
|
|
48368
48449
|
function convertToErrorComponent(component, eOrMessage) {
|
|
48369
48450
|
const message = typeof eOrMessage === "string" ? eOrMessage : typeof eOrMessage === "object" && eOrMessage !== null && "message" in eOrMessage && typeof eOrMessage.message === "string" ? eOrMessage.message : "An error occurred";
|
|
48451
|
+
const state = errorComponentState(message, eOrMessage);
|
|
48370
48452
|
const newComponent = {
|
|
48371
48453
|
type: "serialized",
|
|
48372
48454
|
componentType: "_error",
|
|
48373
48455
|
componentIdx: component.componentIdx,
|
|
48374
|
-
state
|
|
48456
|
+
state,
|
|
48375
48457
|
children: [],
|
|
48376
48458
|
attributes: {},
|
|
48377
48459
|
doenetAttributes: {},
|
|
@@ -48398,7 +48480,7 @@ function convertToErrorComponent(component, eOrMessage) {
|
|
|
48398
48480
|
newComponent.attributes.name = nameAttribute;
|
|
48399
48481
|
}
|
|
48400
48482
|
}
|
|
48401
|
-
return { component: newComponent,
|
|
48483
|
+
return { component: newComponent, ...state };
|
|
48402
48484
|
}
|
|
48403
48485
|
function removeBlankStringChildren(serializedComponents, componentInfoObjects2) {
|
|
48404
48486
|
const newComponents = [];
|
|
@@ -48738,6 +48820,8 @@ function applySugar({
|
|
|
48738
48820
|
diagnostics2.push({
|
|
48739
48821
|
type: "error",
|
|
48740
48822
|
message: convertResult.message,
|
|
48823
|
+
// Empty unless the caught error named its diagnostic by code.
|
|
48824
|
+
...diagnosticCodeFrom(convertResult),
|
|
48741
48825
|
position: component.position,
|
|
48742
48826
|
sourceDoc: component.sourceDoc
|
|
48743
48827
|
});
|
|
@@ -49164,7 +49248,12 @@ async function normalizedDastToSerializedComponents(normalized_root, componentIn
|
|
|
49164
49248
|
position: node.position,
|
|
49165
49249
|
sourceDoc: node.sourceDoc,
|
|
49166
49250
|
state: {
|
|
49167
|
-
|
|
49251
|
+
// A `DastError` carries no code yet, so this
|
|
49252
|
+
// is the bare message today. It is the line
|
|
49253
|
+
// #1549 needs: once the parser names its
|
|
49254
|
+
// diagnostics, they reach the record through
|
|
49255
|
+
// here without this file changing again.
|
|
49256
|
+
...errorComponentState(node.message, node),
|
|
49168
49257
|
unresolvedPath: node.unresolvedPath
|
|
49169
49258
|
},
|
|
49170
49259
|
children: []
|
|
@@ -49280,9 +49369,10 @@ function expandUnflattenedToSerializedComponents({
|
|
|
49280
49369
|
let newComponent;
|
|
49281
49370
|
try {
|
|
49282
49371
|
if (componentClass === void 0) {
|
|
49283
|
-
throw
|
|
49284
|
-
|
|
49285
|
-
|
|
49372
|
+
throw new DiagnosticError({
|
|
49373
|
+
code: "doenet-e0002",
|
|
49374
|
+
args: { componentType: component.componentType }
|
|
49375
|
+
});
|
|
49286
49376
|
}
|
|
49287
49377
|
const expandResult = expandAllUnflattenedAttributes({
|
|
49288
49378
|
unflattenedAttributes: component.attributes,
|
|
@@ -49337,6 +49427,10 @@ function expandUnflattenedToSerializedComponents({
|
|
|
49337
49427
|
diagnostics2.push({
|
|
49338
49428
|
type: "error",
|
|
49339
49429
|
message: convertResult.message,
|
|
49430
|
+
// Empty unless the caught error named its diagnostic by
|
|
49431
|
+
// code, which `convertToErrorComponent` has already read
|
|
49432
|
+
// off it and put on the `_error` component.
|
|
49433
|
+
...diagnosticCodeFrom(convertResult),
|
|
49340
49434
|
position: component.position,
|
|
49341
49435
|
sourceDoc: component.sourceDoc
|
|
49342
49436
|
});
|
|
@@ -49461,7 +49555,10 @@ function expandAllUnflattenedAttributes({
|
|
|
49461
49555
|
let attrDef = classAttributes[attrName];
|
|
49462
49556
|
if (attrDef) {
|
|
49463
49557
|
if (attrName in attributes) {
|
|
49464
|
-
throw
|
|
49558
|
+
throw new DiagnosticError({
|
|
49559
|
+
code: "doenet-e0003",
|
|
49560
|
+
args: { attribute: attrName }
|
|
49561
|
+
});
|
|
49465
49562
|
}
|
|
49466
49563
|
let res = expandAttribute({
|
|
49467
49564
|
attrDef,
|
|
@@ -49486,9 +49583,13 @@ function expandAllUnflattenedAttributes({
|
|
|
49486
49583
|
diagnostics2.push(...res.diagnostics);
|
|
49487
49584
|
nComponents = res.nComponents;
|
|
49488
49585
|
} else {
|
|
49489
|
-
throw
|
|
49490
|
-
|
|
49491
|
-
|
|
49586
|
+
throw new DiagnosticError({
|
|
49587
|
+
code: "doenet-e0004",
|
|
49588
|
+
args: {
|
|
49589
|
+
attribute: attr,
|
|
49590
|
+
componentType: componentClass.componentType
|
|
49591
|
+
}
|
|
49592
|
+
});
|
|
49492
49593
|
}
|
|
49493
49594
|
}
|
|
49494
49595
|
return { attributes, diagnostics: diagnostics2, nComponents };
|
|
@@ -49631,12 +49732,18 @@ function expandAttribute({
|
|
|
49631
49732
|
if (child.trim() !== "") {
|
|
49632
49733
|
stringChildren.push(child);
|
|
49633
49734
|
if (!attrDef.allowStrings) {
|
|
49634
|
-
diagnostics2.push(
|
|
49635
|
-
|
|
49636
|
-
|
|
49637
|
-
|
|
49638
|
-
|
|
49639
|
-
|
|
49735
|
+
diagnostics2.push(
|
|
49736
|
+
codedDiagnostic({
|
|
49737
|
+
type: "warning",
|
|
49738
|
+
code: "doenet-w0077",
|
|
49739
|
+
args: {
|
|
49740
|
+
value: child.trim(),
|
|
49741
|
+
attribute: attribute.name
|
|
49742
|
+
},
|
|
49743
|
+
position: attribute.position,
|
|
49744
|
+
sourceDoc: attribute.sourceDoc
|
|
49745
|
+
})
|
|
49746
|
+
);
|
|
49640
49747
|
}
|
|
49641
49748
|
}
|
|
49642
49749
|
}
|
|
@@ -51818,11 +51925,22 @@ function validateListItemsAgainstValidValues({
|
|
|
51818
51925
|
}
|
|
51819
51926
|
const diagnostics2 = [];
|
|
51820
51927
|
if (invalidItems.length > 0) {
|
|
51821
|
-
|
|
51822
|
-
|
|
51823
|
-
|
|
51824
|
-
|
|
51825
|
-
|
|
51928
|
+
diagnostics2.push(
|
|
51929
|
+
codedDiagnostic({
|
|
51930
|
+
type: "info",
|
|
51931
|
+
code: "doenet-i0021",
|
|
51932
|
+
args: {
|
|
51933
|
+
// Each value keeps the backticks it was rendered with; the
|
|
51934
|
+
// join is `unit` so the list reads "`a`, `b`" rather than
|
|
51935
|
+
// gaining an "and" the original never had.
|
|
51936
|
+
values: {
|
|
51937
|
+
list: invalidItems.map((v2) => `\`${v2}\``),
|
|
51938
|
+
type: "unit"
|
|
51939
|
+
},
|
|
51940
|
+
attribute
|
|
51941
|
+
}
|
|
51942
|
+
})
|
|
51943
|
+
);
|
|
51826
51944
|
}
|
|
51827
51945
|
return { value: validItems, diagnostics: diagnostics2 };
|
|
51828
51946
|
}
|
|
@@ -55548,6 +55666,7 @@ async function createChildrenThenComponent({
|
|
|
55548
55666
|
core2.addDiagnostic({
|
|
55549
55667
|
type: "error",
|
|
55550
55668
|
message: serializedComponent.state.message,
|
|
55669
|
+
...diagnosticCodeFrom(serializedComponent.state),
|
|
55551
55670
|
position: serializedComponent.position,
|
|
55552
55671
|
sourceDoc: serializedComponent.sourceDoc
|
|
55553
55672
|
});
|
|
@@ -55771,7 +55890,14 @@ async function addQueuedErrorComponentsFromStateVariables({
|
|
|
55771
55890
|
type: "serialized",
|
|
55772
55891
|
componentType: "_error",
|
|
55773
55892
|
componentIdx: core2._components.length,
|
|
55774
|
-
|
|
55893
|
+
// `errorInfo` is the diagnostic record itself, spread by
|
|
55894
|
+
// `StateVariableEvaluator`, so a coded one arrives here with
|
|
55895
|
+
// its code. This record has already reached `addDiagnostic`,
|
|
55896
|
+
// so nothing downstream depends on the copy — it is kept so
|
|
55897
|
+
// that an `_error` built here holds the same thing one built
|
|
55898
|
+
// by `convertToErrorComponent` does, and so that making these
|
|
55899
|
+
// keys `forRenderer` later needs no second pass.
|
|
55900
|
+
state: errorComponentState(errorInfo.message, errorInfo),
|
|
55775
55901
|
position: errorInfo.position,
|
|
55776
55902
|
sourceDoc: errorInfo.sourceDoc,
|
|
55777
55903
|
children: [],
|
|
@@ -70638,10 +70764,12 @@ function returnStandardAnswerStateVariableDefinition() {
|
|
|
70638
70764
|
if (Object.keys(selfDependencies.stateValues).find(
|
|
70639
70765
|
(x2) => x2.substring(0, 17) === "submittedResponse"
|
|
70640
70766
|
)) {
|
|
70641
|
-
diagnostics2.push(
|
|
70642
|
-
|
|
70643
|
-
|
|
70644
|
-
|
|
70767
|
+
diagnostics2.push(
|
|
70768
|
+
codedDiagnostic({
|
|
70769
|
+
type: "warning",
|
|
70770
|
+
code: "doenet-w0069"
|
|
70771
|
+
})
|
|
70772
|
+
);
|
|
70645
70773
|
}
|
|
70646
70774
|
}
|
|
70647
70775
|
let stringified = stringify(
|
|
@@ -70817,11 +70945,13 @@ function returnStandardAnswerStateVariableDefinition() {
|
|
|
70817
70945
|
let sendDiagnostics = [];
|
|
70818
70946
|
let insideSectionWideCheckWork = dependencyValues.ancestorSuppressingAnswerSubmitButtons?.stateValues.suppressAnswerSubmitButtons;
|
|
70819
70947
|
if (!usedDefault.maxNumAttempts && insideSectionWideCheckWork) {
|
|
70820
|
-
sendDiagnostics.push(
|
|
70821
|
-
|
|
70822
|
-
|
|
70823
|
-
|
|
70824
|
-
|
|
70948
|
+
sendDiagnostics.push(
|
|
70949
|
+
codedDiagnostic({
|
|
70950
|
+
type: "warning",
|
|
70951
|
+
code: "doenet-w0070",
|
|
70952
|
+
position: dependencyValues.maxNumAttemptsAttr?.position
|
|
70953
|
+
})
|
|
70954
|
+
);
|
|
70825
70955
|
}
|
|
70826
70956
|
const numAttemptsLeft = insideSectionWideCheckWork ? dependencyValues.ancestorSuppressingAnswerSubmitButtons.stateValues.numAttemptsLeft : Math.max(
|
|
70827
70957
|
0,
|
|
@@ -70945,12 +71075,13 @@ function returnSimplifyExpandOnCompareWarning() {
|
|
|
70945
71075
|
attributesSpecified.push("simplifyOnCompare");
|
|
70946
71076
|
}
|
|
70947
71077
|
if (attributesSpecified.length > 0) {
|
|
70948
|
-
sendDiagnostics.push(
|
|
70949
|
-
|
|
70950
|
-
|
|
70951
|
-
|
|
70952
|
-
|
|
70953
|
-
|
|
71078
|
+
sendDiagnostics.push(
|
|
71079
|
+
codedDiagnostic({
|
|
71080
|
+
type: "warning",
|
|
71081
|
+
code: "doenet-w0071",
|
|
71082
|
+
args: { attributes: attributesSpecified }
|
|
71083
|
+
})
|
|
71084
|
+
);
|
|
70954
71085
|
}
|
|
70955
71086
|
}
|
|
70956
71087
|
return {
|
|
@@ -77107,24 +77238,6 @@ function exprContainsVector(tree) {
|
|
|
77107
77238
|
}
|
|
77108
77239
|
return operands.some(exprContainsVector);
|
|
77109
77240
|
}
|
|
77110
|
-
function codedDiagnostic({
|
|
77111
|
-
type,
|
|
77112
|
-
code,
|
|
77113
|
-
args,
|
|
77114
|
-
position: position2,
|
|
77115
|
-
sourceDoc,
|
|
77116
|
-
level
|
|
77117
|
-
}) {
|
|
77118
|
-
return {
|
|
77119
|
-
type,
|
|
77120
|
-
message: formatEnglishDiagnostic(code, args),
|
|
77121
|
-
code,
|
|
77122
|
-
...args === void 0 ? {} : { args },
|
|
77123
|
-
...position2 === void 0 ? {} : { position: position2 },
|
|
77124
|
-
...sourceDoc === void 0 ? {} : { sourceDoc },
|
|
77125
|
-
...level === void 0 ? {} : { level }
|
|
77126
|
-
};
|
|
77127
|
-
}
|
|
77128
77241
|
class Label extends InlineComponent {
|
|
77129
77242
|
constructor(args) {
|
|
77130
77243
|
super(args);
|
|
@@ -79134,11 +79247,13 @@ function returnScoredSectionStateVariableDefinition() {
|
|
|
79134
79247
|
let sendDiagnostics = [];
|
|
79135
79248
|
let insideSectionWideCheckWork = dependencyValues.ancestorSuppressingAnswerSubmitButtons?.stateValues.suppressAnswerSubmitButtons;
|
|
79136
79249
|
if (!usedDefault.maxNumAttempts && dependencyValues.sectionWideCheckWork && insideSectionWideCheckWork) {
|
|
79137
|
-
sendDiagnostics.push(
|
|
79138
|
-
|
|
79139
|
-
|
|
79140
|
-
|
|
79141
|
-
|
|
79250
|
+
sendDiagnostics.push(
|
|
79251
|
+
codedDiagnostic({
|
|
79252
|
+
type: "warning",
|
|
79253
|
+
code: "doenet-w0081",
|
|
79254
|
+
position: dependencyValues.maxNumAttemptsAttr?.position
|
|
79255
|
+
})
|
|
79256
|
+
);
|
|
79142
79257
|
}
|
|
79143
79258
|
let numAttemptsLeft;
|
|
79144
79259
|
if (insideSectionWideCheckWork) {
|
|
@@ -122724,10 +122839,10 @@ class Collect extends CompositeComponent {
|
|
|
122724
122839
|
}),
|
|
122725
122840
|
definition: function({ dependencyValues }) {
|
|
122726
122841
|
if (dependencyValues.sourceComponent === null) {
|
|
122727
|
-
let warning = {
|
|
122728
|
-
|
|
122729
|
-
|
|
122730
|
-
};
|
|
122842
|
+
let warning = codedDiagnostic({
|
|
122843
|
+
type: "warning",
|
|
122844
|
+
code: "doenet-w0072"
|
|
122845
|
+
});
|
|
122731
122846
|
return {
|
|
122732
122847
|
setValue: { sourceName: "" },
|
|
122733
122848
|
sendDiagnostics: [warning]
|
|
@@ -122759,14 +122874,14 @@ class Collect extends CompositeComponent {
|
|
|
122759
122874
|
if (cClass) {
|
|
122760
122875
|
componentTypeToCollect = componentType;
|
|
122761
122876
|
} else {
|
|
122762
|
-
|
|
122763
|
-
|
|
122764
|
-
|
|
122765
|
-
|
|
122766
|
-
|
|
122767
|
-
|
|
122768
|
-
|
|
122769
|
-
|
|
122877
|
+
diagnostics2.push(
|
|
122878
|
+
codedDiagnostic({
|
|
122879
|
+
type: "warning",
|
|
122880
|
+
code: "doenet-w0073",
|
|
122881
|
+
args: { component: cType },
|
|
122882
|
+
position: dependencyValues.componentTypeAttr.position || void 0
|
|
122883
|
+
})
|
|
122884
|
+
);
|
|
122770
122885
|
}
|
|
122771
122886
|
}
|
|
122772
122887
|
return {
|
|
@@ -140801,10 +140916,13 @@ class Answer extends InlineComponent {
|
|
|
140801
140916
|
if (type.toLowerCase() === "videowatched") {
|
|
140802
140917
|
return { success: false };
|
|
140803
140918
|
}
|
|
140804
|
-
diagnostics2.push(
|
|
140805
|
-
|
|
140806
|
-
|
|
140807
|
-
|
|
140919
|
+
diagnostics2.push(
|
|
140920
|
+
codedDiagnostic({
|
|
140921
|
+
type: "warning",
|
|
140922
|
+
code: "doenet-w0078",
|
|
140923
|
+
args: { type }
|
|
140924
|
+
})
|
|
140925
|
+
);
|
|
140808
140926
|
type = "math";
|
|
140809
140927
|
}
|
|
140810
140928
|
} else {
|
|
@@ -143729,26 +143847,37 @@ class MathInput extends Input {
|
|
|
143729
143847
|
});
|
|
143730
143848
|
const result2 = { setValue: { effectiveFunctionNames: names } };
|
|
143731
143849
|
const diagnostics2 = [];
|
|
143732
|
-
const
|
|
143850
|
+
const invalidNames = (attr, list, position2) => codedDiagnostic({
|
|
143851
|
+
type: "warning",
|
|
143852
|
+
code: "doenet-w0082",
|
|
143853
|
+
args: {
|
|
143854
|
+
attribute: attr,
|
|
143855
|
+
// Quoted here and joined at format time, so the
|
|
143856
|
+
// separator follows the reader's language.
|
|
143857
|
+
names: {
|
|
143858
|
+
list: list.map((n2) => `'${n2}'`),
|
|
143859
|
+
type: "unit"
|
|
143860
|
+
}
|
|
143861
|
+
},
|
|
143862
|
+
position: position2
|
|
143863
|
+
});
|
|
143733
143864
|
if (droppedFromAdditional.length > 0) {
|
|
143734
|
-
diagnostics2.push(
|
|
143735
|
-
|
|
143736
|
-
message: buildMessage(
|
|
143865
|
+
diagnostics2.push(
|
|
143866
|
+
invalidNames(
|
|
143737
143867
|
"additionalFunctionNames",
|
|
143738
|
-
droppedFromAdditional
|
|
143739
|
-
|
|
143740
|
-
|
|
143741
|
-
|
|
143868
|
+
droppedFromAdditional,
|
|
143869
|
+
dependencyValues.additionalFunctionNamesAttr?.position
|
|
143870
|
+
)
|
|
143871
|
+
);
|
|
143742
143872
|
}
|
|
143743
143873
|
if (droppedFromReset.length > 0) {
|
|
143744
|
-
diagnostics2.push(
|
|
143745
|
-
|
|
143746
|
-
message: buildMessage(
|
|
143874
|
+
diagnostics2.push(
|
|
143875
|
+
invalidNames(
|
|
143747
143876
|
"resetFunctionNames",
|
|
143748
|
-
droppedFromReset
|
|
143749
|
-
|
|
143750
|
-
|
|
143751
|
-
|
|
143877
|
+
droppedFromReset,
|
|
143878
|
+
dependencyValues.resetFunctionNamesAttr?.position
|
|
143879
|
+
)
|
|
143880
|
+
);
|
|
143752
143881
|
}
|
|
143753
143882
|
if (diagnostics2.length > 0)
|
|
143754
143883
|
result2.sendDiagnostics = diagnostics2;
|
|
@@ -151052,16 +151181,20 @@ function pushUnsupportedAxisPositionWarnings({
|
|
|
151052
151181
|
diagnostics: diagnostics2
|
|
151053
151182
|
}) {
|
|
151054
151183
|
if (dependencyValues.xLabelPosition === "left") {
|
|
151055
|
-
diagnostics2.push(
|
|
151056
|
-
|
|
151057
|
-
|
|
151058
|
-
|
|
151184
|
+
diagnostics2.push(
|
|
151185
|
+
codedDiagnostic({
|
|
151186
|
+
type: "warning",
|
|
151187
|
+
code: "doenet-w0060"
|
|
151188
|
+
})
|
|
151189
|
+
);
|
|
151059
151190
|
}
|
|
151060
151191
|
if (dependencyValues.yLabelPosition === "bottom") {
|
|
151061
|
-
diagnostics2.push(
|
|
151062
|
-
|
|
151063
|
-
|
|
151064
|
-
|
|
151192
|
+
diagnostics2.push(
|
|
151193
|
+
codedDiagnostic({
|
|
151194
|
+
type: "warning",
|
|
151195
|
+
code: "doenet-w0061"
|
|
151196
|
+
})
|
|
151197
|
+
);
|
|
151065
151198
|
}
|
|
151066
151199
|
}
|
|
151067
151200
|
const PREFIGURE_DARK_AXIS_COLOR = "#ffffff";
|
|
@@ -151109,26 +151242,32 @@ function createPrefigureXML({
|
|
|
151109
151242
|
const rawXMax = asFiniteNumber(dependencyValues.xMax);
|
|
151110
151243
|
const rawYMax = asFiniteNumber(dependencyValues.yMax);
|
|
151111
151244
|
if ([rawXMin, rawYMin, rawXMax, rawYMax].some((x2) => x2 === null)) {
|
|
151112
|
-
diagnostics2.push(
|
|
151113
|
-
|
|
151114
|
-
|
|
151115
|
-
|
|
151245
|
+
diagnostics2.push(
|
|
151246
|
+
codedDiagnostic({
|
|
151247
|
+
type: "warning",
|
|
151248
|
+
code: "doenet-w0062"
|
|
151249
|
+
})
|
|
151250
|
+
);
|
|
151116
151251
|
}
|
|
151117
151252
|
const graphBounds = rawXMin === null || rawYMin === null || rawXMax === null || rawYMax === null ? [-10, -10, 10, 10] : [rawXMin, rawYMin, rawXMax, rawYMax];
|
|
151118
151253
|
let dimensionWidth = asFiniteNumber(dependencyValues.width?.size);
|
|
151119
151254
|
if (dimensionWidth === null || dimensionWidth <= 0) {
|
|
151120
|
-
diagnostics2.push(
|
|
151121
|
-
|
|
151122
|
-
|
|
151123
|
-
|
|
151255
|
+
diagnostics2.push(
|
|
151256
|
+
codedDiagnostic({
|
|
151257
|
+
type: "warning",
|
|
151258
|
+
code: "doenet-w0063"
|
|
151259
|
+
})
|
|
151260
|
+
);
|
|
151124
151261
|
dimensionWidth = 425;
|
|
151125
151262
|
}
|
|
151126
151263
|
let diagramAspectRatio = asFiniteNumber(dependencyValues.aspectRatio);
|
|
151127
151264
|
if (diagramAspectRatio === null || diagramAspectRatio <= 0) {
|
|
151128
|
-
diagnostics2.push(
|
|
151129
|
-
|
|
151130
|
-
|
|
151131
|
-
|
|
151265
|
+
diagnostics2.push(
|
|
151266
|
+
codedDiagnostic({
|
|
151267
|
+
type: "warning",
|
|
151268
|
+
code: "doenet-w0064"
|
|
151269
|
+
})
|
|
151270
|
+
);
|
|
151132
151271
|
diagramAspectRatio = 1;
|
|
151133
151272
|
}
|
|
151134
151273
|
const dimensionHeight = dimensionWidth / diagramAspectRatio;
|
|
@@ -151578,10 +151717,12 @@ function returnGraphPrefigureXMLStateVariableDefinition() {
|
|
|
151578
151717
|
if (dependencyValues.effectiveRenderer !== "prefigure") {
|
|
151579
151718
|
const diagnostics22 = [];
|
|
151580
151719
|
if (dependencyValues.annotationsChildren && dependencyValues.annotationsChildren.length > 0) {
|
|
151581
|
-
diagnostics22.push(
|
|
151582
|
-
|
|
151583
|
-
|
|
151584
|
-
|
|
151720
|
+
diagnostics22.push(
|
|
151721
|
+
codedDiagnostic({
|
|
151722
|
+
type: "info",
|
|
151723
|
+
code: "doenet-i0019"
|
|
151724
|
+
})
|
|
151725
|
+
);
|
|
151585
151726
|
}
|
|
151586
151727
|
return {
|
|
151587
151728
|
setValue: { prefigureXML: null },
|
|
@@ -151613,11 +151754,13 @@ function returnGraphPrefigureXMLStateVariableDefinition() {
|
|
|
151613
151754
|
});
|
|
151614
151755
|
if (dependencyValues.annotationsChildren && dependencyValues.annotationsChildren.length > 1) {
|
|
151615
151756
|
const secondToLastAnnotationsChild = dependencyValues.annotationsChildren[dependencyValues.annotationsChildren.length - 2];
|
|
151616
|
-
diagnostics2.push(
|
|
151617
|
-
|
|
151618
|
-
|
|
151619
|
-
|
|
151620
|
-
|
|
151757
|
+
diagnostics2.push(
|
|
151758
|
+
codedDiagnostic({
|
|
151759
|
+
type: "info",
|
|
151760
|
+
code: "doenet-i0020",
|
|
151761
|
+
position: secondToLastAnnotationsChild?.position
|
|
151762
|
+
})
|
|
151763
|
+
);
|
|
151621
151764
|
}
|
|
151622
151765
|
return {
|
|
151623
151766
|
setValue: { prefigureXML: xml },
|
|
@@ -157844,14 +157987,13 @@ class Slider extends BaseComponent {
|
|
|
157844
157987
|
if (markerType === "empty") {
|
|
157845
157988
|
markers = [...dependencyValues.items];
|
|
157846
157989
|
} else if (markerType !== dependencyValues.type) {
|
|
157847
|
-
|
|
157848
|
-
|
|
157849
|
-
|
|
157850
|
-
|
|
157851
|
-
|
|
157852
|
-
|
|
157853
|
-
|
|
157854
|
-
diagnostics2.push(warning);
|
|
157990
|
+
diagnostics2.push(
|
|
157991
|
+
codedDiagnostic({
|
|
157992
|
+
type: "warning",
|
|
157993
|
+
code: "doenet-w0080",
|
|
157994
|
+
position: dependencyValues.markersChild[0].position || void 0
|
|
157995
|
+
})
|
|
157996
|
+
);
|
|
157855
157997
|
markers = [];
|
|
157856
157998
|
} else {
|
|
157857
157999
|
markers = dependencyValues.markersChild[0].stateValues.markers;
|
|
@@ -160584,14 +160726,13 @@ class ConditionalContent extends CompositeComponent {
|
|
|
160584
160726
|
definition({ dependencyValues }) {
|
|
160585
160727
|
const diagnostics2 = [];
|
|
160586
160728
|
if (dependencyValues.conditionAttribute) {
|
|
160587
|
-
|
|
160588
|
-
|
|
160589
|
-
|
|
160590
|
-
|
|
160591
|
-
|
|
160592
|
-
|
|
160593
|
-
|
|
160594
|
-
diagnostics2.push(warning);
|
|
160729
|
+
diagnostics2.push(
|
|
160730
|
+
codedDiagnostic({
|
|
160731
|
+
type: "warning",
|
|
160732
|
+
code: "doenet-w0079",
|
|
160733
|
+
position: dependencyValues.conditionAttribute.position || void 0
|
|
160734
|
+
})
|
|
160735
|
+
);
|
|
160595
160736
|
}
|
|
160596
160737
|
return {
|
|
160597
160738
|
sendDiagnostics: diagnostics2,
|
|
@@ -215448,10 +215589,13 @@ class UpdateValue extends InlineComponent {
|
|
|
215448
215589
|
}
|
|
215449
215590
|
let diagnostics2 = [];
|
|
215450
215591
|
if (targetIdentities === null || targetIdentities.length === 0) {
|
|
215451
|
-
diagnostics2.push(
|
|
215452
|
-
|
|
215453
|
-
|
|
215454
|
-
|
|
215592
|
+
diagnostics2.push(
|
|
215593
|
+
codedDiagnostic({
|
|
215594
|
+
type: "warning",
|
|
215595
|
+
code: "doenet-w0043",
|
|
215596
|
+
args: { source: "updateValue" }
|
|
215597
|
+
})
|
|
215598
|
+
);
|
|
215455
215599
|
}
|
|
215456
215600
|
return {
|
|
215457
215601
|
setValue: { targetIdentities },
|
|
@@ -215518,11 +215662,13 @@ class UpdateValue extends InlineComponent {
|
|
|
215518
215662
|
for (let ind in dependencyValues.targetIdentities) {
|
|
215519
215663
|
let target = dependencyValues["target" + ind];
|
|
215520
215664
|
if (target == null) {
|
|
215521
|
-
|
|
215522
|
-
|
|
215523
|
-
|
|
215524
|
-
|
|
215525
|
-
|
|
215665
|
+
diagnostics2.push(
|
|
215666
|
+
codedDiagnostic({
|
|
215667
|
+
type: "warning",
|
|
215668
|
+
code: "doenet-w0043",
|
|
215669
|
+
args: { source: "updateValue" }
|
|
215670
|
+
})
|
|
215671
|
+
);
|
|
215526
215672
|
continue;
|
|
215527
215673
|
}
|
|
215528
215674
|
targets.push(target);
|
|
@@ -215534,17 +215680,29 @@ class UpdateValue extends InlineComponent {
|
|
|
215534
215680
|
prop += `[idx]`;
|
|
215535
215681
|
}
|
|
215536
215682
|
}
|
|
215537
|
-
|
|
215538
|
-
|
|
215539
|
-
|
|
215540
|
-
|
|
215541
|
-
|
|
215683
|
+
diagnostics2.push(
|
|
215684
|
+
codedDiagnostic({
|
|
215685
|
+
type: "warning",
|
|
215686
|
+
code: "doenet-w0044",
|
|
215687
|
+
args: {
|
|
215688
|
+
source: "updateValue",
|
|
215689
|
+
property: prop,
|
|
215690
|
+
component: target.componentType
|
|
215691
|
+
}
|
|
215692
|
+
})
|
|
215693
|
+
);
|
|
215542
215694
|
} else {
|
|
215543
|
-
|
|
215544
|
-
|
|
215545
|
-
|
|
215546
|
-
|
|
215547
|
-
|
|
215695
|
+
diagnostics2.push(
|
|
215696
|
+
codedDiagnostic({
|
|
215697
|
+
type: "warning",
|
|
215698
|
+
code: "doenet-w0044",
|
|
215699
|
+
args: {
|
|
215700
|
+
source: "updateValue",
|
|
215701
|
+
property: "value",
|
|
215702
|
+
component: target.componentType
|
|
215703
|
+
}
|
|
215704
|
+
})
|
|
215705
|
+
);
|
|
215548
215706
|
}
|
|
215549
215707
|
}
|
|
215550
215708
|
}
|
|
@@ -216422,11 +216580,14 @@ class ModuleAttributes extends CompositeComponent {
|
|
|
216422
216580
|
const childName = child.attributes.name?.primitive?.value;
|
|
216423
216581
|
if (!childName) {
|
|
216424
216582
|
componentsForModuleAttributes.push(child);
|
|
216425
|
-
diagnostics2.push(
|
|
216426
|
-
|
|
216427
|
-
|
|
216428
|
-
|
|
216429
|
-
|
|
216583
|
+
diagnostics2.push(
|
|
216584
|
+
codedDiagnostic({
|
|
216585
|
+
type: "warning",
|
|
216586
|
+
code: "doenet-w0074",
|
|
216587
|
+
args: { component: child.componentType },
|
|
216588
|
+
position: child.position
|
|
216589
|
+
})
|
|
216590
|
+
);
|
|
216430
216591
|
continue;
|
|
216431
216592
|
}
|
|
216432
216593
|
let attributeName = attributeLowerCaseMapping[childName.toLowerCase()];
|
|
@@ -216436,11 +216597,17 @@ class ModuleAttributes extends CompositeComponent {
|
|
|
216436
216597
|
continue;
|
|
216437
216598
|
}
|
|
216438
216599
|
if (existingModuleAttrNames.includes(attributeName)) {
|
|
216439
|
-
diagnostics2.push(
|
|
216440
|
-
|
|
216441
|
-
|
|
216442
|
-
|
|
216443
|
-
|
|
216600
|
+
diagnostics2.push(
|
|
216601
|
+
codedDiagnostic({
|
|
216602
|
+
type: "warning",
|
|
216603
|
+
code: "doenet-w0075",
|
|
216604
|
+
args: {
|
|
216605
|
+
component: child.componentType,
|
|
216606
|
+
name: childName
|
|
216607
|
+
},
|
|
216608
|
+
position: child.position
|
|
216609
|
+
})
|
|
216610
|
+
);
|
|
216444
216611
|
componentsForModuleAttributes.push(child);
|
|
216445
216612
|
continue;
|
|
216446
216613
|
}
|
|
@@ -221453,10 +221620,14 @@ class DataFrame extends BaseComponent {
|
|
|
221453
221620
|
}
|
|
221454
221621
|
}
|
|
221455
221622
|
if (foundInconsistentRow) {
|
|
221456
|
-
let warning = {
|
|
221457
|
-
|
|
221458
|
-
|
|
221459
|
-
|
|
221623
|
+
let warning = codedDiagnostic({
|
|
221624
|
+
type: "warning",
|
|
221625
|
+
code: "doenet-w0066",
|
|
221626
|
+
// A string, not a number: an internal index is a
|
|
221627
|
+
// name, and formatting it as a quantity would print
|
|
221628
|
+
// componentIdx 1234 as "1,234".
|
|
221629
|
+
args: { componentIdx: String(componentIdx) }
|
|
221630
|
+
});
|
|
221460
221631
|
return {
|
|
221461
221632
|
setValue: {
|
|
221462
221633
|
dataFrame: null,
|
|
@@ -221485,10 +221656,14 @@ class DataFrame extends BaseComponent {
|
|
|
221485
221656
|
data = originalData;
|
|
221486
221657
|
}
|
|
221487
221658
|
if ([...new Set(dataFrame.columnNames)].length < dataFrame.columnNames) {
|
|
221488
|
-
let warning = {
|
|
221489
|
-
|
|
221490
|
-
|
|
221491
|
-
|
|
221659
|
+
let warning = codedDiagnostic({
|
|
221660
|
+
type: "warning",
|
|
221661
|
+
code: "doenet-w0067",
|
|
221662
|
+
// A string, not a number: an internal index is a
|
|
221663
|
+
// name, and formatting it as a quantity would print
|
|
221664
|
+
// componentIdx 1234 as "1,234".
|
|
221665
|
+
args: { componentIdx: String(componentIdx) }
|
|
221666
|
+
});
|
|
221492
221667
|
return {
|
|
221493
221668
|
setValue: {
|
|
221494
221669
|
dataFrame: null,
|
|
@@ -221501,10 +221676,14 @@ class DataFrame extends BaseComponent {
|
|
|
221501
221676
|
};
|
|
221502
221677
|
}
|
|
221503
221678
|
if (dataFrame.columnNames.includes("")) {
|
|
221504
|
-
let warning = {
|
|
221505
|
-
|
|
221506
|
-
|
|
221507
|
-
|
|
221679
|
+
let warning = codedDiagnostic({
|
|
221680
|
+
type: "warning",
|
|
221681
|
+
code: "doenet-w0068",
|
|
221682
|
+
// A string, not a number: an internal index is a
|
|
221683
|
+
// name, and formatting it as a quantity would print
|
|
221684
|
+
// componentIdx 1234 as "1,234".
|
|
221685
|
+
args: { componentIdx: String(componentIdx) }
|
|
221686
|
+
});
|
|
221508
221687
|
return {
|
|
221509
221688
|
setValue: {
|
|
221510
221689
|
dataFrame: null,
|
|
@@ -225805,16 +225984,20 @@ class PretzelArranger extends CompositeComponent {
|
|
|
225805
225984
|
}
|
|
225806
225985
|
}
|
|
225807
225986
|
if (!validProblems) {
|
|
225808
|
-
diagnostics2.push(
|
|
225809
|
-
|
|
225810
|
-
|
|
225811
|
-
|
|
225987
|
+
diagnostics2.push(
|
|
225988
|
+
codedDiagnostic({
|
|
225989
|
+
type: "warning",
|
|
225990
|
+
code: "doenet-w0076"
|
|
225991
|
+
})
|
|
225992
|
+
);
|
|
225812
225993
|
}
|
|
225813
225994
|
if (dependencyValues.mode === "circuit" && distractors.includes(0)) {
|
|
225814
|
-
diagnostics2.push(
|
|
225815
|
-
|
|
225816
|
-
|
|
225817
|
-
|
|
225995
|
+
diagnostics2.push(
|
|
225996
|
+
codedDiagnostic({
|
|
225997
|
+
type: "error",
|
|
225998
|
+
code: "doenet-e0001"
|
|
225999
|
+
})
|
|
226000
|
+
);
|
|
225818
226001
|
}
|
|
225819
226002
|
return {
|
|
225820
226003
|
setValue: {
|
|
@@ -227874,10 +228057,11 @@ class Copy extends CompositeComponent {
|
|
|
227874
228057
|
return {
|
|
227875
228058
|
setValue: { numComponentsSpecified: null },
|
|
227876
228059
|
sendDiagnostics: [
|
|
227877
|
-
{
|
|
228060
|
+
codedDiagnostic({
|
|
227878
228061
|
type: "warning",
|
|
227879
|
-
|
|
227880
|
-
|
|
228062
|
+
code: "doenet-w0065",
|
|
228063
|
+
args: { type: dependencyValues.typeAttr }
|
|
228064
|
+
})
|
|
227881
228065
|
]
|
|
227882
228066
|
};
|
|
227883
228067
|
}
|
|
@@ -229058,15 +229242,27 @@ async function replacementFromProp({
|
|
|
229058
229242
|
endOffset
|
|
229059
229243
|
);
|
|
229060
229244
|
}
|
|
229061
|
-
diagnostics2.push(
|
|
229062
|
-
|
|
229063
|
-
|
|
229064
|
-
|
|
229245
|
+
diagnostics2.push(
|
|
229246
|
+
codedDiagnostic({
|
|
229247
|
+
type: "info",
|
|
229248
|
+
code: "doenet-i0018",
|
|
229249
|
+
args: {
|
|
229250
|
+
property: unresolvedPropName,
|
|
229251
|
+
component: replacementSource.componentType
|
|
229252
|
+
}
|
|
229253
|
+
})
|
|
229254
|
+
);
|
|
229065
229255
|
} else if (propName !== "__prop_name_not_found") {
|
|
229066
|
-
diagnostics2.push(
|
|
229067
|
-
|
|
229068
|
-
|
|
229069
|
-
|
|
229256
|
+
diagnostics2.push(
|
|
229257
|
+
codedDiagnostic({
|
|
229258
|
+
type: "info",
|
|
229259
|
+
code: "doenet-i0018",
|
|
229260
|
+
args: {
|
|
229261
|
+
property: propName,
|
|
229262
|
+
component: replacementSource.componentType
|
|
229263
|
+
}
|
|
229264
|
+
})
|
|
229265
|
+
);
|
|
229070
229266
|
}
|
|
229071
229267
|
return {
|
|
229072
229268
|
serializedReplacements: [],
|
|
@@ -233135,4 +233331,4 @@ export {
|
|
|
233135
233331
|
getDefaultExportFromCjs as g,
|
|
233136
233332
|
updateSyntaxFromV06toV07 as u
|
|
233137
233333
|
};
|
|
233138
|
-
//# sourceMappingURL=index-
|
|
233334
|
+
//# sourceMappingURL=index-COAzIB6H.js.map
|