@pie-qti/player-elements 1.0.0-beta.2 → 1.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +25 -0
  2. package/dist/{ItemToolBar-4vq9nbxz-BbBw5mfK.js → ItemToolBar-4vq9nbxz-BN3JvSlf.js} +2 -2
  3. package/dist/{ItemToolBar-4vq9nbxz-BbBw5mfK.js.map → ItemToolBar-4vq9nbxz-BN3JvSlf.js.map} +1 -1
  4. package/dist/{ItemToolBar-n05xjkp8-Bb3g018Z.js → ItemToolBar-n05xjkp8-s0LE1L99.js} +2 -2
  5. package/dist/{ItemToolBar-n05xjkp8-Bb3g018Z.js.map → ItemToolBar-n05xjkp8-s0LE1L99.js.map} +1 -1
  6. package/dist/{define-B-ocInH4.js → define-ourVMSDV.js} +3209 -3284
  7. package/dist/define-ourVMSDV.js.map +1 -0
  8. package/dist/{dist-BAMUxWGI.js → dist-DDJeoR_F.js} +2 -2
  9. package/dist/{dist-BAMUxWGI.js.map → dist-DDJeoR_F.js.map} +1 -1
  10. package/dist/{element-DjIUtH7W.js → element-Dfkkf4u9.js} +2 -2
  11. package/dist/{element-DjIUtH7W.js.map → element-Dfkkf4u9.js.map} +1 -1
  12. package/dist/elements.js +2 -2
  13. package/dist/index.js +1 -1
  14. package/dist/{item-scope-element-C1EO-QUs.js → item-scope-element-C68JDVe6.js} +3 -3
  15. package/dist/{item-scope-element-C1EO-QUs.js.map → item-scope-element-C68JDVe6.js.map} +1 -1
  16. package/dist/{item-toolbar-element-uc1jClIg.js → item-toolbar-element-Cw7RyDtR.js} +3 -3
  17. package/dist/{item-toolbar-element-uc1jClIg.js.map → item-toolbar-element-Cw7RyDtR.js.map} +1 -1
  18. package/dist/{mathlive.min-CVIUc7ff-rQOKt03P.js → mathlive.min-Cmxm6f5R-rQOKt03P.js} +1 -1
  19. package/dist/mathlive.min-Cmxm6f5R-rQOKt03P.js.map +1 -0
  20. package/dist/{pie-assessment-toolkit-element-Bf3-xqs9.js → pie-assessment-toolkit-element-B27OKfS_.js} +6 -6
  21. package/dist/{pie-assessment-toolkit-element-Bf3-xqs9.js.map → pie-assessment-toolkit-element-B27OKfS_.js.map} +1 -1
  22. package/dist/{pie-tool-calculator-CeZzHMSB.js → pie-tool-calculator-Cgf2H71j.js} +3 -3
  23. package/dist/{pie-tool-calculator-CeZzHMSB.js.map → pie-tool-calculator-Cgf2H71j.js.map} +1 -1
  24. package/dist/{provider-CA-nda-g.js → provider-CATDgKxn.js} +2 -2
  25. package/dist/{provider-CA-nda-g.js.map → provider-CATDgKxn.js.map} +1 -1
  26. package/dist/public/api.d.ts +7 -1
  27. package/dist/register-players.js +1 -1
  28. package/dist/register.js +6038 -5913
  29. package/dist/register.js.map +1 -1
  30. package/dist/{resolveItems-D_WkE5eY.js → resolveItems-I-oHhRIF.js} +5469 -5332
  31. package/dist/resolveItems-I-oHhRIF.js.map +1 -0
  32. package/dist/{sre-engine-Bgjl6uRf.js → sre-engine-D_8yta1z.js} +2 -2
  33. package/dist/{sre-engine-Bgjl6uRf.js.map → sre-engine-D_8yta1z.js.map} +1 -1
  34. package/dist/{sre-engine-dq0w45fv-CuD0rBMR.js → sre-engine-dq0w45fv-Pifv3fxn.js} +2 -2
  35. package/dist/{sre-engine-dq0w45fv-CuD0rBMR.js.map → sre-engine-dq0w45fv-Pifv3fxn.js.map} +1 -1
  36. package/dist/{tool-tts-inline-D9WVRkOQ.js → tool-tts-inline-Dc_b7ajH.js} +3 -3
  37. package/dist/{tool-tts-inline-D9WVRkOQ.js.map → tool-tts-inline-Dc_b7ajH.js.map} +1 -1
  38. package/package.json +10 -10
  39. package/dist/define-B-ocInH4.js.map +0 -1
  40. package/dist/mathlive.min-CVIUc7ff-rQOKt03P.js.map +0 -1
  41. package/dist/resolveItems-D_WkE5eY.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { C as e, b as t, w as n, x as r } from "./define-B-ocInH4.js";
1
+ import { C as e, b as t, w as n, x as r } from "./define-ourVMSDV.js";
2
2
  //#region ../../node_modules/.bun/@pie-players+pie-players-shared@1.0.0-beta.6/node_modules/@pie-players/pie-players-shared/dist/i18n/messages/en-US.js
