@citolab/qti-components 10.0.0-next.12 → 10.0.0-next.14

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 (62) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +447 -412
  3. package/dist/base.d.ts +3 -3
  4. package/dist/base.js +1 -1
  5. package/dist/{chunk-5K5JO7OG.js → chunk-6XRNX574.js} +363 -320
  6. package/dist/chunk-6XRNX574.js.map +1 -0
  7. package/dist/{chunk-AVZRY5SQ.js → chunk-BZPMN57E.js} +2 -2
  8. package/dist/{chunk-YOCOLMGB.js → chunk-C7SYDLMG.js} +197 -93
  9. package/dist/chunk-C7SYDLMG.js.map +1 -0
  10. package/dist/{chunk-OHRAG2UM.js → chunk-CCI3QMQA.js} +53 -16
  11. package/dist/chunk-CCI3QMQA.js.map +1 -0
  12. package/dist/{chunk-RWMY7KRT.js → chunk-HGKLF7SP.js} +2 -2
  13. package/dist/{chunk-AJ5U5KXR.js → chunk-LEF7AAYZ.js} +2 -2
  14. package/dist/{chunk-O76BOKAP.js → chunk-MP2SUN7J.js} +199 -90
  15. package/dist/chunk-MP2SUN7J.js.map +1 -0
  16. package/dist/{chunk-M7X6TWSX.js → chunk-NYNL5HSR.js} +2 -2
  17. package/dist/{chunk-T7YSBBAA.js → chunk-O2ENNGKV.js} +3 -2
  18. package/dist/chunk-O2ENNGKV.js.map +1 -0
  19. package/dist/chunk-Q4MJCEDE.js +7 -0
  20. package/dist/chunk-Q4MJCEDE.js.map +1 -0
  21. package/dist/{chunk-PLP3YX6C.js → chunk-S5GLISQA.js} +2 -2
  22. package/dist/{chunk-XXJAE6AP.js → chunk-SWNFCQ4G.js} +3 -3
  23. package/dist/{chunk-LCGPLQLE.js → chunk-TU34FFWF.js} +8 -3
  24. package/dist/chunk-TU34FFWF.js.map +1 -0
  25. package/dist/{config.context.d-BvU9r-Mg.d.ts → config.context.d-BniMHSBB.d.ts} +3 -2
  26. package/dist/corrections.d.ts +17 -7
  27. package/dist/corrections.js +8 -8
  28. package/dist/elements.d.ts +54 -12
  29. package/dist/elements.js +3 -3
  30. package/dist/index.d.ts +6 -6
  31. package/dist/index.js +15 -13
  32. package/dist/interactions.d.ts +17 -5
  33. package/dist/interactions.js +3 -3
  34. package/dist/item.css +69 -24
  35. package/dist/item.d.ts +3 -3
  36. package/dist/item.js +4 -4
  37. package/dist/loader.d.ts +1 -1
  38. package/dist/processing.d.ts +8 -4
  39. package/dist/processing.js +3 -3
  40. package/dist/qti-components-jsx.d.ts +323 -108
  41. package/dist/{qti-item.d-B1gffYCL.d.ts → qti-item.d-BqWYBdV2.d.ts} +1 -1
  42. package/dist/{qti-rule-base.d-Bdzg8eGH.d.ts → qti-rule-base.d-CeKP0Ooi.d.ts} +2 -2
  43. package/dist/{qti-test.d-D5C7W8Lg.d.ts → qti-test.d-C0I1BIdH.d.ts} +58 -6
  44. package/dist/{qti-text-entry-interaction.d-CU-fAAD1.d.ts → qti-text-entry-interaction.d-V4sWE9TO.d.ts} +37 -9
  45. package/dist/{record.d-wB9uYs-j.d.ts → record.d-C6m0Y4xr.d.ts} +1 -1
  46. package/dist/test.d.ts +8 -5
  47. package/dist/test.js +7 -5
  48. package/package.json +10 -10
  49. package/dist/chunk-5K5JO7OG.js.map +0 -1
  50. package/dist/chunk-LCGPLQLE.js.map +0 -1
  51. package/dist/chunk-O76BOKAP.js.map +0 -1
  52. package/dist/chunk-OHRAG2UM.js.map +0 -1
  53. package/dist/chunk-T7YSBBAA.js.map +0 -1
  54. package/dist/chunk-YKXVAXSI.js +0 -7
  55. package/dist/chunk-YKXVAXSI.js.map +0 -1
  56. package/dist/chunk-YOCOLMGB.js.map +0 -1
  57. /package/dist/{chunk-AVZRY5SQ.js.map → chunk-BZPMN57E.js.map} +0 -0
  58. /package/dist/{chunk-RWMY7KRT.js.map → chunk-HGKLF7SP.js.map} +0 -0
  59. /package/dist/{chunk-AJ5U5KXR.js.map → chunk-LEF7AAYZ.js.map} +0 -0
  60. /package/dist/{chunk-M7X6TWSX.js.map → chunk-NYNL5HSR.js.map} +0 -0
  61. /package/dist/{chunk-PLP3YX6C.js.map → chunk-S5GLISQA.js.map} +0 -0
  62. /package/dist/{chunk-XXJAE6AP.js.map → chunk-SWNFCQ4G.js.map} +0 -0
@@ -17,7 +17,7 @@ import {
17
17
  responseAttributeConverter,
18
18
  serializeResponseAttribute,
19
19
  validationMessage
20
- } from "./chunk-T7YSBBAA.js";
20
+ } from "./chunk-O2ENNGKV.js";
21
21
 
22
22
  // ../interactions/core/dist/elements/qti-associable-hotspot/qti-associable-hotspot.js
23
23
  import { LitElement, html } from "lit";
@@ -633,9 +633,15 @@ var styles = css7`
633
633
  * An option row: one line, clipped, with its text centred against the row's min-height. All four
634
634
  * were in the theme, set on this host from the document — which is also why the 'display: block'
635
635
  * this file declared never took effect.
636
+ *
637
+ * Block-level flex, not inline-flex. The rows are stacked by being full-width, but inline-level
638
+ * rows still sit on ONE line in the menu's max-content pass, and the menu is a shrink-to-fit
639
+ * popover: it came out as wide as all options side by side (measured: rows "vind" + "vindt" gave
640
+ * a 107px menu under a 76px field). Block rows each start their own line, so the menu is as wide
641
+ * as its widest row, or the field it anchors to.
636
642
  */
637
643
  :host {
638
- display: inline-flex;
644
+ display: flex;
639
645
  align-items: center;
640
646
  white-space: nowrap;
641
647
  overflow: hidden;
@@ -1287,22 +1293,22 @@ var [Observable, Subscriber] = (() => {
1287
1293
  const AsyncFromSyncIteratorPrototype = {
1288
1294
  next(...args) {
1289
1295
  const O = this;
1290
- const state15 = privateState.get(O);
1291
- if (!state15?.syncIteratorRecord)
1296
+ const state16 = privateState.get(O);
1297
+ if (!state16?.syncIteratorRecord)
1292
1298
  throw new TypeError(
1293
1299
  "AsyncFromSyncIteratorPrototype.next called on invalid object"
1294
1300
  );
1295
- const { syncIteratorRecord } = state15;
1301
+ const { syncIteratorRecord } = state16;
1296
1302
  return pTry(() => syncIteratorRecord.next(...args));
1297
1303
  },
1298
1304
  return(...args) {
1299
1305
  const O = this;
1300
- const state15 = privateState.get(O);
1301
- if (!state15?.syncIteratorRecord)
1306
+ const state16 = privateState.get(O);
1307
+ if (!state16?.syncIteratorRecord)
1302
1308
  throw new TypeError(
1303
1309
  "AsyncFromSyncIteratorPrototype.return called on invalid object"
1304
1310
  );
1305
- const { syncIteratorRecord } = state15;
1311
+ const { syncIteratorRecord } = state16;
1306
1312
  return pTry(() => {
1307
1313
  if (!syncIteratorRecord.return) return { value: void 0, done: true };
1308
1314
  return syncIteratorRecord.return(...args);
@@ -1310,12 +1316,12 @@ var [Observable, Subscriber] = (() => {
1310
1316
  },
1311
1317
  throw(...args) {
1312
1318
  const O = this;
1313
- const state15 = privateState.get(O);
1314
- if (!state15?.syncIteratorRecord)
1319
+ const state16 = privateState.get(O);
1320
+ if (!state16?.syncIteratorRecord)
1315
1321
  throw new TypeError(
1316
1322
  "AsyncFromSyncIteratorPrototype.throw called on invalid object"
1317
1323
  );
1318
- const { syncIteratorRecord } = state15;
1324
+ const { syncIteratorRecord } = state16;
1319
1325
  return pTry(() => {
1320
1326
  if (!syncIteratorRecord.throw) {
1321
1327
  syncIteratorRecord.return();
@@ -1381,11 +1387,11 @@ var [Observable, Subscriber] = (() => {
1381
1387
  }
1382
1388
  }
1383
1389
  function closeASubscription(subscriber, reason) {
1384
- const state15 = privateState.get(subscriber);
1385
- if (!state15?.active) return;
1386
- state15.active = false;
1387
- state15.subscriptionController.abort(reason);
1388
- for (const teardown of state15.teardowns.reverse()) {
1390
+ const state16 = privateState.get(subscriber);
1391
+ if (!state16?.active) return;
1392
+ state16.active = false;
1393
+ state16.subscriptionController.abort(reason);
1394
+ for (const teardown of state16.teardowns.reverse()) {
1389
1395
  if (isBrowserContext() && !isDocumentFullyActive(document)) return;
1390
1396
  try {
1391
1397
  teardown();
@@ -1466,10 +1472,10 @@ var [Observable, Subscriber] = (() => {
1466
1472
  if (!(this instanceof Subscriber2))
1467
1473
  throw new TypeError("illegal invocation");
1468
1474
  if (!arguments.length) throw new TypeError("too few arguments");
1469
- const state15 = privateState.get(this);
1470
- if (!state15?.active) return;
1475
+ const state16 = privateState.get(this);
1476
+ if (!state16?.active) return;
1471
1477
  if (isBrowserContext() && !isDocumentFullyActive(document)) return;
1472
- const internalObservers = new Set(state15.observers);
1478
+ const internalObservers = new Set(state16.observers);
1473
1479
  for (const observer of internalObservers) {
1474
1480
  observer.next(value);
1475
1481
  }
@@ -1479,14 +1485,14 @@ var [Observable, Subscriber] = (() => {
1479
1485
  if (!(this instanceof Subscriber2))
1480
1486
  throw new TypeError("illegal invocation");
1481
1487
  if (!arguments.length) throw new TypeError("too few arguments");
1482
- const state15 = privateState.get(this);
1483
- if (!state15?.active) {
1488
+ const state16 = privateState.get(this);
1489
+ if (!state16?.active) {
1484
1490
  reportError(error);
1485
1491
  return;
1486
1492
  }
1487
1493
  if (isBrowserContext() && !isDocumentFullyActive(document)) return;
1488
1494
  closeASubscription(this, error);
1489
- const internalObservers = new Set(state15.observers);
1495
+ const internalObservers = new Set(state16.observers);
1490
1496
  for (const observer of internalObservers) {
1491
1497
  observer.error(error);
1492
1498
  }
@@ -1495,11 +1501,11 @@ var [Observable, Subscriber] = (() => {
1495
1501
  complete() {
1496
1502
  if (!(this instanceof Subscriber2))
1497
1503
  throw new TypeError("illegal invocation");
1498
- const state15 = privateState.get(this);
1499
- if (!state15?.active) return;
1504
+ const state16 = privateState.get(this);
1505
+ if (!state16?.active) return;
1500
1506
  if (isBrowserContext() && !isDocumentFullyActive(document)) return;
1501
1507
  closeASubscription(this);
1502
- const internalObservers = new Set(state15.observers);
1508
+ const internalObservers = new Set(state16.observers);
1503
1509
  for (const observer of internalObservers) {
1504
1510
  observer.complete();
1505
1511
  }
@@ -1512,9 +1518,9 @@ var [Observable, Subscriber] = (() => {
1512
1518
  throw new TypeError(`Parameter 1 is not of type 'Function'`);
1513
1519
  }
1514
1520
  if (isBrowserContext() && !isDocumentFullyActive(document)) return;
1515
- const state15 = privateState.get(this);
1516
- if (state15?.active)
1517
- state15.teardowns.push(teardown);
1521
+ const state16 = privateState.get(this);
1522
+ if (state16?.active)
1523
+ state16.teardowns.push(teardown);
1518
1524
  else teardown();
1519
1525
  }
1520
1526
  get active() {
@@ -2698,17 +2704,17 @@ function isDraggableDisabled(target) {
2698
2704
  return internals?.states?.has("disabled") ?? false;
2699
2705
  }
2700
2706
  var internalsOf = (el) => el?.internals;
2701
- function setDragChipState(el, state15, on) {
2707
+ function setDragChipState(el, state16, on) {
2702
2708
  const states = internalsOf(el)?.states;
2703
2709
  if (!states)
2704
2710
  return;
2705
2711
  if (on)
2706
- states.add(state15);
2712
+ states.add(state16);
2707
2713
  else
2708
- states.delete(state15);
2714
+ states.delete(state16);
2709
2715
  }
2710
- function hasDragChipState(el, state15) {
2711
- return internalsOf(el)?.states?.has(state15) ?? false;
2716
+ function hasDragChipState(el, state16) {
2717
+ return internalsOf(el)?.states?.has(state16) ?? false;
2712
2718
  }
2713
2719
  function clearDragChipStates(el) {
2714
2720
  setDragChipState(el, "dragging", false);
@@ -3558,14 +3564,14 @@ var DragDropCoreMixin = (superClass, draggablesSelector, droppablesSelector, dra
3558
3564
  returnAnchorItems: []
3559
3565
  };
3560
3566
  }
3561
- setInternalsState(state15, enabled) {
3567
+ setInternalsState(state16, enabled) {
3562
3568
  const internals = this._internals;
3563
3569
  if (!internals?.states)
3564
3570
  return;
3565
3571
  if (enabled) {
3566
- internals.states.add(state15);
3572
+ internals.states.add(state16);
3567
3573
  } else {
3568
- internals.states.delete(state15);
3574
+ internals.states.delete(state16);
3569
3575
  }
3570
3576
  }
3571
3577
  cleanup() {
@@ -5767,8 +5773,9 @@ __decorate16([
5767
5773
  ], QtiCustomInteraction.prototype, "_errorMessage", void 0);
5768
5774
 
5769
5775
  // ../interactions/end-attempt-interaction/dist/qti-end-attempt-interaction.js
5776
+ import { consume as consume5 } from "@lit/context";
5770
5777
  import { html as html14, LitElement as LitElement11 } from "lit";
5771
- import { property as property16 } from "lit/decorators.js";
5778
+ import { property as property16, state as state7 } from "lit/decorators.js";
5772
5779
 
5773
5780
  // ../interactions/end-attempt-interaction/dist/qti-end-attempt-interaction.styles.js
5774
5781
  var qti_end_attempt_interaction_styles_default = [boxSizing];
@@ -5790,14 +5797,29 @@ var QtiEndAttemptInteraction = class extends LitElement11 {
5790
5797
  static {
5791
5798
  this.styles = qti_end_attempt_interaction_styles_default;
5792
5799
  }
5800
+ /** The item says no attempt can end here: it is locked, shown for reading, or an adaptive item that is done. */
5801
+ get #closedByItem() {
5802
+ const context = this._itemContext;
5803
+ if (!context)
5804
+ return false;
5805
+ if (context.disabled || context.readonly)
5806
+ return true;
5807
+ const adaptive = this.closest("qti-assessment-item")?.getAttribute("adaptive") === "true";
5808
+ const completionStatus = context.variables?.find((v) => v.identifier === "completionStatus")?.value;
5809
+ return adaptive && completionStatus === "completed";
5810
+ }
5793
5811
  render() {
5794
- return html14`<button ?disabled=${this.disabled} part="button" @click=${this.endAttempt}>${this.title}</button>`;
5812
+ return html14`<button ?disabled=${this.disabled || this.#closedByItem} part="button" @click=${this.endAttempt}>
5813
+ ${this.title}
5814
+ </button>`;
5795
5815
  }
5796
5816
  endAttempt(_) {
5817
+ if (this.disabled || this.#closedByItem)
5818
+ return;
5797
5819
  this.dispatchEvent(new CustomEvent("end-attempt", {
5798
5820
  bubbles: true,
5799
5821
  composed: true,
5800
- detail: { responseIdentifier: this.responseIdentifier, countAttempt: this.countAttempt === "true" }
5822
+ detail: { responseIdentifier: this.responseIdentifier, countAttempt: this.countAttempt !== "false" }
5801
5823
  }));
5802
5824
  }
5803
5825
  };
@@ -5807,6 +5829,10 @@ __decorate17([
5807
5829
  __decorate17([
5808
5830
  property16({ reflect: true, type: Boolean })
5809
5831
  ], QtiEndAttemptInteraction.prototype, "disabled", void 0);
5832
+ __decorate17([
5833
+ consume5({ context: itemContext, subscribe: true }),
5834
+ state7()
5835
+ ], QtiEndAttemptInteraction.prototype, "_itemContext", void 0);
5810
5836
  __decorate17([
5811
5837
  property16({ type: String, attribute: "count-attempt" })
5812
5838
  ], QtiEndAttemptInteraction.prototype, "countAttempt", void 0);
@@ -5817,7 +5843,7 @@ __decorate17([
5817
5843
  // ../interactions/extended-text-interaction/dist/qti-extended-text-interaction.js
5818
5844
  import { html as html15 } from "lit";
5819
5845
  import { ifDefined } from "lit/directives/if-defined.js";
5820
- import { property as property17, state as state7 } from "lit/decorators.js";
5846
+ import { property as property17, state as state8 } from "lit/decorators.js";
5821
5847
 
5822
5848
  // ../interactions/extended-text-interaction/dist/qti-extended-text-interaction.styles.js
5823
5849
  import { css as css14 } from "lit";
@@ -6002,7 +6028,7 @@ var QtiExtendedTextInteraction = class extends Interaction {
6002
6028
  }
6003
6029
  };
6004
6030
  __decorate18([
6005
- state7()
6031
+ state8()
6006
6032
  ], QtiExtendedTextInteraction.prototype, "_rows", void 0);
6007
6033
  __decorate18([
6008
6034
  property17({ type: Number, attribute: "expected-length" })
@@ -6111,7 +6137,7 @@ var QtiGapMatchInteraction = class extends DragDropSlottedSortableMixin(DragDrop
6111
6137
 
6112
6138
  // ../interactions/graphic-associate-interaction/dist/qti-graphic-associate-interaction.js
6113
6139
  import { html as html17, nothing as nothing2, svg } from "lit";
6114
- import { property as property18, queryAssignedElements, state as state8 } from "lit/decorators.js";
6140
+ import { property as property18, queryAssignedElements, state as state9 } from "lit/decorators.js";
6115
6141
  import { ifDefined as ifDefined2 } from "lit/directives/if-defined.js";
6116
6142
  import { repeat as repeat5 } from "lit/directives/repeat.js";
6117
6143
 
@@ -6482,16 +6508,16 @@ var QtiGraphicAssociateInteraction = class extends Interaction {
6482
6508
  }
6483
6509
  };
6484
6510
  __decorate19([
6485
- state8()
6511
+ state9()
6486
6512
  ], QtiGraphicAssociateInteraction.prototype, "startCoord", void 0);
6487
6513
  __decorate19([
6488
- state8()
6514
+ state9()
6489
6515
  ], QtiGraphicAssociateInteraction.prototype, "mouseCoord", void 0);
6490
6516
  __decorate19([
6491
6517
  queryAssignedElements({ selector: "img" })
6492
6518
  ], QtiGraphicAssociateInteraction.prototype, "grImage", void 0);
6493
6519
  __decorate19([
6494
- state8()
6520
+ state9()
6495
6521
  ], QtiGraphicAssociateInteraction.prototype, "_response", void 0);
6496
6522
  __decorate19([
6497
6523
  property18({
@@ -6504,7 +6530,7 @@ __decorate19([
6504
6530
 
6505
6531
  // ../interactions/graphic-gap-match-interaction/dist/qti-graphic-gap-match-interaction.js
6506
6532
  import { html as html18 } from "lit";
6507
- import { state as state9 } from "lit/decorators.js";
6533
+ import { state as state10 } from "lit/decorators.js";
6508
6534
 
6509
6535
  // ../interactions/graphic-gap-match-interaction/dist/qti-graphic-gap-match-interaction.styles.js
6510
6536
  import { css as css17 } from "lit";
@@ -6713,7 +6739,7 @@ var QtiGraphicGapMatchInteraction = class extends DragDropSlottedSortableMixin(S
6713
6739
  }
6714
6740
  };
6715
6741
  __decorate20([
6716
- state9()
6742
+ state10()
6717
6743
  ], QtiGraphicGapMatchInteraction.prototype, "_graphicScale", void 0);
6718
6744
 
6719
6745
  // ../interactions/graphic-order-interaction/dist/qti-graphic-order-interaction.js
@@ -7000,6 +7026,8 @@ var QtiHotspotInteraction = class extends ChoicesMixin(Interaction, "qti-hotspot
7000
7026
  }
7001
7027
  async #positionHotspot(hotspot) {
7002
7028
  const img = this.querySelector("img");
7029
+ if (!img)
7030
+ return;
7003
7031
  const coords = hotspot.getAttribute("coords");
7004
7032
  const shape = hotspot.getAttribute("shape");
7005
7033
  const coordsNumber = coords.split(",").map((s) => parseInt(s));
@@ -7050,8 +7078,9 @@ var QtiHottextInteraction = class extends ChoicesMixin(Interaction, "qti-hottext
7050
7078
 
7051
7079
  // ../interactions/inline-choice-interaction/dist/qti-inline-choice-interaction.js
7052
7080
  import { html as html22 } from "lit";
7053
- import { property as property20, state as state10 } from "lit/decorators.js";
7054
- import { consume as consume5 } from "@lit/context";
7081
+ import { property as property20, state as state11 } from "lit/decorators.js";
7082
+ import { ifDefined as ifDefined3 } from "lit/directives/if-defined.js";
7083
+ import { consume as consume6 } from "@lit/context";
7055
7084
 
7056
7085
  // ../interactions/core/dist/mixins/menu-auto-size/menu-auto-size.mixin.js
7057
7086
  var MenuAutoSizeMixin = (superClass, menuSelector = "[part='menu']", triggerSelector = "[part='trigger']", customProperty = "--qti-inline-choice-width") => {
@@ -7176,7 +7205,7 @@ var MenuAutoSizeMixin = (superClass, menuSelector = "[part='menu']", triggerSele
7176
7205
  if (!menu)
7177
7206
  return widest;
7178
7207
  const menuStyle = getComputedStyle(menu);
7179
- return widest + parseFloat(menuStyle.paddingLeft) + parseFloat(menuStyle.paddingRight) + parseFloat(menuStyle.borderLeftWidth) + parseFloat(menuStyle.borderRightWidth);
7208
+ return widest + parseFloat(menuStyle.paddingLeft) + parseFloat(menuStyle.paddingRight);
7180
7209
  });
7181
7210
  }
7182
7211
  /**
@@ -7338,7 +7367,13 @@ var own = css21`
7338
7367
  vertical-align: baseline;
7339
7368
  }
7340
7369
 
7370
+ /*
7371
+ * min-height: 1lh — one line of the trigger's own line-height. An empty value (data-prompt="")
7372
+ * is an empty span, which has no line box and collapsed the field to the chevron's height
7373
+ * (measured: 20px empty vs 28px with text). Now the field is a line tall either way.
7374
+ */
7341
7375
  [part='value'] {
7376
+ min-height: 1lh;
7342
7377
  min-width: 0;
7343
7378
  overflow: hidden;
7344
7379
  text-overflow: ellipsis;
@@ -7346,6 +7381,18 @@ var own = css21`
7346
7381
  text-align: left;
7347
7382
  }
7348
7383
 
7384
+ /*
7385
+ * A zero-width space before the value and the option text, so an empty one (data-prompt="") still
7386
+ * has a line box and therefore a text baseline. Without it the inline-grid trigger has no baseline
7387
+ * and the browser sits its bottom edge on the sentence's baseline: the empty field rode high and
7388
+ * made the line taller (measured: paragraph 39px empty vs 32.5px answered). No width, not
7389
+ * selectable, and the empty alt text keeps it out of the accessible name.
7390
+ */
7391
+ [part='value']::before,
7392
+ [part='option-content']::before {
7393
+ content: '\\200B' / '';
7394
+ }
7395
+
7349
7396
  /* ── Chevron icon ─────────────────────────────────────────────────────────────
7350
7397
  Rendered as a CSS mask so the theme controls its colour via color:.
7351
7398
  The span in the template is empty; this CSS provides the visual.
@@ -7396,7 +7443,26 @@ var own = css21`
7396
7443
  text-overflow: ellipsis;
7397
7444
  }
7398
7445
 