3
3
  var i = {
4
4
  common: {
@@ -875,4 +875,4 @@ function y(e, n) {
875
875
  //#endregion
876
876
  export { i as a, y as i, u as n, v as r, a as t };
877
877
 
878
- //# sourceMappingURL=provider-CA-nda-g.js.map
878
+ //# sourceMappingURL=provider-CATDgKxn.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"provider-CA-nda-g.js","names":["normalizeLanguageTag","canonicalLanguageTag","toLanguageTag","findBestLanguageMatch","enUS","DEFAULT_LOCALE","RTL_LANGUAGES","PLURAL_CATEGORIES","isPluralGroup","node","keys","key","localeDirection","textInfo","locale","language","SimpleI18n","config","messages","request","resolved","inFlight","load","message","interpolate","values","group","options","listener","tag","deepMerge","view","value","date","translations","available","exactOrPrefix","requestedLanguage","candidate","error","sources","source","hit","readPath","rules","count","current","part","numberFormats","formatNumber","formatter","text","name","match","result","target","existing","defaultProvider","getDefaultI18n","resolveInterfaceI18n","provider","stampInterfaceLocale"],"sources":["../../../node_modules/.bun/@pie-players+pie-players-shared@1.0.0-beta.6/node_modules/@pie-players/pie-players-shared/dist/i18n/messages/en-US.js","../../../node_modules/.bun/@pie-players+pie-players-shared@1.0.0-beta.6/node_modules/@pie-players/pie-players-shared/dist/i18n/provider.js"],"sourcesContent":["/**\n * English (United States) message catalog — the source of truth.\n *\n * This catalog's *shape* generates `MessageKey`, so every other locale is\n * checked against it and a mistyped key at a call site is a compile error. Add a\n * key here first.\n *\n * A TypeScript module rather than JSON: `tsc` compiles it to real JS, which\n * removes the `with { type: \"json\" }` import-attribute hazard that already broke\n * every non-English locale once under Node's ESM loader, and it lets the key\n * union be derived rather than maintained.\n *\n * Conventions:\n * - `{placeholder}` slots interpolate; keep the names stable across locales.\n * - A plural group is an object of CLDR categories; `other` is required and\n * `Intl.PluralRules` picks the rest, so a locale may carry more forms than\n * English has.\n * - Keys ending `A11y` are for assistive technology only and are never rendered\n * as visible text. They carry the operating instructions a sighted user reads\n * from the layout.\n * - Developer-facing diagnostics (`throw`/`console`) are deliberately absent.\n * Only strings a learner, teacher or author can see belong here.\n *\n * @module @pie-players/pie-players-shared/i18n/messages/en-US\n */\nconst enUS = {\n /** Verbs and nouns reused across more than one package. */\n common: {\n close: \"Close\",\n cancel: \"Cancel\",\n save: \"Save\",\n reset: \"Reset\",\n retry: \"Retry\",\n back: \"Back\",\n next: \"Next\",\n previous: \"Previous\",\n submit: \"Submit\",\n continue: \"Continue\",\n finish: \"Finish\",\n yes: \"Yes\",\n no: \"No\",\n ok: \"OK\",\n any: \"Any\",\n off: \"Off\",\n auto: \"Auto\",\n all: \"All\",\n none: \"None\",\n loading: \"Loading…\",\n error: \"Error\",\n settings: \"Settings\",\n language: \"Language\",\n theme: \"Theme\",\n preview: \"Preview\",\n author: \"Author\",\n unknown: \"Unknown\",\n untitled: \"Untitled\",\n apply: \"Apply\",\n enabled: \"Enabled\",\n disabled: \"Disabled\",\n lookUp: \"Look up\",\n wordOrPhrase: \"Word or phrase\",\n closeA11y: \"Close\",\n settingsA11y: \"Open settings menu\",\n },\n /**\n * Player chrome: the section, item and assessment players' own surfaces.\n * Not the authored content, which carries its own language.\n */\n player: {\n passage: \"Passage\",\n passages: \"Passages\",\n question: \"Question\",\n questionNumbered: \"Question {position}\",\n questions: \"Questions\",\n items: \"Items\",\n section: \"Section\",\n loadingSection: \"Loading section content…\",\n sectionLoadError: \"Section content could not be loaded.\",\n loadingPassage: \"Loading passage content…\",\n configurationError: \"Configuration Error\",\n playerError: \"Player Error\",\n authoringBackendError: \"Authoring Backend Configuration Error\",\n itemLoadError: \"Question could not be loaded.\",\n sectionTabsA11y: \"Section content tabs\",\n passagesRegionA11y: \"Passages\",\n itemsRegionA11y: \"Items\",\n sectionToolsA11y: \"Section tools\",\n scrollDownA11y: \"Scroll down\",\n resizePanels: \"Resize panels\",\n resizePassagesAndItemsA11y: \"Resize passages and items panels\",\n resizeMediaRegion: \"Resize media region\",\n resizeQuestionAndMediaA11y: \"Resize question and media panels\",\n resizePassageAndMediaA11y: \"Resize passage and media panels\",\n resizePassageAndQuestionA11y: \"Resize passage and question panels\",\n passageWidthA11y: \"{percent}% passage width\",\n /**\n * The section player's navigation live region, announced when the active\n * item changes; `{label}` is the item's own label when it has one.\n */\n questionPositionA11y: \"Question {position} of {total}\",\n questionPositionLabeledA11y: \"{label}, question {position} of {total}\",\n /**\n * The assessment player's own section-to-section navigation. Its Back and\n * Next controls take `common.back` / `common.next`.\n */\n assessment: {\n sectionPosition: \"Section {position} of {total}\",\n noSections: \"No sections\",\n loadFailed: \"The assessment could not be loaded. Try again.\",\n restoreFailed: \"Your saved answers for this section could not be restored. Try again.\",\n },\n /** Formative delivery: check-answer control and its outcome announcements. */\n formative: {\n checkAnswer: \"Check answer\",\n tryAgain: \"Try again\",\n answerRecorded: \"Answer recorded.\",\n correct: \"Correct.\",\n partlyCorrect: \"Partly correct.\",\n notCorrect: \"Not correct.\",\n notAutoScored: \"Answer recorded. This question is not scored automatically.\",\n checkFailed: \"This question could not be checked. Try again.\",\n /**\n * Appended after the outcome, so the announcement reads\n * \"Not correct. 2 tries left.\" Kept a separate plural group rather than\n * folded into each outcome: the tries count varies independently of\n * correctness, and cross-multiplying them is 4 x N strings.\n */\n triesLeft: {\n one: \"{count} try left.\",\n other: \"{count} tries left.\",\n },\n },\n /**\n * Timed media: what the learner is told as the timeline reveals questions and\n * a gate holds playback. Announced through a polite live region and shown as\n * visible text, because a pause the learner did not ask for has to be\n * perceivable without hearing it (WCAG 1.1.1, 4.1.3).\n */\n timedMedia: {\n waitingForMedia: \"Questions will appear as the media plays.\",\n questionAvailable: \"Question {position} is now available.\",\n /** Playback really is stopped: the media source reported it can pause. */\n playbackPaused: \"Playback paused. Answer question {position} to continue.\",\n /**\n * The same gate where the source cannot pause. Worded as a request rather\n * than a statement, because claiming playback stopped when it did not is\n * exactly the silent degradation this contract refuses.\n */\n playbackAdvisory: \"Answer question {position} before continuing with the media.\",\n playbackReleased: \"Answer accepted. Continue playing the media.\",\n },\n /**\n * `<pie-item-summary>`: an item described as a list row, without loading its\n * elements. The correct marker's glyph is hidden from assistive technology,\n * which reads `correctA11y` instead.\n */\n summary: {\n correctA11y: \"Correct answer\",\n answer: \"Answer\",\n manualScoring: \"Scored by a teacher\",\n audio: \"Audio\",\n video: \"Video\",\n },\n /** `<pie-item-list>`. */\n list: {\n /** The row toggle, a disclosure button whose `aria-expanded` carries the state, so its label stays the same either way. */\n expandA11y: \"Show the full item\",\n /** Names the block of an entry's search matches below its summary. */\n highlights: \"Search matches\",\n /** The row toggle's tooltip while the row is expanded: collapsing returns it to the summary. */\n collapse: \"Show the summary\",\n /** Shown in an expanded row whose player failed to load; the summary keeps showing above it. */\n playerError: \"The full item could not be loaded.\",\n },\n },\n /** Toolbar and tool-shell chrome owned by the assessment toolkit. */\n toolkit: {\n toolsA11y: \"Assessment tools\",\n toolbarInitError: \"Unable to initialize assessment toolkit.\",\n settingsTitle: \"Settings\",\n closeSettingsA11y: \"Close settings\",\n dragPanelA11y: \"Drag panel\",\n closePanelA11y: \"Close panel\",\n resizeWindow: \"Resize window\",\n minimize: \"Minimize\",\n maximize: \"Maximize\",\n minimizePanelA11y: \"Minimize panel\",\n maximizePanelA11y: \"Maximize panel\",\n /** Tool-window keyboard controls, exposed only to assistive technology. */\n window: {\n moveLeftA11y: \"Move tool left\",\n moveRightA11y: \"Move tool right\",\n moveUpA11y: \"Move tool up\",\n moveDownA11y: \"Move tool down\",\n narrowerA11y: \"Make tool window narrower\",\n widerA11y: \"Make tool window wider\",\n shorterA11y: \"Make tool window shorter\",\n tallerA11y: \"Make tool window taller\",\n centerA11y: \"Center tool window\",\n closeA11y: \"Close tool\",\n },\n /**\n * The tap controls that move, turn and resize a placed tool without a\n * drag. The move buttons reuse the `window` labels above.\n */\n placement: {\n controlsA11y: \"Move and rotate\",\n moveAndResizeA11y: \"Move and resize\",\n rotateClockwiseA11y: \"Rotate {degrees}° clockwise\",\n rotateCounterclockwiseA11y: \"Rotate {degrees}° counterclockwise\",\n },\n /**\n * Live-region announcements shared by the draggable tools — ruler,\n * protractor, line reader. Keyboard movement and rotation read the same in\n * every one of them, so the strings live once here rather than per tool.\n */\n announce: {\n movedUp: \"Moved up to {position}\",\n movedDown: \"Moved down to {position}\",\n movedLeft: \"Moved left to {position}\",\n movedRight: \"Moved right to {position}\",\n rotatedTo: \"Rotated to {degrees} degrees\",\n },\n },\n /**\n * Per-capability strings, keyed by `toolId`.\n *\n * `name` and `description` back `ToolRegistration.nameKey` /\n * `descriptionKey`, so the toolbar label and the registration contract read\n * the same catalog entry.\n */\n tools: {\n calculator: {\n name: \"Calculator\",\n nameBasic: \"Basic Calculator\",\n nameScientific: \"Scientific Calculator\",\n nameGraphing: \"Graphing Calculator\",\n description: \"Multi-type calculator (basic, scientific, graphing)\",\n // Announced by the inline calculator's toggle. One key per variant and\n // state rather than \"{name} opened\": Dutch and German put the participle\n // last, so the sentence has to be authored whole. All three variants the\n // provider implements are covered, not just the two the packaged toolbar\n // registration offers — the inline element takes its type from the host.\n openedBasic: \"Basic calculator opened\",\n openedScientific: \"Scientific calculator opened\",\n openedGraphing: \"Graphing calculator opened\",\n closedBasic: \"Basic calculator closed\",\n closedScientific: \"Scientific calculator closed\",\n closedGraphing: \"Graphing calculator closed\",\n toolA11y: \"Calculator tool\",\n loading: \"Loading calculator…\",\n providerUnavailable: \"The calculator is unavailable.\",\n initFailed: \"Calculator failed to initialize.\",\n },\n graph: {\n name: \"Graph\",\n description: \"Coordinate plane\",\n buttonA11y: \"Graph, coordinate plane\",\n tooltip: \"Graph\",\n toolA11y: \"Graph tool — draw points and lines on a coordinate grid\",\n canvasA11y: \"Graph canvas — use tools to add points and draw lines\",\n grid: \"Grid:\",\n gridOpacityA11y: \"Grid opacity\",\n pointA11y: \"Graph point {id}\",\n modeSelector: \"Selector\",\n modeSelectorHint: \"Selector: click and drag points to move them or associated lines.\",\n modePoint: \"Point\",\n modePointHint: \"Point: click on the grid to add points.\",\n modeLine: \"Line\",\n modeLineHint: \"Line: click a starting point, then an ending point to draw a line.\",\n modeDelete: \"Delete\",\n modeDeleteHint: \"Delete: click on a point to delete it and any connected lines.\",\n },\n periodicTable: {\n name: \"Periodic Table\",\n description: \"Chemistry periodic table reference\",\n buttonA11y: \"Periodic Table, chemistry reference\",\n tooltip: \"Periodic Table\",\n toolA11y: \"Periodic table — select an element to view its details\",\n elementsA11y: \"Periodic table elements\",\n showAllA11y: \"Show all elements\",\n allElements: \"All Elements\",\n atomicMass: \"Atomic Mass\",\n atomicNumber: \"Atomic No\",\n electronConfig: \"Electron Config\",\n phase: \"Phase\",\n filterByA11y: \"Filter by {category}\",\n /**\n * Element cell label. Element *names* come from the periodic-table data\n * file, not from here: they are content, and a locale that renames them\n * needs a translated data file rather than 118 catalog keys.\n */\n elementA11y: \"{name}, Symbol: {symbol}, Atomic number: {number}, Atomic mass: {mass}, Category: {category}\",\n outsideFilterA11y: \", outside the current filter\",\n /** IUPAC element categories. Chemistry nomenclature, translated per locale. */\n category: {\n unknown: \"Unknown\",\n alkaliMetal: \"Alkali Metal\",\n alkalineEarthMetal: \"Alkaline Earth Metal\",\n transitionMetal: \"Transition Metal\",\n postTransitionMetal: \"Post-transition Metal\",\n metalloid: \"Metalloid\",\n diatomicNonmetal: \"Diatomic Nonmetal\",\n polyatomicNonmetal: \"Polyatomic Nonmetal\",\n nobleGas: \"Noble Gas\",\n lanthanide: \"Lanthanide\",\n actinide: \"Actinide\",\n },\n },\n ruler: {\n name: \"Ruler\",\n description: \"On-screen ruler for measurements\",\n buttonA11y: \"Ruler\",\n tooltip: \"Ruler\",\n toolA11y: \"Draggable and rotatable ruler measurement tool\",\n unitSelectionA11y: \"Ruler unit selection\",\n inches: \"Inches\",\n centimeters: \"Centimeters\",\n // Second form of each unit name, for interpolation into a sentence —\n // `switchedTo`, `applicationA11y`, `imageAlt`. English needs it for\n // sentence case; a language that capitalises nouns everywhere will have\n // the two forms identical. Both are spelled out rather than abbreviated\n // because every one of those three is read aloud, and a screen reader\n // says \"cm\" as two letters.\n inchesInSentence: \"inches\",\n centimetersInSentence: \"centimeters\",\n switchToInchesA11y: \"Switch to inches\",\n switchToCentimetersA11y: \"Switch to centimeters\",\n switchedTo: \"Switched to {unit}\",\n applicationA11y: \"Ruler tool. Use arrow keys to move, Shift+arrows to rotate, PageUp or PageDown for fine rotation, U to toggle units. Current unit: {unit}\",\n imageAlt: \"Ruler showing {unit}\",\n },\n protractor: {\n name: \"Protractor\",\n description: \"On-screen protractor for angle measurements\",\n buttonA11y: \"Protractor\",\n tooltip: \"Protractor\",\n toolA11y: \"Protractor tool. Use arrow keys to move, Shift+arrows to rotate, and PageUp or PageDown for fine rotation.\",\n roleA11y: \"Draggable and rotatable protractor measurement tool\",\n imageAlt: \"Protractor with 180-degree semicircular scale marked from 0 to 180 degrees in both directions, with degree markings every 10 degrees\",\n },\n /**\n * The two dictionaries. `toolA11y` names the floating panel; the button\n * names follow the toolbar rule — the tooltip verbatim, plus a purpose\n * clause only where the tooltip alone does not identify the tool.\n */\n dictionary: {\n name: \"Dictionary\",\n description: \"Look up word definitions\",\n buttonA11y: \"Dictionary, look up word definitions\",\n tooltip: \"Dictionary\",\n toolA11y: \"Dictionary\",\n // The lookup panel's notices are authored whole: the term interpolates\n // into the sentence, never around it.\n notConfigured: \"No dictionary service is configured for this assessment.\",\n idleHint: \"Type a word to look it up.\",\n lookingUp: \"Looking up “{term}”…\",\n noEntryFor: \"No entry for “{term}”.\",\n // The polite live-region status after a lookup: the count summary and\n // the no-entry announcement, phrased without the quotation marks the\n // visible notices carry. The count calls plural(), never a `=== 1`\n // branch.\n entriesCount: {\n one: \"{count} entry\",\n other: \"{count} entries\",\n },\n noEntryStatusFor: \"No dictionary entry for {term}.\",\n },\n pictureDictionary: {\n name: \"Picture Dictionary\",\n description: \"Look up pictures for words\",\n buttonA11y: \"Picture Dictionary, look up pictures for words\",\n tooltip: \"Picture Dictionary\",\n toolA11y: \"Picture Dictionary\",\n notConfigured: \"No picture dictionary service is configured for this assessment.\",\n idleHint: \"Type a word to see a picture of it.\",\n lookingUp: \"Looking up “{term}”…\",\n noEntryFor: \"No picture for “{term}”.\",\n entriesCount: {\n one: \"{count} picture\",\n other: \"{count} pictures\",\n },\n noEntryStatusFor: \"No picture for {term}.\",\n },\n /**\n * The Spanish variants. Named in the interface locale like every other tool label —\n * a Dutch-speaking proctor reading a Dutch interface still sees which language the\n * dictionary looks words up in.\n */\n dictionarySpanish: {\n name: \"Spanish Dictionary\",\n description: \"Look up word definitions in Spanish\",\n buttonA11y: \"Spanish Dictionary, look up word definitions in Spanish\",\n tooltip: \"Spanish Dictionary\",\n toolA11y: \"Spanish Dictionary\",\n },\n pictureDictionarySpanish: {\n name: \"Spanish Picture Dictionary\",\n description: \"Look up pictures for words in Spanish\",\n buttonA11y: \"Spanish Picture Dictionary, look up pictures for words in Spanish\",\n tooltip: \"Spanish Picture Dictionary\",\n toolA11y: \"Spanish Picture Dictionary\",\n },\n lineReader: {\n name: \"Line Reader\",\n description: \"Reading guide overlay\",\n buttonA11y: \"Line Reader, reading guide\",\n tooltip: \"Line Reader\",\n roleA11y: \"Draggable and resizable reading guide overlay\",\n close: \"Close line reader\",\n resizeWindowA11y: \"Drag to resize the reading window\",\n resizeFrameA11y: \"Drag to resize the frame and window width\",\n windowHeightAnnounce: \"Reading window height {pixels} pixels\",\n frameHeightAnnounce: \"Frame height {pixels} pixels\",\n widthAnnounce: \"Width {pixels} pixels\",\n shorterWindowA11y: \"Make the reading window shorter\",\n tallerWindowA11y: \"Make the reading window taller\",\n shorterFrameA11y: \"Make the frame shorter\",\n tallerFrameA11y: \"Make the frame taller\",\n narrowerA11y: \"Make the line reader narrower\",\n widerA11y: \"Make the line reader wider\",\n applicationA11y: \"Line Reader tool. A clear reading window inside an obscuring frame. Use arrow keys to move, +/- to resize the reading window, Escape to close. Reading window height: {paneHeight} pixels, Frame height: {frameHeight} pixels\",\n resizeWindowFullA11y: \"Resize the reading window. Drag, or use the up and down arrow keys to change its height. Current height {paneHeight} pixels\",\n resizeFrameFullA11y: \"Resize the frame. Drag, or use the up and down arrow keys to change the frame height and the left and right arrow keys to change the width. Current frame height {frameHeight} pixels, width {width} pixels\",\n },\n magnification: {\n name: \"Magnifier\",\n description: \"Magnify the content under a movable lens\",\n buttonA11y: \"Magnifier, enlarge the content under a lens\",\n tooltip: \"Magnifier\",\n roleA11y: \"Draggable and resizable magnifying lens\",\n applicationA11y: \"Magnifier at {zoom} times. Use the arrow keys to move the lens, + and - to change the zoom, and Escape to close.\",\n zoomIn: \"Zoom in\",\n zoomOut: \"Zoom out\",\n zoomLevel: \"{zoom}×\",\n zoomAnnounce: \"Zoom {zoom} times\",\n close: \"Close magnifier\",\n resizeA11y: \"Drag to resize the magnifier\",\n resizeFullA11y: \"Resize the magnifier. Drag, or use the arrow keys. Current size {width} by {height} pixels\",\n sizeAnnounce: \"Magnifier {width} by {height} pixels\",\n narrowerA11y: \"Make the magnifier narrower\",\n widerA11y: \"Make the magnifier wider\",\n shorterA11y: \"Make the magnifier shorter\",\n tallerA11y: \"Make the magnifier taller\",\n },\n answerEliminator: {\n name: \"Answer Eliminator\",\n description: \"Strike through answer choices\",\n buttonA11y: \"Strike Through, eliminate answer choices\",\n tooltip: \"Strike Through\",\n },\n highlighter: {\n name: \"Highlighter\",\n description: \"Highlight and annotate text\",\n buttonA11y: \"Highlight text\",\n tooltip: \"Highlight\",\n },\n annotationToolbar: {\n name: \"Annotation\",\n description: \"Highlight and annotate text\",\n buttonA11y: \"Annotate, highlight and mark up text\",\n // Not \"Highlight\": that is `tools.highlighter.tooltip`, and two toolbar\n // buttons carrying the same visible label is a defect rather than a style\n // choice. This tool does more than highlight — underline, remove, clear.\n tooltip: \"Annotate\",\n toolbarA11y: \"Text annotation toolbar\",\n underline: \"Underline\",\n underlineA11y: \"Underline selected text\",\n readAloud: \"Read Aloud\",\n readAloudA11y: \"Read selected text aloud\",\n remove: \"Remove\",\n removeA11y: \"Remove this annotation\",\n clearAll: \"Clear All\",\n clearAllA11y: \"Clear all annotations from document\",\n highlightYellowA11y: \"Yellow highlight\",\n highlightPinkA11y: \"Pink highlight\",\n highlightBlueA11y: \"Blue highlight\",\n highlightGreenA11y: \"Green highlight\",\n },\n theme: {\n name: \"Theme\",\n description: \"Accessible themes and contrast\",\n buttonA11y: \"Theme, change colors and contrast\",\n tooltip: \"Theme\",\n selectorA11y: \"Theme selector\",\n hint: \"Select a theme to improve readability and reduce eye strain.\",\n selectA11y: \"Select theme\",\n selectCurrentA11y: \"Select theme. Current theme: {name}\",\n optionUnavailableA11y: \"{name}, unavailable\",\n unavailableName: \"Unavailable theme: {id}\",\n unavailableDescription: \"PIE's managed base theme remains active until this theme becomes available again.\",\n unavailableStatus: \"The selected theme is unavailable. PIE's managed base theme is active until it becomes available again.\",\n },\n textToSpeech: {\n name: \"Text to Speech\",\n description: \"Read content aloud\",\n initFailed: \"Unable to initialize text-to-speech. Try again.\",\n /** Inline reading controls and their live-region announcements. */\n inline: {\n controlsA11y: \"Reading controls\",\n playbackSpeedA11y: \"Playback speed\",\n rewindA11y: \"Rewind\",\n fastForwardA11y: \"Fast-forward\",\n stopA11y: \"Stop reading\",\n starting: \"Starting reading\",\n started: \"Reading started\",\n resumed: \"Reading resumed\",\n pausedAnnouncement: \"Reading paused\",\n stopped: \"Reading stopped\",\n switchedSection: \"Reading switched to another section\",\n nothingToRead: \"Nothing to read aloud here\",\n startFailed: \"Unable to start reading\",\n skippedForward: \"Skipped forward\",\n skipForwardFailed: \"Unable to skip forward\",\n skippedBackward: \"Skipped backward\",\n skipBackwardFailed: \"Unable to skip backward\",\n speedChangeFailed: \"Unable to change playback speed\",\n speedAnnounce: \"Playback speed {label}\",\n playA11y: \"Play reading\",\n pauseA11y: \"Pause reading\",\n resumeA11y: \"Resume reading\",\n },\n },\n signLanguage: {\n name: \"Sign Language\",\n description: \"Signed alternate for authored content\",\n /**\n * Names of the signed language itself, keyed by its ISO 639-3 code.\n *\n * The name of the *adaptation*, never inferred from the item's content\n * language. `signedEnglish` is not a distinct sign language; it rides\n * the same card type tagged with a spoken-language code.\n */\n generic: \"Sign language\",\n unknown: \"Sign language ({code})\",\n ase: \"American Sign Language\",\n bfi: \"British Sign Language\",\n fsl: \"French Sign Language\",\n gss: \"Greek Sign Language\",\n mfs: \"Mexican Sign Language\",\n signedEnglish: \"Signed English\",\n regionA11y: \"{language} translation\",\n },\n audioTranscript: {\n name: \"Audio Transcript\",\n description: \"Text transcript of audio content\",\n regionA11y: \"Transcript\",\n },\n },\n /**\n * Developer panel chrome.\n *\n * These packages ship as published custom elements, so their chrome is\n * localized like any other. The JSON payloads they dump are data, not\n * message content, and stay as authored.\n */\n debug: {\n session: \"Session\",\n sessionData: \"Session Data\",\n sessionDataPersistent: \"PIE Session Data (Persistent)\",\n noItemSessionYet: \"No item session data yet. Interact with the item to see updates here.\",\n itemSessionsSnapshot: \"Item Sessions Snapshot\",\n sectionControllerUnavailable: \"Section controller not available for this section yet.\",\n filteredModel: \"Filtered Model\",\n environment: \"Environment\",\n events: \"Events\",\n controllerEvents: \"Controller Events\",\n instrumentation: \"Instrumentation\",\n databaseState: \"Database state\",\n sessionDb: \"Session DB (Server)\",\n noRows: \"No rows\",\n noRecords: \"No instrumentation records yet.\",\n selectRecord: \"Select a record to inspect details.\",\n selectEvent: \"Select an event to inspect payload details.\",\n showRawTables: \"Show raw tables\",\n showReconstructedSnapshots: \"Show reconstructed snapshots\",\n showSectionRequest: \"Show section request\",\n showAssessmentRequest: \"Show assessment request\",\n liveUpdatesUnsupported: \"Live updates are not supported in this browser\",\n liveUpdatesDisconnected: \"Live updates disconnected; retrying…\",\n fieldType: \"Type:\",\n fieldTarget: \"Target:\",\n fieldItem: \"Item:\",\n fieldCanonical: \"Canonical:\",\n fieldIntent: \"Intent:\",\n fieldDuplicates: \"Duplicates:\",\n fieldSemanticRepeats: \"Semantic Repeats:\",\n dragItemSessionPanelA11y: \"Drag item session panel\",\n debuggerTabsA11y: \"Debugger tabs\",\n sessionDataJsonA11y: \"Session data JSON\",\n environmentJsonA11y: \"Environment JSON\",\n filteredModelJsonA11y: \"Filtered model JSON\",\n sectionSessionJsonA11y: \"Section session snapshot JSON\",\n eventLevelFilterA11y: \"Event level filter\",\n controllerEventDetailsA11y: \"Controller event details\",\n instrumentationFilterA11y: \"Filter instrumentation record type\",\n instrumentationDetailsA11y: \"Instrumentation record details\",\n toggleSessionPanelA11y: \"Toggle session panel\",\n toggleEventPanelA11y: \"Toggle event broadcast panel\",\n toggleDatabasePanelA11y: \"Toggle database state panel\",\n toggleInstrumentationPanelA11y: \"Toggle instrumentation panel\",\n // Panel actions and status. \"clear\"/\"pause\"/\"resume\" stay lowercase in\n // English to match the dev panels' chrome; locales render their own\n // register.\n clear: \"clear\",\n pause: \"pause\",\n resume: \"resume\",\n controllerUnavailable: \"controller unavailable\",\n noMatchingEvents: \"No matching events yet. Interact with an item to capture controller events.\",\n noSectionSessionYet: \"No section session data yet. Interact with the questions to see updates.\",\n eventLevelItem: \"item\",\n eventLevelSection: \"section\",\n // Instrumentation record-kind identifiers. They name the emitted\n // records, so every locale carries them verbatim; a locale that\n // prefers translated labels can override per key.\n instrumentationKindAll: \"all\",\n instrumentationKindEvent: \"event\",\n instrumentationKindError: \"error\",\n instrumentationKindMetric: \"metric\",\n instrumentationKindUserContext: \"user-context\",\n instrumentationKindGlobalAttributes: \"global-attributes\",\n // Instrumentation detail-field labels.\n instrumentationFieldName: \"name:\",\n instrumentationFieldKind: \"kind:\",\n instrumentationFieldProvider: \"provider:\",\n instrumentationFieldTimestamp: \"timestamp:\",\n instrumentationFieldValue: \"value:\",\n instrumentationFieldError: \"error:\",\n // Session-db payload field names — identifiers, verbatim across\n // locales like the record kinds above.\n sessionDbAssessmentId: \"assessmentId:\",\n sessionDbSectionId: \"sectionId:\",\n sessionDbAttemptId: \"attemptId:\",\n sessionDbMode: \"mode:\",\n /** PNP debugger. */\n pnp: {\n title: \"PNP Profile\",\n noAssessmentBound: \"No assessment bound\",\n noAssessmentBoundBody: \"Profile, district and test-administration policy have nothing to read, so only an item's requiredTools can grant an accommodation. Pass the assessment to the toolkit's assessment property, or call updateAssessment(...) on the toolkit coordinator.\",\n determinationReadOnly: \"Determination (read-only)\",\n toolsEditor: \"Tools Editor\",\n enforcement: \"PNP enforcement\",\n allAvailableTools: \"All available tools\",\n clearPlacement: \"Clear placement\",\n tool: \"Tool\",\n placement: \"Placement\",\n provider: \"Provider\",\n simulation: \"PNP simulation\",\n resolvedTools: \"Resolved Tools (toolkit)\",\n provenanceSummary: \"Tool Policy Provenance Summary\",\n perToolDecisions: \"Per-Tool Decisions\",\n policyDiagnostics: \"Policy Diagnostics\",\n profileReadOnly: \"PNP Profile (read-only)\",\n on: \"On\",\n effective: \"Effective:\",\n needs: \"needs\",\n hostSurfaceNotPlaced: \"host surface (not placed)\",\n support: \"support\",\n prohibit: \"prohibit\",\n },\n /** TTS settings panel. */\n tts: {\n title: \"TTS settings\",\n closeA11y: \"Close TTS settings\",\n toolbarLayoutMode: \"Toolbar layout mode\",\n reservedRow: \"Reserved row\",\n expandingRow: \"Expanding row\",\n floatingOverlay: \"Floating overlay\",\n leftAlignedControls: \"Left-aligned controls\",\n inlineSpeedButtons: \"Inline speed buttons\",\n resetToDefaults: \"Reset to defaults\",\n mathHighlighting: \"Math highlighting\",\n checkingAvailability: \"Checking availability…\",\n recheck: \"Recheck\",\n voice: \"Voice\",\n bestAvailableVoice: \"Best available voice (auto)\",\n unnamedVoice: \"Unnamed voice\",\n apiEndpoint: \"API endpoint\",\n gender: \"Gender\",\n any: \"Any\",\n male: \"Male\",\n female: \"Female\",\n neutral: \"Neutral\",\n engine: \"Engine\",\n neural: \"Neural\",\n standard: \"Standard\",\n providerDefault: \"Provider default\",\n format: \"Format\",\n sampleRate: \"Sample rate\",\n speechMarks: \"Speech marks\",\n word: \"Word\",\n wordAndSentence: \"Word + sentence\",\n voiceType: \"Voice type\",\n wavenetVoiceType: \"WaveNet\",\n studioVoiceType: \"Studio\",\n plainText: \"Plain text\",\n sampleText: \"Sample text\",\n resetSample: \"Reset sample\",\n providerAvailable: \"Provider available.\",\n providerUnavailable: \"Provider unavailable.\",\n providerCheckFailed: \"Provider availability check failed.\",\n providerNotChecked: \"Provider availability has not been checked yet.\",\n webSpeechUnavailable: \"Web Speech API is not available in this browser.\",\n browserNoVoices: \"Browser text-to-speech is available, but no voices were returned yet.\",\n browserUnavailable: \"Browser text-to-speech is not available.\",\n googleUnavailable: \"Google Cloud TTS is not available from the configured API.\",\n // No keys for the preview sample text: it is spoken by the voice under\n // test, so its language follows that voice, not the interface locale.\n pollyUnavailable: \"AWS Polly is not available from the configured API.\",\n recommendedVoices: \"Recommended voices\",\n allVoices: \"All available voices\",\n previewVoice: \"Preview voice\",\n stopPreview: \"Stop preview\",\n applying: \"Applying…\",\n ssmlPreviewUnsupported: \"SSML preview is not supported in the Browser backend.\",\n pollySsmlHint: \"Some Polly neural voices reject certain SSML tags (for example emphasis). Use basic SSML tags if preview fails.\",\n mathHighlightParts: \"Highlighting each part of a formula as it is read, falling back to the whole formula when alignment is uncertain.\",\n mathHighlightBlock: \"Highlighting each formula as a single block instead of breaking it into parts.\",\n previewFailed: \"Failed to play preview audio.\",\n previewNoAudio: \"Preview response did not include audio content.\",\n previewEnterText: \"Enter preview text before starting playback.\",\n previewUnavailable: \"Cannot preview while this service is unavailable.\",\n browserSynthesisUnavailable: \"Browser speech synthesis is unavailable.\",\n ssmlWordTrackingDisabled: \"Google SSML preview preserves authored SSML, so word tracking is disabled.\",\n applyUnavailable: \"Cannot apply settings while this service is unavailable.\",\n coordinatorUnavailable: \"Toolkit coordinator is not available for text-to-speech updates.\",\n customProviderNotRegistered: \"Custom provider '{id}' is not registered.\",\n customProviderNoConfig: \"Custom provider '{id}' did not return an apply config.\",\n httpError: \"HTTP {status}: {message}\",\n unknownError: \"Unknown error\",\n previewRequestFailed: \"Preview request failed ({status}).\",\n notAvailable: \"n/a\",\n voiceLocal: \"local\",\n voiceRemote: \"remote\",\n voiceBrowserDefault: \"browser default\",\n browserAvailable: {\n one: \"Browser TTS available ({count} voice detected).\",\n other: \"Browser TTS available ({count} voices detected).\",\n },\n pollyAvailable: {\n one: \"AWS Polly available ({count} matching voice, {engine} engine).\",\n other: \"AWS Polly available ({count} matching voices, {engine} engine).\",\n },\n googleAvailable: {\n one: \"Google Cloud TTS available ({count} matching voice).\",\n other: \"Google Cloud TTS available ({count} matching voices).\",\n },\n headerRowReservation: \"Item header row reservation: {state}\",\n speedOptionsHelp: \"Comma or semicolon-separated multipliers. Include 1 for Normal; leave empty to hide speed controls.\",\n usingSelectedVoice: \"Using selected voice: {voice}\",\n autoVoice: \"Best available voice (auto): {voice}\",\n autoVoiceWaiting: \"Best available voice (auto): waiting for browser voices.\",\n previewHintBrowserSsml: \"SSML is unsupported in Browser preview.\",\n previewHintGoogleSsml: \"SSML preserved. Tracking disabled.\",\n previewHintCustom: \"Tracking enabled when provider returns speech marks.\",\n previewHintTracking: \"Tracking enabled while preview plays.\",\n formatMp3: \"MP3\",\n formatOgg: \"OGG\",\n formatPcm: \"PCM\",\n sampleRate8000: \"8000 Hz\",\n sampleRate16000: \"16000 Hz\",\n sampleRate22050: \"22050 Hz\",\n sampleRate24000: \"24000 Hz\",\n apiEndpointPlaceholder: \"/api/tts\",\n languagePlaceholder: \"en-US\",\n ssml: \"SSML\",\n },\n },\n};\nexport default enUS;\n","/**\n * The bundled i18n provider.\n *\n * Deliberately imports only the English catalog. The dynamic loader map for every\n * other locale lives in `./catalogs.js`, which players import and tools do not.\n * Tools resolve players-shared from the host's node_modules, so keeping the\n * loader map out of this module keeps locale chunks out of a host bundle that\n * reaches players-shared only through tools.\n *\n * @module @pie-players/pie-players-shared/i18n/provider\n */\nimport { canonicalLanguageTag, findBestLanguageMatch, normalizeLanguageTag, toLanguageTag, } from \"./language-tags.js\";\nimport enUS from \"./messages/en-US.js\";\n/** The locale every fallback chain terminates at. */\nexport const DEFAULT_LOCALE = \"en-US\";\n/**\n * Assert that a runtime-assembled string is a message key.\n *\n * Every other call site passes a literal checked against `MessageKey`, so a\n * typo is a compile error. This is the one escape hatch, for a key built from an\n * id the catalog cannot enumerate — a host-supplied element category, a\n * colour-scheme id. Unchecked, like any assertion: pair it with `hasKey` where a\n * miss must not reach the screen.\n */\nexport function dynamicMessageKey(key) {\n return key;\n}\n/**\n * Right-to-left primary language subtags.\n *\n * Consulted only where `Intl.Locale.prototype.textInfo` is unavailable — it is\n * the authoritative CLDR answer but shipped late in Safari, and an assessment\n * laid out left-to-right for an Arabic reader is not a graceful degradation.\n */\nconst RTL_LANGUAGES = new Set([\n \"ar\", // Arabic\n \"ckb\", // Central Kurdish\n \"dv\", // Dhivehi\n \"fa\", // Persian\n \"he\",\n \"iw\", // Hebrew, current and legacy subtags\n \"ks\", // Kashmiri\n \"ku\", // Kurdish\n \"nqo\", // N'Ko\n \"ps\", // Pashto\n \"sd\", // Sindhi\n \"syr\", // Syriac\n \"ug\", // Uyghur\n \"ur\", // Urdu\n \"yi\", // Yiddish\n]);\nconst PLURAL_CATEGORIES = new Set([\n \"zero\",\n \"one\",\n \"two\",\n \"few\",\n \"many\",\n \"other\",\n]);\nfunction isPluralGroup(node) {\n if (typeof node !== \"object\" || node === null)\n return false;\n const keys = Object.keys(node);\n return keys.length > 0 && keys.every((key) => PLURAL_CATEGORIES.has(key));\n}\n/**\n * Writing direction of a locale tag.\n *\n * Exported because the catalog resolver and the TTS voice selector need it\n * without constructing a provider.\n */\nexport function localeDirection(locale) {\n try {\n const textInfo = new Intl.Locale(locale).textInfo;\n if (textInfo?.direction === \"rtl\" || textInfo?.direction === \"ltr\") {\n return textInfo.direction;\n }\n }\n catch {\n // Not a tag `Intl.Locale` accepts; the subtag check below still answers.\n }\n const language = normalizeLanguageTag(locale).split(\"-\")[0] ?? \"\";\n return RTL_LANGUAGES.has(language) ? \"rtl\" : \"ltr\";\n}\n/**\n * The browser's preferred locale, or `DEFAULT_LOCALE` where there is no\n * `navigator` — so this is safe in Node, which `players-shared` must remain.\n *\n * Nothing calls this by default. Under fixed lockstep patch-only versioning a\n * rendered-string change reaches a host's live delivery on their next install\n * with no build signal on their side, so auto-detection would silently switch an\n * English deployment's chrome on a Dutch-configured laptop. A host that wants\n * detection opts into it.\n */\nexport function detectBrowserLocale() {\n if (typeof navigator === \"undefined\")\n return DEFAULT_LOCALE;\n return navigator.language || navigator.languages?.[0] || DEFAULT_LOCALE;\n}\n/**\n * The bundled provider.\n *\n * Catalogs are BCP-47 keyed and resolved through RFC 4647 lookup, and plural\n * categories come from `Intl.PluralRules`. It never writes `dir` or `lang` to\n * `document.documentElement`: an embedded player does not own the host page's\n * root.\n */\nexport class SimpleI18n {\n /** Shared across instances and views: `Intl.PluralRules` is not cheap. */\n static pluralRules = new Map();\n locale;\n fallbackLocale;\n /** Shared by reference with every `withLocale` view. */\n catalogs;\n customMessages;\n loading;\n /** Counts `setLocale` calls, so a slow load cannot overwrite a later request. */\n requests = 0;\n listeners = new Set();\n config;\n constructor(config = {}) {\n this.config = { ...config };\n this.fallbackLocale =\n toLanguageTag(config.fallbackLocale) || DEFAULT_LOCALE;\n this.catalogs = new Map([[DEFAULT_LOCALE, enUS]]);\n this.customMessages = { ...(config.customMessages ?? {}) };\n this.loading = new Map();\n this.locale = this.resolveLocaleTag(config.locale) ?? DEFAULT_LOCALE;\n }\n /**\n * Set the locale, loading its catalog first.\n *\n * Convenience over `setLocale` for a host that constructs the provider and\n * configures it in two steps. Never falls back to the browser locale; see\n * {@link detectBrowserLocale}.\n */\n async initialize(config) {\n this.config = { ...this.config, ...config };\n if (config.customMessages) {\n for (const [locale, messages] of Object.entries(config.customMessages)) {\n this.addCustomMessages(locale, messages);\n }\n }\n await this.setLocale(config.locale ?? this.locale);\n }\n getLocale() {\n return this.locale;\n }\n /**\n * Switch locale.\n *\n * Resolves the request against the catalogs this provider can serve, loads\n * the winner if it is not resident, then notifies subscribers — in that\n * order, so a component's reactive read re-runs against a catalog that is\n * already in place rather than against the previous locale. The last call\n * wins: a call whose load finishes after a later call's leaves the locale\n * to that later call.\n */\n async setLocale(locale) {\n const request = ++this.requests;\n const resolved = this.resolveLocaleTag(locale);\n if (!resolved) {\n // A locale we ship no catalog for is legitimate: the host may have\n // supplied its own messages for it. Honour the tag and let the\n // fallback chain cover whatever those messages omit.\n this.locale = toLanguageTag(locale) || DEFAULT_LOCALE;\n this.notify();\n return;\n }\n // The loader is asked only for tags it declares. A tag that resolved through\n // host messages alone has nothing to load, and is honoured like the\n // unresolved case above.\n if (!this.catalogs.has(resolved) &&\n this.config.availableLocales?.includes(resolved)) {\n const inFlight = this.loading.get(resolved);\n if (inFlight) {\n await inFlight;\n }\n else {\n const load = this.loadCatalog(resolved);\n this.loading.set(resolved, load);\n try {\n await load;\n }\n finally {\n this.loading.delete(resolved);\n }\n }\n }\n if (request !== this.requests)\n return;\n this.locale = resolved;\n this.notify();\n }\n t(key, values) {\n const message = this.lookup(key);\n if (message === undefined) {\n this.config.onMissingKey?.(key, this.locale);\n return key;\n }\n return interpolate(message, values, this.locale);\n }\n /**\n * Translate a plural group.\n *\n * The category comes from `Intl.PluralRules` for the active locale, so a\n * locale with more than two forms resolves correctly: Arabic selects among\n * zero/one/two/few/many/other, Polish among one/few/many/other. A category the\n * catalog does not carry resolves to `other`.\n */\n plural(key, options) {\n const group = this.lookupNode(key);\n if (group === undefined || !isPluralGroup(group)) {\n return this.t(key, options);\n }\n const category = this.selectPluralCategory(options.count);\n const form = group[category] ?? group.other;\n return interpolate(form, options, this.locale);\n }\n getDirection() {\n return localeDirection(this.locale);\n }\n /**\n * Locales this provider can serve: resident catalogs, whatever the loader\n * declares, and any locale the host supplied messages for.\n */\n getAvailableLocales() {\n const tags = new Set([\n ...this.catalogs.keys(),\n ...(this.config.availableLocales ?? []),\n ...Object.keys(this.customMessages),\n ]);\n return [...tags];\n }\n isLocaleLoaded(locale) {\n const resolved = this.resolveLocaleTag(locale);\n return resolved !== undefined && this.catalogs.has(resolved);\n }\n subscribe(listener) {\n this.listeners.add(listener);\n return () => {\n this.listeners.delete(listener);\n };\n }\n hasKey(key) {\n return this.lookup(key) !== undefined;\n }\n /**\n * Add or override messages for one locale.\n *\n * Deep-merged, so a deployment can override a single label without restating\n * a catalog.\n */\n addCustomMessages(locale, messages) {\n const tag = toLanguageTag(locale);\n this.customMessages[tag] = deepMerge(this.customMessages[tag] ?? {}, messages);\n this.notify();\n }\n /**\n * A view of this provider fixed to another locale.\n *\n * Catalogs, in-flight loads and custom messages are shared by reference, so\n * `setLocale` through either side is visible to both and no catalog is parsed\n * twice. This is what lets two players on one page render different chrome\n * locales: the locale is per-view, the catalogs are per-provider.\n */\n withLocale(locale) {\n const resolved = this.resolveLocaleTag(locale) ?? toLanguageTag(locale);\n if (resolved === this.locale)\n return this;\n const view = new SimpleI18n({ ...this.config, locale: resolved });\n view.locale = resolved || DEFAULT_LOCALE;\n view.catalogs = this.catalogs;\n view.customMessages = this.customMessages;\n view.loading = this.loading;\n return view;\n }\n formatNumber(value, options) {\n try {\n return new Intl.NumberFormat(this.locale, options).format(value);\n }\n catch {\n return new Intl.NumberFormat(DEFAULT_LOCALE, options).format(value);\n }\n }\n formatDate(date, options) {\n try {\n return new Intl.DateTimeFormat(this.locale, options).format(date);\n }\n catch {\n return new Intl.DateTimeFormat(DEFAULT_LOCALE, options).format(date);\n }\n }\n /** The resolved catalog for a locale, for a host that wants to inspect it. */\n getBundle(locale = this.locale) {\n const tag = this.resolveLocaleTag(locale);\n if (!tag)\n return undefined;\n const translations = this.catalogs.get(tag);\n if (!translations)\n return undefined;\n return { locale: tag, translations, direction: localeDirection(tag) };\n }\n /**\n * Which shipped catalog serves a requested tag.\n *\n * RFC 4647 lookup first, so `nl-BE` reaches `nl-NL` through `nl`; then\n * primary-subtag widening, so a bare `nl` reaches the regional `nl-NL`\n * catalog we actually ship. POSIX `nl_NL` normalizes on the way in, which is\n * the form the Learnosity transform emits.\n */\n resolveLocaleTag(locale) {\n if (!locale)\n return undefined;\n const available = this.getAvailableLocales();\n const exactOrPrefix = findBestLanguageMatch(locale, available);\n if (exactOrPrefix)\n return exactOrPrefix;\n const requestedLanguage = normalizeLanguageTag(locale).split(\"-\")[0];\n if (!requestedLanguage)\n return undefined;\n return available.find((candidate) => normalizeLanguageTag(candidate).split(\"-\")[0] === requestedLanguage);\n }\n async loadCatalog(locale) {\n const load = this.config.loadCatalog;\n if (!load)\n return;\n try {\n this.catalogs.set(locale, await load(locale));\n }\n catch (error) {\n // Rethrown with the locale named: `setLocale` rejects before switching\n // (it assigns `this.locale` only after the load), so the previous locale\n // stays active.\n throw new Error(`Failed to load i18n catalog for locale: ${locale}`, {\n cause: error,\n });\n }\n }\n /**\n * Resolution order for one key. Host overrides for the active locale win, so\n * a deployment can rename one label without forking a catalog.\n */\n lookupNode(key) {\n const sources = [\n this.customMessages[this.locale],\n this.catalogs.get(this.locale),\n this.customMessages[this.fallbackLocale],\n this.catalogs.get(this.fallbackLocale),\n ];\n for (const source of sources) {\n const hit = readPath(source, key);\n if (hit !== undefined)\n return hit;\n }\n return undefined;\n }\n lookup(key) {\n const node = this.lookupNode(key);\n if (typeof node === \"string\")\n return node;\n // A plural group resolves to its `other` form. A namespace (`t(\"common\")`)\n // is a miss: returning the object would put one where the caller expects\n // a string, and interpolating it throws.\n if (node !== undefined && isPluralGroup(node))\n return node.other;\n return undefined;\n }\n selectPluralCategory(count) {\n let rules = SimpleI18n.pluralRules.get(this.locale);\n if (!rules) {\n try {\n rules = new Intl.PluralRules(this.locale);\n }\n catch {\n return count === 1 ? \"one\" : \"other\";\n }\n SimpleI18n.pluralRules.set(this.locale, rules);\n }\n return rules.select(count);\n }\n notify() {\n for (const listener of this.listeners)\n listener();\n }\n}\nfunction readPath(source, key) {\n if (!source)\n return undefined;\n let current = source;\n for (const part of key.split(\".\")) {\n if (typeof current !== \"object\" || current === null)\n return undefined;\n current = current[part];\n if (current === undefined)\n return undefined;\n }\n return current;\n}\n/**\n * Substitute `{name}` placeholders.\n *\n * A finite numeric value renders through `Intl.NumberFormat` for the active\n * locale, so digits and grouping follow CLDR locale defaults: `ar` renders\n * Arabic-Indic digits, `fr` groups with narrow no-break spaces, `en-US` with\n * commas. Catalog text that spells digits out is untouched.\n */\nconst numberFormats = new Map();\nfunction formatNumber(value, locale) {\n let formatter = numberFormats.get(locale);\n if (!formatter) {\n try {\n formatter = new Intl.NumberFormat(locale);\n }\n catch {\n formatter = new Intl.NumberFormat(DEFAULT_LOCALE);\n }\n numberFormats.set(locale, formatter);\n }\n return formatter.format(value);\n}\nfunction interpolate(text, values, locale) {\n if (!values)\n return text;\n return text.replace(/\\{(\\w+)\\}/g, (match, name) => {\n const value = values[name];\n if (value === undefined || value === null)\n return match;\n if (locale !== undefined &&\n typeof value === \"number\" &&\n Number.isFinite(value)) {\n return formatNumber(value, locale);\n }\n return String(value);\n });\n}\nfunction deepMerge(target, source) {\n const result = { ...target };\n for (const [key, value] of Object.entries(source)) {\n const existing = result[key];\n if (value &&\n typeof value === \"object\" &&\n existing &&\n typeof existing === \"object\") {\n result[key] = deepMerge(existing, value);\n }\n else {\n result[key] = value;\n }\n }\n return result;\n}\nlet defaultProvider;\n/**\n * The graceful default: an English-only provider, shared process-wide.\n *\n * `composition-context.md` requires a resolver to work with no publisher\n * present, and this is that state. A tool mounted bare — in `print-player` or\n * an authoring harness — resolves this and renders English rather than\n * leaking raw message keys onto the screen. It carries no locale loader, so it\n * pulls no catalog beyond the 5 KB English one already in the bundle.\n */\nexport function getDefaultI18n() {\n if (!defaultProvider)\n defaultProvider = new SimpleI18n();\n return defaultProvider;\n}\nexport function resolveInterfaceI18n(source) {\n const provider = source?.i18n ?? getDefaultI18n();\n // A thin facade rather than the provider itself: cheap to allocate (a handful\n // of times per session, once per republish) and it carries no state of its own,\n // so it cannot drift from the provider it delegates to. The locale formatters\n // are part of the promised surface, so a provider that does not implement\n // them falls through to `Intl` at the locale the provider resolves — the same\n // thing the bundled provider does, and the same graceful default every other\n // optional member here applies.\n return {\n // Canonical, because components read this for `lang` attributes; the\n // provider's own `getLocale()` keeps the tag as resolved for lookups.\n getLocale: () => {\n const locale = provider.getLocale();\n return canonicalLanguageTag(locale) ?? locale;\n },\n setLocale: (locale) => provider.setLocale(locale),\n t: (key, values) => provider.t(key, values),\n plural: (key, options) => provider.plural?.(key, options) ?? provider.t(key, options),\n getDirection: () => provider.getDirection?.() ?? \"ltr\",\n hasKey: (key) => provider.hasKey?.(key) ?? false,\n subscribe: (listener) => provider.subscribe?.(listener) ?? (() => { }),\n formatNumber: (value, options) => provider.formatNumber?.(value, options) ??\n new Intl.NumberFormat(provider.getLocale(), options).format(value),\n formatDate: (value, options) => provider.formatDate?.(value, options) ??\n new Intl.DateTimeFormat(provider.getLocale(), options).format(value),\n };\n}\n/**\n * Stamp the interface locale's `lang` and `dir` on a chrome element.\n *\n * The imperative form of the `lang={…} dir={…}` pair a template puts on its\n * root, for the elements a template cannot reach: a shadow host whose chrome\n * is slotted light DOM, a shell built with `document.createElement`, a vanilla\n * element stamping itself. Call it from whatever already re-runs on a locale\n * change and on a catalog load: `getLocale()` moves only once the requested\n * catalog is resident, so a stamp taken at setup alone names the locale that\n * rendered before the load.\n */\nexport function stampInterfaceLocale(target, provider) {\n // `lang` takes the canonical form: a provider honours an unshipped tag as\n // the host spelled it, and `NL-nl` is a valid request but not a valid\n // attribute value. Every `lang` this repository writes goes through the\n // same rule, so chrome and content stamps match in shape.\n const locale = provider.getLocale();\n target.setAttribute(\"lang\", canonicalLanguageTag(locale) ?? locale);\n target.setAttribute(\"dir\", provider.getDirection?.() ?? \"ltr\");\n}\n"],"ignoreList":[0,1],"mappings":";;AAyBA,IAAMI,IAAO;CAET,QAAQ;EACJ,OAAO;EACP,QAAQ;EACR,MAAM;EACN,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;EACN,UAAU;EACV,QAAQ;EACR,UAAU;EACV,QA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O,aAAa,QAAQtD,EAAqBa,CAAM,KAAKA,CAAM,GAClEyC,EAAO,aAAa,OAAOK,EAAS,eAAe,KAAK,KAAK;AACjE"}
1
+ {"version":3,"file":"provider-CATDgKxn.js","names":["normalizeLanguageTag","canonicalLanguageTag","toLanguageTag","findBestLanguageMatch","enUS","DEFAULT_LOCALE","RTL_LANGUAGES","PLURAL_CATEGORIES","isPluralGroup","node","keys","key","localeDirection","textInfo","locale","language","SimpleI18n","config","messages","request","resolved","inFlight","load","message","interpolate","values","group","options","listener","tag","deepMerge","view","value","date","translations","available","exactOrPrefix","requestedLanguage","candidate","error","sources","source","hit","readPath","rules","count","current","part","numberFormats","formatNumber","formatter","text","name","match","result","target","existing","defaultProvider","getDefaultI18n","resolveInterfaceI18n","provider","stampInterfaceLocale"],"sources":["../../../node_modules/.bun/@pie-players+pie-players-shared@1.0.0-beta.6/node_modules/@pie-players/pie-players-shared/dist/i18n/messages/en-US.js","../../../node_modules/.bun/@pie-players+pie-players-shared@1.0.0-beta.6/node_modules/@pie-players/pie-players-shared/dist/i18n/provider.js"],"sourcesContent":["/**\n * English (United States) message catalog — the source of truth.\n *\n * This catalog's *shape* generates `MessageKey`, so every other locale is\n * checked against it and a mistyped key at a call site is a compile error. Add a\n * key here first.\n *\n * A TypeScript module rather than JSON: `tsc` compiles it to real JS, which\n * removes the `with { type: \"json\" }` import-attribute hazard that already broke\n * every non-English locale once under Node's ESM loader, and it lets the key\n * union be derived rather than maintained.\n *\n * Conventions:\n * - `{placeholder}` slots interpolate; keep the names stable across locales.\n * - A plural group is an object of CLDR categories; `other` is required and\n * `Intl.PluralRules` picks the rest, so a locale may carry more forms than\n * English has.\n * - Keys ending `A11y` are for assistive technology only and are never rendered\n * as visible text. They carry the operating instructions a sighted user reads\n * from the layout.\n * - Developer-facing diagnostics (`throw`/`console`) are deliberately absent.\n * Only strings a learner, teacher or author can see belong here.\n *\n * @module @pie-players/pie-players-shared/i18n/messages/en-US\n */\nconst enUS = {\n /** Verbs and nouns reused across more than one package. */\n common: {\n close: \"Close\",\n cancel: \"Cancel\",\n save: \"Save\",\n reset: \"Reset\",\n retry: \"Retry\",\n back: \"Back\",\n next: \"Next\",\n previous: \"Previous\",\n submit: \"Submit\",\n continue: \"Continue\",\n finish: \"Finish\",\n yes: \"Yes\",\n no: \"No\",\n ok: \"OK\",\n any: \"Any\",\n off: \"Off\",\n auto: \"Auto\",\n all: \"All\",\n none: \"None\",\n loading: \"Loading…\",\n error: \"Error\",\n settings: \"Settings\",\n language: \"Language\",\n theme: \"Theme\",\n preview: \"Preview\",\n author: \"Author\",\n unknown: \"Unknown\",\n untitled: \"Untitled\",\n apply: \"Apply\",\n enabled: \"Enabled\",\n disabled: \"Disabled\",\n lookUp: \"Look up\",\n wordOrPhrase: \"Word or phrase\",\n closeA11y: \"Close\",\n settingsA11y: \"Open settings menu\",\n },\n /**\n * Player chrome: the section, item and assessment players' own surfaces.\n * Not the authored content, which carries its own language.\n */\n player: {\n passage: \"Passage\",\n passages: \"Passages\",\n question: \"Question\",\n questionNumbered: \"Question {position}\",\n questions: \"Questions\",\n items: \"Items\",\n section: \"Section\",\n loadingSection: \"Loading section content…\",\n sectionLoadError: \"Section content could not be loaded.\",\n loadingPassage: \"Loading passage content…\",\n configurationError: \"Configuration Error\",\n playerError: \"Player Error\",\n authoringBackendError: \"Authoring Backend Configuration Error\",\n itemLoadError: \"Question could not be loaded.\",\n sectionTabsA11y: \"Section content tabs\",\n passagesRegionA11y: \"Passages\",\n itemsRegionA11y: \"Items\",\n sectionToolsA11y: \"Section tools\",\n scrollDownA11y: \"Scroll down\",\n resizePanels: \"Resize panels\",\n resizePassagesAndItemsA11y: \"Resize passages and items panels\",\n resizeMediaRegion: \"Resize media region\",\n resizeQuestionAndMediaA11y: \"Resize question and media panels\",\n resizePassageAndMediaA11y: \"Resize passage and media panels\",\n resizePassageAndQuestionA11y: \"Resize passage and question panels\",\n passageWidthA11y: \"{percent}% passage width\",\n /**\n * The section player's navigation live region, announced when the active\n * item changes; `{label}` is the item's own label when it has one.\n */\n questionPositionA11y: \"Question {position} of {total}\",\n questionPositionLabeledA11y: \"{label}, question {position} of {total}\",\n /**\n * The assessment player's own section-to-section navigation. Its Back and\n * Next controls take `common.back` / `common.next`.\n */\n assessment: {\n sectionPosition: \"Section {position} of {total}\",\n noSections: \"No sections\",\n loadFailed: \"The assessment could not be loaded. Try again.\",\n restoreFailed: \"Your saved answers for this section could not be restored. Try again.\",\n },\n /** Formative delivery: check-answer control and its outcome announcements. */\n formative: {\n checkAnswer: \"Check answer\",\n tryAgain: \"Try again\",\n answerRecorded: \"Answer recorded.\",\n correct: \"Correct.\",\n partlyCorrect: \"Partly correct.\",\n notCorrect: \"Not correct.\",\n notAutoScored: \"Answer recorded. This question is not scored automatically.\",\n checkFailed: \"This question could not be checked. Try again.\",\n /**\n * Appended after the outcome, so the announcement reads\n * \"Not correct. 2 tries left.\" Kept a separate plural group rather than\n * folded into each outcome: the tries count varies independently of\n * correctness, and cross-multiplying them is 4 x N strings.\n */\n triesLeft: {\n one: \"{count} try left.\",\n other: \"{count} tries left.\",\n },\n },\n /**\n * Timed media: what the learner is told as the timeline reveals questions and\n * a gate holds playback. Announced through a polite live region and shown as\n * visible text, because a pause the learner did not ask for has to be\n * perceivable without hearing it (WCAG 1.1.1, 4.1.3).\n */\n timedMedia: {\n waitingForMedia: \"Questions will appear as the media plays.\",\n questionAvailable: \"Question {position} is now available.\",\n /** Playback really is stopped: the media source reported it can pause. */\n playbackPaused: \"Playback paused. Answer question {position} to continue.\",\n /**\n * The same gate where the source cannot pause. Worded as a request rather\n * than a statement, because claiming playback stopped when it did not is\n * exactly the silent degradation this contract refuses.\n */\n playbackAdvisory: \"Answer question {position} before continuing with the media.\",\n playbackReleased: \"Answer accepted. Continue playing the media.\",\n },\n /**\n * `<pie-item-summary>`: an item described as a list row, without loading its\n * elements. The correct marker's glyph is hidden from assistive technology,\n * which reads `correctA11y` instead.\n */\n summary: {\n correctA11y: \"Correct answer\",\n answer: \"Answer\",\n manualScoring: \"Scored by a teacher\",\n audio: \"Audio\",\n video: \"Video\",\n },\n /** `<pie-item-list>`. */\n list: {\n /** The row toggle, a disclosure button whose `aria-expanded` carries the state, so its label stays the same either way. */\n expandA11y: \"Show the full item\",\n /** Names the block of an entry's search matches below its summary. */\n highlights: \"Search matches\",\n /** The row toggle's tooltip while the row is expanded: collapsing returns it to the summary. */\n collapse: \"Show the summary\",\n /** Shown in an expanded row whose player failed to load; the summary keeps showing above it. */\n playerError: \"The full item could not be loaded.\",\n },\n },\n /** Toolbar and tool-shell chrome owned by the assessment toolkit. */\n toolkit: {\n toolsA11y: \"Assessment tools\",\n toolbarInitError: \"Unable to initialize assessment toolkit.\",\n settingsTitle: \"Settings\",\n closeSettingsA11y: \"Close settings\",\n dragPanelA11y: \"Drag panel\",\n closePanelA11y: \"Close panel\",\n resizeWindow: \"Resize window\",\n minimize: \"Minimize\",\n maximize: \"Maximize\",\n minimizePanelA11y: \"Minimize panel\",\n maximizePanelA11y: \"Maximize panel\",\n /** Tool-window keyboard controls, exposed only to assistive technology. */\n window: {\n moveLeftA11y: \"Move tool left\",\n moveRightA11y: \"Move tool right\",\n moveUpA11y: \"Move tool up\",\n moveDownA11y: \"Move tool down\",\n narrowerA11y: \"Make tool window narrower\",\n widerA11y: \"Make tool window wider\",\n shorterA11y: \"Make tool window shorter\",\n tallerA11y: \"Make tool window taller\",\n centerA11y: \"Center tool window\",\n closeA11y: \"Close tool\",\n },\n /**\n * The tap controls that move, turn and resize a placed tool without a\n * drag. The move buttons reuse the `window` labels above.\n */\n placement: {\n controlsA11y: \"Move and rotate\",\n moveAndResizeA11y: \"Move and resize\",\n rotateClockwiseA11y: \"Rotate {degrees}° clockwise\",\n rotateCounterclockwiseA11y: \"Rotate {degrees}° counterclockwise\",\n },\n /**\n * Live-region announcements shared by the draggable tools — ruler,\n * protractor, line reader. Keyboard movement and rotation read the same in\n * every one of them, so the strings live once here rather than per tool.\n */\n announce: {\n movedUp: \"Moved up to {position}\",\n movedDown: \"Moved down to {position}\",\n movedLeft: \"Moved left to {position}\",\n movedRight: \"Moved right to {position}\",\n rotatedTo: \"Rotated to {degrees} degrees\",\n },\n },\n /**\n * Per-capability strings, keyed by `toolId`.\n *\n * `name` and `description` back `ToolRegistration.nameKey` /\n * `descriptionKey`, so the toolbar label and the registration contract read\n * the same catalog entry.\n */\n tools: {\n calculator: {\n name: \"Calculator\",\n nameBasic: \"Basic Calculator\",\n nameScientific: \"Scientific Calculator\",\n nameGraphing: \"Graphing Calculator\",\n description: \"Multi-type calculator (basic, scientific, graphing)\",\n // Announced by the inline calculator's toggle. One key per variant and\n // state rather than \"{name} opened\": Dutch and German put the participle\n // last, so the sentence has to be authored whole. All three variants the\n // provider implements are covered, not just the two the packaged toolbar\n // registration offers — the inline element takes its type from the host.\n openedBasic: \"Basic calculator opened\",\n openedScientific: \"Scientific calculator opened\",\n openedGraphing: \"Graphing calculator opened\",\n closedBasic: \"Basic calculator closed\",\n closedScientific: \"Scientific calculator closed\",\n closedGraphing: \"Graphing calculator closed\",\n toolA11y: \"Calculator tool\",\n loading: \"Loading calculator…\",\n providerUnavailable: \"The calculator is unavailable.\",\n initFailed: \"Calculator failed to initialize.\",\n },\n graph: {\n name: \"Graph\",\n description: \"Coordinate plane\",\n buttonA11y: \"Graph, coordinate plane\",\n tooltip: \"Graph\",\n toolA11y: \"Graph tool — draw points and lines on a coordinate grid\",\n canvasA11y: \"Graph canvas — use tools to add points and draw lines\",\n grid: \"Grid:\",\n gridOpacityA11y: \"Grid opacity\",\n pointA11y: \"Graph point {id}\",\n modeSelector: \"Selector\",\n modeSelectorHint: \"Selector: click and drag points to move them or associated lines.\",\n modePoint: \"Point\",\n modePointHint: \"Point: click on the grid to add points.\",\n modeLine: \"Line\",\n modeLineHint: \"Line: click a starting point, then an ending point to draw a line.\",\n modeDelete: \"Delete\",\n modeDeleteHint: \"Delete: click on a point to delete it and any connected lines.\",\n },\n periodicTable: {\n name: \"Periodic Table\",\n description: \"Chemistry periodic table reference\",\n buttonA11y: \"Periodic Table, chemistry reference\",\n tooltip: \"Periodic Table\",\n toolA11y: \"Periodic table — select an element to view its details\",\n elementsA11y: \"Periodic table elements\",\n showAllA11y: \"Show all elements\",\n allElements: \"All Elements\",\n atomicMass: \"Atomic Mass\",\n atomicNumber: \"Atomic No\",\n electronConfig: \"Electron Config\",\n phase: \"Phase\",\n filterByA11y: \"Filter by {category}\",\n /**\n * Element cell label. Element *names* come from the periodic-table data\n * file, not from here: they are content, and a locale that renames them\n * needs a translated data file rather than 118 catalog keys.\n */\n elementA11y: \"{name}, Symbol: {symbol}, Atomic number: {number}, Atomic mass: {mass}, Category: {category}\",\n outsideFilterA11y: \", outside the current filter\",\n /** IUPAC element categories. Chemistry nomenclature, translated per locale. */\n category: {\n unknown: \"Unknown\",\n alkaliMetal: \"Alkali Metal\",\n alkalineEarthMetal: \"Alkaline Earth Metal\",\n transitionMetal: \"Transition Metal\",\n postTransitionMetal: \"Post-transition Metal\",\n metalloid: \"Metalloid\",\n diatomicNonmetal: \"Diatomic Nonmetal\",\n polyatomicNonmetal: \"Polyatomic Nonmetal\",\n nobleGas: \"Noble Gas\",\n lanthanide: \"Lanthanide\",\n actinide: \"Actinide\",\n },\n },\n ruler: {\n name: \"Ruler\",\n description: \"On-screen ruler for measurements\",\n buttonA11y: \"Ruler\",\n tooltip: \"Ruler\",\n toolA11y: \"Draggable and rotatable ruler measurement tool\",\n unitSelectionA11y: \"Ruler unit selection\",\n inches: \"Inches\",\n centimeters: \"Centimeters\",\n // Second form of each unit name, for interpolation into a sentence —\n // `switchedTo`, `applicationA11y`, `imageAlt`. English needs it for\n // sentence case; a language that capitalises nouns everywhere will have\n // the two forms identical. Both are spelled out rather than abbreviated\n // because every one of those three is read aloud, and a screen reader\n // says \"cm\" as two letters.\n inchesInSentence: \"inches\",\n centimetersInSentence: \"centimeters\",\n switchToInchesA11y: \"Switch to inches\",\n switchToCentimetersA11y: \"Switch to centimeters\",\n switchedTo: \"Switched to {unit}\",\n applicationA11y: \"Ruler tool. Use arrow keys to move, Shift+arrows to rotate, PageUp or PageDown for fine rotation, U to toggle units. Current unit: {unit}\",\n imageAlt: \"Ruler showing {unit}\",\n },\n protractor: {\n name: \"Protractor\",\n description: \"On-screen protractor for angle measurements\",\n buttonA11y: \"Protractor\",\n tooltip: \"Protractor\",\n toolA11y: \"Protractor tool. Use arrow keys to move, Shift+arrows to rotate, and PageUp or PageDown for fine rotation.\",\n roleA11y: \"Draggable and rotatable protractor measurement tool\",\n imageAlt: \"Protractor with 180-degree semicircular scale marked from 0 to 180 degrees in both directions, with degree markings every 10 degrees\",\n },\n /**\n * The two dictionaries. `toolA11y` names the floating panel; the button\n * names follow the toolbar rule — the tooltip verbatim, plus a purpose\n * clause only where the tooltip alone does not identify the tool.\n */\n dictionary: {\n name: \"Dictionary\",\n description: \"Look up word definitions\",\n buttonA11y: \"Dictionary, look up word definitions\",\n tooltip: \"Dictionary\",\n toolA11y: \"Dictionary\",\n // The lookup panel's notices are authored whole: the term interpolates\n // into the sentence, never around it.\n notConfigured: \"No dictionary service is configured for this assessment.\",\n idleHint: \"Type a word to look it up.\",\n lookingUp: \"Looking up “{term}”…\",\n noEntryFor: \"No entry for “{term}”.\",\n // The polite live-region status after a lookup: the count summary and\n // the no-entry announcement, phrased without the quotation marks the\n // visible notices carry. The count calls plural(), never a `=== 1`\n // branch.\n entriesCount: {\n one: \"{count} entry\",\n other: \"{count} entries\",\n },\n noEntryStatusFor: \"No dictionary entry for {term}.\",\n },\n pictureDictionary: {\n name: \"Picture Dictionary\",\n description: \"Look up pictures for words\",\n buttonA11y: \"Picture Dictionary, look up pictures for words\",\n tooltip: \"Picture Dictionary\",\n toolA11y: \"Picture Dictionary\",\n notConfigured: \"No picture dictionary service is configured for this assessment.\",\n idleHint: \"Type a word to see a picture of it.\",\n lookingUp: \"Looking up “{term}”…\",\n noEntryFor: \"No picture for “{term}”.\",\n entriesCount: {\n one: \"{count} picture\",\n other: \"{count} pictures\",\n },\n noEntryStatusFor: \"No picture for {term}.\",\n },\n /**\n * The Spanish variants. Named in the interface locale like every other tool label —\n * a Dutch-speaking proctor reading a Dutch interface still sees which language the\n * dictionary looks words up in.\n */\n dictionarySpanish: {\n name: \"Spanish Dictionary\",\n description: \"Look up word definitions in Spanish\",\n buttonA11y: \"Spanish Dictionary, look up word definitions in Spanish\",\n tooltip: \"Spanish Dictionary\",\n toolA11y: \"Spanish Dictionary\",\n },\n pictureDictionarySpanish: {\n name: \"Spanish Picture Dictionary\",\n description: \"Look up pictures for words in Spanish\",\n buttonA11y: \"Spanish Picture Dictionary, look up pictures for words in Spanish\",\n tooltip: \"Spanish Picture Dictionary\",\n toolA11y: \"Spanish Picture Dictionary\",\n },\n lineReader: {\n name: \"Line Reader\",\n description: \"Reading guide overlay\",\n buttonA11y: \"Line Reader, reading guide\",\n tooltip: \"Line Reader\",\n roleA11y: \"Draggable and resizable reading guide overlay\",\n close: \"Close line reader\",\n resizeWindowA11y: \"Drag to resize the reading window\",\n resizeFrameA11y: \"Drag to resize the frame and window width\",\n windowHeightAnnounce: \"Reading window height {pixels} pixels\",\n frameHeightAnnounce: \"Frame height {pixels} pixels\",\n widthAnnounce: \"Width {pixels} pixels\",\n shorterWindowA11y: \"Make the reading window shorter\",\n tallerWindowA11y: \"Make the reading window taller\",\n shorterFrameA11y: \"Make the frame shorter\",\n tallerFrameA11y: \"Make the frame taller\",\n narrowerA11y: \"Make the line reader narrower\",\n widerA11y: \"Make the line reader wider\",\n applicationA11y: \"Line Reader tool. A clear reading window inside an obscuring frame. Use arrow keys to move, +/- to resize the reading window, Escape to close. Reading window height: {paneHeight} pixels, Frame height: {frameHeight} pixels\",\n resizeWindowFullA11y: \"Resize the reading window. Drag, or use the up and down arrow keys to change its height. Current height {paneHeight} pixels\",\n resizeFrameFullA11y: \"Resize the frame. Drag, or use the up and down arrow keys to change the frame height and the left and right arrow keys to change the width. Current frame height {frameHeight} pixels, width {width} pixels\",\n },\n magnification: {\n name: \"Magnifier\",\n description: \"Magnify the content under a movable lens\",\n buttonA11y: \"Magnifier, enlarge the content under a lens\",\n tooltip: \"Magnifier\",\n roleA11y: \"Draggable and resizable magnifying lens\",\n applicationA11y: \"Magnifier at {zoom} times. Use the arrow keys to move the lens, + and - to change the zoom, and Escape to close.\",\n zoomIn: \"Zoom in\",\n zoomOut: \"Zoom out\",\n zoomLevel: \"{zoom}×\",\n zoomAnnounce: \"Zoom {zoom} times\",\n close: \"Close magnifier\",\n resizeA11y: \"Drag to resize the magnifier\",\n resizeFullA11y: \"Resize the magnifier. Drag, or use the arrow keys. Current size {width} by {height} pixels\",\n sizeAnnounce: \"Magnifier {width} by {height} pixels\",\n narrowerA11y: \"Make the magnifier narrower\",\n widerA11y: \"Make the magnifier wider\",\n shorterA11y: \"Make the magnifier shorter\",\n tallerA11y: \"Make the magnifier taller\",\n },\n answerEliminator: {\n name: \"Answer Eliminator\",\n description: \"Strike through answer choices\",\n buttonA11y: \"Strike Through, eliminate answer choices\",\n tooltip: \"Strike Through\",\n },\n highlighter: {\n name: \"Highlighter\",\n description: \"Highlight and annotate text\",\n buttonA11y: \"Highlight text\",\n tooltip: \"Highlight\",\n },\n annotationToolbar: {\n name: \"Annotation\",\n description: \"Highlight and annotate text\",\n buttonA11y: \"Annotate, highlight and mark up text\",\n // Not \"Highlight\": that is `tools.highlighter.tooltip`, and two toolbar\n // buttons carrying the same visible label is a defect rather than a style\n // choice. This tool does more than highlight — underline, remove, clear.\n tooltip: \"Annotate\",\n toolbarA11y: \"Text annotation toolbar\",\n underline: \"Underline\",\n underlineA11y: \"Underline selected text\",\n readAloud: \"Read Aloud\",\n readAloudA11y: \"Read selected text aloud\",\n remove: \"Remove\",\n removeA11y: \"Remove this annotation\",\n clearAll: \"Clear All\",\n clearAllA11y: \"Clear all annotations from document\",\n highlightYellowA11y: \"Yellow highlight\",\n highlightPinkA11y: \"Pink highlight\",\n highlightBlueA11y: \"Blue highlight\",\n highlightGreenA11y: \"Green highlight\",\n },\n theme: {\n name: \"Theme\",\n description: \"Accessible themes and contrast\",\n buttonA11y: \"Theme, change colors and contrast\",\n tooltip: \"Theme\",\n selectorA11y: \"Theme selector\",\n hint: \"Select a theme to improve readability and reduce eye strain.\",\n selectA11y: \"Select theme\",\n selectCurrentA11y: \"Select theme. Current theme: {name}\",\n optionUnavailableA11y: \"{name}, unavailable\",\n unavailableName: \"Unavailable theme: {id}\",\n unavailableDescription: \"PIE's managed base theme remains active until this theme becomes available again.\",\n unavailableStatus: \"The selected theme is unavailable. PIE's managed base theme is active until it becomes available again.\",\n },\n textToSpeech: {\n name: \"Text to Speech\",\n description: \"Read content aloud\",\n initFailed: \"Unable to initialize text-to-speech. Try again.\",\n /** Inline reading controls and their live-region announcements. */\n inline: {\n controlsA11y: \"Reading controls\",\n playbackSpeedA11y: \"Playback speed\",\n rewindA11y: \"Rewind\",\n fastForwardA11y: \"Fast-forward\",\n stopA11y: \"Stop reading\",\n starting: \"Starting reading\",\n started: \"Reading started\",\n resumed: \"Reading resumed\",\n pausedAnnouncement: \"Reading paused\",\n stopped: \"Reading stopped\",\n switchedSection: \"Reading switched to another section\",\n nothingToRead: \"Nothing to read aloud here\",\n startFailed: \"Unable to start reading\",\n skippedForward: \"Skipped forward\",\n skipForwardFailed: \"Unable to skip forward\",\n skippedBackward: \"Skipped backward\",\n skipBackwardFailed: \"Unable to skip backward\",\n speedChangeFailed: \"Unable to change playback speed\",\n speedAnnounce: \"Playback speed {label}\",\n playA11y: \"Play reading\",\n pauseA11y: \"Pause reading\",\n resumeA11y: \"Resume reading\",\n },\n },\n signLanguage: {\n name: \"Sign Language\",\n description: \"Signed alternate for authored content\",\n /**\n * Names of the signed language itself, keyed by its ISO 639-3 code.\n *\n * The name of the *adaptation*, never inferred from the item's content\n * language. `signedEnglish` is not a distinct sign language; it rides\n * the same card type tagged with a spoken-language code.\n */\n generic: \"Sign language\",\n unknown: \"Sign language ({code})\",\n ase: \"American Sign Language\",\n bfi: \"British Sign Language\",\n fsl: \"French Sign Language\",\n gss: \"Greek Sign Language\",\n mfs: \"Mexican Sign Language\",\n signedEnglish: \"Signed English\",\n regionA11y: \"{language} translation\",\n },\n audioTranscript: {\n name: \"Audio Transcript\",\n description: \"Text transcript of audio content\",\n regionA11y: \"Transcript\",\n },\n },\n /**\n * Developer panel chrome.\n *\n * These packages ship as published custom elements, so their chrome is\n * localized like any other. The JSON payloads they dump are data, not\n * message content, and stay as authored.\n */\n debug: {\n session: \"Session\",\n sessionData: \"Session Data\",\n sessionDataPersistent: \"PIE Session Data (Persistent)\",\n noItemSessionYet: \"No item session data yet. Interact with the item to see updates here.\",\n itemSessionsSnapshot: \"Item Sessions Snapshot\",\n sectionControllerUnavailable: \"Section controller not available for this section yet.\",\n filteredModel: \"Filtered Model\",\n environment: \"Environment\",\n events: \"Events\",\n controllerEvents: \"Controller Events\",\n instrumentation: \"Instrumentation\",\n databaseState: \"Database state\",\n sessionDb: \"Session DB (Server)\",\n noRows: \"No rows\",\n noRecords: \"No instrumentation records yet.\",\n selectRecord: \"Select a record to inspect details.\",\n selectEvent: \"Select an event to inspect payload details.\",\n showRawTables: \"Show raw tables\",\n showReconstructedSnapshots: \"Show reconstructed snapshots\",\n showSectionRequest: \"Show section request\",\n showAssessmentRequest: \"Show assessment request\",\n liveUpdatesUnsupported: \"Live updates are not supported in this browser\",\n liveUpdatesDisconnected: \"Live updates disconnected; retrying…\",\n fieldType: \"Type:\",\n fieldTarget: \"Target:\",\n fieldItem: \"Item:\",\n fieldCanonical: \"Canonical:\",\n fieldIntent: \"Intent:\",\n fieldDuplicates: \"Duplicates:\",\n fieldSemanticRepeats: \"Semantic Repeats:\",\n dragItemSessionPanelA11y: \"Drag item session panel\",\n debuggerTabsA11y: \"Debugger tabs\",\n sessionDataJsonA11y: \"Session data JSON\",\n environmentJsonA11y: \"Environment JSON\",\n filteredModelJsonA11y: \"Filtered model JSON\",\n sectionSessionJsonA11y: \"Section session snapshot JSON\",\n eventLevelFilterA11y: \"Event level filter\",\n controllerEventDetailsA11y: \"Controller event details\",\n instrumentationFilterA11y: \"Filter instrumentation record type\",\n instrumentationDetailsA11y: \"Instrumentation record details\",\n toggleSessionPanelA11y: \"Toggle session panel\",\n toggleEventPanelA11y: \"Toggle event broadcast panel\",\n toggleDatabasePanelA11y: \"Toggle database state panel\",\n toggleInstrumentationPanelA11y: \"Toggle instrumentation panel\",\n // Panel actions and status. \"clear\"/\"pause\"/\"resume\" stay lowercase in\n // English to match the dev panels' chrome; locales render their own\n // register.\n clear: \"clear\",\n pause: \"pause\",\n resume: \"resume\",\n controllerUnavailable: \"controller unavailable\",\n noMatchingEvents: \"No matching events yet. Interact with an item to capture controller events.\",\n noSectionSessionYet: \"No section session data yet. Interact with the questions to see updates.\",\n eventLevelItem: \"item\",\n eventLevelSection: \"section\",\n // Instrumentation record-kind identifiers. They name the emitted\n // records, so every locale carries them verbatim; a locale that\n // prefers translated labels can override per key.\n instrumentationKindAll: \"all\",\n instrumentationKindEvent: \"event\",\n instrumentationKindError: \"error\",\n instrumentationKindMetric: \"metric\",\n instrumentationKindUserContext: \"user-context\",\n instrumentationKindGlobalAttributes: \"global-attributes\",\n // Instrumentation detail-field labels.\n instrumentationFieldName: \"name:\",\n instrumentationFieldKind: \"kind:\",\n instrumentationFieldProvider: \"provider:\",\n instrumentationFieldTimestamp: \"timestamp:\",\n instrumentationFieldValue: \"value:\",\n instrumentationFieldError: \"error:\",\n // Session-db payload field names — identifiers, verbatim across\n // locales like the record kinds above.\n sessionDbAssessmentId: \"assessmentId:\",\n sessionDbSectionId: \"sectionId:\",\n sessionDbAttemptId: \"attemptId:\",\n sessionDbMode: \"mode:\",\n /** PNP debugger. */\n pnp: {\n title: \"PNP Profile\",\n noAssessmentBound: \"No assessment bound\",\n noAssessmentBoundBody: \"Profile, district and test-administration policy have nothing to read, so only an item's requiredTools can grant an accommodation. Pass the assessment to the toolkit's assessment property, or call updateAssessment(...) on the toolkit coordinator.\",\n determinationReadOnly: \"Determination (read-only)\",\n toolsEditor: \"Tools Editor\",\n enforcement: \"PNP enforcement\",\n allAvailableTools: \"All available tools\",\n clearPlacement: \"Clear placement\",\n tool: \"Tool\",\n placement: \"Placement\",\n provider: \"Provider\",\n simulation: \"PNP simulation\",\n resolvedTools: \"Resolved Tools (toolkit)\",\n provenanceSummary: \"Tool Policy Provenance Summary\",\n perToolDecisions: \"Per-Tool Decisions\",\n policyDiagnostics: \"Policy Diagnostics\",\n profileReadOnly: \"PNP Profile (read-only)\",\n on: \"On\",\n effective: \"Effective:\",\n needs: \"needs\",\n hostSurfaceNotPlaced: \"host surface (not placed)\",\n support: \"support\",\n prohibit: \"prohibit\",\n },\n /** TTS settings panel. */\n tts: {\n title: \"TTS settings\",\n closeA11y: \"Close TTS settings\",\n toolbarLayoutMode: \"Toolbar layout mode\",\n reservedRow: \"Reserved row\",\n expandingRow: \"Expanding row\",\n floatingOverlay: \"Floating overlay\",\n leftAlignedControls: \"Left-aligned controls\",\n inlineSpeedButtons: \"Inline speed buttons\",\n resetToDefaults: \"Reset to defaults\",\n mathHighlighting: \"Math highlighting\",\n checkingAvailability: \"Checking availability…\",\n recheck: \"Recheck\",\n voice: \"Voice\",\n bestAvailableVoice: \"Best available voice (auto)\",\n unnamedVoice: \"Unnamed voice\",\n apiEndpoint: \"API endpoint\",\n gender: \"Gender\",\n any: \"Any\",\n male: \"Male\",\n female: \"Female\",\n neutral: \"Neutral\",\n engine: \"Engine\",\n neural: \"Neural\",\n standard: \"Standard\",\n providerDefault: \"Provider default\",\n format: \"Format\",\n sampleRate: \"Sample rate\",\n speechMarks: \"Speech marks\",\n word: \"Word\",\n wordAndSentence: \"Word + sentence\",\n voiceType: \"Voice type\",\n wavenetVoiceType: \"WaveNet\",\n studioVoiceType: \"Studio\",\n plainText: \"Plain text\",\n sampleText: \"Sample text\",\n resetSample: \"Reset sample\",\n providerAvailable: \"Provider available.\",\n providerUnavailable: \"Provider unavailable.\",\n providerCheckFailed: \"Provider availability check failed.\",\n providerNotChecked: \"Provider availability has not been checked yet.\",\n webSpeechUnavailable: \"Web Speech API is not available in this browser.\",\n browserNoVoices: \"Browser text-to-speech is available, but no voices were returned yet.\",\n browserUnavailable: \"Browser text-to-speech is not available.\",\n googleUnavailable: \"Google Cloud TTS is not available from the configured API.\",\n // No keys for the preview sample text: it is spoken by the voice under\n // test, so its language follows that voice, not the interface locale.\n pollyUnavailable: \"AWS Polly is not available from the configured API.\",\n recommendedVoices: \"Recommended voices\",\n allVoices: \"All available voices\",\n previewVoice: \"Preview voice\",\n stopPreview: \"Stop preview\",\n applying: \"Applying…\",\n ssmlPreviewUnsupported: \"SSML preview is not supported in the Browser backend.\",\n pollySsmlHint: \"Some Polly neural voices reject certain SSML tags (for example emphasis). Use basic SSML tags if preview fails.\",\n mathHighlightParts: \"Highlighting each part of a formula as it is read, falling back to the whole formula when alignment is uncertain.\",\n mathHighlightBlock: \"Highlighting each formula as a single block instead of breaking it into parts.\",\n previewFailed: \"Failed to play preview audio.\",\n previewNoAudio: \"Preview response did not include audio content.\",\n previewEnterText: \"Enter preview text before starting playback.\",\n previewUnavailable: \"Cannot preview while this service is unavailable.\",\n browserSynthesisUnavailable: \"Browser speech synthesis is unavailable.\",\n ssmlWordTrackingDisabled: \"Google SSML preview preserves authored SSML, so word tracking is disabled.\",\n applyUnavailable: \"Cannot apply settings while this service is unavailable.\",\n coordinatorUnavailable: \"Toolkit coordinator is not available for text-to-speech updates.\",\n customProviderNotRegistered: \"Custom provider '{id}' is not registered.\",\n customProviderNoConfig: \"Custom provider '{id}' did not return an apply config.\",\n httpError: \"HTTP {status}: {message}\",\n unknownError: \"Unknown error\",\n previewRequestFailed: \"Preview request failed ({status}).\",\n notAvailable: \"n/a\",\n voiceLocal: \"local\",\n voiceRemote: \"remote\",\n voiceBrowserDefault: \"browser default\",\n browserAvailable: {\n one: \"Browser TTS available ({count} voice detected).\",\n other: \"Browser TTS available ({count} voices detected).\",\n },\n pollyAvailable: {\n one: \"AWS Polly available ({count} matching voice, {engine} engine).\",\n other: \"AWS Polly available ({count} matching voices, {engine} engine).\",\n },\n googleAvailable: {\n one: \"Google Cloud TTS available ({count} matching voice).\",\n other: \"Google Cloud TTS available ({count} matching voices).\",\n },\n headerRowReservation: \"Item header row reservation: {state}\",\n speedOptionsHelp: \"Comma or semicolon-separated multipliers. Include 1 for Normal; leave empty to hide speed controls.\",\n usingSelectedVoice: \"Using selected voice: {voice}\",\n autoVoice: \"Best available voice (auto): {voice}\",\n autoVoiceWaiting: \"Best available voice (auto): waiting for browser voices.\",\n previewHintBrowserSsml: \"SSML is unsupported in Browser preview.\",\n previewHintGoogleSsml: \"SSML preserved. Tracking disabled.\",\n previewHintCustom: \"Tracking enabled when provider returns speech marks.\",\n previewHintTracking: \"Tracking enabled while preview plays.\",\n formatMp3: \"MP3\",\n formatOgg: \"OGG\",\n formatPcm: \"PCM\",\n sampleRate8000: \"8000 Hz\",\n sampleRate16000: \"16000 Hz\",\n sampleRate22050: \"22050 Hz\",\n sampleRate24000: \"24000 Hz\",\n apiEndpointPlaceholder: \"/api/tts\",\n languagePlaceholder: \"en-US\",\n ssml: \"SSML\",\n },\n },\n};\nexport default enUS;\n","/**\n * The bundled i18n provider.\n *\n * Deliberately imports only the English catalog. The dynamic loader map for every\n * other locale lives in `./catalogs.js`, which players import and tools do not.\n * Tools resolve players-shared from the host's node_modules, so keeping the\n * loader map out of this module keeps locale chunks out of a host bundle that\n * reaches players-shared only through tools.\n *\n * @module @pie-players/pie-players-shared/i18n/provider\n */\nimport { canonicalLanguageTag, findBestLanguageMatch, normalizeLanguageTag, toLanguageTag, } from \"./language-tags.js\";\nimport enUS from \"./messages/en-US.js\";\n/** The locale every fallback chain terminates at. */\nexport const DEFAULT_LOCALE = \"en-US\";\n/**\n * Assert that a runtime-assembled string is a message key.\n *\n * Every other call site passes a literal checked against `MessageKey`, so a\n * typo is a compile error. This is the one escape hatch, for a key built from an\n * id the catalog cannot enumerate — a host-supplied element category, a\n * colour-scheme id. Unchecked, like any assertion: pair it with `hasKey` where a\n * miss must not reach the screen.\n */\nexport function dynamicMessageKey(key) {\n return key;\n}\n/**\n * Right-to-left primary language subtags.\n *\n * Consulted only where `Intl.Locale.prototype.textInfo` is unavailable — it is\n * the authoritative CLDR answer but shipped late in Safari, and an assessment\n * laid out left-to-right for an Arabic reader is not a graceful degradation.\n */\nconst RTL_LANGUAGES = new Set([\n \"ar\", // Arabic\n \"ckb\", // Central Kurdish\n \"dv\", // Dhivehi\n \"fa\", // Persian\n \"he\",\n \"iw\", // Hebrew, current and legacy subtags\n \"ks\", // Kashmiri\n \"ku\", // Kurdish\n \"nqo\", // N'Ko\n \"ps\", // Pashto\n \"sd\", // Sindhi\n \"syr\", // Syriac\n \"ug\", // Uyghur\n \"ur\", // Urdu\n \"yi\", // Yiddish\n]);\nconst PLURAL_CATEGORIES = new Set([\n \"zero\",\n \"one\",\n \"two\",\n \"few\",\n \"many\",\n \"other\",\n]);\nfunction isPluralGroup(node) {\n if (typeof node !== \"object\" || node === null)\n return false;\n const keys = Object.keys(node);\n return keys.length > 0 && keys.every((key) => PLURAL_CATEGORIES.has(key));\n}\n/**\n * Writing direction of a locale tag.\n *\n * Exported because the catalog resolver and the TTS voice selector need it\n * without constructing a provider.\n */\nexport function localeDirection(locale) {\n try {\n const textInfo = new Intl.Locale(locale).textInfo;\n if (textInfo?.direction === \"rtl\" || textInfo?.direction === \"ltr\") {\n return textInfo.direction;\n }\n }\n catch {\n // Not a tag `Intl.Locale` accepts; the subtag check below still answers.\n }\n const language = normalizeLanguageTag(locale).split(\"-\")[0] ?? \"\";\n return RTL_LANGUAGES.has(language) ? \"rtl\" : \"ltr\";\n}\n/**\n * The browser's preferred locale, or `DEFAULT_LOCALE` where there is no\n * `navigator` — so this is safe in Node, which `players-shared` must remain.\n *\n * Nothing calls this by default. Under fixed lockstep patch-only versioning a\n * rendered-string change reaches a host's live delivery on their next install\n * with no build signal on their side, so auto-detection would silently switch an\n * English deployment's chrome on a Dutch-configured laptop. A host that wants\n * detection opts into it.\n */\nexport function detectBrowserLocale() {\n if (typeof navigator === \"undefined\")\n return DEFAULT_LOCALE;\n return navigator.language || navigator.languages?.[0] || DEFAULT_LOCALE;\n}\n/**\n * The bundled provider.\n *\n * Catalogs are BCP-47 keyed and resolved through RFC 4647 lookup, and plural\n * categories come from `Intl.PluralRules`. It never writes `dir` or `lang` to\n * `document.documentElement`: an embedded player does not own the host page's\n * root.\n */\nexport class SimpleI18n {\n /** Shared across instances and views: `Intl.PluralRules` is not cheap. */\n static pluralRules = new Map();\n locale;\n fallbackLocale;\n /** Shared by reference with every `withLocale` view. */\n catalogs;\n customMessages;\n loading;\n /** Counts `setLocale` calls, so a slow load cannot overwrite a later request. */\n requests = 0;\n listeners = new Set();\n config;\n constructor(config = {}) {\n this.config = { ...config };\n this.fallbackLocale =\n toLanguageTag(config.fallbackLocale) || DEFAULT_LOCALE;\n this.catalogs = new Map([[DEFAULT_LOCALE, enUS]]);\n this.customMessages = { ...(config.customMessages ?? {}) };\n this.loading = new Map();\n this.locale = this.resolveLocaleTag(config.locale) ?? DEFAULT_LOCALE;\n }\n /**\n * Set the locale, loading its catalog first.\n *\n * Convenience over `setLocale` for a host that constructs the provider and\n * configures it in two steps. Never falls back to the browser locale; see\n * {@link detectBrowserLocale}.\n */\n async initialize(config) {\n this.config = { ...this.config, ...config };\n if (config.customMessages) {\n for (const [locale, messages] of Object.entries(config.customMessages)) {\n this.addCustomMessages(locale, messages);\n }\n }\n await this.setLocale(config.locale ?? this.locale);\n }\n getLocale() {\n return this.locale;\n }\n /**\n * Switch locale.\n *\n * Resolves the request against the catalogs this provider can serve, loads\n * the winner if it is not resident, then notifies subscribers — in that\n * order, so a component's reactive read re-runs against a catalog that is\n * already in place rather than against the previous locale. The last call\n * wins: a call whose load finishes after a later call's leaves the locale\n * to that later call.\n */\n async setLocale(locale) {\n const request = ++this.requests;\n const resolved = this.resolveLocaleTag(locale);\n if (!resolved) {\n // A locale we ship no catalog for is legitimate: the host may have\n // supplied its own messages for it. Honour the tag and let the\n // fallback chain cover whatever those messages omit.\n this.locale = toLanguageTag(locale) || DEFAULT_LOCALE;\n this.notify();\n return;\n }\n // The loader is asked only for tags it declares. A tag that resolved through\n // host messages alone has nothing to load, and is honoured like the\n // unresolved case above.\n if (!this.catalogs.has(resolved) &&\n this.config.availableLocales?.includes(resolved)) {\n const inFlight = this.loading.get(resolved);\n if (inFlight) {\n await inFlight;\n }\n else {\n const load = this.loadCatalog(resolved);\n this.loading.set(resolved, load);\n try {\n await load;\n }\n finally {\n this.loading.delete(resolved);\n }\n }\n }\n if (request !== this.requests)\n return;\n this.locale = resolved;\n this.notify();\n }\n t(key, values) {\n const message = this.lookup(key);\n if (message === undefined) {\n this.config.onMissingKey?.(key, this.locale);\n return key;\n }\n return interpolate(message, values, this.locale);\n }\n /**\n * Translate a plural group.\n *\n * The category comes from `Intl.PluralRules` for the active locale, so a\n * locale with more than two forms resolves correctly: Arabic selects among\n * zero/one/two/few/many/other, Polish among one/few/many/other. A category the\n * catalog does not carry resolves to `other`.\n */\n plural(key, options) {\n const group = this.lookupNode(key);\n if (group === undefined || !isPluralGroup(group)) {\n return this.t(key, options);\n }\n const category = this.selectPluralCategory(options.count);\n const form = group[category] ?? group.other;\n return interpolate(form, options, this.locale);\n }\n getDirection() {\n return localeDirection(this.locale);\n }\n /**\n * Locales this provider can serve: resident catalogs, whatever the loader\n * declares, and any locale the host supplied messages for.\n */\n getAvailableLocales() {\n const tags = new Set([\n ...this.catalogs.keys(),\n ...(this.config.availableLocales ?? []),\n ...Object.keys(this.customMessages),\n ]);\n return [...tags];\n }\n isLocaleLoaded(locale) {\n const resolved = this.resolveLocaleTag(locale);\n return resolved !== undefined && this.catalogs.has(resolved);\n }\n subscribe(listener) {\n this.listeners.add(listener);\n return () => {\n this.listeners.delete(listener);\n };\n }\n hasKey(key) {\n return this.lookup(key) !== undefined;\n }\n /**\n * Add or override messages for one locale.\n *\n * Deep-merged, so a deployment can override a single label without restating\n * a catalog.\n */\n addCustomMessages(locale, messages) {\n const tag = toLanguageTag(locale);\n this.customMessages[tag] = deepMerge(this.customMessages[tag] ?? {}, messages);\n this.notify();\n }\n /**\n * A view of this provider fixed to another locale.\n *\n * Catalogs, in-flight loads and custom messages are shared by reference, so\n * `setLocale` through either side is visible to both and no catalog is parsed\n * twice. This is what lets two players on one page render different chrome\n * locales: the locale is per-view, the catalogs are per-provider.\n */\n withLocale(locale) {\n const resolved = this.resolveLocaleTag(locale) ?? toLanguageTag(locale);\n if (resolved === this.locale)\n return this;\n const view = new SimpleI18n({ ...this.config, locale: resolved });\n view.locale = resolved || DEFAULT_LOCALE;\n view.catalogs = this.catalogs;\n view.customMessages = this.customMessages;\n view.loading = this.loading;\n return view;\n }\n formatNumber(value, options) {\n try {\n return new Intl.NumberFormat(this.locale, options).format(value);\n }\n catch {\n return new Intl.NumberFormat(DEFAULT_LOCALE, options).format(value);\n }\n }\n formatDate(date, options) {\n try {\n return new Intl.DateTimeFormat(this.locale, options).format(date);\n }\n catch {\n return new Intl.DateTimeFormat(DEFAULT_LOCALE, options).format(date);\n }\n }\n /** The resolved catalog for a locale, for a host that wants to inspect it. */\n getBundle(locale = this.locale) {\n const tag = this.resolveLocaleTag(locale);\n if (!tag)\n return undefined;\n const translations = this.catalogs.get(tag);\n if (!translations)\n return undefined;\n return { locale: tag, translations, direction: localeDirection(tag) };\n }\n /**\n * Which shipped catalog serves a requested tag.\n *\n * RFC 4647 lookup first, so `nl-BE` reaches `nl-NL` through `nl`; then\n * primary-subtag widening, so a bare `nl` reaches the regional `nl-NL`\n * catalog we actually ship. POSIX `nl_NL` normalizes on the way in, which is\n * the form the Learnosity transform emits.\n */\n resolveLocaleTag(locale) {\n if (!locale)\n return undefined;\n const available = this.getAvailableLocales();\n const exactOrPrefix = findBestLanguageMatch(locale, available);\n if (exactOrPrefix)\n return exactOrPrefix;\n const requestedLanguage = normalizeLanguageTag(locale).split(\"-\")[0];\n if (!requestedLanguage)\n return undefined;\n return available.find((candidate) => normalizeLanguageTag(candidate).split(\"-\")[0] === requestedLanguage);\n }\n async loadCatalog(locale) {\n const load = this.config.loadCatalog;\n if (!load)\n return;\n try {\n this.catalogs.set(locale, await load(locale));\n }\n catch (error) {\n // Rethrown with the locale named: `setLocale` rejects before switching\n // (it assigns `this.locale` only after the load), so the previous locale\n // stays active.\n throw new Error(`Failed to load i18n catalog for locale: ${locale}`, {\n cause: error,\n });\n }\n }\n /**\n * Resolution order for one key. Host overrides for the active locale win, so\n * a deployment can rename one label without forking a catalog.\n */\n lookupNode(key) {\n const sources = [\n this.customMessages[this.locale],\n this.catalogs.get(this.locale),\n this.customMessages[this.fallbackLocale],\n this.catalogs.get(this.fallbackLocale),\n ];\n for (const source of sources) {\n const hit = readPath(source, key);\n if (hit !== undefined)\n return hit;\n }\n return undefined;\n }\n lookup(key) {\n const node = this.lookupNode(key);\n if (typeof node === \"string\")\n return node;\n // A plural group resolves to its `other` form. A namespace (`t(\"common\")`)\n // is a miss: returning the object would put one where the caller expects\n // a string, and interpolating it throws.\n if (node !== undefined && isPluralGroup(node))\n return node.other;\n return undefined;\n }\n selectPluralCategory(count) {\n let rules = SimpleI18n.pluralRules.get(this.locale);\n if (!rules) {\n try {\n rules = new Intl.PluralRules(this.locale);\n }\n catch {\n return count === 1 ? \"one\" : \"other\";\n }\n SimpleI18n.pluralRules.set(this.locale, rules);\n }\n return rules.select(count);\n }\n notify() {\n for (const listener of this.listeners)\n listener();\n }\n}\nfunction readPath(source, key) {\n if (!source)\n return undefined;\n let current = source;\n for (const part of key.split(\".\")) {\n if (typeof current !== \"object\" || current === null)\n return undefined;\n current = current[part];\n if (current === undefined)\n return undefined;\n }\n return current;\n}\n/**\n * Substitute `{name}` placeholders.\n *\n * A finite numeric value renders through `Intl.NumberFormat` for the active\n * locale, so digits and grouping follow CLDR locale defaults: `ar` renders\n * Arabic-Indic digits, `fr` groups with narrow no-break spaces, `en-US` with\n * commas. Catalog text that spells digits out is untouched.\n */\nconst numberFormats = new Map();\nfunction formatNumber(value, locale) {\n let formatter = numberFormats.get(locale);\n if (!formatter) {\n try {\n formatter = new Intl.NumberFormat(locale);\n }\n catch {\n formatter = new Intl.NumberFormat(DEFAULT_LOCALE);\n }\n numberFormats.set(locale, formatter);\n }\n return formatter.format(value);\n}\nfunction interpolate(text, values, locale) {\n if (!values)\n return text;\n return text.replace(/\\{(\\w+)\\}/g, (match, name) => {\n const value = values[name];\n if (value === undefined || value === null)\n return match;\n if (locale !== undefined &&\n typeof value === \"number\" &&\n Number.isFinite(value)) {\n return formatNumber(value, locale);\n }\n return String(value);\n });\n}\nfunction deepMerge(target, source) {\n const result = { ...target };\n for (const [key, value] of Object.entries(source)) {\n const existing = result[key];\n if (value &&\n typeof value === \"object\" &&\n existing &&\n typeof existing === \"object\") {\n result[key] = deepMerge(existing, value);\n }\n else {\n result[key] = value;\n }\n }\n return result;\n}\nlet defaultProvider;\n/**\n * The graceful default: an English-only provider, shared process-wide.\n *\n * `composition-context.md` requires a resolver to work with no publisher\n * present, and this is that state. A tool mounted bare — in `print-player` or\n * an authoring harness — resolves this and renders English rather than\n * leaking raw message keys onto the screen. It carries no locale loader, so it\n * pulls no catalog beyond the 5 KB English one already in the bundle.\n */\nexport function getDefaultI18n() {\n if (!defaultProvider)\n defaultProvider = new SimpleI18n();\n return defaultProvider;\n}\nexport function resolveInterfaceI18n(source) {\n const provider = source?.i18n ?? getDefaultI18n();\n // A thin facade rather than the provider itself: cheap to allocate (a handful\n // of times per session, once per republish) and it carries no state of its own,\n // so it cannot drift from the provider it delegates to. The locale formatters\n // are part of the promised surface, so a provider that does not implement\n // them falls through to `Intl` at the locale the provider resolves — the same\n // thing the bundled provider does, and the same graceful default every other\n // optional member here applies.\n return {\n // Canonical, because components read this for `lang` attributes; the\n // provider's own `getLocale()` keeps the tag as resolved for lookups.\n getLocale: () => {\n const locale = provider.getLocale();\n return canonicalLanguageTag(locale) ?? locale;\n },\n setLocale: (locale) => provider.setLocale(locale),\n t: (key, values) => provider.t(key, values),\n plural: (key, options) => provider.plural?.(key, options) ?? provider.t(key, options),\n getDirection: () => provider.getDirection?.() ?? \"ltr\",\n hasKey: (key) => provider.hasKey?.(key) ?? false,\n subscribe: (listener) => provider.subscribe?.(listener) ?? (() => { }),\n formatNumber: (value, options) => provider.formatNumber?.(value, options) ??\n new Intl.NumberFormat(provider.getLocale(), options).format(value),\n formatDate: (value, options) => provider.formatDate?.(value, options) ??\n new Intl.DateTimeFormat(provider.getLocale(), options).format(value),\n };\n}\n/**\n * Stamp the interface locale's `lang` and `dir` on a chrome element.\n *\n * The imperative form of the `lang={…} dir={…}` pair a template puts on its\n * root, for the elements a template cannot reach: a shadow host whose chrome\n * is slotted light DOM, a shell built with `document.createElement`, a vanilla\n * element stamping itself. Call it from whatever already re-runs on a locale\n * change and on a catalog load: `getLocale()` moves only once the requested\n * catalog is resident, so a stamp taken at setup alone names the locale that\n * rendered before the load.\n */\nexport function stampInterfaceLocale(target, provider) {\n // `lang` takes the canonical form: a provider honours an unshipped tag as\n // the host spelled it, and `NL-nl` is a valid request but not a valid\n // attribute value. Every `lang` this repository writes goes through the\n // same rule, so chrome and content stamps match in shape.\n const locale = provider.getLocale();\n target.setAttribute(\"lang\", canonicalLanguageTag(locale) ?? locale);\n target.setAttribute(\"dir\", provider.getDirection?.() ?? \"ltr\");\n}\n"],"ignoreList":[0,1],"mappings":";;AAyBA,IAAMI,IAAO;CAET,QAAQ;EACJ,OAAO;EACP,QAAQ;EACR,MAAM;EACN,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;EACN,UAAU;EACV,QAAQ;EACR,UAAU;EACV,QAAQ;EACR,KAAK;EACL,IAAI;EACJ,IAAI;EACJ,KAAK;EACL,KAAK;EACL,MAAM;EACN,KAAK;EACL,MAAM;EACN,SAAS;EACT,OAAO;EACP,UAAU;EACV,UAAU;EACV,OAAO;EACP,SAAS;EACT,QAAQ;EACR,SAAS;EACT,UAAU;EACV,OAAO;EACP,SAAS;EACT,UAAU;E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AU0B,GAAUxB,CAAK,IAGzBA;CAEtB;CACA,OAAOsB;AACX;AACA,IAAIG;AAUJ,SAAgBC,IAAiB;CAG7B,OAFA,AACID,MAAkB,IAAIzC,EAAW,GAC9ByC;AACX;AACA,SAAgBE,EAAqB,GAAQ;CACzC,IAAMC,IAAWnB,GAAQ,QAAQiB,EAAe;CAQhD,OAAO;EAGH,iBAAiB;GACb,IAAM5C,IAAS8C,EAAS,UAAU;GAClC,OAAO3D,EAAqBa,CAAM,KAAKA;EAC3C;EACA,YAAY,MAAW8C,EAAS,UAAU9C,CAAM;EAChD,IAAI,GAAK,MAAW8C,EAAS,EAAEjD,GAAKc,CAAM;EAC1C,SAAS,GAAK,MAAYmC,EAAS,SAASjD,GAAKgB,CAAO,KAAKiC,EAAS,EAAEjD,GAAKgB,CAAO;EACpF,oBAAoBiC,EAAS,eAAe,KAAK;EACjD,SAAS,MAAQA,EAAS,SAASjD,CAAG,KAAK;EAC3C,YAAY,MAAaiD,EAAS,YAAYhC,CAAQ,YAAY,CAAE;EACpE,eAAe,GAAO,MAAYgC,EAAS,eAAe5B,GAAOL,CAAO,KACpE,IAAI,KAAK,aAAaiC,EAAS,UAAU,GAAGjC,CAAO,CAAC,CAAC,OAAOK,CAAK;EACrE,aAAa,GAAO,MAAY4B,EAAS,aAAa5B,GAAOL,CAAO,KAChE,IAAI,KAAK,eAAeiC,EAAS,UAAU,GAAGjC,CAAO,CAAC,CAAC,OAAOK,CAAK;CAC3E;AACJ;AAYA,SAAgB6B,EAAqB,GAAQ,GAAU;CAKnD,IAAM/C,IAAS8C,EAAS,UAAU;CAElC,AADAL,EAAO,aAAa,QAAQtD,EAAqBa,CAAM,KAAKA,CAAM,GAClEyC,EAAO,aAAa,OAAOK,EAAS,eAAe,KAAK,KAAK;AACjE"}
@@ -493,7 +493,13 @@ export interface QtiSectionRuntimeHost {
493
493
  }
494
494
  export interface QtiAssessmentPlayerConfig {
495
495
  role?: QtiRole;
496
- /** Seeds selection and ordering when the element runs its built-in reference backend. */
496
+ /**
497
+ * Seeds selection and ordering when the element runs its built-in reference
498
+ * backend (reference/preview mode). Ignored in authoritative-backend
499
+ * delivery: there the backend draws selection and ordering at session
500
+ * start. This mirrors the deprecated, ignored `rng` on the headless
501
+ * assessment-player config.
502
+ */
497
503
  rng?: () => number;
498
504
  plugins?: readonly QtiAssessmentItemDefinitionPlugin[];
499
505
  i18nProvider?: QtiI18nProvider;
@@ -1,4 +1,4 @@
1
- import { t as e } from "./define-B-ocInH4.js";
1
+ import { t as e } from "./define-ourVMSDV.js";
2
2
  //#region src/register-players.ts
3
3
  e();
4
4
  //#endregion