7446
+ /* The empty prompt row while nothing is chosen (see renderMenu). The rule above sets display, which
7447
+ beats the UA's [hidden] rule, so hidden has to be restated here. */
7448
+ button[part~='option'][hidden] {
7449
+ display: none;
7450
+ }
7451
+
7452
+ /* The clear row's x glyph: a mask like the chevron, so the theme colours it with color:. */
7453
+ [part='clear-icon'] {
7454
+ display: inline-block;
7455
+ width: 1em;
7456
+ height: 1em;
7457
+ vertical-align: middle;
7458
+ background-color: currentColor;
7459
+ mask: var(--qti-times-mask) no-repeat center / contain;
7460
+ -webkit-mask: var(--qti-times-mask) no-repeat center / contain;
7461
+ }
7462
+
7463
+ /* min-height: 1lh, so an empty prompt row is as tall as the other rows — see [part='value']. */
7399
7464
  [part='option-content'] {
7465
+ min-height: 1lh;
7400
7466
  flex: 1 1 auto;
7401
7467
  min-width: 0;
7402
7468
  overflow: hidden;
@@ -7555,8 +7621,20 @@ var QtiInlineChoiceInteraction = class extends MenuAutoSizeMixin(Interaction) {
7555
7621
  </button>
7556
7622
  `;
7557
7623
  }
7558
- /** The popover listbox. */
7624
+ /**
7625
+ * The popover listbox. Its first row is the prompt — the way back to "nothing chosen", as the
7626
+ * spec's figure of an open dropdown shows it. With an empty prompt there is nothing to read, so:
7627
+ * while nothing is chosen the row is hidden (it would read as an empty option, and there is
7628
+ * nothing to clear), and once something is chosen it is a clear button — an x glyph named by
7629
+ * `data-clear-label`. Either way selecting it does the same: `#selectValue('')`.
7630
+ */
7559
7631
  renderMenu() {
7632
+ const prompt = this.options[0];
7633
+ const promptEmpty = this.#promptIsEmpty();
7634
+ const nothingChosen = prompt?.selected ?? true;
7635
+ const hidden = promptEmpty && nothingChosen;
7636
+ const clear = promptEmpty && !nothingChosen;
7637
+ const parts = ["option", "option-prompt", prompt?.selected ? "option-selected" : "", clear ? "option-clear" : ""].filter(Boolean).join(" ");
7560
7638
  return html22`
7561
7639
  <div
7562
7640
  id="${this._menuId}"
@@ -7567,13 +7645,17 @@ var QtiInlineChoiceInteraction = class extends MenuAutoSizeMixin(Interaction) {
7567
7645
  @keydown=${this.#onCustomMenuKeyDown}
7568
7646
  >
7569
7647
  <button
7570
- part="${this.options[0]?.selected ? "option option-prompt option-selected" : "option option-prompt"}"
7648
+ part="${parts}"
7571
7649
  type="button"
7572
7650
  role="option"
7573
- aria-selected="${this.options[0]?.selected ? "true" : "false"}"
7651
+ ?hidden=${hidden}
7652
+ aria-label=${ifDefined3(clear ? this.dataClearLabel || "Clear" : void 0)}
7653
+ aria-selected="${prompt?.selected ? "true" : "false"}"
7574
7654
  @click=${() => this.#selectValue("")}
7575
7655
  >
7576
- <span part="option-content">${this.options[0]?.content}</span>
7656
+ <span part="option-content"
7657
+ >${clear ? html22`<span part="clear-icon" aria-hidden="true"></span>` : prompt?.content}</span
7658
+ >
7577
7659
  </button>
7578
7660
  <slot @slotchange=${this.#onChoicesSlotChange}></slot>
7579
7661
  </div>
@@ -7621,12 +7703,29 @@ var QtiInlineChoiceInteraction = class extends MenuAutoSizeMixin(Interaction) {
7621
7703
  this.#syncSlottedChoices();
7622
7704
  }
7623
7705
  }
7706
+ /** True when the prompt row has no text of its own (`data-prompt=""`). */
7707
+ #promptIsEmpty() {
7708
+ const content = this.options[0]?.content;
7709
+ return typeof content === "string" && content.trim() === "";
7710
+ }
7711
+ /**
7712
+ * Leaves the prompt row out of the width measurement when the prompt is empty. That row is hidden
7713
+ * while nothing is chosen (measures 0) and a clear glyph once something is (measures a glyph), so
7714
+ * counting it would let the closed field change width on the first choice. Its text is empty
7715
+ * either way, so it has nothing to contribute.
7716
+ */
7717
+ menuAutoSizeRows() {
7718
+ const rows = super.menuAutoSizeRows();
7719
+ if (!this.#promptIsEmpty())
7720
+ return rows;
7721
+ return rows.filter((row) => !row.matches('button[part~="option-prompt"]'));
7722
+ }
7624
7723
  #selectedOption() {
7625
7724
  return this.options.find((option) => option.selected) ?? this.options[0];
7626
7725
  }
7627
7726
  #updateOptions() {
7628
7727
  const choices = Array.from(this.querySelectorAll("qti-inline-choice"));
7629
- const prompt = this.dataPrompt || this.configContext?.inlineChoicePrompt || "select";
7728
+ const prompt = this.dataPrompt ?? this.configContext?.inlineChoicePrompt ?? "select";
7630
7729
  const pendingValue = this._pendingResponse;
7631
7730
  const currentlySelectedValue = pendingValue !== void 0 ? pendingValue ?? "" : this.options.find((o) => o.selected)?.value ?? "";
7632
7731
  const nextOptions = [
@@ -7651,20 +7750,23 @@ var QtiInlineChoiceInteraction = class extends MenuAutoSizeMixin(Interaction) {
7651
7750
  this.updateMenuWidth();
7652
7751
  }
7653
7752
  /**
7654
- * Autosizing is opt-in through `configContext.inlineChoiceAutosize`, and an explicit
7655
- * `qti-input-width-*` class always wins.
7753
+ * Autosizing is on unless a host turns it off (`configContext.inlineChoiceAutosize: false`), and an
7754
+ * explicit `qti-input-width-*` class always wins. On by default because without it the field sizes
7755
+ * to the option shown, so choosing a longer one widened the field and reflowed the sentence around
7756
+ * it: a state that changed layout.
7656
7757
  *
7657
7758
  * That second check has to live here rather than in CSS: the measurement is written as an inline
7658
7759
  * style on the trigger, and the width classes set the same property on `:host`, so the cascade
7659
7760
  * would hand it to the measurement every time. Not writing at all is what makes the class win.
7660
7761
  */
7661
7762
  shouldAutoSizeMenu() {
7662
- if (!this.configContext?.inlineChoiceAutosize)
7763
+ if (this.configContext?.inlineChoiceAutosize === false)
7663
7764
  return false;
7664
7765
  return !Array.from(this.classList).some((c) => c.startsWith("qti-input-width-"));
7665
7766
  }
7666
7767
  /**
7667
- * The chevron sits in the trigger and not in the menu, so the menu never measures it.
7768
+ * The chevron (and the gap before it) sits in the trigger and not in the menu, so the menu never
7769
+ * measures it.
7668
7770
  *
7669
7771
  * `offsetWidth`, NOT `getBoundingClientRect().width`: the icon rotates when the menu opens, and a
7670
7772
  * client rect reports the TRANSFORMED box — so a chevron caught mid-rotation measures wider than
@@ -7674,7 +7776,11 @@ var QtiInlineChoiceInteraction = class extends MenuAutoSizeMixin(Interaction) {
7674
7776
  */
7675
7777
  menuAutoSizeExtraWidth() {
7676
7778
  const icon = this.renderRoot.querySelector('span[part~="dropdown-icon"]');
7677
- return icon?.offsetWidth ?? 0;
7779
+ if (!icon)
7780
+ return 0;
7781
+ const trigger = this.renderRoot.querySelector('button[part="trigger"]');
7782
+ const gap = trigger ? parseFloat(getComputedStyle(trigger).columnGap) || 0 : 0;
7783
+ return icon.offsetWidth + gap;
7678
7784
  }
7679
7785
  validate() {
7680
7786
  const selectedOption = this.options.find((option) => option.selected);
@@ -7790,24 +7896,27 @@ var QtiInlineChoiceInteraction = class extends MenuAutoSizeMixin(Interaction) {
7790
7896
  }
7791
7897
  }
7792
7898
  #allMenuOptions() {
7793
- const promptOption = this.renderRoot.querySelector('button[part~="option"]');
7899
+ const promptOption = this.renderRoot.querySelector('button[part~="option"]:not([hidden])');
7794
7900
  const slottedChoices = Array.from(this.querySelectorAll("qti-inline-choice"));
7795
7901
  return [...promptOption ? [promptOption] : [], ...slottedChoices];
7796
7902
  }
7797
7903
  };
7798
7904
  __decorate22([
7799
- state10()
7905
+ state11()
7800
7906
  ], QtiInlineChoiceInteraction.prototype, "options", void 0);
7801
7907
  __decorate22([
7802
- state10()
7908
+ state11()
7803
7909
  ], QtiInlineChoiceInteraction.prototype, "_dropdownOpen", void 0);
7804
7910
  __decorate22([
7805
- consume5({ context: configContext, subscribe: true }),
7911
+ consume6({ context: configContext, subscribe: true }),
7806
7912
  property20({ attribute: false })
7807
7913
  ], QtiInlineChoiceInteraction.prototype, "configContext", void 0);
7808
7914
  __decorate22([
7809
7915
  property20({ type: String, attribute: "data-prompt" })
7810
7916
  ], QtiInlineChoiceInteraction.prototype, "dataPrompt", void 0);
7917
+ __decorate22([
7918
+ property20({ type: String, attribute: "data-clear-label" })
7919
+ ], QtiInlineChoiceInteraction.prototype, "dataClearLabel", void 0);
7811
7920
  __decorate22([
7812
7921
  watch("dataPrompt", { waitUntilFirstUpdate: true })
7813
7922
  ], QtiInlineChoiceInteraction.prototype, "_handleDataPromptChange", void 0);
@@ -7834,7 +7943,7 @@ __decorate22([
7834
7943
 
7835
7944
  // ../interactions/match-interaction/dist/qti-match-interaction.js
7836
7945
  import { html as html23, nothing as nothing3 } from "lit";
7837
- import { property as property21, state as state11 } from "lit/decorators.js";
7946
+ import { property as property21, state as state12 } from "lit/decorators.js";
7838
7947
 
7839
7948
  // ../interactions/match-interaction/dist/qti-match-interaction.styles.js
7840
7949
  import { css as css22 } from "lit";
@@ -8247,7 +8356,7 @@ __decorate23([
8247
8356
  property21({ type: String })
8248
8357
  ], QtiMatchInteraction.prototype, "class", void 0);
8249
8358
  __decorate23([
8250
- state11()
8359
+ state12()
8251
8360
  ], QtiMatchInteraction.prototype, "_response", void 0);
8252
8361
  __decorate23([
8253
8362
  property21({ type: String, attribute: "response-identifier" })
@@ -8327,7 +8436,7 @@ var QtiMediaInteraction = class extends Interaction {
8327
8436
  // ../interactions/order-interaction/dist/qti-order-interaction.js
8328
8437
  import { html as html25 } from "lit";
8329
8438
  import { repeat as repeat6 } from "lit/directives/repeat.js";
8330
- import { property as property22, state as state12 } from "lit/decorators.js";
8439
+ import { property as property22, state as state13 } from "lit/decorators.js";
8331
8440
 
8332
8441
  // ../interactions/order-interaction/dist/qti-order-interaction.styles.js
8333
8442
  import { css as css25 } from "lit";
@@ -8609,7 +8718,7 @@ var QtiOrderInteraction = class extends DragDropSlottedSortableMixin(SlottedBase
8609
8718
  }
8610
8719
  };
8611
8720
  __decorate24([
8612
- state12()
8721
+ state13()
8613
8722
  ], QtiOrderInteraction.prototype, "nrChoices", void 0);
8614
8723
  __decorate24([
8615
8724
  property22({ type: String })
@@ -8617,11 +8726,11 @@ __decorate24([
8617
8726
 
8618
8727
  // ../interactions/portable-custom-interaction/dist/qti-portable-custom-interaction.js
8619
8728
  import { css as css27, html as html26 } from "lit";
8620
- import { property as property23, state as state13 } from "lit/decorators.js";
8621
- import { consume as consume6 } from "@lit/context";
8729
+ import { property as property23, state as state14 } from "lit/decorators.js";
8730
+ import { consume as consume7 } from "@lit/context";
8622
8731
 
8623
8732
  // ../qti-theme/dist/native-css.js
8624
- var native_css_default = "@layer qti-base {\n/* https://www.imsglobal.org/sites/default/files/spec/qti/v3/guide/img/qti3p0.css */\n/* ============================\n QTI 3 shared css\n 1. Display\n 2. Special Flex styles\n 3. Margin\n 4. Padding\n 5. Horizontal Alignment styles\n 6. Vertical Alignment styles\n 7. Height\n 8. Width\n 9. Text-Indent\n 10. List Style\n 11. Layout\n 12. Other QTI 3 presentation utilities\n ============================ */\n\n/* ==========\n Display css\n =========== */\n\n.qti-display-inline {\n display: inline;\n}\n\n.qti-display-inline-block {\n display: inline-block;\n}\n\n.qti-display-block {\n display: block;\n}\n\n.qti-display-flex {\n display: flex;\n}\n\n.qti-display-inline-flex {\n display: inline-flex;\n}\n\n.qti-display-grid {\n display: grid;\n}\n\n.qti-display-inline-grid {\n display: inline-grid;\n}\n\n.qti-display-table {\n display: table;\n}\n\n.qti-display-table-cell {\n display: table-cell;\n}\n\n.qti-display-table-row {\n display: table-row;\n}\n\n.qti-display-list-item {\n display: list-item;\n}\n\n.qti-display-inherit {\n display: inherit;\n}\n\n/* \n * hidden to screen readers and sighted\n */\n.qti-hidden {\n display: none;\n}\n\n/*\n * visible to screen readers, hidden to sighted\n */\n.qti-visually-hidden {\n position: fixed !important;\n overflow: hidden;\n clip: rect(1px 1px 1px 1px);\n height: 1px;\n width: 1px;\n border: 0;\n margin: -1px;\n}\n\n/* =============================\n Special flex styles\n ============================= */\n\n.qti-flex-direction-column {\n flex-direction: column;\n}\n\n.qti-flex-direction-row {\n flex-direction: row;\n}\n\n.qti-flex-grow-1 {\n flex-grow: 1;\n}\n\n.qti-flex-grow-0 {\n flex-grow: 0;\n}\n\n/* =========\n Margin css\n ========== */\n\n/**\n * For margin Top and Bottom and Left and Right\n */\n.qti-margin-0 {\n margin: 0 !important;\n}\n\n.qti-margin-1 {\n margin: 0.25rem !important;\n}\n\n.qti-margin-2 {\n margin: 0.5rem !important;\n}\n\n.qti-margin-3 {\n margin: 1rem !important;\n}\n\n.qti-margin-4 {\n margin: 1.5rem !important;\n}\n\n.qti-margin-5 {\n margin: 3rem !important;\n}\n\n.qti-margin-auto {\n margin: auto !important;\n}\n\n/*\n For margin Left and Right\n */\n.qti-margin-x-0 {\n margin-right: 0 !important;\n margin-left: 0 !important;\n}\n\n.qti-margin-x-1 {\n margin-right: 0.25rem !important;\n margin-left: 0.25rem !important;\n}\n\n.qti-margin-x-2 {\n margin-right: 0.5rem !important;\n margin-left: 0.5rem !important;\n}\n\n.qti-margin-x-3 {\n margin-right: 1rem !important;\n margin-left: 1rem !important;\n}\n\n.qti-margin-x-4 {\n margin-right: 1.5rem !important;\n margin-left: 1.5rem !important;\n}\n\n.qti-margin-x-5 {\n margin-right: 3rem !important;\n margin-left: 3rem !important;\n}\n\n.qti-margin-x-auto {\n margin-right: auto !important;\n margin-left: auto !important;\n}\n\n/*\n For margin Top and Bottom\n */\n.qti-margin-y-0 {\n margin-top: 0 !important;\n margin-bottom: 0 !important;\n}\n\n.qti-margin-y-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n}\n\n.qti-margin-y-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n}\n\n.qti-margin-y-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n}\n\n.qti-margin-y-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n}\n\n.qti-margin-y-5 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n}\n\n.qti-margin-y-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n}\n\n/*\n For margin Top\n */\n.qti-margin-t-0 {\n margin-top: 0 !important;\n}\n\n.qti-margin-t-1 {\n margin-top: 0.25rem !important;\n}\n\n.qti-margin-t-2 {\n margin-top: 0.5rem !important;\n}\n\n.qti-margin-t-3 {\n margin-top: 1rem !important;\n}\n\n.qti-margin-t-4 {\n margin-top: 1.5rem !important;\n}\n\n.qti-margin-t-5 {\n margin-top: 3rem !important;\n}\n\n.qti-margin-t-auto {\n margin-top: auto !important;\n}\n\n/* \n For margin Bottom\n */\n.qti-margin-b-0 {\n margin-bottom: 0 !important;\n}\n\n.qti-margin-b-1 {\n margin-bottom: 0.25rem !important;\n}\n\n.qti-margin-b-2 {\n margin-bottom: 0.5rem !important;\n}\n\n.qti-margin-b-3 {\n margin-bottom: 1rem !important;\n}\n\n.qti-margin-b-4 {\n margin-bottom: 1.5rem !important;\n}\n\n.qti-margin-b-5 {\n margin-bottom: 3rem !important;\n}\n\n.qti-margin-b-auto {\n margin-bottom: auto !important;\n}\n\n/*\n For margin Start LTR\n */\n.qti-margin-s-0 {\n margin-left: 0 !important;\n}\n\n.qti-margin-s-1 {\n margin-left: 0.25rem !important;\n}\n\n.qti-margin-s-2 {\n margin-left: 0.5rem !important;\n}\n\n.qti-margin-s-3 {\n margin-left: 1rem !important;\n}\n\n.qti-margin-s-4 {\n margin-left: 1.5rem !important;\n}\n\n.qti-margin-s-5 {\n margin-left: 3rem !important;\n}\n\n.qti-margin-s-auto {\n margin-left: auto !important;\n}\n\n/* \n For margin End LTR\n */\n.qti-margin-e-0 {\n margin-right: 0 !important;\n}\n\n.qti-margin-e-1 {\n margin-right: 0.25rem !important;\n}\n\n.qti-margin-e-2 {\n margin-right: 0.5rem !important;\n}\n\n.qti-margin-e-3 {\n margin-right: 1rem !important;\n}\n\n.qti-margin-e-4 {\n margin-right: 1.5rem !important;\n}\n\n.qti-margin-e-5 {\n margin-right: 3rem !important;\n}\n\n.qti-margin-e-auto {\n margin-right: auto !important;\n}\n\n/* =========\n Padding css\n ========== */\n\n/*\n For padding Top and Bottom and Left and Right\n */\n.qti-padding-0 {\n padding: 0 !important;\n}\n\n.qti-padding-1 {\n padding: 0.25rem !important;\n}\n\n.qti-padding-2 {\n padding: 0.5rem !important;\n}\n\n.qti-padding-3 {\n padding: 1rem !important;\n}\n\n.qti-padding-4 {\n padding: 1.5rem !important;\n}\n\n.qti-padding-5 {\n padding: 3rem !important;\n}\n\n/*\n For padding Left and Right\n */\n.qti-padding-x-0 {\n padding-right: 0 !important;\n padding-left: 0 !important;\n}\n\n.qti-padding-x-1 {\n padding-right: 0.25rem !important;\n padding-left: 0.25rem !important;\n}\n\n.qti-padding-x-2 {\n padding-right: 0.5rem !important;\n padding-left: 0.5rem !important;\n}\n\n.qti-padding-x-3 {\n padding-right: 1rem !important;\n padding-left: 1rem !important;\n}\n\n.qti-padding-x-4 {\n padding-right: 1.5rem !important;\n padding-left: 1.5rem !important;\n}\n\n.qti-padding-x-5 {\n padding-right: 3rem !important;\n padding-left: 3rem !important;\n}\n\n/*\n For padding Top and Bottom\n */\n.qti-padding-y-0 {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n}\n\n.qti-padding-y-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n}\n\n.qti-padding-y-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n}\n\n.qti-padding-y-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n}\n\n.qti-padding-y-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n}\n\n.qti-padding-y-5 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n}\n\n/*\n For padding Top\n */\n.qti-padding-t-0 {\n padding-top: 0 !important;\n}\n\n.qti-padding-t-1 {\n padding-top: 0.25rem !important;\n}\n\n.qti-padding-t-2 {\n padding-top: 0.5rem !important;\n}\n\n.qti-padding-t-3 {\n padding-top: 1rem !important;\n}\n\n.qti-padding-t-4 {\n padding-top: 1.5rem !important;\n}\n\n.qti-padding-t-5 {\n padding-top: 3rem !important;\n}\n\n/*\n For padding Bottom\n */\n.qti-padding-b-0 {\n padding-bottom: 0 !important;\n}\n\n.qti-padding-b-1 {\n padding-bottom: 0.25rem !important;\n}\n\n.qti-padding-b-2 {\n padding-bottom: 0.5rem !important;\n}\n\n.qti-padding-b-3 {\n padding-bottom: 1rem !important;\n}\n\n.qti-padding-b-4 {\n padding-bottom: 1.5rem !important;\n}\n\n.qti-padding-b-5 {\n padding-bottom: 3rem !important;\n}\n\n/*\n For padding Start LTR\n */\n.qti-padding-s-0 {\n padding-left: 0 !important;\n}\n\n.qti-padding-s-1 {\n padding-left: 0.25rem !important;\n}\n\n.qti-padding-s-2 {\n padding-left: 0.5rem !important;\n}\n\n.qti-padding-s-3 {\n padding-left: 1rem !important;\n}\n\n.qti-padding-s-4 {\n padding-left: 1.5rem !important;\n}\n\n.qti-padding-s-5 {\n padding-left: 3rem !important;\n}\n\n/*\n For padding End LTR\n */\n.qti-padding-e-0 {\n padding-right: 0 !important;\n}\n\n.qti-padding-e-1 {\n padding-right: 0.25rem !important;\n}\n\n.qti-padding-e-2 {\n padding-right: 0.5rem !important;\n}\n\n.qti-padding-e-3 {\n padding-right: 1rem !important;\n}\n\n.qti-padding-e-4 {\n padding-right: 1.5rem !important;\n}\n\n.qti-padding-e-5 {\n padding-right: 3rem !important;\n}\n\n/* ====================\n Horizontal alignment\n ==================== */\n\n.qti-align-left {\n text-align: left;\n}\n\n.qti-align-center {\n text-align: center;\n}\n\n.qti-align-right {\n text-align: right;\n}\n\n/* ==================\n Vertical alignment\n ================== */\n\n.qti-valign-top {\n vertical-align: top;\n}\n\n.qti-valign-middle {\n vertical-align: middle;\n}\n\n.qti-valign-baseline {\n vertical-align: baseline;\n}\n\n.qti-valign-bottom {\n vertical-align: bottom;\n}\n\n/* =============\n Height styles\n ============= */\n\n.qti-height-0 {\n height: 0;\n}\n\n.qti-height-px {\n height: 1px;\n}\n\n.qti-height-0p5 {\n height: 0.125rem;\n}\n\n.qti-height-1 {\n height: 0.25rem;\n}\n\n.qti-height-1p5 {\n height: 0.375rem;\n}\n\n.qti-height-2 {\n height: 0.5rem;\n}\n\n.qti-height-2p5 {\n height: 0.625rem;\n}\n\n.qti-height-3 {\n height: 0.75rem;\n}\n\n.qti-height-3p5 {\n height: 0.875rem;\n}\n\n.qti-height-4 {\n height: 1rem;\n}\n\n.qti-height-5 {\n height: 1.25rem;\n}\n\n.qti-height-6 {\n height: 1.5rem;\n}\n\n.qti-height-7 {\n height: 1.75rem;\n}\n\n.qti-height-8 {\n height: 2rem;\n}\n\n.qti-height-9 {\n height: 2.25rem;\n}\n\n.qti-height-10 {\n height: 2.5rem;\n}\n\n.qti-height-11 {\n height: 2.75rem;\n}\n\n.qti-height-12 {\n height: 3rem;\n}\n\n.qti-height-14 {\n height: 3.5rem;\n}\n\n.qti-height-16 {\n height: 4rem;\n}\n\n.qti-height-20 {\n height: 5rem;\n}\n\n.qti-height-24 {\n height: 6rem;\n}\n\n.qti-height-28 {\n height: 7rem;\n}\n\n.qti-height-32 {\n height: 8rem;\n}\n\n.qti-height-36 {\n height: 9rem;\n}\n\n.qti-height-40 {\n height: 10rem;\n}\n\n.qti-height-44 {\n height: 11rem;\n}\n\n.qti-height-48 {\n height: 12rem;\n}\n\n.qti-height-52 {\n height: 13rem;\n}\n\n.qti-height-56 {\n height: 14rem;\n}\n\n.qti-height-60 {\n height: 15rem;\n}\n\n.qti-height-64 {\n height: 16rem;\n}\n\n.qti-height-72 {\n height: 18rem;\n}\n\n.qti-height-80 {\n height: 20rem;\n}\n\n.qti-height-96 {\n height: 24rem;\n}\n\n.qti-height-1-2 {\n height: 50%;\n}\n\n.qti-height-1-3 {\n height: 33.3333%;\n}\n\n.qti-height-2-3 {\n height: 66.6667%;\n}\n\n.qti-height-1-4 {\n height: 25%;\n}\n\n.qti-height-2-4 {\n height: 50%;\n}\n\n.qti-height-3-4 {\n height: 75%;\n}\n\n.qti-height-1-5 {\n height: 20%;\n}\n\n.qti-height-2-5 {\n height: 40%;\n}\n\n.qti-height-3-5 {\n height: 60%;\n}\n\n.qti-height-4-5 {\n height: 80%;\n}\n\n.qti-height-1-6 {\n height: 16.6667%;\n}\n\n.qti-height-2-6 {\n height: 33.3333%;\n}\n\n.qti-height-3-6 {\n height: 50%;\n}\n\n.qti-height-4-6 {\n height: 66.6667%;\n}\n\n.qti-height-5-6 {\n height: 83.3333%;\n}\n\n.qti-height-auto {\n height: auto;\n}\n\n.qti-height-full {\n height: 100%;\n}\n\n/* ============\n Width styles\n ============ */\n\n.qti-width-0 {\n width: 0;\n}\n\n.qti-width-px {\n width: 1px;\n}\n\n.qti-width-0p5 {\n width: 0.125rem;\n}\n\n.qti-width-1 {\n width: 0.25rem;\n}\n\n.qti-width-1p5 {\n width: 0.375rem;\n}\n\n.qti-width-2 {\n width: 0.5rem;\n}\n\n.qti-width-2p5 {\n width: 0.625rem;\n}\n\n.qti-width-3 {\n width: 0.75rem;\n}\n\n.qti-width-3p5 {\n width: 0.875rem;\n}\n\n.qti-width-4 {\n width: 1rem;\n}\n\n.qti-width-5 {\n width: 1.25rem;\n}\n\n.qti-width-6 {\n width: 1.5rem;\n}\n\n.qti-width-7 {\n width: 1.75rem;\n}\n\n.qti-width-8 {\n width: 2rem;\n}\n\n.qti-width-9 {\n width: 2.25rem;\n}\n\n.qti-width-10 {\n width: 2.5rem;\n}\n\n.qti-width-11 {\n width: 2.75rem;\n}\n\n.qti-width-12 {\n width: 3rem;\n}\n\n.qti-width-14 {\n width: 3.5rem;\n}\n\n.qti-width-16 {\n width: 4rem;\n}\n\n.qti-width-20 {\n width: 5rem;\n}\n\n.qti-width-24 {\n width: 6rem;\n}\n\n.qti-width-28 {\n width: 7rem;\n}\n\n.qti-width-32 {\n width: 8rem;\n}\n\n.qti-width-36 {\n width: 9rem;\n}\n\n.qti-width-40 {\n width: 10rem;\n}\n\n.qti-width-44 {\n width: 11rem;\n}\n\n.qti-width-48 {\n width: 12rem;\n}\n\n.qti-width-52 {\n width: 13rem;\n}\n\n.qti-width-56 {\n width: 14rem;\n}\n\n.qti-width-60 {\n width: 15rem;\n}\n\n.qti-width-64 {\n width: 16rem;\n}\n\n.qti-width-72 {\n width: 18rem;\n}\n\n.qti-width-80 {\n width: 20rem;\n}\n\n.qti-width-96 {\n width: 24rem;\n}\n\n.qti-width-auto {\n width: auto;\n}\n\n.qti-width-1-2 {\n width: 50%;\n}\n\n.qti-width-1-3 {\n width: 33.3333%;\n}\n\n.qti-width-2-3 {\n width: 66.6667%;\n}\n\n.qti-width-1-4 {\n width: 25%;\n}\n\n.qti-width-2-4 {\n width: 50%;\n}\n\n.qti-width-3-4 {\n width: 75%;\n}\n\n.qti-width-1-5 {\n width: 20%;\n}\n\n.qti-width-2-5 {\n width: 40%;\n}\n\n.qti-width-3-5 {\n width: 60%;\n}\n\n.qti-width-4-5 {\n width: 80%;\n}\n\n.qti-width-1-6 {\n width: 16.6667%;\n}\n\n.qti-width-2-6 {\n width: 33.3333%;\n}\n\n.qti-width-3-6 {\n width: 50%;\n}\n\n.qti-width-4-6 {\n width: 66.6667%;\n}\n\n.qti-width-5-6 {\n width: 83.3333%;\n}\n\n.qti-width-1-12 {\n width: 8.3333%;\n}\n\n.qti-width-2-12 {\n width: 16.6667%;\n}\n\n.qti-width-3-12 {\n width: 25%;\n}\n\n.qti-width-4-12 {\n width: 33.3333%;\n}\n\n.qti-width-5-12 {\n width: 41.6667%;\n}\n\n.qti-width-6-12 {\n width: 50%;\n}\n\n.qti-width-7-12 {\n width: 58.3333%;\n}\n\n.qti-width-8-12 {\n width: 66.6667%;\n}\n\n.qti-width-9-12 {\n width: 75%;\n}\n\n.qti-width-10-12 {\n width: 83.3333%;\n}\n\n.qti-width-11-12 {\n width: 91.6667%;\n}\n\n.qti-width-full,\n.qti-fullwidth {\n width: 100%;\n}\n\n/* ==================\n Text Indent styles\n ================== */\n\n.qti-text-indent-0 {\n text-indent: 0;\n}\n\n.qti-text-indent-px {\n text-indent: 1px;\n}\n\n.qti-text-indent-0p5 {\n text-indent: 0.125rem;\n}\n\n.qti-text-indent-1 {\n text-indent: 0.25rem;\n}\n\n.qti-text-indent-1p5 {\n text-indent: 0.375rem;\n}\n\n.qti-text-indent-2 {\n text-indent: 0.5rem;\n}\n\n.qti-text-indent-2p5 {\n text-indent: 0.625rem;\n}\n\n.qti-text-indent-3 {\n text-indent: 0.75rem;\n}\n\n.qti-text-indent-3p5 {\n text-indent: 0.875rem;\n}\n\n.qti-text-indent-4 {\n text-indent: 1rem;\n}\n\n.qti-text-indent-5 {\n text-indent: 1.25rem;\n}\n\n.qti-text-indent-6 {\n text-indent: 1.5rem;\n}\n\n.qti-text-indent-7 {\n text-indent: 1.75rem;\n}\n\n.qti-text-indent-8 {\n text-indent: 2rem;\n}\n\n.qti-text-indent-12 {\n text-indent: 3rem;\n}\n\n.qti-text-indent-16 {\n text-indent: 4rem;\n}\n\n.qti-text-indent-20 {\n text-indent: 5rem;\n}\n\n.qti-text-indent-24 {\n text-indent: 6rem;\n}\n\n.qti-text-indent-28 {\n text-indent: 7rem;\n}\n\n.qti-text-indent-32 {\n text-indent: 8rem;\n}\n\n/* =================\n List Style styles\n ================= */\n\n.qti-list-style-type-none {\n list-style-type: none;\n}\n\n.qti-list-style-type-disc {\n list-style-type: disc;\n}\n\n.qti-list-style-type-circle {\n list-style-type: circle;\n}\n\n.qti-list-style-type-square {\n list-style-type: square;\n}\n\n.qti-list-style-type-decimal {\n list-style-type: decimal;\n}\n\n.qti-list-style-type-decimal-leading-zero {\n list-style-type: decimal-leading-zero;\n}\n\n.qti-list-style-type-lower-alpha {\n list-style-type: lower-alpha;\n}\n\n.qti-list-style-type-upper-alpha {\n list-style-type: upper-alpha;\n}\n\n.qti-list-style-type-lower-roman {\n list-style-type: lower-roman;\n}\n\n.qti-list-style-type-upper-roman {\n list-style-type: upper-roman;\n}\n\n.qti-list-style-type-lower-latin {\n list-style-type: lower-latin;\n}\n\n.qti-list-style-type-upper-latin {\n list-style-type: upper-latin;\n}\n\n.qti-list-style-type-lower-greek {\n list-style-type: lower-greek;\n}\n\n.qti-list-style-type-arabic-indic {\n list-style-type: arabic-indic;\n}\n\n.qti-list-style-type-armenian {\n list-style-type: armenian;\n}\n\n.qti-list-style-type-lower-armenian {\n list-style-type: lower-armenian;\n}\n\n.qti-list-style-type-upper-armenian {\n list-style-type: upper-armenian;\n}\n\n.qti-list-style-type-bengali {\n list-style-type: bengali;\n}\n\n.qti-list-style-type-cambodian {\n list-style-type: cambodian;\n}\n\n.qti-list-style-type-simp-chinese-formal {\n list-style-type: simp-chinese-formal;\n}\n\n.qti-list-style-type-simp-chinese-informal {\n list-style-type: simp-chinese-informal;\n}\n\n.qti-list-style-type-trad-chinese-formal {\n list-style-type: trad-chinese-formal;\n}\n\n.qti-list-style-type-trad-chinese-informal {\n list-style-type: trad-chinese-informal;\n}\n\n.qti-list-style-type-cjk-ideographic {\n list-style-type: cjk-ideographic;\n}\n\n.qti-list-style-type-cjk-heavenly-stem {\n list-style-type: cjk-heavenly-stem;\n}\n\n.qti-list-style-type-cjk-earthly-branch {\n list-style-type: cjk-earthly-branch;\n}\n\n.qti-list-style-type-devanagari {\n list-style-type: devanagari;\n}\n\n.qti-list-style-type-ethiopic-halehame-ti-er {\n list-style-type: ethiopic-halehame-ti-er;\n}\n\n.qti-list-style-type-ethiopic-halehame-ti-et {\n list-style-type: ethiopic-halehame-ti-et;\n}\n\n.qti-list-style-type-ethiopic-halehame-am {\n list-style-type: ethiopic-halehame-am;\n}\n\n.qti-list-style-type-ethiopic-halehame {\n list-style-type: ethiopic-halehame;\n}\n\n.qti-list-style-type-georgian {\n list-style-type: georgian;\n}\n\n.qti-list-style-type-gujarati {\n list-style-type: gujarati;\n}\n\n.qti-list-style-type-gurmukhi {\n list-style-type: gurmukhi;\n}\n\n.qti-list-style-type-hangul {\n list-style-type: hangul;\n}\n\n.qti-list-style-type-hangul-consonant {\n list-style-type: hangul-consonant;\n}\n\n.qti-list-style-type-hebrew {\n list-style-type: hebrew;\n}\n\n.qti-list-style-type-hiragana {\n list-style-type: hiragana;\n}\n\n.qti-list-style-type-hiragana-iroha {\n list-style-type: hiragana-iroha;\n}\n\n.qti-list-style-type-khmer {\n list-style-type: khmer;\n}\n\n.qti-list-style-type-korean-hangul-formal {\n list-style-type: korean-hangul-formal;\n}\n\n.qti-list-style-type-korean-hanja-formal {\n list-style-type: korean-hanja-formal;\n}\n\n.qti-list-style-type-korean-hanja-informal {\n list-style-type: korean-hanja-informal;\n}\n\n.qti-list-style-type-lao {\n list-style-type: lao;\n}\n\n.qti-list-style-type-malayalam {\n list-style-type: malayalam;\n}\n\n.qti-list-style-type-mongolian {\n list-style-type: mongolian;\n}\n\n.qti-list-style-type-myanmar {\n list-style-type: myanmar;\n}\n\n.qti-list-style-type-oriya {\n list-style-type: oriya;\n}\n\n.qti-list-style-type-persian {\n list-style-type: persian;\n}\n\n.qti-list-style-type-thai {\n list-style-type: thai;\n}\n\n.qti-list-style-type-tibetan {\n list-style-type: tibetan;\n}\n\n.qti-list-style-type-telugu {\n list-style-type: telugu;\n}\n\n.qti-list-style-type-urdu {\n list-style-type: urdu;\n}\n\n/* =========================\n Other QTI 3 Presentation Utilities\n ========================= */\n\n.qti-bordered {\n border: 1px solid var(--table-border-color);\n}\n\n.qti-underline {\n text-decoration: underline;\n text-decoration-color: var(--foreground);\n}\n\n.qti-italic {\n font-style: italic;\n}\n\n.qti-well {\n min-height: 20px;\n padding: 19px;\n margin-bottom: 20px;\n background-color: var(--well-bg);\n border: var(--well-border);\n border-radius: 4px;\n box-shadow: var(--well-box-shadow);\n}\n\n/* Set writing-mode to vertical-rl \n Typical for CJK vertical text */\n.qti-writing-mode-vertical-rl {\n writing-mode: vertical-rl;\n}\n\n/* Set writing-mode to vertical-lr\n Typical for Mongolian vertical text */\n.qti-writing-mode-vertical-lr {\n writing-mode: vertical-lr;\n}\n\n/* Set writing-mode to horizontal-tb \n Browser default */\n.qti-writing-mode-horizontal-tb {\n writing-mode: horizontal-tb;\n}\n\n/* Float an element left */\n.qti-float-left {\n float: left;\n}\n\n/* Float an element right */\n.qti-float-right {\n float: right;\n}\n\n/* Remove a float */\n.qti-float-none {\n float: none;\n}\n\n/* Clearfix Hack to apply to a container of \n floated content that overflows the container. */\n.qti-float-clearfix::after {\n content: '';\n clear: both;\n display: table;\n}\n\n.qti-float-clear-left\n .qti-float-clear-right\n .qti-float-clear-both\n \n /* Set text-orientation to upright */\n .qti-text-orientation-upright {\n text-orientation: upright;\n}\n}\n\n@layer qti-base {\n\n.qti-layout-row {\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n gap: 2.1276595745%;\n}\n\n.qti-layout-row [class*='qti-layout-col']:not(:empty) {\n box-sizing: border-box;\n}\n\n.qti-layout-row > [class*='qti-layout-col'] > :first-child {\n margin-block-start: 0; /* a heading or paragraph that opens a column starts at the column's top edge */\n}\n\n.qti-layout-row [class*='qti-layout-col']:empty {\n width: 0;\n overflow: hidden; /* to fully collapse if there\u2019s padding or borders */\n}\n\n.qti-layout-col1 {\n width: 6.3829787234%;\n}\n\n.qti-layout-col2 {\n width: 14.8936170213%;\n}\n\n.qti-layout-col3 {\n width: 23.4042553191%;\n}\n\n.qti-layout-col4 {\n width: 31.914893617%;\n}\n\n.qti-layout-col5 {\n width: 40.4255319149%;\n}\n\n.qti-layout-col6 {\n width: 48.9361702128%;\n}\n\n.qti-layout-col7 {\n width: 57.4468085106%;\n}\n\n.qti-layout-col8 {\n width: 65.9574468085%;\n}\n\n.qti-layout-col9 {\n width: 74.4680851064%;\n}\n\n.qti-layout-col10 {\n width: 82.9787234043%;\n}\n\n.qti-layout-col11 {\n width: 91.4893617021%;\n}\n\n.qti-layout-col12 {\n width: 100%;\n}\n\n.qti-layout-offset1 {\n margin-left: 8.5106382979%;\n}\n\n.qti-layout-offset2 {\n margin-left: 17.0212765957%;\n}\n\n.qti-layout-offset3 {\n margin-left: 25.5319148936%;\n}\n\n.qti-layout-offset4 {\n margin-left: 34.0425531915%;\n}\n\n.qti-layout-offset5 {\n margin-left: 42.5531914894%;\n}\n\n.qti-layout-offset6 {\n margin-left: 51.0638297872%;\n}\n\n.qti-layout-offset7 {\n margin-left: 59.5744680851%;\n}\n\n.qti-layout-offset8 {\n margin-left: 68.085106383%;\n}\n\n.qti-layout-offset9 {\n margin-left: 76.5957446809%;\n}\n\n.qti-layout-offset10 {\n margin-left: 85.1063829787%;\n}\n\n.qti-layout-offset11 {\n margin-left: 93.6170212766%;\n}\n\n@media (width <= 767px) {\n [class*='qti-layout-col'] {\n width: 100%;\n }\n}\n}\n";
8733
+ var native_css_default = "@layer qti-base {\n/* https://www.imsglobal.org/sites/default/files/spec/qti/v3/guide/img/qti3p0.css */\n/* ============================\n QTI 3 shared css\n 1. Display\n 2. Special Flex styles\n 3. Margin\n 4. Padding\n 5. Horizontal Alignment styles\n 6. Vertical Alignment styles\n 7. Height\n 8. Width\n 9. Text-Indent\n 10. List Style\n 11. Layout\n 12. Other QTI 3 presentation utilities\n ============================ */\n\n/* ==========\n Display css\n =========== */\n\n.qti-display-inline {\n display: inline;\n}\n\n.qti-display-inline-block {\n display: inline-block;\n}\n\n.qti-display-block {\n display: block;\n}\n\n.qti-display-flex {\n display: flex;\n}\n\n.qti-display-inline-flex {\n display: inline-flex;\n}\n\n.qti-display-grid {\n display: grid;\n}\n\n.qti-display-inline-grid {\n display: inline-grid;\n}\n\n.qti-display-table {\n display: table;\n}\n\n.qti-display-table-cell {\n display: table-cell;\n}\n\n.qti-display-table-row {\n display: table-row;\n}\n\n.qti-display-list-item {\n display: list-item;\n}\n\n.qti-display-inherit {\n display: inherit;\n}\n\n/* \n * hidden to screen readers and sighted\n */\n.qti-hidden {\n display: none;\n}\n\n/*\n * visible to screen readers, hidden to sighted\n */\n.qti-visually-hidden {\n position: fixed !important;\n overflow: hidden;\n clip: rect(1px 1px 1px 1px);\n height: 1px;\n width: 1px;\n border: 0;\n margin: -1px;\n}\n\n/* =============================\n Special flex styles\n ============================= */\n\n.qti-flex-direction-column {\n flex-direction: column;\n}\n\n.qti-flex-direction-row {\n flex-direction: row;\n}\n\n.qti-flex-grow-1 {\n flex-grow: 1;\n}\n\n.qti-flex-grow-0 {\n flex-grow: 0;\n}\n\n/* =========\n Margin css\n ========== */\n\n/**\n * For margin Top and Bottom and Left and Right\n */\n.qti-margin-0 {\n margin: 0 !important;\n}\n\n.qti-margin-1 {\n margin: 0.25rem !important;\n}\n\n.qti-margin-2 {\n margin: 0.5rem !important;\n}\n\n.qti-margin-3 {\n margin: 1rem !important;\n}\n\n.qti-margin-4 {\n margin: 1.5rem !important;\n}\n\n.qti-margin-5 {\n margin: 3rem !important;\n}\n\n.qti-margin-auto {\n margin: auto !important;\n}\n\n/*\n For margin Left and Right\n */\n.qti-margin-x-0 {\n margin-right: 0 !important;\n margin-left: 0 !important;\n}\n\n.qti-margin-x-1 {\n margin-right: 0.25rem !important;\n margin-left: 0.25rem !important;\n}\n\n.qti-margin-x-2 {\n margin-right: 0.5rem !important;\n margin-left: 0.5rem !important;\n}\n\n.qti-margin-x-3 {\n margin-right: 1rem !important;\n margin-left: 1rem !important;\n}\n\n.qti-margin-x-4 {\n margin-right: 1.5rem !important;\n margin-left: 1.5rem !important;\n}\n\n.qti-margin-x-5 {\n margin-right: 3rem !important;\n margin-left: 3rem !important;\n}\n\n.qti-margin-x-auto {\n margin-right: auto !important;\n margin-left: auto !important;\n}\n\n/*\n For margin Top and Bottom\n */\n.qti-margin-y-0 {\n margin-top: 0 !important;\n margin-bottom: 0 !important;\n}\n\n.qti-margin-y-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n}\n\n.qti-margin-y-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n}\n\n.qti-margin-y-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n}\n\n.qti-margin-y-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n}\n\n.qti-margin-y-5 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n}\n\n.qti-margin-y-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n}\n\n/*\n For margin Top\n */\n.qti-margin-t-0 {\n margin-top: 0 !important;\n}\n\n.qti-margin-t-1 {\n margin-top: 0.25rem !important;\n}\n\n.qti-margin-t-2 {\n margin-top: 0.5rem !important;\n}\n\n.qti-margin-t-3 {\n margin-top: 1rem !important;\n}\n\n.qti-margin-t-4 {\n margin-top: 1.5rem !important;\n}\n\n.qti-margin-t-5 {\n margin-top: 3rem !important;\n}\n\n.qti-margin-t-auto {\n margin-top: auto !important;\n}\n\n/* \n For margin Bottom\n */\n.qti-margin-b-0 {\n margin-bottom: 0 !important;\n}\n\n.qti-margin-b-1 {\n margin-bottom: 0.25rem !important;\n}\n\n.qti-margin-b-2 {\n margin-bottom: 0.5rem !important;\n}\n\n.qti-margin-b-3 {\n margin-bottom: 1rem !important;\n}\n\n.qti-margin-b-4 {\n margin-bottom: 1.5rem !important;\n}\n\n.qti-margin-b-5 {\n margin-bottom: 3rem !important;\n}\n\n.qti-margin-b-auto {\n margin-bottom: auto !important;\n}\n\n/*\n For margin Start LTR\n */\n.qti-margin-s-0 {\n margin-left: 0 !important;\n}\n\n.qti-margin-s-1 {\n margin-left: 0.25rem !important;\n}\n\n.qti-margin-s-2 {\n margin-left: 0.5rem !important;\n}\n\n.qti-margin-s-3 {\n margin-left: 1rem !important;\n}\n\n.qti-margin-s-4 {\n margin-left: 1.5rem !important;\n}\n\n.qti-margin-s-5 {\n margin-left: 3rem !important;\n}\n\n.qti-margin-s-auto {\n margin-left: auto !important;\n}\n\n/* \n For margin End LTR\n */\n.qti-margin-e-0 {\n margin-right: 0 !important;\n}\n\n.qti-margin-e-1 {\n margin-right: 0.25rem !important;\n}\n\n.qti-margin-e-2 {\n margin-right: 0.5rem !important;\n}\n\n.qti-margin-e-3 {\n margin-right: 1rem !important;\n}\n\n.qti-margin-e-4 {\n margin-right: 1.5rem !important;\n}\n\n.qti-margin-e-5 {\n margin-right: 3rem !important;\n}\n\n.qti-margin-e-auto {\n margin-right: auto !important;\n}\n\n/* =========\n Padding css\n ========== */\n\n/*\n For padding Top and Bottom and Left and Right\n */\n.qti-padding-0 {\n padding: 0 !important;\n}\n\n.qti-padding-1 {\n padding: 0.25rem !important;\n}\n\n.qti-padding-2 {\n padding: 0.5rem !important;\n}\n\n.qti-padding-3 {\n padding: 1rem !important;\n}\n\n.qti-padding-4 {\n padding: 1.5rem !important;\n}\n\n.qti-padding-5 {\n padding: 3rem !important;\n}\n\n/*\n For padding Left and Right\n */\n.qti-padding-x-0 {\n padding-right: 0 !important;\n padding-left: 0 !important;\n}\n\n.qti-padding-x-1 {\n padding-right: 0.25rem !important;\n padding-left: 0.25rem !important;\n}\n\n.qti-padding-x-2 {\n padding-right: 0.5rem !important;\n padding-left: 0.5rem !important;\n}\n\n.qti-padding-x-3 {\n padding-right: 1rem !important;\n padding-left: 1rem !important;\n}\n\n.qti-padding-x-4 {\n padding-right: 1.5rem !important;\n padding-left: 1.5rem !important;\n}\n\n.qti-padding-x-5 {\n padding-right: 3rem !important;\n padding-left: 3rem !important;\n}\n\n/*\n For padding Top and Bottom\n */\n.qti-padding-y-0 {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n}\n\n.qti-padding-y-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n}\n\n.qti-padding-y-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n}\n\n.qti-padding-y-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n}\n\n.qti-padding-y-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n}\n\n.qti-padding-y-5 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n}\n\n/*\n For padding Top\n */\n.qti-padding-t-0 {\n padding-top: 0 !important;\n}\n\n.qti-padding-t-1 {\n padding-top: 0.25rem !important;\n}\n\n.qti-padding-t-2 {\n padding-top: 0.5rem !important;\n}\n\n.qti-padding-t-3 {\n padding-top: 1rem !important;\n}\n\n.qti-padding-t-4 {\n padding-top: 1.5rem !important;\n}\n\n.qti-padding-t-5 {\n padding-top: 3rem !important;\n}\n\n/*\n For padding Bottom\n */\n.qti-padding-b-0 {\n padding-bottom: 0 !important;\n}\n\n.qti-padding-b-1 {\n padding-bottom: 0.25rem !important;\n}\n\n.qti-padding-b-2 {\n padding-bottom: 0.5rem !important;\n}\n\n.qti-padding-b-3 {\n padding-bottom: 1rem !important;\n}\n\n.qti-padding-b-4 {\n padding-bottom: 1.5rem !important;\n}\n\n.qti-padding-b-5 {\n padding-bottom: 3rem !important;\n}\n\n/*\n For padding Start LTR\n */\n.qti-padding-s-0 {\n padding-left: 0 !important;\n}\n\n.qti-padding-s-1 {\n padding-left: 0.25rem !important;\n}\n\n.qti-padding-s-2 {\n padding-left: 0.5rem !important;\n}\n\n.qti-padding-s-3 {\n padding-left: 1rem !important;\n}\n\n.qti-padding-s-4 {\n padding-left: 1.5rem !important;\n}\n\n.qti-padding-s-5 {\n padding-left: 3rem !important;\n}\n\n/*\n For padding End LTR\n */\n.qti-padding-e-0 {\n padding-right: 0 !important;\n}\n\n.qti-padding-e-1 {\n padding-right: 0.25rem !important;\n}\n\n.qti-padding-e-2 {\n padding-right: 0.5rem !important;\n}\n\n.qti-padding-e-3 {\n padding-right: 1rem !important;\n}\n\n.qti-padding-e-4 {\n padding-right: 1.5rem !important;\n}\n\n.qti-padding-e-5 {\n padding-right: 3rem !important;\n}\n\n/* ====================\n Horizontal alignment\n ==================== */\n\n.qti-align-left {\n text-align: left;\n}\n\n.qti-align-center {\n text-align: center;\n}\n\n.qti-align-right {\n text-align: right;\n}\n\n/* ==================\n Vertical alignment\n ================== */\n\n.qti-valign-top {\n vertical-align: top;\n}\n\n.qti-valign-middle {\n vertical-align: middle;\n}\n\n.qti-valign-baseline {\n vertical-align: baseline;\n}\n\n.qti-valign-bottom {\n vertical-align: bottom;\n}\n\n/* =============\n Height styles\n ============= */\n\n.qti-height-0 {\n height: 0;\n}\n\n.qti-height-px {\n height: 1px;\n}\n\n.qti-height-0p5 {\n height: 0.125rem;\n}\n\n.qti-height-1 {\n height: 0.25rem;\n}\n\n.qti-height-1p5 {\n height: 0.375rem;\n}\n\n.qti-height-2 {\n height: 0.5rem;\n}\n\n.qti-height-2p5 {\n height: 0.625rem;\n}\n\n.qti-height-3 {\n height: 0.75rem;\n}\n\n.qti-height-3p5 {\n height: 0.875rem;\n}\n\n.qti-height-4 {\n height: 1rem;\n}\n\n.qti-height-5 {\n height: 1.25rem;\n}\n\n.qti-height-6 {\n height: 1.5rem;\n}\n\n.qti-height-7 {\n height: 1.75rem;\n}\n\n.qti-height-8 {\n height: 2rem;\n}\n\n.qti-height-9 {\n height: 2.25rem;\n}\n\n.qti-height-10 {\n height: 2.5rem;\n}\n\n.qti-height-11 {\n height: 2.75rem;\n}\n\n.qti-height-12 {\n height: 3rem;\n}\n\n.qti-height-14 {\n height: 3.5rem;\n}\n\n.qti-height-16 {\n height: 4rem;\n}\n\n.qti-height-20 {\n height: 5rem;\n}\n\n.qti-height-24 {\n height: 6rem;\n}\n\n.qti-height-28 {\n height: 7rem;\n}\n\n.qti-height-32 {\n height: 8rem;\n}\n\n.qti-height-36 {\n height: 9rem;\n}\n\n.qti-height-40 {\n height: 10rem;\n}\n\n.qti-height-44 {\n height: 11rem;\n}\n\n.qti-height-48 {\n height: 12rem;\n}\n\n.qti-height-52 {\n height: 13rem;\n}\n\n.qti-height-56 {\n height: 14rem;\n}\n\n.qti-height-60 {\n height: 15rem;\n}\n\n.qti-height-64 {\n height: 16rem;\n}\n\n.qti-height-72 {\n height: 18rem;\n}\n\n.qti-height-80 {\n height: 20rem;\n}\n\n.qti-height-96 {\n height: 24rem;\n}\n\n.qti-height-1-2 {\n height: 50%;\n}\n\n.qti-height-1-3 {\n height: 33.3333%;\n}\n\n.qti-height-2-3 {\n height: 66.6667%;\n}\n\n.qti-height-1-4 {\n height: 25%;\n}\n\n.qti-height-2-4 {\n height: 50%;\n}\n\n.qti-height-3-4 {\n height: 75%;\n}\n\n.qti-height-1-5 {\n height: 20%;\n}\n\n.qti-height-2-5 {\n height: 40%;\n}\n\n.qti-height-3-5 {\n height: 60%;\n}\n\n.qti-height-4-5 {\n height: 80%;\n}\n\n.qti-height-1-6 {\n height: 16.6667%;\n}\n\n.qti-height-2-6 {\n height: 33.3333%;\n}\n\n.qti-height-3-6 {\n height: 50%;\n}\n\n.qti-height-4-6 {\n height: 66.6667%;\n}\n\n.qti-height-5-6 {\n height: 83.3333%;\n}\n\n.qti-height-auto {\n height: auto;\n}\n\n.qti-height-full {\n height: 100%;\n}\n\n/* ============\n Width styles\n ============ */\n\n.qti-width-0 {\n width: 0;\n}\n\n.qti-width-px {\n width: 1px;\n}\n\n.qti-width-0p5 {\n width: 0.125rem;\n}\n\n.qti-width-1 {\n width: 0.25rem;\n}\n\n.qti-width-1p5 {\n width: 0.375rem;\n}\n\n.qti-width-2 {\n width: 0.5rem;\n}\n\n.qti-width-2p5 {\n width: 0.625rem;\n}\n\n.qti-width-3 {\n width: 0.75rem;\n}\n\n.qti-width-3p5 {\n width: 0.875rem;\n}\n\n.qti-width-4 {\n width: 1rem;\n}\n\n.qti-width-5 {\n width: 1.25rem;\n}\n\n.qti-width-6 {\n width: 1.5rem;\n}\n\n.qti-width-7 {\n width: 1.75rem;\n}\n\n.qti-width-8 {\n width: 2rem;\n}\n\n.qti-width-9 {\n width: 2.25rem;\n}\n\n.qti-width-10 {\n width: 2.5rem;\n}\n\n.qti-width-11 {\n width: 2.75rem;\n}\n\n.qti-width-12 {\n width: 3rem;\n}\n\n.qti-width-14 {\n width: 3.5rem;\n}\n\n.qti-width-16 {\n width: 4rem;\n}\n\n.qti-width-20 {\n width: 5rem;\n}\n\n.qti-width-24 {\n width: 6rem;\n}\n\n.qti-width-28 {\n width: 7rem;\n}\n\n.qti-width-32 {\n width: 8rem;\n}\n\n.qti-width-36 {\n width: 9rem;\n}\n\n.qti-width-40 {\n width: 10rem;\n}\n\n.qti-width-44 {\n width: 11rem;\n}\n\n.qti-width-48 {\n width: 12rem;\n}\n\n.qti-width-52 {\n width: 13rem;\n}\n\n.qti-width-56 {\n width: 14rem;\n}\n\n.qti-width-60 {\n width: 15rem;\n}\n\n.qti-width-64 {\n width: 16rem;\n}\n\n.qti-width-72 {\n width: 18rem;\n}\n\n.qti-width-80 {\n width: 20rem;\n}\n\n.qti-width-96 {\n width: 24rem;\n}\n\n.qti-width-auto {\n width: auto;\n}\n\n.qti-width-1-2 {\n width: 50%;\n}\n\n.qti-width-1-3 {\n width: 33.3333%;\n}\n\n.qti-width-2-3 {\n width: 66.6667%;\n}\n\n.qti-width-1-4 {\n width: 25%;\n}\n\n.qti-width-2-4 {\n width: 50%;\n}\n\n.qti-width-3-4 {\n width: 75%;\n}\n\n.qti-width-1-5 {\n width: 20%;\n}\n\n.qti-width-2-5 {\n width: 40%;\n}\n\n.qti-width-3-5 {\n width: 60%;\n}\n\n.qti-width-4-5 {\n width: 80%;\n}\n\n.qti-width-1-6 {\n width: 16.6667%;\n}\n\n.qti-width-2-6 {\n width: 33.3333%;\n}\n\n.qti-width-3-6 {\n width: 50%;\n}\n\n.qti-width-4-6 {\n width: 66.6667%;\n}\n\n.qti-width-5-6 {\n width: 83.3333%;\n}\n\n.qti-width-1-12 {\n width: 8.3333%;\n}\n\n.qti-width-2-12 {\n width: 16.6667%;\n}\n\n.qti-width-3-12 {\n width: 25%;\n}\n\n.qti-width-4-12 {\n width: 33.3333%;\n}\n\n.qti-width-5-12 {\n width: 41.6667%;\n}\n\n.qti-width-6-12 {\n width: 50%;\n}\n\n.qti-width-7-12 {\n width: 58.3333%;\n}\n\n.qti-width-8-12 {\n width: 66.6667%;\n}\n\n.qti-width-9-12 {\n width: 75%;\n}\n\n.qti-width-10-12 {\n width: 83.3333%;\n}\n\n.qti-width-11-12 {\n width: 91.6667%;\n}\n\n.qti-width-full,\n.qti-fullwidth {\n width: 100%;\n}\n\n/* ==================\n Text Indent styles\n ================== */\n\n.qti-text-indent-0 {\n text-indent: 0;\n}\n\n.qti-text-indent-px {\n text-indent: 1px;\n}\n\n.qti-text-indent-0p5 {\n text-indent: 0.125rem;\n}\n\n.qti-text-indent-1 {\n text-indent: 0.25rem;\n}\n\n.qti-text-indent-1p5 {\n text-indent: 0.375rem;\n}\n\n.qti-text-indent-2 {\n text-indent: 0.5rem;\n}\n\n.qti-text-indent-2p5 {\n text-indent: 0.625rem;\n}\n\n.qti-text-indent-3 {\n text-indent: 0.75rem;\n}\n\n.qti-text-indent-3p5 {\n text-indent: 0.875rem;\n}\n\n.qti-text-indent-4 {\n text-indent: 1rem;\n}\n\n.qti-text-indent-5 {\n text-indent: 1.25rem;\n}\n\n.qti-text-indent-6 {\n text-indent: 1.5rem;\n}\n\n.qti-text-indent-7 {\n text-indent: 1.75rem;\n}\n\n.qti-text-indent-8 {\n text-indent: 2rem;\n}\n\n.qti-text-indent-12 {\n text-indent: 3rem;\n}\n\n.qti-text-indent-16 {\n text-indent: 4rem;\n}\n\n.qti-text-indent-20 {\n text-indent: 5rem;\n}\n\n.qti-text-indent-24 {\n text-indent: 6rem;\n}\n\n.qti-text-indent-28 {\n text-indent: 7rem;\n}\n\n.qti-text-indent-32 {\n text-indent: 8rem;\n}\n\n/* =================\n List Style styles\n ================= */\n\n.qti-list-style-type-none {\n list-style-type: none;\n}\n\n.qti-list-style-type-disc {\n list-style-type: disc;\n}\n\n.qti-list-style-type-circle {\n list-style-type: circle;\n}\n\n.qti-list-style-type-square {\n list-style-type: square;\n}\n\n.qti-list-style-type-decimal {\n list-style-type: decimal;\n}\n\n.qti-list-style-type-decimal-leading-zero {\n list-style-type: decimal-leading-zero;\n}\n\n.qti-list-style-type-lower-alpha {\n list-style-type: lower-alpha;\n}\n\n.qti-list-style-type-upper-alpha {\n list-style-type: upper-alpha;\n}\n\n.qti-list-style-type-lower-roman {\n list-style-type: lower-roman;\n}\n\n.qti-list-style-type-upper-roman {\n list-style-type: upper-roman;\n}\n\n.qti-list-style-type-lower-latin {\n list-style-type: lower-latin;\n}\n\n.qti-list-style-type-upper-latin {\n list-style-type: upper-latin;\n}\n\n.qti-list-style-type-lower-greek {\n list-style-type: lower-greek;\n}\n\n.qti-list-style-type-arabic-indic {\n list-style-type: arabic-indic;\n}\n\n.qti-list-style-type-armenian {\n list-style-type: armenian;\n}\n\n.qti-list-style-type-lower-armenian {\n list-style-type: lower-armenian;\n}\n\n.qti-list-style-type-upper-armenian {\n list-style-type: upper-armenian;\n}\n\n.qti-list-style-type-bengali {\n list-style-type: bengali;\n}\n\n.qti-list-style-type-cambodian {\n list-style-type: cambodian;\n}\n\n.qti-list-style-type-simp-chinese-formal {\n list-style-type: simp-chinese-formal;\n}\n\n.qti-list-style-type-simp-chinese-informal {\n list-style-type: simp-chinese-informal;\n}\n\n.qti-list-style-type-trad-chinese-formal {\n list-style-type: trad-chinese-formal;\n}\n\n.qti-list-style-type-trad-chinese-informal {\n list-style-type: trad-chinese-informal;\n}\n\n.qti-list-style-type-cjk-ideographic {\n list-style-type: cjk-ideographic;\n}\n\n.qti-list-style-type-cjk-heavenly-stem {\n list-style-type: cjk-heavenly-stem;\n}\n\n.qti-list-style-type-cjk-earthly-branch {\n list-style-type: cjk-earthly-branch;\n}\n\n.qti-list-style-type-devanagari {\n list-style-type: devanagari;\n}\n\n.qti-list-style-type-ethiopic-halehame-ti-er {\n list-style-type: ethiopic-halehame-ti-er;\n}\n\n.qti-list-style-type-ethiopic-halehame-ti-et {\n list-style-type: ethiopic-halehame-ti-et;\n}\n\n.qti-list-style-type-ethiopic-halehame-am {\n list-style-type: ethiopic-halehame-am;\n}\n\n.qti-list-style-type-ethiopic-halehame {\n list-style-type: ethiopic-halehame;\n}\n\n.qti-list-style-type-georgian {\n list-style-type: georgian;\n}\n\n.qti-list-style-type-gujarati {\n list-style-type: gujarati;\n}\n\n.qti-list-style-type-gurmukhi {\n list-style-type: gurmukhi;\n}\n\n.qti-list-style-type-hangul {\n list-style-type: hangul;\n}\n\n.qti-list-style-type-hangul-consonant {\n list-style-type: hangul-consonant;\n}\n\n.qti-list-style-type-hebrew {\n list-style-type: hebrew;\n}\n\n.qti-list-style-type-hiragana {\n list-style-type: hiragana;\n}\n\n.qti-list-style-type-hiragana-iroha {\n list-style-type: hiragana-iroha;\n}\n\n.qti-list-style-type-khmer {\n list-style-type: khmer;\n}\n\n.qti-list-style-type-korean-hangul-formal {\n list-style-type: korean-hangul-formal;\n}\n\n.qti-list-style-type-korean-hanja-formal {\n list-style-type: korean-hanja-formal;\n}\n\n.qti-list-style-type-korean-hanja-informal {\n list-style-type: korean-hanja-informal;\n}\n\n.qti-list-style-type-lao {\n list-style-type: lao;\n}\n\n.qti-list-style-type-malayalam {\n list-style-type: malayalam;\n}\n\n.qti-list-style-type-mongolian {\n list-style-type: mongolian;\n}\n\n.qti-list-style-type-myanmar {\n list-style-type: myanmar;\n}\n\n.qti-list-style-type-oriya {\n list-style-type: oriya;\n}\n\n.qti-list-style-type-persian {\n list-style-type: persian;\n}\n\n.qti-list-style-type-thai {\n list-style-type: thai;\n}\n\n.qti-list-style-type-tibetan {\n list-style-type: tibetan;\n}\n\n.qti-list-style-type-telugu {\n list-style-type: telugu;\n}\n\n.qti-list-style-type-urdu {\n list-style-type: urdu;\n}\n\n/* =========================\n Other QTI 3 Presentation Utilities\n ========================= */\n\n.qti-bordered {\n border: 1px solid var(--table-border-color);\n}\n\n.qti-underline {\n text-decoration: underline;\n text-decoration-color: var(--foreground);\n}\n\n.qti-italic {\n font-style: italic;\n}\n\n.qti-well {\n min-height: 20px;\n padding: 19px;\n margin-bottom: 20px;\n background-color: var(--well-bg);\n border: var(--well-border);\n border-radius: 4px;\n box-shadow: var(--well-box-shadow);\n}\n\n/* Set writing-mode to vertical-rl \n Typical for CJK vertical text */\n.qti-writing-mode-vertical-rl {\n writing-mode: vertical-rl;\n}\n\n/* Set writing-mode to vertical-lr\n Typical for Mongolian vertical text */\n.qti-writing-mode-vertical-lr {\n writing-mode: vertical-lr;\n}\n\n/* Set writing-mode to horizontal-tb \n Browser default */\n.qti-writing-mode-horizontal-tb {\n writing-mode: horizontal-tb;\n}\n\n/* Float an element left */\n.qti-float-left {\n float: left;\n}\n\n/* Float an element right */\n.qti-float-right {\n float: right;\n}\n\n/* Remove a float */\n.qti-float-none {\n float: none;\n}\n\n/* Clearfix Hack to apply to a container of \n floated content that overflows the container. */\n.qti-float-clearfix::after {\n content: '';\n clear: both;\n display: table;\n}\n\n.qti-float-clear-left\n .qti-float-clear-right\n .qti-float-clear-both\n \n /* Set text-orientation to upright */\n .qti-text-orientation-upright {\n text-orientation: upright;\n}\n}\n\n@layer qti-base {\n\n.qti-layout-row {\n /* The columns stack when the row is narrow, not the viewport: an item in a side-by-side player or a\n * narrow pane collapses too. The row is the container, so it is never shrink-to-fit (width: 100%). */\n container-type: inline-size;\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n gap: 2.1276595745%;\n}\n\n.qti-layout-row [class*='qti-layout-col']:not(:empty) {\n box-sizing: border-box;\n}\n\n.qti-layout-row > [class*='qti-layout-col'] > :first-child {\n margin-block-start: 0; /* a heading or paragraph that opens a column starts at the column's top edge */\n}\n\n.qti-layout-row [class*='qti-layout-col']:empty {\n width: 0;\n overflow: hidden; /* to fully collapse if there\u2019s padding or borders */\n}\n\n.qti-layout-col1 {\n width: 6.3829787234%;\n}\n\n.qti-layout-col2 {\n width: 14.8936170213%;\n}\n\n.qti-layout-col3 {\n width: 23.4042553191%;\n}\n\n.qti-layout-col4 {\n width: 31.914893617%;\n}\n\n.qti-layout-col5 {\n width: 40.4255319149%;\n}\n\n.qti-layout-col6 {\n width: 48.9361702128%;\n}\n\n.qti-layout-col7 {\n width: 57.4468085106%;\n}\n\n.qti-layout-col8 {\n width: 65.9574468085%;\n}\n\n.qti-layout-col9 {\n width: 74.4680851064%;\n}\n\n.qti-layout-col10 {\n width: 82.9787234043%;\n}\n\n.qti-layout-col11 {\n width: 91.4893617021%;\n}\n\n.qti-layout-col12 {\n width: 100%;\n}\n\n.qti-layout-offset1 {\n margin-left: 8.5106382979%;\n}\n\n.qti-layout-offset2 {\n margin-left: 17.0212765957%;\n}\n\n.qti-layout-offset3 {\n margin-left: 25.5319148936%;\n}\n\n.qti-layout-offset4 {\n margin-left: 34.0425531915%;\n}\n\n.qti-layout-offset5 {\n margin-left: 42.5531914894%;\n}\n\n.qti-layout-offset6 {\n margin-left: 51.0638297872%;\n}\n\n.qti-layout-offset7 {\n margin-left: 59.5744680851%;\n}\n\n.qti-layout-offset8 {\n margin-left: 68.085106383%;\n}\n\n.qti-layout-offset9 {\n margin-left: 76.5957446809%;\n}\n\n.qti-layout-offset10 {\n margin-left: 85.1063829787%;\n}\n\n.qti-layout-offset11 {\n margin-left: 93.6170212766%;\n}\n\n@container (width <= 767px) {\n [class*='qti-layout-col'] {\n width: 100%;\n }\n}\n}\n";
8625
8734
 
8626
8735
  // ../interactions/portable-custom-interaction/dist/qti-portable-custom-interaction.styles.js
8627
8736
  import { css as css26 } from "lit";
@@ -8888,18 +8997,18 @@ var QtiPortableCustomInteraction = class extends Interaction {
8888
8997
  this.#pciCustomValidityMessage = pciCustomValidity;
8889
8998
  }
8890
8999
  const stateRaw = data?.params?.state;
8891
- let state15;
9000
+ let state16;
8892
9001
  if (stateRaw === void 0) {
8893
- state15 = void 0;
9002
+ state16 = void 0;
8894
9003
  } else if (stateRaw === null) {
8895
- state15 = null;
9004
+ state16 = null;
8896
9005
  } else if (typeof stateRaw === "string") {
8897
- state15 = stateRaw;
9006
+ state16 = stateRaw;
8898
9007
  } else {
8899
9008
  try {
8900
- state15 = `__qti_json__::${JSON.stringify(stateRaw)}`;
9009
+ state16 = `__qti_json__::${JSON.stringify(stateRaw)}`;
8901
9010
  } catch {
8902
- state15 = null;
9011
+ state16 = null;
8903
9012
  }
8904
9013
  }
8905
9014
  if (converted === null) {
@@ -8907,13 +9016,13 @@ var QtiPortableCustomInteraction = class extends Interaction {
8907
9016
  const emptyResponse = cardinality === "record" ? null : cardinality === "single" ? "" : [];
8908
9017
  this.response = emptyResponse;
8909
9018
  this.validate();
8910
- this.saveResponse(emptyResponse, state15);
9019
+ this.saveResponse(emptyResponse, state16);
8911
9020
  break;
8912
9021
  }
8913
9022
  const response = converted;
8914
9023
  this.response = response;
8915
9024
  this.validate();
8916
- this.saveResponse(response, state15);
9025
+ this.saveResponse(response, state16);
8917
9026
  break;
8918
9027
  }
8919
9028
  case "error":
@@ -10449,15 +10558,15 @@ __decorate25([
10449
10558
  property23({ type: String, attribute: "data-status" })
10450
10559
  ], QtiPortableCustomInteraction.prototype, "status", void 0);
10451
10560
  __decorate25([
10452
- state13()
10561
+ state14()
10453
10562
  ], QtiPortableCustomInteraction.prototype, "_errorMessage", void 0);
10454
10563
  __decorate25([
10455
- consume6({ context: itemContext, subscribe: true }),
10456
- state13()
10564
+ consume7({ context: itemContext, subscribe: true }),
10565
+ state14()
10457
10566
  ], QtiPortableCustomInteraction.prototype, "context", void 0);
10458
10567
  __decorate25([
10459
- consume6({ context: qtiContext, subscribe: true }),
10460
- state13()
10568
+ consume7({ context: qtiContext, subscribe: true }),
10569
+ state14()
10461
10570
  ], QtiPortableCustomInteraction.prototype, "qtiContext", void 0);
10462
10571
  __decorate25([
10463
10572
  property23({ attribute: "response", reflect: false, converter: responseAttributeConverter({ emptyAs: null }) })
@@ -10556,7 +10665,7 @@ var QtiPositionObjectStage = class extends LitElement13 {
10556
10665
 
10557
10666
  // ../interactions/select-point-interaction/dist/qti-select-point-interaction.js
10558
10667
  import { html as html29, nothing as nothing4 } from "lit";
10559
- import { property as property24, state as state14 } from "lit/decorators.js";
10668
+ import { property as property24, state as state15 } from "lit/decorators.js";
10560
10669
  import { repeat as repeat7 } from "lit/directives/repeat.js";
10561
10670
  import { styleMap } from "lit/directives/style-map.js";
10562
10671
 
@@ -10857,7 +10966,7 @@ __decorate26([
10857
10966
  property24({ attribute: "area-mappings" })
10858
10967
  ], QtiSelectPointInteraction.prototype, "areaMappings", void 0);
10859
10968
  __decorate26([
10860
- state14()
10969
+ state15()
10861
10970
  ], QtiSelectPointInteraction.prototype, "_areaEntries", void 0);
10862
10971
  __decorate26([
10863
10972
  watch("areaMappings")
@@ -11102,7 +11211,7 @@ __decorate27([
11102
11211
  // ../interactions/text-entry-interaction/dist/qti-text-entry-interaction.js
11103
11212
  import { html as html31 } from "lit";
11104
11213
  import { property as property26, query as query3 } from "lit/decorators.js";
11105
- import { ifDefined as ifDefined3 } from "lit/directives/if-defined.js";
11214
+ import { ifDefined as ifDefined4 } from "lit/directives/if-defined.js";
11106
11215
  import { createRef } from "lit/directives/ref.js";
11107
11216
 
11108
11217
  // ../interactions/text-entry-interaction/dist/qti-text-entry-interaction.styles.js
@@ -11277,9 +11386,9 @@ var QtiTextEntryInteraction = class extends Interaction {
11277
11386
  @keyup="${this.textChanged}"
11278
11387
  @change="${this.textChanged}"
11279
11388
  type="${this.patternMask == "[0-9]*" ? "number" : "text"}"
11280
- placeholder="${ifDefined3(this.placeholderText ? this.placeholderText : void 0)}"
11389
+ placeholder="${ifDefined4(this.placeholderText ? this.placeholderText : void 0)}"
11281
11390
  .value="${this.response}"
11282
- pattern="${ifDefined3(this.patternMask ? this.patternMask : void 0)}"
11391
+ pattern="${ifDefined4(this.patternMask ? this.patternMask : void 0)}"
11283
11392
  maxlength=${1e3}
11284
11393
  ?disabled="${this.disabled}"
11285
11394
  ?readonly="${this.readonly}"
@@ -12059,4 +12168,4 @@ export {
12059
12168
  elements31 as elements21,
12060
12169
  qtiInteractionElements
12061
12170
  };
12062
- //# sourceMappingURL=chunk-O76BOKAP.js.map
12171
+ //# sourceMappingURL=chunk-MP2SUN7J.js.map